/* ============================================================
   Mars 对账中心 — 黑白简约设计系统
   ============================================================ */

:root {
  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --ink: #0e0e10;
  --ink-2: #48484d;
  --ink-3: #8b8b91;
  --ink-4: #b4b4b9;
  --line: #e6e6e8;
  --line-soft: #f0f0f1;
  --line-strong: #d5d5d8;
  --neg: #b42318;
  --pos: #0e0e10;
  --shadow: 0 1px 2px rgba(16, 16, 18, .04);
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar-w: 236px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0a0a0b;
  --surface: #121213;
  --surface-2: #171718;
  --ink: #f4f4f5;
  --ink-2: #b9b9be;
  --ink-3: #85858b;
  --ink-4: #5c5c62;
  --line: #242426;
  --line-soft: #1c1c1e;
  --line-strong: #343437;
  --neg: #ff6b5e;
  --pos: #f4f4f5;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--ink); color: var(--surface); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.neg { color: var(--neg); }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 12px; }

/* ============================ 布局 ============================ */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}

.brand {
  padding: 22px 20px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px; height: 30px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.03em;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em; }
.brand-sub { font-size: 10.5px; color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }

.nav { padding: 4px 12px; flex: 1; overflow-y: auto; }
.nav-group { margin-top: 14px; }
.nav-group:first-child { margin-top: 2px; }
.nav-label {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-4); padding: 0 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  position: relative;
}
.nav-item svg { width: 17px; height: 17px; flex: none; opacity: .78; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active {
  background: var(--ink); color: var(--surface);
  box-shadow: var(--shadow);
}
.nav-item.active svg { opacity: 1; }
.nav-item .nav-badge {
  margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums;
  background: var(--line); color: var(--ink-2);
  border-radius: 99px; padding: 1px 7px; line-height: 16px;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,.18); color: var(--surface); }

.sidebar-foot { padding: 12px; border-top: 1px solid var(--line-soft); }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border-radius: 10px; cursor: pointer;
}
.user-chip:hover { background: var(--surface-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  flex: none; letter-spacing: -0.01em;
}
.user-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.user-name { font-size: 12.5px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding: 26px 34px 18px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-color: var(--line); }

.page-head h1 {
  margin: 0 0 3px; font-size: 20px; font-weight: 620; letter-spacing: -0.022em;
}
.page-head p { margin: 0; color: var(--ink-3); font-size: 12.5px; }
.crumb { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px; }

.top-actions { display: flex; align-items: center; gap: 8px; }

.view { padding: 4px 34px 48px; max-width: 1500px; width: 100%; }

/* ============================ 按钮 / 表单 ============================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.8px; font-weight: 520;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .06s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--ink-4); }
.btn:active { transform: translateY(.5px); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn-primary:hover { opacity: .88; background: var(--ink); border-color: var(--ink); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.btn-sm { height: 29px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-danger { color: var(--neg); border-color: var(--line-strong); }
.btn-danger:hover { border-color: var(--neg); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn-icon { width: 34px; padding: 0; }
.btn-icon svg { width: 16px; height: 16px; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 500;
}
.input, .select, textarea.input {
  height: 34px; padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
  min-width: 0;
}
.input:hover, .select:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent);
}
.input::placeholder { color: var(--ink-4); }
.select {
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b91' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
textarea.input { height: auto; padding: 10px; line-height: 1.6; resize: vertical; font-family: var(--mono); font-size: 12px; }
input[type=number].input::-webkit-outer-spin-button,
input[type=number].input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number].input { -moz-appearance: textfield; }

.checkbox {
  appearance: none; width: 15px; height: 15px; border-radius: 4px;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  cursor: pointer; position: relative; flex: none; margin: 0;
  transition: background .12s ease, border-color .12s ease;
}
.checkbox:hover { border-color: var(--ink-3); }
.checkbox:checked { background: var(--ink); border-color: var(--ink); }
.checkbox:checked::after {
  content: ""; position: absolute; left: 4px; top: 1px;
  width: 4px; height: 8px; border: solid var(--surface);
  border-width: 0 1.8px 1.8px 0; transform: rotate(42deg);
}
.checkbox:indeterminate { background: var(--ink); border-color: var(--ink); }
.checkbox:indeterminate::after {
  content: ""; position: absolute; left: 3px; top: 6px; width: 7px; height: 1.8px; background: var(--surface);
}

.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span {
  position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong);
  transition: background .18s ease; cursor: pointer;
}
.switch span::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px;
  border-radius: 99px; background: #fff; transition: transform .18s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(16px); }

/* ============================ 卡片 ============================ */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 20px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
}
.card-title { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.card-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.card-body { padding: 18px 20px; }
.card-body.flush { padding: 0; }

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-8-4 { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* KPI */
.kpi { padding: 17px 18px 16px; position: relative; overflow: hidden; }
.kpi-label {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); display: flex; align-items: center; gap: 6px;
}
.kpi-value {
  font-size: 27px; font-weight: 600; letter-spacing: -0.03em; margin-top: 9px;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.kpi-value small { font-size: 15px; font-weight: 500; color: var(--ink-3); margin-right: 2px; }
.kpi-value .unit { font-size: 15px; font-weight: 500; color: var(--ink-3); margin-left: 5px; letter-spacing: 0; }
.kpi-foot { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.delta {
  display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px;
  font-variant-numeric: tabular-nums; padding: 1px 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--ink-2);
}
.delta.up { color: var(--pos); }
.delta.down { color: var(--neg); }

/* ============================ 表格 ============================ */

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.tbl th {
  text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap; background: var(--surface); position: sticky; top: 0;
}
.tbl td {
  padding: 11px 12px; border-bottom: 1px solid var(--line-soft);
  vertical-align: middle; white-space: nowrap;
}
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr.selected { background: color-mix(in srgb, var(--ink) 4%, var(--surface)); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; }
.tbl th.num { text-align: right; }
.tbl .col-check { width: 38px; padding-right: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 16px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.tbl .ellip { max-width: 168px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
.tbl .mono .ellip { max-width: 132px; }
.tbl-compact td { padding: 9px 12px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 21px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; border: 1px solid var(--line);
  color: var(--ink-2); background: var(--surface-2); white-space: nowrap;
}
.tag.solid { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tag.plain { background: transparent; }
.dot { width: 5px; height: 5px; border-radius: 99px; background: currentColor; opacity: .65; flex: none; }
.tag.paid { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tag.unpaid { background: transparent; color: var(--ink-3); }

.empty {
  padding: 46px 20px; text-align: center; color: var(--ink-3); font-size: 12.5px;
}
.empty svg { width: 26px; height: 26px; opacity: .35; margin-bottom: 8px; }

/* 分页 */
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px; border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--ink-3); flex-wrap: wrap;
}
.pager .pages { display: flex; align-items: center; gap: 4px; }
.pg {
  min-width: 28px; height: 28px; padding: 0 7px; border-radius: 7px;
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  font-size: 12px; cursor: pointer; font-variant-numeric: tabular-nums;
}
.pg:hover { background: var(--surface-2); border-color: var(--line); }
.pg.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pg:disabled { opacity: .35; cursor: not-allowed; }

/* ============================ 图表 ============================ */

.chart { width: 100%; display: block; overflow: visible; }
.legend { display: flex; align-items: center; gap: 16px; font-size: 11.5px; color: var(--ink-3); }
.legend i { display: inline-block; width: 14px; height: 2px; background: currentColor; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.legend .l-ink { color: var(--ink); }
.legend .l-mute { color: var(--ink-4); }

.bar-row { display: grid; grid-template-columns: 104px 1fr 78px; align-items: center; gap: 12px; padding: 7px 0; font-size: 12.5px; }
.bar-label { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { display: block; height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.bar-fill.gray { background: var(--ink-4); }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 12px; }

/* ============================ 其他 ============================ */

.toolbar {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px; border-bottom: 1px solid var(--line-soft);
}
.toolbar .field { width: auto; }
.toolbar .field.grow { flex: 1 1 150px; }

.actions-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
  font-size: 12.5px; color: var(--ink-2);
}
.selected-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 99px; font-size: 11.5px; color: var(--ink-2);
  background: var(--surface);
}

.mini-list { display: flex; flex-direction: column; }
.mini-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 20px;
  border-bottom: 1px solid var(--line-soft); font-size: 12.5px;
}
.mini-row:last-child { border-bottom: none; }
.mini-row:hover { background: var(--surface-2); }
.mini-main { min-width: 0; flex: 1; }
.mini-title { font-weight: 520; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(14,14,16,.36); backdrop-filter: blur(2px);
  display: grid; place-items: center; z-index: 100; padding: 20px;
  animation: fade .16s ease;
}
.modal {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  width: min(520px, 100%); box-shadow: 0 24px 60px rgba(0,0,0,.18);
  animation: rise .2s cubic-bezier(.2,.8,.2,1);
  max-height: calc(100vh - 60px); display: flex; flex-direction: column;
}
.modal.wide { width: min(700px, 100%); }
.modal-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-title { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.modal-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.modal-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 13px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 8px; }
.x-btn { border: none; background: transparent; color: var(--ink-3); cursor: pointer; padding: 2px; border-radius: 6px; line-height: 0; }
.x-btn:hover { color: var(--ink); background: var(--surface-2); }

.toast-wrap { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast {
  display: flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--surface);
  padding: 10px 14px; border-radius: 10px; font-size: 12.5px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  animation: rise .2s ease;
  max-width: 340px;
}
.toast.err { background: var(--neg); }
.toast svg { width: 15px; height: 15px; flex: none; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 16px; }
.tab {
  height: 40px; padding: 0 12px; border: none; background: transparent; cursor: pointer;
  font-size: 12.8px; color: var(--ink-3); position: relative;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); font-weight: 560; }
.tab.active::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px;
}
.tab .cnt { font-size: 10.5px; margin-left: 5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }

.hr { height: 1px; background: var(--line-soft); margin: 2px 0; border: 0; }

.note {
  font-size: 12px; color: var(--ink-3); line-height: 1.7;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 11px 13px;
}
.note b { color: var(--ink-2); font-weight: 560; }
.note code { font-family: var(--mono); font-size: 11.5px; background: var(--surface); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }

.kv { display: flex; flex-direction: column; gap: 9px; }
.kv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.kv-row .k { color: var(--ink-3); font-size: 12.5px; }
.kv-row .v { font-variant-numeric: tabular-nums; font-weight: 520; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
}
.switch-row:last-child { border-bottom: none; }
.switch-row .t { font-size: 13px; font-weight: 520; }
.switch-row .d { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; max-width: 460px; }

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, var(--line-soft) 25%, var(--surface-2) 37%, var(--line-soft) 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 7px;
}

@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px) scale(.995); } to { opacity: 1; transform: none; } }

.fade-in { animation: fade .22s ease; }

/* ============================ 登录页 ============================ */

.auth { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-visual {
  background: #0b0b0c; color: #fff; padding: 46px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 78%);
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.auth-logo .brand-mark { background: #fff; color: #0b0b0c; }
.auth-hero h2 {
  margin: 0 0 14px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08;
  letter-spacing: -0.04em; font-weight: 560;
}
.auth-hero p { margin: 0; color: rgba(255,255,255,.6); font-size: 13.5px; max-width: 34ch; line-height: 1.75; }
.auth-list { list-style: none; margin: 34px 0 0; padding: 0; max-width: 400px; }
.auth-list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 13px 0; border-top: 1px solid rgba(255,255,255,.10);
}
.auth-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.10); }
.auth-list span {
  font-family: var(--mono); font-size: 10.5px; color: rgba(255,255,255,.34);
  letter-spacing: .06em; padding-top: 1px;
}
.auth-list b { display: block; font-size: 13px; font-weight: 520; color: rgba(255,255,255,.92); letter-spacing: -0.005em; }
.auth-list em { display: block; font-style: normal; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.5); margin-top: 3px; }
.auth-foot { display: flex; gap: 26px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.38); }
.auth-form-wrap { display: grid; place-items: center; padding: 40px; background: var(--surface); }
.auth-form { width: min(340px, 100%); }
.auth-form h1 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.auth-form .sub { color: var(--ink-3); font-size: 12.5px; margin-bottom: 26px; }
.auth-form .field { margin-bottom: 14px; }
.auth-form .input { height: 40px; }
.auth-form .btn { width: 100%; height: 40px; margin-top: 8px; }
.auth-err {
  margin-top: 14px; font-size: 12.5px; color: var(--neg);
  display: none; align-items: center; gap: 6px;
}
.auth-err.show { display: flex; }
.auth-hint { margin-top: 22px; font-size: 11.5px; color: var(--ink-4); line-height: 1.7; }

/* ============================ 响应式 ============================ */

@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-8-4 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%);
    transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.14);
  }
  .sidebar.open { transform: none; }
  .view, .topbar { padding-left: 18px; padding-right: 18px; }
  .topbar { padding-top: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .mobile-only { display: inline-flex !important; }
}
@media (min-width: 901px) { .mobile-only { display: none !important; } }
@media (max-width: 620px) {
  .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
