/* ============================================================
   车仆养车 · C端 H5（模拟微信小程序体验）
   主色 #2563EB 蓝 · 价格 #F97316 橙 · 成功 #16A34A · 危险 #DC2626
   ============================================================ */
:root {
  --blue: #2563EB;
  --blue-deep: #1D4ED8;
  --blue-grad: linear-gradient(135deg, #3B82F6 0%, #2563EB 60%, #1D4ED8 100%);
  --orange: #F97316;
  --orange-deep: #EA580C;
  --orange-grad: linear-gradient(135deg, #FB923C 0%, #F97316 70%, #EA580C 100%);
  --green: #16A34A;
  --green-bg: #ECFDF3;
  --red: #DC2626;
  --red-bg: #FEF2F2;
  --orange-bg: #FFF7ED;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #94A3B8;
  --line: #EEF2F7;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-pop: 0 12px 40px rgba(15, 23, 42, 0.18);
  --tabbar-h: 56px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
#app {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 700px at 50% -10%, #1E3A8A 0%, #0F172A 55%, #0B1120 100%);
  display: flex; justify-content: center; align-items: center;
  overflow: hidden;
}
img { display: block; max-width: 100%; }
input, textarea { font-family: inherit; font-size: 15px; color: var(--ink); outline: none; border: none; background: transparent; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* ---------- 手机壳 ---------- */
.phone {
  width: min(100%, 420px); max-width: 420px; height: 100vh; height: 100dvh;
  background: var(--bg); position: relative; overflow: hidden;
  display: flex; flex: 0 1 420px; flex-direction: column;
}
@media (min-width: 480px) {
  .phone {
    height: min(896px, calc(100vh - 44px)); height: min(896px, calc(100dvh - 44px));
    border-radius: 36px; border: 10px solid #0B1220;
    box-shadow: 0 0 0 2px #334155, 0 34px 90px rgba(0, 0, 0, 0.6);
  }
  .phone::after { /* 听筒装饰 */
    content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
    width: 92px; height: 16px; border-radius: 10px; background: #0B1220; z-index: 300; pointer-events: none;
  }
}
/* 启动占位 */
.boot-splash { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--blue-grad); color: #fff; }
.boot-logo { width: 68px; height: 68px; border-radius: 20px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; border: 1px solid rgba(255,255,255,.35); }
.boot-name { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.boot-slogan { font-size: 12px; opacity: .85; }
.boot-bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; margin-top: 12px; }
.boot-bar i { display: block; width: 40%; height: 100%; background: #fff; border-radius: 3px; animation: bootmove 1.1s ease-in-out infinite; }
@keyframes bootmove { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* ---------- 视图与切换 ---------- */
.screen { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); }
.view-host { flex: 1; position: relative; overflow: hidden; min-height: 0; }
.page { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.page-bd { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.page-bd::-webkit-scrollbar { display: none; }
.pad-tab { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 14px); }
.vslide-enter-active, .vslide-leave-active { transition: transform .24s ease, opacity .24s ease; }
.vslide-enter-from { transform: translateX(36px); opacity: 0; }
.vslide-leave-to { transform: translateX(-28px); opacity: 0; }

/* ---------- 顶部栏 ---------- */
.hdr {
  height: 48px; background: #fff; display: flex; align-items: center;
  position: relative; z-index: 5; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.hdr-back { width: 44px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.hdr-back:active { opacity: .5; }
.hdr-title { position: absolute; left: 60px; right: 60px; text-align: center; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-op { position: absolute; right: 6px; }

/* 首页品牌头 */
.hero {
  background: var(--blue-grad); color: #fff; padding: 14px 14px 44px; position: relative; flex-shrink: 0;
}
.hero-brand { display: flex; align-items: center; gap: 10px; }
.hero-logo { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; }
.hero-name { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.hero-slogan { font-size: 11px; opacity: .85; margin-top: 2px; }
.hero-right { margin-left: auto; text-align: right; font-size: 10px; opacity: .8; line-height: 1.5; }
.search-box {
  margin-top: 12px; height: 40px; background: #fff; border-radius: 20px; display: flex; align-items: center;
  padding: 0 14px; gap: 8px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.search-box .ic { color: var(--ink-3); flex-shrink: 0; }
.search-box input { flex: 1; font-size: 13px; }
.search-box input::placeholder { color: var(--ink-3); }
.search-go { color: var(--blue); font-size: 14px; font-weight: 600; padding: 6px 2px 6px 8px; }
.search-go:active { opacity: .5; }

/* ---------- 通用块 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 13px 14px; margin: 10px 12px; }
.sec-title { display: flex; align-items: center; font-size: 15px; font-weight: 700; margin: 14px 14px 2px; }
.sec-title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--orange-grad); margin-right: 7px; }
.sec-title .more { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 400; display: flex; align-items: center; gap: 2px; }
.sec-title .more:active { opacity: .5; }
.cell { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 10px 12px; }
.cell:active { background: #F8FAFC; }
.cell .ic { color: var(--blue); flex-shrink: 0; }
.cell-tx { flex: 1; min-width: 0; }
.cell-t { font-size: 14px; font-weight: 500; }
.cell-s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.cell-arrow { color: #CBD5E1; flex-shrink: 0; }
.divider { height: 1px; background: var(--line); margin: 10px 0; }

/* 价格 */
.price { color: var(--orange); font-weight: 800; display: inline-flex; align-items: baseline; }
.price .yen { font-size: .62em; margin-right: 1px; font-weight: 700; }
.price.num-lg { font-size: 28px; }
.price.num-md { font-size: 22px; }
.price.num-sm { font-size: 16px; }
.orig { color: var(--ink-3); text-decoration: line-through; font-size: 12px; margin-left: 6px; font-weight: 400; }

/* 按钮（触控≥44px + 按压反馈） */
.btn {
  min-height: 44px; padding: 0 18px; border-radius: 22px; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease; user-select: none;
}
.btn:active { transform: scale(.96); opacity: .82; }
.btn.pri { background: var(--blue-grad); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32); }
.btn.org { background: var(--orange-grad); color: #fff; box-shadow: 0 6px 16px rgba(249, 115, 22, 0.32); }
.btn.grn { background: #16A34A; color: #fff; }
.btn.gh { background: #F1F5F9; color: var(--ink-2); }
.btn.gh-l { background: rgba(255,255,255,.9); color: var(--blue); border: 1px solid #BFDBFE; }
.btn.dgr { background: var(--red-bg); color: var(--red); }
.btn.dis { background: #E2E8F0 !important; color: #94A3B8 !important; box-shadow: none !important; pointer-events: none; }
.btn.sm { min-height: 34px; font-size: 13px; padding: 0 14px; border-radius: 17px; }
.btn.lg { min-height: 48px; font-size: 16px; border-radius: 24px; }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }

/* 底部固定操作栏 */
.fbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px;
}
.fbar-main { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.fbar .btn.big { flex: 1; min-height: 46px; font-size: 16px; }

/* tabbar */
.tabbar {
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); display: flex; z-index: 40; flex-shrink: 0;
}
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-3); transition: color .15s; }
.tab-item .ic { width: 24px; height: 24px; }
.tab-item span { font-size: 10px; }
.tab-item:active { opacity: .6; }
.tab-item.on { color: var(--blue); font-weight: 600; }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; scrollbar-width: none; flex-shrink: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; min-height: 32px; padding: 0 14px; border-radius: 16px; background: #fff; color: var(--ink-2);
  font-size: 13px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line);
  transition: all .15s;
}
.chip:active { opacity: .7; }
.chip.on { background: var(--blue-grad); color: #fff; border-color: transparent; font-weight: 600; box-shadow: 0 4px 10px rgba(37,99,235,.25); }
.chip.round-icon { width: 32px; padding: 0; justify-content: center; }

/* 吸顶筛选条 */
.sticky-bar { position: sticky; top: 0; z-index: 6; background: var(--bg); }

/* ---------- 套餐卡片 ---------- */
.pkg-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 10px 12px; padding: 12px; display: flex; gap: 11px; transition: transform .12s; }
.pkg-card:active { transform: scale(.985); }
.pkg-cover { width: 108px; height: 82px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: #EEF2F7; }
.pkg-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pkg-name { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pkg-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkg-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.pkg-meta b { color: var(--ink-2); font-weight: 600; }
.pkg-foot { margin-top: auto; display: flex; align-items: baseline; }
.pkg-buy { margin-left: auto; min-height: 30px; padding: 0 13px; border-radius: 15px; background: var(--orange-grad); color: #fff; font-size: 12px; font-weight: 600; }
.pkg-buy:active { transform: scale(.94); opacity: .8; }

/* 首页分类宫格 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 10px 12px 0; padding: 14px 6px 8px; position: relative; z-index: 2; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; border-radius: 10px; }
.cat-item:active { background: #F1F5F9; }
.cat-ico { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; font-weight: 700; }
.cat-item span { font-size: 12px; color: var(--ink-2); }

/* banner 轮播 */
.banner-wrap { position: relative; margin: 12px 12px 0; }
.banner-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; }
.banner-scroll::-webkit-scrollbar { display: none; }
.banner-item { flex: 0 0 100%; scroll-snap-align: center; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.banner-item img { width: 100%; height: 140px; object-fit: cover; }
.banner-item:active { opacity: .92; }
.banner-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; background: linear-gradient(transparent, rgba(15,23,42,.72)); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; }
.banner-cap .tag-act { background: var(--orange-grad); font-size: 10px; padding: 2px 7px; border-radius: 8px; margin-right: 7px; font-weight: 500; }
.banner-dots { position: absolute; bottom: 8px; right: 14px; display: flex; gap: 4px; z-index: 2; }
.banner-dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.5); transition: all .2s; }
.banner-dots i.on { width: 14px; background: #fff; }

/* ---------- 套餐详情 ---------- */
.pd-hero { position: relative; }
.pd-hero img { width: 100%; height: 218px; object-fit: cover; }
.pd-price-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: -22px 12px 0; position: relative; z-index: 2; padding: 13px 14px; }
.pd-name { font-size: 17px; font-weight: 700; line-height: 1.4; }
.pd-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag { font-size: 10px; padding: 3px 8px; border-radius: 6px; background: #F1F5F9; color: var(--ink-2); }
.tag.blue { background: #EFF6FF; color: var(--blue); }
.tag.orange { background: var(--orange-bg); color: var(--orange); }
.tag.green { background: var(--green-bg); color: var(--green); }
.tag.red { background: var(--red-bg); color: var(--red); }
.tag.gray { background: #F1F5F9; color: var(--ink-3); }
.item-row { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.item-row:last-child { border-bottom: none; padding-bottom: 2px; }
.item-row:first-child { padding-top: 4px; }
.item-img { width: 62px; height: 62px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: #EEF2F7; }
.item-mid { flex: 1; min-width: 0; }
.item-name { font-size: 14px; font-weight: 600; }
.item-spec { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.item-note { font-size: 11px; color: #B45309; background: var(--orange-bg); border-radius: 6px; padding: 3px 7px; margin-top: 5px; display: inline-block; }
.item-right { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-between; }
.item-qty { color: var(--ink-2); font-weight: 600; font-size: 13px; }
.store-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.store-row:last-child { border-bottom: none; }
.store-mid { flex: 1; min-width: 0; }
.store-nm { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.store-addr { font-size: 12px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist { color: var(--orange); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.nav-btn { min-height: 34px; padding: 0 12px; border-radius: 17px; background: #EFF6FF; color: var(--blue); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
.nav-btn:active { transform: scale(.94); opacity: .8; }
.notice-line { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }

/* ---------- 表单 ---------- */
.form-cell { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); gap: 8px; }
.form-cell:last-child { border-bottom: none; }
.form-label { width: 76px; font-size: 14px; color: var(--ink-2); flex-shrink: 0; }
.form-label i { color: var(--red); font-style: normal; margin-right: 2px; }
.form-cell input { flex: 1; font-size: 15px; min-height: 44px; }
.form-cell input::placeholder { color: #B6C2D2; }
.form-err { color: var(--red); font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
/* 步进器 */
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.stepper button { width: 38px; height: 38px; font-size: 18px; color: var(--blue); display: flex; align-items: center; justify-content: center; background: #F8FAFC; }
.stepper button:active { background: #E2E8F0; }
.stepper button.dis { color: #CBD5E1; pointer-events: none; }
.stepper .num { width: 44px; text-align: center; font-size: 15px; font-weight: 700; }
/* 单选门店 */
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 订单 ---------- */
.tabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.tab-cell { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink-2); position: relative; }
.tab-cell:active { opacity: .6; }
.tab-cell.on { color: var(--blue); font-weight: 700; }
.tab-cell.on::after { content: ""; position: absolute; bottom: 0; width: 22px; height: 3px; border-radius: 2px; background: var(--blue-grad); }
.order-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 10px 12px; padding: 12px 13px; }
.order-top { display: flex; align-items: center; gap: 8px; }
.order-no { font-size: 12px; color: var(--ink-3); flex: 1; }
.st-badge { font-size: 12px; font-weight: 600; }
.st-blue { color: var(--blue); } .st-org { color: var(--orange); } .st-grn { color: var(--green); }
.st-red { color: var(--red); } .st-gray { color: var(--ink-3); }
.order-body { display: flex; gap: 10px; margin-top: 10px; }
.order-body:active { opacity: .85; }
.order-cover { width: 68px; height: 68px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: #EEF2F7; }
.order-info { flex: 1; min-width: 0; }
.order-pkg { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-vc { margin-top: 5px; font-size: 11px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.order-time { font-size: 11px; color: #C3CDDA; margin-top: 4px; }
.order-amt { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
/* 详情状态头 */
.od-hero { padding: 20px 16px 16px; color: #fff; flex-shrink: 0; }
.od-hero.blue { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.od-hero.org { background: linear-gradient(135deg, #FB923C, #EA580C); }
.od-hero.grn { background: linear-gradient(135deg, #4ADE80, #16A34A); }
.od-hero.gray { background: linear-gradient(135deg, #94A3B8, #64748B); }
.od-hero.red { background: linear-gradient(135deg, #F87171, #DC2626); }
.od-st { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.od-desc { font-size: 12px; opacity: .88; margin-top: 6px; }
.kv { display: flex; font-size: 13px; padding: 5px 0; }
.kv .k { width: 84px; color: var(--ink-3); flex-shrink: 0; }
.kv .v { flex: 1; color: var(--ink-2); word-break: break-all; text-align: right; }

/* ---------- 核销码页 ---------- */
.vc-banner { display: flex; flex-direction: column; color: #fff; flex-shrink: 0; padding-bottom: 14px; }
.vc-banner-top { height: 48px; display: flex; align-items: center; gap: 2px; padding: 0 4px; position: relative; }
.vc-back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 50%; }
.vc-back:active { background: rgba(255, 255, 255, 0.18); }
.vc-banner-title { font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.vc-banner-body { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.vc-banner .ic { width: 26px; height: 26px; flex-shrink: 0; }
.vc-banner b { font-size: 15px; display: block; }
.vc-banner span { font-size: 11.5px; opacity: .88; display: block; margin-top: 2px; }
.vc-banner.grn { background: linear-gradient(135deg, #34D399, #16A34A); }
.vc-banner.org { background: linear-gradient(135deg, #FB923C, #EA580C); animation: vcPulse 1.6s ease-in-out infinite; }
.vc-banner.gray { background: linear-gradient(135deg, #94A3B8, #64748B); }
.vc-banner.red { background: linear-gradient(135deg, #F87171, #DC2626); }
@keyframes vcPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(249,115,22,.35); } 50% { box-shadow: 0 0 0 9px rgba(249,115,22,0); } }
.qr-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); margin: 12px; padding: 16px 14px 14px; text-align: center; position: relative; }
.qr-pkg { font-size: 15px; font-weight: 700; }
.qr-box { width: 232px; height: 232px; margin: 12px auto 0; border: 1px solid var(--line); border-radius: 14px; padding: 12px; position: relative; background: #fff; }
.qr-box img { width: 100%; height: 100%; }
.qr-lock-mask { position: absolute; inset: 0; background: rgba(255,255,255,.82); backdrop-filter: blur(2px); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--orange); font-size: 13px; font-weight: 600; }
.qr-corner { position: absolute; width: 18px; height: 18px; border: 3px solid var(--blue); }
.qr-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.qr-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.qr-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.qr-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }
.qr-cd { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 12px; }
.qr-cd-num { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.cd-ring { position: relative; width: 34px; height: 34px; }
.cd-ring svg { transform: rotate(-90deg); }
.cd-ring .bgc { stroke: #E2E8F0; }
.cd-ring .fgc { stroke: var(--orange); transition: stroke-dashoffset 1s linear; }
.cd-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--orange); }
.vc-code { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; background: #F8FAFC; border: 1px dashed #CBD5E1; border-radius: 10px; padding: 9px 14px; }
.vc-code b { font-size: 17px; letter-spacing: 1.5px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.vc-code .cp { font-size: 12px; color: var(--blue); min-height: 30px; display: inline-flex; align-items: center; }
.vc-code .cp:active { opacity: .5; }
.qr-tip { font-size: 11px; color: var(--ink-3); margin-top: 10px; }

/* ---------- 门店 ---------- */
/* 地图卡片 */
.map-card {
  position: relative; margin: 10px 12px; border-radius: var(--radius); overflow: hidden;
  background: #F1F5F9; box-shadow: var(--shadow); height: 196px;
}
.map-canvas { width: 100%; height: 100%; }
.map-svg { width: 100%; height: 100%; display: block; }
.map-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ink-3); font-size: 12px; background: #F1F5F9; z-index: 2; }
.spin.mini { width: 24px; height: 24px; border-width: 2.5px; border-color: #E2E8F0; border-top-color: var(--blue); }
.map-empty { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 12.5px; }
.map-tip {
  position: absolute; left: 8px; bottom: 8px; z-index: 3; max-width: 66%;
  background: rgba(15, 23, 42, 0.62); color: #fff; font-size: 10.5px; line-height: 1.5;
  padding: 4px 8px; border-radius: 8px; backdrop-filter: blur(4px);
}
.map-locate {
  position: absolute; right: 10px; bottom: 10px; z-index: 4; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--blue); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}
.map-locate:active { transform: scale(.92); opacity: .8; }
.store-card.active { box-shadow: 0 0 0 2px var(--blue), var(--shadow); }

.loc-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; color: var(--ink-2); flex-shrink: 0; }
.loc-bar .ic { color: var(--blue); }
.loc-city { font-weight: 700; }
.loc-st { color: var(--ink-3); font-size: 11px; }
.loc-re { margin-left: auto; min-height: 32px; padding: 0 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; }
.loc-re:active { opacity: .6; }
.store-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 8px 12px; padding: 12px 13px; display: flex; gap: 11px; }
.store-card:active { transform: scale(.985); }
.store-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #EEF2F7; }
.store-info { flex: 1; min-width: 0; }
.store-hd { display: flex; align-items: center; gap: 6px; }
.store-nm-lg { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.open-badge { font-size: 10px; padding: 2px 7px; border-radius: 6px; background: var(--green-bg); color: var(--green); flex-shrink: 0; }
.open-badge.off { background: #F1F5F9; color: var(--ink-3); }
.rating { display: flex; align-items: center; gap: 3px; color: #F59E0B; font-size: 12px; font-weight: 700; }
.rating .ic { width: 13px; height: 13px; }
.svc-chip { font-size: 11px; color: var(--blue); background: #EFF6FF; border-radius: 6px; padding: 2px 7px; }
.gal-scroll { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 10px; scrollbar-width: none; }
.gal-scroll::-webkit-scrollbar { display: none; }
.gal-scroll img { flex: 0 0 86%; height: 138px; object-fit: cover; border-radius: 10px; scroll-snap-align: center; }

/* ---------- 活动落地页 ---------- */
.cpg-hero { position: relative; }
.cpg-hero img { width: 100%; height: 300px; object-fit: cover; }
.cpg-tint { position: absolute; inset: 0; }
.cpg-tint.blue { background: linear-gradient(rgba(15,23,42,.05) 55%, rgba(15,23,42,.66)); }
.cpg-tint.red { background: linear-gradient(rgba(127,29,29,.08) 55%, rgba(69,10,10,.7)); }
.cpg-tint.dark { background: linear-gradient(rgba(0,0,0,.1) 55%, rgba(0,0,0,.75)); }
.cpg-ended-mask { position: absolute; inset: 0; background: rgba(15,23,42,.62); backdrop-filter: blur(1px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; z-index: 3; }
.cpg-ended-mask b { font-size: 20px; letter-spacing: 3px; border: 2px solid rgba(255,255,255,.85); padding: 8px 20px; border-radius: 30px; }
.cpg-ended-mask span { font-size: 12px; opacity: .8; }
.cpg-float-back { position: absolute; top: 12px; left: 12px; z-index: 4; width: 36px; height: 36px; border-radius: 50%; background: rgba(15,23,42,.45); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.cpg-float-back:active { opacity: .6; }
.cpg-title-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); margin: -26px 12px 0; position: relative; z-index: 2; padding: 15px 15px 13px; }
.cpg-name { font-size: 11px; color: var(--orange); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.cpg-title { font-size: 18px; font-weight: 800; line-height: 1.45; margin-top: 7px; }
.cpg-subtitle { font-size: 13px; color: var(--ink-2); margin-top: 5px; }
.sp-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sp-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.sp-item .ic { color: var(--green); flex-shrink: 0; margin-top: 2px; width: 15px; height: 15px; }
.cpg-stats { display: flex; margin: 10px 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 11px 0; }
.cpg-stat { flex: 1; text-align: center; position: relative; }
.cpg-stat b { font-size: 16px; font-weight: 800; color: var(--blue); }
.cpg-stat span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.cpg-stat + .cpg-stat::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--line); }

/* ---------- 我的 ---------- */
.mine-hero { background: var(--blue-grad); color: #fff; padding: 22px 16px 18px; flex-shrink: 0; }
.mine-user { display: flex; align-items: center; gap: 12px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.mine-name { font-size: 17px; font-weight: 700; }
.mine-phone { font-size: 12px; opacity: .85; margin-top: 3px; }
.count-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: -14px 12px 0; position: relative; padding: 13px 0 9px; }
.count-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.count-cell:active { opacity: .6; }
.count-cell b { font-size: 19px; font-weight: 800; color: var(--ink); }
.count-cell span { font-size: 11.5px; color: var(--ink-3); }
.login-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); margin: 14px 12px; padding: 18px 16px 16px; }
.login-title { font-size: 17px; font-weight: 800; text-align: center; }
.login-sub { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 5px; }
.sms-row { display: flex; align-items: center; gap: 8px; }
.sms-row input { flex: 1; }
.sms-btn { min-height: 40px; padding: 0 12px; border-radius: 10px; background: #EFF6FF; color: var(--blue); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.sms-btn:active { opacity: .6; }
.sms-btn.dis { color: var(--ink-3); background: #F1F5F9; pointer-events: none; }
.login-tip { background: var(--orange-bg); color: #B45309; font-size: 12px; border-radius: 9px; padding: 9px 11px; margin-top: 12px; line-height: 1.6; }
.about-note { font-size: 12px; color: var(--ink-3); line-height: 1.8; padding: 2px 4px; }

/* ---------- 支付成功页 ---------- */
.payok { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; align-items: center; padding-top: 84px; z-index: 5; }
.payok-ic { width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; animation: popin .5s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 12px 30px rgba(22,163,74,.35); }
.payok-ic .ic { width: 44px; height: 44px; }
@keyframes popin { 0% { transform: scale(.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.payok-t { font-size: 20px; font-weight: 800; margin-top: 18px; color: var(--green); }
.payok-amt { margin-top: 10px; }
.payok-no { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.payok-tip { margin-top: 26px; background: var(--green-bg); color: var(--green); font-size: 12.5px; border-radius: 10px; padding: 10px 14px; display: flex; align-items: center; gap: 6px; }
.payok-btns { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; width: 70%; }

/* ---------- 空态 / 骨架 ---------- */
.empty { padding: 56px 24px; text-align: center; }
.empty .ic { width: 74px; height: 74px; margin: 0 auto; color: #CBD5E1; }
.empty-t { font-size: 14px; color: var(--ink-2); margin-top: 12px; font-weight: 500; }
.empty-s { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.empty .btn { margin-top: 16px; }
.sk-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 10px 12px; padding: 12px; display: flex; gap: 11px; }
.sk { background: linear-gradient(100deg, #EEF2F7 40%, #F8FAFC 50%, #EEF2F7 60%); background-size: 200% 100%; animation: skshine 1.2s infinite; border-radius: 8px; }
@keyframes skshine { to { background-position: -200% 0; } }
.sk-cover { width: 108px; height: 82px; flex-shrink: 0; }
.sk-line { height: 14px; margin: 7px 0; }

/* ---------- Toast ---------- */
.toast-wrap { position: absolute; top: 64px; left: 0; right: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: rgba(15, 23, 42, 0.88); color: #fff; font-size: 13.5px; padding: 10px 18px; border-radius: 22px; max-width: 82%; box-shadow: var(--shadow-pop); display: flex; align-items: center; gap: 7px; animation: toastin .25s ease; }
.toast.err { background: rgba(153, 27, 27, 0.92); }
.toast.ok { background: rgba(21, 94, 55, 0.92); }
@keyframes toastin { from { transform: translateY(-12px) scale(.92); opacity: 0; } }

/* ---------- 弹窗 / 底部面板 ---------- */
.mask { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); z-index: 200; display: flex; align-items: flex-end; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; } }
.sheet { width: 100%; background: #fff; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); animation: sheetup .25s cubic-bezier(.22,.9,.36,1); max-height: 82%; overflow-y: auto; }
@keyframes sheetup { from { transform: translateY(40%); opacity: .5; } }
.sheet-grip { width: 38px; height: 4px; border-radius: 2px; background: #E2E8F0; margin: -4px auto 12px; }
.sheet-title { font-size: 16px; font-weight: 700; text-align: center; }
.sheet-desc { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 8px; line-height: 1.6; }
.sheet-btns { display: flex; gap: 10px; margin-top: 16px; }
.sheet-btns .btn { flex: 1; }
.dlg-center { position: absolute; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center; padding: 32px; }
.dlg { background: #fff; border-radius: 16px; width: 100%; max-width: 320px; padding: 22px 18px 16px; animation: popin .22s cubic-bezier(.34,1.3,.64,1); }
.dlg-title { font-size: 16px; font-weight: 700; text-align: center; }
.dlg-desc { font-size: 13.5px; color: var(--ink-2); text-align: center; margin-top: 10px; line-height: 1.65; white-space: pre-line; }
.dlg-input { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.dlg-input textarea { width: 100%; min-height: 72px; padding: 10px 0; font-size: 14px; resize: none; }
.dlg-btns { display: flex; gap: 10px; margin-top: 18px; }
.dlg-btns .btn { flex: 1; }

/* 分享面板 */
.share-poster { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.share-poster img { width: 100%; max-height: 330px; object-fit: cover; }
.share-hint { text-align: center; font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.share-ops { display: flex; gap: 10px; margin-top: 14px; }
.share-ops .btn { flex: 1; flex-direction: column; gap: 4px; min-height: 64px; background: #F8FAFC; color: var(--ink-2); font-size: 12px; border-radius: 12px; }
.share-ops .btn .ic { width: 22px; height: 22px; color: var(--blue); }

/* 收款方提示 */
.payee-row { display: flex; align-items: center; gap: 8px; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 10px; padding: 9px 11px; font-size: 12px; color: #92400E; line-height: 1.5; }
.payee-row .ic { color: #F59E0B; flex-shrink: 0; }
.payee-row b { color: #B45309; }

/* 全局 loading 遮罩 */
.g-loading { position: absolute; inset: 0; z-index: 500; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(2px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; font-size: 14px; }
.spin { width: 42px; height: 42px; border-radius: 50%; border: 3.5px solid rgba(255,255,255,.25); border-top-color: #fff; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.wx-mark { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; }

/* 通用图标 */
.ic { width: 19px; height: 19px; flex-shrink: 0; }
.ic-sm { width: 14px; height: 14px; }
.ic-lg { width: 26px; height: 26px; }
