:root {
  --primary: #dc2626;
  --accent: #fb923c;
  --bg: #141013;
  --text: #fef2f2;
  --border: rgba(254, 242, 242, 0.15);
  --card-bg: rgba(254, 242, 242, 0.03);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}
::selection { background: var(--primary); color: #fff; }
a { color: inherit; text-decoration: none; }

/* 自定义滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #1a141a; }
::-webkit-scrollbar-thumb { background: #3a2a32; border-radius: 8px; }

/* 顶部导航 */
.navbar {
  background: rgba(20, 16, 19, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  z-index: 1000;
}
.navbar-brand {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text) !important;
  margin-right: 2rem;
}
.navbar-brand i { color: var(--accent); margin-right: 0.4rem; }
.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 0.4rem;
  padding: 0.4rem 0.6rem !important;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav-link:hover { border-bottom-color: var(--primary); color: var(--accent) !important; }
.navbar-toggler { border-color: var(--border); color: var(--text); }
.navbar-toggler-icon { filter: invert(1); }

/* Hero 打字机区域 */
.hero {
  padding: 5rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at top, rgba(220, 38, 38, 0.08), transparent 60%);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  min-height: 1.2em;
}
.hero h1 .brand-mark { color: var(--primary); }
.hero .typed-cursor { color: var(--accent); animation: blink 0.8s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .subtitle {
  font-size: 1.1rem;
  color: rgba(254, 242, 242, 0.6);
  margin-top: 1rem;
  font-weight: 400;
}

/* 区块通用 */
.section { padding: 3.5rem 0; border-bottom: 1px solid var(--border); }
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}
.section-title i { color: var(--accent); margin-right: 0.8rem; font-size: 1.3rem; }
.section-subtitle { color: rgba(254, 242, 242, 0.5); font-size: 0.95rem; margin-bottom: 2rem; }

/* 榜单区 */
.rank-list { list-style: none; }
.rank-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
  transition: all 0.3s;
  background: var(--card-bg);
}
.rank-item:hover { border-color: var(--primary); transform: translateX(6px); }
.rank-num {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  width: 2.5rem;
  text-align: center;
}
.rank-info { flex: 1; padding: 0 1rem; }
.rank-info h5 { font-size: 1rem; font-weight: 600; margin-bottom: 0; }
.rank-info .meta { font-size: 0.85rem; color: rgba(254, 242, 242, 0.5); }
.rank-score { color: var(--accent); font-weight: 700; font-size: 1rem; }

/* 海报卡片 */
.poster-card {
  position: relative;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  border: 1px solid transparent;
  overflow: hidden;
  background: var(--card-bg);
}
.poster-card:hover {
  transform: scale(1.03) translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.15);
  z-index: 5;
}
.poster-card .poster-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: linear-gradient(145deg, #2a1e24, #1a141a);
  display: block;
}
.poster-card .quality-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.poster-card .info {
  padding: 0.7rem 0.8rem;
}
.poster-card .title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}
.poster-card .meta {
  font-size: 0.8rem;
  color: rgba(254, 242, 242, 0.5);
}
.poster-card .rating {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

/* 分类标签 */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.category-tab {
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--text);
  font-weight: 500;
}
.category-tab:hover { border-color: var(--accent); color: var(--accent); }
.category-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 时间线 */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.timeline-item h5 { font-weight: 700; color: var(--accent); margin-bottom: 0.3rem; }
.timeline-item p { color: rgba(254, 242, 242, 0.7); font-size: 0.95rem; margin-bottom: 0; }

/* 专题区 */
.feature-panel {
  border: 1px solid var(--border);
  padding: 2rem;
  background: linear-gradient(145deg, rgba(220, 38, 38, 0.04), transparent);
  margin-bottom: 1.5rem;
}
.feature-panel h4 { font-weight: 800; margin-bottom: 1rem; }
.feature-panel p { color: rgba(254, 242, 242, 0.7); }

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  background: var(--card-bg);
}
.faq-q {
  padding: 1rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q i { transition: transform 0.3s; color: var(--accent); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1.5rem;
  color: rgba(254, 242, 242, 0.7);
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1rem; }

/* 友情链接 */
.friend-links {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2rem;
  margin: 3rem 0 2rem;
}
.friend-links h6 { font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.friend-links .link-item { color: rgba(254, 242, 242, 0.6); margin-right: 1.5rem; font-size: 0.9rem; }
.friend-links .link-item:hover { color: var(--accent); }

/* 页脚 */
footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
footer .brand-footer {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 1rem;
}
footer .footer-links a {
  color: rgba(254, 242, 242, 0.6);
  margin: 0 1rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}
footer .footer-links a:hover { color: var(--accent); }
footer .copyright { color: rgba(254, 242, 242, 0.4); font-size: 0.85rem; margin-top: 1.5rem; }

/* 抽屉弹窗 */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
  z-index: 2000;
}
.drawer-overlay.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1f1820;
  border-top: 1px solid var(--primary);
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  z-index: 2001;
  max-height: 85vh;
  overflow-y: auto;
}
.drawer.show { transform: translateY(0); }
.drawer .close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s;
}
.drawer .close-btn:hover { color: var(--primary); }
.drawer h3 { font-weight: 800; margin-bottom: 0.5rem; }
.drawer .drawer-meta { display: flex; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.drawer .drawer-meta span { font-size: 0.9rem; color: rgba(254, 242, 242, 0.6); }
.drawer .drawer-plot { color: rgba(254, 242, 242, 0.8); line-height: 1.8; }

/* 滚动渐显 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* 响应式 */
@media (max-width: 768px) {
  .section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0 2rem; }
  .navbar-brand { font-size: 1.3rem; margin-right: 1rem; }
  .poster-card .info { padding: 0.5rem; }
  .poster-card .title { font-size: 0.85rem; }
  .drawer { padding: 1.5rem; }
}

/* --- 子页面追加 --- */
/* 确保本页所有卡片/面板背景跟随站点深色主题 */
        .feature-panel, .timeline-item, .faq-item, .about-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
        }
.about-card h3, .about-card p, .timeline-item h3, .timeline-item p {
            color: var(--text);
        }
/* 小标题强调色 */
        .section-title i, .about-card i.fa-solid {
            color: var(--accent);
        }
/* 关于我们专属的简单网格 */
        .about-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }
.about-grid .feature-panel {
            padding: 1.5rem;
            transition: transform .2s;
        }
.about-grid .feature-panel:hover {
            transform: translateY(-4px);
        }
/* 高亮导航当前页 */
        .navbar .nav-link.active {
            color: var(--accent);
            font-weight: 600;
        }

/* --- 子页面追加 --- */
/* 确保 Bootstrap 组件不破坏深色风格 (仅本页) */
        .container, .row, .col-*, .section, .faq-item, .feature-panel {
            background: transparent;
        }
.disclaimer-content {
            max-width: 860px;
            margin: 0 auto;
        }
.disclaimer-content h2 {
            color: var(--accent);
            font-weight: 700;
            margin-top: 2.2rem;
            margin-bottom: 1rem;
            font-size: 1.5rem;
            letter-spacing: -0.01em;
        }
.disclaimer-content h3 {
            color: var(--text);
            font-weight: 600;
            margin-top: 1.8rem;
            font-size: 1.2rem;
            opacity: 0.95;
        }
.disclaimer-content p {
            color: var(--text);
            opacity: 0.85;
            line-height: 1.75;
            margin-bottom: 1rem;
        }
.disclaimer-content ul {
            color: var(--text);
            opacity: 0.85;
            padding-left: 1.4rem;
            margin-bottom: 1.5rem;
        }
.disclaimer-content li {
            margin-bottom: 0.5rem;
        }
.disclaimer-content a {
            color: var(--accent);
            text-decoration: underline;
            text-underline-offset: 3px;
        }
.disclaimer-content a:hover {
            color: var(--primary);
        }
.highlight-box {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-left: 4px solid var(--primary);
            padding: 1.2rem 1.5rem;
            border-radius: 0 12px 12px 0;
            margin: 1.8rem 0;
            color: var(--text);
        }
.highlight-box strong {
            color: var(--accent);
        }
/* 导航栏高亮当前页 */
        .navbar .nav-link.active {
            color: var(--accent) !important;
            font-weight: 600;
        }
/* 确保卡片背景统一 (如有用到) */
        .card, .card-body {
            background: var(--card-bg);
            color: var(--text);
            border-color: var(--border);
        }

/* --- 子页面追加 --- */
/* 确保任何潜在bootstrap组件都继承暗色主题 (保险起见) */
    .privacy-content p, .privacy-content li, .privacy-content h2, .privacy-content h3 {
      color: var(--text);
    }
.privacy-content a {
      color: var(--accent);
      text-decoration: underline;
      text-underline-offset: 3px;
    }
.privacy-content a:hover {
      color: var(--primary);
    }
.privacy-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 1.5rem 1.75rem;
      height: 100%;
      transition: border-color .25s ease;
    }
.privacy-card:hover {
      border-color: rgba(251, 146, 60, 0.4);
    }
.privacy-card h3 {
      font-weight: 700;
      font-size: 1.4rem;
      margin-bottom: 0.75rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
.privacy-card h3 i {
      color: var(--primary);
      font-size: 1.2rem;
    }
.privacy-card p, .privacy-card li {
      font-size: 0.95rem;
      line-height: 1.7;
      color: rgba(254, 242, 242, 0.85);
    }
.privacy-card ul {
      padding-left: 1.2rem;
    }
.privacy-card li {
      margin-bottom: 0.4rem;
    }
/* 目录卡片 */
    .toc-card {
      background: rgba(0,0,0,0.2);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 2rem;
      backdrop-filter: blur(4px);
    }
.toc-card ul {
      list-style: none;
      padding-left: 0;
      margin-bottom: 0;
    }
.toc-card li {
      padding: 0.4rem 0;
      border-bottom: 1px dashed rgba(254,242,242,0.1);
    }
.toc-card li:last-child { border-bottom: none; }
.toc-card a {
      color: var(--text);
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s, padding-left 0.2s;
    }
.toc-card a i {
      color: var(--accent);
      margin-right: 10px;
      font-size: 0.9rem;
    }
.toc-card a:hover {
      color: var(--accent);
      padding-left: 5px;
    }
/* 强调列表 */
    .highlight-list i {
      color: var(--primary);
      margin-right: 8px;
    }

/* --- 子页面追加 --- */
/* 确保 Bootstrap 组件配色与站点一致 (虽未用.card等, 但保险起见覆盖) */
    .accordion-item, .accordion-button, .form-control, .modal-content { background: var(--card-bg); color: var(--text); border-color: var(--border); }
.accordion-button:not(.collapsed) { background: rgba(220,38,38,.15); color: var(--text); box-shadow: none; }
.accordion-button::after { filter: invert(1) hue-rotate(180deg); }
.btn-outline-light { border-color: var(--border); color: var(--text); }
.btn-outline-light:hover { background: rgba(220,38,38,.2); color: #fff; border-color: var(--primary); }
.faq-a ul, .faq-a ol { padding-left: 1.25rem; margin-bottom: 0; }
.faq-a li { margin-bottom: .35rem; }
.section-icon { color: var(--accent); margin-right: .5rem; }
.help-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; height: 100%; transition: transform .2s; }
.help-card:hover { transform: translateY(-4px); }
.help-card i { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.help-card h3 { font-size: 1.25rem; font-weight: 600; }
.help-card p { color: rgba(254,242,242,.7); font-size: .95rem; }
.list-group-item { background: transparent; color: var(--text); border-color: var(--border); }
.list-group-item i { color: var(--accent); width: 1.5rem; }