:root {
      --main: #f97316;
      --accent: #facc15;
      --bg: #1a1410;
      --text: #fff7ed;
      --card-bg: #2a211b;
      --radius-lg: 24px;
      --radius-md: 16px;
      --shadow: 0 20px 35px -8px rgba(0,0,0,0.5);
      --shadow-hover: 0 30px 45px -10px rgba(0,0,0,0.7);
    }

    * { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
    body {
      background-color: var(--bg);
      color: var(--text);
      font-size: 14px;
      line-height: 1.5;
      padding-top: 70px;
    }

    /* navbar */
    .navbar-brand {
      font-weight: 900;
      font-size: 1.8rem;
      letter-spacing: -0.5px;
      color: var(--accent) !important;
    }
    .navbar { background: #1f1812ee; backdrop-filter: blur(8px); border-bottom: 1px solid #3a2e24; }
    .navbar-nav .nav-link { color: #f5e3c9; font-weight: 600; margin-right: 1.2rem; }
    .navbar-nav .nav-link:hover { color: var(--main); }
    .navbar-toggler { border-color: #5a4b3c; }
    .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(249, 115, 22, 1)' stroke-width='2' linecap='round' linejoin='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

    /* hero */
    .hero {
      padding: 2rem 0 1.5rem;
      position: relative;
      overflow: hidden;
    }
    .hero h1 {
      font-size: 3.2rem;
      font-weight: 900;
      background: linear-gradient(135deg, var(--accent) 0%, var(--main) 70%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      display: inline-block;
      letter-spacing: -1px;
      line-height: 1.1;
    }
    .hero-float { position: absolute; font-size: 5rem; opacity: 0.2; color: var(--main); pointer-events: none; z-index: 0; }
    .hero-float.f1 { top: 20px; right: 5%; animation: float 6s infinite ease-in-out; }
    .hero-float.f2 { bottom: 10px; left: 5%; animation: float 8s infinite reverse; }
    @keyframes float { 0%{transform: translateY(0)} 50%{transform: translateY(-20px)} 100%{transform: translateY(0)} }

    /* section titles */
    .section-title { font-weight: 800; font-size: 1.7rem; border-left: 8px solid var(--main); padding-left: 1rem; margin: 2rem 0 1.2rem; color: var(--accent); }

    /* movie cards */
    .movie-card {
      background: var(--card-bg);
      border-radius: var(--radius-md);
      overflow: hidden;
      transition: transform .35s ease, box-shadow .35s ease;
      box-shadow: 0 10px 20px -5px rgba(0,0,0,0.4);
      cursor: pointer;
      height: 100%;
      display: flex;
      flex-direction: column;
      border: 1px solid #3d332a;
    }
    .movie-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-hover); }
    .movie-poster { position: relative; overflow: hidden; background: #322a23; aspect-ratio: 2/3; }
    .movie-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; opacity: 0; }
    .movie-poster img.loaded { opacity: 1; }
    .movie-poster .badge-res { position: absolute; top: 10px; right: 10px; background: #0009; color: var(--accent); font-weight: 800; font-size: 0.7rem; padding: 3px 8px; border-radius: 30px; backdrop-filter: blur(3px); border: 1px solid var(--main); }
    .movie-info { padding: 0.75rem; flex-grow: 1; }
    .movie-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .movie-meta { display: flex; justify-content: space-between; color: #b9a893; font-size: 0.75rem; }
    .movie-meta .rating { color: var(--accent); font-weight: 700; }

    /* sidebar categories */
    .category-bar {
      background: #211a15;
      border-radius: var(--radius-lg);
      padding: 1rem;
      position: sticky;
      top: 90px;
    }
    .category-bar a { display: block; padding: 0.5rem 1rem; color: var(--text); border-radius: 30px; margin-bottom: 4px; text-decoration: none; font-weight: 500; }
    .category-bar a:hover, .category-bar a.active { background: var(--main); color: #fff7ed; }
    .category-bar i { margin-right: 8px; width: 18px; }

    /* comparison table */
    .compare-table td { background: #231b16; border-color: #4a3d30; }
    .compare-table th { background: var(--main); color: #fff; font-weight: 700; }

    /* list number */
    .steps-list { counter-reset: step; list-style: none; padding-left: 0; }
    .steps-list li { counter-increment: step; margin-bottom: 1rem; padding-left: 2.2rem; position: relative; }
    .steps-list li::before { content: counter(step); background: var(--main); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; position: absolute; left: 0; top: 0; }

    /* reveal animation */
    .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    /* glow button */
    .btn-glow { background: linear-gradient(90deg, var(--main), var(--accent)); border: none; border-radius: 50px; font-weight: 700; padding: 8px 18px; transition: filter .2s; position: relative; overflow: hidden; color: #1a1410; }
    .btn-glow::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(120deg, transparent, #ffffff60, transparent); animation: shine 3s infinite; }
    @keyframes shine { 0%{left:-100%} 50%{left:100%} 100%{left:100%} }
    .btn-glow:hover { filter: brightness(1.15); color: #000; }

    /* bottom drawer modal */
    .drawer-overlay {
      position: fixed; inset: 0; background: #00000070; backdrop-filter: blur(3px); z-index: 1050; display: none;
    }
    .drawer-panel {
      position: fixed; bottom: 0; left: 0; right: 0; background: #2c231d; border-radius: 30px 30px 0 0; z-index: 1051;
      transform: translateY(100%); transition: transform .35s ease-in-out; max-height: 70vh; overflow-y: auto;
      box-shadow: 0 -10px 30px #000a;
    }
    .drawer-panel.open { transform: translateY(0); }
    .drawer-header { padding: 1.2rem 2rem; border-bottom: 1px solid #4a3d32; display: flex; justify-content: space-between; align-items: center; }
    .drawer-body { padding: 1.5rem 2rem 2rem; }

    /* footer */
    .footer { background: #12100d; padding: 2rem 0; margin-top: 3rem; border-top: 1px solid #2d241d; }
    .friend-links { background: #191511; padding: 1.5rem 0; border-top: 1px solid #2f241b; }

    /* misc */
    .small-text { font-size: 0.75rem; }
    .poster-row .movie-card { min-width: 150px; }
    @media (max-width: 768px) {
      .hero h1 { font-size: 2.5rem; }
      .category-bar { position: static; }
    }

/* --- 子页面追加 --- */
/* 关于页专属补充样式 */
        .about-hero {
            padding: 100px 0 60px;
            position: relative;
        }
.about-hero .hero-float {
            position: absolute;
            border-radius: var(--radius-lg);
            background: var(--card-bg);
            box-shadow: var(--shadow);
            animation: float 6s ease-in-out infinite;
        }
.about-hero .hero-float.f1 {
            width: 60px; height: 60px;
            top: 30%; left: 5%;
            animation-delay: 0s;
            display: flex; align-items: center; justify-content: center;
            font-size: 28px;
        }
.about-hero .hero-float.f2 {
            width: 80px; height: 80px;
            top: 20%; right: 8%;
            animation-delay: 1.5s;
            display: flex; align-items: center; justify-content: center;
            font-size: 36px;
        }
.about-hero .hero-float.f3 {
            width: 50px; height: 50px;
            bottom: 20%; right: 20%;
            animation-delay: 3s;
            display: flex; align-items: center; justify-content: center;
            font-size: 22px;
        }
0%, 100% { transform: translateY(0px); }
.about-card {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            padding: 40px;
            box-shadow: var(--shadow);
            transition: box-shadow 0.3s ease;
            border: 1px solid rgba(249,115,22,0.1);
            height: 100%;
        }
.about-card:hover {
            box-shadow: var(--shadow-hover);
            border-color: rgba(249,115,22,0.3);
        }
.about-card .icon-wrap {
            width: 70px; height: 70px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(250,204,21,0.2));
            display: flex; align-items: center; justify-content: center;
            margin-bottom: 20px;
            font-size: 28px;
            color: var(--accent);
        }
.about-card h3 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--text);
        }
.about-card p {
            color: rgba(255,247,237,0.8);
            font-size: 0.95rem;
            line-height: 1.8;
            margin-bottom: 0;
        }
.timeline {
            position: relative;
            padding-left: 30px;
            margin: 30px 0;
        }
.timeline::before {
            content: '';
            position: absolute;
            left: 8px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom, var(--main), var(--accent));
        }
.timeline-item {
            position: relative;
            margin-bottom: 35px;
        }
.timeline-item::before {
            content: '';
            position: absolute;
            left: -26px;
            top: 8px;
            width: 14px; height: 14px;
            border-radius: 50%;
            background: var(--main);
            border: 3px solid var(--bg);
            box-shadow: 0 0 0 2px var(--main);
        }
.timeline-item .year {
            font-weight: 800;
            color: var(--main);
            font-size: 1.1rem;
            margin-bottom: 5px;
        }
.timeline-item .desc {
            color: rgba(255,247,237,0.8);
            font-size: 0.95rem;
            line-height: 1.7;
        }
.stat-item {
            text-align: center;
            padding: 30px 20px;
        }
.stat-item .num {
            font-size: 2.5rem;
            font-weight: 900;
            background: linear-gradient(135deg, var(--main), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
.stat-item .label {
            color: rgba(255,247,237,0.7);
            font-size: 0.9rem;
            margin-top: 8px;
        }
.about-quote {
            background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(250,204,21,0.1));
            border-left: 4px solid var(--main);
            padding: 30px;
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
            margin: 40px 0;
        }
.about-quote p {
            font-size: 1.1rem;
            font-style: italic;
            color: var(--text);
            margin-bottom: 10px;
            line-height: 1.8;
        }
.about-quote .author {
            color: var(--accent);
            font-weight: 600;
            font-size: 0.9rem;
        }
.nav-link.active {
            color: var(--accent) !important;
            font-weight: 700;
        }
.about-hero {
                padding: 80px 0 40px;
            }
.about-card {
                padding: 25px;
                margin-bottom: 20px;
            }
.about-hero .hero-float {
                display: none;
            }

/* --- 子页面追加 --- */
/* 经典专区专属装饰：金色复古点缀 */
    .classic-hero {
      background: radial-gradient(circle at 70% 20%, rgba(250, 204, 21, 0.12), transparent 40%);
    }
.classic-title-accent {
      color: var(--accent);
      font-weight: 700;
      letter-spacing: 0.02em;
    }
.era-badge {
      background: rgba(250, 204, 21, 0.15);
      color: var(--accent);
      border: 1px solid rgba(250, 204, 21, 0.3);
      padding: 0.2rem 0.9rem;
      border-radius: 30px;
      font-size: 0.8rem;
      font-weight: 500;
      display: inline-block;
      margin-right: 0.5rem;
      margin-bottom: 0.4rem;
    }
.classic-card {
      background: var(--card-bg);
      border-radius: var(--radius-md);
      padding: 1.25rem;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      height: 100%;
      border: 1px solid rgba(255,255,255,0.03);
    }
.classic-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-hover);
    }
.film-year {
      color: var(--accent);
      font-weight: 600;
      font-size: 0.9rem;
    }
.film-desc {
      color: rgba(255, 247, 237, 0.7);
      font-size: 0.9rem;
      line-height: 1.6;
    }
.list-group-classic {
      background: transparent;
      border: none;
    }
/* 覆盖 Bootstrap 可能引入的白色卡片背景 */
    .card, .card-body, .list-group-item {
      background: transparent !important;
      color: var(--text) !important;
      border-color: rgba(255,255,255,0.05) !important;
    }

/* --- 子页面追加 --- */
/* 排行榜页面专属样式 */
        .rank-hero {
            padding: 80px 0 40px;
            text-align: center;
            background: linear-gradient(180deg, rgba(249,115,22,0.08) 0%, transparent 100%);
        }
.rank-hero h1 {
            font-size: 2.8rem;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 12px;
        }
.rank-hero h1 span {
            color: var(--main);
        }
.rank-hero p {
            color: rgba(255,247,237,0.7);
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto 20px;
        }
.rank-section {
            padding: 50px 0;
        }
.rank-section-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
.rank-section-title i {
            color: var(--main);
            font-size: 1.6rem;
        }
.rank-subtitle {
            color: rgba(255,247,237,0.6);
            font-size: 0.95rem;
            margin-bottom: 30px;
            padding-left: 32px;
        }
.rank-table-wrap {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            padding: 30px;
            box-shadow: var(--shadow);
            border: 1px solid rgba(249,115,22,0.1);
            overflow-x: auto;
        }
.rank-table {
            width: 100%;
            border-collapse: collapse;
        }
.rank-table thead th {
            color: var(--accent);
            font-weight: 600;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 12px 16px;
            border-bottom: 2px solid rgba(249,115,22,0.3);
            text-align: left;
        }
.rank-table tbody td {
            padding: 14px 16px;
            border-bottom: 1px solid rgba(255,247,237,0.06);
            color: var(--text);
            vertical-align: middle;
        }
.rank-table tbody tr:last-child td {
            border-bottom: none;
        }
.rank-table tbody tr {
            transition: background 0.3s ease;
        }
.rank-table tbody tr:hover {
            background: rgba(249,115,22,0.06);
        }
.rank-num {
            font-weight: 800;
            font-size: 1.2rem;
            color: var(--main);
            width: 50px;
        }
.rank-num.top-1 {
            color: var(--accent);
            font-size: 1.6rem;
        }
.rank-num.top-2 {
            color: #c0c0c0;
            font-size: 1.4rem;
        }
.rank-num.top-3 {
            color: #cd7f32;
            font-size: 1.3rem;
        }
.rank-poster {
            width: 48px;
            height: 68px;
            border-radius: 8px;
            object-fit: cover;
            box-shadow: 0 4px 10px rgba(0,0,0,0.4);
            background: rgba(255,255,255,0.1);
        }
.rank-title-cell {
            font-weight: 600;
            font-size: 1rem;
        }
.rank-meta {
            color: rgba(255,247,237,0.5);
            font-size: 0.85rem;
            margin-top: 4px;
            display: flex;
            gap: 12px;
        }
.rank-meta i {
            font-size: 0.75rem;
            margin-right: 4px;
            color: var(--main);
        }
.rank-score {
            font-weight: 700;
            color: var(--accent);
            font-size: 1.1rem;
        }
.rank-trend {
            font-size: 0.8rem;
            color: #4ade80;
        }
.rank-trend.down {
            color: #f87171;
        }
.rank-trend i {
            font-size: 0.75rem;
        }
.rank-cat-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            background: rgba(249,115,22,0.15);
            color: var(--main);
            border: 1px solid rgba(249,115,22,0.3);
        }
.rank-cat-badge.accent {
            background: rgba(250,204,21,0.1);
            color: var(--accent);
            border-color: rgba(250,204,21,0.3);
        }
.rank-note {
            background: rgba(250,204,21,0.05);
            border: 1px solid rgba(250,204,21,0.15);
            border-radius: var(--radius-md);
            padding: 20px 24px;
            margin-top: 30px;
            display: flex;
            align-items: center;
            gap: 16px;
            color: var(--text);
            font-size: 0.95rem;
        }
.rank-note i {
            color: var(--accent);
            font-size: 1.4rem;
            flex-shrink: 0;
        }
.rank-note p {
            margin: 0;
            color: rgba(255,247,237,0.8);
        }
.rank-note strong {
            color: var(--accent);
        }
.rank-hero h1 {
                font-size: 2rem;
            }
.rank-table-wrap {
                padding: 16px;
                border-radius: var(--radius-md);
            }
.rank-poster {
                width: 40px;
                height: 56px;
            }
.rank-meta {
                flex-wrap: wrap;
                gap: 6px;
            }
.rank-section {
                padding: 30px 0;
            }
.rank-section-title {
                font-size: 1.4rem;
            }

/* --- 子页面追加 --- */
/* 所有覆盖均使用站点 CSS 变量，与首页完全统一 */
        .disclaimer-hero {
            background: linear-gradient(145deg, rgba(249,115,22,.08) 0%, rgba(250,204,21,.04) 100%);
            border-bottom: 1px solid rgba(255,247,237,.06);
            padding: 3rem 0 2.5rem;
            margin-bottom: 2rem;
        }
.disclaimer-hero .hero-float {
            animation: float 6s ease-in-out infinite;
        }
.legal-section {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
            padding: 2rem 1.8rem;
            margin-bottom: 2rem;
            border: 1px solid rgba(255,247,237,.05);
            transition: box-shadow .25s;
        }
.legal-section:hover {
            box-shadow: var(--shadow-hover);
        }
.legal-section h2 {
            color: var(--accent);
            font-weight: 700;
            font-size: 1.6rem;
            letter-spacing: -0.02em;
            border-left: 5px solid var(--main);
            padding-left: 1rem;
            margin-bottom: 1.4rem;
            display: flex;
            align-items: center;
            gap: .6rem;
        }
.legal-section h2 i {
            color: var(--main);
            font-size: 1.4rem;
        }
.legal-section p, .legal-section li {
            color: rgba(255,247,237,.82);
            line-height: 1.75;
            font-size: 1rem;
        }
.legal-section strong {
            color: var(--text);
            font-weight: 600;
        }
.legal-section ul {
            padding-left: 1.2rem;
            list-style: none;
        }
.legal-section ul li {
            margin-bottom: .65rem;
            position: relative;
            padding-left: 1.5rem;
        }
.legal-section ul li::before {
            content: "\f058";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            color: var(--main);
            position: absolute;
            left: 0;
            top: .1rem;
            font-size: .9rem;
            opacity: .8;
        }
.badge-soft {
            background: rgba(249,115,22,.15);
            color: var(--accent);
            border-radius: 30px;
            padding: .25rem 1rem;
            font-size: .8rem;
            font-weight: 500;
            border: 1px solid rgba(249,115,22,.3);
            display: inline-block;
        }
.footer-note {
            border-top: 1px solid rgba(255,247,237,.08);
            margin-top: 2rem;
            padding-top: 1.5rem;
            text-align: center;
            font-size: .9rem;
            color: rgba(255,247,237,.5);
        }
/* 覆盖 bootstrap 可能带来的白底问题 */
        .legal-section, .legal-section * {
            background: transparent !important;
            color: inherit;
        }
.navbar, .navbar * {
            background: transparent !important;
        }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
            color: var(--main) !important;
            opacity: 1;
        }
.navbar-brand i {
            color: var(--main);
        }
/* 页脚链接保持与首页一致 */
        .footer a {
            color: var(--accent);
            text-decoration: none;
        }
.footer a:hover {
            text-decoration: underline;
        }

/* --- Bootstrap 组件配色适配(程序自动补,避免白底黑字) --- */
.table { color:#fff7ed !important; border-color:rgba(255,255,255,.12) !important; --bs-table-bg:transparent !important; --bs-table-color:#fff7ed !important; }
