/* ============================
   体育直播网站 - 全新设计风格
   配色：深蓝 #0a1628 + 金色 #f0c040 + 亮蓝 #0f52ba
   字体：系统字体栈
   ============================ */

:root {
  --primary: #0f52ba;
  --primary-dark: #0a1628;
  --accent: #f0c040;
  --accent-hover: #ffd700;
  --text-light: #e8eaf0;
  --text-muted: #9aa0b0;
  --bg-card: #121d33;
  --bg-section: #0d1a2e;
  --bg-body: #080e1c;
  --border-color: #1e2d4a;
  --success: #00c853;
  --danger: #ff3d00;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: all 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-body);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

/* ===== HEADER / NAV ===== */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark), #0d1f3c);
  border-bottom: 2px solid var(--accent);
  padding: 0;
  position: relative;
  z-index: 100;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link img {
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.5rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  color: var(--text-light);
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: var(--accent);
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #e6a800);
  color: #000 !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(240, 192, 64, 0.3);
  transition: var(--transition);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(240, 192, 64, 0.5);
  color: #000 !important;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,14,28,0.4) 0%, rgba(8,14,28,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--accent), #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

.breadcrumb span {
  margin: 0 6px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 60px 20px;
}

.section-alt {
  background: var(--bg-section);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title.center {
  text-align: center;
}

.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1rem;
  line-height: 1.8;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

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

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-light);
}

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

/* ===== PLAYER CARDS ===== */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.player-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  padding-bottom: 16px;
}

.player-card:hover {
  border-color: var(--accent);
  transform: scale(1.03);
}

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

.player-card h4 {
  margin: 10px 0 4px;
  font-size: 1rem;
  color: var(--text-light);
}

.player-card .team {
  font-size: 0.85rem;
  color: var(--accent);
}

.player-card .stats {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== LIVE SECTION ===== */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.live-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.live-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.live-item:hover img {
  transform: scale(1.05);
}

.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

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

.live-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.live-info h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.live-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== VIDEO SECTION ===== */
.video-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-color);
  background: #000;
}

.video-wrapper video {
  width: 100%;
  display: block;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-light);
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(15, 82, 186, 0.15);
}

.faq-question .icon {
  font-size: 1.3rem;
  color: var(--accent);
  transition: var(--transition);
}

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

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

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

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

/* ===== REVIEWS ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.review-name {
  font-weight: 600;
  color: var(--text-light);
}

.review-city {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 10px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
  opacity: 0.7;
}

/* ===== PAYMENT ===== */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.payment-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}

.payment-item:hover {
  border-color: var(--accent);
}

.payment-item img {
  margin: 0 auto 8px;
  height: 60px;
}

.payment-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== LICENSE ===== */
.license-section {
  text-align: center;
}

.license-badge {
  max-width: 200px;
  margin: 0 auto 20px;
}

/* ===== ABOUT ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text {
  line-height: 1.9;
  color: var(--text-muted);
}

.about-text h3 {
  color: var(--accent);
  margin: 20px 0 10px;
  font-size: 1.2rem;
}

.about-img {
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
}

/* ===== SUPPORT ===== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.support-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.support-card img {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
}

.support-card h4 {
  color: var(--text-light);
  margin-bottom: 8px;
}

.support-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(180deg, var(--bg-section), var(--primary-dark));
  border-top: 2px solid var(--border-color);
  padding: 50px 20px 20px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

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

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

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

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

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

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

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

.footer-social img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social img:hover {
  transform: scale(1.15);
}

.footer-payment {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.footer-payment img {
  height: 35px;
  border-radius: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-age {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-age img {
  width: 40px;
  height: 40px;
}

.footer-disclaimer {
  max-width: 1280px;
  margin: 20px auto 0;
  padding: 16px;
  background: rgba(255, 0, 0, 0.05);
  border: 1px solid rgba(255, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== APP DOWNLOAD PAGE ===== */
.app-hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a0533, #2d1b69);
}

.app-hero h1 {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.app-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
}

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

.app-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.app-feature-card h4 {
  color: var(--accent);
  margin-bottom: 8px;
}

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

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid #444;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.download-btn:hover {
  background: #222;
  border-color: var(--accent);
}

.qr-section {
  text-align: center;
  padding: 40px 20px;
}

.qr-section img {
  max-width: 200px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

/* ===== CATEGORY PAGE ===== */
.category-hero {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

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

.category-hero-content h1 {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.category-hero-content p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.content-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.content-block h2 {
  color: var(--accent);
  font-size: 1.5rem;
  margin: 30px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.content-block h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin: 20px 0 10px;
}

.content-block p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}

.content-block ul, .content-block ol {
  margin: 12px 0 20px 24px;
  color: var(--text-muted);
}

.content-block li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.content-img {
  border-radius: var(--radius-md);
  margin: 20px 0;
  border: 1px solid var(--border-color);
}

.img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.img-row img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

/* ===== TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.data-table th {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.data-table tr:hover td {
  background: rgba(15, 82, 186, 0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--primary-dark);
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
  }

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

  .main-nav a {
    padding: 12px 20px;
    border-radius: 0;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-section {
    min-height: 360px;
  }

  .section {
    padding: 40px 16px;
  }

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

  .about-content {
    grid-template-columns: 1fr;
  }

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

  .player-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .img-row {
    grid-template-columns: 1fr;
  }

  .category-hero {
    min-height: 250px;
  }

  .category-hero-content h1 {
    font-size: 1.6rem;
  }

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

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

  .payment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .header-inner {
    padding: 10px 14px;
  }

  .logo-link img {
    height: 36px;
  }

  .hero-content h1 {
    font-size: 1.3rem;
  }

  .player-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

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

  .payment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
