/* =========================================================
   模拟法庭 · 正义的第一课
   视觉：深木、黄铜、宣纸；细线金边 + 玻璃拟态
   ========================================================= */

:root {
  --ink: #0c0a09;
  --ink-2: #151110;
  --ink-3: #1d1815;
  --paper: #f3e9d7;
  --paper-2: #ded0b6;
  --gold: #c8a45a;
  --gold-2: #e8d3a0;
  --gold-dim: rgba(200, 164, 90, 0.28);
  --gold-faint: rgba(200, 164, 90, 0.12);
  --red: #8f1d27;
  --green: #6f9c74;
  --text: #ece2cd;
  --muted: #a2937c;
  --muted-2: #7d7062;
  --glass: rgba(20, 16, 14, 0.74);
  --glass-2: rgba(28, 22, 18, 0.88);
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, 0.75);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 42%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 18%, transparent 74%, rgba(0, 0, 0, 0.42) 100%);
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  touch-action: none;
  cursor: grab;
}
#scene:active {
  cursor: grabbing;
}

.labels {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ---------- 通用 ---------- */
.is-hidden {
  display: none !important;
}

.btn {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.04em;
  border: 1px solid var(--gold-dim);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  padding: 11px 22px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  border-color: var(--gold);
  background: rgba(200, 164, 90, 0.09);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.btn--gold {
  background: linear-gradient(180deg, #d8b878, #b8934b);
  color: #241607;
  border-color: #e6cd94;
  font-weight: 600;
  box-shadow: 0 6px 22px -10px rgba(200, 164, 90, 0.9);
}
.btn--gold:hover {
  background: linear-gradient(180deg, #e6cd94, #c9a45a);
  color: #1c1004;
}
.btn--ghost {
  background: transparent;
}
.btn--sm {
  padding: 7px 14px;
  font-size: 13px;
}
.btn--lg {
  padding: 15px 40px;
  font-size: 16px;
  letter-spacing: 0.12em;
}
.btn--block {
  width: 100%;
  margin-top: 14px;
}

.link-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
  letter-spacing: 0.05em;
  font-family: var(--sans);
  transition: color 0.2s;
}
.link-btn:hover {
  color: var(--gold-2);
}

kbd {
  font-family: var(--sans);
  font-size: 10px;
  border: 1px solid var(--gold-dim);
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 6px;
  color: var(--muted);
  vertical-align: middle;
}

.kicker {
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

/* ---------- 加载 ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(circle at 50% 45%, #1a1410, #080605 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.9s var(--ease);
}
.loader.is-out {
  opacity: 0;
  pointer-events: none;
}
.loader-mark {
  width: 76px;
  height: 76px;
  color: var(--gold);
  opacity: 0.9;
  animation: breathe 3.2s ease-in-out infinite;
}
.loader-mark svg {
  width: 100%;
  height: 100%;
}
@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.03); }
}
.loader-title {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.4em;
  margin-top: 18px;
  color: var(--paper);
}
.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(200, 164, 90, 0.18);
  margin-top: 16px;
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-2));
  transition: width 0.4s var(--ease);
}
.loader-tip {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.14em;
  margin-top: 12px;
}

/* ---------- HUD ---------- */
.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  background: linear-gradient(180deg, rgba(10, 8, 7, 0.92), rgba(10, 8, 7, 0.55) 70%, transparent);
  animation: fadeDown 0.6s var(--ease-out) both;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

.hud-side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.hud-side--right {
  gap: 16px;
}

.hud-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-dim);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  color: var(--paper-2);
  cursor: pointer;
  transition: all 0.2s;
}
.hud-icon svg {
  width: 17px;
  height: 17px;
}
.hud-icon:hover {
  color: var(--gold-2);
  border-color: var(--gold);
  background: rgba(200, 164, 90, 0.1);
}

.hud-case {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--paper-2);
  font-family: var(--serif);
}
.hud-case .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.stepper {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}
.step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  cursor: default;
  padding: 6px 2px;
  white-space: nowrap;
  transition: color 0.3s;
}
.step-node .num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 90, 0.25);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-family: var(--serif);
  transition: all 0.3s;
}
.step-node.is-done {
  color: var(--muted);
}
.step-node.is-done .num {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200, 164, 90, 0.1);
}
.step-node.is-active {
  color: var(--paper);
}
.step-node.is-active .num {
  border-color: var(--gold-2);
  background: var(--gold);
  color: #1c1004;
  box-shadow: 0 0 0 4px rgba(200, 164, 90, 0.12);
}
.step-line {
  width: 26px;
  height: 1px;
  background: rgba(200, 164, 90, 0.18);
  flex: 0 0 auto;
}
.step-line.is-done {
  background: rgba(200, 164, 90, 0.55);
}

.hud-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--gold-dim);
  background: rgba(255, 255, 255, 0.02);
  color: var(--paper-2);
  border-radius: 2px;
  padding: 7px 12px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.2s;
}
.hud-btn svg {
  width: 15px;
  height: 15px;
}
.hud-btn i {
  font-style: normal;
  font-size: 10px;
  background: var(--gold);
  color: #1c1004;
  border-radius: 2px;
  padding: 1px 5px;
  font-weight: 700;
}
.hud-btn:hover {
  border-color: var(--gold);
  background: rgba(200, 164, 90, 0.1);
}

.prof {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prof-bar {
  width: 74px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.prof-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #9c7a35, var(--gold-2));
  transition: width 0.6s var(--ease);
}
.prof span {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 18px;
}

/* ---------- 3D 热点 ---------- */
.hotspot-label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(14, 11, 9, 0.82);
  border: 1px solid var(--gold-dim);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 6px 12px 6px 8px;
  border-radius: 100px;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  animation: hsIn 0.5s var(--ease-out) both;
}
@keyframes hsIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hotspot-label .hs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hotspot-label:hover {
  border-color: var(--gold);
  background: rgba(30, 22, 16, 0.95);
  transform: translate(-50%, -50%) translateY(-2px);
}
.hotspot-label.is-visited {
  color: var(--muted);
  border-color: rgba(111, 156, 116, 0.4);
}
.hotspot-label.is-visited .hs-dot {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: none;
}

/* ---------- 说话人标签 ---------- */
.speaker-tag {
  position: fixed;
  z-index: 12;
  transform: translate(-50%, -100%);
  background: rgba(12, 9, 8, 0.86);
  border: 1px solid var(--gold-dim);
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold-2);
  border-radius: 2px;
  pointer-events: none;
  white-space: nowrap;
  transition: left 0.4s var(--ease), top 0.4s var(--ease), opacity 0.3s;
}

/* ---------- 对话条 ---------- */
.dialogue {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(880px, calc(100vw - 420px));
  z-index: 14;
  background: linear-gradient(180deg, rgba(22, 17, 14, 0.965), rgba(15, 11, 9, 0.985));
  border: 1px solid var(--gold-dim);
  border-left: 2px solid var(--gold);
  padding: 18px 26px 16px;
  box-shadow: var(--shadow-lg);
  animation: dlIn 0.45s var(--ease-out) both;
}
@keyframes dlIn {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.dl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.dl-name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--gold-2);
}
.dl-role {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  border: 1px solid rgba(200, 164, 90, 0.22);
  padding: 2px 7px;
  border-radius: 2px;
}
.dl-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--paper);
  min-height: 62px;
  letter-spacing: 0.03em;
  font-family: var(--serif);
}
.dl-text .cursor {
  display: inline-block;
  width: 7px;
  height: 16px;
  background: var(--gold);
  vertical-align: -2px;
  margin-left: 3px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.dl-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.dl-next {
  background: none;
  border: 0;
  color: var(--gold);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  cursor: pointer;
  padding: 4px 0 4px 12px;
  font-family: var(--sans);
  transition: color 0.2s, opacity 0.2s;
}
.dl-next:hover {
  color: var(--gold-2);
}
.dl-next:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---------- 引导气泡 ---------- */
.bubble {
  position: fixed;
  left: 268px;
  bottom: 196px;
  width: 344px;
  z-index: 15;
  background: linear-gradient(165deg, rgba(244, 235, 217, 0.97), rgba(228, 214, 188, 0.95));
  color: #2a1d12;
  border-radius: 12px 12px 12px 3px;
  padding: 15px 18px 13px;
  box-shadow: 0 20px 46px -16px rgba(0, 0, 0, 0.8);
  animation: bubbleIn 0.5s var(--ease-out) both;
  border: 1px solid rgba(120, 88, 40, 0.25);
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateX(-18px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
.bubble::after {
  content: "";
  position: absolute;
  left: -9px;
  bottom: 24px;
  width: 16px;
  height: 16px;
  background: rgba(240, 230, 210, 0.96);
  transform: rotate(45deg);
  border-left: 1px solid rgba(120, 88, 40, 0.2);
  border-bottom: 1px solid rgba(120, 88, 40, 0.2);
}
.bubble-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #6b4a1e;
  margin-bottom: 6px;
}
.bubble-name em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #9a8158;
}
.bubble p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: #332417;
}
.bubble-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 11px;
}
.bubble .btn--ghost {
  border-color: rgba(107, 74, 30, 0.3);
  color: #6b4a1e;
}
.bubble .btn--ghost:hover {
  background: rgba(107, 74, 30, 0.08);
  border-color: rgba(107, 74, 30, 0.55);
}
.bubble .btn--gold {
  background: linear-gradient(180deg, #a8802f, #86641f);
  border-color: #b8934b;
  color: #fdf6e6;
}

/* ---------- 任务面板 ---------- */
.task {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 420px));
  z-index: 16;
  background: linear-gradient(180deg, rgba(24, 19, 15, 0.96), rgba(14, 11, 9, 0.98));
  border: 1px solid var(--gold-dim);
  border-top: 2px solid var(--gold);
  padding: 18px 26px 18px;
  box-shadow: var(--shadow-lg);
  animation: dlIn 0.45s var(--ease-out) both;
  max-height: 62vh;
  display: flex;
  flex-direction: column;
}
.task-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.task-kicker {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.task-points {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.task-title {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.6;
  margin: 2px 0 14px;
  color: var(--paper);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.task-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding-right: 4px;
}
.opt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(200, 164, 90, 0.16);
  color: var(--paper-2);
  padding: 12px 15px;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  transition: all 0.18s var(--ease);
  width: 100%;
}
.opt:hover {
  border-color: rgba(200, 164, 90, 0.5);
  background: rgba(200, 164, 90, 0.06);
}
.opt .mark {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 90, 0.4);
  display: grid;
  place-items: center;
  font-size: 10px;
  margin-top: 1px;
  color: var(--muted);
  font-family: var(--serif);
  transition: all 0.18s;
}
.opt.is-selected {
  border-color: var(--gold);
  background: rgba(200, 164, 90, 0.12);
  color: var(--paper);
}
.opt.is-selected .mark {
  background: var(--gold);
  color: #1c1004;
  border-color: var(--gold-2);
}
.opt.is-correct {
  border-color: rgba(111, 156, 116, 0.75);
  background: rgba(111, 156, 116, 0.12);
}
.opt.is-correct .mark {
  background: var(--green);
  color: #08130a;
  border-color: var(--green);
}
.opt.is-wrong {
  border-color: rgba(176, 76, 76, 0.7);
  background: rgba(176, 76, 76, 0.1);
}
.opt.is-wrong .mark {
  background: #a14545;
  color: #fff;
  border-color: #a14545;
}
.opt.is-locked {
  cursor: default;
}
.opt-feedback {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  border-left: 2px solid rgba(200, 164, 90, 0.4);
  padding-left: 10px;
}
.opt-wrap {
  display: flex;
  flex-direction: column;
}

.task-explain {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(200, 164, 90, 0.07);
  border: 1px solid rgba(200, 164, 90, 0.2);
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--paper-2);
  animation: dlIn 0.4s var(--ease-out) both;
}
.task-explain b {
  color: var(--gold-2);
  font-weight: 600;
}
.task-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(200, 164, 90, 0.14);
}
.task-hint-text {
  font-size: 12.5px;
  color: var(--gold);
  line-height: 1.7;
  margin-top: 10px;
  animation: dlIn 0.3s var(--ease-out) both;
}

/* ---------- 证据夹 ---------- */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 92vw;
  z-index: 30;
  background: linear-gradient(180deg, rgba(22, 17, 14, 0.99), rgba(12, 9, 8, 0.99));
  border-left: 1px solid var(--gold-dim);
  transform: translateX(102%);
  transition: transform 0.42s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 20px 0 0;
  box-shadow: -20px 0 60px -20px rgba(0, 0, 0, 0.8);
}
.drawer.is-open {
  transform: none;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 22px 12px;
}
.drawer-kicker {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.drawer-head h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 4px 0 0;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.drawer-note {
  font-size: 11.5px;
  color: var(--muted-2);
  padding: 0 22px 14px;
  border-bottom: 1px solid rgba(200, 164, 90, 0.12);
  line-height: 1.7;
}
.drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ev-card {
  display: flex;
  gap: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(200, 164, 90, 0.14);
  border-radius: 3px;
  padding: 12px 13px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: var(--sans);
  color: inherit;
  width: 100%;
}
.ev-card:hover {
  border-color: rgba(200, 164, 90, 0.5);
  background: rgba(200, 164, 90, 0.06);
  transform: translateX(-2px);
}
.ev-card.is-read {
  border-color: rgba(200, 164, 90, 0.3);
}
.ev-ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(200, 164, 90, 0.16), rgba(200, 164, 90, 0.04));
  border: 1px solid rgba(200, 164, 90, 0.22);
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-2);
}
.ev-body {
  flex: 1;
  min-width: 0;
}
.ev-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ev-name {
  font-size: 13.5px;
  color: var(--paper);
  letter-spacing: 0.03em;
  font-weight: 500;
}
.ev-kind {
  font-size: 9.5px;
  color: var(--muted);
  border: 1px solid rgba(200, 164, 90, 0.22);
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}
.ev-sum {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-read-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
  margin-top: 6px;
}
.ev-card.is-read .ev-read-dot {
  background: rgba(200, 164, 90, 0.25);
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 29;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.scrim.is-on {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 屏幕（全屏层） ---------- */
#screens {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  animation: screenIn 0.6s var(--ease-out) both;
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.screen--title {
  background: linear-gradient(100deg, rgba(8, 6, 5, 0.9) 0%, rgba(8, 6, 5, 0.66) 42%, rgba(8, 6, 5, 0.06) 76%);
  justify-content: space-between;
  padding: 0 clamp(24px, 7vw, 110px);
}
.title-inner {
  padding-top: clamp(60px, 14vh, 150px);
  max-width: 720px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  animation: screenIn 0.8s 0.1s var(--ease-out) both;
}
.brand-line {
  height: 1px;
  width: 46px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.brand-line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.brand-mark {
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--gold);
}
.title-main {
  font-family: var(--serif);
  font-size: clamp(54px, 8.4vw, 116px);
  line-height: 1;
  margin: 0;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: #f7efdd;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: screenIn 0.9s 0.16s var(--ease-out) both;
}
.title-sub {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 25px);
  letter-spacing: 0.5em;
  color: var(--gold-2);
  margin: 18px 0 0 6px;
  animation: screenIn 0.9s 0.26s var(--ease-out) both;
}
.title-desc {
  margin: 30px 0 0;
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--muted);
  letter-spacing: 0.06em;
  animation: screenIn 0.9s 0.36s var(--ease-out) both;
}
.title-actions {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  animation: screenIn 0.9s 0.46s var(--ease-out) both;
}
.title-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 46px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  flex-wrap: wrap;
  animation: screenIn 0.9s 0.56s var(--ease-out) both;
}
.title-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-dim);
}
.title-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 0 30px;
  flex-wrap: wrap;
}
.title-foot .sep {
  color: var(--muted-2);
}
.title-disclaim {
  font-size: 10.5px;
  color: rgba(162, 147, 124, 0.6);
  letter-spacing: 0.04em;
  margin-left: auto;
}

/* ---------- 通用屏幕布局 ---------- */
.screen--growth,
.screen--cases,
.screen--brief,
.screen--review {
  background:
    radial-gradient(ellipse at 72% 8%, rgba(200, 164, 90, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(10, 8, 6, 0.84), rgba(10, 8, 6, 0.74));
  padding: 0 clamp(20px, 5vw, 72px) 40px;
}
.screen-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 34px 0 26px;
  border-bottom: 1px solid rgba(200, 164, 90, 0.12);
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(9, 7, 6, 0.94), rgba(9, 7, 6, 0.72));
  z-index: 2;
}
.screen-head h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0;
  letter-spacing: 0.16em;
  font-weight: 500;
}
.cases-role {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  flex-wrap: wrap;
}
.role-pill {
  border: 1px solid var(--gold-dim);
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  font-family: var(--sans);
  letter-spacing: 0.08em;
}
.role-pill:hover {
  border-color: var(--gold);
  color: var(--paper-2);
}
.role-pill.is-active {
  background: var(--gold);
  color: #1c1004;
  border-color: var(--gold-2);
  font-weight: 600;
}
.role-pill.is-locked {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---------- 成长 ---------- */
.growth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.role-card {
  position: relative;
  border: 1px solid rgba(200, 164, 90, 0.16);
  background: linear-gradient(165deg, rgba(32, 25, 20, 0.7), rgba(16, 12, 10, 0.7));
  padding: 24px 22px 22px;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.role-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 90, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.role-card:hover::before {
  opacity: 1;
}
.role-card.is-locked {
  opacity: 0.55;
}
.role-card.is-current {
  border-color: rgba(200, 164, 90, 0.55);
  box-shadow: 0 24px 60px -30px rgba(200, 164, 90, 0.5);
}
.role-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.role-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 90, 0.3);
  display: grid;
  place-items: center;
  color: var(--gold);
  background: radial-gradient(circle at 30% 30%, rgba(200, 164, 90, 0.16), transparent 70%);
}
.role-icon svg {
  width: 22px;
  height: 22px;
}
.role-status {
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid rgba(200, 164, 90, 0.25);
  color: var(--muted);
}
.role-status.is-unlocked {
  color: #a8cfae;
  border-color: rgba(111, 156, 116, 0.5);
}
.role-status.is-current {
  background: var(--gold);
  color: #1c1004;
  border-color: var(--gold-2);
  font-weight: 600;
}
.role-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 4px;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.role-en {
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 12px;
}
.role-desc {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 16px;
  min-height: 68px;
}
.role-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.role-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8a6c2f, var(--gold-2));
  transition: width 0.8s var(--ease);
}
.role-unlock {
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.7;
  border-top: 1px dashed rgba(200, 164, 90, 0.16);
  padding-top: 12px;
  margin-top: 10px;
}
.role-unlock b {
  color: var(--gold);
  font-weight: 500;
}
.growth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(200, 164, 90, 0.12);
}
.growth-foot p {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.8;
  margin: 0;
  max-width: 640px;
}

/* ---------- 案件 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.case-card {
  text-align: left;
  border: 1px solid rgba(200, 164, 90, 0.16);
  background: linear-gradient(165deg, rgba(30, 23, 19, 0.8), rgba(14, 11, 9, 0.85));
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.32s var(--ease);
  font-family: var(--sans);
  color: inherit;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 164, 90, 0.5);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.case-card.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}
.case-card.is-locked:hover {
  transform: none;
}
.case-cover {
  height: 150px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.case-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(14, 11, 9, 0.95));
}
.case-cover-glyph {
  font-family: var(--serif);
  font-size: 74px;
  color: rgba(255, 255, 255, 0.1);
  letter-spacing: 0.1em;
  z-index: 1;
}
.case-cover-no {
  position: absolute;
  top: 14px;
  left: 18px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
  z-index: 2;
}
.case-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.case-body h3 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.case-sub {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 16px;
  flex: 1;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid rgba(200, 164, 90, 0.2);
  padding: 3px 7px;
  border-radius: 2px;
}
.case-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid rgba(200, 164, 90, 0.1);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}
.case-diff {
  display: flex;
  gap: 3px;
}
.case-diff i {
  width: 12px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}
.case-diff i.on {
  background: var(--gold);
}
.case-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 6, 5, 0.62);
  z-index: 3;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  padding: 20px;
  line-height: 1.9;
}

/* ---------- 简报 ---------- */
.brief-wrap {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(24px, 4vw, 64px);
  padding-top: 34px;
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}
.brief-wrap > .hud-icon {
  position: absolute;
  top: 0;
  left: -4px;
}
.brief-left {
  padding-top: 44px;
}
.brief-left h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  margin: 6px 0 10px;
  letter-spacing: 0.08em;
  font-weight: 500;
  line-height: 1.25;
}
.brief-sub {
  font-size: 14.5px;
  color: var(--gold-2);
  letter-spacing: 0.04em;
  margin: 0 0 22px;
  line-height: 1.8;
}
.brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 14px 0;
  border-top: 1px solid rgba(200, 164, 90, 0.14);
  border-bottom: 1px solid rgba(200, 164, 90, 0.14);
  margin-bottom: 22px;
}
.brief-meta div {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.brief-meta b {
  color: var(--paper-2);
  font-weight: 500;
  margin-left: 8px;
}
.brief-story {
  font-size: 14.5px;
  line-height: 2.15;
  color: var(--paper-2);
  letter-spacing: 0.03em;
  font-family: var(--serif);
  text-align: justify;
}
.brief-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.brief-focus .tag {
  padding: 5px 10px;
}
.brief-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 44px;
}
.brief-card {
  border: 1px solid rgba(200, 164, 90, 0.18);
  background: linear-gradient(165deg, rgba(28, 22, 18, 0.8), rgba(13, 10, 9, 0.8));
  padding: 18px 20px;
  border-radius: 4px;
}
.brief-card h4 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--gold-2);
  font-weight: 500;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-dim), rgba(200, 164, 90, 0.05));
}
.timeline li {
  position: relative;
  padding: 0 0 14px 20px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  border: 1px solid var(--gold);
}
.timeline li b {
  display: block;
  font-family: var(--serif);
  color: var(--paper-2);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  font-weight: 500;
}
.role-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.role-opt {
  border: 1px solid rgba(200, 164, 90, 0.2);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
  padding: 11px 12px;
  cursor: pointer;
  text-align: left;
  color: var(--muted);
  font-family: var(--sans);
  transition: all 0.2s;
}
.role-opt b {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--paper-2);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 3px;
}
.role-opt span {
  font-size: 10.5px;
  line-height: 1.5;
  display: block;
}
.role-opt:hover {
  border-color: rgba(200, 164, 90, 0.5);
}
.role-opt.is-active {
  border-color: var(--gold);
  background: rgba(200, 164, 90, 0.1);
}
.role-opt.is-active b {
  color: var(--gold-2);
}
.role-opt.is-locked {
  opacity: 0.4;
  cursor: not-allowed;
}
.side-pick {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.side-pick > span {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.side-btns {
  display: flex;
  gap: 6px;
}
.side-btn {
  border: 1px solid rgba(200, 164, 90, 0.22);
  background: none;
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  transition: all 0.2s;
}
.side-btn.is-active {
  background: var(--gold);
  color: #1c1004;
  border-color: var(--gold-2);
  font-weight: 600;
}
.brief-tip {
  font-size: 10.5px;
  color: var(--muted-2);
  line-height: 1.7;
  margin: 12px 0 0;
}

/* ---------- 复盘 ---------- */
.review-wrap {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 44px 0 30px;
}
.review-head {
  border-bottom: 1px solid rgba(200, 164, 90, 0.15);
  padding-bottom: 22px;
  margin-bottom: 26px;
}
.review-head h2 {
  font-family: var(--serif);
  font-size: 38px;
  margin: 6px 0 12px;
  letter-spacing: 0.16em;
  font-weight: 500;
}
.review-head p {
  margin: 0;
  font-size: 15px;
  color: var(--gold-2);
  font-family: var(--serif);
  letter-spacing: 0.04em;
  line-height: 1.9;
}
.review-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 20px;
}
.review-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rcard {
  border: 1px solid rgba(200, 164, 90, 0.16);
  background: linear-gradient(165deg, rgba(28, 22, 18, 0.7), rgba(13, 10, 9, 0.75));
  padding: 20px 22px;
  border-radius: 4px;
}
.rcard h4 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 13.5px;
  letter-spacing: 0.18em;
  color: var(--gold-2);
  font-weight: 500;
}
.rcard ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rcard ul li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.95;
  color: var(--paper-2);
  margin-bottom: 10px;
}
.rcard ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.rule {
  border-left: 2px solid rgba(200, 164, 90, 0.4);
  padding: 2px 0 2px 12px;
  margin-bottom: 14px;
}
.rule b {
  display: block;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  font-weight: 500;
}
.rule p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}
.rcard--alt {
  border-color: rgba(122, 143, 166, 0.3);
  background: linear-gradient(165deg, rgba(26, 32, 38, 0.6), rgba(12, 14, 16, 0.7));
}
.rcard--alt h4 {
  color: #a9c0d4;
}
.rcard--alt p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--paper-2);
}
.rcard--score {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
}
.rcard--score h4 {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}
.score-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(var(--gold) 0deg, rgba(255, 255, 255, 0.07) 0deg);
  transition: background 1s var(--ease);
}
.score-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #14100e;
  border: 1px solid rgba(200, 164, 90, 0.16);
}
.score-ring span {
  position: relative;
  font-family: var(--serif);
  font-size: 34px;
  color: var(--gold-2);
  line-height: 1;
}
.score-ring em {
  position: absolute;
  bottom: 26px;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.score-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.score-stats div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  border-bottom: 1px dashed rgba(200, 164, 90, 0.12);
  padding-bottom: 7px;
}
.score-stats b {
  color: var(--paper-2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.tips li {
  font-size: 12.5px !important;
  color: var(--muted) !important;
}
.quiz-item {
  margin-bottom: 16px;
}
.quiz-q {
  font-size: 13px;
  line-height: 1.8;
  color: var(--paper-2);
  margin-bottom: 9px;
}
.quiz-opt {
  display: flex;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
  padding: 8px 11px;
  border: 1px solid rgba(200, 164, 90, 0.14);
  border-radius: 2px;
  margin-bottom: 6px;
  cursor: pointer;
  background: none;
  text-align: left;
  width: 100%;
  font-family: var(--sans);
  transition: all 0.18s;
}
.quiz-opt:hover {
  border-color: rgba(200, 164, 90, 0.4);
}
.quiz-opt.is-correct {
  border-color: rgba(111, 156, 116, 0.6);
  background: rgba(111, 156, 116, 0.1);
  color: #b8d8bd;
}
.quiz-opt.is-wrong {
  border-color: rgba(176, 76, 76, 0.6);
  background: rgba(176, 76, 76, 0.08);
  color: #d8a8a8;
}
.quiz-exp {
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--muted-2);
  padding-left: 10px;
  border-left: 2px solid rgba(200, 164, 90, 0.3);
  margin-top: 8px;
}
.review-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(200, 164, 90, 0.12);
}
.disclaim {
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--muted-2);
  max-width: 720px;
  margin: 0;
}
.review-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(4, 3, 3, 0.8);
  padding: 24px;
  animation: fadeIn 0.25s both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-card {
  width: min(560px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #1c1613, #100c0a);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s var(--ease-out) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(200, 164, 90, 0.14);
  position: sticky;
  top: 0;
  background: #1a1411;
}
.modal-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--paper);
}
.modal-body {
  padding: 20px 22px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--paper-2);
}
.modal-body h5 {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.14em;
  margin: 18px 0 8px;
  font-weight: 500;
}
.modal-body h5:first-child {
  margin-top: 0;
}
.modal-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}
.modal-body .hl {
  color: var(--gold-2);
}
.ev-detail-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  border: 1px solid rgba(200, 164, 90, 0.3);
  padding: 2px 7px;
  border-radius: 2px;
  color: var(--muted);
  margin-right: 8px;
}
.ev-detail-block {
  border-left: 2px solid rgba(200, 164, 90, 0.35);
  padding-left: 12px;
  margin: 14px 0;
}
.ev-detail-block b {
  color: var(--gold-2);
  font-size: 12px;
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.ev-detail-block p {
  margin: 0;
  font-size: 12.5px;
}
.modal-foot {
  padding: 14px 22px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.gloss-list {
  columns: 2;
  column-gap: 26px;
}
.gloss-item {
  break-inside: avoid;
  margin-bottom: 18px;
}
.gloss-item b {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold-2);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}
.gloss-item p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--muted);
}
.gloss-cat {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--gold);
  border: 1px solid rgba(200, 164, 90, 0.24);
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: 1px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: 84px;
  transform: translate(-50%, -14px);
  z-index: 70;
  background: rgba(18, 14, 11, 0.95);
  border: 1px solid var(--gold-dim);
  border-left: 2px solid var(--gold);
  color: var(--paper-2);
  padding: 10px 18px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-md);
  max-width: 70vw;
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(200, 164, 90, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 164, 90, 0.4);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .dialogue,
  .task {
    width: min(720px, calc(100vw - 120px));
  }
  .bubble {
    left: 260px;
    width: 300px;
  }
  .stepper {
    max-width: 560px;
  }
  .step-node span {
    display: none;
  }
  .step-node.is-active span {
    display: inline;
  }
}

@media (max-width: 900px) {
  .hud {
    height: 58px;
    padding: 0 14px;
    gap: 10px;
  }
  .hud-case {
    display: none;
  }
  .prof {
    display: none;
  }
  .dialogue,
  .task {
    width: calc(100vw - 28px);
    bottom: 14px;
    padding: 14px 18px;
  }
  .bubble {
    left: 14px;
    bottom: 240px;
    width: min(330px, calc(100vw - 28px));
  }
  .brief-wrap,
  .review-grid,
  .growth-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }
  .review-grid {
    gap: 16px;
  }
  .screen--title {
    padding: 0 24px;
  }
  .title-desc br {
    display: none;
  }
  .gloss-list {
    columns: 1;
  }
  .drawer {
    width: 100%;
  }
  .rcard--score {
    grid-template-columns: 100px 1fr;
  }
  .score-ring {
    width: 100px;
    height: 100px;
  }
  .score-ring span {
    font-size: 28px;
  }
  .score-ring em {
    bottom: 20px;
  }
}

@media (max-width: 560px) {
  .title-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .stepper .step-line {
    width: 12px;
  }
  .task-body {
    max-height: 40vh;
  }
  .brief-left,
  .brief-right {
    padding-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
