/* ============================================================
   LoomRoom · room.css
   主舞台布局 / 圆桌与座次 / 发言流气泡 / 声波律动 / 澄清问答卡片
   ============================================================ */

.stage {
  display: grid;
  grid-template-columns: minmax(360px, 44%) minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

/* ══════════════ 左侧：圆桌 ══════════════ */
.room-pane {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 18px 14px;
  border-right: 1px solid var(--line-soft);
  background:
    radial-gradient(560px 300px at 50% 34%, rgba(200,68,42,.07), transparent 72%),
    linear-gradient(180deg, var(--panel), var(--panel));
  min-height: 0;
}

.round-table {
  position: relative;
  width: min(100%, 58vh);
  aspect-ratio: 1 / 1;
  max-height: 100%;
  flex: none;
}

/* 桌面：木纹椭圆 */
.table-hub {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 56%; height: 44%;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 8% 6%;
  text-align: center;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(200,68,42,.18), transparent 62%),
    radial-gradient(140% 120% at 50% 120%, #2c2016, var(--panel-2) 70%);
  border: 1px solid rgba(200,68,42,.22);
  box-shadow:
    inset 0 1px 0 rgba(120,240,255,.14),
    inset 0 -18px 34px rgba(0,0,0,.55),
    0 26px 60px rgba(0,0,0,.55),
    0 0 60px rgba(200,68,42,.05);
}
.table-hub::after {
  /* 台灯照亮桌心 */
  content: ""; position: absolute; inset: 12% 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200,68,42,.13), transparent 76%);
  pointer-events: none;
}
.hub-topic {
  font-size: var(--fs-2); color: var(--text); font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  max-width: 100%;
}
.hub-meta { font-size: var(--fs-1); color: rgba(120,240,255,.62); display: flex; gap: 5px; }
.dot-sep { opacity: .5; }
.hub-status { font-size: var(--fs-1); color: var(--muted); }
.table-hub[data-status="running"] .hub-status { color: var(--lamp); }

/* 座次（JS 绝对定位在椭圆上） */
.seats { position: absolute; inset: 0; }
.seat {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 92px; padding: 6px 4px 5px;
  border: 1px solid transparent; border-radius: var(--r);
  background: transparent; color: inherit; text-align: center;
  transition: background .16s, border-color .16s, transform .16s;
}
.seat:hover { background: var(--tint-2); border-color: var(--line-soft); }
.seat[aria-pressed="true"] { background: var(--lamp-soft); border-color: var(--lamp-line); }
.seat-avatar {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--fs-7); line-height: 1;
  background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
  border: 2px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.seat[data-provider="ark"]      .seat-avatar { border-color: rgba(30,111,255,.55); }
.seat[data-provider="deepseek"] .seat-avatar { border-color: rgba(122,140,255,.55); }
.seat[data-provider="minimax"]  .seat-avatar { border-color: rgba(200,68,42,.55); }
.seat-avatar .provider-dot {
  position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--panel);
}
.seat[data-provider="ark"] .provider-dot { background: var(--p-ark); }
.seat[data-provider="deepseek"] .provider-dot { background: var(--p-deepseek); }
.seat[data-provider="minimax"] .provider-dot { background: var(--p-minimax); }
.seat-name { font-size: var(--fs-2); font-weight: 650; color: var(--text); max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-role { font-size: var(--fs-1); color: var(--muted); max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-avatar .host-badge { position: absolute; left: -4px; top: -6px; font-size: var(--fs-1); }

/* 正在发言 */
.seat.speaking .seat-avatar {
  border-color: var(--lamp);
  transform: none;
  box-shadow: none;
}
.seat.speaking .seat-name { color: var(--text); }
/* 被打断过 */
.seat.seat-cut .seat-avatar { filter: saturate(.5); }

/* 声波律动（发言中 / 播放中） */
.waves {
  position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%);
  display: none; align-items: flex-end; gap: 2px; height: 16px;
  padding: 0 4px;
}
.seat.speaking .waves, .seat.audio-on .waves { display: flex; }
.waves i {
  display: block; width: 3px; border-radius: 2px; background: var(--lamp);
  height: 4px; animation: wave 900ms ease-in-out infinite;
}
.waves i:nth-child(1) { animation-delay: 0ms; }
.waves i:nth-child(2) { animation-delay: 120ms; }
.waves i:nth-child(3) { animation-delay: 240ms; }
.waves i:nth-child(4) { animation-delay: 360ms; }
.waves i:nth-child(5) { animation-delay: 480ms; }
.seat.audio-on .waves i { background: var(--cool); }
@keyframes wave {
  0%, 100% { height: 4px; opacity: .6; }
  50%      { height: 15px; opacity: 1; }
}

/* 点名发言操作条 */
.seat-actions {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: var(--shadow-2); font-size: var(--fs-2); color: var(--text-2);
  z-index: 5; white-space: nowrap;
  max-width: min(94%, 460px);
}
.seat-actions .sa-name { color: var(--text); font-weight: 600; }
.mode-hint {
  font-size: var(--fs-1); color: var(--faint); text-align: center;
  max-width: 46ch; padding: 0 6px; flex: none;
}

/* ══════════════ 右侧：发言流 ══════════════ */
.stream-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: linear-gradient(180deg, var(--panel), var(--panel)); }
.stream-head {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 10px 18px; border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-2); color: var(--muted);
}
.stream-title { font-weight: 600; letter-spacing: 0; color: var(--text-2); }
.conn-badge { margin-left: auto; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-1); }
.conn-badge[data-state="on"] { color: var(--ok); border-color: rgba(69, 121, 90, .30); background: rgba(69, 121, 90, .10); }
.conn-badge[data-state="mock"] { color: var(--lamp); border-color: var(--lamp-line); background: var(--lamp-soft); }
.conn-badge[data-state="off"] { color: var(--danger); border-color: rgba(217, 113, 107, .32); background: var(--danger-soft); }
.speaking-badge { color: var(--lamp); font-size: var(--fs-1); }

.transcript {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 18px 18px 26px;
  display: flex; flex-direction: column; gap: 14px;
  scroll-behavior: smooth;
}
.stream-empty {
  position: absolute; inset: var(--head-h) 0 var(--dock-h) 38%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; pointer-events: none; text-align: center; padding: 20px;
}
.stream-empty .empty-art { font-size: var(--fs-8); opacity: .5; }
.empty-title { font-size: var(--fs-4); color: var(--text-2); }
.empty-sub { font-size: var(--fs-2); color: var(--faint); max-width: 38ch; }

/* 气泡 */
.bubble {
  display: flex; gap: 11px; max-width: 92%;
  animation: bubblein .22s cubic-bezier(.2,.8,.3,1);
}
@keyframes bubblein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bubble.agent { align-self: flex-start; }
.bubble.user  { align-self: flex-end; flex-direction: row-reverse; max-width: 82%; }
.bubble.sys   { align-self: center; max-width: 100%; }

.b-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--fs-4);
  background: var(--avatar-bg);
  border: 1px solid var(--line-soft);
}
.bubble.user .b-avatar { background: var(--panel-2); border-color: var(--line); }

.b-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bubble.user .b-main { align-items: flex-end; }
.b-head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-2); color: var(--muted); flex-wrap: wrap; }
.bubble.user .b-head { flex-direction: row-reverse; }
.b-name { color: var(--text); font-weight: 600; font-size: var(--fs-4); }
.b-role { color: var(--faint); }
.b-round { padding: 0 7px; border-radius: 999px; border: 1px solid var(--line-soft); font-size: var(--fs-1); }
.b-time { color: var(--faint); font-family: var(--mono); font-size: var(--fs-1); }
.b-stance { font-size: var(--fs-1); padding: 0 7px; border-radius: 999px; background: transparent; border: 1px solid var(--line-soft); color: var(--muted); }
.b-stance[data-s="skeptical"] { color: var(--cool); }
.b-stance[data-s="adversarial"] { color: var(--danger); }
.b-stance[data-s="supportive"] { color: var(--ok); }

.b-body {
  padding: 2px 0; border-radius: 0;
  background: transparent; border: 0;
  font-size: var(--fs-4); line-height: 1.78; white-space: pre-wrap; word-break: break-word;
  color: var(--text);
  box-shadow: none;
}
.bubble.user .b-body {
  border-radius: var(--r);
  padding: 10px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  color: var(--text);
}
.bubble.sys .b-body { background: transparent; border: 0; box-shadow: none; font-size: var(--fs-2); color: var(--faint); padding: 2px 8px; }

/* 流式光标 */
.bubble.streaming .b-body::after {
  content: ""; display: inline-block; width: 7px; height: 15px;
  margin-left: 3px; vertical-align: -2px;
  background: var(--lamp); border-radius: 1px;
  animation: caret .9s steps(2) infinite;
}
@keyframes caret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

/* 被打断标记 */
.bubble.interrupted .b-body { border-left: 2px solid rgba(217, 113, 107, .5); padding-left: 12px; }
.b-cut {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-1); color: var(--danger); background: var(--danger-soft);
  border: 1px solid rgba(217, 113, 107, .3); border-radius: 999px; padding: 1px 8px;
  align-self: flex-start;
}

/*
 * 「已收短」是中性的，不该用警示色。
 *
 * 红色留给真正的故障（硬截断 = 话停在半句，那才是用户抱怨的"说一半"）。
 * 实测真出现过误报：一条在**句末**收尾、意思完整的发言被标成"被硬截断"，
 * 用户会以为专家又说了一半 —— 假警报多了，真警报就没人看了。
 */
.b-cut.soft {
  color: var(--muted);
  background: var(--tint-2);
  border-color: var(--line);
}

/*
 * 依据强度角标（契约 §13.5 信任原则）。
 * 设计意图：只有"需核实"给警示色，其余一律中性。
 * 如果每个角标都醒目，用户就会全部忽略——那这个功能就等于不存在。
 */
.b-ep {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-1); border-radius: 999px; padding: 1px 8px;
  border: 1px solid transparent; cursor: help; white-space: nowrap;
}
.b-ep:empty { display: none; }
.b-ep.ep-grounded { color: var(--ok); background: rgba(40,220,140,.14); border-color: rgba(40,220,140,.32); }
.b-ep.ep-none     { color: var(--faint); background: var(--tint-2); border-color: var(--hairline); }
.b-ep.ep-spec     { color: #cfc08a; background: rgba(200,68,42,.13); border-color: rgba(200,68,42,.28); }
.b-ep.ep-est      { color: var(--muted); background: var(--tint-2); border-color: var(--hairline-strong); }
/* 仅此一档用警示色 */
.b-ep.ep-warn     { color: var(--warn); background: rgba(200,68,42,.16); border-color: rgba(200,68,42,.42); }

/* 气泡脚：播放 / 引用资料 */
.b-foot { display: flex; align-items: center; gap: 10px; font-size: var(--fs-1); color: var(--muted); }
.bubble.user .b-foot { flex-direction: row-reverse; }
.b-link {
  background: transparent; border: 0; padding: 0; color: var(--faint);
  font-size: var(--fs-1); display: inline-flex; align-items: center; gap: 4px;
}
.b-link:hover { color: var(--lamp); }
.b-link.on { color: var(--cool); }
.b-link.playing { color: var(--cool); }

.b-sources {
  display: none; flex-direction: column; gap: 6px;
  padding: 9px 11px; border-radius: var(--r-sm);
  background: rgba(156, 184, 174,.05); border: 1px solid rgba(156, 184, 174,.22);
  font-size: var(--fs-2); color: var(--text-2);
}
.b-sources.open { display: flex; }
.b-src-title { font-size: var(--fs-1); color: var(--cool); letter-spacing: .04em; }
.b-src { padding-left: 10px; border-left: 2px solid rgba(156, 184, 174,.3); }
.b-src-name { color: #cfe9e6; font-weight: 600; font-size: var(--fs-1); }
.b-src-text { color: var(--muted); font-size: var(--fs-1); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 播放中的气泡头声波 */
.b-eq { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.bubble.playing .b-eq { display: inline-flex; }
.b-eq i { width: 2px; background: var(--cool); height: 3px; border-radius: 1px; animation: wave 800ms ease-in-out infinite; }
.b-eq i:nth-child(2) { animation-delay: 130ms; }
.b-eq i:nth-child(3) { animation-delay: 260ms; }
.b-eq i:nth-child(4) { animation-delay: 390ms; }

/* ══════════════ 澄清问答卡片 ══════════════ */
/* 手机：背景/资料块折叠成一行（默认收起，点开关展开） */
.clarify-bg-toggle { display: none; }
@media (max-width: 820px) {
  .clarify-bg-toggle {
    display: inline-flex; align-items: center; min-height: 44px; width: 100%;
    background: transparent; border: 0; padding: 0; text-align: left;
    font-size: var(--fs-2); color: var(--lamp-strong); cursor: pointer;
  }
  .clarify-bg.is-collapsed { padding: 4px 12px; }
  .clarify-bg.is-collapsed .clarify-bg-label,
  .clarify-bg.is-collapsed textarea,
  .clarify-bg.is-collapsed .clarify-bg-actions { display: none; }
}
.clarify-head { margin-bottom: 6px; }
.clarify-sub { font-size: var(--fs-2); color: var(--muted); margin-top: 4px; }
.clarify-questions { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
/* 分步澄清：进度行（上一题 + 圆点 + 1/3） */
.q-nav { display: flex; align-items: center; gap: 10px; font-size: var(--fs-1); color: var(--faint); }
.q-nav-back { background: transparent; border: 0; padding: 2px 0; color: var(--muted); font-size: var(--fs-2); cursor: pointer; }
.q-nav-back:hover { color: var(--text); }
.q-dots { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.q-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.q-dots i.on { background: var(--lamp-strong); box-shadow: 0 0 0 3px var(--lamp-soft); }
.q-step-text { font-variant-numeric: tabular-nums; }
.q-card {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel-2); padding: 14px 16px;
  animation: rise .2s ease-out;
}
.q-title { font-size: var(--fs-4); font-weight: 620; color: var(--text); }
.q-why { font-size: var(--fs-2); color: var(--faint); margin-top: 3px; }
.q-why::before { content: "为什么问："; color: var(--lamp); opacity: .8; }
.q-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.opt-btn {
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel-2); color: var(--text-2);
  padding: 7px 14px; font-size: var(--fs-3);
  transition: background .14s, border-color .14s, color .14s, transform .06s;
}
.opt-btn:hover { background: var(--panel-3); color: var(--text); border-color: var(--line); }
.opt-btn.on { background: var(--lamp-soft); border-color: var(--lamp-line); color: var(--lamp); font-weight: 620; }
.opt-btn.on::before { content: "✓ "; }
.q-custom { display: flex; gap: 8px; margin-top: 9px; }
.q-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: var(--fs-1); color: var(--faint); }
.q-foot .q-default { white-space: normal; text-align: left; line-height: 1.5; }
@media (max-width: 560px) { .q-foot .q-default { flex: 1 1 100%; } }
.q-default { background: transparent; border: 0; color: var(--faint); text-decoration: underline dotted; padding: 0; font-size: var(--fs-1); }
.q-default:hover { color: var(--lamp); }
.q-default.on { color: var(--lamp); }
.q-badge { margin-left: auto; font-size: var(--fs-1); color: var(--lamp); }

.spec-preview {
  margin-top: 16px; padding: 13px 15px; border-radius: var(--r);
  background: rgba(156, 184, 174,.05); border: 1px solid rgba(156, 184, 174,.25);
  font-size: var(--fs-3); color: var(--text-2);
}
.spec-preview h3 { font-size: var(--fs-2); color: var(--cool); letter-spacing: .06em; margin-bottom: 6px; }
.spec-row { display: flex; gap: 8px; margin: 3px 0; }
.spec-k { color: var(--faint); flex: none; min-width: 5.5em; }
.spec-v { color: var(--text-2); }

/* ══════════════ 响应式：圆桌退化列表 ══════════════ */
@media (max-width: 900px) {
  /* minmax(0,1fr) 很关键：纯 1fr 会被长文本撑破屏幕，导致整页横向溢出 */
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .room-pane { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 10px 10px 6px; min-width: 0; }
  .round-table { width: 100%; aspect-ratio: auto; display: flex; flex-direction: column; gap: 8px; }
  .table-hub {
    position: static; transform: none; width: 100%; height: auto;
    border-radius: var(--r); padding: 9px 12px; flex-direction: row; gap: 8px;
    align-items: center; justify-content: flex-start; text-align: left;
  }
  .hub-topic { -webkit-line-clamp: 1; }
  .seats { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; }
  .seat { position: static; transform: none; width: 74px; flex: none; }
  .seat-avatar { width: 42px; height: 42px; font-size: var(--fs-6); }
  .seat-name { font-size: var(--fs-1); max-width: 70px; }
  .seat-role { display: none; }
  /* 点名操作条改成左右贴边，避免溢出屏幕 */
  .seat-actions { left: 8px; right: 8px; transform: none; justify-content: center; }
  .stream-empty { position: static; inset: auto; padding: 40px 20px; }
  .transcript { padding: 12px 12px 18px; }
  .bubble { max-width: 100%; }
  .b-body { font-size: var(--fs-4); }
  .b-role { display: none; }
  .drawer-head-actions { flex-wrap: wrap; }
  .inline-form, .field-row { flex-wrap: wrap; }
}

/* 历史会议列表（panel-meetings） */
.meetings-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mtg-item {
  display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left;
  background: var(--tint); border: 1px solid var(--hairline);
  border-radius: 10px; padding: 10px 12px; cursor: pointer; color: inherit;
  transition: background .12s ease, border-color .12s ease;
}
.mtg-item:hover { background: var(--tint-2); border-color: var(--hairline-strong); }
.mtg-item.on { border-color: rgba(200,68,42,.5); background: rgba(200,68,42,.08); }
.mtg-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mtg-title { font-size: var(--fs-3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtg-status {
  flex: none; font-size: var(--fs-1); padding: 1px 7px; border-radius: 999px;
  background: var(--tint-2); color: var(--faint);
}
.mtg-status[data-s="running"] { color: var(--ok); background: rgba(40,220,140,.15); }
.mtg-status[data-s="paused"]  { color: var(--warn); background: rgba(200,68,42,.16); }
.mtg-status[data-s="ended"]   { color: var(--faint); }
.mtg-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: var(--fs-1); color: var(--faint); }
.mtg-cur { color: var(--warn); }

/* ══════════════ 发言配图（服务端渲染的 SVG 图表）══════════════ */
.b-chart {
  margin: 8px 0 4px;
  padding: 8px 10px 6px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--tint);
  cursor: zoom-in;
  max-width: 460px;
}
.b-chart:hover { border-color: var(--line); background: var(--tint-2); }
.b-chart-cap {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: var(--fs-1); color: var(--muted); margin-bottom: 4px;
}
.b-chart-title { color: var(--text-2); font-weight: 600; }
.b-chart-unit { font-size: var(--fs-1); color: var(--faint); }
.b-chart-svg svg { display: block; width: 100%; height: auto; }
.b-chart-note { margin-top: 4px; font-size: var(--fs-1); color: var(--muted); line-height: 1.5; }

.chart-modal {
  width: min(760px, 100%);
  max-height: min(88dvh, 900px);
  overflow: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); padding: 20px 22px;
  animation: rise .22s cubic-bezier(.2,.8,.3,1);
}
.chart-modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.chart-modal-head h2 { font-size: var(--fs-5); flex: 1; }
.chart-modal-svg svg { display: block; width: 100%; height: auto; }
.chart-modal-note { margin-top: 8px; font-size: var(--fs-2); color: var(--text-2); }
.chart-modal-hint { margin-top: 10px; font-size: var(--fs-1); color: var(--faint); }

/* 退席态（room.js 的 a.left 视觉早就有，第 10 轮才真正有数据驱动） */
.seat.fx-tile[data-state="left"] { opacity: .55; filter: saturate(.6); }
.seat.fx-tile[data-state="left"] .fx-avatar { filter: grayscale(.55); }
.sa-left-tag {
  font-size: var(--fs-1); color: var(--muted); padding: 2px 8px; border-radius: 999px;
  border: 1px dashed var(--line); background: var(--tint);
}
/*
 * B2 数字溯源标记（气泡正文里的数字）。
 *
 * 设计纪律：**可见但克制**。
 *  · 未溯源：虚线下划 + 中性偏暖的底色，不写红字、不加感叹号 ——
 *    一屏里出现十几个红字，用户会全部忽略（和 §13.5 角标同一条纪律）；
 *  · 已溯源：细点线下划，说明"这个数有出处"，点开看来源。
 * 两种标记都不改字号/行高（underline 用 text-decoration，不占盒模型），所以正文排版不会被撑开。
 */
.b-num {
  text-decoration: underline dotted rgba(156, 184, 174, .55);
  text-underline-offset: 3px;
  cursor: pointer;
}
.b-num.has-src:hover { text-decoration-color: var(--lamp); }
.b-num.unsourced {
  text-decoration: underline dashed rgba(200,68,42, .75);
  text-underline-offset: 3px;
  background: rgba(200,68,42, .10);
  border-radius: 3px;
  cursor: help;
}
.b-num.has-src:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 1px;
  border-radius: 3px;
}
/* 点开来源后就地插的一行（不浮层：浮层在滚动容器里会飘出可视区） */
.b-num-note {
  margin-top: 6px;
  font-size: var(--fs-1);
  color: var(--muted);
  border-left: 2px solid rgba(156, 184, 174, .45);
  padding-left: 8px;
  white-space: pre-wrap;
}
