:root {
  --primary: #dc2626;
  --accent: #fb923c;
  --bg-dark: #141013;
  --text-light: #fef2f2;
  --card-bg: #1e181c;
  --card-border: #3d2a2e;
  --soft-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --radius-card: 14px;
  --radius-pill: 50px;
}
* { box-sizing: border-box; }
body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, .display-title {
  font-family: 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}
a { text-decoration: none; color: inherit; }
.navbar {
  background: rgba(20, 16, 19, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
  padding: 12px 0;
  transition: all 0.3s ease;
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-light) !important;
  letter-spacing: 1px;
}
.navbar-brand i { color: var(--accent); margin-right: 6px; }
.nav-link {
  color: rgba(254, 242, 242, 0.85) !important;
  font-weight: 500;
  margin: 0 8px;
  border-radius: var(--radius-pill);
  padding: 6px 16px !important;
  transition: all 0.3s;
}
.nav-link:hover { color: var(--accent) !important; background: rgba(251, 146, 60, 0.1); }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

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

/* Hero 打字机 */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.18), transparent 50%), radial-gradient(circle at 80% 80%, rgba(251, 146, 60, 0.12), transparent 40%);
  padding: 40px 20px;
}
.typewriter-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--text-light);
  text-shadow: 0 4px 30px rgba(220, 38, 38, 0.4);
  min-height: 1.2em;
}
.typewriter-caret {
  display: inline-block;
  width: 4px;
  background: var(--accent);
  animation: blink 0.8s infinite;
  border-radius: 2px;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* 区块通用 */
.section-padding { padding: 70px 0; }
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-top: 8px;
}
.section-subtitle { color: rgba(254, 242, 242, 0.6); font-size: 0.95rem; }

/* 胶囊式小标签 */
.pill-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.3s;
  cursor: pointer;
}
.pill-tag:hover, .pill-tag.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* 影片卡片 */
.movie-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.movie-card:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.2);
}
.movie-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: #2a2024;
}
.movie-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(20, 16, 19, 0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.movie-card:hover .movie-card-overlay { opacity: 1; }
.play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
  animation: pulse 2s infinite;
  opacity: 0;
  transition: opacity 0.3s;
}
.movie-card:hover .play-icon { opacity: 1; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
.movie-info { padding: 12px 14px 16px; }
.movie-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movie-meta { font-size: 0.8rem; color: rgba(254, 242, 242, 0.6); display: flex; justify-content: space-between; }
.rating-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

/* 翻转卡片弹窗 */
.flip-container {
  perspective: 1200px;
  width: 100%;
  height: 100%;
  position: relative;
  transition: all 0.5s ease;
}
.movie-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-inner {
  width: 100%; height: 100%;
  transition: transform 0.7s;
  transform-style: preserve-3d;
  position: relative;
}
.flip-front, .flip-back {
  position: absolute;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.flip-back {
  background: linear-gradient(145deg, #241a1f, #1a1216);
  transform: rotateY(180deg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flip-back .detail-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; color: var(--accent); }
.flip-back .detail-meta { font-size: 0.8rem; margin-bottom: 4px; color: rgba(254, 242, 242, 0.7); }
.flip-back .detail-plot { font-size: 0.85rem; margin-top: 10px; color: rgba(254, 242, 242, 0.8); line-height: 1.5; max-height: 100px; overflow-y: auto; }
.flip-back .btn-close {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.15);
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

/* 轮播 */
.carousel-item { height: 60vh; min-height: 350px; border-radius: 0; }
.carousel-item img { object-fit: cover; height: 100%; width: 100%; filter: brightness(0.5) saturate(1.2); }
.carousel-caption {
  text-align: left;
  bottom: 15%;
  left: 10%;
  right: auto;
  max-width: 60%;
}
.carousel-caption h3 { font-size: 2.2rem; font-weight: 900; text-shadow: 2px 2px 10px rgba(0,0,0,0.6); }
.carousel-caption p { font-size: 1rem; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }
.carousel-indicators [data-bs-target] { background-color: var(--accent); width: 35px; border-radius: 10px; }

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}
.timeline-item {
  position: relative;
  margin-bottom: 25px;
  padding: 16px 20px;
  background: rgba(30, 24, 28, 0.8);
  border-radius: 12px;
  border-left: 3px solid var(--primary);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.3);
}
.timeline-item h4 { font-size: 1rem; font-weight: 700; color: var(--accent); }
.timeline-item p { font-size: 0.85rem; margin-bottom: 0; color: rgba(254, 242, 242, 0.7); }

/* 滚动渐显 */
.reveal-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 知识科普卡片 */
.knowledge-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.3s;
}
.knowledge-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.knowledge-card h5 { color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.knowledge-card p { font-size: 0.9rem; color: rgba(254, 242, 242, 0.75); }

/* 互动推荐 */
.recommend-box {
  background: linear-gradient(135deg, rgba(220,38,38,0.12), rgba(251,146,60,0.08));
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--radius-card);
  padding: 35px;
  text-align: center;
}
.recommend-box h4 { font-size: 1.5rem; margin-bottom: 20px; }
#recommend-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(220,38,38,0.3);
}
#recommend-btn:hover { transform: scale(1.05); box-shadow: 0 6px 25px rgba(220,38,38,0.5); }
#recommend-result {
  margin-top: 25px;
  font-size: 1.2rem;
  font-weight: 600;
  min-height: 60px;
  padding: 15px;
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
}

/* 友链 */
.friend-links {
  background: rgba(20, 16, 19, 0.5);
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  padding: 40px 0;
  text-align: center;
}
.friend-links h5 { font-size: 1.2rem; margin-bottom: 15px; color: var(--accent); }
.friend-links a {
  display: inline-block;
  margin: 5px 12px;
  color: rgba(254,242,242,0.7);
  font-size: 0.9rem;
  transition: all 0.3s;
}
.friend-links a:hover { color: var(--accent); }

/* 页脚 */
footer {
  background: #0f0c0e;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(220,38,38,0.15);
}
footer p { margin-bottom: 5px; font-size: 0.9rem; color: rgba(254,242,242,0.5); }
footer .brand-footer {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* 顶部榜单样式 */
.top-list-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 10px;
  border-left: 3px solid transparent;
  transition: all 0.3s;
}
.top-list-item:hover {
  border-left-color: var(--primary);
  background: rgba(30, 24, 28, 0.9);
}
.top-rank {
  font-size: 1.2rem;
  font-weight: 900;
  width: 35px;
  text-align: center;
  color: var(--accent);
}
.top-info { flex: 1; padding: 0 10px; }
.top-info .name { font-weight: 600; }
.top-info .views { font-size: 0.8rem; color: rgba(254,242,242,0.5); }
.top-score { background: linear-gradient(135deg, var(--primary), var(--accent)); padding: 4px 10px; border-radius: 20px; font-weight: 700; font-size: 0.8rem; }

/* 分类标签区 */
.category-section {
  background: rgba(30, 24, 28, 0.4);
  border-radius: var(--radius-card);
  padding: 25px;
  margin-top: 30px;
}
.category-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; }
.category-title i { color: var(--accent); margin-right: 8px; }

/* 通用卡片删除线样式(备用) */
.no-underline { text-decoration: none; }

/* 响应式 */
@media (max-width: 768px) {
  .carousel-item { height: 45vh; }
  .carousel-caption { max-width: 90%; bottom: 10%; }
  .section-padding { padding: 50px 0; }
  .movie-card { margin-bottom: 20px; }
}

/* --- 子页面追加 --- */
.about-hero {
            background: linear-gradient(135deg, rgba(20,16,19,0.9) 0%, rgba(30,24,28,0.85) 50%, rgba(220,38,38,0.15) 100%);
            padding: 80px 0 60px;
            border-bottom: 1px solid var(--card-border);
        }
.about-content {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: var(--radius-card);
            padding: 40px;
            margin-bottom: 30px;
            box-shadow: var(--soft-shadow);
        }
.about-content h2 {
            color: var(--primary);
            font-weight: 700;
            margin-bottom: 20px;
            padding-left: 16px;
            border-left: 4px solid var(--accent);
            font-size: 1.5rem;
        }
.about-content p {
            color: rgba(254,242,242,0.85);
            line-height: 1.9;
            font-size: 0.95rem;
            margin-bottom: 16px;
        }
.about-content ul {
            padding-left: 20px;
            color: rgba(254,242,242,0.85);
            line-height: 1.8;
            margin-bottom: 20px;
        }
.about-content li {
            margin-bottom: 8px;
            font-size: 0.95rem;
        }
.about-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: rgba(220,38,38,0.15);
            color: var(--accent);
            font-size: 24px;
            margin-bottom: 20px;
        }
.stat-card {
            background: rgba(20,16,19,0.6);
            border: 1px solid var(--card-border);
            border-radius: var(--radius-card);
            padding: 25px 20px;
            text-align: center;
            height: 100%;
            transition: transform 0.3s ease, border-color 0.3s ease;
        }
.stat-card:hover {
            transform: translateY(-5px);
            border-color: var(--primary);
        }
.stat-number {
            color: var(--primary);
            font-size: 2.2rem;
            font-weight: 800;
            margin-bottom: 8px;
            display: block;
        }
.stat-label {
            color: rgba(254,242,242,0.7);
            font-size: 0.9rem;
            font-weight: 500;
        }
.feature-item {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 24px;
        }
.feature-icon {
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: rgba(251,146,60,0.12);
            color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            border: 1px solid rgba(251,146,60,0.25);
        }
.feature-text h4 {
            color: var(--text-light);
            font-size: 1.05rem;
            font-weight: 600;
            margin-bottom: 6px;
        }
.feature-text p {
            font-size: 0.9rem;
            margin-bottom: 0;
            color: rgba(254,242,242,0.7);
        }
.about-quote {
            background: rgba(220,38,38,0.08);
            border-left: 3px solid var(--primary);
            padding: 20px 24px;
            border-radius: 0 var(--radius-card) var(--radius-card) 0;
            margin: 30px 0;
            font-style: italic;
            color: rgba(254,242,242,0.8);
            font-size: 1.05rem;
            line-height: 1.7;
        }
.about-hero {
                padding: 50px 0 30px;
            }
.about-content {
                padding: 25px 20px;
            }

/* --- 子页面追加 --- */
/* 隐私政策页专属样式 */
        .privacy-hero {
            background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(20, 16, 19, 0.8) 100%);
            padding: 80px 0 40px;
            border-bottom: 1px solid var(--card-border);
        }
.privacy-section {
            padding: 40px 0;
            border-bottom: 1px solid rgba(61, 42, 46, 0.5);
        }
.privacy-section:last-child {
            border-bottom: none;
        }
.privacy-section h2 {
            color: var(--accent);
            font-weight: 700;
            font-size: 1.6rem;
            margin-bottom: 20px;
            position: relative;
            padding-left: 18px;
        }
.privacy-section h2::before {
            content: '';
            position: absolute;
            left: 0;
            top: 8px;
            bottom: 8px;
            width: 4px;
            background: var(--primary);
            border-radius: 4px;
        }
.privacy-section h3 {
            color: var(--text-light);
            font-weight: 600;
            font-size: 1.2rem;
            margin-top: 24px;
            margin-bottom: 12px;
        }
.privacy-section p {
            color: rgba(254, 242, 242, 0.85);
            line-height: 1.8;
            margin-bottom: 16px;
            font-size: 0.95rem;
        }
.privacy-section ul {
            padding-left: 20px;
            margin-bottom: 16px;
        }
.privacy-section ul li {
            color: rgba(254, 242, 242, 0.8);
            line-height: 1.8;
            font-size: 0.95rem;
            margin-bottom: 8px;
        }
.privacy-card {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: var(--radius-card);
            padding: 28px;
            margin-bottom: 24px;
            box-shadow: var(--soft-shadow);
        }
.privacy-card .icon-circle {
            width: 48px;
            height: 48px;
            background: rgba(220, 38, 38, 0.15);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            color: var(--primary);
            font-size: 1.2rem;
        }
.privacy-update {
            background: rgba(251, 146, 60, 0.1);
            border-left: 4px solid var(--accent);
            padding: 16px 20px;
            border-radius: 0 10px 10px 0;
            margin: 24px 0;
        }
.privacy-update p {
            margin-bottom: 0;
            color: rgba(254, 242, 242, 0.9);
        }
.contact-list {
            list-style: none;
            padding: 0;
        }
.contact-list li {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
            color: rgba(254, 242, 242, 0.85);
        }
.contact-list li i {
            color: var(--accent);
            width: 20px;
            text-align: center;
        }
.highlight-text {
            color: var(--accent);
            font-weight: 600;
        }
.table-custom {
            width: 100%;
            margin-bottom: 20px;
            border-collapse: separate;
            border-spacing: 0;
            border: 1px solid var(--card-border);
            border-radius: 10px;
            overflow: hidden;
        }
.table-custom th, .table-custom td {
            padding: 14px 16px;
            text-align: left;
            border-bottom: 1px solid var(--card-border);
        }
.table-custom th {
            background: rgba(220, 38, 38, 0.1);
            color: var(--text-light);
            font-weight: 600;
            font-size: 0.95rem;
        }
.table-custom td {
            color: rgba(254, 242, 242, 0.85);
            font-size: 0.9rem;
        }
.table-custom tr:last-child td {
            border-bottom: none;
        }
.table-custom tr:hover td {
            background: rgba(30, 24, 28, 0.6);
        }
.privacy-hero {
                padding: 60px 0 30px;
            }
.privacy-section h2 {
                font-size: 1.3rem;
            }
.privacy-card {
                padding: 20px;
            }
.table-custom {
                display: block;
                overflow-x: auto;
            }

/* --- Bootstrap 组件配色适配(程序自动补,避免白底黑字) --- */
.card { background:rgba(255,255,255,.04) !important; color:#fef2f2 !important; border-color:rgba(255,255,255,.12) !important; }
