/* 山花漫野 · 移动端商城样式（高端自然田园风 v2） */
:root {
  --ink: #2b2118;
  --ink-2: #6b5a48;
  --muted: #a3927f;
  --line: #ecdfc9;
  --bg: #f6efe4;
  --bg-2: #efe3d0;
  --card: #ffffff;
  --brand: #c9821f;
  --brand-deep: #b06a14;
  --brand-2: #f0b349;
  --grad: linear-gradient(135deg, #f7bb49, #e0912b);
  --grad-soft: linear-gradient(135deg, #fde9c8, #f8dba4);
  --price: #c8421c;
  --ok: #3f8f5f;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 28px rgba(180, 120, 40, .12);
  --shadow-soft: 0 4px 16px rgba(170, 120, 50, .08);
  --tab-h: 60px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: linear-gradient(180deg, #f1e3cc 0%, #e8d8be 100%) fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#app {
  max-width: 460px; margin: 0 auto; min-height: 100vh;
  background:
    radial-gradient(140% 52% at 50% -8%, #ffdfb2 0%, rgba(255, 223, 178, .55) 38%, rgba(255, 236, 210, 0) 72%),
    radial-gradient(90% 40% at 100% 30%, rgba(255, 214, 170, .45) 0%, rgba(255, 214, 170, 0) 60%),
    linear-gradient(180deg, #fff4e4 0%, #fdf1df 30%, #f9eedc 64%, #f6ead6 100%);
  padding-bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px));
  position: relative; overflow-x: hidden;
}
body.no-tab #app { padding-bottom: 16px; }

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

/* ---------------- 顶部 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, #fffaf1 0%, rgba(255, 250, 241, .94) 72%, rgba(255, 250, 241, 0) 100%);
  padding: 12px 16px 12px;
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 11px;
  background: var(--grad); display: grid; place-items: center; font-size: 17px;
  box-shadow: 0 5px 12px rgba(224, 145, 43, .32);
}
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: .5px; color: var(--ink); }
.brand-sub { font-size: 11px; color: var(--muted); margin-left: 2px; letter-spacing: .3px; }
.brand-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.chip-soft {
  font-size: 11px; color: #9a5c10; background: linear-gradient(135deg, #fff0cf, #ffe3ae);
  padding: 4px 10px; border-radius: 999px; font-weight: 600;
  box-shadow: inset 0 0 0 1px #f7d79c;
}

.searchbar {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 8px 6px 8px 15px;
  box-shadow: 0 6px 18px rgba(180, 120, 40, .10);
}
.searchbar input { flex: 1; border: 0; outline: 0; background: none; font-size: 14px; color: var(--ink); }
.searchbar input::placeholder { color: #c4b49e; }
.searchbar .go {
  width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 14px;
  box-shadow: 0 4px 10px rgba(224, 145, 43, .3);
}

/* ---------------- 通用 ---------------- */
.page { padding: 6px 14px 10px; }
.sec-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 800; margin: 20px 4px 12px; letter-spacing: .3px;
}
.sec-title::before {
  content: ""; width: 4px; height: 17px; border-radius: 4px;
  background: var(--grad);
}
.sec-title .more { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-soft); }

.empty { text-align: center; color: var(--muted); padding: 48px 20px; font-size: 13px; }
.empty .ico { font-size: 42px; margin-bottom: 10px; opacity: .5; }

/* ---------------- 首页：分类 ---------------- */
.cats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px;
  background: #fff; border-radius: var(--radius-lg); padding: 16px 10px; box-shadow: var(--shadow-soft);
}
.cat { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.cat .tile {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  font-size: 25px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 4px 10px rgba(150, 90, 30, .08);
  transition: transform .15s ease;
}
.cat:active .tile { transform: scale(.94); }
.cat span.t { font-size: 11.5px; color: var(--ink-2); }

/* ---------------- 公告 ---------------- */
.notice {
  margin: 14px 0; display: flex; align-items: center; gap: 9px;
  background: linear-gradient(90deg, #fff6e3, #fdf3e0);
  border: 1px solid #f3ddb0; border-radius: 999px; padding: 9px 14px;
  font-size: 12px; color: #9a5c10; overflow: hidden;
}
.notice .tag { flex: none; background: var(--grad); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.notice .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 公告跑马灯：文字自动从右往左滚动，长文案也能看全 */
.notice .mq { flex: 1; overflow: hidden; position: relative; }
.notice .mq-in {
  display: flex; width: max-content;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.notice .mq-in span { white-space: nowrap; padding-right: 56px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------- 首页：横幅 ---------------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 24px 20px 22px;
  background:
    radial-gradient(120% 130% at 100% 0%, #ffe7a8 0%, #ffc968 42%, #e0912b 100%);
  color: #4a2a08; box-shadow: 0 16px 34px rgba(210, 130, 30, .26);
}
.hero::after {
  content: "🍯"; position: absolute; right: 12px; top: 8px; font-size: 66px; opacity: .22;
  transform: rotate(-14deg);
}
.hero::before {
  content: ""; position: absolute; left: -40px; bottom: -60px; width: 200px; height: 140px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
}
.hero h1 { margin: 0; font-size: 23px; letter-spacing: 1.5px; font-weight: 900; position: relative; }
.hero p { margin: 8px 0 0; font-size: 12.5px; opacity: .8; letter-spacing: .5px; position: relative; }
.hero .hero-tags { display: flex; gap: 7px; margin-top: 18px; flex-wrap: wrap; position: relative; }
.hero .hero-tags span {
  font-size: 11px; background: rgba(255, 255, 255, .62); border-radius: 999px;
  padding: 5px 12px; font-weight: 600; backdrop-filter: blur(2px);
}
.hero .bee { display: none; }

/* ---------------- 商品网格 ---------------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.pcard {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pcard:active { transform: scale(.98); box-shadow: 0 6px 14px rgba(150, 90, 30, .12); }
.pcard .art { border-radius: 0; }
a.pcard, .prow { text-decoration: none; color: inherit; cursor: pointer; }
.mini { cursor: pointer; }
.pcard .body { padding: 11px 11px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .badges { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.badge {
  font-size: 9.5px; line-height: 1; padding: 4px 6px; border-radius: 6px;
  color: var(--price); background: #fdeee8; font-weight: 700; letter-spacing: .2px;
}
.badge.neutral { color: #9a5c10; background: #fff1d9; }
.pcard .name {
  font-size: 13.5px; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.pcard .sold { font-size: 11px; color: var(--muted); }
.pcard .price-row { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.price { color: var(--price); font-weight: 800; font-size: 20px; letter-spacing: -.4px; }
.price small { font-size: 12px; font-weight: 700; margin-right: 1px; }
.pcard .member-price {
  font-size: 10px; color: #9a5c10; background: #fff1d9; border-radius: 6px;
  padding: 3px 6px; display: inline-block; width: fit-content; white-space: nowrap;
}

/* 商品图 */
.art {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(155deg, var(--c1, #fde9c8), var(--c2, #f0c47c));
}
.jar { display: none; }
.art img.pimg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- 商品详情 ---------------- */
.hero-art {
  border-radius: 0 0 30px 30px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--c1, #fde9c8), var(--c2, #f0c47c));
  aspect-ratio: 1 / .96; display: grid; place-items: center;
}
.hero-art .jar { display: none; }
.hero-art .hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-art .back {
  position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255, 255, 255, .82); display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .10); color: var(--ink);
  backdrop-filter: blur(4px);
}
.detail-sheet { margin-top: -20px; position: relative; padding: 16px 16px 0; }
.price-block { display: flex; align-items: flex-end; gap: 10px; background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 16px 16px 0; }
.price-block .price { font-size: 30px; }
.price-block .member { font-size: 11.5px; color: #9a5c10; background: #fff1d9; padding: 5px 10px; border-radius: 999px; font-weight: 700; }
.detail-title { font-size: 19px; font-weight: 800; margin: 12px 0 8px; line-height: 1.35; }
.detail-sub { font-size: 12.5px; color: var(--muted); margin: -2px 0 12px; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-tags .tg { font-size: 11px; color: #9a5c10; background: #fff4e2; border-radius: 999px; padding: 5px 10px; }

.block { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 15px; margin-bottom: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.row .k { color: var(--ink-2); font-size: 13px; width: 62px; flex: none; }
.row .v { flex: 1; font-size: 13.5px; }
.row + .row { margin-top: 12px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fffdf9; }
.stepper button { width: 32px; height: 30px; display: grid; place-items: center; font-size: 16px; color: var(--ink-2); }
.stepper span { min-width: 36px; text-align: center; font-size: 13px; }

.detail-text { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.detail-text h4 { margin: 0 0 8px; font-size: 14px; color: var(--ink); }

.actionbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 460px;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 10px 13px calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 10px; z-index: 30;
}
.btn {
  flex: 1; height: 46px; border-radius: 999px; font-size: 15px; font-weight: 700;
  display: grid; place-items: center; transition: opacity .15s, transform .1s;
}
.btn:active { opacity: .84; transform: scale(.98); }
.btn.ghost { background: #fff1dd; color: #9a5c10; box-shadow: inset 0 0 0 1px #f6d7a8; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(224, 145, 43, .34); }
.btn.danger { background: linear-gradient(135deg, #ff7a5c, #d23b26); color: #fff; }
.btn[disabled] { opacity: .5; }

/* ---------------- 分类页 ---------------- */
.cat-layout { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.cat-rail { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 76px; height: fit-content; }
.cat-rail button {
  text-align: left; padding: 14px 13px; border-radius: 13px; font-size: 13px; color: var(--ink-2);
  background: transparent; transition: background .15s;
}
.cat-rail button.on {
  background: #fff; color: var(--brand-deep); font-weight: 800; box-shadow: var(--shadow-soft);
  border-left: 3px solid var(--brand);
}
.plist { display: flex; flex-direction: column; gap: 11px; }
.prow { display: flex; gap: 11px; padding: 10px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); }
.prow .art { width: 96px; flex: none; border-radius: 13px; aspect-ratio: 1/1; }
.prow .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prow .name { font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.prow .sold { font-size: 11px; color: var(--muted); margin-top: 3px; }
.prow .buy {
  margin-left: auto; align-self: flex-end; width: 32px; height: 32px; border-radius: 999px;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 15px;
  box-shadow: 0 4px 10px rgba(224, 145, 43, .3);
}

/* ---------------- 购物车 ---------------- */
.citem { display: flex; gap: 11px; padding: 13px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); margin-bottom: 11px; align-items: center; }
.citem .art { width: 78px; flex: none; border-radius: 13px; }
.citem .info { flex: 1; min-width: 0; }
.citem .name { font-size: 13px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.citem .unit { font-size: 11px; color: var(--muted); margin: 2px 0 9px; }
.citem .foot { display: flex; align-items: center; }
.citem .rm { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.tick {
  width: 21px; height: 21px; border-radius: 999px; border: 1.5px solid #d6c5ad; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 12px;
}
.tick.on { background: var(--grad); border-color: transparent; box-shadow: 0 2px 6px rgba(224,145,43,.3); }

.cart-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 26px); max-width: 434px; background: #fff; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(150, 90, 30, .18); padding: 8px 8px 8px 17px;
  display: flex; align-items: center; gap: 10px; z-index: 25;
}
.cart-bar .sum { font-size: 12px; color: var(--muted); }
.cart-bar .sum b { color: var(--price); font-size: 20px; }
.cart-bar .btn { flex: none; width: 110px; height: 40px; font-size: 14px; }

/* ---------------- 表单 ---------------- */
.field { display: flex; align-items: center; gap: 10px; padding: 13px 2px; border-bottom: 1px solid #f6ecdb; }
.field:last-child { border-bottom: 0; }
.field label { width: 62px; flex: none; font-size: 13.5px; color: var(--ink-2); }
.field input, .field textarea {
  flex: 1; border: 0; outline: 0; background: none; font-size: 14px; padding: 2px 0; resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: #cbbba6; }

.coupon-row { display: flex; align-items: center; gap: 8px; }
.coupon-opt {
  flex: 1; text-align: left; border-radius: 13px; padding: 11px 11px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.coupon-opt.on { box-shadow: inset 0 0 0 2px var(--brand); background: #fff9ed; color: var(--brand-deep); font-weight: 700; }
.coupon-opt .amt { color: var(--price); font-weight: 800; }

.sumbox { font-size: 13px; color: var(--ink-2); }
.sumbox .line { display: flex; padding: 8px 0; }
.sumbox .line b { margin-left: auto; color: var(--ink); }
.sumbox .total { border-top: 1px dashed var(--line); margin-top: 7px; padding-top: 13px; font-size: 14px; }
.sumbox .total b { color: var(--price); font-size: 22px; }

/* ---------------- 订单 ---------------- */
.oitem { background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); padding: 14px 15px; margin-bottom: 11px; }
.oitem .head { display: flex; font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.oitem .head .st { margin-left: auto; font-weight: 700; color: var(--brand-deep); }
.oitem .head .st.done { color: var(--ok); }
.oitem .g { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.oitem .g .art { width: 46px; flex: none; border-radius: 11px; }
.oitem .g .n { font-size: 12.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oitem .g .q { font-size: 11.5px; color: var(--muted); }
.oitem .foot { display: flex; align-items: center; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 5px; }
.oitem .foot .amt { margin-left: auto; font-size: 13px; }
.oitem .foot .amt b { color: var(--price); font-size: 16px; }
.oitem .foot .mini { font-size: 12px; padding: 6px 13px; border-radius: 999px; background: #fff1dd; color: var(--brand-deep); font-weight: 700; }

/* ---------------- 我的 ---------------- */
.me-head {
  background:
    radial-gradient(120% 150% at 100% 0%, #ffe9b0 0%, #ffcf6e 40%, #e0912b 100%);
  color: #4a2a08; border-radius: 0 0 30px 30px; padding: 26px 20px 30px; margin: 0 -14px 16px;
  box-shadow: 0 14px 30px rgba(210, 130, 30, .20);
  position: relative; overflow: hidden;
}
.me-head::after { content: "🐝"; position: absolute; right: 16px; top: 18px; font-size: 52px; opacity: .2; transform: rotate(12deg); }
.me-head .hi { font-size: 12px; opacity: .85; position: relative; }
.me-head .who { font-size: 20px; font-weight: 900; margin-top: 4px; letter-spacing: .5px; position: relative; }
.me-head .phone { font-size: 12px; opacity: .82; margin-top: 7px; position: relative; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick button {
  background: #fff; border-radius: 16px; padding: 15px 4px; box-shadow: var(--shadow-soft);
  font-size: 11.5px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 7px;
  transition: transform .15s ease;
}
.quick button:active { transform: scale(.96); }
.quick button .i { font-size: 20px; }
.mlist { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); overflow: hidden; }
.mlist button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 15px 16px; font-size: 14px; border-bottom: 1px solid #f6ecdb; }
.mlist button:last-child { border-bottom: 0; }
.mlist button .i { width: 22px; text-align: center; }
.mlist button .arr { margin-left: auto; color: #cdbda7; font-size: 13px; }

/* ---------------- 底部 tab ---------------- */
#tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 460px;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, .98); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: flex; z-index: 40;
  box-shadow: 0 -6px 18px rgba(150, 90, 30, .06);
}
#tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #b0a08c; font-size: 10.5px; position: relative; }
#tabbar button .i { font-size: 19px; line-height: 1; display: grid; place-items: center; }
#tabbar button .i svg { width: 21px; height: 21px; display: block; }
body.no-tab #tabbar { display: none; }
#tabbar button.on { color: var(--brand-deep); font-weight: 700; }
#tabbar button.on::after {
  content: ""; position: absolute; top: 4px; width: 18px; height: 3px; border-radius: 3px;
  background: var(--grad);
}
#tabbar .dot {
  position: absolute; top: 4px; right: calc(50% - 22px); min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--price); color: #fff; border-radius: 999px; font-size: 9.5px; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(200, 66, 28, .4);
}

/* ---------------- toast / sheet ---------------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 86px); transform: translate(-50%, 8px);
  background: rgba(43, 32, 24, .9); color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: .22s ease; z-index: 90; max-width: 80vw; text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

.sheet-mask {
  position: fixed; inset: 0; background: rgba(30, 20, 10, .45); z-index: 95;
  display: grid; align-items: end; opacity: 0; pointer-events: none; transition: .2s;
}
.sheet-mask.on { opacity: 1; pointer-events: auto; }
.sheet {
  background: #fff; border-radius: 24px 24px 0 0; padding: 20px 17px calc(20px + env(safe-area-inset-bottom, 0px));
  max-width: 460px; width: 100%; margin: 0 auto; transform: translateY(100%); transition: transform .24s ease;
  max-height: 86vh; overflow: auto;
}
.sheet-mask.on .sheet { transform: translateY(0); }
.sheet h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.sheet .x { position: absolute; right: 14px; top: 12px; color: var(--muted); font-size: 18px; }

.ok-big { text-align: center; padding: 18px 0 6px; }
.ok-big .i { font-size: 48px; }
.ok-big h2 { margin: 8px 0 4px; font-size: 18px; }
.ok-big p { margin: 0; color: var(--muted); font-size: 12.5px; }
.ok-big .no { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .5px; }

/* 桌面端：给手机壳一点边界感 */
@media (min-width: 520px) {
  body { background: #e6d7c2; }
  #app { box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 24px 60px rgba(120, 80, 30, .16); }
  .actionbar, #tabbar { border-radius: 0; }
  #chat-fab { right: calc(50% - 214px); }
}

/* ---------------- 商品图 ---------------- */
.hero-art .hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-img { border-radius: 16px; overflow: hidden; margin-top: 13px; background: #f6efe4; }
.detail-img img { width: 100%; display: block; }
.pcard .member-price { margin-left: auto; align-self: center; }

/* ---------------- 客服悬浮按钮 ---------------- */
#chat-fab {
  position: fixed; z-index: 45; right: 14px;
  bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 999px; font-size: 23px;
  background: #fff; box-shadow: 0 8px 24px rgba(150, 90, 30, .24), inset 0 0 0 1px #f2e2cb;
  display: grid; place-items: center;
}
body.no-tab #chat-fab { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
#chat-fab:active { transform: scale(.94); }

/* ---------------- 客服会话 ---------------- */
.chat { display: flex; flex-direction: column; height: 66vh; min-height: 320px; }
.chat-head { display: flex; align-items: baseline; gap: 8px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.chat-head h3 { margin: 0; font-size: 15px; }
.chat-sub { font-size: 11px; color: var(--muted); }
.chat-body { flex: 1; overflow-y: auto; padding: 10px 2px; }
.bubble {
  max-width: 80%; width: fit-content; padding: 10px 13px; border-radius: 15px;
  font-size: 13.5px; line-height: 1.6; margin: 8px 0; word-break: break-word; white-space: pre-wrap;
}
.bubble.bot { background: #f5ede0; color: #3a2b1e; border-bottom-left-radius: 6px; }
.bubble.me { background: var(--grad); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 4px; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button { flex: none; font-size: 12px; padding: 7px 12px; border-radius: 999px; background: #fff1dd; color: var(--brand-deep); }
.chat-input { display: flex; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 0 15px; outline: 0; font-size: 14px; background: #fffdf9; }
.chat-input button { width: 68px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 4px 10px rgba(224,145,43,.3); }

/* ---------------- 收款码 ---------------- */
.qr { width: 180px; height: 180px; object-fit: contain; border-radius: 16px; background: #fff; margin: 13px auto 0; display: block; box-shadow: 0 4px 16px rgba(0,0,0,.10); }
.qr-empty {
  display: grid; place-items: center; text-align: center; font-size: 12px; line-height: 1.6;
  color: var(--muted); border: 1px dashed #e6d6bf; box-shadow: none;
}

.member-price { white-space: nowrap; }

/* ---------------- 线性图标尺寸与配色 ---------------- */
.brand-mark svg { width: 18px; height: 18px; color: #fff; display: block; }
.cat .tile svg { width: 30px; height: 30px; color: inherit; display: block; }
.quick button svg { width: 21px; height: 21px; color: #b06a14; display: block; margin: 0 auto; }
.mlist button svg { width: 20px; height: 20px; color: #b06a14; display: block; margin: 0 auto; }
#chat-fab svg { width: 24px; height: 24px; color: #b06a14; display: block; }

/* ---------------- 卡片信息行（产地 / 已售 / 规格） ---------------- */
.pcard .origin { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-row .unit, .prow .unit { font-size: 11px; color: var(--muted); }
.pcard .member-price { margin-left: 0; align-self: flex-start; margin-top: 2px; }

/* ---------------- 收银台（淘宝式） ---------------- */
.cashier { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.cash-hero { padding: 24px 18px 20px; text-align: center;
  background: radial-gradient(120% 100% at 50% 0%, #fff6e3 0%, #ffe6bd 70%, #ffdcae 100%); }
.cash-l { font-size: 12px; color: #a07a4a; letter-spacing: .5px; }
.cash-amt { font-size: 36px; font-weight: 800; color: #c8421c; letter-spacing: -.5px; margin-top: 2px; }
.cash-amt small { font-size: 19px; margin-right: 2px; }
.cash-sub { font-size: 11.5px; color: #a07a4a; margin-top: 8px; }
.cash-sub b { color: #c8421c; font-variant-numeric: tabular-nums; }
.cash-methods { padding: 4px 16px; }
.pm { width: 100%; display: flex; align-items: center; gap: 11px; padding: 15px 2px; font-size: 14.5px; color: var(--ink); border-bottom: 1px solid #f5ecdc; }
.pm:last-child { border-bottom: 0; }
.pm.on { color: var(--brand-deep); font-weight: 700; }
.pm-i { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.pm-i.wx { background: #23a455; }
.pm-i.ali { background: #1677ff; }
.pm-arr { margin-left: auto; color: #d8c8b2; font-size: 16px; }
.pm.on .pm-arr { color: var(--brand); }
.cash-qr { text-align: center; padding: 6px 18px 2px; }
.cash-qr img { width: 190px; height: 190px; object-fit: contain; border-radius: 14px; background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.10); margin: 0 auto; }
.qr-tip { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.cash-note { font-size: 11.5px; color: var(--muted); text-align: center; padding: 10px 20px 4px; line-height: 1.6; }
.cash-acts { display: flex; gap: 10px; padding: 10px 16px 18px; }
.cash-acts .btn { flex: 1; height: 46px; }
.status-big { text-align: center; padding: 34px 18px 26px; }
.hint a { text-decoration: none; }
