:root {
  --primary: #2563eb;
  --accent: #06b6d4;
  --bg: #f4f8ff;
  --text: #0f1e3d;
  --border: #cbd5e1;
  --card-bg: #ffffff;
  --radius: 0px;
}
* { box-sizing: border-box; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
}
h1,h2,h3,h4,h5 { font-weight: 800; letter-spacing: -0.02em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
.navbar-custom {
  background: #fff;
  border-bottom: 2px solid var(--text);
  border-radius: 0;
  padding: 0.75rem 1rem;
}
.navbar-brand {
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--text) !important;
  letter-spacing: -0.03em;
}
.navbar-brand .brand-icon { color: var(--primary); margin-right: 8px; }
.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--text);
  margin: 0 0.4rem;
  padding: 0.5rem 0.75rem !important;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.navbar-nav .nav-link:hover { border-bottom-color: var(--primary); color: var(--primary); }
.navbar-toggler { border: 2px solid var(--text); border-radius: 0; }
.navbar-toggler:focus { box-shadow: none; }

.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 2px solid var(--text);
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero-section h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}
.hero-section h1 .accent-text { color: var(--primary); }
.hero-sub {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #3b4a6b;
  font-weight: 400;
}
.btn-hero {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-weight: 700;
  border: 2px solid var(--text);
  border-radius: 0;
  margin: 0 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  z-index: 1;
}
.btn-hero::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
  z-index: -1;
}
.btn-hero:hover::before { left: 100%; }
.btn-hero.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-hero.primary:hover { background: #1d4ed8; color: #fff; }
.btn-hero.outline { background: transparent; color: var(--text); }
.btn-hero.outline:hover { background: var(--text); color: #fff; }

.section-block {
  padding: 4rem 0;
  border-bottom: 2px solid var(--border);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 3px solid var(--text);
  padding-bottom: 0.75rem;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0;
}
.section-title i { color: var(--primary); margin-right: 0.6rem; }
.section-more { font-weight: 600; font-size: 0.95rem; }

.category-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.category-item {
  border: 2px solid var(--text);
  padding: 0.5rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  background: #fff;
  transition: all 0.2s;
  cursor: pointer;
  color: var(--text);
}
.category-item:hover, .category-item.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}
.movie-card {
  position: relative;
  background: var(--card-bg);
  border: 2px solid var(--text);
  cursor: pointer;
  transition: all 0.3s;
  perspective: 1000px;
}
.movie-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.movie-card.flipped .movie-card-inner { transform: rotateY(180deg); }
.movie-card-face {
  position: relative;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.movie-card-front { background: #fff; }
.movie-card-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--primary);
  color: #fff;
  transform: rotateY(180deg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.movie-card-back h5 { font-size: 0.95rem; margin-bottom: 0.5rem; font-weight: 800; }
.movie-card-back p { font-size: 0.75rem; margin-bottom: 0.4rem; line-height: 1.4; }
.movie-card-back .close-back {
  position: absolute;
  top: 0.4rem; right: 0.6rem;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.poster-wrap {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-bottom: 2px solid var(--text);
  background: #e2e8f0;
}
.poster-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.badge-update {
  position: absolute;
  top: 0.4rem; left: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border: 1px solid #fff;
  border-left: none;
}
.rating-badge {
  position: absolute;
  bottom: 0.4rem; right: 0.4rem;
  background: rgba(0,0,0,0.8);
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
}
.movie-info { padding: 0.6rem 0.6rem 0.8rem; }
.movie-title { font-weight: 800; font-size: 0.9rem; margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movie-meta { font-size: 0.75rem; color: #64748b; display: flex; justify-content: space-between; }

.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-item {
  display: flex;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 2px solid var(--border);
  background: #fff;
  margin-bottom: 0.6rem;
  transition: all 0.3s;
  cursor: pointer;
}
.rank-item:hover { background: var(--bg); border-left: 5px solid var(--primary); padding-left: 0.8rem; }
.rank-num {
  width: 2.5rem;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  flex-shrink: 0;
}
.rank-num.top3 { color: var(--accent); }
.rank-thumb {
  width: 50px; height: 70px;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-right: 1rem;
  flex-shrink: 0;
}
.rank-info { flex: 1; }
.rank-info h6 { font-weight: 800; margin-bottom: 0.2rem; }
.rank-info span { font-size: 0.8rem; color: #64748b; }
.rank-score { font-weight: 800; color: #f59e0b; margin-right: 1rem; font-size: 1.1rem; }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.topic-item {
  border: 2px solid var(--text);
  padding: 1.5rem;
  background: #fff;
  transition: all 0.3s;
}
.topic-item:hover { border-color: var(--primary); transform: translateY(-4px); }
.topic-item i { font-size: 2rem; color: var(--primary); margin-bottom: 0.8rem; }
.topic-item h4 { font-weight: 800; font-size: 1.2rem; }
.topic-item p { font-size: 0.9rem; color: #475569; }

.compare-table { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--text); }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 0.8rem 1rem; text-align: left; }
.compare-table th { background: var(--text); color: #fff; font-weight: 700; }
.compare-table tr:nth-child(even) { background: #f8fafc; }
.compare-table .fa-check { color: #10b981; }
.compare-table .fa-times { color: #ef4444; }

.steps-list { counter-reset: steps; list-style: none; padding: 0; }
.steps-list li {
  counter-increment: steps;
  padding: 1rem 1rem 1rem 3.5rem;
  background: #fff;
  border: 2px solid var(--border);
  margin-bottom: 1rem;
  position: relative;
  font-weight: 500;
}
.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 1rem; top: 1rem;
  width: 1.8rem; height: 1.8rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.faq-accordion .faq-item {
  border: 2px solid var(--border);
  background: #fff;
  margin-bottom: 1rem;
}
.faq-accordion .faq-q {
  padding: 1rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-accordion .faq-q:hover { background: var(--bg); }
.faq-accordion .faq-q i { transition: transform 0.3s; }
.faq-accordion .faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-accordion .faq-a { display: none; padding: 0 1.2rem 1.2rem; color: #475569; }

.random-pick {
  background: var(--text);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
  border-bottom: 2px solid var(--text);
}
.random-pick h2 { color: #fff; font-size: 2rem; }
.random-pick .pick-btn {
  background: var(--accent);
  border: 2px solid #fff;
  color: #fff;
  padding: 0.8rem 2rem;
  font-weight: 800;
  font-size: 1.1rem;
  transition: all 0.3s;
  cursor: pointer;
}
.random-pick .pick-btn:hover { background: #0e7490; }
.random-pick #pick-result {
  margin-top: 1.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  min-height: 2.5rem;
}

.friends-block {
  padding: 3rem 0;
  background: #fff;
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
}
.friends-block h3 { font-weight: 800; margin-bottom: 1rem; font-size: 1.2rem; }
.friends-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.friends-links a { font-weight: 500; color: var(--primary); border-bottom: 1px solid transparent; }
.friends-links a:hover { border-bottom-color: var(--primary); }

.footer-block {
  background: var(--text);
  color: #cbd5e1;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
.footer-block a { color: #fff; }
.footer-block .footer-brand { font-size: 1.3rem; font-weight: 900; color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin: 1rem 0; }

.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .hero-section { padding: 3rem 0; }
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
  .section-title { font-size: 1.4rem; }
}

/* --- 子页面追加 --- */
/* 确保任何 bootstrap 组件不会破坏深色/浅色风格——本页几乎不用 bootstrap 组件类，只做少量微调 */
    .about-hero {
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      padding: 4rem 0;
      border-radius: 0 0 20px 20px;
      margin-bottom: 2rem;
    }
.about-hero h1 {
      color: #fff;
      font-weight: 800;
      letter-spacing: -0.02em;
    }
.about-hero p {
      color: rgba(255,255,255,0.85);
      font-size: 1.1rem;
    }
.about-section {
      background: var(--card-bg);
      border: 1px solid var(--border);
      padding: 2rem 1.5rem;
      margin-bottom: 2rem;
      border-radius: var(--radius);
      box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    }
.about-section h2 {
      font-weight: 700;
      color: var(--primary);
      font-size: 1.6rem;
      border-left: 6px solid var(--accent);
      padding-left: 1rem;
      margin-bottom: 1.2rem;
    }
.about-section h3 {
      font-weight: 600;
      color: var(--text);
      font-size: 1.2rem;
      margin-top: 1.4rem;
      margin-bottom: 0.7rem;
    }
.feature-icon {
      font-size: 2.2rem;
      color: var(--accent);
      margin-right: 0.75rem;
      width: 2.5rem;
      display: inline-block;
      text-align: center;
    }
.feature-item {
      display: flex;
      align-items: flex-start;
      margin-bottom: 1.2rem;
    }
.feature-item p {
      margin-bottom: 0;
    }
.update-note {
      background: rgba(6, 182, 212, 0.07);
      padding: 0.75rem 1rem;
      border-left: 4px solid var(--accent);
      font-size: 0.95rem;
      margin-top: 1rem;
    }
/* 导航栏高亮当前页 */
    .navbar-custom .nav-link.active-about {
      color: var(--accent) !important;
      font-weight: 600;
    }

/* --- 子页面追加 --- */
/* 页面专属小样式 */
        .disclaimer-hero {
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            color: #fff;
            padding: 60px 0 40px;
        }
.disclaimer-content {
            background: var(--card-bg);
            padding: 40px;
            margin-top: -30px;
            border: 1px solid var(--border);
            box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
        }
.disclaimer-content h2 {
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 20px;
            margin-top: 40px;
            border-left: 4px solid var(--accent);
            padding-left: 16px;
        }
.disclaimer-content h2:first-child {
            margin-top: 0;
        }
.disclaimer-content p, .disclaimer-content li {
            color: var(--text);
            line-height: 1.8;
            margin-bottom: 12px;
        }
.disclaimer-content ul {
            padding-left: 20px;
            margin-bottom: 20px;
        }
.disclaimer-content li {
            list-style: disc;
        }
.last-updated {
            font-size: 0.9rem;
            color: #64748b;
            margin-bottom: 24px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border);
        }
.disclaimer-content {
                padding: 24px;
                margin-top: -20px;
            }
.disclaimer-hero {
                padding: 40px 0 30px;
            }

/* --- 子页面追加 --- */
.privacy-content {
            max-width: 900px;
            margin: 0 auto;
        }
.privacy-section {
            background: var(--card-bg);
            border: 1px solid var(--border);
            padding: 2.5rem;
            margin-bottom: 2rem;
            border-radius: var(--radius);
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }
.privacy-section h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--accent);
            display: inline-block;
        }
.privacy-section h3 {
            font-size: 1.15rem;
            font-weight: 600;
            color: var(--text);
            margin-top: 1.5rem;
            margin-bottom: 1rem;
        }
.privacy-section p {
            line-height: 1.8;
            color: var(--text);
            opacity: 0.85;
            margin-bottom: 1rem;
        }
.privacy-section ul {
            margin-bottom: 1.5rem;
            padding-left: 1.5rem;
        }
.privacy-section li {
            margin-bottom: 0.75rem;
            line-height: 1.7;
            color: var(--text);
            opacity: 0.85;
        }
.privacy-update {
            background: #f0f7ff;
            border-left: 4px solid var(--primary);
            padding: 1rem 1.5rem;
            margin-bottom: 2rem;
            font-size: 0.95rem;
            color: var(--text);
        }
.privacy-highlight {
            background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
            padding: 1.5rem;
            border-radius: var(--radius);
            margin: 1.5rem 0;
            border: 1px solid var(--border);
        }
.privacy-highlight p {
            margin-bottom: 0.5rem;
        }
.privacy-toc {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 2rem;
            margin-bottom: 2rem;
        }
.privacy-toc a {
            color: var(--primary);
            text-decoration: none;
            display: inline-block;
            padding: 0.35rem 0;
            font-weight: 500;
        }
.privacy-toc a:hover {
            color: var(--accent);
        }
.privacy-section {
                padding: 1.5rem;
            }

/* --- 子页面追加 --- */
/* 排行榜专属样式 */
        .rank-hero {
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            color: #fff;
            padding: 3rem 0 3rem 0;
            margin-bottom: 2rem;
        }
.rank-hero h1 {
            font-weight: 800;
            font-size: 2.2rem;
            margin-bottom: 0.5rem;
        }
.rank-hero p {
            font-size: 1.05rem;
            opacity: 0.92;
            max-width: 700px;
            margin-bottom: 0;
        }
.rank-tabs {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-bottom: 2rem;
            border-bottom: 2px solid var(--border);
            padding-bottom: 0.75rem;
        }
.rank-tab {
            padding: 0.5rem 1.25rem;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--text);
            cursor: pointer;
            transition: all 0.25s ease;
            text-decoration: none;
        }
.rank-tab:hover, .rank-tab.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }
.rank-panel {
            display: none;
        }
.rank-panel.active {
            display: block;
        }
.rank-list li {
            display: flex;
            align-items: center;
            gap: 1rem;
            background: var(--card-bg);
            border: 1px solid var(--border);
            padding: 0.85rem 1.25rem;
            margin-bottom: 0.75rem;
            transition: all 0.25s ease;
        }
.rank-list li:hover {
            transform: translateX(6px);
            box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
            border-color: var(--primary);
        }
.rank-number {
            font-size: 1.35rem;
            font-weight: 900;
            color: var(--primary);
            min-width: 42px;
            text-align: center;
        }
.rank-number.top-1 {
            color: #f59e0b;
            font-size: 1.6rem;
        }
.rank-number.top-2 {
            color: #94a3b8;
            font-size: 1.5rem;
        }
.rank-number.top-3 {
            color: #d97706;
            font-size: 1.4rem;
        }
.rank-poster {
            width: 64px;
            height: 88px;
            object-fit: cover;
            border-radius: 4px;
            flex-shrink: 0;
            background: var(--bg);
        }
.rank-info h3 {
            font-size: 1.05rem;
            font-weight: 700;
            margin: 0 0 0.25rem 0;
            color: var(--text);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
.rank-info .rank-meta {
            font-size: 0.85rem;
            color: #64748b;
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
        }
.rank-score.hot {
            background: #ef4444;
        }
.rank-trend {
            font-size: 0.8rem;
            color: #10b981;
            font-weight: 600;
            flex-shrink: 0;
        }
.rank-trend.down {
            color: #ef4444;
        }
.rank-note {
            background: rgba(37, 99, 235, 0.06);
            border-left: 4px solid var(--primary);
            padding: 1rem 1.25rem;
            margin: 2rem 0 1.5rem 0;
            font-size: 0.95rem;
            color: var(--text);
        }
.section-sub {
            font-size: 0.9rem;
            color: #64748b;
            margin-bottom: 1.5rem;
        }
.rank-hero h1 {
                font-size: 1.6rem;
            }
.rank-poster {
                width: 52px;
                height: 72px;
            }
.rank-info h3 {
                font-size: 0.95rem;
            }
.rank-info .rank-meta {
                font-size: 0.75rem;
                gap: 0.5rem;
            }
.rank-number {
                min-width: 30px;
                font-size: 1.1rem;
            }

/* --- 子页面追加 --- */
/* 覆盖 Bootstrap 组件默认白底黑字，确保与站点深色/浅色风格一致 */
        .card, .card-body, .card-header, .card-footer {
            background: var(--card-bg);
            color: var(--text);
            border-color: var(--border);
        }
.form-control, .form-select {
            background-color: var(--card-bg);
            color: var(--text);
            border-color: var(--border);
        }
.form-control::placeholder {
            color: rgba(15, 30, 61, 0.5);
        }
.form-control:focus, .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
            background-color: #fff;
            color: var(--text);
        }
.list-group-item {
            background-color: var(--card-bg);
            color: var(--text);
            border-color: var(--border);
        }
.accordion-item, .accordion-button {
            background-color: var(--card-bg);
            color: var(--text);
            border-color: var(--border);
        }
.accordion-button:not(.collapsed) {
            background-color: rgba(37, 99, 235, 0.08);
            color: var(--primary);
        }
.modal-content {
            background-color: var(--card-bg);
            color: var(--text);
            border-color: var(--border);
        }
.nav-link.active {
            color: var(--primary);
            font-weight: 600;
        }
.navbar {
            background-color: var(--card-bg) !important; /* 覆盖bootstrap */
            border-bottom: 1px solid var(--border);
        }
.btn-outline-primary {
            border-color: var(--primary);
            color: var(--primary);
        }
.btn-outline-primary:hover {
            background-color: var(--primary);
            color: #fff;
        }
/* 联系页专属卡片装饰 */
        .contact-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            transition: box-shadow .2s;
        }
.contact-card:hover {
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        }
.contact-icon {
            color: var(--primary);
            font-size: 2rem;
            margin-bottom: 1rem;
        }
.section-block p {
            color: var(--text);
        }
.fa-ul li {
            margin-bottom: 0.5rem;
        }

/* --- Bootstrap 组件配色适配(程序自动补,避免白底黑字) --- */
.form-label { color:#0f1e3d !important; }
