/* 许愿池 · 水墨笺纸主题（依 design/DESIGN.md：Literary Ink Wash） */
:root {
  --surface: #fef9ed;         /* 熟宣底色 */
  --s-low: #f8f3e7;
  --s: #f2ede2;
  --s-high: #ede8dc;
  --s-highest: #e7e2d6;
  --white: #ffffff;
  --paper: #fffdf8;           /* 信笺 */
  --ink: #1d1c15;
  --ink-2: #464742;           /* 淡墨 */
  --ink-3: #777871;
  --line: #c7c7bf;
  --hair: #dcd5c5;            /* 笺线 */
  --primary: #262624;         /* 松烟墨 */
  --dai: #47626b;             /* 黛蓝：讲者与助教的回应 */
  --dai-soft: #e6eff0;
  --dai-ink: #011f27;
  --zhu: #550001;             /* 朱砂印 */
  --zhu-ink: #c0392b;
  --zhu-soft: #ffdad5;
  --zhu-dim: #ffb4a9;
  --error: #ba1a1a;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "宋体", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --shadow-1: 0 1px 3px rgba(38, 38, 36, .05);
  --shadow-2: 0 6px 20px rgba(29, 28, 21, .14);
  --shadow-3: 0 18px 50px rgba(29, 28, 21, .28);
  --ai-bottom: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  color: var(--ink); background: var(--surface);
  font-family: var(--serif); font-size: 15px; line-height: 26px; letter-spacing: .015em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--dai); }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--dai); outline-offset: 2px; }
.ic { display: inline-flex; flex: none; width: 1.2em; height: 1.2em; vertical-align: -.2em; }
.ic svg { width: 100%; height: 100%; }
.label { font-size: 12px; line-height: 18px; letter-spacing: .12em; font-weight: 500; }
.tiny { font-size: 11px; line-height: 16px; letter-spacing: .12em; color: var(--ink-2); }
.mono { font-family: var(--mono); letter-spacing: 0; }

/* ---------- 印章、按钮、标签 ---------- */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 6px; border-radius: 2px;
  background: var(--zhu); color: var(--white);
  font-size: 11px; line-height: 14px; letter-spacing: .15em; font-weight: 500; white-space: nowrap;
}
.seal.dai { background: var(--dai); }
.seal.ink { background: var(--primary); }
.seal.soft { background: var(--s-highest); color: var(--ink-2); }
.seal.line { background: none; color: var(--zhu); box-shadow: inset 0 0 0 1px rgba(85, 0, 1, .45); }
.stamp { /* 方印 */
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 2px; background: var(--zhu); color: var(--white);
  font-size: 18px; font-weight: 600; line-height: 1; box-shadow: var(--shadow-1);
}
.stamp.small { width: 24px; height: 24px; font-size: 13px; }
.stamp.dai { background: var(--dai); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 6px 14px; border: 0; border-radius: 4px;
  background: var(--s-high); color: var(--ink); text-decoration: none;
  font-size: 13px; line-height: 20px; letter-spacing: .08em; font-weight: 500;
  transition: background .15s, opacity .15s;
}
.btn:hover { background: var(--s-highest); }
.btn.primary { background: var(--primary); color: var(--surface); }
.btn.primary:hover { opacity: .9; }
.btn.primary:active { transform: scale(.99); }
.btn.dai { background: var(--dai); color: var(--white); }
.btn.zhu { background: var(--zhu); color: var(--white); }
.btn.dai:hover, .btn.zhu:hover { opacity: .9; }
.btn.ghost { background: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--s-high); color: var(--ink); }
.btn.danger { color: var(--error); }
.btn.small { min-height: 30px; padding: 3px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: default; }
/* 禁用态不响应悬停与按下：否则 .btn.primary:hover 的 opacity .9 会盖过禁用的半透明，看起来像能点 */
.btn:disabled:hover, .btn:disabled:active { opacity: .5; transform: none; }
.btn:disabled:not(.primary):not(.dai):not(.zhu):not(.ghost):hover { background: var(--s-high); }
.btn.ghost:disabled:hover { background: none; color: var(--ink-2); }
.btn.ghost.danger:disabled:hover { color: var(--error); }
.btn .n { padding: 0 6px; border-radius: 9px; background: rgba(255, 255, 255, .2); font-size: 11px; line-height: 16px; letter-spacing: 0; }
.btn:not(.primary) .n { background: var(--white); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 34px; height: 34px; padding: 0 8px; border: 0; border-radius: 4px; background: none;
  color: var(--ink-2); font-size: 12px; letter-spacing: .1em;
}
.icon-btn:hover { background: var(--s-high); color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border: 0; border-radius: 12px;
  background: var(--s-high); color: var(--ink-2); font-size: 12px; line-height: 18px; letter-spacing: .08em; white-space: nowrap;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--surface); }
.chip[aria-pressed="true"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--zhu-dim); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 12px; background: var(--s-high); }
.tabs button {
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 4px 14px; border: 0; border-radius: 10px;
  background: none; color: var(--ink-2); font-size: 12px; letter-spacing: .12em; font-weight: 500;
}
.tabs button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-1); }
.tabs.inked button[aria-pressed="true"] { background: var(--primary); color: var(--surface); }
.tabs .n { padding: 0 6px; border-radius: 9px; background: var(--s); font-size: 11px; letter-spacing: 0; }
.tabs.inked button[aria-pressed="true"] .n { background: rgba(255, 255, 255, .2); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--zhu); flex: none; }
.dot.dai { background: var(--dai); }
.dot.live { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.field { display: block; margin-bottom: 12px; }
.field > span:first-child { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .12em; font-weight: 500; color: var(--primary); }
.field > small { display: block; margin-top: 4px; font-size: 11.5px; line-height: 18px; color: var(--ink-3); letter-spacing: .04em; }
.field input, .field textarea, .field select, .input {
  display: block; width: 100%; padding: 9px 12px; border: 1px solid var(--hair); border-radius: 4px;
  background: var(--white); font-size: 15px; line-height: 24px; outline: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { border-color: var(--primary); }
.check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.check input { width: 15px; height: 15px; margin: 5px 0 0; accent-color: var(--primary); flex: none; }
.check b { display: block; font-size: 12.5px; letter-spacing: .1em; font-weight: 500; }
.check small { display: block; font-size: 11.5px; line-height: 17px; color: var(--ink-3); }
.err { margin: 0 0 10px; color: var(--error); font-size: 13px; }
.err:empty { display: none; }
.notice {
  margin: 0 0 14px; padding: 9px 14px; border-radius: 4px; background: var(--s);
  color: var(--ink-2); font-size: 13px; text-align: center; letter-spacing: .08em;
}
.empty { padding: 48px 12px; text-align: center; color: var(--ink-3); font-size: 15px; letter-spacing: .2em; }
.empty svg { display: block; margin: 0 auto 14px; width: 96px; height: 48px; }
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 90;
  transform: translate(-50%, 12px); max-width: 86vw;
  padding: 8px 18px; border-radius: 4px; background: rgba(38, 38, 36, .94); color: var(--surface);
  font-size: 13px; letter-spacing: .08em; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 大模型回答的排版 */
.rich p { margin: 0 0 .6em; }
.rich p:last-child, .rich ul:last-child, .rich ol:last-child { margin-bottom: 0; }
.rich ul, .rich ol { margin: 0 0 .6em; padding-left: 1.4em; }
.rich li { margin: .15em 0; }
.rich li::marker { color: var(--zhu); font-weight: 600; }
.rich strong { font-weight: 600; color: var(--ink); }
.rich p.h { margin-top: .8em; }

/* ---------- 笺纸卡片（学员墙、后台、投屏共用） ---------- */
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.note {
  position: relative; padding: 16px 16px 14px 20px; border-radius: 4px; overflow: hidden;
  background: var(--s-low); box-shadow: var(--shadow-1);
}
.note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line); } /* 朱丝栏 */
.note.hot::before { background: rgba(85, 0, 1, .4); }
.note.pinned::before, .note.mine::before { background: var(--zhu); }
.note.dim { opacity: .6; }
.note.pending-q { background: #fbf6f5; }
.note.pending-q::before { background: rgba(178, 58, 46, .55); } /* 待审：朱砂侧线提示 */
.note.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px rgba(85, 0, 1, .35); } 100% { box-shadow: var(--shadow-1); } }
.note .marks { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 18px; }
.note .marks .seq { margin-left: auto; font-size: 11px; letter-spacing: .15em; color: var(--ink-2); }
.note .content { font-size: 17px; line-height: 30px; letter-spacing: .02em; white-space: pre-wrap; overflow-wrap: anywhere; text-align: justify; }
a.content, button.content { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-decoration: none; text-align: justify; cursor: pointer; }
.note .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.note .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; color: var(--ink-2); font-size: 13px; line-height: 22px; min-width: 0; overflow-wrap: anywhere; }
.note .meta .sep { opacity: .4; }
.reply, .ai-reply { /* 讲者回应笺 / AI 助教笺 */
  position: relative; margin-top: 10px; padding: 12px 14px 12px 16px; border-radius: 4px; overflow: hidden;
  background: var(--dai-soft); color: var(--ink-2); font-size: 15px; line-height: 26px; overflow-wrap: anywhere;
}
.reply { white-space: pre-wrap; }
.reply::before, .ai-reply::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2.5px; background: var(--dai); }
.reply b, .ai-reply > b { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--dai); font-size: 12px; letter-spacing: .12em; font-weight: 600; }
.reply b small, .ai-reply > b small { margin-left: auto; color: var(--ink-3); font-weight: 400; letter-spacing: .08em; }
.ai-reply { background: var(--s); }
.ai-reply::before { background: var(--zhu); opacity: .7; }
.ai-reply > b { color: var(--zhu); }
.ai-reply.clamp .rich { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.ai-reply .more { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--dai); font-size: 12px; letter-spacing: .1em; }
.ai-reply.pending .rich { color: var(--ink-3); }

.like {
  flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 14px;
  border: 0; border-radius: 12px; background: var(--s-high); color: var(--ink);
  font-size: 12px; letter-spacing: .12em; font-weight: 500; transition: background .2s, color .2s;
}
.like .ic { color: var(--zhu); }
.like .n { font-variant-numeric: tabular-nums; letter-spacing: 0; font-size: 13px; }
.like[aria-pressed="true"] { background: var(--zhu); color: var(--white); }
.like[aria-pressed="true"] .ic { color: var(--zhu-dim); }
.like:disabled { opacity: .6; cursor: default; }
.like.stamp-in { animation: stampIn .5s cubic-bezier(.18, .89, .32, 1.28); }
@keyframes stampIn { 0% { transform: scale(1.8) rotate(-10deg); opacity: .2; } 60% { transform: scale(.94) rotate(1deg); } 100% { transform: none; opacity: 1; } }

/* ---------- 学员问题墙 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 52px; padding: 0 12px; padding-top: env(safe-area-inset-top);
  background: rgba(254, 249, 237, .94); box-shadow: 0 1px 8px rgba(0, 0, 0, .04);
}
.topbar .brand { display: flex; align-items: center; gap: 8px; font-size: 17px; letter-spacing: .2em; font-weight: 500; }
.topbar .brand small { font-size: 11px; color: var(--ink-2); letter-spacing: .15em; font-weight: 400; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 150px; }
.banner { position: relative; margin: 0 -16px 20px; border-radius: 0 0 8px 8px; overflow: hidden; background: var(--s-low); }
.banner .hills { display: block; width: 100%; height: 120px; }
.banner .mark { position: absolute; top: 10px; right: 16px; font-size: 34px; line-height: 1.3; letter-spacing: .1em; font-weight: 600; opacity: .08; pointer-events: none; user-select: none; }
.banner .body { position: relative; margin-top: -40px; padding: 0 16px 20px; display: grid; gap: 10px; }
.banner .name { display: flex; align-items: center; gap: 8px; }
.banner .name b { font-size: 22px; line-height: 34px; letter-spacing: .12em; font-weight: 500; }
.dossier { padding: 14px 16px; border-radius: 4px; background: rgba(242, 237, 226, .82); display: grid; gap: 4px; }
.dossier .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dossier h1 { font-size: 19px; line-height: 30px; letter-spacing: .04em; font-weight: 500; overflow-wrap: anywhere; }
.dossier .state { flex: none; margin-top: 6px; padding: 1px 6px; border-radius: 2px; background: rgba(255, 218, 213, .7); color: var(--zhu); font-size: 11px; line-height: 16px; letter-spacing: .15em; }
.dossier .state.closed { background: var(--s-highest); color: var(--ink-2); }
.dossier .sub { color: var(--ink-2); font-size: 13px; line-height: 22px; overflow-wrap: anywhere; }
.dossier .motto { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--ink-2); font-size: 13px; letter-spacing: .2em; font-style: italic; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 14px; }
.count { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 13px; }
.count strong { margin: 0 2px; font-size: 18px; font-weight: 500; color: var(--ink); }
.colophon { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 28px 0 0; color: var(--ink-2); font-size: 11px; letter-spacing: .2em; opacity: .6; }
/* 讲席答疑笺 / 我的追问（AI 回答复用 .ai-reply 既有外观：火花图标 + 参考回答 + 朱砂侧线） */
.turns { margin-top: 26px; }
.turns header { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--hair); }
.turns header b { font-size: 16px; letter-spacing: .12em; font-weight: 600; }
.turns.pool header b { color: var(--dai); }
.turns.mine header b { color: var(--zhu); }
.turns .note.turn { background: var(--s-low); }
.turns .note.turn .content { font-size: 15px; }
.colophon::before, .colophon::after { content: ""; width: 48px; height: 1px; background: var(--line); }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); pointer-events: none; background: linear-gradient(to top, var(--surface) 45%, rgba(254, 249, 237, 0)); }
.cast-btn {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 12px 40px; border: 0; border-radius: 12px;
  background: var(--primary); color: var(--surface); font-size: 18px; line-height: 28px; letter-spacing: .25em; font-weight: 500;
  box-shadow: 0 6px 20px rgba(29, 28, 21, .25); transition: transform .15s, opacity .15s;
}
.cast-btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--zhu); box-shadow: 0 0 0 2px var(--zhu-dim); }
.cast-btn .ic { color: var(--zhu-dim); }
.cast-btn:active { transform: scale(.96); }
.cast-btn:disabled { opacity: .6; }

/* 展笺问疑：投递抽屉 */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(50, 48, 41, .65); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; max-height: 92vh; margin: 0 auto; overflow-y: auto;
  padding: 12px 20px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 14px;
  background: #faf6ec; border-top: 1px solid rgba(199, 199, 191, .6); border-radius: 16px 16px 0 0; box-shadow: var(--shadow-3);
  transform: translateY(105%); transition: transform .35s ease; visibility: hidden;
}
.sheet.open { transform: none; visibility: visible; }
.sheet::before { content: ""; width: 40px; height: 4px; margin: 0 auto; border-radius: 2px; background: rgba(199, 199, 191, .7); }
.sheet-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(199, 199, 191, .3); }
.sheet-head .stamp { width: 30px; height: 30px; font-size: 12px; letter-spacing: 0; }
.sheet-head h2 { display: flex; align-items: baseline; gap: 6px; font-size: 18px; line-height: 28px; letter-spacing: .2em; font-weight: 600; }
.sheet-head h2 span { padding: 1px 4px; border-radius: 2px; background: rgba(255, 218, 213, .6); color: var(--zhu); font-size: 10.5px; line-height: 14px; letter-spacing: .12em; font-weight: 500; }
.sheet-head .icon-btn { margin-left: auto; }
.sheet-body { display: grid; gap: 14px; }
.letter { /* 乌丝栏笺纸 */
  position: relative; padding: 14px 14px 10px 22px; border: 1px solid rgba(199, 199, 191, .4); border-radius: 4px; overflow: hidden;
  background: var(--paper) repeating-linear-gradient(to bottom, transparent, transparent 27px, rgba(70, 71, 66, .08) 28px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05);
}
.letter::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: rgba(85, 0, 1, .3); }
.letter textarea { display: block; width: 100%; min-height: 140px; padding: 0; border: 0; outline: none; resize: none; background: none; font-size: 17px; line-height: 28px; letter-spacing: .03em; }
.letter textarea::placeholder { color: rgba(70, 71, 66, .45); }
.letter .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(199, 199, 191, .25); font-size: 11px; letter-spacing: .12em; color: var(--ink-2); }
.letter .counter { color: var(--zhu); font-weight: 500; font-variant-numeric: tabular-nums; }
.letter .counter.over { color: var(--error); font-weight: 700; }
.letter.sink { animation: foldSink .85s cubic-bezier(.4, 0, .2, 1) forwards; transform-origin: center bottom; }
@keyframes foldSink {
  35% { transform: perspective(900px) rotateX(42deg) scale(.72) translateY(20px); opacity: .95; }
  70% { transform: perspective(900px) rotateX(68deg) rotateZ(10deg) scale(.32) translateY(80px); opacity: .8; }
  100% { transform: perspective(900px) rotateX(90deg) rotateZ(20deg) scale(.04) translateY(140px); opacity: 0; }
}
.cat-box > .tiny { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cat-box > .tiny b { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.cat-box > .tiny b::before { content: ""; width: 3px; height: 12px; border-radius: 1px; background: var(--dai); }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.sheet .field { margin: 0; }
.anon { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 3px; background: rgba(237, 232, 220, .6); color: var(--ink-2); font-size: 11.5px; letter-spacing: .08em; }
.anon .ic { color: var(--dai); }
.sheet .err { margin: 0; }
.sheet-actions { display: flex; align-items: center; gap: 14px; }
.sheet-actions .btn.ghost { font-size: 15px; letter-spacing: .12em; }
.sheet-actions .cast-btn { flex: 1; justify-content: center; padding: 11px 20px; }
.done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 4px; text-align: center; animation: fadeUp .6s cubic-bezier(.16, 1, .3, 1); }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(22px); } }
.big-seal {
  position: relative; display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 10px; padding: 4px;
  border: 2px solid rgba(85, 0, 1, .9); border-radius: 6px; background: var(--paper); color: var(--zhu);
  box-shadow: var(--shadow-2); transform: rotate(-2deg); animation: stampIn .65s cubic-bezier(.18, .89, .32, 1.28);
}
.big-seal div { display: grid; place-content: center; width: 100%; height: 100%; border: 1px dashed rgba(85, 0, 1, .6); border-radius: 3px; background: rgba(255, 218, 213, .2); }
.big-seal b { font-size: 16px; line-height: 22px; letter-spacing: .2em; text-indent: .2em; }
.big-seal small { margin-top: 2px; padding-top: 2px; border-top: 1px solid rgba(85, 0, 1, .3); font-size: 10px; letter-spacing: .1em; }
.done h3 { font-size: 22px; line-height: 34px; letter-spacing: .2em; font-weight: 600; }
.done > p { max-width: 20em; color: var(--ink-2); }
.done .ticket { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 14px; padding: 5px 14px; border: 1px solid rgba(199, 199, 191, .5); border-radius: 12px; background: var(--s-high); font-size: 12px; letter-spacing: .12em; }
.done .ticket b { font-weight: 600; }
.done .ticket i { font-style: normal; color: var(--dai); }
.done .cast-btn { width: 100%; justify-content: center; padding: 11px 20px; }
.done .cast-btn::before { display: none; }
.done .links { display: flex; align-items: center; gap: 10px; color: var(--line); }

/* ---------- 问笺详览 ---------- */
.detail { max-width: 720px; margin: 0 auto; padding: 12px 16px 170px; }
.d-marks { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.d-marks .when { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.d-card { position: relative; padding: 22px 20px 18px; margin-bottom: 20px; border-radius: 4px; background: var(--s-low); box-shadow: var(--shadow-1); overflow: hidden; }
.d-card::after { content: ""; position: absolute; top: -18px; right: -18px; width: 36px; height: 36px; background: var(--s-high); transform: rotate(45deg); opacity: .7; } /* 书角 */
.d-asker { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid var(--s-highest); }
.d-asker span:first-child { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .1em; font-weight: 500; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 2px; background: var(--s-high); color: var(--ink-2); font-size: 11px; letter-spacing: 0; }
.d-question { position: relative; padding-left: 16px; margin-bottom: 20px; font-size: 21px; line-height: 36px; letter-spacing: .04em; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.d-question::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: rgba(85, 0, 1, .3); }
.d-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.d-actions .like { border-radius: 3px; padding: 6px 12px; }
.d-actions .btn { min-height: 32px; border-radius: 3px; font-size: 12px; letter-spacing: .12em; }
.slate { position: relative; padding: 20px 20px 18px 24px; margin-bottom: 20px; border-radius: 4px; background: var(--dai-soft); box-shadow: var(--shadow-1); overflow: hidden; }
.slate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--dai); }
.slate header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.slate header b { display: block; font-size: 17px; line-height: 26px; letter-spacing: .06em; font-weight: 600; color: var(--dai-ink); }
.slate header small { display: block; color: var(--dai); font-size: 11px; line-height: 16px; letter-spacing: .15em; }
.slate .body { color: var(--dai-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.slate .body.rich { white-space: normal; }
.slate footer { margin-top: 14px; padding-top: 8px; border-top: 1px solid rgba(71, 98, 107, .2); color: var(--dai); font-size: 11px; letter-spacing: .12em; }
.slate.ai { background: var(--s); }
.slate.ai::before { background: var(--zhu); opacity: .75; }
.slate.ai header b, .slate.ai .body { color: var(--ink); }
.slate.ai header small, .slate.ai footer { color: var(--ink-2); border-color: var(--hair); }
.d-comments > header { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--s-highest); }
.d-comments > header b { font-size: 18px; line-height: 28px; letter-spacing: .06em; font-weight: 600; }
.memos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.memo { padding: 14px 16px; border-radius: 4px; background: var(--s-low); }
.memo.asker { background: var(--s); }
.memo .who { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12.5px; letter-spacing: .1em; font-weight: 500; }
.memo .who time { margin-left: auto; color: var(--ink-2); font-size: 11px; font-weight: 400; }
.memo p { white-space: pre-wrap; overflow-wrap: anywhere; }
.memo .ops { display: flex; justify-content: flex-end; gap: 6px; margin-top: 4px; }
.memo .up { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 0; background: none; color: var(--ink-2); font-size: 12px; }
.memo .up[aria-pressed="true"] { color: var(--zhu-ink); }
.d-input {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(254, 249, 237, .97); box-shadow: 0 -4px 16px rgba(0, 0, 0, .05);
}
.d-input > div { display: flex; align-items: center; gap: 8px; max-width: 688px; margin: 0 auto; }
.d-input .tiny { justify-content: space-between; margin-bottom: 4px; }
.d-input input { flex: 1; min-width: 0; padding: 8px 12px; border: 0; border-radius: 3px; background: var(--s); font-size: 14px; outline: none; }
.d-input input:focus { background: var(--white); box-shadow: 0 0 0 1px var(--primary); }

/* ---------- AI 助教悬浮窗 ---------- */
.ai-fab {
  position: fixed; right: 16px; bottom: calc(var(--ai-bottom) + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px 0 14px; border: 0; border-radius: 12px;
  background: var(--dai); color: var(--white); font-size: 14px; letter-spacing: .12em; font-weight: 500;
  box-shadow: 0 6px 20px rgba(29, 28, 21, .28); transition: transform .15s, background .15s;
}
.ai-fab .ic { color: var(--zhu-soft); width: 1.35em; height: 1.35em; }
.ai-fab:hover { background: #3b545c; }
.ai-fab:active { transform: scale(.95); }
.ai-fab.on { background: var(--primary); }
.ai-fab.bare { padding: 0 14px; } /* 助教名称留空：按钮仅图标 */
.ai-panel {
  position: fixed; right: 16px; bottom: calc(var(--ai-bottom) + 56px + env(safe-area-inset-bottom)); z-index: 61;
  display: flex; flex-direction: column; width: min(400px, calc(100vw - 24px)); height: min(560px, calc(100vh - var(--ai-bottom) - 80px));
  border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-3), 0 0 0 1px rgba(199, 199, 191, .5);
  font-size: 14px; line-height: 24px; color: var(--ink); animation: fadeUp .25s ease-out;
}
.ai-panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--dai); }
.ai-head { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 16px; border-bottom: 1px solid var(--hair); background: var(--s-low); }
.ai-head .seal { width: 24px; height: 24px; padding: 0; font-size: 13px; letter-spacing: 0; background: var(--dai); }
.ai-title { flex: 1; min-width: 0; }
.ai-title b { display: block; font-size: 15px; line-height: 20px; letter-spacing: .12em; font-weight: 600; }
.ai-title small { display: block; font-size: 10.5px; line-height: 14px; letter-spacing: .15em; color: var(--ink-2); }
.ai-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 6px 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-hello { display: flex; flex-wrap: wrap; gap: 6px; color: var(--ink-2); }
.ai-hello p { width: 100%; margin-bottom: 6px; }
.ai-hello .chip { white-space: normal; text-align: left; }
.ai-msg { max-width: 92%; padding: 8px 12px; border-radius: 4px; overflow-wrap: anywhere; }
.ai-msg.user { align-self: flex-end; background: var(--primary); color: var(--surface); white-space: pre-wrap; }
.ai-msg.bot { align-self: flex-start; background: var(--dai-soft); color: var(--dai-ink); }
.ai-msg.bot p { margin: 0 0 .5em; } .ai-msg.bot p:last-child { margin: 0; }
.ai-msg.bot ul, .ai-msg.bot ol { margin: 0 0 .5em; padding-left: 1.3em; }
.ai-msg.pending { color: var(--ink-3); background: var(--s); font-style: italic; }
.ai-msg.err { background: #fbe9e7; color: var(--error); }
.ai-ctx { display: flex; align-items: center; gap: 6px; margin: 0 14px 0 16px; padding: 4px 8px; border-radius: 3px; background: var(--s); color: var(--ink-2); font-size: 11.5px; line-height: 18px; cursor: pointer; }
.ai-ctx input { accent-color: var(--dai); flex: none; }
.ai-ctx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px 4px 16px; }
.ai-form textarea { flex: 1; min-width: 0; max-height: 120px; padding: 8px 10px; border: 1px solid var(--hair); border-radius: 4px; background: var(--white); outline: none; resize: none; font-size: 14px; line-height: 22px; }
.ai-form textarea:focus { border-color: var(--dai); }
.ai-send { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 4px; background: var(--dai); color: var(--white); }
.ai-send.stop { background: var(--zhu); }
.ai-note { margin: 0; padding: 0 12px 8px 16px; color: var(--ink-3); font-size: 10.5px; line-height: 16px; letter-spacing: .05em; }
body.wall { --ai-bottom: 88px; }
body.wall.in-detail { --ai-bottom: 96px; }
@media (max-width: 480px) {
  .ai-fab { right: 12px; }
  .ai-panel { right: 8px; left: 8px; width: auto; }
}

/* ---------- 落地页 / 登录 ---------- */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.center-page h1 { font-size: 36px; line-height: 56px; letter-spacing: .3em; text-indent: .3em; font-weight: 600; margin: 14px 0 8px; }
.center-page p { color: var(--ink-2); margin: 4px 0; }
.login { width: min(100%, 380px); padding: 28px 24px; border-radius: 6px; background: var(--s-low); box-shadow: var(--shadow-2); text-align: left; }
.login h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 20px; letter-spacing: .15em; font-weight: 500; }

/* ---------- 管理后台 ---------- */
.admin-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  min-height: 64px; padding: 8px 24px; background: rgba(254, 249, 237, .96); box-shadow: 0 1px 8px rgba(0, 0, 0, .05);
}
.admin-top .brand { display: flex; align-items: center; gap: 12px; }
.admin-top .brand b { display: flex; align-items: baseline; gap: 6px; font-size: 18px; line-height: 26px; letter-spacing: .1em; font-weight: 500; }
.admin-top .brand b small { color: var(--dai); font-size: 11px; letter-spacing: .15em; }
.admin-top .brand span span { display: block; color: var(--ink-2); font-size: 12px; line-height: 16px; }
.admin-top nav { margin: 0 auto; }
.admin { max-width: 1180px; margin: 0 auto; padding: 24px 24px 100px; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 20px; }
.page-head h1 { font-size: 28px; line-height: 44px; letter-spacing: .08em; font-weight: 500; }
.page-head h1 small { margin-left: 10px; color: var(--ink-2); font-size: 12px; letter-spacing: .12em; font-weight: 500; }
.page-head .side { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.panel { position: relative; padding: 22px 24px; margin-bottom: 24px; border-radius: 4px; background: var(--s-low); box-shadow: var(--shadow-1); overflow: hidden; }
.panel > .watermark { position: absolute; right: -10px; bottom: -34px; font-size: 130px; line-height: 1; font-weight: 600; color: var(--ink); opacity: .035; pointer-events: none; user-select: none; }
.panel-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--hair); }
.panel-head h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; line-height: 30px; letter-spacing: .06em; font-weight: 500; }
.tag-normal { padding: 2px 7px; border-radius: 2px; background: var(--zhu-soft); color: var(--zhu); font-size: 10.5px; line-height: 14px; letter-spacing: .12em; font-weight: 400; white-space: nowrap; } /* 依设计稿 6「正议筹划」标记 */
.panel-head p { color: var(--ink-2); font-size: 13px; line-height: 20px; }
.panel-head .side { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12px; letter-spacing: .1em; }
.form-grid { display: grid; gap: 0 20px; grid-template-columns: 1fr; position: relative; }
.form-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--hair); position: relative; }
.form-foot .group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.slug-input { display: flex; align-items: stretch; border: 1px solid var(--hair); border-radius: 4px; background: var(--white); overflow: hidden; }
.slug-input:focus-within { border-color: var(--primary); }
.slug-input i { display: flex; align-items: center; padding: 0 8px; background: var(--s); color: var(--ink-2); font: 12px var(--mono); font-style: normal; }
.field .slug-input input { border: 0; padding-left: 8px; }
.filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters .side { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.search { position: relative; display: block; }
.search .ic { position: absolute; left: 10px; top: 9px; color: var(--ink-3); }
.search input { width: 220px; max-width: 60vw; padding: 5px 10px 5px 32px; border: 0; border-radius: 4px; background: var(--s-low); font-size: 13px; outline: none; }
.search input:focus { box-shadow: 0 0 0 1px var(--primary); }
.select { padding: 5px 8px; border: 0; border-radius: 4px; background: var(--s-low); color: var(--ink-2); font-size: 12.5px; letter-spacing: .06em; outline: none; }

.lec { position: relative; display: grid; grid-template-columns: 1fr; gap: 16px; padding: 18px 20px 16px 24px; margin-bottom: 16px; border-radius: 4px; background: var(--white); box-shadow: var(--shadow-1); transition: box-shadow .25s; }
.lec:hover { box-shadow: var(--shadow-2); } /* 依设计稿 6：卡片悬浮加深深浅 */
.lec.flash { animation: flash 1.6s ease-out; } /* 刚新建的讲座：滚到眼前并闪一下 */
/* 已有讲座时「新开一池」排在讲座列表之后（admin.js 的 placeCreateForm），与上方列表拉开间距 */
#noMatch + #createForm { margin-top: 40px; }
.lec::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 2px 2px 0; background: var(--line); }
.lec.open::before { background: var(--zhu); }
.lec.archived { background: var(--s-low); }
/* 码瓦片（依设计稿 6）：悬浮轻放大 + 文案换色，封池/归档态半透明、悬浮渐复原 */
.lec .qr-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 10px; border: 0; border-radius: 4px; background: var(--s-low); color: var(--ink-2); font-size: 11px; letter-spacing: .12em; }
.lec .qr-tile > span { display: inline-flex; align-items: center; gap: 4px; }
.lec .qr-tile:hover { color: var(--primary); background: var(--s); }
.lec .qr-tile .ic { color: inherit; }
.lec .qr { width: 104px; height: 104px; padding: 4px; border-radius: 4px; background: var(--white); box-shadow: 0 0 0 1px var(--hair); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.lec .qr-tile:hover .qr { transform: scale(1.05); }
.lec.closed .qr-tile, .lec.archived .qr-tile { opacity: .8; transition: opacity .25s; }
.lec.closed .qr-tile:hover, .lec.archived .qr-tile:hover { opacity: 1; }
.lec.closed .qr, .lec.archived .qr { opacity: .55; filter: grayscale(1); }
.lec .main { min-width: 0; display: grid; gap: 10px; }
.lec .title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.lec h3 { font-size: 18px; line-height: 28px; letter-spacing: .03em; font-weight: 500; overflow-wrap: anywhere; transition: color .2s; }
.lec:hover h3 { color: var(--dai); }
.lec .when { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 11.5px; letter-spacing: .08em; }
.lec .sub { color: var(--ink-2); overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 2px; font-size: 11px; line-height: 18px; letter-spacing: .12em; white-space: nowrap; }
.badge.open { background: rgba(255, 218, 213, .7); color: var(--zhu); }
.badge.closed { background: var(--s-highest); color: var(--ink-2); }
.badge.archived { background: var(--s-high); color: var(--ink-3); }
.badge.hid { background: #fbe9e7; color: var(--error); }
.link-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; padding: 6px 10px; border-radius: 4px; background: var(--s-low); font-size: 13px; }
.link-bar .link { min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; }
.link-bar b { font-size: 12px; letter-spacing: .12em; font-weight: 500; margin-right: 6px; }
.link-bar .ops { display: flex; gap: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.actions .spacer { flex: 1; }
.edit-form { padding-top: 14px; border-top: 1px dashed var(--hair); }
.colophon-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--hair); color: var(--ink-3); font-size: 11.5px; letter-spacing: .12em; }
/* 新开一池的研学设置（依设计稿 6：底色带 + 竖线分隔的开关区） */
.pool-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 12px 16px; margin-bottom: 4px; border-radius: 4px; background: color-mix(in srgb, var(--s) 65%, transparent); }
.pool-toggles .check { margin: 0; }
.pool-toggles .check + .check { position: relative; padding-left: 28px; }
.pool-toggles .check + .check::before { content: ""; position: absolute; left: 10px; top: 4px; bottom: 4px; width: 1px; background: var(--hair); }
@media (max-width: 640px) { .pool-toggles .check + .check { padding-left: 0; } .pool-toggles .check + .check::before { display: none; } }

.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 4px 0; border: 0; background: none; color: var(--dai); font-size: 13px; letter-spacing: .08em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 12px 16px; border-radius: 4px; background: var(--s-low); }
.stat span { display: block; color: var(--ink-2); font-size: 11.5px; letter-spacing: .12em; }
.stat b { font-size: 26px; line-height: 36px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat b small { margin-left: 4px; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.stat.zhu b { color: var(--zhu); } .stat.dai b { color: var(--dai); }
.ai-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 12px 16px; margin-bottom: 20px; border-radius: 4px; background: var(--s); }
.ai-bar p { flex: 1; min-width: 200px; color: var(--ink-2); font-size: 13px; line-height: 20px; }
.ai-bar p b { color: var(--ink); font-weight: 600; letter-spacing: .08em; }
.progress { width: 100%; height: 3px; border-radius: 2px; background: var(--s-highest); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--zhu); transition: width .3s; }
#qList .note { background: var(--white); padding: 16px 20px 14px 24px; }
#qList .note .head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; color: var(--ink-2); font-size: 12px; letter-spacing: .08em; }
#qList .note .head .likes { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--zhu-ink); font-weight: 600; }
#qList .note .actions { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--s-high); }
/* 问笺审录页动效（依设计稿 7） */
.pulse-dot { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--dai); vertical-align: 1px; animation: pulse 1.8s ease-in-out infinite; }
.spark { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -8px 0 16px; padding: 10px 16px; border-radius: 4px; background: var(--s-low); color: var(--dai); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hair) 60%, transparent); }
.spark svg { flex: none; }
.spark-meta b { display: block; font-size: 11px; letter-spacing: .15em; color: var(--ink-2); font-weight: 500; }
.spark-meta small { display: block; font-size: 10.5px; color: var(--ink-3); }
.pager-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); }
/* 精选集 */
.seal.star { background: var(--dai); color: var(--white); }
.note.starred::before { background: var(--dai); }
.stars-bar { margin-top: 14px; padding: 10px 14px; border-radius: 4px; background: var(--dai-soft); color: var(--dai); font-size: 12.5px; letter-spacing: .05em; }
/* 全站版权页脚（投屏页为独立一行插入页脚横条之上） */
.copyright-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px 18px; margin-top: 34px; border-top: 1px solid var(--hair); color: var(--ink-3); font-size: 11.5px; line-height: 18px; letter-spacing: .08em; text-align: center; }
.copyright-bar p { margin: 0; }
body.wall .copyright-bar { margin-top: 60px; }
.copyright-bar.stage { border-top: 0; margin: 0; padding: 4px 1vw 5px; color: rgba(222, 218, 206, .55); font-size: clamp(9px, .58vw, 11.5px); line-height: 1.35; letter-spacing: .04em; gap: 0; }
/* 对话记录复盘 */
.chat-log { display: grid; gap: 12px; max-height: 60vh; overflow-y: auto; text-align: left; }
.chat-session { padding: 12px 14px; border-radius: 4px; background: var(--s-low); }
.chat-meta { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed var(--hair); }
.chat-body { display: grid; gap: 10px; }
.chat-pair { display: grid; gap: 6px; padding: 8px; border-radius: 4px; background: color-mix(in srgb, var(--s) 55%, transparent); }
.chat-pair.dim .chat-turn { opacity: .5; }
.pair-ops { display: flex; gap: 6px; justify-content: flex-end; }
.chat-turn { padding: 8px 12px; border-radius: 4px; background: var(--white); }
.chat-turn.u { background: var(--primary); color: var(--surface); }
.chat-turn.u b { color: var(--zhu-dim); }
.chat-turn b { display: block; font-size: 11px; letter-spacing: .15em; margin-bottom: 4px; color: var(--dai); }
.chat-turn p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#qList .note[draggable="true"] { cursor: grab; }
#qList .note[draggable="true"] .drag-anchor { display: inline-flex; }
#qList .note.dragging { opacity: .45; box-shadow: 0 0 0 2px var(--dai); }
.pager-bar .group { display: flex; align-items: center; gap: 6px; }
.pager-nums { display: inline-flex; gap: 4px; }
#qList .note { transition: box-shadow .25s; }
#qList .note:hover { box-shadow: var(--shadow-2); }
#qList .note .content.struck { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 40%, transparent); color: var(--ink-3); }
#qList .note.hidden-q .content { color: var(--ink-3); }
.reply-box { margin-top: 12px; padding: 12px 14px; border-radius: 4px; background: var(--s-low); }
.reply-box.open { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dai) 45%, transparent), 0 2px 10px rgba(29, 28, 21, .08); border-left: 3px solid var(--dai); }
.reply-input { position: relative; }
.reply-input textarea { display: block; width: 100%; min-height: 96px; padding: 9px 12px; border: 1px solid var(--hair); border-radius: 4px; background: var(--white); outline: none; resize: vertical; }
.reply-counter { position: absolute; right: 10px; bottom: 8px; font-style: normal; font-size: 10.5px; letter-spacing: .06em; color: var(--ink-3); pointer-events: none; background: color-mix(in srgb, var(--white) 80%, transparent); padding: 0 4px; border-radius: 2px; }
.reply-box > b { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--dai); font-size: 12px; letter-spacing: .12em; }
.reply-input textarea:focus { border-color: var(--dai); }
.reply-box .actions { margin-top: 8px; padding: 0 !important; border: 0 !important; }
.memo-admin { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.memo-admin li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 10px; border-radius: 3px; background: var(--s-low); font-size: 13.5px; }
.memo-admin li p { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(17, 17, 16, .45); overflow-y: auto; }
.modal > div { position: relative; width: min(100%, 760px); padding: 24px 26px; border-radius: 6px; background: var(--surface); box-shadow: var(--shadow-3); animation: fadeUp .25s ease-out; }
.modal > div.narrow { width: min(100%, 380px); text-align: center; }
.modal .x { position: absolute; top: 12px; right: 12px; }
.modal h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; line-height: 30px; letter-spacing: .08em; font-weight: 500; }
.modal .lead { margin: 2px 0 16px; color: var(--ink-2); font-size: 13px; }
.modal h4 { display: flex; align-items: center; gap: 6px; margin: 18px 0 8px; font-size: 13px; letter-spacing: .12em; font-weight: 600; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.mode { display: block; padding: 14px 16px; border: 1.5px solid var(--hair); border-radius: 4px; background: var(--white); cursor: pointer; }
.mode:has(input:checked) { border-color: var(--primary); box-shadow: var(--shadow-1); }
.mode input { position: absolute; opacity: 0; }
.mode b { display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: .08em; font-weight: 600; }
.mode p { margin-top: 4px; color: var(--ink-2); font-size: 12.5px; line-height: 20px; }
.mode small { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--dai); font-size: 11.5px; letter-spacing: .06em; }
.deck { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.deck li { display: flex; align-items: baseline; gap: 10px; padding: 6px 10px; border-radius: 3px; background: var(--s-low); font-size: 13px; }
.deck li b { flex: none; font-size: 11px; letter-spacing: .12em; color: var(--zhu); }
.deck li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck li i { flex: none; font-style: normal; color: var(--ink-3); font-size: 11.5px; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: 12.5px; }
kbd { display: inline-block; min-width: 22px; padding: 0 6px; margin: 0 2px; border-radius: 3px; background: var(--primary); color: var(--surface); font: 11px/20px var(--mono); text-align: center; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--hair); }
.qr-big { width: 240px; height: 240px; margin: 14px auto; padding: 10px; border-radius: 4px; background: var(--white); box-shadow: 0 0 0 1px var(--hair); display: block; }
/* 现场码工坊：码型分段选择与设置区（无序号布局，分隔线只由下载行承担） */
.qr-style-tabs { display: flex; justify-content: center; margin: 4px 0 10px; }
.qr-no-setup { text-align: center; color: var(--ink-3); padding: 6px 0 2px; }
.qr-dl-row { padding-top: 14px; border-top: 1px solid var(--hair); align-items: center; }
.qr-dl-row .tiny { color: var(--ink-3); }
.qr-block { padding: 12px 14px; margin-bottom: 14px; border: 1px dashed var(--hair); border-radius: 4px; background: var(--s-low); }
.qr-block h4 { margin-top: 0; }
/* 现场码工坊：中心图裁剪视口（边长由 JS 按几何常数 V 设定，与合成端一比一） */
.crop-viewport { position: relative; margin: 0 auto; border-radius: 8px; overflow: hidden; touch-action: none; cursor: grab; background: #111; }
.crop-viewport:active { cursor: grabbing; }
.crop-viewport img { position: absolute; left: 50%; top: 50%; max-width: none; user-select: none; pointer-events: none; }
.crop-viewport::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle closest-side, transparent calc(100% - 1px), rgb(255 255 255 / .9) calc(100% - 1px), rgb(255 255 255 / .9) 100%, rgb(0 0 0 / .55) 100%); }
.test-out { margin-top: 12px; padding: 10px 14px; border-radius: 4px; background: var(--dai-soft); color: var(--dai-ink); font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.test-out.bad { background: #fbe9e7; color: var(--error); }
.two-col { display: grid; gap: 0 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .form-grid { grid-template-columns: 5fr 4fr 3fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .lec { grid-template-columns: 112px 1fr; }
}

/* ---------- 投屏：堂内论辩帖集 ---------- */
body.screen { height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(300px, 25vw) 1fr; font-size: clamp(14px, 1.05vw, 24px); line-height: 1.7; --ai-bottom: 28px; }
/* 版权条：固定贴视口最底、两行、贯通左右栏；侧栏与主板底部预留等高空间避让 */
body.screen > .copyright-bar.stage, body.spot > .copyright-bar.stage { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(28, 28, 26, .92); color: rgba(237, 233, 224, .9); padding: 6px 1vw 7px; font-size: clamp(9px, .55vw, 11px); line-height: 1.4; gap: 1px; }
.screen .side { position: relative; display: flex; flex-direction: column; padding: 4vh 2vw 52px 2.6vw; background: rgba(248, 243, 231, .5); overflow: hidden; }
.screen .side::after { content: ""; position: absolute; top: 16px; bottom: 16px; right: 0; width: 1px; background: var(--hair); }
.screen .brand { display: flex; align-items: center; gap: .8em; margin-bottom: 1.4vh; }
.screen .brand .stamp { width: 2.5em; height: 2.5em; font-size: 1.15em; }
.screen .brand b { display: flex; align-items: center; gap: .5em; font-size: 1.4em; letter-spacing: .2em; font-weight: 500; line-height: 1.3; }
.screen .brand small { color: var(--ink-3); font-size: .62em; letter-spacing: .2em; text-transform: uppercase; }
.screen .brand .seal { font-size: .6em; }
.screen .side h1 { font-size: 1.35em; line-height: 1.28; letter-spacing: .05em; font-weight: 700; overflow-wrap: anywhere; }
.screen .side h1::before { content: ""; display: block; width: 24px; height: 2px; margin-bottom: .35em; background: var(--zhu); }
.screen .side .motto { margin-top: .4em; color: var(--dai); font-size: .72em; letter-spacing: .25em; font-weight: 500; }
.screen .side .sub { margin-top: .6em; padding: .45em .8em; border-radius: 4px; background: rgba(248, 243, 231, .8); color: var(--ink-2); font-size: .78em; line-height: 1.5; overflow-wrap: anywhere; }
.screen .side .sub:empty { display: none; }
.screen .qr-card { position: relative; margin: auto 0; padding: 1.2em 1em 1em; border-radius: 6px; background: var(--white); box-shadow: var(--shadow-2); text-align: center; }
.corners::before, .corners::after, .corners > i::before, .corners > i::after { content: ""; position: absolute; width: 10px; height: 10px; border: 2px solid var(--zhu); }
.corners::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.corners::after { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.corners > i::before { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.corners > i::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.screen .qr-card img { display: block; width: min(78%, 28vh); aspect-ratio: 1; margin: 0 auto; }
.screen .cta { margin-top: .5em; font-size: 1.15em; letter-spacing: .12em; font-weight: 600; }
.screen .qr-card .tiny { font-size: .62em; }
.screen .url { display: inline-flex; align-items: center; gap: 6px; margin-top: .6em; padding: .15em .7em; border-radius: 3px; background: var(--s-low); font: .72em var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.screen .zoom { margin-top: .7em; font-size: .7em; }
.screen .live { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 1.4vh 0; font-size: .75em; letter-spacing: .12em; color: var(--ink-2); }
/* 题源切换（精选集 / 全部问题）：大屏侧栏（焦点页复用 .tabs 顶部切换） */
.src-switch { display: flex; gap: 4px; padding: 4px; border-radius: 8px; background: rgba(237, 232, 220, .8); }
.src-switch button { flex: 1; padding: .35em .6em; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font-size: .66em; letter-spacing: .14em; cursor: pointer; }
.src-switch button[aria-pressed="true"] { background: var(--primary); color: var(--surface); }
.spot-top .tabs[aria-label="题源"] button[aria-pressed="true"] { background: var(--dai); color: var(--white); }
/* 二维码卡：新问实时入池与题源标识（依设计稿 10） */
.arrival-strip { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 1vh 0 0; font-size: .62em; letter-spacing: .14em; }
.arrival-strip .tag-arrivals { display: inline-flex; align-items: center; gap: 6px; padding: .3em .8em; border-radius: 99px; background: rgba(255, 218, 213, .55); color: var(--zhu); font-weight: 600; }
.arrival-strip .tag-arrivals .dot { width: .55em; height: .55em; }
.arrival-strip .tag-stars { display: inline-flex; align-items: center; gap: 5px; padding: .3em .8em; border-radius: 99px; background: var(--dai-soft); color: var(--dai); font-weight: 600; }
.qr-drawer .arrival-strip.big { font-size: 13px; margin: 10px 0 0; }
.qr-drawer .arrival-strip.big .tag-arrivals { padding: 6px 14px; }
.qr-drawer .arrival-strip.big .tag-stars { padding: 6px 14px; }
/* 讲席焦点页扫码浮层的实时计数徽标（浅底语境） */
.qr-pop .arrival-strip.qr { justify-content: center; margin: 12px 0 8px; font-size: 12px; }
.qr-pop .arrival-strip.qr .tag-arrivals { padding: 5px 14px; border-radius: 99px; background: rgba(255, 218, 213, .6); color: var(--zhu); letter-spacing: .12em; font-weight: 600; }
.screen .live > span { display: inline-flex; align-items: center; gap: 8px; }
.screen .live strong { margin: 0 .2em; font-size: 1.5em; color: var(--zhu-ink); font-weight: 600; }
.screen .side .hills { display: block; width: calc(100% + 4.6vw); height: 10vh; margin: 0 -2vw 0 -2.6vw; flex: none; }
.screen .board { display: flex; flex-direction: column; min-width: 0; height: 100%; padding: 3.2vh 2.6vw 52px; }
.screen .board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 1.6vh; }
.screen .board-head h2 { display: inline-flex; align-items: center; gap: .5em; font-size: 1.15em; letter-spacing: .2em; font-weight: 600; }
.screen .board-head h2::before { content: ""; width: 5px; height: .9em; border-radius: 2px; background: var(--dai); }
.screen .board-head .side-ops { display: flex; align-items: center; gap: 10px; }
.screen .board-head .tiny { font-size: .65em; }
.screen .scroll { flex: 1; min-height: 0; overflow: hidden; }
.screen .notes { display: block; column-count: 2; column-gap: 1.6vw; }
.screen .note { break-inside: avoid; margin: 0 0 1.6vw; padding: 1.3em 1.4em 1.1em 1.7em; background: var(--white); box-shadow: 0 2px 10px rgba(38, 38, 36, .05); }
.screen .note .marks { font-size: .7em; }
.screen .note .marks .seq { font-size: 1em; color: var(--ink-3); }
.screen .seal { font-size: 1em; padding: .15em .5em; line-height: 1.4; }
.screen .note .content { font-size: 1.2em; line-height: 1.65; font-weight: 500; }
.screen .reply, .screen .ai-reply { font-size: .88em; line-height: 1.7; padding: .8em 1em .8em 1.1em; }
.screen .reply b, .screen .ai-reply > b { font-size: .85em; }
.screen .ai-reply.clamp .rich { -webkit-line-clamp: 6; }
.screen .note .foot { margin-top: .9em; padding-top: .7em; border-top: 1px solid var(--s-highest); }
.screen .note .meta { font-size: .8em; line-height: 1.6; }
.screen .likes { flex: none; display: inline-flex; align-items: center; gap: .3em; color: var(--zhu-ink); font-size: 1.05em; font-weight: 600; }
.screen .likes .ic { fill: currentColor; }
.screen .likes .ic svg { fill: currentColor; }
.screen .note.fresh { animation: surface 1.2s ease-out; }
@keyframes surface { 0% { opacity: 0; transform: translateY(18px) scale(.97); box-shadow: 0 0 0 0 rgba(71, 98, 107, .5); } 60% { box-shadow: 0 0 0 22px rgba(71, 98, 107, 0); } 100% { opacity: 1; transform: none; } }
.screen .empty { font-size: 1.5em; padding-top: 28vh; }
.screen .ticker { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 1.2vh 12vw 1.2vh 0; border-top: 1px solid var(--hair); color: var(--ink-3); font-size: .62em; letter-spacing: .15em; }
.screen .ticker span { display: inline-flex; align-items: center; gap: 10px; }
@media (min-width: 1500px) { .screen .notes { column-count: 3; } }
/* 放大扫码抽屉 */
.qr-drawer { position: fixed; inset: 0; z-index: 50; background: rgba(17, 17, 16, .35); opacity: 0; pointer-events: none; transition: opacity .25s; }
.qr-drawer.open { opacity: 1; pointer-events: auto; }
.qr-drawer aside {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 92vw); display: flex; flex-direction: column; padding: 4vh 40px 3vh 44px;
  background: var(--surface); box-shadow: var(--shadow-3); transform: translateX(100%); transition: transform .3s ease;
}
.qr-drawer.open aside { transform: none; }
.qr-drawer aside::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--zhu); }
.qr-drawer header { display: flex; align-items: flex-start; gap: 12px; }
.qr-drawer header .stamp { width: 44px; height: 44px; font-size: 20px; }
.qr-drawer header b { display: block; font-size: 22px; line-height: 32px; letter-spacing: .08em; font-weight: 600; }
.qr-drawer header .icon-btn { margin-left: auto; font-family: var(--mono); letter-spacing: 0; }
.qr-drawer .frame { position: relative; margin: auto; padding: 22px; border-radius: 6px; background: var(--white); box-shadow: var(--shadow-2); text-align: center; }
.qr-drawer .frame img { display: block; width: min(360px, 56vh); aspect-ratio: 1; }
.qr-drawer .frame b { display: block; margin-top: 10px; font-size: 18px; letter-spacing: .12em; }
.qr-drawer .frame small { color: var(--dai); font-size: 12px; letter-spacing: .15em; }
.qr-drawer .url { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 3vh; padding: 6px 14px; border-radius: 4px; background: var(--s-low); font: 15px var(--mono); overflow-wrap: anywhere; }
.qr-drawer footer { padding-top: 12px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--ink-2); font-size: 12.5px; letter-spacing: .08em; }
.qr-drawer footer strong { color: var(--zhu-ink); }

/* ---------- 讲席焦点：聚光释疑 ---------- */
body.spot {
  height: 100vh; overflow: hidden; display: flex; flex-direction: column; color: var(--surface);
  background: radial-gradient(ellipse at center, rgba(70, 71, 66, .55) 0%, rgba(17, 17, 16, .96) 72%), #1c1c1a;
  font-size: clamp(14px, 1.05vw, 22px); line-height: 1.7; --ai-bottom: 64px;
}
.spot .hills { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 22vh; opacity: .16; pointer-events: none; }
.spot-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 1.6vh 3vw; }
.spot-top .brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.spot-top .brand b { display: flex; align-items: center; gap: 8px; font-size: 1.05em; letter-spacing: .15em; font-weight: 500; }
.spot-top .brand small { display: block; max-width: 42vw; color: #c8c6c3; font-size: .68em; letter-spacing: .1em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-top .ops { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: .68em; letter-spacing: .1em; color: #dedace; }
.spot-top .tabs { background: rgba(17, 17, 16, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.spot-top .tabs button { color: #c8c6c3; font-size: 1em; min-height: 2.4em; }
.spot-top .tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.spot .pill { display: inline-flex; align-items: center; gap: 6px; padding: .2em .8em; border: 0; border-radius: 12px; background: var(--zhu); color: var(--white); font-size: 1em; letter-spacing: .1em; }
.spot .status { display: inline-flex; align-items: center; gap: 6px; }
.spot .status .dot { background: #8fd3a8; }
.spot .hint { display: inline-flex; align-items: center; gap: 2px; padding: .2em .8em; border-radius: 4px; background: rgba(237, 232, 220, .12); }
.spot .hint kbd { background: #111110; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.spot .hint button { border: 0; background: none; color: inherit; padding: 0; font-size: 1em; }
.stage { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 3vw; }
.stage-card {
  position: relative; display: flex; gap: 2.2vw; width: 100%; max-width: 1560px; height: 100%; max-height: 82vh; padding: 3.4vh 2.6vw 3vh 3.2vw;
  border-radius: 6px; background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden;
}
.stage-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--zhu); }
.stage-card.turning .parchment, .stage-card.turning .slate-side { animation: inkTurn .45s ease-out; }
@keyframes inkTurn { 0% { opacity: 0; filter: blur(6px); transform: translateY(8px); } 100% { opacity: 1; filter: none; transform: none; } }
.parchment { flex: 62; min-width: 0; display: flex; flex-direction: column; }
.slate-side { position: relative; flex: 38; min-width: 0; display: flex; flex-direction: column; padding: 2.4vh 1.6vw 1.8vh; border-radius: 4px; background: var(--s-low); overflow: hidden; }
.slate-side::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--dai); }
.stage-card.pure .slate-side { display: none; }
.stage-card.pure .parchment { flex: 1; padding: 0 4vw; }
.stage-card.pure .q-title { font-size: 2.7em; }
.prog { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding-bottom: 1.2vh; margin-bottom: 1.6vh; border-bottom: 1px solid var(--s-highest); font-size: .68em; letter-spacing: .12em; }
.prog > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.prog .segs { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 4px 6px; border-radius: 4px; background: var(--s-low); }
.prog .segs button { display: inline-flex; align-items: center; gap: 4px; padding: 3px 2px; border: 0; background: none; color: var(--ink-3); font: 10px var(--mono); }
.prog .segs button i { display: block; width: 34px; height: 5px; border-radius: 3px; background: rgba(199, 199, 191, .45); }
.prog .segs button.done i { background: var(--ink-3); }
.prog .segs button.on i { background: var(--primary); box-shadow: inset -5px 0 0 var(--zhu); }
.prog .segs button.on { color: var(--ink); font-weight: 700; }
.prog .segs.dense button i { width: 14px; } .prog .segs.dense button span { display: none; }
.prog .right { margin-left: auto; color: var(--ink-3); font-weight: 400; }
.q-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .68em; }
.q-badges .seal { font-size: 1em; padding: .25em .7em; line-height: 1.5; }
.q-badges .when { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); letter-spacing: .08em; }
.q-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; padding: 2vh 0; }
.q-title { font-size: 2.15em; line-height: 1.5; letter-spacing: .05em; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-title.long { font-size: 1.55em; }
.q-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 1.6vh; border-top: 1px solid var(--s-highest); }
.q-foot .asker { display: flex; align-items: center; gap: 12px; font-size: .78em; }
.q-foot .asker .avatar { width: 2.6em; height: 2.6em; font-size: 1em; }
.q-foot .asker b { display: block; letter-spacing: .1em; font-weight: 500; }
.q-foot .asker small { display: block; color: var(--ink-2); font-size: .85em; }
.q-foot .res { display: inline-flex; align-items: center; gap: 8px; padding: .4em 1.1em; border-radius: 4px; background: rgba(255, 218, 213, .5); color: var(--zhu); font-size: .9em; letter-spacing: .1em; font-weight: 600; }
.q-foot .res .ic svg { fill: currentColor; }
.slate-head { display: flex; align-items: center; gap: 10px; padding-bottom: 1.2vh; border-bottom: 1px solid var(--hair); }
.slate-head .who { width: 2.6em; height: 2.6em; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--dai); color: var(--white); font-size: .9em; }
.slate-head b { display: flex; align-items: center; gap: 8px; font-size: .95em; letter-spacing: .1em; font-weight: 600; }
.slate-head b .seal { font-size: .65em; }
.slate-head small { display: block; color: var(--ink-2); font-size: .68em; letter-spacing: .08em; }
.slate-head .state { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--dai); font-size: .68em; letter-spacing: .1em; white-space: nowrap; }
.slate-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 1.4vh 2px 1vh 0; }
.verdict { margin-bottom: 1.4vh; padding: .8em 1em; border-left: 3px solid var(--dai); border-radius: 0 4px 4px 0; background: var(--dai-soft); }
.verdict > b, .ai-out > b { display: flex; align-items: center; gap: 6px; margin-bottom: .3em; color: var(--dai); font-size: .68em; letter-spacing: .15em; font-weight: 600; }
.verdict p { font-size: .9em; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-out > b { color: var(--zhu); }
.ai-out .rich { font-size: .88em; line-height: 1.75; overflow-wrap: anywhere; }
.ai-out .rich.wait { color: var(--ink-3); font-style: italic; }
.ai-out .rich.bad { color: var(--error); }
.ai-out .blank { padding: 3vh 0; color: var(--ink-3); font-size: .85em; text-align: center; letter-spacing: .1em; }
.slate-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 1.2vh; border-top: 1px solid var(--hair); }
.slate-foot .btn, .nav-btns .btn { min-height: 2.5em; font-size: .72em; }
.nav-btns { display: flex; gap: 8px; margin-left: auto; }
.stage-card.pure .parchment .nav-btns { display: flex; }
.parchment .nav-btns { display: none; }
.spot-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 1.2vh 3vw 52px; color: #a5a39d; font-size: .6em; letter-spacing: .15em; }
.spot-foot span { display: inline-flex; align-items: center; gap: 10px; }
.spot .blank-stage { margin: auto; text-align: center; color: var(--ink-3); letter-spacing: .2em; }
.qr-pop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(17, 17, 16, .6); }
.qr-pop > div { position: relative; width: min(460px, 92vw); padding: 22px 26px 18px 30px; border-radius: 6px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); overflow: hidden; font-size: 15px; line-height: 26px; }
.qr-pop > div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--zhu); }
.qr-pop header { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.qr-pop header b { display: flex; align-items: center; gap: 8px; font-size: 17px; letter-spacing: .1em; }
.qr-pop header .icon-btn { margin-left: auto; }
.qr-pop img { display: block; width: 260px; max-width: 70vw; aspect-ratio: 1; margin: 18px auto 8px; padding: 10px; border-radius: 4px; background: var(--white); box-shadow: 0 0 0 1px var(--hair); }
.qr-pop .url { display: flex; align-items: center; justify-content: center; gap: 6px; font: 14px var(--mono); overflow-wrap: anywhere; }
.qr-pop p { text-align: center; color: var(--ink-2); font-size: 12.5px; }
.qr-pop footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--hair); color: var(--ink-2); font-size: 11.5px; letter-spacing: .08em; }
@media (max-width: 900px) {
  .stage-card { flex-direction: column; overflow-y: auto; max-height: none; }
  .parchment, .slate-side { flex: none; }
  .q-title { font-size: 1.5em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 教师账号 ---------- */
.admin-top .who { display: flex; align-items: center; gap: 8px; }
.teacher-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.teacher-list > li { padding: 12px 14px; border-radius: 4px; background: var(--s-low); }
.teacher-list > li.dim { opacity: .6; }
.teacher-list .row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.teacher-list .row b { font-size: 15px; letter-spacing: .08em; font-weight: 500; }
.teacher-list .row .mono { color: var(--ink-2); font-size: 12.5px; }
.teacher-list form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.teacher-list form .input { width: min(100%, 240px); }

/* ---------- 学员评教 ---------- */
.ev-head { padding: 22px 0 10px; text-align: center; }
.ev-head h1 { font-size: 24px; line-height: 38px; letter-spacing: .06em; font-weight: 600; margin: 4px 0; }
.ev-head .sub { color: var(--ink-2); font-size: 14px; }
.ev-modes { display: flex; margin: 12px 0 6px; }
.ev-modes button { flex: 1; }
.ev-sign { margin: 14px 0; padding: 14px 16px; border-radius: 4px; background: var(--s-low); }
.ev-sign > b { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: .12em; font-weight: 600; }
.ev-sign-fields { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 10px; }
.ev-progress { position: sticky; top: 52px; z-index: 5; padding: 8px 0; background: var(--surface); font-size: 12px; letter-spacing: .1em; color: var(--ink-2); }
.ev-progress .progress { margin-top: 4px; }
.ev-q { margin: 14px 0; padding: 16px 18px; border-radius: 4px; background: var(--paper); box-shadow: var(--shadow-1); }
.ev-q h3 { margin: 6px 0 4px; font-size: 16.5px; line-height: 28px; font-weight: 600; white-space: pre-wrap; }
.ev-q .note-line { margin-bottom: 8px; color: var(--ink-2); font-size: 13px; }
.ev-q > .err:empty { display: none; }
.ev-q-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11.5px; letter-spacing: .12em; color: var(--ink-2); }
.ev-q-head .req { color: var(--zhu-ink); } .ev-q-head .opt { color: var(--ink-3); }
.ev-ctl { margin-top: 10px; }
.ev-scale { display: grid; gap: 6px; }
.ev-scale.n5 { grid-template-columns: repeat(5, 1fr); }
.ev-scale.n11 { grid-template-columns: repeat(11, 1fr); gap: 3px; }
.ev-scale button, .ev-na, .ev-opt { border: 1.5px solid var(--hair); border-radius: 4px; background: var(--white); color: var(--ink); font: inherit; cursor: pointer; }
.ev-scale button { min-height: 42px; padding: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.ev-scale.n11 button { min-height: 38px; font-size: 13px; }
.ev-scale button[aria-pressed="true"], .ev-na[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--surface); }
.ev-ends { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 6px 0; color: var(--ink-3); font-size: 12px; }
.ev-ends b { color: var(--zhu); font-weight: 500; font-size: 12.5px; }
.ev-na { margin-top: 4px; padding: 5px 12px; font-size: 12.5px; color: var(--ink-2); }
.ev-limit { margin-bottom: 6px; color: var(--dai); font-size: 12px; letter-spacing: .08em; }
.ev-opt { display: flex; align-items: flex-start; gap: 10px; width: 100%; margin-bottom: 6px; padding: 10px 12px; text-align: left; font-size: 14.5px; line-height: 22px; }
.ev-opt .box { flex: none; width: 15px; height: 15px; margin-top: 3px; border: 1.5px solid var(--ink-3); border-radius: 50%; }
.ev-opt.multi .box { border-radius: 2px; }
.ev-opt[aria-pressed="true"] { border-color: var(--primary); background: var(--s-low); }
.ev-opt[aria-pressed="true"] .box { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px var(--white); }
.ev-opt:disabled { opacity: .45; cursor: default; }
.ev-row { padding: 8px 0; border-top: 1px dashed var(--hair); }
.ev-row .name { display: block; margin-bottom: 6px; font-size: 14px; }
.ev-scale.small { grid-template-columns: repeat(5, 1fr) auto; }
.ev-scale.small button { min-height: 34px; font-size: 13.5px; }
.ev-scale.small .ev-na { margin: 0; padding: 0 8px; }
.ev-text { position: relative; }
.ev-text textarea, .ev-text input { width: 100%; padding: 9px 12px; border: 1px solid var(--hair); border-radius: 4px; background: var(--white); font: inherit; font-size: 14.5px; line-height: 24px; outline: none; resize: vertical; }
.ev-text textarea:focus, .ev-text input:focus { border-color: var(--primary); }
.ev-count { display: block; text-align: right; color: var(--ink-3); font-size: 11px; font-style: normal; }
.ev-extra { margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--dai); background: var(--dai-soft); border-radius: 0 4px 4px 0; }
.ev-extra > b { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; }
.ev-extra > b small { color: var(--ink-3); font-weight: 400; }
.ev-submit { width: 100%; min-height: 46px; margin: 10px 0 30px; font-size: 16px; letter-spacing: .2em; }
.ev-chat { display: grid; gap: 12px; padding: 12px 0 96px; }
.ev-bubble { max-width: 92%; padding: 10px 14px; border-radius: 4px; font-size: 14.5px; line-height: 24px; }
.ev-bubble.bot { justify-self: start; background: var(--paper); box-shadow: var(--shadow-1); }
.ev-bubble.me { justify-self: end; background: var(--primary); color: var(--surface); white-space: pre-wrap; }
.ev-bubble .who { display: block; margin-bottom: 2px; color: var(--zhu); font-size: 11.5px; letter-spacing: .15em; }
.ev-bubble .body > .btn { margin-top: 8px; }
.ev-chat-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 6px; padding: 10px max(12px, calc(50vw - 340px)); background: rgba(254, 249, 237, .97); box-shadow: 0 -1px 8px rgba(0, 0, 0, .06); }
.ev-chat-bar input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--hair); border-radius: 4px; background: var(--white); font: inherit; font-size: 14.5px; outline: none; }
/* 评教规则里的“自由交谈”开关及其适用提示 */
.ev-talk-rule { display: grid; gap: 6px; }
.ev-talk-rule .notice { margin: 0; font-size: 12px; line-height: 19px; }
/* 自由交谈结束后的确认卡：接在交谈记录下面（输入栏已收起，收回为它预留的底部空白） */
.ev-review { margin-top: -72px; padding-bottom: 32px; }
.ev-review > .notice { margin-bottom: 4px; }
.ev-receipt { padding: 40px 0; text-align: center; }
.ev-receipt h2 { margin: 18px 0 6px; font-size: 22px; letter-spacing: .2em; font-weight: 600; }
.ev-receipt .actions { justify-content: center; margin-top: 22px; }
.ev-seal { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px; border: 3px solid var(--zhu-ink); border-radius: 6px; color: var(--zhu-ink); font-size: 30px; line-height: 38px; font-weight: 600; transform: rotate(-4deg); opacity: .9; }
.ev-seal span { width: 38px; text-align: center; }
.ev-entry { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 10px 14px; border-radius: 4px; background: var(--dai-soft); color: var(--dai-ink); font-size: 14px; }
/* 后台 · 评教工作区 */
.ev-pubbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; }
.ev-bar-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ev-bar-info .qr { width: 64px; height: 64px; border-radius: 2px; background: var(--white); }
.ev-bar-info .mono { overflow-wrap: anywhere; }
.ev-bar-note { color: var(--ink-2); font-size: 14px; line-height: 24px; letter-spacing: .04em; }
.ev-editor { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .ev-editor { grid-template-columns: 250px minmax(0, 1fr) 330px; } }
.ev-col.panel { margin: 0; }
/* 题项目录（依设计稿 1）：标题卡 + 每题一张小卡——提手｜题号与题型在上、题干在下｜必答标记；当前题加深底色、左侧黛蓝竖条 */
.ev-cat-head { padding: 12px 14px; margin-bottom: 10px; border-radius: 4px; background: var(--white); box-shadow: var(--shadow-1); }
.ev-cat-head .title { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ev-cat-head .title .ic { color: var(--dai); }
.ev-cat-head .title b { font-size: 16px; letter-spacing: .08em; font-weight: 500; }
.ev-cat-head .tiny { letter-spacing: .04em; line-height: 18px; }
/* 列宽锁定为栏宽（minmax(0, 1fr)）：题干不换行，若任由内容定宽，长题干会把卡片撑出左栏，右端的“必答”被中间面板盖住 */
.ev-cat { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.ev-cat li { display: flex; align-items: flex-start; gap: 6px; min-width: 0; padding: 8px 10px; border-radius: 4px; background: var(--white); cursor: pointer; transition: background .15s; }
.ev-cat li:hover { background: var(--s-low); }
.ev-cat li.on { background: var(--s-high); box-shadow: inset 3px 0 0 var(--dai), var(--shadow-1); }
.ev-cat li .grip { margin-top: 3px; color: var(--line); cursor: grab; }
.ev-cat li:hover .grip { color: var(--ink-2); }
.ev-cat li.on .grip { color: var(--dai); }
.ev-cat li .main { flex: 1; min-width: 0; }
.ev-cat li .meta { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; line-height: 18px; }
.ev-cat li b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.ev-cat li.on b { color: var(--primary); font-weight: 700; }
.ev-cat li.on .seal.soft { background: var(--dai-soft); color: var(--dai-ink); }
.ev-cat li .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; line-height: 22px; }
.ev-cat li.on .txt { font-weight: 600; }
.ev-cat li .req { flex: none; margin-top: 1px; color: var(--zhu-ink); font-size: 11px; line-height: 18px; letter-spacing: .08em; }
/* “添加题目”面板（依设计稿 1）：底色块内两列小格，各题型带图标；末尾的模板按钮独占一行 */
.ev-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; padding: 12px 14px; border-radius: 4px; background: var(--s-low); }
.ev-palette p, .ev-palette > .btn:last-child { grid-column: 1 / -1; }
.ev-palette-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.ev-palette-head b { font-size: 13px; letter-spacing: .1em; font-weight: 500; }
.ev-palette > .btn { justify-content: flex-start; background: var(--white); }
.ev-palette > .btn:hover { background: var(--s-high); }
.ev-palette > .btn:last-child { justify-content: center; margin-top: 2px; background: var(--s-highest); }
.ev-palette > .btn.zhu:last-child { background: var(--zhu); }
.ev-palette > .btn:not(:last-child) .ic { color: var(--dai); }
/* 评教工作区的开关组不画竖线分隔（折行后竖线会落在行首）；带图标的开关独占一行、说明另起一行，其余开关的标题与说明并排在一行 */
.pool-toggles.plain .check + .check { padding-left: 0; }
.pool-toggles.plain .check + .check::before { display: none; }
.pool-toggles.plain .check.wide { flex-basis: 100%; }
.pool-toggles.plain .check:not(.wide) b { display: inline; }
.pool-toggles.plain .check:not(.wide) small { display: inline; margin-left: 8px; }
/* 预览区：对话方式下追问的示意 */
.ev-probe-demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 10px; padding: 12px 14px; border-radius: 4px; background: var(--dai-soft); }
.ev-probe-demo .head { display: flex; align-items: center; gap: 6px; color: var(--dai-ink); font-size: 12.5px; letter-spacing: .1em; }
.ev-probe-demo .head b { font-weight: 500; }
.ev-probe-demo .head .tag-soft { margin-left: 0; background: var(--white); }
.ev-probe-demo .tiny { letter-spacing: .04em; line-height: 18px; }
.ev-probe-demo .ev-bubble { padding: 8px 12px; font-size: 13.5px; line-height: 22px; }
.ev-probe-demo .ev-bubble.me { opacity: .75; font-size: 12.5px; }
/* 矩阵量表的两端标注与五级梯度条（依设计稿 1）：两端加底色，中间三档淡写 */
.ev-scalebox { padding: 12px 14px 10px; margin: 4px 0 12px; border-radius: 4px; background: var(--s-low); }
.ev-scalebox-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.ev-scalebox-head b { font-size: 13px; letter-spacing: .1em; font-weight: 600; }
.ev-scalebox .field { margin-bottom: 8px; }
.ev-grades { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; padding-top: 2px; color: var(--ink-3); font-size: 11.5px; line-height: 18px; letter-spacing: .04em; }
.ev-grades .end { padding: 2px 8px; border-radius: 3px; background: var(--s-highest); color: var(--ink-2); }
/* 开关标题上的图标与小标签 */
.check b .ic { margin-right: 4px; color: var(--dai); }
.tag-soft { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 2px; background: var(--s-highest); color: var(--ink-2); font-size: 10.5px; line-height: 15px; letter-spacing: .1em; font-weight: 400; white-space: nowrap; vertical-align: 1px; }
.tag-soft.dai { background: var(--dai-soft); color: var(--dai-ink); }
.ev-anchors { display: grid; gap: 0 10px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.ev-opts { display: grid; gap: 6px; margin-bottom: 12px; justify-items: start; }
.ev-opt-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.ev-opt-row > .input { flex: 1; min-width: 0; }
.ev-opt-row .check { flex: none; align-items: center; } .ev-opt-row .check input { margin: 0; }
/* 选项行、维度行的拖动提手（依设计稿 1、3、4）：只有提手可拖，上下留出余量便于按住；拖动中的行淡出、输入框描黛蓝边以标出落点 */
.ev-opt-row .grip { box-sizing: content-box; padding: 12px 3px; margin: 0 -3px; color: var(--line); cursor: grab; -webkit-user-select: none; user-select: none; }
.ev-opt-row:hover .grip { color: var(--ink-2); }
.ev-opt-row .grip:active { cursor: grabbing; }
.ev-opt-row.dragging { opacity: .45; }
.ev-opt-row.dragging > .input { box-shadow: 0 0 0 2px var(--dai); }
.ev-sub { padding: 10px; margin-bottom: 8px; border-radius: 4px; background: var(--s-low); }
.ev-branch { margin-top: 14px; }
.ev-stage .ev-q { margin: 0; }
#evEditor h4 { margin: 14px 0 8px; font-size: 13px; letter-spacing: .12em; font-weight: 600; }
.ev-results { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .ev-results { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.ev-stat { padding: 16px 18px; margin-bottom: 14px; }
.ev-stat h3 { margin: 6px 0 8px; font-size: 16px; font-weight: 600; }
.ev-mean { margin-bottom: 6px; color: var(--dai); font-size: 13px; }
.ev-barrow { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 10px; padding: 3px 0; font-size: 12.5px; }
.ev-barrow:has(> :nth-child(4)) { grid-template-columns: minmax(90px, 34%) 1fr auto auto; }
.ev-barrow .name { overflow-wrap: anywhere; }
.ev-barrow .track { height: 10px; border-radius: 2px; background: var(--s-highest); overflow: hidden; }
.ev-barrow .track i { display: block; height: 100%; background: var(--ink-2); }
.ev-barrow.zhu .track i { background: var(--zhu); } .ev-barrow.dim .track i { background: var(--ink-3); }
.ev-barrow .val { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-matrix { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 700px) { .ev-matrix:has(.ev-radar) { grid-template-columns: 1fr 220px; } }
.ev-radar { color: var(--dai); text-align: center; }
.ev-radar ol { margin: 0; padding-left: 18px; text-align: left; color: var(--ink-2); font-size: 11.5px; }
.ev-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ev-summary .rich { font-size: 14px; line-height: 26px; }
/* 回收结果：按作答方式筛选条、逐卷清单 */
.ev-mode-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0; }
.ev-rolls { margin-top: 20px; }
.ev-roll-list { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; }
.ev-roll-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 6px 4px; border-top: 1px solid var(--hair); }
.ev-roll-list li:first-child { border-top: 0; }
.ev-roll-list .who { min-width: 4em; font-size: 13px; }
.ev-roll-list .spacer { flex: 1; }
.ev-voice-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; max-height: 900px; overflow-y: auto; }
.ev-voice-list li { padding: 10px 12px; border-radius: 4px; background: var(--paper); }
.ev-voice-list li.starred { box-shadow: inset 3px 0 0 var(--dai); }
.ev-voice-list .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.ev-voice-list p { font-size: 14px; line-height: 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ev-whole { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.ev-whole li b { font-weight: 600; font-size: 13.5px; }
.ev-whole li p { white-space: pre-wrap; overflow-wrap: anywhere; }
.ev-whole .more { color: var(--dai); font-size: 13px; }
/* 评教扫码大屏 */
body.evscreen { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; background: var(--surface); text-align: center; }
body.evscreen.dark { background: #1c1c1a; color: #ede9e0; }
body.evscreen header { padding: 3vh 4vw 0; font-size: clamp(14px, 1.4vw, 24px); letter-spacing: .2em; color: var(--ink-2); }
body.evscreen.dark header, body.evscreen.dark .ev-screen-sub, body.evscreen.dark .ev-screen-meta { color: #b9b5aa; }
body.evscreen main { display: grid; place-items: center; align-content: center; gap: 2vh; padding: 2vh 4vw; }
body.evscreen h1 { font-size: clamp(14px, 1.6vw, 28px); letter-spacing: .1em; font-weight: 600; }
.ev-screen-sub { font-size: clamp(14px, 1.6vw, 28px); color: var(--ink-2); }
.ev-screen-qr { width: min(46vh, 60vw); aspect-ratio: 1; padding: 1.4vh; border-radius: 6px; background: #fff; box-shadow: var(--shadow-2); }
.ev-screen-qr img { width: 100%; height: 100%; display: block; }
.ev-screen-url { font-family: var(--mono); font-size: clamp(14px, 1.7vw, 30px); letter-spacing: .02em; overflow-wrap: anywhere; }
.ev-screen-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1vh 3vw; font-size: clamp(14px, 1.5vw, 26px); color: var(--ink-2); }
.ev-screen-meta strong { color: var(--zhu-ink); font-size: 1.5em; font-variant-numeric: tabular-nums; }
.ev-screen-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 10px 64px; transition: opacity .3s; }
.ev-screen-bar.off { opacity: 0; pointer-events: none; }
.ev-report-tabs { margin-bottom: 12px; }
.ev-report .actions { margin: 10px 0 14px; }
.ev-report-body { font-size: 15px; line-height: 28px; }
.ev-report-body p.h { margin: 18px 0 6px; font-size: 16.5px; letter-spacing: .06em; }
.ev-report-body p, .ev-report-body ul, .ev-report-body ol { margin: 6px 0; }
.ev-report-body:empty { display: none; }
.ev-report-edit { width: 100%; margin-bottom: 8px; font-size: 14px; line-height: 24px; }
.ev-digest { max-height: 60vh; margin: 0 0 12px; padding: 12px 14px; overflow: auto; border-radius: 4px; background: var(--s-low); font-family: var(--mono); font-size: 12.5px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
