:root {
  --rose: #e87a8a;
  --rose-soft: #f3b5c0;
  --lavender: #d4c1ec;
  --blush: #f8e8ee;
  --cream: #fff9fb;
  --ink: #5a4a55;
  --muted: #8a7582;
  --line: rgba(232, 122, 138, 0.22);
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 10px 30px rgba(184, 120, 150, 0.12);
  --radius: 18px;
  --font-display: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
}
a { color: var(--rose); text-decoration: none; }
a:hover { color: #d45f72; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.soft-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(232, 122, 138, 0.28), transparent 60%),
    radial-gradient(700px 420px at 92% 8%, rgba(212, 193, 236, 0.35), transparent 55%),
    radial-gradient(600px 400px at 50% 100%, rgba(243, 181, 192, 0.22), transparent 50%),
    linear-gradient(180deg, #fff6f9 0%, #fff9fb 40%, #f7eef8 100%);
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 249, 251, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand img { border-radius: 50%; box-shadow: var(--shadow); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 400; color: var(--ink);
}
.brand-text em { font-style: normal; font-size: 0.75rem; color: var(--muted); }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  color: var(--ink); border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.main-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink); padding: 8px 14px; border-radius: 999px;
  transition: background .25s, color .25s;
}
.main-nav a:hover, .main-nav a.on {
  background: linear-gradient(135deg, var(--rose), var(--lavender));
  color: #fff;
}

.league-strip { border-top: 1px solid var(--line); }
.league-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.league-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink); font-size: 0.88rem;
  box-shadow: 0 4px 12px rgba(184, 120, 150, 0.06);
}
.league-chip.on, .league-chip:hover {
  background: #fff; border-color: var(--rose-soft); color: var(--rose);
}
.league-chip img { border-radius: 50%; }

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

.hero {
  position: relative; overflow: hidden;
  padding: 42px 28px; border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.75), rgba(248,232,238,0.9)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e87a8a' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  border: 1px solid var(--line); box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.hero h1 {
  margin: 0 0 8px; font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 400; color: var(--ink);
}
.hero .kw {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px;
  border-radius: 999px; background: rgba(232,122,138,0.12); color: var(--rose);
  font-size: 0.9rem;
}
.hero p { margin: 0; max-width: 36em; color: var(--muted); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--rose), #c9a0dc);
  box-shadow: 0 8px 18px rgba(232,122,138,0.28);
}
.btn.ghost {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: none;
}

.sec { margin-bottom: 32px; }
.sec-title {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 14px; font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 400;
}
.sec-title small { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); }
.sec-title img { width: 22px; height: 22px; }

.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);
  backdrop-filter: blur(8px); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.match-item:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(184,120,150,0.16); }
.match-link { display: block; padding: 14px 16px; color: inherit; }
.match-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 10px; font-size: 0.82rem; color: var(--muted);
}
.league-ico { border-radius: 50%; }
.league-name { color: var(--rose); font-weight: 500; }
.st {
  margin-left: auto; padding: 2px 10px; border-radius: 999px;
  background: rgba(212,193,236,0.35); color: #7a5f8f; font-size: 0.75rem;
}
.st-live { background: rgba(232,122,138,0.2); color: #c44d62; }
.st-finished { background: rgba(138,117,130,0.15); color: var(--muted); }
.match-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
}
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team.away { flex-direction: row-reverse; text-align: right; }
.team img { width: 36px; height: 36px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.team span { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score {
  min-width: 64px; text-align: center; font-family: var(--font-display);
  font-size: 1.25rem; color: var(--rose);
}

.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.news-card {
  display: block; padding: 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: inherit; transition: transform .25s;
}
.news-card:hover { transform: translateY(-2px); color: inherit; }
.news-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 500; }
.news-card time, .news-card .cat { font-size: 0.8rem; color: var(--muted); }

.about, .faq, .page-head, .article, .play-box {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 24px; box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.about h2, .faq h2, .page-head h1, .article h1 {
  margin-top: 0; font-family: var(--font-display); font-weight: 400;
}
.about h3 { color: var(--rose); font-size: 1.05rem; margin: 18px 0 8px; }
.about p, .faq p { color: var(--muted); }

.faq details {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; margin-bottom: 10px; background: rgba(255,255,255,0.55);
}
.faq summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.faq details[open] summary { color: var(--rose); }

.crumb { margin-bottom: 16px; font-size: 0.88rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb span { margin: 0 6px; }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px dashed var(--line);
}
.article-body { color: var(--ink); font-size: 1.02rem; }
.article-body p { margin: 0 0 1em; }
.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 {
  flex: 1 1 220px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,0.7); border: 1px solid var(--line); color: var(--ink);
}
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.pager a, .pager span {
  min-width: 36px; text-align: center; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.pager .on { background: var(--rose); color: #fff; border-color: var(--rose); }

.play-box .teams {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin: 20px 0; flex-wrap: wrap;
}
.play-box .teams .side { text-align: center; }
.play-box .teams img { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; }
.play-box .vs { font-family: var(--font-display); font-size: 1.6rem; color: var(--rose); }
.play-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.empty {
  text-align: center; padding: 28px; color: var(--muted);
  background: rgba(255,255,255,0.5); border-radius: var(--radius); border: 1px dashed var(--line);
}

.friends {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  padding: 14px 0;
}
.friends .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.friends .lab { color: var(--muted); font-size: 0.85rem; }
.friends a { color: var(--muted); font-size: 0.9rem; }
.friends a:hover { color: var(--rose); }

.site-footer {
  padding: 24px 0 36px; color: var(--muted); font-size: 0.85rem; text-align: center;
}
.site-footer p { margin: 0 0 8px; }

@media (max-width: 860px) {
  .wrap { width: calc(100% - 24px); }
  .nav-toggle { display: inline-flex; }
  .site-header { position: relative; }
  .main-nav {
    display: none; position: absolute; left: 12px; right: 12px; top: 64px;
    flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 10px; box-shadow: var(--shadow); z-index: 60;
  }
  .main-nav.open { display: flex; }
  body.nav-open { overflow: hidden; }
  .match-teams { grid-template-columns: 1fr; gap: 8px; }
  .team.away { flex-direction: row; text-align: left; }
  .score { order: -1; justify-self: start; }
  .hero { padding: 28px 18px; border-radius: 20px; }
  .hero h1 { font-size: 1.8rem; }
  .st { margin-left: 0; }
  .about, .faq, .page-head, .article, .play-box { padding: 18px; border-radius: 18px; }
  .news-grid { grid-template-columns: 1fr; }
  .article-meta { gap: 6px 12px; }
  .pager-nav a { flex-basis: 100%; }
}

@media (max-width: 480px) {
  .brand-text strong { font-size: 1.15rem; }
  .match-link { padding: 12px; }
  .team span { font-size: 0.95rem; }
  .friends .wrap { gap: 8px 12px; }
}
