/* 战报 · 白底简洁主题 */
:root {
  --brand: #f5c400;
  --brand-hover: #e6b800;
  --ink: #222;
  --text: #444;
  --muted: #999;
  --line: #eee;
  --soft: #fafafa;
  --live: #d33;
}
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); font-weight: 600; }
[hidden] { display: none !important; }

/* 顶栏 */
.topbar { border-bottom: 1px solid var(--line); }
.topbar__inner { max-width: 980px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-size: 18px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }

.sections { display: flex; gap: 24px; }
.sections__item { padding: 16px 0 14px; font-size: 15px; color: var(--text); border-bottom: 2px solid transparent; }
.sections__item:hover { color: var(--ink); text-decoration: none; }
.sections__item--on { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }

.wrap { max-width: 980px; margin: 0 auto; padding: 28px 20px 10px; }
.sheet { min-height: 60vh; }

/* 标题区 */
.crumbs { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.headline { margin: 0; font-size: 22px; line-height: 1.4; }
.standfirst { margin: 6px 0 24px; color: var(--muted); font-size: 14px; }

/* 首页两栏 */
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.column__title { margin: 0; padding-bottom: 8px; font-size: 16px; border-bottom: 1px solid var(--ink); }
.column__more {
  display: inline-block; margin-top: 16px; padding: 7px 18px;
  border-radius: 4px; background: var(--brand); color: var(--ink); font-size: 14px;
}
.column__more:hover { background: var(--brand-hover); text-decoration: none; }

/* 比赛列表 */
.tl { list-style: none; margin: 0; padding: 0; }
.tl__item { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tl__time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.6; }
.tl__item--live .tl__time { color: var(--live); }
.tl__body { min-width: 0; }
.tl__head { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink); line-height: 1.6; }
.tl__team { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.tl__score { flex: none; padding: 0 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl__item--live .tl__score { color: var(--live); font-weight: 600; }
.emblem { flex: none; width: 18px; height: 18px; object-fit: contain; }
.tl__meta { margin: 2px 0 0; font-size: 12px; color: var(--muted); display: flex; gap: 10px; }
.tl__tag { font-style: normal; }
.tl__tag--hot { color: var(--live); }
.tl--slim .tl__item { grid-template-columns: 44px 1fr; gap: 10px; }
.tl--slim .tl__time { font-size: 13px; }
.tl--slim .tl__head { font-size: 14px; }

/* 按日期分组 */
.dateline { margin-bottom: 28px; }
.dateline__title { margin: 0; padding-bottom: 8px; font-size: 15px; border-bottom: 1px solid var(--ink); }

/* 分页 */
.folio { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 20px 0; }
.folio a, .folio__now { min-width: 34px; padding: 5px 10px; text-align: center; border-radius: 4px; border: 1px solid var(--line); font-size: 14px; font-weight: 400; }
.folio a:hover { border-color: #ccc; text-decoration: none; }
.folio__now { background: var(--brand); border-color: var(--brand); color: var(--ink); }

.notice { margin: 0; padding: 20px 0; color: var(--muted); font-size: 14px; }
.notice--over { padding: 14px 16px; background: var(--soft); border-left: 3px solid var(--live); color: var(--live); }

/* 详情 */
.spread { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.story__kicker { margin: 0; color: var(--muted); font-size: 13px; }
.story__title { margin: 4px 0 4px; font-size: 24px; line-height: 1.4; }
.story__byline { margin: 0 0 20px; font-size: 13px; color: var(--muted); }

.scorecard {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 24px 0; margin-bottom: 28px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.scorecard__side { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.scorecard__side img { width: 52px; height: 52px; object-fit: contain; }
.scorecard__seal {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--soft); border: 1px solid var(--line); color: var(--ink); font-size: 20px;
}
.scorecard__side b { font-size: 15px; font-weight: 600; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorecard__side small { font-size: 12px; color: var(--muted); }
.scorecard__mid { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 16px; }
.scorecard__state { font-size: 12px; color: var(--muted); }
.scorecard__state--hot { color: var(--live); }
.scorecard__score { font-size: 32px; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

.block { margin-bottom: 32px; }
.block__title { margin: 0 0 14px; font-size: 16px; }

.screen { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: 4px; overflow: hidden; }
.screen video, .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.screen__note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #888; font-size: 14px; }
.lines { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.line {
  display: inline-block; padding: 6px 16px; cursor: pointer; border: 0; border-radius: 4px;
  background: var(--brand); color: var(--ink);
  font: 400 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.line:hover { background: var(--brand-hover); text-decoration: none; }
.line--on, .line--on:hover { background: var(--ink); color: #fff; }
.line sup { margin-left: 3px; font-size: 10px; opacity: .6; }
.footnote { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.ledger { display: grid; grid-template-columns: 100px 1fr; margin: 0; }
.ledger dt, .ledger dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ledger dt { color: var(--muted); }
.ledger dd { color: var(--ink); }

.sidebar__box { margin-bottom: 28px; }
.sidebar__title { margin: 0 0 4px; padding-bottom: 8px; font-size: 15px; border-bottom: 1px solid var(--ink); }
.sidebar__box--tip { font-size: 13px; color: var(--muted); }
.sidebar__box--tip .sidebar__title { border-bottom-color: var(--line); }
.sidebar__box--tip p { margin: 8px 0 0; }

/* 比分更新提示 */
.ink-flash { animation: inkflash 2s ease-out; }
@keyframes inkflash { 0%, 40% { background: #fff3b0; } 100% { background: transparent; } }

/* 404 */
.erratum { text-align: center; padding: 60px 0 40px; }
.erratum__code { margin: 0 0 8px; font-size: 48px; font-weight: 300; color: #ccc; }
.erratum__go { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
.erratum__go a { padding: 7px 18px; border-radius: 4px; border: 1px solid var(--line); font-size: 14px; }
.erratum__go a:last-child { background: var(--brand); border-color: var(--brand); }
.erratum__go a:hover { text-decoration: none; border-color: #ccc; }
.erratum__go a:last-child:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

/* 页脚 */
.colophon { max-width: 980px; margin: 40px auto 0; padding: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted); }
.colophon p { margin: 4px 0; }
.colophon a { color: var(--muted); margin: 0 6px; }

@media (max-width: 860px) {
  .topbar__inner { padding: 0 14px; }
  .sections { gap: 16px; }
  .sections__item { font-size: 14px; }
  .wrap { padding: 20px 14px 6px; }
  .headline { font-size: 19px; }
  .columns, .spread { grid-template-columns: 1fr; gap: 28px; }
  .tl__item { grid-template-columns: 44px 1fr; gap: 10px; }
  .tl__time { font-size: 13px; }
  .tl__head { font-size: 14px; }
  .story__title { font-size: 20px; }
  .scorecard__side img, .scorecard__seal { width: 40px; height: 40px; font-size: 16px; }
  .scorecard__side b { font-size: 14px; }
  .scorecard__mid { padding: 0 8px; }
  .scorecard__score { font-size: 24px; }
  .ledger { grid-template-columns: 80px 1fr; }
}
@media (max-width: 420px) {
  .topbar__inner { height: auto; padding: 10px 14px 0; flex-direction: column; align-items: flex-start; gap: 0; }
  .sections__item { padding: 8px 0 10px; }
}

/* 比分列表（内置 score-row 等）配色 */
:root { --sc-accent: #222; --sc-on: #fff; --sc-live: #d33; --sc-radius: 2px; }

/* 热门比赛标记（后台设为热门或属于热门联赛），手机上只显示火苗 */
.zb-fire { display: inline-flex; align-items: center; gap: 1px; margin-left: 4px; padding: 0 6px 0 4px; border-radius: 9px; background: linear-gradient(90deg, #ff8a1f, #ff3b30); color: #fff; font: normal 700 11px/17px -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; vertical-align: middle; white-space: nowrap; text-transform: none; animation: zb-fire-glow 1.8s ease-in-out infinite; }
.zb-fire::before { content: "🔥"; font-size: 11px; line-height: 1; }
@keyframes zb-fire-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 80, 30, .35); } 50% { box-shadow: 0 0 0 4px rgba(255, 80, 30, 0); } }
@media (max-width: 480px) {
  .zb-fire { padding: 0 3px; font-size: 0; gap: 0; margin-left: 2px; }
  .zb-fire::before { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .zb-fire { animation: none; } }

/* 热门比赛：火苗跳动；整行左侧一抹淡淡的火光缓慢明暗，叠在原有背景上，不改变原样式 */
.zb-fire::before { display: inline-block; transform-origin: 50% 85%; animation: zb-flicker 1.3s ease-in-out infinite; }
@keyframes zb-flicker {
  0%, 100% { transform: scale(1) rotate(-4deg); filter: brightness(1); }
  25% { transform: scale(1.1, 1.2) rotate(3deg); filter: brightness(1.2); }
  50% { transform: scale(.95, 1.04) rotate(-2deg); filter: brightness(.95); }
  75% { transform: scale(1.06, 1.14) rotate(4deg); filter: brightness(1.15); }
}
.zb-hotrow { animation: zb-ember 3.2s ease-in-out infinite; }
@keyframes zb-ember {
  0%, 100% { box-shadow: inset 3px 0 0 rgba(255, 98, 40, .7), inset 90px 0 70px -52px rgba(255, 140, 50, .16); }
  50% { box-shadow: inset 3px 0 0 rgba(255, 64, 30, .9), inset 130px 0 90px -60px rgba(255, 112, 40, .26); }
}
tr.zb-hotrow { animation: none; }
tr.zb-hotrow > td { animation: zb-ember-td 3.2s ease-in-out infinite; }
tr.zb-hotrow > td:first-child { box-shadow: inset 3px 0 0 rgba(255, 80, 30, .8); }
@keyframes zb-ember-td { 0%, 100% { background-color: rgba(255, 150, 60, .05); } 50% { background-color: rgba(255, 120, 40, .11); } }
@media (prefers-reduced-motion: reduce) {
  .zb-fire::before, .zb-hotrow, tr.zb-hotrow > td { animation: none; }
  .zb-hotrow { box-shadow: inset 3px 0 0 rgba(255, 98, 40, .7), inset 90px 0 70px -52px rgba(255, 140, 50, .16); }
}

/* 播放页球队名链接到球队搜索页 */
.zb-tlink { color: inherit; text-decoration: none; border-bottom: 1px dashed currentColor; }
.zb-tlink:hover { opacity: .8; border-bottom-style: solid; }

/* 首页：日期选择 + 热门直播 + 赛事直播 */
.sheet > .hd-dates { margin: 0 0 24px; }
.zb-hot, [data-hd-scope] { margin-bottom: 28px; }
.column__title small { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--muted); }
.zb-scope-t { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.zb-scope-t h2 { margin: 0; font-size: 16px; }
[data-hd-scope] .hd-day { padding-left: 0; }
.tl__meta .hd-lg:hover { color: var(--ink); }
.tl__item.zb-hotrow { padding-left: 10px; }
/* 导航 5 项：手机上一屏放下 */
@media (max-width: 480px) {
  .sections { width: 100%; gap: 0; justify-content: space-between; }
  .sections__item { font-size: 14px; }
}

/* 热门标记：本模板专属样式（📰 头条），覆盖上面通用的 🔥 热门；手机上只显示图标 */
.zb-fire { --zb-hot-lb: 11px; gap: 2px; font-size: 0; background: #1a1a1a; color: #ffd400; border: 0; border-radius: 0; animation: zb-hot-glow 1.8s ease-in-out infinite; }
.zb-fire::before { content: "📰"; display: inline-block; transform-origin: 50% 50%; animation: zb-hot-ic 1.6s ease-in-out infinite; }
.zb-fire::after { content: "头条"; font-size: var(--zb-hot-lb); line-height: 1; }
@keyframes zb-hot-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(26,26,26, .35); } 50% { box-shadow: 0 0 0 4px rgba(26,26,26, 0); } }
@keyframes zb-hot-ic { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@media (max-width: 480px) { .zb-fire { --zb-hot-lb: 0; gap: 0; } }
@media (prefers-reduced-motion: reduce) { .zb-fire, .zb-fire::before { animation: none; } }

/* 日期条吸顶（样式在内置 hd.css）：底色跟页面一致 */
:root { --hd-bg: #fff; }
/* 整行可点（row-cover） */
.tl__item { cursor: pointer; }
