:root {
      --primary: #e50914;
      --accent: #f5c518;
      --bg: #0b0b0f;
      --text: #f5f5f7;
      --border: rgba(245, 245, 247, 0.15);
      --card-bg: #15151d;
      --radius: 4px;
    }
    * { box-sizing: border-box; }
    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: 'Noto Sans SC', 'Inter', sans-serif;
      letter-spacing: 0.01em;
      line-height: 1.7;
    }
    h1, h2, h3, h4, .font-serif {
      font-family: 'Noto Serif SC', 'Times New Roman', serif;
      font-weight: 700;
    }
    /* 极简无阴影, 纯描边 */
    .no-shadow { box-shadow: none !important; }
    .border-soft { border: 1px solid var(--border) !important; }
    .bg-card { background-color: var(--card-bg); }
    .text-accent { color: var(--accent) !important; }
    .text-primary-imp { color: var(--primary) !important; }
    .text-muted-custom { color: rgba(245,245,247,0.6) !important; }

    /* 滚动进度条 */
    #scrollProgress {
      position: fixed;
      top: 0; left: 0;
      height: 3px;
      width: 0%;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      z-index: 9999;
      transition: width 0.1s;
    }

    /* 导航 */
    .navbar-qz {
      background: rgba(11, 11, 15, 0.85);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--border);
    }
    .navbar-qz .navbar-brand {
      font-family: 'Noto Serif SC', serif;
      font-weight: 900;
      font-size: 1.8rem;
      color: var(--text);
      letter-spacing: 2px;
    }
    .navbar-qz .navbar-brand i {
      color: var(--accent);
      margin-right: 6px;
    }
    .navbar-qz .nav-link {
      color: rgba(245,245,247,0.8);
      font-weight: 400;
      margin: 0 0.8rem;
      border-bottom: 1px solid transparent;
      transition: 0.2s;
    }
    .navbar-qz .nav-link:hover {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }

    /* 超大标题 */
    .hero-title {
      font-size: clamp(3rem, 8vw, 4.5rem);
      font-weight: 900;
      line-height: 1.1;
    }
    .typing-cursor::after {
      content: '|';
      color: var(--accent);
      animation: blink 1s infinite;
      font-weight: 300;
    }
    @keyframes blink { 50% { opacity: 0; } }

    /* 区块标题 */
    .section-title {
      font-size: 2.2rem;
      font-weight: 900;
      border-left: 4px solid var(--primary);
      padding-left: 1rem;
      margin-bottom: 1.5rem;
    }

    /* 分类胶囊 */
    .cat-pills .badge {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text);
      font-weight: 400;
      padding: 0.5rem 1.2rem;
      border-radius: 50px !important;
      margin: 0.2rem;
      transition: 0.2s;
    }
    .cat-pills .badge:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    /* 海报卡片 */
    .movie-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 2px;
      overflow: hidden;
      transition: 0.2s ease;
      cursor: pointer;
      position: relative;
    }
    .movie-card:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
    }
    .movie-card .poster-wrap {
      width: 100%;
      aspect-ratio: 2/3;
      background: #1e1e28;
      position: relative;
      overflow: hidden;
    }
    .movie-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      opacity: 0;
      transition: opacity 0.4s;
      background: #1e1e28;
    }
    .movie-card img.lazy-loaded {
      opacity: 1;
    }
    .movie-card .rating-badge {
      position: absolute;
      top: 8px;
      right: 8px;
      background: var(--primary);
      color: white;
      padding: 2px 8px;
      font-weight: 700;
      border-radius: 2px;
      font-size: 0.9rem;
      z-index: 2;
    }
    .movie-card .info {
      padding: 12px;
    }
    .movie-card .title {
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .movie-card .meta {
      font-size: 0.8rem;
      color: rgba(245,245,247,0.5);
    }

    /* 横向滚动 */
    .h-scroll {
      display: flex;
      overflow-x: auto;
      gap: 1rem;
      padding-bottom: 0.5rem;
      scrollbar-width: thin;
      scrollbar-color: var(--primary) transparent;
    }
    .h-scroll::-webkit-scrollbar { height: 4px; }
    .h-scroll::-webkit-scrollbar-thumb { background: var(--primary); }

    /* 排行榜金银铜 */
    .rank-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      font-weight: 700;
      margin-right: 10px;
      background: #2a2a35;
      color: var(--text);
    }
    .rank-badge.gold { background: #d4af37; color: black; }
    .rank-badge.silver { background: #c0c0c0; color: black; }
    .rank-badge.bronze { background: #cd7f32; color: black; }

    /* 按钮流动 */
    .btn-flow {
      background: transparent;
      border: 1px solid var(--primary);
      color: var(--primary);
      position: relative;
      overflow: hidden;
      transition: color 0.3s;
      z-index: 0;
    }
    .btn-flow::before {
      content: '';
      position: absolute;
      top: 0; left: -100%;
      width: 100%; height: 100%;
      background: linear-gradient(90deg, transparent, rgba(245,197,24,0.3), transparent);
      transition: left 0.4s;
      z-index: -1;
    }
    .btn-flow:hover::before { left: 100%; }
    .btn-flow:hover { color: var(--accent); border-color: var(--accent); }

    /* 手风琴 */
    .accordion-item {
      background: transparent;
      border: 1px solid var(--border);
      margin-bottom: 0.5rem;
    }
    .accordion-button {
      background: transparent;
      color: var(--text);
      box-shadow: none;
    }
    .accordion-button:not(.collapsed) {
      background: rgba(229, 9, 20, 0.1);
      color: var(--accent);
    }

    /* 友情链接 & 页脚 */
    .friend-links a {
      color: rgba(245,245,247,0.7);
      margin: 0 1rem 0 0;
      text-decoration: underline dotted;
      font-size: 0.9rem;
    }
    .footer-qz {
      border-top: 1px solid var(--border);
      padding: 2rem 0;
      margin-top: 2rem;
    }
    .lazy-placeholder {
      background: linear-gradient(135deg, #1f1f2b 25%, #2a2a3a 50%, #1f1f2b 75%);
      background-size: 400% 400%;
      animation: shimmer 1.5s infinite;
    }
    @keyframes shimmer { 0% {background-position: 0% 0;} 100% {background-position: 100% 0;} }

    /* 沉浸弹窗 */
    .film-modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(12px);
      z-index: 10000;
      justify-content: center;
      align-items: center;
    }
    .film-modal.active { display: flex; }
    .modal-content-adv {
      background: rgba(20,20,30,0.95);
      border: 1px solid var(--border);
      max-width: 600px;
      width: 90%;
      padding: 2rem;
      position: relative;
      border-radius: 8px;
      box-shadow: 0 0 30px rgba(0,0,0,0.7);
    }
    .modal-content-adv .close-modal {
      position: absolute;
      top: 10px; right: 15px;
      font-size: 2rem;
      color: white;
      cursor: pointer;
      line-height: 1;
    }
    .modal-content-adv .big-rating {
      font-size: 3rem;
      font-weight: 900;
      color: var(--accent);
    }
    @media (max-width: 576px) {
      .modal-content-adv { padding: 1.5rem; }
    }

/* --- 子页面追加 --- */
/* 确保 Bootstrap 组件类不会破坏深色主题 (本页只用栅格, 但保险覆盖) */
        .card, .card-body, .card-header, .card-footer, .form-control, .form-select, .list-group-item, .accordion-item, .accordion-button, .modal-content {
            background: var(--card-bg);
            color: var(--text);
            border-color: var(--border);
        }
.nav-link, .navbar-brand {
            color: var(--text);
        }
.nav-link.active, .nav-link:hover {
            color: var(--primary) !important;
        }
.footer-qz a, .footer-qz span { color: rgba(245,245,247,0.7); }
.footer-qz a:hover { color: var(--accent); }
/* 关于页专用小调整 */
        .about-hero {
            background: radial-gradient(circle at 20% 30%, rgba(229,9,20,0.15), transparent 50%);
        }
.stat-number {
            font-size: 2.8rem;
            font-weight: 800;
            color: var(--accent);
        }
.timeline-item {
            border-left: 2px solid var(--primary);
            padding-left: 1.5rem;
            margin-bottom: 2rem;
        }
.timeline-item h4 {
            font-weight: 700;
            color: var(--text);
        }
.list-check i {
            color: var(--primary);
            margin-right: 0.5rem;
        }

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