:root {
    --bg: #fafafa;
    --card: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #999;
    --border: #e8e8e8;
    --accent: #1a1a1a;
    --accent-hover: #333;
    --gold: #d4a855;
    --gold-light: #fdf6e3;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    --surface-2: #fafafa;
    --hover-bg: #f5f5f5;
    --img-bg: #f0f0f0;
}
body.dark-mode {
    --bg: #0f0f0f;
    --card: #1a1a1a;
    --text: #e8e8e8;
    --text-secondary: #aaa;
    --text-muted: #888;
    --border: #2e2e2e;
    --accent: #333333;
    --accent-hover: #444444;
    --gold-light: #2a2415;
    --gold-soft: #e0c389;
    --surface-2: #1e1e1e;
    --hover-bg: #2a2a2a;
    --img-bg: #262626;
    color-scheme: dark;
}
body.dark-mode .search-keyword span{
    color: var(--gold-soft);
}
body.dark-mode .package-price,
body.dark-mode .price-symbol,
body.dark-mode .price-amount,
body.dark-mode .vip-price{ color: var(--gold-soft); }
body.dark-mode .form-section-title a,
body.dark-mode .page-title a{ color: var(--text) !important; }
body.dark-mode .member-breadcrumb a{ color: var(--text-secondary) !important; }
body.dark-mode .promo-link-tip a,
body.dark-mode .form-hint a{ color: var(--text-muted) !important; }
body.dark-mode .form-hint b,
body.dark-mode .page-subtitle b{ color: var(--gold-soft) !important; }
*{margin:0;padding:0;box-sizing:border-box;}
li{list-style-type:none;}
ol, ul {list-style: none;}
i,em {font-style: normal;}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.6;min-height:100vh;transition:background-color var(--transition),color var(--transition);}
a{color:inherit;text-decoration:none;}
.header{background:var(--card);border-bottom:1px solid var(--border);padding:0 32px;height:56px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:100;}
.logo{font-size:1.3rem;font-weight:700;letter-spacing:-0.02em;color:var(--text);margin-right:auto;}
.nav-links{display:flex;gap:28px;align-items:center;}
.nav-links a,.nav-links span{text-decoration:none;color:var(--text-secondary);font-size:0.9rem;cursor:pointer;transition:color var(--transition);font-weight:500;}
.nav-links a:hover,.nav-links a.active{color:var(--text);}
.btn{padding:8px 20px;border-radius:20px;border:none;cursor:pointer;font-size:0.85rem;font-weight:600;transition:all var(--transition);font-family:var(--font);}
.btn-outline{background:transparent;border:1.5px solid var(--border);color:var(--text);}
.btn-outline:hover{border-color:#aaa;background:#f5f5f5;}
.btn-dark{background:var(--accent);color:#fff;border:1.5px solid var(--accent);}
.btn-dark:hover{background:var(--accent-hover);}
.btn-sm{padding:6px 14px;font-size:0.8rem;border-radius:16px;}
.user-badge{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:500;font-size:0.9rem;margin-left: 1rem;}
.user-avatar{width:32px;height:32px;border-radius:50%;background:#e0e0e0;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:0.8rem;}
.theme-lang-switch{display:flex;align-items:center;gap:14px;margin-right:12px;}
.theme-toggle{background:transparent;border:1.5px solid var(--border);color:var(--text-secondary);width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:all var(--transition);}
.theme-toggle:hover{border-color:#aaa;color:var(--text);}
.theme-toggle:active{transform:scale(0.94);}
.theme-toggle.active{border-color:var(--gold);color:var(--gold);}
.theme-toggle svg{width:16px;height:16px;display:block;}
.lang-switch{display:inline-flex;border:1.5px solid var(--border);border-radius:16px;overflow:hidden;}
.lang-opt{background:transparent;border:none;color:var(--text-secondary);font-size:0.8rem;font-weight:600;padding:4px 12px;cursor:pointer;transition:all var(--transition);font-family:var(--font);line-height:1.4;}
.lang-opt:hover{color:var(--text);}
.lang-opt.active{background:var(--accent);color:#fff;}
.lang-opt + .lang-opt{border-left:1px solid var(--border);}
.page{padding:30px 24px 60px;max-width:1200px;margin:0 auto;animation:fadeIn .25s ease;}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}
.search-bar-wrap{padding:20px 0;display:flex;justify-content:center;}
.search-bar{max-width:500px;width:100%;position:relative;}
.search-bar form {display:flex;}
.search-input{flex:1;min-width:0;border:none;padding:10px 16px;font-family:var(--font);font-size:0.9rem;outline:none;background:#fff;border-radius: 24px 0 0 24px;}
.search-btn{flex-shrink:0;background:var(--accent);color:#fff;border:none;padding:10px 22px;cursor:pointer;font-weight:600;font-size:0.85rem;transition:background var(--transition);border-radius:0 24px 24px 0;}
.search-btn:hover{background:var(--accent-hover);}
.search-select{
    flex-shrink:0;
    border:none;
    padding:10px 14px;
    font-family:var(--font);
    font-size:0.9rem;
    outline:none;
    background:#f3f4f6;
    color:#333;
}
.hero-search .search-bar form .search-select{
    border-radius:24px 0 0 24px;
    padding:16px 14px;
    font-size:1rem;
}
.search-bar form > :first-child{border-radius:24px 0 0 24px !important;}
.search-bar form > :last-child{border-radius:0 24px 24px 0 !important;}
.search-bar form > :not(:first-child):not(:last-child){border-radius:0;}
.so-overlimit-tip{
    margin: 24px auto;
    max-width: 680px;
    padding: 16px 20px;
    border: 1px solid #f0c36d;
    background: #fff8e1;
    border-radius: 8px;
    color: #8a6d3b;
    text-align: center;
    font-size: 0.95rem;
}
.so-overlimit-tip a{ color: #d9480f; font-weight: 600; margin: 0 4px; }
#auto-search {display:none;position:absolute;top:100%;left:0;z-index:9999;background:#fff;overflow-y:auto;max-height:320px;border:1px solid #e0e0e0;border-radius:8px;box-shadow:0 4px 20px rgba(0,0,0,0.1);padding:4px 0;min-width:200px;}
#auto-search p {display:block;padding:8px 14px;margin:0;font-size:14px;color:#333;line-height:1.5;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none;}
#auto-search p em {font-weight:700;color:#d9480f;}
#auto-search p.hover {background:#f5f5f5;}
#auto-search p + p {border-top:1px solid #f6f6f6;}
.search-result-info h3 em,
.search-result-meta em{color:#d9480f;font-style:normal;font-weight:700;}
body.dark-mode .search-result-info h3 em,
body.dark-mode .search-result-meta em{color:var(--gold-soft);}
.section-title{font-size:1.2rem;font-weight:700;margin-bottom:20px;display:flex;align-items:center;gap:8px;}
.section-title::before{content:'';width:4px;height:20px;background:var(--accent);border-radius:2px;}
.book-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));gap:16px;list-style:none;}
@media(min-width:1200px){
    .book-grid{grid-template-columns:repeat(5, 1fr);}
}
@media(max-width:768px){
    .book-grid{grid-template-columns:repeat(2, 1fr);}
}
@media(max-width:480px){
    .book-grid{grid-template-columns:1fr;}
}
.book-grid li{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:all var(--transition);box-shadow:var(--shadow);}
.book-grid li:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);}
.book-grid li > a{display:block;text-decoration:none;color:inherit;}
.book-grid li > a img{width:100%;aspect-ratio:2/3;object-fit:cover;display:block;background:#f0f0f0;}
.book-grid li > a p{padding:10px;}
.book-grid li > a p b{display:block;font-weight:600;font-size:0.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.book-grid li > a p span{font-size:0.7rem;color:var(--text-secondary);}
.cover-text{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    aspect-ratio:2/3;
    padding:12px;
    background:var(--img-bg);
    color:var(--text-secondary);
    font-size:0.85rem;
    line-height:1.5;
    text-align:center;
    font-weight:600;
    word-break:break-all;
    border-radius:4px;
    box-sizing:border-box;
}
.cover-text.cover-lg{
    aspect-ratio:3/4;
    font-size:1.4rem;
    border-radius:12px;
}
body.dark-mode .cover-text{
    color:var(--text-muted);
    background:var(--img-bg);
}
.cover-pubtime{
    margin-top:14px;
    text-align:center;
    font-size:0.8rem;
    color:var(--text-muted);
}
.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.35);z-index:200;display:none;align-items:center;justify-content:center;backdrop-filter:blur(2px);}
.modal-overlay.show{display:flex;}
.modal{background:#fff;border-radius:12px;padding:32px 28px;width:380px;max-width:92vw;box-shadow:var(--shadow-lg);position:relative;animation:modalIn .25s ease;}
@keyframes modalIn{from{opacity:0;transform:scale(0.94);}to{opacity:1;transform:scale(1);}}
.modal h3{font-size:1.2rem;margin-bottom:20px;text-align:center;font-weight:700;}
.modal .form-group{margin-bottom:14px;position:relative;}
.modal label{display:block;font-size:0.8rem;font-weight:600;margin-bottom:4px;color:var(--text-secondary);}
.modal input{width:100%;padding:10px 14px;border:1.5px solid var(--border);border-radius:8px;font-size:0.9rem;font-family:var(--font);background:#fafafa;outline:none;transition:border var(--transition);}
.modal input:focus{border-color:#aaa;background:#fff;}
.modal .btn-dark{width:100%;padding:11px;border-radius:8px;margin-top:6px;}
.modal .switch-text{text-align:center;font-size:0.8rem;margin-top:14px;color:var(--text-secondary);}
.modal .switch-text span{color:var(--text);cursor:pointer;font-weight:600;text-decoration:underline;}
.close-modal{position:absolute;top:12px;right:16px;background:none;border:none;font-size:1.3rem;cursor:pointer;color:#999;}
#toggleToAnonymous {border:1px solid #e6e6e6;padding: 5px 15px;}
.auth-switch {
    text-align: center;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.auth-switch p { display: flex;
    justify-content: space-between;}
.auth-switch p i {font-style: normal}
.auth-switch a {
    color: #007bff;
    text-decoration: none;
}
.auth-switch a:hover {
    text-decoration: underline;
}
.toast{
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    background: #fff;
    color: #303133;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    max-width: 80vw;
    text-align: left;
}
.toast.show{
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast .toast-icon{
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}
.toast .toast-text{
    word-break: break-word;
}
.toast-success{ background:#f0f9eb; border-color:#b3e19d; color:#529b2e; }
.toast-success .toast-icon{ color:#67c23a; }
.toast-error{ background:#fef0f0; border-color:#fabcbc; color:#c45656; }
.toast-error .toast-icon{ color:#f56c6c; }
.toast-warning{ background:#fdf6ec; border-color:#f3d19e; color:#b88230; }
.toast-warning .toast-icon{ color:#e6a23c; }
.toast-info{ background:#ecf5ff; border-color:#a0cfff; color:#337ecc; }
.toast-info .toast-icon{ color:#409eff; }
#tuser,.nav-links > span{display:inline-flex;align-items:center;vertical-align:middle;}
.user-badge{position:relative;cursor:pointer;display:flex;align-items:center;gap:6px;}
.dropdown-arrow{font-size:0.7rem;margin-left:2px;color:var(--text-secondary);}
.user-dropdown{position:absolute;top:100%;right:0;background:var(--card);border:1px solid var(--border);border-radius:8px;min-width:160px;box-shadow:var(--shadow-lg);z-index:300;display:none;overflow:hidden;animation:dropdownIn .2s ease;}
#logged{position:relative;display:none;vertical-align:middle;}
#logged:hover .user-dropdown{display:block;}
@keyframes dropdownIn{from{opacity:0;transform:translateY(-8px);}to{opacity:1;transform:translateY(0);}}
.user-dropdown a{display:block;padding:10px 16px;font-size:0.85rem;color:var(--text);text-decoration:none;transition:background var(--transition);cursor:pointer;}
.user-dropdown a:hover{background:var(--hover-bg);}
.footer{text-align:center;padding:24px;font-size:0.75rem;color:var(--text-secondary);border-top:1px solid var(--border);}
.pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:32px;padding-bottom:20px;}
.pagination a,.pagination span,.pagination b{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 12px;border-radius:8px;font-size:0.85rem;font-weight:500;transition:all var(--transition);border:1.5px solid var(--border);background:var(--card);color:var(--text-secondary);}
.pagination a:hover{border-color:var(--accent);color:var(--text);background:#fafafa;}
.pagination .current,.pagination b{background:var(--accent);color:#fff;border-color:var(--accent);}
.pagination .disabled{opacity:0.4;pointer-events:none;}
.pagination > a:not([href]){border:none;background:none;min-width:auto;padding:0 6px;pointer-events:none;}
@media(max-width:600px){
    .header{padding:0 16px;}
    .nav-links{gap:12px;}
    .page{padding:16px 12px 40px;}
    .book-grid{grid-template-columns:repeat(auto-fill, minmax(120px, 1fr));gap:12px;}
    .pagination{gap:4px;}
    .pagination a,.pagination span{min-width:32px;height:32px;padding:0 8px;font-size:0.8rem;}
}
.detail-container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px 60px;
}
.book-detail-section{
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.book-cover-wrap{
    position: sticky;
    top: 76px;
    align-self: start;
}
.book-cover-large{
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    background: #f0f0f0;
}
.book-actions{
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.book-actions .btn{
    flex: 1;
    padding: 12px;
    font-size: 0.95rem;
    border-radius: 10px;
}
.btn-primary{
    background: var(--accent);
    color: #fff;
    border: 1.5px solid var(--accent);
}
.btn-primary:hover{
    background: var(--accent-hover);
}
.btn-secondary{
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-secondary:hover{
    border-color: #aaa;
    background: #f5f5f5;
}
.book-info-section{
    padding-top: 10px;
}
.book-title-large{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.book-author-large{
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.info-list{list-style:none;padding:0;margin:0;width:100%;grid-template-columns: 1fr 1fr; display: grid;}
.info-list li{display:grid;grid-template-columns:100px 1fr;padding:12px 0;font-size:0.9rem;border-bottom:1px solid var(--border);color:var(--text);font-weight:500;}
.info-list li:last-child{border-bottom:none;}
.info-list li span{color:var(--text-secondary);font-weight:500;}
.section-block{
    margin-bottom: 40px;
}
.section-block .section-title{
    margin-bottom: 16px;
}
.book-description{
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
    text-align: justify;
}
.book-description p{
    margin-bottom: 12px;
}
.download-section{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}
.download-section .section-title{
    margin-bottom: 16px;
}
.download-buttons{
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.download-btn{
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.download-btn.vip{
    background: var(--gold);
    color: #1a1a1a;
    border: 1.5px solid var(--gold);
}
.download-btn.vip:hover{
    background: #c49a4a;
}
.download-btn.normal{
    background: var(--card);
    color: var(--text);
    border: 1.5px solid var(--border);
}
.download-btn.normal:hover{
    border-color: #aaa;
    background: #f5f5f5;
}
.download-tip{
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.download-tip strong{
    color: var(--text);
}
.vip-group{
    margin-top: 30px;
}
.vip-title{
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vip-title::before{
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}
.vip-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}
.vip-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.vip-price{
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}
.buy-btn{
    padding: 6px 16px;
    border-radius: 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background var(--transition);
}
.buy-btn:hover{
    background: var(--accent-hover);
}
.vip-desc{
    font-size: 0.82rem;
    color: var(--text-secondary);
}
@media(max-width: 768px){
    .book-detail-section{
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .book-cover-wrap{
        position: static;
        max-width: 240px;
        margin: 0 auto;
    }
    .book-title-large{
        font-size: 1.5rem;
    }
    .download-buttons{
        flex-direction: column;
    }
}
.search-result-header{
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    margin:0 0 24px;
    position:sticky;top:0;z-index:10;
}
.search-result-header .page{
    padding: 0 24px;
    max-width:1200px;margin:0 auto;
}
.search-result-header .search-bar{
    border: 1.5px solid var(--border);
    border-radius: 24px;
    max-width: 600px;
}
.search-info{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.search-keyword{
    font-size: 1rem;
    font-weight: 600;
}
.search-keyword span{
    color: var(--accent);
}
.search-count{
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top:2px;
}
.search-filter{
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-item{
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: transparent;
    transition: all var(--transition);
    color:var(--text-secondary);
    text-decoration:none;
}
.filter-item:hover{border-color:var(--accent);color:var(--text)}
.filter-item.active{
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.sort-select{
    padding: 5px 10px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    background: var(--card);
    cursor: pointer;
    outline: none;
    color:var(--text);
}
.sort-select:focus{border-color:var(--accent)}
.book-list-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    list-style: none;
}
.book-list-grid li{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.book-list-grid li:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.book-list-grid li > a{
    display: block;
    text-decoration: none;
    color: inherit;
}
.book-list-grid li > a img{
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}
.book-list-grid li > a p{
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.book-list-grid li > a p b{
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.book-list-grid li > a p span{
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.empty-state{
    text-align: center;
    padding: 80px 20px;
}
.empty-state .empty-icon{
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
}
.empty-state h3{
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}
.empty-state p{
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
@media(max-width: 600px){
    .book-list-grid{
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    .book-list-info{
        padding: 10px;
    }
    .book-list-title{
        font-size: 0.85rem;
    }
    .search-info{
        flex-direction: column;
        align-items: flex-start;
    }
}
:root {
    --read-bg: #f5f0e8;
    --read-text: #2c2c2c;
    --read-line: #e0d8c8;
}
.read-page{
    background: var(--read-bg);
    color: var(--read-text);
    margin:0;
    padding:0;
    overflow: hidden;
}
body.dark-mode{
    --read-bg: #1a1a1a;
    --read-text: #d4d4d4;
    --read-line: #333;
}
.read-toolbar{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    border-bottom: 1px solid var(--read-line);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
body.dark-mode .read-toolbar{
    background: rgba(26, 26, 26, 0.95);
}
.read-toolbar.show{
    transform: translateY(0);
}
.toolbar-left{
    display: flex;
    align-items: center;
    gap: 16px;
}
.back-btn{
    background: none;
    border: none;
    font-size:1.2rem;
    cursor: pointer;
    color: var(--read-text);
    padding: 8px;
}
.book-title-small{
    font-size: 0.9rem;
    font-weight: 600;
}
.toolbar-right{
    display: flex;
    align-items: center;
    gap: 12px;
}
.toolbar-btn{
    background: none;
    border: none;
    font-size:1.1rem;
    cursor: pointer;
    color: var(--read-text);
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.toolbar-btn:hover{
    background: rgba(0,0,0,0.05);
}
body.dark-mode .toolbar-btn:hover{
    background: rgba(255,255,255,0.05);
}
.image-read-container{
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: var(--read-bg);
}
.book-image{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s;
}
.book-image.loading{
    opacity: 0.5;
}
.page-nav{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    border-top:1px solid var(--read-line);
}
body.dark-mode .page-nav{
    background: rgba(26, 26, 26, 0.95);
}
.page-nav-btn{
    padding: 10px 24px;
    background: transparent;
    border:1.5px solid var(--read-line);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--read-text);
    transition: all 0.2s;
    font-family: inherit;
}
.page-nav-btn:hover{
    background: rgba(0,0,0,0.05);
}
body.dark-mode .page-nav-btn:hover{
    background: rgba(255,255,255,0.05);
}
.page-nav-btn:disabled{
    opacity: 0.3;
    cursor: not-allowed;
}
.page-info{
    font-size: 0.85rem;
    color: #888;
}
.progress-bar{
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 99;
}
.progress-fill{
    height: 100%;
    background: #8b7355;
    width: 0%;
    transition: width 0.3s;
}
.loading-tip{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: var(--read-text);
    z-index: 50;
}
@media(max-width: 768px){
    .read-toolbar{
        padding: 0 12px;
    }
    .page-nav{
        padding: 0 12px;
    }
    .page-nav-btn{
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
.member-layout{
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 30px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn .25s ease;
}
.member-sidebar{
    position: sticky;
    top: 80px;
    align-self: start;
}
.member-nav ul{
    list-style: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.member-nav li{
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    border-bottom: 1px solid var(--border);
}
.member-nav li a {display: block}
.member-nav li:last-child{
    border-bottom: none;
}
.member-nav li:hover{
    background: #fafafa;
    color: var(--text);
}
.member-nav li.active{
    background: var(--accent);
    color: #fff;
}
.member-content{
    min-width: 0;
}
.member-layout-hasnav{
    grid-template-columns: 240px 1fr;
}
.member-page-top{
    display: none;
}
@media(max-width: 768px){
    .member-page-top{
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 14px 18px;
        margin-bottom: 16px;
    }
    .member-layout-hasnav .member-sidebar{
        display: none;
    }
}
.member-back-arrow{
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    padding-bottom: 4px;
    cursor: pointer;
    transition: all var(--transition);
}
.member-back-arrow:hover{
    border-color: var(--accent);
    color: var(--accent);
    background: #fafafa;
}
.member-breadcrumb{
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.member-breadcrumb a{
    color: var(--accent);
}
.member-breadcrumb .bc-sep{
    margin: 0 6px;
    color: #c0c4cc;
}
.member-exit{
    text-align: center;
    margin-top: 28px;
    padding-bottom: 8px;
}
.btn-danger{
    background: #f56c6c;
    border-color: #f56c6c;
    color: #fff;
}
.btn-danger:hover{
    background: #e04646;
    border-color: #e04646;
    color: #fff;
}
.guest-hero{
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 60px 32px 48px;
    text-align: center;
}
.guest-hero h1{
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.guest-hero p{
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 28px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.guest-hero .btn-group{
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.guest-hero .btn-dark{
    padding: 10px 28px;
    font-size: 0.9rem;
    border-radius: 20px;
}
.guest-hero .btn-outline{
    padding: 10px 28px;
    font-size: 0.9rem;
    border-radius: 20px;
}
.perks-section{
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 20px;
}
.perks-section .section-title{
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.perks-section .section-title::before{
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}
.perks-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.perk-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.perk-card:hover{
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.perk-icon{
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}
.perk-title{
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.perk-desc{
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.page{
    padding: 30px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn .25s ease;
}
@keyframes fadeIn{
    from{opacity:0;transform:translateY(6px);}
    to{opacity:1;transform:translateY(0);}
}
.profile-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.profile-card::after{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, #f5f5f5 100%);
    pointer-events: none;
}
.profile-avatar{
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.profile-info{
    flex: 1;
    position: relative;
    z-index: 1;
}
.profile-name{
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.profile-meta{
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}
.profile-tag{
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #1a1a1a;
    color: #fff;
    margin-left: 8px;
}
.profile-tag.vip{
    background: #d4a855;
    color: #1a1a1a;
}
.edit-profile-btn{
    position: relative;
    z-index: 1;
    align-self: flex-start;
}
.stats-row{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.stat-card:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stat-num{
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}
.stat-label{
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.stat-num .line-tag{
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0 2px;
}
    margin-top: 4px;
}
.section{
    margin-bottom: 20px;
}
.section-title{
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before{
    content: '';
    width: 4px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
}
.item-list{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    list-style: none;
}
.item-list li{
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 14px;
    transition: background var(--transition);
}
.item-list li:not(:last-child){
    border-bottom: 1px solid var(--border);
}
.item-list li:hover{
    background: #fafafa;
}
.item-cover{
    width: 36px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    background: #f0f0f0;
    flex-shrink: 0;
}
.item-list .cover-fallback{
    width: 36px;
    height: 54px;
    flex: 0 0 36px;
    border-radius: 4px;
    object-fit: cover;
    background: #f0f0f0;
    display: block;
}
body.dark-mode .item-list .cover-fallback{ background: var(--img-bg); }
@media (max-width: 768px){
    .item-list{
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }
    .item-list li{
        padding: 12px 14px;
        gap: 10px;
        align-items: flex-start;
    }
    .item-list li:not(.empty-tip){
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        margin-bottom: 12px;
    }
    .item-list li:not(.empty-tip):last-child{
        margin-bottom: 0;
    }
    .item-list .cover-fallback{
        width: 40px;
        height: 60px;
        flex: 0 0 40px;
    }
    .item-list .item-title{
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.4;
    }
    .item-list .item-sub span{ font-size: 0.72rem; }
    .item-list .item-action{
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }
}
@media (max-width: 480px){
    .item-list li{ padding: 10px 12px; }
    .item-list .cover-fallback{
        width: 36px;
        height: 54px;
        flex: 0 0 36px;
    }
}
.item-info{
    flex: 1;
    min-width: 0;
}
.item-title{
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-title b{
    font-weight: 600;
}
.item-sub{
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.item-sub span{
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.item-meta{
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    flex-shrink: 0;
}
.item-action{
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-link{
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition);
}
.btn-link:hover{
    color: var(--primary-dark);
    text-decoration: underline;
}
.btn-read{
    color: var(--text);
    font-weight: 500;
}
.btn-delete{
    color: #e74c3c;
}
.btn-delete:hover{
    color: #c0392b;
}
.item-list .item-action .btn-link{
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 0.78rem;
    white-space: nowrap;
}
.item-list .item-action .btn-link:hover{
    text-decoration: none;
    border-color: currentColor;
}
.empty-tip{
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.empty-tip a{
    color: var(--primary);
    text-decoration: none;
}
.empty-tip a:hover{
    text-decoration: underline;
}
.item-empty{
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.settings-list{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.settings-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    transition: background var(--transition);
}
.settings-row:not(:last-child){
    border-bottom: 1px solid var(--border);
}
.settings-row:hover{
    background: #fafafa;
}
.settings-label{
    font-size: 0.9rem;
    font-weight: 500;
}
.settings-value{
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.settings-row .btn-outline{
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 14px;
    margin-left: 16px;
}
.quick-actions{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.quick-action{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all var(--transition);
}
.quick-action:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #ccc;
}
.quick-action-icon{
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}
.quick-action-label{
    font-size: 0.82rem;
    font-weight: 600;
}
.modal-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}
.modal-overlay.show{
    display: flex;
}
.modal{
    background: var(--card);
    border-radius: 12px;
    padding: 32px 28px;
    width: 380px;
    max-width: 92vw;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalIn .25s ease;
}
@keyframes modalIn{
    from{opacity:0;transform:scale(0.94);}
    to{opacity:1;transform:scale(1);}
}
.modal h3{
    font-size: 1.15rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}
.modal .form-group{
    margin-bottom: 14px;
}
.modal label{
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-secondary);
}
.modal input{
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font);
    background: var(--surface-2);
    outline: none;
    transition: border var(--transition);
}
.modal input:focus{
    border-color: #aaa;
    background: var(--card);
}
.modal .btn-dark{
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    margin-top: 6px;
}
.close-modal{
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #999;
}
.modal .switch-text{
    text-align: center;
    font-size: 0.8rem;
    margin-top: 14px;
    color: var(--text-secondary);
}
.modal .switch-text span{
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}
.footer{
    text-align: center;
    padding: 24px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}
@media(max-width: 600px){
    .header{
        padding: 0 16px;
    }
    .nav-links{
        gap: 12px;
    }
    .guest-hero{
        padding: 40px 20px 36px;
    }
    .guest-hero h1{
        font-size: 1.4rem;
    }
    .perks-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-card{
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .profile-card::after{
        display: none;
    }
    .profile-meta{
        justify-content: center;
    }
    .edit-profile-btn{
        align-self: center;
    }
    .stats-row{
        grid-template-columns: repeat(2, 1fr);
    }
    .page{
        padding: 16px 12px 40px;
    }
    .item-meta{
        display: none;
    }
    .settings-row{
        flex-wrap: wrap;
        gap: 8px;
    }
    .settings-row .btn-outline{
        margin-left: 0;
    }
    .quick-actions{
        grid-template-columns: repeat(2, 1fr);
    }
}
.page-header-section{
    margin-bottom: 30px;
}
.page-title{
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.page-subtitle{
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.form-section{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.form-section-title{
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section-title::before{
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}
.form-group{
    position: relative;
    margin-bottom: 20px;
}
.form-group:last-child{
    margin-bottom: 0;
}
.form-label{
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.form-input{
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font);
    background: var(--surface-2);
    outline: none;
    transition: all var(--transition);
}
.form-input:focus{
    border-color: var(--accent);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}
.form-textarea{
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font);
    background: var(--surface-2);
    outline: none;
    transition: all var(--transition);
    min-height: 120px;
    resize: vertical;
}
.form-textarea:focus{
    border-color: var(--accent);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}
.form-hint{
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
}
.form-error{
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    font-size: 0.78rem;
    color: #e74c3c;
    width: 100%;
    text-align: right;
    z-index: 10;
}
.input-error{
    border-color: #e74c3c !important;
    background: #fef5f5 !important;
}
.card-type-tabs{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.card-type-tab{
    display: inline-block;
    padding: 8px 18px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    background: var(--card);
    transition: all var(--transition);
    cursor: pointer;
}
.card-type-tab:hover{
    border-color: var(--accent);
    color: var(--accent);
}
.card-type-tab.active{
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.promo-table-wrap{
    display: block;
}
.promo-cards{
    display: none;
}
.key-masked{
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--text);
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: 4px;
    word-break: break-all;
}
.icon-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1;
    color: var(--text-secondary);
    margin-left: 4px;
    transition: all var(--transition);
    vertical-align: middle;
}
.icon-btn:hover{
    border-color: var(--accent);
    color: var(--accent);
}
.row-copy-btn{
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card);
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}
.row-copy-btn:hover{
    border-color: var(--accent);
    color: var(--accent);
}
.promo-cards .promo-card-item{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}
.promo-cards .card-line{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.88rem;
    margin-bottom: 8px;
    gap: 6px;
}
.promo-cards .card-line:last-child{
    margin-bottom: 0;
}
.promo-cards .card-label{
    min-width: 64px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.promo-cards .card-actions{
    margin-top: 10px;
    text-align: right;
}
.promo-cards .bak-card .bak-card-head{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.promo-cards .bak-card .bak-card-uid{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}
.promo-cards .bak-card .bak-card-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}
.promo-cards .bak-card .bak-card-grid .card-line{
    margin-bottom: 0;
}
.promo-cards .bak-card .bak-card-time{
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text);
}
@media (max-width: 767px){
    .promo-table-wrap{
        display: none;
    }
    .promo-cards{
        display: block;
    }
}
.form-actions{
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}
.form-actions .btn{
    padding: 12px 32px;
    font-size: 0.95rem;
    border-radius: 10px;
}
.success-message{
    background: #d4edda;
    color: #155724;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.success-message.show{
    display: flex;
}
.forgot-pwd-page{
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 24px 60px;
}
.forgot-pwd-container{
    max-width: 400px;
    margin: 0 auto;
}
.change-pwd-page{
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 24px 60px;
}
.password-strength{
    margin-top: 8px;
}
.strength-bar{
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}
.strength-fill{
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.strength-fill.weak{
    width: 33%;
    background: #e74c3c;
}
.strength-fill.medium{
    width: 66%;
    background: #f39c12;
}
.strength-fill.strong{
    width: 100%;
    background: #27ae60;
}
.strength-text{
    font-size: 0.72rem;
    color: var(--text-muted);
}
.security-tips{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.security-tips-title{
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.security-tips-list{
    list-style: none;
}
.security-tips-list li{
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.security-tips-list li::before{
    content: '✓';
    color: #27ae60;
    font-weight: 700;
}
.download-page{
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px 60px;
}
.stats-overview{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.stat-overview-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.stat-overview-card:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stat-overview-icon{
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}
.stat-overview-num{
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}
.stat-overview-label{
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.download-list-section{
    margin-bottom: 40px;
}
.download-list-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.download-list-title{
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.download-list-title::before{
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}
.download-filter{
    display: flex;
    gap: 8px;
}
.filter-btn{
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 0.82rem;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--card);
    transition: all var(--transition);
    font-family: var(--font);
}
.filter-btn:hover, .filter-btn.active{
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.download-list{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    list-style: none;
}
.download-list li{
    transition: background var(--transition);
}
.download-list li:not(:last-child){
    border-bottom: 1px solid var(--border);
}
.download-list li:hover{
    background: #fafafa;
}
.download-list li > a{
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: background var(--transition);
}
.download-list li > a > img{
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    background: #f0f0f0;
    flex-shrink: 0;
}
.download-list li > a > div:first-of-type{
    flex: 1;
    min-width: 0;
}
.download-list li > a > div:first-of-type > p:first-child{
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.download-list li > a > div:first-of-type > p:first-child b{
    font-weight: 600;
}
.download-list li > a > div:first-of-type > p:last-child{
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.download-list li > a > div:first-of-type > p:last-child span{
    display: flex;
    align-items: center;
    gap: 4px;
}
.download-list li > a > div:last-child{
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.download-btn{
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    font-weight: 500;
}
.download-btn.primary{
    background: var(--accent);
    color: #fff;
    border: 1.5px solid var(--accent);
}
.download-btn.primary:hover{
    background: var(--accent-hover);
}
.download-btn.secondary{
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.download-btn.secondary:hover{
    border-color: #aaa;
    background: #f5f5f5;
}
.empty-downloads{
    text-align: center;
    padding: 80px 20px;
}
.empty-downloads .empty-icon{
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
}
.empty-downloads h3{
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}
.empty-downloads p{
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.download-detail{
    padding: 10px 0;
}
.detail-row{
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
}
.detail-row:last-child{
    border-bottom: none;
}
.detail-label{
    color: var(--text-secondary);
}
.detail-value{
    font-weight: 500;
}
.profile-page{
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px 60px;
}
.avatar-section{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.avatar-preview{
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 auto 20px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.avatar-preview:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.avatar-preview img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-overlay{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.75rem;
    padding: 8px;
    opacity: 0;
    transition: opacity var(--transition);
}
.avatar-preview:hover .avatar-overlay{
    opacity: 1;
}
.avatar-actions{
    display: flex;
    gap: 12px;
    justify-content: center;
}
.avatar-tip{
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 12px;
}
.hero-section{
    background: linear-gradient(135deg, #1a1a1a 0%, #333 50%);
    color: #fff;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 24px;
}
.hero-section h1{
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.hero-section p{
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 32px;
}
.hero-section h1,
.hero-section p{
    display: none;
}
.hero-section.hero-index h1,
.hero-section.hero-index p{
    display: block;
}
.hero-search{
    max-width: 600px;
    margin: 0 auto;
}
.hero-search .search-bar{
    max-width: 100%;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.hero-search .search-input{
    padding: 16px 20px;
    font-size: 1rem;
}
.hero-search .search-btn{
    padding: 16px 32px;
    font-size: 1rem;
}
.category-nav{
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 20px 0;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    list-style: none;
}
.category-nav::-webkit-scrollbar{display: none;}
.category-nav li{
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--card);
    border: 1.5px solid var(--border);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}
.category-nav li:hover, .category-nav li.active{
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.recommend-section{
    margin-bottom: 40px;
}
.hot-section{
    margin-bottom: 40px;
}
.hot-book-list{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    list-style: none;
}
@media(min-width:1200px){
    .hot-book-list{grid-template-columns:repeat(5, 1fr);}
}
@media(max-width:768px){
    .hot-book-list{grid-template-columns:repeat(2, 1fr);}
    .hero-section{
        padding: 24px 12px;
    }
    .hero-section h1{
        font-size: 1.6rem;
    }
    .hero-section p{
        font-size: 0.9rem;
    }
}
@media(max-width:480px){
    .hot-book-list{grid-template-columns:1fr;}
}
.hot-book-list li{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    overflow: hidden;
}
.hot-book-list li:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.hot-book-list li > a{
    display: flex;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}
.hot-book-list li > a img{
    width: 80px;
    height: 112px;
    object-fit: cover;
    border-radius: 4px;
    background: #f0f0f0;
    flex-shrink: 0;
}
.hot-book-list li > a p{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hot-book-list li > a p b{
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hot-book-list li > a p span{
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
@media(max-width: 600px){
    .hero-section{
        padding: 20px 12px;
    }
    .hero-section h1{
        font-size: 1.2rem;
    }
    .hero-section p{
        font-size: 0.8rem;
    }
    .hot-book-list{
        grid-template-columns: 1fr;
    }
}
@media(max-width: 768px){
    .member-layout{
        grid-template-columns: 1fr;
        padding: 0px 12px 40px;
    }
    .section-quick{
        display: none;
    }
    .member-sidebar{
        position: static;
        width: 100%;
    }
    .member-nav ul{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px;
        border-radius: var(--radius);
    }
    .member-nav li{
        padding: 10px 6px;
        border: 1px solid var(--border);
        border-radius: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        font-size: 0.82rem;
    }
    .member-nav li:last-child{
        border-bottom: 1px solid var(--border);
    }
    .member-nav .nav-exit{
        display: none !important;
    }
    .profile-card{
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .profile-card::after{
        display: none;
    }
    .profile-meta{
        justify-content: center;
    }
    .edit-profile-btn{
        align-self: center;
    }
    .stats-row{
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-card{
        padding: 14px 10px;
    }
    .stat-num{
        font-size: 1.25rem;
    }
    .quick-actions{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 600px){
    .change-pwd-page,
    .download-page,
    .profile-page{
        padding: 16px 12px 40px;
    }
    .page-title{
        font-size: 1.5rem;
    }
    .form-section{
        padding: 24px 20px;
    }
    .form-actions{
        flex-direction: column;
    }
    .form-actions .btn{
        width: 100%;
    }
    .stats-overview{
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 24px;
    }
    .stat-overview-card{
        padding: 16px 14px;
    }
    .stat-overview-num{
        font-size: 1.3rem;
    }
    .download-item{
        flex-wrap: wrap;
    }
    .download-actions{
        width: 100%;
        justify-content: flex-start;
        padding-left: 64px;
    }
    .avatar-section{
        padding: 30px 20px;
    }
    .avatar-preview{
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}
.book-grid li a.book-card{
    display: block;
    text-decoration: none;
    color: inherit;
}
.hot-book-list li a.hot-book-item{
    display: flex;
    text-decoration: none;
    color: inherit;
    padding: 16px;
}
a.download-item{
    display: flex;
    text-decoration: none;
    color: inherit;
}
.book-list-grid li a.book-list-card{
    display: block;
    text-decoration: none;
    color: inherit;
}
a.quick-action{
    display: flex;
    text-decoration: none;
    color: inherit;
}
.item-list li a.item-link{
    display: flex;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
}
.profile-detail{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.profile-field{
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.profile-field:last-of-type{
    border-bottom: none;
}
.profile-field label{
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}
.profile-field span,
.profile-field p{
    font-size: 0.95rem;
    font-weight: 500;
}
.profile-actions{
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.vip-page{
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 24px 60px;
}
.current-status{
    margin-bottom: 40px;
}
.status-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.status-card.vip-active{
    border-color: var(--gold);
    background: var(--gold-light);
}
.status-icon{
    font-size: 2.5rem;
    flex-shrink: 0;
}
.status-title{
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.status-desc{
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.vip-packages{
    margin-bottom: 40px;
}
.package-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.package-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.package-card:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.package-card.recommended{
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(212, 168, 85, 0.2);
}
.recommended-badge{
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--gold);
    color: #fff;
    padding: 4px 40px;
    font-size: 0.72rem;
    font-weight: 600;
    transform: rotate(45deg);
}
.package-header{
    text-align: center;
    margin-bottom: 24px;
}
.package-name{
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.package-price{
    color: var(--accent);
    margin-bottom: 8px;
}
.price-symbol{
    font-size: 1.2rem;
    vertical-align: top;
}
.price-amount{
    font-size: 2.5rem;
    font-weight: 700;
}
.price-period{
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.package-original{
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.package-features{
    margin-bottom: 24px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid #f5f5f5;
}
.feature-item{
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid #f5f5f5;
}
.feature-item:last-child{
    border-bottom: none;
}
.package-btn{
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
}
.vip-perks{
    margin-bottom: 40px;
}
.perk-list{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.perk-item{
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    transition: background var(--transition);
}
.perk-item:not(:last-child){
    border-bottom: 1px solid var(--border);
}
.perk-item:hover{
    background: #fafafa;
}
.perk-icon{
    font-size: 1.5rem;
    flex-shrink: 0;
}
.perk-name{
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.perk-desc{
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.vip-faq{
    margin-bottom: 40px;
}
.faq-list{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.faq-item{
    border-bottom: 1px solid var(--border);
}
.faq-item:last-child{
    border-bottom: none;
}
.faq-question{
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}
.faq-question:hover{
    background: #fafafa;
}
.faq-toggle{
    font-size: 0.7rem;
    color: var(--text-muted);
}
.faq-answer{
    padding: 0 20px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}
@media(max-width: 600px){
    .vip-page{
        padding: 16px 12px 40px;
    }
    .package-grid{
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .package-grid .package-card{
        padding: 10px 8px;
    }
    .package-grid .package-header{
        margin-bottom: 16px;
    }
    .package-grid .package-name{
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    .package-grid .price-amount{
        font-size: 1.6rem;
    }
    .package-grid .price-period{
        font-size: 0.75rem;
    }
    .package-grid .package-features{
        margin-bottom: 12px;
        font-size: 0.78rem;
    }
    .package-grid .feature-item{
        padding: 5px 0;
        font-size: 0.78rem;
    }
    .package-grid .package-btn{
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    .status-card{
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    .status-card .status-title{
        font-size: 1.1rem;
    }
    .status-card .status-icon{
        font-size: 2rem;
    }
    .current-status{
        margin-bottom: 24px;
    }
}
@media(max-width: 360px){
    .package-grid{
        gap: 8px;
    }
    .package-grid .package-card{
        flex: 0 0 66%;
        padding: 8px 6px;
    }
    .package-grid .package-name{
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    .package-grid .price-amount{
        font-size: 1.4rem;
    }
    .package-grid .price-period{
        font-size: 0.7rem;
    }
    .package-grid .package-features{
        margin-bottom: 10px;
        font-size: 0.72rem;
    }
    .package-grid .feature-item{
        padding: 4px 0;
        font-size: 0.72rem;
    }
    .package-grid .package-btn{
        padding: 8px 6px;
        font-size: 0.8rem;
    }
}
#payModal{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 200;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}
#payModal.show{
    display: flex;
}
#payModal .modal{
    background: var(--card);
    border-radius: 12px;
    padding: 32px 28px;
    width: 380px;
    max-width: 92vw;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalIn .25s ease;
}
@keyframes modalIn{
    from{opacity:0;transform:scale(0.94);}
    to{opacity:1;transform:scale(1);}
}
#payModal .close-modal{
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #999;
}
#payModal h3{
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}
.pay-info{
    text-align: center;
    margin-bottom: 20px;
}
.pay-amount{
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}
.pay-package-name{
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}
.pay-methods{
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pay-method-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}
.pay-method-btn:hover{
    border-color: var(--accent);
    background: #fafafa;
}
.pay-method-btn svg{
    flex-shrink: 0;
}
@media(max-width: 600px){
    #payModal .modal{
        width: 90vw;
        padding: 24px 20px;
        margin: 0 16px;
    }
    .pay-method-btn{
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}
.download-page{max-width:680px;margin:0 auto;padding:30px 24px 60px}.file-info-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:24px;margin-bottom:20px;box-shadow:var(--shadow)}.file-info-card .section-title{margin-bottom:16px}.icon{width:20px;height:20px;fill:currentColor;flex-shrink:0}.section-title .icon{width:22px;height:22px}.vip-btn .icon,.normal-btn .icon{width:18px;height:18px}.info-row{display:flex;justify-content:space-between;padding:12px 0;font-size:0.9rem;border-bottom:1px solid var(--border)}.info-row:last-child{border-bottom:none}.info-label{color:var(--text-secondary);font-weight:500}.info-value{font-weight:600;text-align:right}.vip-section{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:24px;margin-bottom:20px;box-shadow:var(--shadow)}.vip-section .section-title{margin-bottom:16px}.vip-btn{width:100%;padding:14px;border-radius:10px;border:none;font-size:0.95rem;font-weight:600;cursor:pointer;transition:all 0.2s;margin-bottom:10px;display:flex;align-items:center;justify-content:center;gap:8px;font-family:var(--font)}.vip-btn:last-child{margin-bottom:0}.vip-btn.primary{background:var(--gold);color:#1a1a1a}.vip-btn.primary:hover{background:#c49a4a}.vip-btn.overseas{background:hsl(210, 30%, 45%);color:#fff}.vip-btn.overseas:hover{background:hsl(210, 30%, 38%)}.vip-btn:disabled{opacity:0.5;cursor:not-allowed}.normal-section{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:24px;margin-bottom:20px;box-shadow:var(--shadow)}.normal-section .section-title{margin-bottom:12px}.wait-tip{text-align:center;color:var(--gold);font-weight:600;margin-bottom:16px;font-size:0.9rem}.normal-btn{width:100%;padding:14px;border-radius:10px;border:1.5px solid var(--border);background:var(--card);color:var(--text);font-size:0.95rem;font-weight:600;cursor:pointer;transition:all 0.2s;margin-bottom:10px;font-family:var(--font)}.normal-btn:last-child{margin-bottom:0}.normal-btn:hover:not(:disabled){border-color:var(--accent);background:#fafafa}.normal-btn:disabled{opacity:0.5;cursor:not-allowed}.login-tip{text-align:center;padding:12px;font-size:0.85rem;color:var(--text-secondary);background:#fafafa;border-radius:8px;margin-top:12px}.login-tip a{color:var(--accent);font-weight:600;text-decoration:underline}.offline-warn{background:#fff3cd;border:1px solid #ffc107;color:#856404;padding:10px 16px;border-radius:8px;font-size:0.85rem;margin-bottom:16px;display:flex;align-items:center;gap:8px}body.dark-mode .offline-warn{background:#332701;border-color:#665300;color:#ffd700}.loading-mask{text-align:center;padding:40px 0;color:var(--text-secondary)}@media (max-width:600px){.download-page{padding:16px 12px 40px}.file-info-card,.vip-section,.normal-section{padding:20px 16px}}
body.dark-mode .btn-outline{border-color:#555;color:#ccc}
body.dark-mode .btn-outline:hover,
body.dark-mode .download-btn.normal:hover,
body.dark-mode .download-btn.secondary:hover,
body.dark-mode .btn-secondary:hover,
body.dark-mode .member-nav li:hover,
body.dark-mode .item-list li:hover,
body.dark-mode .settings-row:hover,
body.dark-mode .download-list li:hover,
body.dark-mode .perk-item:hover,
body.dark-mode .faq-question:hover{ background: var(--hover-bg); }
body.dark-mode .book-cover-large,
body.dark-mode .book-list-grid li > a img,
body.dark-mode .item-cover,
body.dark-mode .download-list li > a > img,
body.dark-mode .hot-book-list li > a img{ background: var(--img-bg); }
body.dark-mode .profile-card::after{ background: linear-gradient(135deg, transparent 0%, var(--hover-bg) 100%); }
body.dark-mode .package-features,
body.dark-mode .feature-item{ border-bottom-color: var(--hover-bg); }
.search-result-list{list-style:none;margin:0;padding:0}
.search-result-item{display:flex;gap:16px;padding:16px 0;border-bottom:1px solid var(--border);align-items:flex-start}
.search-result-img{flex-shrink:0;width:100px;border-radius:4px;overflow:hidden}
.search-result-img img{width:100%;height:auto;display:block}
.search-result-info{flex:1;min-width:0}
.search-result-info h3{margin:0 0 8px;font-size:1rem;line-height:1.5}
.search-result-info h3 a{color:var(--text);text-decoration:none}
.search-result-info h3 a:hover{color:var(--accent)}
.search-result-meta p{margin:2px 0;font-size:0.85rem;color:var(--text);line-height:1.6}
.meta-label{color:var(--text-muted)}
.search-result-actions{display:flex;gap:8px;margin-top:10px}
.search-result-actions .btn{padding:4px 14px;font-size:0.8rem}
.result-cat-tag{display:inline-block;font-size:0.7rem;padding:1px 6px;border-radius:3px;vertical-align:middle;margin-left:6px;color:#fff;background:var(--accent,#7aa2ff)}
body.dark-mode .search-result-item{border-color:#333}
body.dark-mode .detail-row{ border-bottom-color: var(--img-bg); }
body.dark-mode .quick-action:hover{ border-color: #3a3a3a; }
body.dark-mode .modal .close-modal,
body.dark-mode #payModal .close-modal{ color: #bbb; }
body.dark-mode .pay-amount{ color: #e8a84c; }
body.dark-mode .normal-btn:hover:not(:disabled){ background: var(--surface-2); }
body.dark-mode .login-tip{ background: var(--surface-2); }
body.dark-mode .search-input,
body.dark-mode .search-select{ background:#444; color:#e0e0e0; }
body.dark-mode .search-btn{ background:#555; }
body.dark-mode .search-btn:hover{ background:#666; }
body.dark-mode .profile-tag{ background: #3a3a3a; }
body.dark-mode .pay-method-btn{ background: #f0f0f0; border-color:#d0d0d0; }
body.dark-mode .pay-method-btn:hover{ background: #e4e4e4; }
@media(max-width:600px){
    .pay-method-btn svg{ width:20px; height:20px; }
    .pay-method-btn{ font-size:0.85rem; gap:6px; }
}
body.dark-mode #auto-search{background:var(--card);border-color:var(--border);box-shadow:0 4px 16px rgba(0,0,0,.35)}
body.dark-mode #auto-search p{color:var(--text);padding:8px 14px;font-size:13px}
body.dark-mode #auto-search p em{color:var(--gold-soft)}
body.dark-mode #auto-search p.hover{background:var(--hover-bg);color:var(--text)}
body.dark-mode #auto-search p+p{border-top:1px solid var(--border)}
body.dark-mode .so-overlimit-tip{background:var(--surface-2);border-color:var(--border);color:var(--text-secondary)}
body.dark-mode .so-overlimit-tip a{color:var(--accent)}
body.dark-mode .auth-switch a{color:#66b0ff}
body.dark-mode #toggleToAnonymous{border-color:var(--border);color:var(--text)}
body.dark-mode .input-error{background:rgba(231,76,60,.12)!important;border-color:#e74c3c!important}
body.dark-mode .form-error{color:#e68080}
body.dark-mode .success-message{background:rgba(21,87,36,.15);color:#6bcf7f;border-color:#2d6a30}
body.dark-mode .btn-delete{color:#e68080}
body.dark-mode .btn-delete:hover{color:#ff9999}
body.dark-mode .user-avatar{background:var(--img-bg)}
body.dark-mode .strength-bar{background:var(--surface-2)}
body.dark-mode .hero-section p{color:#aaa}
.anonymous-form{text-align:left}
.key-section{margin-bottom:15px}
.key-section label{font-weight:700;margin-bottom:8px;display:block}
.key-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.key-row .key-value{font-family:monospace;font-size:13px;font-weight:700}
.btn-key-copy{padding:4px 12px;background:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:12px}
.btn-key-copy:hover{background:#0069d9}
.download-link{color:#28a745;text-decoration:underline;font-size:12px}
.download-link:hover{color:#218838}
.anonymous-login-section{margin-top:20px;padding-top:15px;border-top:1px solid #eee}
.anonymous-login-section .section-title{font-weight:700;margin-bottom:10px;color:#333;font-size:13px}
.key-input-row{display:flex;gap:8px;margin-bottom:15px}
.key-input-row input{flex:1;padding:8px;border:1px solid #ddd;border-radius:4px;font-family:monospace;font-size:12px;background:#fff;color:#333}
.btn-key-login{padding:8px 16px;background:#28a745;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:12px}
.btn-key-login:hover{background:#218838}
body.dark-mode .key-section label{color:var(--text)}
body.dark-mode .key-row .key-value{color:var(--text)}
body.dark-mode .anonymous-login-section{border-top-color:var(--border)}
body.dark-mode .anonymous-login-section .section-title{color:var(--text)}
body.dark-mode .key-input-row input{background:var(--surface-2);border-color:var(--border);color:var(--text)}
body.dark-mode .download-link{color:#4caf50}
body.dark-mode .btn-key-copy{background:#1a73e8}
.nav-toggle{display:none;}
.nav-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);opacity:0;pointer-events:none;transition:opacity .28s ease;z-index:999;}
body.nav-open{overflow:hidden;}
body.nav-open .header{z-index:1001;}
body.nav-open .nav-backdrop{opacity:1;pointer-events:auto;}
@media(max-width: 768px){
  .header{flex-wrap:nowrap;height:56px;padding:0 16px;}
  .nav-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin-left:8px;background:transparent;border:none;color:var(--text);cursor:pointer;padding:0;}
  .nav-toggle svg{width:24px;height:24px;display:block;}
  .nav-links{position:fixed;top:0;left:0;height:100vh;width:min(82vw,320px);background:var(--card);border-right:1px solid var(--border);box-shadow:var(--shadow-lg);transform:translateX(-100%);transition:transform .28s ease;flex-direction:column;align-items:stretch;gap:0;padding:64px 0 24px;overflow-y:auto;z-index:1000;}
  .nav-links a{display:block;padding:14px 20px;border-bottom:1px solid var(--border);font-size:0.95rem;}
  .nav-links a.active{color:var(--gold);border-left:3px solid var(--gold);}
  .nav-links .user-dropdown{position:static;display:block;box-shadow:none;border:none;border-bottom:1px solid var(--border);animation:none;}
  .nav-links .user-dropdown a{padding-left:36px;font-size:0.88rem;}
  .nav-links #tuser,
  .nav-links #logged{width:100%;}
  .nav-links #logged{flex-direction:column;align-items:stretch;}
  .nav-links #logged .user-badge{display:flex;width:100%;padding:14px 20px;border-bottom:1px solid var(--border);font-size:0.95rem;}
  .nav-links #logged .user-dropdown{position:static;display:block;width:100%;box-shadow:none;border:none;border-bottom:1px solid var(--border);border-radius:0;animation:none;}
  .nav-links #logged .user-dropdown a{padding:12px 20px 12px 36px;font-size:0.88rem;}
  .nav-links #tuser{display:flex;padding:14px 20px;}
  .nav-links #tuser .btn{width:100%;justify-content:center;}
  body.nav-open .nav-toggle{background:var(--hover-bg);border-radius:8px;}
  body.nav-open .nav-links{transform:translateX(0);}
  .theme-lang-switch{gap:8px;margin-right:0;}
  .lang-opt{padding:4px 8px;}
}
@media(max-width: 480px){
  .nav-links{width:min(86vw,300px);}
  .nav-links a{padding:13px 18px;font-size:0.9rem;}
  .lang-opt{padding:4px 6px;font-size:0.72rem;}
}
.promo-page{max-width:1200px;margin:0 auto;padding:24px;}
.promo-stats{margin-bottom:20px;}
.promo-link-card{margin-bottom:24px;}
.promo-link-row{display:flex;gap:10px;margin:12px 0;}
.promo-link-input{flex:1;padding:10px 14px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);color:var(--text);font-size:0.9rem;}
.promo-link-tip{font-size:0.8rem;color:var(--text-muted);margin-top:8px;}
.promo-card-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;}
.promo-card-item{padding:18px;}
.promo-card-item .vip-price{font-size:1.1rem;font-weight:700;margin-bottom:6px;}
.promo-card-item .vip-desc{font-size:0.82rem;color:var(--text-secondary);margin-bottom:12px;min-height:38px;}
.promo-table{width:100%;border-collapse:collapse;font-size:0.85rem;color:var(--text);}
.promo-table th,.promo-table td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:left;}
.promo-table td{color:var(--text);}
.promo-table th{color:var(--text-muted);font-weight:600;background:var(--surface-2);}
.promo-table tbody tr:hover{background:var(--hover-bg);}
body.dark-mode .promo-table th{background:#1e1e1e;color:#888 !important;}
body.dark-mode .promo-table td{color:#e8e8e8 !important;}
.card-no-text{font-family:monospace;font-size:0.8rem;letter-spacing:0.5px;}
.card-pwd-text{font-family:monospace;font-size:0.78rem;color:var(--text-secondary);margin-left:10px;}
.badge{display:inline-block;padding:2px 10px;border-radius:12px;font-size:0.75rem;font-weight:600;}
.badge-unused{background:#e1f3e1;color:#2e9e44;}
.badge-used{background:#fdeaea;color:#e05b5b;}
body.dark-mode .badge-unused{background:#1e3a26;color:#67c23a;}
body.dark-mode .badge-used{background:#3a1e1e;color:#f56c6c;}
.promo-msg{padding:12px 16px;border-radius:8px;margin-bottom:16px;font-size:0.9rem;}
.promo-msg-ok{background:#e1f3e1;color:#2e9e44;}
.promo-msg-err{background:#fdeaea;color:#e05b5b;}
body.dark-mode .promo-msg-ok{background:#1e3a26;color:#67c23a;}
body.dark-mode .promo-msg-err{background:#3a1e1e;color:#f56c6c;}
.card-list-results{display:flex;flex-direction:column;gap:8px;}
.card-result-item{padding:8px 12px;background:var(--surface-2);border:1px solid var(--border);border-radius:6px;}
.promo-form-row{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.promo-form-row label{min-width:80px;font-weight:500;}
.promo-select,.promo-input{padding:9px 12px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font-size:0.9rem;}
.promo-input{width:min(360px,100%);}
.promo-act-card{max-width:480px;margin:0 auto;}
@media(max-width:600px){
  .promo-link-row{flex-direction:column;}
  .promo-card-list{grid-template-columns:1fr;}
  .promo-form-row{flex-wrap:wrap;}
}

/* ===== 相关信息区块（内容页 [!--other.link.xs--]，v3 布局优化） ===== */
/* 桌面：4 列 × 2 行 8 条；H5：横向滑动；深色模式随站点变量自适应 */
.xs-related-block{margin:36px 0 4px}
.xs-related-block .section-title{font-size:1.12rem;font-weight:700;margin-bottom:14px;display:flex;align-items:center;gap:9px}
.xs-related-block .section-title::before{content:'';width:4px;height:18px;background:var(--accent,#2f6fb3);border-radius:2px}
.xs-related-block .section-title::after{content:'';flex:1;height:1px;background:var(--border,#e5e8ee);margin-left:12px;min-width:20px}
.xs-hscroll{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;gap:12px;padding:2px 2px 16px;list-style:none;scrollbar-width:none}
.xs-hscroll::-webkit-scrollbar{display:none}
.xs-hscroll li{flex:0 0 46%;scroll-snap-align:start;background:var(--card,#fff);border:1px solid var(--border,#e5e8ee);border-radius:12px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.05);transition:transform .2s ease,box-shadow .2s ease}
.xs-hscroll li:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.10)}
.xs-hscroll li>a{display:block;text-decoration:none;color:inherit}
.xs-hscroll li>a img{width:100%;height:200px;object-fit:cover;display:block;background:#f0f0f0;transition:transform .3s ease}
.xs-hscroll li:hover>a img{transform:scale(1.06)}
.xs-hscroll li>a p{padding:9px 10px 11px}
.xs-hscroll li>a p b{display:block;font-weight:600;font-size:.88rem;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text,#222)}
.xs-hscroll li>a p span{display:block;font-size:.72rem;color:var(--text-secondary,#8a94a3);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:768px){.xs-hscroll{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;overflow:visible;scroll-snap-type:none;padding:2px 0 8px;scrollbar-width:auto}.xs-hscroll li{flex:none;max-width:none}}
@media(max-width:480px){.xs-hscroll li{flex:0 0 50%}}
