:root {
  --ink: #0F172A;
  --ink-2: #1E293B;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --line: #E2E8F0;
  --line-2: #EEF2F7;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --brand: #1D4ED8;
  --brand-2: #2563EB;
  --brand-soft: #EFF4FF;
  --ok: #12874F;
  --ok-soft: #E7F6EE;
  --warn: #B45309;
  --warn-soft: #FEF4E6;
  --bad: #C22B2B;
  --bad-soft: #FDECEC;
  --shadow-s: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-m: 0 4px 14px rgba(15, 23, 42, .07), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-l: 0 18px 44px rgba(15, 23, 42, .13);
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 22px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- 顶部说明条 ---------- */
.protobar {
  background: linear-gradient(100deg, #101B33 0%, #1B2C52 55%, #23386B 100%);
  color: #fff;
  padding: 14px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.protobar .pb-back {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; color: #E4ECFF;
}
.protobar .pb-back:hover { background: rgba(255,255,255,.2); }
.protobar h1 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: .2px; }
.protobar .pb-sub { font-size: 12.5px; color: #A9BAE0; }
.protobar .pb-spacer { flex: 1; }
.protobar .pb-tag {
  font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  background: rgba(120,168,255,.18); color: #C6D8FF; border: 1px solid rgba(120,168,255,.3);
}

/* ---------- 通用容器 ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 26px; }
.wrap-wide { max-width: 1480px; margin: 0 auto; padding: 26px; }

.sec-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 16.5px; font-weight: 650; letter-spacing: .2px; }
.sec-head .sh-note { font-size: 12.5px; color: var(--muted); }
.sec-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
}

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-l); box-shadow: var(--shadow-s);
}
.card-pad { padding: 18px 20px; }

.note {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--r-m); padding: 13px 16px; font-size: 13px; color: var(--ink-2);
}
.note-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.note-bad { border-left-color: var(--bad); background: var(--bad-soft); }
.note strong { font-weight: 650; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
}
.badge i { font-size: 13px; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-gray { background: #F1F4F8; color: var(--muted); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.btn:hover { border-color: #CBD5E1; }
.btn-pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-pri:hover { background: #1A45C0; border-color: #1A45C0; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-bad { background: #fff; border-color: #F0C2C2; color: var(--bad); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 14.5px; border-radius: 12px; }
.btn:disabled, .btn.is-disabled { opacity: .45; cursor: not-allowed; }
.btn-link { border: none; background: none; color: var(--brand); padding: 4px 2px; }

/* ---------- 表格 ---------- */
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th {
  text-align: left; font-weight: 600; color: var(--muted);
  font-size: 12px; padding: 10px 12px; background: #FAFBFD;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tb td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tb tr:last-child td { border-bottom: none; }
table.tb tbody tr:hover { background: #FCFDFF; }
.td-strong { font-weight: 600; color: var(--ink); }
.td-sub { font-size: 12px; color: var(--muted); }

/* ---------- 后台框架 ---------- */
.console { display: flex; min-height: calc(100vh - 52px); }
.console-side {
  width: 214px; flex: none; background: #101B33; color: #C7D3EC; padding: 18px 0;
}
.console-side .cs-brand {
  padding: 0 18px 16px; display: flex; align-items: center; gap: 9px;
  border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px;
}
.console-side .cs-brand i { font-size: 20px; color: #6E9BFF; }
.console-side .cs-brand b { color: #fff; font-size: 14px; font-weight: 650; }
.console-side .cs-brand span { display: block; font-size: 10.5px; color: #7C8DB2; letter-spacing: .5px; }
.cs-group { font-size: 10.5px; color: #6B7CA0; padding: 12px 18px 6px; letter-spacing: .8px; }
.cs-item {
  display: flex; align-items: center; gap: 9px; padding: 10px 18px;
  font-size: 13px; cursor: pointer; border-left: 3px solid transparent;
}
.cs-item i { font-size: 16px; color: #8CA3D0; }
.cs-item:hover { background: rgba(255,255,255,.05); }
.cs-item.on { background: rgba(110,155,255,.14); border-left-color: #6E9BFF; color: #fff; }
.cs-item.on i { color: #6E9BFF; }
.cs-item .cs-dot {
  margin-left: auto; background: #C22B2B; color: #fff; font-size: 10.5px;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px;
}
.console-main { flex: 1; min-width: 0; background: var(--bg); }
.console-top {
  height: 56px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 24px; gap: 12px;
}
.console-top .ct-title { font-size: 15px; font-weight: 650; }
.console-top .ct-crumb { font-size: 12.5px; color: var(--muted-2); }
.console-top .ct-spacer { flex: 1; }
.console-top .ct-user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.console-top .ct-ava {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #4F86F7); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 650;
}
.console-body { padding: 22px 24px 40px; }

/* ---------- 页签 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tab {
  padding: 10px 15px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab i { font-size: 15px; }
.tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.tab:hover { color: var(--ink-2); }
.pane { display: none; }
.pane.on { display: block; }

/* ---------- 手机框 ---------- */
.phone-strip {
  display: flex; flex-wrap: wrap; gap: 26px 26px; padding: 6px 4px 22px;
}
.phone-col { flex: none; width: 340px; }
.phone-cap { margin-bottom: 10px; }
.phone-cap .pc-step {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  color: var(--brand); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px;
}
.phone-cap h4 { margin: 7px 0 3px; font-size: 14.5px; font-weight: 650; }
.phone-cap p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.phone {
  width: 340px; height: 700px; background: #fff; border-radius: 30px;
  border: 9px solid #16202F; box-shadow: var(--shadow-l);
  overflow: hidden; position: relative; display: flex; flex-direction: column;
}
.phone-status {
  height: 30px; flex: none; background: #fff; display: flex; align-items: center;
  justify-content: space-between; padding: 0 16px; font-size: 11px; color: var(--ink);
  font-weight: 600;
}
.phone-status .ps-r { display: flex; gap: 4px; align-items: center; }
.phone-status .ps-r i { font-size: 12px; }
.phone-nav {
  height: 44px; flex: none; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; padding: 0 12px; gap: 8px; background: #fff;
}
.phone-nav i { font-size: 19px; color: var(--ink-2); }
.phone-nav b { font-size: 15px; font-weight: 650; }
.phone-nav .pn-r { margin-left: auto; display: flex; gap: 12px; }
.phone-nav .pn-r i { font-size: 18px; color: var(--muted); }
.phone-scroll { flex: 1; overflow-y: auto; background: var(--bg); }
.phone-scroll::-webkit-scrollbar { width: 0; }
.phone-pad { padding: 12px; }
.phone-dock {
  flex: none; border-top: 1px solid var(--line-2); background: #fff;
  padding: 10px 12px 14px; display: flex; gap: 9px;
}
.phone-tabbar {
  flex: none; height: 54px; border-top: 1px solid var(--line-2); background: #fff;
  display: flex;
}
.phone-tabbar div {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; font-size: 10.5px; color: var(--muted-2);
}
.phone-tabbar div i { font-size: 20px; }
.phone-tabbar div.on { color: var(--brand); }

/* ---------- 内容卡（一线内容包） ---------- */
.pkg-scene {
  display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px;
  background: #fff; border-bottom: 1px solid var(--line-2);
}
.pkg-scene::-webkit-scrollbar { height: 0; }
.pkg-scene span {
  flex: none; font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
  background: #F1F4F8; color: var(--muted); font-weight: 600;
}
.pkg-scene span.on { background: var(--ink); color: #fff; }

.type-tabs { display: flex; gap: 18px; padding: 11px 14px 0; background: #fff; }
.type-tabs div {
  font-size: 14px; font-weight: 650; color: var(--muted-2); padding-bottom: 9px;
  border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 5px;
}
.type-tabs div i { font-size: 16px; }
.type-tabs div.on { color: var(--ink); border-bottom-color: var(--brand); }
.type-tabs div.soon { color: #C2CCDA; }
.type-tabs div.soon em {
  font-style: normal; font-size: 10px; background: #F1F4F8; color: var(--muted-2);
  padding: 1px 5px; border-radius: 4px;
}

.ctcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 11px; margin-bottom: 10px; display: flex; gap: 11px;
}
.ctcard .ct-thumb {
  width: 74px; height: 98px; flex: none; border-radius: 8px; overflow: hidden;
  background: #E8EDF5; position: relative;
}
.ctcard .ct-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctcard .ct-thumb .ct-dur {
  position: absolute; right: 4px; bottom: 4px; background: rgba(10,16,28,.72);
  color: #fff; font-size: 9.5px; padding: 1px 5px; border-radius: 4px;
}
.ctcard .ct-thumb .ct-play {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
}
.ctcard .ct-thumb .ct-play i { font-size: 26px; filter: drop-shadow(0 2px 5px rgba(0,0,0,.4)); }
.ctcard .ct-body { flex: 1; min-width: 0; }
.ctcard .ct-t { font-size: 13.5px; font-weight: 650; line-height: 1.45; margin-bottom: 5px; }
.ctcard .ct-meta { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.ctcard .ct-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.ctcard .ct-foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; }

.mini-label { font-size: 11px; color: var(--muted-2); margin: 14px 0 7px; font-weight: 600; letter-spacing: .3px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field label em { font-style: normal; color: var(--bad); margin-right: 2px; }
.field .hint { font-size: 11.5px; color: var(--muted-2); margin-top: 5px; }
.inp, .ta, .sel {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 13px; font-family: inherit; color: var(--ink); background: #fff;
}
.ta { min-height: 96px; resize: vertical; line-height: 1.7; }
.inp:focus, .ta:focus, .sel:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.inp[readonly] { background: #F7F9FC; color: var(--muted); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); cursor: pointer; font-weight: 600;
}
.chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.counter { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ---------- 质检结果 ---------- */
.qc-hit {
  border: 1px solid #F3D3D3; background: #FEF7F7; border-radius: var(--r-m);
  padding: 12px; margin-bottom: 10px;
}
.qc-hit .qh-top { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.qc-hit .qh-top b { font-size: 12.5px; color: var(--bad); }
.qc-hit .qh-row { font-size: 12px; line-height: 1.65; margin-bottom: 6px; }
.qc-hit .qh-row span { color: var(--muted); display: inline-block; min-width: 52px; }
.qc-hit .qh-quote {
  background: #fff; border: 1px dashed #E9C9C9; border-radius: 7px; padding: 7px 9px;
  color: var(--ink-2); font-size: 12px;
}
.qc-hit mark { background: #FFE0E0; color: #A31D1D; padding: 0 2px; border-radius: 2px; }
.qc-hit .qh-fix {
  background: var(--ok-soft); border: 1px solid #C8E8D6; border-radius: 7px;
  padding: 8px 9px; font-size: 12px; color: #0E6B41; line-height: 1.6;
}
.qc-pass {
  display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ok);
  padding: 7px 0;
}
.qc-pass i { font-size: 16px; }

/* ---------- 校验分项 ---------- */
.checklist { display: grid; gap: 9px; }
.check-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px;
}
.check-row i { font-size: 18px; }
.check-row.ok i { color: var(--ok); }
.check-row.ok { border-color: #CFEADC; background: #F7FCF9; }
.check-row.bad i { color: var(--bad); }
.check-row.bad { border-color: #F0CFCF; background: #FEF8F8; }
.check-row.wait i { color: var(--muted-2); }
.check-row .cr-t { font-weight: 600; }
.check-row .cr-s { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ---------- 指标卡 ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 17px 18px; box-shadow: var(--shadow-s);
}
.kpi .k-t { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .k-t i { font-size: 15px; color: var(--brand); }
.kpi .k-v { font-size: 30px; font-weight: 700; letter-spacing: -.5px; margin: 8px 0 3px; }
.kpi .k-v small { font-size: 15px; font-weight: 650; color: var(--muted); margin-left: 2px; }
.kpi .k-d { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.kpi .k-d.up { color: var(--ok); }
.kpi .k-d.down { color: var(--bad); }
.kpi.kpi-core { border-color: #C9D9FB; background: linear-gradient(180deg, #F8FBFF, #fff 60%); }
.kpi.kpi-alert { border-color: #F2CFCF; background: linear-gradient(180deg, #FEF8F8, #fff 60%); }

/* ---------- 纯 CSS 柱状图 ---------- */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 168px; padding: 10px 4px 0; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bars .bar .b-v { font-size: 11.5px; font-weight: 650; color: var(--ink-2); }
.bars .bar .b-fill {
  width: 100%; max-width: 44px; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #4F86F7, #1D4ED8);
}
.bars .bar .b-fill.alt { background: linear-gradient(180deg, #6FD3A3, #12874F); }
.bars .bar .b-x { font-size: 11px; color: var(--muted-2); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.legend b { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }

/* ---------- 会话气泡（客户端） ---------- */
.chat { background: #F0F1F5; min-height: 100%; padding: 14px 12px; }
.chat-day { text-align: center; font-size: 11px; color: #9AA3B2; margin: 6px 0 14px; }
.chat-row { display: flex; gap: 8px; margin-bottom: 16px; }
.chat-row.me { flex-direction: row-reverse; }
.chat-ava {
  width: 34px; height: 34px; border-radius: 6px; flex: none; overflow: hidden;
  background: #D6DCE6;
}
.chat-ava img { width: 100%; height: 100%; object-fit: cover; }
.chat-ava.cu { background: linear-gradient(135deg, #94A3B8, #64748B); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 650; }
.bubble {
  max-width: 216px; background: #fff; border-radius: 5px; padding: 9px 11px;
  font-size: 13.5px; line-height: 1.6; box-shadow: 0 1px 1px rgba(15,23,42,.05);
}
.bubble.me { background: #95EC69; }
.vidcard { width: 190px; border-radius: 6px; overflow: hidden; background: #0C1220; position: relative; }
.vidcard img { width: 100%; height: 250px; object-fit: cover; display: block; }
.vidcard .vc-play { position: absolute; inset: 0; display: grid; place-items: center; }
.vidcard .vc-play i { font-size: 44px; color: rgba(255,255,255,.94); filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
.vidcard .vc-dur {
  position: absolute; right: 7px; bottom: 7px; background: rgba(8,12,20,.7); color: #fff;
  font-size: 10.5px; padding: 2px 6px; border-radius: 4px;
}
.vidcard .vc-ai {
  position: absolute; left: 7px; bottom: 7px; background: rgba(8,12,20,.55); color: #E6EBF5;
  font-size: 9.5px; padding: 2px 6px; border-radius: 4px; letter-spacing: .3px;
}
.vidcard .vc-cap {
  position: absolute; left: 0; right: 0; bottom: 34px; text-align: center;
  color: #fff; font-size: 11.5px; text-shadow: 0 1px 3px rgba(0,0,0,.8); padding: 0 10px;
}
.vidcard::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 84px;
  background: linear-gradient(to top, rgba(6,9,15,.62), rgba(6,9,15,0));
  pointer-events: none;
}
.vidcard .vc-play, .vidcard .vc-cap, .vidcard .vc-dur, .vidcard .vc-ai { z-index: 1; }

/* ---------- 播放器 ---------- */
.player { background: #06090F; height: 100%; display: flex; flex-direction: column; }
.player .pl-video { flex: 1; position: relative; overflow: hidden; }
.player .pl-video img { width: 100%; height: 100%; object-fit: cover; }
.player .pl-ai {
  position: absolute; right: 10px; top: 10px; background: rgba(8,12,20,.5);
  color: #DDE5F2; font-size: 10px; padding: 3px 8px; border-radius: 5px; letter-spacing: .4px;
}
.player .pl-sub {
  position: absolute; left: 14px; right: 14px; bottom: 64px; text-align: center;
  color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0,0,0,.85);
}
.player .pl-bar { position: absolute; left: 14px; right: 14px; bottom: 26px; }
.player .pl-track { height: 3px; background: rgba(255,255,255,.28); border-radius: 2px; }
.player .pl-track i { display: block; height: 3px; width: 42%; background: #fff; border-radius: 2px; }
.player .pl-time { display: flex; justify-content: space-between; font-size: 10px; color: #C3CBDA; margin-top: 6px; }

/* ---------- 弹层 ---------- */
.sheet-mask {
  position: absolute; inset: 0; background: rgba(10,16,28,.42);
  display: flex; align-items: flex-end;
}
.sheet {
  width: 100%; background: #fff; border-radius: 18px 18px 0 0; padding: 16px 16px 18px;
}
.sheet h5 { margin: 0 0 4px; font-size: 15.5px; font-weight: 650; }
.sheet .sh-sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.sheet .sh-target {
  display: flex; align-items: center; gap: 10px; padding: 11px;
  background: #F7F9FC; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px;
}
.sheet .sh-target .sh-ava {
  width: 34px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, #94A3B8, #64748B);
  color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 650;
}

/* ---------- 进度 ---------- */
.prog { height: 6px; background: #E9EEF6; border-radius: 3px; overflow: hidden; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, #4F86F7, #1D4ED8); border-radius: 3px; }
.steps-v { display: grid; gap: 0; }
.step-v { display: flex; gap: 11px; }
.step-v .sv-rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.step-v .sv-dot {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: #E9EEF6; color: var(--muted-2); font-size: 11px; font-weight: 700;
}
.step-v .sv-dot i { font-size: 13px; }
.step-v.done .sv-dot { background: var(--ok); color: #fff; }
.step-v.now .sv-dot { background: var(--brand); color: #fff; }
.step-v .sv-line { flex: 1; width: 2px; background: #E9EEF6; margin: 3px 0; min-height: 18px; }
.step-v.done .sv-line { background: #BFE3CF; }
.step-v .sv-body { padding-bottom: 14px; }
.step-v .sv-t { font-size: 13px; font-weight: 650; }
.step-v .sv-s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 闭环流程（首页） ---------- */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.loop-col { padding: 0 12px; position: relative; }
.loop-col + .loop-col::before {
  content: ""; position: absolute; left: -1px; top: 44px; bottom: 16px; width: 1px; background: var(--line);
}
.loop-col .lc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.loop-col .lc-no {
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: #fff;
}
.loop-col .lc-head b { font-size: 14px; font-weight: 650; }
.loop-col .lc-who { font-size: 11.5px; color: var(--muted); margin: 0 0 12px 32px; }
.loop-step {
  display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border-radius: 10px;
  background: #FAFBFD; border: 1px solid var(--line-2); margin-bottom: 7px;
}
.loop-step i { font-size: 15px; color: var(--brand); margin-top: 2px; }
.loop-step .ls-t { font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.loop-step .ls-s { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.loop-step.gate { background: var(--warn-soft); border-color: #F3DDBC; }
.loop-step.gate i { color: var(--warn); }
.loop-step.key { background: var(--brand-soft); border-color: #CBDBFA; }
.loop-back {
  margin-top: 14px; display: flex; align-items: center; gap: 7px; font-size: 11.5px;
  color: var(--ok); background: var(--ok-soft); border: 1px dashed #BFE3CF;
  border-radius: 10px; padding: 9px 11px; line-height: 1.5;
}
.loop-back i { font-size: 15px; }

/* ---------- 角色入口卡 ---------- */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 16px; }
.role {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 20px; box-shadow: var(--shadow-s); display: flex; flex-direction: column;
}
.role:hover { box-shadow: var(--shadow-m); border-color: #CBD8EE; }
.role .r-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-size: 21px; margin-bottom: 13px;
}
.role h3 { margin: 0 0 5px; font-size: 15.5px; font-weight: 650; }
.role .r-who { font-size: 12px; color: var(--muted); margin-bottom: 11px; }
.role ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.role ul li {
  font-size: 12.5px; color: var(--ink-2); padding: 4px 0 4px 16px; position: relative; line-height: 1.55;
}
.role ul li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px;
  border-radius: 50%; background: #B9C6DC;
}
.role .r-go { margin-top: auto; }

/* ---------- 网格 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

/* ---------- 形象资产卡 ---------- */
.ava-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  overflow: hidden; box-shadow: var(--shadow-s);
}
.ava-card .av-img { height: 190px; background: #E8EDF5; position: relative; }
.ava-card .av-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava-card .av-img .av-tag {
  position: absolute; left: 8px; top: 8px; background: rgba(10,16,28,.7); color: #fff;
  font-size: 10.5px; padding: 3px 8px; border-radius: 5px;
}
.ava-card .av-b { padding: 11px 13px; }
.ava-card .av-b .av-t { font-size: 13px; font-weight: 650; }
.ava-card .av-b .av-s { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ---------- 只读禁用提示 ---------- */
.forbid {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px;
  color: var(--muted-2); background: #F5F7FA; border: 1px dashed #D6DEEA;
  padding: 4px 9px; border-radius: 7px;
}
.forbid i { font-size: 13px; }

@media (max-width: 1080px) {
  .loop { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .loop-col + .loop-col::before { display: none; }
  .console-side { display: none; }
}

/* ==================== v2 全流程新增 ==================== */

/* 六环节闭环 */
.loop6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.loop6 .loop-col { padding: 0 10px; }
.loop6 .loop-col + .loop-col::before {
  content: ""; position: absolute; left: -1px; top: 44px; bottom: 16px; width: 1px; background: var(--line);
}
.loop6 .loop-step { padding: 8px 9px; }
.loop6 .loop-step .ls-t { font-size: 12px; }
.loop6 .loop-step .ls-s { font-size: 10.5px; }

/* 变更对照行 */
.diff { display: grid; gap: 10px; }
.diff-row {
  display: grid; grid-template-columns: 46px 1fr 1fr; gap: 14px; align-items: stretch;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 13px 15px;
}
.diff-row .df-no {
  width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
}
.diff-row .df-t { font-size: 13.5px; font-weight: 650; margin-bottom: 4px; }
.diff-row .df-old { font-size: 12px; color: var(--muted); line-height: 1.6; }
.diff-row .df-old em { font-style: normal; color: var(--muted-2); display: block; font-size: 10.5px; margin-bottom: 2px; letter-spacing: .3px; }
.diff-row .df-new {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.6; background: var(--brand-soft);
  border: 1px solid #CBDBFA; border-radius: 10px; padding: 9px 11px;
}
.diff-row .df-new em { font-style: normal; color: var(--brand); display: block; font-size: 10.5px; margin-bottom: 3px; font-weight: 700; letter-spacing: .3px; }

/* 风险卡 */
.riskcard {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--bad);
  border-radius: var(--r-m); padding: 15px 17px;
}
.riskcard .rk-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.riskcard .rk-h b { font-size: 14px; font-weight: 650; }
.riskcard .rk-why { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.riskcard .rk-fix { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.riskcard .rk-fix b { color: var(--ok); }

/* LP 选择器 */
.lp-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 11px; }
.lp-card {
  border: 1px solid var(--line); border-radius: var(--r-m); padding: 11px; background: #fff;
  display: flex; gap: 10px; align-items: center; cursor: pointer;
}
.lp-card .lp-ava { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex: none; background: #E8EDF5; }
.lp-card .lp-ava img { width: 100%; height: 100%; object-fit: cover; }
.lp-card .lp-n { font-size: 13px; font-weight: 650; }
.lp-card .lp-s { font-size: 11px; color: var(--muted); margin-top: 2px; }
.lp-card.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.lp-card.off { background: #F7F8FB; cursor: not-allowed; }
.lp-card.off .lp-n, .lp-card.off .lp-s { color: var(--muted-2); }
.lp-card.off .lp-ava { filter: grayscale(1); opacity: .55; }

/* 数字人模板选择 */
.dh-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dh-card { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: #fff; cursor: pointer; }
.dh-card .dh-img { height: 132px; background: #E8EDF5; position: relative; }
.dh-card .dh-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-card .dh-b { padding: 9px 11px; }
.dh-card .dh-t { font-size: 12.5px; font-weight: 650; }
.dh-card .dh-s { font-size: 11px; color: var(--muted); margin-top: 2px; }
.dh-card.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.dh-card.on .dh-b { background: var(--brand-soft); }
.dh-card .dh-pin {
  position: absolute; left: 7px; top: 7px; background: rgba(10,16,28,.72); color: #fff;
  font-size: 10px; padding: 2px 7px; border-radius: 5px;
}

/* 脚本候选 */
.cand { border: 1px solid var(--line); border-radius: var(--r-m); padding: 13px 15px; background: #fff; }
.cand.on { border-color: var(--brand); background: #FBFDFF; box-shadow: 0 0 0 3px rgba(37,99,235,.07); }
.cand .cd-h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.cand .cd-h b { font-size: 13px; font-weight: 650; }
.cand .cd-tx { font-size: 12.5px; line-height: 1.85; color: var(--ink-2); }
.cand .cd-tx u { text-decoration: none; background: #FFF3CD; padding: 0 2px; border-radius: 2px; }
.cand .cd-f { display: flex; align-items: center; gap: 9px; margin-top: 11px; }

/* 漏斗 */
.funnel { display: grid; gap: 8px; }
.funnel-row { display: flex; align-items: center; gap: 13px; }
.funnel-row .fr-n { width: 128px; flex: none; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.funnel-row .fr-bar { flex: 1; height: 34px; background: #F1F4F8; border-radius: 8px; overflow: hidden; position: relative; }
.funnel-row .fr-fill {
  height: 100%; border-radius: 8px; background: linear-gradient(90deg, #4F86F7, #1D4ED8);
  display: flex; align-items: center; padding: 0 11px; color: #fff; font-size: 12.5px; font-weight: 650;
}
.funnel-row .fr-fill.warn { background: linear-gradient(90deg, #E9A23B, #B45309); }
.funnel-row .fr-fill.bad { background: linear-gradient(90deg, #D9564F, #C22B2B); }
.funnel-row .fr-rate { width: 108px; flex: none; font-size: 12px; color: var(--muted); text-align: right; }
.funnel-row .fr-rate b { color: var(--ink-2); }
.funnel-row .fr-rate.down b { color: var(--bad); }

/* 审核流程时间轴（横向） */
.aflow { display: flex; align-items: flex-start; gap: 0; }
.aflow .af-node { flex: 1; position: relative; padding-right: 12px; }
.aflow .af-node::after {
  content: ""; position: absolute; left: 13px; right: 0; top: 13px; height: 2px; background: #E9EEF6; z-index: 0;
}
.aflow .af-node:last-child { flex: none; padding-right: 0; }
.aflow .af-node:last-child::after { display: none; }
.aflow .af-node.done::after { background: #BFE3CF; }
.aflow .af-dot {
  width: 26px; height: 26px; border-radius: 50%; background: #E9EEF6; color: var(--muted-2);
  display: grid; place-items: center; font-size: 13px; position: relative; z-index: 1;
}
.aflow .af-node.done .af-dot { background: var(--ok); color: #fff; }
.aflow .af-node.now .af-dot { background: var(--brand); color: #fff; }
.aflow .af-node.bad .af-dot { background: var(--bad); color: #fff; }
.aflow .af-node.skip .af-dot { background: #F1F4F8; color: #C2CCDA; }
.aflow .af-t { font-size: 12.5px; font-weight: 650; margin: 8px 0 3px; }
.aflow .af-s { font-size: 11px; color: var(--muted); line-height: 1.6; padding-right: 10px; }
.aflow .af-s b { color: var(--ink-2); font-weight: 600; }

/* 上传投放区 */
.drop {
  border: 1.5px dashed #C6D2E4; border-radius: var(--r-m); background: #FAFBFE;
  padding: 18px 14px; text-align: center;
}
.drop i { font-size: 26px; color: #8CA3D0; }
.drop .dp-t { font-size: 13px; font-weight: 650; margin: 7px 0 3px; }
.drop .dp-s { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.drop.ok { border-style: solid; border-color: #CFEADC; background: #F7FCF9; }
.drop.bad { border-style: solid; border-color: #F0CFCF; background: #FEF8F8; }

/* 录音波形（纯 CSS） */
.wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.wave i { display: block; width: 3px; border-radius: 2px; background: #7FA6F0; }

/* 要求清单 */
.req { display: grid; gap: 7px; }
.req div { display: flex; gap: 7px; align-items: flex-start; font-size: 11.5px; color: var(--ink-2); line-height: 1.55; }
.req div i { font-size: 14px; color: var(--brand); margin-top: 1px; }

/* 授权条款 */
.agree { border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; padding: 12px 13px; }
.agree .ag-row { display: flex; gap: 9px; align-items: flex-start; padding: 7px 0; font-size: 12px; line-height: 1.6; }
.agree .ag-box {
  width: 17px; height: 17px; border-radius: 5px; flex: none; margin-top: 1px;
  border: 1.5px solid #C6D2E4; display: grid; place-items: center; color: #fff; font-size: 11px;
}
.agree .ag-row.on .ag-box { background: var(--brand); border-color: var(--brand); }
.agree .ag-row.key { background: var(--brand-soft); border: 1px solid #CBDBFA; border-radius: 9px; padding: 9px 10px; margin: 4px 0; }

/* 小标题分隔 */
.subhead { font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin: 18px 0 10px; display: flex; align-items: center; gap: 7px; }
.subhead i { font-size: 15px; color: var(--brand); }
.subhead:first-child { margin-top: 0; }

/* 键值行 */
.kv { display: grid; gap: 0; }
.kv-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.kv-row:last-child { border-bottom: none; }
.kv-row .kv-k { width: 96px; flex: none; color: var(--muted); }
.kv-row .kv-v { flex: 1; color: var(--ink-2); }

@media (max-width: 1240px) {
  .loop6 { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .loop6 .loop-col + .loop-col::before { display: none; }
  .diff-row { grid-template-columns: 40px 1fr; }
  .diff-row .df-new { grid-column: 2; }
}
