/* ============================================================
   君度智链 · 双引擎平台 · 高保真原型 · 共享设计系统
   调色板与 v8 deck 完全一致：君度红 C42128 × 鎏金 A97E2F × AI 墨蓝 23406E
   ============================================================ */
:root {
  --ink:    #2E2320;  /* 深青墨 */
  --ink2:   #16294A;
  --ink3:   #4A2B24;
  --teal:   #23406E;  /* 科技青 */
  --teal-d: #16294A;
  --teal-l: #A9BEDC;
  --sky:    #E8EEF7;
  --sky2:   #D4DFEF;
  --warm:   #C42128;  /* 暖珊瑚 */
  --warm-d: #8F1216;
  --warm-l: #EFB9B4;
  --cream:  #FAEBEA;
  --cream2: #F3D9D7;
  --gold:   #A97E2F;
  --bg:     #FCFAF7;
  --card:   #FAF7F2;
  --card-b: #E8E0D4;
  --white:  #FFFFFF;
  --text:   #2B2B2E;
  --sub:    #5A5550;
  --muted:  #8A837B;
  --line:   #ECE5DB;
  --ok:     #2E8B57;
  --warn:   #C0392B;
  --wx-bg:    #EDEDED; /* 微信聊天背景 */
  --wx-green: #95EC69; /* 微信我方气泡 */
  --shadow: 0 10px 30px rgba(46, 35, 32, .08);
  --shadow-sm: 0 4px 14px rgba(46, 35, 32, .06);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 顶部导航 ---------- */
.topnav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 18px;
  padding: 0 28px; height: 62px;
  background: rgba(252, 249, 245, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topnav .brand { display: flex; align-items: center; gap: 10px; margin-right: 8px; }
.topnav .brand img { height: 26px; width: auto; }
.topnav .brand .divider { width: 1px; height: 20px; background: var(--card-b); }
.topnav .brand .name { font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: .5px; white-space: nowrap; }
.topnav .brand .name small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 1.5px; }
.topnav nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.topnav nav a {
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; color: var(--sub); white-space: nowrap;
  transition: all .15s;
}
.topnav nav a:hover { background: var(--cream); color: var(--warm-d); }
.topnav nav a.active { background: var(--ink); color: #fff; font-weight: 600; }
.topnav nav a.active .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--warm); margin-right: 6px; vertical-align: 1.5px; }

/* ---------- 页面骨架 ---------- */
.page { max-width: 1280px; margin: 0 auto; padding: 34px 28px 60px; }
.page-head { margin-bottom: 26px; }
.page-head .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--teal);
  text-transform: uppercase; margin-bottom: 8px;
}
.page-head h1 { font-size: 30px; color: var(--ink); line-height: 1.3; letter-spacing: .3px; }
.page-head h1 .hl { color: var(--warm-d); }
.page-head .sub { margin-top: 8px; color: var(--sub); font-size: 14.5px; max-width: 860px; }
.page-head .sub b { color: var(--warm-d); }

/* 角色页双栏：左手机 右说明 */
.split { display: grid; grid-template-columns: 430px 1fr; gap: 40px; align-items: start; }
@media (max-width: 1080px) { .split { grid-template-columns: 1fr; } }

/* ---------- 信息面板（右侧说明区） ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 18px; }
.panel h3 { font-size: 16px; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel h3::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--warm); flex: none; }
.panel .note { font-size: 12.5px; color: var(--muted); background: var(--sky); border-radius: 10px; padding: 10px 14px; margin-top: 14px; }
.panel .note b { color: var(--teal-d); }

/* 能力网格 */
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cap { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.cap .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--sky); color: var(--teal-d); display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 8px; }
.cap.warm .ic { background: var(--cream); color: var(--warm-d); }
.cap b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 3px; }
.cap span { font-size: 12px; color: var(--sub); line-height: 1.5; display: block; }

/* 数据流 / 步骤条 */
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.flow .f-step { flex: 1; min-width: 96px; text-align: center; position: relative; padding: 4px 6px; }
.flow .f-step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 7px; }
.flow .f-step.hot .n { background: var(--warm); }
.flow .f-step b { display: block; font-size: 12.5px; color: var(--ink); }
.flow .f-step span { font-size: 11px; color: var(--muted); display: block; line-height: 1.45; margin-top: 2px; }
.flow .f-arrow { display: flex; align-items: center; color: var(--warm); font-weight: 700; padding: 0 2px; font-size: 14px; }

/* 简表 */
.mini-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini-table th { text-align: left; color: var(--teal-d); font-weight: 600; padding: 7px 10px; background: var(--sky); }
.mini-table th:first-child { border-radius: 8px 0 0 8px; }
.mini-table th:last-child { border-radius: 0 8px 8px 0; }
.mini-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--sub); vertical-align: top; }
.mini-table tr:last-child td { border-bottom: none; }
.mini-table td b { color: var(--ink); font-weight: 600; }

/* 标签 */
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.tag.teal { background: var(--sky); color: var(--teal-d); }
.tag.warm { background: var(--cream); color: var(--warm-d); }
.tag.ok   { background: #E7F5EE; color: var(--ok); }
.tag.gold { background: #FAF0DC; color: #A9761F; }
.tag.warn { background: #FBEAEA; color: var(--warn); }

/* ---------- 手机壳 ---------- */
.phone-wrap { position: sticky; top: 86px; }
.phone {
  width: 400px; max-width: 100%; height: 820px; margin: 0 auto;
  background: #101418; border-radius: 52px; padding: 12px;
  box-shadow: 0 30px 70px rgba(46, 35, 32, .25), inset 0 0 0 2px #2a3138;
  position: relative;
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 41px; overflow: hidden;
  background: var(--wx-bg); display: flex; flex-direction: column; position: relative;
}
.phone .notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 27px; background: #101418; border-radius: 0 0 18px 18px; z-index: 30;
}
/* 状态栏 */
.statusbar {
  height: 44px; flex: none; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 26px 4px; font-size: 13px; font-weight: 600; color: #111;
}
.statusbar .right { display: flex; gap: 5px; align-items: center; font-size: 11.5px; }

/* 微信会话头部 */
.wx-header {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 10px; background: var(--wx-bg); border-bottom: .5px solid #d9d9d9;
}
.wx-header .back { font-size: 20px; color: #111; width: 24px; }
.wx-header .title { flex: 1; text-align: center; }
.wx-header .title b { font-size: 16px; color: #111; font-weight: 600; }
.wx-header .title b .corp { color: #EDA150; font-size: 12px; font-weight: 500; } /* 企微橙 @公司 */
.wx-header .title span { display: block; font-size: 10.5px; color: #999; margin-top: 1px; }
.wx-header .more { font-size: 18px; color: #111; width: 24px; text-align: right; letter-spacing: 1px; }

/* 聊天区 */
.wx-chat { flex: 1; overflow-y: auto; padding: 14px 12px 10px; scroll-behavior: smooth; }
.wx-chat::-webkit-scrollbar { width: 0; }
.wx-time { text-align: center; margin: 6px 0 12px; }
.wx-time span { font-size: 11px; color: #9b9b9b; background: rgba(0,0,0,.045); padding: 2px 8px; border-radius: 4px; }
.wx-sys { text-align: center; margin: 10px 18px; font-size: 11.5px; color: #9b9b9b; line-height: 1.5; }

.wx-row { display: flex; gap: 9px; margin-bottom: 14px; align-items: flex-start; animation: msgIn .28s ease both; }
.wx-row.me { flex-direction: row-reverse; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wx-avatar {
  width: 38px; height: 38px; border-radius: 6px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
}
.wx-avatar.agent { background: linear-gradient(135deg, var(--teal), var(--ink2)); font-size: 17px; }
.wx-avatar.user  { background: linear-gradient(135deg, var(--warm), var(--warm-d)); }
.wx-body { max-width: 76%; display: flex; flex-direction: column; gap: 6px; }
.wx-row.me .wx-body { align-items: flex-end; }
.wx-name { font-size: 11px; color: #9b9b9b; padding: 0 2px; }

/* 文本气泡 */
.wx-bubble {
  position: relative; padding: 9px 13px; border-radius: 8px; font-size: 14.5px; line-height: 1.55;
  background: #fff; color: #111; word-break: break-word;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.wx-row.me .wx-bubble { background: var(--wx-green); }
.wx-bubble::before {
  content: ""; position: absolute; top: 13px; left: -5px;
  border: 5px solid transparent; border-right-color: #fff; border-left: 0;
}
.wx-row.me .wx-bubble::before { left: auto; right: -5px; border: 5px solid transparent; border-left-color: var(--wx-green); border-right: 0; }
.wx-bubble b { color: var(--teal-d); }
.wx-row.me .wx-bubble b { color: #1a6b2f; }

/* 语音气泡 */
.wx-voice {
  display: flex; align-items: center; gap: 8px; cursor: default;
  min-width: 90px; padding: 10px 13px;
}
.wx-voice .waves { display: flex; gap: 2.5px; align-items: center; height: 16px; }
.wx-voice .waves i {
  width: 3px; border-radius: 2px; background: #4b4b4b; display: block;
  height: 6px;
}
.wx-row.me .wx-voice .waves i { background: #2f6b1f; }
.wx-voice.playing .waves i { animation: wave 0.9s ease-in-out infinite; }
.wx-voice .waves i:nth-child(2) { height: 12px; animation-delay: .1s; }
.wx-voice .waves i:nth-child(3) { height: 16px; animation-delay: .2s; }
.wx-voice .waves i:nth-child(4) { height: 10px; animation-delay: .3s; }
.wx-voice .waves i:nth-child(5) { height: 14px; animation-delay: .4s; }
@keyframes wave { 0%,100% { transform: scaleY(.5);} 50% { transform: scaleY(1);} }
.wx-voice .dur { font-size: 13px; color: #444; }
.wx-row.me .wx-voice .dur { color: #2f4d24; }

/* 语音转文字 */
.wx-transcript {
  background: #fff; border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #555;
  border: 1px dashed #ddd; line-height: 1.5; max-width: 100%;
}
.wx-transcript .t-label { font-size: 10px; color: var(--teal); font-weight: 700; letter-spacing: 1px; display: block; margin-bottom: 2px; }

/* 输入中 */
.wx-typing { display: inline-flex; gap: 4px; padding: 13px 15px; background: #fff; border-radius: 8px; }
.wx-typing i { width: 6px; height: 6px; border-radius: 50%; background: #bbb; animation: blink 1.2s infinite; }
.wx-typing i:nth-child(2) { animation-delay: .2s; }
.wx-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- Agent 卡片消息（企微应用卡片风） ---------- */
.c-card {
  background: #fff; border-radius: 10px; padding: 13px 14px; width: 262px;
  box-shadow: 0 1px 1px rgba(0,0,0,.04); font-size: 13px;
}
.c-card .c-head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.c-card .c-head .c-ic { width: 22px; height: 22px; border-radius: 6px; background: var(--sky); color: var(--teal-d); font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.c-card .c-head .c-ic.warm { background: var(--cream); color: var(--warm-d); }
.c-card .c-head b { font-size: 13.5px; color: #111; }
.c-card .c-head .tag { margin-left: auto; }
.c-kv { display: flex; justify-content: space-between; gap: 10px; padding: 4.5px 0; border-bottom: 1px solid #f2f2f2; }
.c-kv:last-child { border-bottom: none; }
.c-kv span { color: #999; font-size: 12.5px; flex: none; }
.c-kv b { color: #222; font-weight: 600; text-align: right; font-size: 12.5px; }
.c-kv b.warm { color: var(--warm-d); }
.c-kv b.teal { color: var(--teal-d); }
.c-kv b.ok { color: var(--ok); }
.c-big { text-align: center; padding: 8px 0 10px; }
.c-big .v { font-size: 26px; font-weight: 800; color: var(--warm-d); font-variant-numeric: tabular-nums; }
.c-big .l { font-size: 11px; color: #999; margin-top: 1px; }
.c-steps { counter-reset: cs; margin: 4px 0; }
.c-steps li { list-style: none; position: relative; padding: 4px 0 4px 26px; font-size: 12.5px; color: #444; line-height: 1.5; }
.c-steps li::before {
  counter-increment: cs; content: counter(cs);
  position: absolute; left: 0; top: 6px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--sky); color: var(--teal-d); font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.c-check { padding: 3.5px 0; font-size: 12.5px; color: #444; display: flex; gap: 7px; align-items: baseline; }
.c-check .s { flex: none; font-weight: 700; }
.c-check .s.done { color: var(--ok); }
.c-check .s.todo { color: #bbb; }
.c-check .s.warn { color: var(--warn); }
.c-btns { display: flex; gap: 8px; margin-top: 10px; }
.c-btn {
  flex: 1; text-align: center; padding: 7px 0; border-radius: 7px; font-size: 12.5px; font-weight: 600;
  background: var(--sky); color: var(--teal-d); cursor: default;
}
.c-btn.primary { background: var(--warm); color: #fff; }
.c-btn.ghost { background: #f5f5f5; color: #666; }
.c-foot { margin-top: 9px; padding-top: 8px; border-top: 1px solid #f2f2f2; font-size: 10.5px; color: #b0b0b0; display: flex; align-items: center; gap: 5px; }
.c-foot::before { content: "⛁"; color: var(--teal-l); }
/* 卡内迷你条形图 */
.c-bars { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 2px; }
.c-bars .b-row { display: grid; grid-template-columns: 58px 1fr 42px; gap: 8px; align-items: center; font-size: 11.5px; color: #666; }
.c-bars .b-track { display: block; height: 8px; border-radius: 4px; background: #f3ede5; overflow: hidden; }
.c-bars .b-fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--teal-l)); }
.c-bars .b-fill.warm { background: linear-gradient(90deg, var(--warm), var(--warm-l)); }
.c-bars .b-val { text-align: right; font-weight: 600; color: #333; font-variant-numeric: tabular-nums; }

/* ---------- 底部：快捷话术 + 语音条 ---------- */
.wx-footer { flex: none; background: #F6F6F6; border-top: .5px solid #d9d9d9; }
.wx-chips { display: flex; gap: 8px; padding: 9px 12px 2px; overflow-x: auto; }
.wx-chips::-webkit-scrollbar { height: 0; }
.wx-chip {
  flex: none; font-size: 12px; color: var(--teal-d); background: #fff;
  border: 1px solid var(--sky2); padding: 5px 12px; border-radius: 999px; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.wx-chip:hover { background: var(--sky); border-color: var(--teal-l); }
.wx-chip:active { transform: scale(.96); }
.wx-chip.done { opacity: .35; pointer-events: none; }
.wx-inputbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px 22px; }
.wx-inputbar .mic { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #7a7a7a; color: #555; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.wx-inputbar .holdbar {
  flex: 1; text-align: center; background: #fff; border-radius: 6px; padding: 8px 0;
  font-size: 14px; font-weight: 600; color: #333;
}
.wx-inputbar .holdbar.rec { background: var(--wx-green); animation: recPulse 1s infinite; }
@keyframes recPulse { 0%,100% { opacity: 1; } 50% { opacity: .75; } }
.wx-inputbar .plus { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #7a7a7a; color: #555; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }

/* 场景选择条（手机壳上方） */
.scene-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.scene-btn {
  font-size: 12.5px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); color: var(--sub); transition: all .15s;
}
.scene-btn:hover { border-color: var(--warm-l); color: var(--warm-d); }
.scene-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.scene-btn.active::before { content: "▶ "; color: var(--warm); font-size: 10px; }
.phone-caption { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.phone-caption b { color: var(--teal-d); }

/* ---------- 通用页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--white);
  padding: 26px 28px; text-align: center; font-size: 12px; color: var(--muted);
}
.site-footer .foot-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.site-footer .foot-brand img { height: 20px; }
.site-footer b { color: var(--sub); }

/* ============================================================
   以下为君度智链原型扩展组件（驾驶舱 / 作战台 / 小程序 / 蒸馏）
   ============================================================ */

/* ---------- 首页 Hero（暗酒红） ---------- */
.hero {
  background: radial-gradient(1200px 600px at 85% -20%, #8F1216 0%, #5C0B0E 55%, #47090C 100%);
  color: #F0E4DC; border-radius: 22px; padding: 44px 46px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%; border: 2px solid rgba(228,185,107,.35);
}
.hero::before {
  content: ""; position: absolute; right: 40px; top: -60px; width: 380px; height: 380px;
  border-radius: 50%; border: 2px solid rgba(143,176,222,.3);
}
.hero .eyebrow { font-size: 11.5px; letter-spacing: 3px; color: #D9A9A6; font-weight: 700; margin-bottom: 12px; }
.hero h1 { font-size: 34px; line-height: 1.3; color: #F3E3C2; letter-spacing: 1px; }
.hero h1 .w { color: #fff; }
.hero .sub { margin-top: 12px; font-size: 15px; color: #E8C9C6; max-width: 720px; }
.hero .chips { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero .chips span {
  font-size: 12.5px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(228,185,107,.35); color: #F0CFC0;
}

/* ---------- 角色卡 ---------- */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-top: 26px; }
.role-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); transition: all .18s; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--warm-l); }
.role-card .rc-top { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.role-card .rc-avatar {
  width: 46px; height: 46px; border-radius: 14px; color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.role-card .rc-avatar.red  { background: linear-gradient(135deg, var(--warm), var(--warm-d)); }
.role-card .rc-avatar.navy { background: linear-gradient(135deg, var(--teal), var(--teal-d)); }
.role-card .rc-avatar.gold { background: linear-gradient(135deg, #C99A45, var(--gold)); }
.role-card .rc-avatar.ink  { background: linear-gradient(135deg, #4A3B33, var(--ink)); }
.role-card h3 { font-size: 17px; color: var(--ink); }
.role-card .who { font-size: 12px; color: var(--muted); margin-top: 1px; }
.role-card p { font-size: 13px; color: var(--sub); flex: 1; }
.role-card .rc-feats { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.role-card .rc-feats span { font-size: 11.5px; background: var(--sky); color: var(--teal-d); border-radius: 999px; padding: 3px 10px; }
.role-card .rc-feats span.r { background: var(--cream); color: var(--warm-d); }
.role-card .go {
  align-self: flex-start; font-size: 13px; font-weight: 700; color: #fff; background: var(--warm);
  padding: 8px 18px; border-radius: 999px; transition: background .15s;
}
.role-card .go:hover { background: var(--warm-d); }
.role-card .go.navy { background: var(--teal); }
.role-card .go.navy:hover { background: var(--teal-d); }

/* ---------- KPI 瓦片 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi-tile { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.kpi-tile .k-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi-tile .k-val { font-size: 26px; font-weight: 800; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi-tile .k-val small { font-size: 13px; font-weight: 600; color: var(--sub); }
.kpi-tile .k-delta { font-size: 11.5px; margin-top: 3px; font-weight: 600; }
.kpi-tile .k-delta.up { color: var(--ok); }
.kpi-tile .k-delta.down { color: var(--warn); }
.kpi-tile.hot { background: linear-gradient(135deg, #FDF3F3, #FAEBEA); border-color: var(--warm-l); }
.kpi-tile.hot .k-val { color: var(--warm-d); }
.kpi-tile.navy { background: linear-gradient(135deg, #F2F6FB, #E8EEF7); border-color: var(--sky2); }
.kpi-tile.navy .k-val { color: var(--teal-d); }

/* ---------- 下钻面包屑 + 数据表 ---------- */
.crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; margin-bottom: 12px; }
.crumb a { color: var(--teal-d); font-weight: 600; cursor: pointer; padding: 3px 10px; border-radius: 999px; background: var(--sky); }
.crumb a:hover { background: var(--sky2); }
.crumb .sep { color: var(--card-b); }
.crumb .cur { font-weight: 700; color: var(--warm-d); background: var(--cream); padding: 3px 10px; border-radius: 999px; }
.drill-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.drill-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.drill-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--sub); }
.drill-table tr.clickable { cursor: pointer; transition: background .12s; }
.drill-table tr.clickable:hover { background: var(--cream); }
.drill-table td b { color: var(--ink); }
.drill-table .num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.drill-table .drill-hint { color: var(--warm); font-size: 11px; font-weight: 700; }
.pbar { display: inline-block; width: 86px; height: 7px; border-radius: 4px; background: #F0EAE0; vertical-align: 2px; margin-right: 7px; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--teal-l)); }
.pbar i.red { background: linear-gradient(90deg, var(--warm), #E4747A); }
.pbar i.gold { background: linear-gradient(90deg, #C99A45, var(--gold)); }

/* ---------- 空中巡警预警流 ---------- */
.alert-feed { display: flex; flex-direction: column; gap: 10px; }
.alert {
  display: flex; gap: 12px; align-items: flex-start; background: var(--white);
  border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 12px; padding: 12px 14px;
}
.alert.warn2 { border-left-color: var(--gold); }
.alert.info { border-left-color: var(--teal); }
.alert .a-ic { font-size: 17px; flex: none; margin-top: 1px; }
.alert b { display: block; font-size: 13.5px; color: var(--ink); }
.alert span { font-size: 12px; color: var(--sub); display: block; margin-top: 2px; line-height: 1.5; }
.alert .a-act { margin-left: auto; flex: none; font-size: 12px; font-weight: 700; color: var(--teal-d); background: var(--sky); border-radius: 999px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.alert .a-act:hover { background: var(--sky2); }
.alert .a-act.done { background: #E7F5EE; color: var(--ok); pointer-events: none; }

/* ---------- 桌面 ChatBI ---------- */
.bi-chat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; }
.bi-chat .bi-head { padding: 13px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); font-size: 14.5px; }
.bi-chat .bi-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px #E7F5EE; }
.bi-log { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; max-height: 430px; overflow-y: auto; }
.bi-msg { max-width: 88%; font-size: 13.5px; line-height: 1.6; animation: msgIn .25s ease both; }
.bi-msg.q { align-self: flex-end; background: var(--cream); color: var(--warm-d); font-weight: 600; border-radius: 12px 12px 3px 12px; padding: 9px 14px; }
.bi-msg.a { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; padding: 11px 14px; color: var(--sub); }
.bi-msg.a b { color: var(--ink); }
.bi-msg.a .hl { color: var(--warm-d); font-weight: 700; }
.bi-bars { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.bi-bars .row { display: grid; grid-template-columns: 64px 1fr 52px; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); }
.bi-bars .tr { height: 9px; border-radius: 5px; background: #F0EAE0; overflow: hidden; }
.bi-bars .tr i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--teal), var(--teal-l)); }
.bi-bars .tr i.red { background: linear-gradient(90deg, var(--warm), #E4747A); }
.bi-bars .v { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bi-quick { padding: 10px 14px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.bi-quick button {
  font-size: 12.5px; color: var(--teal-d); background: var(--sky); border: none; border-radius: 999px;
  padding: 6px 13px; cursor: pointer; font-family: var(--font); transition: all .15s;
}
.bi-quick button:hover { background: var(--sky2); }
.bi-quick button:disabled { opacity: .35; cursor: default; }

/* ---------- 发布监督表（谁发了/没发） ---------- */
.pub-grid { display: grid; grid-template-columns: 88px repeat(7, 1fr); gap: 5px; font-size: 11.5px; align-items: center; }
.pub-grid .h { color: var(--muted); text-align: center; font-weight: 600; }
.pub-grid .n { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-grid .c { height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.pub-grid .c.ok { background: #E7F5EE; color: var(--ok); }
.pub-grid .c.miss { background: #FBEAEA; color: var(--warn); }
.pub-grid .c.rest { background: var(--bg); color: var(--card-b); }

/* ---------- 蒸馏流水线 ---------- */
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .pipe { grid-template-columns: 1fr 1fr; } }
.pipe .p-step { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; position: relative; box-shadow: var(--shadow-sm); }
.pipe .p-step.on { border-color: var(--warm-l); background: linear-gradient(160deg, #fff, #FDF3F3); }
.pipe .p-step .p-k { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--warm); }
.pipe .p-step b { display: block; font-size: 15px; color: var(--ink); margin: 4px 0 6px; }
.pipe .p-step p { font-size: 12px; color: var(--sub); line-height: 1.55; }
.pipe .p-step .p-num { position: absolute; right: 14px; top: 12px; font-size: 26px; font-weight: 800; color: var(--cream2); }

/* ---------- 时间线（过程留痕） ---------- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 16px 8px; }
.tl-item::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); border: 2.5px solid #fff; box-shadow: 0 0 0 1.5px var(--teal-l); }
.tl-item.hot::before { background: var(--warm); box-shadow: 0 0 0 1.5px var(--warm-l); }
.tl-item .tl-t { font-size: 11px; color: var(--muted); }
.tl-item b { font-size: 13px; color: var(--ink); display: block; margin: 1px 0 2px; }
.tl-item p { font-size: 12px; color: var(--sub); line-height: 1.55; }

/* ---------- 小程序（非会话页）通用 ---------- */
.mp-body { flex: 1; overflow-y: auto; background: #F5F4F2; }
.mp-body::-webkit-scrollbar { width: 0; }
.mp-navbar { flex: none; background: #fff; padding: 10px 16px 10px; display: flex; align-items: center; justify-content: center; position: relative; border-bottom: .5px solid #eee; }
.mp-navbar b { font-size: 16px; color: #111; }
.mp-navbar .capsule { position: absolute; right: 12px; top: 9px; width: 78px; height: 28px; border: 1px solid #e3e3e3; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: #333; }
.mp-tabbar { flex: none; background: #fff; border-top: .5px solid #e5e5e5; display: flex; padding: 7px 0 20px; }
.mp-tabbar .t { flex: 1; text-align: center; font-size: 10.5px; color: #9b9b9b; cursor: pointer; }
.mp-tabbar .t .ti { font-size: 20px; display: block; line-height: 1.2; }
.mp-tabbar .t.on { color: var(--warm-d); font-weight: 700; }
.mp-card { background: #fff; border-radius: 14px; margin: 12px 12px 0; padding: 14px 15px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.mp-card h4 { font-size: 14px; color: #222; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.mp-card h4 .more { margin-left: auto; font-size: 11px; color: #999; font-weight: 400; }
.task-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f4f4f4; }
.task-row:last-child { border-bottom: none; }
.task-row .t-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 16px; background: var(--cream); }
.task-row b { font-size: 13px; color: #222; display: block; }
.task-row span { font-size: 11px; color: #999; display: block; }
.task-row .t-st { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.task-row .t-st.done { background: #E7F5EE; color: var(--ok); }
.task-row .t-st.todo { background: var(--cream); color: var(--warm-d); }
.poster {
  border-radius: 12px; padding: 18px 16px; color: #fff; position: relative; overflow: hidden; min-height: 120px;
  background: linear-gradient(150deg, #16294A, #23406E);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.poster.red { background: linear-gradient(150deg, #5C0B0E, #8F1216); }
.poster .po-tag { position: absolute; top: 10px; left: 12px; font-size: 10px; letter-spacing: 2px; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 2px 8px; }
.poster b { font-size: 17px; letter-spacing: 1px; }
.poster span { font-size: 11px; opacity: .8; margin-top: 2px; }
.mp-btn { display: block; text-align: center; background: var(--warm); color: #fff; font-size: 13.5px; font-weight: 700; border-radius: 999px; padding: 9px 0; margin-top: 10px; cursor: pointer; transition: background .15s; }
.mp-btn:hover { background: var(--warm-d); }
.mp-btn.ok { background: var(--ok); pointer-events: none; }
.mp-btn.ghost { background: #f2f2f2; color: #555; }

/* ---------- 版心两栏（左窄右宽 / 左宽右窄） ---------- */
.cols-28 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.cols-82 { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; align-items: start; }
@media (max-width: 1080px) { .cols-28, .cols-82 { grid-template-columns: 1fr; } }

/* ---------- 方案页章节 ---------- */
.plan-sec { margin-top: 34px; scroll-margin-top: 80px; }
.plan-sec .sec-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--warm-d); letter-spacing: 2px; margin-bottom: 10px; }
.plan-sec .sec-tag::before { content: ""; width: 22px; height: 22px; border-radius: 6px; background: var(--warm); box-shadow: 2px 2px 0 var(--cream2); }
.plan-sec h2 { font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.plan-sec .sec-sub { font-size: 13.5px; color: var(--sub); max-width: 860px; margin-bottom: 16px; }
.quote-band {
  background: linear-gradient(120deg, #5C0B0E, #8F1216); color: #F3E3C2; border-radius: 14px;
  padding: 18px 24px; font-size: 15px; font-weight: 700; letter-spacing: .5px;
}
.quote-band small { display: block; margin-top: 4px; color: #D9A9A6; font-size: 12px; font-weight: 400; }
