/* MUTE 消费者端 · 按微信内置浏览器标准写：单层滚动 + 100vh + -webkit- 前缀 */
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0d0c0b;
  color: #ded5c6;
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
}

.scroll {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}

/* ===== 顶栏 ===== */
.top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid #1a1816;
}
.top .brand {
  font-size: 15px;
  letter-spacing: .42em;
  color: #e8c67c;
  font-weight: 500;
}
.top .back { font-size: 20px; color: #8a8072; padding: 0 6px; line-height: 1; }
.top .r { font-size: 12px; color: #4f4a43; letter-spacing: .06em; }

/* ===== 首屏 ===== */
.hero { padding: 26px 20px 18px; }
.hero h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  color: #ded5c6;
  letter-spacing: .04em;
  line-height: 1.4;
}
.hero p {
  margin: 9px 0 0;
  font-size: 12px;
  color: #4f4a43;
  letter-spacing: .05em;
}

/* ===== 分类条 ===== */
.chips {
  display: flex;
  gap: 8px;
  padding: 4px 18px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  font-size: 12.5px;
  color: #8a8072;
  border: 1px solid #241f1b;
  border-radius: 16px;
  letter-spacing: .04em;
}
.chip.on {
  color: #1a1508;
  background: linear-gradient(180deg, #e8c67c, #c9a463);
  border-color: #c9a463;
}

/* ===== 商品网格 ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px;
}
.goods {
  background: #12110f;
  border: 1px solid #1c1a18;
  border-radius: 11px;
  overflow: hidden;
}
.goods .ph {
  position: relative;
  width: 100%;
  padding-top: 118%;
  background: #151413;
}
.goods .ph img {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.goods .ph .sold {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 5px 0;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .08em;
  background: rgba(0,0,0,.8);
  color: #c88b7a;
}
.goods .meta { padding: 10px 11px 12px; }
.goods .nm {
  font-size: 13.5px;
  color: #ded5c6;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.goods .cl {
  margin-top: 5px;
  font-size: 11px;
  color: #4f4a43;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.goods .pz {
  margin-top: 9px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.goods .pz b {
  font-size: 16px;
  font-weight: 500;
  color: #e8c67c;
  font-variant-numeric: tabular-nums;
}
.goods .pz span { font-size: 10.5px; color: #46423b; }

/* ===== 详情 ===== */
.detail .big {
  position: relative;
  width: 100%;
  padding-top: 110%;
  background: #151413;
}
.detail .big img {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.dbody { padding: 18px 20px 0; }
.dbody .dname { font-size: 19px; color: #ded5c6; line-height: 1.4; }
.dbody .dprice {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 500;
  color: #e8c67c;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.dbody .dprice i {
  font-style: normal;
  font-size: 15px;
  margin-right: 3px;
}
.dbody .dstock { margin-top: 7px; font-size: 12px; color: #4f4a43; }

.spec {
  margin: 18px 0 0;
  border-top: 1px solid #1a1816;
}
.spec .row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #161412;
  font-size: 13.5px;
}
.spec .row span { color: #4f4a43; }
.spec .row b { color: #ded5c6; font-weight: 400; text-align: right; }

/* ===== 颜色/尺码选择 ===== */
.pick { margin-top: 20px; }
.picklab {
  font-size: 11.5px;
  color: #4f4a43;
  letter-spacing: .1em;
  margin-bottom: 9px;
}
.pick .opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pick .opt {
  padding: 9px 15px;
  font-size: 13px;
  color: #8a8072;
  border: 1px solid #241f1b;
  border-radius: 9px;
  background: #12110f;
  position: relative;
  line-height: 1.2;
}
.pick .opt.on {
  color: #1a1508;
  background: linear-gradient(180deg, #e8c67c, #c9a463);
  border-color: #c9a463;
}
.pick .opt.off {
  color: #3a352f;
  border-style: dashed;
}
.pick .opt i {
  font-style: normal;
  font-size: 9.5px;
  margin-left: 3px;
  opacity: .8;
}

/* ===== 表单 ===== */
.form { padding: 4px 20px 0; }
.field { margin-top: 16px; }
.field .lab {
  font-size: 11.5px;
  color: #4f4a43;
  letter-spacing: .1em;
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  color: #ded5c6;
  background: #12110f;
  border: 1px solid #241f1b;
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
}
.field input:focus, .field textarea:focus { border-color: #4a3f2c; }
.field textarea { height: 76px; resize: none; }

.qtyrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  background: #12110f;
  border: 1px solid #241f1b;
  border-radius: 10px;
}
.qtyrow .qb {
  width: 34px;
  height: 34px;
  line-height: 32px;
  text-align: center;
  font-size: 19px;
  color: #c9a463;
  border: 1px solid #3a332a;
  border-radius: 8px;
}
.qtyrow .qv {
  font-size: 17px;
  color: #ded5c6;
  font-variant-numeric: tabular-nums;
}

/* ===== 底部条 ===== */
.foot {
  flex: 0 0 auto;
  padding: 12px 18px 16px;
  border-top: 1px solid #1a1816;
  background: #0d0c0b;
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot .total { flex: 1; }
.foot .total span { display: block; font-size: 10.5px; color: #4f4a43; letter-spacing: .08em; }
.foot .total b {
  font-size: 21px;
  font-weight: 500;
  color: #e8c67c;
  font-variant-numeric: tabular-nums;
}
.btn {
  padding: 14px 26px;
  font-size: 14.5px;
  letter-spacing: .1em;
  border: none;
  border-radius: 10px;
  color: #1a1508;
  background: linear-gradient(180deg, #e8c67c, #c9a463);
  font-family: inherit;
}
.btn:disabled { opacity: .4; }
.btn.ghost {
  background: transparent;
  color: #8a8072;
  border: 1px solid #241f1b;
}

/* ===== 提示 ===== */
.empty {
  padding: 70px 20px;
  text-align: center;
  font-size: 13px;
  color: #46423b;
  letter-spacing: .06em;
  line-height: 2;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  padding: 11px 20px;
  font-size: 13px;
  color: #ded5c6;
  background: rgba(26,24,22,.96);
  border: 1px solid #3a332a;
  border-radius: 10px;
  max-width: 78%;
  text-align: center;
  line-height: 1.5;
  z-index: 20;
}

/* ===== 订单成功 ===== */
.done { padding: 56px 26px 20px; text-align: center; }
.done .ok {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  line-height: 58px;
  font-size: 30px;
  color: #1a1508;
  background: linear-gradient(180deg, #e8c67c, #c9a463);
  border-radius: 50%;
}
.done h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 400;
  color: #ded5c6;
  letter-spacing: .04em;
}
.done .no {
  margin-top: 12px;
  font-size: 12.5px;
  color: #4f4a43;
  letter-spacing: .08em;
}
.done .tip {
  margin-top: 24px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.9;
  color: #8a8072;
  background: #12110f;
  border: 1px solid #1c1a18;
  border-radius: 11px;
  text-align: left;
}
.done .tip b { color: #e8c67c; font-weight: 500; }
.done .acts { margin-top: 26px; display: flex; gap: 10px; }
.done .acts .btn { flex: 1; }

/* ===== 代理入口条 ===== */
.agentbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 12px;
  padding: 12px 14px;
  background: #12110f;
  border: 1px solid #2a241d;
  border-radius: 12px;
  flex-wrap: wrap;
}
.ab-l { flex: 1 1 120px; display: flex; flex-direction: column; gap: 2px; }
.ab-l b { font-size: 13.5px; color: #e8c67c; font-weight: 600; }
.ab-l span { font-size: 11.5px; color: #6b6459; }
.ab-btns { display: flex; gap: 8px; }
.ab-btn {
  padding: 7px 13px;
  font-size: 12.5px;
  color: #0b0b0a;
  background: #e8c67c;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.ab-btn.ghost {
  background: transparent;
  color: #a89c88;
  border: 1px solid #332c22;
}
.abhead {
  padding: 12px 16px 6px;
  font-size: 13px;
  color: #e8c67c;
  letter-spacing: .04em;
}
/* ===== 按周分组 ===== */
.wk { margin-bottom: 4px; }
.wkhd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 10px;
  padding: 10px 12px;
  background: #12110f;
  border: 1px solid #241f19;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wkhd.open { border-color: #3a3123; }
.wkt { flex: 1; font-size: 13px; color: #cfc4b0; letter-spacing: .04em; }
.wkhd.open .wkt { color: #e8c67c; }
.wkn { font-size: 11.5px; color: #5e574c; }
.wka { font-style: normal; font-size: 14px; color: #8a7f6d; width: 14px; text-align: center; }