:root {
    --primary: #10b981;
    --accent: #fbbf24;
    --bg: #0a1410;
    --text: #ecfdf5;
    --text-muted: #a7f3d0;
    --card-bg: #11221a;
    --border-glow: rgba(16, 185, 129, 0.4);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  * { box-sizing: border-box; }

  body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    letter-spacing: -0.02em;
  }

  .font-mono {
    font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
  }

  .navbar {
    background: rgba(10, 20, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.8rem 1.5rem;
    z-index: 999;
  }

  .navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary) !important;
    letter-spacing: -0.03em;
  }

  .navbar-brand i { margin-right: 6px; color: var(--accent); }

  .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 50rem;
    transition: all 0.2s;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary) !important;
  }

  .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text);
  }

  /* Hero Parallax */
  .hero {
    position: relative;
    padding: 7rem 0 5rem;
    background: linear-gradient(145deg, rgba(10,20,16,0.3) 0%, rgba(10,20,16,0.7) 60%, var(--bg) 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="10" cy="10" r="2" fill="%2310b981" opacity="0.5"/><circle cx="80" cy="20" r="1.5" fill="%23fbbf24" opacity="0.6"/><circle cx="30" cy="70" r="2.5" fill="%2310b981" opacity="0.3"/><circle cx="90" cy="80" r="2" fill="%23fbbf24" opacity="0.4"/></svg>');
    background-size: cover, auto;
    background-attachment: fixed, scroll;
    background-position: center, center;
    overflow: hidden;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  }

  .hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg));
  }

  .hero .container {
    position: relative;
    z-index: 2;
  }

  .hero h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text);
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
  }

  .hero h1 .accent { color: var(--accent); }
  .hero h1 .primary { color: var(--primary); }

  .hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 2rem;
  }

  /* Tag Cloud */
  .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
    justify-content: center;
  }

  .tag-cloud .tag {
    display: inline-block;
    padding: 0.5rem 1.4rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    backdrop-filter: blur(4px);
    transition: all 0.3s;
    cursor: pointer;
  }

  .tag-cloud .tag:hover {
    background: rgba(16, 185, 129, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.2);
  }

  .tag-cloud .tag:nth-child(2n) { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.1); }
  .tag-cloud .tag:nth-child(2n):hover { background: rgba(251, 191, 36, 0.2); }

  /* Section */
  .section {
    padding: 5rem 0;
    position: relative;
  }

  .section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .section-title i {
    color: var(--accent);
    font-size: 1.8rem;
  }

  .section-subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
  }

  /* Cards Grid */
  .poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .movie-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s forwards;
  }

  .movie-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.2);
  }

  .movie-card .poster-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
  }

  .movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
  }

  .movie-card:hover img { transform: scale(1.05); }

  .movie-card .rating-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50rem;
    backdrop-filter: blur(4px);
    font-family: 'SF Mono', monospace;
  }

  .movie-card .card-body {
    padding: 0.8rem 0.8rem 1rem;
  }

  .movie-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .movie-card .card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .movie-card .card-meta .type-pill {
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary);
    padding: 0.1rem 0.6rem;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.7rem;
  }

  .movie-card .card-meta .year {
    font-family: 'SF Mono', monospace;
  }

  /* Card Flip Detail */
  .movie-card.flipped {
    transform: rotateY(180deg);
    border-color: var(--accent);
  }

  .movie-detail-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 1rem;
  }

  .movie-detail-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .movie-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--primary);
    border-radius: 1.5rem;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    position: relative;
  }

  .movie-detail-overlay.show .movie-detail-card { transform: scale(1); }

  .movie-detail-card .close-btn {
    position: absolute;
    top: 12px; right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 5;
  }

  .movie-detail-card .close-btn:hover { color: var(--accent); }

  .detail-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
  }

  .detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .detail-info-item {
    background: rgba(16, 185, 129, 0.08);
    padding: 0.6rem 0.8rem;
    border-radius: 0.8rem;
  }

  .detail-info-item .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
  }

  .detail-info-item .value {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.2rem;
  }

  .detail-plot {
    background: rgba(251, 191, 36, 0.08);
    padding: 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .detail-actors {
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  /* Ranking List */
  .rank-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeRight 0.5s forwards;
  }

  .rank-item:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
  }

  .rank-num {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'SF Mono', monospace;
    width: 50px;
    text-align: center;
  }

  .rank-num.gold { color: var(--accent); text-shadow: 0 0 20px rgba(251,191,36,0.5); }
  .rank-num.silver { color: #cbd5e1; }
  .rank-num.bronze { color: #d97706; }

  .rank-info { flex: 1; }
  .rank-info h5 { margin-bottom: 0.1rem; }
  .rank-info .meta { font-size: 0.85rem; color: var(--text-muted); }

  /* Accordion */
  .accordion-item {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1rem !important;
    margin-bottom: 1rem;
    overflow: hidden;
  }

  .accordion-button {
    background: var(--card-bg);
    color: var(--text);
    font-weight: 700;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    box-shadow: none;
  }

  .accordion-button:not(.collapsed) {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    box-shadow: none;
  }

  .accordion-button::after {
    filter: invert(0.8);
  }

  .accordion-body {
    background: var(--card-bg);
    color: var(--text-muted);
    padding: 1rem 1.5rem 1.5rem;
    line-height: 1.7;
  }

  /* Category pills */
  .category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
  }

  .category-pill {
    padding: 0.6rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
    cursor: pointer;
  }

  .category-pill:hover, .category-pill.active {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
  }

  /* Mood section */
  .mood-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
  }

  .mood-btn {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mood-btn i { font-size: 1.3rem; }

  .mood-btn[data-mood="cry"] i { color: #60a5fa; }
  .mood-btn[data-mood="laugh"] i { color: #fbbf24; }
  .mood-btn[data-mood="thrill"] i { color: #f87171; }
  .mood-btn[data-mood="relax"] i { color: #34d399; }

  .mood-btn:hover {
    transform: scale(1.05);
    border-color: var(--primary);
  }

  /* Footer */
  .footer {
    background: #08120e;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    padding: 3rem 0;
    color: var(--text-muted);
  }

  .footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer a:hover { color: var(--primary); }

  .friend-links {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
  }

  .friend-links h5 {
    color: var(--primary);
    margin-bottom: 1rem;
  }

  /* Animations */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
  }

  .stagger-1 { animation-delay: 0.05s; }
  .stagger-2 { animation-delay: 0.1s; }
  .stagger-3 { animation-delay: 0.15s; }
  .stagger-4 { animation-delay: 0.2s; }
  .stagger-5 { animation-delay: 0.25s; }
  .stagger-6 { animation-delay: 0.3s; }
  .stagger-7 { animation-delay: 0.35s; }
  .stagger-8 { animation-delay: 0.4s; }
  .stagger-9 { animation-delay: 0.45s; }
  .stagger-10 { animation-delay: 0.5s; }
  .stagger-11 { animation-delay: 0.55s; }
  .stagger-12 { animation-delay: 0.6s; }

  /* Responsive */
  @media (max-width: 768px) {
    .section { padding: 3rem 0; }
    .section-title { font-size: 2rem; }
    .hero { padding: 5rem 0 3rem; }
    .hero h1 { font-size: 2.5rem; }
    .poster-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
    .movie-card .card-title { font-size: 0.9rem; }
    .detail-info-grid { grid-template-columns: 1fr; }
  }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 50rem; }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent); }

  /* Misc */
  .btn-primary-custom {
    background: var(--primary);
    border: none;
    color: var(--bg);
    font-weight: 700;
    border-radius: 50rem;
    padding: 0.6rem 2rem;
    transition: all 0.2s;
  }

  .btn-primary-custom:hover {
    background: var(--accent);
    color: var(--bg);
    transform: scale(1.02);
  }

  .stat-number {
    font-family: 'SF Mono', monospace;
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--accent);
  }

  .text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

/* --- 子页面追加 --- */
/* 强制覆盖 Bootstrap 白底黑字问题 */
    .card, .card-body, .card-header, .card-footer,
    .accordion-item, .accordion-button, .accordion-body,
    .list-group-item, .form-control, .form-select, .modal-content {
      background: var(--card-bg) !important;
      color: var(--text) !important;
      border-color: var(--border-glow) !important;
    }
.btn-outline-primary, .btn-outline-success {
      color: var(--primary) !important;
      border-color: var(--primary) !important;
    }
.btn-outline-primary:hover, .btn-outline-success:hover {
      background: var(--primary) !important;
      color: #0a1410 !important;
    }
.navbar-nav .nav-link.active {
      color: var(--accent) !important;
      font-weight: 600;
    }
/* 本页自定义组件样式 (与站点视觉融合) */
    .about-hero {
      background: linear-gradient(145deg, rgba(16,185,129,0.12) 0%, rgba(10,20,16,1) 70%);
      border-bottom: 1px solid var(--border-glow);
    }
.feature-card {
      background: rgba(17, 34, 26, 0.8);
      backdrop-filter: blur(4px);
      border: 1px solid var(--border-glow);
      border-radius: 18px;
      transition: transform 0.25s ease, box-shadow 0.3s ease;
    }
.feature-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 28px rgba(0,0,0,0.5), 0 0 0 1px rgba(16,185,129,0.3);
    }
.feature-icon {
      font-size: 2.2rem;
      color: var(--primary);
      background: rgba(16, 185, 129, 0.1);
      width: 64px;
      height: 64px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1rem;
    }
.timeline-badge {
      background: var(--primary);
      color: #0a1410;
      font-weight: 700;
      padding: 0.2rem 0.9rem;
      border-radius: 30px;
      font-size: 0.85rem;
      letter-spacing: 0.3px;
    }
.section-rule {
      border-top: 1px dashed rgba(16, 185, 129, 0.3);
      opacity: 0.5;
    }
.quote-block {
      border-left: 4px solid var(--accent);
      background: rgba(251, 191, 36, 0.04);
      padding: 1.5rem 2rem;
      border-radius: 0 16px 16px 0;
      font-style: italic;
    }
/* 页脚部分复用首页样式 */
    .footer-links a {
      color: var(--text-muted);
      text-decoration: none;
      margin-right: 1.5rem;
      transition: color 0.2s;
    }
.footer-links a:hover {
      color: var(--accent);
    }

/* --- 子页面追加 --- */
/* 本页专属样式 - 观影指南 */
        .faq-hero {
            padding: 80px 0 40px;
            position: relative;
        }
.faq-hero h1 {
            font-size: 2.8rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            margin-bottom: 16px;
            color: var(--text);
        }
.faq-hero h1 span {
            color: var(--primary);
        }
.faq-hero p {
            color: var(--text-muted);
            font-size: 1.15rem;
            max-width: 680px;
        }
.faq-section {
            padding: 40px 0;
        }
.faq-section .section-title {
            margin-bottom: 24px;
            position: relative;
            padding-bottom: 12px;
        }
.faq-section .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 60px;
            height: 3px;
            background: var(--primary);
            border-radius: 2px;
        }
.faq-card {
            background: var(--card-bg);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            padding: 28px;
            margin-bottom: 20px;
            transition: border-color 0.3s ease;
        }
.faq-card:hover {
            border-color: var(--border-glow);
        }
.faq-card h3 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 12px;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 10px;
        }
.faq-card h3 i {
            color: var(--primary);
            font-size: 1.1rem;
        }
.faq-card p, .faq-card ul, .faq-card ol {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.8;
            margin-bottom: 10px;
        }
.faq-card ul, .faq-card ol {
            padding-left: 20px;
        }
.faq-card li {
            margin-bottom: 6px;
        }
.faq-card strong {
            color: var(--text);
        }
.faq-card .highlight {
            color: var(--accent);
            font-weight: 600;
        }
.steps-container {
            counter-reset: step;
            padding: 0;
            list-style: none;
        }
.steps-container li {
            counter-increment: step;
            position: relative;
            padding-left: 44px;
            margin-bottom: 14px;
            color: var(--text-muted);
        }
.steps-container li::before {
            content: counter(step);
            position: absolute;
            left: 0;
            top: 2px;
            width: 30px;
            height: 30px;
            background: var(--primary);
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            font-weight: 700;
        }
.tip-box {
            background: rgba(251, 191, 36, 0.08);
            border-left: 3px solid var(--accent);
            border-radius: 0 8px 8px 0;
            padding: 16px 20px;
            margin-top: 16px;
        }
.tip-box p {
            color: var(--text);
            margin-bottom: 0;
        }
.tip-box i {
            color: var(--accent);
            margin-right: 8px;
        }
.quick-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin: 24px 0 40px;
        }
.quick-nav a {
            background: var(--card-bg);
            border: 1px solid rgba(255,255,255,0.08);
            color: var(--text-muted);
            padding: 8px 18px;
            border-radius: 20px;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }
.quick-nav a:hover {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
            text-decoration: none;
        }
.faq-cta {
            background: var(--card-bg);
            border: 1px solid var(--border-glow);
            border-radius: 16px;
            padding: 40px;
            text-align: center;
            margin-top: 40px;
        }
.faq-cta h3 {
            color: var(--text);
            font-size: 1.6rem;
            font-weight: 800;
            margin-bottom: 16px;
        }
.faq-cta p {
            color: var(--text-muted);
            margin-bottom: 24px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }
.faq-cta .btn {
            display: inline-block;
            background: var(--primary);
            color: #fff;
            padding: 12px 32px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
        }
.faq-cta .btn:hover {
            background: var(--accent);
            color: #0a1410;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
        }
.faq-hero h1 {
                font-size: 2rem;
            }
.faq-card {
                padding: 20px;
            }
.faq-cta {
                padding: 28px 20px;
            }

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