/* ===== 每日大赛直播观赛大厅 - 全局样式 ===== */
:root {
  --primary: #E11D48;
  --secondary: #0A0A0A;
  --bg: #000000;
  --card: #171717;
  --accent: #FACC15;
  --text: #F5F5F5;
  --text-muted: #A3A3A3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-title: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --transition: all 0.3s ease;
  --max-width: 1400px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

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

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

ul, ol {
  list-style: none;
}

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

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ===== 导航栏 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(225, 29, 72, 0.3);
  padding: 12px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
}

.nav-brand .live-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
}

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ===== 直播舞台Hero ===== */
.hero-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0A0A0A 0%, #1a0a10 50%, #0A0A0A 100%);
  padding-top: 70px;
}

.hero-stage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(225, 29, 72, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
}

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid var(--primary);
  border-radius: 30px;
  padding: 8px 20px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-live-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 0 0 40px rgba(225, 29, 72, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.4);
}

.btn-primary:hover {
  background: #be1b3e;
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(245, 245, 245, 0.3);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: #000;
}

.btn-accent:hover {
  background: #eab308;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ===== 在线观众计数 ===== */
.audience-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 24px;
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.audience-counter .count-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.audience-counter .count-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== 弹幕轨道 ===== */
.danmaku-track {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: rgba(23, 23, 23, 0.5);
  border-radius: var(--radius);
  margin: 20px 0;
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.3);
  animation: danmakuScroll 12s linear infinite;
}

.danmaku-item:nth-child(2) {
  top: 40px;
  animation-delay: -3s;
  animation-duration: 15s;
}

.danmaku-item:nth-child(3) {
  top: 80px;
  animation-delay: -6s;
  animation-duration: 10s;
}

.danmaku-item:nth-child(4) {
  top: 20px;
  animation-delay: -9s;
  animation-duration: 14s;
}

.danmaku-item:nth-child(5) {
  top: 60px;
  animation-delay: -2s;
  animation-duration: 11s;
}

/* ===== 节目单时间轴 ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--card));
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(225, 29, 72, 0.1);
  transition: var(--transition);
}

.timeline-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 24px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg);
}

.timeline-item.active::before {
  box-shadow: 0 0 12px var(--primary);
  animation: livePulse 1.5s infinite;
}

.timeline-time {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== 直播状态灯 ===== */
.status-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.status-light.live {
  background: rgba(225, 29, 72, 0.15);
  color: var(--primary);
}

.status-light.live .dot {
  background: var(--primary);
  animation: livePulse 1.5s infinite;
}

.status-light.upcoming {
  background: rgba(250, 204, 21, 0.15);
  color: var(--accent);
}

.status-light.replay {
  background: rgba(163, 163, 163, 0.15);
  color: var(--text-muted);
}

.status-light .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ===== 卡片 ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(245, 245, 245, 0.05);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(225, 29, 72, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(225, 29, 72, 0.1);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== 网格布局 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== 战报侧栏 ===== */
.bulletin-sidebar {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(225, 29, 72, 0.15);
}

.bulletin-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(245, 245, 245, 0.05);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bulletin-item:last-child {
  border-bottom: none;
}

.bulletin-time {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  min-width: 50px;
}

.bulletin-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

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

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

.breadcrumb .separator {
  color: rgba(245, 245, 245, 0.3);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid rgba(245, 245, 245, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

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

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

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--secondary);
  border-top: 1px solid rgba(225, 29, 72, 0.2);
  padding: 60px 0 30px;
}

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

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

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 4px 0;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 245, 245, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== 页面头部 ===== */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--secondary) 0%, rgba(225, 29, 72, 0.05) 100%);
  border-bottom: 1px solid rgba(225, 29, 72, 0.1);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
}

/* ===== 搜索 ===== */
.search-box {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

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

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

.search-box button {
  padding: 14px 28px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.search-box button:hover {
  background: #be1b3e;
}

/* ===== 动画 ===== */
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes danmakuScroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

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

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

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

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(225, 29, 72, 0.3);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 50px 0;
  }

  .page-header {
    padding: 100px 0 40px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }
.hidden { display: none; }
