/* 东营送水网 · 订货客户端 —— 版式参考吉客道订货端（移动优先） */
:root {
  --brand: #ff7a33;
  --brand-d: #e8630f;
  --brand-l: #fff1e8;
  --price: #ff4d2e;
  --ink: #16202e;
  --ink-2: #4a586c;
  --ink-3: #8c99aa;
  --line: #edf1f6;
  --bg: #fff6f1;
  --card: #fff;
  --ok: #17a06a;
  --warn: #e8630f;
  --r: 12px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; background: #dfe6ee; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16.5px; line-height: 1.5;
  display: flex; justify-content: center; align-items: stretch;
}
/* 手机外框（PC 预览用，手机上自动铺满） */
#app {
  width: 100%; max-width: 430px; background: var(--bg);
  min-height: 100vh; position: relative; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 18px 50px rgba(20,32,48,.18);
}
@media (min-width: 520px) { #app { min-height: 100vh; } }

/* ---------- 顶栏 ---------- */
.topbar { background: #fff; padding: 10px 14px 0; position: sticky; top: 0; z-index: 20; }
.topbar .row1 { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.logo {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 34px;
  background: linear-gradient(145deg, #ffa45c, var(--brand-d));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18.5px;
  box-shadow: 0 4px 10px rgba(26,140,255,.3);
}
.store { flex: 1 1 auto; min-width: 0; }
.store b { font-size: 17.5px; display: block; letter-spacing: .2px; }
.store span { font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.store .chev { font-size: 12px; color: var(--ink-3); }
.mini-btns { display: flex; gap: 8px; }
.mini-btns button {
  border: none; background: var(--brand-l); color: var(--brand-d);
  font-size: 14.5px; padding: 6px 9px; border-radius: 9px; font-weight: 600;
}
.notice {
  display: flex; align-items: center; gap: 6px; background: #fff9ec; color: #8a6216;
  font-size: 14.5px; padding: 6px 9px; border-radius: 8px; margin-bottom: 10px;
}
.notice .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--warn); }
.search {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px;
  background: var(--bg); border-radius: 10px; margin-bottom: 10px;
  color: var(--ink-3); font-size: 15px;
}
.search .sbtn { border: none; background: none; color: var(--brand-d); font-size: 14.5px; font-weight: 600; font-family: inherit; padding: 0 2px; }
.search input {
  border: none; background: transparent; outline: none; flex: 1; font-size: 15.5px; color: var(--ink);
}
.search input::placeholder { color: var(--ink-3); }
.cats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  padding: 4px 0 10px; border-bottom: 1px solid var(--line);
}
.cat { border: none; background: none; padding: 6px 0 2px; cursor: pointer; font-family: inherit; }
.cat .ic {
  width: 40px; height: 40px; margin: 0 auto 5px; border-radius: 13px;
  display: grid; place-items: center; font-size: 20.5px;
}
.cat b { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.cat:nth-child(1) .ic { background: #fff1e8; }
.cat:nth-child(2) .ic { background: #fff7e6; }
.cat:nth-child(3) .ic { background: #ffe9d6; }
.cat:nth-child(4) .ic { background: #ffeef2; }
.cat:nth-child(5) .ic { background: #eef4fd; }

/* ---------- 内容区 ---------- */
.body { flex: 1 1 auto; overflow-y: auto; padding: 12px 12px 84px; }
.body::-webkit-scrollbar { width: 0; }
.page-h { display: flex; align-items: center; gap: 8px; padding: 2px 2px 12px; }
.page-h h2 { font-size: 17.5px; margin: 0; }
.page-h .back {
  height: 28px; padding: 0 11px 0 8px; border-radius: 14px; border: none; background: #fff;
  color: var(--brand-d); font-size: 15px; font-weight: 600; line-height: 1;
  font-family: inherit; display: inline-flex; align-items: center; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(20,32,48,.10);
}
.page-h .back:active { background: var(--brand-l); }
.page-h .spacer { flex: 1; }

.hero {
  background: linear-gradient(135deg, #ff944d, #e8630f);
  border-radius: 16px; padding: 16px; color: #fff; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; overflow: hidden;
}
.hero h3 { margin: 0 0 4px; font-size: 18.5px; }
.hero p { margin: 0; font-size: 14.5px; opacity: .85; }
.hero .art { font-size: 40px; opacity: .9; }

.sec-h { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 9px; }
.sec-h h2 { font-size: 17px; margin: 0; }
.sec-h h2 em { font-style: normal; font-size: 13.5px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.sec-h button {
  border: none; background: none; color: var(--brand-d); font-size: 14.5px; font-family: inherit; padding: 2px 0;
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.card {
  background: var(--card); border-radius: 14px; padding: 9px 9px 8px;
  box-shadow: 0 1px 2px rgba(20,32,48,.04), 0 6px 16px rgba(20,32,48,.05);
  display: flex; flex-direction: column; position: relative; cursor: pointer;
}
.card:active { transform: scale(.985); }
.tag {
  position: absolute; top: 7px; left: 7px; font-size: 12px; padding: 2px 5px; border-radius: 5px;
  background: #fdecec; color: #cf3b5a; font-weight: 600; z-index: 2;
}
.tag.hot { background: #fff1e5; color: #d4740f; }
.thumb { height: 74px; display: grid; place-items: center; margin-bottom: 4px; }
.name {
  font-size: 15px; font-weight: 600; line-height: 1.32; min-height: 33px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.spec { font-size: 13.5px; color: var(--ink-3); margin: 2px 0 6px; min-height: 15px; }
.buy { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.price { font-size: 18.5px; font-weight: 700; color: var(--price); letter-spacing: -.3px; }
.price small { font-size: 13.5px; font-weight: 600; }
.price i { font-size: 13.5px; color: var(--ink-3); font-weight: 400; font-style: normal; margin-left: 1px; }
.add {
  width: 25px; height: 25px; border-radius: 50%; border: none; background: linear-gradient(145deg, #ffa45c, var(--brand-d));
  color: #fff; font-size: 18.5px; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(26,140,255,.32); cursor: pointer; flex: 0 0 25px;
}
.add.has { background: #f0f4f9; color: var(--brand-d); box-shadow: none; }

.allcard {
  grid-column: 1 / -1; background: #fff; border: 1px dashed #c6d5e6; border-radius: 14px;
  padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.allcard b { font-size: 15.5px; }
.allcard p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-3); }
.allcard .go { font-size: 14.5px; color: var(--brand-d); font-weight: 600; }

/* 分类页：左系列 + 右商品 */
.catwrap { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.serlist { background: #fff; border-radius: 12px; padding: 6px; height: fit-content; position: sticky; top: 0; }
.serlist button {
  width: 100%; border: none; background: none; text-align: left; font-family: inherit;
  font-size: 14.5px; color: var(--ink-2); padding: 9px 8px; border-radius: 8px; display: flex;
  justify-content: space-between; gap: 4px;
}
.serlist button.on { background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
.serlist button span { color: var(--ink-3); font-size: 13px; }
.plist { display: flex; flex-direction: column; gap: 8px; }
.prow {
  background: #fff; border-radius: 14px; padding: 11px; display: flex; gap: 12px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(20,32,48,.04);
}
.prow .thumb { width: 74px; height: 74px; margin: 0; flex: 0 0 74px; border-radius: 10px; }
.prow .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prow .nm { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.prow .sp { font-size: 14.5px; color: var(--ink-3); margin: 3px 0 auto; }
.prow .bt { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 5px; }

/* 商品详情 */
.detail { background: #fff; border-radius: 16px; overflow: hidden; }
.detail .pic { height: 210px; display: grid; place-items: center; background: linear-gradient(160deg,#f2f8ff,#eaf1fa); }
/* 商品卡主图：叠加在默认插图之上，img 加载失败自动露出插图兜底 */
.thumb-w { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.thumb-w .thumb-a { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
/* 详情页图片：轮播图横滑 / 主图 / 详情长图 */
.detail .pic .pimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail .pic .pcarousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; height: 100%; }
.detail .pic .pcarousel::-webkit-scrollbar { display: none; }
.detail .pic .pcarousel .pimg { flex: 0 0 100%; width: 100%; scroll-snap-align: center; border-radius: 0; }
.pdetail { margin: 12px 0 4px; border-radius: 12px; overflow: hidden; background: #fff; }
.pdetail img { width: 100%; height: auto; display: block; }
.detail .info { padding: 14px; }
.detail h2 { margin: 0 0 6px; font-size: 19.5px; line-height: 1.35; }
.detail .pr { font-size: 26px; font-weight: 700; color: var(--price); letter-spacing: -.5px; }
.detail .pr i { font-size: 14.5px; color: var(--ink-3); font-weight: 400; font-style: normal; }
.detail .rows { margin-top: 12px; border-top: 1px solid var(--line); }
.detail .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.detail .row span { color: var(--ink-3); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  font-size: 18.5px; line-height: 1; color: var(--ink-2);
}
.stepper b { min-width: 22px; text-align: center; font-size: 17.5px; }
.hint { background: #fff9ec; color: #8a6216; font-size: 14.5px; padding: 10px 12px; border-radius: 10px; margin-top: 12px; line-height: 1.6; }

/* 购物车 */
.cart-item { background: #fff; border-radius: 12px; padding: 10px; display: flex; gap: 10px; margin-bottom: 8px; }
.cart-item .thumb { width: 54px; height: 54px; flex: 0 0 54px; margin: 0; }
.cart-item .nm { font-size: 15px; font-weight: 600; line-height: 1.3; }
.cart-item .sp { font-size: 13.5px; color: var(--ink-3); }
.empty { text-align: center; padding: 60px 0; color: var(--ink-3); font-size: 15.5px; }
.empty .big { font-size: 42px; display: block; margin-bottom: 10px; opacity: .5; }
.bar {
  position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; background: #fff; border-radius: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px; box-shadow: 0 -4px 18px rgba(20,32,48,.09);
  z-index: 25;
}
.bar .sum { flex: 1; font-size: 14.5px; color: var(--ink-3); }
.bar .sum b { display: block; font-size: 20px; color: var(--price); letter-spacing: -.4px; }
.btn-primary {
  border: none; background: linear-gradient(145deg, #ffa45c, var(--brand-d)); color: #fff;
  font-family: inherit; font-size: 16.5px; font-weight: 600; padding: 12px 22px; border-radius: 24px;
  box-shadow: 0 6px 16px rgba(26,140,255,.32);
}
.btn-primary:disabled { background: #c9d4e0; box-shadow: none; }
.btn-ghost {
  border: 1px solid var(--brand); background: #fff; color: var(--brand-d);
  font-family: inherit; font-size: 15.5px; font-weight: 600; padding: 11px 18px; border-radius: 22px;
}

/* 结算 */
.form { background: #fff; border-radius: 14px; padding: 4px 14px; margin-bottom: 10px; }
.frow { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: none; }
.frow label { font-size: 15px; color: var(--ink-3); flex: 0 0 62px; }
.frow input, .frow textarea, .frow select {
  flex: 1; border: none; outline: none; font-family: inherit; font-size: 15.5px; color: var(--ink);
  background: transparent; resize: none;
}
.frow .val { flex: 1; font-size: 15.5px; }
.frow .val.small { font-size: 14.5px; color: var(--ink-2); }
.pay { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.pay .radio { width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--brand); }
.total-line { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; color: var(--ink-2); }
.total-line.big { font-size: 17.5px; color: var(--ink); font-weight: 600; }

/* 订单 */
.order { background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.order .oh { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink-3); margin-bottom: 8px; }
.order .oh b { color: var(--ok); }
.order .oi { display: flex; justify-content: space-between; font-size: 15px; padding: 3px 0; }
.order .of { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-size: 14.5px; color: var(--ink-3); }
.order .of b { color: var(--price); font-size: 17.5px; }

/* tabbar */
.tabbar {
  position: fixed; bottom: 0; width: 100%; max-width: 430px; height: 60px;
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; z-index: 30;
  padding-bottom: 4px;
}
.tabbar button { border: none; background: none; font-family: inherit; color: var(--ink-3); font-size: 12px; }
.tabbar button i { display: block; font-size: 20px; font-style: normal; margin-bottom: 1px; }
.tabbar button.on { color: var(--brand-d); font-weight: 600; }
.tabbar .badge { position: relative; }
.tabbar .badge em {
  position: absolute; top: -4px; right: 50%; transform: translateX(16px);
  background: var(--price); color: #fff; font-style: normal; font-size: 12.5px; font-weight: 700;
  border-radius: 8px; padding: 0 4px; line-height: 15px; min-width: 15px;
}

/* toast */
#toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(10px);
  background: rgba(22,32,46,.92); color: #fff; font-size: 15px; padding: 9px 16px;
  border-radius: 20px; opacity: 0; transition: .22s; pointer-events: none; z-index: 60; white-space: nowrap;
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================
   吉客道布局方案（首页：轮播 → 金刚区 → 精选宫格 → 全部商品）
   ========================================================= */

/* 促销条 */
/* 停送公告条（节假日 / 门店年休） */
.restbar{display:flex;align-items:center;gap:8px;margin:0 4px 8px;padding:9px 12px;
  background:linear-gradient(90deg,#fff1e8,#fff6f1);border:1px solid #ffd9c2;border-radius:12px;
  color:#8a4b1f;font-size:12.5px;line-height:1.45}
.restbar .rb-ico{flex:0 0 auto;font-size:16px;line-height:1}
.restbar .rb-txt{flex:1;min-width:0}
.restbar b{color:#e8630f;margin-right:4px;font-weight:700}
.promo {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  background: linear-gradient(135deg, #ff7a33, #e8630f); color: #fff;
  border-radius: 14px; padding: 10px 14px; font-size: 15px;
  box-shadow: 0 6px 16px rgba(232,99,15,.22); overflow: hidden;
}
.promo .ptag {
  background: rgba(255,255,255,.24); border-radius: 8px; padding: 2px 8px;
  font-size: 14px; font-weight: 700; flex: 0 0 auto; letter-spacing: .3px;
}
.promo .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .96; }
.promo .go { flex: 0 0 auto; font-weight: 700; font-size: 14.5px; }

/* 轮播 banner */
.banner { position: relative; margin: 0 0 12px; }
.slides {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start; border-radius: 16px;
  min-height: 108px; padding: 16px 16px; color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 8px 22px rgba(20,60,120,.14);
}
.slide.s1 { background: linear-gradient(135deg, #ff944d, #e8630f); }
.slide.s2 { background: linear-gradient(135deg, #ffc04d, #e89a0f); }
.slide.s3 { background: linear-gradient(135deg, #ff6a3c, #d83a1f); }
.slide h3 { margin: 0 0 5px; font-size: 19.5px; letter-spacing: .2px; }
.slide p { margin: 0; font-size: 14.5px; opacity: .9; line-height: 1.5; }
.slide .big {
  position: absolute; right: 8px; bottom: -6px; font-size: 60px; opacity: .18; line-height: 1;
}
.slide .pill {
  align-self: flex-start; margin-top: 9px; font-size: 13.5px; font-weight: 600;
  background: rgba(255,255,255,.22); border-radius: 20px; padding: 3px 9px;
}
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 7px; }
.dots i {
  width: 5px; height: 5px; border-radius: 3px; background: #c8d4e2; transition: .2s;
}
.dots i.on { width: 14px; background: var(--brand); }

/* 金刚区（宫格） */
.kk {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px;
  background: #fff; border-radius: 16px; padding: 16px 10px 12px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(20,32,48,.04);
}
.kk button { border: none; background: none; font-family: inherit; padding: 0; cursor: pointer; }
.kk .ic {
  width: 54px; height: 54px; margin: 0 auto 7px; border-radius: 18px;
  display: grid; place-items: center; font-size: 27px;
  box-shadow: inset 0 -2px 5px rgba(20,32,48,.06), 0 3px 8px rgba(20,32,48,.07);
  transition: transform .15s ease;
}
.kk .ic img {
  width: 76%; height: 76%; object-fit: cover; border-radius: 12px; display: block;
}
.kk button:active .ic { transform: scale(.93); }
.kk b {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink);
  text-align: center; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 3 列宫格 */
.grid.g3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.g3 .card { padding: 10px 10px 9px; border-radius: 14px; }
.g3 .thumb { height: 122px; margin-bottom: 7px; }
.g3 .thumb svg { transform: scale(1); }
.g3 .name { font-size: 16px; min-height: 42px; line-height: 1.32; }
.g3 .spec { font-size: 14px; margin: 2px 0 7px; min-height: 17px; }
.g3 .buy { gap: 2px; }
.g3 .price { font-size: 21px; letter-spacing: -.4px; }
.g3 .price small { font-size: 15.5px; }
.g3 .price i { display: none; }
.g3 .add { width: 31px; height: 31px; flex: 0 0 31px; font-size: 20px; }
.g3 .tag { font-size: 12.5px; padding: 2px 6px; top: 7px; left: 7px; }

/* 服务承诺 */
.promise {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  background: #fff; border-radius: 14px; padding: 13px 6px; margin: 2px 0 6px;
}
.promise div { text-align: center; }
.promise i { display: block; font-style: normal; font-size: 18.5px; margin-bottom: 3px; }
.promise b { font-size: 13.5px; font-weight: 500; color: var(--ink-2); display: block; }
.promise span { font-size: 12.5px; color: var(--ink-3); }

/* 横向滑动小卡（猜你要 / 同类推荐） */
.sec-h .more { border: none; background: none; color: var(--brand-d); font-size: 14.5px; font-family: inherit; }
.hscroll { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: 14px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hcard {
  flex: 0 0 96px; background: #fff; border-radius: 12px; padding: 8px 7px;
  box-shadow: 0 1px 2px rgba(20,32,48,.04); cursor: pointer;
}
.hcard .thumb { height: 54px; display: grid; place-items: center; }
.hcard .thumb svg { transform: scale(.78); }
.hcard .nm { font-size: 14px; font-weight: 600; line-height: 1.3; height: 29px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hcard .pr { font-size: 15.5px; font-weight: 700; color: var(--price); margin-top: 3px; }
.hcard .pr small { font-size: 12.5px; }

/* 我的：吉客道式宫格入口 */
.mine-top {
  background: linear-gradient(135deg, #ff944d, #e8630f); border-radius: 16px;
  padding: 16px; color: #fff; display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.mine-top .av {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.24);
  display: grid; place-items: center; font-size: 22px; flex: 0 0 46px;
}
.mine-top b { font-size: 17.5px; display: block; }
.mine-top span { font-size: 14.5px; opacity: .85; }
.mine-stat { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 14px; padding: 14px 0; margin-bottom: 10px; }
.mine-stat button { border: none; background: none; font-family: inherit; }
.mine-stat b { display: block; font-size: 19.5px; color: var(--ink); }
.mine-stat span { font-size: 13.5px; color: var(--ink-3); }
.mine-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 14px; padding: 14px 4px 10px; margin-bottom: 10px; }
.mine-grid button { border: none; background: none; font-family: inherit; }
.mine-grid i { display: block; font-style: normal; font-size: 20px; margin-bottom: 4px; }
.mine-grid b { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.frow.tap { cursor: pointer; }
.frow .arw { color: var(--ink-3); font-size: 16.5px; }

/* ---------- 线上版补充 ---------- */
.loading { text-align: center; color: var(--ink-3); font-size: 15.5px; padding: 60px 0; }

/* ================= 骨架屏（首屏数据未到时的占位结构） ================= */
.skel { display: block; }
.sk {
  position: relative; overflow: hidden; display: block;
  background: #e9eef5; border-radius: 8px;
}
.sk::after {
  content: ''; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.72) 50%, rgba(255,255,255,0) 100%);
  animation: sk-shine 1.25s ease-in-out infinite;
}
@keyframes sk-shine { 100% { transform: translateX(100%); } }

.sk-banner { height: 118px; border-radius: 12px; margin-bottom: 12px; }

.sk-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px;
  background: #fff; border-radius: 12px; padding: 14px 10px; margin-bottom: 12px;
}
.sk-cell { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.sk-cell i { width: 46px; height: 46px; border-radius: 14px; }
.sk-cell b { width: 46px; height: 10px; border-radius: 4px; }

.sk-hd { width: 96px; height: 13px; margin: 16px 2px 10px; border-radius: 5px; }

.sk-card {
  display: flex; gap: 11px; background: #fff; border-radius: 12px;
  padding: 12px; margin-bottom: 9px;
}
.sk-card > i { width: 74px; height: 74px; border-radius: 10px; flex: none; }
.sk-card > div { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.sk-card b { height: 12px; border-radius: 4px; }
.sk-card .sk-s2 { width: 62%; }
.sk-card .sk-s3 { width: 34%; height: 14px; }

.sheet-mask {
  position: fixed; inset: 0; background: rgba(10,20,30,.45); z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  background: #fff; width: 100%; max-width: 430px; border-radius: 18px 18px 0 0;
  padding: 16px 14px calc(18px + env(safe-area-inset-bottom));
  max-height: 86vh; max-height: 86dvh; display: flex; flex-direction: column;
  transition: transform .22s cubic-bezier(.22,.8,.28,1); will-change: transform;
}
.sheet.dragging { transition: none; }
.sheet-grip { flex: 0 0 auto; display: flex; justify-content: center; padding: 0 0 10px; margin-top: -6px; cursor: grab; }
.sheet-grip span { width: 42px; height: 4.5px; border-radius: 3px; background: #d5dbe4; display: block; }
.sheet h3, .sheet p.sub, .sheet .cancel { flex: 0 0 auto; }
.sheet .sheet-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; padding-right: 2px;
}
.sheet h3 { margin: 0 0 4px; font-size: 17.5px; }
.sheet p.sub { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-3); }
.sheet .opt {
  display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 12px;
  border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer;
}
.sheet .opt.on { border-color: var(--brand); background: var(--brand-l); }
.sheet .opt b { font-size: 16px; display: block; }
.sheet .opt span { font-size: 14px; color: var(--ink-3); }
.sheet .cancel { width: 100%; border: none; background: #f2f5f9; color: var(--ink-2); font-family: inherit; font-size: 16.5px; padding: 12px; border-radius: 12px; margin-top: 4px; }

.who {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px;
  padding: 13px 14px; margin-bottom: 10px;
}
.who .av { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-l); display: grid; place-items: center; font-size: 19.5px; flex: 0 0 36px; }
.who .t { flex: 1; min-width: 0; }
.who .t b { font-size: 16px; display: block; }
.who .t span { font-size: 14px; color: var(--ink-3); }
.who button { border: 1px solid var(--brand); background: #fff; color: var(--brand-d); font-family: inherit; font-size: 14.5px; font-weight: 600; padding: 7px 12px; border-radius: 18px; }
.who button.green { border-color: #07c160; color: #07c160; }

.stock-out { font-size: 13px; color: var(--ink-3); }
.pay-tabs { display: flex; gap: 8px; padding: 4px 0 8px; flex-wrap: wrap; }
.pay-tabs button {
  border: 1px solid var(--line); background: #fff; font-family: inherit; font-size: 14.5px;
  padding: 8px 12px; border-radius: 20px; color: var(--ink-2);
}
.pay-tabs button.on { border-color: var(--brand); background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
.tip { font-size: 14px; color: var(--ink-3); padding: 0 2px 10px; line-height: 1.6; }

/* 下单成功 */
.done { background: #fff; border-radius: 16px; padding: 30px 20px 22px; text-align: center; }
.done .ok {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 12px;
  background: #e8f7ef; color: #17a06a; display: grid; place-items: center; font-size: 28px;
}
.done h3 { margin: 0 0 10px; font-size: 19.5px; }
.done p { margin: 4px 0; font-size: 15.5px; color: var(--ink-2); }
.done p.muted { color: var(--ink-3); font-size: 14.5px; margin-top: 10px; line-height: 1.6; }
.done-btns { display: flex; gap: 10px; margin-top: 18px; }
.done-btns button { flex: 1; }
.mine-top .loginbtn {
  border: none; background: #fff; color: #0b6fd0; font-family: inherit; font-size: 15px;
  font-weight: 700; padding: 8px 14px; border-radius: 18px;
}

/* 备案号页脚 */
.icpbar {
  text-align: center; padding: 10px 0 14px; font-size: 14px; line-height: 1.6;
  color: var(--ink-3); opacity: .8;
}
.icpbar a { color: inherit; text-decoration: none; }
.icpbar span { margin-left: 6px; }
.icpbar span::before { content: "·"; margin-right: 6px; }

/* ============ 在线客服（小滴） ============ */
.cs-head {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--r);
  padding: 11px 13px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(20,32,48,.06);
}
.cs-head .cs-av {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px;
  background: linear-gradient(145deg, #ffa45c, var(--brand-d));
  display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 4px 10px rgba(232,99,15,.28);
}
.cs-head b { display: block; font-size: 16.5px; color: var(--ink); }
.cs-head span { font-size: 14.5px; color: var(--ink-3); }
.cs-head .cs-dot {
  font-size: 13.5px; color: var(--ok); background: #eaf7f0;
  padding: 3px 8px; border-radius: 9px; white-space: nowrap;
}
.cs-head .cs-dot::before {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ok); margin-right: 4px; vertical-align: middle;
}
.cs-wrap { padding: 2px 0 156px; }
.cs-msg { display: flex; margin-bottom: 10px; }
.cs-msg.cs-u { justify-content: flex-end; }
.cs-msg.cs-a { justify-content: flex-start; }
.cs-b {
  max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 16px;
  line-height: 1.62; word-break: break-word; white-space: normal;
}
.cs-msg.cs-u .cs-b {
  background: linear-gradient(145deg, #ffa45c, var(--brand)); color: #fff;
  border-bottom-right-radius: 4px; box-shadow: 0 3px 9px rgba(232,99,15,.22);
}
.cs-msg.cs-a .cs-b {
  background: #fff; color: var(--ink-2); border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(20,32,48,.08);
}
.cs-b .cs-sub {
  display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400;
  color: #b9a99c; letter-spacing: .2px;
}
.cs-typing { color: var(--ink-3); font-size: 15px; }
.cs-quick {
  position: fixed; bottom: 56px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; display: flex; gap: 7px; overflow-x: auto;
  padding: 7px 12px 8px; background: linear-gradient(to top, var(--bg) 70%, rgba(255,246,241,0));
  z-index: 26; scrollbar-width: none;
}
.cs-quick::-webkit-scrollbar { height: 0; }
.cs-quick button {
  flex: 0 0 auto; border: 1px solid #ffd9c0; background: #fff; color: var(--brand-d);
  font-size: 14.5px; font-family: inherit; padding: 6px 11px; border-radius: 14px;
  white-space: nowrap; line-height: 1.2;
}
.cs-quick button:active { background: var(--brand-l); }
.cs-input {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; display: flex; gap: 10px; align-items: center;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.98); border-top: 1px solid var(--line); z-index: 28;
}
.cs-input input {
  flex: 1; min-width: 0; height: 38px; border: 1px solid #e6ecf3; border-radius: 19px;
  padding: 0 15px; font-size: 16px; font-family: inherit; color: var(--ink);
  background: #f7f9fc; outline: none;
}
.cs-input input:focus { border-color: #ffc9a5; background: #fff; }
.cs-input button {
  flex: 0 0 62px; height: 38px; border: none; border-radius: 19px; font-family: inherit;
  font-size: 16px; font-weight: 600; color: #fff;
  background: linear-gradient(145deg, #ffa45c, var(--brand-d));
  box-shadow: 0 3px 9px rgba(232,99,15,.26);
}
.cs-input button:active { opacity: .88; }

/* ===== 悬浮客服球（可拖动） ===== */
#csFab {
  position: fixed; right: 12px; top: 56vh; z-index: 960;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  touch-action: none; user-select: none; -webkit-user-select: none;
  cursor: grab; filter: drop-shadow(0 4px 10px rgba(20,32,48,.2));
}
#csFab:active { cursor: grabbing; }
#csFab .csfab-ic {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(145deg, #ffa45c, var(--brand-d, #e8630f));
  color: #fff; font-size: 23px; line-height: 50px; text-align: center;
  box-shadow: 0 4px 14px rgba(232,99,15,.4);
}
#csFab .csfab-tx {
  background: rgba(17,24,39,.78); color: #fff;
  font-size: 13px; line-height: 1.4; text-align: center;
  padding: 3px 8px; border-radius: 9px; white-space: nowrap;
  pointer-events: none;
}

/* ===== 客服对话框（底部弹出） ===== */
#csDlg {
  position: fixed; inset: 0; z-index: 990;
  background: rgba(15,23,42,.45);
  align-items: flex-end; justify-content: center;
  animation: csfadeIn .18s ease;
}
@keyframes csfadeIn { from { opacity: 0; } to { opacity: 1; } }
#csDlg .csdlg {
  width: 100%; max-width: 520px; height: 62vh; height: 62dvh;
  background: var(--bg, #f6f7fb); border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column; overflow: hidden;
  animation: csdlgUp .22s ease;
}
@keyframes csdlgUp { from { transform: translateY(48px); opacity: .5; } to { transform: none; opacity: 1; } }
#csDlg .csdlg-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; color: #fff; flex-shrink: 0;
  background: linear-gradient(145deg, #ffa45c, var(--brand-d, #e8630f));
}
#csDlg .csdlg-hd b { font-size: 17.5px; display: block; }
#csDlg .csdlg-hd > div > span { font-size: 14px; opacity: .92; }
#csDlg .csdlg-hd .cs-av {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px;
  background: rgba(255,255,255,.24); display: grid; place-items: center; font-size: 20px;
}
#csDlg .csdlg-hd .cs-dot {
  font-size: 13.5px; color: #fff; background: rgba(255,255,255,.22);
  padding: 3px 8px; border-radius: 9px; white-space: nowrap; flex-shrink: 0;
}
#csDlg .csdlg-hd #csDlgX {
  background: rgba(255,255,255,.2); color: #fff; border: 0;
  width: 30px; height: 30px; border-radius: 50%; font-size: 16.5px;
  flex-shrink: 0; font-family: inherit;
}
#csDlg .csdlg-bd { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#csDlg .cs-wrap {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 10px 12px 6px;
}
#csDlg .cs-quick {
  position: static; transform: none; width: auto; max-width: none;
  background: transparent; z-index: auto; flex-shrink: 0;
  padding: 4px 12px 8px;
}
#csDlg .cs-input {
  position: static; transform: none; width: auto; max-width: none; z-index: auto;
  flex-shrink: 0; background: #fff;
  gap: 10px;
  padding: 12px 16px 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
#csDlg .cs-input input { height: 40px; }
#csDlg .cs-input button { height: 40px; flex: 0 0 66px; margin-left: 2px; }

/* 客服页 · 未绑定手机号提示条 */
.cs-bindtip{display:flex;align-items:center;gap:10px;background:#fff7e6;border:1px solid #ffd8a8;
  border-radius:12px;padding:10px 12px;margin:10px 12px 4px}
.cs-bindtip .cs-bt-t{flex:1;font-size: 15.5px;color:#8a5a1f;line-height:1.5}
.cs-bindtip .cs-bt-b{border:0;background:#ff7a33;color:#fff;font-size: 15.5px;font-weight:700;
  padding:7px 14px;border-radius:999px;white-space:nowrap}
.cs-bindtip .cs-bt-b:active{opacity:.85}

/* ===== 商品详情·分享（2026-11-03） ===== */
.page-h .share-btn {
  border: 1px solid #ffd9bf; background: var(--brand-l); color: var(--brand-d);
  font-size: 14.5px; font-weight: 600; line-height: 1;
  padding: 8px 13px; border-radius: 999px; font-family: inherit;
  display: inline-flex; align-items: center; gap: 3px;
  -webkit-tap-highlight-color: transparent;
}
.page-h .share-btn:active { background: #ffe3d0; }
.wxs-tip { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 1200; display: none; }
.wxs-tip.show { display: block; }
.wxs-box {
  position: absolute; top: 70px; right: 14px; left: 14px;
  background: #fff; border-radius: 16px; padding: 20px 18px 16px;
  text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}
.wxs-arrow { position: absolute; right: 24px; top: -36px; font-size: 32px; color: #fff; }
.wxs-h { font-size: 18.5px; font-weight: 700; color: #1f2937; }
.wxs-l { font-size: 15.5px; color: #6b7280; margin: 10px 0 16px; line-height: 2; }
.wxs-btns { display: flex; gap: 10px; }
.wxs-btns button {
  flex: 1; border: 0; border-radius: 10px; padding: 12px 0;
  font-size: 16px; font-family: inherit;
}
.wxs-copy { background: var(--brand); color: #fff; font-weight: 600; }
.wxs-close { background: #f1f4f9; color: #4b5563; }

/* ============================================================
   字号放大（2026-11-03）—— 客户反馈客户端字偏小，统一上调 1~2px
   只改字号/行高与必要的占位高度，不动结构；要回落直接删本段
   ============================================================ */
body { font-size: 17px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* 顶栏 */
.store b { font-size: 19px; }
.store span { font-size: 14.5px; }
.mini-btns button { font-size: 15px; padding: 7px 10px; }
.notice { font-size: 15px; }
.search { font-size: 16px; height: 38px; }
.search input { font-size: 17.5px; }
.search .sbtn { font-size: 15.5px; }
.cat b { font-size: 14.5px; }
/* 标题与通用 */
.page-h h2 { font-size: 19px; }
.page-h .back { font-size: 16px; height: 30px; }
.sec-h h2 { font-size: 18.5px; }
.sec-h h2 em { font-size: 14.5px; }
.sec-h button, .sec-h .more { font-size: 15px; }
/* 商品卡 */
.name { font-size: 16.5px; min-height: 38px; }
.spec { font-size: 14.5px; min-height: 17px; }
.price { font-size: 19px; }
.price small, .price i { font-size: 14.5px; }
.tag { font-size: 13px; }
.allcard b { font-size: 17px; }
.allcard p { font-size: 14.5px; }
.allcard .go { font-size: 15.5px; }
.serlist button { font-size: 15.5px; }
.serlist button span { font-size: 14px; }
.prow .nm, .cart-item .nm { font-size: 16.5px; }
.prow .sp, .cart-item .sp { font-size: 14.5px; }
/* 详情 / 购物车 */
.detail h2 { font-size: 20.5px; }
.detail .pr { font-size: 28px; }
.detail .pr i { font-size: 15.5px; }
.detail .row { font-size: 16px; }
.stepper b { font-size: 18.5px; }
.hint { font-size: 15px; }
.empty, .loading { font-size: 16.5px; }
.bar .sum { font-size: 15.5px; }
.bar .sum b { font-size: 20px; }
.btn-primary { font-size: 17.5px; }
.btn-ghost { font-size: 16.5px; }
/* 表单 / 结算 */
.frow label { font-size: 16px; flex: 0 0 66px; }
.frow input, .frow textarea, .frow select { font-size: 17.5px; }
.frow .val { font-size: 17px; }
.frow .val.small { font-size: 15.5px; }
.pay { font-size: 16.5px; }
.total-line { font-size: 16px; }
.total-line.big { font-size: 18.5px; }
/* 订单 */
.order .oh { font-size: 15px; }
.order .oi { font-size: 16px; }
.order .of { font-size: 15.5px; }
.order .of b { font-size: 18.5px; }
/* 底部导航 / 提示 */
.tabbar button { font-size: 11.5px; }
#toast { font-size: 16px; }
/* 首页促销 / 轮播 / 宫格 */
.promo { font-size: 16px; }
.promo .ptag { font-size: 14.5px; }
.promo .go { font-size: 15.5px; }
.slide h3 { font-size: 20.5px; }
.slide p { font-size: 15px; }
.slide .pill { font-size: 14.5px; }
.kk b { font-size: 13px; }
.g3 .name { font-size: 16px; min-height: 42px; }
.g3 .spec { font-size: 14px; min-height: 16px; }
.g3 .price { font-size: 21px; }
.g3 .price small { font-size: 15.5px; }
.g3 .tag { font-size: 12.5px; }
.promise b { font-size: 14.5px; }
.promise span { font-size: 13.5px; }
.hcard .nm { font-size: 14.5px; height: 32px; }
.hcard .pr { font-size: 16.5px; }
/* 我的 */
.mine-top b { font-size: 19px; }
.mine-top span { font-size: 15px; }
.mine-top .loginbtn { font-size: 16px; }
.mine-stat b { font-size: 20.5px; }
.mine-stat span { font-size: 14.5px; }
.mine-grid b { font-size: 14.5px; }
/* 弹层 */
.sheet h3 { font-size: 19px; }
.sheet p.sub { font-size: 15px; }
.sheet .opt b { font-size: 17px; }
.sheet .opt span { font-size: 14.5px; }
.sheet .cancel { font-size: 17.5px; }
/* 其他 */
.who .t b { font-size: 17px; }
.who .t span { font-size: 14.5px; }
.who button { font-size: 15.5px; }
.stock-out { font-size: 14px; }
.pay-tabs button { font-size: 15.5px; }
.tip { font-size: 14.5px; }
.done h3 { font-size: 20.5px; }
.done p { font-size: 16.5px; }
.done p.muted { font-size: 15px; }
.icpbar { font-size: 14.5px; }
/* 客服 */
.cs-head b { font-size: 17.5px; }
.cs-head span { font-size: 15px; }
.cs-head .cs-dot { font-size: 14.5px; }
.cs-b { font-size: 17px; }
.cs-b .cs-sub { font-size: 14.5px; }
.cs-typing { font-size: 16px; }
.cs-quick button { font-size: 15.5px; }
.cs-input input, .cs-input button { font-size: 17.5px; }
#csDlg .csdlg-hd b { font-size: 18.5px; }
#csDlg .csdlg-hd > div > span { font-size: 14.5px; }
#csDlg .csdlg-hd .cs-dot { font-size: 14.5px; }
.cs-bindtip .cs-bt-t, .cs-bindtip .cs-bt-b { font-size: 16px; }
#csFab .csfab-tx { font-size: 14px; }
/* 分享 */
.page-h .share-btn { font-size: 15.5px; }
.wxs-h { font-size: 19.5px; }
.wxs-l { font-size: 16.5px; }
.wxs-btns button { font-size: 17px; }

/* ===== 客服悬浮球：轻微漂浮 + 自动停靠空白处（2026-11-03） ===== */
#csFab { transition: left 2.2s cubic-bezier(.4,.05,.3,1), top 2.2s cubic-bezier(.4,.05,.3,1), opacity .25s; }
#csFab.drag { transition: none; }
#csFab.fab-dim { opacity: .5; }
#csFab .csfab-ic { animation: csFloat 9.5s ease-in-out infinite; will-change: transform; }
#csFab.drag .csfab-ic, #csFab:active .csfab-ic { animation-play-state: paused; }
@keyframes csFloat {
  0%   { transform: translate3d(0,0,0) rotate(0deg); }
  18%  { transform: translate3d(-4px,-7px,0) rotate(-5deg); }
  36%  { transform: translate3d(2px,-12px,0) rotate(2deg); }
  54%  { transform: translate3d(6px,-5px,0) rotate(6deg); }
  72%  { transform: translate3d(-2px,2px,0) rotate(-3deg); }
  88%  { transform: translate3d(-5px,-2px,0) rotate(-6deg); }
  100% { transform: translate3d(0,0,0) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  #csFab { transition: none; }
  #csFab .csfab-ic { animation: none; }
}

/* 闲置收起字标 */
#csFab .csfab-tx { transition: opacity .45s ease, transform .45s ease; }
#csFab.fab-min .csfab-tx { opacity: 0; transform: translateY(5px); pointer-events: none; }

/* ===== 首页装修扩展模块（2026-11-04） ===== */
.slide.hasimg { text-shadow: 0 1px 6px rgba(0,20,40,.35); }
.himg img { width: 100%; display: block; border-radius: 16px; }
.himg[data-go] { cursor: pointer; }
.htext { margin-bottom: 14px; box-shadow: 0 1px 2px rgba(20,32,48,.04); font-size: 16.5px; line-height: 1.75; color: #3d4a5c; overflow: hidden; word-break: break-word; }
.htext p { margin: 0 0 8px; }
.htext p:last-child { margin-bottom: 0; }
.htext img { max-width: 100%; border-radius: 10px; }

/* 2026-11-05 卡片数量步进：− N +（首页/分类/组合卡片点多了就地减一件） */
.stp { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.stp-m {
  width: 25px; height: 25px; border-radius: 50%; border: 1px solid #e3e8ef; background: #fff;
  color: #1677ff; font-size: 18.5px; line-height: 1; display: grid; place-items: center;
  cursor: pointer; padding: 0; flex: 0 0 25px; font-family: inherit;
}
.stp-m:active { background: #eef4fb; }
.add.has { width: auto; min-width: 25px; padding: 0 6px; border-radius: 13px; flex: 0 0 auto; }

/* ================= 20261105UI2 · 视图放大与宫格改版补充 ================= */
/* PC 预览窗加宽（手机端依旧铺满不受影响） */
#app { max-width: 480px; }

/* 小屏保护：360px 以下窄屏时宫格图标与商品卡微缩，防挤压换行 */
@media (max-width: 360px) {
  .kk { gap: 12px 4px; padding: 14px 6px 10px; }
  .kk .ic { width: 48px; height: 48px; border-radius: 16px; font-size: 24px; }
  .kk b { font-size: 14px; }
  .g3 .thumb { height: 96px; }
  .g3 .name { font-size: 14.5px; }
}
/* 大屏（平板/桌面预览）：宫格图标再舒展一点 */
@media (min-width: 460px) {
  .kk .ic { width: 58px; height: 58px; border-radius: 19px; font-size: 29px; }
}

/* ================= 20261105UI5 · 分类/购物车/我的 页字体再放大 ================= */
/* —— 分类页 —— */
.catwrap { grid-template-columns: 106px 1fr; gap: 10px; }
.serlist button { font-size: 16.5px; padding: 10px 8px; }
.serlist button span { font-size: 15px; }
.prow .nm { font-size: 18px; }
.prow .sp { font-size: 15.5px; }
.prow .bt .price { font-size: 19px; }
.prow .bt .price small { font-size: 14px; }
.prow .add { width: 28px; height: 28px; flex: 0 0 28px; font-size: 18px; }

/* —— 购物车 —— */
.cart-item { padding: 12px; gap: 12px; }
.cart-item .thumb { width: 66px; height: 66px; flex: 0 0 66px; }
.cart-item .nm { font-size: 18px; }
.cart-item .sp { font-size: 15.5px; }
.frow label { font-size: 16px; flex: 0 0 68px; }
.frow .val { font-size: 16.5px; }
.frow .val.small { font-size: 15.5px; }
.pay { font-size: 16.5px; }
.total-line { font-size: 16px; }
.total-line.big { font-size: 19px; }

/* —— 我的 / 订单 —— */
.mine-top b { font-size: 19px; }
.mine-top span { font-size: 16px; }
.mine-stat b { font-size: 21px; }
.mine-stat span { font-size: 15px; }
.mine-grid b { font-size: 15px; }
.mine-grid i { font-size: 22px; }
.order .oh { font-size: 15.5px; }
.order .oi { font-size: 16.5px; }
.order .of { font-size: 15.5px; }
.order .of b { font-size: 19px; }

/* ================= 20261105UI6 · 全站比例规范 =================
   背景：前几轮只放大字号，图标/行距/卡片留白仍是旧尺寸，造成「字大格小」比例失调。
   策略：主内容保留大字号，辅助信息分级回调；同时把留白、图标、行高按同一节奏放大。
   不动：首页分类宫格(.kk) 4列2排、商品大卡(.g3)、底部导航(.tabbar)。
   ============================================================ */

/* 1) 内容区与卡片通用节奏 */
.body { padding: 14px 14px 92px; }
.form, .order, .who, .cart-item, .mine-stat, .mine-grid { border-radius: 16px; margin-bottom: 14px; }
.mine-top { border-radius: 18px; margin-bottom: 14px; }
.who { padding: 16px; gap: 12px; }
.order { padding: 16px; }
.cart-item { padding: 14px; gap: 14px; }
.catwrap { gap: 12px; }
.page-h { padding: 2px 2px 14px; }

/* 2) 顶栏：店名醒目 / 副标题强制单行 / 按钮不再竖排 */
.topbar { padding: 14px 16px 4px; }
.topbar .row1 { gap: 12px; margin-bottom: 12px; }
.logo { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 13px; font-size: 21px; }
.store b { font-size: 18px; line-height: 1.35; }
.store span {
  display: block; font-size: 12.5px; line-height: 1.45; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.store span em { font-style: normal; }
.store .chev { font-size: 10px; margin-left: 4px; }
.mini-btns { gap: 8px; }
.mini-btns button { font-size: 13px; padding: 8px 11px; line-height: 1.3; white-space: nowrap; border-radius: 10px; }
.search { height: 42px; padding: 0 14px; gap: 9px; font-size: 14px; border-radius: 12px; margin-bottom: 12px; }
.search input { font-size: 14px; }
.search .sbtn { font-size: 14px; }

/* 3) 我的页 · 头像卡 */
.mine-top { padding: 18px; gap: 14px; }
.mine-top .av { width: 52px; height: 52px; flex: 0 0 52px; font-size: 25px; }
.mine-top b { font-size: 18px; line-height: 1.4; }
.mine-top span {
  display: block; font-size: 13.5px; line-height: 1.5; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mine-top .loginbtn { font-size: 15px; padding: 9px 16px; }

/* 4) 我的页 · 数字区 */
.mine-stat { padding: 18px 0; }
.mine-stat b { font-size: 22px; line-height: 1.35; }
.mine-stat span { font-size: 13px; line-height: 1.5; }

/* 5) 我的页 · 12 宫格：图标、行距、格子高度等比放大（本轮重点） */
.mine-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 2px;
  padding: 18px 8px 16px;
}
.mine-grid button { padding: 2px 0; min-width: 0; min-height: 44px; }
.mine-grid i {
  display: block; font-style: normal; font-size: 32px; line-height: 1.2;
  margin-bottom: 7px;
}
.mine-grid b {
  display: block; font-size: 13.5px; font-weight: 500; line-height: 1.35;
  min-height: 32px; color: var(--ink-2); overflow-wrap: anywhere;
}

/* 6) 表单 / 结算行：行高与标签列等比放大 */
.form { padding: 6px 16px; }
.frow { padding: 16px 0; gap: 14px; min-height: 58px; line-height: 1.5; }
.frow label { font-size: 14px; flex: 0 0 74px; line-height: 1.5; }
.frow input, .frow textarea, .frow select { font-size: 16px; line-height: 1.5; }
.frow .val { font-size: 16px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.frow .val.small { font-size: 14.5px; }
.frow .arw { font-size: 13.5px; white-space: nowrap; }
.total-line { padding: 12px 0; }

/* 7) 页脚提示 / 备案：收小字号，拉开留白 */
.tip { font-size: 13px; line-height: 1.7; padding: 4px 2px 14px; }
.icpbar { font-size: 12px; line-height: 1.7; padding: 16px 0 22px; opacity: .72; }

/* 8) 响应式：窄屏收紧、宽屏舒展，比例不失衡 */
@media (max-width: 360px) {
  .body { padding: 12px 10px 88px; }
  .topbar { padding: 12px 12px 4px; }
  .mine-grid { gap: 16px 0; padding: 16px 6px 14px; }
  .mine-grid i { font-size: 28px; margin-bottom: 6px; }
  .mine-grid b { font-size: 12.5px; min-height: 30px; }
  .frow label { flex: 0 0 66px; }
  .mini-btns button { padding: 7px 8px; font-size: 12.5px; }
}
@media (min-width: 460px) {
  .mine-grid { gap: 24px 4px; padding: 22px 12px 20px; }
  .mine-grid i { font-size: 36px; }
}

/* 9) 分类页侧栏：加宽并让角标脱离文字流，分类名不再被硬拆成怪异两行 */
.catwrap { grid-template-columns: 124px 1fr; gap: 12px; }
.serlist button {
  display: block; position: relative; text-align: center;
  font-size: 15.5px; line-height: 1.4; padding: 15px 5px 12px;
}
.serlist button span {
  position: absolute; top: 3px; right: 6px;
  font-size: 11px; line-height: 1; color: var(--ink-3);
}
.plist { gap: 10px; }


/* ===== 下拉刷新指示器 ===== */
.ptr {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #d97a16; font-size: 13px; z-index: 9999;
  background: linear-gradient(180deg, #fff8ef 0%, #fffdf9 100%);
  border-radius: 0 0 14px 14px; box-shadow: 0 3px 10px rgba(217,122,22,.10);
  transition: height .16s ease-out, opacity .16s ease-out;
  pointer-events: none; opacity: 0;
}
.ptr .ptr-ic { font-size: 20px; line-height: 1; transition: transform .2s; }
.ptr.ready .ptr-ic { transform: rotate(180deg); }
.ptr.loading .ptr-ic { animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }


/* ===== 返回按钮常驻：原返回栏滚出视口后悬浮在顶栏下方（2026-11-23） ===== */
.page-h .back.bk-float {
  position: fixed;
  top: calc(var(--tbb, 96px) + 8px);
  left: 14px;
  z-index: 25;
  background: #fff;
  box-shadow: 0 3px 12px rgba(20,32,48,.22);
}
.page-h .back.bk-ready {
  background: var(--brand-l);
  transform: scale(1.07);
}
@media (min-width: 520px) {
  .page-h .back.bk-float { top: calc(var(--tbb, 96px) + 10px); }
}

/* 顶部三按钮（登录/客服/电话）收紧，避免挤压店名换行 */
.topbar .mini-btns { gap: 5px; flex-shrink: 0; }
.topbar .mini-btns button { padding: 6px 8px; font-size: 12.5px; border-radius: 9px; }
.topbar .store { min-width: 0; }
.topbar .store b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; }
@media (max-width: 380px) {
  .topbar .mini-btns button { padding: 5px 6px; font-size: 12px; }
  .topbar .store b { font-size: 14.5px; }
}
