:root {
  --primary: #6d5dfc;
  --accent: #22d3ee;
  --bg: #0f1020;
  --text: #e8eaf6;
  --text-muted: #9ca3b8;
  --card-bg: #1a1b2e;
  --border-color: #2a2b40;
  --hover-border: var(--primary);
}

* { border-radius: 0 !important; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
}

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

p { color: var(--text-muted); }

/* Navbar */
.navbar {
  background: rgba(15, 16, 32, 0.95);
  border-bottom: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(15, 16, 32, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(109, 93, 252, 0.25);
}
.navbar-brand {
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff !important;
  letter-spacing: -0.03em;
}
.navbar-brand i { color: var(--primary); margin-right: 4px; }
.navbar-dark .navbar-nav .nav-link {
  color: var(--text);
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  margin: 0 0.2rem;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Hero */
.hero-section {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.15), transparent 60%);
  border-bottom: 3px solid var(--border-color);
}
.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
}
.btn-hero {
  padding: 0.8rem 2rem;
  font-weight: 700;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: all 0.2s;
  margin-right: 1rem;
  display: inline-block;
}
.btn-hero:hover {
  background: var(--accent);
  color: var(--bg);
}
.btn-hero-filled {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}
.btn-hero-filled:hover {
  background: transparent;
  color: var(--primary);
}

/* Section */
.section-block {
  padding: 4rem 0;
  border-bottom: 2px solid var(--border-color);
}
.section-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
}
.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Movie Card */
.movie-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  height: 100%;
  display: block;
  color: var(--text);
  text-decoration: none;
}
.movie-card:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 8px 30px rgba(109, 93, 252, 0.4);
  border-color: var(--hover-border);
  color: var(--text);
}
.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: #222;
}
.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.badge-quality {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border: 2px solid #fff;
  letter-spacing: 0.05em;
}
.movie-info {
  padding: 0.8rem 0.9rem 1rem;
}
.movie-name {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.movie-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
}
.movie-rating {
  color: var(--accent);
  font-weight: 700;
}

/* Flip Card Modal */
.flip-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
}
.flip-modal-overlay.active { display: flex; }
.flip-card {
  width: 340px;
  min-height: 520px;
  perspective: 1200px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  transform-style: preserve-3d;
  border: 3px solid var(--primary);
  box-shadow: 0 15px 40px rgba(109, 93, 252, 0.5);
}
.flip-card-inner.flipped { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: var(--card-bg);
}
.flip-card-front img { width: 100%; height: 100%; object-fit: cover; }
.flip-card-back {
  transform: rotateY(180deg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flip-card-back h4 { margin-bottom: 1rem; color: var(--accent); }
.flip-card-back .detail-row {
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}
.flip-card-back .detail-label {
  font-weight: 700;
  color: var(--primary);
  margin-right: 6px;
}
.flip-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  border: 2px solid #fff;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
}

/* Rank List */
.rank-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  margin-bottom: 0.8rem;
  transition: all 0.2s;
}
.rank-item:hover { border-color: var(--accent); transform: translateX(6px); }
.rank-number {
  font-family: 'Courier New', monospace;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  width: 50px;
  flex-shrink: 0;
}
.rank-title {
  flex: 1;
  font-weight: 700;
  margin-left: 1rem;
}
.rank-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
}

/* Accordion */
.accordion-item {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  margin-bottom: 1rem;
}
.accordion-button {
  background: transparent;
  color: var(--text);
  font-weight: 700;
  border: none;
  padding: 1rem 1.2rem;
}
.accordion-button:not(.collapsed) {
  background: rgba(109, 93, 252, 0.15);
  color: var(--accent);
}
.accordion-button:focus { box-shadow: none; border: none; }
.accordion-body { padding: 1rem 1.2rem; color: var(--text-muted); }

/* Feature List */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.8rem 0;
  border-bottom: 2px dashed var(--border-color);
  font-weight: 500;
}
.feature-list i {
  font-size: 1.3rem;
  color: var(--accent);
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}

/* Quick Pick Widget */
.pick-btn {
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0.3rem;
  display: inline-block;
}
.pick-btn:hover, .pick-btn.active {
  background: var(--accent);
  color: var(--bg);
}
.mood-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  margin: 0.3rem;
  cursor: pointer;
  transition: all 0.2s;
}
.mood-tag:hover, .mood-tag.active { background: var(--primary); color: #fff; }
.recommend-result {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 2px dashed var(--accent);
  color: var(--text);
  font-weight: 600;
  min-height: 60px;
}

/* Friends */
.friends-links {
  padding: 2.5rem 0;
  border-bottom: 2px solid var(--border-color);
}
.friends-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-color);
  display: inline-block;
  margin: 0.3rem;
  transition: all 0.2s;
}
.friends-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  background: #0a0b14;
  border-top: 3px solid var(--primary);
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--accent); }

/* Scroll animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.text-accent { color: var(--accent) !important; }
.text-primary-custom { color: var(--primary) !important; }
.mono { font-family: 'Courier New', monospace; }
.section-padding { padding: 4rem 0; }

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.4rem; }
  .flip-card { width: 300px; }
}

/* --- 子页面追加 --- */
/* 关于我们页面专属样式 */
        .about-hero {
            padding: 100px 0 60px;
            background: linear-gradient(135deg, rgba(109, 93, 252, 0.08) 0%, transparent 50%);
        }
.about-hero .hero-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 1rem;
        }
.about-hero .hero-subtitle {
            font-size: 1.15rem;
            color: var(--text-muted);
            max-width: 720px;
            margin: 0 auto;
            line-height: 1.7;
        }
.about-section {
            padding: 60px 0;
            border-bottom: 1px solid var(--border-color);
        }
.about-section:last-child {
            border-bottom: none;
        }
.about-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 28px;
            height: 100%;
            transition: border-color 0.3s ease, transform 0.3s ease;
        }
.about-card:hover {
            border-color: var(--hover-border);
            transform: translateY(-4px);
        }
.about-card i {
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 16px;
        }
.about-card h3 {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 12px;
            color: var(--text);
        }
.about-card p {
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 0;
        }
.stat-item {
            text-align: center;
            padding: 20px;
        }
.stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--primary);
            display: block;
            margin-bottom: 4px;
        }
.stat-label {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
.feature-list li:last-child {
            border-bottom: none;
        }
.feature-list li i {
            color: var(--accent);
            font-size: 0.9rem;
            width: 20px;
            text-align: center;
        }
.timeline {
            position: relative;
            padding-left: 30px;
        }
.timeline::before {
            content: '';
            position: absolute;
            left: 8px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--border-color);
        }
.timeline-item {
            position: relative;
            padding-bottom: 30px;
        }
.timeline-item::before {
            content: '';
            position: absolute;
            left: -26px;
            top: 6px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--primary);
            border: 2px solid var(--bg);
        }
.timeline-item h4 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 6px;
        }
.timeline-item p {
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 1.6;
        }
.about-hero {
                padding: 60px 0 40px;
            }
.about-hero .hero-title {
                font-size: 1.8rem;
            }
.about-hero .hero-subtitle {
                font-size: 1rem;
            }
.about-section {
                padding: 40px 0;
            }
.stat-number {
                font-size: 2rem;
            }

/* --- 子页面追加 --- */
.disclaimer-hero {
      background: linear-gradient(135deg, rgba(109,93,252,.15) 0%, rgba(34,211,238,.08) 100%);
      border-bottom: 1px solid var(--border-color);
      padding: 5rem 0 3.5rem;
      text-align: center;
    }
.disclaimer-hero h1 {
      font-size: 2.6rem;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 1rem;
      letter-spacing: -0.02em;
    }
.disclaimer-hero p {
      color: var(--text-muted);
      max-width: 720px;
      margin: 0 auto;
      font-size: 1.05rem;
      line-height: 1.7;
    }
.disclaimer-section {
      padding: 4rem 0;
    }
.disclaimer-container {
      max-width: 960px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }
.disclaimer-item {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 2.2rem 2.5rem;
      margin-bottom: 2rem;
      transition: border-color .3s ease, transform .3s ease;
    }
.disclaimer-item:hover {
      border-color: var(--hover-border);
      transform: translateY(-3px);
    }
.disclaimer-item h2 {
      font-size: 1.45rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: .75rem;
    }
.disclaimer-item h2 i {
      color: var(--primary);
      font-size: 1.2rem;
    }
.disclaimer-item p, .disclaimer-item li {
      color: var(--text-muted);
      line-height: 1.8;
      font-size: .98rem;
    }
.disclaimer-item ul {
      padding-left: 1.5rem;
      margin-bottom: 1rem;
    }
.disclaimer-item li {
      margin-bottom: .5rem;
    }
.highlight-box {
      background: rgba(109,93,252,.1);
      border-left: 3px solid var(--primary);
      padding: 1.2rem 1.5rem;
      border-radius: 0 12px 12px 0;
      margin: 1.5rem 0;
    }
.highlight-box p {
      margin: 0;
      color: var(--text);
      font-weight: 500;
    }
.contact-list {
      list-style: none;
      padding: 0;
    }
.contact-list li {
      display: flex;
      align-items: center;
      gap: .75rem;
      margin-bottom: .8rem;
      color: var(--text-muted);
    }
.contact-list li i {
      color: var(--primary);
      width: 20px;
      text-align: center;
    }
.disclaimer-hero { padding: 3.5rem 0 2.5rem; }
.disclaimer-hero h1 { font-size: 2rem; }
.disclaimer-item { padding: 1.6rem 1.4rem; }

/* --- 子页面追加 --- */
/* 本页专属补充样式 */
    .guide-hero {
      background: linear-gradient(135deg, rgba(109, 93, 252, 0.15) 0%, rgba(34, 211, 238, 0.08) 100%);
      border-bottom: 1px solid var(--border-color);
      padding: 80px 0 60px;
    }
.guide-hero h1 {
      font-size: 2.6rem;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 16px;
    }
.guide-hero h1 span {
      color: var(--primary);
    }
.guide-hero p {
      color: var(--text-muted);
      font-size: 1.1rem;
      max-width: 700px;
      margin: 0 auto;
    }
.guide-section {
      padding: 60px 0;
    }
.guide-section:nth-child(even) {
      background: rgba(26, 27, 46, 0.4);
    }
.guide-section .section-title {
      margin-bottom: 12px;
    }
.guide-section .section-subtitle {
      margin-bottom: 40px;
    }
.guide-card {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 28px 24px;
      height: 100%;
      transition: all 0.3s ease;
    }
.guide-card:hover {
      border-color: var(--hover-border);
      transform: translateY(-4px);
      box-shadow: 0 8px 30px rgba(109, 93, 252, 0.12);
    }
.guide-card .icon-wrap {
      width: 52px;
      height: 52px;
      border-radius: 12px;
      background: rgba(109, 93, 252, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      color: var(--primary);
      margin-bottom: 18px;
    }
.guide-card h3 {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 12px;
    }
.guide-card p {
      color: var(--text-muted);
      font-size: 0.92rem;
      line-height: 1.7;
      margin-bottom: 0;
    }
.guide-card ul {
      padding-left: 18px;
      margin-bottom: 0;
      color: var(--text-muted);
      font-size: 0.92rem;
      line-height: 1.8;
    }
.guide-card ul li::marker {
      color: var(--primary);
    }
.step-list {
      list-style: none;
      padding: 0;
      margin: 0;
      counter-reset: step;
    }
.step-list li {
      counter-increment: step;
      position: relative;
      padding-left: 52px;
      margin-bottom: 20px;
      color: var(--text-muted);
      line-height: 1.7;
      font-size: 0.95rem;
    }
.step-list li::before {
      content: counter(step);
      position: absolute;
      left: 0;
      top: 0;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--primary);
      color: #fff;
      font-weight: 700;
      font-size: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }
.faq-item {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 22px 24px;
      margin-bottom: 16px;
    }
.faq-item h4 {
      color: var(--text);
      font-size: 1.05rem;
      font-weight: 600;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
.faq-item h4 i {
      color: var(--primary);
      font-size: 1rem;
    }
.faq-item p {
      color: var(--text-muted);
      font-size: 0.92rem;
      line-height: 1.7;
      margin-bottom: 0;
    }
.tip-box {
      background: rgba(34, 211, 238, 0.08);
      border-left: 3px solid var(--accent);
      border-radius: 0 10px 10px 0;
      padding: 16px 20px;
      margin: 24px 0;
    }
.tip-box p {
      color: var(--text);
      font-size: 0.92rem;
      margin-bottom: 0;
      line-height: 1.6;
    }
.tip-box p i {
      color: var(--accent);
      margin-right: 8px;
    }
.badge-tip {
      display: inline-block;
      background: rgba(109, 93, 252, 0.2);
      color: var(--primary);
      font-size: 0.75rem;
      font-weight: 600;
      padding: 2px 10px;
      border-radius: 20px;
      margin-bottom: 12px;
      letter-spacing: 0.5px;
    }
.guide-hero h1 {
        font-size: 2rem;
      }
.guide-card {
        margin-bottom: 16px;
      }

/* --- 子页面追加 --- */
/* 确保bootstrap卡片/列表等组件不会出现白底黑字，与站点深色风格一致 */
    .card, .card-body, .card-title, .card-text, .card-header, .card-footer,
    .list-group-item, .accordion-item, .accordion-button, .accordion-body,
    .modal-content, .dropdown-menu, .dropdown-item, .form-control, .form-select {
      background-color: var(--card-bg) !important;
      color: var(--text) !important;
      border-color: var(--border-color) !important;
    }
.nav-link, .navbar, .navbar-brand {
      color: var(--text) !important;
    }
.nav-link:hover, .navbar-brand:hover {
      color: var(--primary) !important;
    }
.btn-light {
      background-color: var(--card-bg) !important;
      color: var(--text) !important;
      border-color: var(--border-color) !important;
    }
.btn-outline-primary {
      border-color: var(--primary) !important;
      color: var(--primary) !important;
    }
.btn-outline-primary:hover {
      background-color: var(--primary) !important;
      color: #fff !important;
    }
/* 排行榜卡片细节 */
    .rank-card {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 14px;
      padding: 1.2rem;
      transition: border-color .3s, transform .3s;
      height: 100%;
    }
.rank-card:hover {
      border-color: var(--hover-border);
      transform: translateY(-4px);
    }
.rank-number-badge {
      font-weight: 800;
      font-size: 2.2rem;
      line-height: 1;
      color: var(--primary);
      opacity: .9;
    }
.rank-tag {
      background: rgba(109, 93, 252, .15);
      color: var(--accent);
      border-radius: 20px;
      padding: .25rem .8rem;
      font-size: .8rem;
      font-weight: 600;
    }
.progress-rank {
      background: rgba(255,255,255,.05);
      border-radius: 20px;
      height: 6px;
      overflow: hidden;
    }
.progress-rank .bar {
      background: linear-gradient(90deg, var(--primary), var(--accent));
      height: 100%;
      border-radius: 20px;
    }
.score-highlight {
      color: var(--accent);
      font-weight: 700;
    }
.movie-poster-sm {
      width: 48px;
      height: 68px;
      object-fit: cover;
      border-radius: 8px;
      background: #26283f;
    }

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