:root {
  --bg: #0b1220;
  --bg2: #121a2b;
  --surface: rgba(24, 34, 56, 0.72);
  --surface-solid: #182238;
  --line: rgba(120, 160, 220, 0.18);
  --text: #e8eefc;
  --muted: #93a0bb;
  --primary: #00d4aa;
  --primary-2: #3d8bff;
  --accent: #ff6b4a;
  --live: #ff3b5c;
  --done: #3ddc97;
  --soon: #7aa2ff;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(0, 212, 170, 0.18), transparent 55%),
    radial-gradient(900px 400px at 90% 0%, rgba(61, 139, 255, 0.16), transparent 50%),
    linear-gradient(180deg, #0b1220 0%, #0e1628 40%, #0b1220 100%);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; transition: color .2s ease, transform .2s ease; }
a:hover { color: #5ff0d0; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700;
}
.brand img { width: 140px; height: auto; border-radius: 8px; }
.brand-text { font-size: 1.15rem; letter-spacing: 0.02em; }
.site-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 999px;
  border: 1px solid transparent;
}
.site-nav a:hover, .site-nav a.on {
  color: var(--text); border-color: var(--line);
  background: rgba(0, 212, 170, 0.08);
}
.nav-toggle {
  display: none; background: transparent; border: 0; width: 42px; height: 42px;
  flex-direction: column; justify-content: center; gap: 6px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 22px; background: var(--text); margin: 0 auto;
  transition: transform .25s ease, opacity .25s ease;
}

.site-main { padding: 24px 0 56px; }
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 28px;
  margin-bottom: 24px;
  background:
    linear-gradient(135deg, rgba(0, 212, 170, 0.12), rgba(61, 139, 255, 0.08)),
    var(--surface-solid);
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25;
}
.hero p { margin: 0; color: var(--muted); max-width: 52ch; }
.hero-glow {
  position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.35), transparent 70%);
  pointer-events: none;
}

.section { margin-bottom: 28px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0; font-size: 1.25rem; display: flex; align-items: center; gap: 8px;
}
.section-head h2 img { width: 22px; height: 22px; }
.section-head .more { color: var(--muted); font-size: 0.92rem; }

.league-rail {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-bottom: 22px;
}
.league-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.league-chip:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(0, 212, 170, 0.45);
  background: rgba(0, 212, 170, 0.08);
  color: var(--text);
}
.league-chip img { width: 40px; height: 40px; }
.league-chip span { font-size: 0.86rem; }

.match-grid { display: grid; gap: 12px; }
.match-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.match-card:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 139, 255, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.match-link { display: block; padding: 14px 16px; color: inherit; }
.match-meta {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  color: var(--muted); font-size: 0.86rem; margin-bottom: 10px;
}
.league-tag {
  color: var(--primary); background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.25); border-radius: 999px; padding: 2px 8px;
}
.status {
  margin-left: auto; border-radius: 999px; padding: 2px 8px; font-size: 0.8rem;
}
.st-live { color: #fff; background: var(--live); animation: pulse 1.4s ease infinite; }
.st-done { color: #053b28; background: var(--done); }
.st-soon { color: #0d1b3a; background: var(--soon); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(255, 59, 92, 0); }
}
.match-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center;
}
.team {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.team.away { justify-content: flex-end; text-align: right; }
.team img {
  width: 36px; height: 36px; object-fit: contain; flex: none;
  background: rgba(255,255,255,0.04); border-radius: 50%; padding: 3px;
}
.team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.score {
  display: flex; align-items: center; gap: 6px; font-size: 1.25rem; font-weight: 800;
  min-width: 72px; justify-content: center;
}
.score i { font-style: normal; color: var(--muted); font-weight: 500; }

.news-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.news-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 12px;
  padding: 12px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: inherit;
  transition: transform .25s ease, border-color .25s ease;
}
.news-card:hover { transform: translateY(-3px); border-color: rgba(0, 212, 170, 0.4); color: inherit; }
.news-card img {
  width: 120px; height: 84px; object-fit: cover; border-radius: 10px; background: #0a101c;
}
.news-card h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.4; }
.news-card p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 20px 18px; margin-bottom: 18px;
}
.panel h2, .panel h3 { margin-top: 0; }
.about-box ul { padding-left: 1.2em; color: var(--muted); }
.about-box .tip { color: var(--accent); font-size: 0.92rem; }

.faq-list details {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: rgba(255,255,255,0.02); margin-bottom: 10px;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary { color: var(--primary); margin-bottom: 8px; }
.faq-list p { margin: 0; color: var(--muted); }

.pager {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px; flex-wrap: wrap;
}
.pager a, .pager span {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); color: var(--text); padding: 0 10px;
}
.pager a:hover, .pager .on { background: rgba(0, 212, 170, 0.15); border-color: var(--primary); }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 0.9rem;
  margin: 8px 0 18px;
}
.article-body { color: #d7deed; font-size: 1.02rem; }
.article-body p { margin: 0 0 1em; }
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px;
}
.article-nav a {
  display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.02); color: var(--text);
}
.article-nav a span { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 4px; }

.replay-card, .detail-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 16px; margin-bottom: 12px;
}
.video-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.video-links a {
  padding: 8px 12px; border-radius: 999px; background: rgba(61, 139, 255, 0.15);
  border: 1px solid rgba(61, 139, 255, 0.35); color: #cfe0ff;
}
.empty {
  text-align: center; color: var(--muted); padding: 36px 12px;
  border: 1px dashed var(--line); border-radius: var(--radius);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 22, 0.9);
  padding: 28px 0 36px; color: var(--muted); font-size: 0.92rem;
}
.footer-brand { color: var(--text); font-weight: 700; margin: 0 0 8px; }
.footer-desc { margin: 0 0 12px; }
.friend-links { margin: 0 0 10px; }
.friend-links a { margin-right: 12px; color: var(--muted); }
.friend-links a:hover { color: var(--primary); }
.copyright { margin: 0; font-size: 0.84rem; }

@media (max-width: 900px) {
  .league-rail { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 16px; right: 16px; top: 68px;
    flex-direction: column; background: #121a2b; border: 1px solid var(--line);
    border-radius: 14px; padding: 10px; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .brand-text { display: none; }
  .league-rail { grid-template-columns: repeat(4, 1fr); }
  .news-card { grid-template-columns: 96px 1fr; }
  .news-card img { width: 96px; height: 72px; }
  .article-nav { grid-template-columns: 1fr; }
  .match-teams { grid-template-columns: 1fr; gap: 8px; }
  .team.away { justify-content: flex-start; text-align: left; }
  .score { justify-content: flex-start; }
}
