* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", sans-serif;
  font-size: 16px;
  color: #222;
  background: #f6f6f4;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
}

.title {
  margin: 0 0 8px;
  font-size: 24px;
}

.muted { color: #888; }

.hint {
  margin: 16px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  color: #666;
}

.error { color: #b3261e; }
.ok { color: #1b7f3a; }

.form-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.form-row input {
  flex: 1;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.form-row button,
.btn {
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #2f6f4f;
  color: #fff;
  cursor: pointer;
}

.btn-plain {
  background: #e5e5e2;
  color: #333;
}

/* ---------- 顾客页（第 2 刀）。上面的类展柜页也在用，下面只追加 ---------- */

body.shop {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 14px 16px 10px;
  background: #2f6f4f;
  color: #fff;
}

.shop-header .title {
  margin: 0;
  font-size: 22px;
}

.shop-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 12px 16px;
}

.net-error {
  margin: 0;
  padding: 12px 16px;
  background: #fdecea;
  color: #b3261e;
}

.net-error a { color: #b3261e; font-weight: bold; }

.card {
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
}

.card-title {
  margin: 0 0 8px;
  font-size: 16px;
  color: #2f6f4f;
}

.card p { margin: 0; }

.info {
  display: grid;
  grid-template-columns: 3em 1fr;
  gap: 8px 10px;
  margin: 0;
}

.info dt { color: #888; }
.info dd { margin: 0; word-break: break-all; }

.tel {
  color: #2f6f4f;
  font-weight: bold;
  text-decoration: none;
}

.activity-desc { margin-top: 4px !important; color: #555; }

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-small { padding: 6px 12px; font-size: 14px; }

.btn:disabled {
  background: #ccc;
  color: #fff;
  cursor: not-allowed;
}

.home-go { margin: 4px 0 0; }

/* 分类 */
.cat-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  -webkit-overflow-scrolling: touch;
}

.chip {
  flex: none;
  padding: 6px 14px;
  font-size: 15px;
  border: 1px solid #d0d0cc;
  border-radius: 16px;
  background: #fff;
  color: #333;
  cursor: pointer;
}

.chip.active {
  border-color: #2f6f4f;
  background: #2f6f4f;
  color: #fff;
}

/* 商品 */
.product,
.cart-item {
  display: flex;
  gap: 12px;
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
}

.thumb {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}

.cart-item .thumb { width: 60px; height: 60px; }

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
  background: repeating-linear-gradient(45deg, #efefec, #efefec 6px, #e6e6e2 6px, #e6e6e2 12px);
}

.product-info,
.cart-info {
  flex: 1;
  min-width: 0;
}

.product-name { font-size: 16px; word-break: break-all; }

.product-price {
  margin-top: 4px;
  font-size: 17px;
  font-weight: bold;
  color: #c0392b;
}

.product-stock { margin-top: 2px; font-size: 13px; color: #888; }
.product-stock.soldout { color: #b3261e; }

.product-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.empty {
  padding: 24px 0;
  text-align: center;
  color: #888;
}

/* 购物车 */
.cart-item { align-items: center; }

.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-btn {
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  border: 1px solid #d0d0cc;
  border-radius: 50%;
  background: #fff;
  color: #2f6f4f;
  cursor: pointer;
}

.step-btn:disabled { color: #ccc; cursor: not-allowed; }

.step-qty { min-width: 1.6em; text-align: center; font-size: 16px; }

.clear-btn { display: block; margin: 0 0 12px auto; }

.sum-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.sum-row.total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  font-size: 18px;
  font-weight: bold;
}

.summary .gap {
  margin-top: 8px !important;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff4e5;
  color: #a35a00;
}

.small { font-size: 13px; }

.notice {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4e5;
  color: #a35a00;
}

.summary .notice { margin: 8px 0 0; }

/* 底栏 */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid #e0e0dc;
  background: #fff;
}

.tabbar a {
  position: relative;
  flex: 1;
  padding: 16px 0;
  text-align: center;
  font-size: 16px;
  color: #666;
  text-decoration: none;
}

.tabbar a.active { color: #2f6f4f; font-weight: bold; }

.badge {
  display: inline-block;
  min-width: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 9px;
  background: #c0392b;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  vertical-align: top;
}

.badge[hidden] { display: none; }

/* 提示和复制弹窗 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 20;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 15px;
}

.toast[hidden],
.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}

.modal-box {
  width: 100%;
  max-width: 420px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
}

.modal-box textarea {
  width: 100%;
  margin: 8px 0;
  padding: 8px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* ---------- 第 3 刀：结算、我的、地址。只追加 ---------- */

.field {
  display: block;
  margin: 0 0 12px;
}

.field-label {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
  color: #666;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

.field textarea { resize: vertical; }

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.row-actions .btn[hidden] { display: none; }

.loc-row { margin-top: 0; }
.loc-status { margin: 6px 0 0 !important; }

.me-hint { margin-top: 8px !important; }

.ok-notice {
  background: #e8f5ec;
  color: #1b7f3a;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-head .card-title { margin: 0; }

.addr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.addr-item .row-actions { margin-top: 0; flex: none; }

.addr-text {
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.addr-editor {
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  background: #f6f6f4;
}

.card > .btn-small { margin-top: 10px; }

.check {
  display: block;
  margin: 10px 0 0;
  font-size: 15px;
}

.addr-choices { margin: 14px 0 12px; }

.choice {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0ee;
  word-break: break-all;
}

.back-link {
  display: inline-block;
  margin: 0 0 10px;
  color: #2f6f4f;
  text-decoration: none;
}

.checkout-go { margin-top: 12px; }

.checkout-error a { color: #a35a00; font-weight: bold; }

.order {
  margin: 0 0 10px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.order summary {
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.order summary::-webkit-details-marker { display: none; }

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.order-no { font-weight: bold; }
.order-status { color: #a35a00; }

.order-body {
  padding: 0 12px 12px;
  border-top: 1px solid #eee;
}

.order-info { margin-top: 10px; }

/* ---------- 第 4 刀：付款方式、付款弹窗、展柜收款确认。只追加 ---------- */

.choice-off { color: #aaa; }

.test-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: #fff4e5;
  color: #a35a00;
  border: 1px solid #f0c27a;
  font-size: 12px;
  font-weight: normal;
  line-height: 18px;
  vertical-align: middle;
}

.modal { overflow-y: auto; }

.pay-box {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  text-align: center;
}

.pay-title {
  margin: 0 0 4px;
  font-size: 18px;
  color: #2f6f4f;
}

.pay-sub { margin: 0 0 8px; }

.pay-amount {
  margin: 4px 0 8px;
  font-size: 34px;
  font-weight: bold;
  color: #c0392b;
}

.pay-test { margin: 0 0 10px; text-align: left; }

.pay-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  max-width: 100%;
  min-height: 240px;
  margin: 0 auto 10px;
  border-radius: 8px;
  background: #f6f6f4;
}

.pay-qr img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.pay-qr.no-qr {
  color: #888;
  font-size: 15px;
  border: 1px dashed #ccc;
}

.pay-tools { justify-content: center; margin: 0 0 8px; }
.pay-tools .btn { text-decoration: none; }

.pay-how { margin: 0 0 10px; text-align: left; }

.pay-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e8f5ec;
  color: #1b5e33;
  text-align: left;
}

.pay-later { margin-top: 8px; }

/* 展柜收款确认 */
.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 12px;
}

.pay-order {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.pay-order-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 8px;
}

.pay-state { color: #a35a00; }
.pay-state.declared { color: #b3261e; font-weight: bold; }
.pay-state.paid { color: #1b7f3a; }

.switch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.switch-row input { width: 20px; height: 20px; }

.qr-list { margin: 0; padding-left: 20px; }
.qr-list li { padding: 2px 0; }

/* ---------- 第 5 刀：送货大屏、来单提醒、本机地址（只在展柜页用） ---------- */

.bell-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4e5;
  color: #a35a00;
  font-size: 18px;
}

.bell-banner[hidden] { display: none; }
.bell-controls { margin: 0 0 8px; align-items: center; }

.board-group + .board-group { margin-top: 14px; }

.board-group-title {
  margin: 8px 0 6px;
  font-size: 18px;
}

.board-order {
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid #e3e3e3;
  border-left: 6px solid #a35a00;
  border-radius: 8px;
  background: #fff;
}

.board-order.delivering { border-left-color: #1a5fb4; }

.board-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 8px;
}

.board-no { font-size: 18px; }

.board-status {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 14px;
  background: #fff4e5;
  color: #a35a00;
}

.board-status.delivering { background: #e8f0fb; color: #1a5fb4; }

.board-goods {
  margin: 8px 0;
  padding: 0;
  list-style: none;
  font-size: 20px;
}

.board-goods li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  border-bottom: 1px dashed #eee;
}

.board-goods-qty { font-weight: bold; white-space: nowrap; }

.board-info { font-size: 17px; }
.board-tel { color: #1a5fb4; }
.board-actions { margin-top: 10px; align-items: center; }

.btn-big { padding: 10px 22px; font-size: 18px; }

.lan-title { margin: 10px 0 4px; font-size: 15px; }
.lan-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.lan-label { color: #888; min-width: 3.5em; }
.lan-url { word-break: break-all; font-size: 16px; }

/* ---------- 第 6 刀：入库和改货 ---------- */
.stock-step { margin: 14px 0 6px; font-size: 16px; }

.file-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; }
.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.scan-live-box, .scan-photo-box { margin: 8px 0; }
.scan-live-box video, .scan-photo-box img {
  display: block;
  width: 100%;
  max-width: 480px;
  max-height: 360px;
  object-fit: contain;
  background: #111;
  border-radius: 8px;
}
.scan-live-box .btn { margin-top: 6px; }

.product-form { display: flex; flex-direction: column; gap: 8px; }
.pf-image-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-thumb, .stock-thumb {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 8px;
  background: #f1f1f1;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 13px;
}
.pf-thumb img, .stock-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-field { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.pf-field input, .pf-field select {
  padding: 8px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}
.pf-field input:disabled, .pf-field select:disabled { background: #f4f4f4; color: #777; }

.stock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.stock-item.off { opacity: 0.6; }
.stock-thumb { width: 52px; height: 52px; flex-basis: 52px; }
.stock-info { flex: 1; min-width: 0; }
.stock-info strong { word-break: break-all; }

/* ---------- 第 7 刀：统计、活动、店铺配置、加到桌面、大字 ---------- */
/* 三档字号：只在顾客页（body.shop）生效。现有样式都是 px，所以整页放大。 */
html[data-font="1.2"] body.shop { zoom: 1.2; }
html[data-font="1.4"] body.shop { zoom: 1.4; }

.shop-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-header .title { flex: 1; min-width: 0; word-break: break-all; }
.font-switch { display: flex; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 8px; overflow: hidden; }
.font-switch button {
  padding: 4px 8px;
  font-size: 14px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.font-switch button + button { border-left: 1px solid rgba(255, 255, 255, 0.6); }
.font-switch button.active { background: #fff; color: #2f6f4f; font-weight: bold; }

.a2hs-banner {
  max-width: 640px;
  margin: 10px auto 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e1;
  border: 1px solid #f0d58a;
}
.a2hs-banner p { margin: 0 0 6px; }
.a2hs-banner .a2hs-title { font-weight: bold; }
#a2hs-guide p { margin: 0 0 6px; }

.pay-open-alipay { display: block; margin-top: 10px; text-align: center; text-decoration: none; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.stat-box { padding: 10px; border-radius: 8px; background: #f4f7f5; }
.stat-value { font-size: 20px; font-weight: bold; word-break: break-all; }
.stats-rank { margin: 0; padding-left: 24px; }
.stats-rank li { padding: 2px 0; }

.pf-field textarea {
  padding: 8px 10px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
}
.cfg-pair { display: flex; gap: 8px; }
.cfg-pair input { flex: 1; min-width: 0; padding: 8px 10px; font-size: 16px; border: 1px solid #ccc; border-radius: 6px; }

.qr-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 4px 0; list-style: none; }
.qr-list .qr-row { padding-left: 0; }
.qr-state { flex: 1; min-width: 120px; }

/* ---------- 排版这一轮：每屏只做一件事。只改排版，颜色沿用上面已有的 ---------- */
/* 都写 px、都在 body 里，三档大字（body.shop zoom）照样跟着放大。 */

[hidden] { display: none !important; }

details.fold > summary {
  cursor: pointer;
  color: #2f6f4f;
  font-size: 14px;
  padding: 4px 0;
}
details.fold p { margin: 6px 0 0; }

/* 顾客页：顶栏只放店名，不再吸顶（货架的分类条吸顶） */
.shop-header { position: static; }

/* 首页第一屏 */
.home-card { padding: 12px 14px; }
.home-line { margin: 0 0 6px; line-height: 1.5; word-break: break-all; }
.home-line:last-child { margin-bottom: 0; }
.home-label { margin-right: 6px; font-size: 14px; color: #888; white-space: nowrap; word-break: keep-all; display: inline-block; }
.home-contact .home-label + span + .home-label { margin-left: 12px; }
.home-rules { margin-left: 6px; font-size: 14px; color: #555; }
.home-oneline {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}
.home-oneline.open { white-space: normal; }
.home-oneline #store-activity,
.home-oneline #store-activity p { display: inline; }
.home-oneline #store-activity p { margin: 0 0 0 6px !important; }
.home-more { margin: 14px 0 0; font-size: 14px; }
.a2hs-banner { max-width: none; margin: 12px 0 0; }
.a2hs-banner .a2hs-fold { margin: 0 0 6px; }
.a2hs-banner .a2hs-fold > summary { color: inherit; font-size: 15px; }

/* 货架：分类条吸顶，一个商品一行 */
.cat-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: -12px -12px 8px;
  padding: 10px 12px 8px;
  background: #f6f6f4;
}
.product { align-items: center; margin-bottom: 8px; padding: 8px; }
.product .thumb { width: 64px; height: 64px; }
.product .product-info {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 8px;
  align-items: center;
}
.product .product-name,
.product .product-price,
.product .product-stock { grid-column: 1; }
.product .product-price { margin-top: 2px; }
.product .product-actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-top: 0;
}
.product .product-actions .btn:not(.btn-plain) { order: 1; padding: 8px 14px; font-size: 15px; }
/* 分享缩小放在加购下面，不抢位置 */
.product .product-actions .btn-plain {
  order: 2;
  padding: 2px 6px;
  font-size: 12px;
  background: transparent;
  color: #888;
}

/* 底栏定高，底部固定条按这个高度停 */
.tabbar a { padding: 0; height: 52px; line-height: 52px; }

/* 购物车 / 结算的底部固定条：放在内容末尾，滚到底不会挡住最后一行 */
.sticky-bar {
  position: sticky;
  bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  margin: 8px -12px 0;
  padding: 8px 12px;
  border-top: 1px solid #e0e0dc;
  background: #f6f6f4;
}
.sticky-bar .sum-row.total { margin: 0 0 6px; padding: 0; border-top: 0; }
.sticky-bar .checkout-go { margin-top: 0; }
.sticky-bar .notice { margin: 0 0 6px; }
#tab-cart .summary { margin-bottom: 0; }
#tab-cart .clear-btn { margin-bottom: 8px; }

/* 结算：1 倍字号时 姓名、手机、地址、付款方式、提交 在一屏 */
#tab-checkout .back-link { margin-bottom: 6px; }
#tab-checkout .card { margin-bottom: 8px; padding: 10px 12px; }
#tab-checkout .card-title { margin-bottom: 6px; }
.checkout-sum > summary { cursor: pointer; list-style: none; }
.checkout-sum > summary::-webkit-details-marker { display: none; }
.checkout-sum > summary .sum-row.total { margin: 0; padding: 0; border-top: 0; font-size: 17px; }
.checkout-sum > summary .sum-row.total span:first-child::before { content: '▸ '; color: #888; }
.checkout-sum[open] > summary .sum-row.total span:first-child::before { content: '▾ '; }
.checkout-sum[open] > summary { margin-bottom: 6px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checkout-form .field { margin-bottom: 6px; }
.checkout-form .field-label { margin-bottom: 2px; font-size: 13px; }
.checkout-form .field input,
.checkout-form .field textarea { padding: 8px 10px; }
.checkout-form .me-hint { margin: 0 0 4px !important; }
.checkout-form .addr-choices { margin: 6px 0; }
.checkout-form .choice { padding: 6px 0; }
.checkout-form .loc-status { margin-top: 4px !important; }
.pay-choices { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
.pay-choices .choice { padding: 6px 0; }

/* 我的：三行总览，点一行进下一层 */
.me-home { padding: 0 14px; }
.me-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #eee;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.me-row:last-child { border-bottom: 0; }
.me-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; word-break: break-all; }
.me-row-title { font-size: 17px; }
.me-row-side { flex: none; margin-left: 8px; color: #888; white-space: nowrap; }
.order-row { padding: 10px 0; }
.order-row .me-row-side { color: inherit; font-weight: bold; }
.order.order-detail { border: 0; border-radius: 10px; }
.order-detail .order-body { margin-top: 8px; padding: 8px 0 0; border-top: 1px solid #eee; }
.me-extra { padding: 10px 14px; }
.me-extra .card-title { margin: 0; }
.me-extra .font-switch { display: inline-flex; border-color: #2f6f4f; }
.me-extra .font-switch button { padding: 6px 14px; font-size: 15px; color: #2f6f4f; }
.me-extra .font-switch button + button { border-left-color: #2f6f4f; }
.me-extra .font-switch button.active { background: #2f6f4f; color: #fff; }

/* 展柜页：第一屏 = 来单提醒 + 入口 + 送货大屏 */
#bell-card { padding: 10px 14px; }
#bell-card .card-title { margin-bottom: 6px; }
#bell-card .bell-controls { margin: 0 0 4px; }
#bell-card #bell-state { margin: 0 0 2px; }
.bell-banner { cursor: pointer; }

.admin-entries {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 0 12px;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.admin-entries .btn { flex: none; white-space: nowrap; text-decoration: none; }
.panel-back { margin: 0 0 8px; }

/* 一单在一屏里看完：货和数量、地址、电话、距离、三个按钮 */
.board-order { padding: 10px 12px; }
.board-goods { margin: 6px 0; font-size: 18px; }
.board-goods li { padding: 1px 0; }
.board-info { grid-template-columns: 3em 1fr; gap: 4px 8px; font-size: 16px; }
.board-actions { margin-top: 8px; }

/* 入库：三步标题当开关 */
.stock-toggle {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #eee;
  cursor: pointer;
  user-select: none;
}
.stock-toggle::before { content: '▸ '; color: #888; }
.stock-toggle.open::before { content: '▾ '; }
.stock-body { padding: 0 0 10px; }
#scan-msg { margin: 0 0 8px; }

/* 店铺配置：店 / 外送 / 收款 */
.cfg-tabs { display: flex; margin: 0 0 12px; border-bottom: 1px solid #e0e0dc; }
.cfg-tab {
  flex: 1;
  padding: 10px 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: #666;
  font-size: 16px;
  cursor: pointer;
}
.cfg-tab.active { border-bottom-color: #2f6f4f; color: #2f6f4f; font-weight: bold; }
#test-pay-card { margin-top: 8px; }
