:root {
    --primary: #eab308;
    --accent: #f59e0b;
    --bg: #18181b;
    --text: #fafafa;
    --card-bg: #27272a;
    --card-hover: #323236;
    --radius-card: 16px;
    --radius-btn: 9999px;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-hover: 0 12px 32px rgba(234,179,8,0.15);
  }
  * { margin:0; padding:0; box-sizing:border-box; }
  html { scroll-behavior:smooth; }
  body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
  }
  /* 几何色块背景装饰 */
  .bg-shapes { position:fixed; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:0; overflow:hidden; }
  .bg-shapes .shape { position:absolute; opacity:0.06; }
  .bg-shapes .shape-circle { width:220px; height:220px; border-radius:50%; background:var(--primary); top:15%; left:5%; animation:floatShape 8s ease-in-out infinite; }
  .bg-shapes .shape-square { width:140px; height:140px; background:var(--accent); bottom:10%; right:8%; transform:rotate(45deg); animation:floatShape 10s ease-in-out infinite reverse; }
  .bg-shapes .shape-triangle { width:0; height:0; border-left:80px solid transparent; border-right:80px solid transparent; border-bottom:120px solid var(--primary); top:60%; left:45%; animation:floatShape 12s ease-in-out infinite; }
  .bg-shapes .shape-circle-small { width:80px; height:80px; border-radius:50%; background:var(--accent); top:5%; right:20%; animation:floatShape 6s ease-in-out infinite; }
  .bg-shapes .shape-square-small { width:60px; height:60px; background:var(--primary); top:40%; left:80%; transform:rotate(15deg); animation:floatShape 7s ease-in-out infinite reverse; }
  @keyframes floatShape { 0%,100% { transform:translateY(0) rotate(0deg); } 50% { transform:translateY(-30px) rotate(10deg); } }

  /* 滚动进度条 */
  .scroll-progress { position:fixed; top:0; left:0; width:0%; height:3px; background:linear-gradient(90deg, var(--primary), var(--accent)); z-index:9999; transition:width 0.1s ease; }

  /* 布局 */
  .app-container { display:flex; min-height:100vh; position:relative; z-index:1; }
  .sidebar { width:240px; background:rgba(24,24,27,0.95); border-right:1px solid rgba(234,179,8,0.15); padding:0; position:fixed; top:0; bottom:0; left:0; z-index:100; overflow-y:auto; backdrop-filter:blur(10px); }
  .sidebar-inner { padding:20px 16px; }
  .main-content { flex:1; margin-left:240px; min-width:0; }

  /* Logo */
  .logo-wrap { display:flex; align-items:center; gap:8px; padding:12px 10px; margin-bottom:20px; }
  .logo-wrap .logo-icon { width:40px; height:40px; border-radius:12px; background:linear-gradient(135deg, var(--primary), var(--accent)); display:flex; align-items:center; justify-content:center; font-size:20px; color:#18181b; }
  .logo-wrap .logo-text { font-family:'ZCOOL KuaiLe', 'Inter', sans-serif; font-size:22px; font-weight:700; color:var(--primary); letter-spacing:1px; }
  .sidebar-section { margin-bottom:24px; }
  .sidebar-section-title { font-size:12px; color:#71717a; text-transform:uppercase; letter-spacing:1px; font-weight:600; margin-bottom:10px; padding-left:10px; }
  .sidebar-nav { list-style:none; padding:0; }
  .sidebar-nav li a { display:flex; align-items:center; gap:10px; padding:10px 14px; border-radius:12px; color:#d4d4d8; text-decoration:none; font-size:14px; transition:all 0.2s; margin-bottom:2px; }
  .sidebar-nav li a:hover, .sidebar-nav li a.active { background:rgba(234,179,8,0.1); color:var(--primary); }
  .sidebar-nav li a i { width:20px; text-align:center; font-size:16px; }
  .sidebar-stats { background:rgba(234,179,8,0.05); border-radius:16px; padding:16px; margin-top:10px; }
  .sidebar-stats .stat-num { font-size:24px; font-weight:800; color:var(--primary); font-family:'ZCOOL KuaiLe', sans-serif; }
  .sidebar-stats .stat-label { font-size:12px; color:#a1a1aa; }

  /* 导航栏 */
  .top-nav { background:rgba(24,24,27,0.9); backdrop-filter:blur(16px); border-bottom:1px solid rgba(234,179,8,0.1); padding:0 30px; position:sticky; top:0; z-index:50; }
  .nav-container { display:flex; align-items:center; height:60px; max-width:1400px; margin:0 auto; }
  .nav-menu { display:flex; list-style:none; gap:4px; margin:0; padding:0; flex:1; }
  .nav-menu li a { display:block; padding:8px 16px; border-radius:9999px; color:#d4d4d8; text-decoration:none; font-size:14px; font-weight:500; transition:all 0.25s; }
  .nav-menu li a:hover, .nav-menu li a.active { background:rgba(234,179,8,0.15); color:var(--primary); }
  .nav-search { display:flex; align-items:center; background:rgba(255,255,255,0.05); border-radius:9999px; padding:6px 16px; width:260px; border:1px solid transparent; transition:all 0.3s; }
  .nav-search:focus-within { border-color:var(--primary); background:rgba(234,179,8,0.05); }
  .nav-search input { background:transparent; border:none; outline:none; color:var(--text); font-size:13px; flex:1; }
  .nav-search i { color:#71717a; margin-right:8px; }
  .mobile-nav-toggle { display:none; background:none; border:none; color:var(--text); font-size:24px; cursor:pointer; }

  /* Hero */
  .hero-section { padding:80px 40px 60px; position:relative; }
  .hero-title { font-family:'ZCOOL KuaiLe', 'Inter', sans-serif; font-size:48px; font-weight:900; line-height:1.3; margin-bottom:16px; color:var(--text); }
  .hero-title .highlight { color:var(--primary); }
  .hero-subtitle { font-size:16px; color:#a1a1aa; max-width:600px; margin-bottom:30px; }
  .hero-badges { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:30px; }
  .hero-badge { background:rgba(234,179,8,0.08); border:1px solid rgba(234,179,8,0.3); color:var(--primary); padding:6px 16px; border-radius:9999px; font-size:13px; font-weight:500; }
  .hero-badge i { margin-right:6px; }
  .hero-cta { display:flex; gap:14px; margin-top:10px; }
  .btn-primary-custom { background:var(--primary); color:#18181b; border:none; border-radius:9999px; padding:12px 28px; font-weight:700; font-size:15px; transition:all 0.3s; text-decoration:none; display:inline-flex; align-items:center; gap:8px; }
  .btn-primary-custom:hover { background:var(--accent); transform:translateY(-2px); box-shadow:0 8px 25px rgba(234,179,8,0.3); color:#18181b; }
  .btn-outline-custom { background:transparent; color:var(--primary); border:1px solid rgba(234,179,8,0.4); border-radius:9999px; padding:12px 28px; font-weight:500; font-size:15px; transition:all 0.3s; text-decoration:none; }
  .btn-outline-custom:hover { background:rgba(234,179,8,0.1); border-color:var(--primary); }

  /* 打字机 */
  .typewriter { display:inline-block; overflow:hidden; white-space:nowrap; border-right:3px solid var(--primary); animation: blink 0.7s step-end infinite; }
  @keyframes blink { 0%,100% { border-color:transparent; } 50% { border-color:var(--primary); } }

  /* 区块通用 */
  .section-wrap { padding:50px 40px; }
  .section-header { margin-bottom:30px; }
  .section-header .section-tag { color:var(--primary); font-size:13px; font-weight:600; letter-spacing:2px; text-transform:uppercase; margin-bottom:6px; }
  .section-header h2 { font-family:'ZCOOL KuaiLe', 'Inter', sans-serif; font-size:28px; font-weight:700; margin:0; }

  /* 特色卡片 */
  .features-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:16px; }
  .feature-card { background:var(--card-bg); border-radius:var(--radius-card); padding:20px; border:1px solid rgba(255,255,255,0.04); transition:all 0.3s ease; }
  .feature-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-hover); background:var(--card-hover); border-color:rgba(234,179,8,0.2); }
  .feature-card .feature-icon { width:44px; height:44px; border-radius:14px; background:rgba(234,179,8,0.1); display:flex; align-items:center; justify-content:center; margin-bottom:14px; font-size:20px; color:var(--primary); }
  .feature-card h3 { font-size:16px; font-weight:600; margin-bottom:8px; }
  .feature-card p { font-size:13px; color:#a1a1aa; line-height:1.6; }

  /* 瀑布流漫画卡片 */
  .masonry { column-count: 4; column-gap: 16px; }
  .masonry-item { break-inside: avoid; margin-bottom:16px; }
  .comic-card { background:var(--card-bg); border-radius:var(--radius-card); overflow:hidden; border:1px solid rgba(255,255,255,0.04); transition:all 0.3s ease; display:inline-block; width:100%; }
  .comic-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-hover); border-color:rgba(234,179,8,0.2); }
  .comic-cover { width:100%; height:auto; object-fit:cover; }
  .comic-info { padding:12px 14px; }
  .comic-title { font-size:14px; font-weight:600; margin-bottom:4px; }
  .comic-meta { font-size:12px; color:#a1a1aa; display:flex; justify-content:space-between; align-items:center; }
  .comic-tag { background:rgba(234,179,8,0.1); color:var(--primary); font-size:11px; padding:2px 8px; border-radius:9999px; }
  .comic-score { color:var(--primary); font-weight:600; }

  /* FAQ */
  .faq-container { max-width:800px; margin:0 auto; }
  .faq-item { background:var(--card-bg); border-radius:14px; margin-bottom:12px; overflow:hidden; border:1px solid rgba(255,255,255,0.04); transition:border-color 0.3s; }
  .faq-item:hover { border-color:rgba(234,179,8,0.2); }
  .faq-question { padding:18px 22px; display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-weight:500; font-size:15px; transition:all 0.2s; }
  .faq-question i { color:var(--primary); font-size:14px; transition:transform 0.3s; }
  .faq-item.active .faq-question i { transform:rotate(180deg); }
  .faq-answer { max-height:0; overflow:hidden; transition:max-height 0.4s ease, padding 0.3s ease; padding:0 22px; font-size:13px; color:#a1a1aa; line-height:1.7; }
  .faq-item.active .faq-answer { max-height:200px; padding:0 22px 18px; }

  /* 介绍步骤条 */
  .steps-container { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin-top:20px; }
  .step-item { flex:1; min-width:220px; max-width:280px; text-align:center; position:relative; }
  .step-num { width:36px; height:36px; background:var(--primary); color:#18181b; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:16px; margin:0 auto 12px; font-family:'ZCOOL KuaiLe', sans-serif; }
  .step-item h4 { font-size:15px; font-weight:600; margin-bottom:6px; }
  .step-item p { font-size:13px; color:#a1a1aa; }

  /* CTA */
  .cta-section { padding:60px 40px; text-align:center; }
  .cta-box { background:linear-gradient(135deg, rgba(234,179,8,0.12), rgba(245,158,11,0.05)); border-radius:24px; padding:50px 40px; border:1px solid rgba(234,179,8,0.2); max-width:900px; margin:0 auto; }
  .cta-box h2 { font-family:'ZCOOL KuaiLe', sans-serif; font-size:32px; margin-bottom:16px; }
  .cta-box p { font-size:16px; color:#d4d4d8; margin-bottom:30px; }

  /* 友情链接 */
  .friend-links { padding:40px; background:rgba(24,24,27,0.5); border-top:1px solid rgba(234,179,8,0.1); }
  .friend-links h3 { font-size:15px; color:#a1a1aa; margin-bottom:14px; font-weight:500; }
  .friend-links .links-row { display:flex; gap:16px; flex-wrap:wrap; }
  .friend-links a { color:#71717a; text-decoration:none; font-size:13px; transition:color 0.2s; }
  .friend-links a:hover { color:var(--primary); }

  /* 页脚 */
  footer { background:rgba(16,16,18,0.9); padding:30px 40px; border-top:1px solid rgba(234,179,8,0.08); }
  .footer-inner { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; max-width:1400px; margin:0 auto; }
  .footer-links { display:flex; gap:20px; }
  .footer-links a { color:#71717a; text-decoration:none; font-size:13px; transition:color 0.2s; }
  .footer-links a:hover { color:var(--primary); }

  /* 数字动画 */
  .stat-number { font-size:32px; font-weight:800; color:var(--primary); font-family:'ZCOOL KuaiLe', sans-serif; }
  .stat-label { font-size:13px; color:#a1a1aa; }

  /* 响应式 */
  @media (max-width:1200px) {
    .masonry { column-count: 3; }
  }
  @media (max-width:992px) {
    .sidebar { display:none; }
    .main-content { margin-left:0; }
    .masonry { column-count: 2; }
    .nav-search { display:none; }
    .mobile-nav-toggle { display:block; }
    .nav-menu { display:none; position:absolute; top:60px; left:0; right:0; background:rgba(24,24,27,0.98); flex-direction:column; padding:20px; border-bottom:1px solid rgba(234,179,8,0.1); }
    .nav-menu.open { display:flex; }
  }
  @media (max-width:576px) {
    .masonry { column-count: 1; }
    .hero-section, .section-wrap { padding:40px 20px; }
    .hero-title { font-size:32px; }
    .features-grid { grid-template-columns:1fr; }
    .steps-container { flex-direction:column; }
  }

/* --- 子页面追加 --- */
/* 保证卡片背景与站点一致，防止bootstrap白底 */
    .category-card,
    .category-card .card-body {
      background: var(--card-bg);
      color: var(--text);
      border: 1px solid rgba(255,255,255,0.05);
      border-radius: var(--radius-card);
      transition: transform .25s ease, box-shadow .3s ease, background .2s;
    }
.category-card:hover {
      background: var(--card-hover);
      box-shadow: var(--shadow-hover);
      transform: translateY(-4px);
    }
.category-card .cat-icon {
      font-size: 2.2rem;
      color: var(--primary);
      margin-bottom: 12px;
      display: inline-block;
    }
.category-card h3 {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--text);
      letter-spacing: .5px;
      margin-bottom: 8px;
    }
.category-card p {
      color: rgba(255,255,255,0.7);
      font-size: .92rem;
      line-height: 1.5;
      margin-bottom: 12px;
    }
.category-card .cat-count {
      font-size: .8rem;
      color: var(--primary);
      font-weight: 600;
      border-top: 1px dashed rgba(255,255,255,0.15);
      padding-top: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
.category-card .cat-count i {
      font-size: .7rem;
      color: var(--accent);
    }
.cat-hero-sub {
      font-size: 1.1rem;
      opacity: .85;
    }
.category-section-title {
      font-size: 1.9rem;
      font-weight: 800;
      margin: 40px 0 20px;
      color: var(--text);
      position: relative;
      display: inline-block;
    }
.category-section-title:after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -10px;
      width: 70px;
      height: 4px;
      border-radius: 4px;
      background: var(--primary);
    }
.btn-cat-more {
      background: transparent;
      border: 1px solid var(--primary);
      color: var(--primary);
      border-radius: var(--radius-btn);
      padding: 4px 18px;
      font-size: .8rem;
      transition: all .2s;
    }
.btn-cat-more:hover {
      background: var(--primary);
      color: #18181b;
    }
/* 覆盖可能用到的 bootstrap 组件 (以防万一) */
    .list-group-item, .accordion-item, .accordion-button, .accordion-body {
      background: var(--card-bg) !important;
      color: var(--text) !important;
      border-color: #3f3f46 !important;
    }
.form-control {
      background: rgba(0,0,0,0.3);
      border: 1px solid #3f3f46;
      color: var(--text);
    }
.form-control::placeholder { color: rgba(255,255,255,0.4); }

/* --- 子页面追加 --- */
/* 排行榜专用微调：覆盖 Bootstrap 卡片默认白底，以及少量定制 */
    .rank-card, .rank-card .card-body {
      background: var(--card-bg);
      color: var(--text);
      border: 1px solid rgba(234,179,8,0.15);
      border-radius: var(--radius-card);
      transition: transform .2s, box-shadow .2s, border-color .2s;
    }
.rank-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-hover);
      border-color: rgba(234,179,8,0.4);
    }
.rank-badge {
      background: var(--primary);
      color: #18181b;
      font-weight: 800;
      width: 2.2rem;
      height: 2.2rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      font-size: 1rem;
      box-shadow: 0 2px 8px rgba(0,0,0,.5);
    }
.rank-badge.top-1 { background: #fbbf24; }
.rank-badge.top-2 { background: #d4d4d8; color:#18181b; }
.rank-badge.top-3 { background: #b45309; color: white; }
.rank-tag {
      background: rgba(234,179,8,0.12);
      color: var(--primary);
      padding: 0.2rem 0.8rem;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: .3px;
    }
.rank-table thead th {
      background: rgba(234,179,8,0.08);
      color: var(--primary);
      font-weight: 600;
      border-bottom: 2px solid rgba(234,179,8,0.3);
      text-transform: uppercase;
      font-size: 0.85rem;
      letter-spacing: .5px;
    }
.rank-table tbody td {
      border-color: rgba(255,255,255,0.06);
      color: var(--text);
      vertical-align: middle;
      padding: 1rem .75rem;
    }
.rank-table tbody tr:hover td {
      background: rgba(234,179,8,0.04);
    }
.rank-cover {
      width: 48px;
      height: 64px;
      object-fit: cover;
      border-radius: 6px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }
.trend-up { color: #4ade80; font-weight: 600; }
.trend-down { color: #f87171; font-weight: 600; }
.trend-flat { color: #a1a1aa; }
.section-title-icon {
      color: var(--primary);
      margin-right: .5rem;
    }
.rank-cover { width: 40px; height: 54px; }
.rank-table thead th:nth-child(4), .rank-table tbody td:nth-child(4) { display: none; }

/* --- 子页面追加 --- */
/* 个人书架页专属样式 */
    .bookshelf-hero {
      background: linear-gradient(135deg, rgba(234,179,8,0.08) 0%, rgba(245,158,11,0.03) 50%, transparent 100%);
      border-bottom: 1px solid rgba(234,179,8,0.1);
      padding: 60px 0 50px;
      position: relative;
    }
.bookshelf-hero h1 {
      font-size: 2.4rem;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 16px;
      line-height: 1.3;
    }
.bookshelf-hero h1 .highlight {
      color: var(--primary);
    }
.bookshelf-hero p {
      color: rgba(250,250,250,0.7);
      font-size: 1.05rem;
      max-width: 640px;
      line-height: 1.8;
    }
.bookshelf-stat {
      display: flex;
      gap: 40px;
      margin-top: 30px;
      flex-wrap: wrap;
    }
.bookshelf-stat-item {
      display: flex;
      align-items: center;
      gap: 12px;
    }
.bookshelf-stat-item .num {
      font-size: 1.8rem;
      font-weight: 800;
      color: var(--primary);
    }
.bookshelf-stat-item .label {
      font-size: 0.9rem;
      color: rgba(250,250,250,0.6);
    }
.bookshelf-grid {
      padding: 50px 0 60px;
    }
.section-header h2::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 4px;
      height: 22px;
      background: var(--primary);
      border-radius: 2px;
    }
.section-header h2 .brand-accent {
      color: var(--primary);
    }
.section-header .view-all {
      color: var(--primary);
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.3s;
    }
.section-header .view-all:hover {
      gap: 10px;
      color: var(--accent);
    }
.bookshelf-card {
      background: var(--card-bg);
      border-radius: var(--radius-card);
      padding: 20px;
      transition: all 0.3s ease;
      border: 1px solid rgba(255,255,255,0.04);
      height: 100%;
      display: flex;
      flex-direction: column;
    }
.bookshelf-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-hover);
      background: var(--card-hover);
      border-color: rgba(234,179,8,0.3);
    }
.bookshelf-card .thumb {
      width: 100%;
      aspect-ratio: 3/4;
      border-radius: 12px;
      overflow: hidden;
      background: #1c1c1f;
      margin-bottom: 14px;
      position: relative;
    }
.bookshelf-card .thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
.bookshelf-card:hover .thumb img {
      transform: scale(1.05);
    }
.bookshelf-card .thumb .badge-update {
      position: absolute;
      top: 8px;
      right: 8px;
      background: rgba(234,179,8,0.92);
      color: #18181b;
      font-size: 0.7rem;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 999px;
      letter-spacing: 0.3px;
    }
.bookshelf-card .title {
      font-weight: 600;
      color: var(--text);
      font-size: 1rem;
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
.bookshelf-card .meta {
      color: rgba(250,250,250,0.5);
      font-size: 0.8rem;
      display: flex;
      align-items: center;
      gap: 6px;
    }
.bookshelf-card .progress-wrap {
      margin-top: auto;
      padding-top: 14px;
    }
.progress-text {
      display: flex;
      justify-content: space-between;
      font-size: 0.78rem;
      color: rgba(250,250,250,0.6);
      margin-bottom: 6px;
    }
.progress-bar-custom {
      height: 4px;
      background: rgba(255,255,255,0.08);
      border-radius: 999px;
      overflow: hidden;
    }
.progress-bar-custom .bar {
      height: 100%;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      border-radius: 999px;
      transition: width 0.6s ease;
    }
.bookshelf-card .action-row {
      display: flex;
      gap: 8px;
      margin-top: 12px;
    }
.btn-shelf {
      flex: 1;
      background: rgba(234,179,8,0.1);
      border: 1px solid rgba(234,179,8,0.25);
      color: var(--primary);
      font-size: 0.8rem;
      font-weight: 600;
      padding: 8px 12px;
      border-radius: 999px;
      text-decoration: none;
      text-align: center;
      transition: all 0.3s;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
.btn-shelf:hover {
      background: var(--primary);
      color: #18181b;
      border-color: var(--primary);
    }
.btn-shelf-ghost {
      flex: 1;
      background: transparent;
      border: 1px solid rgba(255,255,255,0.15);
      color: rgba(250,250,250,0.7);
      font-size: 0.8rem;
      font-weight: 500;
      padding: 8px 12px;
      border-radius: 999px;
      text-decoration: none;
      text-align: center;
      transition: all 0.3s;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
.btn-shelf-ghost:hover {
      border-color: rgba(250,250,250,0.4);
      color: var(--text);
      background: rgba(255,255,255,0.05);
    }
.login-panel {
      background: var(--card-bg);
      border-radius: 20px;
      padding: 36px;
      border: 1px solid rgba(234,179,8,0.15);
      box-shadow: var(--shadow-soft);
      max-width: 460px;
      margin: 0 auto;
    }
.login-panel .form-control {
      background: rgba(0,0,0,0.3);
      border: 1px solid rgba(255,255,255,0.1);
      color: var(--text);
      border-radius: 12px;
      padding: 12px 16px;
      margin-bottom: 16px;
      font-size: 0.95rem;
      transition: all 0.3s;
    }
.login-panel .form-control:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
      background: rgba(0,0,0,0.4);
      color: var(--text);
    }
.login-panel .form-control::placeholder {
      color: rgba(250,250,250,0.4);
    }
.login-panel .btn-login {
      width: 100%;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      color: #18181b;
      font-weight: 700;
      font-size: 1rem;
      padding: 13px;
      border-radius: 999px;
      border: none;
      transition: all 0.3s;
      margin-top: 8px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
.login-panel .btn-login:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(234,179,8,0.3);
    }
.login-panel .panel-title {
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 8px;
    }
.login-panel .panel-sub {
      color: rgba(250,250,250,0.55);
      font-size: 0.9rem;
      margin-bottom: 24px;
    }
.login-panel .alt-link {
      color: var(--primary);
      text-decoration: none;
      font-size: 0.85rem;
      transition: all 0.3s;
    }
.login-panel .alt-link:hover {
      color: var(--accent);
      text-decoration: underline;
    }
.login-panel .divider {
      display: flex;
      align-items: center;
      gap: 12px;
      color: rgba(250,250,250,0.35);
      font-size: 0.8rem;
      margin: 20px 0;
    }
.login-panel .divider::before,
    .login-panel .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(255,255,255,0.08);
    }
.sync-features {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 40px;
    }
.sync-feature {
      text-align: center;
      padding: 20px 16px;
      border-radius: var(--radius-card);
      background: rgba(234,179,8,0.04);
      border: 1px solid rgba(234,179,8,0.08);
      transition: all 0.3s;
    }
.sync-feature:hover {
      background: rgba(234,179,8,0.08);
      border-color: rgba(234,179,8,0.2);
    }
.sync-feature i {
      font-size: 1.6rem;
      color: var(--primary);
      margin-bottom: 10px;
    }
.sync-feature .feat-title {
      font-weight: 600;
      color: var(--text);
      font-size: 0.95rem;
      margin-bottom: 6px;
    }
.sync-feature .feat-desc {
      color: rgba(250,250,250,0.5);
      font-size: 0.8rem;
      line-height: 1.5;
    }
.bookshelf-hero h1 { font-size: 1.8rem; }
.bookshelf-stat { gap: 20px; }
.sync-features { grid-template-columns: 1fr; gap: 12px; }
.login-panel { padding: 24px; }

/* --- 子页面追加 --- */
/* 阅读历史页面专属样式 */
    .history-hero {
      background: linear-gradient(135deg, rgba(234,179,8,0.15) 0%, rgba(24,24,27,0.8) 60%);
      border-radius: var(--radius-card);
      padding: 3rem 2rem;
      margin-bottom: 2.5rem;
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(234,179,8,0.2);
    }
.history-hero::before {
      content: '';
      position: absolute;
      top: -40px;
      right: -40px;
      width: 200px;
      height: 200px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(234,179,8,0.2) 0%, transparent 70%);
      pointer-events: none;
    }
.history-stats-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 1rem;
      margin-bottom: 2rem;
    }
.history-stat-card {
      background: var(--card-bg);
      border-radius: var(--radius-card);
      padding: 1.5rem;
      text-align: center;
      border: 1px solid rgba(234,179,8,0.15);
      transition: all 0.3s ease;
    }
.history-stat-card:hover {
      background: var(--card-hover);
      transform: translateY(-4px);
      box-shadow: var(--shadow-hover);
    }
.history-stat-number {
      font-size: 2rem;
      font-weight: 800;
      color: var(--primary);
      margin-bottom: 0.5rem;
    }
.history-stat-label {
      color: rgba(250,250,250,0.7);
      font-size: 0.9rem;
    }
.history-list {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }
.history-item {
      background: var(--card-bg);
      border-radius: var(--radius-card);
      padding: 1.5rem;
      display: flex;
      gap: 1.2rem;
      border: 1px solid rgba(234,179,8,0.1);
      transition: all 0.3s ease;
      cursor: pointer;
    }
.history-item:hover {
      background: var(--card-hover);
      box-shadow: var(--shadow-hover);
      transform: translateY(-2px);
    }
.history-item-cover {
      width: 80px;
      height: 100px;
      border-radius: 8px;
      overflow: hidden;
      flex-shrink: 0;
      background: rgba(234,179,8,0.1);
    }
.history-item-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
.history-item-info {
      flex: 1;
    }
.history-item-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 0.5rem;
    }
.history-item-meta {
      font-size: 0.9rem;
      color: rgba(250,250,250,0.6);
      margin-bottom: 0.5rem;
    }
.history-item-progress {
      height: 4px;
      background: rgba(234,179,8,0.15);
      border-radius: 2px;
      margin-top: 0.8rem;
      overflow: hidden;
    }
.history-item-progress-bar {
      height: 100%;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      border-radius: 2px;
    }
.history-item-actions {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      flex-shrink: 0;
    }
.history-btn {
      background: transparent;
      border: 1px solid rgba(234,179,8,0.3);
      color: var(--text);
      padding: 0.5rem 1rem;
      border-radius: var(--radius-btn);
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      display: inline-block;
    }
.history-btn:hover {
      background: rgba(234,179,8,0.15);
      border-color: var(--primary);
      color: var(--primary);
    }
.history-btn-danger {
      border-color: rgba(239,68,68,0.3);
      color: rgba(239,68,68,0.8);
    }
.history-btn-danger:hover {
      background: rgba(239,68,68,0.1);
      border-color: #ef4444;
      color: #ef4444;
    }
.history-filter-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
      align-items: center;
      margin-bottom: 1.5rem;
      padding: 1rem;
      background: var(--card-bg);
      border-radius: var(--radius-card);
      border: 1px solid rgba(234,179,8,0.1);
    }
.history-filter-btn {
      background: transparent;
      border: 1px solid rgba(250,250,250,0.2);
      color: var(--text);
      padding: 0.4rem 1.2rem;
      border-radius: var(--radius-btn);
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.3s ease;
    }
.history-filter-btn:hover,
    .history-filter-btn.active {
      background: rgba(234,179,8,0.15);
      border-color: var(--primary);
      color: var(--primary);
    }
.history-empty {
      text-align: center;
      padding: 4rem 2rem;
      background: var(--card-bg);
      border-radius: var(--radius-card);
      border: 1px dashed rgba(234,179,8,0.2);
    }
.history-empty-icon {
      font-size: 3rem;
      color: var(--primary);
      margin-bottom: 1rem;
      opacity: 0.6;
    }
.history-empty-text {
      color: rgba(250,250,250,0.6);
      font-size: 1rem;
      margin-bottom: 1.5rem;
    }
.history-clear-all {
      text-align: right;
      margin-bottom: 1rem;
    }
.history-date-group {
      margin-bottom: 2rem;
    }
.history-date-title {
      font-size: 0.9rem;
      color: rgba(250,250,250,0.5);
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid rgba(234,179,8,0.15);
    }
.history-tip {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      padding: 1rem;
      background: rgba(234,179,8,0.08);
      border-radius: 12px;
      border: 1px solid rgba(234,179,8,0.2);
      margin-bottom: 1.5rem;
      color: rgba(250,250,250,0.8);
      font-size: 0.9rem;
    }
.history-tip i {
      color: var(--primary);
    }
.history-item {
        flex-direction: column;
        gap: 1rem;
      }
.history-item-cover {
        width: 100%;
        height: 140px;
      }
.history-item-actions {
        width: 100%;
        justify-content: flex-start;
      }
.history-filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
      }
.history-filter-btn {
        white-space: nowrap;
      }

/* --- 子页面追加 --- */
/* 页面专属样式，自动合并进站点CSS */
        .favorite-page { padding: 40px 0 80px; }
.favorite-header { margin-bottom: 32px; }
.favorite-header h1 { font-size: 2.2rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.favorite-header p { color: rgba(250,250,250,0.7); font-size: 0.95rem; }
.favorite-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.stat-item { background: var(--card-bg); border-radius: var(--radius-card); padding: 16px 24px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(234,179,8,0.15); }
.stat-item i { color: var(--primary); font-size: 1.5rem; }
.stat-item .stat-num { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.stat-item .stat-label { font-size: 0.8rem; color: rgba(250,250,250,0.6); }
.favorite-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn { background: var(--card-bg); color: var(--text); border: 1px solid rgba(234,179,8,0.2); border-radius: var(--radius-btn); padding: 8px 20px; font-size: 0.85rem; cursor: pointer; transition: all 0.3s; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #18181b; border-color: var(--primary); }
.favorite-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.favorite-card { background: var(--card-bg); border-radius: var(--radius-card); overflow: hidden; border: 1px solid rgba(255,255,255,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.favorite-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.fc-cover { width: 100%; height: 160px; background: linear-gradient(135deg, #3f3f46, #27272a); position: relative; overflow: hidden; }
.fc-cover img { width: 100%; height: 100%; object-fit: cover; }
.fc-badge { position: absolute; top: 12px; left: 12px; background: rgba(234,179,8,0.9); color: #18181b; font-size: 0.7rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.fc-body { padding: 16px; }
.fc-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.fc-meta { display: flex; gap: 12px; font-size: 0.8rem; color: rgba(250,250,250,0.6); margin-bottom: 12px; }
.fc-meta i { color: var(--primary); margin-right: 4px; }
.fc-progress { background: rgba(255,255,255,0.08); border-radius: 999px; height: 6px; margin-bottom: 14px; overflow: hidden; }
.fc-progress-bar { background: var(--primary); height: 100%; border-radius: 999px; }
.fc-actions { display: flex; gap: 8px; }
.fc-btn { flex: 1; padding: 8px 12px; border-radius: var(--radius-btn); font-size: 0.85rem; text-align: center; cursor: pointer; transition: all 0.3s; border: none; }
.fc-btn-read { background: var(--primary); color: #18181b; font-weight: 600; }
.fc-btn-read:hover { background: var(--accent); }
.fc-btn-remove { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(250,250,250,0.7); }
.fc-btn-remove:hover { border-color: #ef4444; color: #ef4444; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--card-bg); border-radius: var(--radius-card); }
.empty-state i { font-size: 3rem; color: rgba(234,179,8,0.5); margin-bottom: 16px; }
.empty-state h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 8px; }
.empty-state p { color: rgba(250,250,250,0.6); font-size: 0.9rem; }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.section-title i { color: var(--primary); }
.section-title span { font-size: 0.9rem; font-weight: 400; color: rgba(250,250,250,0.5); }
.recommend-card { background: var(--card-bg); border-radius: var(--radius-card); padding: 20px; border: 1px solid rgba(255,255,255,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.recommend-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.recommend-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.recommend-desc { font-size: 0.85rem; color: rgba(250,250,250,0.6); line-height: 1.6; }
.recommend-tag { display: inline-block; background: rgba(234,179,8,0.15); color: var(--primary); font-size: 0.7rem; padding: 2px 10px; border-radius: 999px; margin-top: 8px; margin-right: 6px; }
.favorite-tip { background: linear-gradient(135deg, rgba(234,179,8,0.1), rgba(245,158,11,0.05)); border: 1px solid rgba(234,179,8,0.2); border-radius: var(--radius-card); padding: 16px 20px; margin-top: 40px; display: flex; align-items: flex-start; gap: 12px; }
.favorite-tip i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; }
.favorite-tip p { font-size: 0.85rem; color: rgba(250,250,250,0.8); margin: 0; }
.favorite-header h1 { font-size: 1.6rem; }
.stat-item { padding: 12px 16px; }
.stat-item .stat-num { font-size: 1.1rem; }
.favorite-grid { grid-template-columns: 1fr; }

/* --- 子页面追加 --- */
/* 由于本站CSS变量已全局定义, 这里只写注册页特有的小部件 */
    .register-hero {
      background: radial-gradient(circle at 10% 20%, rgba(234,179,8,0.12), transparent 40%);
    }
.feature-icon-bg {
      background: var(--card-bg);
      border-radius: var(--radius-card);
      transition: transform .2s ease, box-shadow .2s ease;
    }
.feature-icon-bg:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-hover);
    }
.step-chip {
      background: rgba(234,179,8,0.15);
      color: var(--primary);
      font-weight: 600;
      border-radius: var(--radius-btn);
      padding: .25rem 1rem;
      display: inline-block;
      font-size: .9rem;
      letter-spacing: .5px;
    }
.form-control, .form-select {
      background: rgba(0,0,0,.35);
      border: 1px solid rgba(234,179,8,.25);
      color: var(--text);
    }
.form-control:focus, .form-select:focus {
      background: rgba(0,0,0,.55);
      border-color: var(--primary);
      box-shadow: 0 0 0 .2rem rgba(234,179,8,.15);
      color: #fff;
    }
.form-label {
      color: var(--text);
      font-weight: 500;
    }
.input-group-text {
      background: var(--card-bg);
      border: 1px solid rgba(234,179,8,.25);
      color: var(--primary);
    }
.border-glow {
      border: 1px solid rgba(234,179,8,.3);
      transition: border-color .2s;
    }
.border-glow:hover {
      border-color: var(--primary);
    }
.bg-card-custom {
      background: var(--card-bg);
      border-radius: var(--radius-card);
    }
/* 覆盖Bootstrap组件类 —— 确保深色背景 */
    .card, .card-body, .list-group-item, .accordion-item, .accordion-button {
      background: var(--card-bg) !important;
      color: var(--text) !important;
      border-color: rgba(234,179,8,.2) !important;
    }
.accordion-button:not(.collapsed) {
      background: var(--card-hover) !important;
      color: var(--primary) !important;
    }

/* --- 子页面追加 --- */
/* 覆盖 Bootstrap 默认白底黑字 —— 本页仅用栅格，但保留以防万一 */
    .card, .card-body, .card-header, .card-footer, .form-control, .form-select, .list-group-item, .accordion-item, .accordion-button, .accordion-body, .modal-content, .modal-header, .modal-body, .dropdown-menu, .dropdown-item {
      background: var(--card-bg);
      color: var(--text);
      border-color: rgba(234, 179, 8, 0.2);
    }
.accordion-button:focus { box-shadow: none; border-color: rgba(234,179,8,.4); }
/* 隐私政策页面专属微调 */
    .privacy-hero { padding: 2rem 0 1rem; }
.privacy-section { background: var(--card-bg); border-radius: var(--radius-card); padding: 1.8rem; margin-bottom: 1.8rem; box-shadow: var(--shadow-soft); border: 1px solid rgba(234,179,8,0.1); }
.privacy-section h2 { color: var(--primary); font-weight: 700; font-size: 1.5rem; margin-bottom: 1.2rem; border-left: 4px solid var(--primary); padding-left: 1rem; }
.privacy-section h3 { color: var(--accent); font-size: 1.15rem; margin: 1.5rem 0 0.6rem; font-weight: 600; }
.privacy-section p, .privacy-section li { color: rgba(250,250,250,0.88); line-height: 1.7; font-size: 0.98rem; }
.privacy-section ul, .privacy-section ol { padding-left: 1.3rem; }
.privacy-section a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.privacy-section a:hover { color: var(--accent); }
.privacy-badge { background: rgba(234,179,8,0.12); color: var(--primary); border-radius: 50px; padding: 0.2rem 1rem; font-size: 0.8rem; font-weight: 500; display: inline-block; }
.last-updated { font-size: 0.9rem; color: rgba(255,255,255,0.5); margin-bottom: 2rem; }

/* --- Bootstrap 组件配色适配(程序自动补,避免白底黑字) --- */
.table { color:#fafafa !important; border-color:rgba(255,255,255,.12) !important; --bs-table-bg:transparent !important; --bs-table-color:#fafafa !important; }
.accordion-header { background:transparent !important; }
