/* ============================================================
   星联支付 · 设计系统
   ============================================================ */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #0e1726;
  --text-2: #475569;
  --muted: #8a94a6;
  --line: #e8ecf4;
  --line-2: #f1f4f9;
  --brand: #2b5cff;
  --brand-2: #6b8cff;
  --brand-soft: #eef3ff;
  --navy: #0b1729;
  --navy-2: #12233c;
  --up: #e0373f;
  --down: #0e9f6e;
  --warn: #d97706;
  --warn-soft: #fff7e6;
  --ok: #0e9f6e;
  --ok-soft: #e9f9f2;
  --danger: #e0373f;
  --danger-soft: #fdeff0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 30, 54, .04), 0 8px 24px -12px rgba(16, 30, 54, .12);
  --shadow-lg: 0 24px 60px -20px rgba(16, 30, 54, .28);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cdd5e4; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.up { color: var(--up); }
.down { color: var(--down); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-brand {
  position: relative; overflow: hidden; padding: 56px 60px; color: #fff;
  background: radial-gradient(1200px 600px at 10% 0%, #2a4bd8 0%, #152a63 45%, #0a1533 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-brand::after {
  content: ""; position: absolute; right: -160px; bottom: -220px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(107, 140, 255, .45), transparent 62%); filter: blur(6px);
}
.brand-mark { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; letter-spacing: .5px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #6b8cff, #2b5cff); box-shadow: 0 8px 20px -8px rgba(43, 92, 255, .8);
}
.brand-hero h1 { font-size: 40px; line-height: 1.25; margin: 0 0 18px; font-weight: 700; letter-spacing: -.5px; }
.brand-hero p { color: rgba(255,255,255,.72); font-size: 15px; max-width: 460px; margin: 0; }
.brand-points { display: grid; gap: 16px; margin-top: 40px; position: relative; z-index: 1; }
.brand-points div { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.86); font-size: 14px; }
.brand-points b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.dot-ico { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.13); display: grid; place-items: center; flex: none; font-size: 13px; }
.login-foot { color: rgba(255,255,255,.45); font-size: 12px; position: relative; z-index: 1; }
.login-form-side { display: grid; place-items: center; padding: 40px; background: #fff; }
.login-card { width: 100%; max-width: 380px; }
.login-card h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.4px; }
.login-card .sub { color: var(--muted); margin-bottom: 26px; }
.scope-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #f2f5fa; padding: 4px; border-radius: 12px; margin-bottom: 22px; }
.scope-tabs button {
  border: 0; background: transparent; padding: 9px 0; border-radius: 9px; cursor: pointer;
  color: var(--text-2); font-weight: 500; transition: .18s;
}
.scope-tabs button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(16,30,54,.12); }
.demo-hint { margin-top: 22px; padding: 12px 14px; background: var(--brand-soft); border-radius: 10px; color: #3b5bdb; font-size: 12.5px; line-height: 1.7; }
.demo-hint b { font-family: var(--mono); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 15px; }
.field > label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.input, .select, textarea.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); outline: none; transition: .16s; font-size: 14px;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43,92,255,.12); }
.input::placeholder { color: #b3bccb; }
.input.lg { padding: 12px 14px; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: #fff; color: var(--text); cursor: pointer; font-weight: 500; transition: .16s; white-space: nowrap;
}
.btn:hover { border-color: #d3dbe9; background: #fafbfe; }
.btn.primary { background: linear-gradient(180deg, #3a68ff, #2b5cff); border-color: #2b5cff; color: #fff; box-shadow: 0 6px 16px -8px rgba(43,92,255,.9); }
.btn.primary:hover { background: linear-gradient(180deg, #2f5cff, #224ee6); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: #f1f4fa; }
.btn.danger { color: var(--danger); border-color: #f6c9cc; background: #fff; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.lg { padding: 12px 20px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- 应用骨架 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 226px; flex: none; background: linear-gradient(180deg, #0c1a2e, #0a1424); color: #aab6c8;
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 30;
}
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px 16px; color: #fff; font-weight: 600; letter-spacing: .3px; }
.sb-brand .brand-logo { width: 32px; height: 32px; border-radius: 9px; }
.sb-scope { margin: 0 14px 10px; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.06); font-size: 11.5px; color: #93a3ba; display: inline-block; }
.sb-nav { flex: 1; overflow-y: auto; padding: 6px 12px 20px; }
.sb-group { font-size: 11px; letter-spacing: 1.2px; color: #5c6d85; padding: 16px 10px 6px; text-transform: uppercase; }
.sb-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer;
  color: #a9b6c9; font-size: 13.5px; margin-bottom: 2px; transition: .15s; position: relative;
}
.sb-item:hover { background: rgba(255,255,255,.055); color: #e6ecf6; }
.sb-item.on { background: linear-gradient(90deg, rgba(43,92,255,.9), rgba(43,92,255,.55)); color: #fff; box-shadow: 0 6px 18px -10px rgba(43,92,255,.9); }
.sb-item svg { width: 17px; height: 17px; flex: none; opacity: .9; }
.sb-item .tag { margin-left: auto; background: var(--up); color: #fff; border-radius: 9px; font-size: 10.5px; padding: 0 6px; line-height: 17px; }
.sb-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 10px; }
.sb-foot .avatar { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; font-size: 13px; }
.sb-foot .who { font-size: 12.5px; color: #dfe6f1; line-height: 1.3; }
.sb-foot .who span { display: block; color: #6c7d95; font-size: 11px; }
.sb-foot .out { margin-left: auto; cursor: pointer; color: #6c7d95; }
.sb-foot .out:hover { color: #fff; }

.main { margin-left: 226px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; background: rgba(255,255,255,.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 24px; gap: 14px; position: sticky; top: 0; z-index: 20;
}
.crumb { font-size: 14.5px; font-weight: 600; }
.crumb span { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 8px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.icon-btn:hover { background: #f7f9fd; }
.content { padding: 22px 24px 40px; max-width: 1560px; width: 100%; }

/* ---------- 卡片 / KPI ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-hd { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.card-hd h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card-hd .sub { color: var(--muted); font-size: 12.5px; }
.card-hd .spacer { flex: 1; }
.card-bd { padding: 18px; }
.card-bd.tight { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1200px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid.side { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }

.kpi { padding: 18px; position: relative; overflow: hidden; }
.kpi .k-label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.kpi .k-val { font-size: 27px; font-weight: 650; letter-spacing: -.6px; margin: 8px 0 2px; }
.kpi .k-val small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi .k-sub { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi .k-ico { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 12px; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }

/* ---------- 表格 ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th {
  text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: .3px;
  padding: 11px 14px; background: #fafbfe; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
table.tb td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tb tbody tr:hover { background: #fbfcff; }
table.tb tbody tr:last-child td { border-bottom: 0; }
table.tb .strong { font-weight: 600; }
table.tb .sub { color: var(--muted); font-size: 12px; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.empty .ico { font-size: 26px; opacity: .5; display: block; margin-bottom: 8px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 500; background: #f1f4f9; color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .75; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--brand-soft); color: var(--brand); }
.badge.gray { background: #f1f4f9; color: #7b8798; }
.badge.plain::before { display: none; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.toolbar .input, .toolbar .select { width: auto; min-width: 140px; padding: 8px 11px; }
.toolbar .grow { flex: 1; }
.pager { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 12.5px; }
.pager .btn { padding: 4px 10px; font-size: 12.5px; }
.pager .spacer { flex: 1; }

/* ---------- 图表 ---------- */
.chart-box { padding: 8px 18px 14px; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); padding: 0 18px 12px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut-list { flex: 1; display: grid; gap: 10px; }
.donut-list .it { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.donut-list .it i { width: 8px; height: 8px; border-radius: 3px; }
.donut-list .it span { margin-left: auto; font-weight: 600; }
.bar-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 13px; }
.bar-row .nm { width: 92px; flex: none; color: var(--text-2); }
.bar-track { flex: 1; height: 8px; background: #f1f4f9; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6b8cff, #2b5cff); }
.bar-row .vl { width: 90px; text-align: right; font-weight: 600; font-size: 12.5px; }

/* ---------- 弹窗 / 提示 ---------- */
.mask { position: fixed; inset: 0; background: rgba(11, 23, 41, .45); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 100; padding: 24px; animation: fade .16s ease; }
.modal { background: #fff; border-radius: 16px; width: 520px; max-width: 100%; max-height: 88vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.modal-hd { padding: 18px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; }
.modal-hd h3 { margin: 0; font-size: 16px; }
.modal-hd .x { margin-left: auto; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; }
.modal-bd { padding: 20px; overflow-y: auto; }
.modal-ft { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { transform: translateY(8px) scale(.99); opacity: .6 } }
#toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.toast { background: #0e1726; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.toast.err { background: #c22a32; }
.toast.ok { background: #0d8a5f; }

/* ---------- 分段 / 标签页 ---------- */
.seg { display: inline-flex; background: #f2f5fa; padding: 3px; border-radius: 10px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.seg button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(16,30,54,.1); }

/* ---------- 收银台 ---------- */
.cash { min-height: 100vh; background: radial-gradient(900px 500px at 50% -10%, #dfe8ff, #f4f6fb 60%); display: grid; place-items: center; padding: 24px; }
.cash-card { width: 380px; max-width: 100%; background: #fff; border-radius: 22px; box-shadow: 0 30px 70px -24px rgba(16,30,54,.35); overflow: hidden; }
.cash-top { padding: 26px 24px 20px; text-align: center; border-bottom: 1px dashed var(--line); }
.cash-top .mch { font-size: 14px; color: var(--text-2); }
.cash-top .amt { font-size: 44px; font-weight: 700; letter-spacing: -1.5px; margin: 8px 0 2px; }
.cash-top .amt small { font-size: 20px; font-weight: 600; margin-right: 2px; }
.cash-top .subj { color: var(--muted); font-size: 12.5px; }
.pay-methods { padding: 10px 16px; }
.pay-item { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: .15s; }
.pay-item:hover { background: #fafbfe; }
.pay-item.on { border-color: #b9caff; background: #f4f7ff; }
.pay-item .logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 700; }
.pay-item .nm { font-size: 14px; }
.pay-item .desc { font-size: 11.5px; color: var(--muted); }
.pay-item .radio { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #ccd5e4; display: grid; place-items: center; }
.pay-item.on .radio { border-color: var(--brand); }
.pay-item.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.cash-ft { padding: 16px 20px 22px; }
.cash-ft .btn { width: 100%; padding: 13px; font-size: 15px; border-radius: 12px; }
.cash-safe { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.cash-done { padding: 44px 24px; text-align: center; }
.cash-done .tick { width: 66px; height: 66px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; font-size: 30px; }
.cash-done h3 { margin: 0 0 6px; font-size: 19px; }
.cash-done .amt { font-size: 30px; font-weight: 700; margin: 10px 0; }
.qr-box { text-align: center; padding: 18px; }
.qr-box canvas, .qr-box img { border-radius: 12px; }
.qr-box .tip { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

/* ---------- 手机端 ---------- */
.phone {
  width: 100%; max-width: 430px; margin: 0 auto; min-height: 100vh; background: #f4f6fb;
  padding-bottom: 78px; position: relative; box-shadow: 0 0 60px rgba(16,30,54,.08);
}
.m-top {
  background: linear-gradient(160deg, #1a3bb8 0%, #2b5cff 55%, #4a76ff 100%);
  color: #fff; padding: 18px 18px 64px; border-radius: 0 0 26px 26px; position: relative; overflow: hidden;
}
.m-top::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; background: rgba(255,255,255,.13); border-radius: 50%; }
.m-top .bar { display: flex; align-items: center; justify-content: space-between; font-size: 13px; opacity: .95; }
.m-top .hello { font-size: 13px; opacity: .8; margin-top: 16px; }
.m-top .shop { font-size: 20px; font-weight: 650; margin-top: 2px; }
.m-top .stats { display: flex; gap: 22px; margin-top: 18px; position: relative; z-index: 1; }
.m-top .stats div span { display: block; font-size: 11.5px; opacity: .75; }
.m-top .stats div b { font-size: 19px; font-weight: 650; letter-spacing: -.3px; }
.m-body { padding: 0 14px; margin-top: -46px; position: relative; z-index: 2; }
.m-card { background: #fff; border-radius: 16px; box-shadow: 0 8px 30px -16px rgba(16,30,54,.3); padding: 16px; }
.m-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin-top: 14px; }
.m-quick div { padding: 10px 4px; border-radius: 12px; cursor: pointer; }
.m-quick div:active { background: #f2f5fb; }
.m-quick .ico { width: 42px; height: 42px; border-radius: 13px; margin: 0 auto 6px; display: grid; place-items: center; font-size: 19px; background: var(--brand-soft); color: var(--brand); }
.m-quick .t { font-size: 12px; color: var(--text-2); }
.m-sec { display: flex; align-items: center; margin: 18px 4px 10px; }
.m-sec h4 { margin: 0; font-size: 14.5px; }
.m-sec a { margin-left: auto; font-size: 12px; color: var(--muted); }
.m-list { background: #fff; border-radius: 16px; overflow: hidden; }
.m-item { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line-2); }
.m-item:last-child { border-bottom: 0; }
.m-item .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); font-size: 15px; }
.m-item .nm { font-size: 13.5px; }
.m-item .sub { font-size: 11.5px; color: var(--muted); }
.m-item .val { margin-left: auto; text-align: right; font-weight: 600; font-size: 14px; }
.m-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 0 10px; z-index: 50;
}
.m-tabbar div { text-align: center; color: var(--muted); font-size: 10.5px; cursor: pointer; }
.m-tabbar div.on { color: var(--brand); }
.m-tabbar .ti { font-size: 19px; display: block; line-height: 1.3; }
.m-btn-primary { width: 100%; padding: 14px; border-radius: 14px; border: 0; background: linear-gradient(180deg,#3a68ff,#2b5cff); color: #fff; font-size: 15.5px; font-weight: 600; box-shadow: 0 10px 24px -12px rgba(43,92,255,.9); }
.sheet-mask { position: fixed; inset: 0; background: rgba(11,23,41,.45); z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 430px; background: #fff; border-radius: 20px 20px 0 0; padding: 18px; max-height: 86vh; overflow-y: auto; animation: up .22s ease; }
@keyframes up { from { transform: translateY(100%) } }
.sheet h3 { margin: 0 0 14px; font-size: 16px; }
.amount-pad { font-size: 40px; font-weight: 700; text-align: center; padding: 10px 0 4px; letter-spacing: -1px; }
.amount-pad span { color: var(--muted); font-size: 20px; }

/* ---------- 杂项 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 18px; }
.tabs div { padding: 12px 14px; cursor: pointer; color: var(--text-2); font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs div.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.info-list { display: grid; gap: 12px; }
.info-list .li { display: flex; gap: 16px; font-size: 13px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); }
.info-list .li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list .li .k { width: 96px; color: var(--muted); flex: none; }
.info-list .li .v { flex: 1; word-break: break-all; }
.code { background: #0e1726; color: #dbe4f3; padding: 16px; border-radius: 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; overflow-x: auto; white-space: pre; }
.code .c { color: #6b7f9e; }
.code .k { color: #8ab4ff; }
.code .s { color: #7ddca4; }
.divider { height: 1px; background: var(--line-2); margin: 16px 0; }
.stat-line { display: flex; align-items: baseline; gap: 8px; }
.stat-line b { font-size: 22px; font-weight: 650; letter-spacing: -.5px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 9px; background: #f4f6fb; color: var(--text-2); font-size: 12.5px; border: 1px solid transparent; cursor: pointer; }
.chip.on { background: var(--brand-soft); color: var(--brand); border-color: #cddaff; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); color: #8a5a00; font-size: 12.5px; line-height: 1.6; }
.notice.info { background: var(--brand-soft); color: #2f4bb5; }
.mch-qr { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-align: center; }
.mch-qr .qr-name { font-weight: 600; margin-bottom: 4px; }
.mch-qr .qr-tip { color: var(--muted); font-size: 12px; margin-top: 8px; }
@media (max-width: 980px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .sidebar { transform: translateX(-100%); transition: .2s; }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .content { padding: 16px; }
}
