@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --bg-0: #07101f;
  --bg-1: #0b1a33;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(125, 211, 252, 0.28);
  --cyan: #38bdf8;
  --cyan-soft: #7dd3fc;
  --cyan-deep: #0284c7;
  --text: #eef7ff;
  --text-muted: #93a9c4;
  --live: #fb7185;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(2, 12, 30, 0.45);
  --font: "Outfit", "Noto Sans SC", "PingFang SC", "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(900px 500px at 8% -10%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(800px 480px at 95% 5%, rgba(99, 102, 241, 0.18), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(14, 165, 233, 0.12), transparent 55%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 55%, #081427);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
}
.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.08), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.07), transparent 40%);
  z-index: 0;
}
a { color: var(--cyan-soft); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1140px, calc(100% - 28px)); margin: 0 auto; position: relative; z-index: 1; }

.glass-card, .glass-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: rgba(7, 16, 31, 0.72);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.45), 0 8px 24px rgba(14, 165, 233, 0.25);
}
.brand-text {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, #e0f2fe, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
}
.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  border-color: var(--glass-border);
  background: var(--glass-strong);
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: 12px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cyan-soft);
}

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

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 46px 40px;
  margin-bottom: 36px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan-soft);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.25;
  color: #f0f9ff;
}
.hero p {
  margin: 0;
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.55);
  color: #04101c;
  background: linear-gradient(135deg, #e0f2fe, var(--cyan));
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.28);
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan-soft);
  box-shadow: none;
}
.btn:hover { filter: brightness(1.06); color: #04101c; }
.btn.secondary:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.section { margin-bottom: 40px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.18);
  padding-bottom: 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #f0f9ff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sec-icon { flex-shrink: 0; }
.section-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.92rem; }
.section-head a { font-size: 0.9rem; }

.league-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.league-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px;
  border-radius: var(--radius);
  color: var(--text);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.league-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.55);
  background: var(--glass-strong);
  color: #fff;
}
.league-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(14, 165, 233, 0.25));
}
.league-card span { font-weight: 600; font-size: 0.9rem; }
.league-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.league-title img { width: 36px; height: 36px; object-fit: contain; }

.match-list { display: grid; gap: 12px; }
.match-card {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius);
  color: inherit;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.match-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-2px);
  background: var(--glass-strong);
  color: inherit;
}
.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.match-meta .league {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan-soft);
}
.match-meta .league img { width: 18px; height: 18px; object-fit: contain; }
.badge {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  color: var(--cyan-soft);
  font-size: 0.78rem;
  background: rgba(56, 189, 248, 0.08);
}
.status-live .badge {
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(251, 113, 133, 0.15);
  color: #fecdd3;
}
.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.team.away { justify-content: flex-end; text-align: right; }
.team img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.team span {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score {
  min-width: 72px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan-soft);
}

.about-box, .faq-box, .content-card { padding: 24px; border-radius: var(--radius); }
.about-box h2, .faq-box h2, .content-card h1 {
  margin-top: 0;
  color: #f0f9ff;
}
.about-box h3 { color: var(--cyan); margin: 22px 0 8px; font-size: 1.05rem; }
.about-box p, .faq-answer p, .article-body p { color: var(--text-muted); }
.about-box ul { color: var(--text-muted); padding-left: 1.2em; }

.faq-intro {
  margin: -4px 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}
.faq-item[open] {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.08);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  position: relative;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 16px 16px; }
.faq-answer p { margin: 0; }

.news-list { display: grid; gap: 12px; }
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius);
  color: inherit;
}
.news-item:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: var(--glass-strong);
  color: inherit;
}
.news-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(7, 16, 31, 0.6);
}
.news-item h3 { margin: 0 0 8px; font-size: 1.05rem; color: #f0f9ff; }
.news-item p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.news-meta { margin-top: 8px; color: var(--text-muted); font-size: 0.82rem; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.article-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
}
.article-body { color: var(--text); font-size: 1.02rem; }
.article-body img { margin: 16px auto; border-radius: 12px; }
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.pager a {
  padding: 12px 16px;
  color: var(--cyan-soft);
  max-width: 48%;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}
.pager span {
  color: var(--text-muted);
  padding: 12px 0;
}
.news-pager { justify-content: center; }
.news-pager a, .news-pager .page-info { max-width: none; }

.match-detail-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  text-align: center;
  margin: 24px 0;
}
.match-detail-score .team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.match-detail-score img { width: 72px; height: 72px; object-fit: contain; }
.match-detail-score .big-score {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--cyan-soft);
}
.stream-box {
  margin-top: 20px;
  padding: 18px;
  border: 1px dashed var(--glass-border);
  border-radius: 14px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.site-footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(4, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  padding: 36px 0 28px;
  color: var(--text-muted);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}
.footer-about strong {
  display: block;
  color: #e0f2fe;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.friend-links {
  margin: 18px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.friend-links a { color: var(--text-muted); }
.friend-links a:hover { color: var(--cyan); }
.copyright { margin: 0; opacity: 0.8; }

.empty {
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  border-radius: var(--radius);
}

@media (max-width: 1100px) {
  .league-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .league-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(7, 16, 31, 0.96);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 16px 18px;
    flex-direction: column;
    z-index: 60;
  }
  .site-nav.open { display: flex; }
  .hero { padding: 30px 18px; }
  .league-grid { grid-template-columns: repeat(2, 1fr); }
  .news-item { grid-template-columns: 1fr; }
  .news-item img { height: 160px; }
  .match-teams { grid-template-columns: 1fr; gap: 8px; }
  .team.away { justify-content: flex-start; text-align: left; }
  .score { order: -1; margin: 4px 0; }
  .badge { margin-left: 0; }
  .pager { flex-direction: column; }
  .pager a { max-width: 100%; }
  .match-detail-score { gap: 12px; }
  .match-detail-score .big-score { font-size: 1.8rem; }
}
