:root {
  --bg: #070b16;
  --bg-2: #0e1630;
  --card: rgba(18, 28, 58, 0.72);
  --card-border: rgba(120, 170, 255, 0.22);
  --text: #e8eefc;
  --muted: #9aabd0;
  --accent: #3de7ff;
  --accent-2: #7b5cff;
  --accent-3: #ff4d8d;
  --success: #2dff9a;
  --warn: #ffb020;
  --danger: #ff5d7a;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", "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(1200px 600px at 10% -10%, #1a2758 0%, transparent 55%),
              radial-gradient(900px 500px at 90% 0%, #3a1a5c 0%, transparent 50%),
              linear-gradient(180deg, var(--bg), #050812 60%, #04060f);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}
.bg-orb--1 { width: 360px; height: 360px; background: #3de7ff; top: 80px; left: -80px; }
.bg-orb--2 { width: 420px; height: 420px; background: #7b5cff; top: 40%; right: -120px; }
.bg-orb--3 { width: 280px; height: 280px; background: #ff4d8d; bottom: 10%; left: 30%; }

.site-header, .site-main, .site-footer { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 22, 0.72);
  border-bottom: 1px solid rgba(125, 160, 255, 0.15);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  flex-shrink: 0;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(61, 231, 255, 0.35), inset 0 0 0 1px rgba(255,255,255,0.2);
  transform: perspective(400px) rotateY(-12deg) rotateX(8deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; letter-spacing: 0.5px; }
.brand-text em { font-style: normal; font-size: 0.78rem; color: var(--muted); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}
.site-nav a {
  display: inline-block;
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.92rem;
}
.site-nav li.active a,
.site-nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(61,231,255,0.2), rgba(123,92,255,0.25));
  box-shadow: 0 0 0 1px rgba(61,231,255,0.25);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  display: block;
}

.hero {
  padding: 42px 0 18px;
}
.hero-panel {
  position: relative;
  padding: 36px 32px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(61,231,255,0.12), rgba(123,92,255,0.08) 45%, rgba(255,77,141,0.08)),
    rgba(14, 22, 48, 0.85);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 220px;
  background: radial-gradient(circle, rgba(61,231,255,0.35), transparent 65%);
  pointer-events: none;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 1px;
}
.hero p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.02rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #dce7ff;
  font-size: 0.86rem;
}

.section { padding: 28px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  position: relative;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.section-head p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.league-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.league-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
  transform: perspective(600px) rotateX(4deg);
}
.league-chip:hover {
  transform: perspective(600px) rotateX(0deg) translateY(-4px);
  box-shadow: 0 16px 36px rgba(61,231,255,0.18);
}
.league-chip img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.match-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.match-card {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease;
  transform: perspective(800px) rotateX(2deg);
}
.match-card:hover {
  transform: perspective(800px) rotateX(0) translateY(-3px);
  border-color: rgba(61,231,255,0.45);
  color: inherit;
}
.match-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.84rem;
  color: var(--muted);
}
.league-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dff7ff;
}
.league-tag img { width: 18px; height: 18px; object-fit: contain; }
.match-card__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.team:last-child { flex-direction: row-reverse; text-align: right; }
.team img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
}
.team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.score {
  min-width: 72px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(61,231,255,0.35);
}
.score.vs { color: var(--muted); font-size: 1rem; }

.status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid transparent;
}
.status--live { color: #fff; background: rgba(255,93,122,0.2); border-color: rgba(255,93,122,0.45); }
.status--upcoming { color: var(--accent); background: rgba(61,231,255,0.1); border-color: rgba(61,231,255,0.3); }
.status--finished,
.status--replay { color: var(--muted); background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.news-card {
  display: block;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  color: inherit;
  height: 100%;
  transition: transform .2s ease;
}
.news-card:hover { transform: translateY(-3px); color: inherit; }
.news-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.45;
}
.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #7f90b8;
}

.content-panel,
.detail-panel,
.about-panel,
.faq-panel {
  padding: 24px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.page-title {
  margin: 28px 0 18px;
  font-size: 1.6rem;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: #fff;
}
.faq-item p { margin: 0; color: var(--muted); }

.about-panel h2,
.detail-panel h1 { margin-top: 0; }
.about-panel h3 { margin: 22px 0 10px; color: #dff7ff; }
.about-panel p, .about-panel li { color: var(--muted); }
.about-panel ul { padding-left: 1.2em; }

.signal-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.signal-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(61,231,255,0.15), rgba(123,92,255,0.18));
  border: 1px solid rgba(61,231,255,0.28);
  color: #fff;
  font-weight: 600;
}
.signal-btn:hover { color: #fff; filter: brightness(1.08); }

.article-body {
  color: #d5dff7;
  font-size: 1.02rem;
}
.article-body p { margin: 0 0 1em; }
.article-lead {
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: rgba(61,231,255,0.08);
  color: var(--muted);
  margin-bottom: 18px;
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.article-nav a { color: #cfe9ff; max-width: 48%; }

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 16px;
}

.site-footer {
  margin-top: 40px;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(125,160,255,0.12);
  background: rgba(0,0,0,0.25);
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.footer-brand img { border-radius: 10px; }
.footer-brand p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
}
.friend-links a { color: #a9bce8; }
.copyright { margin: 0; color: #7182a8; font-size: 0.84rem; }

.play-stage {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(160deg, #101a38, #1a1040);
  border: 1px solid var(--card-border);
  text-align: center;
  padding: 28px;
}
.play-stage .spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .league-grid { grid-template-columns: repeat(3, 1fr); }
  .match-list, .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    background: rgba(10, 16, 36, 0.96);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { display: block; }
  .hero-panel { padding: 24px 18px; }
  .match-card__teams { grid-template-columns: 1fr; text-align: center; }
  .team, .team:last-child { justify-content: center; flex-direction: row; text-align: center; }
  .score { margin: 6px 0; }
  .article-nav { flex-direction: column; }
  .article-nav a { max-width: 100%; }
}
