:root {
      --main: #6d5dfc;
      --accent: #22d3ee;
      --bg: #0f1020;
      --text: #e8eaf6;
      --card-radius: 16px;
      --shadow: 0 12px 30px rgba(0,0,0,0.6);
      --font-title: 'Inter', sans-serif;
    }
    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: 'Inter', sans-serif;
      overflow-x: hidden;
    }
    h1,h2,h3,.display-6 {
      font-weight: 800;
      letter-spacing: 1px;
    }
    .navbar {
      background: rgba(15,16,32,0.9) !important;
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(255,255,255,0.1);
      padding: 0.8rem 1.5rem;
      border-radius: 0 0 30px 30px;
    }
    .navbar-brand {
      font-weight: 900;
      font-size: 1.8rem;
      background: linear-gradient(135deg, var(--main), var(--accent));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      letter-spacing: 1px;
    }
    .navbar-nav .nav-link {
      color: var(--text) !important;
      font-weight: 500;
      margin: 0 12px;
      border-radius: 50px;
      padding: 8px 20px !important;
      transition: 0.3s;
    }
    .navbar-nav .nav-link:hover {
      background: rgba(109,93,252,0.2);
      color: var(--accent) !important;
    }
    .btn-capsule {
      border-radius: 50px;
      padding: 8px 24px;
      background: linear-gradient(145deg, var(--main), #4a3bd0);
      border: none;
      color: white;
      font-weight: 600;
      transition: 0.3s;
      box-shadow: 0 8px 20px rgba(109,93,252,0.4);
    }
    .btn-capsule:hover {
      transform: translateY(-3px);
      box-shadow: 0 15px 30px rgba(34,211,238,0.3);
    }
    .section-title {
      font-size: 2rem;
      font-weight: 800;
      position: relative;
      margin: 2.5rem 0 1.8rem;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .section-title i {
      color: var(--accent);
    }
    .movie-card {
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: var(--card-radius);
      overflow: hidden;
      transition: all 0.3s ease;
      box-shadow: 0 6px 20px rgba(0,0,0,0.3);
      cursor: pointer;
      backdrop-filter: blur(5px);
      height: 100%;
    }
    .movie-card:hover {
      transform: scale(1.03) translateY(-8px);
      border-color: var(--main);
      box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 0 2px rgba(109,93,252,0.5);
    }
    .movie-card img {
      width: 100%;
      aspect-ratio: 2/3;
      object-fit: cover;
      background: linear-gradient(145deg, #1c1f3a, #2a2d4a);
      transition: 0.5s;
    }
    .badge-quality {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(0,0,0,0.7);
      border-radius: 30px;
      padding: 4px 12px;
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--accent);
      border: 1px solid var(--accent);
      backdrop-filter: blur(4px);
    }
    .card-body {
      padding: 1rem;
    }
    .rating {
      color: #ffb800;
      font-weight: 700;
    }
    .movie-row {
      display: flex;
      gap: 15px;
      overflow-x: auto;
      padding-bottom: 15px;
      scroll-snap-type: x mandatory;
    }
    .movie-row .col-card {
      min-width: 150px;
      max-width: 150px;
      flex-shrink: 0;
      scroll-snap-align: start;
    }
    @media (max-width: 576px) {
      .movie-row .col-card {
        min-width: 130px;
        max-width: 130px;
      }
    }
    .genre-tag {
      font-size: 0.7rem;
      background: rgba(109,93,252,0.3);
      padding: 4px 12px;
      border-radius: 30px;
      color: #c8cbff;
      font-weight: 600;
    }
    /* 滚动进场 */
    .fade-up {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    }
    .fade-up.visible {
      opacity: 1;
      transform: translateY(0);
    }
    /* 手风琴定制 */
    .accordion-item {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 20px;
      overflow: hidden;
      margin-bottom: 12px;
    }
    .accordion-button {
      background: transparent;
      color: var(--text);
      font-weight: 600;
      border-radius: 20px;
    }
    .accordion-button:not(.collapsed) {
      background: rgba(109,93,252,0.2);
      color: var(--accent);
    }
    .accordion-button:focus {
      box-shadow: none;
      border-color: var(--main);
    }
    .accordion-body {
      color: #c0c6e0;
    }
    /* 弹窗 */
    .modal-movie {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(8px);
      z-index: 9999;
      justify-content: center;
      align-items: center;
      padding: 20px;
    }
    .modal-card {
      background: #151a30;
      border-radius: 28px;
      max-width: 800px;
      width: 100%;
      padding: 20px;
      display: flex;
      gap: 20px;
      box-shadow: 0 30px 60px rgba(0,0,0,0.8);
      border: 1px solid rgba(255,255,255,0.15);
      position: relative;
    }
    .modal-card img {
      width: 180px;
      border-radius: 16px;
      object-fit: cover;
      background: #222;
    }
    .modal-close {
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 28px;
      cursor: pointer;
      color: #aaa;
      transition: 0.3s;
      background: none;
      border: none;
      z-index: 2;
    }
    .modal-close:hover {
      color: var(--accent);
      transform: rotate(90deg);
    }
    @media (max-width: 700px) {
      .modal-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
      .modal-card img {
        width: 130px;
      }
    }
    .footer-links {
      background: #1a1e35;
      padding: 40px 0 20px;
      border-radius: 40px 40px 0 0;
      margin-top: 40px;
    }
    .friend-link {
      color: var(--accent);
      text-decoration: none;
      margin: 0 10px;
      font-weight: 500;
    }
    .keyword-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
      padding: 25px 0;
    }
    .keyword-cloud span {
      background: rgba(34,211,238,0.1);
      border: 1px solid var(--accent);
      padding: 6px 22px;
      border-radius: 50px;
      font-size: 0.9rem;
      color: var(--accent);
      font-weight: 500;
    }
    .lazy-img {
      opacity: 0;
      transition: opacity 0.4s;
    }
    .lazy-img.loaded {
      opacity: 1;
    }

/* --- 子页面追加 --- */
/* 本页专属样式 */
        .guide-hero {
            background: linear-gradient(135deg, rgba(109,93,252,0.15) 0%, rgba(34,211,238,0.08) 50%, rgba(15,16,32,0) 100%);
            border-radius: var(--card-radius);
            padding: 50px 40px;
            margin-bottom: 40px;
            border: 1px solid rgba(109,93,252,0.2);
        }
.guide-section {
            margin-bottom: 50px;
        }
.guide-step-card {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: var(--card-radius);
            padding: 28px 24px;
            height: 100%;
            transition: all 0.3s ease;
            position: relative;
        }
.guide-step-card:hover {
            border-color: var(--main);
            background: rgba(109,93,252,0.08);
            transform: translateY(-4px);
            box-shadow: var(--shadow);
        }
.step-number {
            font-size: 2.2rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--main), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 12px;
        }
.guide-tip {
            background: rgba(34,211,238,0.06);
            border-left: 4px solid var(--accent);
            border-radius: 0 12px 12px 0;
            padding: 16px 20px;
            margin: 20px 0;
        }
.faq-item {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
            padding: 20px 24px;
            margin-bottom: 16px;
        }
.faq-q {
            font-weight: 700;
            color: var(--text);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
.faq-q i {
            color: var(--main);
        }
.faq-a {
            color: rgba(232,234,246,0.75);
            font-size: 0.95rem;
            line-height: 1.7;
            padding-left: 26px;
        }
.keyword-cloud a {
            color: rgba(232,234,246,0.7);
            text-decoration: none;
            padding: 6px 14px;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 20px;
            font-size: 0.85rem;
            display: inline-block;
            margin: 4px;
            transition: all 0.3s;
        }
.keyword-cloud a:hover {
            border-color: var(--main);
            color: var(--text);
            background: rgba(109,93,252,0.08);
        }
.shortcut-list {
            list-style: none;
            padding: 0;
        }
.shortcut-list li {
            padding: 8px 0;
            display: flex;
            align-items: center;
            gap: 12px;
            color: rgba(232,234,246,0.85);
        }
.shortcut-list li i {
            color: var(--accent);
            width: 20px;
        }
.platform-note {
            background: rgba(109,93,252,0.06);
            border: 1px dashed rgba(109,93,252,0.3);
            border-radius: 12px;
            padding: 16px 20px;
            font-size: 0.9rem;
            color: rgba(232,234,246,0.75);
        }

/* --- 子页面追加 --- */
.ranking-hero { background: linear-gradient(135deg, rgba(109,93,252,0.15) 0%, rgba(34,211,238,0.08) 100%); border: 1px solid rgba(109,93,252,0.2); border-radius: var(--card-radius); padding: 3rem 2rem; margin-bottom: 2.5rem; text-align: center; }
.ranking-hero h1 { font-size: 2.4rem; font-weight: 800; color: var(--text); margin-bottom: 0.8rem; }
.ranking-hero p { color: rgba(232,234,246,0.7); max-width: 700px; margin: 0 auto; font-size: 1.05rem; line-height: 1.7; }
.rank-tabs { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 2.5rem; }
.rank-tab { padding: 0.6rem 1.6rem; border-radius: 50px; background: rgba(109,93,252,0.12); color: var(--text); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease; border: 1px solid transparent; }
.rank-tab:hover, .rank-tab.active { background: var(--main); color: #fff; border-color: var(--main); }
.rank-section { margin-bottom: 3rem; }
.rank-section-title { font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; position: relative; display: inline-block; }
.rank-section-title::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--main), var(--accent)); border-radius: 3px; }
.rank-section-sub { color: rgba(232,234,246,0.6); font-size: 0.95rem; margin-bottom: 1.5rem; }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-item { display: flex; align-items: center; gap: 1.2rem; padding: 1rem 1.2rem; background: rgba(255,255,255,0.03); border-radius: 12px; margin-bottom: 0.8rem; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.05); }
.rank-item:hover { background: rgba(109,93,252,0.08); border-color: rgba(109,93,252,0.3); transform: translateX(4px); }
.rank-num { font-size: 1.8rem; font-weight: 900; color: var(--main); width: 50px; text-align: center; flex-shrink: 0; font-style: italic; }
.rank-num.gold { color: #ffd700; }
.rank-num.silver { color: #c0c0c0; }
.rank-num.bronze { color: #cd7f32; }
.rank-poster { width: 70px; height: 95px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,0.05); }
.rank-info { flex: 1; }
.rank-name { font-weight: 700; color: var(--text); font-size: 1.05rem; margin-bottom: 0.3rem; }
.rank-meta { color: rgba(232,234,246,0.6); font-size: 0.85rem; }
.rank-score { display: flex; align-items: center; gap: 0.3rem; color: var(--accent); font-weight: 700; font-size: 1rem; margin-left: 0.5rem; }
.rank-score i { color: var(--accent); font-size: 0.8rem; }
.trend-up { color: #4ade80; font-size: 0.8rem; margin-left: 0.4rem; }
.trend-down { color: #f87171; font-size: 0.8rem; margin-left: 0.4rem; }
.trend-same { color: rgba(232,234,246,0.5); font-size: 0.8rem; margin-left: 0.4rem; }
.ranking-hero { padding: 2rem 1.2rem; }
.ranking-hero h1 { font-size: 1.6rem; }
.rank-item { gap: 0.8rem; padding: 0.8rem; }
.rank-num { font-size: 1.3rem; width: 35px; }
.rank-poster { width: 55px; height: 75px; }
.rank-name { font-size: 0.95rem; }
.rank-score { font-size: 0.9rem; }
.rank-tab { padding: 0.5rem 1rem; font-size: 0.85rem; }

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