:root {
    --wood-dark: #5c3a21;
    --wood: #8b5a2b;
    --wood-light: #c49a6c;
    --cream: #fdfbf7;
    --cream-dark: #f4eee2;
    --paper: #fffdfa;
    --ink: #2c241b;
    --ink-light: #6b5d4f;
    --accent: #9e2a2b;
    --gold: #c19a4b;
    --border: #e5d9c8;
    --shadow: 0 4px 15px rgba(92, 58, 33, 0.08);
    --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(--ink);
    line-height: 1.6;
    overflow-x: hidden;
  }
  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; display: block; }
  ul { list-style: none; }
  button { cursor: pointer; border: none; background: none; font-family: inherit; }

  /* 书架隔板线 */
  .shelf-divider {
    height: 12px;
    background: linear-gradient(to bottom, transparent, rgba(139, 90, 43, 0.15));
    border-bottom: 2px solid var(--wood);
    margin: 40px 0;
    box-shadow: 0 4px 6px -4px rgba(0,0,0,0.1);
  }

  /* 头部导航 */
  .header {
    background-color: var(--cream);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s;
  }
  .header.scrolled { box-shadow: var(--shadow); }
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
  }
  .logo-group { display: flex; align-items: center; gap: 10px; }
  .logo-group img { height: 32px; width: auto; border-radius: 4px; }
  .logo-text { font-size: 22px; font-weight: 800; color: var(--wood-dark); letter-spacing: 1px; }
  .nav-links { display: flex; gap: 24px; }
  .nav-links a { font-weight: 500; color: var(--ink-light); transition: color 0.2s; font-size: 15px; }
  .nav-links a:hover { color: var(--wood-dark); }
  .nav-actions { display: flex; align-items: center; gap: 16px; }
  .search-box {
    background: var(--cream-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
  }
  .search-box input { border: none; background: transparent; outline: none; font-size: 14px; width: 120px; color: var(--ink); }
  .btn-download-nav {
    background: var(--wood-dark);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    height: 40px;
    display: flex;
    align-items: center;
  }

  /* 首屏 */
  .hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }
  .hero-content h1 {
    font-size: 42px;
    line-height: 1.2;
    color: var(--wood-dark);
    margin-bottom: 16px;
    font-weight: 800;
  }
  .hero-subtitle {
    font-size: 18px;
    color: var(--ink-light);
    margin-bottom: 24px;
  }
  .data-row {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
  }
  .stamp-tag {
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    position: relative;
  }
  .stamp-tag::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid var(--gold);
    border-radius: 2px;
    pointer-events: none;
  }
  .stamp-tag strong { display: block; font-size: 18px; margin-bottom: 2px; }
  
  .hero-books {
    display: flex;
    gap: 12px;
    height: 480px;
    perspective: 1000px;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="%23ede4d3"/><path d="M0 50 L100% 50 M0 150 L100% 150 M0 250 L100% 250 M0 350 L100% 350" stroke="%23d1c1ab" stroke-width="2"/></svg>');
    background-size: cover;
    border-radius: var(--radius);
    padding: 20px;
    overflow: hidden;
    position: relative;
  }
  .book-spine {
    width: 40px;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    position: relative;
  }
  .book-spine img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .book-spine:hover {
    transform: translateX(-20px);
    z-index: 10;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.3);
  }
  .hero-featured {
    flex: 1;
    background: var(--paper);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 5;
    border: 1px solid var(--border);
  }
  .hero-featured img {
    width: 140px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    margin-bottom: 16px;
  }
  .hero-featured h3 { font-size: 20px; margin-bottom: 8px; color: var(--wood-dark); }
  .hero-featured p { font-size: 14px; color: var(--ink-light); margin-bottom: 16px; }
  
  .download-buttons { display: flex; gap: 16px; }
  .btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 160px;
    box-shadow: 0 4px 10px rgba(92, 58, 33, 0.2);
  }
  .btn-large:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(92, 58, 33, 0.3); }
  .btn-android { background: var(--wood-dark); }
  .btn-ios { background: #333; }

  /* 通用区块 */
  .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
  }
  .section-title {
    font-size: 28px;
    color: var(--wood-dark);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 28px;
    background: var(--wood);
    border-radius: 2px;
  }

  /* 热播推荐 */
  .hot-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
  .book-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(92, 58, 33, 0.15);
  }
  .book-card-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
  }
  .book-card:hover .book-card-img { transform: translateY(-8px); }
  .book-card h3 { font-size: 16px; margin-bottom: 6px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .book-meta { font-size: 12px; color: var(--ink-light); display: flex; justify-content: space-between; margin-bottom: 8px; }
  .tag {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--cream-dark);
    color: var(--wood-dark);
    border: 1px solid var(--border);
  }
  .tag-hot { color: var(--accent); border-color: var(--accent); background: #fff0f0; }
  .tag-exclusive { color: #fff; background: var(--gold); border-color: var(--gold); }
  .card-corner {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 8px;
  }

  /* 更新日历 */
  .calendar-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
  }
  .cal-tab {
    padding: 8px 16px;
    font-size: 15px;
    color: var(--ink-light);
    border-radius: 20px;
    transition: all 0.2s;
  }
  .cal-tab.active { background: var(--wood); color: #fff; font-weight: bold; }
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .cal-item {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
  }
  .cal-item img { width: 60px; height: 80px; object-fit: cover; border-radius: 4px; }
  .cal-info h3 { font-size: 15px; margin-bottom: 4px; }
  .cal-info p { font-size: 12px; color: var(--ink-light); }
  .stamp-arrived {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%) rotate(-15deg);
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    opacity: 0.8;
  }

  /* 排行榜 */
  .rank-list { display: flex; flex-direction: column; gap: 12px; }
  .rank-card {
    display: flex;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    gap: 16px;
    transition: background 0.2s;
  }
  .rank-card:hover { background: var(--cream-dark); }
  .rank-card.top1 { border-color: var(--gold); background: #fffcf5; box-shadow: 0 2px 10px rgba(193, 154, 75, 0.2); }
  .rank-num { font-size: 20px; font-weight: bold; color: var(--ink-light); width: 30px; text-align: center; }
  .rank-card.top1 .rank-num { color: var(--gold); }
  .rank-card img { width: 50px; height: 68px; object-fit: cover; border-radius: 4px; }
  .rank-info { flex: 1; }
  .rank-info h3 { font-size: 16px; margin-bottom: 4px; }
  .rank-info p { font-size: 13px; color: var(--ink-light); }
  .rank-stats { display: flex; align-items: center; gap: 16px; font-size: 14px; }
  .rank-trend.up { color: #d32f2f; }
  .rank-trend.down { color: #388e3c; }
  .medal { font-size: 12px; background: var(--gold); color: #fff; padding: 2px 6px; border-radius: 10px; margin-left: 8px; }

  /* 题材分类 */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .cat-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .cat-code {
    font-family: monospace;
    font-size: 12px;
    color: var(--wood);
    border: 1px dashed var(--wood);
    display: inline-block;
    padding: 2px 8px;
    margin-bottom: 12px;
    border-radius: 4px;
  }
  .cat-card h3 { font-size: 18px; margin-bottom: 16px; color: var(--wood-dark); }
  .cat-covers { display: flex; gap: 8px; margin-bottom: 12px; }
  .cat-covers img { width: 45px; height: 60px; object-fit: cover; border-radius: 4px; }
  .cat-count { font-size: 12px; color: var(--ink-light); }

  /* 独播首发 */
  .exclusive-section { display: flex; gap: 40px; }
  .exclusive-left {
    flex: 1;
    background: var(--wood-dark);
    border-radius: var(--radius);
    padding: 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  .exclusive-left::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--gold), #f3d78a, var(--gold));
  }
  .exc-content { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
  .exc-content img { width: 120px; height: auto; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
  .exc-text h3 { font-size: 24px; margin-bottom: 12px; color: var(--gold); }
  .exc-text p { font-size: 14px; opacity: 0.9; margin-bottom: 20px; line-height: 1.6; }
  .exc-btn { background: var(--gold); color: var(--wood-dark); padding: 10px 24px; border-radius: 20px; font-weight: bold; display: inline-block; }
  
  .exclusive-right { flex: 1; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
  .exc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .exc-item { display: flex; gap: 12px; align-items: center; }
  .exc-item img { width: 50px; height: 68px; object-fit: cover; border-radius: 4px; }
  .exc-item-info h3 { font-size: 14px; margin-bottom: 4px; }
  .exc-item-info span { font-size: 12px; color: var(--ink-light); }

  /* 免费专区 */
  .free-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .free-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    position: relative;
    transition: transform 0.2s;
  }
  .free-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .free-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; margin-bottom: 8px; }
  .free-card h3 { font-size: 15px; margin-bottom: 4px; }
  .free-card p { font-size: 12px; color: var(--ink-light); }
  .tag-free { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; }

  /* 用户评价 */
  .review-stats {
    display: flex;
    justify-content: space-around;
    background: var(--cream-dark);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 40px;
  }
  .stat-item { text-align: center; }
  .stat-item strong { display: block; font-size: 32px; color: var(--wood-dark); font-weight: 800; }
  .stat-item span { font-size: 14px; color: var(--ink-light); }

  .review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .review-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.03);
  }
  .review-card:nth-child(even) { transform: translateY(12px); }
  .rev-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
  .rev-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--cream-dark); padding: 4px; border: 1px solid var(--border); }
  .rev-user h4 { font-size: 14px; margin: 0; }
  .rev-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
  .rev-text { font-size: 14px; color: var(--ink-light); margin-bottom: 16px; }
  .rev-line { height: 1px; background: repeating-linear-gradient(to right, var(--ink-light) 0, var(--ink-light) 4px, transparent 4px, transparent 8px); opacity: 0.3; margin-top: 10px; }

  /* FAQ */
  .faq-list { display: flex; flex-direction: column; gap: 12px; }
  .faq-item {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .faq-q {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    background: var(--cream);
    transition: background 0.2s;
  }
  .faq-q:hover { background: var(--cream-dark); }
  .faq-num { color: var(--wood); margin-right: 12px; font-family: monospace; font-size: 18px; }
  .faq-a { padding: 0 20px 16px 52px; font-size: 14px; color: var(--ink-light); display: none; }
  .faq-item.active .faq-a { display: block; }
  .faq-item.active .faq-q { background: var(--cream-dark); }

  /* 办证台 */
  .steps-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
  .step-card {
    flex: 1;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    position: relative;
  }
  .step-icon { font-size: 32px; margin-bottom: 12px; color: var(--wood-dark); }
  .step-card h3 { font-size: 18px; margin-bottom: 8px; }
  .step-card p { font-size: 13px; color: var(--ink-light); }

  .license-cards { display: flex; gap: 40px; justify-content: center; margin-top: 40px; }
  .license-card {
    flex: 1;
    max-width: 400px;
    background: var(--paper);
    border: 2px solid var(--wood);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .license-card::after {
    content: '';
    position: absolute;
    bottom: -20px; right: -20px; width: 100px; height: 100px;
    border: 4px solid rgba(158, 42, 43, 0.1);
    border-radius: 50%;
  }
  .license-card h3 { font-size: 24px; color: var(--wood-dark); margin-bottom: 8px; }
  .license-card .card-num { font-family: monospace; font-size: 14px; color: var(--ink-light); letter-spacing: 2px; margin-bottom: 24px; }
  .license-card .btn-large { width: 100%; max-width: none; }

  /* 页脚 */
  .footer {
    background: var(--cream-dark);
    border-top: 1px solid var(--border);
    padding: 40px 20px 20px;
    color: var(--ink-light);
    font-size: 13px;
    margin-top: 60px;
  }
  .footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
  .footer-brand p { margin-bottom: 12px; }
  .footer-col h4 { color: var(--ink); margin-bottom: 16px; font-size: 14px; }
  .footer-col ul { display: flex; flex-direction: column; gap: 8px; }
  .footer-col a:hover { color: var(--wood-dark); }
  .footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--ink-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .footer-bottom a { color: var(--ink-light); }
  .footer-bottom a:hover { color: var(--wood-dark); text-decoration: underline; }

  /* 悬浮底栏 */
  .mobile-download-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--paper);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px 16px;
    z-index: 1000;
    justify-content: space-between;
    gap: 12px;
  }
  .mobile-download-bar .btn-large { flex: 1; padding: 12px 0; font-size: 15px; min-width: auto; }

  /* 响应式 */
  @media (max-width: 1200px) {
    .hot-grid { grid-template-columns: repeat(4, 1fr); }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
  }
  @media (max-width: 992px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 36px; }
    .data-row { justify-content: center; }
    .download-buttons { justify-content: center; }
    .hero-books { height: 300px; display: none; }
    .hero-featured { display: none; }
    .hot-grid { grid-template-columns: repeat(3, 1fr); }
    .calendar-grid { grid-template-columns: repeat(2, 1fr); }
    .exclusive-section { flex-direction: column; }
    .review-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 768px) {
    .nav-links, .search-box, .btn-download-nav { display: none; }
    .hero-content h1 { font-size: 28px; }
    .hot-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .free-grid { grid-template-columns: repeat(2, 1fr); }
    .review-grid { grid-template-columns: 1fr; }
    .review-card:nth-child(even) { transform: none; }
    .exc-list { grid-template-columns: 1fr; }
    .steps-row { flex-direction: column; }
    .license-cards { flex-direction: column; align-items: center; }
    .license-card { width: 100%; max-width: 100%; }
    .footer-container { grid-template-columns: 1fr; }
    .mobile-download-bar { display: flex; }
    .footer-bottom { padding-bottom: 70px; }
    .rank-card { flex-wrap: wrap; }
    .rank-stats { width: 100%; justify-content: space-between; margin-top: 8px; }
  }
  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
  }