/* ========== 绘本管理系统 - 样式表 ========== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg,
        #1a4d2e 0%,
        #256b3d 18%,
        #388a53 36%,
        #52a86c 54%,
        #78c490 72%,
        #a8ddb8 88%,
        #d4f0de 100%
    );
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
    padding-top: 52px;
}

/* Lucide 图标统一样式 */
.header-nav-btn       svg { width:14px; height:14px; margin-right:4px; vertical-align:middle; }
.empty-state-icon     svg { width:32px; height:32px; color:#999; stroke-width:1.4; }
.auth-input-icon      svg { width:14px; height:14px; opacity:0.45; }
.auth-password-toggle svg { width:14px; height:14px; }
.reader-footer-btn    svg { width:14px; height:14px; margin-right:4px; vertical-align:middle; }
.step-ai-btn          svg { width:14px; height:14px; margin-right:3px; vertical-align:middle; }
.btn-manage-import    svg { width:14px; height:14px; margin-right:3px; vertical-align:middle; }
.user-dropdown-item   svg { width:14px; height:14px; margin-right:4px; vertical-align:middle; }
.download-success     svg { width:32px; height:32px; color:#28a745; }

/* 背景粒子 */
.bg-particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.bg-particles::before, .bg-particles::after {
    content: ''; position: absolute; width: 4px; height: 4px;
    border-radius: 50%; background: rgba(255,255,255,0.6);
    animation: particleFloat 8s ease-in-out infinite;
}
.bg-particles::before {
    box-shadow:
        30px 80px 0 rgba(255,255,255,0.6),
        120px 200px 0 rgba(255,255,255,0.5),
        280px 120px 0 rgba(255,255,255,0.6),
        450px 340px 0 rgba(255,218,121,0.5),
        620px 180px 0 rgba(255,255,255,0.6),
        780px 400px 0 rgba(255,183,197,0.5),
        100px 420px 0 rgba(255,255,255,0.55),
        350px 520px 0 rgba(255,218,121,0.45),
        550px 480px 0 rgba(255,255,255,0.5),
        700px 600px 0 rgba(168,221,184,0.5),
        850px 250px 0 rgba(255,255,255,0.55),
        200px 650px 0 rgba(255,183,197,0.45),
        500px 700px 0 rgba(255,218,121,0.4),
        900px 500px 0 rgba(255,255,255,0.45),
        60px 300px 0 rgba(255,255,255,0.6),
        950px 650px 0 rgba(255,218,121,0.4),
        150px 750px 0 rgba(168,221,184,0.45);
}
.bg-particles::after {
    width: 3px; height: 3px;
    box-shadow:
        80px 50px 0 rgba(255,255,255,0.55),
        200px 100px 0 rgba(255,218,121,0.5),
        380px 60px 0 rgba(255,255,255,0.6),
        550px 150px 0 rgba(255,183,197,0.45),
        700px 80px 0 rgba(255,255,255,0.55),
        150px 350px 0 rgba(168,221,184,0.5),
        320px 280px 0 rgba(255,218,121,0.45),
        480px 250px 0 rgba(255,255,255,0.55),
        650px 320px 0 rgba(255,183,197,0.4),
        820px 150px 0 rgba(255,255,255,0.5),
        40px 500px 0 rgba(168,221,184,0.45),
        250px 580px 0 rgba(255,218,121,0.4),
        420px 620px 0 rgba(255,255,255,0.45),
        600px 550px 0 rgba(255,218,121,0.4),
        750px 680px 0 rgba(255,183,197,0.45),
        880px 420px 0 rgba(255,255,255,0.5),
        100px 600px 0 rgba(168,221,184,0.4),
        950px 300px 0 rgba(255,218,121,0.45);
    animation-duration: 10s; animation-delay: -3s;
}
@keyframes particleFloat {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    25% { opacity: 0.9; }
    50% { transform: translateY(-40px); opacity: 0.3; }
    75% { opacity: 0.8; }
}

/* 阳光扫光 */
.sunbeam {
    position: fixed; top: -50%; left: -30%; width: 80%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
    animation: sunSweep 15s ease-in-out infinite;
    transform: rotate(-15deg);
}
@keyframes sunSweep {
    0%, 100% { transform: rotate(-15deg) translateX(-20%); opacity: 0.3; }
    50% { transform: rotate(-15deg) translateX(40%); opacity: 0.8; }
}

/* 飘落花瓣 */
.petal {
    position: fixed; pointer-events: none; z-index: 1;
    font-size: 20px; opacity: 0.6;
    animation: petalFall linear infinite;
}
.petal-1 { top: -5%; left: 10%; animation-duration: 14s; animation-delay: 0s; font-size: 18px; }
.petal-2 { top: -8%; left: 25%; animation-duration: 12s; animation-delay: -3s; font-size: 22px; }
.petal-3 { top: -3%; left: 50%; animation-duration: 16s; animation-delay: -6s; font-size: 16px; }
.petal-4 { top: -10%; left: 70%; animation-duration: 13s; animation-delay: -9s; font-size: 24px; }
.petal-5 { top: -6%; left: 85%; animation-duration: 15s; animation-delay: -2s; font-size: 20px; }
.petal-6 { top: -4%; left: 40%; animation-duration: 17s; animation-delay: -8s; font-size: 19px; }
@keyframes petalFall {
    0% { transform: translateY(-10vh) rotate(0deg) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.5; }
    100% { transform: translateY(105vh) rotate(720deg) translateX(120px); opacity: 0; }
}

/* 卡通装饰元素 — 春天花草光斑 */
.cartoon-decor {
    position: fixed; pointer-events: none; z-index: 1; opacity: 0.10;
    filter: blur(45px);
}
.decor-1 { top: 10%; left: 3%; width: 180px; height: 180px; background: rgba(255,183,197,0.5); border-radius: 50%; animation: float1 4s ease-in-out infinite; }
.decor-2 { top: 22%; right: 5%; width: 130px; height: 130px; background: rgba(255,218,121,0.4); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; animation: float2 5s ease-in-out infinite; }
.decor-3 { bottom: 15%; left: 5%; width: 200px; height: 200px; background: rgba(168,221,184,0.45); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; animation: float3 6s ease-in-out infinite; }
.decor-4 { bottom: 25%; right: 3%; width: 120px; height: 120px; background: rgba(255,183,197,0.4); border-radius: 50%; animation: float1 4.5s ease-in-out infinite reverse; }
.decor-5 { top: 45%; left: 2%; width: 100px; height: 100px; background: rgba(255,218,121,0.45); border-radius: 50%; animation: float2 5.5s ease-in-out infinite; }
.decor-6 { top: 58%; right: 2%; width: 160px; height: 160px; background: rgba(168,221,184,0.4); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; animation: float3 7s ease-in-out infinite reverse; }

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-40px) rotate(15deg) scale(1.1); }
    50% { transform: translateY(-60px) rotate(20deg) scale(1.15); }
    75% { transform: translateY(-40px) rotate(15deg) scale(1.1); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-50px) rotate(-20deg) scale(1.12); }
    50% { transform: translateY(-70px) rotate(-25deg) scale(1.18); }
    75% { transform: translateY(-50px) rotate(-20deg) scale(1.12); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    33% { transform: translateY(-80px) scale(1.2) rotate(10deg); }
    66% { transform: translateY(-50px) scale(1.15) rotate(-5deg); }
}

/* 主内容区 */
.main { padding: 10px 30px 30px 30px; max-width: 1400px; margin: 0 auto; position: relative; z-index: 2; }

/* 头部 */
.header {
    background: linear-gradient(180deg, rgba(37,107,61,0.60) 0%, rgba(37,107,61,0.20) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white; padding: 0;
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}
.header-inner {
    max-width: 1400px; margin: 0 auto;
    padding: 10px 30px 14px 30px;
    display: flex; justify-content: space-between; align-items: center;
}
.header-left {
    display: flex; align-items: center; gap: 16px;
}
.header-left h1 {
    font-size: 22px; margin: 0; display: flex; align-items: center; gap: 10px;
}
.header-subtitle {
    font-size: 14px; font-weight: 400; opacity: 0.7; white-space: nowrap;
}
.header-right {
    display: flex; align-items: center; gap: 10px;
}
.header-nav {
    display: flex; align-items: center; gap: 6px;
}
.header-nav-btn {
    padding: 7px 16px; border: 1.5px solid transparent; border-radius: 20px;
    background: transparent; color: rgba(255,255,255,0.8); font-size: 13px;
    cursor: pointer; transition: all 0.2s; white-space: nowrap; font-weight: 500;
}
.header-nav-btn:hover {
    background: rgba(255,255,255,0.12); color: white;
}
.header-nav-btn.active {
    background: rgba(255,255,255,0.22); color: white; font-weight: 600;
    border-color: rgba(255,255,255,0.35);
}
.header-logo {
    font-size: 22px; line-height: 1;
}
.search-input {
    padding: 7px 16px; border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 22px; font-size: 13px; width: 180px;
    outline: none; background: rgba(255,255,255,0.15); color: white;
    transition: border-color 0.2s, background 0.2s;
}
.search-input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.22); }
.search-input::placeholder { color: rgba(255,255,255,0.5); }

/* 用户下拉菜单 */
.user-dropdown {
    position: relative; display: inline-flex; align-items: center;
}
.user-dropdown-toggle {
    color: white; cursor: pointer; font-size: 14px; padding: 6px 10px;
    border-radius: 8px; transition: background 0.2s; white-space: nowrap; user-select: none;
}
.user-dropdown-toggle:hover { background: rgba(255,255,255,0.15); }
.user-dropdown-toggle::after {
    content: ' ▾'; font-size: 18px; opacity: 0.7; vertical-align: middle;
}
.user-dropdown-menu {
    display: none; position: absolute; top: 100%; right: 0;
    margin-top: 8px; background: white; border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12); min-width: 130px;
    padding: 4px 0; z-index: 2000; overflow: hidden;
}
.user-dropdown-menu.show { display: block; }
.user-dropdown-item {
    display: block; width: 100%; padding: 8px 16px; border: none;
    background: none; text-align: left; cursor: pointer; font-size: 13px;
    color: #333; transition: all 0.15s; white-space: nowrap;
}
.user-dropdown-item:hover { background: #f0faf3; color: #2f855a; }
.user-dropdown-item-manage {
    border-bottom: 1px solid #f0f0f0; color: #555;
}

.btn {
    padding: 8px 18px; border: none; border-radius: 8px;
    cursor: pointer; font-size: 13px; transition: all 0.2s; font-weight: 500;
}
.btn-primary { background: white; color: #38a169; font-weight: 500; }
.btn-primary:hover { background: #f0f0f0; }
.btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: white; }
.btn-secondary { background: #f5f5f5; color: #555; border: 1px solid #e0e4e1; }
.btn-secondary:hover { background: #e8ece9; }
.btn-save {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white; box-shadow: 0 2px 8px rgba(56,161,105,0.25);
}
.btn-save:hover { box-shadow: 0 4px 14px rgba(56,161,105,0.35); transform: translateY(-1px); }
.btn-add-book {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white; font-weight: 600; font-size: 13px;
    padding: 7px 24px; border-radius: 24px;
    box-shadow: 0 4px 14px rgba(56,161,105,0.35);
    white-space: nowrap; flex-shrink: 0;
}
.btn-add-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56,161,105,0.45);
}

/* 分类筛选栏 */
.category-bar {
    padding: 12px 0 0 0;
    background: transparent;
}
.category-bar-inner {
    max-width: 1400px; margin: 0 auto;
    padding: 14px 30px 10px 30px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
}
.category-left {
    display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; flex-wrap: wrap;
}
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.category-tab {
    padding: 7px 20px; border: 1.5px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85); border-radius: 22px; cursor: pointer;
    font-size: 13px; font-weight: 500; transition: all 0.25s; white-space: nowrap;
}
.category-tab:hover { border-color: rgba(255,255,255,0.6); color: white; background: rgba(255,255,255,0.2); }
.category-tab.active {
    background: white;
    color: #2f855a; border-color: transparent; box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
    background: white; border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 16px rgba(47,133,90,0.10), 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.3s; cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(47,133,90,0.16), 0 2px 6px rgba(0,0,0,0.06); }

/* 右键菜单 */
.context-menu {
    position: fixed; background: white; border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); padding: 8px 0;
    z-index: 2000; min-width: 120px; display: none;
}
.context-menu.show { display: block; }
.context-menu-item { padding: 10px 20px; cursor: pointer; font-size: 14px; transition: background 0.2s; }
.context-menu-item:hover { background: #f5f7fa; }
.context-menu-item.danger { color: #dc3545; }

.card-cover-wrap { position: relative; width: 100%; height: 224px; overflow: hidden; }
.card-copy-tag {
    position: absolute; top: 8px; right: 8px;
    padding: 3px 10px; border-radius: 10px;
    background: rgba(56, 161, 105, 0.85); color: white;
    font-size: 11px; font-weight: 500; white-space: nowrap;
    pointer-events: none;
}
.card-cover { width: 100%; height: 224px; object-fit: cover; background: #f0f0f0; }

/* 卡片hover操作按钮 */
.card-hover-actions {
    position: absolute; top: 8px; right: 8px;
    display: flex; gap: 6px;
    opacity: 0; transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 2;
}
.card:hover .card-hover-actions {
    opacity: 1; transform: translateY(0);
}
.card-action-tag {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 10px; border-radius: 10px; border: none;
    font-size: 11px; font-weight: 500; cursor: pointer;
    white-space: nowrap; transition: all 0.15s;
    font-family: inherit;
}
.card-action-edit {
    background: rgba(255,255,255,0.9); color: #38a169;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.card-action-edit:hover { background: #38a169; color: white; }
.card-action-delete {
    background: rgba(255,255,255,0.9); color: #dc3545;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.card-action-delete:hover { background: #dc3545; color: white; }
.card-action-tag svg { width: 11px; height: 11px; }
.card-content { padding: 12px; }
.card-categories { display: flex; flex-wrap: wrap; gap: 5px; }
.card-category-tag { padding: 3px 8px; background: #f0f0f0; border-radius: 10px; font-size: 11px; color: #666; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: #1a1a1a; }
.card-desc {
    font-size: 14px; color: #666; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 15px;
}
.card-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: #999; border-top: 1px solid #f0f0f0; padding-top: 12px;
}
.card-actions { display: flex; gap: 8px; }
.card-btn { padding: 6px 12px; border: none; border-radius: 4px; cursor: pointer; font-size: 12px; transition: all 0.2s; }
.card-btn-edit { background: #e6f7ed; color: #38a169; }
.card-btn-edit:hover { background: #c6f0d4; }
.card-btn-delete { background: #fce8e6; color: #dc3545; }
.card-btn-delete:hover { background: #fadbd9; }
.card-btn-preview { background: #e8f5e9; color: #28a745; }
.card-btn-preview:hover { background: #c8e6c9; }
.card-btn-export { background: #fff3e0; color: #ff9800; }
.card-btn-export:hover { background: #ffe0b2; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: #999; }
.empty-state-icon { font-size: 48px; margin-bottom: 15px; }

/* 模态框 */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 3000; justify-content: center; align-items: center;
}
.modal.show { display: flex; }
.modal-content {
    background: white; border-radius: 12px; width: 90%; max-width: 600px;
    max-height: 90vh; overflow-y: auto; animation: modalIn 0.3s;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    padding: 20px; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h2 { font-size: 18px; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #999; }
.modal-close:hover { color: #333; }
.modal-body { padding: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; margin-bottom: 6px; font-weight: 600; color: #37474f;
    font-size: 13px; letter-spacing: 0.3px;
}
.form-group label .required { color: #e53e3e; margin-left: 2px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 14px; border: 1.5px solid #e0e4e1;
    border-radius: 8px; font-size: 14px; transition: all 0.2s;
    background: white; color: #333;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: #38a169; box-shadow: 0 0 0 3px rgba(56,161,105,0.08);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group select { cursor: pointer; appearance: none; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.form-group input.input-readonly,
.form-group textarea.input-readonly {
    background: #f0f4f1; color: #666; cursor: not-allowed;
    border-color: #dde5e0; user-select: none;
}
.form-group input.input-readonly:focus,
.form-group textarea.input-readonly:focus {
    border-color: #dde5e0; box-shadow: none;
}
.modal-footer { padding: 16px 24px; border-top: 1px solid #e8ece9; background: white; display: flex; justify-content: flex-end; gap: 10px; border-radius: 0 0 12px 12px; }
.modal-body { padding: 24px; background: #f9fafb; }
.modal-header {
    padding: 14px 24px; border-bottom: 1px solid #e8ece9;
    background: white; display: flex; justify-content: space-between; align-items: center;
    border-radius: 12px 12px 0 0; min-height: 52px;
}
.modal-header h2 { font-size: 18px; font-weight: 600; }

/* 抽屉 */
.drawer {
    position: fixed; top: 0; right: 0; width: 520px; max-width: 100%; height: 100%;
    background: #f9fafb; z-index: 2000; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}
.drawer.show { transform: translateX(0); }
.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 1999;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.drawer-overlay.show { opacity: 1; visibility: visible; }

.drawer-header {
    padding: 14px 24px;
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white; display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0; min-height: 52px;
}
.drawer-header h2 { font-size: 18px; margin: 0; font-weight: 600; color: white; }
.drawer-close {
    background: rgba(255,255,255,0.15); border: none; width: 32px; height: 32px;
    border-radius: 50%; cursor: pointer; color: white; font-size: 22px; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.drawer-close:hover { background: rgba(255,255,255,0.3); }

.drawer-body { flex: 1; overflow-y: auto; padding: 24px; background: #f9fafb; }

/* 步骤条 */
.step-indicator { display: flex; align-items: center; justify-content: center; margin-bottom: 24px; gap: 0; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.step-num {
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; background: #e0e4e1; color: #999; transition: all 0.3s;
}
.step-item.active .step-num { background: #38a169; color: white; }
.step-item.done .step-num { background: #38a169; color: white; }
.step-label { font-size: 11px; color: #999; transition: color 0.3s; white-space: nowrap; }
.step-item.active .step-label { color: #38a169; font-weight: 600; }
.step-item.done .step-label { color: #38a169; }
.step-line { width: 90px; height: 2px; background: #e0e4e1; margin: 0 16px; margin-bottom: 16px; transition: background 0.3s; }
.step-line.done { background: #38a169; }

/* 步骤内容 */
.step-content { animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.step-pages-list { display: flex; flex-direction: column; gap: 12px; }
.step-page-card {
    background: white; border: 1.5px solid #e0e4e1; border-radius: 10px; padding: 14px;
}
.step-page-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.step-page-card-num { font-size: 12px; font-weight: 600; color: #38a169; }
.step-page-card-actions { display: flex; gap: 6px; }
.step-page-action-btn {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 2px 8px; border: 1px solid #d0ddd4; border-radius: 5px;
    background: white; color: #555; font-size: 11px; cursor: pointer;
    transition: all 0.15s; font-family: inherit;
}
.step-page-action-btn:hover { background: #f0faf3; border-color: #38a169; color: #38a169; }
.step-page-action-btn svg { width: 11px; height: 11px; }
.step-page-action-delete { color: #c44; border-color: #e8d0d0; }
.step-page-action-delete:hover { background: #fff0f0; border-color: #d44; color: #d44; }
.step-page-card label { font-size: 11px; color: #888; display: block; margin-bottom: 4px; }
.step-page-card textarea {
    width: 100%; min-height: 50px; border: 1px solid #e0e4e1; border-radius: 6px;
    padding: 8px 10px; font-size: 13px; resize: vertical; font-family: inherit;
}
.step-page-card textarea:focus { outline: none; border-color: #38a169; }
.step-page-card .step-page-img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: 6px; margin-top: 8px;
}
.step-page-card .step-page-text-readonly {
    font-size: 13px; color: #555; line-height: 1.6; margin-top: 6px;
    background: #f5f7f6; padding: 10px; border-radius: 6px;
}

.step-ai-btn {
    padding: 8px 16px; border: 1.5px dashed #38a169; border-radius: 8px;
    background: #f0faf4; color: #38a169; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.step-ai-btn:hover { background: #e6f5ec; border-color: #2d8a56; color: #2d8a56; }
.step-ai-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.step-ai-btn-sm { padding: 4px 10px; font-size: 11px; border-radius: 6px; }
.step-ai-btn-delete {
    border-color: #e8c9c9; background: #fff8f8; color: #c44;
}
.step-ai-btn-delete:hover { background: #fff0f0; border-color: #d44; color: #d44; }

.drawer-footer {
    padding: 16px 24px; border-top: 1px solid #e8ece9;
    background: white; display: flex; justify-content: flex-end; gap: 10px;
    flex-shrink: 0;
}

/* 用户管理 */
.user-manage-table-wrap {
    overflow-x: auto; background: white; border-radius: 12px;
    padding: 16px 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.user-manage-table {
    width: 100%; border-collapse: collapse;
}
.user-manage-table thead th {
    text-align: left; padding: 12px 14px; font-size: 13px; font-weight: 600;
    color: #2f855a; border-bottom: 2px solid #e8ece9;
    white-space: nowrap;
}
.user-manage-table thead th.col-action { text-align: center; }
.user-manage-table tbody tr {
    border-bottom: 1px solid #f0f3f1; transition: background 0.15s;
}
.user-manage-table tbody tr:hover { background: #f6faf7; }
.user-manage-table tbody td {
    padding: 13px 14px; font-size: 14px; color: #333; vertical-align: middle;
}
.user-manage-table tbody td.col-date { color: #888; font-size: 13px; }
.user-manage-table tbody td.col-action { text-align: center; }
.role-badge {
    display: inline-block; padding: 4px 14px; border-radius: 12px; font-size: 12px; font-weight: 500;
}
.role-admin { background: linear-gradient(135deg, #38a169, #2f855a); color: white; }
.role-user { background: #e8ece9; color: #555; }
.btn-delete-user {
    padding: 5px 14px; border: 1px solid #e8c9c9; border-radius: 6px;
    background: white; color: #d44; font-size: 12px; cursor: pointer;
    transition: all 0.2s;
}
.btn-delete-user:hover { background: #fff0f0; border-color: #d44; }
.current-user-tag { color: #aaa; font-size: 12px; }

.btn-manage-action {
    padding: 4px 12px; border: 1px solid #d0ddd4; border-radius: 5px;
    background: white; color: #2f855a; font-size: 12px; cursor: pointer;
    transition: all 0.15s; margin: 0 2px;
}
.btn-manage-action:hover { background: #f0faf3; border-color: #2f855a; }
.btn-manage-delete { color: #d44; border-color: #e8c9c9; }
.btn-manage-delete:hover { background: #fff0f0; border-color: #d44; }

/* 管理视图（主区域表格） */
.manage-view {
    background: transparent; padding: 0; margin-top: 12px;
}
.manage-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.manage-toolbar-left {
    display: flex; align-items: center; gap: 10px;
}
.manage-toolbar-right {
    display: flex; align-items: center; gap: 10px;
}
.btn-manage-import {
    padding: 7px 20px; border: 1.5px solid #d0ddd4; border-radius: 22px;
    background: white; color: #2f855a; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
}
.btn-manage-import:hover { background: #f0faf3; border-color: #2f855a; }
.manage-search-input {
    padding: 7px 16px; border: 1.5px solid #d0ddd4; border-radius: 22px;
    font-size: 13px; width: 180px; outline: none; background: white;
    transition: border-color 0.2s;
}
.manage-search-input:focus { border-color: #2f855a; }
.manage-search-input::placeholder { color: #aaa; }
.manage-filter-select {
    padding: 7px 14px; border: 1.5px solid #d0ddd4; border-radius: 22px;
    font-size: 13px; outline: none; background: white; cursor: pointer;
}

/* 预览 */
.preview-modal .modal-content { max-width: 900px; }
.preview-book-title { text-align: center; font-size: 24px; margin-bottom: 10px; }
.preview-book-category { text-align: center; color: #38a169; margin-bottom: 20px; }
.preview-book-desc { background: #f9f9f9; padding: 15px; border-radius: 8px; margin-bottom: 20px; line-height: 1.6; }
.preview-pages { display: flex; flex-direction: column; gap: 30px; }
.preview-page { border: 1px solid #eee; border-radius: 8px; padding: 20px; }
.preview-page-header { font-weight: 600; margin-bottom: 10px; color: #38a169; }
.preview-page-text { line-height: 1.6; margin-bottom: 15px; }
.preview-page-image { max-width: 100%; max-height: 300px; border-radius: 8px; display: block; margin: 0 auto; }

/* 分页管理 */
.pages-section { margin-top: 20px; border-top: 1px solid #e8ece9; padding-top: 20px; }
.pages-section h3 { margin-bottom: 15px; font-size: 16px; font-weight: 600; color: #37474f; }
.page-item {
    background: white; border-radius: 10px; padding: 16px; margin-bottom: 12px;
    border: 1px solid #e8ece9; transition: box-shadow 0.2s;
}
.page-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.page-item-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f2f1;
}
.page-item-header strong { color: #38a169; font-size: 14px; }
.page-item-actions { display: flex; gap: 6px; }
.page-item-actions button {
    padding: 5px 12px; border: 1px solid #e0e4e1; border-radius: 6px;
    background: white; cursor: pointer; font-size: 12px; transition: all 0.15s;
}
.page-item-actions button:hover { background: #f0faf3; border-color: #38a169; color: #38a169; }
.page-item-content { display: flex; gap: 15px; }
.page-item-text { flex: 1; font-size: 14px; line-height: 1.6; color: #555; }
.page-item-image {
    width: 100px; height: 100px; object-fit: cover; border-radius: 8px;
    background: #f0f2f1; flex-shrink: 0; overflow: hidden;
}
.page-item-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.add-page-btn {
    width: 100%; padding: 14px; border: 2px dashed #c0c8c2; background: white;
    border-radius: 10px; cursor: pointer; color: #38a169; font-size: 14px;
    font-weight: 500; transition: all 0.2s;
}
.add-page-btn:hover { border-color: #38a169; background: #f0faf3; }

/* 图片上传 */
.image-upload-area {
    border: 2px dashed #c0c8c2; border-radius: 10px; padding: 32px;
    text-align: center; cursor: pointer; transition: all 0.2s;
    background: white; color: #999; font-size: 14px;
}
.image-upload-area:hover { border-color: #38a169; background: #f0faf3; color: #38a169; }
.image-upload-area img { max-width: 200px; max-height: 150px; border-radius: 8px; display: block; margin: 0 auto; }

/* 分类复选框 */
.category-checkbox { display: none; }
.category-tag {
    display: inline-block; padding: 6px 14px; border: 1px solid #ddd;
    border-radius: 20px; cursor: pointer; transition: all 0.2s;
    font-size: 13px; color: #666; background: white; user-select: none;
}
.category-tag:hover { border-color: #38a169; color: #38a169; }
.category-checkbox:checked + .category-tag {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white; border-color: #38a169;
}

/* 统计信息 */
.stats { display: flex; gap: 20px; margin-bottom: 20px; }
.stat-item { background: white; padding: 15px 25px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stat-item .number { font-size: 24px; font-weight: 700; color: #38a169; }
.stat-item .label { font-size: 12px; color: #999; }

/* 绘本阅读器 - 3D翻书效果 */
.book-reader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, #1a3d28 0%, #0d1f14 100%);
    z-index: 2000; display: flex; flex-direction: column;
}
.reader-header {
    background: transparent;
    color: white; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
}
.reader-close {
    background: rgba(255,255,255,0.1); border: none; width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; color: white; font-size: 24px;
    display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.reader-close:hover { background: rgba(255,255,255,0.25); }
.reader-title { font-size: 18px; margin: 0; font-weight: 600; }
.reader-nav { font-size: 14px; opacity: 0.8; }
.reader-content {
    flex: 1; display: flex; justify-content: center; align-items: center;
    padding: 30px; perspective: 2000px; overflow: hidden; position: relative;
}

/* 翻页箭头 */
.reader-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.25);
    color: white; font-size: 24px; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; backdrop-filter: blur(6px);
}
.reader-arrow:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); }
.reader-arrow:disabled { opacity: 0.3; cursor: default; }
.reader-arrow-prev { left: 20px; }
.reader-arrow-next { right: 20px; }

.reader-book-wrap {
    width: 1000px; height: auto; position: relative;
    perspective: 2000px;
}
.reader-book {
    width: 100%; aspect-ratio: 2 / 1; position: relative;
    transform-style: preserve-3d;
    background: #fdfdf9; border-radius: 10px;
}
.reader-spine {
    position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    width: 6px; height: 100%;
    background: linear-gradient(to right,
        rgba(0,0,0,0.3), rgba(255,255,255,0.1), rgba(0,0,0,0.3));
    z-index: 200; border-radius: 3px;
}
.reader-page {
    position: absolute; width: 50%; height: 100%; top: 0;
    aspect-ratio: 1 / 1;
    transform-style: preserve-3d;
    transition: transform 1.1s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    background: #fdfdf9;
}
.reader-page-left {
    left: 0; transform-origin: right center;
    border-radius: 10px 0 0 10px;
}
.reader-page-right {
    left: 50%; transform-origin: left center;
    border-radius: 0 10px 10px 0;
}
.reader-page.flipped-left { transform: rotateY(-180deg); }
.reader-page.flipped-right { transform: rotateY(180deg); }

.reader-page-front, .reader-page-back {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.reader-page-front {
    background: #fdfdf9;
    border-radius: inherit;
}
.reader-page-back {
    background: #f5f2e8;
    transform: rotateY(180deg);
    border-radius: inherit;
}
.reader-page-inner {
    width: 100%; height: 100%; position: relative;
    display: flex; align-items: center; justify-content: center;
}

/* 图片填满页面 */
.reader-page-image {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; top: 0; left: 0;
}

/* 文字覆盖在图片上 */
.reader-page-text {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px 20px 20px;
    font-family: 'KaiTi', 'STKaiti', '楷体', 'Noto Serif SC', 'SimSun', serif;
    font-size: 15px; line-height: 1.9; text-align: center; color: #2c2c2c;
    background: linear-gradient(to top,
        rgba(255,255,255,0.95) 0%,
        rgba(255,255,255,0.85) 25%,
        rgba(255,255,255,0.5) 50%,
        transparent 100%);
    letter-spacing: 1px;
    font-weight: 500;
}

/* 无图片时纯文字居中 */
.reader-page-text-only {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80%; font-family: 'KaiTi', 'STKaiti', '楷体', 'Noto Serif SC', 'SimSun', serif;
    font-size: 16px; line-height: 2; text-align: center; color: #3a3a3a;
    letter-spacing: 1.5px; font-weight: 500;
}

.reader-page-number {
    position: absolute; bottom: 8px; font-size: 10px; color: rgba(0,0,0,0.35);
    z-index: 5;
}
.reader-page-left .reader-page-number { left: 12px; }
.reader-page-right .reader-page-number { right: 12px; }

.reader-footer {
    padding: 14px 20px; display: flex; justify-content: center; align-items: center; gap: 20px;
    flex-shrink: 0;
}
.reader-footer-btn {
    padding: 12px 36px; border: none; border-radius: 28px;
    font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.25s;
    letter-spacing: 0.5px;
}
.reader-footer-btn-create {
    background: linear-gradient(135deg, #38a169, #2f855a);
    color: white; box-shadow: 0 4px 15px rgba(56,161,105,0.35);
}
.reader-footer-btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(56,161,105,0.5);
}
.reader-footer-btn-pdf {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}
.reader-footer-btn-pdf:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.45);
}
.reader-empty { text-align: center; color: rgba(255,255,255,0.6); padding: 40px; }
.reader-empty .empty-state-icon { font-size: 48px; margin-bottom: 15px; }

/* 下载进度弹窗 */
.download-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 3000;
    display: none; justify-content: center; align-items: center;
}
.download-modal.show { display: flex; }
.download-content { background: white; border-radius: 16px; padding: 40px; text-align: center; min-width: 300px; }
.download-spinner {
    width: 60px; height: 60px; border: 4px solid #f0f0f0;
    border-top: 4px solid #38a169; border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto 20px;
}
.download-title { font-size: 16px; color: #333; margin-bottom: 10px; }
.download-actions { display: flex; gap: 15px; justify-content: center; }
.download-success { color: #28a745; font-size: 48px; margin-bottom: 10px; }

/* ========== 登录/注册弹层 ========== */
.auth-modal-content {
    max-width: 420px; border-radius: 16px; overflow: hidden;
    position: relative; animation: authSlideIn 0.35s ease;
}
@keyframes authSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-close {
    position: absolute; top: 14px; right: 16px; z-index: 10;
    font-size: 24px; color: rgba(255,255,255,0.8); background: none; border: none; cursor: pointer;
}
.auth-close:hover { color: white; }

/* 顶部品牌区 */
.auth-header {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    padding: 32px 30px 24px; text-align: center; color: white;
}
.auth-header h2 { font-size: 20px; margin: 0 0 6px; font-weight: 600; }
.auth-header p { font-size: 13px; margin: 0; opacity: 0.85; }

/* Tab 切换 */
.auth-tabs {
    display: flex; margin: -1px 0 0;
    border-bottom: 1px solid #eee; background: white;
}
.auth-tab {
    flex: 1; padding: 14px; border: none; background: none;
    font-size: 15px; color: #999; cursor: pointer; transition: all 0.2s;
    position: relative; font-weight: 500;
}
.auth-tab.active { color: #38a169; }
.auth-tab.active::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 32px; height: 3px;
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    border-radius: 2px;
}
.auth-tab:hover:not(.active) { color: #555; }

/* 表单区 */
.auth-body { padding: 24px 30px 30px; background: white; }

.auth-input-group {
    position: relative; display: flex; align-items: center;
    margin-bottom: 16px;
    border: 1.5px solid #e0e0e0; border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s; overflow: hidden;
}
.auth-input-group:focus-within {
    border-color: #38a169; box-shadow: 0 0 0 3px rgba(56,161,105,0.1);
}
.auth-input-icon {
    padding: 0 12px; font-size: 16px; opacity: 0.5; flex-shrink: 0;
}
.auth-input-group input {
    flex: 1; border: none; padding: 12px 8px 12px 0;
    font-size: 15px; outline: none; background: none; min-width: 0;
}
.auth-password-toggle {
    padding: 0 14px; font-size: 16px; cursor: pointer;
    opacity: 0.4; transition: opacity 0.2s; flex-shrink: 0; user-select: none;
}
.auth-password-toggle:hover { opacity: 0.8; }

/* 错误提示 */
.auth-error {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; margin-bottom: 16px;
    background: #fff0f0; border-radius: 8px;
    color: #dc3545; font-size: 13px;
    animation: authShake 0.4s ease;
}
@keyframes authShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(3px); }
}

/* 提交按钮 */
.auth-submit-btn {
    width: 100%; padding: 13px; border: none;
    border-radius: 10px; cursor: pointer; font-size: 16px; font-weight: 600;
    color: white; transition: all 0.2s;
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}
.auth-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(56,161,105,0.35); }
.auth-submit-btn:active { transform: scale(0.98); }
.auth-submit-btn.loading { pointer-events: none; opacity: 0.7; }
.auth-submit-btn.loading::after {
    content: '...'; animation: authDots 1.2s steps(4, end) infinite;
}
@keyframes authDots {
    0% { content: ''; } 25% { content: '.'; }
    50% { content: '..'; } 75% { content: '...'; }
}

/* ===== Toast 消息提示 ===== */
.toast-container {
    position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
    z-index: 10000; display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 10px;
    font-size: 14px; font-weight: 500; color: #333;
    background: white; box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    animation: toastIn 0.3s ease-out;
    pointer-events: auto; max-width: 360px;
}
.toast.toast-out { animation: toastOut 0.25s ease-in forwards; }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
.toast-success { border-left: 3px solid #38a169; }
.toast-success svg { color: #38a169; }
.toast-error { border-left: 3px solid #e53e3e; }
.toast-error svg { color: #e53e3e; }
.toast-warn  { border-left: 3px solid #d69e2e; }
.toast-warn svg  { color: #d69e2e; }
.toast-info  { border-left: 3px solid #3182ce; }
.toast-info svg  { color: #3182ce; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-12px); }
}

/* ===== Confirm 确认弹窗 ===== */
.confirm-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.35);
    z-index: 10001; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.confirm-overlay.show { opacity: 1; pointer-events: auto; }
.confirm-box {
    background: white; border-radius: 14px; padding: 28px 32px 20px;
    text-align: center; max-width: 340px; width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    animation: confirmIn 0.25s ease-out;
}
@keyframes confirmIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
.confirm-icon { margin-bottom: 12px; }
.confirm-icon svg { width: 40px; height: 40px; color: #d69e2e; }
.confirm-msg { font-size: 15px; color: #444; line-height: 1.6; margin-bottom: 20px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }
.confirm-actions .btn { min-width: 80px; }

/* ===== 积分管理 ===== */

/* 管理操作按钮内的小图标 */
.btn-manage-action svg { width: 12px; height: 12px; margin-right: 2px; vertical-align: middle; }

/* 积分视图 */
.points-balance-card {
    background: linear-gradient(135deg, #2f855a 0%, #1a4d2e 100%);
    border-radius: 16px; padding: 26px 30px; color: white;
    margin-bottom: 20px; display: flex; flex-direction: column; align-items: center;
    box-shadow: 0 6px 24px rgba(47, 133, 90, 0.25);
}
.points-balance-label { font-size: 13px; opacity: 0.85; letter-spacing: 1px; }
.points-balance-num {
    font-size: 48px; font-weight: 800; line-height: 1.2; margin: 6px 0;
    background: linear-gradient(180deg, #ffd879 0%, #f6b93b 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.points-balance-sub { font-size: 12px; opacity: 0.75; }

.points-view-title { font-size: 16px; font-weight: 600; color: #2f855a; }

.points-type-badge {
    display: inline-block; padding: 3px 12px; border-radius: 12px;
    font-size: 12px; font-weight: 500; white-space: nowrap;
}
.points-type-in { background: #e6f7ed; color: #2f855a; }
.points-type-out { background: #fff0f0; color: #d44; }
.points-type-neutral { background: #f0f0f0; color: #666; }
.points-amount-in { color: #2f855a; font-weight: 700; }
.points-amount-out { color: #d44; font-weight: 700; }
.points-num-cell { font-weight: 600; color: #2f855a; }

/* 积分流水分页 */
.points-pagination {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 18px; flex-wrap: wrap;
}
.points-page-info { font-size: 13px; color: #666; margin-right: 8px; }
.points-page-btn {
    min-width: 32px; height: 32px; padding: 0 10px;
    border: 1px solid #d0ddd4; border-radius: 6px;
    background: white; color: #2f855a; font-size: 13px;
    cursor: pointer; transition: all 0.15s;
}
.points-page-btn:hover:not(:disabled) { background: #f0faf3; border-color: #2f855a; }
.points-page-btn.active {
    background: linear-gradient(135deg, #38a169, #2f855a);
    color: white; border-color: transparent;
}
.points-page-btn:disabled { opacity: 0.45; cursor: default; }

/* ===== 自助充值弹窗 ===== */
.recharge-package-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-top: 8px;
}
.recharge-package-card {
    border: 2px solid #e0e0e0; border-radius: 10px;
    padding: 14px 8px; text-align: center; cursor: pointer;
    transition: all 0.15s; background: #fff;
}
.recharge-package-card:hover { border-color: #38a169; transform: translateY(-1px); }
.recharge-package-card.selected {
    border-color: #2f855a; background: #f0faf3;
    box-shadow: 0 2px 8px rgba(47,133,90,0.15);
}
.rp-price { font-size: 20px; font-weight: 700; color: #e5533c; }
.rp-points { font-size: 13px; color: #2f855a; margin-top: 4px; font-weight: 500; }

.recharge-channel-list {
    display: flex; gap: 10px; margin-top: 8px;
}
.recharge-channel-btn {
    flex: 1; padding: 10px 0; border: 2px solid #e0e0e0;
    border-radius: 8px; background: #fff; font-size: 14px;
    cursor: pointer; transition: all 0.15s; color: #333;
}
.recharge-channel-btn:hover { border-color: #38a169; }
.recharge-channel-btn.selected {
    border-color: #2f855a; background: #f0faf3; color: #2f855a; font-weight: 600;
}
.recharge-order-no {
    font-size: 12px; color: #999; word-break: break-all;
    margin-top: 6px;
}
