/* assets/css/base.css */
/* ==========================================================================
   易支付 UI · base.css
   设计令牌 / 重置 / 排版 / 工具类 / 动效基建
   ========================================================================== */

:root {
  color-scheme: light;

  /* 品牌色 */
  --brand: #3a5cf5;
  --brand-600: #2c4ae0;
  --brand-700: #2137b0;
  --brand-50: #eef2ff;
  --brand-100: #e2e8ff;
  --brand-ring: rgba(58, 92, 245, .16);

  /* 中性色 */
  --bg: #f5f6f9;
  --bg-soft: #fafbfd;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --surface-3: #eff1f6;
  --line: #e7e9f0;
  --line-2: #d7dbe6;
  --ink: #0e1526;
  --ink-2: #495469;
  --ink-3: #8b95a8;
  --ink-4: #adb6c6;

  /* 语义色 */
  --ok: #0f9f6e;
  --ok-50: #e7f7f0;
  --warn: #c07414;
  --warn-50: #fdf3e2;
  --danger: #de3b42;
  --danger-50: #fdeceb;
  --info: #0e8f9c;
  --info-50: #e5f6f7;

  /* 支付品牌 */
  --alipay: #1677ff;
  --wechat: #07c160;
  --qq: #12b7f5;

  /* 圆角 */
  --r-xs: 6px;
  --r-sm: 9px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 999px;

  /* 阴影 */
  --sh-1: 0 1px 2px rgba(14, 21, 38, .05);
  --sh-2: 0 2px 4px rgba(14, 21, 38, .04), 0 12px 28px -16px rgba(14, 21, 38, .24);
  --sh-3: 0 34px 80px -34px rgba(14, 21, 38, .38);
  --sh-brand: 0 10px 24px -12px rgba(58, 92, 245, .7);

  /* 布局 */
  --topbar-h: 62px;
  --sidebar-w: 264px;

  /* 动效 */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .22s;

  --font-sans: "Inter", "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: #6d88ff;
  --brand-600: #8ea2ff;
  --brand-700: #4d6bee;
  --brand-50: #141d33;
  --brand-100: #1b2542;
  --brand-ring: rgba(109, 136, 255, .22);

  --bg: #090c13;
  --bg-soft: #0c1018;
  --surface: #101620;
  --surface-2: #151c28;
  --surface-3: #1b2332;
  --line: #212a3a;
  --line-2: #2c3749;
  --ink: #e8eef8;
  --ink-2: #a2adc1;
  --ink-3: #6f7e97;
  --ink-4: #55617a;

  --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, .45);
  --sh-2: 0 2px 4px rgba(0, 0, 0, .3), 0 14px 32px -18px rgba(0, 0, 0, .85);
  --sh-3: 0 34px 80px -30px #000;
  --sh-brand: 0 10px 26px -12px rgba(109, 136, 255, .55);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body[data-portal="admin"] { zoom: var(--admin-zoom, 1); }

.zoom-panel { width: 220px; }
.zoom-range { width: 100%; accent-color: var(--brand); }
body[data-portal="admin"] .topbar-zoom .cleanup-menu__panel { right: 0; left: auto; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--ink-4); }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -.011em; color: var(--ink); }
h1 { font-size: 26px; line-height: 1.25; }
h2 { font-size: 19px; line-height: 1.35; }
h3 { font-size: 15px; line-height: 1.45; }

.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-2); }
.small { font-size: 12px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
[hidden] { display: none !important; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 工具类 ---------- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.center { display: flex; align-items: center; justify-content: center; }
.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mt-auto { margin-top: auto; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hide { display: none !important; }
.only-mobile { display: none !important; }

.grid { display: grid; gap: 16px; }
.grid-split { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }

/* ---------- 动效基建 ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.975); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes sheetUp {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes shimmer {
  0%   { background-position: -320px 0; }
  100% { background-position: 320px 0; }
}

.anim-rise { animation: riseIn .5s var(--ease) both; }
.anim-fade { animation: fadeIn .35s var(--ease) both; }

/* 子元素依次入场：用 :nth-child 控制，避免依赖 JS */
.stagger > * { animation: riseIn .55s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s; }
.stagger > *:nth-child(2) { animation-delay: .06s; }
.stagger > *:nth-child(3) { animation-delay: .10s; }
.stagger > *:nth-child(4) { animation-delay: .14s; }
.stagger > *:nth-child(5) { animation-delay: .18s; }
.stagger > *:nth-child(6) { animation-delay: .22s; }
.stagger > *:nth-child(7) { animation-delay: .255s; }
.stagger > *:nth-child(8) { animation-delay: .29s; }
.stagger > *:nth-child(9) { animation-delay: .32s; }
.stagger > *:nth-child(10) { animation-delay: .35s; }
.stagger > *:nth-child(n+11) { animation-delay: .37s; }

.lift {
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.lift:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: var(--sh-2);
}

.settle-tip-trigger {
  cursor: default;
  border-bottom: 1px dotted var(--line-2);
}
.settle-tip {
  position: fixed;
  z-index: 1200;
  width: 210px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-2);
  pointer-events: none;
}
.settle-tip[hidden] {
  display: none;
}
.settle-tip__name {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 2px;
}
.settle-tip__account {
  font-size: 11px;
  color: var(--ink-3);
  word-break: break-all;
  margin-bottom: 8px;
}
.settle-tip__qr {
  display: block;
  width: 100%;
  max-height: 186px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px;
}
.settle-tip__qr[hidden] {
  display: none;
}

.log-change {
  margin-top: 6px;
}
.log-change > summary {
  cursor: pointer;
  color: var(--brand);
  font-size: 12px;
  user-select: none;
}
.log-change__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.log-change__title {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.log-json {
  margin: 0;
  padding: 8px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
@media (max-width: 720px) {
  .log-change__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cleanup-menu {
  position: relative;
}
.cleanup-menu > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.cleanup-menu > summary::-webkit-details-marker {
  display: none;
}
.cleanup-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  width: 260px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--sh-3);
}
.cleanup-menu__hint {
  padding: 6px 10px 7px;
  font-size: 11px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.cleanup-menu__item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.cleanup-menu__item:hover {
  background: var(--surface-2);
  color: var(--danger);
}
.cleanup-menu__item--icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 尊重系统「减少动态效果」 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 响应式基建 ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .only-mobile { display: inline-flex !important; }
  .hide-mobile { display: none !important; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 22px; }
}

/* 深浅模式切换过渡 */
html.theme-animating,
html.theme-animating *,
html.theme-animating *::before,
html.theme-animating *::after {
  transition-property: background-color, color, border-color, fill, stroke, box-shadow !important;
  transition-duration: .52s !important;
  transition-timing-function: ease !important;
}

/* 深浅模式切换：View Transitions 圆形动画（圆心与方向由 app.js 设置变量） */
:root {
  --theme-origin-x: 50%;
  --theme-origin-y: 50%;
  --theme-radius: 150vmax;
  --theme-old-z: 1;
  --theme-new-z: 2;
  --theme-old-anim: none;
  --theme-new-anim: none;
}

::view-transition-old(root) {
  z-index: var(--theme-old-z, 1);
  animation: var(--theme-old-anim, none);
}

::view-transition-new(root) {
  z-index: var(--theme-new-z, 2);
  animation: var(--theme-new-anim, none);
}

@keyframes theme-expand {
  from {
    clip-path: circle(0px at var(--theme-origin-x) var(--theme-origin-y));
  }
  to {
    clip-path: circle(var(--theme-radius) at var(--theme-origin-x) var(--theme-origin-y));
  }
}

@keyframes theme-collapse {
  from {
    clip-path: circle(var(--theme-radius) at var(--theme-origin-x) var(--theme-origin-y));
  }
  to {
    clip-path: circle(0px at var(--theme-origin-x) var(--theme-origin-y));
  }
}

/* assets/css/components.css */
/* ==========================================================================
   易支付 UI · components.css
   ========================================================================== */

/* ---------- 图标 ---------- */
.ico {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--sm { width: 15px; height: 15px; }
.ico--lg { width: 22px; height: 22px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-2);
  background: transparent;
  transition: transform .16s var(--ease), background-color .18s, border-color .18s, color .18s, box-shadow .18s;
  will-change: transform;
  user-select: none;
}
.btn:active { transform: scale(.975); }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn .ico { width: 16px; height: 16px; }

.btn--primary {
  color: #fff;
  background: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(58, 92, 245, .3);
}
.btn--primary:hover {
  background: var(--brand-600);
  transform: translate3d(0, -1px, 0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), var(--sh-brand);
}

.btn--ghost {
  border-color: var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: var(--sh-1);
}
.btn--ghost:hover { border-color: var(--ink-4); color: var(--ink); }

.btn--soft { background: var(--brand-50); color: var(--brand); }
.btn--soft:hover { background: var(--brand-100); }

.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { filter: brightness(.94); transform: translate3d(0, -1px, 0); }

.btn--ghost-danger { color: var(--danger); border-color: var(--line-2); background: var(--surface); }
.btn--ghost-danger:hover { border-color: var(--danger); background: var(--danger-50); }
.btn--bold { font-weight: 800 !important; }

.btn--link { height: auto; padding: 0; color: var(--brand); font-weight: 600; }
.btn--link:hover { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }

.btn--sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn--sm .ico { width: 14px; height: 14px; }
.btn--lg { height: 46px; padding: 0 22px; font-size: 14px; border-radius: 12px; }
.btn--block { width: 100%; }

.btn.is-loading { color: transparent !important; pointer-events: none; position: relative; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn--ghost.is-loading::after { border-color: var(--line-2); border-top-color: var(--brand); }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--ink-3);
  transition: background-color .18s, color .18s, transform .18s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }

.dot-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
  box-sizing: content-box;
}

/* 金额明细 */
.amount-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.amount-breakdown__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--ink-2);
}
.amount-breakdown__row b { font-variant-numeric: tabular-nums; }
.amount-breakdown__row--total {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px dashed var(--line-2);
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.amount-breakdown__row--total b { font-size: 17px; letter-spacing: -.02em; color: var(--brand); }

.rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rate-row:first-child { padding-top: 0; }
.rate-row:last-child { padding-bottom: 0; border-bottom: 0; }
.rate-row .input { width: 132px; flex: none; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--surface-3);
}
.badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.badge--ok { color: var(--ok); background: var(--ok-50); }
.badge--warn { color: var(--warn); background: var(--warn-50); }
.badge--danger { color: var(--danger); background: var(--danger-50); }
.badge--info { color: var(--info); background: var(--info-50); }
.badge--brand { color: var(--brand); background: var(--brand-50); }
.badge--muted { color: var(--ink-3); background: var(--surface-3); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.card__title { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.card__sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.card__body { padding: 20px; }
.card__body--flush { padding: 0; }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

/* ---------- 数据卡 ---------- */
.stat {
  padding: 17px 19px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s;
}
.stat:hover { transform: translate3d(0, -2px, 0); box-shadow: var(--sh-2); border-color: var(--line-2); }
.stat__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat__label { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.stat__ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-50);
}
.stat__ico .ico { width: 16px; height: 16px; }
.stat__value {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.stat__value .unit { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-right: 2px; }
.stat__value .unit:last-child { margin-right: 0; margin-left: 3px; }
.stat__foot { margin-top: 8px; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); }

.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 12px; }
.delta--up { color: var(--ok); }
.delta--down { color: var(--danger); }
.delta--flat { color: var(--ink-3); }

/* 成功率进度条 */
.ratebar { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.ratebar__track { width: 96px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ratebar__fill { display: block; height: 100%; border-radius: 999px; background: var(--ok); }
.ratebar__text { font-size: 12px; font-weight: 650; color: var(--ok); font-variant-numeric: tabular-nums; }
.ratebar--low .ratebar__fill { background: var(--danger); }
.ratebar--low .ratebar__text { color: var(--danger); }

.segrate { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; flex: 0 0 auto; position: relative; }
.segrate[data-tip]::after {
  content: attr(data-tip);
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 20;
  padding: 7px 10px; border-radius: 8px; background: #fff; color: #1f2635;
  border: 1px solid #e7e9f0; box-shadow: 0 8px 24px rgba(23, 43, 77, .14);
  font-size: 12px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  opacity: 0; transform: translateY(2px); pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.segrate[data-tip]::before {
  content: ""; position: absolute; right: 18px; bottom: calc(100% + 3px); z-index: 21;
  border: 5px solid transparent; border-top-color: #fff;
  opacity: 0; pointer-events: none; transition: opacity .16s ease;
}
.segrate[data-tip]:hover::after,
.segrate[data-tip]:focus-visible::after,
.segrate[data-tip]:hover::before,
.segrate[data-tip]:focus-visible::before { opacity: 1; transform: translateY(0); }
.segrate__segs { display: inline-flex; gap: 2px; }
.segrate__segs i { display: block; width: 6px; height: 10px; border-radius: 2px; background: var(--line); }
.segrate__segs i.on { background: var(--ok); }
.segrate__segs i.partial { background: linear-gradient(90deg, var(--ok) 0 var(--seg, 50%), var(--line) var(--seg, 50%) 100%); }
.segrate__text { font-size: 12px; font-weight: 700; color: var(--ok); font-variant-numeric: tabular-nums; }
.segrate--warn .segrate__segs i.on { background: var(--warn); }
.segrate--warn .segrate__segs i.partial { background: linear-gradient(90deg, var(--warn) 0 var(--seg, 50%), var(--line) var(--seg, 50%) 100%); }
.segrate--warn .segrate__text { color: var(--warn); }
.segrate--low .segrate__segs i.on { background: var(--danger); }
.segrate--low .segrate__segs i.partial { background: linear-gradient(90deg, var(--danger) 0 var(--seg, 50%), var(--line) var(--seg, 50%) 100%); }
.segrate--low .segrate__text { color: var(--danger); }

.stat__foot--single { flex-wrap: nowrap !important; gap: 4px; white-space: nowrap; font-size: 10px; letter-spacing: -.02em; }
.stat__foot--single .delta { font-size: 9px; padding: 2px 5px; flex: 0 0 auto; }
.stat__foot--single > span:not(.delta) { font-size: 10px; }


/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; font-size: 13px; }
.table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table th:first-child { border-radius: 0; }
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink-2);
}
.table tbody tr { transition: background-color .16s; animation: fadeIn .36s var(--ease) both; }
.table tbody tr:hover { background: var(--brand-50); }
.table tbody tr:hover td { color: var(--ink); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(1) { animation-delay: 0ms; }
.table tbody tr:nth-child(2) { animation-delay: 18ms; }
.table tbody tr:nth-child(3) { animation-delay: 36ms; }
.table tbody tr:nth-child(4) { animation-delay: 54ms; }
.table tbody tr:nth-child(5) { animation-delay: 72ms; }
.table tbody tr:nth-child(6) { animation-delay: 90ms; }
.table tbody tr:nth-child(7) { animation-delay: 108ms; }
.table tbody tr:nth-child(8) { animation-delay: 126ms; }
.table tbody tr:nth-child(n+9) { animation-delay: 140ms; }

.table .cell-main { color: var(--ink); font-weight: 600; }
.table .cell-sub { color: var(--ink-3); font-size: 11.5px; margin-top: 1px; }
.table .t-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .t-amount { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.table .t-actions { text-align: right; white-space: nowrap; }
.table--center th,
.table--center td,
.table--center .t-num,
.table--center .t-amount,
.table--center .t-actions { text-align: center !important; }
.table--center td .row { justify-content: center; }
.table--center .t-actions .row { justify-content: center !important; }
.table--center th.col-merchant,
.table--center td.col-merchant { text-align: left !important; }
.table--center td.col-merchant .row { justify-content: flex-start; }
.table--center th.col-actions,
.table--center td.col-actions { text-align: right !important; }
.table--center td.col-actions .row { justify-content: flex-end !important; }

/* 订单操作下拉 */
.order-actions { position: relative; display: inline-block; z-index: 5; }
.order-actions.is-open { z-index: 999; }
.order-actions__menu {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  min-width: 158px;
  display: none;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--sh-3);
}
.table-wrap.is-order-menu-open { overflow: visible; }
.card.is-order-menu-open { overflow: visible; }
.order-actions.is-open .order-actions__menu { display: block; }
.order-actions__menu.is-open { display: block; }
.order-actions__menu form { display: block; margin: 0; }
.order-actions__item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.order-actions__item:hover { background: var(--surface-2); color: var(--ink); }
.order-actions__item--danger { color: var(--danger); }

/* 滑块验证码 */
.slider-captcha { margin: 4px 0 2px; }
.slider-captcha__image {
  position: relative;
  height: 120px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background-size: cover;
  background-position: center;
}
.slider-captcha__reset {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: rgba(15, 23, 42, .45);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(3px);
}
.slider-captcha__reset:hover { background: rgba(15, 23, 42, .68); }
.slider-captcha__track {
  position: relative;
  height: 42px;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  touch-action: none;
  user-select: none;
}
.slider-captcha__target {
  position: absolute;
  top: 41px;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .25);
  border: 1px dashed rgba(255, 255, 255, .95);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18);
  transition: opacity .15s;
}
.slider-captcha__piece {
  position: absolute;
  top: 41px;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .28);
  pointer-events: none;
}
.slider-captcha.is-ok .slider-captcha__target { opacity: 0; }
.slider-captcha.is-ok .slider-captcha__piece { border-color: var(--ok); }
.slider-captcha__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--brand-50);
}
.slider-captcha__handle {
  position: absolute;
  left: 0;
  top: 3px;
  width: 46px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--sh-1);
  color: var(--brand);
  font-size: 22px;
  font-weight: 600;
  cursor: grab;
}
.slider-captcha__handle:active { cursor: grabbing; }
.slider-captcha__arrow { transform: translateY(-1px); }
.slider-captcha__hint { margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.slider-captcha.is-ok .slider-captcha__track { border-color: var(--ok); }
.slider-captcha.is-ok .slider-captcha__hint { color: var(--ok); }
.slider-captcha.is-error .slider-captcha__track { border-color: var(--danger); }
.slider-captcha.is-error .slider-captcha__hint { color: var(--danger); }
.table--compact td { padding: 9px 14px; }
.table--compact th { padding: 8px 14px; }

/* ---------- 空状态 ---------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 56px 24px;
  text-align: center;
}
.empty__ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface-3);
  color: var(--ink-3);
  margin-bottom: 6px;
}
.empty__ico .ico { width: 24px; height: 24px; }
.empty__title { font-size: 14px; font-weight: 600; color: var(--ink); }
.empty__text { font-size: 12.5px; color: var(--ink-3); max-width: 300px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 4px; }
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  transition: background-color .16s, color .16s;
}
.pager a:hover { background: var(--surface-3); color: var(--ink); }
.pager .is-active { background: var(--brand); color: #fff; font-weight: 600; }
.pager .is-disabled { opacity: .4; pointer-events: none; }
.pager .is-gap { pointer-events: none; color: var(--ink-4); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.hint { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

.input, .select, .textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b95a8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.input--mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .01em; }

.search { position: relative; }
.search .ico {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.search .input { padding-left: 33px; }

.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: 10px 0 0 10px; }
.input-group .btn { border-radius: 0 10px 10px 0; height: 38px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }

/* 开关 */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--line-2);
  transition: background-color .22s var(--ease);
  flex: none;
  position: relative;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(14, 21, 38, .28);
  transition: transform .22s var(--ease);
}
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translate3d(16px, 0, 0); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px var(--brand-ring); }

/* 复选 */
.check { display: inline-flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--brand);
  flex: none;
}

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tab {
  position: relative;
  padding: 10px 2px 12px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-3);
  transition: color .18s;
}
.tab:hover { color: var(--ink-2); }
.tab.is-active { color: var(--ink); font-weight: 650; }
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  animation: fadeIn .25s var(--ease) both;
}

.seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--surface-3);
  border-radius: 10px;
}
.seg a, .seg button {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg .is-active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--sh-1);
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--surface);
  transition: all .18s;
}
.chip:hover { border-color: var(--ink-4); }
.chip.is-active { border-color: var(--brand); background: var(--brand-50); color: var(--brand); font-weight: 600; }

/* ---------- 抽屉 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 26, .38);
  opacity: 0;
  transition: opacity .26s var(--ease);
  backdrop-filter: blur(1.5px);
}
.drawer__panel {
  position: relative;
  width: min(440px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--sh-3);
  transform: translate3d(24px, 0, 0);
  opacity: 0;
  transition: transform .3s var(--ease), opacity .26s var(--ease);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; opacity: 1; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__title { font-size: 15px; font-weight: 650; }
.drawer__body { padding: 20px; overflow-y: auto; flex: 1; }
.drawer__foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}
.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 26, .42);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .24s var(--ease);
}
.modal__panel {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(.975);
  transition: opacity .24s var(--ease), transform .3s var(--ease);
}
.modal--lg .modal__panel,
.modal__panel.modal--lg { width: min(640px, 100%); }
.modal.is-open { pointer-events: auto; }
.modal.is-open .modal__scrim { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 14px;
}
.modal__title { font-size: 16px; font-weight: 650; letter-spacing: -.012em; }
.modal__sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.modal__body { flex: 1 1 auto; min-height: 0; padding: 6px 22px 20px; overflow-y: auto; }
.modal__head, .modal__foot { flex: 0 0 auto; }
.modal__panel > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

/* ---------- 轻提示 ---------- */
.toasts {
  position: fixed;
  left: 50%;
  top: 12%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(92vw, 540px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: min(92vw, 540px);
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18), var(--sh-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  animation: popIn .32s var(--ease) both;
  pointer-events: auto;
}
.toast .ico { width: 17px; height: 17px; }
.toast--ok .ico { color: var(--ok); }
.toast--err .ico { color: var(--danger); }
.toast.is-out { animation: fadeOut .22s var(--ease) forwards; }
@keyframes fadeOut { to { opacity: 0; transform: translate3d(0, 6px, 0); } }

/* ---------- 提示条 ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.notice .ico { width: 16px; height: 16px; margin-top: 1px; color: var(--ink-3); }
.notice--warn { color: #8a5a12; background: var(--warn-50); border-color: transparent; }
.notice--warn .ico { color: var(--warn); }
.notice--brand { color: var(--brand-700); background: var(--brand-50); border-color: transparent; }
.notice--brand .ico { color: var(--brand); }
.notice--danger { color: var(--danger); background: var(--danger-50); border-color: transparent; }
.notice--danger .ico { color: var(--danger); }

/* ---------- 骨架屏 ---------- */
.skel {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%);
  background-size: 640px 100%;
  animation: shimmer 1.4s linear infinite;
}
.skel--text { height: 11px; }
.skel--line { height: 8px; }

/* ---------- 图表 ---------- */
.chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 176px;
  padding: 6px 2px 24px;
}
.chart__col {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.chart__bar {
  width: 100%;
  max-width: 30px;
  min-height: 3px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--brand) 0%, #8498ff 100%);
  transform-origin: bottom center;
  animation: barGrow .7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: filter .18s;
}
.chart__col:hover .chart__bar { filter: brightness(1.08); }
.chart__x {
  position: absolute;
  bottom: -21px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
@keyframes barGrow {
  from { transform: scaleY(.02); opacity: .35; }
  to   { transform: scaleY(1); opacity: 1; }
}
.chart__grid {
  position: absolute;
  inset: 0 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.chart__grid span { display: block; height: 1px; background: var(--line); opacity: .7; }

.spark { width: 100%; height: 34px; overflow: visible; }
.spark path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 环形图 */
.donut {
  --p1: 45%;
  --p2: 75%;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(var(--brand) 0 var(--p1), #8b9cff var(--p1) var(--p2), var(--surface-3) var(--p2) 100%);
  display: grid;
  place-items: center;
  flex: none;
}
.donut__hole {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  text-align: center;
}

/* ---------- 代码块 ---------- */
.codeblock {
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
}
.codeblock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.codeblock__lang { font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.codeblock pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
  tab-size: 2;
}
.codeblock code { font-family: inherit; }
.codeblock .k { color: #a855f7; }
.codeblock .s { color: #0f9f6e; }
.codeblock .c { color: var(--ink-3); }
.codeblock .n { color: #c07414; }

/* 复制条 */
.copybox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 13px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
  transition: border-color .18s;
}
.copybox:hover { border-color: var(--ink-4); }
.copybox code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 键值列表 ---------- */
.kv { display: flex; flex-direction: column; }
.kv__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}
.kv__row:last-child { border-bottom: 0; }
.kv__k { color: var(--ink-3); flex: none; }
.kv__v { color: var(--ink); text-align: right; word-break: break-all; }

/* ---------- 头像 ---------- */
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #7b5cff);
  flex: none;
  letter-spacing: 0;
}
.avatar--lg { width: 40px; height: 40px; border-radius: 11px; font-size: 15px; }
.avatar--sm { width: 24px; height: 24px; border-radius: 7px; font-size: 10.5px; }

/* ---------- 支付方式图标 ---------- */
.pm {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex: none;
  letter-spacing: -.02em;
}
.pm--alipay { background: var(--alipay); }
.pm--wxpay { background: var(--wechat); }
.pm--qqpay { background: var(--qq); }
.pm--demo { background: var(--ink); }

/* ---------- 门户骨架 ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 18px 15px;
  flex: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--brand) 0%, #7b5cff 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: var(--sh-brand);
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-size: 14.5px; font-weight: 680; letter-spacing: -.01em; }
.brand__sub { font-size: 10.5px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }

.nav { flex: 1; overflow-y: auto; padding: 2px 8px 16px; }
.nav-section { margin-bottom: 2px; }
.nav__label {
  padding: 11px 8px 4px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .04em;
  color: var(--ink-4);
}
.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 4px;
}
.nav-grid .nav__item {
  height: 32px;
  min-width: 0;
  padding: 0 7px;
  gap: 7px;
  font-size: 12.5px;
  border-radius: 8px;
  position: relative;
}
.nav-grid .nav__item span:not(.badge) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-grid .nav__item .ico { width: 16px; height: 16px; flex: 0 0 16px; }
.nav-grid .nav__item .badge {
  position: absolute;
  top: 2px;
  right: 3px;
  z-index: 1;
  margin: 0;
  padding: 1px 5px;
  font-size: 10px;
  transform: scale(.78);
  transform-origin: top right;
}

/* 管理端：一级菜单居中，悬停弹出二级菜单 */
.nav--admin { overflow: visible; padding: 12px 10px 20px; }
.nav--admin .nav-section { position: relative; margin: 2px 0; }
.nav--admin .nav-section::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 0;
  width: 12px;
  height: 100%;
}
.nav--admin .nav-parent {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 0 15px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background-color .16s, color .16s;
}
.nav--admin .nav-parent .ico { width: 19px; height: 19px; color: var(--ink-3); }
.nav--admin .nav-parent:hover,
.nav--admin .nav-section.is-active .nav-parent {
  background: var(--surface-3);
  color: var(--ink);
}
.nav--admin .nav-parent:hover .ico,
.nav--admin .nav-section.is-active .nav-parent .ico { color: var(--brand); }
.nav--admin .nav-flyout {
  position: absolute;
  left: calc(100% + 10px);
  top: 0;
  width: 212px;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-8px) scale(.98);
  transform-origin: left top;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
.nav--admin .nav-subitem {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
}
.nav--admin .nav-subitem .ico { width: 16px; height: 16px; color: var(--ink-3); }
.nav--admin .nav-subitem:hover { background: var(--surface-3); color: var(--ink); }
.nav--admin .nav-subitem.is-active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.nav--admin .nav-subitem.is-active .ico { color: var(--brand); }
.nav--admin .nav-subitem .badge { margin-left: auto; }
.nav--admin .nav-section.is-open .nav-flyout,
.nav--admin .nav-section:focus-within .nav-flyout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}
@media (hover: hover) and (min-width: 861px) {
  .nav--admin .nav-section:hover .nav-flyout {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
  }
}
@media (max-width: 860px) {
  .nav--admin .nav-flyout {
    position: static;
    display: none;
    width: auto;
    margin: 0;
    padding: 4px 7px 7px;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    pointer-events: auto;
  }
  .nav--admin .nav-section.is-open .nav-flyout { display: block; }
  .nav--admin .nav-section::after { display: none; }
}
.nav-group > summary.nav__label {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  margin-top: 3px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color .16s, color .16s;
}
.nav-group > summary.nav__label:hover { background: var(--surface-3); color: var(--ink); }
.nav-group[open] > summary.nav__label { color: var(--ink); }
.nav-group > summary.nav__label .ico {
  width: 17px;
  height: 17px;
  color: var(--ink-3);
  flex: 0 0 17px;
}
.nav-group > summary.nav__label::-webkit-details-marker { display: none; }
.nav-group > summary.nav__label::marker { content: ''; }
.nav-group > summary.nav__label::after {
  content: '›';
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-4);
  transform: rotate(0deg);
  transition: transform .15s;
}
.nav-group[open] > summary.nav__label::after { transform: rotate(90deg); }
.nav-group__items { padding-bottom: 2px; }
.nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 10px;
  margin-bottom: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .16s, color .16s;
  white-space: nowrap;
}
.nav__item .ico { width: 17px; height: 17px; color: var(--ink-3); transition: color .16s; }
.nav__item:hover { background: var(--surface-3); color: var(--ink); }
.nav__item:hover .ico { color: var(--ink-2); }
.nav__item.is-active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.nav__item.is-active .ico { color: var(--brand); }
.nav__item .badge { margin-left: auto; }

.sidebar__foot {
  flex: none;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar__foot .row { gap: 8px; font-size: 11.5px; color: var(--ink-3); }

/* 侧栏跟随当前深浅主题，不再为管理后台固定深色 */

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(14px);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .topbar { background: var(--surface); }
}
.topbar__crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); min-width: 0; }
.topbar__crumb b { color: var(--ink); font-weight: 600; }
.topbar__crumb .ico { width: 14px; height: 14px; color: var(--ink-4); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 10px 0 5px;
  border-radius: 10px;
  transition: background-color .16s;
  max-width: 280px;
}
.user-chip:hover { background: var(--surface-3); }
.user-chip__meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.user-chip__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-chip__role { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }

.content { flex: 1; width: 100%; max-width: none; margin: 0 auto; padding: 24px 28px 64px; }

.page { display: flex; flex-direction: column; gap: 18px; animation: riseIn .5s var(--ease) both; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 680; letter-spacing: -.022em; }
.page-sub { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.toolbar__group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.breadcrumb-sep { color: var(--ink-4); }

/* 遮罩（移动端侧栏） */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(9, 14, 26, .4);
  backdrop-filter: blur(1px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s var(--ease);
}
body.sidebar-open .scrim { opacity: 1; pointer-events: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  :root { --sidebar-w: 212px; }
  .content { padding: 20px 20px 56px; }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 274px;
    transform: translate3d(-100%, 0, 0);
    transition: transform .32s var(--ease);
    box-shadow: var(--sh-3);
  }
  body.sidebar-open .sidebar { transform: none; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 20px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

@media (max-width: 560px) {
  .nav-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar { gap: 8px; }
  .topbar__crumb span,
  .topbar__crumb .ico { display: none; }
  .topbar__crumb b { font-size: 13.5px; }
  .page-sub { font-size: 12px; }
}

/* ---------- 管理端订单详情抽屉紧凑布局 ---------- */
.admin-order-embed .page {
  gap: 12px;
}
.admin-order-embed .page-head {
  align-items: center;
  gap: 10px;
}
.admin-order-embed .page-title {
  font-size: 18px;
}
.admin-order-embed .page-actions .btn {
  padding: 7px 10px;
  font-size: 12px;
}
.admin-order-embed .card__head {
  padding: 12px 14px;
}
.admin-order-embed .card__body {
  padding: 14px;
}
.admin-order-embed .grid-2,
.admin-order-embed .grid-3 {
  gap: 12px;
}
.admin-order-embed .card__sub {
  margin-top: 2px;
}

/* ---------- 全宽布局归一 ---------- */
.content {
  width: 100%;
  max-width: none;
  margin: 0;
}
.page,
.grid,
.grid > *,
.card {
  min-width: 0;
}

/* 支付适配器折叠面板（支付通道页） */
.adapter-drawer { padding: 0; overflow: hidden; }
.adapter-drawer__summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; user-select: none; }
.adapter-drawer__summary::-webkit-details-marker { display: none; }
.adapter-drawer__summary::marker { content: ""; }
.adapter-drawer__summary:hover { background: var(--surface-2); }
.adapter-drawer__ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); flex: none; }
.adapter-drawer__title { display: block; font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.adapter-drawer__sub { display: block; margin-top: 2px; font-size: 10px; color: var(--ink-3); }
.adapter-drawer__meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adapter-drawer__chevron { color: var(--ink-3); font-size: 16px; line-height: 1; transition: transform .18s ease; }
.adapter-drawer[open] .adapter-drawer__chevron { transform: rotate(180deg); }
.adapter-drawer[open] .adapter-drawer__summary { border-bottom: 1px solid var(--line); }
.adapter-drawer__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.adapter-drawer__body > .card { margin: 0; }
.adapter-drawer__body > .notice { margin: 0; }
.adapter-drawer__body .card__head { padding: 12px 14px 8px; }
.adapter-drawer__body .card__body { padding: 12px 14px; }
.adapter-drawer__body .card__body--flush { padding: 0; }
@media (max-width: 720px) { .adapter-drawer__meta .mono { display: none; } .adapter-drawer__summary { padding: 13px 14px; } .adapter-drawer__body { padding: 12px; } }

/* assets/css/pages.css */
/* ==========================================================================
   易支付 UI · pages.css  (落地页 / 收银台 / 结果页)
   ========================================================================== */

/* ======================================================================
   落地页
   ====================================================================== */
.site { background: var(--bg); overflow-x: hidden; }

.site-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-nav-wrap { background: var(--surface); }
}
.site-nav {
  max-width: 1180px;
  margin: 0 auto;
  height: 66px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.site-nav__links { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.site-nav__links a {
  font-size: 13px;
  color: var(--ink-2);
  transition: color .18s;
  position: relative;
}
.site-nav__links a:hover { color: var(--ink); }
.site-nav__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.hero-wrap { position: relative; overflow: hidden; }
.hero-wrap::before {
  content: "";
  position: absolute;
  inset: -160px -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(560px 320px at 22% 30%, rgba(58, 92, 245, .14), transparent 62%),
    radial-gradient(520px 300px at 82% 12%, rgba(124, 92, 255, .12), transparent 60%);
  pointer-events: none;
}
.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 62px 28px 52px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--brand-ring); }
  50% { box-shadow: 0 0 0 6px rgba(58, 92, 245, .04); }
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.14;
  letter-spacing: -.032em;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(115deg, var(--brand) 10%, #8b5cf6 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  margin-top: 18px;
  max-width: 480px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-2);
}
.hero__cta { display: flex; align-items: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.hero__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero__meta .ico { width: 14px; height: 14px; color: var(--ok); }

.hero-visual { position: relative; }
.hero-card {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
  animation: floaty 7s var(--ease) infinite;
}
@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}
.hero-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}
.hero-card__dots { display: flex; gap: 4px; }
.hero-card__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.hero-card__rows { display: flex; flex-direction: column; gap: 1px; margin-top: 10px; }
.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  background: var(--surface-2);
}
.hero-row b { color: var(--brand); font-weight: 600; }
.hero-float {
  position: absolute;
  right: -14px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  font-size: 12px;
  animation: floaty 7s var(--ease) .8s infinite;
}
.hero-float .okico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ok-50);
  color: var(--ok);
  flex: none;
}
.hero-float .okico .ico { width: 15px; height: 15px; }
.hero-float b { display: block; font-size: 12.5px; color: var(--ink); }
.hero-float span { font-size: 10.5px; color: var(--ink-3); }

.band { max-width: 1180px; margin: 0 auto; padding: 8px 28px; }
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.stat-strip > div {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}
.stat-strip > div:last-child { border-right: 0; }
.stat-strip b {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.stat-strip span { font-size: 12px; color: var(--ink-3); }

.section { max-width: 1180px; margin: 0 auto; padding: 64px 28px; }
.section__head { max-width: 560px; margin-bottom: 32px; }
.section__head h2 { font-size: 28px; letter-spacing: -.028em; line-height: 1.25; }
.section__head p { margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.feature:hover { transform: translate3d(0, -3px, 0); box-shadow: var(--sh-2); border-color: var(--line-2); }
.feature__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  margin-bottom: 16px;
}
.feature__ico .ico { width: 19px; height: 19px; }
.feature h3 { font-size: 15px; margin-bottom: 7px; }
.feature p { font-size: 12.8px; line-height: 1.72; color: var(--ink-3); }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.flow__step { position: relative; padding: 22px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.flow__step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.flow__step h4 { font-size: 13.5px; margin-bottom: 5px; }
.flow__step p { font-size: 12px; color: var(--ink-3); line-height: 1.65; }
.flow__step::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -14px;
  width: 14px;
  height: 1px;
  background: var(--line-2);
}
.flow__step:last-child::after { display: none; }

.cta-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 72px;
}
.cta-inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 44px;
  border-radius: 24px;
  background: linear-gradient(120deg, #2438c9 0%, #3a5cf5 48%, #7c5cff 100%);
  color: #fff;
  flex-wrap: wrap;
}
.cta-inner::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  filter: blur(2px);
}
.cta-inner h2 { color: #fff; font-size: 26px; letter-spacing: -.025em; }
.cta-inner p { margin-top: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.cta-inner .btn--ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .26); color: #fff; }
.cta-inner .btn--ghost:hover { background: rgba(255, 255, 255, .2); }
.cta-inner .btn--white { background: #fff; color: #2438c9; }
.cta-inner .btn--white:hover { background: #f2f4ff; }

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.site-foot__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
}
.site-foot__links { display: flex; gap: 18px; }
.site-foot__links a:hover { color: var(--ink); }

/* ======================================================================
   收银台
   ====================================================================== */
.pay-body {
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(58, 92, 245, .09), transparent 62%),
    radial-gradient(760px 420px at 94% -4%, rgba(124, 92, 255, .08), transparent 58%),
    var(--bg);
  min-height: 100vh;
}
.pay-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 20px 36px;
}
@media (min-width: 900px) and (min-height: 820px) {
  .pay-page { justify-content: center; }
}
.pay-top {
  width: min(950px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.pay-brand { display: flex; align-items: center; gap: 9px; }
.pay-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.pay-brand .brand__mark { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
.pay-brand__name { font-size: 14px; font-weight: 680; }
.pay-brand__sub { font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em; }
.pay-safe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.pay-safe .ico { width: 14px; height: 14px; color: var(--ok); }

.pay-card {
  width: min(950px, 100%);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--sh-3);
  overflow: hidden;
  animation: riseIn .55s var(--ease) both;
}
.pay-left {
  padding: 34px 36px 30px;
  border-right: 1px dashed var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  display: flex;
  flex-direction: column;
}
.pay-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
}
.pay-merchant { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.pay-merchant .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
.pay-merchant__name { font-size: 13.5px; font-weight: 650; }
.pay-merchant__meta { font-size: 11.5px; color: var(--ink-3); }
.pay-product {
  margin-top: 22px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.45;
  word-break: break-all;
}
.pay-amount {
  display: flex;
  align-items: baseline;
  gap: 1px;
  margin: 14px 0 4px;
  font-weight: 700;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.pay-amount .cur { font-size: 22px; font-weight: 600; color: var(--ink-2); margin-right: 3px; }
.pay-amount .int { font-size: 48px; line-height: 1; }
.pay-amount .dec { font-size: 24px; line-height: 1; color: var(--ink-2); }
.pay-amount-note { font-size: 12px; color: var(--ink-3); }

.pay-meta { margin-top: 26px; display: flex; flex-direction: column; gap: 0; }
.pay-meta__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.pay-meta__row:last-child { border-bottom: 0; }
.pay-meta__k { color: var(--ink-3); flex: none; }
.pay-meta__v { color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; word-break: break-all; }

.pay-trust {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--ink-4);
  flex-wrap: wrap;
}
.pay-trust span { display: inline-flex; align-items: center; gap: 4px; }
.pay-trust .ico { width: 13px; height: 13px; color: var(--ink-3); }

.pay-right { padding: 28px 34px 30px; display: flex; flex-direction: column; }
.pay-right__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pay-right__title { font-size: 13px; font-weight: 650; color: var(--ink); }
.pay-timer { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pay-timer b { color: var(--warn); font-weight: 650; font-size: 13px; }

.pay-methods { display: flex; gap: 8px; margin-bottom: 18px; }
.pay-methods form { flex: 1 1 0; display: flex; min-width: 0; }
.pay-methods .pay-method { width: 100%; }
.pay-method {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color .2s, background-color .2s, transform .2s, box-shadow .2s;
}
.pay-method:hover { border-color: var(--ink-4); transform: translate3d(0, -1px, 0); }
.pay-method.is-active {
  border-color: var(--brand);
  background: var(--brand-50);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.pay-method .pm { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; }

.pay-qr {
  position: relative;
  width: 194px;
  height: 194px;
  margin: 2px auto 12px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--sh-1);
  overflow: hidden;
}
[data-theme="dark"] .pay-qr { background: #f8fafc; }
.pay-qr svg { width: 100%; height: 100%; display: block; }
.pay-qr__scan {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand) 22%, var(--brand) 78%, transparent);
  box-shadow: 0 0 10px 2px rgba(58, 92, 245, .35);
  animation: qrScan 2.9s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes qrScan {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  8%   { opacity: 1; }
  50%  { transform: translate3d(0, 168px, 0); opacity: 1; }
  58%  { opacity: 0; }
  100% { transform: translate3d(0, 168px, 0); opacity: 0; }
}
.pay-qr__demo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1.5px dashed rgba(222, 59, 66, .55);
  color: rgba(222, 59, 66, .8);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.pay-hint { text-align: center; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.pay-hint b { color: var(--ink-2); font-weight: 600; }
.pay-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.pay-demo-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-3);
}
.pay-demo-tip .ico { width: 13px; height: 13px; margin-top: 1px; color: var(--warn); }

/* 结果状态 */
.pay-state {
  width: min(520px, 100%);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--sh-3);
  padding: 44px 36px 32px;
  text-align: center;
  animation: riseIn .5s var(--ease) both;
}
.state-ico {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-50);
  color: var(--ok);
  animation: popIn .5s var(--ease) both;
}
.state-ico--muted { background: var(--surface-3); color: var(--ink-3); }
.state-ico--warn { background: var(--warn-50); color: var(--warn); }
.state-ico svg { width: 38px; height: 38px; }
.state-ico .ring { stroke-dasharray: 150; stroke-dashoffset: 150; animation: drawRing .7s var(--ease) .1s forwards; }
.state-ico .tick { stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawRing .4s var(--ease) .55s forwards; }
@keyframes drawRing { to { stroke-dashoffset: 0; } }

.pay-state h1 { font-size: 22px; letter-spacing: -.02em; }
.pay-state .state-sub { margin-top: 8px; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.state-amount {
  margin: 22px 0 4px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.state-card {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-align: left;
}
.state-actions { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.state-foot { margin-top: 20px; font-size: 11.5px; color: var(--ink-4); }

.pay-foot {
  margin-top: 22px;
  font-size: 11.5px;
  color: var(--ink-4);
  text-align: center;
  line-height: 1.8;
}
.pay-foot a { color: var(--ink-3); }
.pay-foot a:hover { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .pay-qr__scan { display: none; }
  .hero-card,
  .hero-float { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; }
  .hero-visual { max-width: 460px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow__step:nth-child(2)::after { display: none; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(1),
  .stat-strip > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .pay-card { grid-template-columns: minmax(0, 1fr); }
  .pay-left { border-right: 0; border-bottom: 1px dashed var(--line); padding: 28px 26px 24px; }
  .pay-right { padding: 24px 26px 26px; }
  .pay-amount .int { font-size: 42px; }
}

@media (max-width: 620px) {
  .site-nav { height: 60px; padding: 0 18px; gap: 12px; }
  .site-nav__links { display: none; }
  .hero { padding: 34px 18px 30px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 14px; }
  .section { padding: 44px 18px; }
  .section__head h2 { font-size: 23px; }
  .feature-grid, .flow { grid-template-columns: 1fr; }
  .flow__step::after { display: none; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip > div { padding: 16px; }
  .stat-strip b { font-size: 20px; }
  .cta-inner { padding: 28px 24px; }
  .cta-inner h2 { font-size: 21px; }
  .band, .cta-band { padding-left: 18px; padding-right: 18px; }
  .site-foot__inner { padding: 22px 18px; }
  .pay-page { padding: 16px 12px 26px; }
  .pay-top { margin-bottom: 12px; }
  .pay-safe { display: none; }
  .pay-left { padding: 22px 20px 20px; }
  .pay-right { padding: 20px; }
  .pay-amount .int { font-size: 38px; }
  .pay-product { font-size: 15px; margin-top: 18px; }
  .pay-qr { width: 176px; height: 176px; }
  .pay-methods { gap: 6px; }
  .pay-method { font-size: 11px; gap: 5px; height: 42px; }
  .pay-state { padding: 34px 22px 26px; }
  .state-amount { font-size: 30px; }
  .hero-float { display: none; }
}

/* assets/css/v2.css */
/* ==========================================================================
   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; }

/* 收银台状态反馈 */
.pay-step__dot,.pay-step:before,.pay-step b{transition:background .28s ease,border-color .28s ease,color .28s ease,box-shadow .28s ease,opacity .28s ease}
.pay-status{margin-top:9px;font-size:10px;color:var(--ink-3);min-height:15px;transition:color .25s ease}
.pay-status[data-state="paid"]{color:var(--ok);font-weight:600}
.pay-status[data-state="expired"],.pay-status[data-state="closed"]{color:var(--warn)}
.pay-page.is-paid .pay-card{box-shadow:0 0 0 1px rgba(16,185,129,.16),0 24px 70px rgba(16,185,129,.10)}
.pay-page.is-failed .pay-card{box-shadow:0 0 0 1px rgba(245,158,11,.14),0 24px 70px rgba(245,158,11,.06)}
.pay-timer.is-urgent b{color:#e5484d;animation:pay-timer-pulse 1.25s ease-in-out infinite}
@keyframes pay-timer-pulse{0%,100%{opacity:1}50%{opacity:.52}}
@media(prefers-reduced-motion:reduce){.pay-step__dot,.pay-step:before,.pay-step b,.pay-status{transition:none}.pay-timer.is-urgent b{animation:none}}

/* 顶部导航进度 */
.page-progress{position:fixed;top:0;left:0;z-index:9999;height:2px;width:0;background:linear-gradient(90deg,var(--brand),var(--ok));opacity:0;pointer-events:none;transition:width .28s ease,opacity .22s ease}
.page-progress.is-active{opacity:1}
.page-progress.is-done{width:100%;opacity:0}
@media(prefers-reduced-motion:reduce){.page-progress{transition:none}}

/* 表格切换骨架 */
.table-skeleton-row td{height:43px}
.table-skeleton-bar{display:block;height:9px;border-radius:5px;background:linear-gradient(90deg,var(--surface-2) 25%,var(--surface-3) 37%,var(--surface-2) 63%);background-size:400% 100%;animation:tableSkeleton 1.2s ease-in-out infinite}
@keyframes tableSkeleton{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){.table-skeleton-bar{animation:none}}

/* 移动端弹窗居中：避免编辑商户等宽表单在窄屏被右侧裁切 */
@media(max-width:680px){
  .modal{inset:0;width:100vw;height:100dvh;padding:12px;place-items:center;overflow:hidden}
  .modal__panel,.modal__panel.modal--lg,.modal--lg .modal__panel{width:100%!important;max-width:100%;max-height:calc(100dvh - 24px);margin:0 auto;box-sizing:border-box}
  .modal__body{overflow-x:hidden}
}

@media(max-width:680px){
  .modal{display:block;padding:0}
  .modal__panel,.modal__panel.modal--lg,.modal--lg .modal__panel{position:fixed;left:50%;top:50%;width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:0;transform:translate(-50%,-50%)!important}
  .modal__head,.modal__body,.modal__foot{padding-left:18px;padding-right:18px}
}

/* 返回列表时定位刚打开的投诉/订单行 */
.table tbody tr.is-active{background:var(--brand-soft,rgba(58,92,245,.08))!important;box-shadow:inset 3px 0 0 var(--brand)}

/* 表单内联错误 */
.field-error{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:var(--danger)}
.input[aria-invalid="true"],.select[aria-invalid="true"],textarea[aria-invalid="true"]{border-color:var(--danger)!important;box-shadow:0 0 0 3px rgba(220,38,38,.08)}
.empty{animation:fadeIn .25s var(--ease) both}

/* 移动端表格统一：保留订单卡片，其他表格横向滚动 */
@media(max-width:680px){
  .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .table:not(.table--orders){min-width:600px}
  .table--compact:not(.table--orders){min-width:520px}
}

/* 深色模式基础一致性 */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] .field-error{color:#ff9b9b}
html[data-theme="dark"] .input[aria-invalid="true"],html[data-theme="dark"] .select[aria-invalid="true"],html[data-theme="dark"] textarea[aria-invalid="true"]{box-shadow:0 0 0 3px rgba(255,120,120,.10)}

/* iOS/微信 WebView 兼容：dvh 不支持时回退 vh，并给底部安全区留白 */
@supports not (height: 100dvh){
  @media(max-width:680px){.modal__panel{max-height:calc(100vh - 24px)}}
}
@media(max-width:680px){
  .modal__foot{padding-bottom:max(13px,env(safe-area-inset-bottom))}
}

/* 左侧菜单图标微动效：只做 hover/active，避免常驻动画分散注意力 */
.nav__item .ico{
  transform-origin:50% 50%;
  transition:transform .22s cubic-bezier(.2,.8,.2,1),color .16s ease,filter .22s ease;
  will-change:transform;
}
.nav__item:hover .ico{transform:translateY(-1px) scale(1.12) rotate(-4deg)}
.nav__item[href*="p=orders"]:hover .ico{transform:translateY(-1px) scale(1.1) rotate(5deg)}
.nav__item[href*="p=refunds"]:hover .ico{transform:translateY(-1px) scale(1.1) rotate(-8deg)}
.nav__item[href*="p=funds"]:hover .ico,
.nav__item[href*="p=settlements"]:hover .ico{transform:translateY(-2px) scale(1.1)}
.nav__item[href*="p=users"]:hover .ico,
.nav__item[href*="p=merchants"]:hover .ico{transform:scale(1.14)}
.nav__item[href*="p=settings"]:hover .ico,
.nav__item[href*="p=security"]:hover .ico{transform:rotate(12deg) scale(1.1)}
.nav__item:active .ico{transform:scale(.9)}
.nav__item:focus-visible .ico{transform:scale(1.08)}
.nav__item.is-active .ico{animation:navIconPop .38s cubic-bezier(.2,.9,.25,1.25);filter:drop-shadow(0 1px 3px var(--brand-ring))}
@keyframes navIconPop{0%{transform:scale(.82) rotate(-8deg)}65%{transform:scale(1.12) rotate(2deg)}100%{transform:scale(1) rotate(0)}}
@media(prefers-reduced-motion:reduce){
  .nav__item .ico{transition:none}
  .nav__item:hover .ico,.nav__item:active .ico,.nav__item:focus-visible .ico,.nav__item.is-active .ico{transform:none;animation:none;filter:none}
}

/* 结算批量操作菜单：左侧列表按钮，向下展开时从左侧对齐，避免移出屏幕 */
.settlement-bulk-menu .cleanup-menu__panel{left:0;right:auto}
@media(max-width:680px){
  .settlement-bulk-menu .cleanup-menu__panel{width:min(260px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
}

.settlement-bulk-menu .cleanup-menu__panel{padding:5px;width:max-content;min-width:150px;max-width:calc(100vw - 32px)}
.settlement-bulk-menu .cleanup-menu__item{padding:8px 10px}


/* assets/css/landing-aurora.css */

:root{
    --bg:#05070d; --panel:#0b111d; --panel2:#0e1626; --line:rgba(164,190,226,.14);
    --ink:#f3f7ff; --muted:#8997ad; --dim:#5e6d84;
    --cyan:#71e4ff; --violet:#8f86ff; --lime:#c3ff7a; --blue:#4f7cff;
    --sans:"Inter","SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;
  }
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;overflow-x:hidden}
.lp-home a{color:inherit;text-decoration:none}
.lp-home .aurora{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.lp-home .aurora::before{content:"";position:absolute;width:1100px;height:900px;left:-220px;top:-420px;background:radial-gradient(circle,rgba(86,154,255,.28),transparent 62%);filter:blur(20px)}
.lp-home .aurora::after{content:"";position:absolute;width:1000px;height:850px;right:-260px;top:60px;background:radial-gradient(circle,rgba(143,134,255,.20),transparent 64%);filter:blur(24px)}
.lp-home .grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:72px 72px;mask-image:radial-gradient(ellipse at 50% 0%,#000 0%,transparent 72%)}
.lp-home .wrap{width:min(1240px,calc(100% - 72px));margin:0 auto;position:relative;z-index:1}
.lp-home .nav{height:86px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.06)}
.lp-home .brand{display:flex;align-items:center;gap:13px}
.lp-home .brand svg{width:38px;height:38px;border-radius:11px;box-shadow:0 8px 26px rgba(55,110,255,.35)}
.lp-home .brand b{display:block;font-size:16px;letter-spacing:.04em;font-weight:650}
.lp-home .brand span{display:block;font-size:8px;letter-spacing:.28em;color:var(--muted);margin-top:3px}
.lp-home .links{display:flex;align-items:center;gap:34px;font-size:12px;color:#aab7ca}
.lp-home .links a{transition:.25s}.links a:hover{color:#fff}
.lp-home .nav-right{display:flex;align-items:center;gap:10px}
.lp-home .theme-toggle{width:32px;height:32px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.03);color:#aab7ca;cursor:pointer;font-size:13px;line-height:1;display:grid;place-items:center;transition:.25s}
.lp-home .theme-toggle:hover{border-color:rgba(113,228,255,.45);color:#fff}
.lp-home .mini{font-size:11px;color:#b7c4d6;padding:9px 14px;border:1px solid var(--line);border-radius:99px;transition:.25s}
.lp-home .mini:hover{border-color:rgba(113,228,255,.5);color:#fff}
.lp-home .nav-cta{font-size:11px;font-weight:600;letter-spacing:.02em;padding:10px 18px;border-radius:99px;background:linear-gradient(135deg,var(--cyan),#5c8dff);color:#03101a;box-shadow:0 0 28px rgba(113,228,255,.22)}
.lp-home .hero{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center;padding:86px 0 62px}
.lp-home .eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:9px;letter-spacing:.28em;color:#9cb5cd;text-transform:uppercase}
.lp-home .eyebrow i{width:6px;height:6px;border-radius:50%;background:var(--lime);box-shadow:0 0 14px var(--lime)}
.lp-home h1{margin:24px 0 0;font-size:74px;line-height:.98;letter-spacing:-.065em;font-weight:600}
.lp-home h1 .glow{display:block;background:linear-gradient(100deg,#f7fbff 8%,var(--cyan) 48%,var(--violet) 92%);-webkit-background-clip:text;background-clip:text;color:transparent}
.lp-home h1 .thin{display:block;font-weight:300;color:#a8b7ca;font-size:50px;letter-spacing:-.05em;margin-top:8px}
.lp-home .hero-copy{max-width:460px;color:#8e9db2;font-size:14px;line-height:1.9;margin-top:26px}
.lp-home .hero-actions{display:flex;align-items:center;gap:14px;margin-top:32px}
.lp-home .btn-main{display:inline-flex;align-items:center;gap:10px;background:#f5f9ff;color:#07101e;font-size:12px;font-weight:650;padding:14px 22px;border-radius:12px;box-shadow:0 14px 44px rgba(0,0,0,.35)}
.lp-home .btn-main span{font-size:14px}
.lp-home .btn-ghost{display:inline-flex;align-items:center;gap:9px;font-size:12px;color:#c4d1e2;border:1px solid var(--line);padding:13px 18px;border-radius:12px}
.lp-home .hero-note{display:flex;gap:18px;margin-top:26px;font-size:10px;color:#718198;flex-wrap:wrap}
.lp-home .hero-note b{color:#b9c7d9;font-weight:500}
.lp-home .visual{position:relative;padding:20px 0 16px 16px}
.lp-home .visual::before{content:"";position:absolute;inset:8% 2% 4% 10%;background:radial-gradient(circle at 55% 35%,rgba(113,228,255,.15),transparent 58%);filter:blur(30px)}
.lp-home .console{position:relative;border:1px solid rgba(168,201,235,.20);border-radius:22px;background:linear-gradient(160deg,rgba(17,28,46,.94),rgba(8,13,23,.92));box-shadow:0 40px 100px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.08);overflow:hidden}
.lp-home .console-top{height:48px;display:flex;align-items:center;gap:9px;padding:0 18px;border-bottom:1px solid rgba(255,255,255,.07);color:#77879d;font-size:9px;letter-spacing:.1em}
.lp-home .dots{display:flex;gap:5px}.dots i{width:5px;height:5px;border-radius:50%;background:#39475c}
.lp-home .live{margin-left:auto;display:inline-flex;align-items:center;gap:6px;color:#9fffd2;font-size:8px;letter-spacing:.14em}
.lp-home .live i{width:5px;height:5px;border-radius:50%;background:#72ffc4;box-shadow:0 0 10px #72ffc4}
.lp-home .console-body{padding:20px 20px 16px}
.lp-home .label{font-size:8px;letter-spacing:.2em;color:#6d7d94;text-transform:uppercase}
.lp-home .balance{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:8px}
.lp-home .balance b{font-size:37px;letter-spacing:-.055em;font-weight:550;font-variant-numeric:tabular-nums}
.lp-home .balance b small{font-size:15px;color:#7aa6c8;font-weight:400;letter-spacing:0}
.lp-home .change{font-size:9px;color:#9fffd2;border:1px solid rgba(114,255,196,.18);background:rgba(114,255,196,.07);padding:4px 7px;border-radius:99px;white-space:nowrap}
.lp-home .spark{height:82px;margin:8px -4px 0;position:relative}
.lp-home .spark svg{width:100%;height:100%;overflow:visible}
.lp-home .legend{display:flex;justify-content:space-between;color:#617189;font-size:8px;letter-spacing:.06em;border-top:1px solid rgba(255,255,255,.06);padding-top:11px;margin-top:4px}
.lp-home .flow-rows{margin-top:15px;border-top:1px solid rgba(255,255,255,.06);padding-top:5px}
.lp-home .row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.05)}
.lp-home .row:last-child{border-bottom:0}
.lp-home .ico{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;font-size:8px;font-weight:600;background:rgba(113,228,255,.09);border:1px solid rgba(113,228,255,.14);color:#8fe9ff;flex:none}
.lp-home .row-main{flex:1;min-width:0}.row-main b{display:block;font-size:10px;font-weight:500;color:#dce7f5}.row-main span{display:block;font-size:8px;color:#687990;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-home .row-amt{font-size:10px;font-variant-numeric:tabular-nums;color:#b8cfe0;white-space:nowrap}
.lp-home .float{position:absolute;z-index:2;border:1px solid rgba(255,255,255,.14);background:rgba(10,18,30,.86);backdrop-filter:blur(18px);box-shadow:0 16px 36px rgba(0,0,0,.45);border-radius:12px;padding:11px 13px}
.lp-home .float-a{right:-20px;top:110px;display:flex;align-items:center;gap:9px}
.lp-home .float-a i{width:24px;height:24px;border-radius:50%;background:rgba(195,255,122,.12);display:grid;place-items:center;color:var(--lime);font-style:normal;font-size:10px}
.lp-home .float-a b{display:block;font-size:9px;font-weight:550}.float-a span{display:block;font-size:7px;color:#8293a8;margin-top:3px}
.lp-home .float-b{left:-28px;bottom:34px;display:flex;align-items:center;gap:9px}
.lp-home .float-b .bar{width:32px;height:4px;border-radius:9px;background:linear-gradient(90deg,var(--cyan),var(--violet))}
.lp-home .float-b b{font-size:9px;color:#dbe8f7;font-weight:500}.float-b span{font-size:7px;color:#7d8ea3;margin-left:5px}
.lp-home .strip{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:4px}
.lp-home .strip div{padding:24px 26px;border-right:1px solid var(--line)}
.lp-home .strip div:last-child{border-right:0}
.lp-home .strip b{display:block;font-size:28px;letter-spacing:-.04em;font-weight:500}.strip b em{font-style:normal;font-size:13px;color:#7d8da3;margin-left:2px}
.lp-home .strip span{display:block;font-size:9px;color:#74849a;letter-spacing:.06em;margin-top:5px}
.lp-home .section{padding:92px 0 0}
.lp-home .sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:28px}
.lp-home .sec-head h2{font-size:38px;letter-spacing:-.05em;font-weight:550;margin:13px 0 0}
.lp-home .sec-head p{max-width:390px;font-size:12px;line-height:1.8;color:#7e8ea5;margin:0 0 4px}
.lp-home .bento{display:grid;grid-template-columns:repeat(12,1fr);gap:12px}
.lp-home .card{position:relative;border:1px solid var(--line);border-radius:16px;background:linear-gradient(160deg,rgba(15,24,40,.76),rgba(8,13,22,.72));padding:22px;overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
.lp-home .card::after{content:"";position:absolute;inset:0;background:radial-gradient(400px 180px at 10% 0%,rgba(113,228,255,.07),transparent 70%);pointer-events:none}
.lp-home .card:nth-child(1){grid-column:span 5;min-height:210px}
.lp-home .card:nth-child(2){grid-column:span 4;min-height:210px}
.lp-home .card:nth-child(3){grid-column:span 3;min-height:210px}
.lp-home .card:nth-child(4){grid-column:span 7;min-height:178px}
.lp-home .card:nth-child(5){grid-column:span 5;min-height:178px}
.lp-home .card .num{font-size:9px;letter-spacing:.18em;color:#5e7188}
.lp-home .card h3{font-size:20px;letter-spacing:-.035em;font-weight:550;margin:14px 0 8px}
.lp-home .card p{font-size:10px;line-height:1.8;color:#7f90a6;margin:0;max-width:380px}
.lp-home .card .icon{width:30px;height:30px;border-radius:9px;border:1px solid rgba(113,228,255,.18);background:rgba(113,228,255,.07);display:grid;place-items:center;color:#8deaff;font-size:12px}
.lp-home .card .mini-stat{display:flex;gap:22px;margin-top:22px;border-top:1px solid rgba(255,255,255,.06);padding-top:13px}
.lp-home .card .mini-stat b{display:block;font-size:17px;font-weight:500}.card .mini-stat span{display:block;font-size:8px;color:#687990;margin-top:3px}
.lp-home .card .big-quote{font-size:26px;line-height:1.35;letter-spacing:-.04em;font-weight:350;color:#dce9f7;margin-top:18px;max-width:480px}
.lp-home .card .big-quote b{font-weight:550;color:#9defff}
.lp-home .card .mini-flow{display:flex;align-items:center;gap:8px;margin-top:22px;flex-wrap:wrap}
.lp-home .pill{font-size:8px;color:#8fa3b9;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);padding:7px 10px;border-radius:99px;white-space:nowrap}
.lp-home .pill.on{color:#a9ffcf;border-color:rgba(114,255,196,.2);background:rgba(114,255,196,.06)}
.lp-home .arrow{color:#435268;font-size:10px}
.lp-home .flow{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:rgba(9,15,25,.6)}
.lp-home .step{padding:24px 22px;border-right:1px solid var(--line);position:relative}
.lp-home .step:last-child{border-right:0}
.lp-home .step .n{font-size:8px;letter-spacing:.2em;color:#667a92}
.lp-home .step b{display:block;font-size:15px;font-weight:550;margin-top:12px;letter-spacing:-.02em}
.lp-home .step p{font-size:9px;line-height:1.7;color:#71839a;margin:7px 0 0}
.lp-home .step::before{content:"";position:absolute;left:22px;top:0;width:24px;height:1px;background:linear-gradient(90deg,var(--cyan),transparent)}
.lp-home .cta{margin:92px 0 0;border:1px solid rgba(164,198,236,.2);border-radius:22px;padding:40px 44px;display:flex;align-items:center;justify-content:space-between;gap:32px;background:radial-gradient(700px 300px at 8% 40%,rgba(91,126,255,.20),transparent 60%),linear-gradient(120deg,rgba(15,25,43,.9),rgba(7,12,21,.88));position:relative;overflow:hidden}
.lp-home .cta::after{content:"";position:absolute;width:360px;height:360px;right:-80px;top:-160px;border-radius:50%;background:radial-gradient(circle,rgba(113,228,255,.22),transparent 62%);filter:blur(10px)}
.lp-home .cta h2{font-size:34px;letter-spacing:-.05em;font-weight:500;margin:0}
.lp-home .cta p{font-size:11px;color:#8393aa;margin:10px 0 0}
.lp-home .cta .actions{position:relative;z-index:1;display:flex;gap:10px;flex-wrap:wrap}
.lp-home .footer{display:flex;justify-content:space-between;gap:20px;margin-top:54px;padding:22px 0 30px;border-top:1px solid var(--line);font-size:8px;letter-spacing:.13em;color:#506176}
.lp-home .footer span:nth-child(2){color:#6c7f95}

body.light{
    --bg:#edf2f7; --panel:#ffffff; --panel2:#f6f9fc; --line:rgba(29,56,86,.13);
    --ink:#0b1b30; --muted:#5d6d80; --dim:#8494a6;
    --cyan:#1f7ae0; --violet:#6a5cff; --lime:#0f9f6e; --blue:#2459e6;
    background:var(--bg);color:var(--ink);
  }
body.light .lp-home .aurora::before{background:radial-gradient(circle,rgba(72,151,245,.22),transparent 62%)}
body.light .lp-home .aurora::after{background:radial-gradient(circle,rgba(106,92,255,.13),transparent 64%)}
body.light .lp-home .grid{background-image:linear-gradient(rgba(25,52,82,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(25,52,82,.055) 1px,transparent 1px);mask-image:radial-gradient(ellipse at 50% 0%,#000 0%,transparent 76%)}
body.light .lp-home .nav{border-bottom-color:rgba(29,56,86,.12)}
body.light .lp-home .brand b{color:#0b1b30}
body.light .lp-home .brand span{color:#6d7e91}
body.light .lp-home .links{color:#53657a}
body.light .lp-home .links a:hover{color:#0b1b30}
body.light .lp-home .theme-toggle{background:rgba(255,255,255,.7);border-color:rgba(29,56,86,.16);color:#3b526a}
body.light .lp-home .theme-toggle:hover{border-color:#1f7ae0;color:#1f7ae0}
body.light .lp-home .mini{color:#3f556c;border-color:rgba(29,56,86,.18);background:rgba(255,255,255,.6)}
body.light .lp-home .mini:hover{border-color:#1f7ae0;color:#1f7ae0}
body.light .lp-home .nav-cta{background:#0b1b30;color:#fff;box-shadow:0 10px 24px rgba(11,27,48,.16)}
body.light .lp-home .eyebrow{color:#60748a}
body.light .lp-home h1{color:#0b1b30}
body.light .lp-home h1 .glow{background:linear-gradient(100deg,#0b1b30 4%,#1f7ae0 52%,#6a5cff 98%);-webkit-background-clip:text;background-clip:text;color:transparent}
body.light .lp-home h1 .thin{color:#7b8b9d}
body.light .lp-home .hero-copy{color:#5b6d81}
body.light .lp-home .btn-main{background:#0b1b30;color:#fff;box-shadow:0 16px 34px rgba(11,27,48,.16)}
body.light .lp-home .btn-ghost{color:#344b63;border-color:rgba(29,56,86,.18);background:rgba(255,255,255,.55)}
body.light .lp-home .hero-note{color:#7b8ca0}
body.light .lp-home .hero-note b{color:#3e5269}
body.light .lp-home .visual::before{background:radial-gradient(circle at 55% 35%,rgba(31,122,224,.14),transparent 58%)}
body.light .lp-home .console{background:linear-gradient(160deg,rgba(255,255,255,.98),rgba(246,250,254,.96));border-color:rgba(29,56,86,.18);box-shadow:0 34px 80px rgba(32,64,98,.17),inset 0 1px 0 #fff}
body.light .lp-home .console-top{border-bottom-color:rgba(29,56,86,.12);color:#7a8da2}
body.light .lp-home .dots i{background:#c3d1df}
body.light .lp-home .live{color:#0b8b65}
body.light .lp-home .live i{background:#0b8b65;box-shadow:0 0 10px rgba(11,139,101,.35)}
body.light .lp-home .label{color:#8495a7}
body.light .lp-home .balance b{color:#0b1b30}
body.light .lp-home .balance b small{color:#7188a0}
body.light .lp-home .change{color:#0b8b65;border-color:rgba(11,139,101,.2);background:rgba(11,139,101,.06)}
body.light .lp-home .legend{color:#8a9bad;border-top-color:rgba(29,56,86,.1)}
body.light .lp-home .flow-rows{border-top-color:rgba(29,56,86,.1)}
body.light .lp-home .row{border-bottom-color:rgba(29,56,86,.08)}
body.light .lp-home .row-main b{color:#22384f}
body.light .lp-home .row-main span{color:#7b8c9f}
body.light .lp-home .row-amt{color:#2e4c66}
body.light .lp-home .ico{background:rgba(31,122,224,.07);border-color:rgba(31,122,224,.16);color:#1f7ae0}
body.light .lp-home .float{background:rgba(255,255,255,.9);border-color:rgba(29,56,86,.15);box-shadow:0 16px 36px rgba(32,64,98,.14);backdrop-filter:blur(18px)}
body.light .lp-home .float-a b{color:#1b3248}
body.light .lp-home .float-a span{color:#7d8ea2}
body.light .lp-home .float-a i{background:rgba(15,159,110,.1);color:#0f9f6e}
body.light .lp-home .strip{border-color:rgba(29,56,86,.14)}
body.light .lp-home .strip div{border-right-color:rgba(29,56,86,.12)}
body.light .lp-home .strip b{color:#0b1b30}
body.light .lp-home .strip b em{color:#7f90a2}
body.light .lp-home .strip span{color:#7a8b9d}
body.light .lp-home .sec-head h2{color:#0b1b30}
body.light .lp-home .sec-head p{color:#5f7185}
body.light .lp-home .card{background:linear-gradient(160deg,rgba(255,255,255,.94),rgba(247,250,253,.9));border-color:rgba(29,56,86,.13);box-shadow:0 16px 38px rgba(32,64,98,.06),inset 0 1px 0 #fff}
body.light .lp-home .card::after{background:radial-gradient(400px 180px at 10% 0%,rgba(31,122,224,.06),transparent 70%)}
body.light .lp-home .card .num{color:#8495a7}
body.light .lp-home .card h3{color:#0b1b30}
body.light .lp-home .card p{color:#65778b}
body.light .lp-home .card .icon{border-color:rgba(31,122,224,.18);background:rgba(31,122,224,.06);color:#1f7ae0}
body.light .lp-home .card .mini-stat{border-top-color:rgba(29,56,86,.1)}
body.light .lp-home .card .mini-stat b{color:#1b3248}
body.light .lp-home .card .mini-stat span{color:#7c8da0}
body.light .lp-home .card .big-quote{color:#1c344c}
body.light .lp-home .card .big-quote b{color:#1f7ae0}
body.light .lp-home .pill{color:#586c80;border-color:rgba(29,56,86,.14);background:rgba(255,255,255,.55)}
body.light .lp-home .pill.on{color:#0f7f5c;border-color:rgba(15,159,110,.22);background:rgba(15,159,110,.07)}
body.light .lp-home .arrow{color:#93a2b2}
body.light .lp-home .flow{background:rgba(255,255,255,.55);border-color:rgba(29,56,86,.14)}
body.light .lp-home .step{border-right-color:rgba(29,56,86,.12)}
body.light .lp-home .step .n{color:#8495a7}
body.light .lp-home .step b{color:#0b1b30}
body.light .lp-home .step p{color:#6b7d90}
body.light .lp-home .step::before{background:linear-gradient(90deg,#1f7ae0,transparent)}
body.light .lp-home .cta{background:radial-gradient(700px 300px at 8% 40%,rgba(31,122,224,.10),transparent 60%),linear-gradient(120deg,rgba(255,255,255,.98),rgba(237,244,251,.96));border-color:rgba(29,56,86,.15);box-shadow:0 24px 60px rgba(32,64,98,.09)}
body.light .lp-home .cta::after{border-color:rgba(29,56,86,.13)}
body.light .lp-home .cta h2{color:#0b1b30}
body.light .lp-home .cta p{color:#617386}
body.light .lp-home .cta .btn-main{background:#0b1b30;color:#fff}
body.light .lp-home .cta .btn-ghost{color:#344b63;border-color:rgba(29,56,86,.18);background:rgba(255,255,255,.6)}
body.light .lp-home .footer{border-top-color:rgba(29,56,86,.14);color:#7b8c9e}
body.light .lp-home .footer span:nth-child(2){color:#8a9aab}
@media(max-width:980px){.hero{grid-template-columns:1fr;gap:40px;padding-top:60px}h1{font-size:58px}.visual{padding-left:0}.float-b{left:10px}.float-a{right:4px}.links{display:none}.bento .card{grid-column:span 12}.flow{grid-template-columns:1fr 1fr}.step:nth-child(2){border-right:0}.strip{grid-template-columns:1fr 1fr}.strip div:nth-child(2){border-right:0}.strip div:nth-child(3),.strip div:nth-child(4){border-top:1px solid var(--line)}.cta{flex-direction:column;align-items:flex-start}}
@media(max-width:600px){.wrap{width:calc(100% - 36px)}h1{font-size:44px}h1 .thin{font-size:34px}.hero-copy{font-size:12px}.hero-actions{flex-wrap:wrap}.balance b{font-size:30px}.float{display:none}.sec-head{flex-direction:column;align-items:flex-start}.sec-head h2{font-size:29px}.flow{grid-template-columns:1fr}.step{border-right:0;border-bottom:1px solid var(--line)}.strip{grid-template-columns:1fr 1fr}.strip div{padding:18px}.cta{padding:28px;margin-top:60px}.cta h2{font-size:27px}.footer{flex-direction:column;gap:8px}}

.lp-home .eyebrow{background:none;border:0;padding:0;border-radius:0;box-shadow:none}

html,body{overflow-x:hidden;max-width:100%}
.lp-home{overflow-x:clip;max-width:100%}
.lp-home .wrap{max-width:100%}

.lp-home .nav{overflow:visible;height:auto;min-height:86px}

/* ---------- responsive + motion polish ---------- */
.lp-home .links .mobile-login{display:none}
.lp-home .nav{position:relative}
.lp-home .nav-menu{display:none;width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.03);cursor:pointer;padding:9px;flex-direction:column;justify-content:center;gap:4px}
.lp-home .nav-menu span{display:block;height:1.5px;width:100%;background:currentColor;border-radius:2px;transition:transform .2s ease,opacity .2s ease}
.lp-home .nav-menu.is-open span:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
.lp-home .nav-menu.is-open span:nth-child(2){opacity:0}
.lp-home .nav-menu.is-open span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}
.lp-home .btn-main,.lp-home .btn-ghost,.lp-home .nav-cta,.lp-home .mini{transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease, color .22s ease}
.lp-home .btn-main:hover,.lp-home .nav-cta:hover{transform:translateY(-2px)}
.lp-home .btn-ghost:hover,.lp-home .mini:hover{transform:translateY(-1px)}
.lp-home .btn-main:active,.lp-home .btn-ghost:active,.lp-home .nav-cta:active{transform:scale(.98)}
.has-motion .lp-home .reveal-item{opacity:0;transform:translateY(16px);transition:opacity .62s cubic-bezier(.22,.61,.36,1),transform .62s cubic-bezier(.22,.61,.36,1)}
.has-motion .lp-home .reveal-item.is-visible{opacity:1;transform:none}

@media(max-width:980px){
  .lp-home .links{display:none}
  .lp-home .links.is-open{display:flex;position:absolute;top:calc(100% + 10px);right:0;z-index:60;min-width:156px;padding:10px;border:1px solid rgba(164,198,236,.22);border-radius:14px;background:rgba(10,18,30,.96);box-shadow:0 22px 54px rgba(0,0,0,.35);flex-direction:column;align-items:stretch;gap:2px;font-size:12px}
  .lp-home .links.is-open a{padding:10px 12px;border-radius:8px}
  .lp-home .links.is-open a:hover{background:rgba(113,228,255,.08)}
  .lp-home .nav-menu{display:flex}
  .lp-home .hero{grid-template-columns:1fr;gap:34px;padding:56px 0 50px}
  .lp-home h1{font-size:clamp(42px,7vw,58px);line-height:1.02;letter-spacing:-.06em;overflow-wrap:anywhere}
  .lp-home h1 .thin{font-size:clamp(30px,5vw,42px);margin-top:10px}
  .lp-home .hero-copy{max-width:560px}
  .lp-home .visual{min-width:0;width:100%;padding:12px 0 8px}
  .lp-home .console{width:100%;max-width:100%}
  .lp-home .float-a{right:4px;top:70px}
  .lp-home .bento .card{grid-column:1/-1!important;min-height:auto!important}
  .lp-home .flow{grid-template-columns:1fr 1fr}
  .lp-home .step:nth-child(2){border-right:0}
  .lp-home .step:nth-child(3){border-top:1px solid var(--line)}
  .lp-home .strip{grid-template-columns:1fr 1fr}
  .lp-home .strip div:nth-child(2){border-right:0}
  .lp-home .strip div:nth-child(3),.lp-home .strip div:nth-child(4){border-top:1px solid var(--line)}
  .lp-home .cta{flex-direction:column;align-items:flex-start}
}
@media(max-width:600px){
  .lp-home .wrap{width:calc(100% - 32px)}
  .lp-home .nav{min-height:72px}
  .lp-home .nav-right{gap:6px}
  .lp-home .nav-right .theme-toggle{display:none}
  .lp-home .nav-right .mini{display:none}
  .lp-home .nav-cta{padding:9px 13px;font-size:10px}
  .lp-home .hero{padding-top:42px;gap:28px}
  .lp-home .hero-actions{width:100%;gap:10px}
  .lp-home .hero-actions .btn-main,.lp-home .hero-actions .btn-ghost{justify-content:center;flex:1;min-width:0;padding:12px 10px;font-size:11px}
  .lp-home .hero-note{gap:10px;font-size:9px}
  .lp-home .console{border-radius:16px}
  .lp-home .console-top{height:42px;padding:0 14px;font-size:8px}
  .lp-home .console-body{padding:16px 14px 12px}
  .lp-home .balance b{font-size:27px}
  .lp-home .balance b small{font-size:14px}
  .lp-home .float{display:none}
  .lp-home .sec-head{gap:8px}
  .lp-home .sec-head h2{font-size:28px;line-height:1.1}
  .lp-home .sec-head p{font-size:11px}
  .lp-home .strip div{padding:16px}
  .lp-home .strip b{font-size:24px}
  .lp-home .flow{grid-template-columns:1fr}
  .lp-home .step{border-right:0;border-bottom:1px solid var(--line)}
  .lp-home .step:last-child{border-bottom:0}
  .lp-home .cta{padding:24px;margin-top:56px}
  .lp-home .cta h2{font-size:26px}
  .lp-home .cta .actions{width:100%;flex-direction:column;align-items:stretch}
  .lp-home .cta .actions a{justify-content:center}
  .lp-home .footer{flex-direction:column;gap:8px;font-size:8px}
}
@media(prefers-reduced-motion:reduce){
  .has-motion .lp-home .reveal-item{opacity:1!important;transform:none!important;transition:none!important}
  .lp-home .btn-main,.lp-home .btn-ghost,.lp-home .nav-cta,.lp-home .mini{transition:none}
}

/* mobile overflow guard */
.lp-home .hero>*,.lp-home .visual,.lp-home .console,.lp-home .console-body,.lp-home .section,.lp-home .bento,.lp-home .flow,.lp-home .strip{min-width:0}
.lp-home .hero-copy{max-width:100%;overflow-wrap:anywhere}
.lp-home .console{width:100%;max-width:100%}
.lp-home .balance{flex-wrap:wrap}
@media(max-width:600px){
  .lp-home .hero-actions{flex-direction:column;align-items:stretch;width:100%}
  .lp-home .hero-actions .btn-main,.lp-home .hero-actions .btn-ghost{flex:none;width:100%;white-space:normal}
  .lp-home .console-body{overflow:hidden}
  .lp-home .balance b{font-size:24px;white-space:nowrap}
  .lp-home .balance .change{font-size:9px}
}

@media(max-width:600px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .lp-home{width:100%;max-width:100vw;overflow-x:hidden}
  .lp-home .wrap{width:100%;max-width:100vw;padding-left:16px;padding-right:16px;box-sizing:border-box}
  .lp-home .hero{display:block;width:100%;max-width:100%}
  .lp-home .hero>div{display:block;width:100%;max-width:100%}
  .lp-home .hero-copy{width:100%;max-width:100%}
  .lp-home .visual{display:block;width:100%;max-width:100%;overflow:hidden}
  .lp-home .console{display:block;width:100%;max-width:100%;overflow:hidden}
  .lp-home .console-body{width:100%;max-width:100%;box-sizing:border-box}
  .lp-home .balance{width:100%;max-width:100%;overflow:hidden}
  .lp-home .balance b{max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .lp-home .sec-head,.lp-home .sec-head>div,.lp-home .sec-head p{width:100%;max-width:100%}
  .lp-home .section,.lp-home .bento,.lp-home .flow,.lp-home .strip{width:100%;max-width:100%}
}

@media(max-width:600px){
  .lp-home .visual,.lp-home .console,.lp-home .console-body,.lp-home .hero-copy,.lp-home .hero-actions{box-sizing:border-box}
  .lp-home .visual{padding-left:0;padding-right:0}
}
@media(max-width:980px){.lp-home .links.is-open .mobile-login{display:block}}
