:root {
  --bg0: #12182a;
  --bg1: #1a2440;
  --ink: #f4f7ff;
  --muted: #a8b4d4;
  --accent: #7cc4ff;
  --accent2: #a78bfa;
  --live: #ff5c8a;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.18);
  --max: 1120px;
  --display: "Outfit", "Noto Sans SC", sans-serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 18px;
  --shadow: 0 16px 48px rgba(12, 18, 40, 0.45);
}

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

.bg-glass {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 12% 8%, rgba(124, 196, 255, 0.28), transparent 58%),
    radial-gradient(ellipse 45% 35% at 88% 18%, rgba(167, 139, 250, 0.26), transparent 55%),
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(124, 196, 255, 0.12), transparent 62%),
    linear-gradient(165deg, #0e1424 0%, var(--bg0) 42%, var(--bg1) 100%);
}
.bg-glass::before {
  content: "";
  position: absolute;
  inset: -10%;
  opacity: 0.45;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0 12%, transparent 13%),
    radial-gradient(circle at 75% 60%, rgba(255,255,255,0.06) 0 18%, transparent 19%);
  filter: blur(2px);
}
.bg-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 35%, rgba(255,255,255,0.05) 50%, transparent 65%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 24, 42, 0.55);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(8, 12, 28, 0.28);
}
.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: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(124, 196, 255, 0.2), 0 8px 22px rgba(167, 139, 250, 0.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text em {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--accent2);
  font-family: var(--display);
}
.brand-text b {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--ink), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
  padding: 0.15rem 0 0.45rem;
}
.main-nav a {
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.main-nav a.on,
.main-nav a:hover {
  background: linear-gradient(90deg, rgba(124, 196, 255, 0.22), rgba(167, 139, 250, 0.28));
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0.35rem 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.sub-nav a.on { color: var(--accent); font-weight: 700; }

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

.glass-panel,
.hero.glass-panel,
.about.glass-panel,
.faq.glass-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.4rem;
  margin: 1.25rem 0;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}
.glass-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 196, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.hero {
  text-align: center;
  padding: 2rem 1.4rem 1.7rem;
}
.hero .eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 6.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--ink);
  text-shadow: 0 0 28px rgba(124, 196, 255, 0.35);
}
.hero-kw {
  margin: 0.7rem 0 0.85rem;
  display: inline-block;
  font-size: 0.98rem;
  font-weight: 800;
  color: #101428;
  padding: 0.28rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.35);
}
.hero .lead {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-mini {
  padding: 0.35rem 0 1rem;
  margin-bottom: 0.75rem;
}
.hero-mini h1 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: 0.03em;
}
.hero-mini p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.sec { margin: 1.6rem 0; }
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--display);
  letter-spacing: 0.04em;
}
.sec-title span {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1rem;
}
.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.45rem;
  margin: 1rem 0 1.25rem;
}
.chip {
  border: 1px solid var(--line);
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--panel);
}
.chip.on, .chip:hover {
  background: linear-gradient(90deg, rgba(124, 196, 255, 0.25), rgba(167, 139, 250, 0.3));
  border-color: var(--accent);
  color: var(--ink);
}

.date-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.date-item {
  flex: 0 0 auto;
  min-width: 4.6rem;
  text-align: center;
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  background: var(--panel);
  border-radius: 12px;
}
.date-item b { display: block; font-size: 0.95rem; }
.date-item span { font-size: 0.72rem; color: var(--muted); }
.date-item.on {
  border-color: var(--accent);
  background: rgba(124, 196, 255, 0.12);
  color: var(--accent);
}
.date-item.on span { color: rgba(124, 196, 255, 0.75); }

.league-block { margin-bottom: 1.2rem; }
.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: 8px;
  background: rgba(255,255,255,0.92);
  padding: 1px;
}
.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.45rem;
}
.match-card {
  display: grid;
  grid-template-columns: 7.8rem 1fr auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.match-card:hover {
  background: var(--panel-strong);
  border-color: var(--accent2);
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.15);
}
.match-card.is-live {
  border-color: rgba(255, 61, 113, 0.55);
  background: rgba(255, 61, 113, 0.1);
  box-shadow: inset 3px 0 0 var(--live);
}
.mc-time { display: flex; flex-direction: column; gap: 0.15rem; }
.mc-full { font-size: 0.78rem; font-weight: 600; 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: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 2px;
}
.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.25rem;
  font-weight: 700;
  min-width: 3.2rem;
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.mc-btn {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid var(--accent);
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(124, 196, 255, 0.08);
  color: var(--accent);
}
.is-live .mc-btn {
  background: var(--live);
  border-color: var(--live);
  color: #fff;
}

.vlist { display: flex; flex-direction: column; gap: 0.4rem; }
.vrow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 0.95rem;
}
.vrow:hover { border-color: var(--accent); 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.85rem;
}
.news-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.news-card:hover { border-color: var(--accent2); color: inherit; }
.news-card img {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}
.news-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.news-card time { font-size: 0.75rem; color: var(--muted); }
.news-card p { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.85rem; }

.about h2, .faq h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}
.about h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1rem;
  color: var(--accent);
}
.about p { margin: 0.4rem 0; color: #c5d0ea; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+ ";
  color: var(--accent);
  font-family: var(--display);
}
.faq details[open] summary::before { content: "– "; }
.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: 12px;
  background: var(--panel);
}

.match-detail {
  text-align: center;
  padding: 1.2rem 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.match-detail .kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.match-detail h1 {
  margin: 0.4rem 0 1.2rem;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
}
.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: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 4px;
}
.md-board .mid b {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--accent);
}
.badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.badge.live { background: var(--live); color: #fff; border-color: var(--live); }
.signals { display: flex; justify-content: center; gap: 0.55rem; flex-wrap: wrap; }
.sig {
  border: 1px solid var(--accent);
  padding: 0.45rem 1.1rem;
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: 999px;
  background: rgba(124, 196, 255, 0.1);
  color: var(--accent);
}
.sig:hover {
  background: var(--accent);
  color: #041018;
}
.tip { margin: 1rem auto 0; max-width: 32rem; font-size: 0.85rem; color: var(--muted); }

.article h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  line-height: 1.3;
}
.meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 1rem;
}
.article .cover { margin: 0 0 1rem; }
.article .cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.article .content {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #e6ecf8;
}
.article .content p { margin: 0.85rem 0; }
.article .content img {
  margin: 0.5rem 0;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.pn {
  display: grid;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.pn a { font-size: 0.92rem; }
.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.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.88rem;
  background: var(--panel);
}
.pager .on {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #041018;
  border-color: transparent;
  font-weight: 800;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
}
.site-footer p { margin: 0.35rem 0; }
.site-footer .foot-desc {
  max-width: 48rem;
  margin: 0 auto 0.75rem;
  color: #b8c6e4;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.75rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    background: var(--panel);
  }
  .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; }
  .glass-panel { padding: 1.1rem; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 1.15rem, var(--max)); }
  .brand-text b { font-size: 1.2rem; }
  .hero { padding: 1.4rem 1rem 1.2rem; }
  .vrow { flex-direction: column; gap: 0.25rem; }
}
