:root {
  --bg: #fff6f9;
  --bg2: #f8f0ff;
  --card: rgba(255, 255, 255, 0.88);
  --ink: #5a3a4a;
  --muted: #9a7080;
  --line: #f0d6e2;
  --primary: #e891a8;
  --primary-dark: #c96b88;
  --accent: #c9a0e8;
  --live: #e86a8a;
  --done: #8fc9b0;
  --upcoming: #a08fd0;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(200, 120, 150, 0.1);
  --font: "Nunito", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffe4ef 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #efe0ff 0%, transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg2) 40%, #fff9f4);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: #a84f6d; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1100px, calc(100% - 28px)); margin: 0 auto; }

.illo-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.illo-bg .blob {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.45;
}
.illo-bg .b1 {
  width: 280px; height: 280px; left: -60px; top: 120px;
  background: #ffd0e0;
}
.illo-bg .b2 {
  width: 320px; height: 320px; right: -80px; top: 40%;
  background: #e4d0ff;
}
.illo-bg .b3 {
  width: 220px; height: 220px; left: 35%; bottom: 8%;
  background: #ffe8c8;
}
.illo-bg .petal {
  position: absolute; width: 18px; height: 28px; border-radius: 50% 50% 50% 0;
  background: rgba(232, 145, 168, 0.35); transform: rotate(35deg);
}
.illo-bg .p1 { top: 18%; left: 12%; }
.illo-bg .p2 { top: 62%; right: 14%; transform: rotate(-20deg); }

.site-header,
.site-main,
.friends,
.site-footer { position: relative; z-index: 1; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(200, 120, 150, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.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 {
  width: auto; height: 48px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  padding: 2px 6px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-size: 1.35rem; font-weight: 800; color: var(--ink);
  letter-spacing: 0.02em;
}
.brand-text em {
  font-style: normal; font-size: 0.75rem; color: var(--primary-dark);
  font-weight: 700;
}

.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  color: var(--ink); border-radius: 999px; padding: 8px 14px; cursor: pointer;
  font-weight: 700;
}
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink); padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a.on {
  background: linear-gradient(135deg, #ffe0ea, #f0e0ff);
  color: var(--primary-dark);
}

.league-strip {
  border-top: 1px solid var(--line);
  background: rgba(255, 248, 251, 0.7);
}
.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: #fff;
  border: 1px solid var(--line); color: var(--ink); font-size: 0.86rem;
  font-weight: 600; box-shadow: 0 4px 12px rgba(200, 120, 150, 0.06);
}
.league-chip.on, .league-chip:hover {
  border-color: #f0b0c2; color: var(--primary-dark);
  background: linear-gradient(135deg, #fff0f5, #f7efff);
}
.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 30px; border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,236,244,.9) 55%, rgba(243,232,255,.88));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.hero-art { position: absolute; right: 24px; top: 20px; width: 140px; height: 100px; opacity: 0.9; }
.hero-art .float { position: absolute; filter: drop-shadow(0 8px 12px rgba(200,120,150,.25)); }
.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 6px;
  font-size: clamp(1.9rem, 4.5vw, 2.55rem); font-weight: 800; color: var(--ink);
}
.hero .kw {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px;
  background: linear-gradient(135deg, #ffe0ea, #efe0ff);
  color: var(--primary-dark); border-radius: 999px; font-size: 0.85rem; font-weight: 700;
}
.hero p { margin: 0 0 18px; 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, #f2a0b8, #d98bb8);
  color: #fff !important; font-weight: 800;
  cursor: pointer; font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(217, 139, 184, 0.35);
}
.btn:hover {
  background: linear-gradient(135deg, #e891a8, #c96b88);
  color: #fff !important;
}
.btn.ghost {
  background: #fff; color: var(--primary-dark) !important;
  border: 1px solid #f0b0c2; box-shadow: none;
}
.btn.ghost:hover { background: #fff0f5; }

.sec { margin-bottom: 24px; }
.sec-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; font-size: 1.2rem; font-weight: 800;
}
.sec-title img { width: 20px; height: 20px; }
.sec-title small { color: var(--muted); font-weight: 600; font-size: 0.85rem; }

.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(6px);
}
.match-link { display: block; padding: 14px 16px; color: inherit; border-radius: var(--radius); }
.match-link:hover { background: rgba(255, 240, 245, 0.65); }
.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: 700; 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: 700; }
.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: 800; color: var(--primary-dark);
  min-width: 56px; text-align: center;
}
.st {
  padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
}
.st-live { background: #ffe0ea; color: var(--live); }
.st-upcoming { background: #efe8ff; color: var(--upcoming); }
.st-finished { background: #e4f5ec; color: #4e9a78; }

.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px;
}
.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: #f0b0c2; transform: translateY(-2px); transition: .2s ease; }
.news-card .cat { font-size: 0.78rem; color: var(--primary-dark); font-weight: 700; }
.news-card h3 { margin: 8px 0; font-size: 1rem; line-height: 1.45; }
.news-card .sum { margin: 0 0 8px; color: var(--muted); font-size: 0.88rem; }
.news-card time { font-size: 0.8rem; color: var(--muted); }

.about, .faq, .page-head, .play-box, .article {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 22px 24px; 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.35rem; font-weight: 800;
}
.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: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.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-dark); }

.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: 800; color: var(--primary-dark); }
.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: #fff; font-weight: 700;
}
.signal-tab.on, .signal-tab:hover {
  background: linear-gradient(135deg, #ffe0ea, #efe0ff);
  border-color: #f0b0c2; 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: #fff0f5; border-left: 3px solid var(--primary);
  padding: 10px 14px; color: var(--muted); font-size: 0.92rem;
  border-radius: 0 12px 12px 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; }

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

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

.friends {
  background: rgba(255,255,255,.75); 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: 700; }
.friends a { color: var(--muted); }
.friends a:hover { color: var(--primary-dark); }

.site-footer {
  background: linear-gradient(160deg, #6a4054, #4a3048);
  color: #e8c8d4; padding: 24px 0 32px; font-size: 0.88rem;
}
.site-footer p { margin: 0 0 8px; }
.site-footer p:last-child { margin: 0; color: #c9a0b0; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .brand-text { display: none; }
  .brand > img { height: 40px; }
  .main-nav {
    display: none; position: absolute; left: 14px; right: 14px; top: 64px;
    flex-direction: column; background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 18px; padding: 8px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  body.nav-open { overflow: hidden; }
  .hero { padding: 24px 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: 18px; }
  .pager-nav a { max-width: 100%; }
  .illo-bg .blob { opacity: 0.28; }
}
