:root {
        --wood-dark: #5c3a21;
        --wood-mid: #8b5a2b;
        --wood-light: #d2b48c;
        --cream: #fdfbf7;
        --paper: #f4eee0;
        --accent-red: #b23a30;
        --text-main: #332211;
        --text-light: #665544;
        --shelf-line: #a67c52;
        --shadow: rgba(92, 58, 33, 0.15);
        --radius: 8px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        background-color: var(--cream);
        color: var(--text-main);
        line-height: 1.6;
        overflow-x: hidden;
    }
    a { text-decoration: none; color: inherit; }
    img { max-width: 100%; display: block; }
    ul { list-style: none; }
    
    /* 书架隔板线 */
    .shelf-divider {
        height: 12px;
        background: linear-gradient(to bottom, var(--wood-mid) 0%, var(--wood-dark) 100%);
        border-top: 3px solid var(--wood-light);
        border-bottom: 3px solid var(--wood-dark);
        box-shadow: 0 4px 6px var(--shadow);
        margin: 40px 0;
    }

    /* 顶部导航 */
    header {
        position: sticky;
        top: 0;
        background-color: var(--cream);
        box-shadow: 0 2px 10px var(--shadow);
        z-index: 100;
        padding: 10px 20px;
    }
    .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }
    .logo-area { display: flex; align-items: center; gap: 8px; }
    .logo-area img { height: 32px; }
    .logo-area span { font-size: 20px; font-weight: bold; color: var(--wood-dark); }
    .nav-links { display: flex; gap: 15px; font-size: 15px; }
    .nav-links a { color: var(--text-light); }
    .nav-links a:hover { color: var(--accent-red); }
    .search-box {
        flex: 1; max-width: 200px;
        background: var(--paper);
        border: 1px solid var(--wood-light);
        border-radius: 20px;
        padding: 6px 12px;
        font-size: 14px;
        color: var(--text-light);
    }
    .nav-download {
        background-color: var(--wood-dark);
        color: #fff;
        padding: 8px 16px;
        border-radius: 4px;
        font-size: 14px;
        white-space: nowrap;
    }

    main { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

    /* 首屏：书脊墙 */
    .hero { display: flex; gap: 40px; padding: 40px 0; align-items: center; }
    .hero-content { flex: 1; }
    .hero-content h1 { font-size: 38px; color: var(--wood-dark); margin-bottom: 15px; line-height: 1.3; }
    .hero-hook { font-size: 18px; color: var(--text-light); margin-bottom: 20px; }
    .data-row { display: flex; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
    .data-tag {
        background: var(--paper); border: 1px solid var(--wood-light);
        padding: 6px 12px; border-radius: 4px; font-size: 14px;
        color: var(--wood-dark); display: flex; align-items: center; gap: 5px;
    }
    .data-tag::before {
        content: '馆藏章'; font-size: 10px; color: var(--accent-red);
        border: 1px solid var(--accent-red); padding: 1px 4px; border-radius: 2px;
    }
    .download-btns { display: flex; gap: 15px; }
    .btn {
        display: inline-block; text-align: center; padding: 12px 30px;
        font-size: 16px; border-radius: 6px; font-weight: bold; cursor: pointer;
    }
    .btn-android { background-color: var(--wood-mid); color: white; }
    .btn-ios { background-color: var(--wood-dark); color: white; }

    /* 书脊墙视觉 */
    .bookshelf {
        flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
        background: var(--wood-light); padding: 20px; border-radius: var(--radius);
        box-shadow: inset 0 0 20px var(--shadow); position: relative;
    }
    .book-spine {
        aspect-ratio: 2/3; border-radius: 2px; overflow: hidden;
        box-shadow: 2px 2px 5px rgba(0,0,0,0.3); transition: transform 0.3s;
        position: relative; cursor: pointer;
    }
    .book-spine img { width: 100%; height: 100%; object-fit: cover; }
    .book-spine:hover { transform: translateY(-10px); }
    .featured-book {
        grid-column: span 2; grid-row: span 2; position: relative;
    }
    .featured-book img { width: 100%; height: 100%; object-fit: cover; }
    .featured-info {
        position: absolute; bottom: 0; left: 0; right: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
        color: white; padding: 10px; font-size: 14px;
    }
    .free-badge {
        background: var(--accent-red); color: white; padding: 2px 6px;
        font-size: 10px; border-radius: 2px; position: absolute; top: 10px; right: 10px;
    }
    .book-spine.pulled { transform: translateY(-10px); z-index: 10; }
    .book-spine .spine-info {
        display: none; position: absolute; bottom: 0; left: 0; right: 0;
        background: var(--paper); color: var(--wood-dark); font-size: 12px;
        padding: 4px; text-align: center;
    }
    .book-spine.pulled .spine-info { display: block; }

    /* 热播推荐 */
    .section-title { font-size: 28px; color: var(--wood-dark); margin-bottom: 25px; border-left: 5px solid var(--accent-red); padding-left: 10px; }
    .shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; margin-bottom: 40px; }
    .book-card {
        background: var(--paper); border-radius: var(--radius);
        padding: 10px; box-shadow: 0 4px 6px var(--shadow);
        transition: transform 0.3s; position: relative;
    }
    .book-card:hover { transform: translateY(-5px); }
    .book-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; margin-bottom: 10px; }
    .book-card h3 { font-size: 14px; margin-bottom: 5px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .book-meta { font-size: 12px; color: var(--text-light); display: flex; justify-content: space-between; }
    .tag-corner {
        position: absolute; top: 0; right: 0; background: var(--accent-red);
        color: white; font-size: 11px; padding: 2px 6px; border-bottom-left-radius: 4px;
    }
    .hot-card { border: 2px solid var(--wood-mid); background: #fff; }

    /* 借阅榜 */
    .list-card {
        display: flex; align-items: center; background: var(--paper);
        padding: 15px; border-radius: var(--radius); margin-bottom: 12px;
        border-left: 4px solid var(--wood-light); gap: 15px;
    }
    .rank-num { font-size: 20px; font-weight: bold; color: var(--wood-dark); width: 30px; text-align: center; }
    .list-card.top-1 { border-left-color: var(--accent-red); background: #fff0e0; }
    .list-cover img { width: 50px; height: 75px; object-fit: cover; border-radius: 4px; }
    .list-info { flex: 1; }
    .list-info h3 { font-size: 16px; margin-bottom: 4px; }
    .list-meta { font-size: 13px; color: var(--text-light); display: flex; gap: 15px; }
    .trend-up { color: var(--accent-red); }
    .trend-down { color: #557755; }

    /* 题材分类 */
    .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
    .cat-card {
        background: var(--paper); border: 1px solid var(--wood-light);
        border-radius: var(--radius); padding: 15px; transition: transform 0.2s;
    }
    .cat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 12px var(--shadow); }
    .call-num { font-size: 12px; color: var(--text-light); border-bottom: 1px dashed var(--wood-light); padding-bottom: 5px; margin-bottom: 10px; }
    .cat-card h3 { font-size: 18px; color: var(--wood-dark); margin-bottom: 10px; }
    .cat-covers { display: flex; gap: 5px; margin-bottom: 10px; }
    .cat-covers img { width: 40px; height: 60px; object-fit: cover; border-radius: 2px; }
    .cat-count { font-size: 12px; color: var(--text-light); }

    /* 独播首发 */
    .exclusive-wrap { display: flex; gap: 30px; background: var(--paper); border: 3px solid var(--wood-dark); border-radius: var(--radius); padding: 30px; }
    .exclusive-main { flex: 1; display: flex; gap: 20px; }
    .exclusive-main img { width: 120px; height: 180px; object-fit: cover; border-radius: 4px; border: 2px solid var(--wood-light); }
    .exclusive-text h3 { font-size: 22px; color: var(--accent-red); margin-bottom: 10px; }
    .exclusive-text p { font-size: 14px; color: var(--text-light); margin-bottom: 15px; }
    .countdown-tag { font-size: 14px; font-weight: bold; color: var(--wood-dark); margin-bottom: 15px; }
    .exclusive-list { flex: 1; background: var(--cream); padding: 15px; border-radius: var(--radius); }
    .exclusive-list h4 { margin-bottom: 15px; font-size: 16px; }
    .ex-item { display: flex; justify-content: space-between; font-size: 13px; padding: 10px 0; border-bottom: 1px solid #e0d5c0; }
    .ex-item:last-child { border-bottom: none; }

    /* 免费专区 */
    .free-badge-tag { background: #4CAF50; color: white; padding: 2px 6px; font-size: 11px; border-radius: 2px; display: inline-block; margin-top: 5px; }

    /* 用户评价 */
    .reviews-grid { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; }
    .review-card {
        min-width: 280px; background: var(--paper); padding: 20px;
        border-radius: var(--radius); border: 1px dashed var(--wood-light);
        scroll-snap-align: start;
    }
    .review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
    .review-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: #fff; }
    .stars { color: var(--accent-red); letter-spacing: 2px; font-size: 14px; }
    .review-text { font-size: 14px; color: var(--text-light); line-height: 1.5; }
    .review-line { height: 1px; background: repeating-linear-gradient(90deg, var(--wood-light), var(--wood-light) 4px, transparent 4px, transparent 8px); margin-top: 15px; }

    /* FAQ */
    .faq-list { display: flex; flex-direction: column; gap: 10px; }
    .faq-item { border: 1px solid var(--wood-light); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
    .faq-q {
        padding: 15px; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between;
        background: #fff; transition: background 0.2s;
    }
    .faq-q:hover { background: #f9f4ea; }
    .faq-a { padding: 15px; display: none; font-size: 14px; color: var(--text-light); border-top: 1px solid var(--wood-light); }
    .faq-item.active .faq-a { display: block; }
    .faq-item.active .faq-q { background: #f4eee0; color: var(--accent-red); }

    /* 办证台 */
    .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
    .step-card { text-align: center; background: var(--paper); padding: 30px 20px; border-radius: var(--radius); }
    .step-card h3 { font-size: 18px; color: var(--wood-dark); margin-bottom: 10px; }
    .step-card p { font-size: 14px; color: var(--text-light); }
    
    .download-cards { display: flex; gap: 30px; justify-content: center; }
    .card-pass {
        flex: 1; max-width: 400px; background: #fff; border: 2px solid var(--wood-dark);
        border-radius: 12px; padding: 30px; text-align: center; position: relative;
        box-shadow: 0 8px 15px var(--shadow);
    }
    .card-pass::before {
        content: '读者证'; position: absolute; top: 10px; left: 10px;
        font-size: 12px; color: var(--text-light); border: 1px solid var(--text-light);
        padding: 2px 6px; border-radius: 2px;
    }
    .card-pass h3 { font-size: 24px; margin: 20px 0; color: var(--wood-dark); }
    .card-pass .seal {
        width: 60px; height: 60px; border: 2px solid var(--accent-red); border-radius: 50%;
        display: flex; align-items: center; justify-content: center; color: var(--accent-red);
        font-size: 12px; transform: rotate(-15deg); margin: 0 auto 20px;
    }
    .card-pass .btn { width: 100%; font-size: 18px; padding: 15px; }

    /* 页脚 */
    footer {
        background: var(--wood-dark); color: var(--wood-light);
        padding: 40px 20px 20px; margin-top: 50px; font-size: 13px;
    }
    .footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
    .footer-brand { flex: 1; min-width: 200px; }
    .footer-brand p { margin-top: 10px; line-height: 1.5; }
    .footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
    .footer-col h4 { color: #fff; margin-bottom: 15px; font-size: 15px; }
    .footer-col a { display: block; margin-bottom: 8px; color: var(--wood-light); }
    .footer-col a:hover { color: #fff; }
    .footer-bottom {
        max-width: 1200px; margin: 30px auto 0; padding-top: 20px;
        border-top: 1px solid var(--wood-mid); text-align: center;
        font-size: 12px; color: #a08b73;
    }
    .footer-bottom a { color: #a08b73; margin: 0 5px; }

    /* 悬浮下载条 (移动端) */
    .mobile-download-bar {
        display: none; position: fixed; bottom: 0; left: 0; right: 0;
        background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding: 10px; z-index: 200; justify-content: space-between; gap: 10px;
    }
    .mobile-download-bar .btn { flex: 1; padding: 12px 0; }
    .close-bar { background: none; border: none; font-size: 20px; color: #999; padding: 0 10px; cursor: pointer; }

    /* 响应式 */
    @media (max-width: 992px) {
        .hero { flex-direction: column; }
        .hero-content { text-align: center; }
        .data-row, .download-btns { justify-content: center; }
        .exclusive-wrap { flex-direction: column; }
        .steps-grid { grid-template-columns: 1fr; }
        .download-cards { flex-direction: column; align-items: center; }
    }
    @media (max-width: 768px) {
        .nav-links, .search-box { display: none; }
        .bookshelf { grid-template-columns: repeat(3, 1fr); }
        .featured-book { grid-column: span 3; }
        .shelf-grid { grid-template-columns: repeat(2, 1fr); }
        .cat-grid { grid-template-columns: repeat(2, 1fr); }
        .reviews-grid { flex-direction: column; overflow-x: visible; }
        .review-card { min-width: 100%; }
        .mobile-download-bar { display: flex; }
        body { padding-bottom: 70px; }
    }
    @media (prefers-reduced-motion: reduce) {
        * { transition: none !important; animation: none !important; }
    }