:root {
  --ink: #1a1a1a;
  --paper: #f7f4ef;
  --paper-dark: #ebe4d8;
  --rule: #1a1a1a;
  --accent: #b91c1c;
  --accent-soft: #dc2626;
  --muted: #5c564c;
  --live: #15803d;
  --card: #fffdf9;
  --max: 1120px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse at top, #fff 0%, var(--paper) 55%, var(--paper-dark) 100%);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; vertical-align: middle; border: 0; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 239, 0.94);
  border-bottom: 2px solid var(--rule);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.65rem; font-weight: 700; letter-spacing: 0.04em;
}
.main-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.main-nav a {
  font-size: 0.95rem; font-weight: 600;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.main-nav a.active, .main-nav a:hover {
  border-bottom-color: var(--accent); color: var(--accent);
}
.nav-toggle {
  display: none; width: 42px; height: 42px;
  border: 1.5px solid var(--ink); background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); }

.site-main { padding: 28px 0 56px; }
.masthead {
  border-top: 4px double var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0 22px; margin-bottom: 28px; text-align: center;
}
.masthead .eyebrow {
  font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}
.masthead h1 {
  font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2; margin: 8px 0 10px;
}
.masthead p { color: var(--muted); max-width: 46em; margin: 0 auto; }

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

.league-rail {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.league-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; background: var(--card);
  border: 1px solid #d9d0c2; transition: transform .2s ease, border-color .2s;
}
.league-chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.league-chip img { width: 40px; height: 40px; object-fit: contain; }
.league-chip span { font-size: 0.82rem; font-weight: 600; text-align: center; }

.match-list { display: flex; flex-direction: column; gap: 12px; }
.match-row {
  display: grid; grid-template-columns: 1.1fr 1.6fr auto;
  gap: 12px 18px; align-items: center;
  padding: 16px 18px; background: var(--card);
  border: 1px solid #d9d0c2; border-left: 4px solid var(--ink);
}
.match-row:hover { border-left-color: var(--accent); }
.match-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 0.82rem; color: var(--muted); }
.league-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.league-tag img { width: 18px; height: 18px; object-fit: contain; }
.status { padding: 2px 8px; border: 1px solid currentColor; font-size: 0.75rem; }
.status-live { color: var(--live); }
.status-upcoming { color: #a16207; }
.status-finished { color: var(--muted); }
.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; text-align: right; }
.team img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.score-box { min-width: 64px; text-align: center; font-family: var(--serif); font-size: 1.15rem; }
.score-box .vs { color: var(--muted); font-size: 0.95rem; }
.match-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 7px 14px; font-size: 0.82rem; font-weight: 700;
  border: 1.5px solid var(--ink); background: transparent; cursor: pointer;
}
.btn-live { background: var(--ink); color: #fff; }
.btn-live:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-replay { background: #fff; }
.btn-line { margin: 4px; }

.layout-2col {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px;
}
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  padding: 14px 0; border-bottom: 1px solid #d9d0c2;
}
.news-item h3 { font-family: var(--serif); font-size: 1.05rem; line-height: 1.4; margin-bottom: 6px; }
.news-item .meta { font-size: 0.78rem; color: var(--muted); }
.news-item p { font-size: 0.9rem; color: #3f3a34; margin-top: 6px; }

.faq-list details {
  border-bottom: 1px solid #d9d0c2; padding: 12px 0;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; font-family: var(--serif); list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "Q "; color: var(--accent); }
.faq-list details p { margin-top: 8px; color: var(--muted); padding-left: 1.2em; }

.about-box {
  background: var(--card); border: 1px solid #d9d0c2; padding: 22px 24px;
}
.about-box h2 { font-family: var(--serif); margin-bottom: 12px; font-size: 1.35rem; }
.about-box h3 { font-family: var(--serif); margin: 16px 0 8px; font-size: 1.05rem; }
.about-box p, .about-box li { color: #3f3a34; margin-bottom: 8px; }
.about-box ul { padding-left: 1.2em; list-style: disc; }

.page-banner {
  border-bottom: 2px solid var(--rule); margin-bottom: 22px; padding-bottom: 12px;
}
.page-banner h1 { font-family: var(--serif); font-size: 1.8rem; }
.page-banner p { color: var(--muted); margin-top: 6px; }

.match-detail {
  background: var(--card); border: 1px solid #d9d0c2; padding: 28px 20px; text-align: center;
}
.match-detail .league-line { color: var(--muted); margin-bottom: 8px; }
.match-detail .time-line { font-size: 0.95rem; margin-bottom: 18px; }
.vs-board {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 12px 0 24px;
}
.vs-board .side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vs-board img { width: 72px; height: 72px; object-fit: contain; }
.vs-board .name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.vs-board .mid { font-family: var(--serif); font-size: 1.8rem; }
.signal-box h3 { font-family: var(--serif); margin-bottom: 12px; }
.signal-box .hint { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

.article { background: var(--card); border: 1px solid #d9d0c2; padding: 28px 24px; }
.article h1 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.35; margin-bottom: 12px; }
.article-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.article-lead {
  background: var(--paper-dark); padding: 12px 14px; margin-bottom: 18px;
  border-left: 3px solid var(--accent); font-size: 0.92rem; color: #3f3a34;
}
.article-body { font-size: 1.02rem; line-height: 1.85; }
.article-body p { margin-bottom: 1em; }
.article-nav {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 28px;
  padding-top: 16px; border-top: 1px solid #d9d0c2; font-size: 0.9rem;
}
.article-nav a { max-width: 46%; }

.play-wrap {
  min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center;
}
.play-card {
  background: var(--card); border: 1px solid #d9d0c2; padding: 40px 28px; max-width: 480px; width: 100%;
}
.play-card h1 { font-family: var(--serif); margin-bottom: 10px; }
.spinner {
  width: 36px; height: 36px; margin: 18px auto;
  border: 3px solid #d9d0c2; border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-tip { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed #cfc5b5; }

.site-footer {
  border-top: 3px double var(--rule); padding: 28px 0 36px; background: #efe9df; color: var(--muted); font-size: 0.88rem;
}
.footer-about { margin-bottom: 14px; }
.friend-links { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 14px; }
.friend-links a { color: var(--muted); border-bottom: 1px dotted #9a9184; }
.friend-links a:hover { color: var(--accent); }
.footer-copy p { margin-bottom: 4px; }

@media (max-width: 860px) {
  .layout-2col { grid-template-columns: 1fr; }
  .match-row { grid-template-columns: 1fr; }
  .match-actions { justify-content: flex-start; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--paper); border-bottom: 2px solid var(--rule);
    flex-direction: column; padding: 12px 16px; gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid #d9d0c2; }
  .team span { font-size: 0.9rem; }
  .vs-board img { width: 56px; height: 56px; }
}
