:root {
      --primary: #06b6d4;
      --accent: #ec4899;
      --bg-deep: #0c0a1a;
      --text-light: #e0f2fe;
      --card-radius: 20px;
      --soft-shadow: 0 12px 30px rgba(6, 182, 212, 0.15);
    }

    * { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

    body {
      background: var(--bg-deep);
      color: var(--text-light);
      overflow-x: hidden;
    }

    /* 自定义滚动条 */
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: #1a1230; }
    ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 8px; }

    /* 导航 */
    .navbar {
      background: rgba(12, 10, 26, 0.8);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    }
    .navbar-brand { font-weight: 900; font-size: 1.5rem; letter-spacing: 1px; }
    .navbar-brand i { color: var(--accent); margin-right: 8px; }
    .nav-link { color: var(--text-light) !important; font-weight: 500; margin: 0 8px; }
    .nav-link:hover { color: var(--primary) !important; }

    /* hero 区域 打字机 + 视差 */
    .hero-section {
      position: relative;
      padding: 8rem 0 5rem;
      background: radial-gradient(circle at 70% 20%, rgba(6,182,212,0.25), transparent 40%),
                  radial-gradient(circle at 20% 80%, rgba(236,72,153,0.2), transparent 50%);
      overflow: hidden;
    }
    .hero-section::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="0,0 10,0 5,5" fill="%2306b6d4" opacity="0.2"/></svg>');
      background-size: 60px 60px;
      background-attachment: fixed; /* parallax */
      opacity: 0.3;
    }
    .typewriter-title {
      font-size: clamp(2.2rem, 6vw, 4.5rem);
      font-weight: 900;
      line-height: 1.2;
      position: relative;
      z-index: 2;
      color: white;
      text-shadow: 0 0 30px rgba(6,182,212,0.5);
      border-right: 4px solid var(--primary);
      white-space: nowrap;
      overflow: hidden;
      width: max-content;
      max-width: 100%;
      animation: typing 3s steps(15, end) infinite, blink .8s step-end infinite;
    }
    @keyframes typing {
      0% { width: 0; }
      80%, 100% { width: 100%; }
    }
    @keyframes blink { 50% { border-color: transparent; } }

    .hero-sub { font-size: 1.2rem; color: rgba(224,242,254,0.8); }

    /* 通用卡片区块 */
    .section-title {
      font-weight: 800;
      font-size: 1.8rem;
      margin-bottom: 1.8rem;
      position: relative;
      display: inline-block;
    }
    .section-title i { color: var(--accent); margin-right: 10px; }

    /* 海报卡片 */
    .movie-card {
      background: #1b1533;
      border-radius: var(--card-radius);
      overflow: hidden;
      border: 1px solid rgba(6, 182, 212, 0.1);
      box-shadow: 0 8px 20px rgba(0,0,0,0.6);
      transition: all 0.3s ease;
      cursor: pointer;
      position: relative;
    }
    .movie-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: var(--soft-shadow);
    }
    .poster-wrap {
      position: relative;
      overflow: hidden;
      aspect-ratio: 2/3;
    }
    .poster-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
    .movie-card:hover .poster-wrap img {
      transform: scale(1.1);
    }
    .overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(12,10,26,0.95) 0%, transparent 60%);
      opacity: 0;
      transition: opacity 0.3s;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 1rem;
    }
    .movie-card:hover .overlay { opacity: 1; }
    .overlay-text { color: white; font-size: 0.8rem; }

    .badge-hot {
      position: absolute;
      top: 10px;
      left: 10px;
      background: var(--accent);
      color: white;
      font-size: 0.7rem;
      padding: 3px 8px;
      border-radius: 20px;
      font-weight: 700;
    }
    .badge-ep {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(0,0,0,0.7);
      color: var(--primary);
      border: 1px solid var(--primary);
      font-size: 0.7rem;
      padding: 2px 8px;
      border-radius: 16px;
    }

    .card-body {
      padding: 0.8rem;
    }
    .rating i { color: #fbbf24; font-size: 0.7rem; }

    /* 分类筛选区（标签页切换） */
    .cat-tabs .nav-link {
      background: transparent;
      border: none;
      color: var(--text-light);
      font-weight: 600;
      border-radius: 30px;
      padding: 0.5rem 1.2rem;
      margin: 0 0.2rem;
    }
    .cat-tabs .nav-link.active {
      background: var(--primary);
      color: #0c0a1a;
    }

    /* 时间线 */
    .timeline {
      border-left: 3px solid var(--primary);
      margin-left: 20px;
      padding-left: 1.5rem;
    }
    .timeline-item {
      position: relative;
      margin-bottom: 1.2rem;
    }
    .timeline-item::before {
      content: "●";
      color: var(--accent);
      position: absolute;
      left: -1.9rem;
      background: var(--bg-deep);
    }

    /* FAQ 手风琴样式简化 */
    .faq-item { background: #1b1533; border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: 0.8rem; }

    /* 底部抽屉弹窗 */
    .drawer-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.7);
      z-index: 9999;
      display: none;
    }
    .drawer-panel {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      background: #1d1637;
      border-radius: 28px 28px 0 0;
      z-index: 10000;
      transform: translateY(100%);
      transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
      padding: 2rem 1.5rem;
      max-height: 80vh;
      overflow-y: auto;
      border-top: 2px solid var(--primary);
    }
    .drawer-panel.show { transform: translateY(0); }
    .drawer-overlay.show { display: block; }

    /* 回到顶部 */
    #backTop {
      position: fixed;
      right: 30px;
      bottom: 30px;
      z-index: 1000;
      background: var(--primary);
      color: #0c0a1a;
      width: 45px;
      height: 45px;
      border-radius: 50%;
      display: none;
      border: none;
      font-size: 1.2rem;
      box-shadow: 0 4px 15px rgba(6,182,212,0.5);
    }
    #backTop.show { display: block; }

    /* 友链 */
    .friend-links { background: #15102a; border-radius: 24px; padding: 1.5rem; }

/* --- 子页面追加 --- */
.ranking-page { padding: 60px 0 80px; }
.ranking-hero {
      background: linear-gradient(135deg, rgba(6,182,212,0.15) 0%, rgba(236,72,153,0.1) 100%);
      border: 1px solid rgba(6,182,212,0.2);
      border-radius: 24px;
      padding: 40px 50px;
      margin-bottom: 50px;
      position: relative;
      overflow: hidden;
    }
.ranking-hero::before {
      content: '🏆';
      position: absolute;
      right: 30px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 100px;
      opacity: 0.1;
    }
.ranking-hero h1 {
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--text-light);
      margin-bottom: 15px;
    }
.ranking-hero p {
      color: rgba(224,242,254,0.7);
      font-size: 1.1rem;
      max-width: 600px;
      margin-bottom: 0;
    }
.ranking-tabs {
      display: flex;
      gap: 15px;
      margin-bottom: 40px;
      flex-wrap: wrap;
    }
.ranking-tab {
      padding: 10px 25px;
      border-radius: 50px;
      background: rgba(6,182,212,0.1);
      border: 1px solid rgba(6,182,212,0.3);
      color: var(--text-light);
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      font-size: 0.95rem;
    }
.ranking-tab:hover, .ranking-tab.active {
      background: var(--primary);
      color: var(--bg-deep);
      border-color: var(--primary);
      box-shadow: var(--soft-shadow);
    }
.rank-list {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
.rank-item {
      display: flex;
      align-items: center;
      gap: 20px;
      background: rgba(6,182,212,0.05);
      border: 1px solid rgba(6,182,212,0.15);
      border-radius: 16px;
      padding: 15px 20px;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }
.rank-item:hover {
      border-color: var(--primary);
      box-shadow: var(--soft-shadow);
      transform: translateX(5px);
    }
.rank-number {
      font-size: 2rem;
      font-weight: 900;
      color: var(--primary);
      min-width: 50px;
      text-align: center;
      font-style: italic;
    }
.rank-number.top-1 { color: #ffd700; }
.rank-number.top-2 { color: #c0c0c0; }
.rank-number.top-3 { color: #cd7f32; }
.rank-thumb {
      width: 80px;
      height: 110px;
      border-radius: 10px;
      object-fit: cover;
      background: rgba(6,182,212,0.1);
      flex-shrink: 0;
    }
.rank-info {
      flex: 1;
    }
.rank-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text-light);
      margin-bottom: 5px;
    }
.rank-meta {
      font-size: 0.85rem;
      color: rgba(224,242,254,0.6);
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
    }
.rank-stats {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-shrink: 0;
    }
.rank-badge {
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
      background: rgba(236,72,153,0.2);
      color: var(--accent);
      border: 1px solid rgba(236,72,153,0.3);
    }
.rank-score {
      font-weight: 800;
      color: var(--primary);
      font-size: 1.2rem;
    }
.rank-progress {
      position: absolute;
      bottom: 0;
      left: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      opacity: 0.3;
    }
.ranking-section-title {
      font-size: 1.8rem;
      font-weight: 800;
      color: var(--text-light);
      margin: 50px 0 30px;
      display: flex;
      align-items: center;
      gap: 15px;
    }
.ranking-section-title i {
      color: var(--primary);
    }
.trend-up { color: #22c55e; }
.trend-down { color: #ef4444; }
.trend-flat { color: #f59e0b; }
.ranking-hero { padding: 30px; }
.ranking-hero h1 { font-size: 1.8rem; }
.rank-item { flex-wrap: wrap; }
.rank-stats { width: 100%; justify-content: flex-end; }
.rank-thumb { width: 60px; height: 85px; }
.rank-number { font-size: 1.5rem; min-width: 35px; }

/* --- 子页面追加 --- */
/* 本页专属小范围样式，补充覆盖Bootstrap组件，确保与深色主题完全融合 */
        .navbar {
            background-color: rgba(12, 10, 26, 0.9) !important;
            backdrop-filter: blur(8px);
            border-bottom: 1px solid rgba(6, 182, 212, 0.25);
        }
.navbar-brand, .nav-link {
            color: var(--text-light) !important;
        }
.btn-outline-primary, .btn-outline-secondary {
            color: var(--primary);
            border-color: var(--primary);
        }
.btn-outline-primary:hover {
            background-color: var(--primary);
            color: #0c0a1a;
        }
.card, .card-body, .card-header, .card-footer {
            background-color: rgba(6, 182, 212, 0.08);
            border: 1px solid rgba(6, 182, 212, 0.25);
            color: var(--text-light);
            border-radius: var(--card-radius);
        }
.list-group-item {
            background-color: rgba(0,0,0,0.25);
            border-color: rgba(6, 182, 212, 0.2);
            color: var(--text-light);
        }
.form-control, .form-select {
            background-color: rgba(0,0,0,0.35);
            border: 1px solid var(--primary);
            color: var(--text-light);
        }
.form-control::placeholder {
            color: rgba(224, 242, 254, 0.5);
        }
.friend-links a {
            color: var(--text-light);
            margin-right: 1.2rem;
            text-decoration: none;
            transition: color 0.2s;
        }
.friend-links a:hover {
            color: var(--accent);
        }
/* 自定义小块 */
        .feature-icon {
            font-size: 2rem;
            color: var(--accent);
            margin-bottom: 0.5rem;
        }
.stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--primary);
        }
.stat-label {
            color: var(--text-light);
            opacity: 0.8;
        }
.about-hero {
            padding: 4rem 0 2rem;
            background: radial-gradient(circle at 20% 30%, rgba(6,182,212,0.15) 0%, transparent 40%);
        }
h2, h3 {
            font-weight: 700;
            letter-spacing: -0.02em;
        }
h2 {
            margin-top: 3rem;
            border-left: 4px solid var(--accent);
            padding-left: 0.75rem;
        }
h3 {
            color: var(--primary);
            margin-top: 2rem;
            font-size: 1.4rem;
        }
.text-muted-custom {
            color: rgba(224, 242, 254, 0.7);
        }
.badge-custom {
            background-color: var(--accent);
            color: #0c0a1a;
            padding: 0.35em 0.9em;
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.8rem;
        }
.bg-soft-primary {
            background-color: rgba(6, 182, 212, 0.1);
            border-radius: var(--card-radius);
            padding: 1.5rem;
            border: 1px solid rgba(6, 182, 212, 0.2);
        }
.team-link i {
            color: var(--primary);
            margin: 0 0.4rem;
            transition: transform 0.2s;
        }
.team-link i:hover {
            transform: scale(1.2);
            color: var(--accent);
        }

/* --- 子页面追加 --- */
/* 确保任何bootstrap组件都不会出现白底黑字 */
    .card, .card-body, .card-title, .card-text, .card-header, .card-footer,
    .list-group-item, .accordion-item, .accordion-button, .accordion-body,
    .modal-content, .modal-header, .modal-body, .dropdown-menu, .dropdown-item,
    .form-control, .form-select, .input-group-text, .table, .nav-link, .navbar {
      background-color: transparent !important;
      color: var(--text-light) !important;
      border-color: rgba(6, 182, 212, 0.25) !important;
    }
.nav-link.active, .nav-link:hover {
      color: var(--primary) !important;
    }
/* 卡片美化，统一风格 */
    .disclaimer-card {
      background: rgba(15, 12, 30, 0.6);
      border-radius: var(--card-radius);
      padding: 2rem 1.8rem;
      border: 1px solid rgba(6, 182, 212, 0.15);
      box-shadow: var(--soft-shadow);
      margin-bottom: 2rem;
      backdrop-filter: blur(4px);
    }
.disclaimer-card h2 {
      color: var(--primary);
      font-weight: 700;
      font-size: 1.7rem;
      margin-bottom: 1.2rem;
      border-left: 4px solid var(--accent);
      padding-left: 1rem;
    }
.disclaimer-card h3 {
      color: var(--accent);
      font-weight: 600;
      font-size: 1.3rem;
      margin-top: 1.8rem;
      margin-bottom: 0.8rem;
    }
.disclaimer-card p, .disclaimer-card li {
      color: rgba(224, 242, 254, 0.9);
      line-height: 1.75;
    }
.disclaimer-card ul, .disclaimer-card ol {
      padding-left: 1.5rem;
    }
.disclaimer-card a {
      color: var(--primary);
      text-decoration: underline;
      text-underline-offset: 3px;
    }
.disclaimer-card a:hover {
      color: var(--accent);
    }
.muted-small {
      color: rgba(224, 242, 254, 0.6);
      font-size: 0.9rem;
    }
.footer-links a {
      color: var(--primary);
      margin: 0 0.5rem;
    }
/* 让页面背景与首页一致 */
    body {
      background-color: var(--bg-deep);
      color: var(--text-light);
      font-family: 'Inter', sans-serif;
    }
/* 时间线样式沿用（本页未使用，但保持存在） */
    .timeline-item {
      border-left: 2px solid var(--primary);
    }