/* 星链 StarLink V3.0 · 智能体界面设计系统
   依据：琅琊星辰 VI 视觉识别体系 V1.0
   深海军蓝 #0F2B55 / 哑光金 #D4AF37 / 浅灰蓝 #F1F4F9 / 纯白
   无渐变 · 无阴影 · 1px 描边 · 矢量扁平 */

:root {
  /* v3 视觉体系（2026-10-19）：深色侧栏 + 浅灰内容 + 白卡 + 橙色行动色。
     与原 VI 的差别只有「主色由哑光金改为品牌橙、圆角由 2px 改为 12px、引入柔和阴影」，
     结构不变，所以全站换肤只动这一组变量 + 文件末尾的风格层。 */
  --navy: #0E1526;
  --navy-soft: #EEF1F6;
  --gold: #FF6A00;
  --gold-soft: #FFF3EA;
  --gold-line: rgba(255, 106, 0, .30);
  --mist: #F4F6F9;
  --line: #EDF0F5;
  --ink: #1A2233;
  --muted: #77839A;
  --warn: #E5484D;
  --white: #FFFFFF;
  --side: 238px;
  --r: 12px;
  --r-sm: 8px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 2px 6px rgba(16, 24, 40, .03), 0 10px 28px rgba(16, 24, 40, .05);
  --shadow-lg: 0 18px 48px rgba(16, 24, 40, .10);
  --orange-deep: #E85F00;
  --orange-soft: #FFF3EA;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 14px/1.6 "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font-family: inherit; }

.num, .mono { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; font-feature-settings: "tnum"; }
.mono { font-family: "SFMono-Regular", Consolas, "Courier New", monospace; }
.c-gold { color: var(--gold); }
.c-navy { color: var(--navy); }
.c-muted { color: var(--muted); }
.c-warn { color: var(--warn); }
.tc { text-align: center; }
.tr { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- 骨架 ---------- */
.layout { display: flex; min-height: 100vh; align-items: stretch; }

aside.side {
  width: var(--side); flex: 0 0 var(--side);
  background: var(--navy); color: #fff;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}

.brand { padding: 20px 18px 16px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.brand .mark { display: flex; align-items: center; gap: 9px; }
.brand .mark svg { display: block; }
.brand h1 { font-size: 13.5px; letter-spacing: .06em; margin-top: 10px; font-weight: 700; }
.brand p { margin-top: 3px; font-size: 10.5px; letter-spacing: .1em; color: rgba(255, 255, 255, .58); }

.nav { flex: 1; overflow-y: auto; padding: 8px 0 14px; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); }
.nav-group { padding: 14px 18px 6px; font-size: 10px; letter-spacing: .16em; color: rgba(255, 255, 255, .42); }
.nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 18px; font-size: 13px; color: rgba(255, 255, 255, .8);
  border-left: 2px solid transparent;
}
.nav a .ic { width: 14px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .5); }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a.on { background: rgba(255, 255, 255, .1); color: #fff; border-left-color: var(--gold); font-weight: 600; }
.nav a.on .ic { color: var(--gold); }
.nav a .badge {
  margin-left: auto; font-size: 10px; padding: 0 5px; line-height: 15px;
  border: 1px solid rgba(212, 175, 55, .6); color: var(--gold); border-radius: 2px;
}

.side-ft { padding: 12px 18px 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 10.5px; color: rgba(255, 255, 255, .5); line-height: 1.7; }
.side-ft .row { display: flex; align-items: center; gap: 6px; }
.side-ft .live { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 54px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 24px;
  position: sticky; top: 0; z-index: 20;
}
.crumb { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.crumb b { color: var(--navy); font-weight: 600; }
.crumb .sep { color: var(--line); }
.topbar .sp { flex: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r); padding: 3px 8px;
}
.pill .live { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.pill b { color: var(--navy); font-weight: 600; }
.who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--navy); }
.avatar {
  width: 27px; height: 27px; border: 1px solid var(--line); background: var(--mist);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--navy); border-radius: var(--r);
}

main { padding: 24px 24px 44px; width: 100%; max-width: 1460px; }

/* ---------- 页头 ---------- */
.page-hd { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-hd .t h2 { font-size: 21px; letter-spacing: .02em; color: var(--navy); font-weight: 700; }
.page-hd .t .sub { margin-top: 5px; font-size: 12px; color: var(--muted); }
.page-hd .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.eyebrow { font-size: 10.5px; letter-spacing: .16em; color: var(--gold); margin-bottom: 6px; font-weight: 600; }

/* ---------- 栅格 ---------- */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-23 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-32 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.g-13 { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
.mt { margin-top: 14px; }
.mt-s { margin-top: 8px; }
.mt-l { margin-top: 22px; }
@media (max-width: 1180px) {
  .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .g-23, .g-32, .g-13 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 卡片 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; }
.card-hd { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.card-hd h3 { font-size: 13.5px; color: var(--navy); font-weight: 700; }
.card-hd .hint { font-size: 11px; color: var(--muted); }
.card-hd .right { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.card-bd { padding: 15px; flex: 1; }
.card-bd.flush { padding: 0; }
.card-ft { padding: 9px 15px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.card-ft .right { margin-left: auto; }

/* ---------- KPI ---------- */
.kpi { background: #fff; border: 1px solid var(--line); padding: 13px 15px 14px; border-radius: var(--r); }
.kpi .lb { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); letter-spacing: .03em; }
.kpi .vl { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 29px; line-height: 1.15; letter-spacing: -.5px; color: var(--navy); margin: 7px 0 3px; }
.kpi .vl.gold { color: var(--gold); }
.kpi .vl small { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.kpi .ft { font-size: 11px; color: var(--muted); }
.kpi .ft b { color: var(--navy); font-weight: 600; }
.dot-s { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; display: inline-block; }
.dot-o { width: 6px; height: 6px; border: 1.5px solid var(--gold); border-radius: 50%; display: inline-block; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; line-height: 16px; padding: 0 6px;
  border: 1px solid var(--line); color: var(--muted); border-radius: var(--r); white-space: nowrap;
}
.tag.navy { color: var(--navy); border-color: rgba(15, 43, 85, .3); background: var(--navy-soft); }
.tag.gold { color: #C2410C; border-color: var(--gold-line); background: var(--gold-soft); }
.tag.warn { color: var(--warn); border-color: rgba(168, 50, 42, .35); background: #FBF1F0; }
.tag.solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.tag.plain { background: var(--mist); }

/* ---------- 按钮 ---------- */
.btn {
  height: 30px; padding: 0 12px; font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  border-radius: var(--r); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.btn:hover { border-color: var(--navy); }
.btn:active { background: var(--navy-soft); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: #16376A; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #2A2A2A; font-weight: 600; }
.btn.gold:hover { background: #E85F00; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--navy); border-color: var(--line); }
.btn.sm { height: 26px; padding: 0 9px; font-size: 11.5px; }
.btn.block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th {
  text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: .1em;
  color: var(--muted); background: #F8FAFC; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td.mono, .table td .mono, .table td.num, .table th.num { white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #FAFBFD; }
.table td.k { color: var(--navy); font-weight: 600; }
.table .sub { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.table.narrow td, .table.narrow th { padding: 8px 10px; }

/* ---------- 进度 / 计量 ---------- */
.meter { height: 4px; background: #EDF1F6; border-radius: 0; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--navy); }
.meter.gold > i { background: var(--gold); }
.meter-row { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); }
.meter-row .m { flex: 1; }
.meter-row .v { width: 52px; text-align: right; color: var(--navy); font-family: "Inter", Arial, sans-serif; }

/* ---------- 时间线 ---------- */
.tl { position: relative; padding-left: 18px; }
.tl::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 14px 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -18px; top: 5px;
  width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 1.5px solid var(--muted);
}
.tl-item.gold::before { border-color: var(--gold); background: var(--gold); }
.tl-item.navy::before { border-color: var(--navy); background: var(--navy); }
.tl-item .tt { font-size: 12.5px; color: var(--ink); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tl-item .tt b { color: var(--navy); font-weight: 600; }
.tl-item .tm { font-size: 10.5px; color: var(--muted); font-family: "Inter", Arial, sans-serif; }
.tl-item .ds { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ---------- 步骤条 ---------- */
.steps { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line); background: #fff; }
.steps .st { flex: 1; padding: 11px 12px; border-right: 1px solid var(--line); position: relative; }
.steps .st:last-child { border-right: none; }
.steps .st .no { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.steps .st .nm { font-size: 12.5px; color: var(--navy); font-weight: 600; margin-top: 3px; }
.steps .st .vl { font-family: "Inter", Arial, sans-serif; font-size: 19px; font-weight: 700; color: var(--navy); margin-top: 5px; }
.steps .st .vl small { font-size: 10.5px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.steps .st.act { background: var(--navy-soft); }
.steps .st.act .nm { color: var(--navy); }
.steps .st.act::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 12px; }
.field > label { display: block; font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-bottom: 5px; }
.input, .select, textarea.input {
  width: 100%; height: 32px; padding: 0 10px; font-size: 12.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); font-family: inherit;
}
textarea.input { height: 72px; padding: 8px 10px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--navy); }
.input[readonly] { background: #FAFBFD; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11.5px; padding: 4px 9px; border: 1px solid var(--line); background: #fff;
  color: var(--muted); border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg button { height: 28px; padding: 0 11px; font-size: 11.5px; border: none; border-right: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--navy); color: #fff; }

/* ---------- 对话 ---------- */
.chat { display: flex; flex-direction: column; height: 680px; overflow: hidden; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; background: #FCFDFE; }
.msg { display: flex; gap: 9px; margin-bottom: 14px; align-items: flex-start; }
.msg .ava {
  width: 26px; height: 26px; flex: 0 0 26px; border: 1px solid var(--gold-line);
  background: var(--gold-soft); color: #C2410C; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; border-radius: var(--r);
}
.msg .ava.human { border-color: var(--line); background: var(--mist); color: var(--navy); }
.bubble { max-width: 78%; background: #fff; border: 1px solid var(--line); padding: 9px 12px; font-size: 12.5px; line-height: 1.65; border-radius: var(--r); }
.msg.me { flex-direction: row-reverse; }
.msg.me .bubble { background: var(--navy); border-color: var(--navy); color: #fff; }
.msg.me .ava { border-color: var(--navy); background: var(--navy); color: #fff; }
.bubble .q { color: var(--navy); font-weight: 600; }
.bubble .note { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.msg.me .bubble .note { color: rgba(255, 255, 255, .7); }
.chat-input { border-top: 1px solid var(--line); padding: 10px 12px; background: #fff; display: flex; gap: 8px; align-items: center; }
.chat-input .input { height: 34px; }
.chat-tip { font-size: 10.5px; color: var(--muted); padding: 6px 12px 0; background: #fff; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; background: #fff; border-top: 1px dashed var(--line); }

/* ---------- 证据 / 哈希 ---------- */
.hash {
  font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; color: var(--navy);
  background: var(--mist); border: 1px solid var(--line); padding: 7px 9px; word-break: break-all; line-height: 1.6;
}
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 7px 10px; font-size: 12px; }
.kv dt { color: var(--muted); font-size: 11.5px; }
.kv dd { margin: 0; color: var(--ink); }

/* ---------- 清单 ---------- */
.check { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.check:last-child { border-bottom: none; }
.check .box {
  width: 15px; height: 15px; flex: 0 0 15px; margin-top: 2px;
  border: 1px solid var(--line); display: grid; place-items: center; font-size: 10px; color: #fff;
}
.check.ok .box { background: var(--navy); border-color: var(--navy); }
.check.ng .box { background: var(--warn); border-color: var(--warn); }
.check .ct { flex: 1; }
.check .ct b { color: var(--navy); font-weight: 600; display: block; font-size: 12px; }
.check .ct span { color: var(--muted); font-size: 11px; }

/* ---------- 图例 / 图 ---------- */
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); }
.legend i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; }
.legend .sw { width: 9px; height: 9px; display: inline-block; }
.chart { width: 100%; display: block; }
.chart text { font-family: "Inter", Arial, sans-serif; font-size: 9px; fill: var(--muted); }

/* ---------- 提示条 ---------- */
.note-bar {
  display: flex; gap: 9px; align-items: flex-start;
  border: 1px solid var(--gold-line); background: var(--gold-soft);
  padding: 9px 12px; font-size: 11.5px; color: #9A3412; line-height: 1.6; border-radius: var(--r);
}
.note-bar .k { font-weight: 700; color: #C2410C; white-space: nowrap; }
.note-bar.plain { border-color: var(--line); background: var(--mist); color: var(--muted); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 999; }
.toast {
  background: var(--navy); color: #fff; font-size: 12px; padding: 9px 14px; border-radius: var(--r);
  border-left: 2px solid var(--gold); max-width: 320px;
}
.toast.out { opacity: 0; transition: opacity .3s; }

/* ---------- 弹层 ---------- */
.mask { position: fixed; inset: 0; background: rgba(15, 43, 85, .32); display: none; place-items: center; z-index: 200; }
.mask.on { display: grid; }
.modal { background: #fff; width: 560px; max-width: 92vw; border: 1px solid var(--line); border-radius: var(--r); }
.modal-hd { padding: 13px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-hd h4 { font-size: 14px; color: var(--navy); }
.modal-hd .x { margin-left: auto; cursor: pointer; color: var(--muted); border: none; background: none; font-size: 15px; }
.modal-bd { padding: 16px; max-height: 60vh; overflow: auto; }
.modal-ft { padding: 11px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- 杂项 ---------- */
.hr { height: 1px; background: var(--line); margin: 14px 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack-8 > * + * { margin-top: 8px; }
.stack-12 > * + * { margin-top: 12px; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.b { font-weight: 600; }
.big-n { font-family: "Inter", Arial, sans-serif; font-weight: 700; font-size: 22px; color: var(--navy); letter-spacing: -.3px; }
.big-n.gold { color: var(--gold); }
.list-dot { font-size: 12px; color: var(--muted); }
.list-dot li { padding-left: 12px; position: relative; line-height: 1.7; }
.list-dot li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; background: var(--gold); }
.hide { display: none !important; }

/* ---------- 协同桥接（社区后台） ---------- */
.pill.live-on { border-color: var(--gold-line); background: var(--gold-soft); color: #C2410C; }
.pill.live-on b { color: #9A3412; }
.pill.live-off { color: var(--muted); }
.dot-off { width: 5px; height: 5px; border: 1px solid var(--muted); border-radius: 50%; display: inline-block; }
.nav a .ro {
  margin-left: auto; font-size: 9.5px; line-height: 14px; padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, .32); color: rgba(255, 255, 255, .62); border-radius: 2px;
}
.gate-bar {
  display: flex; gap: 9px; align-items: flex-start; margin-bottom: 16px;
  border: 1px solid var(--gold-line); background: var(--gold-soft); padding: 9px 12px;
  font-size: 11.5px; color: #9A3412; line-height: 1.6; border-radius: var(--r);
}
.gate-bar .k { font-weight: 700; color: #C2410C; white-space: nowrap; }

/* 协同中枢 */
.line-no {
  width: 22px; height: 22px; display: inline-grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 10.5px; border-radius: var(--r);
  font-family: "Inter", Arial, sans-serif;
}
.arrow { font-family: "Inter", Arial, sans-serif; color: var(--muted); font-size: 11px; }
.mx { border-collapse: collapse; font-size: 11px; width: 100%; }
.mx th, .mx td { border: 1px solid var(--line); padding: 5px 6px; text-align: center; white-space: nowrap; }
.mx th { background: #F8FAFC; color: var(--muted); font-weight: 500; font-size: 10px; }
.mx th.row-h { text-align: left; background: #F8FAFC; color: var(--navy); font-weight: 600; }
.mx td.row-h { text-align: left; color: var(--navy); font-weight: 600; background: #FCFDFE; }
.mx .v { color: var(--navy); }
.mx .e { background: var(--navy); color: #fff; font-weight: 600; }
.mx .x { color: #C7D0DC; }
.mx .na { background: #F7F9FC; }
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; }
.flow .node { border: 1px solid var(--line); padding: 4px 9px; background: #fff; border-radius: var(--r); color: var(--navy); }
.flow .node.gold { border-color: var(--gold-line); background: var(--gold-soft); color: #C2410C; }
.flow .node.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.gate-bar.deny { border-color: rgba(168, 50, 42, .35); background: #FBF1F0; color: #7A2A24; }
.gate-bar.deny .k { color: var(--warn); }
.who .ro-tag {
  font-size: 10px; line-height: 15px; padding: 0 5px; margin-left: 2px;
  border: 1px solid var(--line); color: var(--muted); border-radius: var(--r);
}

/* ================= 门户层（site shell） ================= */
body[data-shell="site"] { background: #fff; }
.site-top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.site-top .in { max-width: 1240px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 26px; padding: 0 24px; }
.site-brand { display: flex; align-items: center; gap: 9px; }
.site-brand b { color: var(--navy); font-size: 15px; letter-spacing: .04em; }
.site-brand span { color: var(--muted); font-size: 10.5px; letter-spacing: .12em; }
.site-links { display: flex; gap: 22px; margin-left: 14px; }
.site-links a { font-size: 13px; color: var(--ink); }
.site-links a:hover { color: var(--navy); border-bottom: 2px solid var(--gold); }
.site-top .sp { flex: 1; }
.site-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.hero { background: var(--navy); color: #fff; }
.hero .in { max-width: 1240px; margin: 0 auto; padding: 62px 24px 54px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .eyebrow { color: var(--gold); font-size: 11px; letter-spacing: .18em; }
.hero h1 { font-size: 46px; line-height: 1.16; letter-spacing: .5px; margin: 14px 0 0; color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-top: 16px; font-size: 14px; line-height: 1.85; color: rgba(255,255,255,.78); max-width: 520px; }
.hero .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.hero .chips span { font-size: 11.5px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.86); border-radius: 2px; }
.hero .acts { display: flex; gap: 10px; margin-top: 26px; }
.hero .acts .btn { height: 36px; }
.hero .acts .btn.gold { background: var(--gold); border-color: var(--gold); color: #2A2A2A; }
.hero .plate { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.03); padding: 18px; }
.hero .plate .cap { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(255,255,255,.6); letter-spacing: .1em; }
@media (max-width: 1000px) { .hero .in { grid-template-columns: 1fr; } }

.stat-strip { border-bottom: 1px solid var(--line); background: #fff; }
.stat-strip .in { max-width: 1240px; margin: 0 auto; padding: 22px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-strip .it .v { font-family: "Inter", Arial, sans-serif; font-weight: 700; font-size: 32px; color: var(--navy); letter-spacing: -1px; }
.stat-strip .it .v.gold { color: var(--gold); }
.stat-strip .it .v small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.stat-strip .it .l { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) { .stat-strip .in { grid-template-columns: repeat(2, 1fr); } }

.sec { padding: 58px 0; }
.sec.alt { background: var(--mist); }
.sec-hd { text-align: center; margin-bottom: 30px; }
.sec-hd h2 { font-size: 27px; color: var(--navy); letter-spacing: .04em; }
.sec-hd p { margin-top: 10px; font-size: 13px; color: var(--muted); }
.sec-hd .line { width: 34px; height: 3px; background: var(--gold); margin: 14px auto 0; }

.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
.pcard { border: 1px solid var(--line); background: #fff; padding: 18px; position: relative; }
.pcard .no { position: absolute; right: 14px; top: 12px; font-family: "Inter", Arial, sans-serif; font-size: 22px; color: #E7ECF3; font-weight: 700; }
.pcard .ic { width: 30px; height: 30px; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-size: 14px; }
.pcard h3 { font-size: 15px; color: var(--navy); margin-top: 12px; }
.pcard .sub { font-size: 11.5px; color: #C2410C; margin-top: 4px; }
.pcard p { font-size: 12px; color: var(--muted); line-height: 1.75; margin-top: 8px; }
.pcard ul { margin-top: 10px; }
.pcard li { font-size: 11.5px; color: var(--ink); line-height: 1.9; padding-left: 10px; position: relative; }
.pcard li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; background: var(--gold); }

.proto { background: var(--navy); color: #fff; padding: 26px 0; }
.proto .in { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.proto .cap { font-size: 12.5px; color: rgba(255,255,255,.66); letter-spacing: .06em; }
.proto .cap b { display: block; color: #fff; font-size: 14px; letter-spacing: .08em; margin-bottom: 4px; }
.proto .items { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.proto .items span { border: 1px dashed rgba(255,255,255,.28); padding: 6px 12px; font-size: 12px; color: rgba(255,255,255,.9); }
.proto .items span b { color: var(--gold); font-family: "Inter", Arial, sans-serif; margin-right: 5px; }

.split { display: grid; grid-template-columns: 268px 1fr; gap: 0; border: 1px solid var(--line); background: #fff; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split .tabs { border-right: 1px solid var(--line); }
.split .tabs button { display: block; width: 100%; text-align: left; padding: 14px 16px; font-size: 13px; color: var(--muted); background: #fff; border: none; border-bottom: 1px solid var(--line); cursor: pointer; border-left: 2px solid transparent; }
.split .tabs button:last-child { border-bottom: none; }
.split .tabs button.on { color: var(--navy); font-weight: 600; background: var(--gold-soft); border-left-color: var(--gold); }
.split .pane { padding: 22px 24px; }
.split .pane h3 { font-size: 16px; color: var(--navy); }
.split .pane .kicker { font-size: 11px; color: var(--gold); letter-spacing: .12em; }
.split .pane p { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin-top: 10px; }
.split .pane .bars { margin-top: 14px; }

.cat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .cat { grid-template-columns: 1fr; } }
.cat .c { border: 1px solid var(--line); background: #fff; padding: 16px; }
.cat .c .h { display: flex; align-items: center; gap: 8px; }
.cat .c .h b { font-size: 14px; color: var(--navy); }
.cat .c .h i { font-style: normal; font-size: 10px; padding: 1px 6px; border: 1px solid var(--line); color: var(--muted); }
.cat .c p { font-size: 11.5px; color: var(--muted); line-height: 1.8; margin-top: 8px; }
.cat .c .m { margin-top: 10px; font-size: 11px; color: var(--navy); border-top: 1px dashed var(--line); padding-top: 8px; }

.cta-band { background: var(--navy); padding: 40px 0; }
.cta-band .in { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 21px; }
.cta-band p { color: rgba(255,255,255,.7); font-size: 12.5px; margin-top: 6px; }
.cta-band .acts { margin-left: auto; display: flex; gap: 10px; }
.site-ft { border-top: 1px solid var(--line); padding: 22px 0; }
.site-ft .in { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; gap: 16px; align-items: center; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.site-ft .in .sp { flex: 1; }
.logo-badge { width: 28px; height: 28px; background: var(--navy); display: grid; place-items: center; }
.site-brand:hover b { color: var(--navy); }
a.brand { display: block; color: inherit; }
a.brand:hover h1 { color: var(--gold); }

/* =========================================================================
   v2 移动端 APP 化（2026-10-19）
   规则：本层是唯一的移动端覆盖层，后续改动请整层重写，不要在同层二次追加。
   断点 900px（窄屏）与 520px（小屏）；桌面端零影响：Tab/汉堡默认 display:none。
   z-index 体系：tabbar 150 < drawer-mask 155 < side 160 < mask(modal) 200
   ========================================================================= */

.tabbar, .subnav { display: none; }

@media (max-width: 900px) {
  /* ---- 全局：让位底部 Tab ---- */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); -webkit-text-size-adjust: 100%; }
  a, button { -webkit-tap-highlight-color: transparent; }

  /* ---- 侧栏：手机端由底栏接管，整条不渲染（保留桌面形态） ---- */
  aside.side { display: none; }

  /* ---- 顶栏压缩（无汉堡：导航在底部） ---- */
  .topbar { height: 52px; padding: 0 12px 0 14px; gap: 8px; }
  .crumb { font-size: 11px; gap: 5px; min-width: 0; }
  .crumb span:first-child, .crumb .sep { display: none; }
  .crumb b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .pill { display: none; }
  .topbar #conn-pill { display: inline-flex; padding: 3px 6px; }
  .topbar #conn-pill b, .topbar #conn-pill .lbl { display: none; }   /* 窄屏只留状态圆点 */
  .who .ro-tag { display: none; }
  #office-link { display: none; }
  .who .meta { display: none; }
  .who .avatar { width: 30px; height: 30px; }

  /* ---- 内容区 ---- */
  main { padding: 14px 12px 20px; max-width: none; }
  .page-hd { flex-wrap: wrap; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; }
  .page-hd .t h2 { font-size: 19px; }
  .page-hd .t .sub { font-size: 11.5px; line-height: 1.6; }
  .page-hd .acts { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .page-hd .acts .btn { flex: 1; justify-content: center; }

  /* ---- 栅格回落 ---- */
  .grid { gap: 10px; }
  .g2, .g3, .g5, .g-23, .g-32, .g-13, .g-13 > *, .g-23 > *, .g-32 > * { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g5 > * { min-width: 0; }

  /* ---- 触控区 ---- */
  .btn { min-height: 44px; padding: 0 14px; font-size: 13.5px; }
  .btn.sm { min-height: 40px; font-size: 12.5px; padding: 0 12px; }
  .chip { min-height: 32px; display: inline-flex; align-items: center; padding: 4px 11px; }
  .seg { display: flex; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .seg button { min-height: 38px; padding: 0 12px; flex: 0 0 auto; white-space: nowrap; }
  .input, .select { height: 44px; font-size: 16px; }   /* 16px：防 iOS 聚焦整页放大 */
  textarea.input { font-size: 16px; }

  /* ---- 表格：横向滚动兜底，不丢列 ---- */
  .card-bd, .card-bd.flush { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* 列多时不再硬压：单元格不折行，整表横向滚动（数据表在手机上的通行做法） */
  .table { min-width: auto; }
  .table th, .table td { padding: 9px 10px; white-space: nowrap; }
  .table td .sub { white-space: normal; max-width: 200px; }
  [data-mobile="hide"] { display: none; }   /* 窄屏让位：只隐藏显式标记的次要列 */
  .mx { min-width: 640px; }

  /* ---- 卡片头 ---- */
  .card-hd { padding: 10px 12px; flex-wrap: wrap; row-gap: 4px; }
  .card-hd h3 { font-size: 13px; }
  .card-hd .hint { display: none; }
  .card-bd { padding: 12px; }
  .card-ft { padding: 8px 12px; flex-wrap: wrap; row-gap: 4px; }

  /* ---- 长条组件 ---- */
  .steps { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .steps .st { flex: 0 0 auto; min-width: 132px; }
  .chat { height: auto; min-height: 480px; max-height: 78vh; }
  .chat-log { min-height: 300px; }
  .bubble { max-width: 88%; }
  .quick { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .quick .chip { flex: 0 0 auto; white-space: nowrap; }
  .hash { font-size: 10.5px; }
  .modal { width: 94vw; }
  .kpi .vl { font-size: 24px; }
  .kpi .vl small { font-size: 11px; }
  .big-n { font-size: 19px; }
  .toast-wrap { left: 12px; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }

  /* ---- 组内子导航（顶部横滑，只在本组有 2 项以上时出现） ---- */
  .subnav {
    display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 0 0 12px; padding-bottom: 2px;
  }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav .chip { flex: 0 0 auto; white-space: nowrap; min-height: 34px; background: #fff; }
  .subnav .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

  /* ---- 底部 Tab ---- */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar .tab {
    position: relative; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px; min-height: 56px;
    color: var(--muted); font-size: 10.5px; text-decoration: none;
  }
  .tabbar .tab svg { width: 20px; height: 20px; }
  .tabbar .tab.on { color: var(--navy); font-weight: 600; }
  .tabbar .tab.on::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px; background: var(--gold);
  }

  /* ---- 触屏：关掉 hover 位移，改按压反馈 ---- */
  .nav a:hover, .btn:hover, .chip:hover, .pcard:hover { background: inherit; border-color: inherit; }
  .btn:active, .chip:active, .tabbar .tab:active { transform: scale(.97); }

  /* ================= 门户层 ================= */
  .site-top .in { height: 54px; gap: 12px; padding: 0 14px; }
  .site-links { display: none; }
  .site-brand b { font-size: 14px; }
  .site-brand span { display: none; }
  .site-top .btn { min-height: 38px; font-size: 12.5px; padding: 0 12px; }
  .hero .in { grid-template-columns: 1fr; padding: 32px 14px 28px; gap: 22px; }
  .hero h1 { font-size: 30px; letter-spacing: .4px; }
  .hero .lead { font-size: 13px; line-height: 1.8; }
  .hero .chips span { font-size: 11px; }
  .hero .acts { flex-direction: column; }
  .hero .acts .btn { width: 100%; justify-content: center; }
  .hero .plate { padding: 12px; }
  .hero .plate svg { height: 210px; }
  .stat-strip .in { grid-template-columns: repeat(2, 1fr); padding: 16px 14px; gap: 14px; }
  .stat-strip .it .v { font-size: 24px; }
  .sec { padding: 34px 0; }
  .sec-hd h2 { font-size: 21px; }
  .sec-hd p { font-size: 12px; padding: 0 8px; }
  .pgrid, .cat { grid-template-columns: 1fr; }
  .proto .in { flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 14px; }
  .proto .items span { font-size: 11.5px; padding: 5px 10px; }
  .split { grid-template-columns: 1fr; }
  .split .tabs { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .split .tabs button {
    flex: 0 0 auto; white-space: nowrap; border-bottom: none;
    border-left: none; border-right: 1px solid var(--line);
  }
  .split .pane { padding: 16px 14px; }
  .cta-band { padding: 26px 0; }
  .cta-band .in { flex-direction: column; align-items: flex-start; padding: 0 14px; }
  .cta-band .acts { margin-left: 0; width: 100%; flex-direction: column; }
  .cta-band .acts .btn { width: 100%; justify-content: center; }
  .site-ft .in { padding: 0 14px; font-size: 11px; gap: 8px; }
}

/* ---- 小屏（≤ 390px）再收一档 ---- */
@media (max-width: 390px) {
  .hero h1 { font-size: 26px; }
  .kpi .vl { font-size: 21px; }
  .page-hd .t h2 { font-size: 17.5px; }
  .tabbar .tab { font-size: 10px; }
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-bd { padding: 10px; }
}

/* ---- v2.1 角色化：内容块提示条 + 无权限按钮 ---- */
.role-note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--gold-line); background: var(--gold-soft);
  padding: 10px 12px; font-size: 11.5px; line-height: 1.65; color: #9A3412;
  border-radius: var(--r); margin-bottom: 14px;
}
.role-note .k { font-weight: 700; color: #C2410C; white-space: nowrap; }
.role-note .btn { margin-left: auto; }
.btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn.is-disabled:active { transform: none; }
@media (max-width: 900px) {
  .role-note { font-size: 12px; }
  .role-note .btn { margin-left: 0; width: 100%; justify-content: center; }
  /* Tab 数量随角色变化：按实际条数等分，不写死 5 列 */
  .tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
}

/* ---------- 品牌标识（2026-10-19 按官方 VI 统一） ----------
   图形：三人形 + 七星 + 中心橙星；文字由 HTML 渲染，深浅底自动切换。
   尺寸梯度：侧栏 28 / 顶栏 26 / 移动端 24，均保持正方形不拉伸。 */
.brand-mark { width: 26px; height: 26px; object-fit: contain; display: block; flex: none; }
.brand .mark { display: flex; align-items: center; gap: 9px; }
.brand .brand-mark { width: 28px; height: 28px; }
.brand-txt b { display: block; color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.2; }
.brand-txt i { display: block; font-style: normal; color: rgba(255, 255, 255, .56); font-size: 9px; letter-spacing: .13em; margin-top: 3px; line-height: 1; }
.brand-sub { margin-top: 9px; font-size: 10.5px; letter-spacing: .1em; color: rgba(255, 255, 255, .58); }
.site-brand .brand-mark { width: 30px; height: 30px; }
@media (max-width: 900px) {
  .site-brand .brand-mark { width: 26px; height: 26px; }
  .brand-txt b { font-size: 13px; }
}

/* =========================================================================
   v3 · SaaS 视觉层（2026-10-19）
   参考：UUMit 系产品原型（深色侧栏 + 浅灰底 + 白卡 + 橙色行动色 + 大圆角柔阴影）
   原则：
     1. 这一层只覆盖视觉，不改布局与信息层级；
     2. 所有颜色/圆角/阴影走变量，换主题只改 :root；
     3. 桌面与移动端共用，移动端覆盖层在其后（同特异性时后写生效）。
   ========================================================================= */

body { background: var(--mist); }

/* ---------- 侧栏：近黑蓝纯色 + 橙色选中 ---------- */
aside.side { background: #0E1526; box-shadow: none; }
.side-ft { border-top-color: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .42); }
.nav-group { color: rgba(255, 255, 255, .30); }
.nav a { border-radius: 10px; color: rgba(255, 255, 255, .64); }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.on { background: var(--gold); color: #fff; box-shadow: 0 8px 18px rgba(255, 106, 0, .28); }
.nav a.on .ic, .nav a.on .badge { color: #fff; }
.nav a .badge { background: rgba(255, 255, 255, .12); }

/* ---------- 顶栏：纯白，去掉厚重分隔 ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.crumb span { color: var(--muted); }
.crumb b { color: var(--ink); }
.pill { border-radius: 999px; border-color: transparent; background: #F5F7FA; color: var(--muted); }
.pill b { color: var(--ink); }

/* ---------- 卡片：白底 + 大圆角 + 柔和阴影 ---------- */
.card, .kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card-hd { border-bottom: 1px solid #F3F5F9; }
.card-hd h3 { color: var(--ink); font-weight: 700; }
.card-ft { border-top: 1px solid #F3F5F9; }
.kpi { padding: 18px; }
.kpi .lb { color: var(--muted); font-size: 11.5px; }
.kpi .vl { color: var(--ink); font-weight: 700; letter-spacing: -.4px; }
.kpi .ft { color: var(--muted); }

/* ---------- 按钮：橙色实心 / 白底描边 ---------- */
.btn { border-radius: 10px; border-color: var(--line); background: #fff; color: var(--ink); font-weight: 600; }
.btn:hover { border-color: #D9DEE8; background: #FBFCFE; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 6px 16px rgba(255, 106, 0, .22); }
.btn.primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn.sm { border-radius: 9px; }

/* ---------- 筛选 chip：胶囊，选中橙 ---------- */
.chip { border-radius: 999px; border-color: var(--line); background: #fff; color: var(--muted); }
.chip:hover { border-color: #D9DEE8; color: var(--ink); }
.chip.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.seg { border-radius: 999px; background: #F5F7FA; padding: 3px; }
.seg button { border-radius: 999px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- 标签 / 徽标 ---------- */
.tag { border-radius: 999px; border-color: var(--line); color: var(--muted); background: #F8FAFC; }
.tag.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.tag.gold { background: var(--gold-soft); border-color: var(--gold-line); color: #C2410C; }
.tag.solid { background: var(--gold); border-color: var(--gold); color: #fff; }
.tag.warn { background: #FEF2F2; border-color: rgba(229, 72, 77, .22); color: #B42318; }
.badge { border-radius: 999px; }

/* ---------- 表格：无竖线、行高舒展、悬浮高亮 ---------- */
.table th { background: #FAFBFD; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.table td { border-bottom: 1px solid #F3F5F9; }
.table tbody tr:hover td { background: #FBFCFE; }
.table tbody tr:last-child td { border-bottom: 0; }
.table.flush { border-radius: 0; }

/* ---------- 进度条：橙渐变胶囊 ---------- */
.meter { background: #F1F3F7; border-radius: 999px; overflow: hidden; }
.meter i { background: linear-gradient(90deg, #FF9147, #FF6A00); border-radius: 999px; }

/* ---------- 页头 ---------- */
.page-hd { border-bottom: 1px solid var(--line); }
.page-hd .t h2 { color: var(--ink); font-weight: 700; letter-spacing: -.2px; }
.page-hd .t .sub { color: var(--muted); }
.eyebrow { color: var(--gold); }

/* ---------- 时间线 / 步骤 ---------- */
.tl-item { border-left-color: var(--line); }
.tl-item.on { border-left-color: var(--gold); }
.steps .st { background: #fff; border-color: var(--line); border-radius: var(--r); }
.steps .st.on { border-color: var(--gold); background: var(--gold-soft); }

/* ---------- 对话气泡 ---------- */
.bubble { border-radius: 14px; }
.bubble.me { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---------- 门户层：主视觉保留深色，其余回浅色 ---------- */
.hero { background: #0E1526; }
.hero .acts .btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.pcard, .cat .c, .split { border-radius: var(--r-lg); }
.pcard { box-shadow: var(--shadow); border-color: var(--line); }
.pcard .ic { background: var(--gold-soft); color: var(--gold); border-radius: 10px; }
.pcard .no { color: #E8ECF3; }
.proto { background: #0E1526; }
.proto .items span b { color: var(--gold); }

/* ---------- 弹层 ---------- */
.modal { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.toast { border-radius: 999px; box-shadow: var(--shadow-lg); }

/* ---------- 协同/角色提示条 ---------- */
.gate-bar, .role-note, .note-bar { border-radius: var(--r); }
