/* ==========================================================================
   KK支付 / 易支付 · UI v2「精密」主题层
   加载顺序：base.css → components.css → pages.css → v2.css
   只覆盖视觉与布局，不改支付业务逻辑。移除本文件即可回滚到旧版外观。
   ========================================================================== */

/* ---------------------------------------------------------------- 设计令牌 */
:root {
  color-scheme: light;

  --brand: #2B4BF2;
  --brand-600: #1E3BD6;
  --brand-700: #172FB0;
  --brand-50: #EEF1FE;
  --brand-100: #DFE5FF;
  --brand-ring: rgba(43, 75, 242, .16);

  --bg: #F6F7FA;
  --bg-soft: #FBFCFE;
  --surface: #FFFFFF;
  --surface-2: #F9FAFD;
  --surface-3: #F1F4F9;
  --line: #E6EAF1;
  --line-2: #D0D7E2;
  --ink: #0B1220;
  --ink-2: #475467;
  --ink-3: #667085;
  --ink-4: #98A2B3;

  --ok: #0B8A5B;
  --ok-50: #E7F6EF;
  --warn: #B26A00;
  --warn-50: #FFF4E5;
  --danger: #D92D20;
  --danger-50: #FEECEB;
  --info: #0E7490;
  --info-50: #E6F6F9;

  --r-xs: 4px;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 11px;
  --r-xl: 14px;
  --r-full: 999px;

  --sh-1: 0 1px 2px rgba(16, 24, 40, .04);
  --sh-2: 0 4px 12px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
  --sh-3: 0 20px 48px -12px rgba(16, 24, 40, .18);
  --sh-brand: 0 4px 10px -4px rgba(43, 75, 242, .55);

  --topbar-h: 60px;
  --sidebar-w: 232px;
  --content-max: 1440px;

  --font-sans: "Inter", "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  color-scheme: dark;

  --brand: #7D92FF;
  --brand-600: #98A9FF;
  --brand-700: #6B82FF;
  --brand-50: #151C33;
  --brand-100: #1C2542;
  --brand-ring: rgba(125, 146, 255, .22);

  --bg: #0A0E16;
  --bg-soft: #0D121C;
  --surface: #10151F;
  --surface-2: #141A25;
  --surface-3: #1A2230;
  --line: #202A39;
  --line-2: #2C3849;
  --ink: #E8EDF6;
  --ink-2: #A6B1C2;
  --ink-3: #7F8CA0;
  --ink-4: #5F6B7E;

  --ok: #3DDC97;
  --ok-50: #0C2A21;
  --warn: #F0B45C;
  --warn-50: #2A2114;
  --danger: #FF7070;
  --danger-50: #2C1618;
  --info: #4DD0E1;
  --info-50: #0B2529;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .35);
  --sh-2: 0 6px 18px -6px rgba(0, 0, 0, .65);
  --sh-3: 0 24px 56px -16px rgba(0, 0, 0, .8);
  --sh-brand: 0 4px 14px -4px rgba(125, 146, 255, .45);
}

/* ---------------------------------------------------------------- 基础排版 */
body {
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: -.006em;
  background: var(--bg);
  color: var(--ink);
}

h1, h2, h3, h4 { letter-spacing: -.018em; }
h1 { font-size: 24px; font-weight: 650; line-height: 1.28; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 14.5px; font-weight: 600; }

.mono, .num { font-variant-numeric: tabular-nums; }
.small { font-size: 11.5px; }
.gap-14 { gap: 14px; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-2); }

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

/* 统一键盘焦点 */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- 按钮 */
.btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 550;
  gap: 6px;
  box-shadow: none;
  will-change: auto;
}
.btn .ico { width: 15px; height: 15px; }
.btn:active { transform: none; }
.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn--primary:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  transform: none;
  box-shadow: var(--sh-brand);
}
.btn--ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink-2);
  box-shadow: none;
}
.btn--ghost:hover { border-color: #AEB9C9; color: var(--ink); background: var(--surface); }
.btn--soft { background: var(--brand-50); color: var(--brand); }
.btn--soft:hover { background: var(--brand-100); }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger:hover { filter: brightness(.95); transform: none; }
.btn--ghost-danger { border-color: var(--line-2); background: var(--surface); }
.btn--ghost-danger:hover { border-color: var(--danger); background: var(--danger-50); }
.btn--link { height: auto; padding: 0; }
.btn--sm { height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: 6px; }
.btn--sm .ico { width: 13px; height: 13px; }
.btn--lg { height: 42px; padding: 0 20px; font-size: 13.5px; border-radius: 9px; }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--ink-3);
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn:active { transform: none; }

/* ---------------------------------------------------------------- 徽标 */
.badge {
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 550;
  gap: 4px;
}
.badge--ok { background: var(--ok-50); color: var(--ok); }
.badge--warn { background: var(--warn-50); color: var(--warn); }
.badge--danger { background: var(--danger-50); color: var(--danger); }
.badge--info { background: var(--info-50); color: var(--info); }
.badge--brand { background: var(--brand-50); color: var(--brand); }
.badge--muted { background: var(--surface-3); color: var(--ink-3); }

.tag {
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 10.5px;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- 卡片 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.card__head {
  padding: 15px 18px;
  gap: 12px;
  align-items: flex-start;
}
.card__title { font-size: 13.5px; font-weight: 650; letter-spacing: -.012em; }
.card__sub { font-size: 10.5px; margin-top: 3px; color: var(--ink-3); }
.card__body { padding: 18px; }
.card__foot { padding: 12px 18px; background: var(--surface-2); }

/* ---------------------------------------------------------------- 数据卡 */
.stat {
  padding: 15px 17px 14px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: border-color .18s, box-shadow .18s;
}
.stat:hover { transform: none; box-shadow: var(--sh-1); border-color: var(--line-2); }
.stat__label { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.stat__ico { width: 26px; height: 26px; border-radius: 7px; }
.stat__ico .ico { width: 14px; height: 14px; }
.stat__value { margin-top: 7px; font-size: 27px; font-weight: 650; letter-spacing: -.025em; }
.stat__value .unit { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.stat__foot { margin-top: 7px; font-size: 10.5px; color: var(--ink-3); }
.delta { font-size: 10.5px; }

/* ---------------------------------------------------------------- 表格 */
.table { font-size: 12.5px; }
.table th {
  padding: 9px 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ink-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 11px 16px;
  border-bottom: 1px solid #EFF2F7;
  color: var(--ink-2);
}
[data-theme="dark"] .table td { border-bottom-color: var(--line); }
.table tbody tr { animation: none; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:hover td { color: var(--ink); }
.table .cell-main { font-weight: 550; }
.table .cell-sub { font-size: 10.5px; }
.table .t-amount { font-weight: 650; font-size: 12.5px; }
.table--compact th { padding: 8px 14px; }
.table--compact td { padding: 10px 14px; }

/* 让列表页在宽屏下更好读 */
.table th:first-child, .table td:first-child { padding-left: 18px; }
.table th:last-child, .table td:last-child { padding-right: 18px; }

.empty { padding: 36px 20px; gap: 6px; }
.empty__actions { margin-top: 12px; }
.order-detail-mobile { display: none; }
.empty__ico { width: 38px; height: 38px; border-radius: 10px; }

/* ---------------------------------------------------------------- 表单 */
.field { gap: 5px; }
.label { font-size: 12px; font-weight: 550; color: var(--ink-2); }
.hint { font-size: 10.5px; color: var(--ink-3); }
.input, .select, .textarea {
  min-height: 36px;
  border-radius: 8px;
  border-color: var(--line-2);
  background: var(--surface);
  font-size: 12.5px;
  padding: 0 11px;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.captcha { display: flex; flex-direction: column; gap: 5px; }
.captcha__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.captcha__input { flex: 1 1 120px; min-width: 0; letter-spacing: .16em; font-family: var(--font-mono); text-transform: uppercase; }
.captcha__img { flex: none; width: 124px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; cursor: pointer; }
.captcha__refresh { flex: none; height: 36px; padding: 0 10px; }

/* 点选验证码 */
.captcha--click .captcha__row { align-items: flex-start; }
.captcha--click .captcha__img { width: 320px; height: auto; max-width: 100%; border-radius: 10px; cursor: crosshair; }
.captcha__stage { position: relative; display: inline-block; line-height: 0; max-width: 100%; border-radius: 10px; overflow: hidden; }
.captcha__marks { position: absolute; inset: 0; pointer-events: none; }
.captcha__point {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: rgba(58, 92, 245, .92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
@media (max-width: 520px) {
  .captcha__input { flex: 1 1 100%; }
  .captcha__img { width: 132px; }
  .captcha__refresh { flex: 1 1 auto; }
}
.input-group .input { border-radius: 8px 0 0 8px; }
.input-group .btn { border-radius: 0 8px 8px 0; height: 36px; }
.search .input { padding-left: 32px; }

/* ---------------------------------------------------------------- 标签页 / 分段 */
.tabs { gap: 20px; }
.tab { padding: 8px 0 10px; font-size: 12.5px; }
.tab.is-active::after { height: 2px; border-radius: 2px; }
.seg {
  padding: 3px;
  border-radius: 8px;
  border-color: var(--line);
  background: var(--surface-2);
}
.seg a, .seg button { height: 28px; padding: 0 11px; border-radius: 6px; font-size: 11.5px; }
.seg .is-active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.seg__count { margin-left: 5px; font-size: 9.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.seg .is-active .seg__count { color: var(--brand); }

/* ---------------------------------------------------------------- 弹窗 / 抽屉 */
.modal__panel {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
}
.modal__head { padding: 18px 20px 14px; }
.modal__title { font-size: 16px; font-weight: 650; }
.modal__sub { font-size: 11.5px; margin-top: 3px; }
.modal__body { padding: 18px 20px; }
.modal__foot { padding: 13px 20px; background: var(--surface-2); }
.drawer__panel { border-left: 1px solid var(--line); box-shadow: var(--sh-3); }
.drawer__head { padding: 18px 20px 14px; }

.toast { border-radius: 9px; box-shadow: var(--sh-2); font-size: 12px; }
.notice { border-radius: 9px; padding: 11px 13px; font-size: 12px; }

/* ---------------------------------------------------------------- 图表 */
.chart__bar { background: linear-gradient(180deg, #5B76FF, var(--brand)); border-radius: 4px 4px 2px 2px; }
.chart__grid span { border-color: var(--line); }
.chart__x { font-size: 9.5px; font-family: var(--font-mono); color: var(--ink-3); }
.donut { width: 112px; height: 112px; }
.donut__hole { inset: 15px; background: var(--surface); }

/* ---------------------------------------------------------------- 侧栏 */
.sidebar { background: var(--surface); border-right-color: var(--line); }
.brand { padding: 18px 16px 16px; gap: 9px; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(145deg, #3D5BFF, #2440D8); box-shadow: 0 4px 10px -4px rgba(43, 75, 242, .6); font-size: 16px; }
/* 品牌方标（图片版）：去掉渐变底，让图标自己撑满 */
.brand__mark--logo { background: none; box-shadow: none; padding: 0; overflow: hidden; }
.brand__mark--logo img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.auth-brand .brand__mark--logo { background: none; border: 0; box-shadow: none; }
.brand__name { font-size: 15px; font-weight: 650; letter-spacing: .01em; }
.brand__sub { font-size: 9px; letter-spacing: .14em; margin-top: 3px; color: var(--ink-3); }

.nav { padding: 4px 10px 14px; }
.nav__label {
  padding: 14px 10px 5px;
  font-size: 9.5px;
  font-weight: 550;
  letter-spacing: .12em;
  color: var(--ink-3);
  text-transform: none;
}
[data-theme="dark"] .nav__label { color: #93A0B4; }
.nav__item {
  height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 450;
  color: var(--ink-2);
}
.nav__item .ico { width: 16px; height: 16px; color: var(--ink-3); }
.nav__item:hover { background: var(--surface-3); color: var(--ink); }
.nav__item.is-active { background: var(--brand-50); color: var(--brand); font-weight: 550; }
.nav__item.is-active .ico { color: var(--brand); }
.nav__item .badge { height: 18px; font-size: 9.5px; padding: 0 6px; }

.sidebar__foot { padding: 12px 14px 13px; background: var(--surface); }
.sidebar__foot .row { font-size: 11px; }

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  height: var(--topbar-h);
  padding: 0 28px;
  gap: 12px;
  background: rgba(255, 255, 255, .86);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(1.3) blur(12px);
}
[data-theme="dark"] .topbar { background: rgba(16, 21, 31, .88); }

/* 深色模式下亮色主按钮改用深色文字，保证对比度 */
[data-theme="dark"] .btn--primary,
[data-theme="dark"] .btn--primary:hover { color: #0A0E16; }
[data-theme="dark"] .btn--danger,
[data-theme="dark"] .btn--danger:hover { color: #0A0E16; }
[data-theme="dark"] .notice--warn { color: var(--warn); }
[data-theme="dark"] .cta-inner { background: #1B2A6B; }
[data-theme="dark"] .cta-inner .btn--white { color: #1B2A6B; }
[data-theme="dark"] .pager .is-active { color: #0A0E16; }
[data-theme="dark"] .pay-method.is-active { color: var(--ink); }
.topbar__crumb { font-size: 11.5px; gap: 7px; }
.topbar__crumb b { font-weight: 550; }
.topbar__actions { gap: 6px; }
.user-chip { height: 34px; border-radius: 999px; padding: 0 9px 0 4px; gap: 7px; }
.user-chip:hover { background: var(--surface-3); }
.user-chip__name { font-size: 12px; }
.user-chip__role { font-size: 9.5px; }
.avatar { width: 26px; height: 26px; font-size: 10px; }

.content {
  padding: 26px 30px 60px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}
.page { gap: 16px; }
.page-head { align-items: flex-end; gap: 16px; }
.page-title { font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.page-sub { font-size: 11.5px; margin-top: 4px; color: var(--ink-3); }
.page-actions { gap: 8px; }

.toolbar { gap: 8px; }
.toolbar__group { gap: 6px; }

/* 账户设置分区导航 */
.settings-nav {
  position: sticky;
  top: calc(var(--topbar-h) + 10px);
  z-index: 30;
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--sh-1);
  overflow-x: auto;
  scrollbar-width: none;
}
.settings-nav::-webkit-scrollbar { display: none; }
.settings-nav a {
  flex: none;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.settings-nav a:hover { background: var(--surface-2); color: var(--ink); }
#profile, #settle, #password, #account { scroll-margin-top: calc(var(--topbar-h) + 64px); }

/* ---------------------------------------------------------------- 新增：顶栏全局搜索 */
.top-search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  min-width: 228px;
  margin-left: 8px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 11.5px;
  text-align: left;
  transition: border-color .16s, background-color .16s;
}
.top-search:hover { border-color: var(--line-2); background: var(--surface); color: var(--ink-2); }
.top-search .ico { width: 14px; height: 14px; }
.top-search kbd {
  margin-left: auto;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-3);
  font: 9px/1.5 var(--font-mono);
}
@media (max-width: 1180px) {
  .top-search { min-width: 0; width: 34px; padding: 0; justify-content: center; }
  .top-search span, .top-search kbd { display: none; }
}

/* ---------------------------------------------------------------- 新增：命令面板 */
.cmd { position: fixed; inset: 0; z-index: 1600; display: none; }
.cmd.is-open { display: block; }
.cmd__scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, .42);
  backdrop-filter: blur(3px);
}
.cmd__panel {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  margin: 12vh auto 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--sh-3);
  overflow: hidden;
  animation: cmdIn .18s var(--ease) both;
}
@keyframes cmdIn {
  from { opacity: 0; transform: translateY(-8px) scale(.99); }
  to { opacity: 1; transform: none; }
}
.cmd__input-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.cmd__input-row .ico { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.cmd__input {
  flex: 1;
  min-width: 0;
  height: 28px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.cmd__input::placeholder { color: var(--ink-4); }
.cmd__esc { font: 9px/1.4 var(--font-mono); color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; }
.cmd__body { max-height: 380px; overflow: auto; padding: 6px; }
.cmd__group { padding: 7px 8px 4px; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; color: var(--ink-3); }
.cmd__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--ink-2);
  cursor: pointer;
}
.cmd__item:hover, .cmd__item.is-active { background: var(--brand-50); color: var(--ink); }
.cmd__item .ico { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.cmd__item-main { min-width: 0; flex: 1; }
.cmd__item-title { font-size: 12px; font-weight: 550; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd__item-sub { font-size: 10px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd__item-meta { font: 9.5px/1.4 var(--font-mono); color: var(--ink-3); flex: none; }
.cmd__empty { padding: 30px 16px; text-align: center; color: var(--ink-3); font-size: 12px; }
.cmd__foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 9.5px; color: var(--ink-3); }
.cmd__foot kbd { border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; background: var(--surface); font-family: var(--font-mono); }

/* ---------------------------------------------------------------- 新增：移动端底部导航 */
.mobile-tabs { display: none; }
@media (max-width: 860px) {
  .mobile-tabs {
    position: fixed;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: calc(100vw - 20px);
    max-width: 520px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 56px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 10px 30px -10px rgba(16, 24, 40, .22);
    backdrop-filter: saturate(1.4) blur(16px);
  }
  @supports not (background: color-mix(in srgb, red 50%, blue)) {
    .mobile-tabs { background: var(--surface); }
  }
  .mobile-tabs a,
  .mobile-tabs button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 11px;
    color: var(--ink-3);
    font-size: 9.5px;
    font-weight: 500;
    border: 0;
    background: transparent;
    padding: 0;
  }
  .mobile-tabs a .ico,
  .mobile-tabs button .ico { width: 18px; height: 18px; }
  .mobile-tabs a.is-active { background: var(--brand-50); color: var(--brand); }
  body.has-mobile-tabs .content { padding-bottom: 92px; }
  body.has-mobile-tabs .toasts { bottom: 86px; }
  body.sidebar-open .mobile-tabs { display: none; }
}

/* ---------------------------------------------------------------- 新增：待办 / 快捷 */
.todo-list { display: flex; flex-direction: column; }
.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 12px;
}
.todo-item:last-child { border-bottom: 0; }
.todo-item:hover { background: var(--surface-2); color: var(--ink); }
.todo-item .ico { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.todo-item b { margin-left: auto; font-size: 12px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.todo-item .go { width: 13px; height: 13px; color: var(--ink-4); }
.todo-item.is-alert b { color: var(--danger); }
.todo-item:hover { color: var(--ink); }

.quick-row { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 11.5px;
}
.quick-btn:hover { border-color: var(--line-2); background: var(--surface-2); color: var(--ink); }
.quick-btn .ico { width: 14px; height: 14px; color: var(--ink-3); }

/* ---------------------------------------------------------------- 新增：状态时间线 */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline__item { position: relative; display: flex; gap: 11px; padding-bottom: 16px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline__item:last-child::before { display: none; }
.timeline__dot {
  width: 11px;
  height: 11px;
  margin-top: 3px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--surface);
  flex: none;
  z-index: 1;
}
.timeline__item.is-done .timeline__dot { border-color: var(--ok); background: var(--ok); }
.timeline__item.is-current .timeline__dot { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.timeline__title { font-size: 11.5px; font-weight: 550; color: var(--ink); }
.timeline__time { font-size: 9.5px; color: var(--ink-3); font-family: var(--font-mono); margin-top: 1px; }

/* ---------------------------------------------------------------- 新增：筛选胶囊 */
.filter-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
}
.filter-chip b { font-size: 9.5px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.filter-chip:hover { border-color: var(--line-2); color: var(--ink); }
.filter-chip.is-active { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.filter-chip.is-active b { color: var(--brand); }
.filter-chips--scroll {
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  padding-bottom: 12px !important;
}
.filter-chips--scroll::-webkit-scrollbar { display: none; }
.filter-chips--scroll { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
@media (max-width: 620px) {
  .filter-chip { height: 28px; padding: 0 10px; font-size: 11px; flex: none; }
}

/* ---------------------------------------------------------------- 登录 / 入驻 */
.auth-body { background: var(--surface); }
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  min-height: 100vh;
}
.auth-brandpanel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 44px 28px;
  background: #101C42;
  color: #fff;
  overflow: hidden;
}
.auth-brandpanel:after {
  content: "";
  position: absolute;
  right: -160px;
  top: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 112, 255, .28), transparent 66%);
  pointer-events: none;
}
.auth-brand { position: relative; z-index: 1; padding: 0; color: #fff; }
.auth-brand .brand__mark { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); box-shadow: none; color: #fff; }
.auth-brand .brand__name { color: #fff; }
.auth-brand .brand__sub { color: rgba(255, 255, 255, .48); }
.auth-pitch { position: relative; z-index: 1; margin: auto 0; padding: 44px 0; max-width: 460px; }
.auth-pitch .eyebrow {
  height: 26px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #C9D4FF;
}
.auth-pitch .eyebrow .dot { background: #8FA6FF; box-shadow: 0 0 0 3px rgba(143, 166, 255, .16); }
.auth-pitch h1 {
  margin: 20px 0 0;
  font-size: clamp(32px, 3.4vw, 42px);
  line-height: 1.22;
  letter-spacing: -.035em;
  font-weight: 650;
  color: #fff;
}
.auth-pitch h1 em {
  font-style: normal;
  color: #AFC0FF;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.auth-pitch p {
  margin-top: 16px;
  max-width: 390px;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .62);
}
.auth-points { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.auth-points li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .76); }
.auth-points .ico { width: 14px; height: 14px; color: #9FB3FF; }
.auth-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 18px;
}
.auth-metrics b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.02em; color: #fff; }
.auth-metrics span { display: block; margin-top: 3px; font-size: 10px; color: rgba(255, 255, 255, .46); }

.auth-main {
  display: flex;
  flex-direction: column;
  padding: 26px 46px 24px;
  background: var(--surface);
  min-width: 0;
}
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-back { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); }
.auth-back:hover { color: var(--ink); }
.auth-back .ico { width: 13px; height: 13px; }
.auth-card {
  width: min(400px, 100%);
  margin: auto;
  padding: 8px 0;
}
.auth-card--wide { width: min(560px, 100%); }
.auth-card__head { margin-bottom: 22px; }
.auth-card__step {
  font: 9px/1.4 var(--font-mono);
  letter-spacing: .16em;
  color: var(--brand);
  margin-bottom: 9px;
}
.auth-card__head h2 { font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.auth-card__head p { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.auth-submit { margin-top: 22px; }
.auth-switch { margin-top: 14px; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.auth-switch a, .auth-links a { color: var(--brand); font-weight: 550; }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 11px; color: var(--ink-3); flex-wrap: wrap; }
.auth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  font-size: 10px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.auth-foot a { color: var(--ink-2); }
.auth-form-grid { gap: 13px 14px; }
.auth-form-grid .hint { font-size: 10px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
  .auth-brandpanel { padding: 20px 22px 22px; min-height: 0; }
  .auth-brandpanel:after { display: none; }
  .auth-pitch { padding: 20px 0 0; margin: 0; max-width: none; }
  .auth-pitch .eyebrow { display: none; }
  .auth-pitch h1 { margin-top: 0; font-size: 26px; line-height: 1.3; }
  .auth-pitch p { margin-top: 8px; font-size: 11.5px; line-height: 1.7; }
  .auth-points, .auth-metrics { display: none; }
  .auth-main { padding: 18px 18px 22px; }
  .auth-card { margin: 24px auto 0; }
  .auth-card--wide { width: 100%; }
  .auth-card__head { margin-bottom: 18px; }
  .auth-card__head h2 { font-size: 21px; }
  .auth-foot { padding-top: 20px; }
}
@media (max-width: 520px) {
  .auth-form-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-form-grid .span-2 { grid-column: auto; }
  .auth-brandpanel { padding: 18px 16px 18px; }
  .auth-main { padding: 14px 14px 20px; }
  .auth-links { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------------------------------------------------------------- 落地页 */
.site-nav { height: 60px; max-width: 1200px; gap: 30px; }
.site-nav__links a { font-size: 12.5px; color: var(--ink-2); }
.site-nav__actions { gap: 7px; }
.hero-wrap::before {
  background:
    radial-gradient(620px 320px at 18% 18%, rgba(43, 75, 242, .10), transparent 64%),
    radial-gradient(520px 280px at 88% 4%, rgba(43, 75, 242, .05), transparent 60%);
}
.hero { max-width: 1200px; padding: 64px 28px 56px; gap: 56px; }
.hero h1 { font-size: clamp(34px, 4.1vw, 46px); letter-spacing: -.035em; font-weight: 680; }
.hero h1 em {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--brand);
  background-image: linear-gradient(var(--brand-100), var(--brand-100));
  background-size: 100% 7px;
  background-position: 0 88%;
  background-repeat: no-repeat;
}
.hero .lead { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.hero__meta { font-size: 11.5px; gap: 16px; }
.hero-card {
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 50px -24px rgba(16, 24, 40, .28);
  animation: none;
}
.hero-float { border-radius: 10px; box-shadow: var(--sh-2); animation: none; }
.stat-strip { border-radius: 12px; box-shadow: none; }
.stat-strip b { font-size: 22px; font-weight: 650; }
.stat-strip span { font-size: 11px; }
.section { max-width: 1200px; padding: 60px 28px; }
.section__head h2 { font-size: 26px; font-weight: 650; }
.section__head p { font-size: 13px; }
.kicker { font-size: 10px; letter-spacing: .14em; font-weight: 650; }
.feature-grid { gap: 12px; }
.feature { border-radius: 12px; padding: 22px; transition: border-color .18s, box-shadow .18s; }
.feature:hover { transform: none; box-shadow: var(--sh-1); border-color: var(--line-2); }
.feature__ico { width: 36px; height: 36px; border-radius: 9px; margin-bottom: 14px; }
.feature h3 { font-size: 14px; }
.feature p { font-size: 12px; line-height: 1.72; color: var(--ink-3); }
.flow { gap: 10px; }
.flow__step { border-radius: 11px; padding: 18px; }
.flow__step::after { display: none; }
.flow__step h4 { font-size: 13px; }
.flow__step p { font-size: 11.5px; }
.cta-inner {
  border-radius: 14px;
  padding: 36px 38px;
  background: var(--brand);
  box-shadow: none;
}
.cta-inner::after { display: none; }
.cta-inner h2 { font-size: 24px; }
.cta-inner p { font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.site-foot__inner { max-width: 1200px; padding: 24px 28px; font-size: 11px; }
.site-foot__links { gap: 16px; }

/* 登录 / 入驻弹窗 */
#loginModal .modal__panel, #registerModal .modal__panel { width: min(440px, 100%); }
#loginModal .modal__head, #registerModal .modal__head { padding-bottom: 10px; }

/* ---------------------------------------------------------------- 收银台 */
.pay-body {
  background:
    radial-gradient(780px 420px at 12% -10%, rgba(43, 75, 242, .07), transparent 62%),
    radial-gradient(640px 360px at 94% -6%, rgba(43, 75, 242, .045), transparent 58%),
    var(--bg);
}
.pay-page { padding: 24px 20px 32px; }
.pay-top { width: min(920px, 100%); margin-bottom: 16px; }
.pay-brand .brand__mark { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.pay-brand__name { font-size: 13px; }
.pay-brand__sub { font-size: 9.5px; letter-spacing: .1em; }
.pay-safe { font-size: 10.5px; }
.pay-card {
  width: min(920px, 100%);
  border-radius: 16px;
  box-shadow: 0 22px 60px -28px rgba(16, 24, 40, .25);
}
.pay-left {
  padding: 30px 32px 28px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.pay-kicker { height: 22px; border-radius: 6px; font-size: 10px; }
.pay-merchant { margin-top: 16px; }
.pay-merchant .avatar { width: 30px; height: 30px; border-radius: 8px; font-size: 11px; }
.pay-merchant__name { font-size: 12.5px; }
.pay-merchant__meta { font-size: 10.5px; }
.pay-product { margin-top: 20px; font-size: 15px; }
.pay-amount { margin: 12px 0 3px; }
.pay-amount .int { font-size: 46px; font-weight: 680; }
.pay-amount .dec { font-size: 22px; }
.pay-amount-note { font-size: 11px; }
.pay-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
}
.pay-step { position: relative; padding-top: 15px; min-width: 0; }
.pay-step:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 1px;
  background: var(--line);
}
.pay-step:last-child:before { right: 50%; }
.pay-step:first-child:before { left: 0; }
.pay-step__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--surface);
}
.pay-step b { display: block; font-size: 9.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.pay-step.is-done .pay-step__dot { border-color: var(--ok); background: var(--ok); }
.pay-step.is-done:before { background: var(--ok); }
.pay-step.is-done b { color: var(--ink-2); }
.pay-step.is-current .pay-step__dot { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.pay-step.is-current b { color: var(--brand); font-weight: 600; }
.pay-meta { margin-top: 22px; }
.pay-meta__row { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.pay-trust { padding-top: 18px; font-size: 10px; color: var(--ink-3); }
.pay-right { padding: 26px 30px 28px; }
.pay-right__title { font-size: 12.5px; }
.pay-timer b { font-size: 12px; }
.pay-methods { gap: 7px; margin-bottom: 16px; }
.pay-method { height: 40px; border-radius: 8px; font-size: 11.5px; }
.pay-method:hover { transform: none; }
.pay-qr { width: 184px; height: 184px; border-radius: 12px; padding: 9px; box-shadow: none; }
.pay-qr__scan { left: 9px; right: 9px; }
.pay-hint { font-size: 11px; }
.pay-actions { margin-top: 14px; gap: 8px; }
.pay-state { border-radius: 16px; box-shadow: var(--sh-2); padding: 38px 32px 28px; }
.pay-state h1 { font-size: 20px; }
.state-amount { font-size: 32px; }
.state-card { border-radius: 10px; }
.pay-foot { font-size: 10.5px; color: var(--ink-3); }

/* ---------------------------------------------------------------- 安装 / 状态页 */
.pay-state, .install-card { border-radius: 14px; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1100px) {
  :root { --sidebar-w: 212px; }
  .content { padding: 22px 22px 52px; }
}
@media (max-width: 860px) {
  :root { --sidebar-w: 272px; }
  .content { padding: 18px 16px 88px; }
  .topbar { padding: 0 16px; gap: 8px; }
  .topbar__crumb span, .topbar__crumb .ico { display: none; }
  .topbar__crumb b { font-size: 13px; }
  .top-search { display: none; }
  .page-title { font-size: 21px; }
  .page-head { align-items: flex-start; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1 1 auto; }
  .site-nav { height: 58px; padding: 0 18px; }
  .hero { padding: 40px 18px 36px; gap: 34px; }
  .hero h1 { font-size: 32px; }
  .section { padding: 46px 18px; }
  .stat-strip { border-radius: 10px; }
  .pay-card { border-radius: 12px; }
  .pay-left { padding: 24px 22px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pay-right { padding: 22px; }
  .pay-amount .int { font-size: 40px; }
  /* 移动端操作栏：收银台主按钮固定 */
  .pay-card .pay-actions { position: sticky; bottom: 0; background: var(--surface); padding-top: 8px; }
}
@media (max-width: 620px) {
  .content { padding: 16px 13px 88px; }
  .page-title { font-size: 20px; }
  .topbar__crumb { display: none; }
  .topbar { padding: 0 12px; gap: 4px; }
  .topbar__actions { gap: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .card__head { padding: 13px 14px; flex-wrap: wrap; align-items: center; gap: 8px; }
  .card__head > .small.muted { display: none; }
  .card__head .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .card__head .seg::-webkit-scrollbar { display: none; }
  .card__head .seg a, .card__head .seg button { flex: none; }
  .card__body { padding: 14px; }
  .table th, .table td { padding-left: 12px; padding-right: 12px; }
  .stat { padding: 12px 13px; }
  .stat__label { font-size: 10px; }
  .stat__value { font-size: 21px; letter-spacing: -.03em; }
  .stat__value .unit { font-size: 10px; }
  .stat__foot { font-size: 9.5px; gap: 4px; flex-wrap: wrap; }
  .stat__ico { width: 23px; height: 23px; }
  .stat__ico .ico { width: 12px; height: 12px; }
  .mobile-tabs { width: calc(100vw - 16px); bottom: calc(8px + env(safe-area-inset-bottom)); }

  /* 订单筛选：搜索占整行，日期并排，按钮不溢出 */
  .orders-filter { width: 100%; }
  .orders-filter .search { width: 100%; }
  .orders-filter .search .input { width: 100% !important; }
  .orders-filter input[type="date"] { flex: 1 1 100%; width: 100% !important; min-width: 0; }
  .orders-filter > .muted.small { display: none; }
  .orders-filter .select { width: 100% !important; }
  .orders-filter .btn { flex: 1 1 auto; }

  /* 订单表格变卡片 */
  .table--orders,
  .table--orders tbody { display: block; }
  .table--orders thead { display: none; }
  .table--orders tbody { padding: 10px; }
  .table--orders tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    margin-bottom: 9px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
  }
  .table--orders tr:last-child { margin-bottom: 0; }
  .table--orders td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left;
  }
  .table--orders td:nth-child(2) { grid-column: 1 / -1; grid-row: 1; margin-bottom: 5px; }
  .table--orders td:nth-child(2) .cell-main { max-width: none !important; white-space: normal; font-weight: 600; }
  .table--orders td:nth-child(2) .cell-sub { margin-top: 2px; font-size: 9.5px; }
  .table--orders td:nth-child(1) { grid-column: 1; grid-row: 2; font-size: 9.5px; color: var(--ink-3); }
  .table--orders td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; font-size: 14px; font-weight: 650; }
  .table--orders td:nth-child(7) { grid-column: 2; grid-row: 3; margin-top: 3px; text-align: right; }
  .table--orders td:nth-child(7) .row { justify-content: flex-end; }
  .table--orders tr:hover td { background: transparent; }
  .table-wrap:has(.table--orders) { overflow: visible; }

  /* 退款表格变卡片 */
  .table--refunds,
  .table--refunds tbody { display: block; }
  .table--refunds thead { display: none; }
  .table--refunds tbody { padding: 10px; }
  .table--refunds tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    margin-bottom: 9px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
  }
  .table--refunds tr:last-child { margin-bottom: 0; }
  .table--refunds td { display: block; min-width: 0; padding: 0; border: 0; text-align: left; }
  .table--refunds td:nth-child(3) { grid-column: 1 / -1; grid-row: 1; margin-bottom: 5px; }
  .table--refunds td:nth-child(3) .cell-main { max-width: none !important; white-space: normal; font-weight: 600; }
  .table--refunds td:nth-child(3) .cell-sub { margin-top: 2px; font-size: 9.5px; }
  .table--refunds td:nth-child(1) { grid-column: 1; grid-row: 2; font-size: 9.5px; color: var(--ink-3); }
  .table--refunds td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; font-size: 14px; font-weight: 650; }
  .table--refunds td:nth-child(2) { grid-column: 1; grid-row: 3; font-size: 9px; color: var(--ink-3); }
  .table--refunds td:nth-child(6) { grid-column: 2; grid-row: 3; margin-top: 3px; text-align: right; }
  .table--refunds td:nth-child(6) .row { justify-content: flex-end; }
  .table--refunds tr:hover td { background: transparent; }
  .table-wrap:has(.table--refunds) { overflow: visible; }

  .order-detail-mobile {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 7px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--brand);
    font-size: 10px;
    font-weight: 550;
  }
  .order-detail-mobile .ico { width: 11px; height: 11px; }
  .drawer__panel { width: 100% !important; max-width: 100%; }
  .drawer__foot { flex-wrap: wrap; gap: 8px; }
  .drawer__foot .btn { flex: 1 1 auto; }

  /* 结算表格变卡片 */
  .table--settles,
  .table--settles tbody { display: block; }
  .table--settles thead { display: none; }
  .table--settles tbody { padding: 10px; }
  .table--settles tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    margin-bottom: 9px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
  }
  .table--settles tr:last-child { margin-bottom: 0; }
  .table--settles td { display: block; min-width: 0; padding: 0; border: 0; text-align: left; }
  .table--settles td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 600; color: var(--ink); }
  .table--settles td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; font-size: 14px; font-weight: 650; }
  .table--settles td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 9.5px; color: var(--ink-3); }
  .table--settles td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
  .table--settles tr:hover td { background: transparent; }
  .table-wrap:has(.table--settles) { overflow: visible; }

  /* 后台订单表格变卡片 */
  .table--admin-orders,
  .table--admin-orders tbody { display: block; }
  .table--admin-orders thead { display: none; }
  .table--admin-orders tbody { padding: 10px; }
  .table--admin-orders tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    margin-bottom: 9px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
  }
  .table--admin-orders tr:last-child { margin-bottom: 0; }
  .table--admin-orders td { display: block; min-width: 0; padding: 0; border: 0; text-align: left; }
  .table--admin-orders td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .table--admin-orders td:nth-child(8) { grid-column: 2; grid-row: 1; justify-self: end; }
  .table--admin-orders td:nth-child(3) { grid-column: 1; grid-row: 2; }
  .table--admin-orders td:nth-child(3) .cell-main { max-width: none !important; font-weight: 600; }
  .table--admin-orders td:nth-child(3) .cell-sub { font-size: 9.5px; }
  .table--admin-orders td:nth-child(6) { grid-column: 2; grid-row: 2; text-align: right; font-size: 14px; font-weight: 650; }
  .table--admin-orders td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; margin: 2px 0; }
  .table--admin-orders td:nth-child(4) .row { max-width: 100%; }
  .table--admin-orders td:nth-child(4) .truncate { max-width: 100% !important; white-space: normal; }
  .table--admin-orders td:nth-child(4) .cell-sub { font-size: 9px; }
  .table--admin-orders td:nth-child(2) { grid-column: 1; grid-row: 4; font-size: 9.5px; color: var(--ink-3); }
  .table--admin-orders td:nth-child(9) { grid-column: 2; grid-row: 4; text-align: right; }
  .table--admin-orders td:nth-child(9) .order-actions { display: inline-flex; }
  .table--admin-orders td:nth-child(9) .btn { height: 26px; padding: 0 9px; font-size: 10px; }
  .table--admin-orders tr:hover td { background: transparent; }
  .table-wrap:has(.table--admin-orders) { overflow: visible; }

  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 13.5px; }
  .cta-inner { padding: 28px 22px; border-radius: 12px; }
}

/* ---------------------------------------------------------------- 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  .cmd__panel { animation: none; }
}

/* ---------------------------------------------------------------- 自定义文件选择 */
.file-field { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-field__input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.file-field__input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.file-field__name { font-size: 12px; color: var(--ink-3); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-field__preview { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

/* ---------------------------------------------------------------- 工单会话 */
.ticket-thread { display: flex; flex-direction: column; gap: 12px; }
.ticket-msg { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.ticket-msg.is-merchant { margin-right: 28px; }
.ticket-msg.is-admin { margin-left: 28px; background: rgba(43, 75, 242, .05); border-color: rgba(43, 75, 242, .22); }
.ticket-msg__meta { font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }
.ticket-msg__body { font-size: 13px; line-height: 1.65; color: var(--ink); word-break: break-word; }
