:root {
  --bg: #fff8f3;
  --bg2: #f3faf6;
  --card: #ffffff;
  --ink: #2c3140;
  --muted: #7a8499;
  --line: #f0e4da;
  --primary: #3d9b7a;
  --primary-dark: #2d7d61;
  --primary-soft: #e8f6ef;
  --accent: #f08a5d;
  --accent-soft: #fff1ea;
  --live: #e4572e;
  --done: #3d9b7a;
  --upcoming: #5b7c99;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 24px rgba(61, 155, 122, 0.08);
  --shadow-soft: 0 4px 14px rgba(240, 138, 93, 0.1);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Sans SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, #ffe8d8 0%, transparent 55%),
    radial-gradient(700px 380px at 92% 8%, #d9f3e8 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 48%, #fff 100%);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1100px, calc(100% - 28px)); margin: 0 auto; }

.illo-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.illo-bg .blob {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.35;
}
.illo-bg .b1 { width: 280px; height: 280px; background: #ffd7c2; top: 12%; left: -80px; }
.illo-bg .b2 { width: 220px; height: 220px; background: #b8ebd6; top: 55%; right: -60px; }
.illo-bg .b3 { width: 180px; height: 180px; background: #ffe9a8; bottom: 8%; left: 35%; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 228, 218, 0.9);
  box-shadow: 0 2px 16px rgba(44, 49, 64, 0.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand img {
  border-radius: 14px;
  background: var(--accent-soft);
  border: 2px solid #ffe0d0;
  box-shadow: var(--shadow-soft);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--display);
  font-size: 1.45rem; font-weight: 400; color: var(--ink);
  letter-spacing: 0.04em;
}
.brand-text em { font-style: normal; font-size: 0.75rem; color: var(--muted); }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink); padding: 8px 14px; border-radius: 999px;
  font-weight: 500; font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a.on {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.league-strip {
  border-top: 1px solid rgba(240, 228, 218, 0.85);
  background: rgba(255, 251, 247, 0.9);
}
.league-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.home-leagues { padding: 0; overflow: visible; flex-wrap: wrap; }
.league-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink); font-size: 0.86rem;
  box-shadow: 0 2px 8px rgba(240, 138, 93, 0.06);
}
.league-chip.on, .league-chip:hover {
  border-color: #b8e0cf; color: var(--primary-dark); background: var(--primary-soft);
}
.league-chip img { border-radius: 4px; width: 16px; height: 16px; object-fit: contain; }

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

.hero {
  position: relative; overflow: hidden;
  padding: 40px 32px; border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,241,234,0.9) 55%, rgba(232,246,239,0.92) 100%);
  border: 1px solid #ffe4d4;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.hero-art { position: absolute; right: 28px; top: 24px; width: 150px; height: 110px; opacity: 0.9; }
.hero-art .float { position: absolute; filter: drop-shadow(0 6px 10px rgba(61,155,122,0.15)); }
.hero-art .f1 { right: 8px; top: 4px; }
.hero-art .f2 { right: 64px; top: 40px; }
.hero-art .f3 { right: 16px; top: 64px; }
.hero h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 400; color: var(--ink);
  letter-spacing: 0.03em;
}
.hero .kw {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px;
  background: var(--accent-soft); color: #c96a3d; border-radius: 999px; font-size: 0.85rem;
  border: 1px solid #ffd9c4;
}
.hero p { margin: 0 0 20px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--primary) 0%, #48b089 100%);
  color: #fff !important; font-weight: 600;
  cursor: pointer; font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(61, 155, 122, 0.28);
}
.btn:hover { background: var(--primary-dark); color: #fff !important; }
.btn.ghost {
  background: #fff; color: var(--primary) !important;
  border: 1px solid #b8e0cf;
  box-shadow: none;
}
.btn.ghost:hover { background: var(--primary-soft); }

.sec { margin-bottom: 26px; }
.sec-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px; font-size: 1.25rem; font-weight: 700;
  font-family: var(--display); letter-spacing: 0.02em;
}
.sec-title img { width: 20px; height: 20px; }
.sec-title small { color: var(--muted); font-weight: 500; font-size: 0.85rem; font-family: var(--font); }

.match-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.match-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.match-link { display: block; padding: 14px 16px; color: inherit; border-radius: var(--radius); }
.match-link:hover { background: linear-gradient(90deg, #fffaf7, #f7fcf9); }
.match-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--muted); margin-bottom: 8px;
}
.league-ico { width: 18px; height: 18px; object-fit: contain; }
.league-name { font-weight: 600; color: var(--ink); }
.match-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
}
.team { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.team.away { justify-content: flex-end; text-align: right; }
.team img { width: 36px; height: 36px; object-fit: contain; }
.score { font-size: 1.15rem; font-weight: 700; color: var(--accent); min-width: 56px; text-align: center; }
.st {
  padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
}
.st-live { background: #ffe8e0; color: var(--live); }
.st-upcoming { background: #e8f1f8; color: var(--upcoming); }
.st-finished { background: var(--primary-soft); color: var(--done); }

.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.news-card {
  display: block; padding: 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); color: inherit;
  box-shadow: var(--shadow);
}
.news-card:hover { border-color: #f0b892; transform: translateY(-2px); transition: .2s ease; }
.news-card .cat { font-size: 0.78rem; color: var(--accent); font-weight: 600; }
.news-card h3 { margin: 8px 0; font-size: 1rem; line-height: 1.45; }
.news-card .sum { color: var(--muted); font-size: 0.88rem; margin: 0 0 8px; }
.news-card time { font-size: 0.8rem; color: var(--muted); }

.about, .faq, .page-head, .play-box, .article {
  background: rgba(255,255,255,0.94); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.about h2, .faq h2, .page-head h1, .play-box h1, .article h1 {
  margin: 0 0 12px; font-size: 1.4rem; font-family: var(--display); font-weight: 400;
}
.about h3 { margin: 16px 0 8px; font-size: 1.05rem; color: var(--primary-dark); }
.about p, .faq p, .page-head p { color: var(--muted); }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.inline-ico { display: inline-block; vertical-align: -6px; margin-right: 6px; }

.crumb {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 14px;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--primary); }

.play-sub {
  display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 0 0 18px;
}
.teams {
  display: flex; justify-content: center; align-items: center; gap: 28px;
  margin: 20px 0; flex-wrap: wrap;
}
.teams .side { text-align: center; }
.teams .side img { margin: 0 auto 8px; width: 64px; height: 64px; object-fit: contain; }
.teams .vs { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.signal-tabs { display: flex; gap: 8px; justify-content: center; margin: 12px 0 16px; flex-wrap: wrap; }
.signal-tab {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); background: #fffaf7; font-weight: 600;
}
.signal-tab.on, .signal-tab:hover { background: var(--primary-soft); border-color: #b8e0cf; color: var(--primary-dark); }
.play-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.play-tip { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 14px; }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.article-body { color: var(--ink); font-size: 1rem; }
.article-body p { margin: 0 0 1em; }
.lead-note {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: 10px 14px; color: var(--muted); font-size: 0.92rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pager-nav {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
}
.pager-nav a { max-width: 48%; font-size: 0.9rem; }

.pager, .pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pager a, .pager span, .pagination a, .pagination span {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font-size: 0.9rem;
}
.pager .on, .pager a:hover, .pagination a.on, .pagination a:hover {
  border-color: var(--primary); color: var(--primary); background: var(--primary-soft);
}

.empty { text-align: center; color: var(--muted); padding: 28px 12px; }

.friends {
  background: rgba(255,255,255,0.9); border-top: 1px solid var(--line); padding: 14px 0;
  font-size: 0.88rem;
}
.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(--muted); }
.friends a:hover { color: var(--primary); }

.site-footer {
  background: linear-gradient(180deg, #314047 0%, #243038 100%);
  color: #c5d0d8; padding: 24px 0 32px; font-size: 0.88rem;
}
.site-footer p { margin: 0 0 8px; }
.site-footer p:last-child { margin: 0; color: #8fa0ab; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 14px; right: 14px; top: 64px;
    flex-direction: column; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  body.nav-open { overflow: hidden; }
  .hero { padding: 26px 18px; border-radius: 22px; }
  .hero-art { display: none; }
  .match-teams { gap: 6px; }
  .team span { font-size: 0.9rem; }
  .about, .faq, .page-head, .play-box, .article { padding: 16px; border-radius: 16px; }
  .pager-nav a { max-width: 100%; }
  .brand-text strong { font-size: 1.2rem; }
}
