/* 本地自托管可变字体 (2026-10-04, 替代 Google Fonts 外链; font-display: optional 消除字体回流 CLS) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url(fonts/inter-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url(fonts/inter-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 800;
  font-display: optional;
  src: url(fonts/playfair-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 800;
  font-display: optional;
  src: url(fonts/playfair-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* ============================================================
   ScoreLens — 消费版视觉体系 (设计文档 §10.2 Design Tokens)
   bg #F7F8FA · card #FFF r16 border #E8EAF0 · brand #014DB2→#06214A
   强调橙 #F79009 (客队) · 中性灰 #D0D5DD (平局) · Inter / Playfair Display
   ============================================================ */
:root {
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --border: #E8EAF0;
  --brand: #014DB2;
  --brand-deep: #06214A;
  --accent: #F79009;
  --neutral: #D0D5DD;
  --t1: #101828;
  --t2: #344054;
  --t3: #667085;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--t2);
  font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: 'Playfair Display', Georgia, serif; }

/* ---------- 顶栏 ---------- */
.topnav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.topnav .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--t1); }
.logo .mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), #0B6BD6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; }
.navlinks { display: flex; gap: 22px; font-weight: 500; }
.navlinks a { color: var(--t2); font-size: 14.5px; }
.navlinks a.active, .navlinks a:hover { color: var(--brand); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-btn { border: 1px solid var(--border); background: #fff; border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--t2); cursor: pointer; }
select.lang-btn { appearance: none; -webkit-appearance: none; text-align: center; max-width: 150px; }
.btn-primary { background: var(--brand); color: #fff; border: none; border-radius: 20px; padding: 8px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 20px; padding: 8px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.btn-outline { background: #fff; color: var(--brand); border: 1px solid var(--brand); border-radius: 20px; padding: 8px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; }

/* ---------- 广告位 ---------- */
.ad-slot { border: 1.5px dashed var(--border); border-radius: 10px; background: #FBFCFD; display: flex; align-items: center; justify-content: center; color: #98A2B3; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 0 auto; }
/* ==== 临时下线（2026-10-02 用户要求先隐藏，恢复 = 删除本段） ==== */
.ad-slot { display: none !important; }
button[data-i18n="nav.signin"] { display: none !important; }
/* ==== /临时下线 ==== */
.ad-leaderboard { width: 728px; max-width: 100%; height: 96px; margin-top: 20px; }
.ad-rect { width: 300px; height: 254px; }
.ad-skyscraper { width: 300px; height: 604px; }
.ad-inarticle { width: 100%; height: 204px; margin: 26px 0; }
.ad-mobile { width: 320px; max-width: 100%; height: 54px; margin: 14px auto; }
.ad-label::after { content: "advertisement · " attr(data-size); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, var(--brand) 0%, #06337A 55%, var(--brand-deep) 100%); color: #fff; padding: 46px 0 52px; margin-top: 4px; }
.hero .grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.hero .kicker { font-size: 11.5px; letter-spacing: .12em; font-weight: 700; color: #9CC2F5; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.hero p { color: #C8D8F2; font-size: 15.5px; max-width: 560px; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 12px; }
.hero-card { background: #fff; color: var(--t1); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 12px 32px rgba(2,16,43,.35); }
.hero-card h2 { font-size: 13px; color: var(--t3); font-weight: 600; margin-bottom: 12px; }

/* ---------- 概率条 (1X2 三段) ---------- */
.probbar { display: flex; height: 34px; border-radius: 8px; overflow: hidden; font-size: 12.5px; font-weight: 700; color: #fff; }
.probbar .h { background: var(--brand); display: flex; align-items: center; justify-content: center; min-width: 0; white-space: nowrap; overflow: hidden; }
.probbar .d { background: var(--neutral); color: var(--t2); display: flex; align-items: center; justify-content: center; }
.probbar .a { background: var(--accent); color: #1A1D29; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.probbar.slim { height: 8px; border-radius: 5px; }
.probbar.slim span { display: block; height: 100%; }
.legends { display: flex; gap: 14px; font-size: 12.5px; color: var(--t3); margin-top: 10px; flex-wrap: wrap; }
.legends b { color: var(--t1); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-inline-end: 5px; }

/* ---------- 区块与卡片 ---------- */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; color: var(--t1); font-weight: 800; letter-spacing: -.01em; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: #fff; border-radius: 18px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--t2); cursor: pointer; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 2026-10-20: 联赛 / 球队目录的分段切换（移动端从底栏 Leagues 进来后的二级入口） */
.dir-switch { display: flex; gap: 8px; margin: 14px 0 0; }
.dir-switch a { text-decoration: none; }
.dir-switch a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.match-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; }
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: #FAFBFF; }
.match-meta { font-size: 12.5px; color: var(--t3); margin-bottom: 3px; }
/* 2026-10-12 (用户令): 赛程行主/客队合并为同一行, 省一行高度。首页/联赛/国家队/赛程/球队
   五处共用同一渲染函数(renderMatchList 与 fixtureCardsHTML), 左列由固定 210~220px 改为
   可伸缩 .match-lead; 队名超长省略号兜底。
   2026-10-12 追加(用户令): 队名不做粗体 —— 基础规则 font-weight 由原 700 改为 400(常规),
   并把它连同早前误删的 color/font-size 一起并回(首页此前正是继承默认 400, 故此值与首页观感一致);
   vs 两侧留白 10px, 字重 400 与队名同重但更小更灰, 视觉层次靠字号与颜色区分。 */
.match-teams { font-weight: 400; color: var(--t1); font-size: 13.5px; }
.match-teams.oneline { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.match-teams.oneline .mt-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-teams.oneline .mt-vs { flex: 0 0 auto; font-weight: 400; font-size: 11.5px; color: var(--t3); }
.match-lead { flex: 1 1 auto; min-width: 300px; }
.match-bar { flex: 1; max-width: 300px; }
.match-bar .pct { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--t3); margin-top: 4px; }
.btn-analysis { background: #EEF4FD; color: var(--brand); font-weight: 700; font-size: 13px; border-radius: 16px; padding: 7px 16px; white-space: nowrap; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 2px 8px; }
.badge-league { background: #EEF4FD; color: var(--brand); }
.badge-high { background: #E8F7EE; color: #067647; }
.badge-medium { background: #FEF4E6; color: #B54708; }
.badge-low { background: #F2F4F7; color: #475467; }

/* ---------- 侧栏 ---------- */
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
/* 2026-10-11 版面修复：右栏此前随页面滚走 —— 长页面（赛程/球队/联赛/国家队/比赛）
   右侧 340px 在首屏之后长期空白（实测 aside/main 高度比仅 0.03~0.13）。
   改为粘性跟随（顶部导航 64px，留 20px 间距）。仅桌面双栏生效；
   高栏给上限并内部滚动，避免底部永远看不到。回退 = 删除本段。 */
@media (min-width: 961px) {
  .two-col > aside { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; }
}
.side-card { padding: 20px; }
.side-card h3 { font-size: 16px; color: var(--t1); font-weight: 800; margin-bottom: 12px; }
.side-list li { list-style: none; padding: 9px 0; border-bottom: 1px solid #F2F4F7; font-size: 14px; color: var(--t2); }
.side-list li:last-child { border-bottom: none; }
.side-list .tag { color: var(--t3); font-size: 12px; }
.newsletter { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); border-radius: var(--radius); color: #fff; padding: 24px; }
.newsletter h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.newsletter p { font-size: 13.5px; color: #C8D8F2; margin-bottom: 14px; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; border: none; border-radius: 20px; padding: 9px 14px; font-size: 13px; }
.newsletter button { background: var(--accent); color: #1A1D29; border: none; border-radius: 20px; padding: 9px 16px; font-weight: 700; font-size: 13px; cursor: pointer; }

/* ---------- Newsroom ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { overflow: hidden; cursor: pointer; }
.news-card .cover { height: 150px; background: linear-gradient(135deg, #0E3A78, var(--brand)); position: relative; display: flex; align-items: flex-end; padding: 14px; }
.news-card .cover .cat { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: #fff; text-transform: uppercase; }
.news-card .body { padding: 16px 18px 18px; }
.news-card h3 { font-size: 16px; color: var(--t1); font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.news-card p { font-size: 13.5px; color: var(--t3); margin-bottom: 10px; }
.news-card .meta { font-size: 12px; color: #6B7280; }

/* ---------- 文章页 ---------- */
.article-head { max-width: 780px; margin: 34px auto 0; }
.article-head .crumb { font-size: 12.5px; color: var(--t3); margin-bottom: 18px; }
.article-head .cat { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--brand); text-transform: uppercase; margin-bottom: 10px; }
.article-head h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 19px; line-height: 1.2; color: var(--t1); font-weight: 800; margin-bottom: 14px; }
.article-head .dek { font-size: 16.5px; color: var(--t3); margin-bottom: 20px; }
.byline { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.byline .avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #4C8DE8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.byline .who b { display: block; color: var(--t1); font-size: 14px; }
.byline .who span { font-size: 12.5px; color: var(--t3); }
.article-body { max-width: 780px; margin: 0 auto; font-size: 16px; line-height: 1.75; color: var(--t2); }
.article-body p { margin: 18px 0; }
.article-body h2 { font-size: 22px; color: var(--t1); margin: 34px 0 10px; font-weight: 800; }
.article-body blockquote { background: #EEF4FD; border-inline-start: 4px solid var(--brand); border-radius: 10px; padding: 18px 22px; margin: 26px 0; font-family: 'Playfair Display', Georgia, serif; font-size: 18.5px; line-height: 1.5; color: var(--brand-deep); font-weight: 600; }
.article-cover { max-width: 780px; margin: 0 auto 8px; border-radius: var(--radius); overflow: hidden; }
.article-cover .ph { height: 320px; background: linear-gradient(120deg, #06214A, #0E3A78 60%, #014DB2); display: flex; align-items: center; justify-content: center; color: #9CC2F5; font-size: 13px; letter-spacing: .1em; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 780px; margin: 26px auto; }
.stat-strip .cell { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.stat-strip .num { font-size: 24px; font-weight: 800; color: var(--brand); }
.stat-strip .lbl { font-size: 12.5px; color: var(--t3); }

/* ---------- 比分矩阵热力图 ---------- */
.matrix-wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px; }
.matrix { border-collapse: separate; border-spacing: 4px; }
.matrix th { font-size: 11.5px; color: var(--t3); font-weight: 600; padding: 4px; }
.matrix td { width: 58px; height: 44px; border-radius: 8px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--t1); background: #F0F4FA; }
.matrix td.empty { background: #F7F9FC; color: #B6BECB; }
/* 完赛场次: 真实比分格高亮 (2026-10-06, 矩阵由留痕 λ + scope rho 重建) */
.matrix td.hit { outline: 2.5px solid var(--brand); outline-offset: -2.5px; color: var(--brand); }
.matrix td.hit b { font-size: 13px; letter-spacing: -.02em; }
.axis-note { font-size: 12px; color: var(--t3); margin-top: 10px; }
.topchips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.score-chip { border-radius: 16px; padding: 6px 13px; font-size: 13px; font-weight: 700; background: #F2F4F7; color: var(--t2); }
.score-chip.top { background: var(--brand); color: #fff; }
.howto { background: #F4F7FD; border-radius: 12px; padding: 18px 20px; font-size: 13.5px; color: var(--t2); }
.howto b { color: var(--t1); }
.howto ul { margin: 10px 0 0 16px; }

/* ---------- 详情页头卡 ---------- */
.crumbs { font-size: 12.5px; color: var(--t3); padding: 18px 0 14px; }
.match-head { padding: 24px 28px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-bottom: 24px; }
/* 2026-10-24 (超长客队名挤爆中列——vs 徽标被压成竖条)：team-side 必须可收缩(min-width:0)，
   team-name 截断省略；crest flex:none 防徽标被压缩变形。 */
.team-side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.team-side.right { justify-content: flex-end; text-align: end; }
.team-crest { width: 52px; height: 52px; border-radius: 50%; background: #EEF4FD; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--brand); overflow: hidden; flex: none; }
.team-crest img { width: 38px; height: 38px; object-fit: contain; }
/* 2026-10-20: 首页列表小号队徽（18×18，图片 14×14）。原首页只有纯文字队名，
   20 场一屏时无法靠队徽扫视；大号 44px 会撑高行高，故单独做一档。 */
/* 2026-10-21 (用户令): 全站队标统一到逐场存档那档 20px。原 18/14px 偏小。 */
.team-crest.sm { display: inline-flex; width: 26px; height: 26px; vertical-align: -6px; margin-inline-end: 7px; }
.team-crest.sm img { width: 24px; height: 24px; }
.team-name { font-size: 22px; font-weight: 800; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-midwrap { display:flex; flex-direction:column; align-items:center; min-width:0; }
.vs-mid { text-align: center; color: var(--t3); font-size: 13px; }
.kick-line { text-align: end; font-size: 13px; color: var(--t3); margin-bottom: 10px; }
.upd-note { font-size: 12.5px; color: var(--t3); margin-top: 12px; }

/* ---------- 模型表现卡 ---------- */
.perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.perf-cell { background: #F7F9FC; border-radius: 12px; padding: 14px; }
.perf-cell .n { font-size: 22px; font-weight: 800; color: var(--brand); }
.perf-cell .l { font-size: 12px; color: var(--t3); }

/* ---------- 最近赛果: 赛果 vs 赛前预测 对照 (2026-10-05) ----------
   无内滚动: 全部场次直接铺开, 由页面滚动承载 */
.perf-list { margin-top: 2px; }
.perf-row { padding: 10px 0; border-bottom: 1px solid #EEF1F6; }
.perf-row:last-child { border-bottom: none; }
.perf-row .pr-top { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--t3); }
.perf-row .pr-date { min-width: 44px; }
.perf-row .pr-lg { min-width: 0; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perf-row .pr-spacer { flex: 1; }
.perf-row .pr-main { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; margin-top: 5px; }
.perf-row .pr-teams { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.perf-row .pr-teams .tn { flex: 1; min-width: 0; font-size: 12.5px; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perf-row .pr-teams .tn:first-child { text-align: end; }
.perf-row .pr-teams .sc { flex: 0 0 auto; min-width: 54px; text-align: center; font-size: 14px; font-weight: 800; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
/* 比分即入口 (2026-10-06 定稿): 行内不再单列「分析 →」, 由比分本身的虚线下划线提示可点。
   hover 转实线 + 浅蓝底。 */
.perf-row .pr-teams a.sc {
  cursor: pointer; border-radius: 6px; padding: 1px 6px;
  text-decoration: underline dotted rgba(1, 77, 178, .5);
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: background .15s, color .15s, text-decoration-color .15s; }
.perf-row .pr-teams a.sc:hover {
  background: #EEF2FF; color: var(--brand);
  text-decoration: underline solid var(--brand); }
.perf-row .pr-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.perf-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12px; white-space: nowrap; }
.perf-pill .k { font-size: 11px; color: var(--t3); }
.perf-pill .v { font-weight: 800; }
.perf-pill .v.h { color: var(--brand); }
.perf-pill .v.d { color: var(--t3); }
.perf-pill .v.a { color: #B54708; }              /* 客队橙的深色版, 保证正文对比度 */
.perf-pill .sc { font-weight: 800; color: var(--t1); font-variant-numeric: tabular-nums; }
.perf-pill .s { font-size: 11px; color: var(--t3); }
.perf-pill.pred { background: #F5F8FF; border: 1px solid #DCE5F7; }
/* 胜平负预测命中(l.ok): 「预测」胶囊同样高亮(绿系), 与命中的比分胶囊同色。
   命中时 JS 给 .v 用 .ok 而非 .h/.d/.a, 故此处无需 !important 覆盖。 */
.perf-pill.pred.hit { background: #E6F4F6; border-color: #9AD0D8; }
.perf-pill.pred.hit .k, .perf-pill.pred.hit .s { color: #0E7490; }
.perf-pill .v.ok { color: #0E7490; }
/* 比分胶囊: 赛前概率前 3 的比分; 命中真实比分高亮(绿), 未中的压灰 */
.perf-row .pr-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.perf-chip { display: inline-flex; align-items: baseline; gap: 5px; border-radius: 999px; padding: 3px 9px; font-size: 12px; background: #F4F6FA; border: 1px solid #E7EBF1; color: #98A2B3; font-variant-numeric: tabular-nums; }
.perf-chip b { font-size: 12px; font-weight: 800; }
.perf-chip .p { font-size: 11px; }
.perf-chip.hit { background: #E6F4F6; border-color: #9AD0D8; color: #0E7490; }
.perf-chip.hit b { color: #0E7490; }
/* 胜平负方向命中标记 (2026-10-06 曾移除, 同日恢复): 表达"预测方向是否与实际赛果一致",
   非"比分猜对"。蓝灰色系以区别于比分胶囊的命中绿, 避免与比分命中混淆。 */
.perf-hit { min-width: 14px; text-align: center; font-size: 13px; font-weight: 800; }
.perf-hit.ok { color: #0E7490; }
.perf-hit.no { color: #64748B; }

/* ---------- Cookie 条 ---------- */
/* 2026-10-20: 原为底部居中 620px 宽，首屏直接盖住赛程/积分榜内容（实测遮 180px 高）。
   改为右下角小卡片：不挡主内容，首次访问也能读到页面。 */
.cookiebar { position: fixed; bottom: 18px; inset-inline-end: 18px; width: 400px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 40px rgba(16,24,40,.18); padding: 14px 16px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.cookiebar p { font-size: 12px; color: var(--t3); line-height: 1.6; }
.cookiebar .actions { display: flex; flex-direction: row; gap: 8px; justify-content: flex-end; }
.cookiebar button { border-radius: 18px; padding: 7px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer; border: 1px solid var(--border); background: #fff; color: var(--t2); }
.cookiebar button.accept { background: var(--brand); border-color: var(--brand); color: #fff; min-width: 120px; }

/* ---------- 页脚 ---------- */
footer { background: var(--brand-deep); color: #B9C6DB; margin-top: 60px; }
footer .inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 44px 0 30px; }
footer .logo { color: #fff; margin-bottom: 12px; }
footer .fh { color: #fff; font-size: 13.5px; font-weight: 700; margin: 0 0 12px; }
footer li { list-style: none; margin-bottom: 9px; }
footer .inner ul { list-style: none; margin: 0; padding: 0; }
footer a { color: #B9C6DB; font-size: 13.5px; overflow-wrap: anywhere; }
footer .inner > div { min-width: 0; }
footer .fine { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 26px; font-size: 12px; color: #7E90AC; }

/* ---------- 国家队页 (与联赛页统一浅色风格) ---------- */
.weight-chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wchip { border: 1px solid var(--border); border-radius: 8px; padding: 5px 11px; font-size: 12px; color: var(--t2); background: #fff; }
.wchip b { color: var(--t1); }
.wchip.on { background: #EEF2FF; border-color: var(--brand); color: var(--brand); }
.wchip.on b { color: var(--brand); }

/* ---------- 移动端 ---------- */
.tabbar { display: none; }
@media (max-width: 960px) {
  .hero .grid, .two-col, .news-grid { grid-template-columns: 1fr; }
  footer .inner { grid-template-columns: 1fr 1fr 1fr; }
  footer .inner > div:first-child { grid-column: 1 / -1; }
  .navlinks { display: none; }
  .hero h1 { font-size: 30px; }
  .matrix-wrap { grid-template-columns: 1fr; }
  .match-head { grid-template-columns: 1fr auto 1fr; text-align: center; }
  .team-side, .team-side.right { justify-content: center; }
  .ad-leaderboard { height: 60px; }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  /* --- 多端修复: 阻止 grid blowout 与赛程行溢出 --- */
  .container > * { min-width: 0; }
  .two-col > * { min-width: 0; }
  .match-row { flex-wrap: wrap; row-gap: 10px; }
  .match-row > div:first-child { min-width: 0 !important; flex: 1 1 100%; }
  .match-bar { flex: 1 1 150px; max-width: 100%; }
  .match-row .btn-analysis { margin-inline-start: auto; }
  .perf-row .pr-lg { max-width: 120px; }
  .perf-row .pr-teams, .perf-row .pr-pills { flex: 1 1 100%; }
  .perf-row .pr-teams .sc { min-width: 46px; }
  /* 2026-10-10 (用户令): 队名与比分同一行 —— 主队 | 比分 | 客队 三列网格保持,
     长队名靠 fitHeadNames 缩字号, 省略号兜底 */
  .match-head { display: grid; grid-template-columns: 1fr auto 1fr; padding: 18px 10px; gap: 8px; }
  .match-head .team-name { font-size: 13px; text-align: center; white-space: normal; line-height: 1.2; word-break: break-word; }
  .match-head .vs-midwrap { display:flex; flex-direction:column; align-items:center; min-width:0; }
.vs-mid { font-size: 20px !important; }
  .team-side, .team-side.right { gap: 6px; min-width: 0; }
  /* 2026-10-20: 22px + nowrap 在 390px 下会把「卡利亚里」截成「卡利…」。
     缩到 15px 并允许必要时换行。 */
  .team-name { font-size: 13px; white-space: normal; line-height: 1.25; word-break: break-word; }
  .team-crest { width: 42px; height: 42px; }
  .team-crest img { width: 30px; height: 30px; }
  .match-head > div { max-width: 100%; min-width: 0; }
  .legends { font-size: 12px; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 5px 2px calc(5px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 24px rgba(15,23,42,.07);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2.5px;
    padding: 3px 0 1px; font-size: 10.8px; font-weight: 600; color: var(--t3);
    min-width: 0; text-decoration: none;
  }
  .tabbar a .tb-ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 25px; border-radius: 999px; transition: background .15s ease; }
  .tabbar a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar a.active { color: var(--brand); }
  .tabbar a.active .tb-ic { background: rgba(37,99,235,.12); }
  /* 2026-10-20: 移动端原占 ~140px 高（近 17% 屏），遮挡赛程列表。
     压到单行说明 + 一行按钮，约 90px。 */
  .cookiebar { bottom: 68px; left: 8px; right: 8px; width: auto; padding: 10px 12px; gap: 8px; }
  .cookiebar p { font-size: 11px; line-height: 1.5; }
  .cookiebar .actions { gap: 6px; }
  .cookiebar button { flex: 1; min-width: 0; padding: 7px 6px; font-size: 11.5px; }
  .cookiebar button.accept { min-width: 0; }
  .cookiebar .actions { flex-direction: row; }
  .news-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  footer .inner { grid-template-columns: 1fr 1fr 1fr; gap: 14px; padding: 30px 0 20px; }
  footer .inner > div:first-child { grid-column: 1 / -1; }
  footer .fh { font-size: 12.5px; margin-bottom: 8px; }
  footer li { margin-bottom: 6px; }
  footer a { font-size: 12px; }
  footer .fine { padding: 14px 0 20px; }
  footer { margin-top: 18px; }
  .matrix td { width: 44px; height: 38px; font-size: 11px; }
  .match-bar { max-width: 200px; }
}

/* ---- news feed (机器人资讯流) ---- */
.news-feed-card { display:flex; gap:14px; padding:14px 16px; overflow:hidden; }
a.news-feed-card, a.news-feed-card:visited { color:inherit; text-decoration:none; }
.news-feed-card:hover { background:#FAFBFF; }
.nimg { position:relative; flex-shrink:0; width:96px; min-width:96px; height:72px; border-radius:8px; overflow:hidden; display:flex; align-items:center; justify-content:center; color:#fff; font-size:26px; background:linear-gradient(135deg,#0E3A78,var(--brand)); }
.nimg.ph { background:linear-gradient(135deg,#0E3A78,var(--brand)); }
.nimg img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.nimg.noimg { display:none; }
.nbody { flex:1; min-width:0; }
.nmeta { display:flex; align-items:center; gap:8px; font-size:11px; color:var(--t3); margin-bottom:6px; }
.nsrc { background:#EEF2FF; color:var(--brand); font-weight:700; padding:2px 8px; border-radius:10px; }
.nsrc.tr { background:#FFF4E5; color:#B25E09; }
.nlang { font-weight:700; color:var(--t3); }
.ntime { margin-inline-start:auto; }
.ntitle { font-size:15px; font-weight:700; color:var(--t1); margin-bottom:4px; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.nsum { font-size:12.5px; color:var(--t2); line-height:1.45; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.ntags { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.ntag { font-size:10.5px; font-weight:700; color:var(--t2); background:#F4F6FA; border:1px solid var(--border); padding:2px 8px; border-radius:10px; }
.ntag.lg { color:var(--brand); }
.nempty { color:var(--t3); padding:40px 0; text-align:center; }

/* ---- match 页资讯联动 ---- */
.match-news-list { display:grid; gap:0; }
.match-news-list .news-feed-card { border:none; border-bottom:1px solid var(--border); border-radius:0; padding:12px 2px; }
.match-news-list .news-feed-card:last-child { border-bottom:none; }
.match-news-list .nimg { width:76px; min-width:76px; height:56px; }
.match-news-list .ntitle { font-size:14px; }

/* ---- story 详情页 & 资讯卡片站内跳转 ---- */
.news-feed-card.clickable { cursor: pointer; }
a.next { flex-shrink: 0; align-self: center; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--t3); font-size: 14px; text-decoration: none; background: #F4F6FA; border: 1px solid var(--border); }
a.next:hover { color: var(--brand); border-color: var(--brand); }
.story-cover { max-width: 780px; }
.story-cover img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.story-table { width: 100%; border-collapse: collapse; }
.story-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.story-table td:first-child { width: 110px; white-space: nowrap; }

/* ---- story 全文排版 ---- */
.story-content { font-size: 16px; line-height: 1.75; color: var(--t1); }
.story-content p { margin: 0 0 16px; }
.story-content h2, .story-content h3 { font-size: 19px; margin: 26px 0 10px; color: var(--t1); }
.story-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 6px 0 14px; display: block; }
.story-content a { color: var(--brand); text-decoration: underline; }
.story-content blockquote { border-inline-start: 3px solid var(--brand); margin: 16px 0; padding: 6px 16px; background: #F7F9FC; border-start-start-radius: 0; border-start-end-radius: 8px; border-end-end-radius: 8px; border-end-start-radius: 0; color: var(--t2); }
.story-content ul, .story-content ol { padding-inline-start: 22px; margin: 0 0 16px; }
.story-content li { margin-bottom: 6px; }
.story-content figure { margin: 16px 0; }
.story-content figcaption, .story-content caption { font-size: 12px; color: var(--t3); }


/* ============ 访客统计行（页面底部） + 受众分析弹窗（参考 fbsa.app） ============ */
.vs-hint {
  display: none; text-align: center; cursor: pointer;
  font-size: 12.5px; color: var(--t3);
  padding: 20px 14px 30px; user-select: none;
  border-top: 1px solid var(--border); margin-top: 24px;
  transition: color .15s ease;
}
.vs-hint:hover { color: var(--brand); }
.vm-overlay {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .45);
  z-index: 1000; display: none; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 16px; overflow-y: auto;
}
.vm-overlay.show { display: flex; }
.vm-box {
  background: var(--card); border-radius: 14px; width: 100%; max-width: 640px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .25); animation: vmPop .18s ease;
}
@keyframes vmPop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.vm-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.vm-head h3 { font-size: 16px; font-weight: 700; color: var(--t1); }
.vm-close { border: none; background: none; font-size: 24px; color: var(--t3); cursor: pointer; line-height: 1; padding: 2px 8px; }
.vm-close:hover { color: var(--t1); }
.vm-body { padding: 16px 20px 20px; }
.vm-kpis { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.vm-kpi { flex: 1; min-width: 120px; background: #EEF3FB; border-radius: 10px; padding: 12px 14px; text-align: center; }
.vm-kpi .v { font-size: 24px; font-weight: 700; color: var(--brand); }
.vm-kpi .k { font-size: 11px; color: var(--brand); margin-top: 2px; }
.vm-sec { margin-bottom: 14px; }
.vm-sec h4 { font-size: 12.5px; font-weight: 600; color: var(--t3); margin-bottom: 6px; }
.vm-bars { display: flex; flex-direction: column; gap: 5px; }
.vm-bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.vm-bar-row .lb { width: 110px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.vm-bar-row .track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.vm-bar-row .fill { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #0B7A75); border-radius: 4px; }
.vm-bar-row .n { width: 36px; text-align: end; color: var(--t1); font-weight: 600; font-variant-numeric: tabular-nums; }
.vm-none { color: var(--t3); font-size: 12.5px; }
.vm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding: 12px 20px; font-size: 12px; color: var(--t3); flex-wrap: wrap; }
.vm-foot a { color: var(--brand); text-decoration: none; font-weight: 600; }
.vm-foot a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .vm-overlay { padding: 4vh 12px 12px; }
  .vm-kpi { min-width: 96px; padding: 10px 10px; }
  .vm-kpi .v { font-size: 20px; }
  .vm-bar-row .lb { width: 88px; font-size: 11.5px; }
  .vs-hint { font-size: 11.5px; margin-top: 0; padding: 10px 14px 4px; }
}

/* ============ 新闻分页: 无限滚动 ============ */
.news-more-wrap { display: flex; justify-content: center; align-items: center; margin: 26px 0 14px; min-height: 30px; }
.news-spin {
  display: inline-block; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--brand);
  animation: sl-spin .75s linear infinite;
}
@keyframes sl-spin { to { transform: rotate(360deg); } }
.news-more {
  border: 1.5px solid var(--border); background: var(--card); color: var(--brand);
  font-weight: 600; font-size: 14px; padding: 11px 36px; border-radius: 999px;
  cursor: pointer; transition: border-color .15s ease, transform .15s ease;
}
.news-more:hover { border-color: var(--brand); }
.news-more:active { transform: scale(.98); }
.news-more[disabled] { opacity: .55; cursor: default; }
.news-end { color: var(--t3); font-size: 12.5px; text-align: center; margin: 26px 0 6px; }

/* ============ Insights 页栅格（2026-10-02 移动端优化） ============ */
@media (max-width: 900px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .insights-grid { grid-template-columns: 1fr; gap: 16px; }
  .insights-grid .news-card .cover { height: 150px; }
  .insights-grid .news-card h3 { font-size: 16.5px; }
}

/* ============ 文章缺失空态 ============ */
.story-missing { padding: 34px 0 10px; color: var(--t3); font-size: 15px; }

/* ============ 底部标签栏 6 项适配（v2 图标化后不再需要缩字） ============ */

/* ============ Cookie 偏好面板 + 订阅消息（2026-10-02） ============ */
.cookiebar p a { color: var(--brand); font-weight: 600; text-decoration: underline; }
.cookiebar .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cookiebar .cb-reject { background: transparent; }
.cb-overlay { position: fixed; inset: 0; background: rgba(10,25,40,.45); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 18px; }
.cb-box { background: #fff; border-radius: 16px; padding: 24px 24px 20px; width: 100%; max-width: 440px;
  box-shadow: 0 18px 50px rgba(16,42,67,.22); }
.cb-box h3 { margin: 0 0 14px; font-size: 17px; color: var(--t1); }
.cb-row { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-top: 1px solid var(--border); }
.cb-row b { display: block; font-size: 13.5px; color: var(--t1); font-weight: 700; }
.cb-row span { display: block; font-size: 12px; color: var(--t3); margin-top: 2px; line-height: 1.45; }
.cb-switch { position: relative; flex: 0 0 auto; }
.cb-switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cb-switch i { display: block; width: 40px; height: 23px; border-radius: 999px; background: #CBD5E1;
  transition: background .15s ease; position: relative; }
.cb-switch i::after { content: ""; position: absolute; top: 2.5px; inset-inline-start: 2.5px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .15s ease; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.cb-switch.on i { background: var(--brand); }
.cb-switch.on i::after { transform: translateX(17px); }
.cb-actions { margin-top: 16px; display: flex; justify-content: flex-end; }
.nl-msg { min-height: 18px; font-size: 12.5px; color: var(--brand); font-weight: 600; margin: 8px 0 0; }
.nl-msg.warn { color: #C05621; }

/* ============ SEO: 静态页主标题 h1（2026-10-02） ============ */
.section-head h1 { font-size: 24px; color: var(--t1); font-weight: 800; letter-spacing: -.01em; }

/* ============ 摘要聚合模式: 来源卡 + 摘要（2026-10-02） ============ */
.story-summary { font-size: 16.5px; line-height: 1.75; color: var(--t1); max-width: 640px; }
.story-source {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--border); background: var(--card); border-radius: 12px;
  padding: 14px 16px; margin-top: 22px; max-width: 640px;
}
.story-source .ss-txt { min-width: 0; }
.story-source .ss-txt b { display: block; font-size: 14px; color: var(--t1); }
.story-source .ss-txt span { font-size: 12.5px; color: var(--t3); line-height: 1.5; }

/* --- CLS 修复: 动态注入容器高度预留 (2026-10-04 PageSpeed, 首页 API 注入前占位) --- */
#featured-hero { min-height: 250px; }
#featured-card { min-height: 340px; }
#home-trackrecord { min-height: 76px; }
#league-chips { min-height: 36px; }
#fixture-list { min-height: 420px; }
#trending { min-height: 170px; }
#live-news, #newsroom { min-height: 280px; }
@media (max-width: 640px) {
  #featured-hero { min-height: 220px; }
  #featured-card { min-height: 310px; }
  #fixture-list { min-height: 380px; }
  #live-news, #newsroom { min-height: 240px; }
}

/* ============ 首页战绩条 (2026-10-12 由内联样式改为语义类) ============
   原因: 内联样式媒体查询覆盖不到 → 375px 下四块只能竖排, 合计 615px。
   改成类后窄屏可重排 (见文件末尾「移动端版面体检」段)。四块口径: 五大/欧战/次级/国家队。 */
.ts-wrap { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.ts-block { flex: 1; min-width: 230px; }
.ts-label { font-size: 12px; font-weight: 800; color: var(--t1); margin-bottom: 8px; }
.ts-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ts-stat { display: block; }
.ts-v { display: block; font-size: 22px; font-weight: 800; color: var(--t1); }
.ts-v.brand { color: var(--brand); }
.ts-k { display: block; font-size: 11.5px; color: var(--t3); }
.ts-link { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; }
.ts-note { margin-top: 10px; font-size: 11.5px; color: var(--t3); }
/* 首页战绩条容器 (原为 index.html 内联 style, 2026-10-12 移入此处以便窄屏覆盖) */
#home-trackrecord { padding: 18px 22px; margin: 6px 0 26px; }

/* 战绩条的移动端挂载点 (2026-10-12): 单栏布局下把「模型战绩条」下沉到赛程之后,
   让「今日赛事」进入首屏。桌面隐藏本挂载点、显示 hero 下方那个（.h-tr-desktop）。
   ⚠️ 两个挂载点内容相同（renderHome 同时注入），CSS 只控制显示哪一个。 */
.h-tr-mobile { display: none; }
@media (max-width: 960px) {
  .h-tr-desktop { display: none; }
  .h-tr-mobile { display: block; margin: 22px 0 0; padding: 14px 16px; min-height: 330px; }
}

/* hero 焦点比分行 (原为内联样式, 2026-10-12 改为类以便窄屏收敛) */
.hero .hero-scoreline { font-size: 19px; font-weight: 700; color: #fff; max-width: none; margin: -6px 0 16px; }

/* ============ 模型 vs 市场面板 (2026-10-05) ============ */
/* 修正: .btn-ghost 原为深底白字, 用在白底正文里几乎不可见 (methodology 存档/市场表格的「显示全部」) */
.article-body .btn-ghost {
  background: #fff; color: var(--brand) !important; border: 1px solid var(--brand);
}
.article-body .btn-ghost:hover { background: #F2F6FC; }

/* 比赛页小面板 */
.mktb {
  margin-top: 14px; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; background: #F7F9FC;
}
.mktb-h {
  font-size: 11.5px; color: var(--t3); letter-spacing: .06em;
  font-weight: 700; margin-bottom: 10px;
}
.mktb-scroll { overflow-x: auto; }
.mktb-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.mktb-t th, .mktb-t td {
  padding: 6px 10px; text-align: start; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.mktb-t thead th { font-size: 11.5px; color: var(--t3); font-weight: 700; letter-spacing: .04em; }
.mktb-t tbody tr:last-child td { border-bottom: none; }
.mktb-t td:first-child { color: var(--t2); font-weight: 600; }
.mktb-m { font-weight: 700; color: var(--brand); }
.mktb-k { font-weight: 600; color: var(--t2); }
.mktb-e { font-weight: 700; font-variant-numeric: tabular-nums; }
/* edge 只表达「模型相对市场的方向」, 刻意避开红/绿 (国际读者会读成 好/坏) */
.mktb-e.up { color: #0B6BD6; }   /* 模型高于市场 */
.mktb-e.dn { color: #B45309; }   /* 模型低于市场 */
.mktb-f { margin-top: 10px; font-size: 12px; color: var(--t3); }
.mktb-none { margin: 0; font-size: 13px; color: var(--t3); }
@media (max-width: 480px) {
  .mktb { padding: 12px 10px; }
  .mktb-t { font-size: 12px; }
  .mktb-t th, .mktb-t td { padding: 5px 6px; }
}

/* 让球盘 / Edge 对照网格 (§4, 2026-10-07) */
.ah-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 9px 14px; font-size: 13.5px; }
.ah-head { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--t3); font-weight: 700; border-bottom: 1px solid var(--border); padding-bottom: 7px; }
.ah-l { font-weight: 700; color: var(--t1); font-variant-numeric: tabular-nums; }
.ah-v { color: var(--t2); font-variant-numeric: tabular-nums; }

/* §8.3 移动端矩阵：仅 Top 格显示数值 + 点按/长按精确概率浮层 */
.matrix td { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mpop {
  position: fixed; display: none; z-index: 60; pointer-events: none;
  padding: 8px 12px; border-radius: 10px; text-align: center;
  background: var(--card, #fff); border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(16, 20, 40, .16);
}
.mpop .mp-s { display: block; font-size: 17px; font-weight: 800; color: var(--t1); font-variant-numeric: tabular-nums; }
.mpop .mp-p { display: block; font-size: 14px; font-weight: 700; color: #0E7490; font-variant-numeric: tabular-nums; }
.mpop .mp-l { display: block; font-size: 10.5px; color: var(--t3); margin-top: 2px; }

@media (max-width: 640px) {
  /* 小屏：非 Top 格隐藏数值，只靠色阶表达；横屏（orientation）恢复全数值 */
  .matrix td .mv { visibility: hidden; }
  .matrix td.hi .mv, .matrix td.hit .mv { visibility: visible; }
  .matrix td { font-size: 11px; padding: 5px 2px; }
  .matrix th { font-size: 10.5px; padding: 3px 2px; }
}
@media (max-width: 640px) and (orientation: landscape) {
  .matrix td .mv { visibility: visible; }
}

/* ---------- 逐场回测存档卡片式 (2026-10-09 改版) ---------- */
.rt-list{display:flex;flex-direction:column;gap:8px}
.rt-row{display:grid;grid-template-columns:78px minmax(0,1fr) 64px minmax(0,1fr) auto 30px;align-items:center;gap:10px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px 14px;transition:box-shadow .15s,transform .15s}
.rt-row:hover{box-shadow:0 6px 18px rgba(6,33,74,.10);transform:translateY(-1px)}
.rt-row.hit{border-inline-start:3px solid #0E9F6E}
.rt-date{font-size:11.5px;color:var(--t3);font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
/* 2026-10-11 版面：长表默认折叠（战绩留痕页 260 行原始表曾占 11,289px ≈ 整页 70%）。
   「展开全部」按钮给 table 加 .tr-open 即显示，无需重新渲染。 */
.tr-more{display:none}
table.tr-open .tr-more{display:table-row}
.rt-team{display:flex;align-items:center;gap:7px;min-width:0}
.rt-team.h{justify-content:flex-end;text-align:right}
.rt-team b{font-size:13.5px;color:var(--t1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-crest{width:20px;height:20px;object-fit:contain;flex:none}
.rt-score{font-size:15px;font-weight:900;color:var(--t1);background:#F2F5FA;border-radius:9px;padding:4px 10px;text-align:center;white-space:nowrap}
.rt-pick .pk{font-style:normal;font-size:11.5px;font-weight:800;padding:3px 9px;border-radius:999px;white-space:nowrap}
.rt-pick .pkH{background:#E8F1FF;color:#014DB2}
.rt-pick .pkD{background:#F1F3F6;color:#5B6470}
.rt-pick .pkA{background:#FFF3E0;color:#B26A00}
.rt-ok{width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:13px}
.rt-ok.y{background:#E5F6EE;color:#067647}
.rt-ok.n{background:#FCEBEB;color:#A32D2D}
@media(max-width:640px){.rt-row{grid-template-columns:46px minmax(0,1fr) 52px minmax(0,1fr) auto 24px;gap:6px;padding:9px 10px}.rt-team b{font-size:12.5px}.rt-score{font-size:13px;padding:3px 7px}.rt-pick .pk{font-size:10.5px;padding:2px 7px}}

/* ---------- 头卡队名单行自适应 (2026-10-10): 队徽/队名永不换行, 长名自动缩字号 ---------- */
.team-side a { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; }
.team-side .team-crest { flex: none; }
.team-side .team-name { overflow: hidden; }

/* ============ 移动端版面体检 (2026-10-12, 375×812 实测) ============
   背景: 首页在 375px 下 hero 740px + 战绩条 615px, 「今日赛事」被推到第 2 屏
   (首个赛程 y=1602, 约 1.97 屏); 另探针显示 49 个可点元素里 31 个高度 < 32px
   (页脚链接仅 15px)。以下为窄屏针对性收敛, 全部只作用于 ≤640px, 桌面不受影响。 */
@media (max-width: 640px) {
  /* 1) hero 收敛 (740 → ~645): 收紧内边距/标题/行距, 让「今日赛事」标题尽早进入视野 */
  .hero { padding: 26px 0 30px; }
  .hero .grid { gap: 18px; }
  .hero .kicker { margin-bottom: 8px; }
  .hero h1 { font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
  .hero p { font-size: 14.5px; margin-bottom: 14px; }
  .hero .hero-scoreline { margin: 0 0 12px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn-ghost, .hero-actions .btn-outline { flex: 1 1 0; min-width: 0; padding: 9px 10px; text-align: center; }
  .hero-card { padding: 16px; }

  /* 2) 战绩条重排为 2×2 紧凑网格 (615 → ~270): 每块 label 一行 + 三条
        「数值 说明」紧凑行 + 详情链接。三块数值在 126px 单元格内不换行。 */
  #home-trackrecord { padding: 14px 16px; margin: 6px 0 18px; }
  .ts-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; }
  .ts-block { min-width: 0; }
  .ts-label { font-size: 11.5px; margin-bottom: 6px; }
  .ts-stats { flex-direction: column; gap: 3px; }
  .ts-stat { display: flex; align-items: baseline; gap: 7px; }
  .ts-v { font-size: 15px; }
  .ts-k { font-size: 10.5px; }
  .ts-link { align-self: flex-start; display: inline-block; margin-top: 2px; padding: 3px 0; font-size: 12px; }

  /* 3) 区块纵向间距收敛 (44 → 32), 同类间距全站统一 */
  .section { padding: 32px 0; }

  /* 4) 触控目标: 补齐行内/页脚链接高度到 ≥26px (WCAG 2.2 AA 要求 ≥24px)。
        实测页脚 13 条链接仅 15px、区块「查看全部」链接 23px、热榜标题 18px。 */
  .section-head a { display: inline-block; padding: 6px 0; }
  .side-list li a { display: inline-block; padding: 3px 0; }
  footer li { margin-bottom: 1px; }
  footer a { display: block; padding: 5px 0; line-height: 1.35; }
  .newsletter p a { display: inline-block; padding: 4px 0; }
  .cookiebar p a { display: inline-block; padding: 4px 0; }
  select.lang-btn { min-height: 34px; }

  /* 5) 文章卡封面是纯装饰（只有分类标签，无图）: 窄屏 150 → 118,
        单屏内三张卡片省 ~96px, 卡片长宽比也更接近移动端习惯。 */
  /* 2026-10-22 (用户反馈「为什么占这么大一片」): 118px 仍占卡片 46%，
     纯色块没有信息量。再降到 76px（约卡片 30%），分类标签仍够放。 */
  .news-card .cover { height: 76px; }

  /* 6) 队名链接 (teamLink, 赛程/国家队页): 该 <a> 是**内联**元素 —— 加垂直 padding
        不改变行盒高度 (不重排), 但 getBoundingClientRect 会随之变大, 命中区由
        16px → ~33px (WCAG 2.2 AA 要求 ≥24px)。行高约 190px, padding 不会侵占相邻行。
        实测 matches.html: 148 条队名链接全部由 16px → 31px。 */
  .match-teams a { padding: 6px 2px; }

  /* 7) 正文/说明面板里 <p> 内的文字链接同理: 内联 + 垂直 padding = 视觉零变化、
        命中区翻倍 (16 → 24px)。排除按钮/标签类（它们有底色, 会被撑大）。 */
  main p a:not([class*="btn"]):not([class*="chip"]):not([class*="badge"]) { padding: 4px 0; }
}

/* ============================================================
   Track record 页专业化改版 (2026-10-15)
   —— 命名全部 tr2- 前缀, 不影响其他页面既有类
   ============================================================ */

/* 1) 顶部实时战绩 KPI 带 (#tr-stats 内由 app.js 渲染 perf-grid) */
#tr-stats .perf-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
#tr-stats .perf-cell { background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; box-shadow: 0 1px 2px rgba(2, 32, 71, .04); }
#tr-stats .perf-cell .n { font-size: 22px; font-weight: 800; color: var(--t1); letter-spacing: -.02em; }
#tr-stats .perf-cell .l { font-size: 11.5px; font-weight: 700; color: var(--t3);
  text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }

/* 2) 模型基准区: V3 冻结口径 KPI 卡带 */
.tr-kpi-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin: 14px 0 8px; }
.tr-kpi { background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; box-shadow: 0 1px 3px rgba(2, 32, 71, .05); }
.tr-kpi .n { font-size: 28px; font-weight: 800; color: var(--t1); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; }
.tr-kpi .l { font-size: 11.5px; font-weight: 700; color: var(--t3); text-transform: uppercase;
  letter-spacing: .05em; margin-top: 3px; }
.tr-kpi .s { font-size: 11.5px; color: var(--t3); margin-top: 6px; line-height: 1.45; }
.tr-kpi.main { background: linear-gradient(135deg, #0B3D91 0%, #0B6BD6 100%);
  border-color: transparent; box-shadow: 0 4px 14px rgba(11, 77, 178, .25); }
.tr-kpi.main .n { color: #fff; font-size: 36px; }
.tr-kpi.main .l { color: rgba(255, 255, 255, .8); }
.tr-kpi.main .s { color: rgba(255, 255, 255, .6); }

/* 3) 门控档位表: 准确率 ← 覆盖率条形, 三行渐进 */
.trc-gt { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin: 4px 0 0; }
.trc-gt td { background: #F7F9FC; padding: 13px 16px; vertical-align: middle; }
.trc-gt td:first-child { border-radius: 12px 0 0 12px; width: 130px; }
.trc-gt td:last-child { border-radius: 0 12px 12px 0; width: 150px; text-align: end; }
.trc-gt .gt-a b { font-size: 21px; font-weight: 800; color: var(--brand);
  font-variant-numeric: tabular-nums; }
.trc-gt .gt-a span, .trc-gt .gt-l span { display: block; font-size: 10.5px; font-weight: 700;
  color: var(--t3); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.trc-gt .gt-l b { font-size: 14px; font-weight: 800; color: var(--t1);
  font-variant-numeric: tabular-nums; }
.trc-gt .gt-l { text-align: end; }
.trc-gt .gt-bar { position: relative; }
.trc-gt .gt-bar i { display: block; height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, #0B3D91, #3B82F6); min-width: 6px; }
.trc-test { font-size: 12.5px; color: var(--t3); margin: 10px 0 0; line-height: 1.55; }

/* 4) 空数据占位 (月度/校准): 诚实说明而非空白 */
.trc-empty { background: repeating-linear-gradient(-45deg, #F8FAFD, #F8FAFD 12px,
  #F2F5FA 12px, #F2F5FA 24px); border: 1px dashed var(--border); border-radius: 12px;
  padding: 26px 22px; text-align: center; }
.trc-empty p { margin: 0; font-size: 13px; color: var(--t3); }

/* 5) 留痕表格容器卡片化 */
#tr-pending .meth-table, #tr-resolved .meth-table { background: #fff; }
#tr-pending .meth-scroll, #tr-resolved .meth-scroll,
#tr-pending .meth-table, #tr-resolved .meth-table { border-radius: 12px; }
#tr-resolved .meth-table tr.hit td { background: #F0FBF4; }

/* 6) 移动端 */
@media (max-width: 640px) {
  .tr-kpi.main .n { font-size: 30px; }
  .trc-gt td { padding: 10px 10px; }
  .trc-gt td:first-child { width: 96px; }
  .trc-gt td:last-child { width: 104px; }
  .trc-gt .gt-a b { font-size: 17px; }
}

/* 5b) 留痕表完整样式 —— .meth-table 原本只在 methodology.html 内联定义,
   track-record 页引用了同名类却没有任何 CSS, 表格 shrink-to-fit 导致右侧大片空白 (2026-10-15) */
#tr-pending .meth-table, #tr-resolved .meth-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
#tr-pending .meth-table th, #tr-resolved .meth-table th {
  background: #F2F5FA; color: var(--t2); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .04em; text-align: start;
  padding: 10px 14px; border-bottom: 2px solid var(--border); white-space: nowrap; }
#tr-pending .meth-table td, #tr-resolved .meth-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
#tr-pending .meth-table tbody tr:hover td, #tr-resolved .meth-table tbody tr:hover td {
  background: #F6F9FD; }
#tr-resolved .meth-table tbody tr:nth-child(even):not(.hit) td { background: #FAFBFD; }
#tr-pending .meth-table td.v, #tr-resolved .meth-table td.v {
  font-variant-numeric: tabular-nums; white-space: nowrap; }
#tr-pending .meth-scroll, #tr-resolved .meth-scroll {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  overflow-x: auto; box-shadow: 0 1px 3px rgba(2, 32, 71, .05); }

/* ---------- 结论胶囊组 / 段落标题（2026-10-19 提到全局） ----------
   这几组类原本只写在各页面自己的内联 <style> 里：
     .pv-*  → preview.html
     .trc-* → track-record.html / monitor.html
   但 app.js 的 renderMatchRecap()（比赛页「赛前预测 vs 实际结果」）和
   renderLeagueSim()（联赛赛季模拟）直接复用了这些类名，而 match.html /
   league.html 并没有定义 → 整块退化成无样式的裸文本流，值标签挤成一列。
   现统一提到全局，页面内联的重复定义保持不变（同值，无冲突）。 */
.pv-band {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; margin: 14px 0; box-shadow: 0 1px 3px rgba(2, 32, 71, .05); }
.pv-chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pv-chip {
  background: #F2F5FA; border-radius: 10px; padding: 8px 12px; text-align: center; }
.pv-chip b { display: block; font-size: 15px; font-weight: 800; color: var(--t1); }
.pv-chip span { font-size: 11px; color: var(--t3); }
.trc-h { font-size: 19px; font-weight: 800; color: var(--t1); margin: 0 0 4px; }
.trc-sub { font-size: 13px; color: var(--t3); margin: 0 0 14px; }

/* ---------- 模型板块标签条（2026-10-19） ----------
   战绩 / 方法论 / 监控 三页共用一条标签导航，形成「模型」板块的归属感。
   不合并为单页 HTML：三个渲染函数各自依赖独立的容器 id（tr-* / meth-* / mh-*），
   强行合并会同时初始化三套图表，既慢又容易互相覆盖。 */
.model-tabs { display: flex; gap: 6px; padding: 6px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; margin: 18px 0 20px; width: fit-content; }
.model-tabs a { padding: 7px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 700;
  color: var(--t2); text-decoration: none; transition: background .12s ease; }
.model-tabs a:hover { background: #F2F5FA; }
.model-tabs a.on { background: var(--brand); color: #fff; }

/* ══════════════════════════════════════════════════════════════
   比赛页视觉重构（2026-10-19）—— 作用域 .pg-match，不影响其他页
   依据 docs/prototype-match.html：大留白、卡片呼吸感、热力图主导
   ══════════════════════════════════════════════════════════════ */
.pg-match .container { max-width: 1180px; }

/* 卡片：统一节奏（原 padding 写在各元素 inline style 上，故需 !important） */
.pg-match .card {
  padding: 26px 30px !important;
  margin-bottom: 20px !important;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(10, 31, 51, .06);
}

/* 比分头：再放宽一档，作为页面锚点 */
.pg-match .match-head { padding: 32px 34px !important; }

/* ── 比分网格：从「卡片里的小表」提升为页面主视觉 ── */
/* 保持「网格 + 阅读指南」双列：放大后网格约 480px，主栏 950px 仍有空间放说明 */
.pg-match .matrix-wrap { gap: 20px; }
.pg-match .matrix { margin: 0 auto; border-spacing: 6px; }
.pg-match .matrix td {
  width: 74px; height: 56px; border-radius: 11px;
  font-size: 14px; letter-spacing: -.01em;
}
.pg-match .matrix th { font-size: 12.5px; padding: 6px 4px; }
.pg-match .matrix td.hit { outline-width: 3px; outline-offset: -3px; }
.pg-match .matrix td.hit b { font-size: 15px; }
/* 空概率格压低存在感，让有值的格子跳出来 */
.pg-match .matrix td.empty { background: #FAFBFD; color: #C9D1DC; }

/* 网格说明与 top 比分 chips：跟随放大后的节奏 */
.pg-match .topchips { margin-top: 14px; gap: 7px; }
.pg-match .score-chip { padding: 6px 11px; font-size: 12.5px; }

/* 修正：matrix-wrap 首列会被 top 比分 chips 撑到 max-content，
   把「阅读指南」挤成一条竖排文字（实测宽度剩 ~40px）。
   给两列明确约束：网格占剩余空间并可横向滚动，指南固定 240-280px。 */
.pg-match .matrix-wrap {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  align-items: start;
}
.pg-match .matrix-wrap > div:first-child { min-width: 0; overflow-x: auto; }
.pg-match .howto { min-width: 240px; }

/* ══════════════════════════════════════════════════════════════
   移动端表格（2026-10-20）
   .st-wrap 此前**没有任何 CSS 定义**，超宽表格被父容器直接裁掉，
   用户看不到右侧列（积分榜 560px / 球员表 560px，视口仅 390px）。
   改为横向滚动容器 + 移动端紧凑排版，尽量一屏放下。
   ══════════════════════════════════════════════════════════════ */
.st-wrap { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .st-table { font-size: 12px; }
  .st-table th, .st-table td { padding: 6px 4px; }
  .st-table .tm { max-width: 92px; }
  .meth-table { font-size: 12px; }
  .meth-table th, .meth-table td { padding: 6px 5px; }
  .tp-tbl { font-size: 12.5px; }
  .tp-tbl th, .tp-tbl td { padding: 7px 6px; }
}

/* 移动端表格字号必须压过页面内联样式（6 个页面各自 <style> 定义了 .st-table，
   内联块在 <link> 之后加载，同特异性下会赢）。 */
@media (max-width: 640px) {
  .st-table { font-size: 12px !important; }
  .st-table th, .st-table td { padding: 6px 4px !important; }
}

/* 联赛筛选 chips：球队目录有 33 个联赛，移动端换行会占满整屏、把表格推到很下面。
   改为单行横向滚动（仅作用于加了 .chips-scroll 的容器，不影响其它页）。 */
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { flex: none; white-space: nowrap; }

/* 球队目录/球员总榜的 .tp-tbl 在移动端会被压成竖排（4-2-0 拆成三行）。
   给最小宽度并让外层 .st-wrap 横向滚动，保证列不塌。 */
@media (max-width: 640px) {
  .tp-tbl { min-width: 520px; }
}

/* 移动端精简球队目录列：隐藏「联赛」（已有 chips 筛选）与「进/失」（净胜球已足够），
   保留 排名/球队/Elo/场次/胜平负/净胜球，390px 一屏可读。 */
@media (max-width: 640px) {
  .tp-tbl .col-lg, .tp-tbl .col-gfga { display: none; }
  .tp-tbl { min-width: 0; }
}

/* 移动端数值列不允许换行（「4-2-0」被压成三行），球队列限宽让位 */
@media (max-width: 640px) {
  .tp-tbl .tp-v { white-space: nowrap; }
  .tp-tbl .tp-p { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tp-tbl th { white-space: nowrap; }
}

/* ══════════════════════════════════════════════════════════════
   移动端筛选 chips：统一单行横向滚动（2026-10-20）
   赛程页 22 个联赛标签换行排了 5 行、占掉首屏 1/3，比赛内容被推到 640px 以下
   —— 这是「移动端乱」最直接的观感来源。全站 8 处 .chips 统一处理。
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips .chip { flex: none; white-space: nowrap; }
}

/* 战绩页 KPI 带：移动端 auto-fit minmax(200px) 在 350px 内容宽下被压成不等宽列，
   「10月18日星期日」撑高首行导致整块参差。固定两列等宽 + 缩小字号。 */
@media (max-width: 640px) {
  .tr-kpi-band { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tr-kpi { padding: 14px 14px 12px; border-radius: 12px; }
  .tr-kpi .n { font-size: 21px; }
  .tr-kpi .l, .tr-kpi .s { font-size: 10.5px; }
}

/* ══════════════════════════════════════════════════════════════
   移动端比分网格不可见（2026-10-20）
   两个原因叠加：
   1) 666 行 `.matrix td .mv { visibility: hidden }` 默认隐藏数字，
      只有 .hi/.hit 才显示 → 用户看到的是「没有数字的浅色块」
   2) `.pg-match .matrix td` 设了 74×56 但没加媒体查询，移动端仍按桌面尺寸，
      6 列需 444px，容器塞不下被压缩成 186px，格子小到看不出深浅
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .pg-match .matrix { border-spacing: 4px; }
  .pg-match .matrix td { width: 46px; height: 40px; font-size: 11.5px; border-radius: 8px; }
  .pg-match .matrix th { font-size: 10.5px; padding: 3px 2px; }
  /* 数字全部可见（移动端不再依赖点按浮层） */
  .pg-match .matrix td .mv { visibility: visible; }
  /* 网格独占一行，指南移到下方 */
  .pg-match .matrix-wrap { grid-template-columns: 1fr; }
}

/* 2026-10-20: .st-wrap 的 overflow-x:auto 让 .tp-tbl 可以无限变宽（实测 3253px），
   球队列被撑到 1252px，右侧 Elo/场次/胜负/净胜球全被推出屏幕外。
   桌面端必须约束表格宽度，让列按容器分配；球队列单独限宽。 */
.tp-tbl { width: 100%; table-layout: auto; }
.tp-tbl .tp-p { max-width: 260px; }

/* 2026-10-20 补充：.st-wrap 没有宽度上限时，表格的 width:100% 会相对「被内容撑开的父级」
   计算（实测 3253px），等于没有约束。给容器加 max-width 才能真正压住。 */
.st-wrap { max-width: 100%; }

/* 2026-10-20 最终修：table 的 min-content 宽度（3253px）会突破任何 max-width。
   只有 table-layout:fixed 能强制按容器分配列宽。 */
.tp-tbl { table-layout: fixed; }
.tp-tbl .tp-p { width: 30%; }
.tp-tbl .tp-lg { width: 12%; }

/* 2026-10-20 终极修：父级 .card 被表格撑开后，子元素的 max-width:100% 会相对
   被撑开的宽度计算（死循环）。min-width:0 让容器不被内容撑开。 */
.card { min-width: 0; }
.st-wrap { width: 100%; min-width: 0; }
.tp-tbl { max-width: 100%; }

/* ══════════════════════════════════════════════════════════════
   2026-10-20 根因：main.container.two-col 是 display:grid，
   grid 子项默认 min-width:auto —— 会被内部表格的 min-content 撑开
   （实测 3299px，而 main 只有 1160px），后续 max-width/table-layout 全部失效。
   必须显式 min-width:0 才能让 grid 子项可压缩。
   ══════════════════════════════════════════════════════════════ */
.container.two-col > * { min-width: 0; }

/* 2026-10-20: 桌面端 chips 也变成了横向滚动（移动端规则外溢），
   鼠标拖不动只能滚轮，右侧标签等于不可见。桌面端恢复换行。 */
@media (min-width: 641px) {
  .chips, .chips-scroll { flex-wrap: wrap; overflow-x: visible; }
}


/* ══════════════════════════════════════════════════════════════
   2026-10-21 (用户反馈「怎么这么丑」):
   战链留痕表格 5 列（日期/对阵/概率/首选/开赛）在 390px 下撑不下，
   浏览器把列宽压到几个像素，中文变成逐字竖排
   （"10 月 21 日 星 期 三"）。加横向滚动 + 最小宽度。
   ══════════════════════════════════════════════════════════════ */
#tr-pending, #tr-resolved, #tr-calib {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 960px) {
  #tr-pending table, #tr-resolved table, #tr-calib table {
    min-width: 600px;
  }
  /* 短列禁止换行，让表格保持可读的横向布局 */
  #tr-pending th, #tr-resolved th,
  #tr-pending td:nth-child(1), #tr-resolved td:nth-child(1),
  #tr-pending td:nth-child(3), #tr-resolved td:nth-child(3),
  #tr-pending td:nth-child(4), #tr-resolved td:nth-child(4),
  #tr-pending td:nth-child(5), #tr-resolved td:nth-child(5),
  #tr-pending td:nth-child(6), #tr-resolved td:nth-child(6) {
    white-space: nowrap;
  }
}
/* ══════════════════════════════════════════════════════════════
   比赛页移动端修正（2026-10-21）
   .pg-match 前缀让这批「桌面提升」规则优先级高一级（0,2,x），
   且 padding 带 !important —— 媒体查询里的 .match-head{padding:18px 10px}
   与 .matrix td{width:44px} 全被压掉，移动端实际生效的是
   34px 内边距 + 74px 单元格（6 列约 480px，溢出 390px 视口），
   比分头被挤变形、比分网格横向溢出。
   这里用同等前缀 + !important 覆盖，必须放在文件**末尾**（同优先级后出现者胜）。
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .pg-match .card { padding: 16px 12px !important; margin-bottom: 14px !important; }
  .pg-match .match-head { padding: 14px 8px !important; gap: 6px; }
  .pg-match .matrix { border-spacing: 3px; }
  .pg-match .matrix td { width: 44px; height: 38px; font-size: 11px; border-radius: 8px; }
  .pg-match .matrix th { font-size: 10.5px; padding: 4px 2px; }
  .pg-match .matrix td.hit { outline-width: 2px; outline-offset: -2px; }
  .pg-match .matrix td.hit b { font-size: 12px; }
  /* 网格 + 阅读指南：移动端必须单列，否则指南的 min-width:240px 会把网格挤没 */
  .pg-match .matrix-wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pg-match .howto { min-width: 0; }
  .pg-match .topchips { margin-top: 10px; gap: 5px; }
  .pg-match .score-chip { padding: 4px 8px; font-size: 11.5px; }
}

/* ══════════════════════════════════════════════════════════════
   2026-10-21 (用户问「焦点分析，球队可以加队标吗」):
   首页 hero 焦点对阵加队标。深色底上图标的圆形托底用半透明白，
   否则 .team-crest.sm 的浅蓝底色会显得脏。
   ══════════════════════════════════════════════════════════════ */
.hero .hero-vs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  flex-wrap: wrap;
}
.hero .hero-vs i {
  font-style: normal;
  font-weight: 500;
  opacity: .72;
  padding: 0 4px;
  font-size: 17px;
}
.hero .hero-vs .team-crest.sm {
  background: rgba(255, 255, 255, .16);
  /* 2026-10-21 (用户令): hero 里的队标单独放大到 28px，比列表的 20px 更醒目。
     只覆盖 .hero 作用域，不影响全站列表档。 */
  width: 30px;
  height: 30px;
}
.hero .hero-vs .team-crest.sm img {
  width: 28px;
  height: 28px;
}
@media (max-width: 640px) {
  .hero .hero-vs { font-size: 16px; gap: 6px; }
  .hero .hero-vs i { font-size: 15px; }
}

/* ══════════════════════════════════════════════════════════════
   2026-10-22 (用户反馈「排版乱」):
   #matrix-head 是 flex 容器，h2「比分概率」被压缩到 63px
   （4 个 19px 的中文字需要 76px），折成「比分概 / 率」两行。
   允许换行并把 h2 固定成不收缩，标题就能单行显示。
   ══════════════════════════════════════════════════════════════ */
#matrix-head {
  flex-wrap: wrap;
  align-items: center;
  row-gap: 6px;
}
#matrix-head > h2 {
  flex: 0 0 auto;
  white-space: nowrap;
  margin: 0 12px 0 0;
}

/* 2026-10-22 (用户令): 比分统一放在主队名之后、客队队标之前。
   赛程卡片的比分从「gh 跟主队 / ga 跟客队」改成中间合并的 "2 - 1"。 */
.match-teams.oneline .mt-sc {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 14px;
  color: var(--t1);
  font-variant-numeric: tabular-nums;
  padding: 0 6px;
  white-space: nowrap;
}

/* 2026-10-22 (用户令「这里也不要出现滚动条，太丑了」):
   侧栏 sticky + 内部滚动，滚动条一直挂在那儿很扎眼。
   隐藏原生滚动条但保留滚动能力（滚轮 / 触控板照常）。
   Firefox 用 scrollbar-width，WebKit 用 ::-webkit-scrollbar。 */
.two-col > aside {
  scrollbar-width: none;
}
.two-col > aside::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* 2026-10-22 (用户令): 焦点卡「最可能比分」PC 16 个、移动端 6 个。
   渲染始终 16 个，窄屏隐藏多余的不重排。 */
@media (max-width: 640px) {
  .score-chips-wrap .score-chip:nth-child(n+7) { display: none; }
}

/* 2026-10-22 (用户反馈「移动端样式乱了」): 市场异动 PC 显示队名，窄屏只留队标。 */
@media (max-width: 640px) {
  .mv-t .mv-n { display: none; }
}
