:root {
  --bg: #f3f6f4;
  --bg2: #e8f0eb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #d7e3db;
  --brand: #16a34a;
  --brand-dark: #15803d;
  --brand-soft: #dcfce7;
  --live: #ef4444;
  --upcoming: #0ea5e9;
  --finished: #94a3b8;
  --shadow: none;
  --radius: 8px;
  --wrap: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Oswald", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    linear-gradient(180deg, #eef7f1 0%, var(--bg) 220px, var(--bg) 100%);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(100% - 32px, var(--wrap)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 2px solid var(--brand);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--brand-soft);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.brand-text em {
  font-style: normal;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 500;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  color: var(--muted);
}
.main-nav a:hover,
.main-nav a.on {
  background: var(--brand);
  color: #fff;
}
.nav-toggle {
  display: none;
  border: 2px solid var(--brand);
  background: var(--surface);
  color: var(--brand-dark);
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.league-strip {
  background: var(--bg2);
  border-top: 1px solid var(--line);
}
.league-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
}
.league-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text);
}
.league-chip img { width: 16px; height: 16px; }
.league-chip:hover,
.league-chip.on {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.site-main { padding: 24px 0 48px; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 42px 28px 36px;
  margin-bottom: 24px;
}
.hero h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  font-weight: 700;
}
.hero .kw {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 12px;
  font-weight: 600;
}
.hero p {
  margin: 0 0 20px;
  max-width: 40rem;
  opacity: .95;
  font-size: 1.02rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { position: absolute; right: 4%; top: 18%; opacity: .22; pointer-events: none; }
.hero-art .float { position: absolute; }
.hero-art .f1 { right: 0; top: 0; }
.hero-art .f2 { right: 70px; top: 50px; }
.hero-art .f3 { right: 20px; top: 110px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 6px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 700;
  border: 2px solid #fff;
}
.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.65);
}
.btn:hover { filter: brightness(0.97); }
.play-actions .btn {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.play-actions .btn.ghost {
  background: var(--surface);
  color: var(--brand-dark);
  border-color: var(--brand);
}

.sec { margin-bottom: 28px; }
.sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 800;
}
.sec-title img { width: 22px; height: 22px; }
.sec-title small {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.match-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.match-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.match-link {
  display: block;
  padding: 14px 16px;
}
.match-link:hover { background: #f8fbf9; }
.match-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}
.league-ico { width: 18px; height: 18px; }
.league-name { font-weight: 600; color: var(--text); }
.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.team img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: var(--bg2);
  border-radius: 50%;
  padding: 3px;
}
.team span {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team.away { justify-content: flex-end; flex-direction: row-reverse; }
.score {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  min-width: 56px;
  text-align: center;
  color: var(--brand-dark);
}
.st {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg2);
}
.st-live { background: #fee2e2; color: var(--live); }
.st-upcoming { background: #e0f2fe; color: var(--upcoming); }
.st-finished, .st-replay { background: #f1f5f9; color: var(--finished); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.news-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.news-card:hover { border-color: var(--brand); }
.news-card .cat {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.news-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.45;
}
.news-card .sum {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.news-card time { color: var(--muted); font-size: 0.82rem; }

.about, .faq, .page-head, .play-box, .article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 20px;
}
.about h2, .faq h2, .page-head h1, .play-box h1, .article h1 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}
.about h3 { margin: 18px 0 8px; font-size: 1.05rem; color: var(--brand-dark); }
.about p, .faq p, .page-head p { color: #334155; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.faq details:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--brand-dark); }

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}
.crumb a:hover { color: var(--brand-dark); }

.play-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin: 0 0 20px;
}
.play-box .teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.play-box .side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.play-box .side img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--bg2);
  border-radius: 50%;
  padding: 6px;
}
.play-box .vs {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-dark);
}
.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.play-tip { color: var(--muted); font-size: 0.9rem; margin: 0; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.article-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #1e293b;
}
.article-body p { margin: 0 0 1em; }
.article-body img { margin: 12px auto; border-radius: 6px; }
.pager-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pager-nav a {
  padding: 12px;
  background: var(--bg2);
  border-radius: 6px;
  font-size: 0.92rem;
}
.pager-nav a:hover { background: var(--brand-soft); }
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.pager a, .pager span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.pager .on, .pager a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.friends {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font-size: 0.9rem;
}
.friends .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.friends .lab { color: var(--muted); font-weight: 600; }
.friends a { color: var(--brand-dark); }
.friends a:hover { text-decoration: underline; }

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 28px 0 36px;
  font-size: 0.9rem;
}
.site-footer p { margin: 0 0 8px; }
.site-footer p:last-child { margin: 0; color: #94a3b8; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    flex-direction: column;
  }
  .main-nav.open { display: flex; }
  body.nav-open { overflow: hidden; }
  .hero { padding: 28px 18px; }
  .hero-art { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .match-teams { grid-template-columns: 1fr; gap: 8px; }
  .team.away { justify-content: flex-start; flex-direction: row; }
  .score { justify-self: start; }
  .pager-nav { grid-template-columns: 1fr; }
  .st { margin-left: 0; }
}
