:root {
      --main: #6d5dfc;
      --accent: #22d3ee;
      --bg: #0f1020;
      --text: #e8eaf6;
      --card-bg: #1a1b2f;
      --radius-lg: 24px;
      --radius-md: 18px;
      --shadow: 0 12px 30px rgba(0,0,0,0.6);
    }

    * { box-sizing: border-box; }
    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      letter-spacing: 0.3px;
      overflow-x: hidden;
    }
    h1, h2, h3, h4, .navbar-brand { font-weight: 900; letter-spacing: -0.5px; }
    a { color: inherit; text-decoration: none; }
    .navbar {
      background: rgba(15, 16, 32, 0.8);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(255,255,255,0.05);
      padding: 0.8rem 2rem;
    }
    .navbar-brand { font-size: 1.8rem; font-weight: 900; color: var(--text); }
    .navbar-brand i { color: var(--accent); margin-right: 8px; }
    .nav-link { color: var(--text) !important; font-weight: 500; margin: 0 0.5rem; }
    .nav-link:hover { color: var(--accent) !important; }

    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      background: radial-gradient(circle at 30% 40%, #2b2a5e, #0f1020 90%);
      padding: 3rem 2rem;
      overflow: hidden;
    }
    .hero-bg {
      position: absolute; inset: 0;
      background-image: url('{随机图片}'); 
      background-size: cover; background-position: center;
      opacity: 0.25;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 90%);
    }
    .hero-content { position: relative; z-index: 5; max-width: 1200px; }
    .hero h1 {
      font-size: clamp(3rem, 10vw, 5.5rem);
      font-weight: 900;
      text-shadow: 0 8px 30px rgba(109, 93, 252, 0.5);
    }
    .keyword-cloud { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 2.5rem 0 2rem; }
    .keyword-tag {
      background: rgba(109, 93, 252, 0.15);
      border: 1px solid var(--main);
      backdrop-filter: blur(8px);
      padding: 0.6rem 1.6rem;
      border-radius: 50px;
      font-weight: 600;
      font-size: 1.1rem;
      color: var(--text);
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      transition: 0.2s;
    }
    .keyword-tag i { color: var(--accent); margin-right: 6px; }
    .keyword-tag:hover { transform: translateY(-4px); background: var(--main); color: white; }
    .hero-sub { font-size: 1.3rem; opacity: 0.85; font-weight: 300; max-width: 700px; }

    .section-title {
      font-size: 2.5rem;
      font-weight: 900;
      margin: 3.5rem 0 2rem;
      position: relative;
      display: inline-block;
    }
    .section-title::after {
      content: '';
      display: block;
      width: 70%; height: 4px;
      background: linear-gradient(90deg, var(--main), var(--accent));
      border-radius: 4px;
      margin-top: 10px;
    }

    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 28px;
    }
    .movie-card {
      background: var(--card-bg);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow);
      border: 1px solid rgba(255,255,255,0.04);
      transition: transform 0.25s ease, border-color 0.3s;
      cursor: pointer;
    }
    .movie-card:hover {
      transform: translateY(-8px) scale(1.02);
      border-color: var(--accent);
    }
    .poster {
      position: relative;
      aspect-ratio: 2 / 3;
      background: #252642;
      overflow: hidden;
    }
    .poster img {
      width: 100%; height: 100%; object-fit: cover;
      transition: 0.5s;
      opacity: 0;
      animation: imageFade 1s forwards;
    }
    @keyframes imageFade { to { opacity: 1; } }
    .poster-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(15,16,32,0.9) 5%, transparent 50%);
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 12px;
      opacity: 0.7;
      transition: 0.3s;
    }
    .movie-card:hover .poster-overlay { opacity: 1; }
    .play-icon {
      width: 50px; height: 50px;
      background: rgba(109, 93, 252, 0.9);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      backdrop-filter: blur(8px);
      font-size: 1.3rem;
      box-shadow: 0 0 20px var(--main);
      margin-bottom: 8px;
    }
    .card-body { padding: 1rem; }
    .movie-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
    .movie-meta { font-size: 0.85rem; opacity: 0.7; font-family: monospace; }

    .rank-list { display: flex; flex-direction: column; gap: 12px; }
    .rank-item {
      background: rgba(26, 27, 47, 0.7);
      border-radius: var(--radius-md);
      padding: 1rem 1.5rem;
      border-left: 5px solid var(--main);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      gap: 18px;
    }
    .rank-number { font-weight: 900; font-size: 1.7rem; font-family: monospace; color: var(--accent); min-width: 60px; }
    .rank-title { font-weight: 700; flex: 1; }
    .rank-score { font-family: monospace; }

    .coming-soon-card {
      background: var(--card-bg);
      border-radius: var(--radius-lg);
      padding: 1.8rem;
      text-align: center;
      border: 1px dashed var(--main);
    }

    .btn-main {
      background: var(--main);
      color: white;
      padding: 0.8rem 2.2rem;
      border-radius: 50px;
      font-weight: 700;
      border: none;
      transition: 0.2s;
    }
    .btn-main:hover { background: var(--accent); color: #000; }

    /* 弹窗 */
    .modal-overlay {
      display: none;
      position: fixed; inset: 0;
      background: rgba(10, 10, 20, 0.75);
      backdrop-filter: blur(6px);
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }
    .modal-overlay.active { display: flex; }
    .modal-card {
      background: #1e1f35;
      border-radius: 32px;
      max-width: 700px;
      width: 90%;
      padding: 2rem;
      box-shadow: 0 30px 60px rgba(0,0,0,0.8);
      display: flex;
      gap: 2rem;
      color: var(--text);
      border: 1px solid rgba(109,93,252,0.3);
    }
    .modal-card img { width: 140px; height: 210px; object-fit: cover; border-radius: 16px; }
    .modal-close { margin-left: auto; font-size: 1.8rem; cursor: pointer; color: var(--accent); }

    footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 3rem 0; margin-top: 5rem; }
    .friend-links { background: #16172b; border-radius: 24px; padding: 2rem; margin-top: 4rem; }
    .friend-links h3 { color: var(--accent); }

    .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    .tips-section li { margin-bottom: 12px; }

/* --- 子页面追加 --- */
/* 排行榜页专用微调 */
        .rank-hero {
            padding: 60px 0 30px;
        }
.rank-hero .hero-sub {
            max-width: 720px;
        }
.rank-section {
            margin-bottom: 48px;
        }
.rank-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 24px;
        }
.rank-tab-btn {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            color: var(--text);
            border-radius: 50px;
            padding: 8px 22px;
            font-size: 0.92rem;
            font-weight: 500;
            cursor: pointer;
            transition: all .3s ease;
        }
.rank-tab-btn:hover,
        .rank-tab-btn.active {
            background: var(--main);
            border-color: var(--main);
            color: #fff;
        }
.rank-item:hover {
            transform: translateX(6px);
            border-color: rgba(109, 93, 252, 0.5);
            box-shadow: var(--shadow);
        }
.rank-number.top1 {
            color: #ffd700;
        }
.rank-number.top2 {
            color: #c0c0c0;
        }
.rank-number.top3 {
            color: #cd7f32;
        }
.rank-poster {
            width: 72px;
            height: 100px;
            border-radius: 10px;
            object-fit: cover;
            background: rgba(255,255,255,0.08);
            flex-shrink: 0;
        }
.rank-info {
            flex: 1;
            min-width: 0;
        }
.rank-meta {
            font-size: 0.82rem;
            color: rgba(232, 234, 246, 0.55);
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }
.rank-trend {
            font-size: 0.75rem;
            color: #4ade80;
            background: rgba(74, 222, 128, 0.12);
            padding: 2px 10px;
            border-radius: 30px;
        }
.rank-trend.down {
            color: #f87171;
            background: rgba(248, 113, 113, 0.12);
        }
.rank-trend.flat {
            color: var(--accent);
            background: rgba(34, 211, 238, 0.12);
        }
.note-box {
            background: rgba(109, 93, 252, 0.08);
            border-left: 3px solid var(--main);
            border-radius: 8px;
            padding: 14px 20px;
            font-size: 0.88rem;
            color: rgba(232, 234, 246, 0.7);
            margin-bottom: 36px;
        }

/* --- 子页面追加 --- */
/* 本页专属样式 */
        .guide-hero {
            background: linear-gradient(135deg, rgba(109,93,252,0.25) 0%, rgba(34,211,238,0.15) 50%, rgba(15,16,32,0.9) 100%);
            padding: 80px 0 60px;
            position: relative;
            overflow: hidden;
        }
.guide-hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(109,93,252,0.3) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }
.guide-section {
            padding: 60px 0;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
.guide-section:last-child {
            border-bottom: none;
        }
.guide-card {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: 30px;
            height: 100%;
            box-shadow: var(--shadow);
            border: 1px solid rgba(255,255,255,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
.guide-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 18px 40px rgba(0,0,0,0.7);
        }
.guide-icon {
            font-size: 2.2rem;
            color: var(--accent);
            margin-bottom: 18px;
            display: inline-block;
        }
.step-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background: var(--main);
            color: #fff;
            border-radius: 50%;
            font-weight: 700;
            font-size: 1rem;
            margin-right: 12px;
        }
.faq-item {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: 24px 28px;
            margin-bottom: 16px;
            border: 1px solid rgba(255,255,255,0.05);
            transition: border-color 0.3s ease;
        }
.faq-item:hover {
            border-color: var(--main);
        }
.faq-q {
            font-weight: 600;
            color: var(--text);
            margin-bottom: 8px;
            display: flex;
            align-items: flex-start;
        }
.faq-q i {
            color: var(--main);
            margin-right: 12px;
            margin-top: 4px;
        }
.faq-a {
            color: rgba(232,234,246,0.75);
            line-height: 1.7;
            padding-left: 28px;
        }
.tip-box {
            background: rgba(109,93,252,0.12);
            border-left: 4px solid var(--main);
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
            padding: 20px 24px;
            margin: 20px 0;
        }
.tip-box i {
            color: var(--accent);
            margin-right: 10px;
        }
.update-schedule {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin: 20px 0;
        }
.schedule-tag {
            background: rgba(34,211,238,0.12);
            border: 1px solid rgba(34,211,238,0.3);
            color: var(--accent);
            padding: 8px 16px;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 500;
        }
.schedule-tag i {
            margin-right: 6px;
            font-size: 0.8rem;
        }
.device-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 16px;
            margin-top: 20px;
        }
.device-item {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: 20px;
            text-align: center;
            border: 1px solid rgba(255,255,255,0.06);
        }
.device-item i {
            font-size: 2rem;
            color: var(--main);
            margin-bottom: 12px;
        }
.device-item span {
            display: block;
            color: var(--text);
            font-size: 0.95rem;
            font-weight: 500;
        }
.device-item small {
            color: rgba(232,234,246,0.55);
            font-size: 0.8rem;
        }

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