:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --surface-2: #232d3a;
  --border: #2e3a48;
  --text: #e8eef4;
  --muted: #8b9aab;
  --accent: #00a651;
  --accent-dim: #008f45;
  --gold: #c9a227;
  --danger: #e85d4c;
  --radius: 10px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #0a3d2c 0%, #062a1f 100%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #c8f5dc 40%, var(--accent) 100%);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.nav-desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
}

.nav-desktop a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.35rem 0;
}

.nav-desktop a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 1.25rem 1rem;
  background: #062a1f;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a {
  color: #fff;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mobile.open {
  display: flex;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.hero {
  text-align: center;
  padding: 2rem 1rem 2.25rem;
  background: linear-gradient(135deg, var(--surface) 0%, #152028 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.hero .sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.hero .dates {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--surface-2);
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--gold);
}

section {
  margin-bottom: 2.5rem;
}

section > h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.match-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.match-card:hover {
  border-color: var(--accent-dim);
}

.match-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.match-teams {
  font-weight: 600;
  font-size: 0.98rem;
}

.match-venue {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.match-side {
  text-align: right;
  font-size: 0.85rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-upcoming {
  background: rgba(0, 166, 81, 0.2);
  color: #7dffc0;
}

.badge-score {
  background: var(--surface-2);
  color: var(--muted);
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.group-card h3 {
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: var(--surface-2);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.group-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.group-card th,
.group-card td {
  padding: 0.35rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.group-card th:first-child,
.group-card td:first-child {
  text-align: left;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.prose ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.prose h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.prose h3:first-child {
  margin-top: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
  background: var(--surface);
}

.faq-item summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 520px;
}

.data-table th,
.data-table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.back-top {
  display: inline-block;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .match-card {
    grid-template-columns: 1fr;
  }

  .match-side {
    text-align: left;
  }
}
