:root {
    --primary: #6d5dfc;
    --accent: #22d3ee;
    --bg: #0f1020;
    --text: #e8eaf6;
    --card-bg: #1a1b35;
    --card-bg-hover: #222348;
    --shadow: 0 8px 25px 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', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
  }
  a { text-decoration: none; color: inherit; }

  /* 滚动进度条 */
  #progressBar {
    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-out;
  }

  /* 导航栏 */
  .navbar-custom {
    background: rgba(15, 16, 32, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(109, 93, 252, 0.2);
    padding: 12px 0;
  }
  .navbar-brand {
    font-weight: 900;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
  }
  .navbar-nav .nav-link {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
  }
  .navbar-nav .nav-link:hover { color: var(--accent); }
  .navbar-toggler { border: 1px solid rgba(255,255,255,0.3); }

  /* Hero */
  .hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 0;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1b35 0%, #0f1020 50%, #1a1b35 100%);
    z-index: -2;
  }
  .hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(109, 93, 252, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.2) 0%, transparent 50%);
    animation: parallaxMove 20s ease-in-out infinite alternate;
  }
  @keyframes parallaxMove {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-20px) scale(1.05); }
  }
  .hero-content { text-align: center; z-index: 1; padding: 0 20px; }
  .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
  }
  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto 30px;
  }
  .hero-tags .tag {
    background: rgba(109, 93, 252, 0.15);
    border: 1px solid rgba(109, 93, 252, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    animation: float 3s ease-in-out infinite;
  }
  .hero-tags .tag:nth-child(2n) { animation-delay: 0.5s; }
  .hero-tags .tag:nth-child(3n) { animation-delay: 1s; }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  .hero-tags .tag:hover { background: var(--primary); border-color: var(--primary); }

  /* 区块标题 */
  .section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 50px 0 25px;
    padding-left: 15px;
    border-left: 4px solid var(--primary);
    position: relative;
  }
  .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
  }

  /* 海报卡片 */
  .movie-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  }
  .movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(109, 93, 252, 0.4);
  }
  .movie-card .poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2b4a, #1a1b35);
  }
  .movie-card .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
  }
  .movie-card:hover .poster img { transform: scale(1.08); }
  .movie-card .poster .rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #ffd700;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
  }
  .movie-card .card-body {
    padding: 12px;
  }
  .movie-card .card-body h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .movie-card .card-body .meta {
    font-size: 0.75rem;
    color: #9a9bb0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .movie-card .card-body .category-tag {
    background: rgba(109, 93, 252, 0.2);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
  }

  /* 翻转卡片弹窗 */
  .movie-card {
    perspective: 1000px;
  }
  .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
  }
  .movie-card.flipped .card-inner {
    transform: rotateY(180deg);
  }
  .card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
  }
  .card-front {
    background: var(--card-bg);
  }
  .card-back {
    background: linear-gradient(145deg, var(--card-bg-hover), var(--card-bg));
    transform: rotateY(180deg);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(109, 93, 252, 0.3);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
  }
  .card-back h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
  }
  .card-back .detail-item {
    font-size: 0.75rem;
    margin-bottom: 4px;
    color: #b0b1c5;
  }
  .card-back .detail-item strong {
    color: var(--text);
    margin-right: 4px;
  }
  .card-back .plot {
    font-size: 0.7rem;
    margin-top: 8px;
    color: #9a9bb0;
    line-height: 1.4;
    max-height: 80px;
    overflow-y: auto;
  }
  .card-back .close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
  }

  /* 分类胶囊 */
  .category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
  }
  .category-pill {
    background: rgba(109, 93, 252, 0.15);
    border: 1px solid rgba(109, 93, 252, 0.4);
    color: var(--text);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
  }
  .category-pill:hover, .category-pill.active {
    background: var(--primary);
    border-color: var(--primary);
  }

  /* 榜单 */
  .rank-list {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
  }
  .rank-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s;
  }
  .rank-item:hover { background: rgba(109, 93, 252, 0.1); }
  .rank-item:last-child { border-bottom: none; }
  .rank-num {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    margin-right: 12px;
    font-size: 1rem;
  }
  .rank-num.gold {
    background: linear-gradient(145deg, #ffd700, #ff8c00);
    color: #000;
    box-shadow: 0 0 15px rgba(255,215,0,0.4);
  }
  .rank-num.silver {
    background: linear-gradient(145deg, #c0c0c0, #808080);
    color: #fff;
  }
  .rank-num.bronze {
    background: linear-gradient(145deg, #cd7f32, #8b4513);
    color: #fff;
  }
  .rank-num.normal {
    background: rgba(109, 93, 252, 0.2);
    color: var(--text);
  }
  .rank-info { flex: 1; }
  .rank-info h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
  }
  .rank-info span { font-size: 0.7rem; color: #9a9bb0; }
  .rank-score {
    font-weight: 700;
    color: #ffd700;
    font-size: 0.95rem;
  }

  /* 心情选片 */
  .mood-section {
    background: linear-gradient(145deg, #1a1b35, #0f1020);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(109, 93, 252, 0.2);
  }
  .mood-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
  }
  .mood-tag {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
  }
  .mood-tag:hover { background: var(--accent); color: #000; }

  /* 手风琴 */
  .accordion-item {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
  }
  .accordion-button {
    background: var(--card-bg);
    color: var(--text);
    font-weight: 600;
    padding: 15px 20px;
  }
  .accordion-button:not(.collapsed) {
    background: rgba(109, 93, 252, 0.2);
    color: var(--text);
  }
  .accordion-body {
    background: rgba(0,0,0,0.2);
    color: #b0b1c5;
    font-size: 0.9rem;
  }

  /* 专题 */
  .feature-section {
    background: linear-gradient(135deg, rgba(109, 93, 252, 0.1), rgba(34, 211, 238, 0.05));
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
  }

  /* 友情链接 */
  .friend-links {
    margin: 40px 0 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .friend-links h6 {
    font-size: 0.85rem;
    color: #9a9bb0;
    margin-bottom: 10px;
  }
  .friend-links .link-item {
    font-size: 0.85rem;
    color: var(--accent);
    margin-right: 20px;
  }

  /* 页脚 */
  .site-footer {
    background: #0a0b18;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  .site-footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .site-footer a {
    color: #9a9bb0;
    font-size: 0.85rem;
    transition: color 0.3s;
    display: block;
    margin-bottom: 8px;
  }
  .site-footer a:hover { color: var(--accent); }
  .site-footer .copyright {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: #9a9bb0;
    font-size: 0.8rem;
  }

  /* 响应式 */
  @media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-tags .tag { font-size: 0.8rem; padding: 6px 15px; }
    .section-title { font-size: 1.4rem; }
  }

/* --- 子页面追加 --- */
.about-page { background: var(--bg); color: var(--text); }
.about-hero { padding: 100px 0 60px; text-align: center; }
.about-hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; }
.about-hero p { max-width: 700px; margin: 0 auto; opacity: .8; font-size: 1.1rem; }
.about-section { padding: 60px 0; }
.about-section h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 25px; color: var(--primary); }
.about-card { background: var(--card-bg); border-radius: 16px; padding: 30px; height: 100%; transition: all .3s ease; border: 1px solid rgba(255,255,255,.05); }
.about-card:hover { background: var(--card-bg-hover); transform: translateY(-4px); }
.about-card i { font-size: 2rem; color: var(--accent); margin-bottom: 15px; }
.about-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.about-card p { font-size: .95rem; opacity: .8; line-height: 1.7; margin: 0; }
.about-content { background: var(--card-bg); border-radius: 16px; padding: 40px; margin-top: 40px; }
.about-content p { line-height: 1.9; margin-bottom: 18px; opacity: .9; }
.about-content strong { color: var(--accent); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.about-badge { background: rgba(109, 93, 252, .15); color: var(--primary); padding: 4px 14px; border-radius: 20px; font-size: .85rem; font-weight: 500; display: inline-block; margin-bottom: 20px; }

/* --- 子页面追加 --- */
/* 隐私政策页专属样式 */
        .privacy-hero {
            background: linear-gradient(135deg, rgba(109, 93, 252, 0.15) 0%, rgba(34, 211, 238, 0.1) 100%);
            padding: 60px 0 40px;
            border-bottom: 1px solid rgba(109, 93, 252, 0.2);
        }
.privacy-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 40px 20px;
        }
.privacy-section {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 30px;
            margin-bottom: 25px;
            border: 1px solid rgba(109, 93, 252, 0.2);
            box-shadow: var(--shadow);
            transition: background 0.3s ease, transform 0.3s ease;
        }
.privacy-section:hover {
            background: var(--card-bg-hover);
            transform: translateY(-3px);
        }
.privacy-section h2 {
            color: var(--primary);
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
.privacy-section h2 i {
            color: var(--accent);
            font-size: 1.3rem;
        }
.privacy-section h3 {
            color: var(--text);
            font-size: 1.15rem;
            font-weight: 600;
            margin: 20px 0 12px;
        }
.privacy-section p {
            color: rgba(232, 234, 246, 0.85);
            line-height: 1.8;
            margin-bottom: 15px;
            font-size: 0.95rem;
        }
.privacy-section ul {
            color: rgba(232, 234, 246, 0.85);
            line-height: 1.8;
            margin-bottom: 15px;
            padding-left: 20px;
        }
.privacy-section ul li {
            margin-bottom: 8px;
            font-size: 0.95rem;
        }
.privacy-section strong {
            color: var(--accent);
            font-weight: 600;
        }
.privacy-badge {
            display: inline-block;
            background: rgba(109, 93, 252, 0.2);
            color: var(--primary);
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-right: 8px;
            margin-bottom: 8px;
        }
.privacy-updated {
            color: rgba(232, 234, 246, 0.6);
            font-size: 0.85rem;
            text-align: center;
            margin-top: 30px;
            padding: 20px;
            border-top: 1px solid rgba(109, 93, 252, 0.2);
        }
.privacy-cookie-icon {
            font-size: 2rem;
            color: var(--accent);
            margin-bottom: 10px;
        }
.privacy-section {
                padding: 20px;
            }
.privacy-section h2 {
                font-size: 1.2rem;
            }
.privacy-hero {
                padding: 40px 0 30px;
            }

/* --- 子页面追加 --- */
/* 排行榜页面专属样式 */
        .rank-hero {
            background: linear-gradient(135deg, rgba(109,93,252,0.15) 0%, rgba(34,211,238,0.1) 50%, rgba(15,16,32,0.9) 100%);
            padding: 80px 0 40px;
            border-bottom: 1px solid rgba(109,93,252,0.2);
        }
.rank-hero h1 {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }
.rank-hero h1::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 2px;
        }
.rank-hero p {
            color: rgba(232,234,246,0.75);
            font-size: 1.1rem;
            max-width: 600px;
            margin-top: 15px;
        }
.rank-section {
            padding: 60px 0;
        }
.rank-section:nth-child(even) {
            background: rgba(26,27,53,0.3);
        }
.rank-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 35px;
            flex-wrap: wrap;
        }
.rank-tab {
            padding: 8px 24px;
            border-radius: 30px;
            background: var(--card-bg);
            border: 1px solid rgba(109,93,252,0.3);
            color: var(--text);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
        }
.rank-tab:hover, .rank-tab.active {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-color: transparent;
            box-shadow: 0 4px 15px rgba(109,93,252,0.4);
        }
.rank-num.top-3 {
            font-size: 2.2rem;
        }
.rank-info h3 {
            font-size: 1.15rem;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 5px;
        }
.rank-info p {
            font-size: 0.9rem;
            color: rgba(232,234,246,0.6);
            margin: 0;
            line-height: 1.5;
        }
.rank-meta {
            display: flex;
            gap: 12px;
            align-items: center;
            font-size: 0.85rem;
        }
.rank-badge {
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            background: rgba(109,93,252,0.2);
            color: var(--primary);
        }
.rank-badge.hot {
            background: rgba(34,211,238,0.2);
            color: var(--accent);
        }
.rank-score .score-num {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--accent);
        }
.rank-score .score-label {
            font-size: 0.7rem;
            color: rgba(232,234,246,0.5);
            margin-top: 2px;
        }
.rank-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--primary);
            margin-right: 15px;
            background: rgba(109,93,252,0.1);
            border-radius: 10px;
        }
.trend-up {
            color: #10b981;
            font-size: 0.8rem;
            margin-left: 8px;
        }
.trend-down {
            color: #ef4444;
            font-size: 0.8rem;
            margin-left: 8px;
        }
.update-info {
            display: flex;
            align-items: center;
            gap: 8px;
            color: rgba(232,234,246,0.5);
            font-size: 0.85rem;
            margin-bottom: 25px;
            padding: 10px 16px;
            background: rgba(26,27,53,0.6);
            border-radius: 30px;
            display: inline-flex;
        }
.update-info i {
            color: var(--accent);
        }
.rank-hero h1 {
                font-size: 1.8rem;
            }
.rank-icon {
                display: none;
            }
.rank-tabs {
                gap: 8px;
            }
.rank-tab {
                padding: 6px 16px;
                font-size: 0.85rem;
            }

/* --- 子页面追加 --- */
/* 本页专属少量样式 */
        .guide-section {
            padding: 60px 0;
        }
.guide-card {
            background: var(--card-bg);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
            padding: 28px;
            height: 100%;
            transition: all 0.3s ease;
        }
.guide-card:hover {
            background: var(--card-bg-hover);
            transform: translateY(-4px);
            box-shadow: var(--shadow);
        }
.guide-card h3 {
            color: var(--primary);
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 14px;
        }
.guide-card p {
            color: var(--text);
            font-size: 0.95rem;
            line-height: 1.7;
            opacity: 0.9;
        }
.guide-card i {
            color: var(--accent);
            font-size: 1.8rem;
            margin-bottom: 16px;
        }
.step-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
.step-list li {
            padding: 10px 0;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            display: flex;
            align-items: flex-start;
            gap: 12px;
            color: var(--text);
            font-size: 0.95rem;
            line-height: 1.6;
        }
.step-list li:last-child {
            border-bottom: none;
        }
.step-list .step-num {
            background: var(--primary);
            color: #fff;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 700;
            flex-shrink: 0;
            margin-top: 2px;
        }
.tip-box {
            background: rgba(109, 93, 252, 0.08);
            border-left: 3px solid var(--primary);
            padding: 16px 20px;
            border-radius: 0 8px 8px 0;
            margin: 24px 0;
        }
.tip-box p {
            color: var(--text);
            font-size: 0.9rem;
            line-height: 1.6;
            margin: 0;
        }
.tip-box i {
            color: var(--primary);
            margin-right: 8px;
        }
.guide-title {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 12px;
        }
.guide-subtitle {
            color: var(--primary);
            font-size: 1.1rem;
            font-weight: 500;
            margin-bottom: 40px;
        }
.guide-title {
                font-size: 1.6rem;
            }
.guide-section {
                padding: 40px 0;
            }

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