:root {
  --brand: #e60640;
  --brand-dark: #b80032;
  --ink: #141820;
  --muted: #5b6575;
  --bg: #f3f5f8;
  --card: #ffffff;
  --line: #e6eaf0;
  --live: #16a34a;
  --warn: #f59e0b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 24, 32, 0.08);
  --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(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(230, 6, 64, 0.12), transparent 60%),
    radial-gradient(900px 400px at 90% 0%, rgba(29, 66, 138, 0.1), transparent 55%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 50; }
.header-bar {
  background: linear-gradient(90deg, var(--brand), #ff4d6d 55%, var(--brand-dark));
  box-shadow: 0 8px 24px rgba(230, 6, 64, 0.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.logo img { height: 42px; width: auto; border-radius: 8px; transition: transform .25s ease; }
.logo:hover img { transform: scale(1.04) rotate(-1deg); }
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 14px;
  transition: background .2s ease, transform .2s ease;
}
.main-nav a:hover, .main-nav a.on { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.nav-toggle {
  display: none; background: rgba(255,255,255,.2); border: 0; color: #fff;
  font-size: 22px; width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
}

.site-main { padding: 24px 0 48px; }
.hero {
  background: linear-gradient(135deg, #1a1f2c, #2a1330 50%, #e60640);
  color: #fff; border-radius: 22px; padding: 28px 28px 24px; margin-bottom: 22px;
  overflow: hidden; position: relative; box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,220,40,.35), transparent 70%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 8px; position: relative; z-index: 1; }
.hero p { opacity: .92; max-width: 720px; position: relative; z-index: 1; }
.hero-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: #fff; color: var(--brand); font-weight: 700; transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.btn.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }

.section { margin-bottom: 28px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.section-head h2 {
  font-size: 22px; display: flex; align-items: center; gap: 10px;
}
.section-head h2 img { width: 28px; height: 28px; border-radius: 8px; }
.section-head a.more { color: var(--brand); font-size: 14px; }

.league-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.league-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 10px; text-align: center; box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease;
}
.league-item:hover { transform: translateY(-4px) scale(1.02); border-color: #ffb3c3; }
.league-item img { width: 48px; height: 48px; margin: 0 auto 8px; }
.league-item span { font-size: 14px; font-weight: 600; }

.match-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.match-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.match-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20,24,32,.12); }
.match-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.league-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.league-tag img { border-radius: 50%; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 14px; font-weight: 600; }
.team img { width: 40px; height: 40px; border-radius: 50%; background: #f8fafc; }
.score-box { text-align: center; min-width: 72px; }
.score-box strong { display: block; font-size: 20px; letter-spacing: .5px; }
.score-box .st { font-size: 12px; color: var(--muted); font-style: normal; }
.status-1 .score-box .st { color: var(--live); font-weight: 700; }
.status-0 .score-box .st { color: var(--warn); }
.status-2 .score-box .st { color: var(--muted); }

.news-list { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.news-item {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: #fff5f7; }
.news-item .title { font-weight: 600; }
.news-item .meta { color: var(--muted); font-size: 13px; white-space: nowrap; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.panel h2, .panel h3 { margin-bottom: 10px; }
.faq-item { border-top: 1px solid var(--line); padding: 12px 0; }
.faq-item:first-of-type { border-top: 0; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 8px; color: var(--muted); }

.about-box p { margin-bottom: 10px; color: #333; }
.about-box h3 { margin: 16px 0 8px; font-size: 18px; }
.about-box ul { padding-left: 18px; margin-bottom: 10px; color: #333; }

.match-detail .vs-board {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; text-align: center;
  padding: 18px 8px;
}
.match-detail .vs-board img { width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 50%; }
.play-lines { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.play-lines a {
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.play-lines a:hover { background: var(--brand-dark); transform: translateY(-2px); }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: 13px;
  margin: 8px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.article-body { font-size: 16px; color: #222; }
.article-body p { margin-bottom: 14px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.pager a { color: var(--brand); font-weight: 600; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--brand); }

.play-wait {
  min-height: 50vh; display: grid; place-items: center; text-align: center; padding: 40px 16px;
}
.play-wait .spinner {
  width: 48px; height: 48px; border: 4px solid #ffd0db; border-top-color: var(--brand);
  border-radius: 50%; margin: 0 auto 16px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer {
  background: #161b26; color: #c9d1dc; padding: 28px 0 36px; margin-top: 20px;
}
.friend-links { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 12px; align-items: center; }
.friend-links a { color: #fff; opacity: .85; }
.friend-links a:hover { opacity: 1; text-decoration: underline; }
.footer-copy { font-size: 13px; opacity: .8; margin-top: 4px; }

.empty { padding: 28px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--radius); }

@media (max-width: 900px) {
  .league-grid { grid-template-columns: repeat(4, 1fr); }
  .match-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none; position: absolute; left: 14px; right: 14px; top: 68px;
    background: #fff; border-radius: 14px; padding: 10px; flex-direction: column;
    box-shadow: var(--shadow); z-index: 60;
  }
  .main-nav.open { display: flex; }
  .main-nav a { color: var(--ink); }
  .main-nav a.on, .main-nav a:hover { background: #ffe8ee; color: var(--brand); }
  .league-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 22px 18px; }
  .match-detail .vs-board img { width: 56px; height: 56px; }
  .news-item { flex-direction: column; }
}
@media (max-width: 420px) {
  .league-grid { grid-template-columns: repeat(2, 1fr); }
}
