
/* ================ 全局 ================ */
:root {
  --navy: #0D1B3E;
  --navy-mid: #162347;
  --navy-light: #1E2E5C;
  --gold: #D4A842;
  --gold-light: #F0C96E;
  --red: #C0392B;
  --green: #1A8554;
  --text: #E8EAF2;
  --text-muted: #8B93B8;
  --text-dim: #5A6490;
  --border: rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.15);
  --card-bg: rgba(255,255,255,0.04);
  --card-hover: rgba(255,255,255,0.07);
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  /* 背景纹理：赛场感 */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45,65,140,0.6) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.018) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.018) 60px);
}

a { color: inherit; text-decoration: none; }

/* ================ 顶部导航 ================ */
.topbar {
  background: rgba(8,14,32,0.95);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.logo {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo span { color: var(--gold); }

.topbar-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.topbar-nav a {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.18s;
  white-space: nowrap;
}
.topbar-nav a:hover { background: var(--card-bg); color: var(--text); }
.topbar-nav a.active { background: rgba(212,168,66,0.15); color: var(--gold); }

.update-badge {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}
.update-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #27ae60;
  margin-right: 4px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ================ Hero 头部 ================ */
.hero {
  padding: 32px 20px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-inner {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #fff;
}
.hero-title em {
  color: var(--gold);
  font-style: normal;
  display: block;
}

.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.hero-tools {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Noto Sans SC', sans-serif;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
}
.btn-outline:hover {
  background: var(--card-hover);
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
}
.btn-gold {
  background: var(--gold);
  color: #0D1B3E;
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ================ 主容器 ================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ================ 筛选 Tab ================ */
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-tab {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  color: var(--text-muted);
  background: transparent;
  font-family: 'Noto Sans SC', sans-serif;
  transition: all 0.18s;
  white-space: nowrap;
}
.filter-tab:hover {
  color: var(--text);
  background: var(--card-hover);
}
.filter-tab.active {
  background: rgba(212,168,66,0.18);
  border-color: rgba(212,168,66,0.4);
  color: var(--gold);
}

/* ================ 分阶段标签 ================ */
.stage-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.stage-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.stage-label .stage-tag {
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  font-size: 11px;
  color: var(--text-dim);
}

/* ================ 赛程卡片 ================ */
.match-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.18s;
}
.match-card:hover {
  background: var(--card-hover);
  border-color: var(--border-bright);
  transform: translateX(2px);
}

.match-time {
  padding: 16px 14px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.match-time .date {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.match-time .time {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.match-time .tz {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
}

.match-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.teams {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  flex-wrap: wrap;
}
.team { white-space: nowrap; }
.vs {
  font-size: 11px;
  color: var(--text-dim);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
}
.score {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  padding: 2px 10px;
  background: rgba(212,168,66,0.1);
  border-radius: 6px;
  flex-shrink: 0;
}

.match-info {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.match-info .venue::before { content: '📍 '; font-size: 11px; }
.match-info .group {
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 11px;
}

.match-right {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.status-live {
  background: rgba(39,174,96,0.15);
  color: #2ecc71;
  border: 1px solid rgba(39,174,96,0.3);
}
.status-live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #2ecc71;
  display: inline-block;
  animation: pulse 1.5s infinite;
}
.status-upcoming {
  background: rgba(212,168,66,0.12);
  color: var(--gold);
  border: 1px solid rgba(212,168,66,0.25);
}
.status-done {
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn-remind {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif;
  transition: all 0.18s;
}
.btn-remind:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ================ 统计栏 ================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: all 0.18s;
}
.stat-card:hover {
  border-color: rgba(212,168,66,0.3);
  background: var(--card-hover);
}
.stat-card .n {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-card .l {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ================ 积分榜 ================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.panel-header .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.standings-table th {
  padding: 8px 14px;
  color: var(--text-dim);
  font-weight: 400;
  font-size: 11px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.1);
}
.standings-table th:not(:first-child):not(:nth-child(2)) { text-align: center; }
.standings-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.standings-table td:not(:first-child):not(:nth-child(2)) { text-align: center; color: var(--text-muted); }
.standings-table tr:last-child td { border-bottom: none; }
.standings-table tr:hover td { background: rgba(255,255,255,0.03); }
.standings-table td:nth-child(2) { font-weight: 500; }
.rank {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.rank-1 { background: rgba(212,168,66,0.2); color: var(--gold); }
.rank-2 { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.rank-3, .rank-4 { background: transparent; color: var(--text-dim); }
.pts { font-family: 'Oswald', sans-serif; color: #fff !important; font-size: 14px !important; }

/* 淘汰赛 bracket */
.bracket {
  padding: 16px;
}
.bracket-stage {
  margin-bottom: 20px;
}
.bracket-stage-title {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'Oswald', sans-serif;
}
.bracket-match {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bracket-match .bm-teams { color: var(--text-muted); }
.bracket-match .bm-date { color: var(--text-dim); font-size: 11px; }
.bracket-highlight {
  border-color: rgba(212,168,66,0.3);
  background: rgba(212,168,66,0.05);
}
.bracket-highlight .bm-teams { color: var(--text); }

/* ================ 时差说明 ================ */
.tz-bar {
  background: rgba(212,168,66,0.07);
  border: 1px solid rgba(212,168,66,0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tz-icon { font-size: 20px; flex-shrink: 0; }
.tz-text { font-size: 13px; color: var(--text-muted); }
.tz-text strong { color: var(--gold); }
.tz-items {
  margin-left: auto;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.tz-item { text-align: center; }
.tz-item .city { font-size: 11px; color: var(--text-dim); }
.tz-item .diff { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ================ 长尾词内容区 ================ */
.content-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.18s;
}
.content-card:hover {
  background: var(--card-hover);
  border-color: var(--border-bright);
}
.content-card .cc-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 6px;
}
.content-card .cc-desc { font-size: 12px; color: var(--text-dim); }
.section-title-main {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ================ FAQ (SEO用) ================ */
.faq-section { margin-top: 40px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-q {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: '+';
  font-size: 18px;
  color: var(--text-dim);
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); color: var(--gold); }
.faq-a {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.8;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ================ 页脚 ================ */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  max-width: 1100px;
  margin: 0 auto;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--gold); }

/* ================ 响应式 ================ */
@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .hero-tools { margin-left: 0; }
  .match-card { grid-template-columns: 80px 1fr; }
  .match-right { display: none; }
  .tz-items { margin-left: 0; }
  .topbar-nav { display: none; }
  .update-badge { margin-left: auto; }
}

@media (max-width: 480px) {
  .match-time .time { font-size: 16px; }
  .teams { font-size: 14px; }
  .filter-tab { font-size: 12px; padding: 5px 12px; }
}
