:root {
  --primary: #06b6d4;
  --accent: #ec4899;
  --bg: #0c0a1a;
  --text: #e0f2fe;
  --card-bg: #161230;
  --border-line: rgba(224, 242, 254, 0.08);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.75;
  letter-spacing: 0.01em;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; border-left: 5px solid var(--accent); padding-left: 1rem; }
.navbar { background: rgba(12, 10, 26, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-line); padding: 0.8rem 0; }
.navbar-brand { font-weight: 900; font-size: 1.5rem; color: var(--primary) !important; }
.navbar-brand i { color: var(--accent); margin-right: 0.3rem; }
.nav-link { color: var(--text) !important; font-weight: 500; margin: 0 0.6rem; transition: 0.2s; }
.nav-link:hover { color: var(--primary) !important; }
.navbar-toggler { border-color: var(--primary); color: var(--text); }
.hero { padding: 4rem 0 3rem; text-align: center; }
.hero h1 { font-size: 2.6rem; font-weight: 900; color: #fff; margin-bottom: 0.5rem; }
.hero .lead { color: var(--text); opacity: 0.8; font-size: 1.1rem; margin-bottom: 2rem; }
.tag-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 0.9rem; max-width: 900px; margin: 0 auto; }
.tag-cloud span { background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.3); color: var(--primary); border-radius: 50px; padding: 0.4rem 1.2rem; font-size: 0.9rem; font-weight: 500; transition: 0.2s; cursor: default; }
.tag-cloud span:hover { background: rgba(6, 182, 212, 0.2); transform: scale(1.05); }
.section { padding: 3rem 0; }
.section-alt { background: #100d24; }
.card-film {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: fadeUp 0.6s ease both;
}
.card-film:hover { transform: scale(1.02); border-color: var(--primary); box-shadow: 0 8px 30px rgba(6, 182, 212, 0.2); }
.poster-wrapper { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #0a0818; }
.poster-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.card-film:hover .poster-wrapper img { transform: scale(1.05); }
.poster-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,10,26,0.95) 0%, rgba(12,10,26,0.3) 50%, transparent 100%);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s;
}
.card-film:hover .poster-overlay { opacity: 1; }
.play-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4); }
.card-body { padding: 0.9rem 1rem; }
.card-body h5 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 0.82rem; color: rgba(224, 242, 254, 0.6); display: flex; justify-content: space-between; }
.rating { color: var(--accent); font-weight: 700; font-family: 'Courier New', monospace; }
.rank-badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; border-radius: 4px; font-weight: 800; font-size: 0.75rem; padding: 2px 8px; z-index: 2; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-btn { background: transparent; border: 1px solid var(--border-line); color: var(--text); border-radius: 50px; padding: 0.4rem 1.2rem; font-size: 0.9rem; transition: 0.2s; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); border-color: var(--primary); color: #0c0a1a; font-weight: 600; }
.accordion-item { background: transparent; border: 1px solid var(--border-line); border-radius: 8px; margin-bottom: 0.8rem; }
.accordion-button { background: transparent; color: var(--text); font-weight: 500; box-shadow: none; }
.accordion-button:not(.collapsed) { background: rgba(6, 182, 212, 0.08); color: var(--primary); }
.accordion-button::after { filter: invert(1); }
.icon-list { list-style: none; padding: 0; }
.icon-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border-line); display: flex; align-items: center; gap: 0.6rem; }
.icon-list li i { color: var(--primary); width: 24px; text-align: center; }
.mood-tags { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0; }
.mood-tag { background: transparent; border: 1px solid var(--accent); color: var(--accent); border-radius: 50px; padding: 0.5rem 1.5rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.mood-tag:hover { background: var(--accent); color: #fff; }
.friend-links { background: #100d24; padding: 2.5rem 0; border-top: 1px solid var(--border-line); border-bottom: 1px solid var(--border-line); }
.friend-links h4 { color: var(--primary); font-size: 1.1rem; margin-bottom: 1rem; font-weight: 600; }
.friend-links .link-item { color: var(--text); opacity: 0.7; font-size: 0.9rem; margin-right: 1.5rem; transition: 0.2s; }
.friend-links .link-item:hover { opacity: 1; color: var(--primary); }
footer { background: #080714; padding: 2rem 0; text-align: center; font-size: 0.9rem; color: rgba(224, 242, 254, 0.5); }
footer a { color: var(--primary); }
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 46px; height: 46px; border-radius: 8px;
  background: var(--primary); color: #0c0a1a; border: none; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3); opacity: 0; visibility: hidden; transition: 0.3s; z-index: 99;
}
.back-to-top.show { opacity: 1; visibility: visible; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
.card-film:nth-child(1) { animation-delay: 0.05s; }
.card-film:nth-child(2) { animation-delay: 0.1s; }
.card-film:nth-child(3) { animation-delay: 0.15s; }
.card-film:nth-child(4) { animation-delay: 0.2s; }
.card-film:nth-child(5) { animation-delay: 0.25s; }
.card-film:nth-child(6) { animation-delay: 0.3s; }
.card-film:nth-child(7) { animation-delay: 0.35s; }
.card-film:nth-child(8) { animation-delay: 0.4s; }
.movie-detail-modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(8, 7, 20, 0.92); backdrop-filter: blur(12px); }
.movie-detail-modal .modal-content { max-width: 640px; margin: 5% auto; background: var(--card-bg); border-radius: 12px; padding: 2rem; position: relative; border: 1px solid var(--border-line); }
.movie-detail-modal .close-modal { position: absolute; top: 10px; right: 15px; font-size: 1.6rem; color: var(--text); background: none; border: none; cursor: pointer; }
.movie-detail-modal .modal-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--primary); }
.movie-detail-modal .modal-rating { color: var(--accent); font-size: 1.2rem; font-weight: 800; font-family: 'Courier New', monospace; }
.movie-detail-modal .modal-meta { display: flex; gap: 1.5rem; margin: 1rem 0; font-size: 0.95rem; color: rgba(224, 242, 254, 0.7); }
.movie-detail-modal .modal-plot { margin: 1.2rem 0; line-height: 1.7; }
.movie-detail-modal .modal-actors { font-size: 0.9rem; opacity: 0.8; }
@media (max-width: 768px) {
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .movie-detail-modal .modal-content { margin: 10% 1rem; padding: 1.5rem; }
}

/* --- 子页面追加 --- */
/* 页面专属微调 - 仅覆盖非组件细节 */
    .about-hero {
      padding: 3.5rem 0 2rem;
      border-bottom: 1px solid var(--border-line);
    }
.about-hero h1 {
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 0.75rem;
    }
.section-title-sm {
      font-size: 1.75rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      border-left: 4px solid var(--primary);
      padding-left: 1rem;
      margin: 2.5rem 0 1.5rem;
    }
.icon-list i {
      color: var(--primary);
      width: 1.5rem;
      text-align: center;
      flex-shrink: 0;
    }
.value-card {
      background: var(--card-bg);
      border: 1px solid var(--border-line);
      border-radius: 1rem;
      padding: 1.75rem 1.5rem;
      height: 100%;
      transition: transform .2s ease, border-color .2s;
    }
.value-card:hover {
      transform: translateY(-4px);
      border-color: var(--primary);
    }
.value-card i {
      font-size: 2rem;
      color: var(--accent);
      margin-bottom: 1rem;
    }
.value-card h3 {
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }
.text-muted-custom {
      color: rgba(224, 242, 254, 0.7);
    }
/* 确保bootstrap组件继承暗色 */
    .list-unstyled { color: var(--text); }

/* --- 子页面追加 --- */
.disclaimer-hero {
            padding: 60px 0 30px;
            text-align: center;
        }
.disclaimer-hero h1 {
            font-size: 2.4rem;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 12px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
.disclaimer-hero p {
            color: rgba(224, 242, 254, 0.7);
            font-size: 1.05rem;
            max-width: 700px;
            margin: 0 auto;
        }
.disclaimer-section {
            padding: 30px 0;
        }
.disclaimer-card {
            background: var(--card-bg);
            border: 1px solid var(--border-line);
            border-radius: 16px;
            padding: 30px;
            margin-bottom: 24px;
            box-shadow: var(--shadow);
        }
.disclaimer-card h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
.disclaimer-card h2 i {
            font-size: 1.3rem;
            color: var(--accent);
        }
.disclaimer-card p, .disclaimer-card li {
            color: rgba(224, 242, 254, 0.85);
            line-height: 1.8;
            font-size: 0.95rem;
        }
.disclaimer-card ul {
            padding-left: 20px;
        }
.disclaimer-card li {
            margin-bottom: 8px;
        }
.highlight-box {
            background: rgba(6, 182, 212, 0.08);
            border-left: 3px solid var(--primary);
            padding: 14px 18px;
            border-radius: 0 8px 8px 0;
            margin: 16px 0;
        }
.highlight-box p {
            margin: 0;
            color: var(--text);
        }
.update-tag {
            display: inline-block;
            background: rgba(236, 72, 153, 0.15);
            color: var(--accent);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            margin-top: 8px;
        }
.disclaimer-hero h1 { font-size: 1.8rem; }
.disclaimer-card { padding: 20px; }

/* --- 子页面追加 --- */
/* 页面专属补充样式 */
    .guide-hero {
      padding: 80px 0 40px;
      position: relative;
      overflow: hidden;
    }
.guide-hero::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -10%;
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
      border-radius: 50%;
    }
.guide-hero h1 {
      font-size: 2.5rem;
      font-weight: 800;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 12px;
    }
.guide-hero .subtitle {
      color: rgba(224, 242, 254, 0.7);
      font-size: 1.05rem;
      max-width: 600px;
    }
.guide-section {
      padding: 40px 0;
    }
.guide-section h2 {
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 24px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border-line);
    }
.guide-section h2 i {
      margin-right: 10px;
      color: var(--accent);
    }
.guide-section h3 {
      font-size: 1.15rem;
      font-weight: 600;
      color: var(--text);
      margin-top: 20px;
      margin-bottom: 10px;
    }
.guide-section p {
      color: rgba(224, 242, 254, 0.75);
      line-height: 1.8;
      margin-bottom: 12px;
    }
.guide-section ul {
      color: rgba(224, 242, 254, 0.75);
      line-height: 1.8;
      padding-left: 20px;
    }
.guide-section li {
      margin-bottom: 6px;
    }
.guide-card {
      background: var(--card-bg);
      border: 1px solid var(--border-line);
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 20px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
.guide-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow);
    }
.guide-card .card-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(236, 72, 153, 0.2));
      color: var(--primary);
      margin-bottom: 16px;
    }
.guide-card h3 {
      font-size: 1.1rem;
      font-weight: 600;
      margin-top: 0;
      color: var(--text);
    }
.guide-card p {
      font-size: 0.95rem;
      margin-bottom: 0;
    }
.step-list {
      counter-reset: step;
      list-style: none;
      padding-left: 0;
    }
.step-list li {
      counter-increment: step;
      position: relative;
      padding-left: 48px;
      margin-bottom: 16px;
      line-height: 1.7;
    }
.step-list li::before {
      content: counter(step);
      position: absolute;
      left: 0;
      top: 2px;
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      color: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.9rem;
    }
.tip-box {
      background: rgba(6, 182, 212, 0.08);
      border-left: 3px solid var(--primary);
      padding: 16px 20px;
      border-radius: 0 8px 8px 0;
      margin: 20px 0;
    }
.tip-box p {
      margin-bottom: 0;
    }
.tip-box i {
      color: var(--primary);
      margin-right: 8px;
    }
.faq-item {
      background: var(--card-bg);
      border: 1px solid var(--border-line);
      border-radius: 10px;
      padding: 20px;
      margin-bottom: 16px;
    }
.faq-item h3 {
      font-size: 1rem;
      font-weight: 600;
      margin-top: 0;
      margin-bottom: 8px;
      color: var(--primary);
    }
.faq-item h3 i {
      margin-right: 8px;
      font-size: 0.9rem;
    }
.faq-item p {
      font-size: 0.92rem;
      margin-bottom: 0;
    }
.guide-hero h1 {
        font-size: 1.8rem;
      }
.guide-section h2 {
        font-size: 1.3rem;
      }
.guide-hero {
        padding: 50px 0 30px;
      }

/* --- 子页面追加 --- */
/* 覆盖 Bootstrap 组件配色 — 保证与深色站一致 */
        .card, .card-body, .card-title, .card-text, .card-header, .card-footer,
        .list-group-item, .accordion-item, .accordion-button, .accordion-body {
            background: var(--card-bg);
            color: var(--text);
            border-color: var(--border-line);
        }
.form-control, .form-select {
            background: rgba(12, 10, 26, 0.7);
            border: 1px solid var(--border-line);
            color: var(--text);
        }
.form-control::placeholder {
            color: rgba(224, 242, 254, 0.4);
        }
.nav-link:hover, .nav-link.active {
            color: var(--primary);
        }
/* 本页小工具 */
        .rank-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 2rem;
            border-bottom: 1px solid var(--border-line);
            padding-bottom: 0.75rem;
        }
.rank-tab {
            background: transparent;
            border: 1px solid var(--border-line);
            color: var(--text);
            padding: 0.4rem 1.2rem;
            border-radius: 2rem;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }
.rank-tab:hover, .rank-tab.active {
            background: var(--primary);
            border-color: var(--primary);
            color: #0c0a1a;
        }
.rank-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
.rank-item {
            background: var(--card-bg);
            border: 1px solid var(--border-line);
            border-radius: 1.25rem;
            padding: 1.25rem 1.5rem;
            display: flex;
            align-items: center;
            gap: 1.5rem;
            transition: transform 0.2s, box-shadow 0.2s;
        }
.rank-item:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow);
        }
.rank-num {
            font-size: 2.2rem;
            font-weight: 900;
            line-height: 1;
            color: var(--primary);
            min-width: 3.5rem;
            text-align: center;
            opacity: 0.9;
        }
.rank-info {
            flex: 1;
        }
.rank-title {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
            color: var(--text);
        }
.rank-meta {
            display: flex;
            gap: 1rem;
            font-size: 0.9rem;
            color: rgba(224, 242, 254, 0.7);
        }
.rank-meta i {
            color: var(--accent);
            margin-right: 0.2rem;
        }
.badge-trend {
            background: rgba(236, 72, 153, 0.2);
            color: var(--accent);
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.2rem 0.8rem;
            border-radius: 2rem;
            white-space: nowrap;
        }
.genre-chip {
            background: rgba(6, 182, 212, 0.1);
            border: 1px solid rgba(6, 182, 212, 0.2);
            color: var(--primary);
            font-size: 0.75rem;
            padding: 0.15rem 0.7rem;
            border-radius: 2rem;
        }
.rank-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
.rank-num {
                min-width: auto;
            }

/* --- 子页面追加 --- */
.sitemap-section { padding: 60px 0; }
.sitemap-section h2 { color: var(--primary); font-weight: 700; margin-bottom: 30px; position: relative; display: inline-block; }
.sitemap-section h2::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 60px; height: 3px; background: var(--accent); border-radius: 2px; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 25px; }
.sitemap-card { background: var(--card-bg); border: 1px solid var(--border-line); border-radius: 12px; padding: 24px; transition: transform 0.3s, box-shadow 0.3s; }
.sitemap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sitemap-card h3 { color: var(--text); font-size: 1.15rem; font-weight: 600; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.sitemap-card h3 i { color: var(--primary); font-size: 1.2rem; }
.sitemap-card ul { list-style: none; padding: 0; margin: 0; }
.sitemap-card ul li { margin-bottom: 10px; }
.sitemap-card ul li a { color: rgba(224, 242, 254, 0.75); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; display: inline-block; }
.sitemap-card ul li a:hover { color: var(--primary); }
.sitemap-card ul li a i { margin-right: 8px; font-size: 0.8rem; color: var(--accent); }
.sitemap-intro { background: var(--card-bg); border: 1px solid var(--border-line); border-radius: 16px; padding: 30px; margin-bottom: 40px; }
.sitemap-intro h1 { color: var(--text); font-weight: 800; font-size: 2rem; margin-bottom: 15px; }
.sitemap-intro h1 span { color: var(--primary); }
.sitemap-intro p { color: rgba(224, 242, 254, 0.75); line-height: 1.8; max-width: 800px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 20px; }
.quick-link-item { background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.3); border-radius: 30px; padding: 8px 20px; color: var(--primary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: all 0.3s; }
.quick-link-item:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.page-list-item { background: var(--card-bg); border: 1px solid var(--border-line); border-radius: 10px; padding: 20px; display: flex; align-items: flex-start; gap: 15px; transition: background 0.3s; }
.page-list-item:hover { background: rgba(6, 182, 212, 0.08); }
.page-list-item .page-icon { width: 45px; height: 45px; border-radius: 10px; background: rgba(6, 182, 212, 0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.page-list-item .page-icon i { color: var(--primary); font-size: 1.2rem; }
.page-list-item .page-info h4 { color: var(--text); font-size: 1rem; font-weight: 600; margin-bottom: 5px; }
.page-list-item .page-info p { color: rgba(224, 242, 254, 0.6); font-size: 0.85rem; margin: 0; line-height: 1.5; }

/* --- Bootstrap 组件配色适配(程序自动补,避免白底黑字) --- */
.accordion-header { background:transparent !important; }
