:root {
      --primary: #f97316;
      --accent: #facc15;
      --bg-dark: #1a1410;
      --text-light: #fff7ed;
      --card-bg: #2a221c;
      --border-line: rgba(255, 247, 237, 0.12);
      --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.3);
      --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.6);
      --radius: 8px;
      --font-display: 'Inter', system-ui, -apple-system, sans-serif;
    }

    body {
      background-color: var(--bg-dark);
      color: var(--text-light);
      font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
      overflow-x: hidden;
      letter-spacing: 0.2px;
    }

    /* 背景视差 */
    .hero-parallax {
      background-image: linear-gradient(180deg, rgba(26, 20, 16, 0.3) 0%, rgba(26, 20, 16, 0.7) 100%), url('{随机图片}');
      background-size: cover;
      background-position: center;
      background-attachment: fixed;
      min-height: 65vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      position: relative;
      isolation: isolate;
    }

    .hero-parallax::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(26, 20, 16, 0.35);
      z-index: -1;
      backdrop-filter: brightness(0.8);
    }

    .hero-title {
      font-size: clamp(3rem, 10vw, 5rem);
      font-weight: 800;
      color: var(--text-light);
      text-shadow: 0 10px 20px rgba(0,0,0,0.6);
      display: inline-block;
      white-space: nowrap;
      border-right: 3px solid var(--accent);
      padding-right: 10px;
      animation: caretBlink 0.8s step-end infinite;
    }

    @keyframes caretBlink {
      50% { border-color: transparent; }
    }

    .nav-bg {
      background-color: rgba(26, 20, 16, 0.85);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border-line);
    }

    .navbar .nav-link {
      color: var(--text-light);
      opacity: 0.8;
      font-weight: 500;
      transition: 0.2s;
    }
    .navbar .nav-link:hover {
      opacity: 1;
      color: var(--accent);
    }
    .navbar-brand {
      font-weight: 800;
      font-size: 1.8rem;
      color: var(--primary) !important;
    }

    .section-title {
      font-size: 2.2rem;
      font-weight: 700;
      color: var(--text-light);
      position: relative;
      padding-bottom: 8px;
      margin-bottom: 30px;
      border-bottom: 2px solid var(--primary);
      display: inline-block;
    }

    .movie-card {
      background: var(--card-bg);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      transition: transform 0.25s ease, box-shadow 0.3s ease;
      cursor: pointer;
      border: 1px solid var(--border-line);
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    .movie-card:hover {
      transform: scale(1.03) translateY(-6px);
      box-shadow: var(--shadow-hover);
      border-color: var(--primary);
    }

    .movie-card img {
      width: 100%;
      aspect-ratio: 2 / 3;
      object-fit: cover;
      transition: transform 0.4s ease;
      display: block;
    }
    .movie-card:hover img {
      transform: scale(1.05);
    }

    .card-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(0,0,0,0.7);
      color: var(--accent);
      font-size: 0.75rem;
      font-weight: 600;
      padding: 4px 8px;
      border-radius: 4px;
      backdrop-filter: blur(2px);
      z-index: 3;
    }

    .card-body {
      padding: 12px 10px 8px;
    }

    .card-title {
      font-weight: 600;
      font-size: 1rem;
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .card-meta {
      display: flex;
      justify-content: space-between;
      color: rgba(255, 247, 237, 0.6);
      font-size: 0.8rem;
    }

    .movie-card .hover-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(0deg, rgba(26,20,16,0.85) 0%, transparent 60%);
      opacity: 0;
      transition: 0.3s;
      display: flex;
      align-items: flex-end;
      padding: 16px;
      color: white;
      font-size: 0.9rem;
    }
    .movie-card:hover .hover-overlay {
      opacity: 1;
    }

    /* 对比表格 */
    .table-compare {
      background: rgba(255, 247, 237, 0.05);
      border-radius: 12px;
      padding: 10px;
    }
    .table-compare table {
      width: 100%;
      color: var(--text-light);
    }
    .table-compare td, .table-compare th {
      padding: 12px 8px;
      border-bottom: 1px solid var(--border-line);
    }

    /* 编号清单 */
    .steps-list {
      counter-reset: step-counter;
      list-style: none;
      padding-left: 0;
    }
    .steps-list li {
      counter-increment: step-counter;
      margin-bottom: 12px;
      display: flex;
      gap: 10px;
      align-items: baseline;
    }
    .steps-list li::before {
      content: counter(step-counter) ".";
      color: var(--primary);
      font-weight: 800;
      font-size: 1.2rem;
    }

    /* 友情链接 */
    .friend-links a {
      color: var(--text-light);
      opacity: 0.7;
      margin-right: 16px;
      text-decoration: none;
    }
    .friend-links a:hover {
      color: var(--accent);
      opacity: 1;
    }

    /* 弹窗样式 */
    .movie-modal {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.0);
      backdrop-filter: blur(12px);
      z-index: 1000;
      display: none;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }
    .movie-modal.active {
      display: flex;
      background: rgba(10, 5, 0, 0.7);
    }
    .modal-content-box {
      background: #2a221c;
      border-radius: 16px;
      max-width: 560px;
      width: 90%;
      padding: 28px;
      border: 1px solid rgba(255, 247, 237, 0.15);
      position: relative;
      box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    }
    .modal-close {
      position: absolute;
      top: 12px;
      right: 18px;
      font-size: 2rem;
      color: var(--text-light);
      cursor: pointer;
      line-height: 1;
    }
    .modal-bg-img {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      filter: blur(20px);
      opacity: 0.3;
      border-radius: 16px;
      z-index: 0;
    }
    .modal-content-box > * {
      position: relative;
      z-index: 2;
    }

    footer {
      border-top: 1px solid var(--border-line);
    }

    /* 卡片错落动画 */
    .reveal-card {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .reveal-card.revealed {
      opacity: 1;
      transform: translateY(0);
    }

    .random-btn {
      background: var(--primary);
      border: none;
      color: #1a1410;
      font-weight: 700;
      padding: 10px 20px;
      border-radius: 50px;
      transition: 0.2s;
    }
    .random-btn:hover {
      background: var(--accent);
    }

/* --- 子页面追加 --- */
/* 排行榜页面专属样式 */
        .rank-hero {
            background: linear-gradient(135deg, #1a1410 0%, #2a221c 50%, #1a1410 100%);
            padding: 80px 0 40px;
            text-align: center;
            border-bottom: 1px solid var(--border-line);
        }
.rank-hero h1 {
            font-family: var(--font-display);
            font-weight: 900;
            font-size: 2.8rem;
            color: var(--text-light);
            margin-bottom: 12px;
        }
.rank-hero h1 span {
            color: var(--primary);
        }
.rank-hero p {
            color: rgba(255, 247, 237, 0.7);
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto;
        }
.rank-tabs {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 8px;
            display: inline-flex;
            gap: 8px;
            margin: 30px auto 0;
            border: 1px solid var(--border-line);
            flex-wrap: wrap;
            justify-content: center;
        }
.rank-tab {
            padding: 10px 24px;
            border-radius: 6px;
            color: rgba(255, 247, 237, 0.7);
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s ease;
            background: transparent;
            border: none;
            font-family: var(--font-display);
        }
.rank-tab:hover {
            color: var(--text-light);
            background: rgba(249, 115, 22, 0.15);
        }
.rank-tab.active {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
        }
.rank-section {
            padding: 50px 0;
        }
.rank-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            border: 1px solid var(--border-line);
            padding: 24px;
            margin-bottom: 20px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: var(--shadow-sm);
        }
.rank-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
            border-color: rgba(249, 115, 22, 0.4);
        }
.rank-item {
            display: flex;
            align-items: center;
            padding: 16px 0;
            border-bottom: 1px solid var(--border-line);
            transition: background 0.3s ease;
            gap: 16px;
        }
.rank-item:last-child {
            border-bottom: none;
        }
.rank-item:hover {
            background: rgba(249, 115, 22, 0.05);
            border-radius: 8px;
            padding-left: 12px;
        }
.rank-number {
            font-size: 1.6rem;
            font-weight: 900;
            color: var(--primary);
            min-width: 50px;
            text-align: center;
            font-family: var(--font-display);
        }
.rank-number.top-1 {
            color: #ffd700;
            font-size: 2rem;
        }
.rank-number.top-2 {
            color: #c0c0c0;
            font-size: 1.8rem;
        }
.rank-number.top-3 {
            color: #cd7f32;
            font-size: 1.7rem;
        }
.rank-poster {
            width: 60px;
            height: 84px;
            border-radius: 6px;
            object-fit: cover;
            background: linear-gradient(135deg, #f97316, #facc15);
            flex-shrink: 0;
        }
.rank-info {
            flex: 1;
        }
.rank-title {
            font-weight: 700;
            color: var(--text-light);
            font-size: 1.05rem;
            margin-bottom: 4px;
            font-family: var(--font-display);
        }
.rank-meta {
            color: rgba(255, 247, 237, 0.6);
            font-size: 0.85rem;
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }
.rank-meta i {
            color: var(--accent);
            margin-right: 4px;
        }
.rank-score {
            font-weight: 700;
            color: var(--accent);
            font-size: 1.1rem;
            min-width: 55px;
            text-align: right;
        }
.rank-trend {
            color: #22c55e;
            font-size: 0.85rem;
            font-weight: 600;
        }
.rank-trend.down {
            color: #ef4444;
        }
.rank-summary {
            background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(250, 204, 21, 0.05));
            border-radius: var(--radius);
            padding: 24px;
            margin-top: 30px;
            border: 1px solid rgba(249, 115, 22, 0.2);
        }
.rank-summary h3 {
            color: var(--primary);
            font-weight: 700;
            margin-bottom: 12px;
            font-family: var(--font-display);
        }
.rank-summary p {
            color: rgba(255, 247, 237, 0.8);
            line-height: 1.8;
        }
.badge-trend {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 600;
        }
.badge-trend.down {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }
.badge-new {
            background: rgba(250, 204, 21, 0.2);
            color: var(--accent);
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 600;
        }
.update-time {
            color: rgba(255, 247, 237, 0.5);
            font-size: 0.9rem;
            text-align: center;
            margin-top: 20px;
        }
.update-time i {
            color: var(--primary);
            margin-right: 6px;
        }
.rank-hero h1 {
                font-size: 1.8rem;
            }
.rank-poster {
                width: 48px;
                height: 68px;
            }
.rank-number {
                min-width: 35px;
                font-size: 1.2rem;
            }
.rank-score {
                font-size: 0.95rem;
                min-width: 45px;
            }
.rank-meta {
                font-size: 0.75rem;
                gap: 8px;
            }