/* ============================================================
   设计运营台 · 标准件库 — 第 2 层：组件
   所有页面只允许组合以下标准件，不写一次性样式。
   ============================================================ */

/* ─────────────────────────── 启动 ─────────────────────────── */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--paper); }
.boot-mark { display: flex; gap: 6px; }
.boot-mark span { width: 10px; height: 10px; border-radius: 3px; background: var(--pine-900); animation: pulse-soft 1s var(--ease) infinite; }
.boot-mark span:nth-child(2) { animation-delay: .15s; background: var(--brand); }
.boot-mark span:nth-child(3) { animation-delay: .3s; }

/* ─────────────────────────── 外壳 ─────────────────────────── */
.shell { display: grid; grid-template-columns: var(--rail-w) 1fr; min-height: 100vh; min-height: 100dvh; }

.rail {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--pine-900);
  color: #C9D9CF;
  padding: var(--sp-5) var(--sp-3) var(--sp-4);
  z-index: 40;
}
.rail-brand { display: flex; align-items: center; gap: 10px; padding: 0 var(--sp-3) var(--sp-6); color: #F1F6F2; }
.rail-brand .mark { width: 30px; height: 30px; border-radius: 9px; background: #F1F6F2; color: var(--pine-900); display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: -.04em; }
.rail-brand .name { font-size: var(--fs-14); font-weight: 650; letter-spacing: .01em; }
.rail-brand .sub { font-size: var(--fs-11); color: #7E9A8B; margin-top: 1px; }

.rail-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.rail-group { font-size: var(--fs-11); color: #6E8A7B; padding: var(--sp-4) var(--sp-3) var(--sp-1); }
.rail-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px var(--sp-3); border-radius: var(--r-s);
  color: #B9CCC0; font-size: var(--fs-13); font-weight: 500;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  position: relative;
}
.rail-link svg { width: 17px; height: 17px; stroke-width: 1.7; opacity: .8; }
.rail-link:hover { background: rgba(255,255,255,.06); color: #EEF4F0; text-decoration: none; }
.rail-link.active { background: rgba(255,255,255,.10); color: #FFFFFF; }
.rail-link.active::before {
  content: ""; position: absolute; left: -12px; top: 50%; translate: 0 -50%;
  width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: #8FD3AC;
}
.rail-link .badge-dot { margin-left: auto; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }

.rail-foot { border-top: 1px solid rgba(255,255,255,.08); padding-top: var(--sp-3); margin-top: var(--sp-3); }
.rail-user { display: flex; align-items: center; gap: 10px; padding: var(--sp-2) var(--sp-2); border-radius: var(--r-s); width: 100%; text-align: left; transition: background var(--t-fast); }
.rail-user:hover { background: rgba(255,255,255,.06); }
.rail-user .who { min-width: 0; }
.rail-user .who b { display: block; font-size: var(--fs-13); color: #EAF2EC; font-weight: 600; }
.rail-user .who span { display: block; font-size: var(--fs-11); color: #7E9A8B; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--sp-4);
  padding: 0 var(--sp-8);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid);
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .crumb { font-size: var(--fs-13); color: var(--ink-3); }
.topbar .crumb b { color: var(--ink); font-weight: 600; }
.topbar-spacer { flex: 1; }

.content { padding: var(--sp-6) var(--sp-8) var(--sp-12); width: 100%; max-width: var(--page-max); margin: 0 auto; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.page-head h1 { display: flex; align-items: baseline; gap: var(--sp-3); }
.page-head .period-pill { font-size: var(--fs-13); color: var(--ink-3); font-weight: 500; }
.page-tools { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }

/* ─────────────────────────── 按钮 ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--r-s);
  font-size: var(--fs-13); font-weight: 560;
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; stroke-width: 1.9; }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.btn.loading svg { animation: spin .9s linear infinite; }

.btn-primary { background: var(--pine-900); color: #F4F8F5; }
.btn-primary:hover { background: var(--pine-700); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-4); background: var(--surface-2); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: rgba(11,33,26,.06); color: var(--ink); }
.btn-danger { background: var(--accent); color: #fff; }
.btn-danger:hover { background: #AD3F22; }
.btn-danger-ghost { color: var(--accent); }
.btn-danger-ghost:hover { background: var(--accent-50); }
.btn-sm { height: 30px; padding: 0 10px; font-size: var(--fs-12); border-radius: 8px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--r-s); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; transition: background var(--t-fast); }
.btn-icon:hover { background: rgba(11,33,26,.07); color: var(--ink); }
.btn-icon svg { width: 17px; height: 17px; stroke-width: 1.8; }

/* ─────────────────────────── 面板 ─────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); min-height: 56px; }
.panel-head h2 { display: flex; align-items: center; gap: var(--sp-2); }
.panel-head .hint-count { color: var(--ink-3); font-weight: 500; font-size: var(--fs-12); }
.panel-body { padding: var(--sp-5); }
.panel-body.flush { padding: 0; }
.panel-body.pad-sm { padding: var(--sp-3) var(--sp-4); }
.panel-foot { padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); color: var(--ink-3); font-size: var(--fs-12); }

.grid { display: grid; gap: var(--sp-4); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid.side { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }

/* ─────────────────────────── 指标块 ─────────────────────────── */
.stat { padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat .k { font-size: var(--fs-12); color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: var(--fs-24); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.stat .v small { font-size: var(--fs-13); color: var(--ink-3); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.stat .d { font-size: var(--fs-12); color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.stat .d em { font-style: normal; color: var(--brand); font-weight: 600; }
.stat .d em.bad { color: var(--accent); }

/* ─────────────────────────── 标签 ─────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px; border-radius: var(--r-pill);
  font-size: var(--fs-11); font-weight: 560; line-height: 1;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.green { background: var(--brand-50); color: var(--brand-ink); border-color: transparent; }
.tag.red { background: var(--accent-50); color: #A03B1F; border-color: transparent; }
.tag.amber { background: var(--amber-50); color: #8A5C0A; border-color: transparent; }
.tag.blue { background: var(--info-50); color: #2451B3; border-color: transparent; }
.tag.violet { background: var(--violet-50); color: #5B3FA5; border-color: transparent; }
.tag.grey { background: #EFF1EC; color: var(--ink-3); border-color: transparent; }
.tag.p0 { background: var(--pine-900); color: #F2F7F3; border-color: transparent; font-weight: 650; }
.tag.o { cursor: default; }

/* ─────────────────────────── 表单 ─────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: var(--fs-12); font-weight: 560; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.field .help { font-size: var(--fs-11); color: var(--ink-4); }
.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--line-strong); border-radius: var(--r-s);
  background: var(--surface); color: var(--ink);
  font-size: var(--fs-13); outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.input:disabled { background: var(--surface-2); color: var(--ink-3); }
.textarea { height: auto; min-height: 88px; padding: 9px 11px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E7A6C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; cursor: pointer; }
.input-sm { height: 30px; font-size: var(--fs-12); border-radius: 8px; padding: 0 9px; }

.searchbox { position: relative; display: flex; align-items: center; }
.searchbox svg { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--ink-4); pointer-events: none; stroke-width: 2; }
.searchbox .input { padding-left: 32px; }

.switch { position: relative; width: 38px; height: 22px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--line-strong); transition: background var(--t-mid) var(--ease); }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform var(--t-mid) var(--ease); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 2px; }

.segmented { display: inline-flex; background: #ECEEE7; border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button {
  height: 28px; padding: 0 12px; border-radius: 7px; font-size: var(--fs-12); font-weight: 550; color: var(--ink-3);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(11,33,26,.12); }
.segmented button:hover:not(.active) { color: var(--ink); }

.filter-bar { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.filter-bar .select, .filter-bar .searchbox { height: 32px; }
.filter-bar .select { width: auto; min-width: 96px; height: 32px; font-size: var(--fs-12); }
.filter-bar .searchbox .input { height: 32px; font-size: var(--fs-12); }

/* ─────────────────────────── 表格 ─────────────────────────── */
.table-wrap { overflow: auto; border-radius: 0; }
table.data { font-size: var(--fs-13); }
table.data thead th {
  position: sticky; top: 0; z-index: 2;
  text-align: left; font-size: var(--fs-11); font-weight: 600; color: var(--ink-3);
  background: var(--surface-2);
  padding: 9px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap; user-select: none;
}
table.data thead th.sortable { cursor: pointer; }
table.data thead th.sortable:hover { color: var(--ink); }
table.data tbody td { padding: 10px 12px; border-bottom: 1px solid #EDEFE9; vertical-align: middle; }
table.data tbody tr { transition: background var(--t-fast); }
table.data tbody tr:hover { background: #F7F9F4; }
table.data tbody tr.clickable { cursor: pointer; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .cell-sub { display: block; font-size: var(--fs-11); color: var(--ink-4); margin-top: 1px; }
table.data .subject { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: var(--fs-11); font-weight: 650; flex: none; letter-spacing: 0; }
.avatar.lg { width: 34px; height: 34px; font-size: var(--fs-12); }
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid var(--surface); margin-left: -7px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.pager { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-12); color: var(--ink-3); }
.pager b { color: var(--ink); font-weight: 600; }

/* ─────────────────────────── 空状态 / 骨架 ─────────────────────────── */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); padding: var(--sp-12) var(--sp-6); text-align: center; color: var(--ink-3); }
.empty .glyph { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.empty .glyph svg { width: 24px; height: 24px; stroke-width: 1.6; }
.empty b { color: var(--ink); font-size: var(--fs-14); font-weight: 600; }
.empty p { max-width: 360px; font-size: var(--fs-13); }

.skeleton { border-radius: 8px; background: linear-gradient(90deg, #ECEEE7 25%, #F4F5F1 40%, #ECEEE7 55%); background-size: 800px 100%; animation: shimmer 1.4s linear infinite; }
.sk-row { height: 40px; margin: 0 16px; }
.sk-block { height: 120px; }

/* ─────────────────────────── 提示气泡 ─────────────────────────── */
[data-hint] { position: relative; }
[data-hint]:hover::after {
  content: attr(data-hint);
  position: absolute; left: 50%; bottom: calc(100% + 7px); translate: -50% 0;
  background: var(--pine-950); color: #EAF2EC;
  font-size: var(--fs-11); font-weight: 450; line-height: 1.45; letter-spacing: 0;
  padding: 5px 9px; border-radius: 7px; white-space: nowrap; max-width: 280px;
  z-index: 80; pointer-events: none; box-shadow: var(--shadow-menu);
  animation: fade-in 120ms ease both;
}

/* ─────────────────────────── 浮层 : 菜单 ─────────────────────────── */
.menu {
  position: fixed; z-index: 90; min-width: 180px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-menu); padding: 5px;
  animation: scale-in var(--t-mid) var(--ease-out) both; transform-origin: top left;
}
.menu-item { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: var(--fs-13); color: var(--ink-2); }
.menu-item:hover { background: var(--surface-2); color: var(--ink); }
.menu-item svg { width: 15px; height: 15px; stroke-width: 1.8; color: var(--ink-3); }
.menu-item.danger { color: var(--accent); }
.menu-item.danger svg { color: var(--accent); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 6px; }

/* ─────────────────────────── 浮层 : 弹窗 / 抽屉 ─────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(11,33,26,.38); backdrop-filter: blur(3px); animation: fade-in var(--t-mid) ease both; display: flex; }
.overlay.center { align-items: center; justify-content: center; padding: var(--sp-6); }
.modal {
  width: min(560px, 100%); max-height: calc(100dvh - 48px); overflow: auto;
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-pop);
  animation: scale-in var(--t-slow) var(--ease-out) both;
}
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-5) var(--sp-6) var(--sp-2); }
.modal-head h2 { font-size: var(--fs-16); }
.modal-body { padding: var(--sp-3) var(--sp-6) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }
.modal-foot { display: flex; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); border-radius: 0 0 var(--r-l) var(--r-l); }

.overlay.right { justify-content: flex-end; }
.drawer {
  width: min(480px, 100vw); height: 100%;
  background: var(--surface); box-shadow: var(--shadow-pop);
  animation: slide-right var(--t-slow) var(--ease-out) both;
  display: flex; flex-direction: column;
}
.drawer.wide { width: min(680px, 100vw); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-5) var(--sp-5) var(--sp-3); border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-5); }
.drawer-foot { border-top: 1px solid var(--line); padding: var(--sp-3) var(--sp-5); display: flex; gap: var(--sp-2); justify-content: flex-end; }

/* ─────────────────────────── 反馈 : 轻提示 ─────────────────────────── */
.toasts { position: fixed; top: 18px; left: 50%; translate: -50% 0; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px;
  min-height: 38px; padding: 8px 16px 8px 13px; border-radius: var(--r-pill);
  background: var(--pine-950); color: #EDF4EF; font-size: var(--fs-13); font-weight: 500;
  box-shadow: var(--shadow-toast); pointer-events: auto;
  animation: toast-in var(--t-slow) var(--ease-out) both;
}
.toast.leaving { animation: fade-in var(--t-mid) ease reverse both; }
.toast svg { width: 15px; height: 15px; stroke-width: 2.2; flex: none; }
.toast.ok svg { color: #8FD3AC; }
.toast.err { background: #4A1A0E; }
.toast.err svg { color: #F09A7E; }

/* ─────────────────────────── 分区标题 ─────────────────────────── */
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin: var(--sp-8) 0 var(--sp-3); }
.section-title h2 { font-size: var(--fs-14); font-weight: 620; }
.section-title .more { font-size: var(--fs-12); color: var(--ink-3); }

/* ─────────────────────────── 图表容器 ─────────────────────────── */
.chart-box { position: relative; width: 100%; }
.chart-box svg { width: 100%; height: auto; overflow: visible; }
.legend { display: flex; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-12); color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }

/* 横向条 */
.bar-row { display: grid; grid-template-columns: 64px 1fr 52px; align-items: center; gap: var(--sp-3); padding: 7px 0; font-size: var(--fs-13); }
.bar-row .track { height: 8px; border-radius: 4px; background: #EEF0E9; overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 4px; background: var(--brand); transform-origin: left; animation: bar-grow 700ms var(--ease-out) both; }
.bar-row .val { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: var(--fs-12); }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ─────────────────────────── 键值行 ─────────────────────────── */
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px var(--sp-3); font-size: var(--fs-13); align-items: baseline; }
.kv dt { color: var(--ink-3); font-size: var(--fs-12); }
.kv dd { margin: 0; color: var(--ink); min-width: 0; }

/* 分隔列表 */
.list-plain { display: flex; flex-direction: column; }
.list-plain > * { padding: 11px var(--sp-5); border-bottom: 1px solid #EDEFE9; display: flex; align-items: center; gap: var(--sp-3); }
.list-plain > *:last-child { border-bottom: 0; }

/* ─────────────────────────── 命令面板 ─────────────────────────── */
.cmdk { width: min(580px, 100%); margin-top: 12vh; align-self: flex-start; background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-pop); overflow: hidden; animation: scale-in var(--t-mid) var(--ease-out) both; }
.cmdk input { width: 100%; height: 52px; border: 0; outline: 0; padding: 0 var(--sp-5); font-size: var(--fs-14); background: transparent; border-bottom: 1px solid var(--line); }
.cmdk-results { max-height: 46vh; overflow: auto; padding: 6px; }
.cmdk-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: var(--fs-13); color: var(--ink-2); cursor: pointer; }
.cmdk-item svg { width: 15px; height: 15px; color: var(--ink-3); stroke-width: 1.8; }
.cmdk-item .tail { margin-left: auto; font-size: var(--fs-11); color: var(--ink-4); }
.cmdk-item.active { background: var(--brand-50); color: var(--brand-ink); }
.cmdk-item.active svg { color: var(--brand); }

/* ─────────────────────────── 登录 ─────────────────────────── */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper); }
.gate-stage { background: var(--pine-900); color: #E8F2EC; padding: var(--sp-10); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.gate-stage::after {
  content: ""; position: absolute; width: 130%; aspect-ratio: 1; left: -35%; bottom: -78%;
  border-radius: 50%; border: 1px solid rgba(180,220,198,.14);
  box-shadow: 0 0 0 80px rgba(180,220,198,.04), 0 0 0 160px rgba(180,220,198,.03), 0 0 0 240px rgba(180,220,198,.02);
}
.gate-stage .brandline { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: var(--fs-14); }
.gate-stage .brandline .mark { width: 30px; height: 30px; border-radius: 9px; background: #E8F2EC; color: var(--pine-900); display: grid; place-items: center; font-weight: 700; }
.gate-stage .claim { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; max-width: 13em; }
.gate-stage .claim em { font-style: normal; color: #8FD3AC; }
.gate-stage .facts { display: flex; gap: var(--sp-8); position: relative; z-index: 1; }
.gate-stage .facts b { display: block; font-size: var(--fs-20); font-weight: 650; letter-spacing: -.02em; }
.gate-stage .facts span { font-size: var(--fs-12); color: #7E9A8B; }
.gate-form { display: flex; flex-direction: column; justify-content: center; padding: var(--sp-10); }
.gate-form form { width: min(360px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-4); }
.gate-form h1 { font-size: var(--fs-24); }
.gate-form .sub { color: var(--ink-3); font-size: var(--fs-13); margin-top: -6px; }

.menu-toggle { display: none; }

/* ─────────────────────────── 悬浮动作条 ─────────────────────────── */
.fab-hint { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; gap: 8px; }

/* ─────────────────────────── 响应式 ─────────────────────────── */
@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid.side { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --rail-w: 0px; }
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: fixed; inset: 0 auto 0 0; width: 264px; translate: -100% 0;
    transition: translate var(--t-slow) var(--ease-out); z-index: 120;
    box-shadow: var(--shadow-pop);
  }
  .rail.open { translate: 0 0; }
  .menu-toggle { display: grid; }
  .rail-scrim { position: fixed; inset: 0; background: rgba(11,33,26,.4); z-index: 110; animation: fade-in var(--t-mid) both; }
  .topbar { padding: 0 var(--sp-4); }
  .content { padding: var(--sp-4) var(--sp-4) var(--sp-10); }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gate { grid-template-columns: 1fr; }
  .gate-stage { display: none; }
  .page-head h1 { font-size: var(--fs-20); }
  .drawer { width: 100vw; }
  .modal { width: 100%; max-height: calc(100dvh - 32px); }
  .overlay.center { padding: var(--sp-3); }
}
@media (max-width: 520px) {
  .grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .stat .v { font-size: var(--fs-20); }
  .btn .btn-label { display: none; }
  .page-tools { width: 100%; }
  .page-tools > * { flex: 1; }
}
