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

/* 蜘蛛直播网 · 杂志排版风 */
:root {
  --ink: #1a1a1a;
  --paper: #f7f3eb;
  --cream: #fffdf8;
  --rule: #1a1a1a;
  --accent: #c0392b;
  --accent-soft: #e8d5c4;
  --muted: #5c5c5c;
  --live: #c0392b;
  --ok: #1f6b3a;
  --card: #fffdf8;
  --shadow: 0 1px 0 rgba(26,26,26,.08);
  --font-display: "Playfair Display", "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-body: "Source Sans 3", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(180deg, #f3efe6 0%, var(--paper) 180px),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(26,26,26,.03) 28px);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,235,.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { border-radius: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem; letter-spacing: .02em;
}
.brand-text span { font-size: .78rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.site-nav a {
  font-size: .95rem; font-weight: 600;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a.active, .site-nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0;
}

/* Hero / masthead */
.masthead {
  padding: 42px 0 28px;
  border-bottom: 3px double var(--rule);
  margin-bottom: 28px;
}
.masthead .eyebrow {
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.masthead h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15; margin: 0 0 12px; font-weight: 700;
}
.masthead .lead {
  max-width: 46rem; color: var(--muted); margin: 0; font-size: 1.05rem;
}

.section { margin: 36px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; border-bottom: 2px solid var(--rule); padding-bottom: 8px; margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--font-display); font-size: 1.55rem; margin: 0; letter-spacing: .01em;
}
.section-head a { font-size: .9rem; color: var(--muted); }

.layout-split {
  display: grid; grid-template-columns: 1.7fr .9fr; gap: 28px;
}

/* Match list — magazine rows */
.match-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.match-row {
  display: grid; grid-template-columns: 160px 110px 1fr;
  gap: 12px; align-items: center;
  padding: 14px 8px; border-bottom: 1px solid rgba(26,26,26,.15);
  background: var(--cream); transition: background .2s ease;
}
.match-row:hover { background: #fff8ee; }
.match-time { font-size: .82rem; color: var(--muted); }
.match-time time { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.status {
  display: inline-block; font-size: .72rem; padding: 1px 6px;
  border: 1px solid currentColor; letter-spacing: .04em;
}
.status.live { color: var(--live); animation: pulse 1.6s ease infinite; }
.status.finished { color: var(--muted); }
.status.upcoming { color: var(--ok); }
@keyframes pulse { 50% { opacity: .55; } }
.match-league { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.match-league img { width: 22px; height: 22px; object-fit: contain; }
.match-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center;
}
.team { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.team.away { justify-content: flex-end; }
.team img { width: 28px; height: 28px; object-fit: contain; }
.score { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; min-width: 52px; text-align: center; }
.score.vs { color: var(--muted); font-size: .95rem; }

/* League chips */
.league-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.league-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; background: var(--cream);
  border: 1px solid rgba(26,26,26,.2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.league-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.league-card img { width: 36px; height: 36px; object-fit: contain; }
.league-card strong { display: block; font-size: .95rem; }
.league-card span { font-size: .75rem; color: var(--muted); }

/* News */
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.news-card {
  background: var(--cream); border-top: 3px solid var(--ink);
  padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s;
}
.news-card:hover { border-top-color: var(--accent); }
.news-card .meta { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.news-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0; line-height: 1.35; }
.news-card p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }

/* About / FAQ editorial blocks */
.editorial {
  background: var(--cream);
  border: 1px solid rgba(26,26,26,.18);
  padding: 28px 26px;
}
.editorial h2 {
  font-family: var(--font-display); margin: 0 0 14px; font-size: 1.6rem;
  border-bottom: 2px solid var(--rule); padding-bottom: 8px;
}
.editorial h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.editorial p, .editorial li { color: #333; }
.editorial ul { padding-left: 1.2em; }
.faq-list details {
  border-bottom: 1px solid rgba(26,26,26,.12);
  padding: 12px 0;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-display); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 8px 0 0; color: var(--muted); }

/* Detail pages */
.page-hero {
  padding: 28px 0 18px; border-bottom: 2px solid var(--rule); margin-bottom: 24px;
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 8px;
}
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }

.match-detail {
  background: var(--cream); border: 1px solid rgba(26,26,26,.15); padding: 28px 20px; text-align: center;
}
.match-detail .versus {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 18px 0;
}
.match-detail .side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.match-detail .side img { width: 72px; height: 72px; object-fit: contain; }
.match-detail .side strong { font-size: 1.15rem; }
.signal-box { margin-top: 22px; }
.signal-box h3 { font-family: var(--font-display); margin-bottom: 12px; }
.signal-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.signal-links a {
  display: inline-block; padding: 10px 18px; border: 2px solid var(--ink);
  font-weight: 700; background: #fff;
}
.signal-links a:hover { background: var(--ink); color: #fff; }

.article { max-width: 760px; margin: 0 auto; }
.article-meta-box {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px;
  background: #f0ebe1; padding: 14px 16px; margin: 16px 0 24px;
  font-size: .85rem; color: var(--muted);
}
.article-meta-box strong { color: var(--ink); }
.article-body { font-size: 1.05rem; }
.article-body p { margin: 0 0 1em; }
.article-nav {
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 2px solid var(--rule); margin-top: 32px; padding-top: 16px;
}
.article-nav a { max-width: 46%; font-size: .92rem; }

.replay-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.replay-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 14px;
  background: var(--cream); border: 1px solid rgba(26,26,26,.12); padding: 12px;
}
.replay-item .thumb {
  background: #e8e0d4; aspect-ratio: 16/10; display: grid; place-items: center;
  font-family: var(--font-display); color: var(--muted); font-size: .85rem;
}
.replay-item h3 { margin: 0 0 6px; font-size: 1.05rem; font-family: var(--font-display); }
.replay-item p { margin: 0; font-size: .88rem; color: var(--muted); }

/* Play page */
.play-wrap {
  min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 40px 16px;
}
.play-wrap .box {
  background: var(--cream); border: 2px solid var(--ink); padding: 36px 28px; max-width: 420px; width: 100%;
}
.play-wrap h1 { font-family: var(--font-display); margin: 0 0 12px; }
.loader {
  width: 36px; height: 36px; border: 3px solid #ddd; border-top-color: var(--accent);
  border-radius: 50%; margin: 18px auto; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer — no column nav links */
.site-footer {
  margin-top: 48px; border-top: 3px double var(--rule);
  background: #efe9de; padding: 28px 0 36px; font-size: .9rem;
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.friend-links { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 12px; }
.friend-links a { color: var(--muted); border-bottom: 1px dotted rgba(26,26,26,.3); }
.copyright { margin: 0; color: var(--muted); font-size: .82rem; }

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

/* Responsive */
@media (max-width: 900px) {
  .layout-split { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .match-row { grid-template-columns: 1fr; gap: 8px; }
  .article-meta-box { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 2px solid var(--rule);
    flex-direction: column; padding: 12px 16px 16px; gap: 4px;
  }
  .site-nav.open { display: flex; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .news-grid, .replay-grid, .league-grid { grid-template-columns: 1fr; }
  .match-teams { grid-template-columns: 1fr; text-align: center; }
  .team, .team.away { justify-content: center; }
  .article-meta-box { grid-template-columns: 1fr; }
  .article-nav { flex-direction: column; }
  .article-nav a { max-width: 100%; }
  .masthead { padding-top: 28px; }
}
