:root {
  --paper: #f5e6c8;
  --paper-deep: #e8d4a8;
  --ink: #2a1810;
  --burgundy: #6b1d1d;
  --burgundy-deep: #4a1212;
  --forest: #1a3a2a;
  --gold: #c4a35a;
  --rule: rgba(42, 24, 16, 0.18);
  --card: #fff8ea;
  --muted: #6a5342;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at top, rgba(196,163,90,.18), transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(107,29,29,.03) 28px),
    linear-gradient(180deg, #f8ecd4 0%, var(--paper) 40%, #edd9b0 100%);
  font-family: "Noto Serif SC", "Songti SC", serif;
  line-height: 1.7;
  min-height: 100vh;
}
a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--burgundy-deep); text-decoration: underline; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.wrap { width: min(1100px, 94%); margin: 0 auto; }

.site-header {
  background: linear-gradient(180deg, var(--burgundy-deep), var(--burgundy));
  border-bottom: 4px double var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--paper);
  text-decoration: none;
}
.brand img {
  display: block;
  height: 45px;
  width: auto;
  border: 1px solid var(--gold);
}
.brand-text {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: 1.45rem;
  letter-spacing: .08em;
  color: var(--paper);
}
.site-nav { display: flex; gap: .35rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--paper);
  padding: .35rem .75rem;
  border: 1px solid transparent;
  font-size: .95rem;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.on {
  border-color: var(--gold);
  background: rgba(196,163,90,.15);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--paper);
  padding: .3rem .7rem;
  font-family: inherit;
}

.site-main { padding: 1.4rem 0 2.5rem; }

.hero {
  text-align: center;
  padding: 1.8rem 1rem 1.2rem;
  border: 2px solid var(--burgundy);
  background: var(--card);
  box-shadow: 6px 6px 0 rgba(107,29,29,.12);
  margin-bottom: 1.5rem;
  position: relative;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: .6rem; right: .6rem;
  height: 1px;
  background: var(--gold);
}
.hero::before { top: .45rem; }
.hero::after { bottom: .45rem; }
.hero h1 {
  margin: 0 0 .4rem;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--burgundy);
  letter-spacing: .12em;
}
.hero p { margin: 0; color: var(--muted); }

.section {
  margin-bottom: 1.6rem;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem 1.2rem;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  border-bottom: 2px solid var(--burgundy);
  padding-bottom: .45rem;
  margin-bottom: .9rem;
}
.section-head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--burgundy);
  font-family: "ZCOOL XiaoWei", serif;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.section-head h2 img { width: 22px; height: 22px; }
.section-head a { font-size: .9rem; }

.league-bar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: .6rem;
  margin-bottom: 1.4rem;
}
.league-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .7rem .4rem;
  background: var(--card);
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s;
}
.league-chip:hover {
  border-color: var(--burgundy);
  transform: translateY(-2px);
  text-decoration: none;
}
.league-chip img { width: 40px; height: 40px; }
.league-chip span { font-size: .85rem; }

.match-row {
  border-bottom: 1px dashed var(--rule);
  padding: .75rem 0;
}
.match-row:last-child { border-bottom: 0; }
.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .8rem;
  align-items: center;
  color: var(--muted);
  font-size: .82rem;
  margin-bottom: .35rem;
}
.league-ico { border-radius: 50%; }
.st {
  padding: .05rem .4rem;
  border: 1px solid currentColor;
  font-size: .75rem;
}
.st-0 { color: var(--forest); }
.st-1 { color: #a11; font-weight: 700; }
.st-2 { color: var(--muted); }
.match-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .6rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding: .25rem 0;
}
.match-main:hover { text-decoration: none; background: rgba(196,163,90,.12); }
.team {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.team.away { justify-content: flex-end; text-align: right; }
.team img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rule); }
.score {
  min-width: 4.2rem;
  text-align: center;
  font-weight: 700;
  color: var(--burgundy);
  font-size: 1.1rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.news-card {
  border: 1px solid var(--rule);
  background: #fffaf0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.news-card .body { padding: .7rem .8rem 1rem; flex: 1; }
.news-card h3 { margin: 0 0 .4rem; font-size: 1rem; line-height: 1.45; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--burgundy); }
.news-meta { color: var(--muted); font-size: .8rem; }

.about-box, .faq-box {
  border: 1px solid var(--burgundy);
  background: linear-gradient(180deg, #fffaf0, var(--paper-deep));
  padding: 1rem 1.1rem;
}
.about-box h2, .faq-box h2 {
  margin: 0 0 .8rem;
  color: var(--burgundy);
  font-family: "ZCOOL XiaoWei", serif;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .4rem;
}
.about-box h3 { margin: 1rem 0 .4rem; font-size: 1.05rem; color: var(--forest); }
.about-box p, .faq-item p { margin: .35rem 0; color: var(--ink); }
.faq-item { border-bottom: 1px dashed var(--rule); padding: .7rem 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item strong { color: var(--burgundy); }

.article {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.2rem 1.3rem 1.6rem;
}
.article h1 {
  margin: 0 0 .6rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--burgundy);
  font-family: "ZCOOL XiaoWei", serif;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  color: var(--muted);
  font-size: .85rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: .55rem 0;
  margin-bottom: 1rem;
}
.article-content p { margin: 0 0 1rem; }
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 2px solid var(--burgundy);
  font-size: .92rem;
}

.match-detail {
  background: var(--card);
  border: 2px solid var(--burgundy);
  padding: 1.2rem;
  text-align: center;
}
.match-detail .vs-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.match-detail .vs-line .t { display: flex; flex-direction: column; align-items: center; gap: .4rem; min-width: 110px; }
.match-detail .vs-line img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); }
.match-detail .big-score { font-size: 2rem; color: var(--burgundy); font-weight: 700; min-width: 5rem; }
.signals { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
.signals a {
  display: inline-block;
  padding: .55rem 1.1rem;
  background: var(--burgundy);
  color: var(--paper);
  border: 1px solid var(--gold);
  text-decoration: none;
}
.signals a:hover { background: var(--burgundy-deep); text-decoration: none; color: #fff; }

.play-box {
  background: #1a100c;
  color: var(--paper);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gold);
  padding: 2rem 1rem;
  text-align: center;
}
.play-box h1 { color: var(--gold); font-family: "ZCOOL XiaoWei", serif; }
.play-box .loading { margin-top: 1rem; color: #d8c29a; }

.site-footer {
  background: var(--burgundy-deep);
  color: #e8d4a8;
  padding: 1.4rem 0 1.8rem;
  border-top: 4px double var(--gold);
  margin-top: 1rem;
}
.site-footer a { color: var(--gold); }
.footer-brand { margin: 0 0 .4rem; font-size: 1.1rem; font-family: "ZCOOL XiaoWei", serif; }
.footer-desc, .friend-links, .copyright { margin: .35rem 0; font-size: .88rem; opacity: .92; }
.friend-links a { margin-right: .8rem; }

.page-title {
  margin: 0 0 1rem;
  font-family: "ZCOOL XiaoWei", serif;
  color: var(--burgundy);
  font-size: 1.6rem;
  border-left: 5px solid var(--gold);
  padding-left: .6rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: .5rem;
  }
  .site-nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .brand-text { font-size: 1.15rem; }
  .match-main { grid-template-columns: 1fr; text-align: center; gap: .35rem; }
  .team, .team.away { justify-content: center; text-align: center; }
  .article { padding: 1rem; }
  .hero { padding: 1.2rem .7rem; }
}
