/* ============ 移动端 App（消费者 + 商家） ============ */

/* ---------- 演示舞台 ---------- */
body.stage-body {
  background: #0b0d11;
  color: #e9ecf1;
  min-height: 100vh;
  overflow: hidden;
}
body.stage-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(760px 520px at 18% 12%, rgba(226, 84, 44, 0.16), transparent 62%),
    radial-gradient(700px 520px at 82% 78%, rgba(47, 111, 179, 0.16), transparent 60%),
    linear-gradient(180deg, #0d1015 0%, #0a0c10 100%);
  pointer-events: none;
}
.stage {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 24px 48px;
}
.stage-left { flex: 0 0 auto; }
.stage-right {
  width: 400px;
  max-height: 82vh;
  overflow-y: auto;
  padding-right: 6px;
}

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  z-index: 40;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.92), rgba(10, 12, 16, 0));
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
}
.brand-mark {
  width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(135deg, #f0713f, #c8431e);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 12px rgba(226, 84, 44, 0.4);
}
.brand span.dim { color: #7b828e; font-weight: 500; }

.topnav { display: flex; align-items: center; gap: 6px; }
.topnav a, .topnav button {
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #aab0bb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.16s;
}
.topnav a:hover, .topnav button:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.topnav .active { background: rgba(255, 255, 255, 0.1); color: #fff; }

.ic { display: inline-block; vertical-align: -0.16em; }

/* ---------- 手机外框 ---------- */
.phone {
  width: 405px;
  height: 872px;
  border-radius: 54px;
  padding: 11px;
  background: linear-gradient(160deg, #262a31, #14161a 40%, #0e1013);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
}
.phone::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 43px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.screen {
  width: 100%;
  height: 100%;
  border-radius: 43px;
  overflow: hidden;
  background: var(--bg);
  position: relative;
  color: var(--ink);
}
.app {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.app--dark { background: #1e222a; }
.app--dark::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(9, 11, 15, 0.62) 0%, rgba(9, 11, 15, 0.28) 55%, rgba(9, 11, 15, 0) 100%);
  pointer-events: none;
  z-index: 7;
}

/* ---------- 状态栏 ---------- */
.statusbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px 0 30px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
  position: relative;
  z-index: 6;
}
.statusbar .sb-right { display: flex; align-items: center; gap: 5px; }
.statusbar svg { opacity: 0.9; }
.app--dark .statusbar { color: #fff; }
.app--dark .statusbar svg { opacity: 0.95; }
.app:not(.app--dark) .statusbar {
  background: rgba(244, 245, 247, 0.94);
  backdrop-filter: blur(12px);
}

.island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 27px;
  border-radius: 16px;
  background: #05070a;
  z-index: 7;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: absolute;
  top: 50px; left: 0; right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  z-index: 5;
}
.navbar.solid {
  background: rgba(244, 245, 247, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 22, 27, 0.05);
}
.app--dark .navbar.solid { background: transparent; border-bottom: 0; backdrop-filter: none; }
.app--dark .navbar.solid .nb-title { color: #fff; }
.app--dark .navbar.solid .nb-btn {
  color: #fff;
  background: rgba(14, 16, 20, 0.34);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-left: -4px;
}
.navbar .nb-title {
  position: absolute;
  left: 0; right: 0;
  text-align: center;
  font-size: 15.5px;
  font-weight: 650;
  pointer-events: none;
}
.navbar .nb-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  margin-left: -6px;
  z-index: 1;
}
.navbar .nb-btn:active { background: rgba(0, 0, 0, 0.06); }
.app--dark .navbar .nb-title { color: #fff; }

.capsule {
  position: absolute;
  top: 6px;
  right: 14px;
  height: 30px;
  width: 82px;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 8;
}
.capsule i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-2); display: block;
  box-shadow: 6px 0 0 var(--ink-2), -6px 0 0 var(--ink-2);
}
.capsule b {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.6px solid var(--ink-2);
  display: block;
  position: relative;
}
.capsule b::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 50%; border: 1.4px solid var(--ink-2);
}
.app--dark .capsule { border-color: rgba(255, 255, 255, 0.24); background: rgba(0, 0, 0, 0.2); }
.app--dark .capsule i { background: #fff; box-shadow: 6px 0 0 #fff, -6px 0 0 #fff; }
.app--dark .capsule b, .app--dark .capsule b::after { border-color: #fff; }

/* ---------- 视图容器 ---------- */
.view {
  flex: 1 1 auto;
  background: var(--bg);
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 94px;
  padding-bottom: 16px;
  position: relative;
  scrollbar-width: none;
}
.view.fullbleed { padding-top: 0; }
.view::-webkit-scrollbar { display: none; }
.view.flush { padding-bottom: 0; }

/* ---------- 首页 ---------- */
.hero {
  background: linear-gradient(165deg, #20242c 0%, #14161b 58%, #191c22 100%);
  padding: 58px 18px 60px 18px;
  position: relative;
  border-radius: 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  right: -90px; top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 84, 44, 0.5), transparent 66%);
  filter: blur(6px);
}
.hero::after {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  left: -80px; bottom: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 179, 0.35), transparent 66%);
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  position: relative;
  z-index: 2;
}
.hero-loc { display: flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 600; }
.hero-loc small { font-size: 11px; font-weight: 400; opacity: 0.55; margin-left: 2px; }
.hero-icons { display: flex; gap: 14px; }
.hero-icons .hi { position: relative; opacity: 0.9; }
.hero-icons .hi .bdg {
  position: absolute; top: -3px; right: -4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff5a3c; border: 1.5px solid #191c22;
}

.searchbar {
  margin-top: 14px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  position: relative;
  z-index: 2;
}
.searchbar .sph { flex: 1; }
.searchbar .sbtn {
  height: 26px; padding: 0 12px; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600;
}

.quota-panel {
  margin: 16px 0 0;
  background: linear-gradient(120deg, #2b3038 0%, #1b1e24 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 15px 16px 14px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.quota-panel::after {
  content: "";
  position: absolute; right: -40px; top: -50px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.22), transparent 65%);
}
.qp-top { display: flex; align-items: flex-start; justify-content: space-between; }
.qp-label { font-size: 11.5px; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.3px; }
.qp-value {
  font-size: 30px; font-weight: 700; color: #fff; line-height: 1.15;
  letter-spacing: -0.5px; display: flex; align-items: baseline; gap: 4px;
}
.qp-value small { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.45); letter-spacing: 0; }
.qp-sub { font-size: 11px; color: rgba(255, 255, 255, 0.42); margin-top: 5px; }
.qp-sub b { color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.qp-btn {
  height: 30px; padding: 0 14px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff; font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}

.cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 14px 14px 0;
  padding: 14px 6px 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  position: relative;
  z-index: 3;
  margin-top: -34px;
}
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-2); font-weight: 500;
}
.cat .ci {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  transition: transform 0.15s;
}
.cat:active .ci { transform: scale(0.92); }
.cat:nth-child(1) .ci { background: #fdf0e9; color: #d1663a; }
.cat:nth-child(2) .ci { background: #f2eefc; color: #6f5bc4; }
.cat:nth-child(3) .ci { background: #e9f5f2; color: #2c8272; }
.cat:nth-child(4) .ci { background: #eaf1fa; color: #356ea8; }
.cat:nth-child(5) .ci { background: #f7f0e3; color: #a37c26; }

/* 筛选 chips */
.chips {
  display: flex; gap: 8px; padding: 14px 14px 4px;
  overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  height: 29px; padding: 0 13px; border-radius: 15px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.chip.soft { background: #f1f3f6; border-color: transparent; }

.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 6px;
}
.sec-head h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.sec-head .hint { font-size: 11.5px; color: var(--ink-4); display: inline-flex; align-items: center; gap: 2px; }

/* 商家卡片 */
.m-list { padding: 4px 14px 6px; display: flex; flex-direction: column; gap: 10px; }
.mc {
  background: #fff; border-radius: 16px; padding: 12px;
  display: flex; gap: 12px;
  box-shadow: var(--shadow-1);
  border: 1px solid #eff1f4;
  transition: transform 0.14s, box-shadow 0.14s;
}
.mc:active { transform: scale(0.988); }
.thumb {
  width: 74px; height: 74px; border-radius: 13px;
  flex: 0 0 74px;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.thumb svg { color: rgba(255, 255, 255, 0.92); }
.thumb .q-tag {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: rgba(0, 0, 0, 0.34);
  color: #fff; font-size: 9.5px; text-align: center;
  padding: 2px 0; letter-spacing: 0.3px;
  backdrop-filter: blur(2px);
}
.mc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mc-name {
  font-size: 14.5px; font-weight: 650; letter-spacing: -0.1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.mc-meta .st { color: #b8860b; font-weight: 600; display: flex; align-items: center; gap: 2px; }
.mc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.mc-tag {
  font-size: 10px; padding: 1.5px 6px; border-radius: 5px;
  background: #f5f6f8; color: var(--ink-3);
}
.mc-tag.hl { background: var(--jade-soft); color: var(--jade); font-weight: 600; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.mc-price { font-size: 12px; color: var(--ink-3); }
.mc-price b { color: var(--brand); font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.mc-dist { font-size: 11.5px; color: var(--ink-4); display: flex; align-items: center; gap: 3px; }

/* ---------- 商家详情 ---------- */
.detail-cover {
  height: 214px;
  padding-top: 50px;
  position: relative;
  display: grid;
  place-items: center;
}
.detail-cover .cover-ic { opacity: 0.22; }
.detail-cover .cover-grad { position: absolute; inset: 0; }
.detail-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.45));
}
.shop-card {
  margin: -34px 14px 0;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  position: relative;
  z-index: 3;
  box-shadow: var(--shadow-2);
}
.shop-name { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.shop-sub { font-size: 12px; color: var(--ink-3); margin-top: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.shop-stats {
  display: flex; margin-top: 14px; padding-top: 13px;
  border-top: 1px dashed var(--line);
}
.shop-stats .s { flex: 1; text-align: center; }
.shop-stats .s b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -0.2px; }
.shop-stats .s span { font-size: 10.5px; color: var(--ink-4); }

.notice-bar {
  margin: 12px 14px 0;
  background: #fffaf2;
  border: 1px solid #f6e6c9;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: #8a6420;
  display: flex; gap: 7px; align-items: flex-start;
  line-height: 1.5;
}
.notice-bar svg { flex: 0 0 auto; margin-top: 1px; color: #c9962c; }

/* 商品卡 */
.p-card {
  background: #fff; border-radius: 16px; padding: 12px;
  display: flex; gap: 12px; box-shadow: var(--shadow-1);
  border: 1px solid #eff1f4;
}
.p-thumb {
  width: 86px; height: 86px; border-radius: 13px; flex: 0 0 86px;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.p-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-name { font-size: 14px; font-weight: 650; letter-spacing: -0.1px; }
.p-sub { font-size: 11.5px; color: var(--ink-4); margin-top: 3px; line-height: 1.45; }
.p-tags { display: flex; gap: 5px; margin-top: 6px; }
.p-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.p-price { font-size: 17px; font-weight: 700; color: var(--brand); letter-spacing: -0.4px; }
.p-price small { font-size: 11px; font-weight: 600; }
.p-orig { font-size: 11px; color: var(--ink-4); text-decoration: line-through; margin-left: 4px; }
.p-rate { font-size: 10.5px; color: var(--jade); background: var(--jade-soft); padding: 2px 6px; border-radius: 5px; font-weight: 600; }

/* ---------- 底部标签栏 ---------- */
.tabbar {
  flex: 0 0 auto;
  height: 74px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid #eceef2;
  display: flex;
  padding-bottom: 10px;
}
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: #9aa0aa;
  font-size: 10.5px;
  font-weight: 500;
  position: relative;
  padding-top: 5px;
}
.tab.on { color: var(--brand); font-weight: 650; }
.tab .badge-dot {
  position: absolute; top: 6px; right: 50%; margin-right: -16px;
  width: 6px; height: 6px; border-radius: 50%; background: #ff5a3c;
}
.tabbar.dark { background: rgba(20, 22, 27, 0.94); border-top-color: #23262d; }

/* ---------- 通用页 ---------- */
.page { padding: 4px 14px 20px; }
.pg-title { font-size: 21px; font-weight: 750; letter-spacing: -0.5px; padding: 6px 4px 12px; }

.list-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-1); border: 1px solid #eff1f4; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid #f2f3f5;
  font-size: 13.5px;
}
.row:last-child { border-bottom: 0; }
.row:active { background: #fafbfc; }
.row .ri {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; flex: 0 0 30px;
  background: #f4f5f7; color: var(--ink-2);
}
.row .rt { flex: 1; min-width: 0; }
.row .rt b { display: block; font-weight: 600; }
.row .rt span { display: block; font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.row .rv { color: var(--ink-4); font-size: 12px; display: flex; align-items: center; gap: 3px; }

.kv { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; }
.kv .k { color: var(--ink-3); }
.kv .v { font-weight: 600; }

/* 钱包卡 */
.wallet-card {
  background: linear-gradient(135deg, #23262d 0%, #14161b 60%, #1c2027 100%);
  border-radius: 20px;
  padding: 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(16, 20, 28, 0.28);
}
.wallet-card::before {
  content: "";
  position: absolute; right: -50px; top: -60px;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.3), transparent 65%);
}
.wallet-card .wc-label { font-size: 11.5px; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.4px; }
.wallet-card .wc-num {
  font-size: 38px; font-weight: 750; letter-spacing: -1.2px; margin-top: 2px;
  display: flex; align-items: baseline; gap: 5px;
}
.wallet-card .wc-num small { font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, 0.5); letter-spacing: 0; }
.wallet-card .wc-row { display: flex; gap: 22px; margin-top: 16px; }
.wallet-card .wc-row .i { font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.wallet-card .wc-row .n { font-size: 15px; font-weight: 650; margin-top: 2px; }
.wallet-card .wc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px; color: rgba(255, 255, 255, 0.5);
}
.wc-acts { display: flex; gap: 9px; }
.wc-btn {
  height: 30px; padding: 0 14px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff; font-size: 12px; font-weight: 600;
}
.wc-btn.primary { background: var(--brand); border-color: var(--brand); }

/* 流水 */
.flow {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-bottom: 1px solid #f2f3f5;
}
.flow:last-child { border-bottom: 0; }
.flow .fi {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; flex: 0 0 34px;
}
.flow .ft { flex: 1; min-width: 0; }
.flow .ft b { font-size: 13px; font-weight: 600; display: block; }
.flow .ft span { font-size: 11px; color: var(--ink-4); }
.flow .fa { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.flow .fa.pos { color: var(--jade); }
.flow .fa.neg { color: var(--ink); }
.flow .fa small { font-size: 10px; font-weight: 500; color: var(--ink-4); display: block; text-align: right; }

/* 订单卡 */
.oc { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow-1); border: 1px solid #eff1f4; }
.oc-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--ink-4); }
.oc-body { display: flex; gap: 12px; margin-top: 11px; }
.oc-thumb { width: 62px; height: 62px; border-radius: 11px; flex: 0 0 62px; display: grid; place-items: center; }
.oc-main { flex: 1; min-width: 0; }
.oc-name { font-size: 13.5px; font-weight: 620; }
.oc-sub { font-size: 11px; color: var(--ink-4); margin-top: 3px; }
.oc-amt { font-size: 15px; font-weight: 700; margin-top: 6px; letter-spacing: -0.3px; }
.oc-amt small { font-size: 10.5px; color: var(--ink-4); font-weight: 500; }
.oc-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f2f3f5; }

.segment {
  display: flex; background: #eceef1; border-radius: 11px; padding: 3px;
  margin: 10px 14px 6px;
}
.segment .sg {
  flex: 1; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 12.5px; color: var(--ink-3); font-weight: 500;
}
.segment .sg.on { background: #fff; color: var(--ink); font-weight: 650; box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* 核销码 */
.code-wrap { padding: 20px 16px; }
.code-card {
  background: #fff; border-radius: 22px; padding: 22px 20px 18px;
  text-align: center; box-shadow: var(--shadow-2);
  position: relative; overflow: hidden;
}
.code-card::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), #f0a34f);
}
.qr {
  width: 190px; height: 190px; margin: 14px auto 0;
  border-radius: 14px; padding: 12px;
  background: #fff; border: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(21, 1fr);
  gap: 1px;
}
.qr i { background: transparent; border-radius: 1px; }
.qr i.on { background: #1b1e24; }
.qr i.fx { background: #1b1e24; border-radius: 2px; }
.code-num {
  font-family: var(--mono); font-size: 22px; font-weight: 600;
  letter-spacing: 3px; margin-top: 16px;
}
.code-hint { font-size: 11.5px; color: var(--ink-4); margin-top: 7px; }
.code-status {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; padding: 6px 13px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
}
.code-status.unused { background: var(--brand-soft); color: var(--brand-ink); }
.code-status.done { background: #f0f1f4; color: var(--ink-3); }
.code-status.expired { background: #f0f1f4; color: var(--ink-3); }

/* 底部操作条 */
.actionbar {
  flex: 0 0 auto;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid #eceef2;
  display: flex; align-items: center; gap: 12px;
}
.actionbar .ab-info { flex: 1; }
.actionbar .ab-info .lbl { font-size: 10.5px; color: var(--ink-4); }
.actionbar .ab-info .val { font-size: 20px; font-weight: 750; color: var(--brand); letter-spacing: -0.5px; }
.actionbar .ab-info .val small { font-size: 11px; color: var(--ink-4); font-weight: 500; }

/* 底部弹层 */
.sheet-mask {
  position: absolute; inset: 0; background: rgba(8, 10, 14, 0.45);
  z-index: 50; display: flex; align-items: flex-end;
  animation: fadeIn 0.18s ease;
}
.sheet {
  background: #fff; width: 100%;
  border-radius: 22px 22px 0 0;
  padding: 8px 18px 26px;
  animation: slideUp 0.24s cubic-bezier(.2,.9,.3,1);
  max-height: 82%;
  overflow-y: auto;
}
.sheet-handle { width: 38px; height: 4px; border-radius: 3px; background: #e2e4e9; margin: 0 auto 14px; }
.sheet h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.sheet .sheet-sub { font-size: 12px; color: var(--ink-4); margin-bottom: 14px; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 支付面板 */
.pay-line { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; font-size: 13.5px; }
.pay-line .k { color: var(--ink-3); }
.pay-line .v { font-weight: 650; }
.pay-line.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 14px; }
.pay-line.total .v { font-size: 21px; color: var(--brand); font-weight: 750; letter-spacing: -0.5px; }
.quota-slider-box { background: #f7f8fa; border-radius: 14px; padding: 14px; margin: 12px 0; }
.qs-head { display: flex; align-items: baseline; justify-content: space-between; }
.qs-head .t { font-size: 12.5px; color: var(--ink-3); }
.qs-head .n { font-size: 17px; font-weight: 700; color: var(--jade); letter-spacing: -0.3px; }
.qs-range { margin: 14px 0 8px; }
.qs-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-4); }

.switch {
  width: 44px; height: 26px; border-radius: 14px; background: #dfe2e7;
  position: relative; transition: background 0.18s; flex: 0 0 44px;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform 0.18s;
}
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(18px); }

/* 推广海报 */
.promo-hero {
  margin: 6px 14px 0; border-radius: 20px; padding: 20px 18px;
  background: linear-gradient(135deg, #2a2f38, #16181d 70%);
  color: #fff; position: relative; overflow: hidden;
}
.promo-hero::after {
  content: ""; position: absolute; right: -40px; bottom: -70px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 84, 44, 0.45), transparent 66%);
}
.lv-badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 11px;
  background: linear-gradient(120deg, #d8b45c, #b8860b);
  color: #2b2005; font-size: 11px; font-weight: 700;
}
.promo-num { font-size: 32px; font-weight: 750; letter-spacing: -1px; margin-top: 10px; }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.promo-grid .pg { background: rgba(255,255,255,.08); border-radius: 11px; padding: 9px 8px; text-align: center; }
.promo-grid .pg b { display: block; font-size: 16px; font-weight: 700; }
.promo-grid .pg span { font-size: 10px; color: rgba(255,255,255,.5); }

.team-row { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-bottom: 1px solid #f2f3f5; }
.team-row:last-child { border-bottom: 0; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #9aa6b8, #6b7789);
  flex: 0 0 36px;
}
.avatar.c1 { background: linear-gradient(135deg, #e09a5f, #c06a34); }
.avatar.c2 { background: linear-gradient(135deg, #7fa3d6, #4a6fa5); }
.avatar.c3 { background: linear-gradient(135deg, #8fbfa8, #4e8a70); }
.avatar.c4 { background: linear-gradient(135deg, #b79ad6, #7b5aa6); }

/* 我的 */
.profile-head {
  padding: 62px 18px 72px;
  background: linear-gradient(160deg, #20242c, #14161b);
  position: relative;
}
.profile-row { display: flex; align-items: center; gap: 13px; position: relative; z-index: 2; }
.profile-avatar {
  width: 58px; height: 58px; border-radius: 19px;
  background: linear-gradient(135deg, #f0a34f, #d1663a);
  display: grid; place-items: center;
  font-size: 21px; font-weight: 700; color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.profile-name { font-size: 18px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 7px; }
.profile-sub { font-size: 11.5px; color: rgba(255,255,255,.5); margin-top: 4px; }
.identity-bar {
  display: flex; gap: 7px; margin: 16px 14px 0;
  position: relative; z-index: 3; margin-top: -52px;
}
.id-chip {
  flex: 1; background: #fff; border-radius: 13px; padding: 9px 8px;
  text-align: center; box-shadow: var(--shadow-1);
  border: 1.5px solid transparent;
  transition: all 0.18s;
}
.id-chip.on { border-color: var(--brand); background: #fff8f5; }
.id-chip .ic-name { font-size: 12.5px; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 4px; }
.id-chip .ic-desc { font-size: 9.5px; color: var(--ink-4); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stat-strip { display: flex; background: #fff; border-radius: 16px; margin: 12px 14px 0; padding: 14px 0; box-shadow: var(--shadow-1); }
.stat-strip .s { flex: 1; text-align: center; border-right: 1px solid #f2f3f5; }
.stat-strip .s:last-child { border-right: 0; }
.stat-strip .s b { display: block; font-size: 18px; font-weight: 750; letter-spacing: -0.4px; }
.stat-strip .s span { font-size: 10.5px; color: var(--ink-4); }

/* 商家工作台 */
.mkpi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 8px 14px 0; }
.mkpi .k {
  background: #fff; border-radius: 15px; padding: 14px;
  box-shadow: var(--shadow-1); border: 1px solid #eff1f4;
}
.mkpi .k .lb { font-size: 11px; color: var(--ink-4); display: flex; align-items: center; gap: 4px; }
.mkpi .k .vl { font-size: 23px; font-weight: 750; letter-spacing: -0.8px; margin-top: 6px; }
.mkpi .k .dl { font-size: 10.5px; margin-top: 3px; color: var(--jade); }
.mkpi .k .dl.down { color: var(--danger); }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 14px 0; }
.qa {
  background: #fff; border-radius: 14px; padding: 12px 6px;
  border: 1px solid #eff1f4;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  box-shadow: var(--shadow-1); border: 1px solid #eff1f4;
  font-size: 11px; color: var(--ink-2); font-weight: 500;
}
.qa .qi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }

/* 核销台 */
.verify-box { margin: 8px 14px 0; background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow-1); }
.verify-input {
  width: 100%; height: 56px; border-radius: 13px;
  border: 1.5px dashed var(--line-strong);
  text-align: center; font-family: var(--mono);
  font-size: 24px; letter-spacing: 5px; font-weight: 600;
  outline: none; background: #fafbfc;
}
.verify-input:focus { border-color: var(--brand); background: #fff; }
.verify-result { margin-top: 14px; border-radius: 13px; padding: 14px; font-size: 13px; display: flex; gap: 10px; }
.verify-result.ok { background: var(--jade-soft); color: #0b5c4a; }
.verify-result.err { background: var(--danger-soft); color: #8e2d21; }
.verify-result b { display: block; font-size: 14px; margin-bottom: 3px; }

/* 空态 */
.empty { text-align: center; padding: 60px 30px; color: var(--ink-4); font-size: 12.5px; }
.empty svg { margin: 0 auto 12px; opacity: 0.35; }

/* 分段标题带 */
.band {
  background: #fff; border-radius: 14px; padding: 12px 14px;
  margin: 0 14px 10px; box-shadow: var(--shadow-1); border: 1px solid #eff1f4;
}

/* ---------- 右侧说明面板 ---------- */
.panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 26px 26px 22px;
  backdrop-filter: blur(18px);
}
.panel .eyebrow {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #d1663a; font-weight: 700;
}
.panel h1 {
  font-size: 26px; line-height: 1.25; margin: 10px 0 8px;
  letter-spacing: -0.6px; font-weight: 750;
}
.panel .lead { font-size: 13px; color: #98a0ad; line-height: 1.7; }
.panel .divider { height: 1px; background: rgba(255,255,255,.08); margin: 20px 0 18px; }
.panel h4 {
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: #6f7784; margin: 0 0 10px; font-weight: 700;
}
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li {
  font-size: 12.5px; color: #b6bdc8; line-height: 1.65;
  padding-left: 16px; position: relative; margin-bottom: 7px;
}
.panel li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: #4a515d;
}
.panel li b { color: #fff; font-weight: 600; }
.panel .kbd {
  display: inline-block; padding: 1px 6px; border-radius: 5px;
  background: rgba(255,255,255,.1); font-size: 11px; color: #e8ebef;
  font-family: var(--mono); margin: 0 1px;
}
.panel .note {
  margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  background: rgba(226, 84, 44, 0.09);
  border: 1px solid rgba(226, 84, 44, 0.18);
  font-size: 12px; color: #e0a48c; line-height: 1.6;
}

/* 场景切换 */
.scn { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.scn button {
  font-size: 11.5px; padding: 6px 11px; border-radius: 8px;
  background: rgba(255,255,255,.06); color: #aab1bd;
  border: 1px solid rgba(255,255,255,.08);
}
.scn button:hover { background: rgba(255,255,255,.12); color: #fff; }


/* 手机内浮层 */
.screen #toast { position: absolute; bottom: 104px; z-index: 60; }
.screen #sheet-root { position: absolute; inset: 0; z-index: 55; }


/* 适配较矮的笔记本屏幕 */
@media (max-height: 980px) { .phone { transform: scale(0.9); } .stage { gap: 48px; } }
@media (max-height: 890px) { .phone { transform: scale(0.8); } .stage-right { width: 372px; max-height: 78vh; } }
@media (max-height: 780px) { .phone { transform: scale(0.68); } .stage { gap: 34px; } }
@media (max-width: 1180px) { .stage { gap: 26px; padding: 20px 20px; } .stage-right { width: 330px; } }
@media (max-width: 980px) { .stage-right { display: none; } }
