/* ==========================================================================
   轻收银台 · 移动端 UI（微信风格）
   白 + 微信绿，App 化布局：顶部导航 + 底部标签栏 + 列表式管理
   ========================================================================== */

:root {
  --green: #3cb371;
  --green-dark: #35a465;
  --green-deep: #2f8f57;
  --green-nav: #509863;
  --green-soft: #eaf6ef;
  --green-line: #c9e8d5;

  --bg: #f5f5f5;
  --page: #ededed;
  --surface: #ffffff;
  --fill: #f7f7f7;

  --ink: #111111;
  --ink-2: #353535;
  --muted: #999999;
  --muted-2: #b2b2b2;
  --line: #ededed;
  --line-2: #e5e5e5;

  --link: #576b95;
  --danger: #fa5151;
  --danger-soft: #ffeded;
  --warning: #c87d00;
  --warning-soft: #fff6e5;
  --info: #3b6ef5;
  --info-soft: #eef3ff;

  --r-card: 12px;
  --r-btn: 8px;
  --navbar-h: 44px;
  --tabbar-h: 54px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

.icon { width: 20px; height: 20px; flex: none; stroke-width: 1.9; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.grow { flex: 1; min-width: 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   App 外壳
   -------------------------------------------------------------------------- */
.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  padding: 0 8px;
  background: rgba(247, 247, 247, .94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: .5px solid rgba(0, 0, 0, .07);
}
.navbar-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar-side { width: 72px; display: flex; align-items: center; gap: 2px; }
.navbar-side.right { justify-content: flex-end; gap: 8px; }
.navbar-side.right .icon { width: 22px; height: 22px; }
.nav-back {
  width: 36px; height: 36px; margin-left: -6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.nav-back .icon { width: 24px; height: 24px; stroke-width: 2.2; }
.nav-action { color: var(--ink); font-size: 15px; display: flex; align-items: center; gap: 4px; }

.app-main {
  flex: 1;
  padding: 12px 12px calc(var(--tabbar-h) + var(--safe-b) + 24px);
  min-width: 0;
}
.app-main.no-tabbar { padding-bottom: calc(var(--safe-b) + 92px); }
.app-main.plain { padding: 0 0 calc(var(--safe-b) + 24px); }

/* 底部标签栏 */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 40;
  display: flex;
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: .5px solid rgba(0, 0, 0, .08);
}
.tabbar a {
  flex: 1;
  height: var(--tabbar-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #7a7e83;
  font-size: 10.5px;
  letter-spacing: .01em;
}
.tabbar .icon { width: 23px; height: 23px; stroke-width: 1.85; }
.tabbar a.active { color: var(--green); }
.tabbar a.active .icon { stroke-width: 2.1; }

/* 底部操作条（详情/表单页） */
.bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 40;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: .5px solid rgba(0, 0, 0, .07);
  display: flex;
  gap: 10px;
}
.bottom-bar .btn { flex: 1; }
.bottom-bar .btn.slim { flex: 0 0 auto; min-width: 96px; }

/* --------------------------------------------------------------------------
   通用块
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
}
.stack > * + * { margin-top: 12px; }
.card-pad { padding: 16px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 10px;
}
.card-head h2 { font-size: 15px; font-weight: 600; }
.card-head .more { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 2px; }
.card-body { padding: 0 16px 16px; }
.card-body.pad { padding: 16px; }

.group-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6px 8px;
  font-size: 13px; color: #888;
}
.group-title a { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 1px; }

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

/* 列表单元（WeChat Cell） */
.cells { background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.cell {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 54px;
  padding: 11px 16px;
  background: var(--surface);
}
.cell + .cell::before {
  content: "";
  position: absolute; top: 0; left: 16px; right: 0;
  height: .5px; background: var(--line);
}
.cell-label { font-size: 16px; color: var(--ink); flex: none; }
.cell-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cell-value {
  margin-left: auto;
  font-size: 15px; color: var(--muted); text-align: right;
  max-width: 62%; word-break: break-all;
}
.cell-value.strong { color: var(--ink); font-weight: 500; }
.cell-chevron { color: #c8c8cd; width: 16px; height: 16px; flex: none; }
.cell.tappable:active { background: #f2f2f2; }
.cell-icon {
  width: 24px; height: 24px; flex: none;
  display: flex; align-items: center; justify-content: center; color: #7a7e83;
}

/* 标签 */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 7px; border-radius: 4px;
  font-size: 11px; font-weight: 500; line-height: 1;
  background: #f2f2f2; color: #888;
}
.badge-success { background: var(--green-soft); color: var(--green-deep); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger  { background: var(--danger-soft); color: var(--danger); }
.badge-info    { background: var(--info-soft); color: var(--info); }
.badge-muted   { background: #f2f2f2; color: #999; }

/* 提示条 */
.alert {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 12px 14px; border-radius: 10px;
  font-size: 13px; line-height: 1.55;
  background: var(--fill); color: var(--ink-2);
}
.alert .icon { width: 17px; height: 17px; margin-top: 1px; flex: none; }
.alert-success { background: var(--green-soft); color: #067a41; }
.alert-error { background: var(--danger-soft); color: #b33636; }
.alert-warning { background: var(--warning-soft); color: #8f5a00; }
.alert-info { background: var(--info-soft); color: #2f56c0; }

/* 空状态 */
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty-icon {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px;
  background: #f4f5f6; color: #b8bec8;
  display: flex; align-items: center; justify-content: center;
}
.empty-icon .icon { width: 26px; height: 26px; }
.empty h3 { font-size: 14px; color: #666; font-weight: 500; margin-bottom: 4px; }
.empty p { font-size: 12.5px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px; padding: 0 18px;
  border: 0; border-radius: var(--r-btn);
  background: var(--green); color: #fff;
  font-size: 17px; font-weight: 500; letter-spacing: .02em;
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease, opacity .15s ease, transform .05s ease;
}
.btn:active { background: var(--green-dark); transform: scale(.995); }
.btn:disabled { background: #9edfbd; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 6px; gap: 4px; }
.btn-sm .icon { width: 15px; height: 15px; }
.btn-lg { height: 50px; font-size: 17px; }
.btn-outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-outline:active { background: #f7f7f7; }
.btn-soft { background: var(--green-soft); color: var(--green-deep); }
.btn-soft:active { background: #d8f3e4; }
.btn-danger { background: var(--danger); }
.btn-danger:active { background: #e04343; }
.btn-ghost { background: transparent; color: var(--link); }
.btn-link { background: none; border: 0; padding: 0; height: auto; color: var(--link); font-size: 14px; cursor: pointer; }
.btn[disabled] { pointer-events: none; }

/* --------------------------------------------------------------------------
   表单
   -------------------------------------------------------------------------- */
.form-card { background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.field { padding: 13px 16px; position: relative; }
.field + .field::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 0;
  height: .5px; background: var(--line);
}
.field > label {
  display: block; font-size: 13px; color: #888; margin-bottom: 4px;
}
.field > label .req { color: var(--danger); margin-left: 2px; }
.input, .textarea, .select {
  width: 100%;
  height: 30px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
}
.input::placeholder { color: #c2c2c2; }
.textarea::placeholder { color: #a9a9a9; }
.textarea {
  height: auto;
  min-height: 96px;
  margin-top: 2px;
  padding: 10px 12px;
  background: var(--fill);
  border-radius: 8px;
  line-height: 1.6;
  resize: vertical;
}
.textarea.mono { font-family: var(--mono); font-size: 11.5px; }
.textarea:focus { background: #fff; box-shadow: inset 0 0 0 1px var(--green); }
.select { height: 32px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.error-text { font-size: 12px; color: var(--danger); margin-top: 4px; }
.input-affix { display: flex; align-items: center; gap: 6px; }
.input-affix .prefix { color: var(--ink); font-size: 16px; }
.input-affix .input { flex: 1; }

.field:focus-within > label { color: var(--green-deep); }
.input:focus, .select:focus { box-shadow: inset 0 -1px 0 var(--green); }

.check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; }
.check-row input[type="checkbox"], .check-row input[type="radio"] {
  width: 20px; height: 20px; accent-color: var(--green); flex: none;
}
.radio-line { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 15px; }

/* --------------------------------------------------------------------------
   首页 / 概览
   -------------------------------------------------------------------------- */
.wallet-card {
  position: relative; overflow: hidden;
  border-radius: 16px;
  padding: 18px 20px 16px;
  background: linear-gradient(140deg, #3cb371 0%, #37a86a 100%);
  color: #fff;
}
.wallet-card::after {
  content: ""; position: absolute; width: 190px; height: 190px; right: -70px; top: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%);
}
.wallet-top { display: flex; align-items: center; gap: 10px; position: relative; }
.wallet-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: #fff;
  backdrop-filter: blur(4px);
}
.wallet-hello { font-size: 13px; color: rgba(255, 255, 255, .9); line-height: 1.35; }
.wallet-hello b { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.wallet-tag {
  margin-left: auto; font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); color: #fff;
}
.wallet-label { position: relative; margin-top: 18px; font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.wallet-amount {
  position: relative; margin-top: 2px;
  font-size: 34px; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.wallet-amount small { font-size: 17px; font-weight: 500; margin-right: 3px; }
.wallet-meta {
  position: relative; display: flex; gap: 20px; margin-top: 12px;
  font-size: 12px; color: rgba(255, 255, 255, .85);
}
.wallet-meta b { font-weight: 600; color: #fff; }

.quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-radius: var(--r-card);
  padding: 16px 4px 14px;
}
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; color: #555; }
.quick-ico {
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--green-soft); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
}
.quick-ico .icon { width: 22px; height: 22px; }
.quick-ico.gray { background: #f4f5f6; color: #6b7280; }
.quick-ico.blue { background: #eef3ff; color: #3b6ef5; }

/* 数据小卡 */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-card { background: var(--surface); border-radius: 12px; padding: 14px 14px 12px; }
.stat-card .k { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.stat-card .v { font-size: 21px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-card .v small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.stat-card .foot { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* --------------------------------------------------------------------------
   订单 / 商户列表
   -------------------------------------------------------------------------- */
.order-card { display: block; background: var(--surface); border-radius: var(--r-card); padding: 13px 16px 12px; }
.order-card + .order-card { margin-top: 10px; }
.order-head { display: flex; align-items: baseline; gap: 10px; }
.order-title { font-size: 15px; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-amount { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.order-sub { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.order-sub .mono { font-size: 11.5px; }
.order-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: .5px solid var(--line); font-size: 12px; color: var(--muted); }
.order-status { display: flex; align-items: center; gap: 5px; font-size: 12.5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.merchant-card { background: var(--surface); border-radius: var(--r-card); padding: 14px 16px; }
.merchant-card + .merchant-card { margin-top: 10px; }
.merchant-head { display: flex; align-items: center; gap: 12px; }
.merchant-logo {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  background: linear-gradient(145deg, #e8f8ef, #d6f3e2);
  color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600;
}
.merchant-logo.solid { background: linear-gradient(145deg, #3cb371, #509863); color: #fff; }
.merchant-name { font-size: 16px; font-weight: 500; line-height: 1.35; }
.merchant-sub { font-size: 11.5px; color: var(--muted); font-family: var(--mono); margin-top: 1px; }
.merchant-stats { display: flex; gap: 26px; margin-top: 12px; padding-top: 11px; border-top: .5px solid var(--line); }
.merchant-stats .k { font-size: 11px; color: var(--muted); }
.merchant-stats .v { font-size: 14px; font-weight: 550; margin-top: 1px; font-variant-numeric: tabular-nums; }
.merchant-actions { display: flex; gap: 8px; margin-top: 12px; }
.merchant-actions .btn { flex: 1; height: 34px; font-size: 13px; border-radius: 7px; }

/* 分段筛选 */
.segment { display: flex; gap: 2px; padding: 2px; background: #ececec; border-radius: 8px; overflow-x: auto; scrollbar-width: none; }
.segment::-webkit-scrollbar { display: none; }
.segment a, .segment button {
  flex: 1; min-width: 60px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 6px;
  font-size: 13px; color: #555; white-space: nowrap;
}
.segment a.active, .segment button.active { background: #fff; color: var(--ink); font-weight: 550; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* 搜索框 */
.search-box { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: #fff; border-radius: 8px; color: var(--muted); }
.search-box input { flex: 1; border: 0; outline: none; background: transparent; font-size: 14px; }
.search-box .icon { width: 17px; height: 17px; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 0 4px; }
.pager a, .pager span {
  height: 32px; min-width: 64px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #fff; font-size: 13px; color: #555;
}
.pager a:active { background: #f2f2f2; }
.pager .disabled { opacity: .4; pointer-events: none; }
.pager .info { background: transparent; color: var(--muted); font-size: 12px; min-width: 0; }

/* --------------------------------------------------------------------------
   登录 / 注册
   -------------------------------------------------------------------------- */
.auth-page { min-height: 100vh; background: var(--bg); }
.auth-hero {
  background: linear-gradient(160deg, #3cb371 0%, #509863 65%, #478a59 100%);
  padding: 54px 24px 72px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.auth-hero::after {
  content: ""; position: absolute; width: 280px; height: 280px; right: -120px; top: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 65%);
}
.auth-brand { display: flex; align-items: center; gap: 10px; position: relative; }
.auth-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.auth-brand-name { font-size: 17px; font-weight: 600; }
.auth-brand-sub { font-size: 11px; color: rgba(255, 255, 255, .8); letter-spacing: .08em; }
.auth-title { position: relative; margin-top: 30px; font-size: 27px; font-weight: 650; line-height: 1.35; letter-spacing: -.02em; }
.auth-desc { position: relative; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .85); line-height: 1.7; }
.auth-card {
  position: relative;
  margin: -46px 14px 0;
  background: #fff; border-radius: 16px;
  padding: 6px 0 18px;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .25);
}
.auth-card .field { padding: 14px 20px; }
.auth-card .field + .field::before { left: 20px; right: 20px; }
.auth-card .btn-block { width: calc(100% - 40px); margin: 16px 20px 0; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); padding: 18px 20px 40px; }
.auth-foot a { color: var(--green-deep); font-weight: 500; }
.auth-legal { text-align: center; font-size: 11.5px; color: #b0b0b0; padding: 0 30px 30px; line-height: 1.7; }

/* --------------------------------------------------------------------------
   落地页（移动端）
   -------------------------------------------------------------------------- */
.landing-hero {
  background: linear-gradient(160deg, #3cb371 0%, #509863 65%, #478a59 100%);
  color: #fff; padding: 34px 22px 30px;
  position: relative; overflow: hidden;
}
.landing-hero::after {
  content: ""; position: absolute; width: 300px; height: 300px; right: -130px; top: -100px;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%);
}
.landing-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; position: relative; }
.landing-brand .mark {
  width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.landing-hero h1 { position: relative; margin-top: 26px; font-size: 27px; line-height: 1.38; letter-spacing: -.02em; font-weight: 650; }
.landing-hero h1 em { font-style: normal; color: #e6fff0; }
.landing-hero p { position: relative; margin-top: 10px; font-size: 13px; line-height: 1.75; color: rgba(255, 255, 255, .86); }
.landing-hero .cta { position: relative; display: flex; gap: 10px; margin-top: 22px; }
.landing-hero .btn-light { background: #fff; color: var(--green-deep); }
.landing-hero .btn-line { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.phone-preview {
  position: relative; margin: 24px 16px 0;
  background: #fff; border-radius: 18px; padding: 14px;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .45);
  color: var(--ink);
}
.phone-preview .pp-title { text-align: center; font-size: 11.5px; color: var(--muted); }
.phone-preview .pp-amount { text-align: center; font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 12px; font-variant-numeric: tabular-nums; }
.phone-preview .pp-amount small { font-size: 17px; font-weight: 500; }
.phone-preview .pp-row { display: flex; justify-content: space-between; font-size: 12px; color: #666; padding: 8px 0; border-top: .5px solid var(--line); }
.phone-preview .pp-btn { margin-top: 10px; height: 38px; border-radius: 8px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; }
.phone-preview .pp-foot { text-align: center; font-size: 10px; color: #b5b5b5; margin-top: 8px; }

.landing-body { padding: 4px 12px 20px; }
.feature-row { display: flex; gap: 12px; padding: 14px 16px; background: #fff; }
.feature-row + .feature-row { border-top: .5px solid var(--line); }
.feature-ico {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  background: var(--green-soft); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
}
.feature-row h3 { font-size: 14px; font-weight: 550; margin-bottom: 2px; }
.feature-row p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.price-box {
  background: linear-gradient(150deg, #0f172a, #14304a);
  color: #fff; border-radius: 16px; padding: 22px;
}
.price-box .price { font-size: 40px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; }
.price-box .price small { font-size: 14px; font-weight: 500; color: #9fb0c6; margin-left: 4px; }
.price-box ul { margin-top: 12px; display: grid; gap: 8px; }
.price-box li { display: flex; gap: 7px; align-items: center; font-size: 12.5px; color: #c7d3e1; }
.price-box li .icon { width: 15px; height: 15px; color: #4ade80; }
.legal-note { padding: 18px 6px 0; font-size: 11px; color: #a8b0bb; line-height: 1.75; }
.guide-box { background: #fff; border-radius: 16px; padding: 18px 16px; }
.guide-head { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; }
.guide-head .icon { width: 18px; height: 18px; color: var(--green-deep); }
.guide-box p { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* 商户配置图文教程 */
.setup-hero { background: var(--green-nav); color: #fff; padding: 24px 18px; text-align: center; }
.setup-hero-title { font-size: 19px; font-weight: 650; }
.setup-hero-sub { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.85); }
.setup-steps { padding: 14px 12px 4px; }
.step-card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; position: relative; }
.step-no {
  position: absolute; top: -10px; left: 14px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-card h3 { font-size: 15.5px; font-weight: 600; margin: 6px 0 10px; padding-left: 2px; }
.step-list { margin: 0; padding-left: 0; display: grid; gap: 8px; }
.step-list li { font-size: 13px; color: #444; line-height: 1.75; list-style: none; padding-left: 20px; position: relative; }
.step-list li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.step-list code.inline { background: var(--fill); }
.step-tip { margin-top: 10px; font-size: 12px; color: var(--warning); background: var(--warning-soft); border-radius: 8px; padding: 8px 10px; display: flex; gap: 6px; align-items: flex-start; }
.step-tip .icon { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.setup-done { background: #fff; border-radius: 12px; padding: 20px 16px; margin: 4px 12px 20px; text-align: center; }
.setup-done-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.setup-done-icon .icon { width: 26px; height: 26px; }
.setup-done p { font-size: 13px; color: #555; line-height: 1.7; }

/* --------------------------------------------------------------------------
   收银台（白 + 绿，WeChat Pay 风格）
   -------------------------------------------------------------------------- */
.cashier-page {
  width: 100%; max-width: 480px; min-height: 100vh; min-height: 100dvh;
  margin: 0 auto; background: #fff;
  display: flex; flex-direction: column;
  position: relative;
}
.cashier-nav {
  height: 44px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600;
  background: #fff; position: relative;
}
.cashier-nav .back {
  position: absolute; left: 8px; top: 4px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
}
.cashier-main { flex: 1; padding: 4px 20px calc(var(--safe-b) + 100px); }

.pay-merchant { text-align: center; padding: 18px 0 6px; }
.pay-merchant .logo {
  width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 10px;
  background: linear-gradient(145deg, #3cb371, #509863);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600;
}
.pay-merchant .name { font-size: 16px; font-weight: 550; }
.pay-merchant .to { font-size: 12px; color: var(--muted); margin-top: 2px; }

.pay-amount-wrap { text-align: center; padding: 18px 0 8px; }
.pay-amount-label { font-size: 12.5px; color: var(--muted); }
.pay-amount-input { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-top: 4px; }
.pay-amount-input .cur { font-size: 24px; font-weight: 600; color: var(--ink); }
.pay-amount-input input {
  width: 5ch; min-width: 5ch; max-width: 100%;
  border: 0; outline: none; background: transparent; text-align: left;
  font-size: 44px; font-weight: 700; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; padding: 0;
  transition: width .08s ease;
}
.pay-amount-input input::placeholder { color: #dcdcdc; }
.pay-amount-line { height: 1px; background: var(--line); margin: 12px 10px 0; transition: background .2s ease; }
.pay-amount-wrap:focus-within .pay-amount-line { background: var(--green); }
.pay-tip { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin: 8px 10px 0; }

.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.chips button { height: 34px; border-radius: 8px; border: 0; background: var(--fill); color: #444; font-size: 13px; }
.chips button:active { background: var(--green-soft); color: var(--green-deep); }

.pay-rows { margin-top: 20px; border-top: .5px solid var(--line); }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 8px 0; border-bottom: .5px solid var(--line); font-size: 15px; }
.pay-row .k { color: #333; flex: none; }
.pay-row .v { color: #999; font-size: 14px; text-align: right; }
.pay-row input.remark { border: 0; outline: none; background: transparent; text-align: right; font-size: 14px; color: #333; max-width: 210px; }
.pay-row input.remark::placeholder { color: #c2c2c2; }

.qr-wrap { text-align: center; padding: 10px 0 4px; }
.qr-amount { font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0 2px; }
.qr-amount small { font-size: 18px; font-weight: 500; margin-right: 2px; }
.qr-frame { width: 220px; height: 220px; margin: 14px auto 0; padding: 10px; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; }
.qr-frame img, .qr-frame canvas { width: 100% !important; height: 100% !important; }
.qr-hint { margin-top: 14px; font-size: 13.5px; color: #333; }
.qr-hint b { color: var(--green-deep); font-weight: 600; }
.qr-sub { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.qr-timer { margin-top: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.pay-state { text-align: center; padding: 26px 0 10px; }
.pay-state .spinner { width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%; border: 2.5px solid var(--green-soft); border-top-color: var(--green); animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-state .t { font-size: 15px; font-weight: 500; }
.pay-state .s { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.detail-rows { margin-top: 18px; border-top: .5px solid var(--line); }
.detail-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; font-size: 13.5px; border-bottom: .5px solid var(--line); }
.detail-row .k { color: var(--muted); flex: none; }
.detail-row .v { text-align: right; word-break: break-all; }
.detail-row .v.mono { font-size: 12px; }

.success-mark {
  width: 68px; height: 68px; margin: 10px auto 16px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  animation: pop .4s cubic-bezier(.2, 1.4, .5, 1);
}
.success-mark .icon { width: 34px; height: 34px; stroke-width: 2.4; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.result-amount { text-align: center; font-size: 38px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.result-amount small { font-size: 20px; font-weight: 500; margin-right: 2px; }
.result-label { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.cashier-foot-bar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 20;
  padding: 12px 20px calc(12px + var(--safe-b));
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), #fff 40%);
}
.cashier-foot-bar .btn { width: 100%; height: 50px; font-size: 17px; border-radius: 8px; }
.cashier-safe-note { text-align: center; font-size: 11px; color: var(--muted); margin-top: 12px; line-height: 1.7; }
.cashier-safe-note .lock { display: inline-flex; align-items: center; gap: 4px; }
.cashier-safe-note .icon { width: 12px; height: 12px; }

/* --------------------------------------------------------------------------
   二维码页 / 文档
   -------------------------------------------------------------------------- */
.qr-poster { background: #fff; border-radius: 16px; padding: 26px 20px 22px; text-align: center; }
.qr-poster .poster-name { font-size: 17px; font-weight: 600; }
.qr-poster .poster-tip { font-size: 12px; color: var(--muted); margin-top: 3px; }
.qr-poster .qr-frame { width: 240px; height: 240px; }
.qr-poster .poster-foot { margin-top: 14px; font-size: 11px; color: var(--muted); }
.qr-poster .poster-brand { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11.5px; color: #888; }

.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row .input { flex: 1; font-family: var(--mono); font-size: 12px; }
.copy-btn { width: 38px; height: 30px; flex: none; border: 0; border-radius: 6px; background: var(--green-soft); color: var(--green-deep); display: flex; align-items: center; justify-content: center; }
.copy-btn .icon { width: 16px; height: 16px; }

pre.code {
  background: #1c1f26; color: #dfe6f0; border-radius: 10px;
  padding: 14px; overflow-x: auto;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.75; margin: 10px 0 0;
}
pre.code .c { color: #7e8a9c; }
pre.code .k { color: #7ee2a8; }
pre.code .s { color: #f0c674; }
code.inline { font-family: var(--mono); font-size: 11.5px; background: #f2f2f2; padding: 1px 5px; border-radius: 4px; }
.doc-card { background: #fff; border-radius: 12px; padding: 0 16px; }
.doc-card + .doc-card { margin-top: 10px; }
.doc-card summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 15px 0; font-size: 15px; font-weight: 500; cursor: pointer; }
.doc-card summary::-webkit-details-marker { display: none; }
.doc-card summary .chev { color: #c8c8cd; transition: transform .2s ease; }
.doc-card[open] summary .chev { transform: rotate(90deg); }
.doc-body { padding: 0 0 14px; font-size: 13.5px; color: #444; line-height: 1.8; }
.doc-body h3 { font-size: 14px; margin: 14px 0 4px; }
.doc-body ul { display: grid; gap: 5px; margin-top: 6px; }
.doc-body li { display: flex; gap: 7px; }
.doc-body li::before { content: "·"; color: var(--green); font-weight: 700; }

/* 订单详情里的回调日志（可展开查看原始报文） */
.log-item { display: block; }
.log-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.log-item > summary::-webkit-details-marker { display: none; }
.log-item .badge { flex: none; }
.log-item pre.code { max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-all; }

.kv { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 9px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }

/* 浮动提示（底部，避免遮挡标题） */
.toast {
  position: fixed; top: auto; bottom: calc(var(--safe-b) + 96px); left: 50%; transform: translateX(-50%);
  z-index: 200; max-width: 320px;
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 10px;
  background: rgba(17, 17, 17, .86); color: #fff;
  font-size: 13px; line-height: 1.4;
  backdrop-filter: blur(8px);
  animation: toastIn .25s ease;
}
.toast.success { background: rgba(47, 143, 87, .94); }
.toast.error { background: rgba(200, 48, 48, .92); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; background: transparent; color: #999; border-radius: 8px; cursor: pointer; }

/* 印刷 */
@media print {
  .tabbar, .navbar, .bottom-bar, .no-print, .cashier-nav { display: none !important; }
  .app-shell, .cashier-page { max-width: none; box-shadow: none; }
  body { background: #fff; }
  .app-main { padding: 0; }
  .qr-poster {
    width: 320px; margin: 0 auto; box-shadow: none;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .qr-poster .poster-head, .qr-poster .poster-merchant { border-radius: 0; }
}

/* 桌面端：居中显示为手机画布 */
@media (min-width: 560px) {
  body {
    background:
      radial-gradient(900px 500px at 50% -10%, #e2f6ea 0%, rgba(237, 237, 237, 0) 60%),
      #e9ebee;
  }
  .app-shell, .cashier-page {
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 24px 60px -30px rgba(15, 23, 42, .35);
    min-height: 100vh;
  }
  .toast { max-width: 440px; }
}

/* 极窄屏幕 */
@media (max-width: 350px) {
  .wallet-amount { font-size: 30px; }
  .pay-amount-input input { font-size: 38px; }
  .quick-grid { padding: 14px 2px 12px; }
  .quick-ico { width: 38px; height: 38px; border-radius: 11px; }
}

/* ==========================================================================
   V2 视觉：对齐微信收款商业版
   深绿导航 / 绿色收款卡 / 三列菜单 / 绿色收款码海报
   ========================================================================== */

/* 顶部导航：默认深绿 */
.navbar {
  background: var(--green-nav);
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #fff;
}
.navbar-title { color: #fff; }
.navbar .nav-back,
.navbar .nav-action { color: #fff; }

/* 首页使用浅色导航（参考图 1） */
.navbar.light {
  background: #f7f7f7;
  border-bottom: .5px solid rgba(0, 0, 0, .08);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.navbar.light .navbar-title { color: #666; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; }
.navbar.light .nav-back,
.navbar.light .nav-action { color: var(--ink); }

/* 圆角与分组标题更接近参考图 */
.card, .cells, .form-card, .order-card, .merchant-card, .stat-card, .menu-grid { border-radius: 8px; }
.group-title { font-size: 12.5px; color: #999; padding: 16px 4px 8px; }
.group-title a { font-size: 12px; color: #999; }

/* 首页标题行 */
.home-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 14px; }
.home-name { display: flex; align-items: center; gap: 2px; font-size: 25px; font-weight: 700; letter-spacing: -.03em; }
.home-name .icon { width: 20px; height: 20px; color: #b3b3b3; stroke-width: 2; }
.home-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #555; }
.home-icon .icon { width: 21px; height: 21px; }

/* 绿色收款卡 */
.wallet-card {
  border-radius: 10px;
  padding: 18px 18px 0;
  background: linear-gradient(140deg, #3cb371 0%, #37a86a 100%);
}
.wallet-label { margin-top: 0; font-size: 12px; color: rgba(255, 255, 255, .88); }
.wallet-amount { font-size: 43px; margin-top: 4px; }
.wallet-amount small { font-size: 22px; }
.wallet-qr { position: absolute; right: 16px; top: 14px; width: 28px; height: 28px; color: rgba(255, 255, 255, .92); }
.wallet-qr .icon { width: 24px; height: 24px; }
.wallet-foot { position: relative; display: flex; margin: 18px -18px 0; border-top: .5px solid rgba(255, 255, 255, .28); }
.wallet-foot a { flex: 1; height: 52px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #fff; font-size: 13.5px; }
.wallet-foot a + a { border-left: .5px solid rgba(255, 255, 255, .28); }
.wallet-foot .icon { width: 18px; height: 18px; }

/* 三列菜单 */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5px; background: var(--line); border-radius: 8px; overflow: hidden; }
.menu-item {
  min-height: 86px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  font-size: 12.5px; color: #333; border: 0;
}
.menu-item .icon { width: 24px; height: 24px; color: #7a7e83; stroke-width: 1.7; }
.menu-item:active { background: #f7f7f7; }

/* 收款码海报：对齐微信支付商户收款码版式（绿底＋标识＋二维码＋白底商户名） */
.qr-poster {
  --poster-green: #25ac36;
  background: #fff; border-radius: 8px; padding: 0; overflow: hidden; text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.qr-poster .poster-head { background: var(--poster-green); padding: 20px 16px 24px; }
.qr-poster .poster-logo { display: inline-flex; align-items: center; gap: 10px; }
.qr-poster .poster-logo img { width: 46px; height: 38px; display: block; }
.qr-poster .poster-logo span { color: #fff; font-size: 24px; font-weight: 500; letter-spacing: 3px; text-indent: 3px; }
.qr-poster .qr-graphic { width: 238px; margin: 18px auto 0; background: #fff; border-radius: 4px; padding: 13px 13px 7px; }
.qr-poster .qr-frame { width: 212px; height: 212px; margin: 0 auto; padding: 0; border: 0; border-radius: 0; }
.qr-poster .qr-frame img, .qr-poster .qr-frame canvas { display: block; }
.qr-poster .qr-caption { margin-top: 6px; font-size: 15px; line-height: 1.5; color: #1a1a1a; letter-spacing: 1px; }
.qr-poster .poster-merchant {
  background: #fff; color: #111;
  padding: 18px 18px 22px;
  font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: .5px;
  word-break: break-word;
}
.qr-poster .poster-foot { display: none; }

.qr-actions { padding: 18px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr-actions .btn { width: 72%; height: 40px; font-size: 14px; border-radius: 4px; }
.qr-actions .btn-link { font-size: 13px; }
.btn-green-line { background: #fff; color: var(--green-deep); box-shadow: inset 0 0 0 1px var(--green); }
.btn-green-line:active { background: var(--green-soft); }

/* 官方微信支付标识 */
.pay-brand { display: inline-flex; align-items: center; gap: 7px; }
.pay-brand img { height: 17px; width: auto; }
.pay-brand-mark { width: 18px; height: 18px; object-fit: contain; }
.safe-brand { height: 13px; width: auto; vertical-align: -2px; margin-right: 4px; }

/* 收银台：绿色导航 + 白色内容 */
.cashier-nav { background: var(--green-nav); color: #fff; }
.cashier-nav .back { color: #fff; }
.cashier-page .cashier-main { background: #fff; }
.cashier-safe-note img { height: 13px; width: auto; }
.tabbar a.active { color: var(--green); }
.btn-link { color: var(--green-deep); }

/* 收银台品牌保障区 */
.pay-assurance { text-align: center; padding: 46px 16px 8px; }
.pay-assurance img { height: 24px; width: auto; margin: 0 auto 8px; opacity: .92; }
.pay-assurance p { font-size: 11px; color: #b3b3b3; line-height: 1.7; }

