/* 手机版布局：顶栏 + 底部标签栏，单列，按钮做大 */
body.m { font-size: 15px; }
body.m.a-app { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.mtb { position: sticky; top: 0; z-index: 20; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--rule-2); }
.mtb .brand b { font-size: 17px; }
.mtb .mark { width: 26px; height: 26px; font-size: 16px; }
.mtb .bal { font-size: 14px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 14px; color: var(--ink); }
.mtb .bal:hover { text-decoration: none; }
.mtb-r { display: flex; align-items: center; gap: 10px; }
.mmain { padding: 14px 14px 24px; }
.mmain.pub { padding: 0 16px 24px; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; font-size: 11px; color: var(--muted); text-decoration: none !important; }
.tabbar a .ic { width: 22px; height: 22px; }
.tabbar a.on { color: var(--ink); font-weight: 700; }
.tabbar .tab-new .ic { width: 34px; height: 34px; padding: 7px; margin-top: -14px; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 6px 14px -6px rgba(24, 35, 61, .6); stroke-width: 2.2; }
.tabbar .tab-new { color: var(--ink); }

/* 吸底操作条（在标签栏上方） */
.m-act { position: fixed; left: 0; right: 0; bottom: calc(57px + env(safe-area-inset-bottom)); z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #fff; border-top: 1px solid var(--rule); box-shadow: 0 -8px 20px -16px rgba(24, 35, 61, .5); }
.m-act form { margin: 0; flex: 1; display: flex; justify-content: flex-end; }
.m-act .btn { min-height: 44px; flex: 1; max-width: 230px; }
.m-act-t { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
body.m.a-app:has(.m-act) { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
.m-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rule); }
body.m.home { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

/* 通用缩放 */
.ptitle { font-size: 22px; }
.ptitle.long { font-size: 19px; }
.sec-t { font-size: 23px; }
.card, .msec { padding: 16px; border-radius: 10px; margin-bottom: 14px; }
.grid2, .grid3 { grid-template-columns: 1fr; }
.span2 { grid-column: auto; }
.type-form { grid-template-columns: 1fr; }
.kv { grid-template-columns: 6.2em 1fr; }
.btn { min-height: 44px; }
.btn.sm { min-height: 36px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { font-size: 16px; min-height: 46px; }

/* 步骤条：只显示当前步骤的文字 */
.stepper.compact { margin: 2px 0 14px; }
.stepper.compact li span { display: none; }
.stepper.compact li.cur span { display: inline; white-space: nowrap; }
.stepper.compact li:not(:last-child)::after { margin: 0 6px; }

.phead { flex-direction: column; align-items: stretch; gap: 8px; }
.phead-r { flex-direction: row; align-items: center; justify-content: space-between; }
.slot-main { grid-template-columns: 22px 1fr; }
.slot-main .up-btn { grid-column: 2; justify-self: start; min-width: 108px; }
.files { margin-left: 0; }
.msec-d { margin-left: 0; }
.g-form { min-width: 0; flex-wrap: wrap; }
.g-form input { max-width: none; flex: 1 1 100%; }
.events li { grid-template-columns: 1fr; gap: 0; }
.events time { font-size: 12px; }
.ready-card, .wallet-card, .guide-card { flex-direction: column; align-items: stretch; }
.rc-act { min-width: 0; }
.done-card { grid-template-columns: 1fr; text-align: center; }
.done-stamp { width: 112px; height: 112px; margin: 0 auto; }
.dc-act { justify-content: center; }
.dc-act .btn { flex: 1; }
.wc-note { text-align: left; }
.wallet-bal { font-size: 34px; }
.dash-head { align-items: center; margin-bottom: 14px; }
.gc-act { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.prow { padding: 13px 14px; flex-direction: column; align-items: stretch; gap: 8px; }
.prow-side { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
.comp { grid-template-columns: 1fr 1fr; }
.filter input, .filter select { max-width: none; flex: 1 1 140px; }
.amt span { min-width: 0; width: 100%; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); }
.amt { position: relative; }
.dlg-act .btn { flex: 1; }
.inline-form select { max-width: none; }

/* 首页 */
.hero { padding: 26px 0 8px; gap: 26px; }
.hero-t { font-size: 30px; line-height: 1.28; margin-bottom: 14px; }
.hero-lead { font-size: 15px; margin-bottom: 20px; }
.hero-cta .btn { flex: 1; }
.hero-vis { height: 300px; margin: 0 4px; }
.cv-p { font-size: 11px; }
.cv-h { font-size: 20px; }
.cv-s { font-size: 11px; }
.cv-lines { font-size: 10px; gap: 7px; }
.band { padding: 38px 0 4px; }
.steps3 li { padding: 16px; }
.ruled { padding: 4px 16px; }
.cl-over { gap: 10px; }
.price-cta .btn { width: 100%; }
.final-cta { padding-bottom: 32px; }
.ft-in { padding: 22px 16px; }
.narrow { padding: 18px 0 8px; }
.guide li { padding: 16px 16px 12px 56px; }
.guide li::before { left: 14px; top: 16px; }
.auth { padding: 22px 0; min-height: auto; }
.auth-card { padding: 22px 18px 18px; }

/* 手机上表格横向滑动，不挤成竖排 */
.tw { -webkit-overflow-scrolling: touch; }
.tbl.wide { min-width: 640px; }
.tbl th, .tbl td { padding: 8px 10px; }
.tw::after { content: ""; display: block; }
