/* ==========================================================================
   和泰中心 · 全盘数据智能管理平台 —— 设计系统 v1.0
   色彩：墨松绿 + 银杏金 + 暖纸白（与和泰中心品牌标一致）
   ========================================================================== */
:root {
  --ink: #1B211F;
  --ink-2: #3A423E;
  --muted: #6A726E;
  --muted-2: #9AA19C;
  --line: #E4E0D8;
  --line-soft: #EFECE5;
  --bg: #F4F2ED;
  --surface: #FFFFFF;
  --surface-2: #FAF8F4;
  --brand: #1F4E43;
  --brand-2: #2A6155;
  --brand-3: #14332C;
  --brand-soft: #EAF1EE;
  --gold: #C4881A;
  --gold-2: #D9A02A;
  --gold-3: #F0B429;
  --gold-soft: #FCF3DF;
  --red: #B23C2E;
  --red-soft: #FBEBE8;
  --blue: #3C6E8A;
  --blue-soft: #EAF1F5;
  --green: #2E7052;
  --green-soft: #E9F3EE;
  --purple: #6E5C7C;
  --purple-soft: #F2EEF5;
  --shadow-1: 0 1px 2px rgba(27, 33, 31, .05);
  --shadow-2: 0 1px 3px rgba(27, 33, 31, .07), 0 10px 28px rgba(27, 33, 31, .06);
  --shadow-3: 0 18px 50px rgba(20, 30, 26, .18);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --sidebar: 236px;
  --topbar: 56px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "PingFang SC", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); font-size: 13px; line-height: 1.55; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: #F7E3B4; }
.num, .tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex: 0 0 var(--sidebar); position: fixed; inset: 0 auto 0 0; z-index: 40;
  background: linear-gradient(180deg, #173D34 0%, #1B463C 52%, #14332C 100%);
  color: #C9D8D1; display: flex; flex-direction: column; border-right: 1px solid rgba(255, 255, 255, .06);
}
.brand { padding: 16px 16px 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.brand img { width: 128px; height: auto; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .28)); }
.brand-txt { line-height: 1.3; padding-left: 2px; }
.brand-txt b { display: block; color: #fff; font-size: 13.5px; letter-spacing: .5px; font-weight: 600; }
.brand-txt span { font-size: 10px; color: #8FA9A0; letter-spacing: 1.2px; }
.brand-tag {
  margin: 0 14px 12px; padding: 6px 10px; border-radius: 6px; font-size: 11px; color: #D8C08A;
  background: rgba(240, 180, 41, .1); border: 1px solid rgba(240, 180, 41, .22); display: flex; justify-content: space-between;
}
.nav { flex: 1; overflow-y: auto; padding: 4px 10px 18px; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 3px; }
.nav-group { margin-top: 14px; }
.nav-group > span { display: block; padding: 6px 10px; font-size: 10.5px; color: #7E9A90; letter-spacing: 1.2px; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; margin: 1px 0;
  color: #BFD1C9; font-size: 13px; position: relative; transition: background .16s, color .16s;
}
.nav-item svg { width: 15px; height: 15px; flex: 0 0 15px; opacity: .78; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; }
.nav-item.active::before {
  content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 2px 2px 0; background: var(--gold-3);
}
.nav-item.active svg { opacity: 1; color: var(--gold-3); }
.nav-item .badge-dot { margin-left: auto; }
.sidebar-foot { padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 11px; color: #7E9A90; }
.sidebar-foot b { color: #C9D8D1; font-weight: 600; }

.main { margin-left: var(--sidebar); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar); position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 22px;
}
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.crumbs b { color: var(--ink); font-weight: 600; }
.crumbs i { color: #C9C4B8; font-style: normal; }
.topbar .spacer { flex: 1; }
.top-search {
  display: flex; align-items: center; gap: 7px; width: 210px; height: 32px; padding: 0 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; color: var(--muted-2); font-size: 12.5px;
}
.top-search kbd {
  margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--muted-2);
  border: 1px solid var(--line); background: #fff; border-radius: 3px; padding: 0 4px;
}
.live { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #3F9A70; box-shadow: 0 0 0 3px rgba(63, 154, 112, .16); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.icon-btn {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: 7px; color: var(--ink-2); position: relative;
}
.icon-btn:hover { border-color: #CFC9BB; background: var(--surface-2); }
.icon-btn .dot { position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.who { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #2F5D50, #1F4E43);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: 0 0 30px;
}
.avatar.gold { background: linear-gradient(135deg, #E0AB3B, #C4881A); }
.who-txt { line-height: 1.25; }
.who-txt b { display: block; font-size: 12.5px; }
.who-txt span { font-size: 11px; color: var(--muted); }
.content { padding: 20px 24px 40px; max-width: 1560px; width: 100%; }

/* ---------- 页头 ---------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
.page-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.page-head .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.page-head .hint { font-size: 11.5px; color: var(--muted-2); }

/* ---------- 卡片 / 网格 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.card.pad { padding: 16px 18px; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px 0; }
.card-h h3 { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-h h3::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--gold-2); }
.card-h .sub { font-size: 11.5px; color: var(--muted-2); }
.card-h .acts { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card-b { padding: 12px 18px 16px; }
.card-b.flush { padding: 8px 0 4px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 2fr; }
.g-3-2 { grid-template-columns: 3fr 2fr; }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.mt { margin-top: 14px; }
.mt-s { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.end { margin-left: auto; }

/* ---------- KPI ---------- */
.kpi-band { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); overflow: hidden; }
.kpi { padding: 13px 16px; border-right: 1px solid var(--line-soft); position: relative; cursor: pointer; transition: background .15s; }
.kpi:last-child { border-right: 0; }
.kpi:hover { background: var(--surface-2); }
.kpi .k { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.kpi .v { font-size: 24px; font-weight: 700; letter-spacing: -.6px; margin-top: 3px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .v small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.kpi .d { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.up { color: var(--green); font-weight: 600; }
.down { color: var(--red); font-weight: 600; }
.flat { color: var(--muted); }
.kpi .spark-wrap { display: none; }
.kpi.alert { background: linear-gradient(180deg, #FFF9EC, #fff); }
.kpi.alert .v { color: var(--gold); }
.kpi.bad { background: linear-gradient(180deg, #FDF0ED, #fff); }
.kpi.bad .v { color: var(--red); }

/* 指标行（小卡片式） */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px 14px; }
.stat .d { line-height: 1.45; }
.stat .k { font-size: 11.5px; color: var(--muted); }
.stat .v { font-size: 20px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }

/* ---------- 徽章 / 标签 ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 20px; font-size: 11px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.b-red { color: #9C3327; background: var(--red-soft); }
.b-gold { color: #8A5F0C; background: var(--gold-soft); }
.b-green { color: #226042; background: var(--green-soft); }
.b-blue { color: #2C5875; background: var(--blue-soft); }
.b-gray { color: #5E6662; background: #F0EEE8; }
.b-purple { color: #5A4A66; background: var(--purple-soft); }
.b-brand { color: #fff; background: var(--brand); }
.tag { display: inline-block; padding: 0 6px; line-height: 18px; border-radius: 4px; font-size: 11px; color: var(--ink-2); background: #F2F0EA; border: 1px solid var(--line-soft); }
.tag.warn { color: #8A5F0C; background: #FDF6E7; border-color: #F1E1BC; }
.tag.danger { color: #9C3327; background: #FBEDEA; border-color: #F2D6D0; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; padding: 0 12px;
  border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 12.5px; font-weight: 500; transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: #CFC9BB; background: var(--surface-2); }
.btn svg { width: 13px; height: 13px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #183F37; border-color: #183F37; }
.btn.gold { background: var(--gold-2); border-color: var(--gold-2); color: #fff; }
.btn.gold:hover { background: #C4881A; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger { color: var(--red); border-color: #EBCFC9; background: #FDF6F4; }
.btn.sm { height: 25px; padding: 0 8px; font-size: 11.5px; }
.btn.lg { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 6px 6px 0; }
.btn-group .btn.on { background: var(--brand); color: #fff; border-color: var(--brand); position: relative; z-index: 1; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tbl th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; background: var(--surface-2);
  padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0;
}
table.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tbl tbody tr:hover { background: #FBFAF7; }
table.tbl tbody tr.click { cursor: pointer; }
table.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl .c { text-align: center; }
table.tbl tfoot td { background: var(--surface-2); font-weight: 600; }
table.tbl .name { font-weight: 600; color: var(--ink); }
table.tbl .sub { font-size: 11px; color: var(--muted-2); }
table.tbl.compact td { padding: 7px 10px; }
table.tbl tr.mark td { background: #FFFCF4; }
.celllink { color: var(--brand); border-bottom: 1px dashed #A9C3BA; cursor: pointer; }
.celllink:hover { border-bottom-style: solid; }

/* ---------- 表单控件 ---------- */
.field { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.inp, .sel {
  height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  font-size: 12.5px; outline: none; transition: border .15s, box-shadow .15s; min-width: 0;
}
.inp:focus, .sel:focus { border-color: #9FBDB2; box-shadow: 0 0 0 3px rgba(31, 78, 67, .08); }
.sel { padding-right: 26px; appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236A726E' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.filterbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.switch { width: 34px; height: 19px; border-radius: 20px; background: #D8D4CA; position: relative; transition: background .18s; display: inline-block; cursor: pointer; flex: 0 0 34px; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .18s; }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(15px); }
.checkbox { width: 15px; height: 15px; border-radius: 3px; border: 1.4px solid #C6C1B4; display: inline-flex; align-items: center; justify-content: center; background: #fff; flex: 0 0 15px; }
.checkbox.on { background: var(--brand); border-color: var(--brand); }
.checkbox.on::after { content: ""; width: 7px; height: 4px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg) translateY(-1px); }

/* ---------- Tabs / Segmented ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.tab { padding: 8px 13px; font-size: 12.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; font-weight: 500; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 650; }
.seg { display: inline-flex; background: #F0EEE8; border-radius: 7px; padding: 2px; }
.seg span { padding: 4px 10px; border-radius: 5px; font-size: 11.5px; color: var(--muted); cursor: pointer; font-weight: 500; }
.seg span.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); font-weight: 600; }

/* ---------- 图表容器 ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.ax { font-size: 10.5px; fill: #9AA19C; font-family: var(--font); }
.dn-v { font-size: 19px; font-weight: 700; fill: #1B211F; font-family: var(--font); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 3px; }
.hbar-l b { font-variant-numeric: tabular-nums; color: var(--ink); }
.hbar-t { height: 6px; background: #F1EEE7; border-radius: 3px; overflow: hidden; }
.hbar-t i { display: block; height: 100%; border-radius: 3px; transition: width .6s cubic-bezier(.2, .7, .3, 1); }

/* 进度 */
.meter { height: 6px; border-radius: 3px; background: #F1EEE7; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.meter.thin { height: 4px; }
.metric-line { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.metric-line .lbl { width: 96px; color: var(--ink-2); flex: 0 0 96px; }
.metric-line .meter { flex: 1; }
.metric-line .val { width: 58px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 列表 / 时间线 ---------- */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); align-items: flex-start; }
.list-row:last-child { border-bottom: 0; }
.list-row .t { font-weight: 600; font-size: 12.5px; }
.list-row .s { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.list-row .acts { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.dotmark { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: 0 0 7px; }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -17px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.tl-item.gold::before { border-color: var(--gold-2); }
.tl-item.red::before { border-color: var(--red); }
.tl-item .t { font-size: 12.5px; font-weight: 600; }
.tl-item .s { font-size: 11.5px; color: var(--muted); }

/* ---------- 步骤条 ---------- */
.steps { display: flex; align-items: flex-start; }
.step { flex: 1; text-align: center; position: relative; }
.step::before { content: ""; position: absolute; top: 11px; left: 0; right: 0; height: 2px; background: var(--line); }
.step:first-child::before { left: 50%; }
.step:last-child::before { right: 50%; }
.step .n {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; position: relative; z-index: 1;
}
.step.done .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.done::before { background: var(--brand); }
.step.now .n { border-color: var(--gold-2); color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 160, 42, .14); }
.step.now::before { background: linear-gradient(90deg, var(--brand), var(--line)); }
.step .l { font-size: 11.5px; margin-top: 5px; color: var(--ink-2); font-weight: 500; }
.step .d { font-size: 10.5px; color: var(--muted-2); }

/* ---------- 房态图 ---------- */
.floor-plan { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.room {
  border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 9px 9px; cursor: pointer;
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.room:hover { border-color: #B9CFC7; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.room .no { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 650; }
.room .no span { font-size: 10.5px; font-weight: 500; color: var(--muted-2); }
.room .beds { display: flex; gap: 4px; margin-top: 6px; }
.bed { flex: 1; height: 26px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 600; border: 1px solid transparent; }
.bed.s1 { background: var(--brand-soft); color: #22604A; border-color: #CFE0D9; }
.bed.s0 { background: #FCF6E8; color: #8A5F0C; border-color: #F0E0BC; }
.bed.s2 { background: #F0F3F6; color: #4A6274; border-color: #DCE4EA; }
.bed.s3 { background: #FBEDEA; color: #9C3327; border-color: #F0D6D0; }
.room.s0-room { border-left: 3px solid var(--gold-2); }
.ffloor-tabs { display: flex; gap: 4px; }

/* ---------- 抽屉 / 弹窗 ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20, 28, 24, .34); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 80; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 92vw; background: #fff; z-index: 90;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.3, .8, .3, 1); box-shadow: var(--shadow-3);
  display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer-h { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.drawer-h h3 { font-size: 14.5px; font-weight: 650; }
.drawer-h .x { margin-left: auto; }
.drawer-b { flex: 1; overflow-y: auto; padding: 16px 18px 28px; }
.drawer-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-2); }
.modal {
  position: fixed; z-index: 95; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.98); width: 520px; max-width: 92vw;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-3); opacity: 0; pointer-events: none; transition: all .2s;
}
.modal.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 14px); background: #1B211F; color: #fff;
  padding: 9px 16px; border-radius: 8px; font-size: 12.5px; z-index: 120; opacity: 0; pointer-events: none; transition: all .22s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); display: flex; align-items: center; gap: 8px;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 6px; height: 6px; border-radius: 50%; background: #6FCF97; }

/* ---------- 提示 / 强调块 ---------- */
.note { border-radius: 8px; padding: 10px 12px; font-size: 12px; display: flex; gap: 9px; align-items: flex-start; line-height: 1.5; }
.note-gold { background: var(--gold-soft); color: #6E4D0A; border: 1px solid #F1E1BC; }
.note-red { background: var(--red-soft); color: #8A2F24; border: 1px solid #F2D6D0; }
.note-green { background: var(--green-soft); color: #226042; border: 1px solid #CFE5D9; }
.note-blue { background: var(--blue-soft); color: #2C5875; border: 1px solid #D6E4EC; }
.note b { font-weight: 650; }
.note .acts { margin-left: auto; white-space: nowrap; }
.quote { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); }
.divider { height: 1px; background: var(--line-soft); margin: 12px 0; }
.hr-title { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin: 14px 0 8px; }
.hr-title::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.section-title { font-size: 13px; font-weight: 650; margin: 2px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title .idx { font-family: var(--mono); font-size: 10.5px; color: var(--gold); background: var(--gold-soft); padding: 1px 5px; border-radius: 3px; }

/* ---------- 原型首页 ---------- */
.landing { background: #10231E; color: #E8EFEA; min-height: 100vh; }
.landing-wrap { max-width: 1180px; margin: 0 auto; padding: 48px 28px 40px; min-height: 100vh; display: flex; flex-direction: column; }
.landing-head { display: flex; align-items: center; gap: 16px; }
.landing-head img { width: 158px; height: auto; object-fit: contain; }
.landing-head h1 { font-size: 27px; font-weight: 700; letter-spacing: -.4px; }
.landing-head p { font-size: 13px; color: #93A9A0; letter-spacing: .2px; }
.landing-vision {
  margin: 26px 0 30px; padding: 16px 20px; border-left: 3px solid var(--gold-3);
  background: rgba(255, 255, 255, .04); border-radius: 0 8px 8px 0; font-size: 15px; color: #F4E9CF; letter-spacing: .3px;
}
.landing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.entry {
  display: flex; flex-direction: column; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px; padding: 20px; transition: all .2s;
}
.entry:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); border-color: rgba(240, 180, 41, .5); }
.entry .k { font-size: 11px; letter-spacing: 2px; color: var(--gold-3); }
.entry h3 { font-size: 17px; margin: 6px 0 6px; color: #fff; }
.entry p { font-size: 12px; color: #93A9A0; line-height: 1.65; min-height: 38px; }
.entry .to { font-size: 12px; color: #D8C08A; margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 6px; }
.pagemap { margin-top: 34px; flex: 1 1 auto; }
.landing-vision { margin: 26px 0 30px; }
.pagemap h2 { font-size: 13px; letter-spacing: 1.4px; color: #93A9A0; font-weight: 600; margin-bottom: 12px; }
.pm-col { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.pm-group { min-height: 96px; }
.pm-group h4 { font-size: 12px; color: #fff; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.pm-group h4 i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-3); }
.pm-group a { display: block; font-size: 12px; color: #A9BDB4; padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.pm-group a:hover { color: #fff; }
.pm-group a span { float: right; color: #6E857C; font-size: 10.5px; font-family: var(--mono); }
.landing-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.note-card { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 14px 16px; }
.note-card h5 { font-size: 11px; letter-spacing: 1.4px; color: #8FA9A0; font-weight: 600; margin-bottom: 9px; }
.note-card .rowline { display: flex; justify-content: space-between; font-size: 12px; color: #C9D8D1; padding: 3px 0; border-bottom: 1px dashed rgba(255,255,255,.06); }
.note-card .rowline:last-child { border-bottom: 0; }
.note-card .rowline b { color: #F0DFB8; font-variant-numeric: tabular-nums; }
.note-card ol { padding-left: 16px; list-style: decimal; font-size: 12px; color: #B6C7BF; line-height: 1.85; }
.landing-foot { margin-top: auto; padding-top: 16px; font-size: 11.5px; color: #6E857C; display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; }

/* ---------- 架构页 ---------- */
.doc-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 28px; }
.doc-nav { position: sticky; top: 76px; align-self: start; font-size: 12.5px; }
.doc-nav a { display: block; padding: 5px 10px; color: var(--muted); border-left: 2px solid var(--line); }
.doc-nav a:hover { color: var(--brand); border-left-color: #B9CFC7; }
.doc-nav a.on { color: var(--brand); border-left-color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.doc h2 { font-size: 18px; margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 14px; margin: 20px 0 8px; }
.doc p { font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.doc ul.bullet { list-style: disc; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }
.arch-layer { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: #fff; }
.arch-layer .lh { padding: 9px 14px; font-size: 12.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-soft); }
.arch-layer .lb { padding: 12px 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 5px; font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.chip.g { background: var(--brand-soft); border-color: #CFE0D9; color: #1F4E43; }
.chip.gold { background: var(--gold-soft); border-color: #F1E1BC; color: #7A540B; }
.arch-domain { border-radius: 9px; padding: 11px 12px; border: 1px solid var(--line); background: #fff; border-top: 3px solid var(--brand); }
.arch-domain b { font-size: 12.5px; display: block; }
.arch-domain span { font-size: 11px; color: var(--muted); display: block; margin-top: 3px; line-height: 1.5; }
.topo { display: grid; gap: 10px; }
.topo-row { display: flex; gap: 10px; flex-wrap: wrap; }
.topo-box { flex: 1; min-width: 120px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; font-size: 11.5px; color: var(--ink-2); }
.topo-box b { display: block; font-size: 12.5px; margin-bottom: 3px; }
.code { font-family: var(--mono); font-size: 11.5px; background: #15221E; color: #D6E2DC; border-radius: 8px; padding: 12px 14px; overflow-x: auto; line-height: 1.7; }
.code .c1 { color: #7FA8C9; } .code .c2 { color: #D8C08A; } .code .c3 { color: #8FB89C; }

/* ---------- 其它 ---------- */
.empty { text-align: center; padding: 28px; color: var(--muted-2); font-size: 12.5px; }
.pager { display: flex; align-items: center; gap: 6px; justify-content: flex-end; padding: 10px 16px; font-size: 12px; color: var(--muted); }
.pager b { min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.pager b.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.mono { font-family: var(--mono); font-size: 11.5px; }
.muted { color: var(--muted); }
.f11 { font-size: 11px; } .f12 { font-size: 12px; } .f13 { font-size: 13px; }
.b { font-weight: 600; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.scroll-y { max-height: 320px; overflow-y: auto; }
.scroll-y::-webkit-scrollbar { width: 6px; }
.scroll-y::-webkit-scrollbar-thumb { background: #DCD8CE; border-radius: 3px; }
.pill-count { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; border-radius: 9px; padding: 0 5px; line-height: 15px; }
.flexcol { display: flex; flex-direction: column; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap12 { gap: 12px; }
.w100 { width: 100%; }
@media (max-width: 1400px) {
  .kpi-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-band .kpi:nth-child(3) { border-right: 0; }
  .kpi-band .kpi:nth-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
  .g5, .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  :root { --sidebar: 208px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3-2, .g-2-1, .g-1-2 { grid-template-columns: 1fr; }
  .landing-grid { grid-template-columns: 1fr; }
  .pm-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .main { margin-left: 0; }
  .g2, .g3, .g4, .g5, .g6 { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { display: none; }
}
