/* ===========================================================
   管理后台布局与组件
   =========================================================== */

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

.sidebar {
  background: var(--grad-nav);
  color: var(--nav-ink);
  display: flex;
  flex-direction: column;
  padding: 18px 12px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(127, 211, 188, 0.07);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--line-dark);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad-brand);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: var(--shadow-brand);
}

.brand-text { line-height: 1.25; min-width: 0; }
.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 11px;
  color: var(--nav-ink-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.club-chip {
  margin: 14px 4px 6px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--nav-active);
  border: 1px solid var(--line-dark);
}
.club-chip-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.club-chip-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.club-chip-label { font-size: 11px; color: var(--nav-ink-dim); letter-spacing: 0.04em; }
.club-chip-name { font-size: 13px; font-weight: 600; margin-top: 2px; }
.club-chip-meta { font-size: 11px; color: var(--nav-ink-dim); margin-top: 4px; }

/* 版本徽章（侧栏深色底） */
.plan-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; flex-shrink: 0;
  transition: transform 0.15s var(--ease), filter 0.15s var(--ease);
}
.plan-badge:hover { filter: brightness(1.1); transform: translateY(-1px); }
.plan-badge.trial { background: var(--accent-tint); color: #8A5A0E; border-color: #E8D2A6; }
.plan-badge.paid { background: var(--success-tint); color: var(--success); border-color: #C9E2D3; }
.plan-badge.expired { background: var(--danger-tint); color: var(--danger); border-color: #EFD3CF; }

/* 版本详情弹窗 */
.plan-now {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
  margin: 4px 0 14px;
}
.plan-now > div {
  background: var(--surface-sunken); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 12px;
}
.plan-now em { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); }
.plan-now b { font-size: 15px; font-weight: 700; display: block; margin-top: 2px; }
.plan-tiers { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.plan-tier {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
}
.plan-tier.current { border-color: var(--brand); background: var(--brand-tint); }
.plan-tier em { font-style: normal; font-weight: 700; font-size: 13px; flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.plan-tier em i {
  font-style: normal; font-size: 10px; font-weight: 600;
  background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 7px;
}
.plan-tier span { font-size: 12px; color: var(--ink-3); }
.plan-contact {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12.5px; color: var(--ink-2);
  background: var(--info-tint); border: 1px solid #CBDCE8;
  border-radius: var(--r-sm); padding: 10px 12px;
}
.plan-contact strong { color: var(--ink); }
.check-strip.warn { background: var(--accent-tint); border-color: #E8D2A6; color: #8A5A0E; }

.nav { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--nav-ink-dim);
  padding: 12px 12px 6px;
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--nav-ink);
  font-size: 13.5px;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), transform 0.16s var(--ease);
}
.nav-item:hover { background: var(--nav-hover); transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(14, 122, 99, 0.38), rgba(14, 122, 99, 0.16));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(127, 211, 188, 0.22), 0 4px 14px rgba(0, 0, 0, 0.25);
}
.nav-item .icon { color: var(--nav-ink-dim); flex: none; }
.nav-item.active .icon { color: #7FD3BC; }
.nav-count {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 20px;
  background: var(--accent);
  color: #1b1508;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.compliance {
  margin-top: auto;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-dark);
  color: var(--nav-ink-dim);
  font-size: 11.5px;
  line-height: 1.5;
}
.compliance strong { color: #B9C6C0; font-weight: 600; }

.side-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 2px;
  margin-top: 10px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  color: var(--nav-ink-dim);
}
.side-foot .who { color: var(--nav-ink); font-weight: 600; }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 243, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(19, 28, 24, 0.02), 0 8px 24px rgba(19, 28, 24, 0.04);
  padding: 15px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.topbar-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.page { padding: 22px 28px 64px; max-width: 1280px; width: 100%; }

.tabbar { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease), transform 0.1s var(--ease), box-shadow 0.14s var(--ease);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(19, 28, 24, 0.04);
}
.btn:hover { background: var(--surface-hover); border-color: var(--ink-4); box-shadow: 0 2px 8px rgba(19, 28, 24, 0.08); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--grad-brand); filter: brightness(1.08); border-color: transparent; box-shadow: 0 6px 20px rgba(14, 122, 99, 0.42); }
.btn-danger { color: var(--danger); border-color: #E8C9C4; background: var(--surface); }
.btn-danger:hover { background: var(--danger-tint); border-color: var(--danger); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--ink-2); box-shadow: none; }
.btn-quiet:hover { background: var(--surface-sunken); border-color: transparent; box-shadow: none; }
.btn-sm { height: 28px; padding: 0 9px; font-size: 12.5px; }
.btn-icon { width: 34px; padding: 0; }
.btn-block { width: 100%; }
.btn-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--brand);
  font-size: 12.5px;
  cursor: pointer;
  font-weight: 500;
}
.btn-link:hover { text-decoration: underline; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.2s var(--ease);
}
.card:hover { box-shadow: var(--shadow-2); }
.card + .card { margin-top: var(--gap); }
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 14px; font-weight: 700; }
.card-head .sub { font-size: 12px; color: var(--ink-3); }
.card-head .spacer { flex: 1; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }
.card-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-sunken);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--gap); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: var(--gap); }

/* ---------- 指标 ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFBF8 100%);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.metric { padding: 18px 20px; border-right: 1px solid var(--line); position: relative; transition: background 0.16s var(--ease); }
.metric:hover { background: var(--surface-hover); }
.metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.metric:hover::before { opacity: 1; }
.metric:last-child { border-right: none; }
.metric-label { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.metric-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.metric-value small { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.metric-foot { font-size: 11.5px; color: var(--ink-4); margin-top: 5px; }
.metric-value.pos { color: var(--brand); }
.metric-value.neg { color: var(--accent); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #F4F4EF 0%, var(--surface-sunken) 100%);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
table.data td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data tbody tr { transition: background 0.12s var(--ease); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: #F4FAF7; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .cell-strong { font-weight: 600; }
table.data .cell-sub { font-size: 11.5px; color: var(--ink-3); }
tfoot td { background: var(--surface-sunken); font-weight: 600; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(19, 28, 24, 0.05);
}
.badge-wait { background: var(--accent-tint); color: #8A5B12; border-color: #F0DCB8; }
.badge-dispatch { background: var(--info-tint); color: var(--info); border-color: #CFE0EA; }
.badge-done { background: var(--success-tint); color: var(--success); border-color: #C9E2D3; }
.badge-cancel { background: var(--surface-sunken); color: var(--ink-3); border-color: var(--line-strong); }
.badge-brand { background: var(--brand-tint); color: var(--brand-deep); border-color: var(--brand-tint-2); }
.badge-danger { background: var(--danger-tint); color: var(--danger); border-color: #EFD3CF; }
.badge-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 14px; }
.label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease);
  width: 100%;
}
.textarea { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 122, 99, 0.14);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input-affix { position: relative; }
.input-affix .affix {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--ink-3);
}
.help { font-size: 11.5px; color: var(--ink-4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .field + .field { margin-top: 0; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  cursor: pointer;
  background: var(--surface);
  user-select: none;
}
.check input { accent-color: var(--brand); margin: 0; }
.check.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track {
  width: 38px;
  height: 22px;
  border-radius: 20px;
  background: var(--line-strong);
  position: relative;
  transition: background 0.16s var(--ease);
  flex: none;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-1);
  transition: transform 0.18s var(--ease);
}
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(16px); }

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.toolbar .search { width: 220px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(19, 28, 24, 0.04); }
.seg button {
  border: none;
  background: none;
  padding: 0 12px;
  height: 32px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  border-right: 1px solid var(--line);
  transition: background 0.14s var(--ease);
}
.seg button:last-child { border-right: none; }
.seg button:hover { background: var(--surface-hover); }
.seg button.on { background: var(--grad-ink); color: #fff; font-weight: 600; }

/* ---------- 模态 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 25, 22, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 90;
  animation: fade 0.14s var(--ease);
}
.modal {
  background: var(--surface);
  border-radius: 20px;
  width: 460px;
  max-width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-3);
  animation: pop 0.18s var(--ease);
}
.modal.wide { width: 620px; }
.modal-head {
  padding: 16px 18px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 15px; font-weight: 600; }
.modal-head .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot {
  padding: 12px 18px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.99); } to { opacity: 1; transform: none; } }

/* ---------- Toast ---------- */
.toast-root {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 220px;
  max-width: 380px;
  padding: 10px 13px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #F2F5F2;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: var(--shadow-2);
  animation: toastIn 0.2s var(--ease);
  border-left: 3px solid var(--brand);
  pointer-events: auto;
}
.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

/* ---------- 空态 / 骨架 ---------- */
.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--ink-3);
}
.empty .empty-icon { color: var(--line-strong); margin-bottom: 10px; }
.empty h4 { font-size: 13.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
.empty p { font-size: 12.5px; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-sunken) 25%, #EDEDE6 37%, var(--surface-sunken) 63%);
  background-size: 400% 100%;
  animation: sk 1.2s ease infinite;
  border-radius: var(--r-xs);
  height: 14px;
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.pager .pages { display: flex; gap: 4px; margin-left: auto; }
.pager .pg {
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  transition: all 0.14s var(--ease);
}
.pager .pg:hover:not(:disabled):not(.on) { border-color: var(--brand); color: var(--brand); }
.pager .pg.on { background: var(--grad-brand); border-color: transparent; color: #fff; font-weight: 600; box-shadow: var(--shadow-brand); }
.pager .pg:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- 图表 ---------- */
.chart-box { padding: 8px 16px 4px; }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-2); padding: 0 16px 12px; }
.chart-legend .k { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .swatch { width: 10px; height: 3px; border-radius: 2px; }

/* ---------- 列表（待办 / 台账） ---------- */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--surface-hover); }
.list-main { min-width: 0; flex: 1; }
.list-title { font-size: 13px; font-weight: 500; }
.list-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.ledger-row { display: flex; align-items: baseline; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: none; }
.ledger-type {
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--surface-sunken);
  color: var(--ink-2);
  flex: none;
}
.ledger-type.in { background: var(--success-tint); color: var(--success); }
.ledger-amt {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
}
.ledger-amt.in { color: var(--success); }
.ledger-amt.out { color: var(--danger); }

.check-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-sunken);
  font-size: 12.5px;
}
.check-strip.ok { background: var(--success-tint); border-color: #C9E2D3; color: #145F3D; }
.check-strip.bad { background: var(--danger-tint); border-color: #EFD3CF; color: #8E2C25; }

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--paper);
}
.login-aside {
  background: var(--grad-nav);
  color: var(--nav-ink);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(127, 211, 188, 0.08);
}
.login-aside::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(18, 140, 110, 0.4), transparent);
  pointer-events: none;
}
.login-aside::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 30%;
  height: 320px;
  background: radial-gradient(closest-side, rgba(201, 134, 31, 0.22), transparent);
  pointer-events: none;
}
.login-aside h1 {
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-top: 44px;
  max-width: 440px;
  font-weight: 700;
}
.login-aside h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #7FD3BC, #C9E8DC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-aside p { color: var(--nav-ink-dim); margin-top: 14px; max-width: 400px; font-size: 13px; line-height: 1.7; }
.login-points { margin-top: auto; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.login-point { display: flex; gap: 10px; font-size: 12.5px; color: #C6D2CC; }
.login-point .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 7px; flex: none; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 32px; }
.login-card { width: 360px; max-width: 100%; }
.login-card h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.login-card .hint { color: var(--ink-3); font-size: 12.5px; margin-top: 6px; }
.demo-accounts {
  margin-top: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--surface-sunken);
}
.demo-accounts b { color: var(--ink); }
.demo-accounts .acc { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.demo-accounts .acc:hover { color: var(--brand); text-decoration: underline; }

/* ---------- 响应式：平板 / 手机 ---------- */
@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 10px 14px; }
  .topbar-title { font-size: 15.5px; }
  .topbar-sub { display: none; }
  .page { padding: 14px 14px 92px; }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    z-index: 60;
  }
  .tabbar button {
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    font-size: 10.5px;
    color: var(--ink-3);
    cursor: pointer;
  }
  .tabbar button.active { color: var(--brand); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 13px 14px; }
  .metric-value { font-size: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table.data th, table.data td { padding: 10px 12px; }
  .modal { width: 100%; }
  .modal-mask { padding: 12px; align-items: flex-end; }
}
