/* 立马购 H5 - 红色主题 */
:root {
  --red: #e4393c;
  --red-dark: #c81623;
  --red-light: #fdeeee;
  --gold: #ff9f00;
  --bg: #f5f5f5;
  --line: #f0f0f0;
  --text: #222;
  --text2: #666;
  --text3: #999;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 15px; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text);
  max-width: 560px; margin: 0 auto; min-height: 100vh;
  position: relative; overflow-x: hidden;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 15px; outline: none; }
.hide { display: none !important; }

/* ---------- 顶栏 ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--red); color: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top));
}
.hdr .back { font-size: 20px; width: 28px; flex: none; display: flex; align-items: center; justify-content: center; }
.hdr .title { font-size: 17px; font-weight: 600; flex: 1; text-align: center; }
.hdr .title.left { text-align: left; }
.hdr .hdr-r { width: 28px; flex: none; text-align: right; font-size: 16px; }
.brand { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 19px; letter-spacing: 1px; }
.brand .logo {
  width: 26px; height: 26px; border-radius: 7px; background: #fff; color: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900;
}
.searchbar {
  flex: 1; display: flex; align-items: center; background: #fff; border-radius: 16px;
  padding: 6px 12px; gap: 6px; color: #999; font-size: 13px;
}
.searchbar input { flex: 1; border: none; font-size: 13px; background: transparent; }
.searchbar .sbtn { color: var(--red); font-weight: 600; font-size: 14px; }

/* ---------- 底部标签栏 ---------- */
#tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px; background: #fff; z-index: 50;
  display: flex; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
#tabbar a {
  flex: 1; text-align: center; padding: 6px 0 7px; color: #888; font-size: 11px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative;
}
#tabbar a svg { width: 23px; height: 23px; fill: #888; }
#tabbar a.on { color: var(--red); }
#tabbar a.on svg { fill: var(--red); }
#tabbar .badge {
  position: absolute; top: 2px; left: 55%; background: var(--red); color: #fff;
  font-size: 10px; border-radius: 9px; padding: 0 5px; line-height: 15px; min-width: 15px;
}
.page { padding-bottom: 68px; min-height: 100vh; }
.page.nobar { padding-bottom: 0; }
.page.hasbar { padding-bottom: 62px; }

/* ---------- 首页 ---------- */
.banner-wrap { position: relative; }
.banner-scroll {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.banner-scroll::-webkit-scrollbar { display: none; }
.banner-scroll img {
  width: 100%; flex: none; scroll-snap-align: center; aspect-ratio: 16/7; object-fit: cover;
}
.banner-dots {
  position: absolute; bottom: 8px; right: 12px; display: flex; gap: 4px;
}
.banner-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.banner-dots i.on { background: var(--red); width: 14px; border-radius: 3px; }

.cat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); background: #fff;
  margin: 10px 10px 0; border-radius: 12px; padding: 14px 4px;
}
.cat-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #333; }
.cat-grid .ic {
  width: 44px; height: 44px; border-radius: 50%; background: var(--red-light);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.sec-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 12px 8px; font-size: 16px; font-weight: 700;
}
.sec-title .more { font-size: 12px; color: var(--text3); font-weight: 400; }

/* ---------- 商品网格 ---------- */
.grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 8px 12px;
}
.pcard { background: #fff; border-radius: 10px; overflow: hidden; }
.pcard img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f8f8f8; }
.pcard .info { padding: 8px 9px 10px; }
.pcard .name {
  font-size: 13px; line-height: 1.35; height: 36px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pcard .sub { font-size: 11px; color: var(--red); margin-top: 3px; height: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pcard .row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 5px; }
.pcard .price { color: var(--red); font-weight: 800; font-size: 17px; }
.pcard .price small { font-size: 11px; font-weight: 600; }
.pcard .price s { color: #bbb; font-size: 10px; font-weight: 400; margin-left: 3px; }
.pcard .sales { color: #999; font-size: 11px; }

/* ---------- 分类页 ---------- */
.cat-page { display: flex; min-height: calc(100vh - 44px); }
.cat-side {
  width: 92px; flex: none; background: #f7f7f7; overflow-y: auto;
  padding-bottom: 70px;
}
.cat-side a {
  display: block; padding: 15px 8px; font-size: 13px; text-align: center; color: #555;
  border-left: 3px solid transparent;
}
.cat-side a.on { background: #fff; color: var(--red); font-weight: 700; border-left-color: var(--red); }
.cat-main { flex: 1; background: #fff; padding: 10px 8px 70px; min-height: calc(100vh - 44px); }
.cat-main .grid { padding: 0; }
.load-more { text-align: center; color: #999; font-size: 13px; padding: 14px 0; }

/* ---------- 商品详情 ---------- */
.gallery { position: relative; background: #fff; }
.g-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.g-scroll::-webkit-scrollbar { display: none; }
.g-scroll img { width: 100%; flex: none; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; background: #f8f8f8; }
.g-dots { position: absolute; bottom: 10px; right: 14px; background: rgba(0,0,0,.35); color: #fff;
  font-size: 11px; border-radius: 10px; padding: 2px 9px; }
.p-main { background: #fff; padding: 12px 14px; }
.p-price { color: var(--red); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-price .big { font-size: 28px; font-weight: 900; }
.p-price .big small { font-size: 14px; }
.p-price s { color: #bbb; font-size: 13px; }
.p-price .tag { background: var(--red); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 3px; }
.p-name { font-size: 16px; font-weight: 700; line-height: 1.45; margin-top: 8px; }
.p-meta { display: flex; gap: 14px; color: #999; font-size: 12px; margin-top: 8px; }
.p-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; padding: 13px 14px; margin-top: 8px; font-size: 14px;
}
.p-row .label { color: #888; flex: none; margin-right: 12px; }
.p-row .val { flex: 1; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-row .arr { color: #ccc; }
.detail-tabs { display: flex; background: #fff; margin-top: 8px; position: sticky; top: 44px; z-index: 10; }
.detail-tabs button {
  flex: 1; padding: 12px 0; font-size: 14px; color: #666; border-bottom: 2px solid transparent;
}
.detail-tabs button.on { color: var(--red); font-weight: 700; border-bottom-color: var(--red); }
.detail-body { background: #fff; padding: 14px; font-size: 14px; color: #444; line-height: 1.8; }
.detail-body img { width: 100%; border-radius: 8px; margin-top: 8px; }
.review-stat { display: flex; gap: 18px; align-items: center; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; color: #666; }
.review-stat b { color: var(--red); font-size: 20px; }
.review-item { padding: 12px 14px; background: #fff; border-bottom: 6px solid var(--bg); }
.review-item .u { display: flex; justify-content: space-between; font-size: 13px; color: #666; }
.review-item .stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; }
.review-item .txt { font-size: 14px; margin-top: 6px; line-height: 1.6; }
.review-item .date { font-size: 11px; color: #aaa; margin-top: 5px; }

.p-bottom {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px; background: #fff; z-index: 50;
  display: flex; align-items: center; padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); gap: 8px;
}
.p-bottom .ico { text-align: center; font-size: 11px; color: #666; width: 44px; flex: none; }
.p-bottom .ico span { display: block; font-size: 19px; line-height: 1.2; }
.p-bottom .btns { flex: 1; display: flex; gap: 8px; }
.p-bottom .btns button { flex: 1; padding: 11px 0; border-radius: 22px; font-size: 15px; font-weight: 700; color: #fff; }
.btn-add { background: linear-gradient(90deg, #ff9f00, #ff6a00); }
.btn-buy { background: linear-gradient(90deg, #ff5f57, var(--red-dark)); }

/* ---------- SKU 弹层 ---------- */
#sheet-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90;
}
#sheet {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px; background: #fff; z-index: 91;
  border-radius: 16px 16px 0 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  max-height: 82vh; overflow-y: auto;
}
.sheet-close { position: absolute; right: 12px; top: 12px; font-size: 20px; color: #999; }
.sheet-hd { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sheet-hd img { width: 86px; height: 86px; border-radius: 8px; object-fit: cover; background: #f5f5f5; }
.sheet-hd .pr { color: var(--red); font-size: 22px; font-weight: 800; }
.sheet-hd .pr small { font-size: 12px; }
.sheet-hd .st { font-size: 12px; color: #999; margin-top: 8px; }
.spec-group { margin-top: 14px; }
.spec-group .t { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.spec-opts { display: flex; flex-wrap: wrap; gap: 9px; }
.spec-opts button {
  padding: 8px 16px; border-radius: 18px; background: #f5f5f5; font-size: 13px; color: #333;
  border: 1px solid transparent;
}
.spec-opts button.on { background: var(--red-light); color: var(--red); border-color: var(--red); font-weight: 700; }
.spec-opts button.dis { opacity: .4; text-decoration: line-through; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 14px; }
.stepper { display: flex; align-items: center; border: 1px solid #e5e5e5; border-radius: 6px; overflow: hidden; }
.stepper button { width: 34px; height: 32px; background: #f7f7f7; font-size: 17px; color: #555; }
.stepper button:disabled { color: #ccc; }
.stepper span { width: 44px; text-align: center; font-size: 14px; border-left: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5; line-height: 32px; }
.sheet-btns { display: flex; gap: 10px; margin-top: 20px; }
.sheet-btns button { flex: 1; padding: 12px 0; border-radius: 24px; font-size: 15px; font-weight: 700; color: #fff; }

/* ---------- 购物车 ---------- */
.cart-list { padding: 8px 10px; }
.cart-item {
  display: flex; gap: 10px; background: #fff; border-radius: 10px;
  padding: 10px; margin-bottom: 8px; align-items: center;
}
.cbx {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #ccc; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff;
}
.cbx.on { background: var(--red); border-color: var(--red); }
.cart-item img { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; background: #f5f5f5; flex: none; }
.cart-item .mid { flex: 1; min-width: 0; }
.cart-item .nm { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item .sp { font-size: 11px; color: #999; background: #f5f5f5; display: inline-block; padding: 2px 7px; border-radius: 4px; margin-top: 5px; }
.cart-item .bot { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
.cart-item .pr { color: var(--red); font-weight: 800; font-size: 16px; }
.cart-item .del { color: #999; font-size: 16px; padding: 4px; }
.cart-bar {
  position: fixed; bottom: 56px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px; background: #fff; z-index: 49;
  display: flex; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line);
  padding-bottom: calc(9px + env(safe-area-inset-bottom));
}
.cart-bar .all { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.cart-bar .sum { flex: 1; text-align: right; font-size: 13px; color: #666; padding-right: 12px; }
.cart-bar .sum b { color: var(--red); font-size: 19px; }
.cart-bar .go {
  background: linear-gradient(90deg, #ff5f57, var(--red-dark)); color: #fff;
  padding: 10px 26px; border-radius: 22px; font-size: 15px; font-weight: 700;
}
.cart-bar .go.off { background: #f0a0a0; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 70px 20px; color: #999; }
.empty .em { font-size: 54px; margin-bottom: 14px; }
.empty .btn {
  display: inline-block; margin-top: 16px; color: #fff; background: var(--red);
  padding: 9px 30px; border-radius: 22px; font-size: 14px;
}

/* ---------- 地址 ---------- */
.addr-card {
  background: #fff; border-radius: 10px; margin: 8px 10px; padding: 13px 14px;
  display: flex; align-items: center; gap: 10px;
}
.addr-card .info { flex: 1; min-width: 0; }
.addr-card .n1 { font-size: 15px; font-weight: 700; }
.addr-card .n1 span { font-weight: 400; color: #666; font-size: 13px; margin-left: 10px; }
.addr-card .n2 { font-size: 13px; color: #666; margin-top: 5px; line-height: 1.5; }
.addr-card .chk { color: var(--red); font-size: 18px; }
.addr-card .edit { color: #999; font-size: 13px; flex: none; }
.form { background: #fff; margin: 8px 10px; border-radius: 10px; padding: 4px 14px; }
.form .f { display: flex; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.form .f:last-child { border-bottom: none; }
.form .f label { width: 76px; flex: none; font-size: 14px; color: #555; }
.form .f input { flex: 1; border: none; font-size: 14px; }
.form .f .switch { margin-left: auto; }
.switch { width: 44px; height: 25px; border-radius: 13px; background: #ddd; position: relative; transition: .2s; flex: none; }
.switch.on { background: var(--red); }
.switch i { position: absolute; top: 2.5px; left: 2.5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.switch.on i { left: 21.5px; }
.form-err { color: var(--red); font-size: 12px; padding: 8px 14px; }

/* ---------- 结算/订单 ---------- */
.block { background: #fff; border-radius: 10px; margin: 8px 10px; padding: 12px 14px; }
.block .bt { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.o-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.o-item:last-child { border-bottom: none; }
.o-item img { width: 64px; height: 64px; border-radius: 7px; object-fit: cover; background: #f5f5f5; flex: none; }
.o-item .m { flex: 1; min-width: 0; }
.o-item .m .n { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.o-item .m .s { font-size: 11px; color: #999; margin-top: 4px; }
.o-item .r { text-align: right; flex: none; }
.o-item .r .p { font-size: 14px; }
.o-item .r .q { font-size: 12px; color: #999; margin-top: 4px; }
.amt-row { display: flex; justify-content: space-between; font-size: 13px; color: #555; padding: 6px 0; }
.amt-row.total { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 10px; font-size: 14px; }
.amt-row.total b { color: var(--red); font-size: 18px; }
.remark-input { width: 100%; border: none; background: #f7f7f7; border-radius: 8px; padding: 10px; font-size: 13px; resize: none; height: 62px; }
.bottom-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px; background: #fff; z-index: 50;
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 9px 12px; padding-bottom: calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.bottom-bar .tip { flex: 1; font-size: 13px; color: #666; }
.bottom-bar .tip b { color: var(--red); font-size: 19px; }
.big-btn {
  background: linear-gradient(90deg, #ff5f57, var(--red-dark)); color: #fff;
  padding: 11px 34px; border-radius: 24px; font-size: 16px; font-weight: 700;
}
.big-btn:disabled, .big-btn.off { opacity: .55; }

/* ---------- 订单列表 ---------- */
.o-tabs { display: flex; background: #fff; position: sticky; top: 44px; z-index: 20; }
.o-tabs button { flex: 1; padding: 11px 0; font-size: 14px; color: #666; position: relative; }
.o-tabs button.on { color: var(--red); font-weight: 700; }
.o-tabs button.on::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; background: var(--red); border-radius: 2px;
}
.order-card { background: #fff; border-radius: 10px; margin: 8px 10px; padding: 12px 13px; }
.order-card .hd { display: flex; justify-content: space-between; font-size: 13px; color: #666; margin-bottom: 8px; }
.order-card .hd .st { color: var(--red); font-weight: 700; }
.order-card .hd .st.gray { color: #999; }
.order-card .hd .st.green { color: #12b76a; }
.order-card .no { font-size: 11px; color: #aaa; }
.order-card .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.order-card .acts button {
  padding: 7px 16px; border-radius: 17px; font-size: 13px; border: 1px solid #ddd; color: #555;
}
.order-card .acts button.pri { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.order-card .acts button.warn { color: var(--gold); border-color: var(--gold); }

/* ---------- 订单详情 ---------- */
.o-status {
  background: linear-gradient(135deg, var(--red), #ff7a5c); color: #fff;
  padding: 20px 16px 22px;
}
.o-status .s { font-size: 20px; font-weight: 800; }
.o-status .d { font-size: 12.5px; opacity: .92; margin-top: 7px; line-height: 1.6; }
.o-status.gray { background: linear-gradient(135deg, #8a8a8a, #b5b5b5); }
.o-status.green { background: linear-gradient(135deg, #12b76a, #5edc9c); }
.addr-line { display: flex; gap: 10px; align-items: flex-start; }
.addr-line .mark { color: var(--red); font-size: 17px; }
.track-box { display: flex; align-items: center; gap: 10px; }
.track-box .t1 { font-size: 13.5px; color: #333; }
.track-box .t2 { font-size: 12px; color: #999; margin-top: 3px; }
.track-box .arr { margin-left: auto; color: #ccc; font-size: 16px; }

/* ---------- 物流时间线 ---------- */
.timeline { padding: 6px 4px 20px; position: relative; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-item .dot {
  width: 11px; height: 11px; border-radius: 50%; background: #ddd; flex: none; margin-top: 4px;
  position: relative; z-index: 2;
}
.tl-item::before {
  content: ''; position: absolute; left: 5px; top: 12px; bottom: -4px; width: 1px; background: #e8e8e8;
}
.tl-item:last-child::before { display: none; }
.tl-item.cur .dot { background: var(--red); box-shadow: 0 0 0 4px var(--red-light); }
.tl-item.cur .tx { color: var(--red); font-weight: 600; }
.tl-item .tx { font-size: 13.5px; line-height: 1.55; color: #444; }
.tl-item .tm { font-size: 11.5px; color: #aaa; margin-top: 4px; }

/* ---------- 支付页 ---------- */
.pay-amount { text-align: center; padding: 34px 0 26px; background: #fff; }
.pay-amount .a { font-size: 38px; font-weight: 900; }
.pay-amount .a small { font-size: 18px; }
.pay-amount .t { color: #999; font-size: 13px; margin-top: 8px; }
.pay-amount .cd { color: var(--red); font-size: 13px; margin-top: 6px; font-weight: 600; }
.pay-method { background: #fff; border-radius: 10px; margin: 10px; overflow: hidden; }
.pay-method .m {
  display: flex; align-items: center; gap: 12px; padding: 15px 14px; border-bottom: 1px solid var(--line);
}
.pay-method .m:last-child { border-bottom: none; }
.pay-method .wx {
  width: 36px; height: 36px; border-radius: 8px; background: #07c160; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800;
}
.pay-method .m .n { flex: 1; font-size: 15px; font-weight: 600; }
.pay-method .m .n small { display: block; font-size: 11.5px; color: #999; font-weight: 400; margin-top: 3px; }

/* 微信支付密码键盘 */
#sheet .wxpay-hd { text-align: center; padding: 6px 0 2px; }
#sheet .wxpay-hd .t { font-size: 16px; font-weight: 700; }
#sheet .wxpay-hd .x { position: absolute; }
#sheet .wxpay-amt { text-align: center; font-size: 30px; font-weight: 800; padding: 16px 0 20px; }
#sheet .wxpay-amt small { font-size: 15px; }
.pw-dots { display: flex; justify-content: center; gap: 14px; padding-bottom: 18px; }
.pw-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #ccc; }
.pw-dots i.f { background: #333; border-color: #333; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #e8e8e8; }
.keypad button {
  background: #fff; padding: 15px 0; font-size: 24px; font-weight: 600; color: #222;
}
.keypad button:active { background: #f2f2f2; }

/* ---------- 支付结果 ---------- */
.result { text-align: center; padding: 50px 20px 30px; }
.result .ic {
  width: 74px; height: 74px; border-radius: 50%; background: #07c160; color: #fff;
  font-size: 40px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.result .ic.red { background: var(--red); }
.result h2 { font-size: 20px; }
.result .sub { color: #999; font-size: 13px; margin-top: 8px; }
.result .acts { display: flex; gap: 12px; justify-content: center; margin-top: 30px; }
.result .acts a, .result .acts button {
  padding: 11px 24px; border-radius: 22px; font-size: 14.5px; border: 1px solid #ddd; color: #555;
}
.result .acts .pri { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.result .pay-ord-list { margin: 20px auto 0; text-align: left; max-width: 420px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }

/* ---------- 登录 ---------- */
.login-wrap { padding: 56px 30px 30px; }
.login-logo {
  display: block; width: 66px; height: 66px; border-radius: 18px; object-fit: cover;
  margin: 0 auto 12px; box-shadow: 0 8px 20px rgba(228,57,60,.35);
}
.login-slogan { text-align: center; color: #999; font-size: 12.5px; margin-bottom: 34px; }
.login-switch { display: flex; justify-content: space-between; margin-top: 18px; }
.login-switch span { color: #666; font-size: 14px; cursor: pointer; }
.login-switch span:last-child { text-align: right; }
.login-f { display: flex; align-items: center; border-bottom: 1.5px solid #eee; padding: 12px 2px; margin-bottom: 18px; }
.login-f .pre { color: #333; font-size: 15px; font-weight: 600; margin-right: 10px; }
.login-f input { flex: 1; border: none; font-size: 16px; background: var(--bg); }
#ap-name, #ap-sub { background: #fff; }
.login-f .code-btn { color: var(--red); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.login-f .code-btn:disabled { color: #bbb; }
.login-go {
  width: 100%; background: linear-gradient(90deg, #ff5f57, var(--red-dark)); color: #fff;
  padding: 13px 0; border-radius: 26px; font-size: 16.5px; font-weight: 700; margin-top: 8px;
}
.policy_tip { text-align: center; color: #999; font-size: 11.5px; margin-top: 16px; line-height: 1.7; }
.policy_tip-checkbox { width: 14px; height: 14px; vertical-align: -2px; accent-color: var(--red); }
.policy_tip span { color: #999; }

/* ---------- 我的 ---------- */
.me-head {
  background: linear-gradient(135deg, var(--red), #ff8a6b); color: #fff;
  padding: 30px 18px 46px;
  position: relative;
}
.me-head .set-btn {
  position: absolute; top: 8px; right: 10px; font-size: 21px; line-height: 1;
  padding: 6px; color: #fff; opacity: .95;
}
.me-head .u { display: flex; align-items: center; gap: 13px; }
.me-head .av {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800;
}
.me-head .n1 { font-size: 18px; font-weight: 800; }
.me-head .n2 { font-size: 12.5px; opacity: .9; margin-top: 4px; }
.me-head .n2.addr { max-width: 235px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.me-orders { background: #fff; border-radius: 12px; margin: -30px 10px 0; position: relative; padding: 14px 6px 12px; }
.me-orders .t { display: flex; justify-content: space-between; padding: 0 10px 12px; font-size: 14.5px; font-weight: 700; }
.me-orders .t .all { font-size: 12px; color: #999; font-weight: 400; }
.me-orders .row { display: flex; }
.me-orders .row a { flex: 1; text-align: center; font-size: 11.5px; color: #555; }
.me-orders .row a .e { font-size: 23px; display: block; margin-bottom: 4px; }
.me-list { background: #fff; border-radius: 12px; margin: 10px; overflow: hidden; }
.me-list a, .me-list button, .me-list .me-static {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 14px 15px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: #333;
}
.me-list a:last-child, .me-list button:last-child, .me-list .me-static:last-child { border-bottom: none; }
.me-list .arr { margin-left: auto; color: #ccc; }
.me-list .ic { font-size: 18px; }
.sheet-txt { padding: 4px 2px 12px; font-size: 13.5px; line-height: 1.95; color: #555; }
.sheet-txt b { color: #333; }

/* ---------- 评价页 ---------- */
.rate-stars { display: flex; gap: 12px; justify-content: center; padding: 22px 0; }
.rate-stars button { font-size: 36px; color: #ddd; line-height: 1; }
.rate-stars button.on { color: var(--gold); }
.rate-label { text-align: center; font-size: 13px; color: var(--gold); margin-top: -10px; padding-bottom: 10px; }
.review-text {
  width: 100%; min-height: 110px; border: 1px solid #eee; border-radius: 10px;
  padding: 11px; font-size: 14px; resize: none; background: #fafafa;
}

/* ---------- toast / loading ---------- */
#toast {
  position: fixed; top: 42%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.78); color: #fff; padding: 11px 18px; border-radius: 9px;
  font-size: 14px; z-index: 999; max-width: 78%; text-align: center; line-height: 1.5;
  display: none;
}
.loading {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.45); z-index: 998; font-size: 14px; color: #555;
}
.loading .box { background: rgba(0,0,0,.7); color: #fff; padding: 14px 22px; border-radius: 9px; }

/* 搜索页 */
.search-top { display: flex; gap: 8px; padding: 8px 10px; background: #fff; align-items: center; }
.search-top .searchbar { background: #f3f3f3; }
.search-top .cancel { color: #666; font-size: 14px; flex: none; }
.sort-bar { display: flex; background: #fff; position: sticky; top: 44px; z-index: 20; }
.sort-bar button { flex: 1; padding: 10px 0; font-size: 13.5px; color: #666; }
.sort-bar button.on { color: var(--red); font-weight: 700; }
.hot-words { display: flex; flex-wrap: wrap; gap: 9px; padding: 14px; }
.hot-words span { background: #f3f3f3; padding: 7px 15px; border-radius: 16px; font-size: 13px; color: #555; }

/* ---------- 多店铺 ---------- */
.shop-tag {
  display: block; margin-top: 4px; font-size: 10.5px; color: #888;
  background: #f5f5f5; border-radius: 4px; padding: 1px 6px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-bar {
  display: flex; align-items: center; gap: 9px; background: #fff;
  border-radius: 10px; margin: 8px 10px; padding: 10px 12px;
}
.shop-bar img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: #f3f3f3; flex: none; }
.shop-bar .nm { font-weight: 700; font-size: 14px; flex: none; max-width: 44%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-bar .sub { flex: 1; font-size: 11.5px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-bar em { font-style: normal; font-size: 12px; color: var(--red); font-weight: 600; flex: none; }

.shop-head {
  display: flex; align-items: center; gap: 11px; padding: 14px;
  background: linear-gradient(135deg, #ffffff, #fff4f1);
}
.shop-head img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: #f3f3f3; flex: none; border: 1px solid #f0e4e0; }
.shop-head .m { flex: 1; min-width: 0; }
.shop-head .n { font-size: 16px; font-weight: 800; }
.shop-head .s { font-size: 12px; color: #999; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-head .c { flex: none; font-size: 11.5px; color: #888; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 3px 9px; }

.cart-shop { background: #fff; border-radius: 10px; margin-bottom: 8px; padding: 0 10px 8px; overflow: hidden; }
.cart-shop-hd { padding: 11px 0 6px; }
.cart-shop-hd a { font-size: 13.5px; font-weight: 700; color: #333; }
.cart-shop .cart-item { margin-bottom: 6px; border-radius: 8px; background: #fafafa; }
.cart-shop-sum { text-align: right; font-size: 12.5px; color: #666; padding: 4px 4px 0; }

.split-tip {
  margin: 8px 10px 0; padding: 8px 12px; background: #fff7f4;
  border: 1px solid #ffd9cc; border-radius: 8px;
  font-size: 12px; color: var(--red); text-align: center;
}
.ck-shop .ck-pkg {
  float: right; font-size: 11px; font-weight: 400; color: #888;
  background: #f3f3f3; border-radius: 10px; padding: 2px 8px;
}
.ck-shop .amt-row:last-child { border-top: 1px dashed #eee; margin-top: 6px; padding-top: 8px; }

.pay-ord-list { background: #fff; border-radius: 10px; margin: 10px; padding: 4px 12px; }
.pay-ord-row {
  display: flex; align-items: center; gap: 8px; padding: 11px 0;
  border-bottom: 1px solid #f2f2f2; font-size: 13px;
}
.pay-ord-row:last-child { border-bottom: none; }
.pay-ord-row .sn { color: #555; flex: none; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-ord-row .on { color: #999; font-size: 11.5px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-ord-row .am { font-weight: 800; color: var(--red); flex: none; }
.pay-ord-row .stt { flex: none; font-size: 11.5px; padding: 2px 8px; border-radius: 10px; }
.pay-ord-row .stt.wait { background: #fff7f4; color: var(--red); }
.pay-ord-row .stt.ok { background: #eefaf0; color: #2fae4e; }

.apply-state { text-align: center; padding: 26px 18px; }
.apply-state .ic { font-size: 46px; }
.apply-state .t { font-size: 17px; font-weight: 800; margin-top: 12px; }
.apply-state .d { font-size: 13px; color: #888; margin-top: 7px; line-height: 1.6; }
.apply-state.red .t { color: var(--red); }
.apply-state.green .t { color: #2fae4e; }
.apply-state .big-btn { display: block; margin-top: 18px; }
