:root {
  --ink: #2d3748;
  --muted: #6b7280;
  --bg: #fff8f0;
  --bg-deep: #ffe8d6;
  --card: #fffdf9;
  --accent: #38bda8;
  --accent-2: #ff6b81;
  --live: #e11d48;
  --ok: #16a34a;
  --line: rgba(45, 55, 72, 0.1);
  --shadow: 0 12px 28px rgba(255, 107, 129, 0.12);
  --max: 1100px;
  --display: "ZCOOL KuaiLe", "Nunito", "Noto Sans SC", sans-serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.dyn {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s ease, transform .2s ease; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; vertical-align: middle; }
button { font: inherit; cursor: pointer; }

.fx-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(56, 189, 168, 0.28), transparent 42%),
    radial-gradient(ellipse at 92% 6%, rgba(255, 179, 71, 0.32), transparent 38%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 107, 129, 0.16), transparent 45%),
    linear-gradient(180deg, #fff4e8 0%, var(--bg) 38%, #fffaf5 100%);
}
.fx-bg::before {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  left: -60px; top: 18%;
  border-radius: 42% 58% 63% 37% / 48% 42% 58% 52%;
  background: rgba(56, 189, 168, 0.14);
  animation: blobFloat 12s ease-in-out infinite;
}
.fx-bg::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -40px; bottom: 12%;
  border-radius: 58% 42% 37% 63% / 42% 58% 42% 58%;
  background: rgba(255, 179, 71, 0.18);
  animation: blobFloat 14s ease-in-out infinite reverse;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(18px, -22px) rotate(8deg); }
}

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 248, 253, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(14, 78, 140, 0.05);
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 0.55rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(255, 107, 129, 0.35);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  border: 3px solid #fff;
}
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-weight: 700;
}
.brand-text b {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.nav-toggle {
  display: none;
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem 0 0.55rem;
}
.main-nav a {
  padding: 0.45rem 0.95rem;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  background: transparent;
  transition: background .2s, color .2s, transform .2s;
}
.main-nav a.on,
.main-nav a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.sub-nav a {
  position: relative;
  padding-bottom: 2px;
}
.sub-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--accent-2);
  transition: right .25s ease;
}
.sub-nav a:hover::after,
.sub-nav a.on::after { right: 0; }
.sub-nav a.on { color: var(--accent-2); font-weight: 700; }

.site-main { padding: 1.35rem 0 3rem; }

.mast-hero {
  text-align: center;
  padding: 2.6rem 1rem 2.2rem;
  margin-bottom: 1.25rem;
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(56,189,168,0.16), rgba(255,179,71,0.18) 55%, rgba(255,107,129,0.12)),
    var(--card);
  box-shadow: var(--shadow);
  border: 3px solid rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}
.hero-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-blobs i {
  position: absolute;
  display: block;
  border-radius: 48% 52% 60% 40% / 45% 55% 45% 55%;
  opacity: 0.45;
  animation: blobFloat 9s ease-in-out infinite;
}
.hero-blobs i:nth-child(1) {
  width: 140px; height: 140px; left: -20px; top: -30px;
  background: #ffb347;
}
.hero-blobs i:nth-child(2) {
  width: 110px; height: 110px; right: 8%; bottom: -28px;
  background: #38bda8; animation-delay: -3s;
}
.hero-blobs i:nth-child(3) {
  width: 90px; height: 90px; right: -10px; top: 20%;
  background: #ff6b81; animation-delay: -5s;
}
.mast-hero::before { display: none; }
.mast-hero .eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.mast-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.hero-kw {
  margin: 0.55rem 0 0.85rem;
  display: inline-block;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(110deg, var(--accent), #ffb347 50%, var(--accent-2));
  padding: 0.35rem 1.1rem;
  border-radius: 18px 22px 16px 24px;
  box-shadow: 0 10px 22px rgba(255, 107, 129, 0.28);
  transform: rotate(-1.5deg);
}
.mast-hero .lead {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.hero-mini {
  padding: 0.35rem 0 1rem;
  margin-bottom: 1rem;
}
.hero-mini h1 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
}
.hero-mini p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.sec { margin: 1.75rem 0; }
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  padding: 0.35rem 0;
}
.sec-title span {
  position: relative;
  padding-left: 0.75rem;
}
.sec-title span::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em; bottom: 0.2em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.sec-title small {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}
.chip {
  border: 1px solid transparent;
  padding: 0.35rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 4px 12px rgba(14,78,140,0.06);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.chip:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 20px rgba(2,132,199,0.15);
  color: var(--accent);
}
.chip.on {
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 18px rgba(56, 189, 168, 0.3);
}

.date-bar {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.date-item {
  flex: 0 0 auto;
  min-width: 4.7rem;
  text-align: center;
  border: 1px solid var(--line);
  padding: 0.5rem 0.55rem;
  background: var(--card);
  border-radius: 14px;
  transition: transform .2s, background .2s, color .2s;
}
.date-item:hover { transform: translateY(-2px); }
.date-item b { display: block; font-size: 0.95rem; }
.date-item span { font-size: 0.72rem; color: var(--muted); }
.date-item.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.date-item.on span { color: rgba(255,255,255,0.75); }

.league-block { margin-bottom: 1.35rem; }
.league-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.league-title img { border-radius: 4px; }
.league-title small {
  margin-left: auto;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.match-card {
  display: grid;
  grid-template-columns: 7.8rem 1fr auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(14,78,140,0.04);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, border-color .22s;
}
.match-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(2,132,199,0.12);
  border-color: rgba(2,132,199,0.25);
  color: inherit;
}
.match-card.is-live {
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(90deg, rgba(220,38,38,0.06), var(--card) 40%);
}
.mc-time { display: flex; flex-direction: column; gap: 0.15rem; }
.mc-full { font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.mc-st {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--muted);
}
.is-live .mc-st { color: var(--live); font-weight: 700; }
.mc-team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.mc-team.away { justify-content: flex-end; text-align: right; }
.mc-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.mc-team strong {
  font-size: 0.92rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-score {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  min-width: 3.2rem;
  text-align: center;
}
.mc-btn {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 0;
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--accent);
  transition: transform .2s, background .2s;
}
.match-card:hover .mc-btn { transform: scale(1.05); }
.is-live .mc-btn {
  background: var(--live);
  color: #fff;
}

.vlist { display: flex; flex-direction: column; gap: 0.45rem; }
.vrow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  transition: transform .2s, box-shadow .2s;
}
.vrow:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  color: inherit;
}
.vrow time { color: var(--muted); font-size: 0.8rem; flex-shrink: 0; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.1rem;
}
.news-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.news-card img {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-deep);
}
.news-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}
.news-card time { font-size: 0.75rem; color: var(--muted); }

.mag-panel {
  margin: 2rem 0;
  padding: 1.4rem 1.25rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mag-panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
}
.mag-panel h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1rem;
  color: var(--accent);
}
.mag-panel p { margin: 0.4rem 0; color: #334155; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--display);
  font-size: 1.02rem;
  list-style: none;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+ ";
  color: var(--accent);
  font-weight: 800;
}
.faq details[open] summary::before { content: "– "; color: var(--accent-2); }
.faq details p { margin: 0.45rem 0 0.2rem; color: var(--muted); font-size: 0.95rem; }

.crumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.crumb a:hover { color: var(--accent); }
.crumb span { margin: 0 0.25rem; }

.empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--card);
}

.match-detail {
  text-align: center;
  padding: 1.25rem 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.match-detail .kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.match-detail h1 {
  margin: 0.4rem 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 800;
}
.md-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.md-board .side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.md-board .side img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 4px;
  transition: transform .25s;
}
.md-board .side:hover img { transform: scale(1.08); }
.md-board .mid b {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
}
.badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-deep);
}
.badge.live { background: var(--live); color: #fff; }
.signals { display: flex; justify-content: center; gap: 0.55rem; flex-wrap: wrap; }
.sig {
  border: 0;
  padding: 0.55rem 1.2rem;
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #0369a1);
  color: #fff;
  box-shadow: 0 8px 18px rgba(2,132,199,0.25);
  transition: transform .2s, box-shadow .2s;
}
.sig:hover {
  transform: translateY(-2px) scale(1.04);
  color: #fff;
  box-shadow: 0 12px 24px rgba(2,132,199,0.35);
}
.tip { margin: 1rem auto 0; max-width: 32rem; font-size: 0.85rem; color: var(--muted); }

.article {
  padding: 1.25rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.article h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  line-height: 1.3;
  font-weight: 800;
}
.meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.article .cover { margin: 0 0 1rem; }
.article .cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
}
.article .content {
  font-size: 1.02rem;
  line-height: 1.8;
}
.article .content p { margin: 0.85rem 0; }
.article .lead-note {
  background: var(--bg-deep);
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.article .content img { margin: 0.5rem 0; border-radius: 10px; }
.pn {
  display: grid;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.pn a { font-size: 0.92rem; font-weight: 700; }
.pn .muted { color: var(--muted); }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.pager a, .pager span {
  min-width: 2.2rem;
  text-align: center;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.88rem;
  transition: transform .15s;
}
.pager a:hover { transform: translateY(-1px); }
.pager .on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.friends {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.7);
}
.friends .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
}
.friends .lab {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--ink);
}
.friends a { color: var(--muted); }
.friends a:hover { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 2rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(2,132,199,0.05));
}
.site-footer p { margin: 0.35rem 0; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.85rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { border-radius: 12px; }
  .match-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "time btn"
      "home score"
      "away score";
    gap: 0.35rem 0.5rem;
  }
  .mc-time { grid-area: time; }
  .mc-team.home { grid-area: home; }
  .mc-team.away { grid-area: away; justify-content: flex-start; text-align: left; }
  .mc-score { grid-area: score; align-self: center; }
  .mc-btn { grid-area: btn; justify-self: end; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 88px 1fr; }
  .news-card img { width: 88px; height: 66px; }
  .md-board { gap: 0.5rem; }
  .md-board .side strong { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 1.2rem, var(--max)); }
  .brand-text b { font-size: 1.25rem; }
  .mast-hero { padding: 1.5rem 0.85rem 1.3rem; border-radius: 20px; }
  .vrow { flex-direction: column; gap: 0.25rem; }
  .article { padding: 1rem; }
}
