/* ============================================================
   BallFact · case.css —— Truth Lab 案件档案页样式（依赖 global.css + article.css）
   适用于：/truth/<case>/ 及其 /zh/ 版本
   设计语言：调查卷宗 —— 指控 → 证据 → 交叉质询 → 裁决
   ============================================================ */

/* --- 滚动显现：元素进场前压暗下移，.in 后浮现（case.js 控制） --- */
.rv { opacity:0; transform:translateY(1.25rem); transition:opacity .7s ease, transform .7s ease; }
.rv.in { opacity:1; transform:none; }

/* --- 案件头：卷宗编号条 + 大号裁决章 --- */
.case-no { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; font-size:0.71875rem; letter-spacing:.2em; text-transform:uppercase; color:var(--faint); margin-bottom:1.75rem; }
.case-no b { color:var(--acc); font-weight:500; }
.case-no .rule { flex:1; min-width:3rem; height:1px; background:var(--line-2); }

/* 裁决印章：橡皮章质感，轻微倾斜，进场时砸下（scale 落定） */
.stamp { display:inline-block; padding:0.625rem 1.5rem; border:3px solid currentColor; font-family:var(--disp); font-weight:900; font-size:1.375rem; letter-spacing:.14em; text-transform:uppercase; transform:rotate(-5deg); line-height:1; white-space:nowrap; }
.stamp.busted { color:var(--red); box-shadow:0 0 2.5rem rgba(255,64,56,.18); }
.stamp.confirmed { color:var(--acc); box-shadow:0 0 2.5rem var(--acc-glow); }
.stamp.disputed { color:var(--cyan); box-shadow:0 0 2.5rem var(--cyan-dim); }
.rv.in .stamp { animation:stampIn .45s cubic-bezier(.2,1.6,.4,1) both; animation-delay:.25s; }
@keyframes stampIn { from { transform:rotate(-5deg) scale(2.2); opacity:0; } to { transform:rotate(-5deg) scale(1); opacity:1; } }

/* --- 关键数字三联（计数动画由 case.js 驱动） --- */
.kstats { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--line); background:var(--surface); margin-bottom:1.375rem; }
.kstat { padding:2rem 1.5rem; text-align:center; border-left:1px solid var(--line); }
.kstat:first-child { border-left:none; }
.kstat .kv { font-family:var(--disp); font-weight:900; font-size:3rem; line-height:1; color:var(--acc); font-variant-numeric:tabular-nums; }
.kstat .kv small { font-size:1.25rem; color:var(--dim); font-weight:700; }
.kstat .kl { margin-top:0.75rem; font-size:0.71875rem; letter-spacing:.16em; text-transform:uppercase; color:var(--faint); }

/* --- 指控与事实对垒：左红（谣言）右绿（事实） --- */
.duel { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1.375rem; }
.duel-col { border:1px solid var(--line); background:var(--surface); padding:1.75rem 1.875rem; position:relative; }
.duel-col.myth { border-color:rgba(255,64,56,.35); }
.duel-col.fact { border-color:rgba(204,255,0,.35); }
.duel-tag { display:inline-block; font-size:0.65625rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; padding:0.3125rem 0.75rem; margin-bottom:1.125rem; }
.myth .duel-tag { color:var(--red); background:var(--red-dim); }
.fact .duel-tag { color:var(--acc); background:var(--acc-dim); }
.duel-col blockquote { font-size:1.0625rem; line-height:1.9; color:var(--text); font-style:italic; }
.myth blockquote { text-decoration:line-through; text-decoration-color:rgba(255,64,56,.6); text-decoration-thickness:2px; }
.duel-col .src { margin-top:1rem; font-size:0.75rem; color:var(--faint); letter-spacing:.08em; }

/* --- 图表容器 --- */
.chart { border:1px solid var(--line); background:var(--surface); padding:1.75rem 1.875rem 2rem; margin-bottom:1.375rem; }
.chart-cap { display:flex; justify-content:space-between; gap:0.75rem; flex-wrap:wrap; font-size:0.71875rem; letter-spacing:.16em; text-transform:uppercase; color:var(--faint); margin-bottom:1.75rem; }
.chart-cap b { color:var(--acc); font-weight:500; }

/* --- 条形图：纯 div，宽度动画在 .chart.in 时触发 --- */
.bars { display:flex; flex-direction:column; gap:0.875rem; }
/* 兼容 bar-row 直接放在 .chart 里的写法（无 .bars 包裹时由图表容器兼管行距） */
.chart > .bar-row { margin-top:0.875rem; }
.chart > .bar-row:first-of-type { margin-top:1rem; }
.bar-row { display:grid; grid-template-columns:5.5rem 1fr 4.5rem; align-items:center; gap:0.875rem; font-size:0.8125rem; }
.bar-row .bl { color:var(--dim); text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.bar-row .bt { font-size:0.75rem; color:var(--faint); text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.bar-track { height:1.375rem; background:var(--bg-2); position:relative; overflow:hidden; }
.bar-fill { position:absolute; inset:0 auto 0 0; width:0; background:linear-gradient(90deg,rgba(204,255,0,.25),var(--acc)); transition:width 1.1s cubic-bezier(.25,.9,.3,1); }
.chart.in .bar-fill { width:var(--w); }
.bar-row.peak .bl,.bar-row.peak .bt { color:var(--acc); font-weight:700; }
.bar-row.dim .bar-fill { background:var(--line-2); }
.bar-row.red .bar-fill { background:linear-gradient(90deg,rgba(255,64,56,.2),var(--red)); }
.bar-note { margin-top:1.25rem; font-size:0.75rem; color:var(--faint); letter-spacing:.04em; }

/* --- 生涯曲线（SVG 折线）：进场时描线 --- */
.linechart { width:100%; height:auto; display:block; }
.linechart .grid-l { stroke:var(--line); stroke-width:1; }
.linechart .axis-t { fill:var(--faint); font-family:var(--mono); font-size:11px; letter-spacing:.08em; }
.linechart .trace { fill:none; stroke:var(--acc); stroke-width:2.5; stroke-dasharray:900; stroke-dashoffset:900; }
.chart.in .trace { animation:draw 1.8s ease forwards; }
@keyframes draw { to { stroke-dashoffset:0; } }
.linechart .pt { fill:#050505; stroke:var(--acc); stroke-width:2; opacity:0; }
.linechart .pt-lab { fill:var(--dim); font-family:var(--mono); font-size:11px; opacity:0; }
.chart.in .pt, .chart.in .pt-lab { animation:fadeIn .4s ease forwards; }
@keyframes fadeIn { to { opacity:1; } }
.chart.in .pt:nth-of-type(1) { animation-delay:.3s; } .chart.in .pt:nth-of-type(2) { animation-delay:.6s; }
.chart.in .pt:nth-of-type(3) { animation-delay:.9s; } .chart.in .pt:nth-of-type(4) { animation-delay:1.2s; }
.chart.in .pt:nth-of-type(5) { animation-delay:1.5s; }
.linechart .pt.peak { fill:var(--acc); }
.linechart .pt.peak + .pt-lab, .linechart .peak-lab { fill:var(--acc); font-weight:700; }

/* --- 证据日志：逐行进场的进球/事件流 --- */
.log { border:1px solid var(--line); background:var(--surface); margin-bottom:1.375rem; }
.log-h { padding:0.875rem 1.375rem; border-bottom:1px solid var(--line); font-size:0.71875rem; letter-spacing:.16em; text-transform:uppercase; color:var(--faint); display:flex; justify-content:space-between; gap:0.75rem; flex-wrap:wrap; }
.log-h b { color:var(--acc); font-weight:500; }
.log li { display:flex; gap:1rem; align-items:baseline; padding:0.8125rem 1.375rem; border-bottom:1px dashed var(--line); font-size:0.84375rem; color:var(--dim); line-height:1.7; }
.log li:last-child { border-bottom:none; }
.log .lt { color:var(--faint); font-variant-numeric:tabular-nums; flex:none; width:5.5rem; }
.log b { color:var(--text); font-weight:500; }
.log .g { color:var(--acc); font-weight:700; flex:none; }

/* --- 最终裁决区：大章 + 结论 --- */
.verdict-final { border:1px solid var(--line); background:var(--surface); padding:3rem 2.5rem; text-align:center; margin-bottom:3rem; }
.verdict-final .stamp { font-size:2rem; padding:0.875rem 2.25rem; margin-bottom:2rem; }
.verdict-final .vc { max-width:50rem; margin:0 auto; font-size:1.0625rem; line-height:2; color:var(--dim); text-align:left; }
.verdict-final .vc b { color:var(--text); font-weight:500; }
.verdict-final .sign { margin-top:2rem; font-size:0.8125rem; color:var(--faint); }
.verdict-final .sign b { color:var(--text); font-weight:500; }

/* --- 对照条：两个赛季/两组口径并排对比（转会前后、伤病前后） --- */
.vs-cap { display:flex; justify-content:space-between; gap:0.75rem; flex-wrap:wrap; font-size:0.71875rem; letter-spacing:.16em; text-transform:uppercase; color:var(--faint); margin-bottom:1.75rem; }
.vs-cap b { color:var(--acc); font-weight:500; }
.vs-row { display:grid; grid-template-columns:11rem 1fr auto; align-items:center; gap:1rem; padding:0.875rem 0; border-bottom:1px dashed var(--line); font-size:0.8125rem; }
.vs-row:last-of-type { border-bottom:none; }
.vs-label { color:var(--faint); letter-spacing:.04em; line-height:1.5; }
.vs-label b { color:var(--text); font-weight:500; }
.vs-track { height:1.375rem; background:var(--bg-2); position:relative; overflow:hidden; }
.vs-fill { position:absolute; inset:0 auto 0 0; width:0; background:var(--line-2); transition:width 1.1s cubic-bezier(.25,.9,.3,1); }
.vs-fill.acc { background:linear-gradient(90deg,rgba(204,255,0,.25),var(--acc)); }
.chart.in .vs-fill { width:var(--w); }
.vs-val { font-variant-numeric:tabular-nums; color:var(--dim); min-width:4.5rem; text-align:right; white-space:nowrap; }
.vs-val b { color:var(--acc); font-weight:700; }

/* --- 关键对决卡：决定性比赛特写（日期 / 对阵 / 比分 / 个人数据） --- */
.exhibit { border:1px solid var(--line); background:var(--surface); margin-bottom:1.375rem; }
.ex-head { display:flex; justify-content:space-between; gap:0.75rem; flex-wrap:wrap; padding:0.875rem 1.375rem; border-bottom:1px solid var(--line); font-size:0.71875rem; letter-spacing:.16em; text-transform:uppercase; color:var(--faint); }
.ex-head b { color:var(--acc); font-weight:500; }
.ex-match { padding:1.625rem 1.375rem; border-bottom:1px dashed var(--line); }
.ex-teams { font-family:var(--disp); font-weight:900; font-size:1.375rem; text-transform:uppercase; }
.ex-score { font-family:var(--disp); font-weight:900; font-size:2.25rem; color:var(--acc); line-height:1; margin:0.5rem 0 0.625rem; }
.ex-meta { font-size:0.75rem; color:var(--faint); letter-spacing:.04em; line-height:1.7; }
.ex-body { padding:1.375rem; font-size:0.90625rem; color:var(--dim); line-height:1.9; }
.ex-body b { color:var(--text); font-weight:500; }

/* --- 公理句：一句态度宣言，大字重，荧光绿下划线 --- */
.axiom { font-family:var(--disp); font-weight:900; font-size:clamp(1.375rem,3vw,2rem); text-transform:uppercase; line-height:1.35; color:var(--text); margin:2rem 0; }
.axiom em { font-style:normal; color:var(--acc); box-shadow:inset 0 -0.3em var(--acc-dim); }

/* --- 谣言解剖：编号机制条目（为什么谣言能活） --- */
.mech { display:flex; flex-direction:column; gap:1rem; margin-bottom:1.375rem; }
.mech-item { border:1px solid var(--line); background:var(--surface); padding:1.5rem 1.625rem; display:flex; gap:1.25rem; align-items:flex-start; }
.mech-no { flex:none; font-family:var(--disp); font-weight:900; font-size:1.5rem; color:var(--red); opacity:.85; line-height:1.2; }
.mech-item h4 { font-family:var(--disp); font-weight:700; font-size:1rem; text-transform:uppercase; letter-spacing:.02em; margin-bottom:0.5rem; }
.mech-item p { font-size:0.875rem; color:var(--dim); line-height:1.85; }
.mech-item p b { color:var(--text); font-weight:500; }

/* --- 数据口径与置信度：方法声明盒 --- */
.confidence { border:1px dashed var(--line-2); background:var(--bg-2); padding:1.375rem 1.5rem; margin-bottom:1.375rem; font-size:0.78125rem; color:var(--dim); line-height:1.9; }
.confidence b { color:var(--text); font-weight:500; }
.lvl { display:inline-block; font-size:0.625rem; font-weight:700; letter-spacing:.12em; padding:0.125rem 0.5rem; margin-right:0.375rem; vertical-align:0.125em; }
.lvl.l1 { color:var(--acc); background:var(--acc-dim); }
.lvl.l2 { color:var(--cyan); background:var(--cyan-dim); }
.lvl.l3 { color:var(--red); background:var(--red-dim); }

/* --- 数据表红色列/行：标注叙事方与数据方的背离 --- */
.dt .red { color:var(--red); }

/* --- 文学三件套（旗舰篇标配，见 content-standards.md §5.1） --- */

/* 序章 · 全景：案发年份的世界横切面。大行距叙事体，左侧装订线，关键词荧光 */
.prologue { border-left:3px solid var(--line-2); padding:0.5rem 0 0.5rem 2rem; margin:2.5rem 0 3rem; }
.prologue .pr-tag { display:inline-block; font-size:0.65625rem; font-weight:700; letter-spacing:.24em; text-transform:uppercase; color:var(--faint); border:1px solid var(--line); padding:0.3125rem 0.875rem; margin-bottom:1.375rem; }
.prologue .pr-tag b { color:var(--acc); font-weight:700; }
.prologue p { font-size:1.0625rem; line-height:2.15; color:var(--dim); margin-bottom:1.25rem; max-width:46rem; }
.prologue p:last-child { margin-bottom:0; }
.prologue b { color:var(--text); font-weight:500; }
.prologue em { font-style:normal; color:var(--acc); }

/* 旁白 · 幕间插话：把数据翻译成生活经验。斜体低声，右侧对齐窄栏感 */
.aside { position:relative; max-width:44rem; margin:2.25rem auto 2.5rem; padding:1.375rem 1.75rem 1.375rem 3.5rem; background:var(--bg-2); border:1px dashed var(--line-2); font-size:0.96875rem; line-height:2.05; color:var(--dim); }
.aside::before { content:'\275D'; position:absolute; left:1rem; top:0.75rem; font-size:1.75rem; line-height:1; color:var(--acc); opacity:.7; font-family:var(--disp); }
.aside b { color:var(--acc); font-weight:700; }
.aside .as-tag { display:block; margin-bottom:0.5rem; font-size:0.625rem; font-weight:700; letter-spacing:.24em; text-transform:uppercase; color:var(--faint); font-style:normal; }

/* 尾声 · 档案保管员手记：私人记忆与情感收口。手记质感，结尾签名行 */
.epilogue { border:1px solid var(--line-2); background:var(--surface); padding:2.5rem 2.75rem; margin:3rem 0 1rem; position:relative; }
.epilogue::before { content:''; position:absolute; top:-1px; left:2.75rem; width:4.5rem; height:3px; background:var(--acc); }
.epilogue .ep-tag { font-size:0.65625rem; font-weight:700; letter-spacing:.24em; text-transform:uppercase; color:var(--faint); margin-bottom:1.5rem; }
.epilogue .ep-tag b { color:var(--acc); font-weight:700; }
.epilogue p { font-size:1rem; line-height:2.2; color:var(--dim); margin-bottom:1.375rem; max-width:46rem; }
.epilogue p:last-of-type { margin-bottom:0; }
.epilogue b { color:var(--text); font-weight:500; }
.epilogue em { font-style:normal; color:var(--acc); }
.epilogue .ep-motif { margin-top:2rem; padding-top:1.5rem; border-top:1px dashed var(--line-2); font-family:var(--disp); font-weight:900; font-size:1.25rem; line-height:1.6; text-transform:uppercase; color:var(--text); }
.epilogue .ep-motif em { color:var(--acc); box-shadow:inset 0 -0.3em var(--acc-dim); }
.epilogue .ep-sign { margin-top:1.75rem; font-size:0.75rem; color:var(--faint); letter-spacing:.1em; }

/* --- 背景图片组件（仅 PC 端显示，移动端自动关闭） ---
   用法：给 .art-head / .prologue / .epilogue 等块级容器追加 photo-stadium 等类名。
   图片为 AI 生成的暗调装饰图（assets/img/），不参与事实陈述，需在文末置信度盒注明。
   球衣系列：photo-jersey 为通用条纹款；按案件可换专属球衣（photo-jersey-bra9 巴西 9 号、
   photo-jersey-fra10 法国 10 号），新案件生成同风格图后在此追加类名即可。 */
@media (min-width:1025px) {
  .photo-stadium, .photo-crowd, .photo-jersey, .photo-trophy, .photo-jersey-bra9, .photo-jersey-fra10 {
    background-size:auto 100%; background-position:right center; background-repeat:no-repeat;
  }
  .photo-stadium { background-image:linear-gradient(90deg, #050505 22%, rgba(5,5,5,.88) 52%, rgba(5,5,5,.35) 100%), url('/assets/img/bg-stadium.png'); }
  .photo-crowd { background-image:linear-gradient(90deg, rgba(5,5,5,.97) 26%, rgba(5,5,5,.9) 55%, rgba(5,5,5,.4) 100%), url('/assets/img/bg-crowd.png'); }
  .photo-jersey { background-image:linear-gradient(90deg, var(--surface) 30%, rgba(9,9,9,.85) 60%, rgba(5,5,5,.25) 100%), url('/assets/img/bg-jersey.png'); }
  .photo-jersey-bra9 { background-image:linear-gradient(90deg, var(--surface) 30%, rgba(9,9,9,.85) 60%, rgba(5,5,5,.25) 100%), url('/assets/img/bg-jersey-bra9.png'); }
  .photo-jersey-fra10 { background-image:linear-gradient(90deg, var(--surface) 30%, rgba(9,9,9,.85) 60%, rgba(5,5,5,.25) 100%), url('/assets/img/bg-jersey-fra10.png'); }
  .photo-trophy { background-image:linear-gradient(90deg, rgba(5,5,5,.98) 24%, rgba(5,5,5,.9) 54%, rgba(5,5,5,.4) 100%), url('/assets/img/bg-trophy.png'); }
}

/* --- 移动端 --- */
@media (max-width:760px) {
.kstats { grid-template-columns:1fr; }
.kstat { border-left:none; border-top:1px solid var(--line); }
.kstat:first-child { border-top:none; }
.kstat .kv { font-size:2.5rem; }
.duel { grid-template-columns:1fr; }
.bar-row { grid-template-columns:4.25rem 1fr 3.5rem; gap:0.5rem; font-size:0.75rem; }
.verdict-final { padding:2rem 1.375rem; }
.verdict-final .stamp { font-size:1.5rem; }
.stamp { font-size:1.125rem; }
.log .lt { width:4.25rem; }
.vs-row { grid-template-columns:1fr; gap:0.5rem; }
.vs-val { text-align:left; }
.ex-teams { font-size:1.125rem; }
.mech-item { flex-direction:column; gap:0.5rem; }
.prologue { padding-left:1.25rem; }
.prologue p { font-size:1rem; }
.aside { padding:1.125rem 1.25rem 1.125rem 2.75rem; }
.aside::before { left:0.75rem; font-size:1.375rem; }
.epilogue { padding:1.75rem 1.375rem; }
.epilogue::before { left:1.375rem; }
.epilogue .ep-motif { font-size:1.0625rem; }
}
