/* ISIP 全链路补货 · 产品 Demo（企业级 SaaS 界面） */
:root {
  --bg: #f3f5f7; --panel: #fff; --line: #e5e8ec; --line-2: #eef0f3;
  --ink: #1f2329; --ink-2: #5c6470; --ink-3: #8a929e;
  --pri: #00a870; --pri-2: #e6f6f0; --pri-d: #008a5c;
  --blue: #2b6cf6; --blue-2: #eaf1ff; --warn: #f59e0b; --warn-2: #fff4e0; --bad: #ef4444; --bad-2: #fdecec; --purple: #8b5cf6;
  --r: 10px; --sb: 220px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); font-size: 13px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--blue); text-decoration: none; }
ul { list-style: none; }
.num { font-variant-numeric: tabular-nums; }

/* 布局 */
.shell { display: grid; grid-template-columns: var(--sb) 1fr; grid-template-rows: 56px 1fr; height: 100vh; }
.top { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 0 20px 0 16px; background: #fff; border-bottom: 1px solid var(--line); z-index: 5; }
.logo { display: flex; align-items: center; gap: 10px; width: calc(var(--sb) - 16px); font-weight: 700; font-size: 15px; }
.logo i { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #00a870, #2b6cf6); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; }
.logo small { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.org { display: flex; align-items: center; gap: 8px; }
.org select { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 28px 0 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a929e' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; }
.top .search { flex: 1; max-width: 360px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px 0 32px; background: #f7f8fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%238a929e' stroke-width='1.5'/%3E%3Cpath d='M9.5 9.5l3 3' stroke='%238a929e' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat 11px center; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--ink-2); }
.badge-demo { font-size: 11px; color: var(--warn); background: var(--warn-2); padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.bell { position: relative; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.bell:hover { background: #f2f4f7; }
.bell b { position: absolute; top: 4px; right: 4px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 3px; }
.user { display: flex; align-items: center; gap: 8px; }
.user i { width: 28px; height: 28px; border-radius: 50%; background: #dbeafe; color: var(--blue); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; }
.menu-btn { display: none; width: 32px; height: 32px; border-radius: 8px; }

.side { background: #fff; border-right: 1px solid var(--line); padding: 12px 10px; overflow-y: auto; }
.side h6 { font-size: 11px; color: var(--ink-3); font-weight: 600; padding: 14px 10px 6px; letter-spacing: .04em; }
.nav a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; }
.nav a svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { background: #f5f7f9; color: var(--ink); }
.nav a.on { background: var(--pri-2); color: var(--pri-d); font-weight: 600; }
.nav a em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; background: var(--bad-2); color: var(--bad); padding: 1px 7px; border-radius: 10px; }
.side-foot { margin: 18px 6px 0; padding: 12px; border-radius: 10px; background: #f7f8fa; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.side-foot b { color: var(--ink); }
.side-foot a { display: block; margin-top: 6px; }

.main { overflow-y: auto; padding: 20px 24px 40px; }
.page-h { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-h h1 { font-size: 20px; font-weight: 700; }
.page-h p { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }
.page-h .act { margin-left: auto; display: flex; gap: 8px; }
.crumb { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }

/* 组件 */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.panel-h h3 { font-size: 14px; font-weight: 600; }
.panel-h .sub { color: var(--ink-3); font-size: 12px; }
.panel-h .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.panel-b { padding: 12px 16px 16px; }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: 1fr 1fr; } .g21 { grid-template-columns: 2fr 1fr; } .g12 { grid-template-columns: 1fr 2fr; }
.mt { margin-top: 14px; }

.btn { height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #cdd2d9; background: #fafbfc; }
.btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; font-weight: 600; }
.btn.pri:hover { background: var(--pri-d); }
.btn.sm { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.kpi { padding: 16px; position: relative; overflow: hidden; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.kpi:hover { box-shadow: 0 6px 20px -8px rgba(16,24,40,.18); transform: translateY(-1px); }
.kpi span { color: var(--ink-2); font-size: 12.5px; }
.kpi b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; }
.kpi em { font-style: normal; font-size: 12px; }
.kpi .spark { position: absolute; right: 12px; bottom: 12px; width: 96px; height: 34px; }
.up { color: var(--pri-d); } .down { color: var(--bad); } .muted { color: var(--ink-3); }

.tag { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 4px; line-height: 20px; white-space: nowrap; }
.tag.g { background: var(--pri-2); color: var(--pri-d); } .tag.b { background: var(--blue-2); color: var(--blue); }
.tag.o { background: var(--warn-2); color: #b45309; } .tag.r { background: var(--bad-2); color: var(--bad); } .tag.p { background: #f1ebff; color: var(--purple); } .tag.n { background: #f1f3f5; color: var(--ink-2); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.filters select, .filters input { height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; background: #fff; }
.filters input { width: 200px; }
.filters .sp { flex: 1; }
.seg { display: inline-flex; background: #f1f3f5; border-radius: 8px; padding: 3px; }
.seg button { height: 26px; padding: 0 12px; border-radius: 6px; font-size: 12.5px; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--ink-2); background: #fafbfc; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f8fbfa; }
tr.sel td { background: #f0faf6; }
td.r, th.r { text-align: right; }
td .nm { font-weight: 600; }
td .sb { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--pri); vertical-align: -3px; }
.pager { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--ink-3); font-size: 12px; }
.pager .sp { flex: 1; }
.bar-in { height: 6px; border-radius: 3px; background: #eef0f3; overflow: hidden; width: 80px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.bar-in i { display: block; height: 100%; border-radius: 3px; }
.bulk { position: sticky; bottom: 0; display: none; align-items: center; gap: 12px; padding: 10px 16px; background: #0f2a22; color: #fff; border-radius: 0 0 var(--r) var(--r); }
.bulk.show { display: flex; }
.bulk .btn { border-color: transparent; }

/* 图表 */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--ink-3); }
.chart .ax { stroke: var(--line-2); }
.chart .hover-l { stroke: #c3c9d1; stroke-dasharray: 3 3; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-2); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--c); }
.tip { position: fixed; z-index: 50; pointer-events: none; background: #1f2329; color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 8px; line-height: 1.6; box-shadow: 0 8px 24px rgba(0,0,0,.2); opacity: 0; transition: opacity .12s; white-space: nowrap; }
.tip.show { opacity: 1; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

.rank li { display: grid; grid-template-columns: 70px 1fr 64px; align-items: center; gap: 10px; padding: 7px 0; }
.rank li div { height: 8px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.rank li i { display: block; height: 100%; border-radius: 4px; background: var(--pri); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.todo li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.todo li:last-child { border-bottom: 0; }
.todo .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; }
.todo p { flex: 1; line-height: 1.5; } .todo p small { display: block; color: var(--ink-3); }

/* 抽屉 */
.mask { position: fixed; inset: 0; background: rgba(15,23,42,.32); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 30; }
.mask.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); background: #fff; z-index: 31; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(15,23,42,.12); }
.drawer.show { transform: none; }
.dr-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dr-h h2 { font-size: 17px; }
.dr-h p { color: var(--ink-3); font-size: 12px; margin-top: 4px; }
.dr-h .x { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; font-size: 18px; color: var(--ink-3); }
.dr-h .x:hover { background: #f2f4f7; }
.dr-b { flex: 1; overflow-y: auto; padding: 16px 20px 24px; }
.dr-f { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line); }
.calc { display: grid; grid-template-columns: repeat(5, auto); align-items: center; gap: 6px 10px; justify-content: start; background: #f7f8fa; border-radius: 10px; padding: 14px; font-size: 12.5px; }
.calc div { text-align: center; }
.calc div b { display: block; font-size: 18px; color: var(--ink); }
.calc div span { color: var(--ink-3); font-size: 11.5px; }
.calc .op { color: var(--ink-3); font-size: 16px; }
.calc .res b { color: var(--pri-d); }
.steps li { position: relative; padding: 0 0 12px 22px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.steps li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--pri); }
.steps li::after { content: ""; position: absolute; left: 8.5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li b { color: var(--ink); }
.ai-box { display: flex; gap: 10px; background: linear-gradient(135deg, #effaf5, #eef4ff); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; line-height: 1.65; }
.ai-box i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #00a870, #2b6cf6); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.sec-t { font-size: 13px; font-weight: 600; margin: 18px 0 10px; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kv div { background: #f7f8fa; border-radius: 8px; padding: 10px 12px; }
.kv span { display: block; color: var(--ink-3); font-size: 11.5px; }
.kv b { font-size: 16px; }

/* 网络图（店间协调） */
.net { width: 100%; height: auto; display: block; background: #fbfcfd; border-radius: 10px; }
.net text { font-family: var(--font); font-size: 10.5px; fill: var(--ink-2); }
.net .st { fill: #fff; stroke: #c3c9d1; stroke-width: 1.5; }
.net .st.need { fill: var(--bad-2); stroke: var(--bad); }
.net .st.give { fill: var(--pri-2); stroke: var(--pri); }
.net .wh { fill: var(--blue); }
.net .fl { fill: none; stroke: var(--pri); stroke-width: 2; stroke-dasharray: 5 5; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -10; } }

/* 表单 */
.form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; }
.field input:focus, .field select:focus, .filters input:focus, .filters select:focus { outline: 2px solid rgba(0,168,112,.25); border-color: var(--pri); }
.field small { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 4px; }
.range { display: flex; align-items: center; gap: 10px; }
.range input[type=range] { flex: 1; accent-color: var(--pri); }
.range output { min-width: 48px; text-align: right; font-weight: 700; color: var(--pri-d); }
.switch { position: relative; width: 36px; height: 20px; border-radius: 10px; background: #d0d5dd; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: var(--pri); } .switch.on::after { transform: translateX(16px); }
.rule { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.rule p { flex: 1; } .rule p small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }

/* AI 助手 */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 20; height: 44px; padding: 0 16px 0 12px; border-radius: 22px; background: linear-gradient(135deg, #00a870, #2b6cf6); color: #fff; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 28px -8px rgba(0,120,90,.6); }
.fab i { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; }
.chat { position: fixed; right: 24px; bottom: 80px; z-index: 21; width: 380px; max-height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(15,23,42,.35); display: flex; flex-direction: column; transform: translateY(12px) scale(.98); opacity: 0; pointer-events: none; transition: all .22s; }
.chat.show { transform: none; opacity: 1; pointer-events: auto; }
.chat-h { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.chat-h b { font-size: 14px; } .chat-h span { color: var(--ink-3); font-size: 12px; }
.chat-h button { margin-left: auto; font-size: 18px; color: var(--ink-3); }
.chat-b { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; line-height: 1.6; font-size: 12.5px; }
.msg.me { align-self: flex-end; background: var(--pri); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: #f3f5f7; border-bottom-left-radius: 4px; }
.msg.ai b { color: var(--pri-d); }
.msg.ai .src { display: block; margin-top: 6px; color: var(--ink-3); font-size: 11px; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #aab1bb; margin-right: 3px; animation: typ 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typ { 50% { opacity: .2; transform: translateY(-2px); } }
.chips-q { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chips-q button { font-size: 12px; padding: 5px 10px; border-radius: 14px; background: var(--pri-2); color: var(--pri-d); }
.chat-f { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-f input { flex: 1; height: 34px; border: 1px solid var(--line); border-radius: 17px; padding: 0 14px; }

.toast { position: fixed; top: 72px; left: 50%; transform: translate(-50%, -10px); z-index: 60; background: #1f2329; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; opacity: 0; transition: all .25s; pointer-events: none; display: flex; gap: 8px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: var(--pri); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.empty { padding: 40px; text-align: center; color: var(--ink-3); }
.fade-in { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }

/* 方案与算法 */
.guide-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding: 24px; background: linear-gradient(120deg, #f0faf6, #eef4ff); border: 0; }
.guide-hero h2 { font-size: 22px; margin: 10px 0 6px; letter-spacing: -.01em; }
.guide-hero p { color: var(--ink-2); line-height: 1.7; }
.gh-kpi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gh-kpi div { background: rgba(255,255,255,.75); border-radius: 10px; padding: 12px 14px; }
.gh-kpi b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.gh-kpi span { color: var(--ink-3); font-size: 12px; }
table.pv td { vertical-align: top; }
.flowsvg { width: 100%; height: auto; display: block; }
.flowsvg text { font-family: var(--font); text-anchor: middle; }
.flowsvg .t-b { font-size: 14px; font-weight: 700; fill: var(--ink); }
.flowsvg .t-s { font-size: 11px; fill: var(--ink-3); }
.flowsvg .t-m { font-size: 12px; fill: var(--ink); }
.flowsvg .t-l { font-size: 11px; fill: var(--pri-d); font-weight: 600; }
.flowsvg .n-pool { fill: #fff7e6; stroke: #f59e0b; }
.flowsvg .n-sup { fill: #f7f8fa; stroke: #c3c9d1; }
.flowsvg .n-wh { fill: #eaf1ff; stroke: #2b6cf6; }
.flowsvg .n-wh2 { fill: #f3f7ff; stroke: #93c5fd; }
.flowsvg .n-st rect { fill: #e6f6f0; stroke: #00a870; }
.flowsvg .g-flow { fill: none; stroke: #00a870; stroke-width: 2.2; stroke-dasharray: 7 5; animation: flow .9s linear infinite; }
.flowsvg .g-co { fill: none; stroke: #2b6cf6; stroke-width: 2; stroke-dasharray: 5 4; animation: flow .9s linear infinite; }
.flowsvg .g-ret { fill: none; stroke: #8b5cf6; stroke-width: 1.8; stroke-dasharray: 6 5; animation: flow 1.2s linear infinite; }
.flowsvg .g-info { fill: none; stroke: #b8bfc8; stroke-width: 1.4; stroke-dasharray: 3 4; }
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.road > div { position: relative; background: #f7f8fa; border-radius: 10px; padding: 14px 12px; opacity: 0; transform: translateY(8px); transition: all .45s; transition-delay: calc(var(--i) * .12s); }
.road > div.in { opacity: 1; transform: none; }
.road span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--pri); color: #fff; font-size: 12px; font-weight: 700; }
.road b { display: block; margin: 8px 0 4px; font-size: 14px; }
.road p { color: var(--ink-2); font-size: 12px; line-height: 1.5; min-height: 36px; }
.road em { font-style: normal; font-size: 11.5px; color: var(--pri-d); font-weight: 600; }
.layers { display: grid; grid-template-columns: 1fr 180px; grid-template-rows: repeat(6, auto); gap: 8px 12px; }
.layers > div { grid-column: 1; display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; background: var(--bg); color: var(--fg); border-radius: 10px; padding: 12px 16px; opacity: 0; transform: translateX(-10px); transition: all .45s; transition-delay: calc(var(--i) * .1s); }
.layers > div.in { opacity: 1; transform: none; }
.layers > div b { font-size: 14px; }
.layers > div span { color: var(--ink); font-size: 12.5px; line-height: 1.6; }
.layers aside { grid-column: 2; grid-row: 1 / span 6; border-radius: 12px; padding: 16px; background: linear-gradient(160deg, #00a870, #2b6cf6); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.layers aside b { font-size: 16px; }
.layers aside span { font-size: 12.5px; line-height: 1.8; opacity: .95; }
.layers aside em { font-style: normal; display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.22); font-weight: 600; }
.formula { display: grid; gap: 8px; background: #0f1d1a; color: #e6f6f0; border-radius: 10px; padding: 14px 16px; font-size: 13px; }
.formula code { font-family: "SF Mono", Menlo, Consolas, monospace; color: #6ee7b7; font-weight: 600; }
.formula .muted { color: #8fb3a6; margin-left: 8px; font-size: 12px; }
.note-c { background: #f7f8fa; border-radius: 10px; padding: 12px 14px; }
.note-c b { font-size: 13px; } .note-c p { color: var(--ink-2); font-size: 12.5px; margin-top: 4px; line-height: 1.6; }

/* 补货本体 */
.onto-g { width: 100%; height: auto; display: block; }
.onto-g text { font-family: var(--font); text-anchor: middle; }
.onto-g .oe { stroke: #dfe3e8; stroke-width: 1.4; transition: stroke .2s; }
.onto-g .oe.on { stroke: #00a870; stroke-width: 2; stroke-dasharray: 5 4; animation: flow 1s linear infinite; }
.onto-g .ol rect { fill: #fff; stroke: #e5e8ec; }
.onto-g .ol text { font-size: 10.5px; fill: #8a929e; }
.onto-g .ol.on rect { stroke: #00a870; } .onto-g .ol.on text { fill: #008a5c; font-weight: 600; }
.onto-g .on-node { cursor: pointer; transition: opacity .2s; }
.onto-g .on-node rect { stroke-width: 1.5; transition: stroke-width .2s; }
.onto-g .on-node text { font-size: 13px; font-weight: 700; }
.onto-g .on-node.dim { opacity: .35; }
.onto-g .on-node.pick rect { stroke-width: 3; filter: drop-shadow(0 4px 10px rgba(0,0,0,.12)); }
.onto-g .on-node:focus { outline: none; } .onto-g .on-node:focus-visible rect { stroke-width: 3; }
.od-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.od-h h3 { font-size: 18px; }
.od-attrs { display: flex; flex-wrap: wrap; gap: 6px; }
.od-attrs span { font-size: 12px; padding: 3px 9px; border-radius: 6px; background: #f3f5f7; color: var(--ink-2); }
.od-list li { font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line-2); line-height: 1.5; }
.od-list li:last-child { border-bottom: 0; }
.od-list b { color: #8b5cf6; margin-right: 4px; }
.od-ex { font-size: 12.5px; background: #0f1d1a; color: #a7f3d0; border-radius: 8px; padding: 10px 12px; font-family: "SF Mono", Menlo, Consolas, monospace; line-height: 1.6; }
code.expr { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 11.5px; color: #8b5cf6; background: #f6f2ff; padding: 2px 6px; border-radius: 4px; }
.trace { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; position: relative; }
.trace .tc { position: relative; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.trace .tc:not(:last-child)::after { content: "›"; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); color: #b8bfc8; font-size: 16px; z-index: 1; }
.trace .tc p { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.trace .tc span { font-size: 11.5px; line-height: 1.45; background: rgba(255,255,255,.75); border-radius: 6px; padding: 4px 6px; color: var(--ink); }
.trace .d { background: #f3f5f7; } .trace .d p { color: var(--ink-2); }
.trace .o { background: #eaf1ff; } .trace .o p { color: #2b6cf6; }
.trace .r { background: #f1ebff; } .trace .r p { color: #8b5cf6; }
.trace .m { background: #fff4e0; } .trace .m p { color: #b45309; }
.trace .a { background: #e6f6f0; } .trace .a p { color: #008a5c; }

/* 扩展模块 */
.mcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mcard { padding: 16px; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.mcard:hover, .mcard:focus-visible { box-shadow: 0 6px 20px -8px rgba(16,24,40,.18); transform: translateY(-1px); outline: none; }
.mc-h { display: flex; align-items: center; justify-content: space-between; }
.mc-h b { font-size: 15px; }
.mcard p { color: var(--ink-2); margin: 6px 0 10px; }
.mc-f { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.mc-s { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--pri-d); }
.rcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rcard { background: #f7f8fa; border-radius: 10px; padding: 14px; cursor: pointer; transition: background .2s; }
.rcard:hover, .rcard:focus-visible { background: #eef6f2; outline: none; }
.rcard b { font-size: 14px; } .rcard p { color: var(--ink-2); font-size: 12.5px; margin: 4px 0 8px; } .rcard span { font-size: 11.5px; color: var(--ink-3); }
.upload { border: 1.5px dashed #b8bfc8; border-radius: 12px; padding: 18px; text-align: center; background: #fafbfc; }
.upload b { display: block; } .upload span { color: var(--ink-3); font-size: 12px; }
.panel-h .r .legend { display: inline-flex; margin-right: 10px; }

/* 响应式：演示以桌面为主，平板与手机可用 */
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, 1fr); } .form { grid-template-columns: repeat(2, 1fr); } .mcards, .rcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; top: 56px; left: 0; bottom: 0; width: var(--sb); z-index: 25; transform: translateX(-100%); transition: transform .25s; box-shadow: 8px 0 30px rgba(0,0,0,.08); }
  .side.show { transform: none; }
  .menu-btn { display: grid; place-items: center; }
  .logo { width: auto; } .logo small, .top .search, .user span { display: none; }
  .g3, .g2, .g21, .g12 { grid-template-columns: 1fr; }
  .main { padding: 16px 14px 90px; }
  .kv { grid-template-columns: repeat(2, 1fr); }
  .guide-hero { grid-template-columns: 1fr; }
  .road { grid-template-columns: repeat(2, 1fr); }
  .layers { grid-template-columns: 1fr; } .layers aside { grid-column: 1; grid-row: auto; }
  .layers > div { grid-template-columns: 80px 1fr; }
  .trace { grid-template-columns: 1fr 1fr; } .trace .tc::after { display: none; }
}
@media (max-width: 600px) {
  .g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi b { font-size: 21px; } .kpi .spark { display: none; }
  .form { grid-template-columns: 1fr; }
  .org select:nth-child(2), .badge-demo { display: none; }
  .chat { right: 10px; left: 10px; width: auto; bottom: 74px; }
  .fab { right: 14px; bottom: 14px; }
  .calc { grid-template-columns: repeat(3, auto); }
  .page-h .act { margin-left: 0; width: 100%; }
}
