/* ============================================================
   pages/teach.css · AI 备课中心（类名前缀 tc-）
   只使用设计令牌取色；两处例外与 components.css 的 .paper 同理——
   「幻灯片模板」与「试卷 / 教案纸张」是文档表面，自带固定配色，不随主题反相。
   ============================================================ */

/* ---------- 通用小件 ---------- */
.tc-ico { width: 40px; height: 40px; border-radius: var(--r-m); display: grid; place-items: center; flex: 0 0 auto; color: var(--tc, var(--primary)); background: color-mix(in srgb, var(--tc, var(--primary)) 12%, transparent); }
.tc-ico.sm { width: 32px; height: 32px; border-radius: var(--r-s); }
.tc-mini { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: var(--r-xs); font-size: 11.5px; font-weight: 600; color: var(--primary); background: var(--primary-soft); }
.tc-mini:hover { outline: 1px solid var(--primary); } .tc-mini.is-busy { pointer-events: none; opacity: .7; } .tc-mini.is-busy .ico { animation: spin 1s linear infinite; }
.tc-filechip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 9px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; color: var(--ink-2); max-width: 100%; }
.tc-filechip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tc-filechip .ico { color: var(--primary); }
.tc-filechip button { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); } .tc-filechip button:hover { background: var(--surface-3); color: var(--ink); }
.tc-local { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 3px; font-size: 10.5px; font-weight: 650; background: var(--ok-soft); color: var(--ok); letter-spacing: .02em; }
.tc-cloud { background: var(--surface-3); color: var(--ink-3); }
.tc-kicker { display: flex; align-items: center; gap: 8px; }
.tc-kicker::before { content: ""; width: 18px; height: 1px; background: var(--amber); }
.tc-sticky { position: sticky; top: 16px; }
.tc-panel { display: flex; flex-direction: column; max-height: calc(100vh - var(--topbar-h) - 32px); } .tc-panel-scroll { overflow-y: auto; min-height: 0; flex: 1; } .tc-panel-f { flex: 0 0 auto; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 var(--r-m) var(--r-m); }
.tc-genbox { padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--r-m); background: var(--surface-2); }
.tc-hint { font-size: 12px; color: var(--ink-3); display: flex; gap: 6px; align-items: flex-start; } .tc-hint .ico { margin-top: 2px; flex: 0 0 auto; }
.tc-num { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-s); overflow: hidden; background: var(--surface); }
.tc-num button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink-2); } .tc-num button:hover { background: var(--surface-3); color: var(--ink); }
.tc-num input, .tc-num b { width: 34px; height: 28px; text-align: center; border: 0; outline: 0; background: transparent; font-weight: 650; font-size: 13px; font-variant-numeric: tabular-nums; border-left: 1px solid var(--line); border-right: 1px solid var(--line); line-height: 28px; }
:root[data-theme="dark"] .tc-paper { --surface: #fff; --surface-3: #F1F3F7; --primary: #1A5BB0; --primary-soft: #E8F0FB; --amber-deep: #F07306; --amber-soft: #FFF2E3; --ok: #0E9F6E; --ok-soft: #E3F6EE; --danger: #DC2626; --danger-soft: #FDE8E8; --warn: #D97706; --warn-soft: #FEF3C7; --ink-4: #A7B1C4; }

/* ---------- 示意图 SVG ---------- */
.tc-fig { display: block; width: 100%; height: auto; font-family: var(--font-ui); }
.tc-fig .cx { --fc: var(--danger); } .tc-fig .cy { --fc: var(--ok); } .tc-fig .cz { --fc: var(--primary); } .tc-fig .ca { --fc: var(--amber-deep); } .tc-fig .ci { --fc: var(--ink-3); }
.tc-fig .f-ln { fill: none; stroke: var(--fc, var(--ink-2)); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tc-fig .f-fine { stroke-width: 1.1; } .tc-fig .f-dash { stroke-dasharray: 5 4; } .tc-fig .f-curve { stroke-width: 2.2; }
.tc-fig .f-hd, .tc-fig .f-dot { fill: var(--fc, var(--ink-2)); stroke: none; }
.tc-fig .f-ring { fill: none; stroke: var(--fc, var(--ink-2)); stroke-width: 1.5; }
.tc-fig .f-link { stroke: var(--line-strong); stroke-width: 9; stroke-linecap: round; }
.tc-fig .f-joint { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; }
.tc-fig .f-body { fill: var(--surface-3); stroke: var(--ink-2); stroke-width: 1.5; stroke-linejoin: round; }
.tc-fig .f-ink { fill: var(--ink-2); } .tc-fig .f-cam { fill: var(--ink-2); stroke: none; }
.tc-fig .f-obj { fill: var(--amber-soft); stroke: var(--amber-deep); stroke-width: 1.6; }
.tc-fig .f-panel { fill: var(--surface-2); stroke: var(--line); stroke-width: 1; } .tc-fig .f-node { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.tc-fig .f-badge { fill: var(--fc); }
.tc-fig text { fill: var(--fc, var(--ink)); font-size: 12.5px; stroke: none; }
.tc-fig .f-s { font-size: 11.5px; fill: var(--fc, var(--ink-3)); } .tc-fig .f-xs { font-size: 10px; fill: var(--fc, var(--ink-3)); } .tc-fig .f-dark { fill: var(--ink); }
.tc-fig .f-b { font-weight: 650; } .tc-fig .f-i { font-style: italic; } .tc-fig .f-lg { font-size: 15px; } .tc-fig .f-mono { font-family: var(--font-mono); letter-spacing: .06em; } .tc-fig .f-on { fill: #fff; }
.tc-figwrap { border-radius: var(--r-s); background: var(--surface); padding: 10px; }
.tc-figwrap.is-flat .f-body, .tc-figwrap.is-flat .f-node { fill: var(--primary-soft); stroke: var(--primary); } .tc-figwrap.is-flat .f-link { stroke: var(--primary); opacity: .55; } .tc-figwrap.is-flat .f-panel { fill: color-mix(in srgb, var(--primary-soft) 45%, var(--surface)); stroke: transparent; } .tc-figwrap.is-flat .f-joint { fill: var(--amber-soft); stroke: var(--amber-deep); }
.tc-figwrap.is-blue { background: var(--deck-2); --ink: var(--on-deck); --ink-2: #C9D6F0; --ink-3: #8FA3CC; --line: rgba(255,255,255,.14); --line-strong: #4A5F92; --surface: var(--deck-2); --surface-2: var(--deck-3); --surface-3: var(--deck-3); --primary: #6FB6FF; --danger: #FF8A8A; --ok: #5FE0B5; --amber-deep: #FFB066; --amber-soft: rgba(255,154,61,.16); background-image: linear-gradient(var(--deck-line) 1px, transparent 1px), linear-gradient(90deg, var(--deck-line) 1px, transparent 1px); background-size: 22px 22px; }

/* ---------- 备课总览 ---------- */
.tc-hero { position: relative; padding: 34px 28px 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); text-align: center; }
.tc-hero-bg { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .8; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 0%, transparent 72%); }
.tc-hero > *:not(.tc-hero-bg) { position: relative; }
.tc-hero h1 { font-size: 30px; letter-spacing: -.02em; margin-top: 10px; }
.tc-hero .lead { color: var(--ink-3); margin-top: 6px; }
.tc-hero .composer { max-width: 860px; margin: 20px auto 0; text-align: left; padding: 14px 16px 12px; }
.tc-hero .composer textarea { min-height: 60px; font-size: 15px; }
.tc-hero-chips { max-width: 860px; margin: 12px auto 0; justify-content: center; }
.tc-hero-stats { display: flex; justify-content: center; gap: 22px; margin-top: 18px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.tc-hero-stats b { color: var(--ink); font-size: 15px; margin: 0 3px 0 5px; font-variant-numeric: tabular-nums; }
.tc-principle { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 10px 18px; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--r-s); background: var(--surface); overflow-x: auto; }
.tc-principle > b { white-space: nowrap; font-size: 13.5px; }
.tc-principle ol { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tc-principle li { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12.5px; color: var(--ink-2); }
.tc-principle li .ico { color: var(--primary); } .tc-principle li em { font-style: normal; color: var(--ink-3); font-size: 11.5px; } .tc-principle li + li::before { content: "→"; color: var(--ink-4); margin: 0 6px 0 2px; }
.tc-tool { display: flex; flex-direction: column; gap: 4px; padding: 16px; color: var(--ink); }
.tc-tool .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .tc-tool .top > .ico { color: var(--ink-4); transition: transform .15s, color .15s; }
.tc-tool:hover .top > .ico { color: var(--primary); transform: translate(2px, -2px); }
.tc-tool b { font-size: 15px; } .tc-tool .out { font-family: var(--font-mono); font-size: 11.5px; color: var(--amber-deep); letter-spacing: 0; }
.tc-tool .desc { font-size: 12.5px; color: var(--ink-3); min-height: 40px; margin-top: 2px; } .tc-tool .st { font-size: 11.5px; color: var(--ink-3); padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--line); }
.tc-sug { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0; color: var(--ink); overflow: hidden; }
.tc-sug .metric { padding: 16px 12px; background: var(--surface-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 2px; }
.tc-sug .metric b { font-size: 28px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .tc-sug .metric span { font-size: 11.5px; color: var(--ink-3); }
.tc-sug .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tc-sug .where { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.tc-sug .finding { font-size: 13.5px; line-height: 1.6; } .tc-sug .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.tc-recent > a { padding: 11px 16px; color: var(--ink); } .tc-recent > a:hover { background: var(--surface-2); } .tc-recent .time { width: 86px; text-align: right; }

/* ---------- 智能对话 ---------- */
.tc-chat { display: grid; grid-template-columns: 272px minmax(0, 1fr); height: 100%; transition: grid-template-columns .2s; }
.tc-chat.is-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.tc-chat-side { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; background: var(--surface); border-right: 1px solid var(--line); }
.tc-chat-side > * { min-width: 272px; }
.tc-chat-side .head { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.tc-hist { flex: 1; overflow-y: auto; padding: 0 8px 14px; }
.tc-hist .label-mono { display: block; padding: 12px 8px 4px; }
.tc-hist button { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 8px; border-radius: var(--r-s); font-size: 13px; color: var(--ink-2); text-align: left; }
.tc-hist button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tc-hist button em { font-style: normal; font-size: 11px; color: var(--ink-4); }
.tc-hist button:hover { background: var(--surface-3); color: var(--ink); } .tc-hist button.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.tc-chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.tc-chat-head { flex: 0 0 auto; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 18px 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.tc-chat-head h2 { font-size: 14.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-chat-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 0 12px; }
.tc-chat-col { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.tc-chat-foot { flex: 0 0 auto; padding: 0 0 14px; }
.tc-chat-foot .composer { padding: 10px 12px 9px; } .tc-chat-foot .composer textarea { min-height: 46px; max-height: 160px; }
.tc-chat-foot .note { text-align: center; font-size: 11.5px; color: var(--ink-4); margin-top: 8px; }
.tc-empty { padding: 5vh 0 0; text-align: center; }
.tc-empty .mark { width: 52px; height: 52px; border-radius: var(--r-l); margin: 0 auto 14px; display: grid; place-items: center; color: #fff; background: var(--brand-grad); }
.tc-empty h2 { font-size: 22px; } .tc-empty p { color: var(--ink-3); margin-top: 6px; }
.tc-prompts { margin-top: 26px; text-align: left; }
.tc-prompt { display: flex; gap: 12px; padding: 14px; text-align: left; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tc-prompt:hover { border-color: var(--primary); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.tc-prompt .t { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; } .tc-prompt .q { font-size: 13.5px; line-height: 1.55; margin-top: 3px; color: var(--ink); }
.tc-tg { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 12.5px; font-weight: 550; color: var(--ink-2); background: var(--surface); white-space: nowrap; }
.tc-tg:hover { border-color: var(--line-strong); color: var(--ink); } .tc-tg.is-on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.tc-tg.model { border-color: var(--line-strong); padding-right: 7px; } .tc-tg.is-busy .ico { animation: spin 1s linear infinite; }
.tc-attach { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; } .tc-attach:empty { display: none; }
.tc-think { margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface-2); }
.tc-think-h { display: flex; align-items: center; gap: 7px; width: 100%; height: 32px; padding: 0 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tc-think-h .chev { margin-left: auto; transition: transform .15s; color: var(--ink-3); } .tc-think.is-open .chev { transform: rotate(180deg); }
.tc-think .think { margin: 0 10px 10px; display: none; } .tc-think.is-open .think { display: block; } .tc-think .think p { margin: 2px 0; }
.tc-src { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; } .tc-src .tag .ico { margin-right: 4px; color: var(--info); }
.tc-ans { font-size: 14px; line-height: 1.75; }
.tc-ans h4 { font-size: 14.5px; margin: 14px 0 6px; } .tc-ans h4:first-child { margin-top: 0; } .tc-ans p { margin: 6px 0; }
.tc-ans ul, .tc-ans ol { margin: 6px 0 6px 1.35em; } .tc-ans ul { list-style: disc; } .tc-ans ol { list-style: decimal; } .tc-ans li { margin: 3px 0; }
.tc-ans table { margin: 10px 0; font-size: 13px; line-height: 1.55; } .tc-ans th, .tc-ans td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; } .tc-ans th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.tc-ans code { font-family: var(--font-mono); font-size: 12.5px; padding: 1px 5px; border-radius: 4px; background: var(--surface-3); overflow-wrap: anywhere; }
.tc-ans blockquote { margin: 10px 0 2px; padding: 8px 12px; border-left: 3px solid var(--amber); background: var(--amber-soft); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: 13px; }
.tc-ans-note { font-size: 12px; color: var(--ink-3); } .tc-ans-fig { margin-top: 12px; max-width: 400px; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; } .tc-ans-fig figcaption { padding: 6px 10px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); }
.tc-msg-actions { display: flex; gap: 2px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.tc-msg-actions button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px; border-radius: var(--r-s); font-size: 12px; color: var(--ink-3); } .tc-msg-actions button:hover { background: var(--surface-3); color: var(--ink); }
.tc-msg-actions .go { margin-left: auto; color: var(--primary); font-weight: 600; }

/* ---------- 教案设计 ---------- */
.tc-lesson { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.tc-form-sec { padding: 16px; border-bottom: 1px solid var(--line); } .tc-form-sec:last-child { border-bottom: 0; }
.tc-form-sec > .label-mono { display: block; margin-bottom: 12px; }
.tc-check { display: flex; flex-direction: column; gap: 2px; }
.tc-check li { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; font-size: 13px; color: var(--ink-3); }
.tc-check li .mk { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; color: transparent; }
.tc-check li.is-ok { color: var(--ink); } .tc-check li.is-ok .mk { background: var(--ok); border-color: var(--ok); color: #fff; }
.tc-check li.is-opt .mk { border-style: dashed; } .tc-check li small { display: block; color: var(--ink-3); font-size: 11.5px; }
.tc-meter { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .tc-meter b { font-size: 20px; font-variant-numeric: tabular-nums; }
.tc-result { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.tc-rbar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1); }
.tc-rbar .sp { flex: 1; }
.tc-doc[contenteditable="true"] { outline: 2px dashed var(--amber); outline-offset: 10px; border-radius: 2px; }
.tc-doc .info td:nth-child(odd) { background: var(--surface-2); font-weight: 600; white-space: nowrap; width: 92px; }
.tc-doc .flow th:nth-child(1) { width: 84px; } .tc-doc .flow th:nth-child(2) { width: 50px; } .tc-doc .flow td:nth-child(2) { text-align: center; font-variant-numeric: tabular-nums; } .tc-doc .flow td:first-child { font-weight: 600; }
.tc-doc .qa { margin: 8px 0 12px; } .tc-doc .qa .opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 12px; margin: 4px 0; } .tc-doc .qa .key { font-size: 13px; color: var(--ink-3); }
.tc-board { display: grid; grid-template-columns: 1fr 1.25fr 1fr; border: 2px solid var(--ink-2); border-radius: 4px; margin: 10px 0; font-size: 13.5px; }
.tc-board > div { padding: 12px 14px; min-height: 128px; } .tc-board > div + div { border-left: 1px dashed var(--ink-3); }
.tc-board h5 { font-size: 13px; margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line-strong); } .tc-board p { margin: 3px 0 !important; line-height: 1.6; } .tc-board .big { font-family: var(--font-mono); font-size: 13px; }
.tc-reflect { margin-top: 8px; } .tc-reflect i { display: block; height: 34px; border-bottom: 1px solid var(--line-strong); }
.tc-hrow { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; } .tc-hrow:last-child { border-bottom: 0; }

/* ---------- PPT：幻灯片渲染（模板配色为文档表面，固定色） ---------- */
.tc-slide { position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; border-radius: 3px; background: var(--s-bg); color: var(--s-ink); }
.tc-slide-in { position: absolute; inset: 0; font-size: 1.95cqw; line-height: 1.5; padding: 2.7em 3.7em 2.7em; display: flex; flex-direction: column; }
.tc-slide-in::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .55em; background: var(--s-acc); }
.tc-slide .s-title { font-size: 1.8em; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; margin-bottom: .6em; padding-bottom: .4em; border-bottom: .06em solid var(--s-line); }
.tc-slide .s-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.tc-slide .s-foot { position: absolute; left: 5.2em; right: 5.2em; bottom: 1.3em; display: flex; justify-content: space-between; font-size: .7em; color: var(--s-ink2); letter-spacing: .04em; }
.tc-slide ul.s-bul { display: flex; flex-direction: column; gap: 1em; } .tc-slide ul.s-bul li { position: relative; padding-left: 1.4em; font-size: 1.2em; line-height: 1.5; }
.tc-slide ul.s-bul li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5em; height: .5em; background: var(--s-acc); border-radius: .08em; }
.tc-slide .s-two { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2.4em; align-items: center; } .tc-slide.lay-flip .s-two > :first-child { order: 2; } .tc-slide.lay-wide .s-two { grid-template-columns: 1fr; } .tc-slide.lay-wide .s-aside { display: none; }
.tc-slide.lay-center .s-title { text-align: center; } .tc-slide.lay-center ul.s-bul { align-items: center; }
.tc-slide .s-aside { padding: 1.6em 1.2em; border-radius: .5em; background: var(--s-panel); border: .08em solid var(--s-line); text-align: center; } .tc-slide .s-aside b { display: block; font-size: 3.6em; line-height: 1.1; color: var(--s-acc); letter-spacing: -.03em; } .tc-slide .s-aside span { font-size: .9em; color: var(--s-ink2); }
.tc-slide table { font-size: .98em; line-height: 1.5; } .tc-slide th, .tc-slide td { border: .07em solid var(--s-line); padding: .8em .8em; text-align: left; vertical-align: top; } .tc-slide th { background: var(--s-acc); color: var(--s-acc-ink); font-weight: 650; border-color: var(--s-acc); } .tc-slide td:first-child { font-weight: 650; white-space: nowrap; } .tc-slide tbody tr:nth-child(even) td { background: var(--s-panel); }
.tc-slide .s-note { margin-top: 1.2em; font-size: 1em; color: var(--s-ink2); padding-left: .9em; border-left: .22em solid var(--s-acc); }
.tc-slide.k-cover .tc-slide-in { justify-content: center; padding-left: 5em; background: var(--s-cover, var(--s-bg)); color: var(--s-cover-ink, var(--s-ink)); } .tc-slide.k-cover .tc-slide-in::before { width: 1.1em; }
.tc-slide .s-kick { font-family: var(--font-mono); font-size: .8em; letter-spacing: .16em; color: var(--s-acc); margin-bottom: 1.4em; } .tc-slide.k-cover .s-kick { color: var(--s-cover-acc, var(--s-acc)); }
.tc-slide .s-h1 { font-size: 3em; font-weight: 750; line-height: 1.18; letter-spacing: -.02em; } .tc-slide .s-h2 { font-size: 1.6em; margin-top: .5em; opacity: .85; font-weight: 500; }
.tc-slide .s-meta { margin-top: 3em; font-size: .95em; opacity: .75; line-height: 1.8; } .tc-slide .s-deco { position: absolute; right: -6em; top: -6em; width: 26em; height: 26em; border-radius: 50%; border: 3em solid var(--s-cover-acc, var(--s-acc)); opacity: .16; }
.tc-slide ol.s-agenda { display: flex; flex-direction: column; gap: .75em; } .tc-slide ol.s-agenda li { display: flex; align-items: center; gap: 1.1em; font-size: 1.2em; padding: .5em .9em; border-radius: .35em; background: var(--s-panel); border: .06em solid var(--s-line); } .tc-slide ol.s-agenda li i { font-style: normal; font-family: var(--font-mono); font-weight: 700; color: var(--s-acc); }
.tc-slide .s-flow { display: flex; align-items: stretch; gap: 0; } .tc-slide .s-flow > div { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.7em .3em; font-size: .98em; font-weight: 600; border-radius: .4em; background: var(--s-panel); border: .08em solid var(--s-line); } .tc-slide .s-flow > div:last-child { background: var(--s-acc); color: var(--s-acc-ink); border-color: var(--s-acc); }
.tc-slide .s-flow > span { flex: 0 0 1.7em; display: grid; place-items: center; color: var(--s-acc); font-weight: 700; }
.tc-slide .s-code { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.6em; align-items: start; } .tc-slide .s-code .code { font-size: .74em; line-height: 1.62; padding: 1.1em 1.2em; border-radius: .4em; } .tc-slide .s-tips { display: flex; flex-direction: column; gap: .8em; } .tc-slide .s-tips li { padding: .8em .9em; font-size: .95em; line-height: 1.5; border-radius: .35em; background: var(--s-panel); border-left: .25em solid var(--s-acc); }
.tc-slide .s-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1em; } .tc-slide .s-cards > div { padding: 1.25em 1.4em; border-radius: .45em; background: var(--s-panel); border: .08em solid var(--s-line); } .tc-slide .s-cards i { font-style: normal; font-family: var(--font-mono); font-size: .85em; color: var(--s-acc); font-weight: 700; } .tc-slide .s-cards b { display: block; font-size: 1.2em; margin: .15em 0 .25em; } .tc-slide .s-cards span { font-size: 1em; color: var(--s-ink2); }
.tc-slide .s-pipe { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: .8em; align-items: stretch; } .tc-slide .s-pipe > div { padding: 1.3em 1em; border-radius: .5em; text-align: center; background: var(--s-panel); border: .08em solid var(--s-line); } .tc-slide .s-pipe em { display: grid; place-items: center; width: 2.5em; height: 2.5em; margin: 0 auto .5em; border-radius: 50%; font-style: normal; font-size: 1.3em; font-weight: 750; background: var(--s-acc); color: var(--s-acc-ink); } .tc-slide .s-pipe b { display: block; font-size: 1.15em; } .tc-slide .s-pipe span { font-size: .85em; color: var(--s-ink2); } .tc-slide .s-pipe > i { font-style: normal; color: var(--s-acc); font-size: 1.5em; font-weight: 700; align-self: center; }
.tc-slide .s-back { margin-top: 1.2em; text-align: center; font-size: .92em; color: var(--s-acc); border: .08em dashed var(--s-acc); border-radius: 2em; padding: .4em 1em; align-self: center; }
.tc-slide ul.s-sum { display: flex; flex-direction: column; gap: .8em; } .tc-slide ul.s-sum li { display: flex; gap: .8em; align-items: center; font-size: 1.15em; padding: .6em 1em; background: var(--s-panel); border-radius: .4em; } .tc-slide ul.s-sum li::before { content: "✓"; color: var(--s-acc); font-weight: 800; }
.tc-slide .s-hw { display: flex; flex-direction: column; gap: .8em; } .tc-slide .s-hw > div { display: grid; grid-template-columns: 4em 1fr auto; gap: 1em; align-items: center; padding: .85em 1.1em; border-radius: .4em; background: var(--s-panel); border: .08em solid var(--s-line); } .tc-slide .s-hw i { font-style: normal; text-align: center; font-size: .82em; font-weight: 700; padding: .2em 0; border-radius: .25em; background: var(--s-acc); color: var(--s-acc-ink); } .tc-slide .s-hw i.opt { background: transparent; color: var(--s-acc); outline: .08em solid var(--s-acc); } .tc-slide .s-hw span { font-size: .85em; color: var(--s-ink2); white-space: nowrap; }
.tc-slide.k-end .tc-slide-in { align-items: center; justify-content: center; text-align: center; background: var(--s-cover, var(--s-bg)); color: var(--s-cover-ink, var(--s-ink)); }
.tc-slide .s-ov { position: absolute; z-index: 3; cursor: move; font-size: 1.95cqw; } .tc-slide .s-ov.is-sel { outline: .12em dashed var(--s-acc); outline-offset: .25em; }
.tc-slide .s-ov-text { min-width: 8em; padding: .3em .6em; font-size: 1.1em; background: var(--s-panel); border: .08em solid var(--s-line); border-radius: .3em; cursor: text; } .tc-slide .s-ov-shape { width: 7em; height: 4.4em; background: var(--s-acc); opacity: .85; border-radius: .4em; } .tc-slide .s-ov-shape.round { border-radius: 50%; width: 5em; height: 5em; } .tc-slide .s-ov-shape.arrow { height: 1.1em; width: 9em; clip-path: polygon(0 30%, 78% 30%, 78% 0, 100% 50%, 78% 100%, 78% 70%, 0 70%); border-radius: 0; }
.tc-slide .s-ov-math { padding: .45em .9em; font-family: "Cambria Math", "Times New Roman", serif; font-style: italic; font-size: 1.35em; background: var(--s-panel); border-radius: .3em; border: .08em solid var(--s-line); white-space: nowrap; } .tc-slide .s-ov-img { width: 17em; background: #fff; border-radius: .4em; padding: .4em; box-shadow: 0 .4em 1.2em rgba(0,0,0,.25); --ink: #0D1526; --ink-2: #424E68; --ink-3: #7B879E; --surface: #fff; --surface-2: #F7F9FC; --surface-3: #ECF0F6; --line: #E1E6EF; --line-strong: #C9D2E0; }
.tc-slide .s-ov-chart { display: flex; align-items: flex-end; gap: .5em; height: 6.5em; padding: .7em .9em .5em; background: var(--s-panel); border: .08em solid var(--s-line); border-radius: .4em; } .tc-slide .s-ov-chart i { width: 1.3em; background: var(--s-acc); border-radius: .2em .2em 0 0; }
/* 模板配色 */
.tc-tpl-blueprint { --s-bg: #0B1226; --s-ink: #EEF2FA; --s-ink2: #9FB0D3; --s-acc: #FF8A1F; --s-acc-ink: #231405; --s-line: rgba(255,255,255,.16); --s-panel: rgba(255,255,255,.06); background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 4.2cqw 4.2cqw; }
.tc-tpl-clean { --s-bg: #FFFFFF; --s-ink: #0D1526; --s-ink2: #5B677F; --s-acc: #1A5BB0; --s-acc-ink: #fff; --s-line: #DCE3EE; --s-panel: #F4F7FB; }
.tc-tpl-azure { --s-bg: #FFFFFF; --s-ink: #0D1526; --s-ink2: #5B677F; --s-acc: #0090D5; --s-acc-ink: #fff; --s-line: #D6E6F2; --s-panel: #EEF7FC; --s-cover: linear-gradient(120deg, #29408F 0%, #1A5BB0 45%, #0090D5 100%); --s-cover-ink: #fff; --s-cover-acc: #fff; }
.tc-tpl-amber { --s-bg: #FFFBF5; --s-ink: #2A1A08; --s-ink2: #7A6650; --s-acc: #F07306; --s-acc-ink: #fff; --s-line: #F1E1CC; --s-panel: #FFF2E3; }
.tc-tpl-graphite { --s-bg: #1E2128; --s-ink: #F2F4F8; --s-ink2: #A4ACBA; --s-acc: #38BDF8; --s-acc-ink: #06202E; --s-line: rgba(255,255,255,.14); --s-panel: rgba(255,255,255,.06); }
.tc-tpl-green { --s-bg: #FFFFFF; --s-ink: #0F2A20; --s-ink2: #55705F; --s-acc: #0E9F6E; --s-acc-ink: #fff; --s-line: #D5EBE1; --s-panel: #EFF9F4; }
.tc-tpl-violet { --s-bg: #FBFAFF; --s-ink: #1B1640; --s-ink2: #6A6690; --s-acc: #6D5DF6; --s-acc-ink: #fff; --s-line: #E2DEFB; --s-panel: #F1EFFE; --s-cover: #231F4D; --s-cover-ink: #fff; --s-cover-acc: #B5ACFF; }
.tc-tpl-grid { --s-bg: #FCFBF7; --s-ink: #22252B; --s-ink2: #6C717B; --s-acc: #D9485B; --s-acc-ink: #fff; --s-line: #E4E1D6; --s-panel: rgba(255,255,255,.8); background-image: linear-gradient(#ECE9DE 1px, transparent 1px), linear-gradient(90deg, #ECE9DE 1px, transparent 1px); background-size: 2.6cqw 2.6cqw; }

/* PPT 流程页 */
.tc-ppt-steps { margin-bottom: 18px; }
.tc-src-seg { margin-bottom: 14px; }
.tc-outline { display: flex; flex-direction: column; gap: 10px; }
.tc-ol-sec { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.tc-ol-h { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-m) var(--r-m) 0 0; }
.tc-ol-h .no { font-family: var(--font-mono); font-size: 12px; color: var(--amber-deep); font-weight: 700; }
.tc-ol-in { flex: 1; min-width: 0; height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--r-xs); background: transparent; font-size: 13.5px; } .tc-ol-h .tc-ol-in { font-weight: 650; font-size: 14px; }
.tc-ol-in:hover { border-color: var(--line-strong); } .tc-ol-in:focus { outline: 0; border-color: var(--primary); background: var(--surface); }
.tc-ol-sec ul { padding: 6px 10px 8px 14px; } .tc-ol-sec li { display: flex; align-items: center; gap: 8px; } .tc-ol-sec li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); flex: 0 0 auto; margin-left: 12px; }
.tc-ol-x { width: 26px; height: 26px; border-radius: var(--r-xs); display: grid; place-items: center; color: var(--ink-4); opacity: 0; } li:hover > .tc-ol-x, .tc-ol-h:hover .tc-ol-x { opacity: 1; } .tc-ol-x:hover { background: var(--danger-soft); color: var(--danger); }
.tc-ol-add { margin: 0 0 8px 26px; font-size: 12.5px; color: var(--primary); display: inline-flex; gap: 4px; align-items: center; height: 26px; padding: 0 6px; border-radius: var(--r-xs); } .tc-ol-add:hover { background: var(--primary-soft); }
.tc-ol-stream h4 { font-size: 14px; margin: 12px 0 4px; } .tc-ol-stream h4 i { font-style: normal; font-family: var(--font-mono); color: var(--amber-deep); margin-right: 8px; font-size: 12px; } .tc-ol-stream p { margin: 2px 0 2px 34px; color: var(--ink-2); font-size: 13.5px; }
.tc-tpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tc-tpl { padding: 8px 8px 10px; border: 2px solid var(--line); border-radius: var(--r-m); background: var(--surface); text-align: left; transition: border-color .15s, transform .15s; } .tc-tpl:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.tc-tpl.is-active { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 22%, transparent); } .tc-tpl .nm { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 0 2px; font-size: 13px; font-weight: 600; } .tc-tpl .nm span { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.tc-gen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tc-gen-cell { position: relative; border-radius: 4px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); } .tc-gen-cell .skeleton { aspect-ratio: 16 / 9; border-radius: 0; } .tc-gen-cell .no { position: absolute; left: 6px; bottom: 5px; z-index: 2; font-family: var(--font-mono); font-size: 10.5px; padding: 0 5px; border-radius: 3px; background: var(--overlay); color: #fff; }
/* PPT 编辑器 */
.tc-ed { display: grid; grid-template-rows: auto auto minmax(0, 1fr); height: 100%; background: var(--bg); }
.tc-ed-head { display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.tc-ed-title { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--r-xs); background: transparent; font-size: 15px; font-weight: 650; } .tc-ed-title:hover { border-color: var(--line-strong); } .tc-ed-title:focus { outline: 0; border-color: var(--primary); }
.tc-ed-tools { display: flex; align-items: center; gap: 2px; padding: 5px 12px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tc-tool-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--r-s); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; } .tc-tool-btn:hover { background: var(--surface-3); color: var(--ink); } .tc-tool-btn.ai { color: var(--primary); font-weight: 600; background: var(--primary-soft); margin-left: 6px; }
.tc-ed-tools .sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; flex: 0 0 auto; }
.tc-ed-body { display: grid; grid-template-columns: 164px minmax(0, 1fr) 280px; min-height: 0; }
.tc-rail { overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); background: var(--surface); }
.tc-thumb { position: relative; display: block; width: 100%; padding: 0 0 0 20px; text-align: left; } .tc-thumb .no { position: absolute; left: 0; top: 2px; width: 16px; text-align: right; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.tc-thumb .tc-slide { outline: 1px solid var(--line-strong); pointer-events: none; } .tc-thumb.is-active .tc-slide { outline: 2px solid var(--amber); outline-offset: 1px; } .tc-thumb.is-active .no { color: var(--amber-deep); font-weight: 700; }
.tc-stage { overflow: auto; padding: 20px; display: grid; place-items: center; }
.tc-canvas { width: min(100%, calc((100vh - 236px) * 16 / 9)); box-shadow: var(--shadow-2); border-radius: 3px; }
.tc-side { border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; display: flex; flex-direction: column; } .tc-side .tabs { padding: 0 8px; flex: 0 0 auto; } .tc-side-b { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.tc-lays { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .tc-lay { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); border-radius: var(--r-s); font-size: 12px; color: var(--ink-2); } .tc-lay:hover { border-color: var(--primary); color: var(--primary); } .tc-lay.is-active { border-color: var(--amber); background: var(--amber-soft); color: var(--ink); }
.tc-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .tc-swatch { border-radius: 4px; overflow: hidden; outline: 1px solid var(--line-strong); } .tc-swatch.is-active { outline: 2px solid var(--amber); outline-offset: 1px; } .tc-swatch .tc-slide { pointer-events: none; }
.tc-present { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--deck); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; animation: fade-in .2s ease both; }
.tc-present .tc-slide { width: min(94vw, calc((100vh - 96px) * 16 / 9)); box-shadow: var(--shadow-3); } .tc-present-bar { display: flex; align-items: center; gap: 12px; color: var(--on-deck-2); font-size: 13px; }
.tc-present-bar button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--on-deck); background: rgba(255,255,255,.08); } .tc-present-bar button:hover { background: rgba(255,255,255,.18); } .tc-present-bar .kbd { background: transparent; color: var(--on-deck-3); border-color: var(--deck-line-strong); }

/* ---------- AI 出题 ---------- */
.tc-quiz { display: grid; grid-template-columns: 364px minmax(0, 1fr); gap: 16px; align-items: start; }
.tc-type-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 13.5px; }
.tc-ratio { display: flex; height: 8px; border-radius: 8px; overflow: hidden; margin-top: 10px; background: var(--surface-3); } .tc-ratio i { display: block; height: 100%; } .tc-ratio i:nth-child(1) { background: var(--ok); } .tc-ratio i:nth-child(2) { background: var(--info); } .tc-ratio i:nth-child(3) { background: var(--warn); }
.tc-qbar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1); }
.tc-q { padding: 16px 18px; margin-bottom: 12px; animation: fade-in .3s ease both; }
.tc-q-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; } .tc-q-h .no { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--ink-3); margin-right: 2px; } .tc-q-h .acts { margin-left: auto; display: flex; gap: 2px; }
.tc-q-h .acts button { height: 28px; padding: 0 8px; border-radius: var(--r-s); display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); } .tc-q-h .acts button:hover { background: var(--surface-3); color: var(--ink); } .tc-q-h .acts button.is-on { color: var(--amber-deep); } .tc-q-h .acts button.is-in { color: var(--ok); }
.tc-stem { font-size: 14.5px; line-height: 1.75; } .tc-stem sub, .tc-stem sup, .tc-opt sub, .tc-opt sup, .tc-key sub, .tc-key sup, .tc-exam sub, .tc-exam sup { font-size: .72em; line-height: 0; }
.tc-qfig { width: 320px; max-width: 100%; margin: 10px 0 4px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px; background: var(--surface); } .tc-qfig.alt { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 16px 16px; }
.tc-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin-top: 10px; }
.tc-opt { display: flex; gap: 9px; align-items: flex-start; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-s); font-size: 13.5px; line-height: 1.6; } .tc-opt i { font-style: normal; font-weight: 700; color: var(--ink-3); font-family: var(--font-mono); }
.tc-show-key .tc-opt.is-right { border-color: var(--ok); background: var(--ok-soft); } .tc-show-key .tc-opt.is-right i { color: var(--ok); }
.tc-key { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.7; color: var(--ink-2); } .tc-show-key .tc-key { display: grid; gap: 6px; }
.tc-key > div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; } .tc-key dt, .tc-key .k { font-weight: 650; color: var(--ink); white-space: nowrap; } .tc-key .ans { color: var(--ok); font-weight: 700; } .tc-key .pit { color: var(--ink-2); } .tc-key .pit .k { color: var(--warn); }
.tc-basket { position: fixed; right: 28px; bottom: 84px; z-index: 30; box-shadow: var(--shadow-3); } .tc-basket .cnt { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--amber-ink); color: var(--amber); font-size: 12px; font-variant-numeric: tabular-nums; }
.tc-basket.bump { animation: tc-bump .35s ease; } @keyframes tc-bump { 40% { transform: scale(1.12); } }
.tc-fly { position: fixed; z-index: 600; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); pointer-events: none; transition: transform .55s cubic-bezier(.3, -.2, .7, 1), opacity .55s; }

/* ---------- 智能组卷 ---------- */
.tc-struct input { width: 58px; height: 30px; text-align: center; padding: 0 4px; } .tc-struct td { padding: 7px 12px; } .tc-struct tfoot td { font-weight: 650; background: var(--surface-2); border-top: 1px solid var(--line); }
.tc-total.is-bad { color: var(--danger); } .tc-total.is-ok { color: var(--ok); }
.tc-qrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); } .tc-qrow:last-child { border-bottom: 0; } .tc-qrow .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; } .tc-qrow .stem { font-size: 13.5px; line-height: 1.7; } .tc-qrow .oline { font-size: 13px; color: var(--ink-2); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 18px; } .tc-qrow .side { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.tc-pager { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); } .tc-pager .pg { display: flex; gap: 4px; } .tc-pager .pg button { min-width: 28px; height: 28px; border-radius: var(--r-xs); font-size: 12.5px; border: 1px solid var(--line); } .tc-pager .pg button.is-active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tc-preview { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.tc-exam { font-family: "Times New Roman", "Songti SC", "SimSun", "Noto Serif CJK SC", serif; font-size: 14px; line-height: 1.8; padding: 40px 48px 48px; } .tc-exam.is-a3 { max-width: 1260px; padding: 32px 30px 40px; font-size: 13px; } .tc-exam.is-a3 .tc-eopts.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tc-exam.is-a3 .tc-eopts.c2 { grid-template-columns: 1fr; } .tc-exam.is-a3 .tc-exam-body { columns: 2; column-gap: 44px; column-rule: 1px dashed var(--line-strong); }
.tc-exam-head { text-align: center; } .tc-exam-head .sch { font-size: 15px; letter-spacing: .3em; } .tc-exam-head h1 { font-size: 21px; margin: 6px 0 4px; font-weight: 700; letter-spacing: .04em; } .tc-exam-head .sub { font-size: 13px; color: var(--ink-2); }
.tc-exam-lines { display: flex; justify-content: center; gap: 26px; margin: 14px 0 12px; font-size: 13.5px; } .tc-exam-lines span i { display: inline-block; width: 110px; border-bottom: 1px solid var(--ink-2); margin-left: 4px; height: 1em; vertical-align: -2px; }
.tc-score { margin: 0 auto 12px; width: auto; min-width: 70%; font-size: 13px; } .tc-score th, .tc-score td { border: 1px solid var(--ink-2); padding: 4px 10px; text-align: center; height: 28px; } .tc-score th { font-weight: 600; background: var(--surface-2); }
.tc-exam-note { font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line-strong); padding: 8px 12px; margin-bottom: 16px; } .tc-exam-note b { margin-right: 6px; }
.tc-sec-t { font-weight: 700; font-size: 14.5px; margin: 18px 0 8px; break-after: avoid; } .tc-eq { margin: 8px 0 10px; break-inside: avoid; } .tc-eq .pts { color: var(--ink-3); font-size: 12.5px; }
.tc-eopts { display: grid; gap: 1px 16px; margin: 3px 0 0 1.6em; } .tc-eopts.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tc-eopts.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tc-eopts.c1 { grid-template-columns: 1fr; }
.tc-eq .tc-qfig { margin: 6px 0 4px 1.6em; width: 216px; border-color: var(--line-strong); } .tc-exam .tc-fig { font-family: var(--font-ui); } .tc-eblank { height: 84px; } .tc-eblank.lg { height: 130px; }
.tc-akey td, .tc-akey th { border: 1px solid var(--line-strong); padding: 5px 9px; text-align: center; font-size: 13px; } .tc-akey { margin: 6px 0 14px; } .tc-adetail { margin: 6px 0 12px; font-size: 13.5px; } .tc-adetail b { margin-right: 6px; }
.tc-order { max-height: 300px; overflow-y: auto; margin: 0 -4px; } .tc-order li { display: flex; align-items: center; gap: 8px; padding: 5px 4px; font-size: 12.5px; border-radius: var(--r-xs); } .tc-order li:hover { background: var(--surface-2); } .tc-order li .n { width: 22px; font-family: var(--font-mono); color: var(--ink-3); text-align: right; } .tc-order li span.t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-order li button { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; color: var(--ink-3); } .tc-order li button:hover { background: var(--surface-3); color: var(--ink); }
.tc-side-sec { padding: 14px 16px; border-bottom: 1px solid var(--line); } .tc-side-sec:last-child { border-bottom: 0; } .tc-side-sec h4 { font-size: 13px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.tc-pts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .tc-pts label { font-size: 11.5px; color: var(--ink-3); display: flex; flex-direction: column; gap: 3px; } .tc-pts input { height: 30px; text-align: center; padding: 0 4px; }

/* ---------- 微课 ---------- */
.tc-deck { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); text-align: left; width: 100%; } .tc-deck:hover { border-color: var(--line-strong); } .tc-deck.is-active { border-color: var(--amber); background: var(--amber-soft); }
.tc-deck .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); margin-right: 6px; } .tc-deck.is-active .radio { border: 5px solid var(--amber); }
.tc-script { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); } .tc-script:last-child { border-bottom: 0; } .tc-script textarea { min-height: 78px; font-size: 13px; } .tc-script .bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
.tc-avas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tc-ava-card { padding: 6px 6px 8px; border: 2px solid var(--line); border-radius: var(--r-m); text-align: center; background: var(--surface); } .tc-ava-card.is-active { border-color: var(--amber); } .tc-ava-card b { display: block; font-size: 12.5px; margin-top: 6px; } .tc-ava-card span { font-size: 11px; color: var(--ink-3); }
.tc-ava { position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--r-s); overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--av) 16%, var(--surface-2)), var(--surface-3)); }
.tc-ava::before { content: ""; position: absolute; left: 50%; bottom: -30%; width: 86%; aspect-ratio: 1 / .9; transform: translateX(-50%); border-radius: 48% 48% 0 0; background: var(--av); }
.tc-ava::after { content: attr(data-ch); position: absolute; left: 50%; top: 17%; width: 40%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--ink); background: color-mix(in srgb, var(--av) 26%, var(--surface)); border: 3px solid var(--surface); }
.tc-ava.none::before, .tc-ava.none::after { display: none; } .tc-ava.none { display: grid; place-items: center; color: var(--ink-4); }
.tc-voice { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); width: 100%; text-align: left; } .tc-voice.is-active { border-color: var(--amber); background: var(--amber-soft); }
.tc-voice .play { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: 0 0 auto; } .tc-voice .play:hover { background: var(--primary); color: var(--primary-ink); }
.tc-wave { display: flex; align-items: center; gap: 2px; height: 18px; margin-left: auto; } .tc-wave i { width: 2.5px; height: 30%; border-radius: 2px; background: var(--ink-4); } .is-playing .tc-wave i { background: var(--primary); animation: tc-wave .9s ease-in-out infinite; } .tc-wave i:nth-child(2n) { animation-delay: .15s; } .tc-wave i:nth-child(3n) { animation-delay: .3s; } .tc-wave i:nth-child(5n) { animation-delay: .45s; }
@keyframes tc-wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.tc-synth li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 150px 84px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .tc-synth li:last-child { border-bottom: 0; } .tc-synth .st { font-size: 12px; color: var(--ink-3); text-align: right; } .tc-synth li.is-done .st { color: var(--ok); } .tc-synth li.is-run .st { color: var(--amber-deep); }
.tc-mc { overflow: hidden; color: var(--ink); } .tc-mc-body { padding: 12px 14px 14px; } .tc-mc-body b { display: block; font-size: 14px; } .tc-mc-acts { display: flex; gap: 6px; margin-top: 10px; }
.tc-player { position: relative; background: var(--deck); } .tc-player .tc-slide { border-radius: 0; } .tc-player .pip { position: absolute; right: 3%; bottom: 12%; width: 17%; border-radius: var(--r-s); box-shadow: var(--shadow-2); border: 2px solid rgba(255,255,255,.7); } .tc-player .pip .tc-ava { border-radius: 4px; }
.tc-player .dur { position: absolute; right: 8px; top: 8px; font-family: var(--font-mono); font-size: 11px; padding: 1px 6px; border-radius: 3px; background: var(--overlay); color: #fff; }
.tc-player .big-play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; cursor: pointer; border-radius: 50%; display: grid; place-items: center; background: rgba(8,12,24,.62); color: #fff; backdrop-filter: blur(2px); } .tc-player .big-play:hover { background: var(--amber); color: var(--amber-ink); } .tc-player.is-playing .big-play { opacity: 0; }
.tc-pctrl { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--deck-2); color: var(--on-deck-2); font-size: 12px; font-family: var(--font-mono); } .tc-pctrl button { color: var(--on-deck); display: grid; place-items: center; } .tc-pctrl .bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.16); overflow: hidden; } .tc-pctrl .bar i { display: block; height: 100%; width: 0; background: var(--amber); } .tc-sub { padding: 10px 16px; background: var(--deck-3); color: var(--on-deck); font-size: 13px; text-align: center; min-height: 40px; }

/* ---------- 教学配图 ---------- */
.tc-img { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 16px; align-items: start; }
.tc-img-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tc-img-card { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--surface); text-align: left; cursor: zoom-in; transition: border-color .15s, box-shadow .2s; display: flex; flex-direction: column; } .tc-img-card:hover { border-color: var(--primary); box-shadow: var(--shadow-2); }
.tc-img-card .ph { aspect-ratio: 16 / 9.4; display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden; } .tc-img-card .ph .tc-figwrap { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 0; } .tc-img-card .cap { padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; } .tc-img-card .skeleton { width: 100%; height: 100%; border-radius: 0; }
.tc-zoom .tc-figwrap { padding: 18px; border: 1px solid var(--line); }

/* ---------- 实训报告评阅 ---------- */
.tc-rubric input.w { width: 56px; height: 30px; text-align: center; padding: 0 4px; } .tc-rubric td { vertical-align: top; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); } .tc-rubric td:first-child { font-weight: 650; color: var(--ink); font-size: 13.5px; white-space: nowrap; } .tc-rubric td[contenteditable]:focus { outline: 2px solid var(--primary); outline-offset: -2px; background: var(--surface); }
.tc-via { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); } .tc-via .ico { color: var(--ink-3); }
.tc-rv-progress { display: grid; grid-template-columns: repeat(19, minmax(0, 1fr)); gap: 4px; margin-top: 12px; } .tc-rv-progress i { height: 22px; border-radius: 3px; background: var(--surface-3); display: grid; place-items: center; font-style: normal; font-size: 10px; color: var(--ink-4); transition: background .2s, color .2s; } .tc-rv-progress i.is-run { background: var(--amber-soft); color: var(--amber-deep); outline: 1px solid var(--amber); } .tc-rv-progress i.is-done { background: var(--ok-soft); color: var(--ok); } .tc-rv-progress i.is-none { background: transparent; outline: 1px dashed var(--line-strong); }
.tc-rv { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; min-height: calc(100% + 40px); margin: -20px; } .tc-rv > div { padding: 20px; overflow-y: auto; } .tc-rv > div + div { border-left: 1px solid var(--line); background: var(--surface-2); }
.tc-report { font-size: 13.5px; line-height: 1.9; } .tc-report h4 { margin: 14px 0 4px; font-size: 14px; } .tc-report p { white-space: pre-line; color: var(--ink-2); }
.tc-report mark { position: relative; padding: 1px 2px; border-radius: 3px; color: var(--ink); cursor: help; background: var(--ok-soft); border-bottom: 2px solid var(--ok); } .tc-report mark.err { background: var(--danger-soft); border-color: var(--danger); } .tc-report mark.warn { background: var(--warn-soft); border-color: var(--warn); }
.tc-report mark sup { font-size: 10px; font-weight: 700; margin-left: 2px; color: var(--ok); } .tc-report mark.err sup { color: var(--danger); } .tc-report mark.warn sup { color: var(--warn); }
.tc-notes li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px dashed var(--line); line-height: 1.6; } .tc-notes li b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; color: #fff; background: var(--ok); } .tc-notes li.err b { background: var(--danger); } .tc-notes li.warn b { background: var(--warn); }
.tc-dim { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); } .tc-dim + .tc-dim { margin-top: 8px; } .tc-dim .h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; } .tc-dim .h input { width: 52px; height: 28px; text-align: center; margin-left: auto; padding: 0 4px; } .tc-dim p { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.6; }

/* ---------- 我的资源 ---------- */
.tc-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.tc-lib { position: relative; padding: 14px; display: flex; flex-direction: column; gap: 10px; } .tc-lib.is-sel { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.tc-lib .pick { position: absolute; right: 12px; top: 12px; } .tc-lib h4 { font-size: 14px; line-height: 1.5; min-height: 42px; } .tc-lib h4 a { color: var(--ink); } .tc-lib .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-3); }
.tc-lib .share { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.tc-bulk { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 9px 14px; margin-bottom: 12px; border-radius: var(--r-m); background: var(--ink); color: var(--surface); font-size: 13px; box-shadow: var(--shadow-2); } .tc-bulk .btn { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--surface) 35%, transparent); } .tc-bulk .btn:hover { background: color-mix(in srgb, var(--surface) 14%, transparent); }

/* ---------- 响应式 ---------- */
@media (max-width: 1500px) { .tc-principle { gap: 12px; } .tc-principle li em { display: none; } .tc-principle li + li::before { margin: 0 4px 0 0; } }
@media (max-width: 1280px) { .tc-tpls, .tc-gen-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tc-ed-body { grid-template-columns: 150px minmax(0, 1fr) 264px; } }
@media (max-width: 1100px) {
  .tc-lesson, .tc-result, .tc-quiz, .tc-preview, .tc-img { grid-template-columns: minmax(0, 1fr); } .tc-sticky { position: static; } .tc-panel { max-height: none; }
  .tc-chat { grid-template-columns: 0 minmax(0, 1fr); } .tc-ed-body { grid-template-columns: 120px minmax(0, 1fr); } .tc-side { display: none; } .tc-avas { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tc-principle ol { margin-left: 0; }
}
