/* 法律英语课程 · 阅读 / 上课 / 讨论单。颜色和字体沿用法学观察室（style.css 的 --paper --ink --accent …），离线版自带一份同样的变量。 */
.cx { --en: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Noto Serif SC", "Songti SC", serif;
      --lc: var(--g3); --hl: color-mix(in srgb, var(--accent-fill) 22%, transparent); }
.cx *, .cx *::before, .cx *::after { box-sizing: border-box; }
.cx [hidden] { display: none !important; }
.cx button { font: inherit; color: inherit; cursor: pointer; }
.cx .en { font-family: var(--en); }
.cx .mut { color: var(--ink-3); }
.cx .lab { font: 600 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.cx .btn-s { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); border-radius: 999px; padding: 5px 14px; font-size: 14px; line-height: 1.4; text-decoration: none; transition: border-color .15s, background .15s; }
.cx .btn-s:hover { border-color: var(--ink-3); }
.cx .btn-s.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cx .btn-s svg { width: 16px; height: 16px; }
.cx .btn-p { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 10px 20px; font-weight: 600; text-decoration: none; }
.cx .btn-p:disabled { opacity: .4; cursor: default; }

/* ---------- 单元页头 ---------- */
.cx-hero { padding: 48px 0 28px; border-bottom: 1px solid var(--rule); }
.cx-hero .no { font: 700 15px/1 var(--sans); letter-spacing: .3em; color: var(--accent); text-transform: uppercase; }
.cx-hero h1 { font-family: var(--en); font-weight: 600; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; margin: 14px 0 6px; letter-spacing: -.01em; }
.cx-hero .zh { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); color: var(--ink-2); letter-spacing: .08em; }
.cx-q { margin: 28px 0 0; padding: 18px 22px; border-left: 3px solid var(--accent-fill); background: var(--card); border-radius: 0 14px 14px 0; max-width: 760px; }
.cx-q .en { font-size: clamp(20px, 2.2vw, 26px); font-style: italic; line-height: 1.4; }
.cx-q .zhq { color: var(--ink-2); margin-top: 4px; }
.cx-lead { max-width: 760px; color: var(--ink-2); margin: 18px 0 0; }
.cx-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.cx-goals li { font-size: 15px; line-height: 1.6; padding: 12px 14px; background: var(--card); border-radius: 12px; border: 1px solid var(--rule); }
.cx-goals li::before { content: "✓"; color: var(--g4); font-weight: 700; margin-right: 8px; }

/* 节目录 */
.cx-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; margin: 26px 0 0; }
.cx-toc a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--c, var(--accent-fill)); border-radius: 14px; padding: 14px 16px 16px; transition: transform .15s, box-shadow .15s; }
.cx-toc a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cx-toc .k { font: 600 12px var(--sans); letter-spacing: .14em; color: var(--c, var(--accent)); text-transform: uppercase; }
.cx-toc .t { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.35; }
.cx-toc .e { font-family: var(--en); font-style: italic; color: var(--ink-3); font-size: 15px; }
.cx-toc .s { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-top: 4px; }
.cx-toc .m { font-size: 13px; color: var(--ink-3); margin-top: auto; padding-top: 8px; }

/* ---------- 工具条 ---------- */
.cx-bar { position: sticky; top: 64px; z-index: 15; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.cx-bar.solo { top: 0; }
.cx-bar-in { display: flex; align-items: center; gap: 8px; min-height: 54px; overflow-x: auto; scrollbar-width: none; }
.cx-bar-in::-webkit-scrollbar { display: none; }
.cx-tabs { display: flex; gap: 2px; margin-right: auto; }
.cx-tab { border: 0; background: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.cx-tab b { font-family: var(--en); font-weight: 600; margin-right: 6px; color: var(--c, var(--ink-3)); }
.cx-tab.on { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.cx-tools { display: flex; gap: 6px; flex: none; }
@media (max-width: 760px) {
  .cx-bar-in { flex-wrap: wrap; overflow: visible; padding: 6px 0; gap: 4px; }
  .cx-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .cx-tabs::-webkit-scrollbar { display: none; }
  .cx-tools { width: 100%; justify-content: flex-end; }
}

/* ---------- 一节 ---------- */
.cx-sec { padding: 34px 0 80px; }
.cx-sec-h { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: end; margin-bottom: 30px; }
.cx-sec-h .num { grid-row: span 2; font-family: var(--en); font-size: clamp(56px, 7vw, 84px); line-height: .9; color: var(--c, var(--accent-fill)); font-weight: 600; }
.cx-sec-h h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); }
.cx-sec-h .sub { color: var(--ink-3); font-size: 15px; }
.cx-sec-h .sub .en { font-style: italic; font-size: 17px; color: var(--ink-2); margin-right: 10px; }
.cx-sec > .cx-sec-h { max-width: 860px; margin-left: auto; margin-right: auto; }
.cx-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 780px) minmax(0, 1fr); }
.cx-col > * { grid-column: 2; min-width: 0; }
.cx-col > .wide { grid-column: 1 / -1; }
.cx-blk { margin: 0 0 28px; }
.cx-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rule); }
.cx-pager a { text-decoration: none; color: var(--ink); max-width: 48%; }
.cx-pager small { display: block; color: var(--ink-3); font-size: 13px; }
.cx-pager span { font-family: var(--serif); font-weight: 700; }

/* 通用小件 */
.cx-h { font-family: var(--serif); font-size: 21px; margin: 40px 0 14px; display: flex; align-items: baseline; gap: 12px; }
.cx-h .en { font-style: italic; font-weight: 400; color: var(--ink-3); font-size: 17px; }
.cx-prose { margin: 0 0 16px; }
.cx-prose p { margin: 0 0 12px; }
.cx-box { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 20px 22px; }
.cx-box > .lab { display: block; margin-bottom: 8px; }
.cx-title { font-family: var(--serif); font-weight: 700; font-size: 19px; margin: 0 0 6px; }
.cx-task { color: var(--ink-2); font-size: 15px; margin: 0 0 14px; }

/* 名言 */
.cx-quote { position: relative; padding: 10px 0 10px 28px; border-left: 3px solid var(--accent-fill); }
.cx-quote::before { content: "“"; position: absolute; left: 12px; top: -26px; font: 400 92px/1 var(--en); color: var(--accent-fill); opacity: .35; }
.cx-quote blockquote { margin: 0; font-family: var(--en); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.4; color: var(--ink); position: relative; }
.cx-quote blockquote.cn { font-family: var(--serif); letter-spacing: .05em; line-height: 1.7; }
.cx-quote .zhq { margin-top: 8px; color: var(--ink-2); }
.cx-quote .who { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.cx-quote .who b { color: var(--ink); font-weight: 600; }
.cx-ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; margin-top: 14px; }
.cx-ideas div { border-top: 2px solid var(--rule); padding-top: 8px; font-size: 15px; line-height: 1.6; }
.cx-ideas b { display: block; font-family: var(--en); font-weight: 600; font-style: italic; color: var(--ink); font-size: 16px; }

/* 知识卡 */
.cx-card { background: var(--paper-2); border-radius: 16px; padding: 18px 20px; }
.cx-card .ct { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.cx-card .ce { font-family: var(--en); font-style: italic; color: var(--ink-3); margin-left: 8px; }
.cx-card .cs { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.cx-card p { margin: 8px 0 0; font-size: 16px; }
.cx-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.cx-tags span { font-size: 12px; border: 1px solid var(--rule); border-radius: 999px; padding: 1px 10px; color: var(--ink-2); background: var(--card); }

/* 表、对照、流程 */
.cx-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); }
.cx-table th { text-align: left; font-weight: 600; background: var(--paper-2); padding: 10px 14px; }
.cx-table td { padding: 10px 14px; border-top: 1px solid var(--rule); vertical-align: top; line-height: 1.6; }
.cx-scroll { overflow-x: auto; }
.cx-compare { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .cx-compare { grid-template-columns: 1fr; } }
.cx-compare > div { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; }
.cx-compare h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 16px; }
.cx-compare ul, .cx-list { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 1.7; }
.cx-flow { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.cx-flow li { position: relative; padding: 0 0 16px 46px; counter-increment: f; }
.cx-flow li::before { content: counter(f); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 600 14px var(--sans); }
.cx-flow li::after { content: ""; position: absolute; left: 14.5px; top: 32px; bottom: 2px; width: 1px; background: var(--rule); }
.cx-flow li:last-child::after { display: none; }
.cx-flow b { display: block; font-family: var(--serif); }
.cx-flow span { font-size: 15px; color: var(--ink-2); }

/* ---------- 阅读 ---------- */
.cx-reading { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: clamp(20px, 3vw, 36px); }
.cx-reading header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cx-reading h3 { margin: 0; font-family: var(--en); font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; }
.cx-reading .meta { font-size: 13px; color: var(--ink-3); }
.cx-p { display: grid; grid-template-columns: 30px 1fr; gap: 0 10px; margin: 0 0 18px; }
.cx-p .pn { font: 600 12px/2.4 var(--sans); color: var(--ink-3); text-align: right; letter-spacing: .05em; }
.cx-p .tx { font-family: var(--en); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.85; color: var(--ink); }
.cx-s { border-radius: 4px; transition: background .15s; cursor: pointer; }
.cx-s:hover { background: var(--hl); }
.cx-s.on { background: var(--hl); }
.cx-z { display: none; font-family: var(--sans); font-size: 15px; line-height: 1.7; color: var(--ink-2); background: var(--paper); border-left: 3px solid var(--accent-fill); padding: 4px 12px; margin: 4px 0 8px; border-radius: 0 8px 8px 0; }
.cx-s.on + .cx-z, .cx.zh-all .cx-z { display: block; }
.cx.zh-off .cx-s { cursor: text; }
.cx.zh-off .cx-s:hover { background: none; }
.cx-g { border-bottom: 1.5px dotted color-mix(in srgb, var(--accent) 45%, transparent); cursor: help; }
.cx-g:hover, .cx-g:focus { border-bottom-color: var(--accent); background: color-mix(in srgb, var(--accent-fill) 14%, transparent); }
.cx-pop { position: absolute; z-index: 40; max-width: min(340px, calc(100vw - 24px)); background: var(--ink); color: var(--paper); border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.6; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.cx-pop b { font-family: var(--en); font-size: 16px; }
.cx-pop .d { opacity: .8; font-style: italic; }
.cx-pop .x { opacity: .7; font-family: var(--en); font-size: 13px; margin-top: 4px; }
.cx-hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* ---------- 题目 ---------- */
.cx-q-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cx-q-h .lab { margin: 0; }
.cx-qt { font-family: var(--en); font-size: 19px; line-height: 1.5; margin: 0 0 4px; }
.cx-qz { color: var(--ink-2); font-size: 15px; margin: 0 0 12px; }
.cx-opts { display: grid; gap: 8px; }
.cx-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; border: 1.5px solid var(--rule); background: var(--card); border-radius: 12px; padding: 10px 14px; font-size: 16px; line-height: 1.55; transition: border-color .15s, background .15s; }
.cx-opt:hover:not(:disabled) { border-color: var(--ink-3); }
.cx-opt .L { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--sans); background: var(--paper-2); color: var(--ink-2); }
.cx-opt.ok { border-color: var(--g4); background: color-mix(in srgb, var(--g4) 12%, var(--card)); }
.cx-opt.ok .L { background: var(--g4); color: #fff; }
.cx-opt.no { border-color: var(--g2); background: color-mix(in srgb, var(--g2) 10%, var(--card)); }
.cx-opt.no .L { background: var(--g2); color: #fff; }
.cx-opt.dim { opacity: .5; }
.cx-opt:disabled { cursor: default; }
.cx-opt .lv { margin-left: auto; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.cx-explain { margin-top: 12px; padding: 12px 14px; background: var(--paper-2); border-radius: 12px; font-size: 15px; line-height: 1.7; }
.cx-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.cx-bars { display: grid; gap: 8px; margin-top: 12px; }
.cx-barline { display: grid; grid-template-columns: minmax(80px, 30%) 1fr 48px; gap: 10px; align-items: center; font-size: 14px; }
.cx-barline span { height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.cx-barline i { display: block; height: 100%; background: var(--accent-fill); transition: width .3s; }
.cx-barline b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .cx-barline { grid-template-columns: 1fr 40px; gap: 4px 10px; }
  .cx-barline > :first-child { grid-column: 1 / -1; }
}

/* 判断题组 */
.cx-judge { display: grid; gap: 10px; }
.cx-ji { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; position: relative; }
.cx-ji .jt { font-weight: 600; }
.cx-ji .js { color: var(--ink-2); font-size: 15px; }
.cx-ji .stamp { position: absolute; right: 14px; top: 12px; font: 800 13px var(--sans); letter-spacing: .12em; padding: 2px 10px; border: 2px solid currentColor; border-radius: 8px; transform: rotate(6deg); }
.cx-ji .stamp.yes { color: var(--g4); } .cx-ji .stamp.no { color: var(--g2); } .cx-ji .stamp.half { color: var(--g5); }
.cx-ji .why { margin-top: 8px; font-size: 15px; color: var(--ink-2); border-top: 1px dashed var(--rule); padding-top: 8px; }

/* 长句拆解 */
.cx-chunks { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.cx-chunk { display: flex; flex-direction: column; border-radius: 10px; padding: 6px 10px; background: var(--paper-2); }
.cx-chunk .t { font-family: var(--en); font-size: 17px; }
.cx-chunk .r { font-size: 12px; color: var(--ink-3); }
.cx-chunk.main { background: var(--ink); }
.cx-chunk.main .t { color: var(--paper); } .cx-chunk.main .r { color: color-mix(in srgb, var(--paper) 70%, transparent); }

/* 译文对比 */
.cx-tv { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 12px; }
.cx-tv > div { border: 1.5px solid var(--rule); border-radius: 14px; padding: 12px 14px; background: var(--card); }
.cx-tv .L { font-family: var(--en); font-weight: 700; color: var(--accent); }
.cx-tv .v { font-size: 16px; line-height: 1.7; margin: 4px 0; }
.cx-tv .k { font-weight: 700; font-size: 13px; }
.cx-tv .n { font-size: 14px; color: var(--ink-2); border-top: 1px dashed var(--rule); padding-top: 6px; margin-top: 6px; }
.cx-tv .good { border-color: var(--g4); } .cx-tv .literal { border-color: var(--g5); } .cx-tv .wrong { border-color: var(--g2); }

/* 卡片排序 */
.cx-cards { display: grid; gap: 8px; }
.cx-cd { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--card); border: 1.5px solid var(--rule); border-radius: 12px; padding: 10px 14px; font-size: 15px; line-height: 1.6; }
.cx-cd .L { flex: none; font-family: var(--en); font-weight: 700; font-size: 18px; color: var(--accent); width: 22px; }
.cx-cd .pos { margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 600 13px var(--sans); }
.cx-cd.ok { border-color: var(--g4); } .cx-cd.no { border-color: var(--g2); }
.cx-cd .st { display: inline-block; font-size: 12px; border-radius: 999px; padding: 0 8px; margin-top: 4px; color: #fff; }
.cx-stages { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.cx-stages span { font-size: 13px; border-radius: 999px; padding: 2px 10px; color: #fff; }

/* 山形图 */
.cx-arc { position: relative; }
.cx-arc svg { width: 100%; height: auto; display: block; }
.cx-arc-boxes { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 8px; margin-top: -8px; }
@media (max-width: 760px) { .cx-arc-boxes { grid-template-columns: 1fr; } .cx-arc svg { display: none; } }
.cx-arc-box { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--c); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.cx-arc-box b { font-family: var(--en); display: block; font-size: 15px; }
.cx-arc-box small { color: var(--ink-3); }
.cx-arc-box ul { margin: 6px 0 0; padding-left: 1.1em; }
.cx-arc-box textarea { width: 100%; margin-top: 6px; min-height: 64px; border: 1px dashed var(--rule); border-radius: 8px; background: var(--paper); padding: 6px 8px; font: 14px/1.5 var(--en); color: var(--ink); resize: vertical; }
.cx-bank { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.cx-bank span { font-family: var(--en); font-size: 14px; border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: 1px 10px; }

/* 写作框架 */
.cx-frame { font-family: var(--en); font-size: 18px; line-height: 2.2; }
.cx-frame input, .cx-frame select { font: inherit; font-size: 16px; border: 0; border-bottom: 1.5px solid var(--accent); background: transparent; color: var(--ink); padding: 0 4px; margin: 0 2px; min-width: 8em; outline: none; }
.cx-frame select { min-width: 0; cursor: pointer; }
.cx-frame input:focus { background: var(--hl); }
.cx-frame input::placeholder { color: var(--ink-3); font-style: italic; font-size: 14px; }

/* 情境、讨论 */
.cx-sits { display: grid; gap: 8px; counter-reset: s; }
.cx-sit { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: start; background: var(--card); border: 1.5px solid var(--rule); border-radius: 12px; padding: 12px 14px; text-align: left; font-size: 16px; line-height: 1.55; counter-increment: s; }
.cx-sit::before { content: counter(s); font: 700 18px var(--en); color: var(--accent); }
.cx-sit.on { border-color: var(--accent-fill); background: color-mix(in srgb, var(--accent-fill) 10%, var(--card)); }
.cx-sit .lv { font-size: 13px; color: var(--ink-3); }
.cx-sit .note { grid-column: 2 / -1; font-size: 14px; color: var(--ink-2); border-top: 1px dashed var(--rule); padding-top: 6px; }
.cx-roles { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cx-roles span { font-size: 13px; background: var(--paper-2); border-radius: 999px; padding: 2px 10px; }
.cx-frames { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.cx-frames li { font-family: var(--en); font-style: italic; background: var(--paper); border-radius: 10px; padding: 6px 12px; font-size: 16px; }
.cx-steps { margin: 6px 0 0; padding-left: 1.3em; font-size: 15px; }

/* 判例摘要 */
.cx-case { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; }
.cx-case header { padding: 18px 22px; background: var(--ink); color: var(--paper); }
.cx-case header .n { font-family: var(--en); font-style: italic; font-size: 24px; }
.cx-case header .m { font-size: 13px; opacity: .75; }
.cx-case section { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--rule); }
.cx-case section .k { font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.cx-case section .v { font-family: var(--en); font-size: 17px; line-height: 1.7; }
.cx-case section .v p { margin: 0 0 8px; }
@media (max-width: 640px) { .cx-case section { grid-template-columns: 1fr; } }
.cx-hist { display: grid; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--rule); }
.cx-hist div { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 15px; }
.cx-hist i { width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; background: var(--ink-3); }
.cx-hist i.for { background: var(--g4); } .cx-hist i.against { background: var(--g2); }

/* 词汇 */
.cx-vocab { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.cx-w { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; }
.cx-w .t { font-family: var(--en); font-weight: 600; font-size: 18px; }
.cx-w .z { color: var(--ink-2); }
.cx-w .d { font-size: 14px; color: var(--ink-3); font-style: italic; }
.cx-w .x { font-family: var(--en); font-size: 14px; color: var(--ink-2); margin-top: 6px; border-top: 1px dashed var(--rule); padding-top: 6px; }
.cx-flip { perspective: 900px; border: 0; background: none; padding: 0; text-align: left; min-height: 150px; position: relative; }
.cx-flip .fa, .cx-flip .fb { position: absolute; inset: 0; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--rule); }
.cx-flip .fa { background: var(--card); }
.cx-flip .fb { background: var(--ink); color: var(--paper); display: none; }
.cx-flip.on .fa { display: none; } .cx-flip.on .fb { display: flex; }
.cx-flip.anim .fa, .cx-flip.anim .fb { animation: cxflip .3s ease-out; }
@keyframes cxflip { from { transform: scaleX(.06); } to { transform: none; } }
.cx-flip .t { font-family: var(--en); font-weight: 600; font-size: 22px; }
.cx-flip .q { margin-top: auto; font-size: 13px; color: var(--accent); font-weight: 600; }
.cx-flip .fb .x { font-family: var(--en); font-style: italic; font-size: 14px; opacity: .8; margin-top: auto; }

/* 小结填空 */
.cx-cloze { font-family: var(--en); font-size: 18px; line-height: 2.2; }
.cx-blank { display: inline-block; min-width: 7em; border: 0; border-bottom: 2px solid var(--ink); background: var(--paper-2); border-radius: 6px 6px 0 0; padding: 0 8px; font: 600 15px/1.8 var(--sans); color: var(--ink); vertical-align: baseline; }
.cx-blank.ok { border-color: var(--g4); color: var(--g4); } .cx-blank.no { border-color: var(--g2); color: var(--g2); }
.cx-wbank { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.cx-wbank button { border: 1.5px solid var(--ink); background: var(--card); border-radius: 999px; padding: 2px 12px; font-size: 14px; }
.cx-wbank button.used { visibility: hidden; }

/* 提示（给讲课人） */
.cx-tip { border: 1px dashed var(--ink-3); border-radius: 14px; padding: 0; background: transparent; }
.cx-tip summary { list-style: none; cursor: pointer; padding: 10px 14px; font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.cx-tip summary::-webkit-details-marker { display: none; }
.cx-tip summary::before { content: "＋"; color: var(--accent); }
.cx-tip[open] summary::before { content: "－"; }
.cx-tip div { padding: 0 14px 12px; font-size: 15px; color: var(--ink-2); }

/* 群聊 */
.cx-chat { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .cx-chat { grid-template-columns: 1fr; } }
.cx-phone { background: var(--paper-2); border: 8px solid var(--ink); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; height: min(62vh, 520px); min-height: 380px; }
.cx-phone .ph { text-align: center; font-weight: 600; font-size: 14px; padding: 8px; border-bottom: 1px solid var(--rule); background: var(--card); }
.cx-msgs { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.cx-msg { display: flex; gap: 8px; max-width: 92%; }
.cx-msg.me { flex-direction: row-reverse; align-self: flex-end; }
.cx-av { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; background: var(--ink); }
.cx-msg.me .cx-av { background: var(--accent); }
.cx-bub { background: var(--card); border-radius: 10px; padding: 7px 11px; font-size: 14px; }
.cx-msg.me .cx-bub { background: color-mix(in srgb, var(--g4) 22%, var(--card)); }
.cx-bub .en { font-size: 15px; line-height: 1.45; }
.cx-bub .z { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.cx-sys { align-self: center; font-size: 12px; color: var(--ink-2); background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 6px; padding: 3px 10px; text-align: center; max-width: 92%; }
.cx-sys.card { background: color-mix(in srgb, var(--accent-fill) 22%, transparent); color: var(--ink); font-weight: 600; }
.cx-pf { border-top: 1px solid var(--rule); background: var(--card); padding: 8px; display: grid; gap: 6px; }
.cx-pf .cp { font-size: 12px; text-align: center; color: var(--ink-3); font-weight: 600; }
.cx-choice { text-align: left; border: 1px solid var(--rule); background: var(--paper); border-radius: 10px; padding: 6px 10px; font-size: 14px; }
.cx-choice .z { display: block; color: var(--ink-2); font-size: 13px; }
.cx-tools-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.cx-tc { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; font-size: 14px; min-height: 110px; animation: cxpop .4s; }
.cx-tc.lock { display: grid; place-items: center; border-style: dashed; background: transparent; color: var(--ink-3); font: 600 22px var(--en); animation: none; }
.cx-tc b { font-family: var(--serif); }
.cx-tc .eq { font-family: var(--en); background: var(--paper-2); border-radius: 8px; padding: 4px 8px; margin: 6px 0; white-space: pre-line; }
@keyframes cxpop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

/* 下课一句话 */
.cx-exit .fx { font-family: var(--en); font-size: 22px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.cx-exit input { font: 16px var(--sans); border: 0; border-bottom: 2px solid var(--accent-fill); background: transparent; color: var(--ink); padding: 2px 4px; flex: 1 1 9em; outline: none; }
.cx-wall { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.cx-note { position: relative; width: min(100%, 230px); min-height: 120px; padding: 14px 16px; background: var(--nc, #fff3a8); color: #1b2238; font-family: var(--en); font-size: 15px; box-shadow: 0 8px 16px rgba(0,0,0,.12); transform: rotate(var(--r, -1deg)); animation: cxpop .35s; }
.cx-note .who { display: block; font: 700 12px var(--sans); margin-top: 8px; opacity: .7; }
.cx-note .x { position: absolute; right: 6px; top: 2px; border: 0; background: none; opacity: .4; font-size: 16px; color: #1b2238; }

/* 手机互动：只在开房间后出现 */
.cx:not(.live) .lv, .cx:not(.live) .lstat { display: none !important; }
.lstat { display: inline-block; font-size: 13px; font-weight: 600; color: var(--g3); background: color-mix(in srgb, var(--g3) 12%, transparent); border-radius: 999px; padding: 2px 10px; }

/* ---------- 上课模式 ---------- */
.cx-stage { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: flex; flex-direction: column; font-size: clamp(18px, 1.35vw, 26px); }
.cx-stage-top { display: flex; align-items: center; gap: 12px; padding: 12px clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--rule); font-size: 15px; }
.cx-stage-top .u { font-weight: 600; margin-right: auto; }
.cx-stage-top .u .en { font-style: italic; color: var(--ink-3); font-weight: 400; margin-left: 8px; }
.cx-stage-main { flex: 1; overflow-y: auto; padding: clamp(20px, 4vh, 56px) clamp(16px, 5vw, 80px); display: flex; }
.cx-frame-in { margin: auto; width: 100%; max-width: 1000px; animation: cxfade .25s ease; }
@keyframes cxfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cx-stage-bot { display: flex; align-items: center; gap: 10px; padding: 10px clamp(16px, 3vw, 40px); border-top: 1px solid var(--rule); font-size: 14px; }
.cx-prog { flex: 1; height: 4px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.cx-prog i { display: block; height: 100%; background: var(--accent-fill); transition: width .25s; }
.cx-notes { position: absolute; right: 16px; bottom: 64px; width: min(420px, calc(100vw - 32px)); max-height: 40vh; overflow: auto; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 14px 16px; font-size: 15px; line-height: 1.7; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.cx-notes b { color: var(--accent-fill); }
/* 上课模式：整屏按窗口宽度缩放（JS 设 zoom），组件不用各写一套大字号 */
.cx-stage .cx-reading { border: 0; background: none; padding: 0; }
.cx-stage .cx-p .tx { font-size: 23px; line-height: 1.75; }
.cx-stage .cx-z { font-size: 17px; }
.cx-stage .cx-quote blockquote { font-size: 34px; }
.cx-stage .cx-qt { font-size: 23px; }
.cx-sec-cover { text-align: left; }
.cx-sec-cover .num { font-family: var(--en); font-size: 130px; line-height: .9; color: var(--c, var(--accent-fill)); font-weight: 600; }
.cx-sec-cover h2 { font-size: 46px; margin: 10px 0 6px; }
.cx-sec-cover .en { font-style: italic; font-size: 24px; color: var(--ink-2); }
.cx-sec-cover p { font-size: 18px; color: var(--ink-2); max-width: 760px; }

/* 房间 */
.cx-modal { position: fixed; inset: 0; z-index: 120; background: rgba(18, 23, 41, .55); display: grid; place-items: center; padding: 16px; }
.cx-modal-box { background: var(--card); color: var(--ink); border-radius: 22px; padding: 24px 26px; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.cx-room { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
@media (max-width: 640px) { .cx-room { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.cx-room .qr svg { width: clamp(170px, 22vw, 260px); height: auto; display: block; border-radius: 12px; }
.cx-room .code { font-family: var(--en); font-size: clamp(64px, 8vw, 104px); line-height: 1; letter-spacing: .12em; }
.cx-roster { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.cx-roster span { color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 600; }
.cx-roster span.off { opacity: .4; }
.t-athens { background: #2c5f9e; } .t-sparta { background: #b33a2f; } .t-crete { background: #2f7d58; } .t-rome { background: #a87a22; }

/* ---------- 讨论单（打印） ---------- */
.cx-sheet { background: #fff; color: #111; max-width: 820px; margin: 24px auto; padding: 40px 48px; box-shadow: var(--shadow); font-family: var(--sans); }
.cx-sheet h1 { font-family: var(--en); font-size: 28px; margin: 0; }
.cx-sheet .sh-meta { display: flex; gap: 24px; margin: 10px 0 20px; font-size: 14px; border-bottom: 2px solid #111; padding-bottom: 10px; }
.cx-sheet .sh-meta span { flex: 1; border-bottom: 1px solid #999; }
.cx-sheet h2 { font-size: 17px; margin: 26px 0 8px; font-family: var(--sans); }
.cx-sheet .ln { border-bottom: 1px solid #999; height: 30px; }
.cx-sheet .sh-card { border: 1px solid #999; border-radius: 8px; padding: 8px 12px; margin: 6px 0; font-family: var(--en); font-size: 15px; }
.cx-sheet .sh-boxes { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 8px; }
.cx-sheet .sh-boxes div { border: 1px solid #999; border-radius: 8px; min-height: 150px; padding: 8px; font-size: 13px; }
.cx-sheet .sh-frame { font-family: var(--en); font-size: 16px; line-height: 2.4; }
.cx-sheet .sh-frame u { display: inline-block; min-width: 9em; text-decoration: none; border-bottom: 1px solid #111; }
.cx-sheet table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cx-sheet td, .cx-sheet th { border: 1px solid #999; padding: 6px 8px; text-align: left; vertical-align: top; }
.cx-sheet .ans { page-break-before: always; break-before: page; }
.cx-sheet-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: center; gap: 10px; padding: 12px; background: var(--paper); border-bottom: 1px solid var(--rule); }
@media print {
  body > *:not(.cx-print-root) { display: none !important; }
  .cx-print-root { display: block !important; position: static !important; overflow: visible !important; background: #fff !important; }
  .cx-sheet-bar { display: none !important; }
  .cx-sheet { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  @page { margin: 16mm 14mm; }
}

/* ---------- 课程首页 ---------- */
.cx-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.cx-unit { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 20px 20px; min-height: 210px; transition: transform .15s, box-shadow .15s; }
a.cx-unit:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cx-unit .n { font: 600 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.cx-unit .t { font-size: 27px; font-weight: 600; line-height: 1.15; margin-top: 6px; }
.cx-unit .z { font-family: var(--serif); color: var(--ink-2); letter-spacing: .06em; }
.cx-unit .q { font-style: italic; color: var(--ink-2); margin-top: 10px; line-height: 1.5; }
.cx-unit .m { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--ink-3); }
.cx-unit.off { background: transparent; border-style: dashed; }
.cx-unit.off .t, .cx-unit.off .z { color: var(--ink-3); }


/* ===== 第二版：媒体、插图、跟读、叙事、小测 ===== */
/* 页眉往下读时收起；单元条贴顶，底边一道细线是读到哪了 */
.sh { transition: transform .25s ease; }
body.sh-hide .sh { transform: translateY(-100%); }
.cx-bar { transition: top .25s ease; }
body.sh-hide .cx-bar { top: 0; }
.cx-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent-fill); }
.cx-seg { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--rule); border-radius: 999px; padding: 2px 2px 2px 10px; background: var(--card); }
.cx-seg svg { width: 16px; height: 16px; margin-right: 4px; color: var(--ink-3); }
.cx-seg button { border: 0; background: none; font-size: 13px; padding: 3px 10px; border-radius: 999px; color: var(--ink-2); cursor: pointer; }
.cx-seg button.on { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .cx-tools .lbl { display: none; } .cx-seg { padding-left: 6px; } }

/* 节头 */
.cx-sec-h .sum { grid-column: 2; margin: 6px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 680px; }
.cx-banner { margin: 0 0 34px; border-radius: 22px; overflow: hidden; border: 1px solid var(--rule); background: var(--card); }
.cx-banner img { width: 100%; max-height: 420px; object-fit: cover; }
.cx-banner .sc { display: block; width: 100%; height: auto; max-height: 440px; }

/* 单元封面 */
.cx-uhero { position: relative; border-bottom: 1px solid var(--rule); overflow: hidden; }
.cx-uhero .in { position: relative; z-index: 1; padding: 56px 0 40px; }
.cx-uhero.pic { min-height: min(72vh, 640px); display: flex; align-items: flex-end; }
.cx-uhero.pic .in { padding: 120px 0 44px; }
.cx-uhero .bg { position: absolute; inset: 0; }
.cx-uhero .bg > *, .cx-uhero .bg .cx-scene, .cx-uhero .bg .sc { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-uhero .bg .sc { preserveAspectRatio: xMidYMid slice; }
.cx-uhero.pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--paper) 88%, transparent) 0%, color-mix(in srgb, var(--paper) 55%, transparent) 38%, transparent 62%); pointer-events: none; }
.cx-uhero .no { font: 700 14px/1 var(--sans); letter-spacing: .28em; color: var(--accent); text-transform: uppercase; }
.cx-uhero h1 { font-family: var(--en); font-weight: 600; font-size: clamp(44px, 7vw, 92px); line-height: 1; margin: 16px 0 8px; letter-spacing: -.015em; }
.cx-uhero .zh { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); color: var(--ink-2); letter-spacing: .1em; }
.cx-uhero .cx-q { max-width: 560px; margin-top: 26px; background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cx-uhero .cr { position: absolute; right: 16px; bottom: 8px; z-index: 1; font-size: 12px; color: var(--ink-3); margin: 0; }
@media (max-width: 760px) { .cx-uhero.pic { min-height: 0; display: block; } .cx-uhero.pic .bg { position: relative; height: 56vw; } .cx-uhero.pic::after { display: none; } .cx-uhero.pic .in { padding: 20px 0 30px; } }
.cx-ov { padding: 30px 0 80px; }
.cx-ov .cx-lead { font-size: 18px; max-width: 780px; }
.cx-ov-h { font-size: 24px; margin: 46px 0 16px; }
.cx-ov-video { margin-top: 30px; max-width: 900px; }
.cx-route { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.cx-route a { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; padding-bottom: 16px; transition: transform .15s, box-shadow .15s; }
.cx-route a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cx-route .im { display: block; aspect-ratio: 16 / 9; background: var(--card); overflow: hidden; border-bottom: 3px solid var(--c); margin-bottom: 10px; }
.cx-route .im .cx-scene { width: 100%; height: 100%; }
.cx-route .im img, .cx-route .im .sc { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-route .im.none { display: grid; place-items: center; }
.cx-route .im.none b { font: 600 56px/1 var(--en); color: var(--c); }
.cx-route .k, .cx-route .t, .cx-route .e, .cx-route .s, .cx-route .m { padding: 0 16px; }
.cx-route .k { font: 600 12px var(--sans); letter-spacing: .14em; color: var(--c); text-transform: uppercase; }
.cx-route .t { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.35; }
.cx-route .e { font-family: var(--en); font-style: italic; color: var(--ink-3); font-size: 15px; }
.cx-route .s { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-top: 4px; }
.cx-route .m { font-size: 13px; color: var(--ink-3); margin-top: auto; padding-top: 10px; }
.cx-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 28px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.cx-how b { display: block; color: var(--ink); font-family: var(--serif); font-size: 17px; margin-bottom: 2px; }

/* 下一节 */
.cx-next { display: grid; gap: 12px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--rule); }
.cx-next .nx { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 0; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.cx-next .nx:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cx-next .nx > img, .cx-next .nxp { width: 100%; height: 100%; min-height: 150px; object-fit: cover; display: block; background: var(--paper-2); border-right: 3px solid var(--c); }
.cx-next .nxp .sc { width: 100%; height: 100%; display: block; }
.cx-next .nx:not(:has(img, .nxp)) { grid-template-columns: 1fr; }
.cx-next .tx { display: flex; flex-direction: column; gap: 3px; padding: 20px 24px; }
.cx-next .k { font: 600 12px var(--sans); letter-spacing: .14em; color: var(--c, var(--accent)); text-transform: uppercase; }
.cx-next b { font-family: var(--serif); font-size: 22px; }
.cx-next .e { font-family: var(--en); font-style: italic; color: var(--ink-3); }
.cx-next .m { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.cx-next .pv { font-size: 14px; color: var(--ink-3); text-decoration: none; }
@media (max-width: 600px) { .cx-next .nx { grid-template-columns: 1fr; } .cx-next .nx > img, .cx-next .nxp { border-right: 0; border-bottom: 3px solid var(--c); min-height: 0; aspect-ratio: 16 / 9; } }

/* 播放器 */
.cx-player { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--rule); background: var(--paper); border-radius: 999px; padding: 4px 12px 4px 4px; max-width: 100%; }
.cx-player .pp { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; cursor: pointer; flex: none; }
.cx-player .pp svg { width: 16px; height: 16px; }
.cx-player.on .pp { background: var(--accent-fill); color: #1b2238; }
.cx-player .pbar { width: 140px; height: 6px; border-radius: 999px; background: var(--paper-2); cursor: pointer; overflow: hidden; }
.cx-player .pbar i { display: block; height: 100%; width: 0; background: var(--accent-fill); }
.cx-player .ptime { font: 500 13px var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-player .spd { border: 1px solid var(--rule); background: var(--card); border-radius: 999px; font-size: 12px; padding: 1px 8px; cursor: pointer; color: var(--ink-2); }
.cx-player .ptag { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 520px) { .cx-player .pbar { width: 70px; } .cx-player .ptag { display: none; } }
.cx-read-au { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 18px; }
.cx-s.say { background: color-mix(in srgb, var(--accent-fill) 28%, transparent); box-shadow: 0 2px 0 var(--accent-fill); }

/* 图文叙事：宽屏左图右文，图跟着段落换 */
.cx-reading.story { padding: clamp(20px, 3vw, 36px); }
.cx-story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.cx-story-pic { position: sticky; top: 130px; }
.cx-story-pic .sp { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper); }
.cx-story-pic .si { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; display: flex; align-items: center; justify-content: center; }
.cx-story-pic .si > .cx-scene { width: 100%; height: 100%; }
.cx-story-pic .si.on { opacity: 1; }
.cx-story-pic .si:not(.on) { pointer-events: none; }        /* 叠在一起的图层，没轮到的不能挡住正在显示的交互插图 */
.cx-story-pic .si img, .cx-story-pic .si .sc { width: 100%; height: 100%; object-fit: contain; display: block; }
.cx-story-pic .si .sc-law { padding: 18px; width: 100%; height: 100%; overflow: auto; }
.cx-story-pic .si .sc-law .lw { font-size: 14px; line-height: 1.55; }
.cx-story-pic .si .sc-law-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.cx-story-pic .cr { font-size: 12px; color: var(--ink-3); margin: 8px 0 0; }
.cx-story-tx .cx-p { margin-bottom: 24vh; }
.cx-story-tx .cx-p:last-child { margin-bottom: 0; }
.cx-story-tx .pimg { display: none; }
@media (max-width: 900px) {
  .cx-story { grid-template-columns: 1fr; }
  .cx-story-pic { display: none; }
  .cx-story-tx .cx-p { margin-bottom: 26px; display: block; }
  .cx-story-tx .pimg { display: block; margin: 0 0 12px; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); }
  .cx-story-tx .pimg .sc, .cx-story-tx .pimg img { width: 100%; height: auto; display: block; }
  .cx-story-tx .cx-p .pn { display: inline; margin-right: 6px; }
}
.cx-reading.story-one .so { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.cx-reading.story-one .sop { border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); }
.cx-reading.story-one .sop .sc, .cx-reading.story-one .sop img { width: 100%; height: auto; display: block; }

/* 图、插图、图集、大图 */
.cx-fig { margin: 0; }
.cx-fig img, .cx-fig video { width: 100%; border-radius: 16px; border: 1px solid var(--rule); background: var(--paper-2); }
.cx-fig.zoom img { cursor: zoom-in; }
.cx-fig.portrait { max-width: 360px; }
.cx-fig figcaption, .cx-gal figcaption { font-size: 14px; color: var(--ink-2); line-height: 1.65; margin-top: 8px; }
.cx-fig .cr, .cx-gal .cr { color: var(--ink-3); font-size: 12px; }
.cx-fig.sc-fig .cx-scene { border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); background: var(--card); }
.cx-fig.sc-fig .sc { width: 100%; height: auto; display: block; }
.cx-gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.cx-gal figure { margin: 0; }
.cx-gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--rule); cursor: zoom-in; }
.cx-lb { position: fixed; inset: 0; z-index: 200; background: rgba(12, 16, 28, .88); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.cx-lb figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: grid; gap: 10px; }
.cx-lb img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; }
.cx-lb figcaption { color: #eee; font-size: 14px; text-align: center; }
.cx-lb .cr { color: #aaa; }
.cx-lb button { position: fixed; top: 16px; right: 16px; }
.cx-quote.has-img { display: grid; grid-template-columns: 1fr 120px; gap: 0 22px; }
.cx-quote.has-img > *:not(.qpw) { grid-column: 1; }
.cx-quote .qpw { grid-column: 2; grid-row: 1 / span 8; align-self: start; display: grid; gap: 4px; }
.cx-quote .qp { width: 120px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 1px solid var(--rule); }
.cx-quote .qc { font-size: 11px; color: var(--ink-3); line-height: 1.4; }
@media (max-width: 520px) { .cx-quote.has-img { grid-template-columns: 1fr 76px; gap: 0 14px; } .cx-quote .qp { width: 76px; } }

/* 中文视频（哔哩哔哩） */
.cx-bili .pv { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: var(--ink); color: #fff; text-align: left; }
.cx-bili .pv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s, transform .4s; }
.cx-bili .pv:hover img { opacity: .62; transform: scale(1.02); }
.cx-bili .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1b2238; display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
.cx-bili .play svg { width: 28px; height: 28px; margin-left: 4px; }
.cx-bili .tt { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; background: linear-gradient(transparent, rgba(10, 14, 26, .82)); display: grid; gap: 2px; }
.cx-bili .tt .k { font-size: 13px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.cx-bili .tt .k svg { width: 16px; height: 16px; }
.cx-bili .tt b { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 24px); }
.cx-bili .tt .d { font-size: 13px; opacity: .8; }
.cx-bili .fr { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.cx-bili iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cx-bili .cap { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; line-height: 1.65; }

/* 庭审录音 */
.cx-clip { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 22px clamp(18px, 3vw, 28px); }
.cx-clip .ch { display: grid; gap: 2px; margin-bottom: 14px; }
.cx-clip .ch .k { font: 600 12px var(--sans); letter-spacing: .12em; color: var(--accent); text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.cx-clip .ch .k svg { width: 16px; height: 16px; }
.cx-clip .ch b { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; }
.cx-clip .ch .z { color: var(--ink-2); font-size: 15px; }
.cx-lines { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; }
.cx-lines li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.cx-lines li:hover { background: var(--paper); }
.cx-lines li.say { background: color-mix(in srgb, var(--accent-fill) 18%, transparent); }
.cx-lines .who b { display: block; font-size: 14px; }
.cx-lines li.cont .who { visibility: hidden; }
.cx-lines li.cont { padding-top: 2px; }
.cx-lines .who small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.cx-lines .say .en { display: block; font-family: var(--en); font-size: 18px; line-height: 1.6; }
.cx-lines .say .z { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.cx.zh-off .cx-lines .say .z { display: none; }
.cx-clip .src { font-size: 12px; color: var(--ink-3); margin: 14px 0 0; }
@media (max-width: 600px) { .cx-lines li { grid-template-columns: 1fr; gap: 2px; } }

/* 时间线 */
.cx-tl ol { list-style: none; margin: 0; padding: 8px 0 14px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; position: relative; }
.cx-tl li { position: relative; padding: 0 18px 0 0; scroll-snap-align: start; display: grid; grid-template-rows: 40px 34px auto auto; align-content: start; }
.cx-tl li::before { content: ""; position: absolute; left: 0; right: 0; top: 55px; height: 2px; background: var(--rule); }
.cx-tl .d { font: 600 14px/20px var(--sans); color: var(--ink-2); align-self: end; }
.cx-tl .dot { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--ink-3); margin-top: 8px; }
.cx-tl li.a .dot { border-color: var(--g2); background: var(--g2); }
.cx-tl li.b .dot { border-color: var(--g4); background: var(--g4); }
.cx-tl .e { font-size: 16px; line-height: 1.5; color: var(--ink); }
.cx-tl .z { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-top: 4px; }
.cx.zh-off .cx-tl .z { display: none; }
@media (max-width: 700px) {
  .cx-tl ol { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; gap: 14px; padding-left: 22px; }
  .cx-tl ol::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--rule); }
  .cx-tl li { display: block; padding: 0; }
  .cx-tl li::before { display: none; }
  .cx-tl .dot { position: absolute; left: -22px; top: 0; margin: 0; }
}

/* 深入一点 */
.cx-deep { border: 1px solid var(--rule); border-left: 4px solid var(--g3); background: var(--card); border-radius: 0 16px 16px 0; }
.cx-deep.teacher { border-left-color: var(--g5); }
.cx-deep summary { list-style: none; cursor: pointer; padding: 16px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: baseline; }
.cx-deep summary::-webkit-details-marker { display: none; }
.cx-deep .k { font: 700 12px var(--sans); letter-spacing: .12em; color: var(--g3); white-space: nowrap; }
.cx-deep.teacher .k { color: var(--g5); }
.cx-deep .t { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.45; }
.cx-deep .m { font-size: 13px; color: var(--ink-3); }
.cx-deep[open] .m { visibility: hidden; }
.cx-deep .b { padding: 0 22px 20px; font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.cx-deep .b p { margin: 0 0 12px; }
.cx-deep .src { font-size: 13px; color: var(--ink-3); border-top: 1px dashed var(--rule); padding-top: 10px; }
@media (max-width: 520px) { .cx-deep summary { grid-template-columns: 1fr auto; } .cx-deep .k { grid-column: 1 / -1; } }

/* 小测：一次一题 */
.cx-quiz { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 22px 16px; }
.cx-quiz .qh { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.cx-quiz .dots { display: flex; gap: 6px; }
.cx-quiz .dots i { width: 22px; height: 6px; border-radius: 999px; background: var(--paper-2); cursor: pointer; }
.cx-quiz .dots i.cur { outline: 2px solid var(--ink-3); outline-offset: 1px; }
.cx-quiz .dots i.ok { background: var(--g4); }
.cx-quiz .dots i.no { background: var(--g2); }
.cx-quiz .sc { margin-left: auto; font-weight: 700; color: var(--g4); font-size: 14px; }
.cx-quiz > .cx-blk { display: none; margin: 0; }
.cx-quiz > .cx-blk.cur { display: block; animation: cx-in .3s ease; }
.cx-quiz .cx-box { background: none; border: 0; padding: 0; }
.cx-quiz .cx-q-h .lab { display: none; }
.cx-quiz .qn { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); }
.cx-quiz .qn .pos { font-size: 13px; color: var(--ink-3); }
.cx-quiz .qn button:disabled { opacity: .4; cursor: default; }
@keyframes cx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== 手绘插图 ===== */
.cx-scene { --sc-ink: var(--ink); --sc-ink2: var(--ink-2); --sc-paper: var(--paper); --sc-card: var(--card); --sc-rule: var(--rule); --sc-accent: var(--accent-fill);
  --sc-sky: #f3ecdc; --sc-sky2: #efe1c4; --sc-sun: #f2c779; --sc-cloud: #fbf7ee; --sc-hill1: #b9c4a3; --sc-hill2: #cdd2b6; --sc-grass: #a9b98f; --sc-tree: #2f5a4c; --sc-trunk: #6b4a33;
  --sc-road: #454a59; --sc-line: #f5f0e6; --sc-car: #d7c3a3; --sc-bumper: #b5a283; --sc-glass: #8fa6b8; --sc-plate: #fbf7ee; --sc-tire: #22262f; --sc-shadow: rgba(20, 24, 36, .28);
  --sc-hood: #f4f1ea; --sc-red: #c0392b; --sc-lamp-off: #5b4f4c; --sc-lamp-on: #ff4a2e; --sc-ok: #2f7d58; --sc-ok-soft: #d9eee2; --sc-blue: #2f78a8; --sc-gold: #d39a2c;
  --sc-brass: #c79a45; --sc-wood: #8a5a3c; --sc-bag: #7f6a4f; --sc-coat: #3a5f8a; display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cx-scene { --sc-sky: #1d2440; --sc-sky2: #2a2f4b; --sc-sun: #d8b26a; --sc-cloud: #2e3554; --sc-hill1: #34424a; --sc-hill2: #2c3646; --sc-grass: #2e3d36; --sc-tree: #1d3a31; --sc-road: #20232d; --sc-line: #c9c4b8; --sc-car: #9c8b72; --sc-bumper: #7d6f5b; --sc-glass: #4a5d6e; --sc-plate: #d9d4c7; --sc-hood: #c9c5bb; --sc-ok-soft: #22392f; --sc-shadow: rgba(0, 0, 0, .4); } }
:root[data-theme="dark"] .cx-scene { --sc-sky: #1d2440; --sc-sky2: #2a2f4b; --sc-sun: #d8b26a; --sc-cloud: #2e3554; --sc-hill1: #34424a; --sc-hill2: #2c3646; --sc-grass: #2e3d36; --sc-tree: #1d3a31; --sc-road: #20232d; --sc-line: #c9c4b8; --sc-car: #9c8b72; --sc-bumper: #7d6f5b; --sc-glass: #4a5d6e; --sc-plate: #d9d4c7; --sc-hood: #c9c5bb; --sc-ok-soft: #22392f; --sc-shadow: rgba(0, 0, 0, .4); }
.sc { display: block; width: 100%; height: auto; }
.sc .sc-en { font-family: var(--en); } .sc .sc-zh { font-family: var(--sans); } .sc .sc-num { font-family: var(--en); letter-spacing: -.02em; }
.sc .lamp.off { fill: var(--sc-lamp-off); }
.sc .lamp.on { fill: var(--sc-lamp-on); }
.sc-hero { height: 100%; }
/* 动画：默认停着，.play（看得见）才走；用户要求减少动效时全停 */
.cx-scene * { animation-play-state: paused; }
.cx-scene.play * { animation-play-state: running; }
.sc-tree-run { animation: sc-tree 7s cubic-bezier(.6, 0, .95, .5) infinite; transform: translate(1040px, 318px) scale(.03); }
@keyframes sc-tree { 0% { transform: translate(1040px, 318px) scale(.03); opacity: 0; } 8% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(1.5); opacity: 1; } }
.sc-dash { animation: sc-dash .7s linear infinite; }
@keyframes sc-dash { to { stroke-dashoffset: -80; } }
.sc-bob { animation: sc-bob 1.8s ease-in-out infinite; }
@keyframes sc-bob { 50% { transform: translateY(2px); } }
.sc-hero .lamp.on { animation: sc-brake 5s ease-in-out infinite; }
@keyframes sc-brake { 0%, 52%, 100% { fill: #9a3a2c; } 58%, 86% { fill: var(--sc-lamp-on); filter: drop-shadow(0 0 6px rgba(255, 74, 46, .7)); } }
.sc-drift { animation: sc-drift 40s linear infinite alternate; }
@keyframes sc-drift { to { transform: translateX(120px); } }
.sc-tail .lamp.on { animation: sc-brake 3.2s ease-in-out infinite; }
.sc-i77 .sc-dash-v { animation: sc-dashv .8s linear infinite; }
@keyframes sc-dashv { to { stroke-dashoffset: 54; } }
.sc-i77 .sc-truck { animation: sc-truck 9s linear infinite; }
.sc-i77 .sc-escort { animation: sc-escort 9s ease-in-out infinite; }
.sc-i77 .sc-patrol { animation: sc-patrol 9s ease-in-out infinite; transform: translate(560px, 330px); }
.sc-i77 .brake-l { animation: sc-blink 9s step-end infinite; }
.sc-i77 .sc-bar { fill: var(--sc-rule); animation: sc-bar 9s step-end infinite; }
.sc-i77 .sc-tag { opacity: 0; animation: sc-tag 9s ease infinite; }
@keyframes sc-truck { 0% { transform: translate(0, 120px); } 100% { transform: translate(0, 60px); } }
@keyframes sc-escort { 0% { transform: translate(0, 620px); } 30% { transform: translate(0, 420px); } 60% { transform: translate(-96px, 230px); } 75% { transform: translate(-96px, 190px); } 100% { transform: translate(-96px, 170px); } }
@keyframes sc-patrol { 0%, 22% { transform: translate(560px, 330px); } 40% { transform: translate(468px, 400px); } 75% { transform: translate(372px, 300px); } 100% { transform: translate(372px, 270px); } }
@keyframes sc-blink { 0% { fill: var(--sc-lamp-off); } 55% { fill: var(--sc-lamp-on); } 90% { fill: var(--sc-lamp-off); } }
@keyframes sc-bar { 0% { fill: var(--sc-rule); } 72% { fill: #3b6fd8; } 76% { fill: #d83b3b; } 80% { fill: #3b6fd8; } 84% { fill: #d83b3b; } 88% { fill: #3b6fd8; } 92% { fill: #d83b3b; } 96% { fill: #3b6fd8; } }
@keyframes sc-tag { 0%, 50% { opacity: 0; } 58%, 92% { opacity: 1; } 100% { opacity: 0; } }
.sc-consent .sc-draw { stroke-dasharray: 120; stroke-dashoffset: 120; animation: sc-draw 1.2s .4s ease forwards; }
@keyframes sc-draw { to { stroke-dashoffset: 0; } }
.sc-step, .sc-seat, .sc-pop { opacity: 0; animation: sc-up .6s ease forwards; }
@keyframes sc-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sc-pulse { animation: sc-pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sc-pulse { 50% { scale: 1.08; } }
.sc-command .sc-waves path { animation: sc-wave 1.2s ease-out infinite; opacity: 0; }
.sc-command .sc-waves path:nth-child(2) { animation-delay: .2s; } .sc-command .sc-waves path:nth-child(3) { animation-delay: .4s; }
@keyframes sc-wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cx-scene * { animation: none !important; opacity: 1 !important; } .sc-tree-run { display: none; } }

/* 可以点的法条 */
.sc-law { background: var(--card); padding: 18px; }
.sc-law-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sc-law-btns button { border: 1px solid var(--rule); background: var(--paper); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.sc-law-btns button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sc-law-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.sc-law .lw { font-family: var(--en); font-size: 15px; line-height: 1.65; margin: 0 0 10px; color: var(--ink); }
.sc-law .lw b { font-family: var(--sans); font-size: 12px; background: var(--paper-2); border-radius: 6px; padding: 1px 6px; margin-right: 4px; }
.sc-law mark { background: none; color: inherit; border-bottom: 2px solid var(--rule); transition: background .3s, border-color .3s; }
.sc-law mark.hot { background: color-mix(in srgb, var(--accent-fill) 35%, transparent); border-bottom-color: var(--accent-fill); }
.sc-law .sc-mini { max-width: 220px; margin: 0 auto; }
.sc-law .verdict { text-align: center; font-size: 14px; margin-top: 6px; }
.sc-law .verdict .ok { color: var(--g4); } .sc-law .verdict .no { color: var(--g2); }
.sc-law-note { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; line-height: 1.6; }
@media (max-width: 560px) { .sc-law-grid { grid-template-columns: 1fr; } }

/* 老师和学生 */
.cx-lock { font-size: 13px; color: var(--ink-3); border: 1px dashed var(--rule); border-radius: 999px; padding: 2px 10px; }
.cx-lock::before { content: "🔒 "; }
.cx-tstat { font-size: 14px; color: var(--ink-2); background: color-mix(in srgb, var(--g5) 12%, var(--card)); border: 1px solid var(--rule); border-radius: 12px; padding: 8px 14px; margin: 0 0 18px; }
.cx-route .done { color: var(--g4); }
.cx-say { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 6px; border-radius: 50%; color: var(--ink-3); cursor: pointer; vertical-align: middle; }
.cx-say:hover { color: var(--accent); background: var(--paper-2); }
.cx-say svg { width: 16px; height: 16px; }
.cx-scene:not(:has(.sc-law)) { cursor: zoom-in; }
.cx-uhero .cx-scene, .cx-route .cx-scene, .cx-next .cx-scene { cursor: inherit; }
.cx-lb .lb-sc { width: min(1400px, 100%); max-height: calc(100vh - 80px); overflow: auto; background: var(--card); border-radius: 12px; }
.cx-lb .lb-sc .sc { width: 100%; height: auto; }
@media (max-width: 700px) { .cx-lb { padding: 8px; } .cx-lb .lb-sc { width: 100%; overflow: auto; } .cx-lb .lb-sc .sc { width: 200%; max-width: none; } }
