/* ========================================
   暗网吃瓜 - 复古影院风+暗夜金 主题样式
   ======================================== */

/* CSS变量定义 */
:root {
  --gold: #E5B560;
  --gold-light: #F5D78E;
  --gold-dark: #B8912E;
  --red: #E50914;
  --red-dark: #A30610;
  --bg-dark: #0B0B0B;
  --card-dark: #141414;
  --card-hover: #1A1A1A;
  --text-main: #CCCCCC;
  --text-light: #999999;
  --text-white: #FFFFFF;
  --border-color: #2A2A2A;
  --font-heading: 'Noto Serif SC', serif;
  --font-body: 'Noto Sans SC', sans-serif;
  --max-width: 1400px;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --transition: all 0.3s ease;
}

/* 全局重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.4;
}

/* 容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 顶部导航 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 11, 11, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
}

.site-logo span {
  color: var(--red);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-menu a {
  color: var(--text-main);
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--gold);
  text-decoration: none;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

/* ========== 首屏轮播 ========== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
  margin-top: 60px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 40px 60px;
  background: linear-gradient(transparent, rgba(11,11,11,0.9) 70%);
}

.hero-overlay h1 {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 12px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-overlay p {
  font-size: 1.1rem;
  color: var(--text-main);
  max-width: 700px;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dots span.active {
  background: var(--gold);
}

/* ========== 胶片转场装饰 ========== */
.film-strip-divider {
  width: 100%;
  height: 40px;
  background: repeating-linear-gradient(
    90deg,
    var(--card-dark) 0px,
    var(--card-dark) 20px,
    transparent 20px,
    transparent 24px
  );
  border-top: 3px solid var(--border-color);
  border-bottom: 3px solid var(--border-color);
  margin: 40px 0;
  position: relative;
}

.film-strip-divider::before,
.film-strip-divider::after {
  content: '';
  position: absolute;
  top: 8px;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--border-color) 0px,
    var(--border-color) 12px,
    transparent 12px,
    transparent 20px
  );
}

.film-strip-divider::after {
  top: auto;
  bottom: 8px;
}

/* ========== 内容区块 ========== */
.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.section-title {
  font-size: 1.8rem;
  color: var(--gold);
  position: relative;
  padding-left: 20px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--red);
  border-radius: 2px;
}

.section-more {
  color: var(--text-light);
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 20px;
  transition: var(--transition);
}

.section-more:hover {
  border-color: var(--gold);
  color: var(--gold);
  text-decoration: none;
}

/* ========== 卡片网格 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold-dark);
}

.card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: white;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 600;
}

.card-score {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(229,181,96,0.9);
  color: var(--bg-dark);
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
}

.card-body {
  padding: 18px;
}

.card-title {
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========== 防剧透折叠面板 ========== */
.spoiler-panel {
  background: var(--card-dark);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  margin: 20px 0;
  overflow: hidden;
}

.spoiler-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  cursor: pointer;
  background: rgba(229, 9, 20, 0.1);
  transition: var(--transition);
}

.spoiler-header:hover {
  background: rgba(229, 9, 20, 0.2);
}

.spoiler-header::before {
  content: '⚠️';
  font-size: 1.2rem;
}

.spoiler-header h4 {
  color: var(--red);
  font-size: 1rem;
}

.spoiler-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 20px;
}

.spoiler-content.revealed {
  max-height: 2000px;
  padding: 20px;
}

/* ========== 雷达图评分 ========== */
.radar-chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: var(--card-dark);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.radar-chart {
  width: 300px;
  height: 300px;
}

/* ========== 时间线 ========== */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
}

.timeline-item:nth-child(odd)::before {
  right: -8px;
}

.timeline-item:nth-child(even)::before {
  left: -8px;
}

.timeline-content {
  background: var(--card-dark);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.timeline-year {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ========== 页面Banner ========== */
.page-banner {
  position: relative;
  height: 350px;
  margin-top: 60px;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(11,11,11,0.4), rgba(11,11,11,0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.page-banner-overlay h1 {
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.page-banner-overlay p {
  font-size: 1.1rem;
  color: var(--text-main);
  max-width: 600px;
}

/* ========== 面包屑 ========== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  margin: 0 8px;
}

/* ========== 文章详情 ========== */
.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.article-content h1 {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.article-content p {
  margin-bottom: 18px;
  text-indent: 2em;
}

.article-content h2 {
  font-size: 1.5rem;
  color: var(--gold-light);
  margin: 36px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--red);
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
}

.article-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  margin: 24px 0;
  background: rgba(229,181,96,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

/* ========== FAQ ========== */
.faq-section {
  margin: 40px 0;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-dark);
  font-weight: 600;
  color: var(--text-white);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--card-hover);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 16px 20px;
}

/* ========== 搜索页 ========== */
.search-container {
  max-width: 800px;
  margin: 120px auto 60px;
  padding: 0 20px;
}

.search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.search-box input {
  flex: 1;
  padding: 14px 20px;
  background: var(--card-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-white);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--gold);
}

.search-box button {
  padding: 14px 28px;
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-box button:hover {
  background: var(--gold-light);
}

.search-results {
  list-style: none;
}

.search-result-item {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.search-result-item:hover {
  background: var(--card-dark);
}

.search-result-item h3 {
  color: var(--gold);
  margin-bottom: 6px;
}

.search-result-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--card-dark);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links h4 {
  color: var(--text-white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ========== 404页面 ========== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
}

.error-page h1 {
  font-size: 8rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.error-page p {
  color: var(--text-light);
  margin-bottom: 30px;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-dark);
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--bg-dark);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--bg-dark);
  text-decoration: none;
}

.btn-red {
  background: var(--red);
  color: white;
}

.btn-red:hover {
  background: var(--red-dark);
  text-decoration: none;
}

/* ========== APP下载页 ========== */
.app-download-section {
  text-align: center;
  padding: 80px 20px;
  margin-top: 60px;
}

.app-download-section h1 {
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.app-feature-item {
  background: var(--card-dark);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.app-feature-item h3 {
  color: var(--gold);
  margin: 16px 0 8px;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ========== 排行榜/评分 ========== */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.ranking-table th {
  background: var(--card-dark);
  color: var(--gold);
  font-weight: 600;
}

.ranking-table tr:hover td {
  background: rgba(229,181,96,0.05);
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--bg-dark);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}

.ranking-number.top3 {
  background: var(--red);
  color: white;
}

/* ========== 标签 ========== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(229,181,96,0.1);
  color: var(--gold);
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 3px;
  border: 1px solid rgba(229,181,96,0.3);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 60px;
    text-align: left !important;
  }
  
  .timeline-item::before {
    left: 12px !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-carousel {
    height: 60vh;
  }
  
  .hero-overlay h1 {
    font-size: 1.8rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .page-banner {
    height: 250px;
  }
  
  .page-banner-overlay h1 {
    font-size: 1.6rem;
  }
  
  .article-content h1 {
    font-size: 1.6rem;
  }
  
  .error-page h1 {
    font-size: 5rem;
  }
}

@media (max-width: 480px) {
  .hero-carousel {
    height: 50vh;
  }
  
  .hero-overlay {
    padding: 40px 20px 30px;
  }
  
  .hero-overlay h1 {
    font-size: 1.4rem;
  }
  
  .section {
    padding: 40px 0;
  }
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* 胶片划痕效果 */
@keyframes filmScratch {
  0% { opacity: 0; }
  5% { opacity: 0.1; }
  10% { opacity: 0; }
  50% { opacity: 0; }
  55% { opacity: 0.05; }
  60% { opacity: 0; }
}

.film-scratch-overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.01) 3px,
    rgba(255,255,255,0.01) 4px
  );
  animation: filmScratch 4s infinite;
  z-index: 9999;
}
