:root {
      --q-primary: #dc2626;
      --q-accent: #fb923c;
      --q-bg: #141013;
      --q-text: #fef2f2;
      --q-card-bg: #1f181c;
      --q-muted: #b8a3a3;
      --q-font-display: 'Inter', system-ui, -apple-system, sans-serif;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      background: var(--q-bg);
      color: var(--q-text);
      font-family: var(--q-font-display);
      overflow-x: hidden;
      line-height: 1.6;
    }
    h1,h2,h3,h4,h5 { font-weight: 800; letter-spacing: -0.01em; }
    .navbar {
      background: rgba(20,16,19,0.8) !important;
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(220,38,38,0.2);
      padding-top: 0.7rem;
      padding-bottom: 0.7rem;
      font-weight: 600;
    }
    .navbar-brand {
      font-weight: 900;
      font-size: 1.5rem;
      color: var(--q-primary) !important;
    }
    .nav-link {
      color: var(--q-text) !important;
      margin-right: 1rem;
      font-weight: 500;
    }
    .nav-link:hover { color: var(--q-accent) !important; }
    .btn-red { background: var(--q-primary); border: none; border-radius: 50rem; padding: 0.35rem 1.2rem; font-weight: 600; }
    .btn-red:hover { background: var(--q-accent); }
    
    /* 胶囊、圆角 */
    .rounded-4 { border-radius: 1rem !important; }
    .badge-type {
      background: rgba(220,38,38,0.2);
      color: var(--q-accent);
      border-radius: 30px;
      padding: 0.2rem 0.8rem;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.02em;
    }
    
    /* 电影卡片 */
    .movie-card {
      background: var(--q-card-bg);
      border-radius: 1rem;
      overflow: hidden;
      border: 1px solid rgba(251,146,60,0.1);
      transition: all 0.25s ease;
      box-shadow: 0 8px 18px rgba(0,0,0,0.4);
      height: 100%;
      display: flex;
      flex-direction: column;
      will-change: transform;
      cursor: pointer;
    }
    .movie-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 16px 30px rgba(220,38,38,0.25);
      border-color: var(--q-primary);
    }
    .poster-wrap {
      position: relative;
      aspect-ratio: 2/3;
      background: #2b1f25;
      overflow: hidden;
    }
    .poster-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.3s;
    }
    .movie-card:hover .poster-wrap img { transform: scale(1.05); }
    .gradient-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(20,16,19,0.85) 0%, rgba(20,16,19,0.2) 45%, rgba(0,0,0,0.2) 100%);
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 1rem;
      opacity: 0;
      transition: opacity 0.2s;
    }
    .movie-card:hover .gradient-overlay { opacity: 1; }
    .play-icon {
      background: rgba(220,38,38,0.85);
      border-radius: 50%;
      width: 44px; height: 44px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem;
      color: white;
      box-shadow: 0 0 15px var(--q-accent);
    }
    .movie-info { padding: 0.8rem 0.7rem 1rem; flex: 1; }
    .movie-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .movie-meta { color: var(--q-muted); font-size: 0.78rem; display: flex; justify-content: space-between; }
    .rating { color: var(--q-accent); font-weight: 600; font-family: 'Courier New', monospace; }

    /* 区块标题 */
    .section-title {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin: 2.5rem 0 1.5rem;
    }
    .section-title i { color: var(--q-primary); font-size: 1.5rem; }
    .section-title h2 { font-weight: 800; margin: 0; font-size: 1.8rem; }
    
    /* 打字机效果 */
    .typewriter {
      display: inline-block;
      overflow: hidden;
      white-space: nowrap;
      border-right: 3px solid var(--q-accent);
      animation: typing 3.5s steps(30, end), blink 0.8s step-end infinite;
    }
    @keyframes typing { from { width: 0 } to { width: 100% } }
    @keyframes blink { 50% { border-color: transparent } }

    /* 滚动进度条 */
    #progressBar {
      position: fixed;
      top: 0; left: 0;
      height: 4px;
      width: 0%;
      background: linear-gradient(90deg, var(--q-primary), var(--q-accent));
      z-index: 9999;
      border-radius: 4px;
    }

    /* 滚动渐显卡片延迟 */
    .reveal-card {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal-card.show {
      opacity: 1;
      transform: translateY(0);
    }

    /* 榜单排名 */
    .hot-list .badge {
      background: var(--q-primary);
      color: white;
      border-radius: 30px;
      font-family: monospace;
    }

    /* 弹窗 */
    .modal-mask {
      position: fixed; inset: 0; background: rgba(0,0,0,0.75);
      backdrop-filter: blur(4px);
      display: none;
      align-items: center; justify-content: center;
      z-index: 1200;
    }
    .modal-panel {
      background: #fff;
      color: #1d1618;
      border-radius: 20px;
      max-width: 680px;
      width: 90%;
      padding: 0;
      overflow: hidden;
      box-shadow: 0 30px 50px rgba(0,0,0,0.7);
      position: relative;
      display: flex;
      flex-wrap: wrap;
    }
    .modal-poster { width: 220px; min-height: 280px; background: #ccc; }
    .modal-poster img { width: 100%; height: 100%; object-fit: cover; }
    .modal-info { flex: 1; padding: 1.5rem; min-width: 220px; }
    .modal-info h3 { font-weight: 800; }
    .modal-close {
      position: absolute; top: 8px; right: 14px;
      font-size: 2rem; color: #aaa; background: none; border: none; cursor: pointer;
      line-height: 1; transition: color 0.2s;
    }
    .modal-close:hover { color: #333; }

    .footer { border-top: 1px solid #3a252c; padding: 2rem 0; background: #1a1216; }
    .footer a { color: var(--q-muted); text-decoration: none; margin-right: 1rem; }
    .footer a:hover { color: var(--q-accent); }

    .friends-links a { margin-right: 1.2rem; }

    .steps-badge {
      background: var(--q-primary);
      border-radius: 40px;
      padding: 0.3rem 1rem;
      font-weight: 700;
      display: inline-block;
      margin-bottom: 1rem;
    }
    .step-card {
      background: rgba(255,255,255,0.03);
      border-radius: 20px;
      padding: 1.2rem;
      border-left: 5px solid var(--q-primary);
    }
    /* 电影分类锚点调整 */
    .scroll-offset { scroll-margin-top: 90px; }

/* --- 子页面追加 --- */
.rank-hero { padding: 80px 0 40px; background: linear-gradient(180deg, rgba(220,38,38,0.08) 0%, transparent 100%); }
.rank-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.rank-tab { padding: 8px 20px; border-radius: 30px; background: var(--q-card-bg); color: var(--q-muted); cursor: pointer; font-size: 14px; font-weight: 600; transition: all .3s; border: 1px solid transparent; }
.rank-tab:hover { color: var(--q-text); border-color: rgba(255,255,255,.15); }
.rank-tab.active { background: var(--q-primary); color: #fff; }
.rank-card { background: var(--q-card-bg); border-radius: 16px; padding: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 20px; transition: transform .3s, box-shadow .3s; border: 1px solid rgba(255,255,255,.05); }
.rank-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.rank-number { font-size: 32px; font-weight: 900; color: var(--q-primary); min-width: 50px; text-align: center; opacity: .9; }
.rank-card:nth-child(1) .rank-number, .rank-card:nth-child(2) .rank-number, .rank-card:nth-child(3) .rank-number { color: var(--q-accent); }
.rank-poster { width: 80px; height: 112px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.rank-poster img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { flex: 1; min-width: 0; }
.rank-title { font-size: 18px; font-weight: 700; color: var(--q-text); margin-bottom: 4px; }
.rank-desc { font-size: 13px; color: var(--q-muted); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-meta { display: flex; gap: 12px; font-size: 12px; color: var(--q-muted); }
.rank-meta i { color: var(--q-accent); margin-right: 4px; }
.rank-badge { background: rgba(220,38,38,.15); color: var(--q-primary); padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.trend-up { color: #22c55e; font-size: 12px; }
.trend-down { color: #ef4444; font-size: 12px; }
.section-header { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.section-header h2 { font-size: 24px; font-weight: 800; color: var(--q-text); margin: 0; }
.section-header .line { flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.section-header .update-time { font-size: 12px; color: var(--q-muted); }
.rank-card { flex-wrap: wrap; gap: 12px; }
.rank-poster { width: 60px; height: 85px; }
.rank-number { font-size: 24px; min-width: 35px; }
.rank-title { font-size: 16px; }

/* --- 子页面追加 --- */
/* 确保任何Bootstrap组件都不会白底黑字 */
    .card, .card-body, .card-title, .card-text, .card-header, .card-footer,
    .form-control, .form-select, .list-group-item, .accordion-item, .accordion-button,
    .accordion-body, .modal-content, .modal-header, .modal-body, .dropdown-menu,
    .dropdown-item, .nav-link, .navbar, .navbar-brand, .btn-light, .btn-outline-* {
      background: transparent;
      color: inherit;
      border-color: inherit;
    }
/* 覆盖所有可能默认白底的地方 */
    .bg-white, .bg-light {
      background-color: transparent !important;
    }
/* 自定义本页卡片风格 —— 沿用站点卡片变量 */
    .about-card {
      background: var(--q-card-bg);
      border-radius: 1.25rem;
      padding: 1.5rem 1.75rem;
      border: 1px solid rgba(251, 146, 60, 0.15);
      box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
      transition: transform 0.2s ease, border-color 0.2s ease;
    }
.about-card:hover {
      border-color: rgba(251, 146, 60, 0.4);
      transform: translateY(-3px);
    }
.about-icon {
      color: var(--q-accent);
      font-size: 1.8rem;
      width: 3rem;
      height: 3rem;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(220, 38, 38, 0.15);
      border-radius: 1rem;
      margin-bottom: 1rem;
    }
.section-rule {
      height: 2px;
      background: linear-gradient(90deg, transparent, rgba(251,146,60,0.5), transparent);
      border: 0;
      opacity: 0.3;
      margin: 2.5rem 0;
    }
.text-accent {
      color: var(--q-accent);
    }
.lead-muted {
      color: var(--q-muted);
      font-weight: 300;
    }
/* 列表样式微调 */
    .about-list {
      list-style: none;
      padding-left: 0;
    }
.about-list li {
      padding: 0.4rem 0;
      border-bottom: 1px dashed rgba(184,163,163,0.2);
      display: flex;
      gap: 0.75rem;
      align-items: baseline;
    }
.about-list li i {
      color: var(--q-accent);
      width: 1.2rem;
      text-align: center;
    }

/* --- 子页面追加 --- */
.login-hero {
            padding: 80px 0 60px;
            background: linear-gradient(180deg, rgba(20,16,19,0.9) 0%, var(--q-bg) 100%);
            position: relative;
        }
.login-card {
            background: var(--q-card-bg);
            border: 1px solid rgba(220,38,38,0.15);
            border-radius: 16px;
            padding: 40px 35px;
            max-width: 520px;
            margin: 0 auto;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
        }
.login-header {
            text-align: center;
            margin-bottom: 30px;
        }
.login-header .brand-icon {
            font-size: 48px;
            color: var(--q-primary);
            margin-bottom: 15px;
        }
.login-header h1 {
            font-family: var(--q-font-display);
            font-weight: 800;
            font-size: 1.8rem;
            color: var(--q-text);
            margin-bottom: 8px;
        }
.login-header p {
            color: var(--q-muted);
            font-size: 0.95rem;
            margin-bottom: 0;
        }
.form-group-custom {
            margin-bottom: 22px;
        }
.form-group-custom label {
            display: block;
            color: var(--q-text);
            font-size: 0.9rem;
            font-weight: 500;
            margin-bottom: 8px;
        }
.input-wrapper {
            position: relative;
        }
.input-wrapper i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--q-muted);
            font-size: 0.95rem;
            z-index: 2;
        }
.form-control-custom {
            width: 100%;
            padding: 12px 15px 12px 42px;
            background: rgba(0,0,0,0.3);
            border: 1px solid rgba(220,38,38,0.2);
            border-radius: 10px;
            color: var(--q-text);
            font-size: 0.95rem;
            font-family: var(--q-font-display);
            transition: all 0.3s ease;
        }
.form-control-custom:focus {
            outline: none;
            border-color: var(--q-primary);
            box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
        }
.form-control-custom::placeholder {
            color: rgba(184,163,163,0.6);
        }
.password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--q-muted);
            cursor: pointer;
            padding: 0;
            font-size: 0.9rem;
            z-index: 2;
        }
.password-toggle:hover {
            color: var(--q-accent);
        }
.login-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            font-size: 0.85rem;
        }
.remember-me {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--q-muted);
            cursor: pointer;
        }
.remember-me input[type="checkbox"] {
            accent-color: var(--q-primary);
            width: 16px;
            height: 16px;
            cursor: pointer;
        }
.forgot-link {
            color: var(--q-accent);
            text-decoration: none;
            transition: opacity 0.3s ease;
        }
.forgot-link:hover {
            opacity: 0.8;
        }
.btn-login {
            width: 100%;
            padding: 14px;
            background: var(--q-primary);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            font-family: var(--q-font-display);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
.btn-login:hover {
            background: #b91c1c;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(220,38,38,0.3);
        }
.divider-line {
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 25px 0;
            color: var(--q-muted);
            font-size: 0.85rem;
        }
.divider-line::before,
        .divider-line::after {
            content: "";
            flex: 1;
            height: 1px;
            background: rgba(220,38,38,0.15);
        }
.social-login {
            display: flex;
            gap: 15px;
            justify-content: center;
        }
.social-btn {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            border: 1px solid rgba(220,38,38,0.2);
            background: rgba(0,0,0,0.2);
            color: var(--q-text);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
        }
.social-btn:hover {
            border-color: var(--q-accent);
            color: var(--q-accent);
            transform: translateY(-3px);
        }
.register-link {
            text-align: center;
            margin-top: 20px;
            color: var(--q-muted);
            font-size: 0.9rem;
        }
.register-link a {
            color: var(--q-accent);
            text-decoration: none;
            font-weight: 500;
        }
.register-link a:hover {
            text-decoration: underline;
        }
.login-benefits {
            padding: 60px 0;
        }
.benefit-card {
            background: var(--q-card-bg);
            border: 1px solid rgba(220,38,38,0.1);
            border-radius: 14px;
            padding: 30px 25px;
            height: 100%;
            transition: all 0.3s ease;
        }
.benefit-card:hover {
            transform: translateY(-5px);
            border-color: var(--q-primary);
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
        }
.benefit-icon {
            width: 55px;
            height: 55px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(220,38,38,0.2), rgba(251,146,60,0.2));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--q-accent);
            margin-bottom: 18px;
        }
.benefit-card h3 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--q-text);
            margin-bottom: 10px;
            font-family: var(--q-font-display);
        }
.benefit-card p {
            color: var(--q-muted);
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 0;
        }
.login-tips {
            padding: 60px 0;
            background: rgba(220,38,38,0.03);
            border-top: 1px solid rgba(220,38,38,0.1);
        }
.tips-card {
            background: var(--q-card-bg);
            border: 1px solid rgba(220,38,38,0.1);
            border-radius: 14px;
            padding: 25px;
            height: 100%;
        }
.tips-card h3 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--q-text);
            margin-bottom: 12px;
            font-family: var(--q-font-display);
            display: flex;
            align-items: center;
            gap: 10px;
        }
.tips-card h3 i {
            color: var(--q-accent);
        }
.tips-card ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
.tips-card ul li {
            color: var(--q-muted);
            font-size: 0.88rem;
            padding: 6px 0;
            padding-left: 20px;
            position: relative;
            line-height: 1.5;
        }
.tips-card ul li::before {
            content: "•";
            position: absolute;
            left: 0;
            color: var(--q-primary);
            font-weight: bold;
        }
.faq-section {
            padding: 60px 0;
        }
.faq-item {
            background: var(--q-card-bg);
            border: 1px solid rgba(220,38,38,0.1);
            border-radius: 12px;
            padding: 20px 25px;
            margin-bottom: 15px;
        }
.faq-item h3 {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--q-text);
            margin-bottom: 8px;
            font-family: var(--q-font-display);
            display: flex;
            align-items: center;
            gap: 10px;
        }
.faq-item h3 i {
            color: var(--q-accent);
            font-size: 0.9rem;
        }
.faq-item p {
            color: var(--q-muted);
            font-size: 0.88rem;
            line-height: 1.6;
            margin-bottom: 0;
            padding-left: 25px;
        }
.login-hero {
                padding: 40px 0;
            }
.login-card {
                padding: 30px 20px;
            }
.login-header h1 {
                font-size: 1.5rem;
            }

/* --- 子页面追加 --- */
/* 针对本页隐私政策的结构微调，保持与首页一致暗色调 */
    .privacy-section {
      background: var(--q-card-bg);
      border-radius: 1.25rem;
      padding: 2rem 2rem;
      margin-bottom: 1.8rem;
      border: 1px solid rgba(251,146,60,0.12);
    }
.privacy-section h2 {
      color: var(--q-accent);
      font-weight: 700;
      font-size: 1.6rem;
      margin-bottom: 1.2rem;
      letter-spacing: -0.02em;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
.privacy-section h2 i {
      color: var(--q-primary);
      font-size: 1.4rem;
    }
.privacy-section h3 {
      color: var(--q-text);
      font-weight: 600;
      font-size: 1.2rem;
      margin-top: 1.5rem;
      margin-bottom: 0.75rem;
      border-left: 4px solid var(--q-primary);
      padding-left: 0.9rem;
    }
.privacy-section p {
      color: var(--q-muted);
      line-height: 1.8;
      margin-bottom: 1.2rem;
      font-size: 0.98rem;
    }
.privacy-section a {
      color: var(--q-accent);
      text-decoration: underline;
      text-underline-offset: 3px;
    }
.privacy-section ul {
      padding-left: 1.5rem;
      margin-bottom: 1.2rem;
      color: var(--q-muted);
    }
.privacy-section li {
      margin-bottom: 0.5rem;
    }
.privacy-highlight {
      background: rgba(220,38,38,0.12);
      border-left: 4px solid var(--q-primary);
      padding: 1rem 1.5rem;
      border-radius: 0.8rem;
      font-weight: 500;
    }
.badge-version {
      display: inline-block;
      background: var(--q-primary);
      color: #fff;
      font-size: 0.75rem;
      padding: 0.25rem 0.9rem;
      border-radius: 20px;
      letter-spacing: 0.02em;
      margin-left: 0.8rem;
      vertical-align: middle;
    }
/* 列表图标微调 */
    .list-icon {
      color: var(--q-accent);
      margin-right: 0.4rem;
    }
/* 避免bootstrap干扰导航 */
    .navbar .nav-link {
      color: var(--q-text);
    }
.navbar .nav-link:hover {
      color: var(--q-accent);
    }

/* --- 子页面追加 --- */
/* 确保 Bootstrap 组件不破坏本站深色风格 (仅本页用到 .card 等) */
        .card, .card-body, .card-title, .card-text {
            background: var(--q-card-bg);
            color: var(--q-text);
            border-color: rgba(251, 146, 60, 0.15);
        }
.list-group-item {
            background-color: var(--q-card-bg);
            color: var(--q-text);
            border-color: rgba(251, 146, 60, 0.2);
        }
.accordion-item, .accordion-button {
            background-color: var(--q-card-bg);
            color: var(--q-text);
            border-color: rgba(251, 146, 60, 0.2);
        }
.accordion-button:not(.collapsed) {
            background-color: rgba(220, 38, 38, 0.2);
            color: var(--q-text);
        }
.accordion-button::after {
            filter: invert(1);
        }
/* 自定义本页点缀 */
        .disclaimer-hero {
            border-bottom: 1px solid rgba(251, 146, 60, 0.2);
        }
.disclaimer-section h2 {
            color: var(--q-accent);
            font-weight: 700;
            letter-spacing: -0.02em;
            margin-bottom: 1.2rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }
.disclaimer-section h2 i {
            color: var(--q-primary);
            font-size: 0.9em;
        }
.disclaimer-card {
            background: rgba(31, 24, 28, 0.6);
            border: 1px solid rgba(251, 146, 60, 0.12);
            border-radius: 1.2rem;
            padding: 1.8rem 1.8rem;
            height: 100%;
            transition: 0.2s;
        }
.disclaimer-card:hover {
            border-color: rgba(251, 146, 60, 0.4);
            background: rgba(31, 24, 28, 0.8);
        }
.disclaimer-card i {
            color: var(--q-accent);
            font-size: 2rem;
            margin-bottom: 1rem;
        }
.text-muted-custom {
            color: var(--q-muted) !important;
        }
/* 当前页导航高亮 (active) */
        .navbar-nav .nav-link.disclaimer-active {
            color: var(--q-accent) !important;
            font-weight: 600;
        }