/* ============ 变量 ============ */
:root {
  --ink: #0d1b2a;
  --ink-2: #1b263b;
  --ink-3: #415a77;
  --paper: #f5f7fb;
  --card: #ffffff;
  --amber: #F59E0B;
  --amber-dark: #b45309;
  --amber-soft: #fef3c7;
  --line: #e5e7eb;
  --text: #0d1b2a;
  --text-soft: #6b7280;
  --danger: #dc2626;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 6px 24px rgba(13, 27, 42, 0.08);
}

/* ============ 基础 ============ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 40%, var(--paper) 60%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

.app-shell {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 16px 120px;
}

.page { display: none; animation: fade .25s ease; }
.page.active { display: block; }
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ============ 首页 ============ */
.hero { color: #fff; padding: 24px 8px 16px; }
.logo { display: flex; gap: 14px; align-items: center; }
.logo-mark {
  width: 52px; height: 52px;
  background: var(--amber); color: var(--ink);
  border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 26px; letter-spacing: -1px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, .35);
}
.logo-text h1 { margin: 0; font-size: 22px; letter-spacing: 2px; }
.logo-text .tagline { margin: 2px 0 0; font-size: 13px; opacity: .75; }
.lead { margin: 18px 4px 0; font-size: 14px; line-height: 1.7; opacity: .9; }

.meta-card {
  margin-top: 28px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.meta-card h2 { margin: 0 0 14px; font-size: 18px; color: var(--ink); }
.meta-card .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.meta-card label { display: flex; flex-direction: column; font-size: 13px; color: var(--text-soft); }
.meta-card label span { margin-bottom: 6px; }
.meta-card input, .meta-card select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.meta-card input:focus, .meta-card select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}
.foot-note { font-size: 12px; color: var(--text-soft); margin: 12px 2px 0; line-height: 1.6; }

/* ============ 通用按钮 ============ */
.btn-primary {
  width: 100%;
  margin-top: 18px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, .35);
  transition: transform .05s ease, box-shadow .15s;
}
.btn-primary:active { transform: scale(.98); }
.btn-primary[disabled] { opacity: .6; cursor: not-allowed; }

.ghost-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}
.ghost-btn.dark { color: var(--ink-3); border-color: var(--line); }

/* ============ 答题页 ============ */
.quiz-head {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  padding: 10px 2px 18px;
}
.progress-wrap { flex: 1; }
.progress-info {
  font-size: 13px; margin-bottom: 6px; opacity: .9;
  text-align: right;
}
.progress-bar {
  width: 100%; height: 8px;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--amber);
  transition: width .35s ease;
}

.question-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  margin-top: 8px;
}
.q-no {
  display: inline-block;
  font-size: 12px;
  color: var(--amber-dark);
  background: var(--amber-soft);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.q-title { margin: 0 0 20px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.q-options { display: flex; flex-direction: column; gap: 10px; }
.q-option {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  transition: border-color .15s, background .15s, transform .05s;
  display: flex; gap: 12px; align-items: center;
}
.q-option .opt-idx {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  background: var(--paper);
  color: var(--ink-3);
  flex-shrink: 0;
}
.q-option:hover { border-color: var(--amber); }
.q-option.active {
  border-color: var(--amber);
  background: var(--amber-soft);
}
.q-option.active .opt-idx { background: var(--amber); color: var(--ink); }
.q-option:active { transform: scale(.99); }

/* ============ 报告页 ============ */
.report-head {
  color: #fff;
  padding: 24px 4px 16px;
}
.report-head h2 { margin: 0; font-size: 22px; letter-spacing: 1px; }
.report-back { margin-bottom: 12px; }
.report-sub { margin: 6px 0 0; font-size: 13px; opacity: .85; }
.watermark {
  margin-top: 10px;
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border: 1px dashed rgba(255,255,255,.5);
  border-radius: 6px;
  color: rgba(255,255,255,.7);
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 14px; font-size: 16px; color: var(--ink); }

.primary-row { display: flex; gap: 14px; align-items: center; }
.primary-score {
  width: 86px; height: 86px;
  background: conic-gradient(var(--amber) 0%, var(--amber) calc(var(--p,0)*1%), var(--line) calc(var(--p,0)*1%), var(--line) 100%);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
}
.primary-score::before {
  content: ""; position: absolute; inset: 10px;
  background: #fff; border-radius: 50%;
}
.primary-score .inner {
  position: relative; z-index: 1;
  text-align: center;
  font-weight: 700;
}
.primary-score .inner .num { font-size: 20px; color: var(--ink); }
.primary-score .inner .unit { font-size: 11px; color: var(--text-soft); display: block; }
.primary-info { flex: 1; min-width: 0; }
.primary-info .name { font-size: 20px; font-weight: 700; color: var(--ink); }
.primary-info .desc { margin-top: 4px; font-size: 13px; color: var(--text-soft); line-height: 1.6; }
.level-badge {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  font-size: 12px; font-weight: 500;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #2e7d32;
  vertical-align: middle;
}
/* 不同 level 的徽章色调 */
.level-badge[data-lv="是"] { background: #ffebee; color: #c62828; }
.level-badge[data-lv="基本是平和质"] { background: #e8f5e9; color: #2e7d32; }
.level-badge[data-lv="基本是"] { background: #fff3e0; color: #ef6c00; }
.level-badge[data-lv="倾向是"] { background: #fff8e1; color: #f9a825; }
.level-badge[data-lv="非平和质"], .level-badge[data-lv="基本否"] { background: #f5f5f5; color: #757575; }

.aux-list { display: flex; flex-direction: column; gap: 12px; }
.aux-item { display: grid; grid-template-columns: 72px 1fr 52px; align-items: center; gap: 10px; }
.aux-item .name { font-size: 14px; color: var(--ink); }
.aux-bar {
  height: 10px; background: var(--paper); border-radius: 999px; overflow: hidden;
}
.aux-bar > span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--amber-dark), var(--amber));
  border-radius: 999px;
  transition: width .6s ease;
}
.aux-item .pct { text-align: right; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.recommend-list { display: flex; flex-direction: column; gap: 12px; }
.rec-item {
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}
.rec-item h4 { margin: 0 0 4px; font-size: 14px; color: var(--amber-dark); }

.obs-list { display: flex; flex-direction: column; gap: 10px; }
.obs-item {
  padding: 10px 12px;
  background: var(--paper);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
}
.obs-item .q { color: var(--ink-3); }
.obs-item .a { color: var(--amber-dark); font-weight: 600; }
.obs-item .a::before { content: "✓ "; color: var(--amber); }

.report-actions { display: flex; gap: 10px; margin-top: 8px; }
.report-actions .btn-primary { margin-top: 0; flex: 1; }
.report-actions .ghost-btn.dark {
  flex: 0 0 120px;
  border-color: var(--line);
  color: var(--ink-3);
}

/* ============ 免责声明 ============ */
.disclaimer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.7);
  background: rgba(13, 27, 42, .85);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  line-height: 1.6;
  z-index: 5;
}

/* ============ Mask ============ */
.mask {
  position: fixed; inset: 0;
  background: rgba(13,27,42,.55);
  display: grid; place-items: center;
  z-index: 100;
}
.mask.hidden { display: none; }
.mask-card {
  background: #fff; color: var(--ink);
  padding: 22px 28px;
  border-radius: 14px;
  text-align: center;
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.spinner {
  width: 32px; height: 32px; margin: 0 auto 10px;
  border: 3px solid var(--line);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mask-card p { margin: 0; font-size: 14px; color: var(--ink); }

/* 错误变体 */
.mask.error .spinner { display: none; }
.mask.error .mask-card { border: 1px solid #fecaca; }

/* ============ 桌面端居中 ============ */
@media (min-width: 720px) {
  body { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 35%, #eef1f7 100%); }
  .app-shell { padding-top: 40px; }
}

/* 超小屏 */
@media (max-width: 360px) {
  .meta-card .grid { grid-template-columns: 1fr; }
}

/* ===== Phase B1 形色辨识卡片 ===== */
.face-card {
  background: linear-gradient(135deg, #1a2332 0%, #0d1b2a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 20px;
  color: #e6ecf3;
}
.face-card h2 {
  font-size: 16px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-beta {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.face-hint {
  font-size: 12.5px;
  color: #9aa5b1;
  margin: 0 0 14px;
  line-height: 1.6;
}
.btn-secondary {
  width: 100%;
  padding: 11px;
  background: rgba(46, 139, 87, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(46, 139, 87, 0.25);
  border-color: #4ade80;
}
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: wait;
}
.face-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.face-result.hidden, .face-error.hidden { display: none; }
.face-snapshot-wrap {
  text-align: center;
  margin-bottom: 14px;
}
#face-snapshot {
  max-width: 100%;
  max-height: 280px;
  border-radius: 8px;
  border: 2px solid rgba(74, 222, 128, 0.3);
}
.face-signals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.signal-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.signal-box .sig-name {
  font-size: 11px;
  color: #9aa5b1;
  margin-bottom: 4px;
}
.signal-box .sig-value {
  font-size: 22px;
  font-weight: 700;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.signal-box.sig-high .sig-value { color: #f87171; }
.signal-box.sig-mid .sig-value { color: #fbbf24; }
.signal-box.sig-low .sig-value { color: #4ade80; }

/* ===== 信号对照标准卡（形色辨识 / 声气辨识通用） ===== */
.sig-summary { font-size: 13px; color: #cbd5e1; line-height: 1.65; margin: 0 0 10px; }
.sig-cards { display: flex; flex-direction: column; gap: 10px; }
.sig-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #4ade80;
  border-radius: 8px;
  padding: 10px 12px;
}
.sig-card.lv-mild { border-left-color: #fbbf24; }
.sig-card.lv-high { border-left-color: #f87171; }
.sig-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sig-card .sig-name { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.sig-level {
  flex-shrink: 0;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  white-space: nowrap;
}
.sig-card.lv-mild .sig-level { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.sig-card.lv-high .sig-level { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.sig-body { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.sig-num {
  flex: 0 0 42px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #4ade80;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.sig-num span { font-size: 10px; font-weight: 400; color: #94a3b8; margin-left: 2px; }
.sig-card.lv-mild .sig-num { color: #fbbf24; }
.sig-card.lv-high .sig-num { color: #f87171; }
.sig-track { position: relative; flex: 1; display: flex; height: 10px; }
.sig-track .seg { height: 100%; }
.sig-track .seg-normal { flex: 0 0 30%; background: #4ade80; border-radius: 999px 0 0 999px; }
.sig-track .seg-mild { flex: 0 0 30%; background: #fbbf24; }
.sig-track .seg-high { flex: 1; background: #f87171; border-radius: 0 999px 999px 0; }
.sig-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  transform: translateY(-50%);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
}
.sig-ticks { display: flex; font-size: 10px; color: #6b7787; margin-top: 5px; }
.sig-ticks span { flex: 0 0 30%; }
.sig-ticks span:last-child { flex: 1; text-align: right; }
.sig-meaning { font-size: 12px; color: #cbd5e1; line-height: 1.6; margin-top: 8px; }
.sig-advice { font-size: 12px; color: #fcd34d; line-height: 1.6; margin-top: 4px; }
.sig-advice b { margin-right: 6px; font-weight: 600; color: #fbbf24; }
.sig-ref { font-size: 10.5px; color: #6b7787; line-height: 1.6; margin-top: 10px; }
.face-features {
  font-size: 11px;
  color: #6b7787;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
  border-radius: 6px;
  font-family: Consolas, monospace;
  line-height: 1.6;
  margin-bottom: 10px;
}
.face-disclaimer {
  font-size: 10.5px;
  color: #6b7787;
  text-align: center;
  margin: 0;
}
.face-error {
  margin-top: 12px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 13px;
}

/* ===== P0 一致性对照卡片 ===== */
.consistency-card h3 { display:flex; align-items:center; gap:8px; margin:0 0 14px; font-size:15px; }
.consistency-card.hidden { display:none; }
.cons-row { display:flex; align-items:flex-start; gap:14px; padding:14px; border-radius:10px; }
.cons-row + .cons-note { margin-top:10px; font-size:11px; color:var(--text-soft); padding:0 6px; }
.cons-score { flex:0 0 52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700; color:#fff; font-family:"Helvetica Neue",Arial,sans-serif; }
.cons-text { flex:1; min-width:0; }
.cons-title { font-size:13.5px; line-height:1.5; margin-bottom:4px; }
.cons-title strong { color:#e2e8f0; }
.cons-basis { font-size:11.5px; color:#94a3b8; margin-bottom:3px; }
.cons-detail { font-size:11px; color:#6b7787; font-family:Consolas,monospace; }

.cons-strong { background:rgba(74,222,128,0.08); border:1px solid rgba(74,222,128,0.3); }
.cons-strong .cons-score { background:linear-gradient(135deg,#4ade80,#22c55e); }
.cons-mid  { background:rgba(251,191,36,0.08); border:1px solid rgba(251,191,36,0.3); }
.cons-mid .cons-score { background:linear-gradient(135deg,#fbbf24,#f59e0b); }
.cons-weak { background:rgba(248,113,113,0.08); border:1px solid rgba(248,113,113,0.3); }
.cons-weak .cons-score { background:linear-gradient(135deg,#f87171,#ef4444); }
.cons-na   { background:rgba(148,163,184,0.08); border:1px solid rgba(148,163,184,0.2); }
.cons-na .cons-icon { flex:0 0 44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:700; color:#94a3b8; background:rgba(148,163,184,0.15); }

/* ===== P1 打印样式（导出 PDF） ===== */
@media print {
  /* 隐藏非报告页 */
  #page-home, #page-question { display:none !important; }
  /* 隐藏交互元素 */
  .report-actions, .face-card, .cons-note, details summary { display:none !important; }
  .back-float, .report-back { display:none !important; }
  details { display:block !important; }
  details .obs-list { display:block !important; }
  /* 调整卡片样式适合打印 */
  body { background:#fff !important; }
  .app-shell { background:#fff !important; padding:0 !important; }
  .card { background:#fff !important; border:1px solid #e5e7eb !important; box-shadow:none !important; page-break-inside:avoid; margin-bottom:14px; color:#111 !important; }
  .card h3 { color:#111 !important; }
  .watermark { color:#999 !important; font-size:10px !important; }
  .report-head h2 { color:#111 !important; }
  .report-sub { color:#666 !important; }
  /* 主质圆环打印时改为简单文字 */
  .primary-score { display:none !important; }
  .primary-info .name { color:#111 !important; }
  .primary-info .desc { color:#444 !important; }
  .level-badge { color:#111 !important; border:1px solid #666 !important; }
  /* 兼质条 */
  .aux-item .name, .aux-item .pct { color:#111 !important; }
  .aux-bar { background:#e5e7eb !important; }
  .aux-bar span { background:#4b5563 !important; }
  /* 建议 */
  .rec-item h4 { color:#111 !important; }
  .rec-item { color:#333 !important; border-left:3px solid #4b5563 !important; background:#f9fafb !important; }
  /* 一致性卡片 */
  .consistency-card { display:block !important; }
  .cons-row { background:#f9fafb !important; border:1px solid #e5e7eb !important; }
  .cons-score { background:#4b5563 !important; color:#fff !important; }
  .cons-title, .cons-title strong { color:#111 !important; }
  .cons-basis, .cons-detail { color:#666 !important; }
  /* 答题记录 */
  .obs-item .q { color:#333 !important; }
  .obs-item .a { color:#666 !important; }
  /* 免责声明 */
  .disclaimer { color:#666 !important; font-size:10px !important; }
  /* 隐藏形色辨识结果卡片（如果有） */
  .face-result, .face-error { display:none !important; }
}
@page { size: A4; margin: 14mm; }

/* ===== P2 LLM 个性化建议卡片（白底卡片，文字必须用深色） ===== */
.llm-card h3 { display:flex; align-items:center; gap:8px; margin:0 0 12px; font-size:15px; }
.llm-loading { display:flex; align-items:center; gap:10px; color:var(--text-soft); font-size:13px; padding:14px 6px; }
.llm-spinner { display:inline-block; width:14px; height:14px; border:2px solid rgba(74,222,128,0.3); border-top-color:#4ade80; border-radius:50%; animation:llm-spin 0.9s linear infinite; }
@keyframes llm-spin { to { transform:rotate(360deg); } }
.llm-empty { color:#4b5563; font-size:13.5px; padding:12px 6px; line-height:1.7; }
.llm-content { font-size:14.5px; line-height:1.8; color:var(--ink); }
.llm-content h4 { color:var(--amber-dark); font-size:15px; margin:16px 0 6px; padding-left:8px; border-left:3px solid var(--amber); }
.llm-content h5 { color:#b45309; font-size:14px; margin:12px 0 4px; }
.llm-content strong { color:#000; font-weight:700; }
.llm-content ul { margin:6px 0; padding-left:22px; }
.llm-content li { margin:4px 0; color:var(--ink); }
.llm-content p { margin:6px 0; color:var(--ink); }

/* ===== Phase B2 声气辨识卡片 ===== */
.voice-script {
  font-size: 13px;
  line-height: 1.8;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.22);
  border-left: 3px solid #4ade80;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 14px;
}
.voice-live { margin-top: 14px; }
.voice-live.hidden { display: none; }
.voice-timer {
  font-family: Consolas, monospace;
  font-size: 13px;
  color: #fbbf24;
  margin-bottom: 6px;
}
.voice-meter {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.voice-meter span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4ade80, #fbbf24);
  transition: width 0.08s linear;
}
.voice-card .face-signals { grid-template-columns: 1fr; }

/* ===== 四法合参多模态一致性 ===== */
.cons-summary { font-size: 13.5px; color: #e2e8f0; margin-bottom: 10px; }
.cons-summary strong { color: #fff; }
.cons-row.cons-sub { margin-bottom: 8px; }
.cons-score.sig-high { background: linear-gradient(135deg, #f87171, #ef4444); }
.cons-score.sig-mid  { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.cons-score.sig-low  { background: linear-gradient(135deg, #4ade80, #22c55e); }
.cons-level {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 10.5px;
  border-radius: 999px;
  vertical-align: middle;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}
.cons-level.lv-mild { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.cons-level.lv-high { background: rgba(248, 113, 113, 0.15); color: #f87171; }

@media (max-width: 520px) {
  .voice-card .face-signals { grid-template-columns: 1fr; }
}
.llm-meta { margin-top:12px; padding-top:10px; border-top:1px dashed #e5e7eb; font-size:11px; color:var(--text-soft); text-align:right; }

/* ============ 悬浮返回键（报告页返回首页 / 首页回到顶部） ============ */
.back-float {
  position: fixed;
  bottom: 52px;
  left: 50%;
  margin-left: 120px;
  z-index: 60;
  background: var(--amber);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(13, 27, 42, .28);
  transition: transform .05s ease;
}
.back-float:active { transform: scale(.96); }
.back-float.hidden { display: none; }
@media (max-width: 560px) {
  .back-float { left: auto; right: 14px; margin-left: 0; bottom: 50px; }
}

/* ============ 全站页脚（主办单位与备案信息） ============ */
.site-footer {
  margin: 6px 0 0;
  padding: 18px 8px 6px;
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
  color: #6b7280;
}
.site-footer p { margin: 0; }
.site-footer-org { color: #94a3b8; }
.site-footer-meta { margin-top: 2px; }
.site-footer-meta a { color: #6b7280; text-decoration: none; }
.site-footer-meta a:hover { color: var(--amber-dark); text-decoration: underline; }
.site-footer-meta span { margin: 0 6px; color: #cbd5e1; }
@media print {
  .site-footer { color: #555; }
  .site-footer-meta a { color: #555; }
}
