:root {
  --primary: #2563eb;
  --accent: #06b6d4;
  --bg: #f4f8ff;
  --text: #0f1e3d;
  --card-bg: #ffffff;
  --shadow-lg: 0 20px 40px rgba(37, 99, 235, 0.15);
  --shadow-md: 0 8px 20px rgba(6, 182, 212, 0.1);
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* 导航栏 */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(37, 99, 235, 0.08);
  padding: 12px 0;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary) !important;
  letter-spacing: 1px;
  position: relative;
  text-shadow: 2px 2px 4px rgba(37, 99, 235, 0.2);
}

.navbar-brand i {
  color: var(--accent);
  margin-right: 8px;
  animation: float 3s ease-in-out infinite;
}

.nav-link {
  font-weight: 600;
  color: var(--text) !important;
  margin: 0 8px;
  position: relative;
  transition: all 0.3s;
}

.nav-link:hover {
  color: var(--primary) !important;
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 80%;
}

/* Hero 区域 */
.hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease infinite;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(15, 30, 61, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.hero-float {
  position: absolute;
  font-size: 3rem;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

/* 区块通用 */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

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

/* 榜单 */
.rank-list {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}

.rank-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eef2f7;
  transition: all 0.3s;
  cursor: pointer;
}

.rank-item:hover {
  background: #f8fbff;
  transform: translateX(5px);
}

.rank-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-right: 15px;
  min-width: 40px;
  text-align: center;
}

.rank-num.top {
  color: #f59e0b;
}

.rank-title {
  font-weight: 600;
  flex: 1;
}

.rank-rating {
  color: #f59e0b;
  font-weight: 700;
  margin-left: auto;
  font-family: 'Courier New', monospace;
}

/* 海报墙 */
.movie-section {
  padding: 50px 0;
}

.movie-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-behavior: smooth;
}

.movie-card {
  min-width: 180px;
  max-width: 180px;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.movie-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.movie-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.movie-info {
  padding: 12px;
}

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

.movie-meta {
  font-size: 0.8rem;
  color: #6b7280;
  font-family: 'Courier New', monospace;
}

.quality-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* 分类筛选区 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.category-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.category-card span {
  font-weight: 600;
  display: block;
}

.category-card .count {
  font-size: 0.8rem;
  color: #6b7280;
  font-family: 'Courier New', monospace;
}

/* 手风琴 */
.accordion-item {
  background: var(--card-bg);
  border: none;
  border-radius: 10px !important;
  margin-bottom: 15px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.accordion-button {
  font-weight: 700;
  color: var(--text);
  background: var(--card-bg);
  padding: 20px;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
  color: var(--primary);
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  padding: 20px;
  color: #4a5568;
}

/* 经典专区 */
.classic-section {
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f8ff 100%);
  padding: 60px 0;
}

/* 预告专区 */
.trailer-section {
  background: #0f1e3d;
  color: white;
  padding: 60px 0;
}

.trailer-section .section-title {
  color: white;
}

.trailer-section .section-title::after {
  background: linear-gradient(90deg, var(--accent), white);
}

/* 友链 */
.friend-links {
  background: var(--card-bg);
  padding: 40px 0;
  margin-top: 40px;
}

/* 页脚 */
.footer {
  background: #0f1e3d;
  color: white;
  padding: 40px 0 20px;
}

.footer a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s;
}

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

/* 弹窗 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 30, 61, 0.8);
  backdrop-filter: blur(20px);
  z-index: 2000;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  padding: 30px;
  position: relative;
  animation: slideUp 0.4s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
}

.modal-poster {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.modal-rating {
  font-size: 1.5rem;
  color: #f59e0b;
  font-weight: 900;
  margin-bottom: 15px;
  font-family: 'Courier New', monospace;
}

.modal-info {
  background: #f8fbff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.modal-plot {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.7;
}

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

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

/* 延迟工具类 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* 按钮光泽效果 */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  transform: rotate(45deg);
  animation: shine 3s ease-in-out infinite;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #eef2f7;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}

/* 动画 */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}

@keyframes shine {
  0% { transform: translateX(-50%) rotate(45deg); }
  100% { transform: translateX(200%) rotate(45deg); }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .movie-card {
    min-width: 150px;
    max-width: 150px;
  }
  
  .movie-card img {
    height: 200px;
  }
  
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- 子页面追加 --- */
.about-hero { padding: 100px 0 60px; position: relative; }
.about-hero .container { position: relative; z-index: 2; }
.about-section { padding: 60px 0; }
.about-section-alt { background: rgba(6, 182, 212, 0.05); }
.about-card { background: var(--card-bg); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-md); height: 100%; border: 1px solid rgba(37, 99, 235, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.about-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.about-card .icon-wrap { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.about-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.about-card p { color: #4a5a7a; font-size: 0.95rem; line-height: 1.7; }
.stat-item { text-align: center; padding: 30px 20px; }
.stat-item .stat-num { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-item .stat-label { font-size: 0.9rem; color: #4a5a7a; margin-top: 8px; }
.timeline-item { position: relative; padding-left: 30px; margin-bottom: 30px; }
.timeline-item::before { content: ''; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.timeline-item::after { content: ''; position: absolute; left: 6px; top: 28px; width: 2px; height: calc(100% - 20px); background: linear-gradient(to bottom, var(--primary), var(--accent)); opacity: 0.3; }
.timeline-item:last-child::after { display: none; }
.timeline-item h4 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.timeline-item p { color: #4a5a7a; font-size: 0.95rem; line-height: 1.6; margin: 0; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 12px 0; border-bottom: 1px solid rgba(37, 99, 235, 0.1); display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--text); }
.feature-list li:last-child { border-bottom: none; }
.feature-list li i { color: var(--primary); width: 24px; text-align: center; font-size: 1rem; }
.about-quote { background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: var(--radius); padding: 50px; color: #fff; text-align: center; margin: 60px 0; box-shadow: var(--shadow-lg); }
.about-quote h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 15px; }
.about-quote p { font-size: 1.1rem; opacity: 0.95; max-width: 700px; margin: 0 auto; line-height: 1.8; }
.about-hero { padding: 60px 0 40px; }
.about-section { padding: 40px 0; }
.about-card { padding: 25px; }
.about-quote { padding: 30px 20px; }
.about-quote h2 { font-size: 1.4rem; }

/* --- 子页面追加 --- */
/* 本页专属样式 */
        .disclaimer-hero {
            padding: 60px 0 30px;
            background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(6,182,212,0.05) 100%);
        }
.disclaimer-hero .hero-float {
            display: inline-block;
            background: var(--card-bg);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            padding: 14px 24px;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 20px;
        }
.disclaimer-section {
            padding: 50px 0;
        }
.disclaimer-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            box-shadow: var(--shadow-md);
            padding: 32px;
            margin-bottom: 28px;
            border-left: 4px solid var(--primary);
            transition: box-shadow 0.3s ease;
        }
.disclaimer-card:hover {
            box-shadow: var(--shadow-lg);
        }
.disclaimer-card h2 {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
.disclaimer-card h2 i {
            color: var(--accent);
        }
.disclaimer-card p {
            color: var(--text);
            line-height: 1.8;
            margin-bottom: 14px;
            font-size: 0.95rem;
        }
.disclaimer-card ul {
            padding-left: 20px;
            margin-bottom: 14px;
        }
.disclaimer-card ul li {
            color: var(--text);
            line-height: 1.8;
            font-size: 0.95rem;
            margin-bottom: 6px;
        }
.disclaimer-card ul li::marker {
            color: var(--accent);
        }
.highlight-text {
            background: rgba(37, 99, 235, 0.08);
            padding: 3px 8px;
            border-radius: 6px;
            font-weight: 600;
            color: var(--primary);
        }
.last-updated {
            display: inline-block;
            background: var(--accent);
            color: #fff;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-bottom: 20px;
        }
.disclaimer-card {
                padding: 24px 20px;
            }
.disclaimer-hero {
                padding: 40px 0 20px;
            }

/* --- 子页面追加 --- */
/* 仅覆盖 Bootstrap 默认白底黑字，确保与站点配色融合 */
    .privacy-card, .privacy-accordion .accordion-item,
    .privacy-accordion .accordion-button {
      background: var(--card-bg);
      color: var(--text);
      border-color: rgba(37, 99, 235, 0.15);
    }
.privacy-accordion .accordion-button:not(.collapsed) {
      background: rgba(37, 99, 235, 0.08);
      color: var(--primary);
      box-shadow: none;
    }
.privacy-accordion .accordion-body {
      background: var(--card-bg);
      color: var(--text);
    }
.privacy-list-group .list-group-item {
      background: var(--card-bg);
      color: var(--text);
      border-color: rgba(37, 99, 235, 0.15);
    }
/* 小标题强调 */
    .privacy-highlight {
      color: var(--primary);
      border-left: 4px solid var(--accent);
      padding-left: 1rem;
    }

/* --- 子页面追加 --- */
/* 本页专属样式 */
        .sitemap-page { padding: 60px 0; }
.sitemap-hero { background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(6,182,212,.08)); border-radius: var(--radius); padding: 50px 40px; margin-bottom: 50px; }
.sitemap-hero h1 { font-size: 2.5rem; font-weight: 800; color: var(--text); margin-bottom: 15px; }
.sitemap-hero h1 span { color: var(--primary); }
.sitemap-hero p { color: #475569; font-size: 1.1rem; max-width: 700px; line-height: 1.8; }
.sitemap-section { margin-bottom: 45px; }
.sitemap-section-title { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); display: flex; align-items: center; gap: 10px; }
.sitemap-section-title i { color: var(--primary); }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 15px; }
.sitemap-card { background: var(--card-bg); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-md); transition: transform .3s, box-shadow .3s; border: 1px solid rgba(37,99,235,.08); }
.sitemap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sitemap-card h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.sitemap-card h4 a { color: var(--text); text-decoration: none; }
.sitemap-card h4 a:hover { color: var(--primary); }
.sitemap-card ul { list-style: none; padding: 0; margin: 0; }
.sitemap-card ul li { padding: 6px 0; border-bottom: 1px dashed rgba(37,99,235,.1); }
.sitemap-card ul li:last-child { border-bottom: none; }
.sitemap-card ul li a { color: #475569; text-decoration: none; font-size: .92rem; transition: color .3s; }
.sitemap-card ul li a:hover { color: var(--primary); }
.sitemap-card ul li a i { width: 20px; color: var(--accent); margin-right: 5px; font-size: .8rem; }
.sitemap-note { background: rgba(37,99,235,.06); border-radius: 12px; padding: 25px; margin-top: 40px; border-left: 4px solid var(--primary); }
.sitemap-note h5 { font-weight: 600; color: var(--text); margin-bottom: 10px; }
.sitemap-note p { color: #475569; font-size: .95rem; line-height: 1.7; margin-bottom: 0; }
.sitemap-hero { padding: 30px 20px; }
.sitemap-hero h1 { font-size: 1.8rem; }
.sitemap-grid { grid-template-columns: 1fr; }

/* --- Bootstrap 组件配色适配(程序自动补,避免白底黑字) --- */
.card { background:rgba(0,0,0,.03) !important; color:#0f1e3d !important; border-color:rgba(0,0,0,.12) !important; }
.card-body { background:transparent !important; color:#0f1e3d !important; }
.card-title { color:#0f1e3d !important; }
.card-text { color:#0f1e3d !important; }
.accordion-header { background:transparent !important; }
