:root {
  --cinnabar: #c23a2b;
  --cinnabar-deep: #8f1f16;
  --gold: #c9a227;
  --gold-soft: #e8d5a3;
  --ink: #2a1a12;
  --muted: #6b5344;
  --paper: #f7efe2;
  --card: rgba(255, 249, 238, 0.92);
  --line: rgba(194, 58, 43, 0.18);
  --jade: #2f6b4f;
  --shadow: 0 10px 28px rgba(90, 40, 20, 0.12);
  --radius: 6px;
  --font-display: "Ma Shan Zheng", "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--cinnabar-deep); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.illo-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(201,162,39,0.18), transparent 42%),
    radial-gradient(ellipse at 88% 18%, rgba(194,58,43,0.12), transparent 40%),
    linear-gradient(180deg, #f3e6d0 0%, #faf3e6 42%, #efe4d2 100%);
}
.illo-bg .blob { position: absolute; opacity: 0.35; }
.illo-bg .b1 {
  width: 280px; height: 280px; left: -60px; top: -40px;
  background: radial-gradient(circle, rgba(201,162,39,0.45), transparent 70%);
  border-radius: 50%;
}
.illo-bg .b2 {
  width: 320px; height: 220px; right: -80px; top: 160px;
  background: radial-gradient(circle, rgba(194,58,43,0.28), transparent 70%);
  border-radius: 45% 55% 60% 40%;
}
.illo-bg .b3 {
  width: 420px; height: 180px; left: 25%; bottom: -40px;
  background: radial-gradient(circle, rgba(47,107,79,0.16), transparent 70%);
  border-radius: 50%;
}
.illo-bg .dot-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(194,58,43,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194,58,43,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247, 239, 226, 0.9);
  border-bottom: 2px solid rgba(201,162,39,0.45);
  box-shadow: 0 4px 16px rgba(90, 40, 20, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand img {
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(194,58,43,0.15);
  background: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 400; color: var(--cinnabar-deep);
  letter-spacing: 0.08em;
}
.brand-text em { font-style: normal; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }

.nav-toggle {
  display: none; border: 1px solid var(--gold);
  background: linear-gradient(180deg, #fff9ee, #f3e4c4);
  color: var(--ink); border-radius: 4px; padding: 8px 14px; cursor: pointer;
}
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink); padding: 8px 14px; border-radius: 4px;
  border: 1px solid transparent; font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.main-nav a:hover, .main-nav a.on {
  background: rgba(194,58,43,0.08);
  border-color: rgba(201,162,39,0.55);
  color: var(--cinnabar-deep);
}

.league-strip {
  border-top: 1px solid rgba(201,162,39,0.35);
  background: linear-gradient(90deg, rgba(194,58,43,0.06), transparent 30%, transparent 70%, rgba(201,162,39,0.08));
}
.league-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.home-leagues { padding: 0; overflow: visible; flex-wrap: wrap; }
.league-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 4px; background: var(--card);
  border: 1px solid rgba(201,162,39,0.45); color: var(--ink); font-size: 0.88rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.league-chip.on, .league-chip:hover {
  background: rgba(194,58,43,0.1); border-color: var(--cinnabar); color: var(--cinnabar-deep);
}
.league-chip img { border-radius: 50%; }

.site-main { padding: 28px 0 48px; }

.hero {
  position: relative; overflow: hidden;
  padding: 48px 34px; border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,249,238,0.96), rgba(243,228,196,0.85));
  border: 1px solid rgba(201,162,39,0.55);
  box-shadow: var(--shadow), inset 0 0 0 3px rgba(255,255,255,0.45);
  margin-bottom: 28px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute; width: 48px; height: 48px;
  border: 2px solid var(--gold); opacity: 0.55; pointer-events: none;
}
.hero::before { left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.hero::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.hero-art { position: absolute; right: 28px; top: 22px; width: 160px; height: 120px; }
.hero-art .float {
  position: absolute; filter: drop-shadow(0 4px 6px rgba(90,40,20,0.18));
  animation: bob 3.4s ease-in-out infinite;
}
.hero-art .f1 { right: 10px; top: 8px; }
.hero-art .f2 { right: 70px; top: 48px; animation-delay: .4s; }
.hero-art .f3 { right: 20px; top: 72px; animation-delay: .8s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero h1 {
  margin: 0 0 10px; font-family: var(--font-display);
  font-size: clamp(2.3rem, 6vw, 3.2rem); font-weight: 400; color: var(--cinnabar-deep);
  position: relative; z-index: 1; letter-spacing: 0.12em;
}
.hero .kw {
  display: inline-block; margin-bottom: 14px; padding: 4px 16px;
  border-radius: 2px; background: var(--cinnabar); color: #fff9ee;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.08em;
  border: 1px solid var(--gold);
  position: relative; z-index: 1;
}
.hero p { margin: 0; max-width: 36em; color: var(--muted); position: relative; z-index: 1; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; position: relative; z-index: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 4px; color: #fff9ee; font-weight: 600;
  background: linear-gradient(180deg, #d14a3a, var(--cinnabar-deep));
  border: 1px solid var(--gold);
  box-shadow: 0 4px 0 rgba(143,31,22,0.35);
  letter-spacing: 0.06em;
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn.ghost {
  background: linear-gradient(180deg, #fff9ee, #f0e0ba);
  color: var(--cinnabar-deep);
  box-shadow: 0 4px 0 rgba(201,162,39,0.35);
}
.btn img { display: inline-block; }

.sec { margin-bottom: 32px; }
.sec-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 400; color: var(--cinnabar-deep);
  letter-spacing: 0.08em;
}
.sec-title::before {
  content: "";
  width: 8px; height: 1.1em;
  background: linear-gradient(180deg, var(--gold), var(--cinnabar));
  border-radius: 2px;
}
.sec-title small { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.sec-title img { width: 24px; height: 24px; }

.match-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.match-item {
  background: var(--card); border: 1px solid rgba(201,162,39,0.4);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.match-item:hover {
  transform: translateY(-2px);
  border-color: var(--cinnabar);
}
.match-link { display: block; padding: 14px 16px; color: inherit; }
.match-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 10px; font-size: 0.82rem; color: var(--muted);
}
.league-ico { border-radius: 50%; }
.league-name { color: var(--cinnabar-deep); font-weight: 600; }
.st {
  margin-left: auto; padding: 2px 10px; border-radius: 2px;
  background: rgba(201,162,39,0.18); color: var(--ink); font-size: 0.75rem; font-weight: 600;
}
.st-live { background: rgba(194,58,43,0.15); color: var(--cinnabar-deep); }
.st-finished { background: rgba(107,83,68,0.12); color: var(--muted); }
.match-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
}
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team.away { flex-direction: row-reverse; text-align: right; }
.team img {
  width: 36px; height: 36px; border-radius: 50%; background: #fff;
  flex-shrink: 0; border: 1px solid var(--gold-soft);
}
.team span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score {
  min-width: 64px; text-align: center; font-family: var(--font-display);
  font-size: 1.45rem; color: var(--cinnabar);
}

.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.news-card {
  display: block; padding: 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid rgba(201,162,39,0.4);
  box-shadow: var(--shadow);
  color: inherit; transition: transform .2s, border-color .2s;
}
.news-card:hover { transform: translateY(-2px); color: inherit; border-color: var(--cinnabar); }
.news-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; }
.news-card .sum { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.news-card time, .news-card .cat { font-size: 0.8rem; color: var(--muted); }
.news-card .cat {
  display: inline-block; margin-bottom: 8px; padding: 2px 8px;
  border-radius: 2px; background: rgba(47,107,79,0.12); color: var(--jade); font-weight: 600;
}

.about, .faq, .page-head, .article, .play-box {
  background: var(--card); border: 1px solid rgba(201,162,39,0.45);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  position: relative;
}
.about h2, .faq h2, .page-head h1, .article h1, .play-box h1 {
  margin-top: 0; font-family: var(--font-display); font-weight: 400;
  color: var(--cinnabar-deep); letter-spacing: 0.08em;
}
.about h3 { color: var(--gold); font-size: 1.05rem; margin: 18px 0 8px; }
.about p, .faq p { color: var(--muted); }
.inline-ico {
  display: inline; vertical-align: middle; border-radius: 50%;
  margin-right: 8px; border: 1px solid var(--gold-soft);
}

.faq details {
  border: 1px solid rgba(201,162,39,0.35); border-radius: 4px;
  padding: 12px 16px; margin-bottom: 10px; background: rgba(255,255,255,0.55);
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details[open] summary { color: var(--cinnabar-deep); }

.crumb { margin-bottom: 16px; font-size: 0.88rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb span { margin: 0 6px; }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px dashed rgba(201,162,39,0.45);
}
.article-body { color: var(--ink); font-size: 1.02rem; }
.article-body p { margin: 0 0 1em; }
.pager-nav {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 16px; border-top: 1px dashed rgba(201,162,39,0.45);
}
.pager-nav a {
  flex: 1 1 220px; padding: 12px 14px; border-radius: 4px;
  background: #fff9ee; border: 1px solid rgba(201,162,39,0.45); color: var(--ink);
}
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.pager a, .pager span {
  min-width: 36px; text-align: center; padding: 8px 12px; border-radius: 4px;
  border: 1px solid rgba(201,162,39,0.4); background: #fff9ee; color: var(--ink);
}
.pager .on { background: var(--cinnabar); color: #fff9ee; border-color: var(--gold); }

.play-box .play-sub {
  text-align: center; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.play-box .play-sub img { display: inline-block; border-radius: 50%; }
.play-box .teams {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin: 20px 0; flex-wrap: wrap;
}
.play-box .teams .side { text-align: center; }
.play-box .teams img {
  width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%;
  border: 2px solid var(--gold); background: #fff;
}
.play-box .vs { font-family: var(--font-display); font-size: 1.8rem; color: var(--cinnabar); }
.play-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.play-tip { margin-top: 18px; color: var(--muted); font-size: .9rem; text-align: center; }
.empty {
  text-align: center; padding: 28px; color: var(--muted);
  background: rgba(255,255,255,0.55); border-radius: var(--radius);
  border: 1px dashed rgba(201,162,39,0.45);
}

.friends {
  border-top: 1px solid rgba(201,162,39,0.4);
  background: rgba(255,249,238,0.65);
  padding: 14px 0;
}
.friends .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.friends .lab { color: var(--muted); font-size: 0.85rem; }
.friends a { color: var(--muted); font-size: 0.9rem; }
.friends a:hover { color: var(--cinnabar); }

.site-footer {
  padding: 24px 0 36px; color: var(--muted); font-size: 0.85rem; text-align: center;
  border-top: 2px solid rgba(201,162,39,0.35);
  background:
    linear-gradient(180deg, rgba(194,58,43,0.05), transparent 40%);
}
.site-footer p { margin: 0 0 8px; }

@media (max-width: 860px) {
  .wrap { width: calc(100% - 24px); }
  .nav-toggle { display: inline-flex; }
  .site-header { position: relative; }
  .main-nav {
    display: none; position: absolute; left: 12px; right: 12px; top: 68px;
    flex-direction: column; background: #fff9ee;
    border: 1px solid rgba(201,162,39,0.5);
    border-radius: 6px; padding: 10px;
    box-shadow: var(--shadow); z-index: 60;
  }
  .main-nav.open { display: flex; }
  body.nav-open { overflow: hidden; }
  .match-teams { grid-template-columns: 1fr; gap: 8px; }
  .team.away { flex-direction: row; text-align: left; }
  .score { order: -1; justify-self: start; }
  .hero { padding: 28px 18px; }
  .hero h1 { font-size: 1.9rem; letter-spacing: 0.08em; }
  .hero-art { display: none; }
  .st { margin-left: 0; }
  .about, .faq, .page-head, .article, .play-box { padding: 18px; }
  .news-grid { grid-template-columns: 1fr; }
  .article-meta { gap: 6px 12px; }
  .pager-nav a { flex-basis: 100%; }
}

@media (max-width: 480px) {
  .brand-text strong { font-size: 1.3rem; }
  .match-link { padding: 12px; }
  .team span { font-size: 0.95rem; }
  .friends .wrap { gap: 8px 12px; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; }
}
