/* 李凯密 UX 作品集 —— 设计标注稿风格
   颜色：页面浅灰、画板白、墨色正文、标注红、界面蓝；线路色只用于采购案例的线路图。 */

@font-face { font-family: "Barlow C"; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow C"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --page: #f5f6f8;
  --board: #ffffff;
  --dot: #e1e6ec;
  --ink: #1d2129;
  --ink-2: #3a404b;
  --muted: #5f6775;
  --line: #e2e6ec;
  --line-2: #cdd3dc;
  --red: #d6265f;        /* 标注线与编号 */
  --red-text: #c41f54;   /* 标注文字 */
  --red-soft: #fde7ee;
  --blue: #2a5fe6;       /* 界面主色，仅用于重绘界面 */
  --blue-soft: #eaf0ff;
  --ok: #18804b;
  --ok-soft: #e7f5ed;
  --warn: #a35a00;
  --warn-soft: #fff3df;
  --road: #e8950c;
  --rail: #2b50d4;
  --water: #0b8a7e;
  --spare: #8a96a3;
  --radius: 12px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --num: "Barlow C", var(--sans);
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; overflow-x: clip; background: var(--page); color: var(--ink); font: 16px/1.75 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.nowrap { white-space: nowrap; }
@media (max-width: 860px) { .br-d { display: none; } }

/* ---------- 页眉页脚 ---------- */
.site-top { position: sticky; top: 0; z-index: 20; background: rgba(245, 246, 248, .9); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.site-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand b { font-size: 18px; }
.brand span { color: var(--muted); font-size: 14px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--red-text); }
.nav .wx { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; }
.nav .wx:hover { background: var(--red); color: #fff; }
.site-foot { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- 文字与按钮 ---------- */
h1, h2, h3 { text-wrap: balance; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s; }
.btn:hover { background: var(--red); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 6px; }
.more:hover { text-decoration-color: var(--red); }
.section { padding: 96px 0 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.35; }
.section-head p { margin: 10px 0 0; color: var(--muted); }

/* ---------- 画板（所有图示的统一容器） ---------- */
.board { position: relative; padding: 36px 28px 32px; border-radius: 14px; background: var(--board) radial-gradient(circle, var(--dot) 1px, transparent 1.3px) 0 0 / 14px 14px; box-shadow: 0 0 0 1px var(--line); }
.board-name { position: absolute; top: -26px; left: 2px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.board + .caption, .caption { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* 标注层 */
.annotated { display: grid; grid-template-columns: minmax(0, 470px) minmax(230px, 1fr); gap: 64px; align-items: start; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.leaders path { fill: none; stroke: var(--red); stroke-width: 1.2; stroke-dasharray: 4 3; }
.pin { position: absolute; z-index: 3; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font: 700 11px/1 var(--sans); pointer-events: none; }
.notes { position: relative; margin: 0; padding: 0; list-style: none; }
.note { position: absolute; left: 0; right: 0; padding: 3px 8px 4px 12px; border-left: 2px solid var(--red); border-radius: 0 6px 6px 0; font-size: 13px; line-height: 1.5; cursor: default; transition: background-color .15s; }
.note b { display: block; color: var(--red-text); font-size: 14px; }
.note span { color: var(--ink-2); }
.note:hover, .note:focus-visible, .note.on { background: var(--red-soft); outline: none; }
[data-target] { transition: box-shadow .18s, background-color .18s; }
[data-target].on { box-shadow: 0 0 0 2px var(--red); background-color: var(--red-soft); border-radius: 6px; }

/* ---------- 重绘界面的通用件 ---------- */
.ui { position: relative; background: #fff; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(29, 33, 41, .06), 0 12px 32px -14px rgba(29, 33, 41, .2); font-size: 13px; line-height: 1.5; }
.ui-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.ui-head strong { font-size: 15px; }
.ui-head span { color: var(--muted); font-size: 12px; }
.ui table { width: 100%; border-collapse: collapse; }
.ui th { height: 34px; padding: 0 10px; background: #f7f8fa; color: var(--muted); font-weight: 500; font-size: 12px; text-align: left; white-space: nowrap; }
.ui td { height: 46px; padding: 0 10px; border-bottom: 1px solid #eef0f3; white-space: nowrap; }
.ui td.rank { width: 44px; text-align: center; font-weight: 700; }
.ui-foot { padding: 12px 18px 16px; }
.grade { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 12px; }
.grade.b { background: #f1f3f6; color: #4a5361; }
.good { color: var(--ok); font-weight: 600; }
.check { display: inline-block; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #c3cad4; vertical-align: middle; transition: background-color .15s, border-color .15s; }
.check.on { background: var(--blue); border-color: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #f1f3f6; color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.tag.ok { background: var(--ok-soft); color: #13693d; }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.red { background: var(--red-soft); color: var(--red-text); }
.ui-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 0; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; font-size: 13px; cursor: pointer; }
.ui-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.ui-btn.primary { background: var(--blue); color: #fff; box-shadow: none; }
.ui-btn.primary:hover { background: #1f4fcc; }
.ui-btn small { color: var(--muted); font-weight: 400; }
.lock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: #f1f3f6; }
.seg button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(29, 33, 41, .12); }

/* ---------- 首页 ---------- */
.hero-head { padding: 64px 0 44px; }
.hero-head h1 { margin: 0; font-size: clamp(32px, 4.6vw, 66px); line-height: 1.24; letter-spacing: -.005em; }
.hero-head h1 span { display: inline-block; white-space: nowrap; }
.hero { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 56px; align-items: start; }
.hero-copy p { margin: 0; color: var(--ink-2); font-size: 17px; }
.hero-copy .actions { margin-top: 30px; }
.hero-copy .status { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.hero-copy .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hint { margin-top: 26px !important; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted) !important; font-size: 14px !important; }
.hint .touch { display: none; }
@media (hover: none) { .hint .mouse { display: none; } .hint .touch { display: inline; } }

.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.frame { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); text-decoration: none; }
.frame::after { content: ""; position: absolute; inset: -6px; border: 1.5px solid var(--blue); border-radius: 9px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.frame:hover::after, .frame:focus-visible::after { opacity: 1; }
.frame:focus-visible { outline: none; }
.frame .fname { position: absolute; top: -26px; left: 0; color: var(--muted); font-size: 13px; }
.frame:hover .fname { color: var(--blue); }
.thumb { height: 200px; margin: 10px 10px 0; border-radius: 4px; overflow: hidden; background: #f3f5f8; }
.frame-body { padding: 18px 20px 22px; }
.frame h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.4; }
.frame p { margin: 0; color: var(--ink-2); font-size: 15px; }
.frame dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.frame dt { color: var(--muted); }
.frame dd { margin: 0; }

/* 缩略图：采购线路 */
.thumb-route { position: relative; height: 100%; }
.thumb-route svg { width: 100%; height: 100%; }
/* 缩略图：工作台 */
.thumb-wb { display: grid; grid-template-columns: 52px 1fr; height: 100%; }
.thumb-wb .side { background: #1d2129; }
.thumb-wb .main { padding: 14px; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.thumb-wb .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb-wb .kpis i { height: 38px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.thumb-wb .rows { display: grid; gap: 6px; padding: 10px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.thumb-wb .rows i { height: 12px; border-radius: 3px; background: #edf0f4; }
.thumb-wb .rows i.alert { background: var(--red-soft); box-shadow: inset 3px 0 0 var(--red); }
/* 缩略图：对话 */
.thumb-chat { display: grid; align-content: center; gap: 10px; height: 100%; padding: 18px; }
.thumb-chat .q { justify-self: end; padding: 7px 12px; border-radius: 12px 12px 2px 12px; background: var(--ink); color: #fff; font-size: 12px; }
.thumb-chat .a { padding: 10px 12px; border-radius: 12px 12px 12px 2px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 12px; line-height: 1.6; }
.thumb-chat .a span { display: inline-block; margin: 6px 4px 0 0; padding: 1px 7px; border-radius: 999px; background: var(--red-soft); color: var(--red-text); font-size: 11px; font-weight: 600; }

/* 做法：步骤 */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 24px 0 0; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 15px/1 var(--num); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 15px; left: 30px; right: 0; height: 2px; background: var(--line-2); }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 0 0 8px; font-size: 19px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
.steps .proof { display: block; margin-top: 12px; padding-left: 10px; border-left: 2px solid var(--red); color: var(--red-text); font-size: 13.5px; line-height: 1.55; }

/* 经历 */
.timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.timeline li { display: grid; grid-template-columns: 120px 220px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--muted); font: 600 17px var(--num); letter-spacing: .02em; }
.timeline b { font-size: 16px; }
.timeline b small { display: block; color: var(--blue); font-size: 13px; font-weight: 500; }
.timeline span { color: var(--ink-2); font-size: 15px; }
.tools { margin-top: 22px; color: var(--muted); font-size: 15px; }

/* 联系 */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; margin: 96px 0; padding: 48px; border-radius: 16px; background: var(--ink); color: #fff; }
.contact h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.3; }
.contact p { margin: 14px 0 0; color: #c9ced6; max-width: 32em; }
.contact .mail { display: inline-block; margin-top: 22px; color: #fff; font-weight: 600; text-underline-offset: 6px; }
.qr { display: grid; justify-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 13px; }
.qr img { width: 168px; height: 168px; }

/* ---------- 案例页 ---------- */
.case-head { padding: 40px 0 56px; }
.back { display: inline-flex; gap: 6px; color: var(--muted); font-size: 14px; text-decoration: none; }
.back:hover { color: var(--ink); }
.case-head h1 { max-width: 20em; margin: 18px 0 0; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.25; }
.case-head .lead { max-width: 40em; margin: 20px 0 0; color: var(--ink-2); font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 36px 0 0; border-top: 1px solid var(--line-2); }
.facts div { padding: 14px 20px 0 0; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.cs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 72px 0 0; }
.cs > * { min-width: 0; }
.cs > header h2 { position: sticky; top: 88px; margin: 0; font-size: 22px; line-height: 1.4; }
.cs > header p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.cs-body > p, .cs-body > ul { max-width: 40em; margin: 0 0 18px; color: var(--ink-2); }
.cs-body > ul { padding-left: 1.2em; }
.cs-body > ul li { margin-bottom: 6px; }
.cs-body h3 { margin: 40px 0 10px; font-size: 19px; }
.cs-body .board { margin-top: 44px; }
.cs-body .board:first-child { margin-top: 26px; }
.decision { margin: 30px 0 0; padding: 14px 18px; border-radius: 10px; background: #fff; box-shadow: inset 3px 0 0 var(--red), 0 0 0 1px var(--line); color: var(--ink-2); font-size: 15px; max-width: 46em; }
.decision b { color: var(--red-text); }
.kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; }
.kpi div { padding: 16px 18px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.kpi strong { display: block; font: 700 34px/1.1 var(--num); }
.kpi span { color: var(--muted); font-size: 14px; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 96px 0; padding: 32px 36px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-decoration: none; }
.next small { display: block; color: var(--muted); font-size: 14px; }
.next b { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35; }
.next:hover { box-shadow: 0 0 0 2px var(--blue); }
.boundary { margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: #eef1f5; color: var(--muted); font-size: 14px; max-width: 46em; }

/* 线路图 */
.route svg { width: 100%; height: auto; overflow: visible; }
.route .m { display: none; }
.r-line { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.r-road { stroke: var(--road); } .r-rail { stroke: var(--rail); } .r-water { stroke: var(--water); }
.r-spare { stroke: var(--spare); stroke-dasharray: 2 14; }
.r-trunk { fill: none; stroke: var(--ink); stroke-width: 14; stroke-linecap: round; }
.r-stop { fill: #fff; stroke: var(--ink); stroke-width: 4; }
.r-hub { fill: #fff; stroke: var(--ink); stroke-width: 5; }
.r-lbl { font: 600 16px var(--sans); fill: var(--ink); }
.r-sub { font: 400 13px var(--sans); fill: var(--muted); }
.r-big { font: 800 19px var(--sans); fill: var(--ink); }
.r-end { font: 700 14px var(--sans); fill: #fff; }

/* 需求列表 */
.src { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: 0; }

/* 集采演示 */
.pool { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
.pool-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #eef0f3; transition: background-color .2s, opacity .2s; }
.pool-list { margin: 0; padding: 0; list-style: none; }
.pool-list li.split { background: #fafbfc; }
.pool-list li.split .lane { opacity: .55; }
.pool-list .lane b { display: block; font-size: 13.5px; }
.pool-list .lane small { color: var(--muted); font-size: 12px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; margin: 0; border-radius: 999px; background: #cfd5de; position: relative; cursor: pointer; transition: background-color .15s; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .18s; }
.toggle input:checked { background: var(--blue); }
.toggle input:checked::after { transform: translateX(14px); }
.pool-sum { align-self: start; padding: 16px 18px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14px; }
.pool-sum h3 { margin: 0 0 10px; font-size: 14px; }
.pool-sum .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.pool-sum .row:last-of-type { border-bottom: 0; }
.pool-sum strong { font: 700 22px/1 var(--num); }
.pool-sum p { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }

/* 扩展匹配演示 */
.expand-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.cands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.cands > div { padding: 14px 18px 16px; }
.cands > div + div { border-left: 1px solid var(--line); }
.cands h3 { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 13px; }
.cands h3 span { color: var(--muted); font-weight: 500; }
.cands ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cands li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 7px; background: #f7f8fa; font-size: 12.5px; }
.cands li.new { background: var(--blue-soft); }
.cands li[hidden] { display: none; }
.cands .lack { color: var(--red-text); font-weight: 600; }
.expand-note { padding: 10px 18px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

/* 对话框（追加排名外供应商） */
dialog.approve { width: min(440px, 100% - 32px); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(29, 33, 41, .45); }
dialog.approve::backdrop { background: rgba(29, 33, 41, .38); }
dialog.approve form { padding: 22px 22px 20px; font-size: 14px; }
dialog.approve h3 { margin: 0 0 6px; font-size: 17px; }
dialog.approve p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
dialog.approve label { display: block; margin: 12px 0 6px; font-weight: 600; font-size: 13px; }
dialog.approve select, dialog.approve textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 13.5px; background: #fff; }
dialog.approve .row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
dialog.approve .err { min-height: 1.4em; margin: 6px 0 0; color: var(--red-text); font-size: 12.5px; }
.toast { margin-top: 10px; min-height: 1.5em; color: var(--ok); font-size: 12.5px; font-weight: 600; }

/* 工作台重绘 */
.wb { display: grid; grid-template-columns: 180px minmax(0, 1fr); overflow: hidden; }
.wb-side { padding: 18px 14px; background: var(--ink); color: #c9ced6; font-size: 13px; }
.wb-side b { display: block; margin: 0 6px 18px; color: #fff; font-size: 14px; }
.wb-side a { display: block; padding: 8px 10px; border-radius: 7px; text-decoration: none; }
.wb-side a.on { background: rgba(255, 255, 255, .1); color: #fff; }
.wb-main { padding: 18px 20px 20px; background: #f7f8fa; display: grid; gap: 14px; align-content: start; }
.wb-title { display: flex; justify-content: space-between; align-items: baseline; }
.wb-title strong { font-size: 16px; }
.wb-title span { color: var(--muted); font-size: 12px; }
.wb-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wb-kpis div { padding: 10px 12px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.wb-kpis small { display: block; color: var(--muted); font-size: 12px; }
.wb-kpis strong { font: 700 24px/1.2 var(--num); }
.wb-kpis em { margin-left: 6px; font-style: normal; font-size: 12px; font-weight: 600; }
.wb-kpis em.up { color: var(--ok); } .wb-kpis em.down { color: var(--red-text); }
.wb-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.wb-card { padding: 12px 14px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.wb-card h3 { display: flex; justify-content: space-between; margin: 0 0 10px; font-size: 13px; }
.wb-card h3 span { color: var(--muted); font-weight: 500; }
.bars { display: grid; grid-template-columns: repeat(8, 1fr); align-items: end; gap: 8px; height: 120px; padding-top: 6px; }
.bars span { position: relative; display: block; border-radius: 4px 4px 0 0; background: #c9d6f6; }
.bars span i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px 4px 0 0; background: var(--blue); }
.bars span.gap { box-shadow: 0 0 0 2px var(--red); }
.bars-x { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 6px; color: var(--muted); font-size: 11px; text-align: center; }
.alerts { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.alerts button { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: #f7f8fa; text-align: left; font-size: 12.5px; cursor: pointer; }
.alerts button:hover { background: #eef1f6; }
.alerts button[aria-expanded="true"] { background: var(--red-soft); box-shadow: inset 3px 0 0 var(--red); }
.alerts i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.alerts i.amber { background: #e8950c; }
.alerts small { color: var(--muted); }
.detail { padding: 12px 14px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; }
.detail h4 { margin: 0 0 6px; font-size: 13px; }
.detail p { margin: 0 0 8px; color: var(--ink-2); }
.detail .ui-btn { min-height: 30px; }
.chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.chain button { padding: 10px 8px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-align: left; cursor: pointer; font-size: 12px; }
.chain button strong { display: block; font: 700 20px/1.2 var(--num); }
.chain button small { color: var(--muted); }
.chain button .bad { color: var(--red-text); font-weight: 600; }
.chain button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--blue); }
.orders td { height: 40px; }
.orders tr[hidden] { display: none; }
.config { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0; }
.config-form { padding: 16px 18px; border-right: 1px solid var(--line); display: grid; gap: 12px; align-content: start; font-size: 12.5px; }
.config-form label { display: grid; gap: 4px; color: var(--muted); }
.config-form .val { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 7px; background: #f7f8fa; color: var(--ink); font-weight: 600; }
.config > * { min-width: 0; }
.config-out { padding: 16px 18px; overflow-x: auto; }

/* 版本时间线 */
.versions { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line-2); }
.versions li { position: relative; padding: 0 0 26px 26px; }
.versions li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--ink); }
.versions b { font: 700 20px var(--num); }
.versions b small { margin-left: 8px; font: 600 15px var(--sans); }
.versions p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; max-width: 40em; }

/* Copilot 演示 */
.cp { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 400px; overflow: hidden; }
.cp-chat { display: grid; grid-template-rows: auto 1fr auto; border-right: 1px solid var(--line); }
.cp-qs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cp-qs button { padding: 6px 12px; border: 0; border-radius: 999px; background: #f1f3f6; font-size: 12.5px; cursor: pointer; }
.cp-qs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cp-thread { padding: 16px; display: grid; gap: 12px; align-content: start; }
.bubble-q { justify-self: end; max-width: 80%; padding: 8px 12px; border-radius: 12px 12px 2px 12px; background: var(--ink); color: #fff; }
.bubble-a { max-width: 92%; padding: 12px 14px; border-radius: 12px 12px 12px 2px; background: #f7f8fa; box-shadow: 0 0 0 1px var(--line); }
.bubble-a p { margin: 0 0 8px; }
.bubble-a ul { margin: 0 0 8px; padding-left: 1.1em; }
.bubble-a li { margin-bottom: 4px; }
.cite { display: inline-flex; margin: 0 2px; padding: 0 7px; border: 0; border-radius: 999px; background: var(--red-soft); color: var(--red-text); font-size: 11.5px; font-weight: 700; line-height: 20px; cursor: pointer; vertical-align: 1px; }
.cite[aria-pressed="true"] { background: var(--red); color: #fff; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cp-side { padding: 16px; background: #fbfcfd; font-size: 12.5px; }
.cp-side h3 { margin: 0 0 10px; font-size: 13px; }
.cp-side dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 0; }
.cp-side dt { color: var(--muted); }
.cp-side dd { margin: 0; }
.cp-side .empty { color: var(--muted); }
.gates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: g; }
.gates li { padding: 14px 14px 16px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); counter-increment: g; font-size: 14px; }
.gates li::before { content: counter(g); display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 10px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px/1 var(--num); }
.gates b { display: block; margin-bottom: 4px; }
.gates span { color: var(--ink-2); }

/* ---------- 动效：只在首屏标注出现时编排一次；其余动效只回应操作 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .intro .note { opacity: 0; animation: noteIn .35s ease forwards; animation-delay: calc(.45s + var(--i) * .2s); }
  .intro .leaders path { stroke-dashoffset: 400; animation: lead .5s ease forwards; animation-delay: calc(.35s + var(--i) * .2s); }
  .intro .pin { transform: scale(0); animation: pinIn .3s cubic-bezier(.3, 1.8, .5, 1) forwards; animation-delay: calc(.35s + var(--i) * .2s); }
  .route.play .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s cubic-bezier(.6, 0, .2, 1) forwards; }
  .route.play .r-spare.draw { stroke-dasharray: 2 14; stroke-dashoffset: 0; opacity: 0; animation: fade .6s ease .9s forwards; }
  .route.play .d1 { animation-delay: .15s; } .route.play .d2 { animation-delay: .3s; } .route.play .d3 { animation-delay: .45s; }
  .route.play .r-trunk.draw { animation-delay: 1.3s; animation-duration: 1s; }
  .route.play .after { opacity: 0; animation: fade .4s ease 2.05s forwards; }
  .route.play .hub-pop { transform-box: fill-box; transform-origin: center; animation: pop .5s cubic-bezier(.3, 1.7, .5, 1) 1.15s both; }
  .route.wait .draw, .route.wait .after, .route.wait .hub-pop { opacity: 0; }
  .pool-list li { transition: background-color .2s, opacity .2s, transform .2s; }
  .cands li.new { animation: fade .3s ease; }
  .bubble-a { animation: rise .25s ease; }
  @keyframes noteIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
  @keyframes lead { to { stroke-dashoffset: 0; } }
  @keyframes pinIn { to { transform: scale(1); } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pop { from { transform: scale(.4); opacity: 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(4px); } }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1160px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 36em; }
  .frames { grid-template-columns: 1fr 1fr; }
  .cs { grid-template-columns: 1fr; gap: 16px; }
  .cs > header h2 { position: static; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 860px) {
  .annotated { grid-template-columns: 1fr; gap: 24px; }
  .annotated .leaders { display: none; }
  .annotated .notes { display: grid; gap: 12px; }
  .annotated .note { position: static; }
  .frames { grid-template-columns: 1fr; gap: 44px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .contact { grid-template-columns: 1fr; padding: 32px 24px; justify-items: start; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .kpi { grid-template-columns: 1fr 1fr; }
  .pool { grid-template-columns: 1fr; }
  .route .d { display: none; }
  .route .m { display: block; max-width: 420px; margin-inline: auto; }
  .wb { grid-template-columns: 1fr; }
  .wb-side { display: none; }
  .wb-kpis { grid-template-columns: 1fr 1fr; }
  .wb-grid { grid-template-columns: 1fr; }
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .config { grid-template-columns: 1fr; }
  .config-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .cp { grid-template-columns: 1fr; }
  .cp-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .gates { grid-template-columns: 1fr 1fr; }
  .cands { grid-template-columns: 1fr; }
  .cands > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .nav a:not(.wx) { display: none; }
  .brand span { display: none; }
  .hero-head { padding: 32px 0 24px; }
  .hero-head h1 { font-size: 30px; }
  .hero-copy p { font-size: 16px; }
  .board { padding: 22px 12px 18px; }
  .section { padding-top: 72px; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .ui-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .ui td, .ui th { padding: 0 6px; }
  .ui td { white-space: normal; height: auto; padding-top: 10px; padding-bottom: 10px; }
  .hide-s { display: none !important; }
  .case-head .lead { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .next { flex-direction: column; align-items: flex-start; padding: 24px; }
  .gates { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr 1fr; }
  .qr img { width: 150px; height: 150px; }
}
