:root {
      --primary: #6d5dfc;
      --accent: #22d3ee;
      --bg-deep: #0f1020;
      --text-light: #e8eaf6;
      --card-radius: 20px;
      --soft-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    }

    * { box-sizing: border-box; }
    body {
      background-color: var(--bg-deep);
      color: var(--text-light);
      font-family: 'Inter', sans-serif;
      overflow-x: hidden;
    }

    h1, h2, h3, h4, .display-5, .navbar-brand {
      font-weight: 900;
      letter-spacing: -0.02em;
    }
    .font-mono { font-family: 'SF Mono', 'JetBrains Mono', monospace; }

    /* 顶部滚动进度条 */
    #scrollProgress {
      position: fixed;
      top: 0; left: 0;
      height: 4px;
      width: 0%;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      z-index: 9999;
      border-radius: 0 4px 4px 0;
      transition: width 0.1s ease;
    }

    /* 导航 */
    .navbar-glass {
      background: rgba(15, 16, 32, 0.8);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(109, 93, 252, 0.2);
      z-index: 1050;
    }
    .navbar-brand {
      font-size: 1.8rem;
      font-weight: 900;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent !important;
    }
    .nav-link {
      color: var(--text-light) !important;
      font-weight: 500;
      margin: 0 0.4rem;
    }
    .nav-link:hover { color: var(--accent) !important; }

    /* 区块标题 */
    .section-title {
      font-weight: 900;
      font-size: 2rem;
      position: relative;
      padding-left: 1.2rem;
      margin-bottom: 2rem;
    }
    .section-title::before {
      content: '';
      position: absolute;
      left: 0; top: 6px;
      width: 6px; height: 70%;
      background: var(--primary);
      border-radius: 8px;
      box-shadow: 0 0 12px var(--primary);
    }

    /* 大圆角卡片 */
    .movie-card {
      background: #1b1d33;
      border-radius: var(--card-radius);
      overflow: hidden;
      box-shadow: var(--soft-shadow);
      transition: transform 0.3s ease, box-shadow 0.3s;
      border: none;
      cursor: pointer;
    }
    .movie-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(109, 93, 252, 0.3);
    }
    .poster-wrap {
      position: relative;
      overflow: hidden;
      aspect-ratio: 2 / 3;
      background: #2b2d44;
    }
    .poster-wrap img {
      width: 100%; height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    .movie-card:hover .poster-wrap img { transform: scale(1.08); }

    .badge-corner {
      position: absolute;
      top: 10px; left: 10px;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(4px);
      padding: 4px 10px;
      border-radius: 50px;
      font-size: 0.8rem;
      font-weight: 600;
      color: #fff;
      border: 1px solid rgba(255,255,255,0.2);
    }
    .rating-star {
      position: absolute;
      bottom: 8px; right: 8px;
      background: rgba(0,0,0,0.7);
      border-radius: 30px;
      padding: 3px 10px;
      font-size: 0.85rem;
      font-weight: 700;
      color: #ffb83d;
      backdrop-filter: blur(3px);
    }
    .card-info {
      padding: 14px 12px 16px;
      background: #1b1d33;
      border-top: 1px solid rgba(109, 93, 252, 0.15);
    }
    .card-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
    .card-info p { font-size: 0.8rem; opacity: 0.7; }

    /* 分类标签 */
    .category-pill {
      background: rgba(109, 93, 252, 0.15);
      border: 1px solid rgba(109, 93, 252, 0.4);
      border-radius: 50px;
      padding: 8px 20px;
      font-weight: 600;
      color: var(--text-light);
      transition: all 0.2s;
      display: inline-block;
      margin: 0.25rem 0.5rem;
    }
    .category-pill:hover, .category-pill.active {
      background: var(--primary);
      border-color: var(--primary);
    }

    /* 对比表格 */
    .comparison-table {
      border-collapse: separate;
      border-spacing: 0 8px;
      width: 100%;
    }
    .comparison-table th, .comparison-table td {
      background: rgba(255,255,255,0.03);
      padding: 1rem;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.05);
    }

    /* 编号清单 */
    .step-number {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--primary);
      color: white;
      width: 28px; height: 28px;
      border-radius: 30px;
      font-weight: 700;
      margin-right: 8px;
    }

    /* 弹窗 */
    .modal-mask {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(4px);
      z-index: 1200;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s;
    }
    .modal-mask.active { opacity: 1; pointer-events: auto; }
    .modal-card {
      background: #1b1d33;
      border-radius: 28px;
      max-width: 760px;
      width: 90%;
      padding: 24px;
      position: relative;
      box-shadow: 0 30px 50px rgba(0,0,0,0.6);
      color: var(--text-light);
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }
    .modal-close {
      position: absolute;
      top: 15px; right: 18px;
      font-size: 2rem;
      color: #aaa;
      background: none;
      border: none;
      cursor: pointer;
      line-height: 1;
    }
    .modal-card img {
      width: 180px;
      border-radius: 20px;
      object-fit: cover;
    }
    @media (max-width: 600px) {
      .modal-card { flex-direction: column; text-align: center; }
      .modal-card img { width: 100%; max-width: 260px; margin: 0 auto; }
    }

    /* 回到顶部 */
    #backTop {
      position: fixed;
      bottom: 30px; right: 30px;
      background: var(--primary);
      width: 50px; height: 50px;
      border-radius: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.4rem;
      box-shadow: 0 10px 20px rgba(109,93,252,0.5);
      opacity: 0;
      pointer-events: none;
      transition: 0.3s;
      z-index: 1100;
      cursor: pointer;
    }
    #backTop.show { opacity: 1; pointer-events: auto; }

    /* footer 友链 */
    .friend-links a {
      color: var(--accent);
      text-decoration: none;
      margin: 0 12px;
    }
    .footer-bg { background: #0b0c1c; border-top: 1px solid #2a2c44; }

    /* 平滑滚动 */
    html { scroll-behavior: smooth; }

    .bg-glow {
      background: radial-gradient(circle at 20% 20%, rgba(109,93,252,0.2), transparent 50%),
                  radial-gradient(circle at 80% 80%, rgba(34,211,238,0.2), transparent 40%);
    }

/* --- 子页面追加 --- */
/* 保证所有卡片、组件与深色背景融合 */
    .card, .card-body, .card-title, .card-text, .card-header, .card-footer {
      background: var(--card-bg, #1b1c2e);
      color: var(--text-light);
      border-color: var(--border-color, #2d2e42);
    }
.bg-glow::before { content:''; position:absolute; top:-20%; left:-10%; width: 50%; height: 80%; background: radial-gradient(circle, rgba(109,93,252,.25) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.bg-glow .container { position: relative; z-index: 2; }
/* 关于页特色卡片 */
    .feature-card {
      background: rgba(20, 21, 35, 0.7);
      backdrop-filter: blur(4px);
      border: 1px solid rgba(109, 93, 252, 0.25);
      border-radius: var(--card-radius);
      padding: 1.5rem 1.2rem;
      height: 100%;
      transition: all .2s ease;
      box-shadow: var(--soft-shadow);
    }
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-icon { color: var(--accent); font-size: 2rem; margin-bottom: 1rem; }
/* 自定义 timeline (更新节奏) */
    .rhythm-item {
      position: relative;
      padding-left: 2rem;
      margin-bottom: 1.8rem;
      border-left: 2px solid var(--primary);
    }
.rhythm-item::before {
      content: "🌸";
      position: absolute;
      left: -1rem;
      background: var(--bg-deep);
      padding: 2px 6px;
      font-size: 1.1rem;
      border-radius: 50%;
      box-shadow: 0 0 0 2px var(--primary);
    }
.rhythm-title { font-weight: 600; color: var(--text-light); }
/* 表格覆盖 (仅用于片源说明) */
    .table {
      --bs-table-bg: transparent;
      --bs-table-color: var(--text-light);
      --bs-table-border-color: rgba(109,93,252,0.2);
      background-color: transparent;
      color: var(--text-light);
    }
.table td, .table th { background: transparent; border-color: rgba(109,93,252,0.15); padding: 0.9rem 0.5rem; }
/* 导航高亮当前页 */
    .navbar-nav .nav-link.active {
      color: var(--accent) !important;
      border-bottom: 2px solid var(--accent);
    }
/* 小標題一律帶品牌色點綴 */
    .section-title h2 { display: inline-block; border-bottom: 3px solid var(--accent); padding-bottom: .2rem; }
/* 修正 Bootstrap 的 link 顏色 */
    a { color: var(--accent); }
.footer-bg a { color: #a0a3c0; }
.footer-bg a:hover { color: var(--accent); }
/* 其他覆蓋 */
    .list-group-item { background: rgba(0,0,0,.2); color: var(--text-light); border-color: #2d2e42; }
.accordion-item { background: rgba(0,0,0,.2); }

/* --- 子页面追加 --- */
/* 本页专属微调 */
        .legal-section { padding: 4rem 0 5rem; position: relative; }
.legal-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--card-radius); padding: 2.2rem 2.5rem; margin-bottom: 1.8rem; box-shadow: var(--soft-shadow); backdrop-filter: blur(6px); }
.legal-card h2 { color: var(--accent); font-size: 1.45rem; font-weight: 700; margin-bottom: 1.2rem; letter-spacing: .5px; display: flex; align-items: center; gap: .6rem; }
.legal-card h2 i { color: var(--primary); font-size: 1.3rem; }
.legal-card p, .legal-card li { color: rgba(232,234,246,.82); line-height: 1.9; font-size: .95rem; }
.legal-card ul { padding-left: 1.2rem; }
.legal-card ul li { margin-bottom: .5rem; }
.legal-card strong { color: var(--text-light); }
.legal-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-card a:hover { color: var(--primary); }
.update-time { color: rgba(232,234,246,.5); font-size: .85rem; text-align: right; margin-top: 1.5rem; font-style: italic; }
.highlight-box { background: rgba(109,93,252,.1); border-left: 4px solid var(--primary); padding: 1rem 1.5rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0; }
.highlight-box p { margin-bottom: 0; }
.legal-card { padding: 1.5rem 1.5rem; }
.legal-card h2 { font-size: 1.2rem; }