:root {
  --primary: #dc2626;
  --accent: #fb923c;
  --bg: #141013;
  --text: #fef2f2;
  --bg-card: #1e1719;
  --border-color: #3a2a2c;
  --radius: 0px;
  --shadow-hard: 6px 6px 0px rgba(220, 38, 38, 0.3);
}

* { box-sizing: border-box; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', '思源黑体', 'Noto Sans SC', sans-serif;
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Han Serif SC', '思源宋体', 'Noto Serif SC', serif;
  font-weight: 700;
}

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

/* 导航 */
.navbar {
  background-color: #1a1416 !important;
  border-bottom: 3px solid var(--primary);
  border-radius: 0 !important;
  padding: 12px 0;
}

.navbar-brand {
  font-family: 'Source Han Serif SC', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text) !important;
  letter-spacing: 2px;
}

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

.navbar .nav-link {
  color: var(--text) !important;
  font-weight: 600;
  margin: 0 8px;
  padding: 6px 12px;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.navbar .nav-link:hover {
  border-color: var(--primary);
  color: var(--accent) !important;
}

.navbar-toggler {
  border-color: var(--primary);
  background-color: var(--bg);
}

/* Hero 打字机 */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a1416 0%, #201a1d 50%, #2a1a1a 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--primary);
  padding: 80px 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text);
  text-shadow: 4px 4px 0 var(--primary);
  border: 4px solid var(--primary);
  padding: 20px 40px;
  background: rgba(20,16,19,0.8);
  min-height: 100px;
  display: inline-block;
}

.hero .typing-cursor {
  color: var(--accent);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* 区块通用 */
.section-title {
  font-size: 2rem;
  font-weight: 900;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--primary);
  display: inline-block;
  letter-spacing: 2px;
}

.section-title i {
  color: var(--accent);
  margin-right: 10px;
}

/* 影片卡片 */
.movie-card {
  background: var(--bg-card);
  border: 3px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hard);
}

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.movie-poster .play-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.movie-card:hover .play-overlay {
  opacity: 1;
}

.play-overlay i {
  font-size: 3.5rem;
  color: var(--accent);
  text-shadow: 2px 2px 0 var(--primary);
}

.movie-info {
  padding: 12px 10px;
}

.movie-info .title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-info .meta {
  font-size: 0.8rem;
  color: #c0a0a0;
  display: flex;
  justify-content: space-between;
}

.rating-badge {
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 2px 8px;
  font-size: 0.75rem;
}

/* 榜单样式 */
.rank-card {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  margin-bottom: 12px;
  padding: 8px 12px;
  transition: all 0.2s;
}

.rank-card:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.rank-number {
  font-size: 1.8rem;
  font-weight: 900;
  min-width: 50px;
  text-align: center;
  font-family: serif;
}

.rank-gold { color: #ffd700; }
.rank-silver { color: #c0c0c0; }
.rank-bronze { color: #cd7f32; }

.rank-info {
  flex: 1;
  padding-left: 12px;
}

.rank-info .rank-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.rank-info .rank-meta {
  font-size: 0.8rem;
  color: #a0a0a0;
}

/* 分类胶囊 */
.category-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  margin: 4px 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  color: var(--text);
}

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

/* 手风琴 */
.accordion-item {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 0 !important;
  margin-bottom: 10px;
}

.accordion-button {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border: none;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background: var(--bg-card) !important;
  color: var(--accent) !important;
}

.accordion-body {
  color: #d0c0c0;
  line-height: 1.8;
}

/* 特色图标列表 */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.feature-item {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.feature-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

/* 滚动渐显动画 */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade.delay-1 { transition-delay: 0.1s; }
.scroll-fade.delay-2 { transition-delay: 0.2s; }
.scroll-fade.delay-3 { transition-delay: 0.3s; }
.scroll-fade.delay-4 { transition-delay: 0.4s; }
.scroll-fade.delay-5 { transition-delay: 0.5s; }

/* 弹窗 */
.modal-custom {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal-custom.active {
  display: flex;
}

.modal-content-custom {
  background: var(--bg-card);
  border: 3px solid var(--primary);
  border-radius: 0;
  max-width: 800px;
  width: 92%;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  box-shadow: 10px 10px 0 rgba(220,38,38,0.3);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  background: none;
  border: none;
  font-weight: 900;
}

.modal-close:hover {
  color: var(--accent);
}

.modal-poster {
  width: 100%;
  max-width: 280px;
  border-right: 3px solid var(--primary);
}

.modal-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-info {
  flex: 1;
  padding: 25px;
  min-width: 280px;
}

.modal-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.modal-info .detail-row {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.modal-info .detail-row strong {
  color: var(--accent);
  margin-right: 8px;
}

/* 页脚 */
footer {
  background: #1a1416;
  border-top: 4px solid var(--primary);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-links a {
  color: #c0a0a0;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.9rem;
}

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

/* 友链 */
.friend-links {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  padding: 20px;
  margin: 30px 0;
}

.friend-links h4 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.friend-links a {
  color: #c0a0a0;
  text-decoration: none;
  margin: 0 8px;
  font-size: 0.85rem;
}

.friend-links a:hover {
  color: var(--text);
}

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
    padding: 15px 25px;
  }
  
  .modal-content-custom {
    flex-direction: column;
  }
  
  .modal-poster {
    max-width: 100%;
    border-right: none;
    border-bottom: 3px solid var(--primary);
  }
}

/* --- 子页面追加 --- */
/* 排行榜页面专属样式 */
        .rank-page-hero {
            padding: 60px 0 30px;
            text-align: center;
            position: relative;
        }
.rank-page-hero h1 {
            font-size: 2.8rem;
            font-weight: 900;
            color: var(--text);
            margin-bottom: 10px;
        }
.rank-page-hero h1 span {
            color: var(--primary);
        }
.rank-page-hero p {
            color: rgba(254, 242, 242, 0.7);
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto 30px;
        }
.rank-tabs {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 40px;
        }
.rank-tab-btn {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text);
            padding: 10px 24px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            letter-spacing: 0.5px;
        }
.rank-tab-btn:hover, .rank-tab-btn.active {
            background: var(--primary);
            border-color: var(--primary);
            box-shadow: var(--shadow-hard);
            transform: translateY(-2px);
        }
.rank-section {
            margin-bottom: 50px;
        }
.rank-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
.rank-item {
            display: flex;
            align-items: center;
            gap: 15px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            padding: 12px 16px;
            transition: all 0.3s ease;
        }
.rank-item:hover {
            transform: translateX(5px);
            box-shadow: var(--shadow-hard);
            border-color: var(--primary);
        }
.rank-item .rank-number {
            font-size: 1.8rem;
            font-weight: 900;
            min-width: 50px;
            text-align: center;
            color: rgba(254, 242, 242, 0.3);
        }
.rank-item:nth-child(1) .rank-number {
            color: #ffd700;
        }
.rank-item:nth-child(2) .rank-number {
            color: #c0c0c0;
        }
.rank-item:nth-child(3) .rank-number {
            color: #cd7f32;
        }
.rank-item .rank-thumb {
            width: 70px;
            height: 95px;
            background: #2a1f22;
            flex-shrink: 0;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
.rank-item .rank-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
.rank-item .rank-info {
            flex: 1;
            min-width: 0;
        }
.rank-item .rank-info h3 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
.rank-item .rank-info p {
            font-size: 0.85rem;
            color: rgba(254, 242, 242, 0.6);
            margin-bottom: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
.rank-item .rank-score {
            font-size: 1.3rem;
            font-weight: 900;
            color: var(--accent);
            min-width: 60px;
            text-align: right;
        }
.rank-item .rank-category {
            font-size: 0.75rem;
            padding: 3px 10px;
            background: rgba(220, 38, 38, 0.15);
            color: var(--primary);
            border: 1px solid rgba(220, 38, 38, 0.3);
            font-weight: 600;
            white-space: nowrap;
        }
.rank-note {
            background: rgba(220, 38, 38, 0.08);
            border: 1px solid rgba(220, 38, 38, 0.2);
            padding: 15px 20px;
            margin-top: 30px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }
.rank-note i {
            color: var(--primary);
            font-size: 1.2rem;
            margin-top: 3px;
        }
.rank-note p {
            color: rgba(254, 242, 242, 0.7);
            font-size: 0.9rem;
            margin: 0;
            line-height: 1.6;
        }
.rank-page-hero h1 {
                font-size: 2rem;
            }
.rank-item .rank-number {
                font-size: 1.4rem;
                min-width: 35px;
            }
.rank-item .rank-thumb {
                width: 55px;
                height: 75px;
            }
.rank-item .rank-info h3 {
                font-size: 0.95rem;
            }
.rank-item .rank-score {
                font-size: 1rem;
                min-width: 45px;
            }
.rank-item .rank-category {
                display: none;
            }

/* --- 子页面追加 --- */
.about-hero {
            padding: 80px 0 40px;
            text-align: center;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 40px;
        }
.about-hero h1 {
            font-size: 2.8rem;
            font-weight: 900;
            color: var(--text);
            margin-bottom: 16px;
        }
.about-hero h1 span {
            color: var(--primary);
        }
.about-hero p {
            color: rgba(254, 242, 242, 0.7);
            font-size: 1.1rem;
            max-width: 720px;
            margin: 0 auto;
        }
.about-section {
            padding: 30px 0;
        }
.about-section h2 {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 20px;
            position: relative;
            padding-left: 18px;
        }
.about-section h2::before {
            content: '';
            position: absolute;
            left: 0;
            top: 6px;
            width: 6px;
            height: 70%;
            background: var(--primary);
        }
.about-section p {
            color: rgba(254, 242, 242, 0.75);
            line-height: 1.8;
            font-size: 1rem;
            margin-bottom: 16px;
        }
.about-section .lead-text {
            font-size: 1.05rem;
            font-weight: 500;
        }
.feature-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            padding: 24px;
            margin-bottom: 20px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
.feature-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hard);
        }
.feature-card .feature-icon {
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 12px;
        }
.feature-card h3 {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 10px;
        }
.feature-card p {
            font-size: 0.95rem;
            color: rgba(254, 242, 242, 0.65);
            line-height: 1.7;
        }
.stats-row {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 40px;
            margin: 50px 0;
            text-align: center;
        }
.stats-item .stat-number {
            font-size: 2.5rem;
            font-weight: 900;
            color: var(--primary);
        }
.stats-item .stat-label {
            font-size: 0.9rem;
            color: rgba(254, 242, 242, 0.6);
            margin-top: 4px;
        }
.content-block {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            padding: 28px;
            margin-bottom: 24px;
        }
.content-block h3 {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 12px;
        }
.content-block ul {
            padding-left: 20px;
            margin-bottom: 0;
        }
.content-block li {
            color: rgba(254, 242, 242, 0.75);
            margin-bottom: 8px;
            line-height: 1.6;
        }
.divider {
            border-top: 1px solid var(--border-color);
            margin: 30px 0;
        }

/* --- 子页面追加 --- */
/* 保证Bootstrap组件不会出现白底黑字破坏深色风格 */
    .card, .card-body, .card-header, .card-footer {
      background: var(--bg-card);
      color: var(--text);
      border-color: var(--border-color);
    }
.form-control, .form-select {
      background: rgba(20, 16, 19, 0.7);
      color: var(--text);
      border: 1px solid var(--border-color);
    }
.form-control::placeholder {
      color: rgba(254, 242, 242, 0.5);
    }
.list-group-item, .accordion-item, .accordion-button, .accordion-body {
      background: var(--bg-card);
      color: var(--text);
      border-color: var(--border-color);
    }
.modal-content, .modal-header, .modal-body {
      background: var(--bg-card);
      color: var(--text);
    }
.dropdown-menu, .dropdown-item {
      background: var(--bg-card);
      color: var(--text);
    }
.nav-link, .navbar, .navbar-brand {
      color: var(--text);
    }
.btn-outline-secondary, .btn-light {
      background: transparent;
      color: var(--text);
      border-color: var(--border-color);
    }
/* 本页特殊微调：让免责声明排版更舒适 */
    .disclaimer-hero {
      padding: 3rem 0 2rem;
      border-bottom: 2px solid var(--border-color);
      margin-bottom: 2.5rem;
    }
.disclaimer-section {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      padding: 2rem 1.8rem;
      margin-bottom: 2rem;
      box-shadow: var(--shadow-hard);
    }
.disclaimer-section h2 {
      font-weight: 700;
      font-size: 1.6rem;
      border-left: 6px solid var(--primary);
      padding-left: 1.2rem;
      margin-bottom: 1.5rem;
      color: var(--text);
      letter-spacing: 0.02em;
    }
.disclaimer-section p, .disclaimer-section li {
      line-height: 1.8;
      color: rgba(254, 242, 242, 0.92);
    }
.disclaimer-section ul {
      padding-left: 1.5rem;
    }
.disclaimer-section li {
      margin-bottom: 0.6rem;
    }
.highlight-text {
      color: var(--accent);
      font-weight: 600;
    }

/* --- 子页面追加 --- */
/* 页面专属小样式，补充站点CSS未覆盖的部分 */
    .privacy-hero {
      background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(251, 146, 60, 0.08) 100%);
      border-bottom: 1px solid var(--border-color);
    }
.privacy-content h2 {
      color: var(--primary);
      font-weight: 700;
      margin-top: 2.5rem;
      margin-bottom: 1rem;
      font-size: 1.5rem;
    }
.privacy-content h3 {
      color: var(--text);
      font-weight: 600;
      margin-top: 1.8rem;
      margin-bottom: 0.8rem;
      font-size: 1.2rem;
    }
.privacy-content p, .privacy-content li {
      color: rgba(254, 242, 242, 0.85);
      line-height: 1.8;
      font-size: 0.95rem;
    }
.privacy-content ul {
      padding-left: 1.2rem;
    }
.privacy-content li {
      margin-bottom: 0.5rem;
    }
.privacy-box {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      padding: 1.5rem;
      margin: 1.5rem 0;
    }
.privacy-box p:last-child {
      margin-bottom: 0;
    }
.update-date {
      color: var(--accent);
      font-weight: 500;
      font-size: 0.9rem;
      margin-bottom: 2rem;
    }
.privacy-nav-active {
      color: var(--primary) !important;
      font-weight: 600;
    }

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