/* ═══════════════════════════════════════════════════════════════════
   GOLD DESK —— 纯白 / 单色墨黑 / 大量留白
   设计参考：Awwwards · Webby · FWA 的编辑部式排版
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --ink: #0d0e10;
  --ink-2: #5a5e64;
  --ink-3: #9ba0a6;
  --line: rgba(13, 14, 16, .085);
  --line-2: rgba(13, 14, 16, .16);
  --line-3: rgba(13, 14, 16, .28);
  --soft: #f8f8f9;
  --soft-2: #f1f1f2;
  --ok: #23684b;
  --warn: #9c3d2e;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont,
          "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

::selection { background: var(--ink); color: #fff; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─────────────── 动画 ─────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop  { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dockIn { from { transform: translateY(102%); } to { transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.82); } }

.rise { animation: rise .85s var(--ease-out) both; animation-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ─────────────── 品牌 ─────────────── */
.brand { display: flex; align-items: center; gap: 12px; }

.brand__mark {
  width: 22px; height: 22px; border-radius: 7px; background: var(--ink);
  position: relative; flex: none;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff;
}

.brand__name {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500; color: var(--ink);
}
.brand__name em { font-style: normal; color: var(--ink-3); margin-left: 6px; }

/* ─────────────── 按钮 ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 13px 26px; font: inherit; font-size: 13.5px; font-weight: 500;
  letter-spacing: .01em; cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .25s var(--ease), opacity .25s var(--ease);
}
.btn:active { transform: scale(.982); }
.btn[disabled] { opacity: .4; pointer-events: none; }

.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: #000; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--sm { padding: 9px 18px; font-size: 12.5px; }
.btn--wide { width: 100%; }

.linkbtn {
  border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px;
  color: var(--ink-2); cursor: pointer; position: relative;
  transition: color .25s var(--ease);
}
.linkbtn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.linkbtn:hover { color: var(--ink); }
.linkbtn:hover::after { transform: scaleX(1); transform-origin: left; }

/* ─────────────── 排版原语 ─────────────── */
.eyebrow {
  margin: 0 0 22px; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3);
}
.display {
  margin: 0; font-size: clamp(48px, 7.2vw, 108px); line-height: .88;
  letter-spacing: -.052em; font-weight: 500;
}
.h2 {
  margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1;
  letter-spacing: -.042em; font-weight: 500;
}
.lede {
  margin: 26px 0 0; max-width: 46ch; font-size: 16px; line-height: 1.62;
  color: var(--ink-2); letter-spacing: -.005em;
}

/* ══════════════════════ 认证 ══════════════════════ */
.auth {
  min-height: 100dvh; display: grid; place-items: center;
  padding: 56px 40px;
}
.auth__grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 0; align-items: start; width: min(560px, 100%);
}
.auth__title {
  margin: 46px 0 0; font-size: clamp(56px, 9vw, 128px); line-height: .84;
  letter-spacing: -.06em; font-weight: 500;
}
.auth__lede {
  margin: 34px 0 0; max-width: 42ch; color: var(--ink-2);
  font-size: 15.5px; line-height: 1.68;
}
.auth__form { margin-top: 52px; display: grid; gap: 26px; max-width: 420px; }
.auth__actions { display: flex; gap: 12px; margin-top: 10px; }
.auth__hint {
  margin: 0; min-height: 20px; font-size: 12.5px; color: var(--warn);
  letter-spacing: .01em;
}
.auth__hint[data-kind="ok"] { color: var(--ok); }

.auth__aside { padding-top: 12px; border-top: 1px solid var(--line); }
.specimen { display: grid; }
.specimen__row {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px;
}
.specimen__row span { color: var(--ink-3); letter-spacing: .04em; }
.specimen__row b { font-weight: 500; color: var(--ink); letter-spacing: -.005em; }
.specimen__foot {
  display: flex; align-items: center; gap: 9px; margin-top: 22px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}

/* ══════════════════════ 顶栏 ══════════════════════ */
.app { min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding: 18px 40px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), padding .4s var(--ease);
}
.topbar.is-stuck { border-bottom-color: var(--line); }

.tabs { position: relative; display: flex; gap: 4px; }
.tab {
  position: relative; border: 0; background: none; cursor: pointer;
  padding: 8px 16px; font: inherit; font-size: 13.5px; color: var(--ink-3);
  transition: color .3s var(--ease); z-index: 1;
}
.tab:hover { color: var(--ink-2); }
.tab.is-active { color: var(--ink); font-weight: 500; }
.tabs__ink {
  position: absolute; bottom: 2px; height: 1px; background: var(--ink);
  transition: left .45s var(--ease-out), width .45s var(--ease-out);
  left: 0; width: 0;
}

.topbar__right {
  display: flex; align-items: center; gap: 18px; justify-content: flex-end;
}
.who {
  font-size: 12.5px; color: var(--ink-2); letter-spacing: .02em;
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ver {
  font-size: 10.5px; color: var(--ink-3); letter-spacing: .14em;
  text-transform: uppercase; font-variant-numeric: tabular-nums;
}

/* ══════════════════════ 主体 ══════════════════════ */
.main {
  flex: 1; width: min(1240px, 100%); margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) 40px 120px;
}

.view { display: none; }
.view.is-active { display: block; animation: rise .6s var(--ease-out) both; }

.view__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 42px;
}
.view__acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hintline { font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em; }

/* ─────────────── 统计 ─────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin: 68px 0 0; background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat {
  background: var(--bg); padding: 26px 24px 30px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background .35s var(--ease);
}
.stat:hover { background: var(--soft); }
.stat__k {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.stat__v {
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1; font-weight: 500;
  letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
.stat__v--sm { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
.stat__s { font-size: 12.5px; color: var(--ink-3); letter-spacing: .01em; }

/* ─────────────── 三宫格入口 ─────────────── */
.grid3 {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line); margin-top: 1px;
}
.tile {
  background: var(--bg); border: 0; text-align: left; cursor: pointer;
  padding: 34px 28px 30px; font: inherit; color: inherit;
  display: flex; flex-direction: column; gap: 12px; min-height: 220px;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.tile:hover { background: var(--soft); }
.tile__i {
  font-size: 11px; letter-spacing: .16em; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.tile h3 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.025em; }
.tile p { margin: 0; font-size: 13.5px; line-height: 1.66; color: var(--ink-2); flex: 1; }
.tile__go {
  margin-top: auto; font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em;
  transition: color .3s var(--ease), transform .4s var(--ease);
}
.tile:hover .tile__go { color: var(--ink); transform: translateX(4px); }

/* ─────────────── 表格 ─────────────── */
.table-wrap {
  border-top: 1px solid var(--line-2); position: relative;
  overflow-x: auto;
}
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 900px; }
.table th {
  text-align: left; font-weight: 400; font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 16px 16px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 17px 16px; border-bottom: 1px solid var(--line);
  vertical-align: middle; white-space: nowrap;
}
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr { transition: background .3s var(--ease); }
.table tbody tr:hover { background: var(--soft); }
.table tbody td:first-child { position: relative; width: 46px; }
.table tbody tr:hover td:first-child::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 2px; background: var(--ink);
}
.table .col-ck, .table .col-op { width: 46px; }
.cell-title { font-weight: 500; letter-spacing: -.008em; }
.cell-mute { color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.cell-money { font-variant-numeric: tabular-nums; font-weight: 500; }
.cell-msg {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.65;
  word-break: break-all; white-space: normal;
}
.cell-dash { color: var(--ink-3); }

input[type="checkbox"].ck {
  appearance: none; width: 16px; height: 16px; border-radius: 5px;
  border: 1px solid var(--line-3); background: #fff; cursor: pointer;
  position: relative; transition: background .2s var(--ease), border-color .2s var(--ease);
  margin: 0; vertical-align: middle;
}
input[type="checkbox"].ck:checked { background: var(--ink); border-color: var(--ink); }
input[type="checkbox"].ck:checked::after {
  content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(42deg);
}

.rowbtn {
  border: 0; background: none; font: inherit; font-size: 12px; cursor: pointer;
  color: var(--ink-3); padding: 4px 0; transition: color .25s var(--ease);
}
.rowbtn:hover { color: var(--warn); }

.empty { padding: 76px 8px; text-align: center; }
.empty__t { margin: 0 0 8px; font-size: 16px; letter-spacing: -.02em; }
.empty__s { margin: 0; font-size: 13px; color: var(--ink-3); }

/* ─────────────── 面板 / 表单 ─────────────── */
.panel {
  border: 1px solid var(--line); border-radius: 22px;
  padding: 34px; background: var(--bg);
}
.panel__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px 32px;
}
.panel__foot {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
}
.panel__note { font-size: 12.5px; color: var(--ink-3); }

.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field__label {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.field input, .field select {
  appearance: none; -webkit-appearance: none; width: 100%;
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; padding: 9px 0; font: inherit; font-size: 15px;
  color: var(--ink); letter-spacing: -.005em;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: right 6px center, right 1px center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 20px;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus {
  outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink);
}
.field input:disabled { color: var(--ink-3); }
.field__help { font-size: 11.5px; color: var(--ink-3); letter-spacing: .01em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ─────────────── 分段控件 ─────────────── */
.segmented {
  display: inline-flex; gap: 2px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--soft);
  max-width: 100%; overflow-x: auto;
}
.seg {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 13px; color: var(--ink-2); padding: 9px 20px; border-radius: 999px;
  white-space: nowrap; transition: color .25s var(--ease), background .25s var(--ease);
}
.seg:hover { color: var(--ink); }
.seg.is-active {
  background: #fff; color: var(--ink); font-weight: 500;
  box-shadow: 0 1px 3px rgba(13, 14, 16, .07), 0 0 0 1px var(--line);
}
.mode-desc {
  margin: 20px 0 0; font-size: 13.5px; color: var(--ink-2); max-width: 76ch;
}

/* ─────────────── 开关 ─────────────── */
.switches { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 32px; }
.switch {
  display: inline-flex; align-items: center; gap: 11px; cursor: pointer;
  font-size: 13.5px; color: var(--ink-2); user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i {
  width: 36px; height: 21px; border-radius: 999px; background: var(--soft-2);
  border: 1px solid var(--line-2); position: relative; flex: none;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(13, 14, 16, .22);
  transition: transform .32s var(--ease-out);
}
.switch input:checked + i { background: var(--ink); border-color: var(--ink); }
.switch input:checked + i::after { transform: translateX(15px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(13, 14, 16, .14); }

/* ─────────────── 账号选择 ─────────────── */
.picker { margin-top: 34px; }
.picker__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  border: 1px solid var(--line-2); background: #fff; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--ink-2);
  padding: 8px 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .2s var(--ease);
  max-width: 100%;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip__uid { font-family: var(--mono); font-size: 11px; opacity: .55; }
.chip-empty { font-size: 13px; color: var(--ink-3); padding: 8px 0; }

/* ─────────────── 说明卡 ─────────────── */
.notes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: var(--line); margin-top: 40px;
  border-bottom: 1px solid var(--line);
}
.note { background: var(--bg); padding: 26px 26px 30px; }
.note__k {
  display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.note p { margin: 0; font-size: 13px; line-height: 1.72; color: var(--ink-2); }

/* ══════════════════════ 任务抽屉 ══════════════════════ */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-top: 1px solid var(--line);
}
.dock__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px clamp(20px, 4vw, 40px);
}
.dock__title { font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; }
.dock__meta {
  font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.dock__spacer { flex: 1; }
.dock__body { max-height: 0; overflow: hidden; }
.dock.is-open .dock__body { max-height: 46vh; border-top: 1px solid var(--line); }
.dock.is-animated .dock__body { transition: max-height .55s var(--ease-out); }
.dock .log { height: 46vh; }

.log {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.85;
  color: var(--ink-2); padding: 16px clamp(20px, 4vw, 40px) 24px;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin;
}
.log::-webkit-scrollbar { width: 8px; }
.log::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.log__l { display: flex; gap: 14px; white-space: pre-wrap; word-break: break-word; }
.log__t { color: var(--ink-3); flex: none; user-select: none; }
.log__s { flex: 1; min-width: 0; }
.log__l[data-lv="ok"] .log__s { color: var(--ok); }
.log__l[data-lv="warn"] .log__s { color: var(--warn); }
.log__l[data-lv="error"] .log__s { color: var(--warn); font-weight: 500; }
.log__empty { color: var(--ink-3); }

.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3);
  flex: none; display: inline-block;
}
.dot--live { background: var(--ok); animation: pulse 1.5s var(--ease) infinite; }
.dot--done { background: var(--ink-3); }

/* ══════════════════════ 模态 ══════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 80; display: flex;
  align-items: center; justify-content: center; padding: 24px;
}
.modal__scrim {
  position: absolute; inset: 0; background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .35s var(--ease) both;
}
.modal__panel {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 26px; padding: clamp(28px, 4vw, 46px);
  width: min(660px, 100%); max-height: 90dvh; overflow-y: auto;
  box-shadow: 0 40px 100px -50px rgba(13, 14, 16, .3);
  animation: pop .5s var(--ease-out) both;
}
.modal__x {
  position: absolute; top: 18px; right: 20px; border: 0; background: none;
  font-size: 15px; color: var(--ink-3); cursor: pointer; padding: 6px;
  transition: color .25s var(--ease);
}
.modal__x:hover { color: var(--ink); }
.modal__title {
  margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.035em;
  font-weight: 500; line-height: 1.1;
}
.modal__lede {
  margin: 14px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-2);
  max-width: 52ch;
}
.modal__form { margin-top: 34px; display: grid; gap: 26px; }
.modal__hint {
  margin: 0; font-size: 12.5px; color: var(--warn); min-height: 18px;
}
.modal__hint[data-kind="ok"] { color: var(--ok); }

/* ══════════════════════ 页脚 ══════════════════════ */
.foot {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 40px 34px; border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-top: auto;
}
.foot__sep { width: 18px; height: 1px; background: var(--line-3); }
.foot__spacer { flex: 1; }


/* ══════════════════════ 徽章 / 搜索（用户管理） ══════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .05em; padding: 3px 10px; line-height: 1.7;
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2);
}
.badge--admin { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge--off { color: var(--warn); border-color: rgba(156, 61, 46, .38); }
.search {
  border: 0; border-bottom: 1px solid var(--line-2); background: transparent;
  padding: 8px 0; width: 170px; max-width: 100%; font: inherit; font-size: 13.5px;
  color: var(--ink); transition: border-color .3s var(--ease);
}
.search:focus { outline: none; border-bottom-color: var(--ink); }
.search::placeholder { color: var(--ink-3); }

/* ══════════════════════ 响应式 ══════════════════════ */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: 1fr; }
  .auth__grid { grid-template-columns: 1fr; gap: 56px; }
  .auth__aside { max-width: 420px; }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr auto; gap: 12px;
    padding: 14px 20px; position: static;
    border-bottom-color: var(--line);
  }
  .tabs {
    grid-column: 1 / -1; order: 3; width: 100%;
    overflow-x: auto; padding-bottom: 2px; scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 10px 12px; }
  .main { padding: 40px 20px 140px; }
  .auth { padding: 40px 20px; }
  .auth__title { font-size: 64px; }
  .field-row { grid-template-columns: 1fr; }
  .panel { padding: 24px 20px; border-radius: 18px; }
  .stats { margin-top: 44px; }
  .display { font-size: clamp(44px, 12vw, 68px); }
  .foot { padding: 22px 20px 28px; flex-wrap: wrap; }
  .table { min-width: 760px; }
  .dock__bar { flex-wrap: wrap; padding: 12px 20px; }
  .dock.is-open .dock__body { max-height: 56vh; }
}

@media (max-width: 560px) {
  .who { max-width: 96px; font-size: 12px; }
  .topbar__right { gap: 10px; }
  .view__acts { gap: 10px; }
  .search { width: 100%; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .view__head { align-items: flex-start; }
  .segmented { width: 100%; }
  .seg { padding: 9px 14px; font-size: 12.5px; }
}

/* ══════════════════════ 代理页 · 多行输入 ══════════════════════ */
.textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--soft); padding: 14px 16px; resize: vertical;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.textarea::placeholder { color: var(--ink-3); }
.proxy-addr { font-family: var(--mono); font-size: 12.5px; letter-spacing: -.01em; }
.btn--warn { color: var(--warn); border-color: rgba(156, 61, 46, .35); }
.btn--warn:hover { border-color: var(--warn); }

/* ══════════════════════ 弹窗里的代理状态提示 ══════════════════════ */
.modal__proxy {
  margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3);
  letter-spacing: .01em; line-height: 1.6;
}
.modal__proxy[data-ok="1"] { color: var(--ok); }
.modal__proxy[data-ok="0"] { color: var(--warn); }

/* ══════════════════════ 账号页快速选择 ══════════════════════ */
.quickpick {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin: 0 0 28px;
}
.quickpick__label {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-right: 4px;
}

/* 嵌在 picker 标题行里的紧凑版快速选择 */
.quickpick--inline { margin: 0; gap: 7px; justify-content: flex-end; }
.quickpick--inline .chip { padding: 6px 12px; font-size: 12px; }

/* ══════════════════════ 结账页 ══════════════════════ */
.stats--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.payqr { margin: 26px 0 0; min-height: 240px; display: grid; place-items: center; text-align: center; }
.payqr img { width: 240px; height: 240px; object-fit: contain; border-radius: 12px; }
.payqr a { font-size: 13px; color: var(--ink); word-break: break-all; text-decoration: underline; }
@media (max-width: 560px) { .stats--two { grid-template-columns: 1fr; } .payqr img { width: 200px; height: 200px; } }

.payqr__tip { margin: 18px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; max-width: 260px; }
