:root {
  --green: #5798dc;
  --green-d: #2a6cae;
  --green-l: #edf4fc;
  --bg: #f5f5f5;
  --card: #fff;
  --text: #1b1b1b;
  --sub: #8c8c8c;
  --line: #ededed;
  --red: #e4483d;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #e9ecef;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
img { display: block; }
a { color: inherit; text-decoration: none; }

#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}
.page { padding-bottom: 76px; }
.page.nobar { padding-bottom: 20px; }
.pad { padding: 0 12px; }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  height: 46px; padding: 0 12px; background: #fff;
}
.navbar.transparent { background: transparent; position: absolute; width: 100%; }
.hamb {
  width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; cursor: pointer;
}
.hamb i { display: block; width: 12px; height: 1.5px; background: #333; border-radius: 2px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-pill {
  height: 30px; min-width: 52px; padding: 0 12px; border-radius: 15px; background: rgba(255,255,255,.92);
  box-shadow: 0 1px 5px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center;
  letter-spacing: 2px; color: #333; font-size: 15px; font-weight: 600; border: 0; cursor: pointer;
}
.nav-circ {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92);
  box-shadow: 0 1px 5px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
}
.nav-circ svg { width: 16px; height: 16px; color: #333; }

/* ---------- 搜索 ---------- */
.searchbar {
  display: flex; align-items: center; gap: 6px; margin: 8px 12px 6px;
  height: 34px; padding: 0 12px; background: #f4f4f4; border-radius: 17px; color: #adadad; font-size: 13px;
}
.searchbar svg { flex: none; }
.searchbar input {
  border: 0; background: transparent; outline: none; flex: 1; font-size: 13px; color: #333; min-width: 0;
}
.searchbar input::placeholder { color: #b3b3b3; }

/* ---------- 公告 ---------- */
.notice { display: flex; align-items: center; gap: 8px; padding: 4px 16px 8px; }
.notice .txt { flex: 1; font-size: 12px; color: #6f6f6f; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notice .right { font-size: 12px; color: #9a9a9a; }

/* ---------- 首页 ---------- */
.hero { margin: 0 12px; border-radius: 12px; overflow: hidden; position: relative; background: #eee; }
.hero img { width: 100%; aspect-ratio: 1 / 1.04; object-fit: cover; }
.hero .tagline {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.42)); color: #fff; font-size: 11px; letter-spacing: .4px;
}

/* 首页轮播（多图自动切换） */
.hero-c { position: relative; margin: 0 12px; border-radius: 12px; overflow: hidden; background: #eef1f5; aspect-ratio: 1 / 1.04; touch-action: pan-y; }
.hero-c-track { display: flex; height: 100%; transition: transform .38s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.hero-c-slide { flex: 0 0 100%; height: 100%; }
.hero-c-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-c .tagline {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.42)); color: #fff; font-size: 11px; letter-spacing: .4px;
  pointer-events: none; z-index: 1;
}
.hero-c-dots { position: absolute; right: 12px; bottom: 11px; display: flex; gap: 4px; align-items: center; z-index: 2; }
.hero-c-dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.55); transition: all .3s; cursor: pointer; }
.hero-c-dots i.on { width: 15px; background: #fff; }

.entries { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 10px 12px 0; }
.ecard {
  position: relative; border-radius: 12px; padding: 13px 13px 10px; overflow: hidden;
  background: linear-gradient(150deg, #4585cf 0%, #3373bd 100%); color: #fff; cursor: pointer;
  min-height: 96px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(40, 125, 195, .16);
}
.ecard.tall { grid-row: span 2; min-height: 201px; }
.ecard h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: .5px; line-height: 1.2; }
.ecard.tall h3 { font-size: 23px; }
.ecard .en { font-size: 9px; opacity: .82; letter-spacing: .6px; margin-top: 2px; }
.ecard .art { position: absolute; right: 5px; bottom: 3px; width: 44%; max-width: 74px; opacity: .97; }
.ecard.tall .art { width: 94%; max-width: 196px; right: 6px; bottom: 26px; }
.ecard .go {
  align-self: flex-start; font-size: 10px; background: rgba(255,255,255,.22); border: .5px solid rgba(255,255,255,.55);
  padding: 2px 8px; border-radius: 9px; backdrop-filter: blur(2px); margin-top: 6px;
}
.ecard .badge {
  position: absolute; right: 9px; top: 9px; background: #fff; color: #1a5ca8; font-size: 8.5px;
  padding: 1px 5px; border-radius: 7px; font-weight: 700; z-index: 2; max-width: 88%; overflow: hidden; white-space: nowrap;
}
.ecard.wide { grid-column: span 2; min-height: 68px; flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 14px; }
.ecard.wide .art { position: static; width: 74px; margin-left: auto; }
.ecard .sub { font-size: 11px; opacity: .9; }

.sect-title { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 8px; }
.sect-title h2 { margin: 0; font-size: 15px; font-weight: 700; }
.sect-title span { font-size: 11px; color: var(--sub); }

.hscroll { display: flex; gap: 9px; overflow-x: auto; padding: 0 12px 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.pcard {
  background: #fff; border-radius: 10px; overflow: hidden; flex: none; width: 128px;
  box-shadow: var(--shadow); cursor: pointer;
}
.pcard .thumb { width: 100%; aspect-ratio: 1; object-fit: cover; background: #efeae2; }
.pcard .info { padding: 7px 8px 8px; }
.pcard .nm { font-size: 12px; line-height: 1.35; height: 32px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard .pr { color: var(--red); font-weight: 700; font-size: 13px; margin-top: 3px; }
.pcard .pr small { font-size: 10px; font-weight: 400; }

/* ---------- 底部 tabbar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 58px; background: rgba(255,255,255,.98);
  border-top: .5px solid #eee; display: flex; z-index: 40; padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(8px);
}
.tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #9a9a9a; font-size: 10px; cursor: pointer; }
.tabbar .tab.on { color: var(--green-d); }
.tabbar .tab svg { width: 22px; height: 22px; }
.tabbar .dot { position: absolute; }

/* ---------- 分类页 ---------- */
.cat-head { background: var(--green); padding: 4px 0 10px; position: sticky; top: 0; z-index: 20; }
.cat-head .row { display: flex; align-items: center; gap: 8px; padding: 0 12px 8px; }
.cat-head .back { width: 26px; height: 30px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; cursor: pointer; }
.cat-head .sbar { flex: 1; height: 32px; background: #fff; border-radius: 16px; display: flex; align-items: center; gap: 5px; padding: 0 11px; }
.cat-head .sbar input { border: 0; outline: none; flex: 1; font-size: 13px; min-width: 0; background: transparent; }
.cat-body { display: flex; align-items: stretch; background: #fff; height: calc(100vh - 106px); height: calc(100dvh - 106px); overflow: hidden; }
.rail { width: 92px; flex: none; background: #f7f7f7; overflow-y: auto; padding-bottom: 80px; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail .item {
  padding: 15px 6px 15px 12px; font-size: 12.5px; color: #4a4a4a; position: relative; cursor: pointer; line-height: 1.3;
}
.rail .item.on { background: #fff; font-weight: 700; color: #111; }
.rail .item.on::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: var(--green); border-radius: 0 3px 3px 0; }
.cat-main { flex: 1; padding: 10px 10px 90px; min-width: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cat-main::-webkit-scrollbar { display: none; }
.cat-main .grp { font-size: 13px; font-weight: 700; margin: 4px 0 10px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px; }
.pgrid .pcell { cursor: pointer; }
.pgrid .pcell img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #f6f2ec; }
.pgrid .pcell .nm { font-size: 11.5px; line-height: 1.3; margin-top: 5px; color: #333; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pgrid .pcell .pr { font-size: 11.5px; color: var(--red); text-align: center; font-weight: 600; margin-top: 2px; }
.empty { text-align: center; color: #b0b0b0; font-size: 12.5px; padding: 50px 0; }

/* ---------- 商品详情 ---------- */
.pd-hero { position: relative; background: #efeae2; }
.pd-hero img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.float-back {
  position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 6px rgba(0,0,0,.14); border: 0; font-size: 17px; color: #333; cursor: pointer; z-index: 5;
}
.pd-sheet { background: #fff; border-radius: 16px 16px 0 0; margin-top: -14px; position: relative; padding: 16px 14px 96px; }
.pd-price { display: flex; align-items: baseline; gap: 4px; }
.pd-price .cur { color: var(--red); font-size: 17px; font-weight: 700; }
.pd-price .num { color: var(--red); font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.pd-price .unit { font-size: 11px; color: #9b9b9b; margin-left: 6px; }
.pd-tip { font-size: 12px; color: #9b9b9b; margin-top: 4px; }
.pd-group { margin-top: 16px; }
.pd-group .lb { font-size: 12.5px; color: #666; margin-bottom: 9px; display: flex; justify-content: space-between; }
.pd-group .lb b { color: #222; font-weight: 600; }
.opt {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #ececec;
  border-radius: 9px; margin-bottom: 8px; background: #fafafa; cursor: pointer; transition: .15s;
}
.opt img { width: 38px; height: 38px; border-radius: 5px; object-fit: cover; background: #eee; }
.opt .nm { font-size: 13px; flex: 1; }
.opt.on { border-color: var(--green); background: var(--green-l); box-shadow: 0 0 0 1px var(--green) inset; }
.opt.on .nm { color: var(--green-d); font-weight: 600; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  padding: 8px 12px; border-radius: 7px; background: #f6f6f6; font-size: 12.5px; color: #444; cursor: pointer;
  border: 1px solid transparent; line-height: 1.1;
}
.size small { display: block; font-size: 9px; color: #a8a8a8; margin-top: 2px; }
.size.on { background: var(--green-l); border-color: var(--green); color: var(--green-d); font-weight: 700; }
.size.on small { color: var(--green-d); }
.pd-desc { margin-top: 18px; border-top: 1px solid #f2f2f2; padding-top: 14px; }
.pd-desc h4 { margin: 0 0 8px; font-size: 13px; }
.pd-desc p { margin: 0; font-size: 12.5px; color: #777; line-height: 1.75; }
.pd-desc .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pd-desc .tags span { font-size: 10.5px; color: var(--green-d); background: var(--green-l); padding: 2px 7px; border-radius: 6px; }

.buybar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px;
  display: flex; gap: 8px; padding: 9px 12px; background: rgba(255,255,255,.98); border-top: .5px solid #f0f0f0;
  z-index: 35; padding-bottom: calc(9px + env(safe-area-inset-bottom));
}
.btn { border: 0; border-radius: 22px; padding: 12px 0; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.btn.ghost { background: #dde7f2; color: #104b8f; flex: 1; }
.btn.primary { background: linear-gradient(135deg, #4586d0, #2266b3); color: #fff; flex: 1; box-shadow: 0 4px 12px rgba(40, 120, 195, .26); }
.btn.dark { background: #2b2b2b; color: #fff; }
.btn:disabled { opacity: .5; }

/* ---------- 购物车 ---------- */
.cart-item { display: flex; gap: 10px; background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 9px; position: relative; }
.cart-item img { width: 76px; height: 76px; border-radius: 7px; object-fit: cover; background: #f2ede6; }
.cart-item .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-item .nm { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item .spec { font-size: 11px; color: #9a9a9a; margin-top: 3px; background: #f6f6f6; align-self: flex-start; padding: 1px 6px; border-radius: 5px; }
.cart-item .spec.sch { color: #2a6cae; background: #e8f1fb; cursor: pointer; }
.cart-item .spec.sch:empty { display: none; }
.cart-item .bot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.cart-item .p { color: var(--red); font-weight: 700; font-size: 14px; }
.cart-del {
  position: absolute; right: 4px; top: 4px; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  color: #c2c2c2; font-size: 17px; line-height: 1; cursor: pointer; border-radius: 50%;
}
.cart-del:active { background: #f2f2f2; color: #e4483d; }
.stepper { display: flex; align-items: center; border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.stepper button { width: 26px; height: 24px; background: #fafafa; border: 0; font-size: 14px; color: #666; cursor: pointer; }
.stepper span { width: 30px; text-align: center; font-size: 12.5px; }
.check {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #d5d5d5; flex: none; margin-top: 28px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; cursor: pointer;
}
.check.on { background: var(--green); border-color: var(--green); }
.bottombar.above-tab { bottom: 58px; }
.bottombar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); max-width: 430px; width: 100%;
  background: #fff; border-top: .5px solid #f0f0f0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; z-index: 35;
}
.bottombar .sum { flex: 1; font-size: 12px; color: #777; }
.bottombar .sum b { color: var(--red); font-size: 18px; margin-left: 2px; }
.bottombar .btn { padding: 10px 26px; }

/* ---------- 通用卡片 / 表单 ---------- */
.card { background: #fff; border-radius: 12px; padding: 14px; margin: 10px 12px; box-shadow: var(--shadow); }
.card h4 { margin: 0 0 12px; font-size: 13.5px; }
.rowflex { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--sub); font-size: 12px; }
.seg { display: flex; background: #f3f3f3; border-radius: 10px; padding: 3px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 0; border-radius: 8px; font-size: 13px; color: #666; cursor: pointer; }
.seg button.on { background: #fff; color: var(--green-d); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.field { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f4f4f4; }
.field:last-child { border-bottom: 0; }
.field label { width: 68px; font-size: 12.5px; color: #666; flex: none; }
.field input, .field textarea, .field select {
  flex: 1; border: 0; outline: none; font-size: 13.5px; font-family: inherit; background: transparent; color: #222; min-width: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 7px 12px; border-radius: 18px; background: #f5f5f5; font-size: 12.5px; color: #555; cursor: pointer; border: 1px solid transparent;
}
.chip.on { background: var(--green-l); color: var(--green-d); border-color: var(--green); font-weight: 600; }
.opt-row {
  display: flex; gap: 10px; padding: 11px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 8px;
  cursor: pointer; align-items: flex-start;
}
.opt-row.on { border-color: var(--green); background: var(--green-l); }
.opt-row .r { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #d0d0d0; margin-top: 2px; flex: none; }
.opt-row.on .r { border: 5px solid var(--green); }
.opt-row .t { flex: 1; min-width: 0; }
.opt-row .t b { font-size: 13px; font-weight: 600; }
.opt-row .t p { margin: 3px 0 0; font-size: 11.5px; color: #999; line-height: 1.5; }
.coupon-pick { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 13px; }
.coupon-pick .amt { color: var(--red); font-weight: 700; }

/* ---------- 订单 ---------- */
.tabs2 { display: flex; background: #fff; position: sticky; top: 0; z-index: 20; border-bottom: .5px solid #f0f0f0; }
.tabs2 .t { flex: 1; text-align: center; padding: 12px 0; font-size: 13px; color: #666; position: relative; cursor: pointer; }
.tabs2 .t.on { color: #111; font-weight: 700; }
.tabs2 .t.on::after { content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 18px; height: 2.5px; background: var(--green); border-radius: 2px; }
.ocard { background: #fff; border-radius: 12px; margin: 10px 12px; padding: 13px; box-shadow: var(--shadow); }
.ocard .top { display: flex; justify-content: space-between; font-size: 12px; color: #999; margin-bottom: 10px; }
.ocard .top .st { color: var(--green-d); font-weight: 600; }
.ocard .top .st.pending { color: #e08a1e; }
.ocard .top .st.canceled { color: #999; }
.oitem { display: flex; gap: 9px; padding: 7px 0; }
.oitem img { width: 62px; height: 62px; border-radius: 7px; object-fit: cover; background: #f3eee7; }
.oitem .nm { font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oitem .sp { font-size: 11px; color: #9a9a9a; margin-top: 3px; }
.oitem .sp.sch { color: #2a6cae; font-weight: 600; cursor: pointer; }
.oitem .rt { text-align: right; font-size: 12px; color: #666; }
.ocard .foot { border-top: 1px solid #f5f5f5; margin-top: 8px; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.ocard .foot .amt { font-size: 12px; color: #666; }
.ocard .foot .amt b { color: #222; font-size: 16px; margin-left: 2px; }
.mini-btn { border: 1px solid #ddd; background: #fff; border-radius: 15px; padding: 5px 13px; font-size: 12px; color: #444; margin-left: 7px; cursor: pointer; }
.mini-btn.pri { border-color: var(--green); color: var(--green-d); font-weight: 600; }

/* ---------- 我的 ---------- */
.mine-head { background: linear-gradient(160deg, #5f97d6, #2f70bb); padding: 16px 16px 22px; color: #fff; position: relative; }
.mine-user { display: flex; align-items: center; gap: 12px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.32); display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; border: 2px solid rgba(255,255,255,.5); overflow: hidden; }
.mine-user .nm { font-size: 17px; font-weight: 700; }
.mine-user .gr { display: inline-block; font-size: 10.5px; background: #fdf0cf; color: #a4741a; padding: 1px 8px; border-radius: 9px; margin-top: 5px; }
.mine-head .qricon { margin-left: auto; text-align: center; font-size: 10px; }
.login-bar { margin: 10px 12px 0; background: #fff; border-radius: 11px; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #777; }
.login-bar button { background: linear-gradient(135deg,#5798dc,#2a6cae); color: #fff; border: 0; border-radius: 4px; padding: 7px 16px; font-size: 12.5px; cursor: pointer; }
.stats { display: flex; background: #fff; margin: 10px 12px 0; border-radius: 11px; padding: 14px 0; }
.stats .s { flex: 1; text-align: center; position: relative; }
.stats .s + .s::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: .5px; background: #f0f0f0; }
.stats .s b { font-size: 16px; font-weight: 700; }
.stats .s span { display: block; font-size: 11px; color: #8d8d8d; margin-top: 3px; }
.policy { margin: 10px 12px 0; border-radius: 11px; overflow: hidden; position: relative; height: 96px; background: linear-gradient(100deg, #dde6f1, #b9d1ec); padding: 16px; cursor: pointer; }
.policy .en { font-size: 9.5px; letter-spacing: 2px; color: #4f79a8; }
.policy h3 { margin: 3px 0 8px; font-size: 21px; color: #14539b; letter-spacing: 1px; }
.policy .pill { display: inline-block; background: #14539b; color: #fff; font-size: 10.5px; padding: 2px 10px; border-radius: 10px; }
.policy .deco { position: absolute; right: 18px; top: 16px; width: 66px; height: 66px; border-radius: 16px; background: linear-gradient(140deg, #ebf3fc, #9fbde0); transform: rotate(28deg); box-shadow: inset 0 0 0 4px rgba(255,255,255,.5); }
.order-block { background: #fff; margin: 10px 12px 0; border-radius: 11px; padding: 14px 10px 6px; }
.order-block .hd { display: flex; justify-content: space-between; padding: 0 4px 10px; font-size: 13.5px; font-weight: 600; }
.order-block .hd span { font-size: 11.5px; color: #9a9a9a; font-weight: 400; }
.ostat { display: flex; }
.ostat .o { flex: 1; text-align: center; font-size: 11.5px; color: #4a4a4a; padding: 4px 0 10px; cursor: pointer; position: relative; }
.ostat .o svg { display: block; margin: 0 auto 6px; width: 24px; height: 24px; }
.ostat .o .n { position: absolute; top: -4px; right: 50%; margin-right: -22px; background: var(--red); color: #fff; font-size: 9px; min-width: 15px; height: 15px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.fn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 0; padding: 8px 0 12px; }
.fn-grid .f { text-align: center; font-size: 11.5px; color: #4a4a4a; cursor: pointer; }
.fn-grid .f svg { display: block; margin: 0 auto 6px; width: 24px; height: 24px; }
.advisor { display: flex; align-items: center; gap: 10px; background: #fff; margin: 10px 12px 0; border-radius: 11px; padding: 13px; }
.advisor .av { width: 38px; height: 38px; border-radius: 50%; background: var(--green-l); color: var(--green-d); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---------- 弹窗 ---------- */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 26px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(.92) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 340px; padding: 26px 22px 22px; position: relative; animation: pop .25s cubic-bezier(.2,.8,.3,1); }
.modal .x { position: absolute; right: 14px; top: 12px; color: #bbb; font-size: 20px; cursor: pointer; line-height: 1; }
.modal h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: 1px; }
.modal .lead { font-size: 13px; color: #8a8a8a; line-height: 1.6; margin: 0 0 18px; }
.cplist { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.cp { display: flex; align-items: center; gap: 10px; background: #f7f7f7; border-radius: 8px; padding: 10px 12px; position: relative; }
.cp .ic { width: 34px; height: 34px; border-radius: 7px; background: #fff; display: flex; align-items: center; justify-content: center; color: #444; }
.cp .tx b { font-size: 14px; display: block; }
.cp .tx span { font-size: 11px; color: #9f9f9f; }
.cp .tag { position: absolute; right: 0; top: 0; background: #f7e2b0; color: #8a6a18; font-size: 9px; padding: 1px 6px; border-radius: 0 8px 0 8px; }
.modal .claim { width: 100%; background: #2b2b2b; color: #fff; border: 0; border-radius: 24px; padding: 14px; font-size: 15px; font-weight: 600; cursor: pointer; }

.panel { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 430px; background: #fff; border-radius: 16px 16px 0 0; z-index: 95; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .26s cubic-bezier(.2,.8,.3,1); }
@keyframes up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.panel h3 { margin: 0 0 4px; font-size: 16px; }

.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(20,20,20,.86);
  color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 13px; z-index: 200; max-width: 280px; text-align: center;
  animation: fade .18s; pointer-events: none;
}
.toast.top { top: 76px; transform: translateX(-50%); }

/* ---------- 会员/邀请页 ---------- */
.join-hero { background: linear-gradient(160deg, #4f8bd0, #2365b1); padding: 26px 18px 30px; color: #fff; }
.join-hero .brand { font-size: 11px; letter-spacing: 3px; opacity: .9; }
.join-hero h1 { margin: 8px 0 6px; font-size: 22px; }
.join-hero .inv { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.16); border: .5px solid rgba(255,255,255,.35); border-radius: 12px; padding: 11px 12px; margin-top: 16px; }
.join-hero .inv .av { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--green-d); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.join-hero .inv .t b { font-size: 13.5px; display: block; }
.join-hero .inv .t span { font-size: 11px; opacity: .85; }
.benefits { display: flex; justify-content: space-between; margin: 12px 12px 0; background: #fff; border-radius: 12px; padding: 14px 6px; }
.benefits .b { flex: 1; text-align: center; font-size: 11px; color: #666; }
.benefits .b b { display: block; font-size: 17px; color: var(--green-d); margin-bottom: 2px; }
.form-card { background: #fff; border-radius: 12px; margin: 12px; padding: 4px 14px; }

/* ---------- 成功页 ---------- */
.success { text-align: center; padding: 40px 22px 0; }
.success .ok { width: 62px; height: 62px; border-radius: 50%; background: var(--green-l); color: var(--green-d); font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.success h2 { margin: 0 0 6px; font-size: 19px; }
.success p { margin: 0; font-size: 12.5px; color: #8f8f8f; }
.push-card { margin: 22px 12px 0; background: #fff; border-radius: 12px; padding: 13px; text-align: left; box-shadow: var(--shadow); }
.push-card .ph { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #999; }
.push-card .ph .ic { width: 18px; height: 18px; border-radius: 4px; background: var(--green); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.push-card .bd { font-size: 12.5px; margin-top: 7px; line-height: 1.7; }
.push-card .bd b { color: #111; }

/* ---------- 后台入口浮标 ---------- */
.admin-fab {
  position: fixed; right: 12px; bottom: 74px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(30,30,30,.82); color: #fff; font-size: 10px; display: flex; align-items: center;
  justify-content: center; z-index: 45; text-align: center; line-height: 1.15; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

/* 学校必选 */
.pd-group .lb .req, .card h4 .req { font-style: normal; font-size: 10px; color: #fff; background: #e4483d; border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; font-weight: 600; }
.pd-group .lb .opt-tag, .card h4 .opt-tag { font-style: normal; font-size: 10px; color: #6b7a89; background: #eef2f6; border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; font-weight: 600; }
.schools { display: flex; flex-wrap: wrap; gap: 8px; }
.school {
  padding: 8px 12px; border-radius: 8px; border: 1px solid #e6e6e6; background: #fafafa;
  font-size: 12.5px; color: #444; line-height: 1.2; cursor: pointer; flex: 0 1 auto;
}
.school.on { border-color: var(--green); background: var(--green-l); color: var(--green-d); font-weight: 600; box-shadow: 0 0 0 1px var(--green) inset; }
.hint { font-size: 11px; color: #9a9a9a; line-height: 1.6; }
.desc-img { width: 100%; border-radius: 9px; margin-top: 9px; display: block; background: #f5f5f5; }

/* 业务员中心 */
.sales-head { background: linear-gradient(160deg, #5798dc, #2a6cae); color: #fff; padding: 14px 14px 18px; }
.sales-head .who { display: flex; align-items: center; gap: 10px; }
.sales-head .who .av { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); color: #2a6cae; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.sales-head .who .nm { font-size: 16px; font-weight: 700; }
.sales-head .who .sub { font-size: 11.5px; opacity: .9; margin-top: 3px; }
.sales-head .kpis { display: flex; gap: 8px; margin-top: 14px; }
.sales-head .kpis .k { flex: 1; background: rgba(255,255,255,.16); border-radius: 9px; padding: 9px 10px; }
.sales-head .kpis .k b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.sales-head .kpis .k span { font-size: 10.5px; opacity: .88; }
.sale-mem { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #f5f5f5; }
.sale-mem:last-child { border-bottom: 0; }
.sale-mem .av { width: 30px; height: 30px; border-radius: 50%; background: #edf4fc; color: #2a6cae; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.sale-mem .nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sale-mem .nm .muted { font-weight: 400; font-size: 11px; }
.sale-mem .sub { font-size: 11px; color: #9a9a9a; margin-top: 2px; }
.sale-mem .rt { text-align: right; flex: none; }
.sale-mem .rt b { font-size: 13px; color: #e4483d; }
.sale-mem .rt span { display: block; font-size: 10.5px; color: #aaa; }
.sale-ord { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #f5f5f5; }
.sale-ord:last-child { border-bottom: 0; }
.sale-ord .nm { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sale-ord .sub { font-size: 10.5px; color: #9a9a9a; margin-top: 2px; }
.sale-ord .rt { text-align: right; flex: none; }
.sale-ord .rt b { font-size: 13px; color: #e4483d; }
.sale-ord .rt .st { display: block; font-size: 10.5px; color: #888; margin-top: 2px; }

/* 门店自提码 */
.pickup-card {
  margin: 10px 12px 0; background: #fff; border-radius: 14px; border: 1px dashed #b9d3ee;
  padding: 14px 16px 15px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.pickup-card .pk-hd { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #5b6a7d; font-weight: 600; }
.pickup-card .pk-badge { background: #eaf3ff; color: #2a6cae; border-radius: 20px; padding: 2px 9px; font-size: 10.5px; font-weight: 500; }
.pickup-card .pk-code {
  font-family: Consolas, monospace; font-size: 34px; font-weight: 800; letter-spacing: 4px;
  color: #1f4f86; margin: 8px 0 4px;
}
.pickup-card .pk-qr { width: 128px; margin: 4px auto 6px; }
.pickup-card .pk-qr svg { width: 128px; height: 128px; display: block; }
.pickup-card .pk-tip { font-size: 11.5px; color: #8c9aab; line-height: 1.6; }
.pickup-card .pk-meta { margin-top: 9px; padding-top: 8px; border-top: 1px dashed #e3ecf6; font-size: 11px; color: #a3b0c0; }
.pickup-card.used { border-color: #e4e8ec; background: #fafbfc; }
.pickup-card.used .pk-code { color: #9aa6b4; text-decoration: line-through; }
.pickup-card.used .pk-qr { opacity: .35; }

/* ============ 微信授权弹窗（手机号 / 头像昵称）仿真 ============ */
.wxauth {
  position: fixed; inset: 0; z-index: 1200; background: #ededed;
  display: flex; flex-direction: column; padding: 22px 20px 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  animation: wxFade .2s ease;
}
@keyframes wxFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wxauth .wx-grow { flex: 1 1 auto; min-height: 26px; }
.wxauth .wx-app { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; }
.wxauth .wx-logo {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #6fa8e0, #2a6cae); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
}
.wxauth .wx-app b { font-size: 15.5px; font-weight: 600; color: #1a1a1a; }
.wxauth .wx-i {
  margin-left: auto; width: 21px; height: 21px; border-radius: 50%;
  border: 1.2px solid #c6c6c6; color: #b3b3b3; font-size: 11px; font-style: normal;
  display: flex; align-items: center; justify-content: center;
}
.wxauth h2 { font-size: 21px; line-height: 1.36; font-weight: 700; color: #111; margin: 0 0 12px; letter-spacing: -.2px; }
.wxauth .wx-desc { font-size: 14.5px; line-height: 1.64; color: #7d7d7d; margin: 0 0 26px; }
.wxcard {
  display: block; width: 100%; border: 0; background: #fff; border-radius: 12px;
  padding: 17px 16px 18px; margin-bottom: 12px; text-align: center;
  font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.wxcard b { display: block; font-size: 19px; font-weight: 600; color: #111; letter-spacing: .6px; }
.wxcard span { display: block; font-size: 12.5px; color: #9d9d9d; margin-top: 5px; }
.wxcard.deny { font-size: 17px; color: #111; padding: 17px 16px; }
.wxcard:active { background: #f4f4f4; }
.wx-other { text-align: center; color: #576b95; font-size: 14.5px; padding: 18px 0 34px; cursor: pointer; }
.wx-other:active { opacity: .6; }
.wxc-input {
  width: 100%; height: 58px; border-radius: 12px; border: 1.5px solid #dedede;
  background: #fff; text-align: center; font-size: 26px; font-weight: 700;
  letter-spacing: 9px; color: #111; outline: none; font-family: inherit; box-sizing: border-box;
}
.wxc-input:focus { border-color: #5798dc; box-shadow: 0 0 0 3px rgba(87,152,220,.13); }
.wxc-input::placeholder { font-size: 14px; font-weight: 400; letter-spacing: 0; color: #b5b5b5; }
.wxc-input.phone { font-size: 21px; letter-spacing: 2px; }
.wxc-input.phone::placeholder { font-size: 14px; letter-spacing: 0; }
.wx-demo {
  min-height: 20px; margin-top: 10px; text-align: center;
  font-size: 12.5px; color: #8a93a0;
}
.wx-demo b { color: #2a6cae; font-family: Consolas, monospace; letter-spacing: 1px; }
.wx-actions { display: flex; gap: 10px; margin-top: 12px; }
.wx-btn {
  flex: 1; height: 47px; border-radius: 10px; border: 0; font-size: 15.5px;
  font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.wx-btn.pri { background: #07c160; color: #fff; font-weight: 600; }
.wx-btn.pri:active { background: #06ad56; }
.wx-btn.gray { background: #fff; color: #333; }
.wx-btn.gray:disabled { color: #b0b0b0; }

/* 头像昵称授权 */
.wxmask {
  position: fixed; inset: 0; z-index: 1300; background: rgba(0,0,0,.42);
  display: flex; align-items: flex-end; justify-content: center;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.wxsheet {
  width: 100%; max-width: 480px; background: #fff; border-radius: 14px 14px 0 0;
  padding: 20px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  animation: wxSheetUp .26s cubic-bezier(.22,.8,.3,1);
}
@keyframes wxSheetUp { from { transform: translateY(100%); } to { transform: none; } }
.wxs-hd { display: flex; align-items: center; gap: 8px; }
.wxs-logo {
  width: 24px; height: 24px; border-radius: 6px; background: #07c160; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.wxs-hd b { font-size: 15.5px; font-weight: 600; color: #111; }
.wxs-t { font-size: 17.5px; font-weight: 700; color: #111; margin: 16px 0 4px; }
.wxs-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid #efefef; }
.wxs-row > span:first-child { width: 48px; flex: none; font-size: 15px; color: #111; }
.wxs-av {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #8fbcf0, #5798dc); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600;
}
.wxs-nick { font-size: 15px; font-weight: 400; color: #111; }
.wxs-arrow { margin-left: auto; color: #cfcfcf; font-size: 19px; font-style: normal; }
.wxs-rand { color: #576b95; font-size: 14px; padding: 15px 0 4px; cursor: pointer; }
.wxs-btns { display: flex; gap: 14px; margin-top: 16px; }
.wxs-btn {
  flex: 1; height: 46px; border-radius: 8px; border: 0; font-size: 16px;
  font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.wxs-btn.no { background: #ededed; color: #1a1a1a; }
.wxs-btn.ok { background: #07c160; color: #fff; }
.wxs-btn:active { opacity: .85; }
