/* 智衡 RiskLens 设计系统：深色数据实验室主题 */
:root {
  --bg: #070b16; --bg2: #0b1222; --panel: rgba(17, 25, 45, .62); --panel-solid: #111a2e; --line: rgba(148, 163, 184, .12);
  --line2: rgba(148, 163, 184, .22); --text: #e6edf7; --sub: #94a3b8; --mute: #64748b;
  --c1: #22d3ee; --c2: #8b5cf6; --c3: #f472b6; --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --g: linear-gradient(135deg, var(--c1), var(--c2)); --g2: linear-gradient(135deg, #22d3ee33, #8b5cf633);
  --lv1: #34d399; --lv2: #a3e635; --lv3: #fbbf24; --lv4: #fb923c; --lv5: #f87171;
  --r: 14px; --shadow: 0 10px 40px -12px rgba(0, 0, 0, .55); --blur: blur(18px);
  --ease: cubic-bezier(.22, 1, .36, 1); --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
[data-theme="light"] {
  --bg: #f3f6fb; --bg2: #e9eef7; --panel: rgba(255, 255, 255, .78); --panel-solid: #fff; --line: rgba(15, 23, 42, .08);
  --line2: rgba(15, 23, 42, .16); --text: #0f172a; --sub: #475569; --mute: #94a3b8; --shadow: 0 10px 30px -14px rgba(15, 23, 42, .25);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text);
  background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background: radial-gradient(40% 35% at 15% 10%, #22d3ee22, transparent 70%), radial-gradient(35% 40% at 85% 20%, #8b5cf626, transparent 70%),
    radial-gradient(40% 40% at 60% 100%, #f472b614, transparent 70%); animation: aurora 26s ease-in-out infinite alternate; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
a { color: var(--c1); text-decoration: none; cursor: pointer; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mono { font-family: var(--mono); }
.grad { background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--sub); font-size: 12px; } .tiny { font-size: 11px; color: var(--mute); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 12px; } .grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; }
@media (max-width: 1200px) { .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } .span2, .span3 { grid-column: auto; } }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* ---------- 外壳：侧栏 + 顶栏 ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; transition: grid-template-columns .35s var(--ease); }
.shell.collapsed { grid-template-columns: 72px 1fr; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 18, 34, .9), rgba(7, 11, 22, .75)); backdrop-filter: var(--blur); }
[data-theme="light"] .side { background: rgba(255, 255, 255, .7); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; background: var(--g); display: grid; place-items: center;
  box-shadow: 0 0 24px #22d3ee55; flex-shrink: 0; animation: breathe 4s ease-in-out infinite; }
.brand .logo svg { width: 20px; height: 20px; color: #fff; }
.brand b { font-size: 16px; letter-spacing: .5px; } .brand small { display: block; color: var(--mute); font-size: 10px; letter-spacing: 2px; }
.nav-grp { margin: 14px 10px 6px; font-size: 11px; color: var(--mute); letter-spacing: 1.5px; white-space: nowrap; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 2px 0; border-radius: 10px;
  color: var(--sub); white-space: nowrap; transition: background .25s, color .25s, transform .25s var(--ease); }
.nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav a:hover { color: var(--text); background: rgba(148, 163, 184, .08); transform: translateX(3px); }
.nav a.on { color: var(--text); background: linear-gradient(90deg, #22d3ee1f, #8b5cf614); }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--g);
  box-shadow: 0 0 12px var(--c1); }
.nav a .tag { margin-left: auto; font-size: 10px; padding: 0 6px; border-radius: 6px; background: var(--g2); color: var(--c1); }
.shell.collapsed .nav a span, .shell.collapsed .nav-grp, .shell.collapsed .brand div, .shell.collapsed .nav a .tag { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 26px;
  border-bottom: 1px solid var(--line); background: rgba(7, 11, 22, .55); backdrop-filter: var(--blur); }
[data-theme="light"] .top { background: rgba(243, 246, 251, .7); }
.crumb { color: var(--sub); } .crumb b { color: var(--text); font-weight: 600; }
.search-pill { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 7px 12px; min-width: 260px; border-radius: 10px;
  border: 1px solid var(--line2); color: var(--mute); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.search-pill:hover { border-color: var(--c1); box-shadow: 0 0 0 4px #22d3ee14; }
.search-pill kbd, kbd { margin-left: auto; font: 11px var(--mono); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line2); color: var(--sub); }
.icon-btn { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--sub);
  border: 1px solid transparent; cursor: pointer; background: none; transition: all .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line2); background: rgba(148, 163, 184, .06); }
.icon-btn svg { width: 18px; height: 18px; }
.dot-badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px;
  line-height: 16px; text-align: center; color: #fff; background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--g); display: grid; place-items: center; font-weight: 700; color: #fff; }
.view { padding: 26px; max-width: 1560px; width: 100%; margin: 0 auto; }

/* ---------- 页头、卡片、KPI ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: .5px; }
.page-head p { margin: 4px 0 0; color: var(--sub); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 2px; color: var(--c1); text-transform: uppercase; margin-bottom: 6px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--g); }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  backdrop-filter: var(--blur); box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.card.hover:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: 0 18px 50px -18px #22d3ee44; }
.card.glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--g); opacity: .55;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card h3 { margin: 0 0 14px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card h3 .sub { margin-left: auto; font-weight: 400; color: var(--mute); font-size: 12px; }
.card h3 svg { width: 16px; height: 16px; color: var(--c1); }
.kpi { position: relative; overflow: hidden; }
.kpi .l { color: var(--sub); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 28px; font-weight: 700; margin-top: 6px; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 13px; color: var(--sub); font-weight: 500; margin-left: 4px; }
.kpi .d { font-size: 12px; margin-top: 2px; color: var(--mute); }
.kpi .spark { position: absolute; right: 10px; bottom: 8px; opacity: .9; }
.kpi::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, #22d3ee22, transparent 70%); }

/* ---------- 按钮与表单 ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--line2); background: rgba(148, 163, 184, .06); color: var(--text); font: inherit; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s, border-color .2s, background .2s; white-space: nowrap; }
.btn:hover { border-color: var(--c1); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { border: 0; background: var(--g); color: #fff; box-shadow: 0 8px 24px -8px #8b5cf6aa; }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn.primary:hover::after { transform: translateX(120%); }
.btn.primary:hover { box-shadow: 0 12px 30px -8px #22d3eeaa; }
.btn.danger { border-color: #f8717155; color: var(--bad); } .btn.danger:hover { background: #f8717118; border-color: var(--bad); }
.btn.ghost { background: none; border-color: transparent; color: var(--sub); } .btn.ghost:hover { color: var(--text); border-color: var(--line2); }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 8px; } .btn.lg { padding: 12px 24px; font-size: 15px; border-radius: 12px; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .35); animation: ripple .6s linear; pointer-events: none; }
input, select, textarea { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(2, 6, 23, .35);
  color: var(--text); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea { background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--c1); box-shadow: 0 0 0 4px #22d3ee1c; }
textarea { min-height: 90px; resize: vertical; }
select option { background: var(--panel-solid); }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--sub); }
input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; padding: 0; border: 0; border-radius: 6px; background:
  linear-gradient(90deg, var(--c1) 0%, var(--c2) var(--p, 50%), var(--line2) var(--p, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 3px solid var(--c2); box-shadow: 0 0 0 4px #8b5cf633, 0 0 16px var(--c2); cursor: grab; transition: transform .15s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); cursor: grabbing; }
input[type=checkbox] { width: auto; accent-color: var(--c2); }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 22px; background: var(--line2); transition: .3s; cursor: pointer; }
.switch i::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .3s var(--ease); }
.switch input:checked + i { background: var(--g); box-shadow: 0 0 14px #8b5cf688; }
.switch input:checked + i::before { transform: translateX(18px); }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(2, 6, 23, .3); }
.seg button { padding: 6px 12px; border: 0; border-radius: 8px; background: none; color: var(--sub); font: inherit; cursor: pointer; transition: all .25s var(--ease); }
.seg button.on { background: var(--g); color: #fff; box-shadow: 0 4px 14px -4px #8b5cf6; }

/* ---------- 标签页、步骤条、流水线 ---------- */
.tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { padding: 10px 14px; border: 0; background: none; color: var(--sub); font: inherit; cursor: pointer; white-space: nowrap; transition: color .2s; }
.tabs button:hover, .tabs button.on { color: var(--text); }
.tabs .ink { position: absolute; bottom: -1px; height: 2px; border-radius: 2px; background: var(--g); box-shadow: 0 0 10px var(--c1);
  transition: left .35s var(--ease), width .35s var(--ease); }
.steps { display: flex; gap: 0; margin-bottom: 22px; }
.steps .s { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--mute); position: relative; cursor: pointer; }
.steps .s:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin: 0 12px; border-radius: 2px; background: var(--line2); transition: background .5s; }
.steps .s .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2);
  font-weight: 700; transition: all .4s var(--ease); flex-shrink: 0; }
.steps .s.on { color: var(--text); } .steps .s.on .n { background: var(--g); border-color: transparent; color: #fff; box-shadow: 0 0 0 6px #8b5cf622, 0 0 20px #8b5cf688; }
.steps .s.done .n { border-color: var(--ok); color: var(--ok); } .steps .s.done:not(:last-child)::after { background: linear-gradient(90deg, var(--ok), var(--c1)); }
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pipe .st { position: relative; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(2, 6, 23, .3);
  opacity: .35; transform: translateY(6px) scale(.98); transition: all .45s var(--ease); }
.pipe .st.on { opacity: 1; transform: none; border-color: var(--line2); }
.pipe .st.run { border-color: var(--c1); box-shadow: 0 0 0 1px var(--c1), 0 0 24px #22d3ee44; }
.pipe .st.run::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--g);
  animation: load 0.6s linear infinite; transform-origin: left; }
.pipe .st b { font: 600 11px var(--mono); color: var(--c1); } .pipe .st .nm { font-weight: 600; margin: 2px 0; font-size: 13px; }
.pipe .st .ms { position: absolute; top: 10px; right: 12px; font: 11px var(--mono); color: var(--ok); }
.pipe .st .dt { font-size: 11px; color: var(--mute); min-height: 16px; }

/* ---------- 徽标、表格、列表 ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 20px; font-size: 12px; line-height: 20px;
  border: 1px solid var(--line2); color: var(--sub); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.lv-低, .b-ok { color: var(--lv1); border-color: #34d39955; background: #34d39914; } .lv-较低 { color: var(--lv2); border-color: #a3e63555; background: #a3e63512; }
.lv-中, .b-warn { color: var(--lv3); border-color: #fbbf2455; background: #fbbf2412; } .lv-较高 { color: var(--lv4); border-color: #fb923c55; background: #fb923c14; }
.lv-高, .b-bad { color: var(--lv5); border-color: #f8717155; background: #f8717114; } .b-info { color: var(--c1); border-color: #22d3ee55; background: #22d3ee12; }
.b-violet { color: #c4b5fd; border-color: #8b5cf655; background: #8b5cf614; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { position: sticky; top: 0; text-align: left; font-weight: 500; font-size: 12px; color: var(--mute); padding: 10px 12px;
  border-bottom: 1px solid var(--line); background: var(--panel-solid); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr { transition: background .2s; } .tbl tbody tr:hover { background: rgba(34, 211, 238, .04); }
.tbl-wrap { overflow: auto; max-height: 620px; border-radius: 10px; }
.list .it { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid transparent;
  transition: background .25s, border-color .25s, transform .25s var(--ease); cursor: pointer; }
.list .it:hover { background: rgba(148, 163, 184, .06); border-color: var(--line); transform: translateX(3px); }
.list .it .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--g2); color: var(--c1); }
.list .it .ic svg { width: 18px; height: 18px; }
.empty { padding: 36px; text-align: center; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border-radius: 8px; font-size: 12px; background: rgba(148, 163, 184, .08); border: 1px solid var(--line); color: var(--sub); }
.chip.hl { color: var(--c1); border-color: #22d3ee44; background: #22d3ee10; }

/* ---------- 弹窗、命令面板、通知、提示 ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding-top: 8vh;
  background: rgba(2, 6, 23, .6); backdrop-filter: blur(6px); animation: fade .25s ease; }
.modal-box { width: min(680px, 94vw); max-height: 84vh; overflow-y: auto; border-radius: 18px; padding: 22px; background: var(--panel-solid);
  border: 1px solid var(--line2); box-shadow: 0 30px 80px -20px #000; animation: pop .35s var(--ease); }
.modal-box h3 { margin: 0 0 16px; font-size: 17px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .form .full { grid-column: 1 / -1; }
.form .actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.err { color: var(--bad); font-size: 12px; min-height: 1em; }
.palette { width: min(620px, 94vw); padding: 0; overflow: hidden; }
.palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 20px; font-size: 16px; background: none; box-shadow: none !important; }
.palette .res { max-height: 420px; overflow-y: auto; padding: 8px; }
.palette .res .it { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.palette .res .it.on, .palette .res .it:hover { background: linear-gradient(90deg, #22d3ee1a, #8b5cf614); }
.palette .res .grp { padding: 8px 12px 4px; font-size: 11px; color: var(--mute); letter-spacing: 1px; }
.toasts { position: fixed; top: 18px; right: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 260px; max-width: 420px; padding: 12px 16px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line2);
  box-shadow: var(--shadow); display: flex; gap: 10px; align-items: flex-start; animation: slidein .4s var(--ease); }
.toast.out { animation: slideout .35s var(--ease) forwards; }
.toast i { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--ok); box-shadow: 0 0 10px var(--ok); flex-shrink: 0; }
.toast.error i { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.tip { position: fixed; z-index: 70; pointer-events: none; padding: 7px 10px; border-radius: 8px; font-size: 12px; background: #020617ee;
  color: #e2e8f0; border: 1px solid var(--line2); box-shadow: var(--shadow); max-width: 320px; transition: opacity .12s; white-space: pre-line; }

/* ---------- 登录与首页主视觉 ---------- */
.login { position: fixed; inset: 0; display: grid; grid-template-columns: 1.2fr 1fr; }
.login canvas, .hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.login .art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 8vw; }
.login .art h1 { position: relative; font-size: 44px; line-height: 1.15; margin: 0 0 18px; }
.login .art p { position: relative; color: var(--sub); max-width: 520px; font-size: 15px; }
.login .art .feats { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; max-width: 560px; }
.login .art .feats div { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(2, 6, 23, .35); font-size: 13px; color: var(--sub); }
.login .art .feats b { display: block; color: var(--text); font-size: 13px; }
.login .box { display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); background: rgba(7, 11, 22, .6); backdrop-filter: var(--blur); }
.login form { width: min(360px, 86vw); display: flex; flex-direction: column; gap: 14px; animation: rise .8s var(--ease); }
.login form h2 { margin: 0; font-size: 22px; }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login .art { display: none; } }
.hero { position: relative; overflow: hidden; padding: 34px 32px; min-height: 230px; }
.hero > *:not(canvas) { position: relative; }
.hero h1 { margin: 0; font-size: 32px; line-height: 1.25; } .hero .typed { color: var(--sub); font-size: 15px; min-height: 24px; margin: 10px 0 22px; }
.hero .typed::after { content: "▌"; color: var(--c1); animation: blink 1s steps(1) infinite; margin-left: 2px; }
.algo { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.algo .a { flex: 0 0 210px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(2, 6, 23, .3); transition: all .3s var(--ease); cursor: pointer; }
.algo .a:hover { border-color: var(--c2); transform: translateY(-4px); box-shadow: 0 16px 30px -16px #8b5cf6; }
.algo .a b { font: 600 11px var(--mono); color: var(--c2); } .algo .a .t { font-weight: 600; margin: 4px 0; } .algo .a .d { font-size: 12px; color: var(--mute); }
.tool { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.tool .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--g); color: #fff; flex-shrink: 0; box-shadow: 0 10px 24px -10px var(--c2); }
.tool .ic svg { width: 22px; height: 22px; } .tool b { display: block; margin-bottom: 2px; } .tool span { font-size: 12px; color: var(--mute); }

/* ---------- 图表 ---------- */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { fill: var(--sub); font-size: 11px; font-family: inherit; }
.chart .axis { stroke: var(--line2); } .chart .grid-l { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); animation: draw 1.2s var(--ease) forwards; }
.chart .grow-y { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); animation: growy .8s var(--ease) forwards; }
.chart .grow-x { transform-box: fill-box; transform-origin: left; transform: scaleX(0); animation: growx .8s var(--ease) forwards; }
.chart .grow-c { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: growc .9s var(--ease) forwards; }
.chart .fade { opacity: 0; animation: fade .6s ease forwards; }
.chart .hot { cursor: pointer; transition: opacity .2s; } .chart .hot:hover { opacity: .75; }
.bars .b { display: grid; grid-template-columns: 130px 1fr 72px; gap: 10px; align-items: center; margin: 7px 0; font-size: 12px; }
.bars .b .n { color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .b .t { height: 8px; border-radius: 8px; background: rgba(148, 163, 184, .1); overflow: hidden; }
.bars .b .t i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--g); transition: width 1s var(--ease); box-shadow: 0 0 10px #22d3ee55; }
.bars .b .v { text-align: right; font-variant-numeric: tabular-nums; }
.ring { position: relative; display: inline-grid; place-items: center; }
.ring .c { position: absolute; text-align: center; line-height: 1.1; } .ring .c b { font-size: 18px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--sub); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.heat { display: grid; grid-template-columns: 40px repeat(3, 1fr); gap: 8px; }
.heat .h { text-align: center; color: var(--mute); font-size: 12px; align-self: center; }
.heat .c { padding: 14px 10px; border-radius: 12px; min-height: 92px; border: 1px solid var(--line); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.heat .c:hover { transform: scale(1.03); box-shadow: 0 10px 30px -10px #8b5cf6; }
.heat .c b { font-size: 22px; } .heat .c div { font-size: 11px; color: var(--sub); margin-top: 4px; }
.rack { display: flex; flex-direction: column-reverse; gap: 3px; padding: 10px; border-radius: 10px; border: 2px solid var(--line2); background: #020617aa; width: 210px; }
.rack .u { height: 16px; border-radius: 3px; font: 10px/16px var(--mono); padding: 0 6px; color: #e2e8f0; overflow: hidden; white-space: nowrap;
  opacity: 0; transform: translateX(-12px); animation: slotin .5s var(--ease) forwards; }
.rack .u.e { background: rgba(148, 163, 184, .06); opacity: 1; transform: none; animation: none; }
.md h1 { font-size: 20px; } .md h2 { font-size: 16px; margin-top: 22px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.md table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 13px; } .md td, .md th { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.md th { background: rgba(148, 163, 184, .06); } .md li { margin: 3px 0; }
.chat .q { margin-left: auto; max-width: 78%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--g); color: #fff; }
.chat .a { max-width: 92%; padding: 14px; border-radius: 14px 14px 14px 4px; background: rgba(2, 6, 23, .35); border: 1px solid var(--line); }
mark { background: #22d3ee33; color: var(--text); border-radius: 3px; padding: 0 2px; }

/* ---------- 动效 ---------- */
.stagger > * { opacity: 0; animation: rise .6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 55ms); }
.page-enter { animation: rise .45s var(--ease); }
.skel { border-radius: 10px; background: linear-gradient(90deg, rgba(148, 163, 184, .06) 25%, rgba(148, 163, 184, .16) 37%, rgba(148, 163, 184, .06) 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite; min-height: 16px; }
.pulse { animation: pulse 2s ease-in-out infinite; }
.spin { animation: spin 1s linear infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slideout { to { opacity: 0; transform: translateX(40px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drawto { to { stroke-dashoffset: var(--to); } }
@keyframes growy { to { transform: scaleY(1); } } @keyframes growx { to { transform: scaleX(1); } } @keyframes growc { to { transform: scale(1); } }
@keyframes slotin { to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes load { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 18px #22d3ee44; } 50% { box-shadow: 0 0 32px #8b5cf688; } }
@keyframes aurora { 0% { transform: translate(0, 0) rotate(0); } 100% { transform: translate(-4%, 3%) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
a.card, a.it, .algo a.a, .list a.it, a.tool { color: inherit; }
.algo .a .t, .list a.it b { color: var(--text); }
/* 图标默认尺寸（各容器内的专门尺寸选择器优先级更高） */
.ico { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -3px; }
.empty .ico { width: 28px; height: 28px; opacity: .6; }
/* 锚定式问卷选项 */
.qopts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.qopt { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px; border: 1px solid var(--line2); cursor: pointer;
  font-size: 12px; color: var(--sub); transition: all .25s var(--ease); min-height: 72px; }
.qopt b { font-size: 16px; color: var(--text); }
.qopt:hover { border-color: var(--c1); transform: translateY(-2px); }
.qopt.on { border-color: transparent; background: var(--g2); color: var(--text); box-shadow: 0 0 0 1px var(--c2), 0 8px 20px -10px var(--c2); }
@media (max-width: 860px) { .qopts { grid-template-columns: 1fr; } }
.decision { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 16px; }
.decision .big { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.gate { display: flex; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; }
.gate.hit { border-color: #f8717166; background: #f8717110; }
.gate .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.gantt { position: relative; }
.gantt .row2 { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; margin: 8px 0; }
.gantt .bar2 { height: 26px; border-radius: 8px; background: var(--g); color: #fff; font-size: 12px; line-height: 26px; padding: 0 10px; white-space: nowrap;
  overflow: hidden; transform-origin: left; animation: growx .8s var(--ease) both; }
@media print { .side, .top, .no-print { display: none !important; } .shell { display: block; } body { background: #fff; color: #000; } }
