:root {
      --primary: #2563eb;
      --accent: #06b6d4;
      --bg: #f4f8ff;
      --text: #0f1e3d;
      --radius-lg: 24px;
      --radius-md: 18px;
      --shadow-soft: 0 12px 32px rgba(37, 99, 235, 0.12);
      --shadow-hover: 0 18px 40px rgba(6, 182, 212, 0.22);
    }
    * { box-sizing: border-box; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Inter', sans-serif;
      line-height: 1.6;
      scroll-behavior: smooth;
    }
    /* 滚动进度条 */
    #scrollProgress {
      position: fixed; top: 0; left: 0;
      height: 5px; width: 0%;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      z-index: 2000; border-radius: 0 5px 5px 0;
      transition: width 0.1s ease;
    }
    /* 大圆角卡片 */
    .movie-card {
      background: #ffffff;
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      transition: transform 0.25s, border-color 0.2s, box-shadow 0.25s;
      border: 1px solid rgba(37, 99, 235, 0.08);
      height: 100%;
      display: flex;
      flex-direction: column;
      cursor: pointer;
    }
    .movie-card:hover {
      transform: scale(1.02);
      border-color: var(--primary);
      box-shadow: var(--shadow-hover);
    }
    .movie-card .card-img-top {
      width: 100%;
      aspect-ratio: 2 / 3;
      object-fit: cover;
      background: #e4ebf7;
    }
    .movie-card .card-body {
      padding: 0.8rem 0.9rem;
      background: white;
      border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    .movie-title {
      font-weight: 700;
      font-size: 1.05rem;
      color: var(--text);
      line-height: 1.3;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .meta-info {
      font-family: 'SFMono-Regular', 'Menlo', monospace;
      font-size: 0.75rem;
      color: #5b6f9e;
      display: flex;
      justify-content: space-between;
      margin-top: 4px;
    }
    .chip {
      background: #eaf0ff;
      color: var(--primary);
      border-radius: 30px;
      padding: 4px 10px;
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.3px;
    }
    .section-title {
      font-weight: 800;
      font-size: 1.9rem;
      letter-spacing: -0.01em;
      border-left: 8px solid var(--primary);
      padding-left: 16px;
      margin: 2rem 0 1.5rem;
      display: flex;
      align-items: center;
    }
    .section-title i { color: var(--accent); margin-right: 10px; }
    .hero-section {
      background: radial-gradient(circle at 80% 20%, #ffffff, #e5eeff);
      border-radius: var(--radius-lg);
      padding: 4rem 2rem;
      margin-bottom: 2rem;
      box-shadow: var(--shadow-soft);
    }
    .hero-section h1 {
      font-weight: 900;
      font-size: 3.2rem;
      color: var(--text);
      letter-spacing: -0.02em;
      line-height: 1.1;
    }
    .hero-section .lead {
      font-size: 1.3rem;
      font-weight: 400;
      color: #25355f;
    }
    .btn-custom {
      background: var(--primary);
      border: none;
      border-radius: 40px;
      padding: 12px 28px;
      font-weight: 600;
      box-shadow: 0 6px 16px rgba(37,99,235,0.3);
      transition: all 0.2s;
      color: white;
    }
    .btn-custom-outline {
      background: transparent;
      border: 2px solid var(--primary);
      color: var(--primary);
      border-radius: 40px;
      padding: 10px 24px;
      font-weight: 600;
    }
    .btn-custom-outline:hover { background: var(--primary); color: white; }
    .filter-bar {
      position: sticky; top: 12px; z-index: 100;
      background: rgba(255,255,255,0.75);
      backdrop-filter: blur(10px);
      border-radius: 60px;
      padding: 10px 20px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.04);
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 30px;
    }
    .filter-capsule {
      background: #fff;
      border: 1px solid #e0e9ff;
      border-radius: 30px;
      padding: 8px 20px;
      font-weight: 500;
      font-size: 0.9rem;
      color: var(--text);
      transition: all 0.2s;
      cursor: default;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .filter-capsule.active {
      background: var(--primary);
      color: white;
      border-color: var(--primary);
    }
    .rank-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px; height: 28px;
      border-radius: 50%;
      font-weight: 800;
      background: #d3dff9;
      color: var(--text);
      margin-right: 6px;
      font-size: 0.9rem;
    }
    .rank-badge.gold { background: #FFD700; color: #3a2e00; }
    .rank-badge.silver { background: #C0C0C0; color: #1f1f1f; }
    .rank-badge.bronze { background: #CD7F32; color: #2b1704; }
    .ranking-list .list-item {
      background: white;
      border-radius: 18px;
      padding: 10px 15px;
      margin-bottom: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.02);
      display: flex;
      align-items: center;
      transition: 0.2s;
      border: 1px solid #e9f0ff;
    }
    .ranking-list .list-item:hover { border-color: var(--accent); }
    .accordion-button { background: #f0f6ff; border-radius: 16px !important; font-weight: 600; }
    .accordion-body { background: white; border-radius: 16px; }
    .footer-block {
      background: white;
      border-radius: 30px;
      padding: 2rem;
      margin-top: 2rem;
    }
    .friend-links a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 500;
      margin: 0 12px 0 0;
    }
    /* 左侧分类 + 右侧瀑布流 */
    .layout-category {
      display: grid;
      grid-template-columns: 180px 1fr;
      gap: 28px;
    }
    .category-sidebar {
      background: white;
      border-radius: var(--radius-lg);
      padding: 18px 12px;
      box-shadow: var(--shadow-soft);
      height: fit-content;
      position: sticky;
      top: 80px;
    }
    .category-sidebar .cat-item {
      padding: 10px 14px;
      border-radius: 30px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 6px;
      transition: 0.2s;
      cursor: default;
    }
    .category-sidebar .cat-item i { margin-right: 10px; color: var(--primary); }
    .category-sidebar .cat-item:hover { background: #f0f6ff; }
    @media (max-width: 992px) {
      .layout-category { grid-template-columns: 1fr; }
      .category-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 10px; }
    }
    /* 抽屉弹窗 */
    .drawer-overlay {
      position: fixed; top:0; left:0; width:100%; height:100%;
      background: rgba(0,0,0,0.45); backdrop-filter: blur(3px);
      z-index: 1500; opacity:0; visibility: hidden; transition: 0.3s;
    }
    .drawer-panel {
      position: fixed; bottom:0; left:0; width:100%;
      background: white;
      border-radius: 28px 28px 0 0;
      padding: 2rem 1.5rem;
      z-index: 1501;
      transform: translateY(100%);
      transition: 0.4s cubic-bezier(0.2, 0.9, 0.1, 1);
      max-height: 85vh; overflow-y: auto;
    }
    .drawer-panel.show, .drawer-overlay.show { opacity:1; visibility: visible; transform: translateY(0); }
    .drawer-close { position: absolute; right: 18px; top: 12px; background: none; border:none; font-size: 2rem; color: var(--text); }
    @media (min-width: 768px) {
      .drawer-panel { left: 50%; transform: translate(-50%, 100%); width: 720px; border-radius: 28px; }
      .drawer-panel.show { transform: translate(-50%, 0); }
    }
    .stats-number { font-family: monospace; }

/* --- 子页面追加 --- */
.rank-hero {
            background: linear-gradient(145deg, var(--bg) 0%, #e8f0ff 100%);
            border-bottom: 1px solid rgba(37,99,235,.12);
        }
.rank-podium {
            background: rgba(255,255,255,.6);
            backdrop-filter: blur(4px);
            border-radius: var(--radius-lg);
            padding: 1.6rem 1.8rem;
            box-shadow: var(--shadow-soft);
        }
.rank-list-item {
            background: rgba(255,255,255,.75);
            backdrop-filter: blur(2px);
            border-radius: var(--radius-md);
            padding: .9rem 1.2rem;
            margin-bottom: .6rem;
            border-left: 4px solid var(--primary);
            transition: all .2s ease;
            display: flex;
            align-items: center;
            gap: .8rem;
        }
.rank-list-item:hover {
            transform: translateX(6px);
            box-shadow: var(--shadow-hover);
            border-left-color: var(--accent);
        }
.rank-number {
            font-weight: 800;
            font-size: 1.2rem;
            min-width: 2.2rem;
            color: var(--primary);
            opacity: .85;
        }
.rank-list-item:nth-child(1) .rank-number,
        .rank-list-item:nth-child(2) .rank-number,
        .rank-list-item:nth-child(3) .rank-number {
            color: var(--accent);
            font-size: 1.5rem;
        }
.rank-type-tag {
            font-size: .75rem;
            font-weight: 600;
            padding: .2rem .6rem;
            border-radius: 30px;
            background: rgba(6,182,212,.12);
            color: var(--accent);
            letter-spacing: .02em;
        }
.rank-meta i {
            color: var(--primary);
            opacity: .7;
            margin-right: .25rem;
        }
.rank-grid-card {
            background: rgba(255,255,255,.65);
            backdrop-filter: blur(2px);
            border-radius: var(--radius-md);
            transition: transform .2s, box-shadow .2s;
            border: 1px solid rgba(37,99,235,.1);
        }
.rank-grid-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
        }
/* 确保Bootstrap组件不破坏深色/浅色风格 */
        .nav-link, .navbar-brand {
            color: var(--text) !important;
        }
.navbar-toggler {
            border-color: rgba(15,30,61,.2);
        }
.navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15,30,61,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }
/* 页脚链接颜色 */
        .footer-block a {
            color: var(--text);
            opacity: .75;
            text-decoration: none;
        }
.footer-block a:hover {
            opacity: 1;
            color: var(--primary);
        }

/* --- 子页面追加 --- */
/* 保证 Bootstrap 卡片类不会破坏站点配色 —— 仅当用到时兜底 */
        .card, .card-body, .card-title, .card-text, .card-header, .card-footer {
            background: transparent !important;
            color: var(--text) !important;
            border: none !important;
        }
.list-group-item {
            background: transparent !important;
            color: var(--text) !important;
            border-color: rgba(15, 30, 61, 0.08) !important;
        }
/* 本页细节微调 */
        .about-hero {
            background: linear-gradient(145deg, rgba(37,99,235,0.06) 0%, rgba(6,182,212,0.04) 100%);
            border-radius: var(--radius-lg);
            padding: 2.5rem 2rem;
            margin-bottom: 3rem;
            border: 1px solid rgba(37,99,235,0.15);
        }
.stat-block {
            background: rgba(255,255,255,0.6);
            backdrop-filter: blur(4px);
            border-radius: var(--radius-md);
            padding: 1.2rem 0.8rem;
            text-align: center;
            box-shadow: var(--shadow-soft);
            border: 1px solid rgba(37,99,235,0.1);
        }
.stat-number {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--primary);
            line-height: 1.2;
        }
.timeline-item {
            border-left: 3px solid var(--accent);
            padding-left: 1.4rem;
            margin-bottom: 1.5rem;
            position: relative;
        }
.timeline-item::before {
            content: "🎬";
            position: absolute;
            left: -0.9rem;
            top: -0.2rem;
            font-size: 1.2rem;
            background: var(--bg);
            padding: 0 4px;
        }
.chip-about {
            background: rgba(6, 182, 212, 0.08);
            border: 1px solid rgba(6, 182, 212, 0.25);
            border-radius: 50px;
            padding: 0.4rem 1.1rem;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text);
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }
.chip-about i {
            color: var(--accent);
        }
.about-section-title {
            font-weight: 800;
            letter-spacing: -0.02em;
            margin-bottom: 1.2rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
.about-section-title i {
            color: var(--primary);
            font-size: 1.4rem;
        }
.about-hero {
                padding: 1.8rem 1.2rem;
            }

/* --- 子页面追加 --- */
.legal-section { background: #ffffff; border-radius: var(--radius-lg); padding: 2.5rem; margin-bottom: 2rem; box-shadow: var(--shadow-soft); border: 1px solid rgba(37,99,235,0.08); }
.legal-section h2 { color: var(--primary); font-weight: 700; font-size: 1.4rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.6rem; }
.legal-section h2 i { color: var(--accent); font-size: 1.2rem; }
.legal-section p { color: #3a4a6b; line-height: 1.8; margin-bottom: 1rem; }
.legal-section ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-section li { color: #3a4a6b; line-height: 1.8; margin-bottom: 0.5rem; }
.legal-section li::marker { color: var(--accent); }
.legal-highlight { background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, rgba(6,182,212,0.05) 100%); border-left: 4px solid var(--accent); padding: 1.2rem 1.5rem; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 1.5rem 0; }
.legal-highlight p { margin-bottom: 0; }
.legal-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(37,99,235,0.08); color: var(--primary); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; }
.legal-badge i { color: var(--accent); }
.page-hero-legal { background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, rgba(6,182,212,0.08) 100%); padding: 3rem 0; border-bottom: 1px solid rgba(37,99,235,0.08); }
.legal-section { padding: 1.5rem; }
.page-hero-legal { padding: 2rem 0; }

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