/* =============================================================
   智慧market SaaS · 移动端 / 商户端样式 (mobile.css)
   以 375×812 手机框呈现，复用 theme.css 的皮肤变量
   ============================================================= */

.stage{ min-height:100vh; background:var(--bg-grad); display:flex; flex-wrap:wrap;
  gap:34px; justify-content:center; align-items:flex-start; padding:40px 24px 80px; }
.stage-head{ width:100%; text-align:center; margin-bottom:6px; }
.stage-head h1{ font-size:24px; font-weight:800; }
.stage-head p{ color:var(--text-3); margin-top:6px; }

/* 手机外框 */
.phone{ width:378px; flex:0 0 378px; }
.phone-frame{ background:#0b0f1a; border-radius:46px; padding:13px; box-shadow:var(--shadow-lg),0 0 0 2px rgba(255,255,255,.04) inset; }
.phone-screen{ position:relative; width:100%; height:760px; border-radius:34px; overflow:hidden;
  background:var(--bg); display:flex; flex-direction:column; }
.phone-cap{ text-align:center; margin-top:12px; font-size:13px; color:var(--text-3); font-weight:600; }

/* 状态栏 + 灵动岛 */
.m-status{ height:42px; flex:0 0 42px; display:flex; align-items:center; justify-content:space-between;
  padding:0 22px; font-size:13px; font-weight:700; color:var(--text); position:relative; z-index:5; }
.m-status .island{ position:absolute; left:50%; top:9px; transform:translateX(-50%); width:96px; height:24px; border-radius:99px; background:#0b0f1a; }
.m-status .sr{ display:flex; gap:5px; align-items:center; }

/* 顶栏 */
.m-appbar{ flex:0 0 auto; padding:6px 18px 12px; display:flex; align-items:center; gap:12px; color:var(--text); }
.m-appbar.brand{ background:var(--brand-grad); color:#fff; padding-bottom:18px; }
.m-appbar .back{ width:34px;height:34px;border-radius:50%; display:grid; place-items:center; background:rgba(127,127,127,.12); }
.m-appbar.brand .back{ background:rgba(255,255,255,.18); }
.m-appbar .at{ font-size:17px; font-weight:700; flex:1; }
.m-appbar .ar{ display:flex; gap:8px; }

/* 滚动内容 */
.m-body{ flex:1; overflow-y:auto; padding:14px 16px 20px; }
.m-body.flush{ padding:0 0 20px; }

/* 商户端首页头部（品牌渐变） */
.m-hero{ background:var(--brand-grad); color:#fff; padding:8px 18px 58px; position:relative; }
.m-hero .greet{ font-size:14px; opacity:.85; }
.m-hero .store{ font-size:21px; font-weight:800; margin-top:3px; }
.m-hero .htag{ display:inline-flex; gap:6px; margin-top:10px; }
.m-hero .htag .t{ background:rgba(255,255,255,.2); padding:3px 10px; border-radius:99px; font-size:12px; }
.m-hero-wave{ position:absolute; left:0; right:0; bottom:-1px; height:30px;
  background:var(--bg); border-radius:24px 24px 0 0; }

/* 卡片 */
.m-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm); padding:16px; margin-bottom:14px; }
.m-card.float{ margin:-44px 16px 14px; position:relative; z-index:2; box-shadow:var(--shadow); }
.m-card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:13px; }
.m-card-head .t{ font-weight:700; font-size:15px; display:flex; align-items:center; gap:8px; }
.m-card-head .t .bar{ width:3.5px;height:14px;border-radius:3px;background:var(--brand-grad); }
.m-card-head .more{ font-size:12.5px; color:var(--text-3); }

/* 账单/金额展示 */
.m-amount{ display:flex; align-items:baseline; gap:4px; }
.m-amount .cur{ font-size:15px; font-weight:700; }
.m-amount .v{ font-size:30px; font-weight:800; font-family:var(--font-num); letter-spacing:-.5px; }
.m-due-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; text-align:center; }
.m-due-grid .v{ font-size:18px; font-weight:800; font-family:var(--font-num); }
.m-due-grid .l{ font-size:11.5px; color:var(--text-3); margin-top:2px; }

/* 九宫格快捷入口 */
.m-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px 4px; }
.m-grid .gi{ display:flex; flex-direction:column; align-items:center; gap:7px; padding:8px 2px; text-align:center; }
.m-grid .gi .gic{ width:46px;height:46px;border-radius:15px; display:grid; place-items:center; color:#fff; }
.m-grid .gi .gl{ font-size:12px; color:var(--text-2); }
.gc1{ background:linear-gradient(135deg,var(--brand),var(--brand-strong)); }
.gc2{ background:linear-gradient(135deg,#1bbf7a,#0a9568); }
.gc3{ background:linear-gradient(135deg,#f5973b,#df7d1d); }
.gc4{ background:linear-gradient(135deg,#7a5cff,#6242e3); }
.gc5{ background:linear-gradient(135deg,#46c6ff,#3a78fe); }
.gc6{ background:linear-gradient(135deg,#ff8aa1,#f0506e); }
.gc7{ background:linear-gradient(135deg,#15a8a0,#0d8d86); }
.gc8{ background:linear-gradient(135deg,#f5cd5b,#e8b339); }

/* 单元行 */
.m-cell{ display:flex; align-items:center; gap:13px; padding:13px 2px; border-bottom:1px solid var(--border); }
.m-cell:last-child{ border-bottom:0; }
.m-cell .mci{ width:40px;height:40px;border-radius:12px; display:grid;place-items:center;
  background:var(--brand-soft); color:var(--brand); flex:0 0 auto; }
.m-cell .mc-main{ flex:1; min-width:0; }
.m-cell .mc-t{ font-weight:600; font-size:14.5px; }
.m-cell .mc-s{ font-size:12.5px; color:var(--text-3); margin-top:2px; }
.m-cell .mc-r{ text-align:right; }
.m-cell .arrow{ color:var(--text-3); }

/* banner */
.m-banner{ border-radius:var(--r-md); overflow:hidden; background:var(--brand-grad-soft);
  border:1px solid var(--brand-line); padding:14px 16px; display:flex; align-items:center; gap:12px; }
.m-banner .bi{ width:40px;height:40px;border-radius:11px; background:var(--brand-grad); color:#fff; display:grid;place-items:center; flex:0 0 auto; }
.m-banner .bt{ font-weight:700; font-size:14px; }
.m-banner .bs{ font-size:12px; color:var(--text-2); }

/* 选铺卡片 */
.m-shop{ display:flex; gap:12px; padding:12px; border:1px solid var(--border); border-radius:var(--r-md); margin-bottom:12px; background:var(--surface); }
.m-shop .ph{ width:96px;height:74px;border-radius:10px; background:var(--brand-grad-soft); flex:0 0 auto; display:grid;place-items:center; color:var(--brand); }
.m-shop .si{ flex:1; min-width:0; }
.m-shop .si .nm{ font-weight:700; font-size:15px; }
.m-shop .si .price{ color:var(--danger); font-weight:800; font-family:var(--font-num); font-size:16px; margin-top:6px; }
.m-shop .si .price small{ font-size:11px; color:var(--text-3); font-weight:400; }

/* 按钮 */
.m-btn{ display:flex; align-items:center; justify-content:center; gap:7px; height:46px; border-radius:14px;
  background:var(--brand-grad); color:#fff; font-weight:700; font-size:15px; border:0; width:100%;
  box-shadow:0 10px 22px -10px color-mix(in srgb,var(--brand) 70%,transparent); }
.m-btn.line{ background:var(--surface); color:var(--brand); border:1px solid var(--brand-line); box-shadow:none; }
.m-btn.sm{ height:36px; font-size:13.5px; border-radius:11px; width:auto; padding:0 18px; }
.m-fixed-foot{ position:absolute; left:0; right:0; bottom:0; padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:var(--surface); border-top:1px solid var(--border); display:flex; gap:12px; align-items:center; }

/* 底部 tabbar */
.m-tabbar{ flex:0 0 auto; display:flex; background:var(--surface); border-top:1px solid var(--border);
  padding:7px 6px calc(7px + env(safe-area-inset-bottom)); }
.m-tab{ flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; color:var(--text-3); font-size:11px; }
.m-tab .ti{ width:23px;height:23px; }
.m-tab.on{ color:var(--brand); font-weight:700; }
.m-tab .midbtn{ width:50px;height:50px;border-radius:50%; background:var(--brand-grad); color:#fff;
  display:grid;place-items:center; margin-top:-22px; box-shadow:var(--shadow); border:4px solid var(--surface); }

/* 分段/标签 */
.m-seg{ display:flex; gap:8px; overflow-x:auto; padding:2px 0 12px; }
.m-seg .s{ flex:0 0 auto; padding:7px 15px; border-radius:99px; background:var(--surface-3); font-size:13px; color:var(--text-2); font-weight:600; }
.m-seg .s.on{ background:var(--brand); color:#fff; }

/* 进度/状态条 */
.m-bill{ border:1px solid var(--border); border-radius:var(--r-md); padding:14px; margin-bottom:12px; background:var(--surface); }
.m-bill .bh{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.m-bill .bt{ font-weight:700; }
.m-bill .ba{ font-size:20px; font-weight:800; font-family:var(--font-num); }

/* 浮动皮肤切换按钮（移动端演示用，app.js 注入） */
.m-skin-fab{ position:absolute; right:14px; bottom:80px; z-index:30; }

/* 描述行 */
.m-kv{ display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px dashed var(--border); font-size:13.5px; }
.m-kv:last-child{ border:0; }
.m-kv .k{ color:var(--text-3); }
.m-kv .v{ font-weight:600; }

@media(max-width:520px){
  .stage{ padding:16px 6px 60px; gap:18px; }
  .phone,.phone-frame{ width:100%; flex-basis:auto; }
  .phone-frame{ border-radius:0; padding:0; box-shadow:none; }
  .phone-screen{ height:auto; min-height:100vh; border-radius:0; }
}
