/* ========================================
   赛事直播与新闻中心 - 主样式表
   配色: 电竞黑 #1A1A1A | 霓虹蓝 #00FFFF | 烈焰红 #FF4500
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* CSS Variables */
:root {
  --color-bg: #1A1A1A;
  --color-bg-secondary: #242424;
  --color-bg-card: #2A2A2A;
  --color-neon-blue: #00FFFF;
  --color-flame-red: #FF4500;
  --color-text: #E0E0E0;
  --color-text-light: #B0B0B0;
  --color-text-white: #FFFFFF;
  --color-border: #333333;
  --color-gradient-start: #00FFFF;
  --color-gradient-end: #0088AA;
  --font-heading: 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', sans-serif;
  --shadow-card: 0 4px 20px rgba(0, 255, 255, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 255, 255, 0.15);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --max-width: 1200px;
}

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

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

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

a {
  color: var(--color-neon-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-flame-red);
}

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

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

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
h5 { font-size: 1.1rem; margin-bottom: 0.4rem; }
h6 { font-size: 1rem; margin-bottom: 0.3rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, #111111 0%, var(--color-bg) 100%);
  border-bottom: 2px solid var(--color-neon-blue);
  padding: 15px 0;
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.site-logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-neon-blue);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  letter-spacing: 2px;
}

.site-logo a {
  color: var(--color-neon-blue);
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-neon-blue);
  background: rgba(0, 255, 255, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-neon-blue);
  color: var(--color-neon-blue);
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 4px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

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

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

.breadcrumb span {
  margin: 0 8px;
}

/* Section Styles */
.section {
  padding: 50px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-neon-blue), var(--color-flame-red));
  margin: 15px auto 0;
}

/* Live Video Player */
.live-player-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border: 2px solid var(--color-neon-blue);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.live-player-wrapper iframe,
.live-player-wrapper .placeholder-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.placeholder-player {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111 0%, #222 100%);
  color: var(--color-neon-blue);
  font-size: 1.5rem;
  font-weight: 700;
}

.live-badge {
  display: inline-block;
  background: var(--color-flame-red);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  animation: pulse-live 1.5s infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Upcoming Events Scroll */
.upcoming-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-neon-blue) var(--color-bg-secondary);
}

.upcoming-card {
  flex: 0 0 280px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px;
  transition: all var(--transition-normal);
}

.upcoming-card:hover {
  border-color: var(--color-neon-blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.countdown {
  color: var(--color-flame-red);
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
}

.news-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-normal);
  animation: slideUp 0.6s ease forwards;
  opacity: 0;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

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

.news-card:hover {
  border-color: var(--color-neon-blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-bg-secondary);
}

.news-card-body {
  padding: 20px;
}

.news-card-meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.news-card-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Player Cards Slider */
.player-slider {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-neon-blue) var(--color-bg-secondary);
}

.player-card {
  flex: 0 0 260px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all var(--transition-normal);
  scroll-snap-align: start;
}

.player-card:hover {
  border-color: var(--color-neon-blue);
  box-shadow: var(--shadow-hover);
  transform: scale(1.03);
}

.player-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--color-neon-blue);
  margin: 0 auto 15px;
  object-fit: cover;
  background: var(--color-bg-secondary);
}

.player-name {
  font-size: 1.2rem;
  color: var(--color-text-white);
  margin-bottom: 5px;
}

.player-achievement {
  font-size: 0.85rem;
  color: var(--color-neon-blue);
}

/* Tabs */
.tabs-container {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.tabs-header {
  display: flex;
  border-bottom: 2px solid var(--color-border);
}

.tab-btn {
  flex: 1;
  padding: 15px 20px;
  background: transparent;
  border: none;
  color: var(--color-text-light);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.tab-btn.active {
  color: var(--color-neon-blue);
  background: rgba(0, 255, 255, 0.05);
  border-bottom: 3px solid var(--color-neon-blue);
}

.tab-btn:hover {
  color: var(--color-neon-blue);
  background: rgba(0, 255, 255, 0.03);
}

.tab-content {
  display: none;
  padding: 25px;
}

.tab-content.active {
  display: block;
}

.schedule-item, .result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-item:last-child, .result-item:last-child {
  border-bottom: none;
}

.match-teams {
  font-weight: 700;
  font-size: 1rem;
}

.match-time {
  color: var(--color-neon-blue);
  font-size: 0.9rem;
}

.match-score {
  color: var(--color-flame-red);
  font-size: 1.3rem;
  font-weight: 900;
  animation: glowScore 2s infinite;
}

@keyframes glowScore {
  0%, 100% { text-shadow: 0 0 5px rgba(255, 69, 0, 0.3); }
  50% { text-shadow: 0 0 15px rgba(255, 69, 0, 0.6); }
}

/* Expert Commentary */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.expert-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 25px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  transition: all var(--transition-normal);
}

.expert-card:hover {
  border-color: var(--color-neon-blue);
  box-shadow: var(--shadow-hover);
}

.expert-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--color-neon-blue);
  flex-shrink: 0;
  object-fit: cover;
  background: var(--color-bg-secondary);
}

.expert-info h4 {
  margin-bottom: 5px;
}

.expert-info .author-name {
  font-size: 0.85rem;
  color: var(--color-neon-blue);
  margin-bottom: 8px;
}

.expert-info p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* History Grid */
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.history-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.history-card:hover {
  border-color: var(--color-neon-blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.history-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-bg-secondary);
}

.history-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.history-card-overlay h4 {
  color: #fff;
  margin-bottom: 3px;
}

.history-card-overlay .year {
  color: var(--color-neon-blue);
  font-size: 0.85rem;
}

/* Article Detail */
.article-header {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 30px;
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 15px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 2;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2, .article-content h3 {
  margin-top: 2rem;
}

/* Scoreboard */
.scoreboard {
  background: var(--color-bg-card);
  border: 2px solid var(--color-neon-blue);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  margin: 20px 0;
}

.scoreboard .teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 15px;
}

.scoreboard .team-name {
  font-size: 1.3rem;
  font-weight: 700;
}

.scoreboard .vs {
  color: var(--color-flame-red);
  font-size: 1.5rem;
  font-weight: 900;
}

.scoreboard .score-display {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-flame-red);
  animation: glowScore 2s infinite;
}

/* Live Commentary */
.live-commentary {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.commentary-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 15px;
}

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

.commentary-time {
  color: var(--color-neon-blue);
  font-weight: 700;
  flex-shrink: 0;
  width: 60px;
}

/* Player Profile */
.profile-header {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 30px 0;
}

.profile-avatar-large {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--color-neon-blue);
  object-fit: cover;
  background: var(--color-bg-secondary);
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
  min-width: 250px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.stat-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.stat-box .stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-neon-blue);
}

.stat-box .stat-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-neon-blue), var(--color-flame-red));
}

.timeline-item {
  position: relative;
  padding: 20px 0;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 25px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-neon-blue);
  border: 2px solid var(--color-bg);
}

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

/* Comments Section */
.comments-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}

.comment-item {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  flex-shrink: 0;
}

.comment-body .comment-author {
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 3px;
}

.comment-body .comment-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: #111111;
  border-top: 2px solid var(--color-neon-blue);
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: var(--color-neon-blue);
  margin-bottom: 15px;
  font-size: 1rem;
}

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

.footer-col ul li {
  margin-bottom: 8px;
}

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

.footer-col ul li a:hover {
  color: var(--color-neon-blue);
}

.footer-col p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-light);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--color-neon-blue);
  color: var(--color-neon-blue);
}

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

.footer-disclaimer {
  background: rgba(255, 69, 0, 0.05);
  border: 1px solid rgba(255, 69, 0, 0.2);
  border-radius: 6px;
  padding: 15px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-neon-blue), var(--color-gradient-end));
  color: #000;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  color: #000;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-neon-blue);
  color: var(--color-neon-blue);
}

.btn-outline:hover {
  background: rgba(0, 255, 255, 0.1);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--color-neon-blue);
  margin-right: 5px;
  margin-bottom: 5px;
}

/* APP Download Page */
.app-hero {
  text-align: center;
  padding: 60px 0;
}

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

.app-feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all var(--transition-normal);
}

.app-feature-card:hover {
  border-color: var(--color-neon-blue);
  box-shadow: var(--shadow-hover);
}

.app-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

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

/* Responsive */
@media (max-width: 768px) {
  html { font-size: 14px; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 15px;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    padding: 12px 16px;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }

  .section { padding: 30px 0; }

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

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .scoreboard .teams {
    flex-direction: column;
    gap: 10px;
  }

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

@media (max-width: 480px) {
  .container { padding: 0 15px; }
  .upcoming-card { flex: 0 0 240px; }
  .player-card { flex: 0 0 220px; }
}

/* Utility */
.text-center { text-align: center; }
.text-neon { color: var(--color-neon-blue); }
.text-red { color: var(--color-flame-red); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* Smooth transitions for page elements */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

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