:root {
  --accent: #e7522e;
  --accent-dark: #cc4425;
  --accent-soft: #fdf3ef;
  --ink: #1a1a1c;
  --ink-2: #5e5f65;
  --ink-3: #9b9ca2;
  --line: #eae8e3;
  --line-soft: #f2f1ed;
  --bg: #f7f6f3;
  --card: #ffffff;
  --ok: #12a150;
  --warn: #f5a623;
  --danger: #e02d2d;
  --blue: #2f6fed;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(26,22,18,.03), 0 6px 20px rgba(26,22,18,.045);
  --shadow-lg: 0 16px 48px rgba(26,22,18,.14);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* iOS Safari 的坑：输入框字号小于 16px 时，手指一点上去整页会被自动放大，
   客户得手动缩回去才能继续填。所以所有输入类控件一律不低于 16px。
   （.variant-row .input / .track-line .input 的小字号在下面单独覆盖掉了，
     这里用优先级更高的选择器把它们拉回 16px。） */
input, select, textarea,
.input, .select, .textarea,
.field input, .field select, .field textarea,
.variant-row .input, .track-line .input {
  font-size: 16px;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 14px; }

/* ---------- 通用控件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: .15s;
  white-space: nowrap;
}
.btn:hover { border-color: #d6d6db; background: #fafafb; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-primary:disabled { background: #d9d9de; border-color: #d9d9de; cursor: not-allowed; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { filter: brightness(.94); }
.btn-danger { color: var(--danger); border-color: #f6d4d4; background: #fff5f5; }
.btn-danger:hover { background: #ffecec; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

.field { margin-bottom: 12px; }
.field > label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 5px; font-weight: 500; }
.field .req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { min-height: 84px; resize: vertical; }

.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 12px;
  background: var(--bg);
  color: var(--ink-2);
}
.tag-ok { background: #e7f7ee; color: var(--ok); }
.tag-warn { background: #fef4e2; color: #b97600; }
.tag-blue { background: #eaf1fe; color: var(--blue); }
.tag-danger { background: #fdeaea; color: var(--danger); }
.tag-gray { background: #eeeef2; color: var(--ink-3); }

.empty { text-align: center; color: var(--ink-3); padding: 44px 16px; }
.empty .big { font-size: 34px; margin-bottom: 8px; }

.muted { color: var(--ink-3); font-size: 13px; }
.money { color: var(--accent); font-weight: 600; }
.money::before { content: "¥"; font-size: .82em; margin-right: 1px; }

/* ---------- 顾客端 ---------- */
.shop-head {
  background: linear-gradient(135deg, #ff6b4a, #ff4d2e);
  color: #fff;
  padding: 18px 16px 22px;
}
.shop-head .name { font-size: 21px; font-weight: 700; letter-spacing: .3px; }
.shop-head .notice {
  margin-top: 8px;
  font-size: 13px;
  background: rgba(255, 255, 255, .18);
  padding: 7px 11px;
  border-radius: 9px;
  line-height: 1.5;
}
.shop-head .links { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.shop-head .links a {
  color: #fff;
  font-size: 13px;
  background: rgba(255, 255, 255, .2);
  padding: 5px 12px;
  border-radius: 20px;
}

.cat-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 246, 248, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  white-space: nowrap;
  padding: 9px 12px;
  scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }

/* 排序条：销量 / 综合 / 价格 */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line-soft);
}
.sort-bar::-webkit-scrollbar { display: none; }
.sort-bar .sort-label { font-size: 12.5px; color: var(--ink-3); flex: 0 0 auto; margin-right: 2px; }
.sort-btn {
  flex: 0 0 auto;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.sort-btn.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.cat-bar .chip {
  display: inline-block;
  padding: 6px 14px;
  margin-right: 8px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  cursor: pointer;
  transition: .15s;
}
.cat-bar .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }

/* 宽屏（鼠标操作，横向滚动很不方便）：分类自动换行，保证每个都能点到。
   窄屏（手机）保持横向滑动，避免吸顶栏占太高。 */
@media (min-width: 760px) {
  .cat-bar {
    white-space: normal;
    overflow-x: visible;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .cat-bar .chip { margin-right: 0; }
}

.list { padding: 12px 0 96px; }

/* 分类公告：后台给分类写的说明，显示在商品列表最上面 */
.cat-notice {
  margin: 12px 12px 0;
  padding: 11px 13px;
  border: 1px solid #f2d8b8;
  border-left: 3px solid var(--warn);
  border-radius: 11px;
  background: #fffaf1;
  color: #7a5312;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
@media (min-width: 760px) {
  .cat-notice { margin: 14px 0 0; }
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
/* 「加载更多」：900+ 商品不再一次性渲染，按需追加 */
.list-more {
  display: flex;
  justify-content: center;
  padding: 18px 0 6px;
}
.list-more .btn { min-width: 180px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card .thumb {
  aspect-ratio: 1 / 1;
  background: #f1f1f4 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9c9d0;
  font-size: 30px;
  position: relative;
}
.card .thumb .badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
}
.card .body { padding: 10px 11px 12px; display: flex; flex-direction: column; flex: 1; }
.card .title { font-size: 14.5px; font-weight: 600; line-height: 1.4; margin-bottom: 3px; }
.card .spec { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.card .desc {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card .price { font-size: 17px; }
.card .price .old { font-size: 12px; color: var(--ink-3); text-decoration: line-through; margin-left: 4px; }
.card .price .old::before { content: "¥"; }
.card.out { opacity: .55; }

.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stepper button.plus { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper .n { min-width: 18px; text-align: center; font-size: 14px; font-weight: 600; }

.cartbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -3px 16px rgba(0, 0, 0, .07);
}
.cartbar .info { flex: 1; }
.cartbar .total { font-size: 19px; font-weight: 700; }
.cartbar .cnt { font-size: 12px; color: var(--ink-3); }

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  z-index: 50;
  display: none;
}
.drawer-mask.on { display: block; }
.drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  background: #fff;
  border-radius: 18px 18px 0 0;
  max-height: 86vh;
  overflow-y: auto;
  transform: translateY(102%);
  transition: transform .24s ease;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}
.drawer.on { transform: translateY(0); }
.drawer .dh {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
}
.drawer .dh h3 { margin: 0; font-size: 16px; }
.citem { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.citem .t { flex: 1; font-size: 14px; font-weight: 500; }
.citem .t small { display: block; color: var(--ink-3); font-weight: 400; }

.summary { padding: 12px 16px; }
.summary .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.summary .row.big { font-size: 17px; font-weight: 700; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 11px; }

/* ---------- 管理端 ---------- */
.app-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.app-head .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.app-head .brand { font-weight: 700; font-size: 16px; }
.app-head nav { display: flex; gap: 4px; flex-wrap: wrap; }
.app-head nav a {
  padding: 6px 12px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 14px;
}
.app-head nav a:hover { background: var(--bg); }
.app-head nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.stat .k { font-size: 13px; color: var(--ink-3); }
.stat .v { font-size: 23px; font-weight: 700; margin-top: 3px; }

.panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.panel > h3 {
  margin: 0;
  padding: 13px 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.panel .pad { padding: 14px 16px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { background: #fafafb; font-weight: 600; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #fcfcfd; }
.tbl .thumb-sm {
  width: 42px; height: 42px; border-radius: 9px; background: #f1f1f4 center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; color: #c9c9d0; font-size: 16px; flex: none;
}
.scroll-x { overflow-x: auto; }

/* 后台商品列表的工具条（搜索 / 分类 / 状态） */
.prod-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 16px 12px;
}
.prod-tools .input { height: 36px; padding: 0 12px; font-size: 14px; }
.prod-tools #pSearch { flex: 1 1 260px; max-width: 360px; }
.prod-tools #pCatFilter { flex: 0 1 170px; }
.prod-tools #pStatus { flex: 0 1 130px; }
.prod-tools #pCount { font-size: 13px; }
@media (max-width: 620px) {
  .prod-tools #pSearch { flex: 1 1 100%; max-width: none; }
  .prod-tools #pCatFilter, .prod-tools #pStatus { flex: 1 1 40%; }
}

/* 加热弹窗里的「+2 / +5 / +10 / +20 / +50」快捷按钮 */
.bk-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bk-quick .btn { min-width: 52px; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45);
  z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-mask.on { display: flex; }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal h3 { margin: 0; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 16px; }
.modal .mbody { padding: 16px 18px; }
.modal .mfoot {
  padding: 13px 18px; border-top: 1px solid var(--line);
  display: flex; gap: 10px; justify-content: flex-end; position: sticky; bottom: 0; background: #fff;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.order-card .oh {
  padding: 11px 14px;
  background: #fafafb;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.order-card .oh .no { font-weight: 600; font-variant-numeric: tabular-nums; }
.order-card .ob { padding: 12px 14px; }
.order-card .kv { font-size: 13.5px; margin-bottom: 4px; }
.order-card .kv b { color: var(--ink-2); font-weight: 500; }
.order-card ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- 后厨页 ---------- */
.kitchen { background: #12141a; color: #f2f2f5; min-height: 100vh; }
.kitchen .khead {
  padding: 14px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-bottom: 1px solid #262a35; position: sticky; top: 0; background: #12141a; z-index: 10;
}
.kitchen .khead h1 { margin: 0; font-size: 19px; }
.kitchen .kpi { display: flex; gap: 18px; margin-left: auto; }
.kitchen .kpi div { text-align: right; }
.kitchen .kpi .v { font-size: 22px; font-weight: 700; }
.kitchen .kpi .k { font-size: 12px; color: #8b90a0; }
.kgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px; padding: 16px 18px 40px;
}
.kcard {
  background: #1b1f28; border: 1px solid #2a2f3c; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
}
.kcard.new { border-color: #ff5a3c; box-shadow: 0 0 0 2px rgba(255, 90, 60, .2); }
.kcard .kh {
  padding: 11px 14px; background: #232834; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.kcard .kno { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.kcard .ktime { font-size: 12px; color: #8b90a0; }
.kcard .kb { padding: 12px 14px; flex: 1; }
.kcard .kitems { list-style: none; margin: 0 0 12px; padding: 0; }
.kcard .kitems li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; border-bottom: 1px dashed #2a2f3c; font-size: 15.5px;
}
.kcard .kitems li:last-child { border-bottom: none; }
.kcard .kitems li .q { color: #ffb020; font-weight: 700; }
.kcard .kaddr { font-size: 13px; color: #a8adbd; line-height: 1.6; }
.kcard .kaddr b { color: #e6e8ef; font-weight: 600; }
.kcard .kf { padding: 11px 14px; border-top: 1px solid #2a2f3c; display: flex; gap: 8px; }
.kitchen .btn { background: #262b36; border-color: #333a48; color: #e6e8ef; }
.kitchen .btn:hover { background: #2e3441; }
.kitchen .btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.kitchen .btn-ghost { background: transparent; border-color: transparent; color: #8b90a0; }

@media print {
  .khead, .kf, .no-print { display: none !important; }
  .kitchen { background: #fff; color: #000; }
  .kgrid { grid-template-columns: repeat(2, 1fr); padding: 0; gap: 8px; }
  .kcard { border: 1.5px solid #000; background: #fff; }
  .kcard .kh { background: #eee; }
  .kcard .kitems li { color: #000; border-bottom: 1px dotted #999; }
  .kcard .kitems li .q { color: #000; }
  .kcard .kaddr { color: #000; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .row2 { grid-template-columns: 1fr; }
  .tbl th, .tbl td { padding: 8px 9px; }
}

/* ---------- 商品规格（多规格 SKU） ---------- */
.price-sep { margin: 0 2px; color: var(--ink-3); }

.spec-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  vertical-align: middle;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.spec-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: .15s;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
}
.spec-chip:hover { border-color: #d6d6db; }
.spec-chip.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.spec-chip.disabled {
  opacity: .5;
  cursor: not-allowed;
  background: var(--bg);
}
.spec-chip .spec-price { font-size: 13px; color: var(--accent); font-weight: 600; }
.spec-chip.on .spec-price { color: var(--accent-dark); }
.spec-chip .spec-stock { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }

.spec-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fafafb;
}
.spec-picked .muted { font-size: 11.5px; margin-bottom: 2px; }

/* ---------- 管理端：规格编辑器 ---------- */
.variant-row {
  display: grid;
  grid-template-columns: 1fr 100px 110px 56px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.variant-row .input { padding: 7px 10px; font-size: 13.5px; }
.variant-row .btn { padding: 6px 8px; font-size: 13px; }
@media (max-width: 560px) {
  .variant-row { grid-template-columns: 1fr 1fr; }
}


/* ==========================================================
   简约大气视觉层 —— 只调整背景板、边框、圆角、阴影
   布局、字号、间距、结构完全不动
   ========================================================== */

body { background: var(--bg); }

/* 顶部：橙色渐变 → 深墨色，稳重不促销 */
.shop-head {
  background: linear-gradient(165deg, #262a33 0%, #17191f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* 分类吸顶栏：与底色统一，细边框 */
.cat-bar {
  background: rgba(247, 246, 243, .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* 卡片：重阴影 → 极细边框 + 柔和阴影 */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(26, 22, 18, .03), 0 4px 14px rgba(26, 22, 18, .04);
}

/* 面板、统计卡：同上 */
.panel, .stat {
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(26, 22, 18, .03), 0 6px 20px rgba(26, 22, 18, .045);
}

/* 分类行：更淡的分隔线 */
.citem { border-bottom: 1px solid var(--line-soft); }

/* 订单卡 */
.order-card { border: 1px solid var(--line); border-radius: var(--radius); }

/* 底部结算栏：实心白 + 细边框，不用透明 */
.cartbar {
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 2px rgba(26, 22, 18, .03), 0 -6px 22px rgba(26, 22, 18, .07);
}
.cartbar .total { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.cartbar .cnt { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.cartbar .btn { border-radius: 12px; padding: 11px 22px; font-weight: 600; }

/* ---------- 底部「已选商品」列表：点加购后在这里逐条列出 ---------- */
.cartwrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #fff;
  box-shadow: 0 -1px 2px rgba(26, 22, 18, .03), 0 -6px 22px rgba(26, 22, 18, .07);
}
.cartwrap .cartbar { position: static; box-shadow: none; }
.cartbar button.info {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cp-txt { display: block; min-width: 0; }
.cp-chev {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid var(--ink-3);
  transition: transform .18s ease;
}
.cartbar button.info.open .cp-chev { transform: rotate(180deg); }
.cartpanel {
  border-top: 1px solid var(--line);
  max-height: 44vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px 3px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.cp-clear { border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; padding: 3px 2px; cursor: pointer; }
.cp-line { display: flex; align-items: center; gap: 10px; padding: 9px 14px; }
.cp-line + .cp-line { border-top: 1px solid var(--line-soft); }
.cp-img {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.cp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-info { flex: 1 1 auto; min-width: 0; }
.cp-name {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cp-spec { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.cp-price { font-size: 13px; font-weight: 700; margin-top: 2px; }

/* 抽屉、弹窗：圆角略大，阴影更柔 */
.drawer {
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 44px rgba(26, 22, 18, .16);
}
.modal {
  border: 1px solid var(--line);
  border-radius: 20px;
}
.drawer-mask, .modal-mask { background: rgba(20, 18, 16, .46); }

/* 按钮：圆角统一（只作用于普通按钮，不覆盖主色/成功/危险按钮）*/
.btn:not(.btn-primary):not(.btn-ok):not(.btn-danger):not(.btn-spec) {
  border-radius: 11px;
  border-color: var(--line);
  background: #fff;
}
.btn:not(.btn-primary):not(.btn-ok):not(.btn-danger):not(.btn-spec):hover {
  border-color: #ddd9d2;
  background: #fbfaf8;
}
/* 主色按钮：确保橙色底 + 白字（补回被覆盖的样式）*/
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-sm { border-radius: 9px; }

/* 输入框：细边框、暖灰 */
.input, .textarea, .field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.input:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: #c9c4bb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 22, 18, .04);
}

/* 规格标签 */
.spec-chip, .spec-tag {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
}
.spec-chip.on, .spec-chip.selected, .spec-tag.on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* 表格 */
.tbl th { border-bottom: 1px solid var(--line); }
.tbl td { border-bottom: 1px solid var(--line-soft); }

/* ==========================================================
   商品卡片底部：改成电商平台通用样式
   价格加粗主色 + 圆形＋号 / 圆柱形加减框 / 胶囊「选规格」
   ========================================================== */

/* 价格：加粗 + 主色，经典电商样式 */
.card .foot .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: -.3px;
}
.card .foot .price .money { font-weight: 700; }

/* 加入按钮：圆形＋号 */
.add-circle {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(231, 82, 46, .3);
  transition: transform .12s;
}
.add-circle:active { transform: scale(.9); }

/* 选规格：小胶囊 */
.btn-spec {
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(231, 82, 46, .22);
}
.btn.btn-spec { background: var(--accent-soft); color: var(--accent); border-color: rgba(231, 82, 46, .22); }
.btn.btn-spec:hover { background: #fbe8e1; border-color: rgba(231, 82, 46, .35); }

/* 加减框：圆形按钮 */
.stepper button {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}
.stepper button.plus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.stepper .n {
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* 售罄标签 */
.card .foot .tag-gray { font-size: 12px; }

/* ==========================================================
   修正：hidden 属性被 CSS 的 display 覆盖
   （比如空购物车时底部结算栏仍然显示，变成一条空框）
   ========================================================== */
[hidden] { display: none !important; }

/* ==========================================================
   搜索框
   ========================================================== */
.search-wrap {
  padding: 10px 14px 4px;
  background: var(--bg);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 21px;
  transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within {
  border-color: #cfcac1;
  box-shadow: 0 0 0 3px rgba(26, 22, 18, .04);
}
.search-box .ic {
  width: 17px;
  height: 17px;
  color: var(--ink-3);
  flex: 0 0 auto;
  vertical-align: 0;
}
.search-box input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  color: var(--ink);
}
.search-box input::placeholder { color: #b3b3b8; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-clear {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d5d5d9;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-clear:active { background: #bfbfc5; }
.search-clear[hidden] { display: none !important; }

/* ==========================================================
   商品大图（点图放大）
   ========================================================== */
.thumb[data-img] { cursor: zoom-in; }
.thumb[data-img]::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .42) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3Cpath d='M10.5 7.8v5.4M7.8 10.5h5.4'/%3E%3C/svg%3E") center/13px 13px no-repeat;
  opacity: .9;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  /* 必须压在所有弹层之上：评论区的 .cs-mask 是 9998，评价弹层也是 9998，
     放大镜在 300 的时候会被评论区盖住，图就看不见了 */
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(8, 8, 10, .94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none !important; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}
.lb-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-close:active { background: rgba(255, 255, 255, .28); }

/* 多图时的左右箭头 + 「2 / 3」计数（只有一张图时都隐藏） */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lb-nav[hidden] { display: none !important; }
.lb-nav svg { width: 22px; height: 22px; }
.lb-nav:active { background: rgba(255, 255, 255, .3); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-count {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
}
.lb-count[hidden] { display: none !important; }
#lightbox img { -webkit-user-drag: none; user-select: none; }
/* 手机上：箭头收小一点别挡图，滑动才是主要操作 */
@media (max-width: 640px) {
  .lb-nav { width: 34px; height: 34px; background: rgba(255, 255, 255, .12); }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
}

/* ==========================================================
   页面内确认框（替代 window.confirm，手机端/微信里也能用）
   ========================================================== */
.cfm-mask {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 18, 16, .5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.cfm-box {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
  animation: cfm-in .16s ease-out;
}
@keyframes cfm-in {
  from { transform: scale(.94); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cfm-msg {
  padding: 24px 20px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  text-align: center;
}
.cfm-input {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafb;
  font-size: 15px;
  color: var(--ink);
  text-align: center;
  outline: none;
}
.cfm-input:focus { border-color: var(--brand); background: #fff; }
.cfm-actions {
  display: flex;
  border-top: 1px solid var(--line);
}
.cfm-btn {
  flex: 1 1 0;
  height: 50px;
  border: 0;
  background: #fff;
  font-size: 16px;
  color: var(--ink-2);
  font-weight: 500;
}
.cfm-btn + .cfm-btn { border-left: 1px solid var(--line); }
.cfm-btn:active { background: #f6f5f3; }
.cfm-btn.cfm-ok { color: var(--danger); font-weight: 600; }

/* ==========================================================
   商品详情抽屉
   ========================================================== */
.tag-hot {
  display: inline-block;
  vertical-align: 2px;
  margin-right: 5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ff5a3c, #e8442a);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
}
.code-line {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* 详情主体 */
.d-wrap { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.d-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f4f3f1 center/cover no-repeat;
  cursor: zoom-in;
}
.d-main.d-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9c9d0;
}
.d-main.d-empty .ic { width: 44px; height: 44px; }

.d-strip {
  display: flex;
  gap: 8px;
  padding: 10px 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.d-strip::-webkit-scrollbar { display: none; }
.d-thumb {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 9px;
  border: 2px solid transparent;
  background: #f4f3f1 center/cover no-repeat;
  cursor: pointer;
}
.d-thumb.on { border-color: var(--accent); }

.d-info { padding: 14px 16px 0; }
.d-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}
.d-spec { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.d-price {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.4px;
}
.d-price .del { margin-left: 8px; font-size: 14px; color: var(--ink-3); font-weight: 400; }
.d-desc {
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 11px;
  background: #f8f7f5;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.d-spec-count {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
}
.d-actions { padding: 16px 16px 0; }
.d-hint {
  padding: 13px;
  border-radius: 11px;
  background: #fff8e6;
  color: #8a6100;
  font-size: 13.5px;
  text-align: center;
}
.d-add { height: 48px; font-size: 16px; }

/* 后台：勾选行 */
.switch-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 13.5px;
  cursor: pointer;
}
.switch-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

/* 后台：附加图网格 */
.extra-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.extra-item { position: relative; width: 68px; height: 68px; }
.extra-img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f4f3f1 center/cover no-repeat;
}
.extra-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--danger);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 顾客端：客服条 */
.contact-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 6px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #f0f7ff;
  border: 1px solid #d8e8fb;
  font-size: 13px;
  cursor: pointer;
}
.contact-bar[hidden] { display: none !important; }
.cb-label { color: #5a7fa8; flex: 0 0 auto; }
.cb-id {
  flex: 1 1 auto;
  min-width: 0;
  color: #2f6fed;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cb-copy {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 8px;
  background: #2f6fed;
  color: #fff;
  font-size: 12px;
}

/* 下单弹框里的注册提示按钮 */
.pm-btn.pm-reg {
  background: #eef4ff;
  border-color: #d6e4ff;
  color: #2f6fed;
  font-size: 13.5px;
  text-decoration: none;
}
.pm-btn.pm-reg:active { background: #e0ebff; }

/* 结算页：积分抵扣行 */
.pts-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: #f0f7ff;
  border: 1px solid #d8e8fb;
  font-size: 13px;
  cursor: pointer;
}
.pts-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: #2f6fed; flex: 0 0 auto; }
.pts-row .pr-txt { flex: 1 1 auto; color: #2f6fed; }
.pts-row .pr-txt b { font-weight: 700; }
.pts-row .pr-tag {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 7px;
  background: #dbe8fb;
  color: #5a7fa8;
  font-size: 11px;
}

/* 配送方式单选（普通快递 / 顺丰到付） */
.ship-row { margin: 10px 0 2px; }
.ship-row .ship-h { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.ship-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  font-size: 13.5px;
}
.ship-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ship-opt input[type="radio"] { width: 17px; height: 17px; accent-color: var(--accent); flex: 0 0 auto; }
.ship-opt .ship-name { font-weight: 600; }
.ship-opt .ship-fee { margin-left: auto; font-weight: 700; color: var(--accent-dark); white-space: nowrap; }
.ship-opt .ship-note { flex: 0 0 100%; font-size: 11.5px; color: var(--ink-3); margin: -2px 0 0 25px; }
.pm-ship {
  margin: -4px 0 10px;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
}

/* 商品单独计运费时，结算页显示这条替代「配送方式」选择器 */
.ship-special {
  margin: 10px 0 2px;
  padding: 10px 12px;
  border: 1px solid #f2d8b8;
  border-left: 3px solid var(--warn);
  border-radius: 11px;
  background: #fffaf1;
}
.ship-special-h { font-size: 12.5px; color: #8a6a2a; }
.ship-special-b { font-size: 13px; font-weight: 600; margin: 2px 0; }
.ship-special-f { font-size: 13px; color: var(--accent-dark); font-weight: 700; }

/* 出单台：配送方式一眼看清，到付要标红提醒别垫运费 */
.k-ship { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.k-ship.k-cod { color: var(--accent-dark); font-weight: 700; }

/* 下单后补充备注 */
.note-box {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfaf8;
}
.note-cur { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.note-cur .note-text { margin-top: 3px; white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.note-toggle {
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  padding: 7px 12px;
  cursor: pointer;
  width: 100%;
}
.note-toggle:hover { border-color: var(--accent); color: var(--accent); }
.note-form { margin-top: 9px; display: flex; flex-direction: column; gap: 7px; }
.note-form .note-input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 16px;   /* 16px 防 iOS 聚焦缩放 */
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}
.note-form .note-tip { font-size: 11.5px; color: var(--ink-3); }

/* 余额抵扣行：左边勾选框撑满，右边一个「充值」按钮 */
.bal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.bal-row .pts-row {
  background: #f2fbf5;
  border-color: #cdecd9;
  cursor: pointer;
}
.bal-row .pts-row .pr-txt { color: #12864a; }
.bal-row .pts-row input[type="checkbox"] { accent-color: #12a150; }
.bal-row .btn-sm { flex: 0 0 auto; padding: 8px 14px; }

/* 充值档位选择 */
.rc-tiers { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.rc-tier {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 14.5px;
}
.rc-tier:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.rc-tier input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.rc-tier .rc-pay { font-weight: 700; }
.rc-tier .rc-bonus {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 8px;
  background: #fff0e8;
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 700;
}

/* 会员中心：余额 */
.bal-hero {
  margin-top: 10px;
  font-size: 14px;
  color: #b8c6d6;
}
.bal-hero b { font-size: 20px; color: #fff; font-weight: 700; margin-left: 4px; }
.bal-num {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 6px 0 4px;
  color: var(--ok);
}
.rc-codes { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.rc-code { flex: 1 1 150px; text-align: center; }
.rc-code > div { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.rc-code img { width: 100%; max-width: 210px; border-radius: 10px; border: 1px solid var(--line); }
.rc-code p { font-size: 11.5px; color: var(--ink-3); margin: 5px 0 0; }

/* ---------- 已售数量 ---------- */
.card .price-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card .sold-line { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; white-space: nowrap; }
.d-price .d-sold { margin-left: 8px; font-size: 12px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }

/* ---------- 下单风控：蜜罐 + 验证码 ---------- */
/* 蜜罐字段：移出可视区而不是 display:none —— 部分机器人会跳过 display:none 的字段 */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.captcha-line { display: flex; align-items: center; gap: 8px; }
.captcha-q {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f1ee;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--ink-2);
  text-align: center;
  white-space: nowrap;
}
.captcha-line .input { flex: 1 1 auto; min-width: 0; }
.captcha-line .btn { flex: 0 0 auto; }

/* ---------- 后台风控面板 ---------- */
.guard-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8f7f5;
  margin-bottom: 10px;
}
.guard-num { font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: -1px; }
.guard-label { font-size: 13px; color: var(--ink-3); }
.guard-list {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.guard-list .row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.guard-list .row:last-child { border-bottom: 0; }

/* ---------- 查订单：模式切换 + 订单列表 ---------- */
.qmode {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: #f3f1ee;
  margin-bottom: 14px;
}
.qmode-btn {
  flex: 1;
  padding: 9px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.qmode-btn.on {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.ord-card {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.ord-card:last-child { border-bottom: 0; padding-bottom: 0; }
.ord-card:active { opacity: .6; }
.ord-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ord-no { font-size: 13.5px; font-weight: 600; letter-spacing: .2px; }
.ord-items {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ord-bot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 13px;
}
.ord-bot .money { font-size: 16px; font-weight: 700; }

/* ---------- 已记住的收货信息提示条 ---------- */
.addr-saved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #f7f5f2;
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.addr-saved button {
  flex: 0 0 auto;
  padding: 2px 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink-3);
  text-decoration: underline;
  cursor: pointer;
}
.addr-saved button:active { opacity: .6; }

/* ---------- 付款截图上传（顾客端） ---------- */
.proof-box {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
  text-align: center;
}
.proof-head {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
  text-align: left;
}
.proof-done {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  text-align: left;
}
.proof-thumb {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
}
.proof-txt {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ok, #2f7d52);
}
.proof-txt.muted { color: var(--ink-3); }
.proof-box .proof-btn { width: 100%; }
.proof-box .btn:disabled { opacity: .6; }

/* ---------- 付款截图（后台订单卡） ---------- */
.proof-admin {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f2f8f4;
  border: 1px solid #dceade;
}
.proof-admin img {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
}
.proof-admin-txt { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.proof-admin-txt .muted { font-size: 12px; }

/* 付款弹窗里的商品明细小标题 */
.pm-items-head {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 7px;
}

/* ---------- 首页「怎么买」流程条 ---------- */
.howto {
  max-width: 1180px;
  margin: 10px auto 0;
  padding: 0 14px;
}
.howto-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff7e8;
  border: 1px solid #ffe0b0;
  border-radius: 10px;
  padding: 9px 12px;
}
.howto-flow {
  font-size: 12.5px;
  color: #8a6a2f;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.howto-toggle {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 600;
  color: #8a6a2f;
  background: #fff;
  border: 1px solid #ffd79a;
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
}
.howto-detail {
  background: #fffdf7;
  border: 1px solid #ffe6be;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 12px 14px 14px;
}
.howto-detail ol { margin: 0; padding-left: 20px; }
.howto-detail li { font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.howto-tip {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.65;
  padding-top: 9px;
  border-top: 1px dashed #ffe0b0;
}
@media (max-width: 420px) {
  .howto-flow { font-size: 11.5px; }
}

/* ---------- 付款弹窗：1-2-3 步 ---------- */
.pm-step {
  text-align: left;
  padding: 13px 14px;
  margin: 12px 0;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pm-step-h {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 10px;
}
.pm-step-n {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pm-orderno, .pm-wx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 7px 0;
}
.pm-orderno b, .pm-wx b { color: var(--ink); word-break: break-all; }
.pm-detail {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 13.5px;
}
.pm-detail summary {
  cursor: pointer;
  color: var(--ink-2);
  font-size: 13px;
  padding: 4px 0;
  list-style: none;
}
.pm-detail summary::-webkit-details-marker { display: none; }
.pm-detail summary::before { content: '▸ '; color: var(--ink-3); }
.pm-detail[open] summary::before { content: '▾ '; }

/* 会员中心订单卡里的上传区：去掉灰底，避免和卡片套两层 */
.u-order .proof-box { margin-top: 10px; background: #fff; }

/* ---------- 订单里的商品图（后台订单页 + 出单台） ---------- */
/* 后台订单卡 */
.order-card .oitems { list-style: none; padding-left: 0; margin-top: 8px; }
.order-card .oitems li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.order-card .oitems li:last-child { border-bottom: 0; padding-bottom: 0; }
.order-card .oitems .oname { flex: 1 1 auto; min-width: 0; line-height: 1.5; }
.order-card .oitems .oqty { flex: 0 0 auto; color: var(--ink-3); }
.order-card .oitems .money { flex: 0 0 auto; }
.othumb {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background: #f2f0ed;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.othumb-empty { display: block; cursor: default; }

/* 出单台（暗色主题） */
.kcard .kitems li .kname { flex: 1 1 auto; min-width: 0; line-height: 1.45; }
.kcard .kitems li .q { flex: 0 0 auto; }
.kthumb {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #262b36;
  border: 1px solid #333a48;
  cursor: zoom-in;
}
.kthumb-empty { display: block; cursor: default; }
@media print {
  .kthumb { border-color: #999; }
  .othumb { border-color: #999; }
}

/* 列表缩略图改用 <img> 以启用浏览器原生懒加载（只加载屏幕内的图） */
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 快递单号 ---------- */
/* 后台填写行 */
.track-line { display: flex; gap: 8px; margin-top: 10px; }
.track-line .input { flex: 1 1 auto; min-width: 0; font-size: 13px; padding: 8px 10px; }
.track-line .btn { flex: 0 0 auto; }
/* 顾客端展示 */
.track-show {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f2f7fc;
  border: 1px solid #dbe7f4;
  font-size: 13px;
  color: #2f5d8f;
  line-height: 1.6;
  word-break: break-all;
}
.track-show b { color: #24486e; }
.u-order .track-show { margin-top: 8px; font-size: 12.5px; }

/* ---------- 后台备份列表 ---------- */
.bk-list { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.bk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.bk-row:last-child { border-bottom: 0; }
.bk-row:nth-child(odd) { background: #fbfaf9; }
.bk-name { flex: 1 1 auto; min-width: 0; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-row .muted { flex: 0 0 auto; font-size: 12px; }
.bk-row .btn { flex: 0 0 auto; }

/* 会员中心订单卡里的运费提示 */
.u-fee { margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 买家评价 ---------- */
/* 订单里的「评价」按钮 */
.rv-btn {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.rv-btn:active { opacity: .6; }
.rv-done { flex: 0 0 auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* 待评价提醒条：客户不主动翻订单就看不到评价入口，所以在会员中心顶上顶一句 */
.rv-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #f7dcb0;
  border-left: 3px solid var(--warn);
  border-radius: 11px;
  background: linear-gradient(180deg, #fffaf0, #fff7e8);
}
.rv-prompt-t { font-size: 14px; font-weight: 600; }
.rv-prompt-s { flex: 1 1 160px; font-size: 12.5px; color: #8a6a2a; }
.rv-prompt .btn { flex: 0 0 auto; }

/* 「去评价」跳过去时闪一下，让人找到是哪一件 */
.rv-btn-flash {
  animation: rvFlash 0.5s ease-in-out 3;
  box-shadow: 0 0 0 3px rgba(231, 82, 46, 0.25);
}
@keyframes rvFlash {
  0%, 100% { background: #fff; }
  50% { background: #ffe9e2; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-btn-flash { animation: none; }
}

/* 评价弹层 */
.rv-mask {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.rv-box { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 18px; }
.rv-box h3 { margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; }
.rv-stars { display: flex; gap: 6px; font-size: 30px; line-height: 1; color: #dcdcdc; }
.rv-stars span { cursor: pointer; user-select: none; transition: color .12s, transform .12s; }
.rv-stars span.on { color: #ffb020; }
.rv-stars span:active { transform: scale(.9); }
.rv-score { font-size: 12.5px; color: var(--ink-3); margin: 7px 0 12px; }
.rv-box .textarea { width: 100%; min-height: 88px; }
.rv-btns { display: flex; gap: 9px; margin-top: 13px; }
.rv-btns .btn { flex: 1; }

/* 星级展示（商品卡 / 详情页 / 评价列表） */
.stars { color: #ffb020; letter-spacing: -1px; font-size: 13px; }
.stars .off { color: #dcdcdc; }
.rv-line { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.rv-line .stars { font-size: 12px; }
.card .rv-line { margin-bottom: 5px; }

/* 详情页评价区 */
.d-rv { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.d-rv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.d-rv-head .big { font-size: 20px; color: #ffb020; }
.d-rv-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.d-rv-item:last-child { border-bottom: 0; padding-bottom: 0; }
.d-rv-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 5px; }
.d-rv-name { color: var(--ink-2); font-weight: 600; }
.d-rv-text { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }

/* 后台评价列表 */
.rv-card { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rv-card:last-child { border-bottom: 0; padding-bottom: 0; }
.rv-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rv-card-prod { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; }
.rv-card-top .stars { flex: 0 0 auto; }
.rv-card-txt { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.rv-card-bot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rv-card-bot .muted { flex: 1 1 auto; min-width: 0; font-size: 12px; }
.rv-card-bot .btn { flex: 0 0 auto; }

/* ---------- 评价配图（买家秀） ---------- */
.rv-imgline { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.rv-addimg {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px dashed var(--accent);
  border-radius: 9px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.rv-addimg:active { opacity: .6; }
.rv-addimg:disabled { opacity: .5; }
.rv-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rv-thumb { position: relative; width: 68px; height: 68px; }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); display: block; }
.rv-thumb button {
  position: absolute; right: -6px; top: -6px;
  width: 20px; height: 20px; line-height: 1;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .62); color: #fff;
  font-size: 13px; cursor: pointer; padding: 0;
}

/* 详情页评价里的买家秀 */
.d-rv-imgs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.d-rv-imgs img {
  width: 76px; height: 76px;
  object-fit: cover; border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
}
/* 后台评价里的买家秀 */
.rv-card-imgs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.rv-card-imgs img {
  width: 64px; height: 64px;
  object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
}

/* 评价表单里的积分说明 */
.rv-tip {
  margin: -6px 0 10px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #fff8ec;
  border: 1px solid #f4e4c8;
  font-size: 12.5px;
  line-height: 1.5;
  color: #8a6220;
}

/* 会员中心订单里的商品行 + 评价按钮 */
.u-item { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.u-item-name { flex: 1 1 auto; min-width: 0; }


/* 详情页大图能点开放大；没图时的占位框不应该显示放大光标 */
.d-main.d-empty { cursor: default; }

/* ---------- 后台 AI 助手 ---------- */
.ai-warn {
  padding: 9px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #fff8ec;
  border: 1px solid #f4e4c8;
  font-size: 12.5px;
  line-height: 1.65;
  color: #8a6220;
}
.ai-chat {
  height: 46vh;
  min-height: 260px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf9f8;
  margin-bottom: 10px;
}
.ai-msg {
  max-width: 84%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 9px;
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-bot { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.ai-me { background: var(--accent); color: #fff; margin-left: auto; }
.ai-input { display: flex; gap: 9px; align-items: stretch; }
.ai-input .textarea { flex: 1 1 auto; min-height: 56px; max-height: 140px; }
.ai-input .btn { flex: 0 0 auto; align-self: flex-end; }

/* ---------- 联系客服（入口在页面顶部链接栏，不再是悬浮球） ---------- */
.shop-head .links button.cs-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  background: rgba(255, 255, 255, .2);
  border: 0;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shop-head .links button.cs-link:active { opacity: .8; }
.shop-head .links button.cs-link svg { width: 1em; height: 1em; }

.cs-mask {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, .42);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 560px) { .cs-mask { align-items: center; } }
.cs-box {
  width: 100%;
  max-width: 430px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 560px) { .cs-box { border-radius: 18px; margin: 20px; } }
.cs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px 12px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  border-radius: inherit;
  z-index: 1;
}
.cs-head b { font-size: 15.5px; }
.cs-x {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  padding: 0 4px;
}
.cs-body { padding: 14px 18px 20px; }

.cs-wx {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f2f8f4;
  border: 1px solid #dceade;
}
.cs-wx-label { font-size: 12.5px; color: #4a7a5e; }
.cs-wx-id {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: #2f6b4a;
  word-break: break-all;
}
.cs-wx .btn { flex: 0 0 auto; }

.cs-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  font-size: 12px;
  color: var(--ink-3);
}
.cs-or::before, .cs-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.cs-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- 后台客服消息 ---------- */
.nav-badge {
  display: inline-block;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}
.msg-card {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
}
.msg-card.new { border-color: #f4d9a8; background: #fffdf7; }
.msg-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 7px; }
.msg-who { font-size: 13.5px; font-weight: 700; }
.msg-contact {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  background: #fff2ef;
  padding: 2px 8px;
  border-radius: 6px;
  word-break: break-all;
}
.msg-body { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.msg-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }

/* 会员中心：认领历史订单 */
.u-claim {
  border: 1px solid #ffe0b0;
  background: #fffaf0;
}
.u-claim .u-title { color: #8a6a2f; }
.u-claim .u-sub { margin: 6px 0 12px; }
.u-bonus { color: #c2410c; }

/* 店铺头部：会员数 */
.members-line {
  max-width: 1180px;
  margin: 8px auto 0;
  padding: 0 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.members-line b { color: var(--accent); font-weight: 700; font-size: 1.15em; }


/* ---------- 店铺评论区（入口在页面顶部链接栏，和「联系客服」并列） ---------- */
.cm-compose {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px 13px;
  background: #fafbfc;
  margin-bottom: 14px;
}
.cm-compose .field { margin-bottom: 10px; }
.cm-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  padding: 2px 2px 8px;
  border-bottom: 1px solid var(--line);
}
.cm-refresh {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  padding: 2px 4px;
}
.cm-list { padding-top: 2px; }
.cm-item { padding: 12px 2px; border-bottom: 1px solid var(--line); }
.cm-item:last-child { border-bottom: 0; }
.cm-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.cm-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.cm-time { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.cm-text { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.cm-reply {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f2f8f4;
  border: 1px solid #dceade;
  font-size: 13px;
  line-height: 1.65;
  color: #2f6b4a;
  white-space: pre-wrap;
  word-break: break-word;
}
.cm-reply b { display: block; font-size: 11.5px; color: #4a7a5e; font-weight: 700; margin-bottom: 3px; }
.cm-empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 26px 10px; }

/* 买家评价混在评论区里的样子：左侧竖条 + 「已购买」标记，和普通留言一眼分得开 */
.cm-item.is-review {
  padding-left: 11px;
  border-left: 3px solid #cfe6d6;
  background: linear-gradient(90deg, rgba(242, 248, 244, .7), transparent 60%);
}
.cm-badge {
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e6f4ea;
  color: #2f6b4a;
  border: 1px solid #cfe6d6;
  font-size: 11px;
  font-weight: 700;
}
.cm-stars { flex: 0 0 auto; font-size: 12px; color: #f0a020; letter-spacing: 1px; }
.cm-stars .off { color: #e2d9cd; }

/* 评价关联的商品：点一下跳详情 */
.cm-prod {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.cm-prod:active { opacity: .65; }
.cm-prod img { width: 30px; height: 30px; flex: 0 0 auto; object-fit: cover; border-radius: 7px; background: #f4f1ec; }
.cm-prod span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-prod em { font-style: normal; color: var(--ink-3); }
.cm-prod .ic { width: 15px; height: 15px; flex: 0 0 auto; color: var(--ink-3); }

/* 评价实拍图：点开看大图 */
.cm-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cm-imgs img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #f4f1ec;
  cursor: zoom-in;
}

/* 评论区发表框里「选填，最多 4 张」这种小字 */
.cm-opt { font-weight: 400; font-size: 12px; color: var(--ink-3); }
/* 鼓励顾客晒图的小标语 */
.cm-boost {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff3df;
  color: #b3650f;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* 详情页评价区底部的「去评价」直达按钮 */
.d-rv-cta {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
a.d-rv-cta {
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  cursor: pointer;
}
a.d-rv-cta:active { opacity: .65; }

/* 后台评论区：隐藏中的那条淡一点 */
.cm-card-off { opacity: .62; }

/* 详情页留言框：商品页也能直接留言（2026-10-01 加） */
.d-cm {
  margin-top: 14px;
  padding: 13px 13px 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfaf8;
}
.d-cm-t {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
.d-cm .field { margin-bottom: 10px; }
.d-cm .cs-hint { margin: 0 0 10px; text-align: left; }

/* 留言条目：不打星、比买家评价淡一点，一眼能分清 */
.d-rv-item.is-cm { background: #fbfaf8; }
.cm-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f1efeb;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* 下单成功弹窗底部的「顺手注册个会员」引导 */
.pm-aside {
  background: #f5f9ff;
  border: 1px solid #dbe8f7;
  color: #45658a;
  font-size: 12.5px;
  line-height: 1.7;
  border-radius: 12px;
  padding: 11px 13px;
  margin: 14px 0 4px;
  text-align: left;
}
.pm-aside b { color: #1f4e79; }
.pm-aside-btns { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.pm-aside-btns .btn { text-decoration: none; }

/* 首屏骨架屏
   以前 /api/shop 没回来之前列表是空的（尤其第一次来的客户，本地没缓存），
   加上跨境网络一到两秒的等待，整个页面像死掉了 —— 所以先放几张灰卡片占位。
   卡片形状照 .card 来，颜色用微光扫过，让人一眼看出「在加载」而不是「坏了」。 */
.sk-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.sk-th { aspect-ratio: 1 / 1; }
.sk-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 7px; }
.sk-l { height: 11px; border-radius: 6px; }
.sk-l.w80 { width: 82%; }
.sk-l.w55 { width: 55%; }
.sk-l.w35 { width: 35%; }
.sk-l.sk-price { height: 17px; width: 42%; margin-top: 5px; }
.sk-th, .sk-l {
  background: linear-gradient(100deg, #eeeef1 30%, #f8f8fa 50%, #eeeef1 70%);
  background-size: 220% 100%;
  animation: skShine 1.25s linear infinite;
}
@keyframes skShine {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-th, .sk-l { animation: none; }
}

/* —— 商品详情页转化区块（库存 / 信任 / 规格速览 / 运费 / 客服）—— */
.d-stock {
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 9px;
  background: #fff1ec;
  color: #c8380f;
  font-size: 13px;
  font-weight: 600;
}
.d-trust {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 11px;
  background: #f2f8f3;
  border: 1px solid #dcecdf;
}
.d-trust-i {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  line-height: 1.85;
  color: #3d6b4a;
}
.d-trust-i span { flex: 0 0 auto; }
.d-spec-list { margin-top: 12px; }
.d-spec-lt { font-size: 12.5px; color: var(--ink-3); margin-bottom: 7px; }
.d-spec-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.d-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.d-chip i { font-style: normal; font-size: 11.5px; color: var(--accent); font-weight: 600; }
.d-chip.out { opacity: .5; }
.d-chip.out i { color: var(--ink-3); }
.d-ship {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #f8f7f5;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.d-kf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 11px;
  background: #eef5ff;
  border: 1px solid #d8e6fb;
}
.d-kf-l { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.d-kf-wx { font-weight: 700; color: #1a5fb4; word-break: break-all; }

/* ========== 左侧竖向分类栏（手机 / 电脑都是竖列，跟韩国买手 App 一致） ========== */
.shop-body {
  display: flex;
  align-items: flex-start;
  border-top: 1px solid var(--line);
}
.cat-side {
  flex: 0 0 86px;
  width: 86px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
  overflow-y: auto;
  background: #f4f4f6;
  border-right: 1px solid var(--line);
  padding: 4px 0 70px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-side::-webkit-scrollbar { display: none; }
.cat-side .chip {
  display: block;
  position: relative;
  padding: 13px 6px;
  font-size: 13px;
  line-height: 1.25;
  color: var(--ink-2);
  text-align: center;
  cursor: pointer;
  word-break: break-word;
  transition: .15s;
}
.cat-side .chip .muted {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}
.cat-side .chip.on {
  background: #fff;
  color: var(--accent);
  font-weight: 600;
}
.cat-side .chip.on::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.cat-side .chip.on .muted { color: var(--accent); }
/* 二级分类：缩进 + 小一号 + 淡底，视觉上从属于上面那个一级分类 */
.cat-side .chip.sub {
  padding: 9px 6px 9px 18px;
  font-size: 12px;
  background: rgba(0, 0, 0, .022);
  color: var(--ink-3);
}
.cat-side .chip.sub .muted { margin-top: 1px; font-size: 10.5px; }
.cat-side .chip.sub.on {
  background: rgba(0, 0, 0, .055);
  color: var(--accent);
  font-weight: 600;
}
.cat-side .chip.sub.on::before { height: 14px; width: 2px; }
.shop-main { flex: 1; min-width: 0; }

/* 详情页底部两个按钮并排：加入购物车 / 立即下单 */
.d-btns { display: flex; gap: 8px; margin-top: 10px; }
.d-btns .btn { flex: 1 1 0; min-width: 0; }
.d-btns .d-add { margin-top: 0; }

/* 商品详情改成全屏页（原来是 86vh 的底部抽屉，只能看到一半） */
.drawer.d-full {
  top: 0;
  max-height: none;
  border-radius: 0;
  max-width: 760px;
  margin: 0 auto;
}
.drawer.d-full .dh { border-radius: 0; }

/* ============================================================
   商品描述排版（店主 2026-10-02）
   原来是一整块 pre-wrap 的纯文字，手机上密密麻麻看不到重点。
   现在前端把描述拆成「小标题 + 要点 + 段落」，这里定义它们的样式。
   注意：.d-desc 的 white-space 必须从 pre-wrap 改回 normal，
   否则我们自己排好的换行会被当成空格，排版全乱。
   ============================================================ */
.d-desc { white-space: normal; }
.d-desc-t {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -.2px;
}
.d-desc-t:not(:first-child) { margin-top: 14px; }
.d-desc-p { margin: 0 0 8px; }
.d-desc-p:last-child { margin-bottom: 0; }
.d-desc-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.d-desc-list:last-child { margin-bottom: 0; }
.d-desc-list li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px;
  line-height: 1.7;
}
.d-desc-list li:last-child { margin-bottom: 0; }
.d-desc-list li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: .62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.d-desc b { color: var(--ink); font-weight: 600; }

/* ============================================================
   评价区引导（店主 2026-10-02「引导买家评价」）
   站上一直是 0 条评价，详情页评价区空着，新顾客看不到任何参考。
   空态换成橙色卡片，明确告诉顾客「写一条能拿什么」。
   ============================================================ */
.d-rv-empty {
  margin-top: 8px;
  padding: 16px 14px;
  border-radius: 13px;
  background: linear-gradient(180deg, #fff8f3 0%, #fff3ea 100%);
  border: 1px solid #ffe2cf;
  text-align: center;
}
.d-rv-empty-ic { font-size: 26px; line-height: 1; margin-bottom: 8px; }
.d-rv-empty-t {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.d-rv-empty-s {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.d-rv-empty-s b { color: var(--accent); }
/* 空态卡片下面的评价按钮：留点间距，橙色实心更抓眼 */
.d-rv-empty + .d-rv-cta { margin-top: 12px; }
.d-rv-more {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8f3;
  border: 1px dashed #ffd9bd;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
  text-align: center;
}
.d-rv-more b { color: var(--accent); }

/* 会员等级标签（后台会员列表 / 会员等级页） */
.tier-pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tier-pill.t-bronze { background: #f2f3f5; color: #6b7280; }
.tier-pill.t-silver { background: #e8eef6; color: #4a6b93; }
.tier-pill.t-gold { background: #fdf1d8; color: #a8791a; }
.tier-pill.t-black { background: #23232a; color: #e8d79a; }
.tier-pill.t-platinum { background: #efe9fb; color: #6b4fc4; }
.tier-in { padding: 5px 6px; font-size: 13px; }

/* 结算页：会员等级运费减免那一行 */
.row.tier-off { color: #a8791a; }
.row.tier-off span:last-child { font-weight: 600; }

/* 后台「进店活动海报」：缩略预览 + 本地弹窗预览 */
.pm-preview { max-width: 190px; margin: 4px 0 14px; }
.pm-preview img { width: 100%; display: block; border-radius: 9px; border: 1px solid var(--line); }
.pm-empty { padding: 38px 12px; text-align: center; font-size: 12.5px; color: var(--ink-3);
  border: 1px dashed var(--line); border-radius: 9px; line-height: 1.6; }
.promo-preview-mask {
  position: fixed; inset: 0; z-index: 9999; background: rgba(16,15,18,.74);
  display: flex; align-items: center; justify-content: center; padding: 5vh 30px;
}
.promo-preview-card { position: relative; width: 100%; max-width: 300px; }
.promo-preview-card img { width: 100%; display: block; border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
/* 预览里的多张海报：横向滑动，和顾客端一致 */
.promo-preview-track { display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; border-radius:14px; scrollbar-width:none; }
.promo-preview-track::-webkit-scrollbar { display:none }
.promo-preview-track > div { flex:0 0 100%; scroll-snap-align:center }
/* 后台「多张海报」的每个区块 */
.pm-slide { border:1px solid var(--line); border-radius:12px; padding:12px 12px 4px; margin-bottom:12px; background:var(--bg-2); }
.pm-slide > h4 { margin:0 0 10px; font-size:13.5px; font-weight:600; display:flex; align-items:center; justify-content:space-between; }
.pm-slide .pm-thumb { max-width:150px; margin:0 0 10px; }
.pm-slide .pm-thumb img { width:100%; display:block; border-radius:8px; border:1px solid var(--line); }
.pm-slide .pm-none { padding:26px 10px; text-align:center; font-size:12.5px; color:var(--ink-3); border:1px dashed var(--line); border-radius:8px; margin-bottom:10px; }
.promo-preview-x {
  position: absolute; top: -12px; right: -8px; width: 31px; height: 31px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.34); background: rgba(24,23,27,.94); color: #fff;
  font-size: 19px; line-height: 1; display: flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer;
}
.promo-preview-hint { margin-top: 11px; text-align: center; color: rgba(255,255,255,.62); font-size: 12.5px; }

/* ---- 退款申请（顾客端订单卡 + 弹层） ---- */
.rf-line { margin-top: 8px; font-size: 12.5px; line-height: 1.55; border-radius: 8px; padding: 7px 10px; }
.rf-pending { background: #fff7e6; color: #9a6b12; }
.rf-ok { background: #eaf7ee; color: #237a41; }
.rf-no { background: #fdeeee; color: #a83a3a; }
.rf-btn { margin-top: 8px; width: 100%; padding: 9px 0; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 9px; font-size: 13px; cursor: pointer; font-family: inherit; }
.rf-btn:active { background: #f6f6f7; }
.rf-mask { position: fixed; inset: 0; z-index: 1200; background: rgba(16,15,18,.62); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.rf-mask.on { opacity: 1; }
.rf-card { width: 100%; max-width: 420px; background: #fff; border-radius: 16px 16px 0 0; padding: 18px 16px 20px; transform: translateY(16px); transition: transform .22s; max-height: 88vh; overflow: auto; }
.rf-mask.on .rf-card { transform: translateY(0); }
.rf-h { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.rf-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; line-height: 1.55; }
.rf-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rf-opt { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); cursor: pointer; background: #fff; font-family: inherit; }
.rf-opt.on { border-color: var(--accent); color: var(--accent); background: rgba(200,160,60,.08); font-weight: 600; }
.rf-ta { width: 100%; min-height: 76px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13.5px; font-family: inherit; resize: vertical; box-sizing: border-box; }
.rf-row { display: flex; gap: 10px; margin-top: 14px; }
.rf-row button { flex: 1; padding: 12px 0; border-radius: 10px; font-size: 14.5px; border: 0; cursor: pointer; font-family: inherit; }
.rf-cancel { background: #f1f1f3; color: var(--ink-2); }
.rf-send { background: var(--accent); color: #fff; font-weight: 600; }
.rf-send:disabled { opacity: .6; }

/* ------------------------------------------------------------------ *
 * 奖励专区（店主 2026-10-07）
 * 商品卡 / 详情页的「🎁 奖励」角标，以及「原价划线 + 0 元」的价格样式。
 * ------------------------------------------------------------------ */
.tag-reward {
  display: inline-block;
  vertical-align: 2px;
  margin-right: 5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: linear-gradient(135deg, #e8b64a, #d99b1d);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
}
/* 原价划线：细一点、灰一点，顾客一眼看出「划掉的原价」 */
.price-was {
  margin-right: 5px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 400;
  text-decoration: line-through;
}
.d-price .price-was { font-size: 13px; }
/* 奖励价：0 元用醒目的金色，和普通价格的红色主色区分开 */
.card .foot .price .money,
.d-price .money { font-weight: 700; }
.card .foot .price:has(.price-was) .money,
.d-price:has(.price-was) .money { color: #c8901a; }
.proof-box.proof-free { background: #fff8e8; border-color: #f0dfae; }
.proof-box.proof-free .proof-head { color: #a8791a; }

/* ---- 评论区：先让顾客看见真实评价，想写再展开 ---- */
.cm-fab-n {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: 1px;
}
.cm-fab-n[hidden] { display: none; }
.cm-sum {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #fff7f2;
  border: 1px solid #f6e0d4;
  font-size: 12.5px;
  color: var(--ink-2);
}
.cm-sum[hidden] { display: none; }
.cm-avg { font-size: 15px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.cm-sum-t { font-weight: 600; }
.cm-sum-a { margin-left: auto; color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.cm-head-act { display: flex; align-items: center; gap: 4px; }
.cm-write {
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}
.cm-write:hover { background: var(--accent-soft); }
@media (max-width: 400px) { .cm-sum-a { margin-left: 0; } }

/* 会员权益提示（规格弹层 / 购物车抽屉里的小字行） */
.tier-hint{margin-top:10px;padding:9px 12px;border-radius:11px;font-size:12px;line-height:1.6;
  color:#6b5a2e;background:linear-gradient(135deg,#fdf6e3,#faf0d7);border:1px solid #efe0b8}
.tier-hint b{color:#8a6d1f;font-weight:600}
