/* 大模型篇 02、03：语言模型 */
.lm-stage [hidden], .lm-gen [hidden] { display: none !important; }
.lm-snap { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }

.lm-gr { display: flex; align-items: stretch; gap: 3px; margin-bottom: 4px; }
.lm-rl { width: 2.4em; flex: none; font-size: .78rem; color: var(--graphite); align-self: center; }
.lm-c { flex: 1 1 0; min-width: 0; padding: 4px 0; border: 1px solid #c9d1d8; border-radius: 4px; background: #fff; font: inherit; font-size: 1rem; line-height: 1.3; text-align: center; cursor: pointer; color: var(--ink); }
.lm-c.sp { font-size: .62rem; color: var(--graphite); }
.lm-c.ans { background: #f3f6fa; border-style: dashed; }
.lm-c.sel { border: 2px solid var(--lane-lang); }
.lm-c.hidden { opacity: .3; }
.lm-c.lossc { position: relative; height: 54px; padding: 0; border-color: var(--rule); background: #fff; overflow: hidden; }
.lm-lb { position: absolute; left: 3px; right: 3px; bottom: 0; background: #d9cdf2; border-radius: 2px 2px 0 0; }
.lm-c.lossc.sel .lm-lb { background: var(--lane-lang); opacity: .55; }
.lm-lv { position: relative; font-size: .66rem; letter-spacing: -.03em; font-family: var(--f-num); color: var(--ink); display: block; padding-top: 3px; }

.lm-h { font-size: .84rem; color: var(--ink); font-weight: 600; margin: 12px 0 6px; }
.lm-h small { font-weight: 400; color: var(--graphite); margin-left: 6px; }
.lm-bar { display: grid; grid-template-columns: 2.6em 1fr 4.2em; gap: 8px; align-items: center; font-size: .95rem; padding: 2px 0; }
.lm-bl { text-align: center; }
.lm-track { height: 9px; background: var(--grid); border-radius: 4px; overflow: hidden; }
.lm-track span { display: block; height: 100%; background: #b9c6d6; }
.lm-bar.ok .lm-track span { background: var(--lane-vision); }
.lm-bar.pick { font-weight: 700; }
.lm-bar.pick .lm-track span { background: var(--lane-lang); }
.lm-bp { font-family: var(--f-num); font-size: .82rem; text-align: right; color: var(--graphite); }
.lm-ans { font-size: .88rem; margin: 8px 0 0; color: var(--ink-2); }

.lm-curve { width: 100%; height: auto; display: block; }
.lm-gl { stroke: var(--grid); }
.lm-ref { stroke: var(--faint); stroke-dasharray: 4 4; }
.lm-ax { font-size: 11px; fill: var(--graphite); }
.lm-tr { fill: none; stroke: #b6a6dc; stroke-width: 2; }
.lm-va { fill: none; stroke: var(--lane-lang); stroke-width: 2.4; }
.lm-trt { fill: #8d7cbf; } .lm-vat { fill: var(--lane-lang); }
.lm-dot { fill: #fff; stroke: var(--lane-lang); stroke-width: 2.5; }
.lm-read { font-size: .86rem; color: var(--graphite); margin: 10px 0 0; min-height: 1.3em; }

.lm-gen { position: static; margin: 18px 0 22px; }
.lm-genrow { display: flex; align-items: center; gap: 10px; }
.lm-genrow label { font-size: .88rem; }
.lm-genrow input { flex: 1; max-width: 16em; font: inherit; font-size: 1.05rem; padding: 6px 10px; border: 1.5px solid var(--ink); border-radius: 6px; }
.lm-genbtns { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.lm-text { font-family: var(--f-hand); font-size: 1.45rem; letter-spacing: .08em; min-height: 1.6em; margin: 6px 0; word-break: break-all; }
.lm-text small { display: block; font-family: var(--f-body); font-size: .82rem; letter-spacing: 0; color: var(--graphite); }
.lm-new { color: var(--lane-lang); }

/* 第 03 课：抽样 */
.sp-strip { display: flex; height: 38px; border-radius: 5px; overflow: hidden; border: 1px solid var(--rule); position: relative; margin: 8px 0 4px; }
.sp-seg { display: flex; align-items: center; justify-content: center; font-size: .9rem; min-width: 0; overflow: hidden; border-right: 1px solid #fff; }
.sp-seg:nth-child(odd) { background: #e7e0f6; } .sp-seg:nth-child(even) { background: #d6cbef; }
.sp-seg.hit { background: var(--lane-lang); color: #fff; }
.sp-u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--red); }
.sp-scale { display: flex; justify-content: space-between; font-family: var(--f-num); font-size: .72rem; color: var(--graphite); }
.sp-ctl { display: grid; grid-template-columns: 4.5em 1fr 3em; gap: 8px; align-items: center; font-size: .88rem; margin: 6px 0; }
.sp-ctl input { accent-color: var(--lane-lang); }
.sp-ctl output { font-family: var(--f-num); text-align: right; }
.lm-bar.cut { opacity: .35; }
.lm-bar.cut .lm-track span { background: #d4d9df; }

.kv-wrap { overflow-x: auto; }
.kv { border-collapse: collapse; font-size: .9rem; margin: 6px 0; }
.kv th, .kv td { border: 1px solid var(--rule); width: 2.3em; height: 2.1em; text-align: center; padding: 0; }
.kv th { font-weight: 400; color: var(--graphite); background: #fafbfc; }
.kv td.off { background: #f4f5f7; }
.kv td.old { background: #e7e0f6; }
.kv td.new { background: var(--lane-lang); color: #fff; }
.kv-note { font-size: .86rem; color: var(--ink-2); margin: 6px 0 0; }

@media (max-width: 520px) {
  .lm-c { font-size: .88rem; }
  .lm-rl { width: 2em; font-size: .7rem; }
  .lm-lv { font-size: .56rem; }
  .lm-gr { gap: 2px; }
}
.sp-gline { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 6px 0; }
.sp-gc { display: inline-flex; flex-direction: column; align-items: center; min-width: 2.4em; padding: 4px 4px 2px; border: 1px solid var(--rule); border-radius: 5px; background: #fff; }
.sp-gc b { font-family: var(--f-hand); font-size: 1.15rem; font-weight: 400; }
.sp-gc small { font-family: var(--f-num); font-size: .66rem; color: var(--graphite); }
.sp-list { list-style: none; margin: 8px 0 0; padding: 0; }
.sp-list li { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid var(--rule); padding: 6px 0; }
.sp-list .lm-text { font-size: 1.2rem; margin: 0; }
.sp-set { flex: none; width: 7.5em; white-space: nowrap; font-size: .78rem; color: var(--graphite); font-family: var(--f-num); }
@media (max-width: 520px) { .sp-list li { flex-direction: column; gap: 0; } }
.lm-bar.sc { grid-template-columns: 2.6em 3em 1fr 4.2em; }
.lm-bz { font-family: var(--f-num); font-size: .82rem; color: var(--ink-2); text-align: right; }

.lm-models { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lm-samples { list-style: none; padding: 0; margin: 10px 0 16px; }
.lm-samples li { font-family: var(--f-hand); font-size: 1.2rem; padding: 6px 0; border-top: 1px solid var(--rule); }
.lm-samples li span { display: inline-block; width: 4.2em; font-family: var(--f-body); font-size: .8rem; color: var(--graphite); }
.lm-scale td, .lm-scale th { white-space: nowrap; }
.lm-tcap { font-size: .86rem; color: var(--graphite); }
