:root {
  --ink: #2d4a6e;
  --bg: #eef6ff;
  --bg2: #f7fbff;
  --card: #ffffff;
  --primary: #4fa3e8;
  --primary-deep: #2f7fc4;
  --coral: #ff7a63;
  --mint: #5ec8a8;
  --muted: #6b849e;
  --line: rgba(79, 163, 232, 0.22);
  --shadow: 0 10px 28px rgba(61, 110, 168, 0.12);
  --radius: 18px;
  --font-display: "ZCOOL XiaoWei", "Nunito", "Noto Sans SC", sans-serif;
  --font-body: "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-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--primary-deep); text-decoration: none; }
a:hover { color: var(--coral); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1140px, calc(100% - 28px)); margin: 0 auto; }
.muted { color: var(--muted); margin: 0; }

.soft-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(79,163,232,0.22), transparent 42%),
    radial-gradient(ellipse at 88% 18%, rgba(255,122,99,0.14), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(94,200,168,0.12), transparent 45%),
    linear-gradient(180deg, #e8f3ff 0%, #f7fbff 48%, #eef8f4 100%);
}
.soft-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.4) 0 2px, transparent 3px);
  background-size: 80px 80px, 110px 110px;
  opacity: .5;
}

.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(79,163,232,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px; color: inherit;
}
.brand img {
  width: 44px; height: 44px; border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(79,163,232,0.25);
  object-fit: cover;
}
.brand strong {
  display: block; font-family: var(--font-display);
  font-size: 1.35rem; color: var(--ink); letter-spacing: .02em;
}
.brand small { color: var(--muted); font-size: .75rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.site-nav a {
  color: var(--ink); font-size: .92rem; font-weight: 700;
  padding: 6px 10px; border-radius: 999px;
}
.site-nav a.active, .site-nav a:hover {
  color: #fff; background: var(--primary);
}
.nav-toggle {
  display: none; background: #fff; border: 1px solid var(--line);
  color: var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 1.1rem;
}

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

.hero {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 20px;
  margin-bottom: 28px;
}
.hero-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.95), rgba(232,243,255,0.92)),
    linear-gradient(180deg, #ffffff, #eaf5ff);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: center;
}
.kicker {
  font-family: var(--font-body);
  letter-spacing: .12em; color: var(--primary-deep); font-size: .78rem;
  font-weight: 800; margin-bottom: 10px;
}
.hero-card h1 {
  margin: 0 0 8px; font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  color: var(--ink); line-height: 1.15;
}
.keyword-tag {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px;
  border-radius: 999px; background: rgba(255,122,99,0.12);
  color: var(--coral); font-weight: 800; font-size: .9rem;
}
.lead { color: var(--muted); margin: 0 0 22px; max-width: 42em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: .92rem;
  border: 1px solid transparent; transition: .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--coral); color: #fff; }
.btn-ghost {
  background: #fff; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-deep); }

.side-box {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 18px 16px; box-shadow: var(--shadow);
}
.side-box h2 {
  margin: 0 0 12px; font-size: 1.05rem; font-family: var(--font-display);
  color: var(--ink);
}
.side-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px; border-radius: 12px; color: var(--ink);
  border-bottom: 1px solid rgba(79,163,232,.08);
}
.side-list a:last-child { border-bottom: 0; }
.side-list a:hover { background: rgba(79,163,232,0.08); }
.side-list img { width: 28px; height: 28px; object-fit: contain; }

.section { margin: 34px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.section-head h2 {
  margin: 0; font-family: var(--font-display);
  font-size: 1.5rem; color: var(--ink);
}
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.section-head > a { color: var(--primary-deep); font-size: .9rem; white-space: nowrap; font-weight: 700; }

.league-chips {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
}
.league-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink); transition: .2s ease; box-shadow: var(--shadow);
}
.league-chip:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}
.league-chip img { width: 40px; height: 40px; object-fit: contain; }
.league-chip span { font-size: .85rem; font-weight: 800; }

.match-list {
  display: flex; flex-direction: column; gap: 8px;
  position: relative; z-index: 1;
  opacity: 1; visibility: visible;
  min-height: 48px;
}
.match-row {
  display: grid;
  grid-template-columns: 150px 72px minmax(0, 1fr) 72px;
  gap: 10px; align-items: center;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 4px 14px rgba(79,163,232,0.06);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.match-row:hover {
  border-color: var(--primary);
  background: #f4faff;
  color: var(--ink);
  transform: translateY(-1px);
}
.mr-time { color: var(--muted); font-size: .82rem; }
.mr-league {
  font-size: .78rem; color: var(--coral); font-weight: 800;
  text-align: center;
}
.mr-teams {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center;
}
.mr-teams .side {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.mr-teams .side.away { justify-content: flex-end; }
.mr-teams img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.mr-teams b {
  font-size: .92rem; color: var(--ink); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mr-teams .score {
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--primary-deep); min-width: 48px; text-align: center;
}
.mr-status {
  text-align: center; font-size: .75rem; font-weight: 800;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(79,163,232,.1); color: var(--primary-deep);
}
.st-live { color: #fff; background: var(--coral); }
.st-upcoming { color: #1f7a62; background: rgba(94,200,168,.18); }
.st-finished, .st-done { color: var(--muted); background: #eef2f7; }

.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.news-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; color: inherit;
  box-shadow: var(--shadow); transition: .2s ease;
}
.news-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.news-card img {
  width: 100%; height: 150px; object-fit: cover; background: #dceaf8;
}
.news-card .body { padding: 12px 14px 16px; }
.news-card h3 {
  margin: 0 0 8px; font-size: 1rem; line-height: 1.4; color: var(--ink);
}
.news-card p { margin: 0; color: var(--muted); font-size: .8rem; }

.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(79,163,232,0.05);
}
.faq summary {
  cursor: pointer; font-weight: 800; color: var(--ink); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--primary-deep); }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }

.page-banner { padding: 22px 0 8px; }
.page-banner h1 {
  margin: 0 0 6px; font-family: var(--font-display);
  font-size: 1.85rem; color: var(--ink);
}
.page-banner p { margin: 0; color: var(--muted); }

.pager {
  display: flex; gap: 10px; justify-content: center; margin-top: 22px;
}
.pager a, .pager span {
  padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700;
}
.pager .disabled { opacity: .4; pointer-events: none; }

.play-card, .article {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; box-shadow: var(--shadow);
}
.play-vs {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin: 18px 0; flex-wrap: wrap;
}
.play-vs .team {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 110px;
}
.play-vs img { width: 64px; height: 64px; object-fit: contain; }
.play-vs .vs {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--primary-deep);
}
.play-tip { text-align: center; color: var(--muted); margin: 0 0 16px; }
.signal-lines { justify-content: center; }

.meta-bar {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  color: var(--muted); font-size: .85rem; margin-bottom: 14px;
}
.article h1 { margin: 0 0 12px; color: var(--ink); font-size: 1.55rem; line-height: 1.35; }
.article-cover {
  width: 100%; max-height: 360px; object-fit: cover;
  border-radius: 14px; margin-bottom: 16px;
}
.article-content { color: #3b5674; font-size: 1rem; }
.article-content img { margin: 12px auto; border-radius: 10px; }
.article-content p { margin: 0 0 1em; }
.article-nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
}
.article-nav a { color: var(--primary-deep); font-size: .9rem; max-width: 46%; font-weight: 700; }

.replay-list { display: flex; flex-direction: column; gap: 8px; }
.replay-item {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 14px; background: var(--card); border-radius: 14px;
  border: 1px solid var(--line); color: inherit; box-shadow: var(--shadow);
}
.replay-item:hover { border-color: var(--primary); }
.replay-item h3 { margin: 0 0 4px; font-size: 1rem; color: var(--ink); }
.replay-item p { margin: 0; color: var(--muted); font-size: .82rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  padding: 28px 0 36px; margin-top: 20px;
}
.about-block h2 {
  margin: 0 0 12px; font-family: var(--font-display); color: var(--ink);
}
.about-body { color: var(--muted); font-size: .92rem; }
.about-body h3 { color: var(--primary-deep); font-size: 1rem; margin: 16px 0 8px; }
.about-body ul { padding-left: 1.2em; margin: 0 0 8px; }
.about-body .tip { color: var(--coral); font-size: .85rem; }
.friend-links {
  margin: 18px 0 10px; display: flex; flex-wrap: wrap; gap: 8px 14px;
  align-items: center; color: var(--muted); font-size: .88rem;
}
.friend-links a { color: var(--muted); }
.friend-links a:hover { color: var(--primary-deep); }
.copy { margin: 0; color: #8aa0b5; font-size: .8rem; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .league-chips { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .match-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "time status"
      "league league"
      "teams teams";
    gap: 8px 10px;
  }
  .mr-time { grid-area: time; }
  .mr-status { grid-area: status; justify-self: end; padding: 4px 10px; }
  .mr-league { grid-area: league; text-align: left; }
  .mr-teams { grid-area: teams; width: 100%; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 14px; right: 14px; top: 64px;
    flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 10px; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .header-inner { position: relative; }
  .league-chips { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 24px 18px; min-height: auto; }
  .mr-teams b { font-size: .82rem; }
  .article-nav { flex-direction: column; }
  .article-nav a { max-width: 100%; }
  .brand strong { font-size: 1.15rem; }
}
