/* ============================================
   实时比分数据终端 - 金融终端风格
   设计：彭博终端复刻风
   背景：#0a0e17 深蓝黑
   信号色：#00ff88 涨绿 / #ff3b5c 跌红 / #ffd700 黄
   ============================================ */

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

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2332;
  --bg-card-hover: #1f2b3d;
  --border-color: #2a3a4e;
  --border-glow: #00ff8833;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --green: #00ff88;
  --green-dim: #00cc6a;
  --red: #ff3b5c;
  --red-dim: #cc2f4a;
  --yellow: #ffd700;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 6px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow-green: 0 0 20px rgba(0,255,136,0.15);
  --shadow-glow-red: 0 0 20px rgba(255,59,92,0.15);
  --transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

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

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

a:hover {
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(255,215,0,0.4);
}

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

/* ===== 跑马灯 ===== */
.ticker-bar {
  background: linear-gradient(90deg, #0f1923, #111827, #0f1923);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  animation: ticker 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.ticker-content span {
  margin-right: 40px;
}

.ticker-content .score-up { color: var(--green); }
.ticker-content .score-down { color: var(--red); }
.ticker-content .score-draw { color: var(--yellow); }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== 导航 ===== */
.main-nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--green);
  text-shadow: 0 0 10px rgba(0,255,136,0.3);
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #000;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  background: rgba(0,255,136,0.08);
  text-shadow: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 18px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-download {
  background: linear-gradient(135deg, var(--green), #00cc6a);
  color: #000;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.btn-download:hover {
  transform: scale(0.97);
  box-shadow: var(--shadow-glow-green);
  color: #000;
  text-shadow: none;
}

#darkModeToggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

#darkModeToggle:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

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

.breadcrumb span {
  margin: 0 8px;
  color: var(--border-color);
}

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

.section {
  padding: 48px 0;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--green);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0,255,136,0.4);
}

/* ===== 英雄区 ===== */
.hero {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10,14,23,0.7) 0%, rgba(10,14,23,0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
}

.hero-stat .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 数据卡片网格 ===== */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.data-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.data-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--green);
  box-shadow: var(--shadow-glow-green);
}

.data-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.data-card-league {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.data-card-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.status-live {
  background: rgba(255,59,92,0.15);
  color: var(--red);
  animation: pulse-red 2s infinite;
}

.status-upcoming {
  background: rgba(255,215,0,0.12);
  color: var(--yellow);
}

.status-finished {
  background: rgba(100,116,139,0.15);
  color: var(--text-muted);
}

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

.data-card-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.team-name {
  font-size: 14px;
  font-weight: 500;
  max-width: 100px;
  text-align: center;
}

.score-display {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 10px rgba(0,255,136,0.3);
}

.data-card-odds {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.odd-item {
  text-align: center;
}

.odd-label {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.odd-value {
  color: var(--yellow);
  font-weight: 500;
}

.odd-value.up { color: var(--green); }
.odd-value.down { color: var(--red); }

/* ===== 表格 ===== */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin: 16px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: var(--font-mono);
  min-width: 600px;
}

.data-table thead {
  background: var(--bg-secondary);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(42,58,78,0.5);
  color: var(--text-primary);
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.data-table .positive { color: var(--green); }
.data-table .negative { color: var(--red); }
.data-table .neutral { color: var(--yellow); }

/* ===== 图表区 ===== */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  padding: 20px 0;
}

.bar {
  flex: 1;
  background: linear-gradient(180deg, var(--green), rgba(0,255,136,0.3));
  border-radius: 3px 3px 0 0;
  min-width: 20px;
  position: relative;
  transition: var(--transition);
  animation: bar-grow 1s ease-out forwards;
  transform-origin: bottom;
}

.bar:hover {
  background: linear-gradient(180deg, var(--yellow), rgba(255,215,0,0.3));
  box-shadow: 0 0 10px rgba(255,215,0,0.3);
}

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.bar-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ===== 文章内容 ===== */
.article-content {
  max-width: 900px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--green);
}

.article-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.article-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 15px;
}

.article-content ul, .article-content ol {
  color: var(--text-secondary);
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ===== 专家卡片 ===== */
.expert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

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

.expert-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

.expert-info {
  flex: 1;
}

.expert-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.expert-stats {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.expert-rate {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
}

/* ===== 下载页 ===== */
.download-hero {
  text-align: center;
  padding: 60px 20px;
}

.download-hero h1 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 16px;
}

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

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.download-btn.ios {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: var(--text-primary);
}

.download-btn.android {
  background: linear-gradient(135deg, var(--green), #00cc6a);
  color: #000;
}

.download-btn:hover {
  transform: scale(0.97);
  box-shadow: var(--shadow-glow-green);
}

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

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

.app-feature-card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.app-feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.app-feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 20px 24px;
  margin-top: 64px;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.footer-col a {
  color: var(--text-muted);
  font-size: 13px;
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,59,92,0.1);
  border: 1px solid rgba(255,59,92,0.3);
  padding: 4px 10px;
  border-radius: var(--radius);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.footer-partners {
  display: flex;
  gap: 16px;
  align-items: center;
}

.partner-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 3px;
}

/* ===== 安全提示 ===== */
.safety-notice {
  background: rgba(255,215,0,0.05);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

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

.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--green);
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

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

/* ===== 教程步骤 ===== */
.tutorial-step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: #000;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 页面头图 ===== */
.page-hero {
  position: relative;
  height: 240px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10,14,23,0.5) 0%, rgba(10,14,23,0.9) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero h1 {
  font-size: 28px;
  font-weight: 900;
}

.page-hero p {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 14px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 16px;
    z-index: 100;
  }

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

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: relative;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-stats {
    gap: 20px;
  }

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

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

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

  .section-title {
    font-size: 18px;
  }

  .tutorial-step {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-hero {
    height: 180px;
  }

  .page-hero h1 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 20px;
  }

  .hero-stat .number {
    font-size: 22px;
  }

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

  .container {
    padding: 0 12px;
  }
}

/* ===== 数据动画 ===== */
.data-pulse {
  animation: data-flash 3s infinite;
}

@keyframes data-flash {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0.5; }
}

/* ===== 迷你图 ===== */
.mini-chart {
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  height: 20px;
  vertical-align: middle;
}

.mini-chart .mini-bar {
  width: 3px;
  background: var(--green);
  border-radius: 1px;
  opacity: 0.7;
}

/* ===== 内容图片 ===== */
.content-image {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin: 24px 0;
}
