:root {
  --bg0: #0b1220;
  --bg1: #12203a;
  --glass: rgba(16, 28, 52, 0.92);
  --glass-strong: rgba(22, 38, 68, 0.96);
  --border: rgba(255, 255, 255, 0.16);
  --text: #eef3ff;
  --muted: #b7c6e0;
  --accent: #3dd6c6;
  --accent2: #6bb6ff;
  --danger: #ff6b7a;
  --live: #ff7a86;
  --ok: #5cdc9a;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(160deg, var(--bg0), #101a30 40%, #0a1528);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; position: relative; z-index: 1; }

/* 背景光晕永远在内容之下，不拦截点击 */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(700px 400px at 12% 8%, rgba(61, 214, 198, 0.12), transparent 60%),
    radial-gradient(600px 380px at 88% 12%, rgba(78, 161, 255, 0.10), transparent 55%),
    radial-gradient(500px 360px at 50% 100%, rgba(255, 93, 108, 0.06), transparent 50%);
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  /* 去掉强模糊，避免内容发虚、被图层盖住 */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header {
  position: sticky;
  top: 8px;
  z-index: 100;
  margin: 12px auto 0;
  width: min(1180px, calc(100% - 32px));
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(12, 22, 42, 0.96);
  isolation: isolate;
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img {
  border-radius: 10px;
  background: rgba(255,255,255,.08);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 18px; letter-spacing: .5px; color: #fff; }
.brand-text span { font-size: 12px; color: var(--muted); }

.site-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: .2s ease;
}
.site-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  z-index: 3;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.site-main {
  padding: 28px 0 60px;
  position: relative;
  z-index: 1;
}

.hero {
  border-radius: 28px;
  padding: 42px 36px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  background: rgba(14, 26, 48, 0.95);
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 1px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.hero p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  position: relative;
  z-index: 1;
}
.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}
.hero-badges span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(61, 214, 198, 0.12);
  font-size: 13px;
  color: var(--accent);
}

.section { margin-bottom: 28px; position: relative; z-index: 1; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  color: #fff;
}
.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.section-head a.more {
  color: var(--accent2);
  font-size: 14px;
  flex-shrink: 0;
}

.league-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.league-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: 18px;
  text-align: center;
  transition: .2s ease;
  background: rgba(16, 28, 52, 0.92);
}
.league-item:hover {
  transform: translateY(-3px);
  background: var(--glass-strong);
}
.league-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.league-item span { font-size: 13px; color: var(--muted); }

.match-list {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.match-card {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius);
  transition: .2s ease;
  background: rgba(16, 28, 52, 0.94);
  position: relative;
  z-index: 1;
}
.match-card:hover {
  background: var(--glass-strong);
  transform: translateY(-2px);
}
.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}
.league-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d7e2f5;
}
.league-tag img { border-radius: 4px; }
.status {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.status-live { background: rgba(255,93,108,.22); color: var(--live); }
.status-upcoming { background: rgba(78,161,255,.20); color: var(--accent2); }
.status-finished { background: rgba(73,209,139,.18); color: var(--ok); }

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.team {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.team.away { justify-content: flex-end; text-align: right; }
.team img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  padding: 4px;
}
.score {
  min-width: 72px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  color: #fff;
}

.two-col {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 18px;
  align-items: start;
}
.two-col > * { min-width: 0; }
.panel {
  border-radius: 22px;
  padding: 20px;
  background: rgba(16, 28, 52, 0.94);
}
.news-list { display: grid; gap: 12px; }
.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: .2s;
  align-items: center;
}
.news-item:hover { background: rgba(255,255,255,.06); }
.news-item img {
  width: 110px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  background: #1a2a48;
}
.news-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.4;
  color: #fff;
}
.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.faq-list { position: relative; z-index: 1; }
.faq-list details {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  background: rgba(16, 28, 52, 0.94);
  position: relative;
  z-index: 1;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}
.faq-list p {
  color: var(--muted);
  margin: 10px 0 0;
}

.about-box {
  border-radius: 22px;
  padding: 24px;
  background: rgba(16, 28, 52, 0.95);
  position: relative;
  z-index: 1;
}
.about-box h1,
.about-box h2 { margin-top: 0; color: #fff; }
.about-box h3 { margin: 22px 0 8px; font-size: 17px; color: #fff; }
.about-box p, .about-box li { color: var(--muted); }
.about-box ul { padding-left: 18px; }

.page-title {
  margin: 0 0 18px;
  font-size: 28px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: var(--accent2); }

.play-box {
  border-radius: 22px;
  padding: 24px;
  background: rgba(16, 28, 52, 0.95);
  position: relative;
  z-index: 1;
}
.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.signal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(61,214,198,.35);
  background: rgba(61,214,198,.18);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}
.signal-btn:hover { background: rgba(61,214,198,.28); }
.player-frame {
  min-height: 280px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(8, 14, 28, 0.85);
  position: relative;
  z-index: 1;
}

.article {
  border-radius: 22px;
  padding: 28px;
  background: rgba(16, 28, 52, 0.95);
  position: relative;
  z-index: 1;
}
.article h1 { margin-top: 0; font-size: 28px; line-height: 1.35; color: #fff; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}
.article-content { color: #d7e2f5; font-size: 16px; }
.article-content p { margin: 0 0 16px; }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.pager a { color: var(--accent2); font-size: 14px; }

.site-footer {
  margin: 0 auto 20px;
  width: min(1180px, calc(100% - 32px));
  border-radius: 24px;
  padding: 24px;
  background: rgba(12, 22, 42, 0.96);
  position: relative;
  z-index: 1;
}
.footer-about {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.footer-about img { border-radius: 8px; }
.footer-about p { margin: 0; color: var(--muted); font-size: 14px; }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}
.friend-links span { color: var(--muted); }
.friend-links a { color: #c9d7ef; }
.friend-links a:hover { color: var(--accent); }
.copyright { margin: 0; color: #8fa3c4; font-size: 12px; }

.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border-radius: 18px;
  background: rgba(16, 28, 52, 0.94);
}

/* GSAP 动画前保证可见，避免透明度卡在 0 */
.hero,
.league-item,
.match-card,
.faq-list details {
  opacity: 1 !important;
  visibility: visible;
}

@media (max-width: 980px) {
  .league-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header {
    border-radius: 20px;
    top: 8px;
    z-index: 200;
  }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
    background: rgba(10, 18, 34, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 210;
  }
  .site-nav.open { display: flex; }
  .header-inner { position: relative; }
  .league-grid { grid-template-columns: repeat(2, 1fr); }
  .match-teams { grid-template-columns: 1fr; gap: 8px; }
  .team, .team.away { justify-content: flex-start; text-align: left; }
  .score { order: -1; text-align: left; }
  .news-item { grid-template-columns: 90px 1fr; }
  .news-item img { width: 90px; height: 64px; }
  .hero { padding: 28px 20px; }
  .article { padding: 20px; }
  .pager { flex-direction: column; }
  .site-main { padding-top: 20px; }
}
