:root {
  --bg: #070b14;
  --bg-2: #0d1526;
  --panel: rgba(14, 24, 45, 0.82);
  --panel-border: rgba(56, 189, 248, 0.22);
  --text: #e8f1ff;
  --muted: #8ea0bc;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --accent: #38bdf8;
  --live: #f43f5e;
  --ok: #34d399;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7dd3fc; }
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
.container { width: min(1120px, 92%); margin: 0 auto; }

.tech-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(59, 130, 246, 0.14), transparent 50%),
    linear-gradient(180deg, #070b14 0%, #0a1220 50%, #070b14 100%);
}
.tech-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.78);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700;
}
.brand img {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 0 18px rgba(34, 211, 238, 0.25);
}
.brand-text {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #e0f2fe, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 999px; font-size: 0.92rem;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--text);
  background: rgba(34, 211, 238, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.25);
}
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--panel-border);
  background: var(--panel); border-radius: 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--cyan);
}

.site-main { padding: 24px 0 56px; }

.hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
}
.hero-panel {
  position: relative;
  padding: 36px 28px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(14, 28, 52, 0.92), rgba(8, 16, 32, 0.88)),
    url('/assets/images/hero-grid.png') center/cover;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.04);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25; margin-bottom: 12px; max-width: 16ch;
}
.hero p { color: var(--muted); max-width: 46ch; margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; font-size: 0.92rem;
  border: 1px solid transparent; transition: .2s ease;
}
.btn-primary {
  background: linear-gradient(90deg, #0891b2, #2563eb);
  color: #fff; box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost {
  color: var(--text); border-color: rgba(56, 189, 248, 0.3); background: rgba(14,24,45,.5);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.section { margin-top: 36px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 1.35rem;
  display: flex; align-items: center; gap: 8px;
}
.section-head h2::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
}
.section-head p, .section-desc { color: var(--muted); font-size: 0.9rem; }
.more-link { color: var(--muted); font-size: 0.88rem; }

.league-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.league-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-border);
  color: var(--text); transition: .2s ease;
}
.league-item:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.12);
}
.league-item img { width: 32px; height: 32px; object-fit: contain; }

.match-list { display: grid; gap: 12px; }
.match-card {
  display: grid; grid-template-columns: 1fr auto; gap: 12px 18px;
  align-items: center;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-border);
}
.match-meta {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  color: var(--muted); font-size: 0.82rem;
}
.league-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.status-pill {
  padding: 2px 8px; border-radius: 999px; font-size: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.status-live { color: #fff; background: var(--live); border-color: transparent; animation: pulse 1.6s infinite; }
.status-upcoming { color: var(--cyan); background: rgba(34,211,238,.1); }
.status-finished, .status-replay { color: var(--ok); background: rgba(52,211,153,.1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244,63,94,.45); }
  50% { box-shadow: 0 0 0 8px rgba(244,63,94,0); }
}
.match-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; width: 100%;
}
.team { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.team.away { justify-content: flex-end; text-align: right; }
.team img { width: 36px; height: 36px; object-fit: contain; }
.score {
  min-width: 72px; text-align: center; font-weight: 700; font-size: 1.15rem;
  color: var(--cyan); letter-spacing: 0.04em;
}
.match-link {
  justify-self: end;
  padding: 8px 14px; border-radius: 999px; font-size: 0.85rem;
  border: 1px solid rgba(34, 211, 238, 0.35); color: var(--cyan);
  white-space: nowrap;
}
.match-link:hover { background: rgba(34, 211, 238, 0.12); }

.news-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.news-card {
  padding: 18px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-border);
}
.news-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.news-card h3:hover { color: var(--cyan); }
.news-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.news-meta { color: #6f829f; font-size: 0.8rem; }

.panel {
  padding: 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-border);
}
.about-block h2, .faq-block h2 { margin-bottom: 12px; }
.about-block p, .about-block li { color: var(--muted); margin-bottom: 8px; }
.about-block ul { padding-left: 1.2em; margin-bottom: 12px; }
.about-block strong { color: var(--text); }

.faq-item {
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--cyan); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); margin-top: 10px; }

.page-hero {
  padding: 18px 0 8px;
}
.page-hero h1 { font-size: 1.7rem; margin-bottom: 6px; }
.page-hero p { color: var(--muted); }

.article {
  max-width: 820px; margin: 0 auto;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  color: var(--muted); font-size: 0.85rem; margin: 12px 0 20px;
}
.article-content { color: #d5e2f5; }
.article-content p { margin-bottom: 14px; }
.article-nav {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 28px;
  padding-top: 18px; border-top: 1px solid rgba(56,189,248,.15);
}
.article-nav a { color: var(--muted); font-size: 0.9rem; }
.article-nav a:hover { color: var(--cyan); }

.pager {
  display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap;
}
.pager a, .pager span {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--panel-border); color: var(--muted); padding: 0 10px;
}
.pager a:hover, .pager .current {
  color: #fff; background: rgba(34, 211, 238, 0.2); border-color: var(--cyan);
}

.empty {
  text-align: center; color: var(--muted); padding: 36px 12px;
}

.detail-score {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin: 24px 0; text-align: center;
}
.detail-score .side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.detail-score img { width: 64px; height: 64px; object-fit: contain; }
.detail-score .big-score { font-size: 2rem; font-weight: 800; color: var(--cyan); min-width: 100px; }

.site-footer {
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  background: rgba(5, 9, 16, 0.9);
  padding: 28px 0 36px;
  color: var(--muted); font-size: 0.88rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
}
.footer-brand strong { color: var(--text); }
.friend-links {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 12px;
}
.friend-links a { color: var(--muted); }
.friend-links a:hover { color: var(--cyan); }
.copyright { color: #607189; }

@media (max-width: 900px) {
  .league-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .match-card { grid-template-columns: 1fr; }
  .match-link { justify-self: stretch; text-align: center; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none; position: absolute; left: 4%; right: 4%; top: 68px;
    flex-direction: column; padding: 12px;
    background: rgba(10, 16, 28, 0.96); border: 1px solid var(--panel-border);
    border-radius: 14px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .hero-panel { padding: 28px 18px; }
  .team span { font-size: 0.92rem; }
  .match-teams { gap: 6px; }
  .score { min-width: 56px; font-size: 1rem; }
  .league-grid { grid-template-columns: 1fr 1fr; }
  .detail-score { gap: 12px; }
  .detail-score img { width: 48px; height: 48px; }
  .article-nav { flex-direction: column; }
}
