/* 复古风 · 龙门直播网 */
:root {
  --ink: #2a1f14;
  --muted: #7a654f;
  --line: #d9c7a8;
  --bg: #f3e6c8;
  --card: #fff8e8;
  --navy: #3d2914;
  --navy-2: #5a3d1e;
  --gold: #b8860b;
  --green: #3d6b3d;
  --live: #a83228;
  --soon: #8b5a2b;
  --paper: #f7ecd4;
  --shadow: 0 4px 0 rgba(61, 41, 20, 0.12);
  --frame: 2px solid #3d2914;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(184,134,11,.12), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(61,107,61,.08), transparent 30%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(61,41,20,.02) 3px, rgba(61,41,20,.02) 4px),
    var(--bg);
  font: 15px/1.7 "Noto Serif SC", "ZCOOL XiaoWei", "Songti SC", "SimSun", serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  background: linear-gradient(180deg, #2c1a0c 0%, #4a2f16 100%);
  color: #f7ecd4;
  border-bottom: 4px double var(--gold);
}
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: #f7ecd4; }
.brand img { width: 42px; height: 38px; object-fit: contain; filter: sepia(.25); }
.brand strong {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: 30px;
  letter-spacing: 3px;
  font-weight: 700;
  color: #f0d78c;
  text-shadow: 1px 1px 0 #1a0f07;
}
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  color: rgba(247,236,212,.9);
  padding: 8px 14px;
  border: 1px solid transparent;
  white-space: nowrap;
  flex: none;
  letter-spacing: 1px;
}
.main-nav a.on, .main-nav a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,134,11,.12);
}
.league-bar { background: #241407; border-top: 1px solid rgba(184,134,11,.25); }
.league-bar .wrap { display: flex; gap: 4px; overflow-x: auto; padding: 8px 0 10px; }
.league-bar a { color: #d9c7a8; padding: 4px 10px; border: 1px solid transparent; white-space: nowrap; font-size: 14px; }
.league-bar a.on, .league-bar a:hover { color: #241407; background: var(--gold); border-color: var(--gold); }
main { padding: 22px 0 48px; }
.hero, .panel {
  background: var(--card);
  border: var(--frame);
  box-shadow: var(--shadow);
  position: relative;
}
.hero::before, .panel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(184,134,11,.35);
  pointer-events: none;
}
.hero {
  padding: 32px 36px 26px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(184,134,11,.08), transparent 40%),
    var(--card);
}
.eyebrow { margin: 0 0 6px; color: var(--gold); font-weight: 700; letter-spacing: 2px; font-size: 13px; }
.hero h1, .hero-brand {
  margin: 0 0 10px;
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: 4px;
  color: var(--navy);
}
.hero p, .hero-lead { margin: 0; max-width: 760px; color: #5a4630; }
.panel { margin-top: 18px; padding: 8px 8px 12px; }
.panel-hd, .topic, .detail, .article { padding: 12px 16px 4px; }
.panel-hd { display: flex; align-items: baseline; justify-content: space-between; }
.panel-hd h1, .panel-hd h2, .topic h1, .detail h1, .article h1 {
  margin: 0;
  font-size: 22px;
  font-family: "ZCOOL XiaoWei", serif;
  border-left: 4px solid var(--gold);
  padding-left: 10px;
}
.panel-hd a { color: var(--soon); font-size: 14px; }
.subhead { margin: 16px 16px 4px; font-size: 16px; color: #5a4630; }
.match-list { padding: 4px 8px 8px; }
.match {
  display: grid;
  grid-template-columns: 150px 100px minmax(0,1fr) 92px minmax(0,1fr) 108px;
  gap: 8px;
  align-items: center;
  padding: 14px 10px;
  border-top: 1px dashed var(--line);
}
.match:first-child { border-top: 0; }
.m-time { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; }
.m-league { display: flex; align-items: center; gap: 4px; color: #5a4630; font-weight: 700; }
.m-league a:hover { color: var(--green); }
.hot { width: 18px; height: 18px; }
.m-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.m-team.home { justify-content: flex-end; text-align: right; }
.m-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-team img { width: 36px; height: 36px; object-fit: contain; background: #f3e6c8; border: 1px solid var(--line); border-radius: 50%; padding: 3px; flex: none; }
.m-score { text-align: center; font-size: 18px; font-weight: 800; }
.m-score .vs { color: #a89070; letter-spacing: 1px; }
.m-score i { margin: 0 4px; color: #a89070; font-style: normal; }
.m-go { justify-self: end; min-width: 92px; text-align: center; font-weight: 800; }
.m-go.phase-live { color: var(--live); }
.m-go.phase-soon { color: var(--soon); }
.m-go.phase-end, .m-go.phase-delay { color: #8b93a1; }
.date-bar { display: flex; gap: 8px; padding: 8px 16px 4px; }
.date-bar a { padding: 6px 12px; border: 1px solid var(--line); background: var(--paper); color: #5a4630; white-space: nowrap; flex: none; }
.date-bar a.on { background: var(--navy); color: #f7ecd4; border-color: var(--navy); }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.news-list, .card-list, .video-list { list-style: none; margin: 0; padding: 6px 16px 12px; }
.news-list li, .card-list li { border-top: 1px dashed var(--line); }
.news-list a, .card-list a { display: block; padding: 12px 0; }
.news-list a:hover strong, .card-list a:hover strong, .news-list a:hover { color: var(--green); }
.news-list time, .card-list span, .video-list span { display: block; color: var(--muted); font-size: 13px; }
.card-list strong { display: block; font-size: 16px; }
.card-list em { display: block; margin-top: 4px; color: #5a4630; font-style: normal; }
.video-list li { padding: 12px 0; border-top: 1px dashed var(--line); }
.empty, .empty-page { padding: 28px 16px; color: var(--muted); text-align: center; }
.crumbs { padding: 4px 2px 0; color: var(--muted); font-size: 13px; }
.crumbs a { color: #5a4630; }
.crumbs em { margin: 0 6px; font-style: normal; color: #b0a088; }
.topic p, .detail .note { color: #5a4630; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding: 18px 8px 8px; }
.scoreboard .side { text-align: center; }
.scoreboard img { width: 72px; height: 72px; object-fit: contain; background: #f3e6c8; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.scoreboard strong { display: block; margin-top: 8px; font-size: 18px; }
.center { text-align: center; min-width: 180px; }
.center time { color: var(--muted); }
.big-score, .big-vs { font-size: 42px; font-weight: 800; line-height: 1.2; letter-spacing: 1px; }
.big-score span { margin: 0 8px; color: #a89070; }
.center em { display: inline-block; margin-top: 4px; font-style: normal; font-weight: 800; }
.center em.phase-live { color: var(--live); }
.center em.phase-soon { color: var(--soon); }
.half { text-align: center; color: var(--muted); }
.signal, .play-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 8px; }
.signal .line, .play, .btn {
  appearance: none;
  border: 2px solid var(--navy);
  cursor: pointer;
  background: linear-gradient(180deg, #c9a227, #8b6914);
  color: #1a0f07;
  border-radius: 2px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
}
.signal .line:hover, .play:hover, .btn:hover { filter: brightness(1.06); }
.article .meta, .article-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
}
.content { font-size: 16px; line-height: 1.95; color: #2a1f14; }
.content p { margin: 0 0 14px; }
.content img { display: block; max-width: 100%; height: auto; margin: 8px auto 16px; border: 1px solid var(--line); }
.pager { display: flex; justify-content: center; gap: 6px; padding: 8px 0 16px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); background: var(--paper); }
.pager .on { background: var(--navy); color: #f7ecd4; border-color: var(--navy); }
.article-pager { justify-content: space-between; gap: 16px; margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.article-pager a { max-width: 48%; text-align: left; color: var(--soon); }
.article-pager .muted { color: var(--muted); }
.faq { padding-bottom: 8px; }
.faq details { border-top: 1px dashed var(--line); margin: 0 16px; }
.faq details:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: #5a4630; }
.about-box .about-body { padding: 8px 16px 16px; color: #5a4630; font-size: 14px; }
.about-box h3 { margin: 14px 0 6px; font-size: 15px; color: var(--navy); }
.about-box ul { margin: 0; padding-left: 18px; }
.about-box li { margin-bottom: 4px; }
.about-box .tip { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.site-footer { background: var(--navy); color: #d9c7a8; padding: 28px 0 88px; border-top: 4px double var(--gold); }
.site-footer a { color: #f0d78c; }
.foot-fl { margin: 10px 0; font-size: 13px; }
.foot-fl a { margin: 0 2px; }
.copy { color: #a89070; }
.tabbar { display: none; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .head-row { flex-direction: column; align-items: flex-start; padding: 14px 0 10px; }
  .main-nav { width: 100%; overflow-x: auto; }
  .match {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "time time league"
      "home score away"
      "go go go";
    justify-items: center;
  }
  .m-time { grid-area: time; font-size: 12px; }
  .m-league { grid-area: league; }
  .m-team.home { grid-area: home; }
  .m-score { grid-area: score; }
  .m-team.away { grid-area: away; }
  .m-go { grid-area: go; justify-self: center; }
  .m-team.home { flex-direction: row-reverse; }
  .hero h1, .hero-brand { font-size: 32px; letter-spacing: 2px; }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--card);
    border-top: 2px solid var(--navy);
    z-index: 20;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: #5a4630; }
  .tabbar img { width: 18px; height: 18px; object-fit: contain; }
}
