/* ===== 设计令牌 ===== */
:root {
  --bg: #f5f7fb; --surface: #fff; --surface-2: #f8fafc; --line: #e2e8f0; --line-strong: #cbd5e1;
  --text: #0f172a; --text-2: #334155; --muted: #5b6474;
  --primary: #4f46e5; --primary-hover: #4338ca; --primary-soft: #eef2ff; --primary-ink: #3730a3;
  --ok: #15803d; --ok-soft: #dcfce7; --warn: #b45309; --warn-soft: #fef3c7;
  --bad: #b91c1c; --bad-soft: #fee2e2; --info: #1d4ed8; --info-soft: #dbeafe;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --sh-2: 0 4px 16px rgba(15, 23, 42, .08);
  --ease: cubic-bezier(.2, .7, .3, 1); --t: 180ms;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

/* ===== 基础 ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3 { margin: 0; line-height: 1.3; color: var(--text); }
button, input, select { font: inherit; color: inherit; }
button, a, select, label { touch-action: manipulation; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1200px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--primary); color: #fff;
  padding: 8px 14px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 22px; height: 22px; }
/* ===== 顶栏 ===== */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px;
  color: var(--text); text-decoration: none; min-width: 0; }
.logo .mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font: 700 13px/1 Arial, sans-serif; }
.logo .site-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo small { font-weight: 500; font-size: 13px; color: var(--muted); padding-left: 10px;
  border-left: 1px solid var(--line); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-size: 14px;
  transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.nav a.danger:hover { color: var(--bad); background: var(--bad-soft); }

/* ===== 面板 ===== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); padding: 22px; margin: 20px 0; }
.panel-head, .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 14px; }
.panel h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.panel h2 svg.i { color: var(--primary); }
.tip { color: var(--muted); font-size: 13px; margin: -6px 0 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ===== 表单 ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.err { color: var(--bad); font-size: 13px; margin: 8px 0 0; }
.err:empty { display: none; }
input[type=text], input[type=password], input[type=number], input[type=search], select {
  min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface); outline: none; min-width: 0; font-size: 15px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
input::placeholder { color: #8a93a3; }
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
input.mono { letter-spacing: .5px; }
.input-lg { min-height: 52px !important; font-size: 17px !important; }

/* ===== 按钮 ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px;
  padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-md); cursor: pointer;
  font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; user-select: none;
  background: var(--primary); color: #fff;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform 80ms var(--ease); }
.btn:hover:not(:disabled) { background: var(--primary-hover); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--text-2); border-color: var(--line-strong); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); border-color: #94a3b8; }
.btn.soft { background: var(--primary-soft); color: var(--primary-ink); }
.btn.soft:hover:not(:disabled) { background: #e0e7ff; }
.btn.danger { background: var(--surface); color: var(--bad); border-color: #fecaca; }
.btn.danger:hover:not(:disabled) { background: var(--bad-soft); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: var(--r-md); }
.btn.icon { padding: 0; width: 34px; }
/* ===== 登录页 ===== */
.hero { padding: 44px 20px 12px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px;
  background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 600; }
.hero h1 { font-size: clamp(26px, 5vw, 34px); margin: 14px 0 8px; letter-spacing: -.5px; }
.hero .lead { color: var(--muted); margin: 0 auto 26px; max-width: 460px; }
.login-card { max-width: 500px; margin: 0 auto; text-align: left; }
.login-card form { display: flex; gap: 10px; align-items: flex-end; }
.login-card form .field { flex: 1; }
.btn .spin { color: currentColor; }
.login-card form.vertical { flex-direction: column; align-items: stretch; gap: 14px; }
.hero h1 + .login-card { margin-top: 20px; }
.summary .line svg.i { color: var(--muted); }
.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface);
  font: 13px var(--mono); color: var(--text-2); cursor: pointer; transition: all var(--t) var(--ease); }
.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 760px;
  margin: 34px auto 10px; padding: 0; list-style: none; text-align: left; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; display: flex; gap: 12px; }
.steps .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--primary-soft); color: var(--primary); }
.steps b { display: block; font-size: 14px; }
.steps span { color: var(--muted); font-size: 13px; }

/* ===== 余额概览 ===== */
.summary { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.balance { min-width: 120px; }
.balance .label { color: var(--muted); font-size: 13px; }
.balance b { display: block; font-size: 38px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary .meta { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.meter { height: 8px; background: #eef1f6; border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: inherit; transform-origin: left; transition: transform 400ms var(--ease); }
.summary .line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.summary .line .mono { color: var(--text-2); }
/* ===== 订单卡片 ===== */
.order { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: var(--surface);
  animation: rise 220ms var(--ease); }
.order + .order { margin-top: 12px; }
.order.active { border-color: #c7d2fe; box-shadow: 0 0 0 3px #eef2ff; }
.order.done { border-color: #bbf7d0; }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.phone-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.phone { font: 700 24px/1.2 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.phone.empty { font: 500 16px/1.5 inherit; color: var(--muted); }
.code-box { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: var(--ok-soft); border: 1px solid #bbf7d0; border-radius: var(--r-md); }
.code-box .label { color: var(--ok); font-size: 13px; font-weight: 600; }
.code-box b { display: block; font: 700 30px/1.15 var(--mono); color: #14532d; letter-spacing: 4px;
  font-variant-numeric: tabular-nums; }
.order-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.info { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.info svg.i { color: var(--ok); }

/* ===== 徽标 ===== */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600; white-space: nowrap; background: #f1f5f9; color: #475569; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.allocating, .badge.waiting, .badge.live { background: var(--warn-soft); color: var(--warn); }
.badge.allocating::before, .badge.waiting::before, .badge.live::before { animation: pulse 1.4s ease-in-out infinite; }
.badge.success, .badge.active { background: var(--ok-soft); color: var(--ok); }
.badge.failed, .badge.expired, .badge.disabled { background: var(--bad-soft); color: var(--bad); }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 12px;
  font-weight: 600; background: #f3e8ff; color: #6b21a8; }

/* ===== 加载与动效 ===== */
.spin { width: 14px; height: 14px; flex: none; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite; color: var(--warn); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ===== 号码列表（二次验证） ===== */
.num-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.num-row:first-child { padding-top: 0; }
.num-row:last-child { border-bottom: 0; padding-bottom: 0; }
.num-row .phone { font-size: 18px; }
.num-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
/* ===== 表格 ===== */
.scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 12px; background: var(--surface-2); white-space: nowrap; }
thead th:first-child { border-top-left-radius: var(--r-sm); }
thead th:last-child { border-top-right-radius: var(--r-sm); }
tbody tr { transition: background var(--t) var(--ease); }
tbody tr:hover { background: #fafbff; }
tbody tr:last-child td { border-bottom: 0; }
td .row { flex-wrap: nowrap; gap: 6px; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 14px;
  color: var(--muted); font-size: 13px; flex-wrap: wrap; }

/* ===== 空状态 ===== */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 12px;
  color: var(--muted); font-size: 14px; text-align: center; }
.empty svg.i { width: 30px; height: 30px; color: #a3acbb; stroke-width: 1.6; }

/* ===== 提示与页脚 ===== */
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 12px); max-width: calc(100% - 32px); background: #0f172a; color: #fff;
  padding: 11px 18px; border-radius: var(--r-md); font-size: 14px; box-shadow: var(--sh-2);
  opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 28px 16px calc(32px + env(safe-area-inset-bottom)); }

/* ===== 购买 ===== */
:root { --alipay: #1677ff; --alipay-soft: #e8f1ff; --wx: #07a35a; --wx-soft: #e6f7ee; }
.buy { display: flex; flex-direction: column; gap: 16px; }
.buy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.buy-head .label { display: block; font-weight: 600; color: var(--text-2); font-size: 14px; }
.price { color: var(--muted); font-size: 14px; }
.price b { font-size: 28px; color: var(--text); margin-right: 2px; }
.eyebrow.sm { font-size: 12px; padding: 3px 10px; white-space: nowrap; }
.qchips { display: flex; gap: 8px; flex-wrap: wrap; }
.qchip { min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 99px;
  background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: all var(--t) var(--ease); }
.qchip:hover { border-color: var(--primary); color: var(--primary); }
.qchip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pay-type .brand, .pay-brand .brand { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  color: #fff; font: 700 13px/1 sans-serif; flex: none; }
.pay-type.alipay .brand, .alipay .pay-brand .brand { background: var(--alipay); }
.pay-type.wxpay .brand, .wxpay .pay-brand .brand { background: var(--wx); }
.pay-type.alipay:has(input:checked) { border-color: var(--alipay); background: var(--alipay-soft); color: #0b4fb3; }
.pay-type.wxpay:has(input:checked) { border-color: var(--wx); background: var(--wx-soft); color: #05683a; }
.pay-go { width: 100%; }
.tip.center { text-align: center; margin: 0; display: flex; align-items: center; justify-content: center; gap: 4px; }
/* 购买须知 */
.notice { border: 1px solid #fde68a; background: #fffbeb; border-radius: var(--r-md); padding: 12px 14px; font-size: 13px; color: #78350f; }
.notice summary { cursor: pointer; font-weight: 700; color: #92400e; display: flex; align-items: center; gap: 6px; min-height: 28px; }
.notice ul { margin: 8px 0 2px; padding-left: 18px; line-height: 1.75; }
.notice li b { color: #7c2d12; }
.agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary); flex: none; }
/* 售后联系 */
.support { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; min-height: 36px; border-radius: 99px;
  background: #fff7ed; color: #9a3412; font-size: 13px; font-weight: 600; border: 1px solid #fed7aa; cursor: pointer; }
.support:hover { background: #ffedd5; }
.support-bar { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; font-size: 13px; }
.support-bar.pad { padding: 0 20px 18px; margin: 0; }
.result .support-bar { margin: 0 0 18px; }
.foot .support-bar { margin: 0 0 10px; }
@media (max-width: 640px) {
  .nav-qq .support span { display: none; }
  .nav-qq .support { padding: 0 10px; }
  /* 购买：快捷数量单独一行，支付方式文字不换行 */
  .buy-row:not(.total) { flex-direction: column; align-items: stretch; }
  .qchips { display: grid; grid-template-columns: repeat(4, 1fr); }
  .qchip { padding: 0; }
  .stepper { justify-content: center; }
  .pay-type { padding: 0 10px; gap: 6px; white-space: nowrap; font-size: 14px; }
  /* 成功页凭证：竖排，避免折成三行 */
  .result .code-box { flex-direction: column; align-items: stretch; text-align: center; }
  .result .code-box b { font-size: 20px; letter-spacing: 1.5px; white-space: nowrap; }
  .result .code-box .btn { width: 100%; }
}
/* 收银台 */
.checkout { max-width: 440px; margin: 28px auto; }
.panel.pay-card { padding: 0; overflow: hidden; text-align: center; }
.pay-status span:not(.num) { white-space: nowrap; }
.pay-brand { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; color: #fff; font-weight: 700; font-size: 16px; }
.alipay .pay-brand { background: var(--alipay); }
.wxpay .pay-brand { background: var(--wx); }
.pay-brand .brand { background: rgba(255,255,255,.22) !important; }
.pay-amount { padding: 20px 20px 4px; }
.pay-amount span { display: block; color: var(--muted); font-size: 13px; }
.pay-amount b { display: block; font-size: 40px; line-height: 1.2; letter-spacing: -.5px; }
.pay-amount small { color: var(--muted); font-size: 13px; }
.qr-frame { width: 236px; margin: 14px auto 6px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.qr-frame img { display: block; width: 220px; height: 220px; image-rendering: pixelated; }
.pay-hint { color: var(--text-2); font-size: 14px; margin: 8px 24px 14px; }
.pay-open { margin: 0 20px 14px; width: calc(100% - 40px); }
.alipay .pay-open { background: var(--alipay); }
.wxpay .pay-open { background: var(--wx); }
.pay-status { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; margin: 0 20px;
  background: var(--surface-2); border-radius: var(--r-md); font-size: 13px; color: var(--text-2); }
.pay-status .num { color: var(--warn); font-weight: 600; }
.pay-actions { display: flex; justify-content: center; gap: 10px; padding: 14px 20px 6px; flex-wrap: wrap; }
.pay-card .tip { padding: 0 20px 16px; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buy-row .label { display: block; font-weight: 600; }
.buy-row small { display: block; font-size: 13px; }
.buy-row.total { padding-top: 12px; border-top: 1px dashed var(--line); }
.buy-row.total b { font-size: 26px; color: var(--primary); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper .btn { width: 40px; min-height: 40px; font-size: 20px; }
.qty-val { min-width: 36px; text-align: center; font-size: 20px; font-weight: 700; }
.pay-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.pay-type { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--r-md); font-weight: 600; }
.pay-type:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.pay-type input { accent-color: var(--primary); width: 18px; height: 18px; }
.login-card.alt { margin-top: 14px; }
.have { margin-top: 10px; }
.have summary { cursor: pointer; color: var(--text-2); font-size: 14px; min-height: 32px; }
.have form { display: flex; gap: 10px; align-items: flex-end; margin-top: 10px; }
.have form .field { flex: 1; }
.cta-group { display: flex; flex-direction: column; gap: 8px; }
.result { text-align: center; max-width: 560px; margin: 40px auto; padding: 36px 24px; }
.result h1 { font-size: 22px; margin: 14px 0 6px; }
.result .code-box { text-align: left; margin: 20px 0 12px; }
.result .warn-bar { text-align: left; margin: 0 0 20px; }
.ok-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok); }
.ok-mark.bad { background: var(--warn-soft); color: var(--warn); }
.spin.big { width: 40px; height: 40px; border-width: 3px; color: var(--primary); display: inline-block; }

/* ===== 管理后台 ===== */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.grid4 .panel { margin: 0; }
.kpi { display: flex; gap: 14px; align-items: center; }
.kpi .ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--primary-soft); color: var(--primary); }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.warn-bar { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 14px;
  border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn); font-size: 13px; }
.gen-form { display: grid; grid-template-columns: repeat(3, 120px) 1fr auto; gap: 12px; align-items: end; }
textarea { width: 100%; margin: 14px 0 8px; padding: 12px; border: 1px solid var(--line-strong);
  border-radius: var(--r-md); font: 14px/1.7 var(--mono); resize: vertical; background: var(--surface-2); }
.bar form input { width: 240px; min-height: 36px; padding: 6px 12px; font-size: 14px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .gen-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gen-form .grow, .gen-form .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .panel { padding: 16px; margin: 14px 0; border-radius: var(--r-md); }
  .hero { padding-top: 28px; }
  .steps { grid-template-columns: 1fr; margin-top: 24px; }
  .login-card form { flex-direction: column; align-items: stretch; }
  .summary { gap: 16px; }
  .summary .cta, .cta-group { width: 100%; }
  .have form { flex-direction: column; align-items: stretch; }
  .summary .sep { display: none; }
  #s-exp { flex-basis: 100%; }
  .phone { font-size: 21px; }
  .code-box b { font-size: 26px; }
  .order-foot .row { width: 100%; }
  .order-foot .row .btn { flex: 1; }
  .logo small, .nav .lbl { display: none; }
  .panel-head form { width: 100%; flex-wrap: nowrap; }
  .panel-head form input { flex: 1; width: auto; }
  .gen-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gen-form .field:nth-child(3) { grid-column: 1 / -1; }
  .grid4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .ico { display: none; }
  /* 窄屏下表格改为卡片 */
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 12px; margin-bottom: 10px; }
  table.stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 7px 0; border-bottom: 1px dashed var(--line); text-align: right; }
  table.stack tr td:last-child { border-bottom: 0; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; flex: none; }
  table.stack td .row { justify-content: flex-end; flex-wrap: wrap; }
}
@media (pointer: coarse) {
  input[type=text], input[type=password], input[type=number], input[type=search], select { font-size: 16px; }
  .btn.sm { min-height: 40px; }
  .btn.icon { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; }
}
