/* ==========================================================================
   泼冷水消费审讯室 · Neo-Courtroom Dossier Theme
   色调：深黑曜石审讯桌 + 冷静冰蓝逻辑光 + 朱红裁决印章 + 翡翠钱包守护
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #090b10;
  --bg-elevated: #11151f;
  --bg-card: #151a26;
  --bg-input: #0d1018;
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --ice: #38bdf8;
  --ice-soft: rgba(56, 189, 248, 0.12);
  --ice-border: rgba(56, 189, 248, 0.32);

  --crimson: #f43f5e;
  --crimson-soft: rgba(244, 63, 94, 0.12);
  --crimson-border: rgba(244, 63, 94, 0.36);

  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.13);
  --amber-border: rgba(245, 158, 11, 0.36);

  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.36);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", Consolas, "SF Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* 顶部审讯台冷光氛围与极淡网格 */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 42% at 50% -10%, rgba(56, 189, 248, 0.12), transparent 65%),
    radial-gradient(ellipse 40% 30% at 88% 12%, rgba(244, 63, 94, 0.06), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
}

.hidden {
  display: none !important;
}

/* ==================== 顶部导航 ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(9, 11, 16, 0.84);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  user-select: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(244, 63, 94, 0.16));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.16);
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.pill-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-card);
  transform: translateY(-1px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.status-dot.live {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.wallet-pill {
  border-color: var(--emerald-border);
  background: rgba(16, 185, 129, 0.09);
  color: #a7f3d0;
}

.wallet-pill strong {
  font-family: var(--font-mono);
  color: #34d399;
}

.wallet-pill.bump {
  animation: walletPop 0.5s ease;
}

@keyframes walletPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.1); box-shadow: 0 0 22px rgba(16, 185, 129, 0.45); }
  100% { transform: scale(1); }
}

/* ==================== 4 阶段进度条 ==================== */
.stepper-wrap {
  position: relative;
  z-index: 10;
  max-width: 1040px;
  margin: 18px auto 0;
  padding: 0 20px;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(17, 21, 31, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-input);
}

.step.active {
  color: var(--ice);
  font-weight: 600;
}

.step.active .step-num {
  border-color: var(--ice-border);
  background: var(--ice-soft);
  color: var(--ice);
}

.step.done {
  color: var(--text-secondary);
}

.step.done .step-num {
  border-color: var(--emerald-border);
  background: var(--emerald-soft);
  color: var(--emerald);
}

.step-line {
  flex: 1;
  max-width: 64px;
  height: 1px;
  background: var(--border);
}

/* ==================== 容器与视图切换 ==================== */
.container {
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: 0 auto;
  padding: 26px 20px 80px;
}

.view {
  display: none;
  animation: fadeSlideIn 0.28s ease;
}

.view.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== 视图 1：坦白局 ==================== */
.hero {
  text-align: center;
  margin-bottom: 26px;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ice);
  background: var(--ice-soft);
  border: 1px solid var(--ice-border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  background: linear-gradient(180deg, #ffffff 15%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  margin: 0 auto;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 15px;
}

.hero-desc strong {
  color: #fda4af;
  font-weight: 600;
}

.dossier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.card-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hint-text {
  font-size: 12px;
  color: var(--ice);
}

.input-row-2 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.field {
  margin-bottom: 14px;
}

.input-row-2 .field {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 7px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.label-row label {
  margin-bottom: 0;
}

.char-counter {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.char-counter.near-limit {
  color: var(--amber);
}

.tip-sep {
  margin: 0 6px;
  opacity: 0.45;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  padding: 11px 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
}

.field textarea {
  resize: vertical;
  line-height: 1.65;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.price-input-wrap {
  position: relative;
}

.currency-prefix {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 700;
}

.price-input-wrap input {
  padding-left: 30px;
  font-family: var(--font-mono);
}

.confession-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.spice-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.spice-title {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.spice-group {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.spice-btn {
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}

.spice-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.spice-btn.active {
  border-color: var(--crimson-border);
  background: var(--crimson-soft);
  color: #fda4af;
  font-weight: 600;
}

.spice-btn[data-spice="medium"].active {
  border-color: var(--ice-border);
  background: var(--ice-soft);
  color: #7dd3fc;
}

/* ==================== 按钮系统 ==================== */
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger-outline,
.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.28);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(14, 165, 233, 0.36);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--ice-border);
  color: #7dd3fc;
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.2);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-danger-outline {
  background: rgba(244, 63, 94, 0.08);
  border-color: var(--crimson-border);
  color: #fda4af;
}

.btn-danger-outline:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.18);
  color: #ffffff;
}

.btn-danger-outline:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.28);
}

.btn-success:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 12px;
}

/* ==================== 预设经典案例卡片 ==================== */
.presets-section {
  margin-top: 26px;
}

.presets-header {
  margin-bottom: 12px;
}

.presets-title {
  font-size: 13px;
  color: var(--text-secondary);
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preset-card {
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  color: inherit;
}

.preset-card:hover {
  border-color: var(--ice-border);
  background: var(--bg-card);
  transform: translateY(-2px);
}

.preset-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.preset-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--crimson-soft);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.preset-tag.genuine {
  background: var(--emerald-soft);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.28);
}

.preset-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ice);
}

.preset-name {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.preset-snippet {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== 视图 2：审讯台 ==================== */
.case-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.case-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.mono-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.round-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--ice-soft);
  border: 1px solid var(--ice-border);
  color: #7dd3fc;
}

.spice-mini-badge {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--crimson-soft);
  color: #fda4af;
}

.case-subject-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.case-subject {
  font-size: 16px;
  font-weight: 700;
}

.case-price {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #fbbf24;
  font-weight: 700;
}

.case-banner-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.radar-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radar-label {
  font-size: 11px;
  color: var(--text-muted);
}

.radar-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: #fcd34d;
}

.chip.safe {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: #6ee7b7;
}

/* 审讯记录流 */
.transcript {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.msg-user {
  align-self: flex-end;
  max-width: 84%;
  background: #1b2436;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 14px 14px 4px 14px;
  padding: 13px 16px;
}

.msg-role {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.msg-user .msg-text {
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-judge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--crimson);
  border-radius: 4px 14px 14px 14px;
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: fadeSlideIn 0.25s ease;
}

.judge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.judge-phase {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ice);
  letter-spacing: 0.02em;
}

.caught-excuse {
  background: var(--crimson-soft);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #fecdd3;
  margin-bottom: 12px;
}

.caught-excuse strong {
  color: #fb7185;
}

.judge-reaction {
  color: #e2e8f0;
  margin: 0 0 14px;
  font-size: 15px;
}

.judge-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.q-item {
  background: var(--bg-input);
  border: 1px solid var(--ice-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.q-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ice);
  background: var(--ice-soft);
  padding: 2px 7px;
  border-radius: 5px;
  margin-top: 2px;
}

.q-text {
  font-weight: 500;
  color: #e2e8f0;
  font-size: 14.5px;
}

.q-text strong,
.judge-reaction strong {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.55);
  text-underline-offset: 3px;
}

/* 深色自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0e14;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.42);
}

/* 思考中与错误条 */
.thinking-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid var(--ice-border);
  border-radius: var(--radius-md);
  color: #bae6fd;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ice);
  animation: pulseGlow 1.1s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 12px var(--ice); }
}

.error-banner {
  background: rgba(244, 63, 94, 0.11);
  border: 1px solid var(--crimson-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.error-msg {
  color: #fecdd3;
  font-size: 13.5px;
}

.error-actions {
  display: flex;
  gap: 8px;
}

/* 底部答辩区 */
.reply-dock {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px;
  position: sticky;
  bottom: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.reply-input-wrap textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  padding: 11px 13px;
  resize: vertical;
  outline: none;
}

.reply-input-wrap textarea:focus {
  border-color: var(--ice);
}

.reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.reply-left-tip {
  font-size: 12.5px;
  color: var(--text-muted);
}

.reply-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==================== 视图 3：泼冷水判决书 ==================== */
.verdict-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.verdict-hero {
  position: relative;
  padding: 28px 28px 24px;
  background:
    radial-gradient(ellipse 70% 80% at 95% 0%, rgba(244, 63, 94, 0.14), transparent 60%),
    linear-gradient(180deg, #161c2a 0%, #11151f 100%);
  border-bottom: 1px solid var(--border);
}

.verdict-hero.theme-approve {
  background:
    radial-gradient(ellipse 70% 80% at 95% 0%, rgba(16, 185, 129, 0.16), transparent 60%),
    linear-gradient(180deg, #11211d 0%, #11151f 100%);
}

.verdict-hero.theme-cooldown {
  background:
    radial-gradient(ellipse 70% 80% at 95% 0%, rgba(245, 158, 11, 0.14), transparent 60%),
    linear-gradient(180deg, #1f1b13 0%, #11151f 100%);
}

.verdict-hero.theme-downgrade {
  background:
    radial-gradient(ellipse 70% 80% at 95% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
    linear-gradient(180deg, #111c27 0%, #11151f 100%);
}

.verdict-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.verdict-title {
  margin: 6px 0 6px;
  font-size: 24px;
  font-weight: 800;
}

.verdict-target {
  color: var(--text-secondary);
  font-size: 14.5px;
}

/* 动态盖章效果 */
.stamp-seal {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border: 3px solid var(--crimson);
  border-radius: 8px;
  color: var(--crimson);
  background: rgba(11, 13, 17, 0.72);
  transform: rotate(-5deg);
  box-shadow: 0 0 28px rgba(244, 63, 94, 0.22);
  animation: stampSlam 0.45s cubic-bezier(0.22, 1.4, 0.36, 1);
  user-select: none;
}

.stamp-seal.approve {
  border-color: var(--emerald);
  color: var(--emerald);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.24);
}

.stamp-seal.cooldown {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.22);
}

.stamp-seal.downgrade {
  border-color: var(--ice);
  color: var(--ice);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.22);
}

@keyframes stampSlam {
  0% { opacity: 0; transform: scale(2.1) rotate(-14deg); }
  70% { opacity: 1; transform: scale(0.94) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) rotate(-5deg); }
}

.risk-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  padding: 16px 18px;
  background: rgba(9, 11, 16, 0.58);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.risk-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.risk-score-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.risk-number {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--crimson);
}

.risk-number.approve { color: var(--emerald); }
.risk-number.cooldown { color: var(--amber); }
.risk-number.downgrade { color: var(--ice); }

.risk-tier {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.risk-bar-track {
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.risk-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #f43f5e);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.risk-bar-fill.approve { background: linear-gradient(90deg, #059669, #34d399); }
.risk-bar-fill.downgrade { background: linear-gradient(90deg, #0284c7, #38bdf8); }

.illusion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.illusion-tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--crimson-soft);
  border: 1px solid var(--crimson-border);
  color: #fecdd3;
}

.illusion-tag.safe {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: #a7f3d0;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cost-item {
  background: rgba(9, 11, 16, 0.45);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.cost-k {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cost-v {
  font-size: 14px;
  color: var(--text);
}

.cost-v.cost-danger {
  color: #fda4af;
}

/* 判决书各模块 */
.v-section {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
}

.v-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.v-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ice);
  background: var(--ice-soft);
  border: 1px solid var(--ice-border);
  padding: 2px 7px;
  border-radius: 5px;
}

.v-section-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.truth-section {
  background: rgba(244, 63, 94, 0.05);
}

.truth-section.approve {
  background: rgba(16, 185, 129, 0.06);
}

.truth-bomb-text {
  margin: 0;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.75;
  color: #ffffff;
  border-left: 4px solid var(--crimson);
  padding-left: 16px;
}

.truth-section.approve .truth-bomb-text {
  border-left-color: var(--emerald);
}

/* 供词矛盾打脸卡片 */
.contradictions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contra-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
}

.contra-col span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contra-claim span { color: var(--text-muted); }
.contra-reality span { color: #fb7185; }
.contra-col p { margin: 0; font-size: 13.5px; color: #e2e8f0; }

/* 红蓝对抗双栏 */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.vs-col {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.vs-defense {
  border-top: 3px solid var(--ice);
}

.vs-prosecution {
  border-top: 3px solid var(--crimson);
}

.vs-col-title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.vs-defense .vs-col-title { color: #7dd3fc; }
.vs-prosecution .vs-col-title { color: #fda4af; }

.vs-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #cbd5e1;
}

/* 行动处方 */
.plan-section {
  background: rgba(16, 185, 129, 0.035);
}

.plan-headline {
  font-size: 16px;
  font-weight: 700;
  color: #6ee7b7;
  margin-bottom: 12px;
}

.plan-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  color: #e2e8f0;
}

.unlock-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed var(--ice-border);
  border-radius: 10px;
  padding: 12px 15px;
}

.unlock-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 4px;
}

.unlock-box p {
  margin: 0;
  font-size: 13.5px;
  color: #e0f2fe;
}

/* 最终表态区 */
.commitment-box {
  padding: 24px 28px;
  text-align: center;
  background: rgba(9, 11, 16, 0.55);
  border-bottom: 1px solid var(--border);
}

.commitment-prompt {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.commitment-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.commitment-result {
  margin-top: 14px;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.commitment-result.saved {
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: #6ee7b7;
}

.commitment-result.headstrong {
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: #fcd34d;
}

/* 工具栏 */
.verdict-toolbar {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.verdict-log-drawer {
  padding: 0 28px 24px;
  border-top: 1px solid var(--border);
  background: rgba(9, 11, 16, 0.35);
}

.log-drawer-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 16px 0 12px;
}

/* ==================== 弹窗 Modals ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
}

.modal-lg {
  max-width: 760px;
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* API 设置弹窗 */
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.mode-tab {
  text-align: left;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.16s ease;
}

.mode-tab strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 3px;
}

.mode-tab span {
  font-size: 12px;
  line-height: 1.4;
}

.mode-tab.active {
  border-color: var(--ice);
  background: var(--ice-soft);
}

.provider-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 6px;
}

.provider-chip {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
}

.provider-chip.active {
  border-color: var(--ice-border);
  background: var(--ice-soft);
  color: #7dd3fc;
  font-weight: 600;
}

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.key-input-wrap {
  display: flex;
  gap: 8px;
}

.key-input-wrap input {
  flex: 1;
}

.test-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.test-status {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.test-status.ok { color: #34d399; }
.test-status.err { color: #fda4af; }

/* 钱包战绩弹窗 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.stat-highlight {
  border-color: var(--emerald-border);
  background: rgba(16, 185, 129, 0.08);
}

.stat-label {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text);
}

.stat-highlight .stat-val {
  color: #34d399;
}

.archive-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.archive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.16s ease;
}

.archive-item:hover {
  border-color: var(--ice-border);
}

.archive-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 3px;
}

.archive-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.archive-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.empty-archive {
  text-align: center;
  padding: 36px 12px;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* 审讯大脑弹窗 */
.brain-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--ice);
  margin-bottom: 10px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.method-card {
  background: var(--bg-input);
  border: 1px solid var(--ice-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.method-card strong {
  display: block;
  font-size: 13px;
  color: #7dd3fc;
  margin-bottom: 4px;
}

.method-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.illusion-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.illusion-doc-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
}

.illusion-doc-card strong {
  display: block;
  font-size: 13.5px;
  color: #fda4af;
  margin-bottom: 3px;
}

.illusion-doc-card.genuine strong {
  color: #6ee7b7;
}

.illusion-doc-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.brain-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.prompt-preview {
  margin: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: #cbd5e1;
  white-space: pre-wrap;
  max-height: 320px;
  overflow-y: auto;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: #1e293b;
  border: 1px solid var(--ice-border);
  color: #f8fafc;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  animation: fadeSlideIn 0.2s ease;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 760px) {
  .input-row-2,
  .presets-grid,
  .risk-panel,
  .cost-grid,
  .contra-card,
  .vs-grid,
  .stats-grid,
  .illusion-catalog-grid,
  .method-grid,
  .mode-switch {
    grid-template-columns: 1fr;
  }

  .stepper {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .step-line {
    min-width: 14px;
  }

  .v-section,
  .verdict-hero,
  .verdict-toolbar,
  .commitment-box {
    padding-left: 18px;
    padding-right: 18px;
  }

  .msg-user {
    max-width: 96%;
  }
}
