:root {
  --brand: #E22E1F;
  --brand-dark: #C4241A;
  --brand-soft: #FFF1F0;
  --gold: #FF9F1A;
  --gold-soft: #FFF7E8;
  --ink: #1F2123;
  --ink-2: #646A6D;
  --ink-3: #9AA0A6;
  --line: #EDEFF2;
  --bg: #F5F6F7;
  --card: #FFFFFF;
  --green: #00A862;
  --green-soft: #E8F8F0;
  --blue: #2E7CF6;
  --blue-soft: #EBF3FF;
  --purple: #7C5CFC;
  --purple-soft: #F1EEFF;
  --cyan: #00B0B0;
  --cyan-soft: #E5F7F7;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(0, 0, 0, .06);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px; line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body { padding-bottom: calc(56px + var(--safe-b)); }
body.no-nav { padding-bottom: 0; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--ink); }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 10px; }

/* ============ 顶部条 ============ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  height: 44px; display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
}
.topbar__back {
  width: 30px; height: 30px; display: grid; place-items: center;
  font-size: 19px; color: var(--ink); flex: none;
}
.topbar__title { font-size: 16px; font-weight: 600; flex: 1; }
.topbar__act { font-size: 13px; color: var(--ink-2); flex: none; }

/* ============ 搜索框 ============ */
.searchbar {
  position: sticky; top: 44px; z-index: 39;
  background: var(--card); padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.searchbox {
  display: flex; align-items: center; gap: 7px;
  height: 36px; border-radius: 18px; background: #F0F1F3;
  padding: 0 13px;
}
.searchbox__ico { color: var(--ink-3); font-size: 14px; flex: none; }
.searchbox input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 13.5px; min-width: 0;
}
.searchbox input::placeholder { color: var(--ink-3); }
.searchbox__clear { color: var(--ink-3); font-size: 15px; flex: none; }

/* ============ 金刚区 ============ */
.quick {
  background: var(--card);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px 4px; padding: 16px 8px 14px;
}
.quick__item { text-align: center; }
.quick__ico {
  width: 50px; height: 50px; border-radius: 50%;
  margin: 0 auto 6px; display: grid; place-items: center;
  font-size: 21px;
}
.quick__t { font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.qi-green { background: var(--green-soft); }
.qi-orange { background: var(--gold-soft); }
.qi-blue { background: var(--blue-soft); }
.qi-purple { background: var(--purple-soft); }
.qi-cyan { background: var(--cyan-soft); }
.qi-red { background: var(--brand-soft); }
.qi-gray { background: #F2F3F5; }

/* ============ 横幅 ============ */
.banner {
  margin: 10px; border-radius: var(--radius);
  padding: 16px 16px 15px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FFF3E8 0%, #FFE8DC 100%);
  border: 1px solid #FFE0CC;
}
.banner__t { font-size: 17px; font-weight: 700; color: #A8410E; line-height: 1.35; }
.banner__d { font-size: 12.5px; color: #B5703C; margin-top: 5px; }
.banner__tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.banner__tag {
  font-size: 11.5px; background: rgba(255, 255, 255, .82); color: #A8410E;
  padding: 2px 8px; border-radius: 4px; border: 1px solid #FFD9BF;
}
.banner__deco {
  position: absolute; right: -10px; bottom: -18px;
  font-size: 78px; opacity: .09; transform: rotate(-12deg);
}

/* ============ 分类 Tab ============ */
.tabs {
  display: flex; background: var(--card);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; position: sticky; top: 88px; z-index: 38;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__item {
  flex: none; padding: 11px 15px 10px;
  font-size: 14px; color: var(--ink-2); position: relative; white-space: nowrap;
}
.tabs__item.is-active { color: var(--brand); font-weight: 600; }
.tabs__item.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 22px; height: 2.5px; border-radius: 2px; background: var(--brand);
}

/* ============ 排序条 ============ */
.sortbar {
  display: flex; align-items: center; gap: 4px;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 0 12px; height: 40px;
  position: sticky; top: 132px; z-index: 37;
}
.sortbar__item {
  font-size: 13.5px; color: var(--ink-2);
  display: flex; align-items: center; gap: 2px; padding: 0 10px;
}
.sortbar__item.is-active { color: var(--brand); font-weight: 600; }
.sortbar__arrow { font-size: 9px; line-height: 1; }
.sortbar__count { margin-left: auto; font-size: 12px; color: var(--ink-3); }

/* ============ 商品列表（京东式） ============ */
.plist { padding: 8px 0; }
.pitem {
  display: flex; gap: 11px;
  background: var(--card); border-radius: var(--radius);
  padding: 11px; margin: 0 8px 8px; box-shadow: var(--shadow);
}
.pitem__img {
  width: 116px; height: 116px; border-radius: 8px; flex: none;
  background: #F7F8F9; overflow: hidden;
}
.pitem__img img { width: 100%; height: 100%; object-fit: cover; }
.pitem__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pitem__name {
  font-size: 14.5px; font-weight: 600; line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pitem__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pitem__spec { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.pitem__foot {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
}

.ptag {
  font-size: 11px; padding: 1.5px 6px; border-radius: 3px;
  background: var(--brand-soft); color: var(--brand); line-height: 1.5;
}
.ptag--gold { background: var(--gold-soft); color: #C77700; }
.ptag--gray { background: #F2F3F5; color: var(--ink-3); }

.price { color: var(--brand); font-weight: 700; font-size: 19px; line-height: 1; }
.price__sym { font-size: 13px; font-weight: 600; }
.price__unit { font-size: 11.5px; color: var(--ink-3); font-weight: 400; margin-left: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 40px; padding: 0 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600; transition: opacity .15s, transform .1s;
  border: 1px solid transparent;
}
.btn:active { opacity: .82; transform: scale(.985); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--ghost { background: var(--card); color: var(--brand); border-color: var(--brand); }
.btn--dark { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--danger { background: var(--card); color: var(--brand); border-color: #F3C3BF; }
.btn--sm { height: 30px; padding: 0 11px; font-size: 12.5px; font-weight: 500; border-radius: 6px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ============ 底部导航 ============ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
  display: flex;
}
.tabbar__item {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 0 5px; color: var(--ink-3); font-size: 10.5px;
}
.tabbar__ico { font-size: 20px; line-height: 1.15; }
.tabbar__item.is-active { color: var(--brand); }
.tabbar__badge {
  position: absolute; top: 3px; left: 50%; margin-left: 7px;
  min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--brand); color: #fff;
  border-radius: 999px; font-size: 9.5px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}

/* ============ 悬浮电话 ============ */
.call-fab {
  position: fixed; right: 14px; bottom: calc(70px + var(--safe-b));
  z-index: 36;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #FFB020, #FF8A00);
  color: #fff; display: grid; place-items: center; font-size: 21px;
  box-shadow: 0 4px 14px rgba(255, 138, 0, .42);
}
.call-fab:active { transform: scale(.94); }
.call-fab__tip {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%);
  background: rgba(31, 33, 35, .9); color: #fff; font-size: 11.5px;
  padding: 4px 8px; border-radius: 5px; white-space: nowrap; opacity: 0;
  transition: opacity .2s; pointer-events: none;
}
.call-fab:hover .call-fab__tip { opacity: 1; }

/* ============ 详情页 ============ */
.detail__gallery {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px;
  background: var(--card);
}
.detail__gallery::-webkit-scrollbar { display: none; }
.detail__gallery img {
  width: 78vw; max-width: 310px; aspect-ratio: 1; object-fit: cover;
  border-radius: 8px; flex: none; background: #F7F8F9;
}
.detail__info { background: var(--card); padding: 12px 12px 16px; }
.detail__name { font-size: 17px; font-weight: 600; line-height: 1.42; }
.detail__spec { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.detail__price {
  margin-top: 10px; background: var(--brand-soft);
  padding: 9px 11px; border-radius: 8px; display: inline-block;
}
.detail__sp { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 5px; }
.detail__intro {
  margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2); line-height: 1.75;
}

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 255, 255, .98); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 9px 12px calc(9px + var(--safe-b));
  display: flex; gap: 9px; align-items: center;
}
.bar .btn { flex: 1; }
.bar__icon {
  display: flex; flex-direction: column; align-items: center;
  font-size: 10.5px; color: var(--ink-2); position: relative; flex: none;
  width: 46px;
}
.bar__icon span:first-child { font-size: 19px; }
.bar__icon em {
  position: absolute; top: -3px; right: 2px;
  min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--brand); color: #fff; border-radius: 999px;
  font-size: 9.5px; font-weight: 700; font-style: normal;
  display: none; align-items: center; justify-content: center;
}

/* ============ 购物车 ============ */
.cart-item {
  display: flex; gap: 11px; align-items: center;
  background: var(--card); border-radius: var(--radius);
  padding: 11px; margin: 0 8px 8px; box-shadow: var(--shadow);
}
.cart-item__img {
  width: 84px; height: 84px; border-radius: 8px; flex: none;
  background: #F7F8F9; overflow: hidden;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { flex: 1; min-width: 0; }
.cart-item__name { font-size: 14px; font-weight: 600; line-height: 1.4; }
.cart-item__spec { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.cart-item__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stepper button { width: 28px; height: 27px; font-size: 16px; color: var(--ink-2); background: #fff; }
.stepper button:active { background: var(--bg); }
.stepper input {
  width: 38px; height: 27px; border: none; text-align: center;
  font-size: 13px; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.stepper input:focus { outline: none; }

.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 255, 255, .98); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 9px 12px calc(9px + var(--safe-b));
  display: flex; align-items: center; gap: 10px;
}
.cart-bar__total { flex: 1; font-size: 12.5px; color: var(--ink-2); }
.cart-bar__total b { color: var(--brand); font-size: 18px; font-weight: 700; }

/* ============ 表单 ============ */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); margin: 0 8px 8px;
}
.card__title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }

.field { margin-bottom: 13px; }
.field[hidden] { display: none; }
.field:last-child { margin-bottom: 0; }
.field__label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.field__label i { color: var(--brand); font-style: normal; margin-left: 2px; }
.field__hint { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }
.field__err { font-size: 12px; color: var(--brand); margin-top: 5px; display: none; }
.field__err.show { display: block; }
.input, .textarea {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid #DCDFE6; border-radius: 8px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.input.is-err, .textarea.is-err { border-color: var(--brand); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }

/* ============ 空态 ============ */
.empty { text-align: center; padding: 60px 20px; }
.empty__ico { font-size: 44px; opacity: .3; }
.empty__t { margin-top: 12px; font-size: 15px; font-weight: 600; }
.empty__d { margin-top: 5px; font-size: 13px; color: var(--ink-3); }
.empty .btn { margin-top: 18px; }

/* ============ 骨架屏 ============ */
.skel { background: linear-gradient(90deg, #EEF0F2 25%, #F7F8F9 50%, #EEF0F2 75%); background-size: 200% 100%; animation: skel 1.3s infinite; border-radius: 6px; }
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-item { display: flex; gap: 11px; background: var(--card); border-radius: var(--radius); padding: 11px; margin: 0 8px 8px; }
.skel-item__img { width: 116px; height: 116px; flex: none; }
.skel-item__b { flex: 1; padding-top: 4px; }
.skel-line { height: 12px; margin-bottom: 8px; }

/* ============ 加载失败兜底（防「看起来像空白」）============ */
.loaderr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 52px 24px; text-align: center; }
.loaderr__ico { font-size: 40px; line-height: 1; }
.loaderr__t { font-size: 16px; font-weight: 600; color: var(--ink); }
.loaderr__d { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.loaderr__btn { margin-top: 6px; padding: 10px 26px; border: 0; border-radius: 22px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 2px 8px rgba(226, 46, 31, .26); }
.loaderr__btn:active { transform: translateY(1px); }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; top: 22%;
  transform: translate(-50%, -10px);
  background: rgba(31, 33, 35, .92); color: #fff;
  padding: 11px 18px; border-radius: 8px; font-size: 14px;
  z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: rgba(226, 46, 31, .95); }
.toast.ok { background: rgba(0, 168, 98, .95); }

/* ============ 微信分享引导 ============ */
.share-guide { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.share-guide__mask {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .72);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.share-guide__panel {
  position: absolute; top: 0; right: 0; padding: 14px 18px;
  text-align: right; transform: translateY(-12px); opacity: 0;
  transition: opacity .25s, transform .25s; pointer-events: auto;
}
.share-guide__arrow {
  width: 0; height: 0; margin-left: auto;
  border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-bottom: 20px solid rgba(255, 255, 255, .92);
}
.share-guide__text { margin-top: 8px; color: #fff; font-size: 14px; }
.share-guide__dots {
  display: inline-block; background: rgba(255, 255, 255, .92); color: #333;
  border-radius: 5px; padding: 0 7px; font-weight: 700; letter-spacing: 2px;
}
.share-guide__close {
  position: absolute; top: 14px; left: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 19px;
  pointer-events: auto; line-height: 1;
}
.share-guide--show .share-guide__mask { opacity: 1; }
.share-guide--show .share-guide__panel { opacity: 1; transform: translateY(0); }

.share-fab {
  position: fixed; right: 14px; bottom: calc(126px + var(--safe-b));
  z-index: 35; display: flex; align-items: center; gap: 5px;
  background: var(--card); color: var(--brand);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; box-shadow: 0 3px 14px rgba(0, 0, 0, .1);
}
.share-fab__ico { font-weight: 700; letter-spacing: 1px; }
.share-fab__txt { font-size: 12.5px; font-weight: 600; }

/* ============ 订单 ============ */
.order-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); margin: 0 8px 8px; overflow: hidden;
}
.order-card__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.order-card__no { color: var(--ink-3); font-size: 12px; }
.order-card__body { padding: 10px 12px; }
.order-card__item { display: flex; gap: 8px; padding: 5px 0; font-size: 13px; }
.order-card__item .n { flex: 1; }
.order-card__item .q { color: var(--ink-3); font-size: 12px; }
.order-card__meta { font-size: 12.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.7; }
.order-card__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: #FAFBFC; border-top: 1px solid var(--line);
}
/* 整卡可点进详情 */
.order-card[data-order-no] { cursor: pointer; }
.order-card[data-order-no]:active { background: #F7F8F9; }
.order-card__more { font-size: 12.5px; color: var(--brand); font-weight: 600; }

/* ============ 订单详情页 ============ */
.odt { max-width: 560px; margin: 0 auto; }
.odt__status {
  position: relative; padding: 22px 18px 18px;
  background: linear-gradient(135deg, #FFF3EC 0%, #F5F6F7 100%);
  border-bottom: 1px solid var(--line);
}
.odt__status-t { font-size: 19px; font-weight: 700; color: var(--ink); }
.odt__status-d { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.6; padding-right: 76px; }
.odt__tag {
  position: absolute; right: 18px; top: 24px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
}
.odt__block {
  background: var(--card); margin: 8px; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 14px 12px;
}
.odt__block-t { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.odt__kv {
  display: flex; gap: 12px; font-size: 13px; line-height: 1.8;
  padding: 3px 0; align-items: flex-start;
}
.odt__kv > span:first-child { flex: none; width: 68px; color: var(--ink-3); }
.odt__kv > b { flex: 1; font-weight: 500; color: var(--ink); word-break: break-all; }
.odt__addr { font-weight: 600 !important; }
.odt__no { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px !important; }
.odt__item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.odt__item:last-of-type { border-bottom: 0; }
.odt__name { flex: 1; line-height: 1.55; }
.odt__spec { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.odt__num { flex: none; font-size: 12px; color: var(--ink-3); }
.odt__amt { flex: none; width: 62px; text-align: right; font-weight: 600; }
.odt__total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.odt__total b { color: var(--brand); font-size: 19px; font-weight: 700; }
.odt__paytip {
  margin-top: 10px; padding: 9px 11px; border-radius: 8px;
  background: #FFF7E8; color: #B4600B; font-size: 12.5px; line-height: 1.65;
}
.odt__acts { display: flex; gap: 10px; margin: 14px 8px 0; }
.odt__acts .btn { flex: 1; }

.status { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.status--pending { background: var(--gold-soft); color: #C77700; }
.status--confirmed { background: var(--blue-soft); color: #2E7CF6; }
.status--shipped { background: var(--green-soft); color: #00A862; }
.status--completed { background: #F0F1F3; color: var(--ink-2); }
.status--cancelled { background: #F2F3F5; color: var(--ink-3); }

/* ============ 成功页 ============ */
/* 顶部留白要够大才能避开 sticky topbar（44px），
   否则滚动时「✓ 图标 + 订单号」会被顶栏盖住 */
.done { text-align: center; padding: 30px 22px 40px; scroll-margin-top: 60px; }
.done__ico {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-size: 30px;
}
.done__t { font-size: 18px; font-weight: 600; }
.done__d { margin-top: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.done__no {
  display: inline-block; margin-top: 13px; padding: 6px 14px;
  background: var(--card); border-radius: 6px; font-size: 12.5px;
  border: 1px solid var(--line);
}
.done__acts { margin-top: 24px; display: flex; gap: 10px; }
.done__acts .btn { flex: 1; }

/* ============ 付款页：跳转支付按钮 ============ */
.payjump {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding: 13px 18px; border-radius: 24px;
  font-size: 16px; font-weight: 600; text-decoration: none; color: #fff;
  transition: transform .12s ease, opacity .12s ease;
}
.payjump:active { transform: scale(.98); opacity: .9; }
.payjump--wx { background: linear-gradient(135deg, #07C160, #06AD56); box-shadow: 0 3px 12px rgba(7,193,96,.32); }
.payjump--ali { background: linear-gradient(135deg, #1677FF, #0E5FD8); box-shadow: 0 3px 12px rgba(22,119,255,.32); }
.payjump__ico { font-size: 19px; line-height: 1; }
.payjump__t { letter-spacing: .5px; }
.payjump__tip { margin-top: 9px; font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.65; }
.payjump__tip--warn { color: var(--brand); }

/* ============ 登录页 ============ */
.login-page {
  min-height: 100vh;
  background: linear-gradient(170deg, #FFF3EC 0%, #F5F6F7 42%);
  padding: 0 0 30px;
}
.login-hero { padding: 34px 24px 26px; text-align: center; }
.login-hero__logo {
  width: 58px; height: 58px; border-radius: 15px; margin: 0 auto 12px;
  background: linear-gradient(135deg, #FF6A3D, #E22E1F);
  color: #fff; display: grid; place-items: center;
  font-size: 25px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(226, 46, 31, .28);
}
.login-hero__t { font-size: 20px; font-weight: 700; }
.login-hero__d { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }

.login-card {
  max-width: 400px; margin: 0 auto;
  background: var(--card); border-radius: 14px;
  padding: 22px 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
}
.login-card__title { font-size: 17px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.login-card__sub { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-bottom: 20px; }
.login-card__foot { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: 16px; }
.login-card__foot a { color: var(--brand); font-weight: 600; }
.login-card__note { text-align: center; font-size: 11.5px; color: var(--ink-3); margin-top: 14px; }

.login-switch {
  display: flex; background: #F2F3F5; border-radius: 8px;
  padding: 3px; margin-bottom: 18px;
}
.login-switch button {
  flex: 1; height: 32px; border-radius: 6px; font-size: 13.5px;
  color: var(--ink-2); transition: all .18s;
}
.login-switch button.is-active {
  background: var(--card); color: var(--brand); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* 登录方式切换（密码 / 验证码）—— 承皓自律同款 */
/* 注意：显式声明了 display 会覆盖 hidden 属性的默认 display:none，
   所以要额外用 [hidden] 兜住，否则 hidden=true 也藏不住 */
.login-ways[hidden] { display: none; }
.login-ways {
  display: flex; gap: 18px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.login-ways button {
  position: relative; padding: 0 0 9px; font-size: 14px;
  color: var(--ink-2); transition: color .18s;
}
.login-ways button.is-active { color: var(--brand); font-weight: 600; }
.login-ways button.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; border-radius: 2px; background: var(--brand);
}

/* 验证码输入行 */
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row[hidden] { display: none; }
.code-row .input { flex: 1; min-width: 0; }
.code-row__btn {
  flex: none; padding: 0 14px; height: 44px; font-size: 13.5px;
  color: var(--brand); border-color: #F3C3BF; background: var(--card);
  white-space: nowrap;
}
.code-row__btn:disabled { color: var(--ink-3); border-color: var(--line); background: #F7F8F9; }

/* ============ 后台 ============ */
.admin-body { background: var(--bg); }
.admin-top {
  position: sticky; top: 0; z-index: 30;
  background: #1F2123; color: #fff;
  padding: 11px 13px; display: flex; align-items: center; justify-content: space-between;
}
.admin-top__t { font-size: 15.5px; font-weight: 600; }
.admin-top__u { font-size: 11.5px; opacity: .65; margin-top: 1px; }
.admin-tabs {
  position: sticky; top: 50px; z-index: 29;
  display: flex; background: var(--card); border-bottom: 1px solid var(--line);
}
.admin-tabs button {
  flex: 1; padding: 10px 0; font-size: 13.5px; color: var(--ink-3);
  border-bottom: 2px solid transparent;
}
.admin-tabs button.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.admin-main { padding: 10px 0 40px; max-width: 720px; margin: 0 auto; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 8px; }
.stat {
  background: var(--card); border-radius: var(--radius); padding: 13px;
  box-shadow: var(--shadow);
}
.stat__n { font-size: 23px; font-weight: 700; color: var(--brand); line-height: 1.15; }
.stat__l { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.mrow {
  background: var(--card); border-radius: var(--radius);
  padding: 11px 12px; margin: 0 8px 8px; box-shadow: var(--shadow);
}
.mrow__top { display: flex; gap: 10px; }
.mrow__img {
  width: 56px; height: 56px; border-radius: 7px; flex: none;
  background: #F7F8F9; overflow: hidden;
}
.mrow__img img { width: 100%; height: 100%; object-fit: cover; }
.mrow__name { font-size: 14px; font-weight: 600; }
.mrow__spec { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.mrow__acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

.admin-field { margin-bottom: 12px; }
.admin-field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; font-weight: 600; }
.admin-field .input { height: 40px; }
.admin-field .textarea { min-height: 68px; }
.admin-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.admin-hero {
  background: linear-gradient(160deg, #0F5C4A, #0A3F33);
  color: #fff; padding: 34px 24px 28px; text-align: center;
}
.admin-hero__logo {
  width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 12px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
  display: grid; place-items: center; font-size: 23px; font-weight: 700;
}
.admin-hero__t { font-size: 19px; font-weight: 700; }
.admin-hero__d { font-size: 12.5px; opacity: .72; margin-top: 5px; }

@media (max-width: 340px) {
  .quick { grid-template-columns: repeat(4, 1fr); gap: 10px 2px; }
  .quick__ico { width: 42px; height: 42px; font-size: 18px; }
  .pitem__img { width: 96px; height: 96px; }
}

/* ============ 后台登录页访问提示 ============ */
.admin-tip {
  margin: 10px 0 14px; padding: 10px 12px;
  background: #FFF7E8; border: 1px solid #FFE1B0;
  border-radius: 8px; font-size: 12.5px; line-height: 1.75;
  color: #7A5B18;
}
.admin-tip b { display: block; font-size: 13px; margin-bottom: 3px; color: #8A6410; }

/* ============ 底部操作栏与导航栏共存 ============ */
/* 结算栏 / 提交栏层级高于底部导航，且页面可声明隐藏导航栏（淘宝式：底部独占结算栏） */
body.no-tabbar .tabbar { display: none; }
body.has-bottom-bar .plist,
body.has-bottom-bar .orders-wrap { padding-bottom: calc(64px + var(--safe-b)); }
body.has-bottom-bar > #app > .plist,
body.has-bottom-bar #app > .plist { padding-bottom: calc(64px + var(--safe-b)); }
/* 付款成功页有底部导航栏时，底部按钮不能被导航栏盖住 */
body.has-bottom-bar .wrap,
body.has-bottom-bar #app > .wrap { padding-bottom: calc(74px + var(--safe-b)); }

/* 有底部固定操作栏（.bar）时，内容区要留出空间，否则末尾内容被盖住且无法滚动。
   注意：body.no-nav 把 body 的 padding-bottom 清成了 0，所以要在 #app 上补。 */
body.has-bottom-bar #app { padding-bottom: calc(70px + var(--safe-b)); }
/* 购物车页与订单页的内容直接挂在 #app 下（.card 列表），上面的 #app 规则已覆盖；
   .plist/.orders-wrap 在 #app 内部，会叠加，因此这里抵消掉重复的留白 */
body.has-bottom-bar #app > .plist,
body.has-bottom-bar #app > .orders-wrap { padding-bottom: 0; }

/* ============ 登录页 · 记住密码 ============ */
.remember-row {
  display: flex; align-items: center; gap: 7px;
  margin-top: 11px; font-size: 13px; color: var(--ink-2);
  user-select: none; -webkit-user-select: none;
}
.remember-row input[type="checkbox"] {
  width: 16px; height: 16px; margin: 0; accent-color: var(--brand);
}
.remember-row[hidden] { display: none; }

/* ============ 我的 · 修改密码弹窗 ============ */
.pwd-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.pwd-modal[hidden] { display: none; }
.pwd-modal__card {
  width: 100%; max-width: 560px; background: var(--card);
  border-radius: 14px 14px 0 0;
  padding: 18px 16px calc(20px + var(--safe-b));
}
.pwd-modal__title {
  font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 14px;
}
.pwd-modal__card .field { margin-bottom: 12px; }
.pwd-modal__err {
  min-height: 18px; font-size: 12.5px; color: var(--brand);
  margin-bottom: 4px; visibility: hidden;
}
.pwd-modal__err.show { visibility: visible; }

/* ============ 商品详情 · 图片完整展示 ============ */
/* 商品图不裁切（cover 会把长图切掉，用户反馈"显示不全"） */
.detail__gallery img {
  object-fit: contain;
}

/* ============ 应用内确认弹窗（替代微信会吞掉的 confirm） ============ */
.ui-confirm {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.ui-confirm--show { opacity: 1; pointer-events: auto; }
.ui-confirm__mask {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .45);
}
.ui-confirm__box {
  position: relative; width: 78%; max-width: 320px;
  background: var(--card); border-radius: 14px; overflow: hidden;
  transform: scale(.92); transition: transform .18s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.ui-confirm--show .ui-confirm__box { transform: scale(1); }
.ui-confirm__msg {
  padding: 26px 22px 20px; text-align: center;
  font-size: 16px; line-height: 1.55; color: var(--ink); word-break: break-all;
}
.ui-confirm__btns { display: flex; border-top: 1px solid var(--line); }
.ui-confirm__btn {
  flex: 1; padding: 13px 0; background: var(--card); border: 0;
  font-size: 16px; color: var(--ink-2); cursor: pointer;
}
.ui-confirm__btn + .ui-confirm__btn { border-left: 1px solid var(--line); }
.ui-confirm__btn:active { background: var(--bg); }
.ui-confirm__btn--ok { color: var(--brand); font-weight: 600; }
.ui-confirm__btn--danger { color: #fff; background: var(--brand); font-weight: 600; }
.ui-confirm__btn--danger:active { background: var(--brand-dark); }
