:root {
  --primary: #e4572e;
  --primary-dark: #c2410c;
  --primary-soft: #fff1ec;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #8a94a6;
  --line: #eef0f3;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --purple: #7c3aed;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(15, 23, 42, .06);
  --admin-side: #151a2d;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
/* 整页固定为一屏：顶部演示栏 + 内容区，外层不滚动 */
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; background: #dfe3ea; color: var(--text); font-size: 14px; display: flex; flex-direction: column; overflow: hidden; }
#app-root { flex: 1; min-height: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }
a { color: var(--primary); cursor: pointer; text-decoration: none; }
code, .mono { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
code { background: #f1f3f6; padding: 1px 6px; border-radius: 4px; }

/* ---------- 工具类 ---------- */
.flex-1 { flex: 1; min-width: 0; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.price { color: var(--primary); font-weight: 700; }
.price small { font-size: 11px; font-weight: 500; }
.price.big { font-size: 20px; }
.empty-state { text-align: center; color: var(--muted); padding: 28px 0; font-size: 13px; }

/* ---------- 通用组件 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; transition: opacity .15s; white-space: nowrap; }
.btn:active { opacity: .8; }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { border: 1px solid #d8dde5; color: var(--text); background: #fff; }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: #fff; }
.btn-light { background: rgba(255,255,255,.22); color: #fff; }
.link-btn { color: var(--primary); font-size: 13px; font-weight: 600; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.6; vertical-align: middle; white-space: nowrap; }
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-muted { background: #eef0f3; color: #5b6475; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-gold { background: #fdf3d7; color: #a16207; }
.badge-level { background: linear-gradient(135deg,#fbbf24,#f59e0b); color: #fff; }
.badge-light { background: rgba(255,255,255,.25); color: #fff; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c3c9d4; margin-right: 4px; vertical-align: middle; }
.dot-on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; flex-shrink: 0; }
.thumb { border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-group { margin-bottom: 12px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.form-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.form-input { width: 100%; padding: 9px 11px; border: 1px solid #dde1e8; border-radius: 8px; background: #fff; outline: none; }
.form-input:focus { border-color: var(--primary); }
.form-inline { width: auto; min-width: 120px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 11px; border-radius: 999px; border: 1px solid #dde1e8; font-size: 12px; background: #fff; cursor: pointer; }
.chip-selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.seg { display: flex; background: #fff; border-radius: 10px; padding: 3px; margin-bottom: 12px; gap: 2px; }
.seg-item { flex: 1; text-align: center; padding: 7px 4px; border-radius: 8px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg-item.active { background: var(--primary); color: #fff; font-weight: 600; }
.seg-sm { background: #f3f4f6; }
.seg-inline { display: inline-flex; margin: 0; }
.seg-inline .seg-item { flex: none; padding: 7px 14px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--muted); flex-shrink: 0; }
.kv > span:last-child { text-align: right; word-break: break-all; }

/* ---------- 弹窗 / Toast ---------- */
#toast-container { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 10px 18px; border-radius: 10px; color: #fff; font-size: 13px; background: #334155; opacity: 0; transform: translateY(-8px); transition: all .2s; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.toast-visible { opacity: 1; transform: none; }
.toast-success { background: #16a34a; }
.toast-error { background: #dc2626; }
.toast-warning { background: #d97706; }
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: #fff; border-radius: 14px; padding: 20px; width: 380px; max-width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-wide { width: 640px; }
.modal-title { font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.modal-message { font-size: 14px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.image-preview { flex-direction: column; cursor: zoom-out; background: rgba(0,0,0,.85); }
.image-preview img { max-width: 90vw; max-height: 80vh; border-radius: 10px; }
.image-preview-tip { color: rgba(255,255,255,.6); font-size: 12px; margin-top: 12px; }
pre.code { background: #0f172a; color: #e2e8f0; padding: 10px 12px; border-radius: 8px; font-size: 12px; white-space: pre-wrap; word-break: break-all; margin-bottom: 12px; font-family: "SF Mono", Menlo, monospace; }

/* ================= H5 ================= */
/* 手机框高度 = 可视区剩余高度（100%），内容在手机内部滚动 */
/* 真实 H5：手机上全屏；桌面浏览器居中显示为 430px 宽的应用列，高度恒为视口 100% */
.phone-frame { display: flex; justify-content: center; height: 100%; }
.phone-shell { width: 100%; max-width: 430px; height: 100%; box-shadow: 0 0 40px rgba(0,0,0,.12); }
.phone-screen { background: var(--bg); overflow: hidden; display: flex; flex-direction: column; height: 100%; position: relative; }
.phone-navbar { padding-top: env(safe-area-inset-top); }
.phone-tabbar { padding-bottom: env(safe-area-inset-bottom); }
.loading { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 13px; gap: 8px; }
.spinner { width: 18px; height: 18px; border: 2px solid #e5e7eb; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.load-more { text-align: center; padding: 12px; color: var(--muted); font-size: 12px; cursor: pointer; }
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.btn[disabled] { opacity: .5; pointer-events: none; }
/* 语言下拉 */
.nav-right { width: auto; min-width: 56px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.lang-dd { position: relative; }
.lang-btn { font-size: 12px; color: var(--text); background: #f3f4f6; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.lang-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px; background: #fff; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,23,42,.18); padding: 6px; z-index: 50; }
.lang-dd.open .lang-menu { display: block; }
.lang-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.lang-item:hover { background: #f7f8fa; }
.lang-item.active { color: var(--primary); font-weight: 600; }
.phone-navbar { position: relative; z-index: 5; }
.phone-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-right .link-btn { white-space: nowrap; }
.phone-navbar { height: 44px; flex-shrink: 0; display: flex; align-items: center; padding: 0 8px; background: #fff; border-bottom: 1px solid var(--line); }
.nav-back, .nav-back-placeholder { width: 40px; font-size: 26px; line-height: 1; color: var(--text); }
.phone-title { flex: 1; text-align: center; font-weight: 600; font-size: 16px; }
.nav-right { width: 56px; text-align: right; }
.phone-content { flex: 1; overflow-y: auto; padding: 12px 14px; position: relative; }
.phone-content-flush { padding: 0; }
.phone-tabbar { height: 58px; flex-shrink: 0; display: flex; border-top: 1px solid var(--line); background: #fff; }
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); cursor: pointer; position: relative; gap: 1px; }
.tab-icon { font-size: 20px; filter: grayscale(1); opacity: .6; }
.tab-item-active { color: var(--primary); font-weight: 600; }
.tab-item-active .tab-icon { filter: none; opacity: 1; }
.tab-dot { position: absolute; top: 4px; right: 22%; background: var(--danger); color: #fff; font-style: normal; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.card-title { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.card.tips { background: #fffaf3; border: 1px solid #fde7c7; box-shadow: none; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; font-weight: 600; font-size: 14px; }
.section-head a { font-size: 12px; font-weight: 500; }
.bottom-bar { position: sticky; bottom: -12px; margin: 12px -14px -12px; display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: #fff; border-top: 1px solid var(--line); z-index: 2; }
.phone-content-flush .bottom-bar { margin: 0; bottom: 0; }

/* 首页 */
.search-box { background: #fff; border-radius: 999px; padding: 9px 16px; color: var(--muted); font-size: 13px; margin-bottom: 12px; cursor: pointer; box-shadow: var(--shadow); }
.banner-viewport { overflow: hidden; border-radius: 14px; margin-bottom: 12px; }
.banner-track { display: flex; width: max-content; gap: 10px; animation: marquee 18s linear infinite; }
.banner-viewport:hover .banner-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 5px)); } }
.banner { width: 300px; height: 110px; border-radius: 14px; padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; }
.banner b { font-size: 18px; }
.banner span { font-size: 12px; opacity: .85; }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: var(--radius); padding: 12px 4px; box-shadow: var(--shadow); }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; cursor: pointer; }
.cat-item span { font-size: 24px; width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
.h-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.h-scroll::-webkit-scrollbar { display: none; }
.mini-card { width: 104px; flex-shrink: 0; background: #fff; border-radius: 10px; padding: 8px; cursor: pointer; box-shadow: var(--shadow); }
.mini-cover { height: 72px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 36px; margin-bottom: 6px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; min-width: 0; }
.product-cover { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.product-info { padding: 8px 10px 10px; }
.product-title { font-size: 13px; font-weight: 500; line-height: 1.35; height: 35px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-meta { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-size: 11px; min-width: 0; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }

/* 分类 */
.cat-layout { display: flex; height: 100%; }
.cat-side { width: 84px; background: #fff; flex-shrink: 0; }
.cat-side-item { padding: 16px 0; text-align: center; font-size: 13px; color: var(--muted); cursor: pointer; border-left: 3px solid transparent; }
.cat-side-item.active { color: var(--primary); font-weight: 600; background: var(--bg); border-left-color: var(--primary); }
.cat-main { flex: 1; padding: 10px; overflow-y: auto; min-width: 0; }
.list-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cat-main .list-row { background: #fff; border-radius: 10px; padding: 8px; border: 0; margin-bottom: 8px; }
.list-row:last-child { border-bottom: 0; }
.list-row-main { flex: 1; min-width: 0; }
.list-row-title { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 商品详情 */
.detail-cover { height: 260px; display: flex; align-items: center; justify-content: center; font-size: 110px; }
.detail-body { padding: 12px 14px 0; margin-top: -24px; position: relative; }
.detail-price { color: var(--primary); font-size: 26px; font-weight: 700; }
.detail-price small { font-size: 13px; }
.detail-title { font-size: 16px; font-weight: 600; margin: 4px 0 6px; }
.seller-card { display: flex; align-items: center; gap: 10px; }
.chain { display: flex; align-items: center; gap: 4px; }
.chain-node { flex: 1; min-width: 0; background: #f7f8fa; border-radius: 8px; padding: 6px; text-align: center; font-size: 12px; }
.chain-node.current { background: var(--primary-soft); outline: 1px solid var(--primary); }
.chain-arrow { font-size: 10px; color: var(--success); text-align: center; flex-shrink: 0; }

/* 订单 */
.stepper { display: flex; align-items: center; border: 1px solid #dde1e8; border-radius: 6px; overflow: hidden; }
.stepper button { width: 28px; height: 26px; background: #f7f8fa; font-size: 16px; }
.stepper span { width: 32px; text-align: center; font-size: 13px; }
.radio-row { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.radio-row.active { border-color: var(--primary); background: var(--primary-soft); }
.radio { color: var(--primary); font-size: 16px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.order-card { cursor: pointer; }
.status-hero { border-radius: var(--radius); padding: 16px; margin-bottom: 12px; color: #fff; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(135deg,#64748b,#334155); }
.status-hero b { font-size: 17px; }
.status-hero span { font-size: 12px; opacity: .9; }
.status-paid { background: linear-gradient(135deg,#f59e0b,#d97706); }
.status-shipped { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.status-completed { background: linear-gradient(135deg,#22c55e,#15803d); }
.status-cancelled { background: linear-gradient(135deg,#f87171,#b91c1c); }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 10px; align-items: flex-start; opacity: .45; }
.step.done { opacity: 1; }
.step i { width: 22px; height: 22px; border-radius: 50%; background: #cbd5e1; color: #fff; font-style: normal; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step.done i { background: var(--success); }

/* 我的 */
.mine-hero { display: flex; gap: 12px; align-items: center; padding: 20px 16px 50px; background: linear-gradient(135deg,#ff7a45,#e4572e); color: #fff; }
.mine-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.wallet-card { margin: -38px 16px 12px; background: linear-gradient(135deg,#1f2937,#111827); color: #fff; border-radius: 16px; padding: 16px; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.18); position: relative; }
.wallet-total { font-size: 28px; font-weight: 700; margin: 4px 0 10px; letter-spacing: .5px; }
.wallet-subs { display: grid; grid-template-columns: repeat(auto-fit,minmax(0,1fr)); gap: 8px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; }
.wallet-subs div { display: flex; flex-direction: column; gap: 2px; }
.wallet-subs span { font-size: 11px; opacity: .65; }
.wallet-subs b { font-size: 14px; }
.wallet-row { display: flex; gap: 12px; align-items: center; }
.icon-grid { display: grid; grid-template-columns: repeat(4,1fr); text-align: center; font-size: 12px; }
.icon-grid-3 { grid-template-columns: repeat(3,1fr); row-gap: 14px; }
.icon-grid > div { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; position: relative; }
.icon-grid span { font-size: 24px; }
.icon-grid i { position: absolute; top: -4px; right: 18%; background: var(--danger); color: #fff; font-style: normal; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.menu-list { padding: 0 14px; }
.menu-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.menu-row:last-child { border-bottom: 0; }
.log-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.log-row:last-child { border-bottom: 0; }

/* 推荐 */
.ref-hero { background: linear-gradient(135deg,#7c3aed,#4c1d95); color: #fff; border-radius: 16px; padding: 18px; text-align: center; margin-bottom: 12px; }
.ref-code { font-size: 32px; font-weight: 800; letter-spacing: 6px; margin: 6px 0 12px; font-family: "SF Mono", Menlo, monospace; }
.ref-actions { display: flex; gap: 8px; justify-content: center; }
.stat-row { display: flex; gap: 8px; margin-bottom: 12px; }
.stat { flex: 1; background: #fff; border-radius: 10px; padding: 10px 4px; text-align: center; box-shadow: var(--shadow); min-width: 0; }
.stat b { display: block; font-size: 16px; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 11px; color: var(--muted); }
.card-overlap { margin-top: -26px; position: relative; }
.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); background: #f7f8fa; border-radius: 8px; padding: 8px; margin-top: 10px; text-align: center; }
.mini-stats span { display: block; font-size: 11px; color: var(--muted); }
.mini-stats b { font-size: 13px; }
.row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.row-actions .badge { margin-right: auto; }

/* KYC */
.reward-tip { background: linear-gradient(90deg,#fff7ed,#ffedd5); border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 10px 12px; font-size: 12px; margin-bottom: 12px; }
.steps-h { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 12px; color: var(--muted); background: #fff; border-radius: 10px; padding: 10px 14px; }
.steps-h .active { color: var(--primary); font-weight: 600; }
.img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.img-slot { aspect-ratio: 1.6; border: 1.5px dashed #cbd2dc; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; position: relative; overflow: hidden; background: #fafbfc; }
.img-slot b { font-size: 24px; color: #a0a8b6; font-weight: 400; }
.img-slot span { font-size: 11px; color: var(--muted); }
.img-slot.filled { border-style: solid; border-color: transparent; }
.img-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-slot.filled span { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.5); color: #fff; padding: 3px; text-align: center; }

/* 登录 */
.auth-hero { text-align: center; padding: 30px 0 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.auth-hero b { font-size: 22px; }
.auth-hero span { color: var(--muted); font-size: 13px; }
.auth-logo { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg,#ff7a45,#e4572e); display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 8px; }
.small-hero { padding: 16px 0 12px; }

/* 商户 */
.shop-hero { display: flex; align-items: center; gap: 12px; color: #fff; padding: 20px 16px 44px; }
.shop-logo { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 16px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar { width: 100%; max-width: 26px; background: linear-gradient(180deg,#ff8a5c,var(--primary)); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-val { font-size: 10px; color: var(--muted); }
.bar-label { font-size: 10px; color: var(--muted); }
.hbar-row { display: grid; grid-template-columns: 120px 1fr 40px; gap: 8px; align-items: center; font-size: 12px; margin-bottom: 8px; }
.hbar { background: #f1f3f6; border-radius: 4px; height: 8px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.hbar-row b { text-align: right; }


/* 标签 / 规则提示 */
.tag { display: inline-block; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 600; margin-right: 4px; vertical-align: middle; }
.tag-purpose { background: #e0f2fe; color: #0369a1; }
.alert-inline { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 12px; line-height: 1.6; }
.btn-dim { opacity: .55; }
.cat-item em { font-style: normal; max-width: 64px; text-align: center; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; cursor: pointer; }
.check-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); }
/* 实名认证 / 商家入驻 / 免责声明 */
.text-warning { color: var(--warning); }
.notice-card { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; line-height: 1.6; }
.apply-hero { border-radius: var(--radius); padding: 16px; margin-bottom: 12px; color: #fff; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(135deg,#7b2cbf,#5a189a); }
.apply-hero b { font-size: 17px; }
.apply-hero span { font-size: 12px; opacity: .9; }
.form-static { padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--line); font-size: 13px; }
.deposit-steps { display: flex; flex-direction: column; gap: 6px; }
.deposit-steps div { display: flex; gap: 8px; align-items: flex-start; }
.deposit-steps b { flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.fund-rules { display: flex; flex-direction: column; gap: 4px; }
.text-body { color: var(--text, #1f2937); }
/* 分页列表 / 下拉刷新 */
.inf-foot { text-align: center; color: var(--muted, #94a3b8); font-size: 12px; padding: 10px 0 4px; cursor: pointer; }
.inf-foot:empty { display: none; }
.ptr { height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted, #94a3b8); font-size: 12px; transition: height .2s; }
.tag-virtual { background: #f3e8ff; color: #7e22ce; }
.tag-gift { background: #fff3bf; color: #b07400; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
/* 会员阶段卡：一行说明 + 操作 */
.stage-card { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.stage-card a { font-size: 12px; }
.hold-card .hold-cd { color: #9a3412; }
.gift-card { border: 1px solid #f0b429; background: linear-gradient(0deg, #fffdf5, #fff); }

/* ---------- 表单控件统一高度；下拉选择（App 内底部面板） ---------- */
input.form-input:not([type="file"]), select.form-input, .select-trigger { height: 40px; }
@supports (-webkit-touch-callout: none) { .form-input { font-size: 16px; } } /* iOS 聚焦不缩放 */
.select-native { display: none !important; }
.select-trigger { display: flex; align-items: center; padding-right: 32px; cursor: pointer; position: relative; user-select: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%238a94a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
.select-trigger:focus-visible { border-color: var(--primary); }
.select-trigger.is-disabled { background-color: #f8fafc; color: var(--muted); cursor: not-allowed; }
.select-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-mask { position: fixed; inset: 0; z-index: 260; display: flex; justify-content: center; align-items: flex-end; background: rgba(15,23,42,0); transition: background .18s; }
.picker-mask.picker-open { background: rgba(15,23,42,.45); }
.picker-sheet { width: 100%; max-width: 430px; max-height: 60vh; display: flex; flex-direction: column; background: #fff; border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); transition: transform .18s ease-out; }
.picker-open .picker-sheet { transform: translateY(0); }
.picker-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.picker-close { border: 0; background: none; color: var(--muted); font-size: 14px; padding: 4px; cursor: pointer; }
.picker-list { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.picker-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 15px; color: var(--text); text-align: left; cursor: pointer; }
.picker-item:active { background: #f8fafc; }
.picker-item.on { color: var(--primary); font-weight: 600; }
.picker-item:disabled { color: var(--muted); cursor: not-allowed; }
input[type="file"].form-input { padding: 6px; font-size: 13px; color: var(--muted); }
input[type="file"].form-input::file-selector-button { border: 0; border-radius: 6px; padding: 6px 12px; margin-right: 10px; background: var(--primary-soft); color: var(--primary); font: inherit; cursor: pointer; }

/* 滑块校验 */
.slider-verify { position: relative; height: 44px; margin: 4px 0 14px; border-radius: 22px; background: #f1f2f4; border: 1px solid #e3e5e8; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.slider-verify .slider-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(46, 160, 67, .18); }
.slider-verify .slider-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #8a8f98; pointer-events: none; }
.slider-verify .slider-handle { position: absolute; left: 0; top: 0; width: 44px; height: 42px; border-radius: 21px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); display: flex; align-items: center; justify-content: center; font-size: 18px; color: #666; cursor: grab; touch-action: none; }
.slider-verify.dragging .slider-handle { cursor: grabbing; }
.slider-verify.ok { border-color: #2ea043; }
.slider-verify.ok .slider-fill { width: 100% !important; }
.slider-verify.ok .slider-text { color: #2ea043; font-weight: 600; }
.slider-verify.ok .slider-handle { color: #fff; background: #2ea043; cursor: default; transform: none !important; left: auto; right: 0; }
