/* ═══ 稷下·论语圆桌 — 共享讲席 成品版 ═══
   视觉语言：竹卷轴讲席（GPT-Image-2 素材）+ 水墨壁画舞台 + 木牌/印章控件 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #f6f2e8;
  --paper: #fbf8f0;
  --ink: #2f3430;
  --ink-dim: #6f6f63;
  --sage: #5c7a5e;
  --sage-deep: #3d5940;
  --walnut: #4a3826;
  --terra: #c26b4a;
  --line: #ddd5c2;
  --serif: "Songti SC", "STSong", "Noto Serif SC", serif;
  --shadow: 0 2px 14px rgba(60, 60, 40, .12);
}

html, body { height: 100%; }
body { background: var(--cream); color: var(--ink); font-family: var(--serif); overflow: hidden; }
b { color: var(--sage-deep); }
button { font-family: var(--serif); cursor: pointer; }

.screen { display: none; height: 100vh; flex-direction: column; }
.screen.active { display: flex; }

/* ── 通用控件：木牌按钮 / 印章按钮 ── */
.btn-primary {
  font-size: 20px; letter-spacing: 10px; text-indent: 10px; padding: 15px 52px;
  background: url('/static/assets/ui/plaque-btn.png') center / 100% 100% no-repeat;
  color: #f4ead6; border: none; text-shadow: 0 1px 2px rgba(30,20,10,.55);
  filter: drop-shadow(0 4px 10px rgba(60,45,25,.35)); transition: transform .15s, filter .15s;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); filter: drop-shadow(0 7px 14px rgba(60,45,25,.45)); }
.btn-primary:disabled { opacity: .45; cursor: default; }
.plaque-btn {
  background: url('/static/assets/ui/plaque-btn.png') center / 100% 100% no-repeat;
  color: #f4ead6; border: none; font-size: 14.5px; letter-spacing: 3px;
  padding: 10px 22px; text-shadow: 0 1px 2px rgba(30,20,10,.55);
  filter: drop-shadow(0 2px 6px rgba(60,45,25,.3)); transition: transform .12s;
}
.plaque-btn:hover { transform: translateY(-1px); }
.seal-control {
  width: 42px; height: 42px; border: none; position: relative;
  background: url('/static/assets/ui/seal-btn.png') center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 5px rgba(60,45,25,.28)); transition: transform .12s;
  display: inline-flex; align-items: center; justify-content: center;
}
.seal-control:hover { transform: translateY(-1px); }
.seal-control .control-signet { font-size: 16px; font-weight: 700; color: #f2e4c4; text-shadow: 0 1px 2px rgba(30,20,10,.7); }
.seal-control b { position: absolute; right: -6px; top: -6px; font-size: 10px; background: var(--terra);
  color: #fff; border-radius: 8px; padding: 1px 5px; }
.seal-control.muted .control-signet, .seal-control.paused .control-signet { color: #ffb08a; }
.seal-control.rec { animation: recpulse .8s infinite alternate; }
@keyframes recpulse { from { filter: drop-shadow(0 0 2px rgba(194,107,74,.5)); } to { filter: drop-shadow(0 0 10px rgba(194,107,74,.9)); } }
.btn-ghost { font-size: 14px; padding: 8px 20px; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-dim); }
.btn-ghost:hover { border-color: var(--sage); color: var(--sage-deep); }

/* ═══ 开始页（同学的新版 hero 设计，从 129f16d 摘出）═══ */
#screen-start { position: relative; overflow: hidden; background: #17130f;
  --start-font: "方正楷体_GBK", "FZKai-Z03", "Kaiti SC", "KaiTi", "STKaiti", serif;
  font-family: var(--start-font); }
#screen-start button { font-family: var(--start-font); }
.start-hero { position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate; }
.start-hero::after { content: ''; position: absolute; z-index: 20; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(13,9,6,.11) 82%, rgba(8,5,3,.34) 112%); }
.start-hero-bg { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.start-heading { position: absolute; z-index: 7; left: 13%; right: 13%; top: 16.5%; height: 22%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.start-heading h1 { color: #2a2016; font-family: var(--start-font);
  font-size: clamp(50px, 4.45vw, 86px); font-weight: 700; line-height: 1.12;
  letter-spacing: clamp(7px, .72vw, 14px); text-indent: clamp(7px, .72vw, 14px);
  text-shadow: 0 2px 0 rgba(255,250,226,.34), 0 3px 5px rgba(75,50,25,.18); white-space: nowrap; }
.start-heading p { width: min(800px, 68vw); margin-top: clamp(28px, 3.6vh, 48px); color: #4d5d52;
  display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.5vw, 28px);
  font-family: var(--start-font);
  font-size: clamp(15px, 1.3vw, 23px); font-weight: 600; line-height: 1.45;
  letter-spacing: clamp(3px, .38vw, 7px); }
.start-heading p::before, .start-heading p::after { content: ''; width: clamp(54px, 7vw, 126px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(81,66,42,.62)); }
.start-heading p::after { transform: scaleX(-1); }

.start-cast { position: absolute; z-index: 5; left: 9%; right: 9%; bottom: 1.5%; height: 48%; }
.start-person { position: absolute; bottom: 0; display: block; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 12px 11px rgba(20,13,7,.46)); }
.start-person-kongzi { left: 0; width: 25%; height: 100%; }
.start-person-hanfeizi { left: 25%; width: 25%; height: 100%; }
.start-person-kant { left: 50%; width: 25%; height: 100%; }
.start-person-player { left: 75%; width: 25%; height: 100%; }

.start-enter { position: absolute; z-index: 10; left: 50%; bottom: 3.2%; transform: translateX(-50%);
  width: clamp(290px, 25.5vw, 490px); height: clamp(72px, 9.5vh, 116px); padding: 0; border: 0;
  color: #f7ead2; background: url('/static/assets/ui/gpt2/button-primary.png') center / 100% 100% no-repeat;
  font-size: clamp(30px, 3vw, 54px); letter-spacing: clamp(15px, 2vw, 36px); text-indent: clamp(15px, 2vw, 36px);
  text-shadow: 0 3px 4px rgba(35,17,7,.85); filter: drop-shadow(0 8px 9px rgba(22,14,7,.5));
  transition: transform .16s, filter .16s; }
.start-enter:hover { transform: translate(-50%, -4px); filter: drop-shadow(0 12px 12px rgba(22,14,7,.58)) brightness(1.08); }
.start-enter:active { transform: translate(-50%, 1px); filter: drop-shadow(0 5px 5px rgba(22,14,7,.48)) brightness(.97); }
/* 剩余额度提示：新版设计里视觉隐藏（仅保留给屏幕阅读器），跟旧版"页面底部显示 $x"不同，请留意 */
.start-note { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ═══ 选人 ═══ */
#screen-select { align-items: center; justify-content: center;
  background: url('/static/assets/ui/paper-tile.png') center / 512px, var(--cream); }
.select-wrap { text-align: center; width: min(1080px, 94vw); }
.select-wrap h2 { font-size: 28px; letter-spacing: 10px; margin-bottom: 6px; }
.select-hint { font-size: 13px; letter-spacing: 1px; color: var(--ink-dim); }
.pick-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 26px 0 18px; }
.pick-card { width: 148px; background: var(--paper); border: 2px solid var(--line); border-radius: 14px;
  padding: 14px 8px 12px; transition: all .18s; position: relative; cursor: pointer; }
.pick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pick-card.picked { border-color: var(--sage-deep); background: #f0f4ea; }
.pick-card.locked { border-color: var(--terra); }
.pick-card .pick-mark { position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); font-size: 13px; line-height: 19px; color: transparent; background: var(--paper); }
.pick-card.picked .pick-mark, .pick-card.locked .pick-mark { border-color: var(--sage-deep); background: var(--sage-deep); color: #fff; }
.pick-sprite { width: 122px; height: 136px; margin: 0 auto; background-size: 500% 300%; background-position: 0% 0%; }
.pick-card .pk-name { font-size: 17px; font-weight: 700; margin-top: 6px; }
.pick-card .pk-tag { font-size: 11px; color: var(--ink-dim); margin-top: 2px; }
.select-stories { display: flex; flex-wrap: wrap; gap: 6px 13px; justify-content: center; align-items: center;
  max-height: 58px; overflow: auto; margin: 8px auto 14px; padding: 2px 8px;
  font-size: 11.5px; color: var(--ink-dim); }
.ss-label { color: var(--terra); letter-spacing: 2px; }
.ss-item { white-space: nowrap; }
.ss-item em { color: var(--terra); font-style: normal; }
.ss-item i { font-style: normal; font-size: 11px; color: #a9a390; margin-left: 4px; }

/* ═══ 讲席主界面 ═══ */
.topbar { display: flex; justify-content: space-between; align-items: center;
  padding: 8px 18px; z-index: 30;
  background: url('/static/assets/ui/paper-tile.png') center / 512px, var(--paper);
  border-bottom: 1px solid rgba(90,70,40,.25); box-shadow: 0 2px 10px rgba(50,40,20,.12); }
.tb-logo { font-size: 17px; font-weight: 700; letter-spacing: 3px; }
.tb-story { margin-left: 14px; font-size: 13px; color: var(--ink-dim); }
.tb-right { display: flex; gap: 10px; align-items: center; }
.tb-leave { font-size: 13px; padding: 9px 18px; }

.stage { flex: 1; position: relative; overflow: hidden; min-height: 0; }
.stage-bg { position: absolute; inset: 0;
  background: url('/static/assets/ui/stage-bg-a.png') center / cover no-repeat; }
.game-paused .stage-bg::after { content: ''; position: absolute; inset: 0; background: rgba(40,35,25,.18); }

/* ── 竹卷轴讲席 ── */
.story-deck { position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  height: 68%; width: auto; max-width: 94%; aspect-ratio: 1516 / 878;
  z-index: 8; pointer-events: none; }
.deck-frame { position: absolute; inset: 0; width: 100%; height: 100%;
  filter: drop-shadow(0 14px 22px rgba(45,35,15,.35)); }
#btn-skip-brief { display: none; }
.story-deck.briefing #btn-skip-brief { display: inline-flex; }
.story-deck.briefing #btn-deck-review { display: none; }

/* 回看模式 */

/* ── 哲学家席 ── */
#chars { position: absolute; inset: 0; z-index: 12; }
.char { position: absolute; transform: translateX(-50%); cursor: pointer; }
.char .sprite { width: 318px; height: 353px; background-size: 500% 300%; background-position: 0% 0%;
  filter: drop-shadow(0 12px 12px rgba(20,15,8,.5)); }  /* 尺寸由 layoutChars 按舞台余量实时改写 */
.char .ground { position: absolute; left: 50%; bottom: -4px; width: 190px; height: 30px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255,214,140,.5), transparent 68%); opacity: 0; transition: opacity .4s; }
.char.speaking .ground { opacity: 1; }
.char .tag { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap;
  background: url('/static/assets/ui/name-plaque.png') center / 100% 100% no-repeat;
  padding: 8px 26px; font-size: 13.5px; filter: drop-shadow(0 3px 5px rgba(40,30,15,.35)); }
.char .tag .mic-ico { display: none; color: var(--terra); margin-right: 4px; font-size: 11px; font-weight: 700; }
.char .tag i { font-style: normal; font-size: 10.5px; color: #7a6a4c; margin-left: 6px; }
.char.speaking .tag .mic-ico { display: inline; animation: micpulse 1s infinite alternate; }
@keyframes micpulse { from { opacity: .5; } to { opacity: 1; } }
.char.cued .tag { filter: drop-shadow(0 0 6px rgba(194,107,74,.8)); }

/* 台词气泡 */
.bubble { position: absolute; max-width: 350px; z-index: 22; pointer-events: none;
  background: url('/static/assets/ui/paper-tile.png') center / 400px, var(--paper);
  border: 1.5px solid #4a4034; border-radius: 13px; padding: 11px 15px;
  box-shadow: 0 6px 16px rgba(40,30,15,.28); opacity: 0; transition: opacity .25s; }
.bubble::after { content: ''; position: absolute; bottom: -9px; left: 36px; width: 14px; height: 14px;
  background: var(--paper); border-right: 1.5px solid #4a4034; border-bottom: 1.5px solid #4a4034;
  transform: rotate(45deg); }
.bubble.on { opacity: 1; }
.bubble.interrupted { border-style: dashed; opacity: .75; }
.bubble-name { font-size: 11.5px; letter-spacing: 1px; margin-bottom: 3px; font-weight: 700; }
.bubble-text { font-size: 15.5px; line-height: 1.8; }

/* 思考气泡（画风贴图） */
.think { position: absolute; z-index: 21; width: 96px; height: 86px; display: none;
  background: url('/static/assets/ui/think.png') center / contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(50,60,40,.2)); }
.think.on { display: block; animation: thinkbob 1.2s ease-in-out infinite; }
@keyframes thinkbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* 轮到你了：挂牌 */
.user-cue { position: absolute; z-index: 25; display: none; width: 176px; height: 132px;
  background: url('/static/assets/ui/cue-plaque.png') center / contain no-repeat;
  filter: drop-shadow(0 6px 10px rgba(40,30,15,.35));
  flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding-top: 34px; }
.user-cue.on { display: flex; animation: cuedrop .45s cubic-bezier(.2,1.6,.5,1); }
@keyframes cuedrop { from { transform: translateY(-26px); opacity: 0; } }
.user-cue span { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: #4a3a22; }
.user-cue i { font-style: normal; font-size: 12px; color: #8a5a33; }
.user-cue button { background: none; border: 1px solid #8a6a3a; color: #6b5330; border-radius: 6px;
  font-size: 11px; padding: 1px 9px; margin-top: 2px; }

/* ── 案头输入区 ── */
.inputbar { position: relative; z-index: 30; padding: 8px 16px 12px;
  background: url('/static/assets/ui/desk-strip.png') center / cover no-repeat, var(--walnut);
  box-shadow: 0 -4px 14px rgba(30,22,10,.35); }
.suggestion-list { display: flex; gap: 8px; margin-bottom: 8px; min-height: 30px; flex-wrap: wrap; }
.suggestion { font-size: 12.5px; letter-spacing: .5px; color: #4a3f2a;
  background: url('/static/assets/ui/paper-tile.png') center / 300px, rgba(251,248,240,.94);
  border: 1px solid rgba(140,110,60,.55); border-radius: 15px; padding: 5px 14px;
  box-shadow: 0 2px 5px rgba(30,22,10,.25); transition: all .15s; max-width: 340px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion:hover { transform: translateY(-1px); border-color: #8a6a3a; background-color: #fff; }
.utterance-box { display: flex; gap: 10px; align-items: center; }
#user-input { flex: 1; font-family: var(--serif); font-size: 15.5px; padding: 12px 16px;
  background: rgba(251,248,240,.96); border: 1px solid rgba(140,110,60,.6); border-radius: 10px;
  color: var(--ink); outline: none; box-shadow: inset 0 1px 4px rgba(60,45,20,.15); }
#user-input:focus { border-color: #b08a4a; background: #fff; }
#user-input::placeholder { color: #9a8c72; }
.btn-send { font-size: 16px; letter-spacing: 4px; padding: 11px 26px; }
.btn-interrupt { display: none; font-size: 13px; padding: 10px 16px;
  filter: drop-shadow(0 2px 6px rgba(60,45,25,.3)) hue-rotate(-12deg) saturate(1.25); }
.btn-interrupt.on { display: block; }

/* 抽屉 / 弹窗 */
.drawer { position: fixed; top: 0; right: -370px; width: 356px; height: 100vh;
  background: url('/static/assets/ui/paper-tile.png') center / 512px, var(--paper);
  border-left: 1px solid rgba(90,70,40,.3); box-shadow: -6px 0 24px rgba(50,40,20,.2);
  transition: right .3s; z-index: 60; display: flex; flex-direction: column; }
.drawer.open { right: 0; }
.drawer-head { padding: 14px 18px; font-size: 15px; letter-spacing: 2px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; }
.drawer-head button { background: none; border: none; font-size: 15px; color: var(--ink-dim); }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px; }
.dr-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 9px; margin-bottom: 13px; }
.dr-avatar { grid-row: span 2; width: 36px; height: 36px; align-self: start; border: 1px solid rgba(104,82,51,.34); border-radius: 50%;
  background-color: #eee5d3; background-position: center; background-repeat: no-repeat; box-shadow: 0 2px 5px rgba(58,43,22,.16); }
.dr-avatar-sprite { background-size: 500% 300%; background-position: 0 0; }
.dr-avatar-host { background-size: cover; }
.dr-name { min-width: 0; font-size: 12px; font-weight: 700; margin-bottom: 3px; line-height: 1.2; }
.dr-text { min-width: 0; font-size: 13.5px; line-height: 1.75; border: 1px solid rgba(104,82,51,.16); border-left: 4px solid var(--dr-accent, #8b7557);
  border-radius: 9px; padding: 8px 12px; background: #f3ecdf; color: #3b3429; }
.dr-item.dr-philosopher .dr-text { background: #f3ecdf; }
.dr-item.dr-user .dr-text { background: #dcecf4; border-color: #93b8c8; border-left-color: #315f75; color: #183b4c; }
.dr-item.dr-host .dr-text { background: #f7e2af; border-color: #d9a94f; border-left-color: #a6651d; font-size: 12.5px; color: #624117; }
.dr-item.dr-user .dr-avatar { border-color: #315f75; }
.dr-item.dr-host .dr-avatar { border-color: #a6651d; }
@media (max-width: 480px) {
  .dr-item { grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px; }
  .dr-avatar { width: 32px; height: 32px; }
}

.modal { position: fixed; inset: 0; background: rgba(47,52,48,.45); display: none;
  align-items: center; justify-content: center; z-index: 70; }
.modal.open { display: flex; }
.modal-card { width: min(560px, 90vw); border-radius: 16px; padding: 30px 34px;
  background: url('/static/assets/ui/paper-tile.png') center / 512px, var(--paper);
  border: 1px solid rgba(120,95,55,.4); box-shadow: 0 12px 48px rgba(0,0,0,.28); }
.modal-head { font-size: 13px; letter-spacing: 2px; color: var(--terra); margin-bottom: 12px; }
.orig-text { font-size: 17px; line-height: 2.1; }
.orig-note { margin-top: 14px; padding: 12px 16px; background: rgba(240,233,215,.85);
  border-left: 3px solid var(--sage); border-radius: 6px; font-size: 13px; line-height: 1.9; color: var(--ink-dim); }
.modal-card .btn-ghost { margin-top: 18px; }

/* ═══ 报告 ═══ */
#screen-report { align-items: center; justify-content: center; overflow: hidden; min-height: 100vh;
  background: url('/static/assets/ui/stage-bg-a.png') center / cover fixed; }
.report-wrap { width: min(980px, 96vw, calc((100vh - 20px) * .666667)); aspect-ratio: 2 / 3; margin: auto; padding: 0; }
.report-loading { text-align: center; color: #f2ead8; letter-spacing: 3px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.report-scroll { position: relative; width: 100%; height: 100%; padding: 0;
  background: url('/static/assets/ui/report-scroll-transparent.png') center / 100% 100% no-repeat;
  filter: drop-shadow(0 16px 30px rgba(20,15,8,.45)); }
.report-card { position: absolute; left: 18.5%; right: 18.5%; top: 16.2%; bottom: 11.4%; overflow-x: hidden; overflow-y: auto;
  padding: 0 18px 30px; scrollbar-gutter: stable; overscroll-behavior: contain; }
.report-card::-webkit-scrollbar { width: 6px; }
.report-card::-webkit-scrollbar-track { background: rgba(139,117,87,.1); border-radius: 6px; }
.report-card::-webkit-scrollbar-thumb { background: rgba(107,74,45,.45); border-radius: 6px; }
.report-head { text-align: center; padding-bottom: 18px; border-bottom: 1px solid rgba(130,99,51,.25); }
.report-card h2 { font-size: 28px; letter-spacing: 10px; margin-bottom: 7px; color: #3a3020; }
.report-sub { font-size: 12px; color: #8a7a58; letter-spacing: 2px; }
.report-hero { display: flex; gap: 28px; align-items: center; padding: 20px 4px; }
.report-sprite { width: 150px; height: 167px; background-size: 500% 300%; background-position: 0% 0%; flex-shrink: 0; }
.report-identity { min-width: 0; }
.report-match { font-size: 15px; color: #6b5c40; }
.report-match b { font-size: 22px; letter-spacing: 3px; display: block; margin-top: 4px; }
.report-title { display: inline-block; max-width: 100%; margin-top: 10px; transform: rotate(-2deg); border: 2px solid var(--terra);
  color: var(--terra); font-size: 17px; letter-spacing: 5px; padding: 4px 15px; border-radius: 8px; font-weight: 700; }
.report-section { border-top: 1px solid rgba(130,99,51,.2); padding: 17px 0 4px; }
.report-section h3 { color: #6b4a2d; font-size: 15px; letter-spacing: 3px; margin-bottom: 13px; }
.axis { margin-bottom: 15px; }
.axis-labels { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; align-items: end;
  font-size: 12px; color: #8a7a58; margin-bottom: 5px; }
.axis-labels b:last-child { text-align: right; }
.axis-labels span { text-align: center; white-space: nowrap; }
.axis-labels b { color: #3a3020; }
.axis-bar { position: relative; width: 100%; height: 9px; border-radius: 5px; background: linear-gradient(90deg, #dce5d3, #d3dde5); }
.axis-dot { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--sage-deep);
  border: 3px solid var(--paper); box-shadow: var(--shadow); transform: translate(-50%, -50%); transition: left 1s ease; }
.report-text { font-size: 15px; line-height: 2; margin: 0 0 14px; color: #43392a; white-space: pre-wrap; }
.report-quote { background: rgba(240,233,215,.85); border-left: 3px solid var(--terra); border-radius: 8px;
  padding: 12px 16px; font-size: 13.5px; line-height: 1.9; color: #6b5c40; white-space: pre-wrap; }
.report-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.report-actions .btn-primary, .report-actions .btn-ghost { min-width: 126px; }
.report-error { margin: auto; padding: 26px; border-radius: 14px; background: #f8efdc; color: #6d4829; text-align: center; line-height: 1.8; }
@media (max-width: 620px) {
  .report-wrap { width: min(98vw, calc((100vh - 12px) * .666667)); }
  .report-card { left: 17.8%; right: 17.8%; top: 16%; bottom: 11%; padding: 0 9px 24px; }
  .report-card h2 { font-size: 24px; letter-spacing: 7px; }
  .report-hero { gap: 12px; padding: 16px 0; }
  .report-sprite { width: 102px; height: 114px; }
  .report-match b { font-size: 19px; }
  .report-title { font-size: 15px; letter-spacing: 3px; padding: 4px 10px; }
  .report-section h3 { font-size: 14px; letter-spacing: 2px; }
  .axis-labels { gap: 4px; font-size: 10.5px; }
  .report-actions { flex-direction: column; align-items: stretch; }
}

/* 插画灯箱 */
.lightbox .lightbox-inner { text-align: center; }
.lightbox img { max-width: min(880px, 88vw); max-height: 78vh; border-radius: 10px;
  border: 6px solid #f2e8d2; box-shadow: 0 20px 50px rgba(0,0,0,.5); display: block; margin: 0 auto; }
.lightbox .btn-ghost { margin-top: 16px; color: #f2e8d2; border-color: rgba(242,232,210,.5); }
.lightbox .btn-ghost:hover { color: #fff; border-color: #fff; }

/* ═══ GPT‑Image‑2 选定方向：极薄会议框架 ═══ */
#screen-table { position: relative; background: #261f18; }

/* 顶部只保留题名和案名；高度固定为 36px，把空间还给讲席。 */
.topbar { min-height: 46px; height: 46px; flex: 0 0 46px; padding: 0 30px;
  background: url('/static/assets/ui/gpt2/title-strip.png') center / 100% 100% no-repeat;
  border: 0; box-shadow: 0 1px 5px rgba(40,30,16,.22); }
.tb-logo { font-size: 16.5px; letter-spacing: 3px; }
.tb-story { margin-left: 12px; font-size: 11.5px; }
.tb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-live { color: #7a6a4a; font-size: 10.5px; letter-spacing: 1.5px; flex-shrink: 0;
  border: 1px solid rgba(140,110,60,.45); border-radius: 9px; padding: 1px 9px;
  background: rgba(255,252,244,.6); }
.tb-right { display: none; }

.stage-bg { background: url('/static/assets/ui/gpt2/stage-garden.png') center / cover no-repeat; }

/* 卷轴贴近顶栏并适度增高：横向 PPT 保持主角，同时给正文更多呼吸。 */
.story-deck { top: -2px; height: 67%; max-width: 95%; aspect-ratio: 1916 / 771; }
.deck-frame { filter: drop-shadow(0 10px 16px rgba(45,35,15,.3)); }

/* 人物保持次于 PPT 的层级；待机只显示静态帧。 */
#chars { pointer-events:none; }
.char { pointer-events:auto; }
.char .sprite { filter: drop-shadow(0 10px 10px rgba(20,15,8,.43)); }
.char .tag { bottom: -10px; width: 174px; min-height: 46px; padding: 12px 22px 9px;
  display:flex; align-items:center; justify-content:center;
  background: url('/static/assets/ui/gpt2/name-plaque.png') center / 100% 100% no-repeat; }
.char .tag i { font-size: 10px; }

/* 轻盈白底发言框：保留古今反差，不再使用厚重的纸张贴图。 */
.bubble { max-width: none; min-height: 0; padding: 16px 19px 18px; border: 1px solid rgba(72,66,56,.18);
  border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: 0 9px 26px rgba(32,27,20,.17);
  filter: none; color: #292722; }
.bubble::after { display: block; left: 50%; bottom: -8px; width: 15px; height: 15px;
  background: #fff; border: 0; border-right: 1px solid rgba(72,66,56,.18);
  border-bottom: 1px solid rgba(72,66,56,.18); transform: translateX(-50%) rotate(45deg); }
.bubble-name { font-size: 11.5px; margin-bottom: 6px; letter-spacing: .6px; }
.bubble-text { font-size: 15px; line-height: 1.62; }
.think.on { animation: none; }

/* 底部会议控制台：常态仅 60px；发言托盘按需向上展开。 */
.meeting-dock { position: relative; z-index: 35; flex: 0 0 60px; height: 60px;
  background: url('/static/assets/ui/gpt2/toolbar-strip.png') center / 100% 100% no-repeat;
  filter: drop-shadow(0 -3px 8px rgba(30,22,10,.32)); }
.meeting-toolbar { position: relative; z-index: 2; height: 100%; display:grid;
  grid-template-columns: 1fr auto 1fr; align-items:center; gap: 14px; padding: 5px 24px; }
.toolbar-group { min-width:0; display:flex; align-items:center; gap:8px; }
.toolbar-right { justify-content:flex-end; }
.dock-control { position:relative; min-width: 94px; height: 41px; padding: 4px 17px; border:0;
  display:inline-flex; align-items:center; justify-content:center; gap:7px; color:#f2e5cb;
  background: url('/static/assets/ui/gpt2/button-secondary.png') center / 100% 100% no-repeat;
  text-shadow:0 1px 2px rgba(20,14,8,.8); font-size:12px; letter-spacing:1.5px;
  transition:transform .15s,filter .15s; }
.dock-control:hover { transform:translateY(-1px); filter:brightness(1.12); }
.dock-control .control-signet { color:inherit; font-size:12px; }
.dock-control .control-label { font-size:9.5px; color:#cdbb9b; }
.dock-control b { position:absolute; top:-4px; right:5px; min-width:17px; height:17px; padding:0 4px;
  display:grid; place-items:center; border-radius:9px; background:var(--terra); color:#fff; font-size:9px; }
.dock-control.muted, .dock-control.paused, .dock-control.danger { color:#ffc0a0; }
.dock-control.rec { animation: recpulse .8s infinite alternate; }
.speak-primary { width: clamp(220px,23vw,292px); height: 49px; border:0; color:#fff0d4;
  display:flex; align-items:center; justify-content:center; gap:12px;
  background: url('/static/assets/ui/gpt2/button-primary.png') center / 100% 100% no-repeat;
  text-shadow:0 1px 2px rgba(30,15,8,.75); transition:transform .15s,filter .15s; }
.speak-primary:hover, .speak-primary[aria-expanded="true"] { transform:translateY(-2px); filter:brightness(1.08); }
.speak-primary span { font-size:17px; letter-spacing:4px; }
.speak-primary small { font-size:9.5px; color:#efd5bb; letter-spacing:1px; }

.speech-tray { position:absolute; z-index:1; left:50%; bottom:51px; width:min(980px,calc(100vw - 28px));
  min-height:142px; padding:32px 54px 33px; transform:translate(-50%,22px) scale(.985);
  background: url('/static/assets/ui/gpt2/input-tray.png') center / 100% 100% no-repeat;
  filter:drop-shadow(0 -7px 14px rgba(30,22,10,.3)); opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .22s,transform .22s,visibility .22s; }
#screen-table.speech-open .speech-tray { opacity:1; visibility:visible; pointer-events:auto; transform:translate(-50%,0) scale(1); }
.suggestion-list { min-height:28px; margin:0 0 7px; flex-wrap:nowrap; overflow:hidden; }
.suggestion { flex:1; min-width:0; max-width:none; font-size:11.5px; padding:4px 11px; }
.utterance-box { gap:8px; }
#user-input { min-width:0; height:39px; padding:8px 13px; font-size:14px; }
.speech-tray .dock-control { min-width:74px; height:37px; padding:3px 12px; }
.tray-close { align-self:stretch; border:0; background:transparent; color:#806e52; padding:0 5px; font-size:11px; }
.btn-interrupt { display:none; }
.btn-interrupt.on { display:inline-flex; }

/* 入口页和报告也使用同一主按钮皮肤。 */
.btn-primary { background-image:url('/static/assets/ui/gpt2/button-primary.png'); }

@media (max-width: 1100px) {
  .topbar { padding:0 10px; }
  .tb-live, .control-label { display:none; }
  .meeting-toolbar { padding:5px 10px; gap:7px; }
  .toolbar-group { gap:4px; }
  .dock-control { min-width:72px; padding:3px 10px; }
  .speak-primary { width:190px; }
  .speech-tray { width:calc(100vw - 20px); }
}
@media (max-width: 820px) {
  .tb-story { display:none; }
  .story-deck { top:-2px; height:60%; max-width:98%; }
  .meeting-toolbar { grid-template-columns:1fr auto 1fr; }
  .dock-control { min-width:58px; padding:2px 7px; font-size:10px; }
  .speak-primary { width:150px; }
  .speak-primary span { font-size:14px; }
  .speak-primary small { display:none; }
  .speech-tray { padding-left:32px; padding-right:32px; }
}
@media (max-height: 760px) {
  .story-deck { top:-3px; height:65%; }
  .deck-narrative { -webkit-line-clamp:3; }
  .speech-tray { min-height:126px; padding-top:25px; padding-bottom:28px; }
}

/* ═══ v3 增补：PPT 常驻翻页 / 主持人台词放大 / 跳过控件 ═══ */

/* 主持人台词：从一行小字改成显眼的讲述条 */
@keyframes hostpulse { 0%,100% { color: #33291a; } 50% { color: #7a4527; } }

/* 跳过控件在辩论期才出现 */
#btn-skip-turn, #btn-skip-story { display: none; }
.debating #btn-skip-turn, .debating #btn-skip-story { display: inline-flex; }

/* 第四页（本篇议题）：无图，标题与正文各占半幅 */

/* ═══════════ 讲席 · 版本 B（竖排标题式）═══════════ */
.deck-paper { position: absolute; left: 5.4%; right: 5.4%; top: 15.6%; bottom: 14.2%;
  display: flex; flex-direction: column; gap: 5px; pointer-events: auto; }

/* 右上角：状态 + 原文 / 跳过导读 */
.deck-head { position: absolute; top: 2px; right: 4px; display: flex; align-items: center;
  gap: 9px; z-index: 3; }
.deck-status { font-size: 11px; letter-spacing: 2px; color: #9a8a66; }
.deck-head-ctas { display: flex; gap: 6px; }
.deck-cta { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; letter-spacing: 1px;
  color: #5c4c30; background: rgba(255,251,240,.72); border: 1px solid rgba(140,110,60,.5);
  border-radius: 5px; padding: 3px 10px; transition: all .15s; }
.deck-cta:hover { background: #fff; border-color: #8a6a3a; }
#btn-skip-brief { display: none; }
.story-deck.briefing #btn-skip-brief { display: inline-flex; }

/* 主体三栏：竖排标题 / 配图 / 正文 */
.deck-body { flex: 1; min-height: 0; display: grid;
  grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);              /* 行高锁死，内容再大也不撑破 */
  gap: clamp(12px, 1.8vw, 26px); align-items: stretch; padding: 22px 6px 0; }

.deck-side { display: flex; flex-direction: column; align-items: center; gap: 6px;
  border-right: 1px solid rgba(120,95,55,.32); padding-right: clamp(9px, 1.2vw, 16px);
  min-width: 40px; overflow: hidden; }
/* 竖排标题：宁可小一点，也不能折成两列 */
.deck-title-v { writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap;
  font-size: clamp(17px, 2.5vh, 31px); letter-spacing: clamp(2px, .32vh, 5px);
  font-weight: 700; color: #2f2a1e; line-height: 1.02; flex: 0 1 auto; min-height: 0; overflow: hidden; }
.deck-seal { width: clamp(20px, 2.7vh, 30px); height: auto; opacity: .9; flex-shrink: 0; }
.deck-source-v { writing-mode: vertical-rl; white-space: nowrap; font-size: clamp(8.5px, 1.05vh, 11px);
  letter-spacing: 1.5px; color: #8a6a3a; flex: 0 1 auto; min-height: 0; overflow: hidden; }

.deck-visual { position: relative; min-width: 0; min-height: 0; overflow: hidden;
  border: 1px solid rgba(120,100,60,.5); outline: 1px solid rgba(120,100,60,.25); outline-offset: 3px;
  border-radius: 2px; cursor: zoom-in; align-self: stretch; }
/* 图片绝对定位：容器高度只由栅格行决定，图片再大也压不到下面的翻页条 */
.deck-visual img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block; transition: opacity .25s ease; }
.deck-visual img.swapping { opacity: 0; }
.deck-visual .zoom-hint { position: absolute; right: 5px; bottom: 5px; font-size: 10px; letter-spacing: 1px;
  color: #f4ead6; background: rgba(60,45,25,.7); border-radius: 9px; padding: 1px 8px;
  opacity: 0; transition: opacity .2s; pointer-events: none; }
.deck-visual:hover .zoom-hint { opacity: 1; }
.deck-visual.empty { display: none; }

.deck-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 0; }
.deck-narrative { font-size: clamp(12px, 1.6vh, 16.5px); line-height: 2.05; color: #4a4032;
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }

/* 翻页条：居中 */
.deck-pager { display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 3px 0 2px; flex-shrink: 0; }
.deck-page { width: 24px; height: 24px; border: 1px solid rgba(140,110,60,.5); border-radius: 6px;
  background: rgba(255,251,240,.85); color: #6b5530; font-size: 15px; line-height: 1; padding: 0;
  transition: all .15s; }
.deck-page:hover:not(:disabled) { background: #fff; border-color: #8a6a3a; }
.deck-page:disabled { opacity: .3; cursor: default; }
.deck-pageno { font-size: 12.5px; letter-spacing: 2px; color: #a3552f; min-width: 40px; text-align: center; }
.deck-dots { display: flex; gap: 5px; }
.deck-dots i { width: 7px; height: 7px; border-radius: 50%; background: #cbbc98; transition: background .3s; }
.deck-dots i.on { background: var(--terra); }

/* 主持人条：通栏双线框 */
.deck-narration { flex-shrink: 0; display: flex; align-items: flex-start; gap: 10px;
  margin: 0 2px 1px; padding: 7px 14px; border-radius: 3px;
  border: 1px solid rgba(150,115,60,.5); outline: 1px solid rgba(150,115,60,.22); outline-offset: 2px;
  background: linear-gradient(180deg, rgba(255,251,240,.94), rgba(248,241,224,.94));
  opacity: 0; transition: opacity .25s; }
.deck-narration.speaking, .story-deck.briefing .deck-narration { opacity: 1; }
.deck-narration > span { flex-shrink: 0; background: #a5372a; color: #fff; border-radius: 3px;
  padding: 3px 11px; font-size: 12px; letter-spacing: 2px; margin-top: 1px; }
.deck-narration b { font-weight: 400; color: #382f20; font-size: clamp(12.5px, 1.55vh, 16px);
  line-height: 1.72; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 第四页「本篇议题」：无配图，标题与议题各占半幅 */
/* 第四页「本篇议题」：无配图，把要辩的问题放大居中，像一张开席的题板 */
.story-deck.topic-page .deck-body { grid-template-columns: auto minmax(0, 1fr); }
.story-deck.topic-page .deck-copy { align-items: center; justify-content: center; text-align: center;
  padding: 0 clamp(20px, 5vw, 90px); }
.story-deck.topic-page .deck-narrative { font-size: clamp(20px, 3.4vh, 40px); line-height: 1.7;
  letter-spacing: 2px; color: #33291a; font-weight: 700; -webkit-line-clamp: 3; }
.story-deck.topic-page .deck-copy::before,
.story-deck.topic-page .deck-copy::after { content: ''; width: clamp(60px, 12vw, 150px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140,110,60,.65), transparent); margin: 14px 0; }


/* ═══════════ 发言区 v4：@点名标签 · 语音手动起止 ═══════════ */
/* 输入框改成"外壳 + 裸 input"，让 @ 标签和录音状态能长在框里 */
.input-shell { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 39px; padding: 0 13px;
  background: rgba(251,248,240,.96); border: 1px solid rgba(140,110,60,.6); border-radius: 10px;
  box-shadow: inset 0 1px 4px rgba(60,45,20,.15); transition: border-color .15s, background .15s; }
.input-shell.focused { border-color: #b08a4a; background: #fff; }
.input-shell #user-input, .input-shell #user-input:focus { flex: 1; min-width: 0; height: 100%;
  padding: 0; font-size: 14px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }

/* 点名标签：像聊天软件的「@谁谁谁」，底色取角色本色（JS 写 inline background）*/
.mention-chip { display: none; align-items: center; gap: 2px; flex-shrink: 0; max-width: 40%;
  height: 26px; padding: 0 4px 0 8px; border-radius: 6px; color: #fff;
  border: 1px solid rgba(255,255,255,.34);
  /* 角色本色由 JS 写 background-color；这层渐变把浅色角色压深，白字才不糊进底色 */
  background-image: linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.42));
  box-shadow: 0 1px 3px rgba(40,28,12,.3), inset 0 1px 0 rgba(255,255,255,.22); }
.mention-chip.on { display: inline-flex; animation: chippop .18s cubic-bezier(.2,1.5,.5,1); }
@keyframes chippop { from { transform: scale(.8); opacity: 0; } }
/* @ 与名字都用纯白、不加阴影：小字号下阴影会把笔画糊住 */
.mention-chip em { font-style: normal; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 13.5px; font-weight: 700; color: #fff; }
.mention-chip b { font-weight: 700; font-size: 13.5px; letter-spacing: 1px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mention-chip i { font-style: normal; font-size: 9.5px; line-height: 1; padding: 4px; border-radius: 4px;
  color: #fff; cursor: pointer; opacity: .7; transition: all .15s; }
.mention-chip i:hover { opacity: 1; background: rgba(255,255,255,.26); }

/* 录音中：状态要显眼，起止全由玩家自己按 */
.rec-badge { display: none; align-items: center; gap: 6px; flex-shrink: 0; height: 25px; padding: 0 9px;
  border-radius: 6px; background: rgba(194,82,58,.14); border: 1px solid rgba(194,82,58,.45);
  color: #9c3f2a; font-size: 11.5px; letter-spacing: 1px; }
.rec-badge.on { display: inline-flex; }
.rec-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #c2523a;
  animation: recdot .9s infinite alternate; }
.rec-badge b { font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes recdot { from { opacity: .3; } to { opacity: 1; } }
#btn-mic.rec { color: #ffd2be; }

/* 发言闸门：导读 / 主持人讲述期间入口直接灰掉，别让人白打一段字才发现没人接 */
.dock-control:disabled, .speak-primary:disabled { opacity: .4; filter: grayscale(.6); cursor: not-allowed; }
.dock-control:disabled:hover, .speak-primary:disabled:hover { transform: none; filter: grayscale(.6); }
.input-shell.off { opacity: .5; }
#user-input:disabled { cursor: not-allowed; }

/* 轮到你了：60 秒够说完一段话，跳过按钮做成实心，别让人以为只能干等 */
.user-cue { padding-top: 58px; gap: 1px; }           /* 三行字都落在木牌上，不再压到吊绳 */
.user-cue span { font-size: 14px; letter-spacing: 1.5px; }
.user-cue i { letter-spacing: .5px; }
.user-cue button { background: rgba(138,90,51,.14); color: #6b4a24; font-weight: 700; padding: 2px 12px; }
.user-cue button:hover { background: rgba(138,90,51,.28); }

/* 系统提示条：语音不可用等重要状态，必须让玩家看见，而不是静默失败 */
#sys-notice { position: fixed; left: 50%; top: 58px; transform: translateX(-50%) translateY(-14px);
  z-index: 90; max-width: 78vw; padding: 10px 22px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,251,240,.98), rgba(246,238,220,.98));
  border: 1px solid rgba(150,115,60,.6); border-left: 4px solid var(--terra);
  box-shadow: 0 6px 20px rgba(50,38,18,.28); font-size: 14px; letter-spacing: .5px; color: #4a3f2c;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
#sys-notice.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 开始页 hero 小屏适配（同上，摘自 129f16d） */
@media (max-width: 760px) {
  .start-heading { left: 4%; right: 4%; top: 15%; }
  .start-heading h1 { font-size: clamp(34px, 8.5vw, 50px); letter-spacing: 3px; text-indent: 3px; }
  .start-heading p { width: 86vw; font-size: clamp(12px, 3vw, 17px); letter-spacing: 1px; gap: 8px; }
  .start-heading p::before, .start-heading p::after { width: 24px; }
  .start-cast { left: -16%; right: -16%; bottom: 1%; height: 42%; }
  .start-enter { bottom: 2.5%; width: 230px; height: 66px; font-size: 27px; }
}
