/* ============================================================
   钱包失踪案调查局 — 立案侦查系统样式
   设计语言：中性冷灰版面 + 墨色操作件；彩色只用于数据
   （微信绿 / 支付宝蓝 / 分类色板），交互态统一信任蓝
   ============================================================ */

:root {
  /* 中性色 */
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #101828;        /* 主文字 / 主按钮 */
  --ink-hover: #1d2939;
  --ink-2: #344054;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --fill: #f2f4f7;

  /* 交互态 */
  --accent: #2563eb;
  --accent-ring: rgba(37, 99, 235, .16);

  /* 平台色 */
  --wechat: #07c160;
  --wechat-deep: #07a050;
  --wechat-text: #067647;
  --wechat-bg: #e7f8ee;
  --alipay: #1677ff;
  --alipay-deep: #1570ef;
  --alipay-bg: #e8f1ff;

  /* 状态色 */
  --danger: #d92d20;
  --danger-bg: #feeceb;
  --warn: #b54708;
  --warn-bg: #fffaeb;
  --ok: #067647;
  --ok-bg: #ecfdf3;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 4px 12px -2px rgba(16, 24, 40, .09), 0 2px 4px -1px rgba(16, 24, 40, .05);
  --shadow-lg: 0 18px 40px -12px rgba(16, 24, 40, .22);
  --radius: 14px;
  --ease: cubic-bezier(.25, .6, .3, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: radial-gradient(1100px 380px at 50% -120px, #e9edf6 0%, rgba(233, 237, 246, 0) 65%), var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(37, 99, 235, .18); }

/* ---------- 图标 ---------- */
.i {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  display: inline-block;
  vertical-align: -3px;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--ink-hover), var(--ink));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.logo .i { width: 19px; height: 19px; }
.topbar h1 { font-size: 17px; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.sub { margin: 1px 0 0; color: var(--muted); font-size: 12.5px; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: all .18s var(--ease);
}
.btn .i { width: 15px; height: 15px; }
.btn:hover:not(:disabled) {
  border-color: var(--faint);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--ink-hover); border-color: var(--ink-hover); color: #fff; }
.btn.ghost { background: var(--panel); }
.btn.lg { padding: 10px 20px; font-size: 14px; border-radius: 11px; }
.btn.lg .i { width: 16px; height: 16px; }
.btn.sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }

.container { max-width: 1180px; margin: 0 auto; padding: 20px 24px 60px; }

/* ---------- 通用面板 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.panel + .panel,
.panel + .dossier,
.dossier + .panel { margin-top: 16px; }
.panel-head { margin-bottom: 12px; }
.panel-head.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.01em;
}
.panel-head h2 .i { width: 16px; height: 16px; color: var(--ink-2); }
.panel-sub { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.panel-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.panel-actions.center { justify-content: center; border-top: none; padding-top: 0; }

/* ---------- 办案流程 ---------- */
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0 24px;
}
.step-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all .18s var(--ease);
  min-width: 0;
}
.step-btn:disabled { cursor: not-allowed; }
.step-btn.is-active { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 24, 40, .06); }
.step-btn.is-done { border-color: #a9e2c3; background: linear-gradient(180deg, #f6fdf9, #fff); }
.step-btn.is-locked { opacity: .5; }
.step-btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.step-no {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--fill);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 13px;
}
.step-btn.is-active .step-no { background: var(--ink); color: #fff; }
.step-btn.is-done .step-no { background: var(--wechat-deep); color: #fff; }
.step-txt { display: flex; flex-direction: column; min-width: 0; }
.step-txt strong { font-size: 13.5px; color: var(--ink); }
.step-txt em { font-style: normal; font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-line { width: 22px; height: 1.5px; background: var(--line-2); flex: none; border-radius: 2px; }

/* ---------- 第 1 步：立案登记 ---------- */
.stage { margin-top: 16px; }
.intake-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.field-hint { font-weight: 400; color: var(--faint); }

.side-panel { background: linear-gradient(180deg, #fbfcfe, #fff 60%); }
.notice {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.notice li { margin-bottom: 7px; }
.notice strong { color: var(--ink-2); }

/* ---------- 第 2 步：证据入卷 ---------- */
.evidence-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.case-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px 6px 10px;
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.case-chip .chip-no {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 12px;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.case-chip b { color: var(--ink-2); font-weight: 600; }

.upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dropzone {
  background: var(--panel);
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 26px 20px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease),
    transform .18s var(--ease), box-shadow .18s var(--ease);
}
.dropzone:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dropzone:active { transform: translateY(0); }
#dzWechat:hover { border-color: #63cfa0; background: linear-gradient(180deg, #f5fcf8, #fff 70%); }
#dzAlipay:hover { border-color: #85b5ff; background: linear-gradient(180deg, #f5f9ff, #fff 70%); }
#dzWechat.drag { border-color: var(--wechat-deep); background: var(--wechat-bg); }
#dzAlipay.drag { border-color: var(--alipay); background: var(--alipay-bg); }

.dz-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  transition: transform .18s var(--ease);
}
.dz-icon .i { width: 22px; height: 22px; }
#dzWechat .dz-icon { background: var(--wechat-bg); color: var(--wechat-deep); }
#dzAlipay .dz-icon { background: var(--alipay-bg); color: var(--alipay); }
.dropzone:hover .dz-icon { transform: scale(1.06); }

.dz-title { font-weight: 700; margin-top: 10px; font-size: 15px; }
.dz-desc { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.dz-file {
  margin-top: 12px;
  font-size: 12.5px;
  min-height: 24px;
  display: flex;
  justify-content: center;
}
.dz-file.loaded,
.dz-file.error {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.dz-file.loaded { background: var(--wechat-bg); color: var(--wechat-text); }
.dz-file.error { background: var(--danger-bg); color: var(--danger); }
.dz-file.loaded::before,
.dz-file.error::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dz-file.error::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E");
}

.evidence-panel { margin-top: 16px; }
.evidence-list { display: flex; flex-direction: column; gap: 8px; }
.ev-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 14px;
  background: #fcfcfd;
}
.ev-item.empty { color: var(--faint); font-size: 13px; justify-content: center; border-style: dashed; background: #fff; }
.ev-no {
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: .04em;
}
.ev-main { flex: 1; min-width: 0; }
.ev-name { font-size: 13px; font-weight: 600; word-break: break-all; }
.ev-meta { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.ev-badge {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
}

/* ---------- 卷宗封面 ---------- */
.dossier {
  margin-top: 16px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .98)),
    repeating-linear-gradient(135deg, #f4f6fa 0 12px, #eef1f7 12px 24px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}
.dossier-main { flex: 1; min-width: 280px; }
.dossier-title h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.dossier-no { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); }
.dossier-no strong { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.dossier-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 20px;
  margin: 16px 0 0;
}
.dossier-meta div { min-width: 0; }
.dossier-meta div.wide { grid-column: span 2; }
.dossier-meta dt { font-size: 11.5px; color: var(--faint); margin: 0 0 2px; }
.dossier-meta dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); word-break: break-word; }
.dossier-meta div:not(.wide) dd { white-space: nowrap; }
.dossier-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex: none;
}
.stamp {
  display: inline-block;
  border: 2.5px solid #c0392b;
  color: #c0392b;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
  transform: rotate(-8deg);
  opacity: .82;
  white-space: nowrap;
}
.barcode {
  width: 168px;
  height: 34px;
  background: repeating-linear-gradient(90deg,
    #101828 0 2px, transparent 2px 4px,
    #101828 4px 7px, transparent 7px 9px,
    #101828 9px 10px, transparent 10px 14px,
    #101828 14px 17px, transparent 17px 19px);
  opacity: .78;
  border-radius: 2px;
}

/* ---------- 结案陈词 ---------- */
.verdict-panel { background: linear-gradient(180deg, #fbfcff, #fff 55%); }
.verdict-headline {
  margin: 0 0 14px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
  padding: 14px 16px;
  background: #f4f7ff;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}
.verdict-lines { margin: 0; padding: 0; list-style: none; }
.verdict-lines li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.verdict-lines li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: .75;
}
.verdict-note { margin: 12px 0 0; font-size: 12px; color: var(--faint); }

/* ---------- 关键指标卡 ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.card-ic {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  background: var(--fill);
  color: var(--ink-2);
}
.card-ic .i { width: 13px; height: 13px; }
.card-value {
  font-size: 26px;
  font-weight: 800;
  margin-top: 8px;
  letter-spacing: -.2px;
  font-variant-numeric: tabular-nums;
}
.card-value.sm { font-size: 19px; line-height: 1.35; word-break: break-word; }
.card-sub { font-size: 12px; color: var(--faint); margin-top: 4px; }

/* ---------- 重点嫌疑商户 ---------- */
.suspect-list { display: flex; flex-direction: column; gap: 6px; }
.suspect-row {
  display: grid;
  grid-template-columns: 30px minmax(120px, 1.4fr) minmax(90px, 2.6fr) 130px 96px 92px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  transition: all .16s var(--ease);
}
.suspect-row:hover { background: #f6f9ff; border-color: #dbe7ff; }
.suspect-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.suspect-rank {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--fill);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.suspect-row:nth-child(1) .suspect-rank { background: var(--ink); color: #fff; }
.suspect-row:nth-child(2) .suspect-rank { background: #344054; color: #fff; }
.suspect-row:nth-child(3) .suspect-rank { background: #667085; color: #fff; }
.suspect-name { font-size: 13.5px; font-weight: 600; min-width: 0; }
.suspect-name em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--faint);
  font-weight: 400;
  margin-top: 1px;
}
.suspect-bar { height: 9px; background: var(--fill); border-radius: 999px; overflow: hidden; }
.suspect-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f7ef7, var(--accent));
  transition: width .5s var(--ease);
}
.suspect-num { text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.suspect-num small { display: block; font-weight: 500; font-size: 11px; color: var(--faint); margin-top: 1px; }

/* ---------- 赃物清单 ---------- */
.loot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px;
}
.loot-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fcfcfd;
  transition: all .18s var(--ease);
}
.loot-card:hover { border-color: var(--line-2); background: #fff; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.loot-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.loot-name { font-size: 13.5px; font-weight: 700; }
.loot-amt { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.loot-bar { height: 7px; background: var(--fill); border-radius: 999px; overflow: hidden; margin: 9px 0 8px; }
.loot-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb37a, #ff7a45);
  transition: width .5s var(--ease);
}
.loot-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.loot-meta small { color: var(--faint); }

/* ---------- 作案时间图谱 ---------- */
.heat-scroll { overflow-x: auto; padding-bottom: 6px; }
.heat-scroll::-webkit-scrollbar { height: 8px; }
.heat-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.heat {
  display: grid;
  grid-template-columns: 46px repeat(24, minmax(26px, 1fr));
  gap: 3px;
  min-width: 720px;
}
.heat-h {
  font-size: 10px;
  color: var(--faint);
  text-align: center;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}
.heat-label {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  font-weight: 600;
}
.heat-cell {
  height: 26px;
  border-radius: 5px;
  background: #f1f3f7;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
  cursor: default;
}
.heat-cell.lv1 { background: #dbe6fb; }
.heat-cell.lv2 { background: #a9c4f5; }
.heat-cell.lv3 { background: #5d8bee; }
.heat-cell.lv4 { background: #1d4ed8; }
.heat-cell:hover { transform: scale(1.14); box-shadow: 0 4px 10px rgba(16, 24, 40, .18); }
.heat-cell[data-empty="1"] { background: #f7f8fa; }
.heat-legend { display: flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 11.5px; color: var(--faint); }
.heat-legend-label { margin: 0 3px; }
.heat-swatch { width: 20px; height: 12px; border-radius: 3px; background: #f1f3f7; }
.heat-swatch.lv1 { background: #dbe6fb; }
.heat-swatch.lv2 { background: #a9c4f5; }
.heat-swatch.lv3 { background: #5d8bee; }
.heat-swatch.lv4 { background: #1d4ed8; }

.insight-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.insight-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  background: #fcfcfd;
}
.insight-card dt { font-size: 11.5px; color: var(--faint); margin: 0 0 5px; font-weight: 600; }
.insight-card dd { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.insight-card em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 3px; }

/* ---------- 钱包出口 ---------- */
.outlet-list { display: flex; flex-direction: column; gap: 8px; }
.outlet-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) minmax(90px, 2fr) 120px 96px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.outlet-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outlet-bar { height: 9px; background: var(--fill); border-radius: 999px; overflow: hidden; }
.outlet-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6ea8ff, #1677ff);
  transition: width .5s var(--ease);
}
.outlet-amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.outlet-pct { text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------- 异常线索 ---------- */
.clue-list { display: flex; flex-direction: column; gap: 10px; }
.clue {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 10px;
  background: #fcfcfd;
}
.clue.high { border-left-color: var(--danger); background: #fffbfa; }
.clue.mid { border-left-color: #f79009; background: #fffcf6; }
.clue.low { border-left-color: var(--accent); background: #fafbff; }
.clue-main { flex: 1; min-width: 0; }
.clue-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.clue-kind {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--fill);
  color: var(--ink-2);
  white-space: nowrap;
}
.clue.high .clue-kind { background: var(--danger-bg); color: var(--danger); }
.clue.mid .clue-kind { background: var(--warn-bg); color: var(--warn); }
.clue.low .clue-kind { background: #eaf0ff; color: var(--accent); }
.clue-title strong { font-size: 13.5px; }
.clue-desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.clue-empty { color: var(--faint); font-size: 13px; padding: 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 10px; }

/* ---------- 筛选条 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: flex-end;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group.grow { flex: 1; min-width: 200px; }
.filter-group > label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }

.platform-chips { display: flex; gap: 8px; }
.chk { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk-face {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  user-select: none;
  transition: all .18s var(--ease);
}
.chk-face .i { width: 14px; height: 14px; }
.chk:hover .chk-face { border-color: var(--faint); color: var(--ink-2); }
.chk input:checked + .chk-face { color: #fff; }
.chk-wechat input:checked + .chk-face { background: var(--wechat-deep); border-color: var(--wechat-deep); box-shadow: 0 1px 6px rgba(7, 160, 80, .32); }
.chk-alipay input:checked + .chk-face { background: var(--alipay); border-color: var(--alipay); box-shadow: 0 1px 6px rgba(22, 119, 255, .32); }
.chk input:focus-visible + .chk-face { outline: 2px solid var(--accent); outline-offset: 2px; }

.search-field { position: relative; }
.search-field .i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
  width: 14px;
  height: 14px;
}
.search-field input { padding-left: 33px; width: 100%; }

input[type="date"], input[type="text"], select {
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input[type="date"] { min-width: 145px; }
select { min-width: 128px; }
input:hover, select:hover { border-color: var(--faint); }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
input[readonly] { background: #f9fafb; color: var(--muted); }

/* ---------- 图表 ---------- */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.chart-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.chart-box.wide { grid-column: 1 / -1; }
.chart-box h3 {
  margin: 0 0 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.chart-box h3 .i { width: 15px; height: 15px; color: var(--faint); }
.chart-box canvas { max-height: 280px; max-width: 100%; }
.chart-box.wide canvas { max-height: 320px; }

.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.chart-head h3 { margin: 0; }
.chart-head-controls { display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; background: var(--fill); border-radius: 9px; padding: 3px; gap: 2px; }
.seg-btn {
  border: none;
  background: transparent;
  padding: 4px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  transition: all .18s var(--ease);
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .14);
}

/* ---------- 明细表 ---------- */
.table-wrap { margin-top: 16px; padding: 18px; }
.table-scroll { max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: 11px; }
.table-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 2px solid #fff; }
.table-scroll::-webkit-scrollbar-track { background: transparent; }

table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }

/* 明细表：固定列宽 + 超长内容省略，保证状态列不被挤出可视区 */
#txTable { table-layout: fixed; min-width: 0; }
#txTable th:nth-child(1) { width: 92px; }
#txTable th:nth-child(2) { width: 82px; }
#txTable th:nth-child(3) { width: 126px; }
#txTable th:nth-child(4) { width: 148px; }
#txTable th:nth-child(6) { width: 104px; }
#txTable th:nth-child(7) { width: 118px; }
td.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
th {
  position: sticky;
  top: 0;
  background: #f9fafb;
  color: var(--muted);
  font-weight: 600;
  z-index: 1;
  box-shadow: 0 1px 0 var(--line);
  white-space: nowrap;
}
td:first-child { white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s var(--ease); }
tbody tr:hover { background: #f5f8ff; }
th.num, td.num { text-align: right; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--accent); }
th.sortable::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  margin-left: 3px;
  background: currentColor;
  opacity: .4;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}
th.sort-asc::after, th.sort-desc::after { opacity: 1; background: var(--accent); }
th.sort-asc::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
}
th.sort-desc::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.muted { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.tip { color: var(--faint); font-size: 12px; }

.pf-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pf-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pf-微信 { background: var(--wechat-bg); color: var(--wechat-text); }
.pf-支付宝 { background: var(--alipay-bg); color: var(--alipay-deep); }

.cat-select {
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 3px 6px;
  font-size: 12.5px;
  background: #fff;
  color: var(--ink-2);
  max-width: 112px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.cat-select:hover { border-color: var(--faint); }
.cat-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); outline: none; }

.amt { font-weight: 700; font-variant-numeric: tabular-nums; }

.tr-empty td { padding: 40px 16px; text-align: center; color: var(--muted); }
.tr-empty .i { width: 28px; height: 28px; display: block; margin: 0 auto 8px; opacity: .45; }
.tr-empty strong { display: block; font-size: 13.5px; color: var(--ink-2); }
.tr-empty em { display: block; font-style: normal; font-size: 12px; color: var(--faint); margin-top: 3px; }

.footnote { color: var(--muted); font-size: 12px; margin-top: 14px; line-height: 1.7; }

/* ---------- 商户档案抽屉 ---------- */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .34);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 40;
  animation: fade .2s var(--ease) both;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 94vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 41;
  display: flex;
  flex-direction: column;
  animation: slideIn .26s var(--ease) both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { margin: 0; font-size: 16px; }
.drawer-head .muted { margin: 3px 0 0; }
.drawer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.drawer-stats div { background: #fcfcfd; padding: 11px 14px; }
.drawer-stats dt { font-size: 11.5px; color: var(--faint); margin: 0 0 3px; }
.drawer-stats dd { margin: 0; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.drawer-body { flex: 1; overflow: auto; }
.drawer-table { min-width: 0; width: 100%; }
.drawer-table th { background: #f9fafb; }

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .stage:not([hidden]) { animation: rise .45s cubic-bezier(.16, .84, .3, 1) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .intake-grid { grid-template-columns: 1fr; }
  .suspect-row { grid-template-columns: 28px minmax(110px, 1.6fr) 110px 88px; }
  .suspect-row .suspect-bar { display: none; }
  .suspect-row .suspect-num.visits { display: none; }
}
@media (max-width: 820px) {
  .upload-row, .charts { grid-template-columns: 1fr; }
  .chart-box.wide { grid-column: auto; }
  .container { padding: 16px 16px 48px; }
  .topbar { padding: 12px 16px; }
  .stepper { padding: 0 16px; }
  .step-txt em { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .dossier-side { align-items: flex-start; }
  .barcode { width: 140px; }
  #txTable { min-width: 720px; }
  .dossier-meta div.wide { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .sub { display: none; }
  .filter-group.grow { min-width: 100%; }
  .stepper { flex-direction: column; align-items: stretch; gap: 6px; }
  .step-line { display: none; }
  .outlet-row { grid-template-columns: 1fr 1fr; }
  .outlet-row .outlet-bar { grid-column: 1 / -1; order: 3; }
}

/* ---------- 打印卷宗 ---------- */
@media print {
  body { background: #fff; }
  .topbar, .stepper, .filters, .drawer, .drawer-mask, .panel-actions,
  .table-foot .tip, .menu, .export-mask { display: none !important; }
  .container { max-width: none; padding: 0; }
  .panel, .dossier, .card, .chart-box { box-shadow: none; break-inside: avoid; }
  .dossier { border-left-width: 4px; }
  .table-scroll { max-height: none; overflow: visible; }
  .charts { grid-template-columns: 1fr 1fr; }
  #stageReport { display: block !important; }
}

/* ============================================================
   卷宗导出（PDF / 长图）
   ============================================================ */

/* ---------- 导出菜单 ---------- */
.menu-wrap { position: relative; }
.btn .chev { width: 13px; height: 13px; margin-left: 1px; opacity: .68; }

.menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 296px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 60;
}
.menu-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  background: none;
  border: 0;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background .14s var(--ease);
}
.menu-item:hover { background: var(--fill); }
.menu-ic { color: var(--ink-2); margin-top: 1px; display: flex; }
.menu-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-tt { font-size: 13px; font-weight: 600; color: var(--ink); }
.menu-ds { font-size: 11.5px; color: var(--muted); }

/* ---------- 导出进度 ---------- */
.export-mask {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 24, 40, .46);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade .18s var(--ease) both;
}
.export-card {
  width: min(360px, 86vw);
  padding: 26px 24px 22px;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.export-ring {
  width: 32px;
  height: 32px;
  margin: 0 auto 14px;
  border: 3px solid var(--line-2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.export-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.export-sub { margin: 0 0 14px; min-height: 18px; font-size: 12.5px; color: var(--muted); }
.export-bar { height: 5px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.export-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #101828, #475569);
  transition: width .25s var(--ease);
}

/* ---------- 离屏卷宗副本（导出用，不参与页面视觉） ---------- */
.export-host {
  position: absolute;
  left: 0;
  z-index: 0;
  background: #fff;
  pointer-events: none;
}
/* 克隆体会触发入场动画，导出前必须静止在终态 */
.export-host *,
.export-host *::before,
.export-host *::after {
  animation: none !important;
  transition: none !important;
}
.export-host .stage { margin: 0; }
.export-host .panel,
.export-host .card,
.export-host .chart-box,
.export-host .dossier,
.export-host .side-panel,
.export-host .table-page table { box-shadow: none !important; }
.export-host .panel { border-radius: 10px; }
.export-host .table-page { margin-top: 16px; }
.export-host .table-cont {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.export-host .table-note {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--warn);
}
.export-host .cat-text { font-size: 13px; color: var(--ink-2); }
.export-host .table-scroll table,
.export-host .table-page table { border-radius: 0; }

/* ---------- 朋友圈九宫格卡片（缩微卷宗） ----------
   卡片 540×540 CSS px，导出时 ×2 得 1080×1080。
   全部规则作用域收在 .share-card 内，避免与页面样式串味。 */
.share-deck { display: flex; flex-direction: column; gap: 20px; }

.share-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 540px;
  height: 540px;
  padding: 40px 44px 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
/* 两个色系交替：深墨（A）与纯白（B）。
   深色系重定义内部色板变量，所有子元素自动适配，无需逐条硬编码。 */
.share-card.tone-dark {
  background: #101828;
  border-color: #101828;
  color: #fff;
  --ink: #ffffff;
  --ink-2: #eaecf0;
  --muted: #a8b2c1;
  --faint: #8b95a6;
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .26);
  --fill: rgba(255, 255, 255, .07);
  --accent: #4f9cf9;
}

.share-card .sc-top {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.share-card .sc-tag {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
}
.share-card .sc-badge {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--faint);
}
.share-card.tone-dark .sc-tag,
.share-card.tone-dark .sc-badge { color: #98a2b3; }

.share-card .sc-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 10px 0;
}
.share-card .sc-foot {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--faint);
}
.share-card.tone-dark .sc-foot { color: #98a2b3; }

.share-card .sc-bot {
  display: flex;
  flex: none;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 15px;
  color: var(--faint);
}
.share-card .sc-brand { letter-spacing: .08em; }
.share-card.tone-dark .sc-bot { color: #98a2b3; }

/* ---- 01 卷宗封面（公文式） ---- */
.share-card.layout-cover { padding: 34px 38px 28px; }
.share-card.layout-cover .sc-mid { justify-content: flex-start; padding: 0 0 12px; }
.share-card.layout-cover .sc-top { display: none; }

.cv-corner { position: absolute; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, .3); }
.cv-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.cv-corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.cv-corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.cv-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.cv-kicker {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: .14em;
  color: #98a2b3;
}
.cv-title {
  margin: 5px 0 0;
  font-size: 35px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .12em;
  color: #fff;
}
.cv-sub {
  margin: 4px 0 0;
  font-size: 17px;
  color: #98a2b3;
}
.cv-rule {
  height: 4px;
  margin: 9px 0 11px;
  border-top: 2px solid rgba(255, 255, 255, .5);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.cv-fields { margin: 0; display: grid; gap: 3px; }
.cv-fields > div { display: flex; align-items: baseline; gap: 10px; }
.cv-fields dt {
  flex: none;
  width: 72px;
  font-size: 15px;
  color: #98a2b3;
}
.cv-fields dd {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-bottom: 2px;
  border-bottom: 1px dotted rgba(255, 255, 255, .22);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cv-note {
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 3px solid #e24b4a;
  font-size: 16px;
  font-style: italic;
  line-height: 1.45;
  color: #d0d5dd;
}
.cv-note span {
  margin-right: 8px;
  font-style: normal;
  font-size: 14px;
  color: #98a2b3;
}
.cv-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}
.cv-amount-l { min-width: 0; }
.cv-value {
  margin: 0;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #fff;
}
.cv-vsub {
  margin: 5px 0 0;
  font-size: 15px;
  color: #98a2b3;
}
.cv-stamp {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border: 3px solid #e24b4a;
  border-radius: 50%;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #e24b4a;
  transform: rotate(-13deg);
}

/* ---- 02 结案陈词 ---- */
.share-card.layout-verdict .sc-mid { justify-content: flex-start; padding: 12px 0 0; }
.vd-quote {
  margin: 0;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.vd-lines {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.vd-lines li { display: flex; gap: 8px; }
.vd-no { flex: none; font-size: 17px; font-weight: 700; color: var(--accent); }
.vd-t { min-width: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }

/* ---- 03 / 04 排行榜 ---- */
.share-card.layout-rank .sc-mid { justify-content: flex-start; padding: 12px 0; }
.rk-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.rk-top { display: flex; align-items: baseline; gap: 10px; }
.rk-no { flex: none; width: 20px; font-size: 17px; font-weight: 800; color: var(--faint); }
.rk-name {
  flex: 1;
  min-width: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rk-main { flex: none; font-size: 21px; font-weight: 800; color: var(--ink); }
.rk-bar {
  height: 8px;
  margin: 4px 0 2px;
  border-radius: 4px;
  background: var(--fill);
  overflow: hidden;
}
.rk-bar > span { display: block; height: 8px; border-radius: 4px; background: var(--accent); }
.rk-list.accent-amber .rk-bar > span { background: #ba7517; }
.rk-sub {
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- 05 / 06 竖柱图 ---- */
.share-card.layout-chart .sc-mid { justify-content: flex-start; padding: 12px 0; }
.share-card.layout-chart .sc-foot { margin-top: 14px; }
.ch-plot { display: flex; flex-direction: column; min-height: 0; }
.ch-cols {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 268px;
}
.ch-bar { flex: 1; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.ch-bar > i {
  display: block;
  width: 100%;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  background: #b5d4f4;
}
.ch-bar.is-hot > i { background: var(--accent); }
.ch-bar.is-night > i { background: #f0997b; }
.ch-bar.is-hot.is-night > i { background: #d85a30; }
/* 深色卡：默认柱降为中灰白，避免浅蓝在墨底上过曝 */
.share-card.tone-dark .ch-bar > i { background: rgba(255, 255, 255, .26); }
.share-card.tone-dark .ch-bar.is-hot > i { background: var(--accent); }
.share-card.tone-dark .ch-bar.is-night > i { background: #f0997b; }
.share-card.tone-dark .ch-bar.is-hot.is-night > i { background: #d85a30; }
.ch-axis { display: flex; gap: 12px; margin-top: 9px; }
.ch-axis > span {
  flex: 1;
  font-size: 15px;
  text-align: center;
  color: var(--muted);
  white-space: nowrap;
}
.share-card.is-dense .ch-cols { gap: 4px; height: 268px; }
.share-card.is-dense .ch-axis { gap: 4px; }
.share-card.is-dense .ch-axis > span { font-size: 12px; }
.share-card.is-dense .ch-bar > i { border-radius: 2px 2px 0 0; }
.ch-stats { display: grid; gap: 8px; margin: 15px 0 0; padding: 0; list-style: none; }
.ch-stats li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}
.ch-stats li span { flex: none; color: var(--muted); }
.ch-stats li b { font-weight: 700; color: var(--ink); text-align: right; }

/* ---- 07 关键指标 ---- */
.mx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mx-cell { padding: 16px; border-radius: 10px; background: var(--fill); }
.mx-k { display: block; font-size: 15px; color: var(--muted); }
.mx-v {
  display: block;
  margin-top: 7px;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
}
.mx-foot { display: grid; gap: 6px; margin-top: 18px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.mx-foot p { margin: 0; }

/* ---- 08 异常线索 ---- */
.share-card.layout-clues .sc-mid { justify-content: flex-start; padding: 16px 0 12px; }
.cl-list { display: grid; flex: 1; align-content: space-between; margin: 0; padding: 0; list-style: none; }
.cl-list li {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cl-list li:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.cl-dot {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: #639922;
}
.cl-list .lv-high .cl-dot { background: #e24b4a; }
.cl-list .lv-mid .cl-dot { background: #ef9f27; }
.cl-list .lv-low .cl-dot { background: #639922; }
.cl-body { min-width: 0; flex: 1; }
.cl-kind {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.cl-date { flex: none; font-size: 14px; font-weight: 400; color: var(--faint); }
.cl-title { margin-top: 5px; font-size: 16.5px; line-height: 1.45; color: var(--muted); }

/* ---- 09 结案落款 ---- */
.share-card.layout-seal .sc-mid { justify-content: flex-start; padding: 8px 0 0; }
.sl-stamp {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 108px;
  height: 108px;
  border: 4px solid #e24b4a;
  border-radius: 50%;
  color: #e24b4a;
  transform: rotate(-10deg);
}
.sl-stamp-t { font-size: 30px; font-weight: 800; letter-spacing: .1em; }
.sl-stamp-d { font-size: 14px; letter-spacing: .02em; }
.sl-headline {
  margin: 18px 0 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
}
.sl-note { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: #98a2b3; }
.sl-qr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.sl-qr-box {
  flex: none;
  display: block;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
  line-height: 0;
}
.sl-qr-box img { display: block; }
.sl-qr-box.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 114px;
  height: 114px;
  padding: 0;
  border: 1px dashed rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .06);
  font-size: 15px;
  line-height: 1;
  color: #98a2b3;
}
.sl-qr-txt { font-size: 16px; line-height: 1.45; color: #d0d5dd; }
