/* 蜘蛛直播网 · 扁平风 */
:root {
  --bg: #f3f6f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #0ea56e;
  --brand-dark: #0b8a5b;
  --brand-soft: #d8f5e9;
  --live: #ef4444;
  --radius: 10px;
  --shadow: none;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; vertical-align: middle; }
.wrap { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }

/* header */
.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.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: 800;
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.brand img { border-radius: 8px; }
.brand-name { white-space: nowrap; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
}
.nav-link:hover, .nav-link.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border: 2px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
}

.page { padding: 22px 0 48px; }

/* hero flat */
.hero {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.12);
  border-radius: 24px;
  transform: rotate(18deg);
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.hero p {
  margin: 0;
  opacity: .95;
  max-width: 46rem;
  position: relative;
  z-index: 1;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.tag {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}

/* league bar */
.league-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.league-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  font-size: .9rem;
}
.league-chip.is-active,
.league-chip:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* panels */
.section-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
}
.panel {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}
.panel-head h2 { margin: 0; font-size: 1.1rem; }
.panel-head a { font-size: .9rem; font-weight: 700; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
}

/* match rows */
.m-list { display: flex; flex-direction: column; gap: 8px; }
.m-row {
  display: grid;
  grid-template-columns: 110px 72px 1fr 70px 1fr 78px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}
.m-row.is-live {
  border-color: #fecaca;
  background: #fff5f5;
}
.m-time { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.m-time b { display: block; color: var(--text); font-size: .95rem; }
.m-league {
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 6px;
  text-align: center;
  padding: 4px 2px;
}
.m-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .92rem;
  min-width: 0;
}
.m-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-team.home { justify-content: flex-end; }
.m-team.away { justify-content: flex-start; }
.m-team img {
  width: 32px; height: 32px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}
.m-score {
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
}
.m-score.wait { color: var(--muted); font-size: .9rem; }
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  font-size: .85rem;
}
.m-btn.is-live { background: var(--live); }
.m-btn:hover { filter: brightness(.95); }
.empty { color: var(--muted); padding: 18px 8px; text-align: center; }

/* news */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item a {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  color: inherit;
}
.news-img {
  width: 120px; height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-info h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.4;
}
.news-info p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-date { margin-top: 6px; font-size: .8rem; color: var(--muted); }

.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.side-list li:last-child { border-bottom: 0; }
.side-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
  margin-bottom: 4px;
}
.side-teams { font-weight: 700; margin-bottom: 6px; }
.side-btn {
  display: inline-block;
  padding: 4px 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 700;
}
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.topic-list a {
  display: block;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
}
.topic-list a:hover { border-color: var(--brand); background: var(--brand-soft); }

/* about / faq */
.about, .faq {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
}
.about h2, .faq h2 { margin-top: 0; }
.about p { color: #334155; }
.faq-item {
  border: 2px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 0 14px;
  background: #fafbfc;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-body { padding: 0 0 12px; color: var(--muted); }

/* article */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: .88rem;
  margin: 8px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.article-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #1e293b;
}
.article-body img { border-radius: 8px; margin: 10px 0; }
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
}
.article-nav a {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
}
.article-nav a:hover { border-color: var(--brand); background: var(--brand-soft); }

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.pager a, .pager span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  color: var(--text);
  padding: 0 10px;
}
.pager .current { background: var(--brand); color: #fff; border-color: var(--brand); }

.play-box {
  text-align: center;
  padding: 28px 16px;
}
.play-box .m-btn { min-width: 140px; height: 44px; font-size: 1rem; }

/* footer — 无栏目超链接 */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 28px 0 36px;
  margin-top: 20px;
}
.footer-brand { margin: 0 0 8px; color: #fff; font-weight: 800; font-size: 1.05rem; }
.footer-desc { margin: 0 0 12px; max-width: 48rem; }
.footer-links { margin: 0 0 10px; }
.footer-links a { color: #94a3b8; margin-right: 12px; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin: 0; font-size: .85rem; color: #64748b; }

/* responsive */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .m-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "time league"
      "home score"
      "away score"
      "btn btn";
  }
  .m-time { grid-area: time; }
  .m-league { grid-area: league; justify-self: end; padding: 4px 8px; }
  .m-team.home { grid-area: home; justify-content: flex-start; }
  .m-team.away { grid-area: away; }
  .m-score { grid-area: score; align-self: center; font-size: 1.2rem; }
  .m-btn { grid-area: btn; width: 100%; }
}
@media (max-width: 720px) {
  .menu-btn { display: flex; }
  .nav {
    display: none;
    position: absolute;
    left: 14px; right: 14px; top: 64px;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 10px;
    flex-direction: column;
    padding: 8px;
    z-index: 60;
  }
  .nav.is-open { display: flex; }
  .site-header { position: relative; }
  .news-item a { grid-template-columns: 90px 1fr; }
  .news-img { width: 90px; height: 64px; }
  .hero { padding: 22px 18px; }
}
