/* 衡卧衡酷祥 · H5 预览版样式（与 uni-app x 版保持同一套视觉语言） */
:root {
  --paper: #f7f1e8;
  --paper-2: #fbf7f0;
  --card: #ffffff;
  --ink: #2b2621;
  --ink-2: #5b534a;
  --ink-3: #958c7e;
  --line: #ece2d4;
  --brand: #c8452b;
  --brand-soft: #fbeae4;
  --green: #4c6b4f;
  --gold: #a5761a;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(90, 62, 40, .07);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #e9e0d4;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* 桌面下居中手机框 */
#stage {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100%;
  margin: 0 auto;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(80, 55, 35, .06), 0 24px 60px rgba(60, 40, 25, .18);
}

@media (min-width: 560px) {
  body { padding: 0; }
  #stage { height: calc(100% - 32px); margin: 16px auto; border-radius: 26px; }
}

#view {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 16px;
  /* 手机上滚动条不占位，桌面预览保持一致（否则内容会被裁 15px） */
  scrollbar-width: none;
}
#view::-webkit-scrollbar,
.cat-side::-webkit-scrollbar,
.cat-main::-webkit-scrollbar { display: none; }
.cat-side, .cat-main { scrollbar-width: none; }
#view.hide-tabbar { padding-bottom: 0; }

/* ---------------- 通用 ---------------- */
.hidden { display: none !important; }

.pad { padding: 0 16px; }

.sec-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 16px 12px;
}
.sec-title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .5px;
}
.sec-title span { font-size: 11.5px; color: var(--ink-3); }

.price {
  color: var(--brand);
  font-weight: 600;
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
}
.price i { font-style: normal; font-size: 11px; margin-right: 1px; }
.price s {
  color: var(--ink-3);
  font-weight: 400;
  font-size: 11px;
  margin-left: 5px;
  font-family: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: 21px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px;
  cursor: pointer;
  transition: transform .12s, opacity .12s;
  font-family: inherit;
}
.btn:active { transform: scale(.97); opacity: .9; }
.btn.block { display: flex; width: 100%; height: 46px; font-size: 15px; }
.btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.btn.dark { background: #3a332c; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10.5px;
  letter-spacing: .3px;
}

.empty {
  padding: 80px 20px;
  text-align: center;
  color: var(--ink-3);
}
.empty .ico { font-size: 34px; opacity: .35; display: block; margin-bottom: 12px; }
.empty p { margin: 0 0 16px; font-size: 13px; }

/* ---------------- 顶栏 ---------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 12px;
  background: rgba(247, 241, 232, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(236, 226, 212, .7);
}
.navbar .back {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}
.navbar .nav-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  margin-right: 34px;
}

/* ---------------- 首页 ---------------- */
.hero-head {
  padding: 18px 16px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.hero-head .brandline {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.hero-head h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 1px;
}
.hero-head .date { font-size: 11px; color: var(--ink-3); padding-bottom: 4px; }

.swiper {
  position: relative;
  margin: 6px 16px 0;
  height: 168px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.slides { height: 100%; position: relative; }
.slide {
  position: absolute;
  inset: 0;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity .5s ease;
  cursor: pointer;
}
.slide.on { opacity: 1; }
.slide .kicker {
  font-size: 10.5px;
  letter-spacing: 2.5px;
  opacity: .72;
  margin-bottom: 8px;
}
.slide h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.25;
}
.slide p { margin: 0; font-size: 11.5px; opacity: .78; }
.slide .badge {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .6);
  font-size: 10px;
  letter-spacing: .5px;
}
.dots {
  position: absolute;
  bottom: 12px;
  left: 20px;
  display: flex;
  gap: 5px;
}
.dots i {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .5);
  transition: width .3s;
}
.dots i.on { width: 16px; background: rgba(255, 255, 255, .95); }

.cats {
  display: flex;
  gap: 10px;
  padding: 16px 16px 4px;
}
.cat-card {
  flex: 1;
  padding: 14px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform .15s;
  border: 1px solid rgba(255, 255, 255, .7);
}
.cat-card:active { transform: scale(.97); }
.cat-card .cn { font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }
.cat-card .cs { font-size: 10.5px; opacity: .68; line-height: 1.4; }

.goods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  padding: 4px 16px 0;
}
.pcard {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(90, 62, 40, .05);
  transition: transform .15s;
}
.pcard:active { transform: scale(.975); }
.pcard .art {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pcard .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .info { padding: 10px 11px 12px; }
.pcard .nm {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard .sb {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.pcard .price { font-size: 15px; }
.pcard .sold { font-size: 10px; color: var(--ink-3); }

/* ---------------- 分类页 ---------------- */
.cat-wrap {
  display: flex;
  height: calc(100vh - 50px);
  height: calc(100dvh - 50px);
  overflow: hidden;
}
@media (min-width: 560px) {
  .cat-wrap { height: calc(100% - 50px); }
}
.cat-side {
  width: 96px;
  flex: none;
  background: var(--paper-2);
  overflow-y: auto;
  border-right: 1px solid var(--line);
}
.cat-side .item {
  position: relative;
  padding: 18px 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.35;
}
.cat-side .item.on {
  background: var(--paper);
  color: var(--brand);
  font-weight: 600;
}
.cat-side .item.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
}
.cat-side .item small {
  display: block;
  font-size: 9.5px;
  opacity: .6;
  margin-top: 3px;
  font-weight: 400;
}
.cat-main { flex: 1; overflow-y: auto; padding: 0 12px 20px; }
.cat-head { padding: 16px 4px 10px; }
.cat-head h2 { margin: 0 0 3px; font-size: 16px; font-weight: 600; }
.cat-head p { margin: 0; font-size: 11px; color: var(--ink-3); }

.row-item {
  display: flex;
  gap: 11px;
  padding: 10px;
  background: var(--card);
  border-radius: 14px;
  margin-bottom: 9px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(90, 62, 40, .045);
}
.row-item .art {
  width: 82px;
  height: 82px;
  flex: none;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.row-item .art img { width: 100%; height: 100%; object-fit: cover; }
.row-item .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-item .nm {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-item .sb {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-item .sp { font-size: 10.5px; color: var(--ink-2); }
.row-item .bt {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.row-item .price { font-size: 14.5px; }
.mini-add {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* ---------------- 详情页 ---------------- */
.detail-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .back-float {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 17px;
  border: none;
  background: rgba(255, 255, 255, .82);
  font-size: 17px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.detail-body {
  margin-top: -22px;
  position: relative;
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  padding: 20px 16px 0;
}
.detail-body .tags { display: flex; gap: 6px; margin-bottom: 10px; }
.detail-body h1 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}
.detail-body .sub { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.detail-body .priceline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.detail-body .priceline .price { font-size: 26px; }
.detail-body .priceline .price i { font-size: 14px; }

.spec-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.spec-block .lb { font-size: 13px; color: var(--ink-2); }
.spec-block .vl {
  font-size: 13px;
  color: var(--ink);
  background: var(--paper-2);
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.stepper { display: flex; align-items: center; gap: 0; }
.stepper button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.stepper button:first-child { border-radius: 8px 0 0 8px; }
.stepper button:last-child { border-radius: 0 8px 8px 0; }
.stepper span {
  min-width: 40px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  height: 28px;
  line-height: 28px;
}

.desc { padding: 20px 0 120px; }
.desc h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}
.desc p {
  margin: 0;
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-2);
}

.action-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 247, 240, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.action-bar .btn { flex: 1; }

/* ---------------- 购物车 ---------------- */
.cart-list { padding: 12px 16px 0; }
.citem {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 12px;
  background: var(--card);
  border-radius: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(90, 62, 40, .045);
}
.checkbox {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 10px;
  border: 1.5px solid #d6cabb;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  padding: 0;
}
.checkbox.on { background: var(--brand); border-color: var(--brand); }
.citem .art {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
}
.citem .art img { width: 100%; height: 100%; object-fit: cover; }
.citem .mid { flex: 1; min-width: 0; }
.citem .nm {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.citem .sp { font-size: 10.5px; color: var(--ink-3); margin-bottom: 8px; }
.citem .bt {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.citem .price { font-size: 14.5px; }
.citem .del {
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-size: 11px;
  cursor: pointer;
  padding: 4px;
}

.freeship {
  margin: 0 16px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--brand-soft);
  font-size: 11.5px;
  color: #8a3a26;
}
.freeship b { color: var(--brand); }
.bar-progress {
  height: 4px;
  border-radius: 2px;
  background: rgba(200, 69, 43, .16);
  margin-top: 8px;
  overflow: hidden;
}
.bar-progress i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  transition: width .35s;
}

.cart-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(251, 247, 240, .97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.cart-bar .all { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.cart-bar .sum { flex: 1; text-align: right; }
.cart-bar .sum .lb { font-size: 10.5px; color: var(--ink-3); }
.cart-bar .sum .amount { font-size: 19px; color: var(--brand); font-weight: 600; font-family: "DIN Alternate", sans-serif; }
.cart-bar .btn { height: 40px; padding: 0 22px; }

/* ---------------- 结算 ---------------- */
.panel {
  background: var(--card);
  border-radius: 15px;
  padding: 14px;
  margin: 12px 16px 0;
  box-shadow: 0 2px 10px rgba(90, 62, 40, .045);
}
.panel .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.addr-main { display: flex; align-items: center; gap: 10px; }
.addr-main .pin { font-size: 17px; color: var(--brand); }
.addr-main .nm { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.addr-main .dt { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  cursor: pointer;
}
.pay-row:last-child { border-bottom: none; padding-bottom: 0; }
.pay-row .lf { display: flex; align-items: center; gap: 9px; }
.pay-row .rd {
  width: 18px;
  height: 18px;
  border-radius: 9px;
  border: 1.5px solid #d6cabb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-row.on .rd { border-color: var(--brand); }
.pay-row.on .rd::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: var(--brand);
}
.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 7px 0;
}
.sum-row.total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px;
  font-size: 13px;
  color: var(--ink);
}
.sum-row.total b { color: var(--brand); font-size: 18px; font-family: "DIN Alternate", sans-serif; }
.remark-input {
  width: 100%;
  border: none;
  outline: none;
  background: var(--paper-2);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ink);
  resize: none;
}
.remark-input::placeholder { color: #b8ad9d; }

.thumb-line { display: flex; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.thumb-line img {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
}

/* ---------------- 订单 ---------------- */
.tabs {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs button {
  flex: none;
  padding: 7px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
}
.tabs button.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.ocard {
  margin: 12px 16px 0;
  background: var(--card);
  border-radius: 15px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(90, 62, 40, .045);
  cursor: pointer;
}
.ocard .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-3);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.ocard .top .st { font-weight: 600; }
.ocard .goods { display: flex; gap: 10px; padding: 12px 0; }
.ocard .goods img {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}
.ocard .goods .gi { flex: 1; min-width: 0; }
.ocard .goods .nm {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ocard .goods .sp { font-size: 10.5px; color: var(--ink-3); }
.ocard .goods .more { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.ocard .bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
}
.ocard .bot .amt { font-size: 12px; color: var(--ink-2); }
.ocard .bot .amt b { color: var(--brand); font-size: 16px; font-family: "DIN Alternate", sans-serif; }
.ocard .acts { display: flex; gap: 8px; }
.ocard .acts button {
  padding: 6px 14px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.ocard .acts button.primary {
  border-color: var(--brand);
  color: var(--brand);
}

.detail-line {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 8px 0;
  color: var(--ink-2);
}
.detail-line span:last-child { color: var(--ink); text-align: right; max-width: 62%; }

/* ---------------- 我的 ---------------- */
.me-hero {
  padding: 26px 16px 20px;
  background: linear-gradient(160deg, #f4e6d6 0%, #f7f1e8 100%);
}
.me-top { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 27px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 600;
  flex: none;
}
.me-top .nm { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.me-top .ph { font-size: 11.5px; color: var(--ink-3); letter-spacing: .5px; }

.me-id { min-width: 0; }

/* 昵称旁的角色小标签 */
.role-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 20px;
  margin-left: 5px;
  vertical-align: 2px;
  letter-spacing: .5px;
}
.role-chip.guest { background: #ece7dd; color: #6f6659; }
.role-chip.member { background: #e3ecdd; color: #4c6b4f; }
.role-chip.station { background: #dfe7f0; color: #41597a; }
.role-chip.center { background: #f6e3c9; color: #8a5a2b; }

/* 角色卡：四档不同配色 */
.role-card {
  margin-top: 16px;
  padding: 15px 17px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f6ece0;
  background: linear-gradient(115deg, #3a332c, #55483c);
}
.role-card.member { background: linear-gradient(115deg, #3c4a38, #5b6f52); }
.role-card.station { background: linear-gradient(115deg, #2f3d4e, #4a617c); }
.role-card.center { background: linear-gradient(115deg, #4a371f, #7d5a2c); }
.role-card .rc-role { font-size: 15px; font-weight: 600; letter-spacing: 1.5px; }
.role-card .rc-desc { font-size: 10.5px; opacity: .68; margin-top: 5px; letter-spacing: .5px; }
.role-card .rc-side { font-size: 10.5px; opacity: .8; letter-spacing: 1px; }

/* 邀请码面板 */
.invite-panel {
  margin: 12px 16px 0;
  padding: 15px 16px 14px;
  background: var(--card);
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(90, 62, 40, .045);
}
.ip-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ip-code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--brand);
}
.ip-code.locked { font-size: 14px; letter-spacing: 1px; color: var(--ink-3); font-family: inherit; }
.ip-lb { font-size: 10.5px; color: var(--ink-3); margin-top: 5px; }
.ip-btn {
  flex: none;
  border: 1px solid rgba(200, 69, 43, .35);
  background: transparent;
  color: var(--brand);
  font-size: 11.5px;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
}
.ip-btn.solid { background: var(--brand); color: #fff; border-color: var(--brand); }
.ip-hint { font-size: 10.5px; color: var(--ink-3); margin-top: 11px; line-height: 1.6; }
.ip-next {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed rgba(120, 96, 70, .16);
  font-size: 11.5px;
  color: #8a5a2b;
  cursor: pointer;
}

/* 注册页会员体系说明 */
.role-tips {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(120, 96, 70, .1);
}
.rt-title { font-size: 11.5px; font-weight: 600; letter-spacing: 1px; margin-bottom: 9px; color: #6f6659; }
.rt-row { display: flex; justify-content: space-between; font-size: 11px; padding: 3px 0; }
.rt-row span { color: #4a4239; font-weight: 500; }
.rt-row i { font-style: normal; color: var(--ink-3); }
.rt-note { font-size: 10px; color: var(--ink-3); margin-top: 9px; line-height: 1.6; }
.req { font-style: normal; color: var(--brand); font-size: 10px; margin-left: 4px; }

/* 我的团队 */
.mm-head { padding: 16px 16px 6px; font-size: 11px; color: var(--ink-3); }
.mm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 10px;
  padding: 14px 15px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(90, 62, 40, .04);
}
.mm-av {
  width: 36px; height: 36px; border-radius: 18px; flex: none;
  background: #f0e4d5; color: #8a5a2b;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.mm-mid { flex: 1; min-width: 0; }
.mm-nm { font-size: 13px; font-weight: 600; }
.mm-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.mm-date { font-size: 10.5px; color: var(--ink-3); }

/* 商品卡右上角升级角标 */
.up-tag {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(200, 69, 43, .92);
  color: #fff;
  font-size: 9.5px;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: .5px;
}
.pcard .art { position: relative; }

/* 详情页升级说明条 */
.up-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(105deg, #fbeadd, #f8f2e4);
  border: 1px solid rgba(200, 69, 43, .14);
}
.up-banner .ub-ic { color: var(--brand); font-size: 13px; }
.up-banner b { display: block; font-size: 12.5px; color: #8e3621; font-weight: 600; }
.up-banner i { display: block; font-style: normal; font-size: 10px; color: var(--ink-3); margin-top: 4px; }

/* 升级成功弹层 */
.up-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(32, 24, 18, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 0 32px;
  animation: upfade .22s ease;
}
@keyframes upfade { from { opacity: 0 } to { opacity: 1 } }
.up-card {
  width: 100%;
  max-width: 300px;
  background: linear-gradient(170deg, #fffdf8, #fbf2e4);
  border-radius: 20px;
  padding: 26px 22px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(40, 28, 18, .3);
}
.up-seal {
  width: 46px; height: 46px; margin: 0 auto 12px;
  border-radius: 23px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
}
.up-title { font-size: 17px; font-weight: 600; color: #3a332c; }
.up-desc { font-size: 11.5px; color: #7b7266; line-height: 1.85; margin-top: 10px; }
.up-code {
  display: inline-block; margin: 5px 0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 17px; letter-spacing: 3px; color: var(--brand);
}
.up-btns { display: flex; gap: 10px; margin-top: 20px; }
.up-btn {
  flex: 1; height: 40px; border: none; border-radius: 20px;
  background: var(--brand); color: #fff;
  font-size: 12.5px; cursor: pointer;
}
.up-btn.ghost { background: #f0e7d9; color: #6f6659; }

.stat-row {
  display: flex;
  margin: 12px 16px 0;
  background: var(--card);
  border-radius: 15px;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(90, 62, 40, .045);
}
.stat-row .cell {
  flex: 1;
  text-align: center;
  cursor: pointer;
  position: relative;
}
.stat-row .cell + .cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--line);
}
.stat-row .num {
  font-size: 19px;
  font-weight: 600;
  font-family: "DIN Alternate", sans-serif;
  color: var(--ink);
}
.stat-row .lb { font-size: 11px; color: var(--ink-3); margin-top: 3px; }

.menu {
  margin: 12px 16px 0;
  background: var(--card);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(90, 62, 40, .045);
}
.menu .row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 14px;
  font-size: 13.5px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.menu .row:last-child { border-bottom: none; }
.menu .row .ic { font-size: 15px; width: 20px; text-align: center; color: var(--ink-2); }
.menu .row .ar { margin-left: auto; color: #c9bda9; font-size: 15px; }
.menu .row.danger { color: var(--brand); }

/* ---------------- 表单/登录 ---------------- */
.auth-wrap { padding: 40px 26px; }
.auth-wrap .logo {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.auth-wrap h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
}
.auth-wrap .lead { font-size: 12.5px; color: var(--ink-3); margin-bottom: 30px; line-height: 1.6; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 7px;
  letter-spacing: .5px;
}
.field input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  transition: border-color .18s;
}
.field input:focus { border-color: var(--brand); }
.field input::placeholder { color: #bcb1a1; }
.field .with-btn { display: flex; gap: 9px; }
.field .with-btn input { flex: 1; }
.field .with-btn button {
  flex: none;
  width: 108px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.field .with-btn button:disabled {
  border-color: var(--line);
  color: var(--ink-3);
  cursor: not-allowed;
}

.switch-mode {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.switch-mode button {
  padding: 0 0 11px;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink-3);
  cursor: pointer;
  position: relative;
  font-family: inherit;
}
.switch-mode button.on { color: var(--ink); font-weight: 600; }
.switch-mode button.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}
.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
}
.auth-foot a { color: var(--brand); text-decoration: none; margin-left: 4px; }
.hint {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.7;
  border: 1px dashed var(--line);
}

/* ---------------- tabbar ---------------- */
#tabbar {
  display: none;
  background: rgba(251, 247, 240, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
#tabbar.show { display: flex; }
#tabbar .tb {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--ink-3);
  font-size: 10px;
  cursor: pointer;
  font-family: inherit;
  position: relative;
}
#tabbar .tb .ic { font-size: 17px; line-height: 1; }
#tabbar .tb.on { color: var(--brand); }
#tabbar .tb .bg {
  position: absolute;
  top: 3px;
  right: 50%;
  margin-right: -22px;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 9.5px;
  line-height: 15px;
  padding: 0 4px;
  text-align: center;
}

/* ---------------- toast ---------------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translate(-50%, 12px);
  max-width: 78%;
  padding: 10px 18px;
  border-radius: 20px;
  background: rgba(43, 38, 33, .9);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 999;
  text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 余额 ---------------- */
/* 我的页余额卡片 */
.wal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 16px 0;
  padding: 15px 17px;
  border-radius: 15px;
  background: linear-gradient(115deg, #2f3a33, #485b47);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(45, 65, 50, .18);
}
.wal-card .wc-lb { font-size: 10.5px; opacity: .7; letter-spacing: 1px; }
.wal-card .wc-num {
  font-size: 22px;
  font-weight: 600;
  margin-top: 4px;
  font-family: "DIN Alternate", -apple-system, sans-serif;
  letter-spacing: .5px;
}
.wal-card .wc-rt { font-size: 11px; opacity: .78; }

/* 结算页余额支付行 */
.pay-row.bal .pay-sub {
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-left: 2px;
}
.pay-row.bal.off .lf span { color: var(--ink-3); }
.pay-row.bal.off .rd { border-color: #e6ddd0; background: #faf6f0; }
.sum-row.bal-after { color: var(--ink-3); font-size: 11.5px; }
.sum-row.bal-after span:last-child { color: var(--green); font-weight: 600; }

/* 余额页 */
.wal-hero {
  margin: 12px 16px 0;
  padding: 20px 18px 18px;
  border-radius: 18px;
  background: linear-gradient(120deg, #2c372f, #4c6149);
  color: #fff;
  box-shadow: 0 8px 22px rgba(45, 65, 50, .2);
  position: relative;
  overflow: hidden;
}
.wal-hero::after {
  content: "¥";
  position: absolute;
  right: 12px;
  top: -8px;
  font-size: 92px;
  opacity: .07;
  line-height: 1;
}
.wal-hero .wh-lb { font-size: 10.5px; opacity: .7; letter-spacing: 1.5px; }
.wal-hero .wh-num {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  margin: 6px 0 4px;
  font-family: "DIN Alternate", -apple-system, sans-serif;
  letter-spacing: .5px;
}
.wal-hero .wh-num span { font-size: 22px; opacity: .85; }
.wal-hero .wh-meta { font-size: 10.5px; opacity: .62; }
.wal-hero .wh-tip { font-size: 10.5px; opacity: .72; margin-top: 12px; line-height: 1.6; }
.wal-hero .wh-cta {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 11.5px;
  padding: 7px 16px;
  border-radius: 18px;
  cursor: pointer;
}

.wal-nums {
  display: flex;
  margin: 12px 16px 0;
  padding: 14px 6px;
  background: var(--card);
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(90, 62, 40, .045);
}
.wal-nums .wn { flex: 1; text-align: center; position: relative; }
.wal-nums .wn + .wn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.wal-nums .wn-v {
  font-size: 15px;
  font-weight: 600;
  font-family: "DIN Alternate", -apple-system, sans-serif;
}
.wal-nums .wn-l { font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }

.wlog-list { margin: 0 16px 16px; background: var(--card); border-radius: 15px; overflow: hidden; box-shadow: 0 2px 10px rgba(90, 62, 40, .045); }
.wlog {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.wlog:last-child { border-bottom: none; }
.wlog .wl-ic {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.wlog .wl-ic.in { background: #fbeae4; color: var(--brand); }
.wlog .wl-ic.out { background: #edf2e8; color: var(--green); }
.wlog .wl-ic.adj { background: #f7f1de; color: var(--gold); }
.wlog .wl-mid { flex: 1; min-width: 0; }
.wlog .wl-tt { font-size: 13px; font-weight: 600; }
.wlog .wl-tt i {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 7px;
}
.wlog .wl-sub {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wlog .wl-amt {
  flex: none;
  font-size: 15px;
  font-weight: 600;
  font-family: "DIN Alternate", -apple-system, sans-serif;
}
.wlog .wl-amt.in { color: var(--brand); }
.wlog .wl-amt.out { color: var(--ink); }
.wl-hint { font-size: 10.5px; color: var(--ink-3); margin-top: 10px; line-height: 1.6; }

/* ---------------- 自提点 ---------------- */
/* 结算页配送方式 */
.deliver-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  cursor: pointer;
}
.deliver-row:last-child { border-bottom: none; padding-bottom: 0; }
.deliver-row .lf { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.deliver-row .lf i { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.deliver-row .rd {
  flex: none;
  width: 18px; height: 18px; border-radius: 9px;
  border: 1.5px solid #d6cabb;
  display: flex; align-items: center; justify-content: center;
}
.deliver-row.on .rd { border-color: var(--brand); }
.deliver-row.on .rd::after { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--brand); }
.deliver-row.off { opacity: .55; }
.deliver-row.off .lf span { color: var(--ink-3); }

/* 结算页自提点选择 */
.pk-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.pk-pick:last-child { border-bottom: none; padding-bottom: 0; }
.pk-pick-main { flex: 1; min-width: 0; }
.pk-pick .nm { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.pk-pick .dt { font-size: 10.5px; color: var(--ink-3); line-height: 1.6; }
.pk-pick .rd {
  flex: none;
  width: 18px; height: 18px; border-radius: 9px;
  border: 1.5px solid #d6cabb;
}
.pk-pick.on .rd { border: 5px solid var(--brand); }

/* 我的自提点 */
.pk-hero {
  margin: 14px 16px 0;
  padding: 16px 17px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 2px 12px rgba(90, 62, 40, .06);
  border-left: 3px solid var(--gold);
}
.pk-hero.ok { border-left-color: var(--green); }
.pk-hero.wait { border-left-color: var(--gold); }
.pk-hero.no { border-left-color: var(--brand); }
.pk-hero.off { border-left-color: var(--ink-3); }
.pk-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pk-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 9px;
  background: #f7f1de;
  color: var(--gold);
}
.pk-hero.ok .pk-badge { background: #edf2e8; color: var(--green); }
.pk-hero.no .pk-badge { background: var(--brand-soft); color: var(--brand); }
.pk-hero.off .pk-badge { background: #f0ece5; color: var(--ink-3); }
.pk-src { font-size: 10px; color: var(--ink-3); }
.pk-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.pk-line { font-size: 11px; color: var(--ink-3); line-height: 1.75; }
.pk-reason {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--paper-2);
  font-size: 10.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.pk-reason.ok { background: #edf2e8; color: var(--green); }
.pk-acts { display: flex; gap: 8px; margin-top: 12px; }
.pk-act {
  flex: 1;
  padding: 9px 0;
  border-radius: 11px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.pk-act.ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }

.pk-intro {
  margin: 14px 16px 0;
  padding: 16px 17px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 2px 12px rgba(90, 62, 40, .05);
}
.pk-intro-t { font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.pk-intro-d { font-size: 11px; color: var(--ink-3); line-height: 1.75; }

.pk-form .pk-field {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.pk-form .pk-field:last-of-type { border-bottom: none; }
.pk-form .pk-field span {
  flex: none;
  width: 82px;
  font-size: 12px;
  color: var(--ink-2);
}
.pk-form .pk-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 12.5px;
  color: var(--ink);
  text-align: right;
}
.pk-form .pk-field input::placeholder { color: #c3b8a7; }
.pk-form-btns { padding-top: 12px; display: flex; flex-direction: column; gap: 9px; }

.pk-list-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 20px 18px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.pk-list-title span { font-size: 10.5px; font-weight: 400; color: var(--ink-3); }

.pk-item {
  display: flex;
  gap: 11px;
  margin: 0 16px 8px;
  padding: 13px 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(90, 62, 40, .045);
}
.pk-item-ic {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: #edf2e8;
  color: var(--green);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.pk-item-main { flex: 1; min-width: 0; }
.pk-item .nm { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.pk-item .dt { font-size: 10.5px; color: var(--ink-3); line-height: 1.65; }
.pk-item .dt.intro { color: var(--ink-2); margin-top: 2px; }
.pk-empty {
  margin: 0 16px;
  padding: 22px 0;
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  background: var(--card);
  border-radius: 14px;
}

/* ---------------- 结算页：取货方式左右切换 + 二级选择层 ---------------- */
.cf-switch {
  display: flex;
  gap: 6px;
  margin: 12px 16px 0;
  padding: 5px;
  background: #efe6d8;
  border-radius: 15px;
}
.cf-tab {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 11px;
  padding: 8px 6px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s, box-shadow .18s;
}
.cf-tab b { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.cf-tab i { font-style: normal; font-size: 9.5px; color: var(--ink-3); letter-spacing: .2px; }
.cf-tab.on { background: #fff; box-shadow: 0 2px 8px rgba(90, 62, 40, .10); }
.cf-tab.on b { color: var(--brand); }
.cf-tab.off { opacity: .45; }

.cf-target {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 10px 16px 0;
  padding: 12px 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(90, 62, 40, .05);
  cursor: pointer;
}
.cf-target:active { background: #fffdfa; }
.tg-ic {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.tg-ic.pk { background: #edf2e8; color: var(--green); }
.tg-main { flex: 1; min-width: 0; }
.tg-nm {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}
.tg-nm em { font-style: normal; font-weight: 400; font-size: 10.5px; color: var(--ink-3); }
.tg-dt {
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tg-dt.dim { color: var(--ink-3); margin-top: 1px; }
.tg-def {
  flex: none;
  font-size: 9px;
  font-weight: 400;
  padding: 1px 6px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
}
.tg-def.green { background: #edf2e8; color: var(--green); }
.tg-ar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  color: #c6bdae;
}
.tg-ar i { font-style: normal; font-size: 9.5px; color: var(--ink-3); }
.cf-target.empty .tg-ic { background: #f1ece3; color: var(--ink-3); }

/* 二级选择层（底部抽屉） */
.sheet-wrap {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
}
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(38, 28, 20, .42);
  opacity: 0;
  transition: opacity .24s;
}
.sheet {
  position: relative;
  width: 100%;
  max-height: 74%;
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border-radius: 22px 22px 0 0;
  transform: translateY(100%);
  transition: transform .26s cubic-bezier(.22, .8, .3, 1);
  overflow: hidden;
}
.sheet-wrap.on .sheet { transform: translateY(0); }
.sheet-wrap.on .sheet-mask { opacity: 1; }
.sheet-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 11px;
  border-bottom: 1px solid var(--line);
}
.sheet-hd b { font-size: 14px; font-weight: 600; }
.sheet-hd i { font-style: normal; font-size: 10px; color: var(--ink-3); }
.sheet-x {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-size: 14px;
  padding: 2px 4px;
  cursor: pointer;
}
.sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 9px 14px 6px;
  scrollbar-width: none;
}
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-ft {
  padding: 10px 16px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.sheet-tip { font-size: 10px; color: var(--ink-3); text-align: center; line-height: 1.6; }
.sheet-ft .btn.block { height: 42px; font-size: 14px; }

.sh-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  margin-bottom: 8px;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(90, 62, 40, .04);
}
.sh-item.on { border-color: var(--brand); background: #fffaf7; }
.sh-main { flex: 1; min-width: 0; }
.sh-nm {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
}
.sh-nm em { font-style: normal; font-weight: 400; font-size: 10.5px; color: var(--ink-3); }
.sh-dt { font-size: 10.5px; color: var(--ink-2); line-height: 1.6; margin-top: 3px; }
.sh-dt.dim { color: var(--ink-3); margin-top: 1px; }
.sh-acts { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.sh-mini {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 9px;
  cursor: pointer;
}
.sh-def-on { font-size: 9.5px; color: var(--green); }
.sh-item .rd {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 9px;
  border: 1.5px solid #d6cabb;
}
.sh-item.on .rd { border: 5px solid var(--brand); }
.sh-empty { padding: 34px 0; text-align: center; font-size: 11.5px; color: var(--ink-3); }

/* ---------------- 收货地址管理 ---------------- */
.ad-card { margin-top: 10px; }
.ad-top { display: flex; gap: 10px; }
.ad-top .pin { flex: none; font-size: 16px; color: var(--brand); line-height: 1.25; }
.ad-main { flex: 1; min-width: 0; }
.ad-nm {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
}
.ad-nm em { font-style: normal; font-weight: 400; font-size: 10.5px; color: var(--ink-3); }
.ad-dt { font-size: 11.5px; color: var(--ink-2); line-height: 1.6; margin-top: 4px; }
.ad-acts {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}
.ad-mini {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 9px;
  cursor: pointer;
}
.ad-mini.danger { color: var(--brand); border-color: #f0d9d1; }
.ad-def-on { margin-right: auto; font-size: 10px; color: var(--green); }
.ad-form { padding: 15px 14px 14px; }
.ad-def-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--ink-2);
}
.ad-def-line input { width: 16px; height: 16px; accent-color: var(--brand); }
.ad-form-btns { display: flex; flex-direction: column; gap: 9px; }
.ad-form-btns .btn.block { height: 42px; font-size: 14px; }

/* ---------------- 我的页：左侧分享二维码 ---------------- */
.ip-top { align-items: center; }
.ip-qr {
  flex: none;
  width: 50px;
  height: 50px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
}
.ip-qr svg { width: 100%; height: 100%; display: block; }
.ip-main { flex: 1; min-width: 0; }
.ip-acts { flex: none; display: flex; flex-direction: column; gap: 5px; }
.ip-acts .ip-btn { padding: 5px 12px; font-size: 11px; border-radius: 13px; }

/* 注册页：谁邀请了你 */
.rg-tip {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.55;
  background: #f1f6ec;
  color: #3f5a41;
  border: 1px solid #dde8d7;
}
.rg-tip.bad { background: #fdf0ec; color: #a03b25; border-color: #f2d8d0; }
.rg-tip .ic { flex: none; font-size: 13px; line-height: 1.4; }
.rg-tip b { font-weight: 600; }
.rg-sub { font-size: 10.5px; opacity: .72; margin-top: 2px; }

/* ---------------- 分享有礼（邀请二维码） ---------------- */
.sh-hero {
  position: relative;
  margin: 12px 16px 0;
  padding: 17px 16px 19px;
  border-radius: 20px;
  background: linear-gradient(158deg, #2f3a2c 0%, #485a3e 52%, #6d5a37 100%);
  color: #f7f0e3;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(46, 40, 30, .18);
}
.sh-brand { font-size: 11.5px; letter-spacing: 1.5px; opacity: .82; }
.sh-brand span { display: block; font-size: 8.5px; letter-spacing: 4px; opacity: .62; margin-bottom: 4px; }
.sh-card {
  width: 84%;
  max-width: 246px;
  margin: 13px auto 12px;
  padding: 14px 14px 10px;
  background: #fff;
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(20, 16, 10, .2);
}
.sh-qr {
  width: 168px;
  height: 168px;
  margin: 0 auto;
  line-height: 0;
}
.sh-qr svg { width: 100%; height: 100%; display: block; }
.sh-code {
  margin-top: 9px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .5px;
}
.sh-code b {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--brand);
  margin-left: 4px;
}
.sh-qr-tip { font-size: 9.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.5; }
.sh-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
}
.sh-av {
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.sh-user b { font-weight: 600; }
.sh-user i { font-style: normal; font-size: 10px; opacity: .62; }
.sh-lead { font-size: 10.5px; opacity: .66; margin-top: 8px; }

.sh-stats {
  display: flex;
  margin: 12px 16px 0;
  padding: 13px 0;
  background: var(--card);
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(90, 62, 40, .05);
}
.ss { flex: 1; text-align: center; position: relative; }
.ss + .ss::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: var(--line);
}
.ss b {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
}
.ss i { font-style: normal; font-size: 10px; color: var(--ink-3); }

.sh-acts { display: flex; gap: 10px; padding: 13px 16px 0; }
.sh-acts .btn { flex: 1; height: 42px; font-size: 13.5px; }
.sh-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 16px 0;
  padding: 9px 12px;
  background: rgba(255, 255, 255, .62);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 10.5px;
  color: var(--ink-3);
  cursor: pointer;
}
.sh-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-link b { flex: none; font-weight: 500; color: var(--brand); }

.sh-steps { display: flex; flex-direction: column; gap: 9px; margin: 0 16px; }
.st { display: flex; gap: 10px; align-items: flex-start; font-size: 11.5px; line-height: 1.6; color: var(--ink-2); }
.st b {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-list { margin: 0 16px; }
.sh-item2 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
  padding: 11px 13px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(90, 62, 40, .04);
}
.sh-av.sm {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  flex: none;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
}
.si-mid { flex: 1; min-width: 0; }
.si-nm { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.si-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }

/* ---------------- 我的佣金 ---------------- */
.cm-hero {
  position: relative;
  margin: 12px 16px 0;
  padding: 16px 17px 17px;
  border-radius: 20px;
  background: linear-gradient(156deg, #333f2c 0%, #4a5c3c 48%, #7a6437 100%);
  color: #f8f1e4;
  box-shadow: 0 10px 24px rgba(46, 40, 30, .18);
  overflow: hidden;
}
.ch-lb { font-size: 11px; letter-spacing: .6px; opacity: .78; }
.ch-num {
  margin-top: 5px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
}
.ch-num::before { content: "¥"; font-size: 16px; margin-right: 3px; opacity: .8; }
.ch-meta { margin-top: 7px; font-size: 10.5px; opacity: .78; }
.ch-meta b { font-weight: 600; color: #f4d79b; }
.ch-acts { display: flex; gap: 9px; margin-top: 13px; }
.ch-btn {
  flex: 1;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: #f5e7cf;
  color: #4a3a22;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ch-btn.ghost { background: rgba(255, 255, 255, .16); color: #f4ecdd; }
.ch-btn:disabled { opacity: .45; cursor: default; }

.cm-nums {
  display: flex;
  margin: 11px 16px 0;
  padding: 12px 0;
  background: var(--card);
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(90, 62, 40, .05);
}
.cm-nums .cn { flex: 1; text-align: center; position: relative; }
.cm-nums .cn + .cn::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--line);
}
.cn-v { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.cn-l { font-size: 10px; color: var(--ink-3); margin-top: 3px; }

.cm-rate {
  margin: 11px 16px 0;
  padding: 13px 14px 12px;
  background: var(--card);
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(90, 62, 40, .05);
}
.cr-t { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.cr-list { display: flex; gap: 8px; margin-top: 9px; }
.cr-item {
  flex: 1;
  padding: 9px 4px 8px;
  border-radius: 12px;
  background: #f6f1e8;
  text-align: center;
  border: 1px solid transparent;
}
.cr-item b { display: block; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.cr-item i { font-style: normal; font-size: 10px; color: var(--ink-3); }
.cr-item.on { background: var(--brand-soft); border-color: #f0cfc4; }
.cr-item.on b { color: var(--brand); }
.cr-tip { margin-top: 9px; font-size: 10px; color: var(--ink-3); line-height: 1.5; }
.cr-sub {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.cr-diff { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.cd-row { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-2); }
.cd-row .cd-pill {
  padding: 2px 7px;
  border-radius: 8px;
  background: #f6f1e8;
  color: var(--ink-2);
}
.cd-row .cd-ar { color: var(--ink-3); }
.cd-row .cd-to { color: var(--ink); }
.cd-row b { margin-left: auto; color: var(--brand); font-size: 12.5px; }

.cm-cardline {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 11px 16px 0;
  padding: 12px 14px;
  background: var(--card);
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(90, 62, 40, .05);
  cursor: pointer;
}
.cl-ic {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: #eef2e9;
  color: var(--green);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.cl-main { flex: 1; min-width: 0; }
.cl-nm { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.cl-nm em { font-style: normal; font-weight: 400; font-size: 10.5px; color: var(--ink-3); }
.cl-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.cl-ar { flex: none; color: #c6bdae; font-size: 16px; }

.cm-list { margin: 0 16px; }
.cm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 11px 12px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(90, 62, 40, .04);
}
.cm-ic {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11.5px;
  display: flex; align-items: center; justify-content: center;
}
.cm-ic.rev { background: #f0ece4; color: var(--ink-3); }
.cm-ic.wd { background: #eef2e9; color: var(--green); }
.cm-ic.peer { background: #fdf0e8; color: #c8452b; }
.cm-mid { flex: 1; min-width: 0; }
.cm-tt { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.cm-tt i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 400;
  color: var(--gold);
  background: #fbf2e0;
  padding: 1px 5px;
  border-radius: 6px;
}
.cm-tt i.st.ok { color: var(--green); background: #eef2e9; }
.cm-tt i.st.wait { color: var(--gold); background: #fbf2e0; }
.cm-tt i.st.no { color: var(--brand); background: var(--brand-soft); }
.cm-sub {
  font-size: 10px;
  color: var(--ink-2);
  margin-top: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cm-sub.dim { color: var(--ink-3); margin-top: 1px; }
.cm-amt {
  flex: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
}
.cm-amt.in { color: var(--brand); }
.cm-amt.rev { color: var(--ink-3); text-decoration: line-through; }
.cm-empty { margin: 0 16px; padding: 18px 0; text-align: center; font-size: 11.5px; color: var(--ink-3); }

/* 提现弹层 */
.wd-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 2px 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.wd-amount span { font-size: 20px; font-weight: 600; color: var(--ink-2); }
.wd-amount input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}
.wd-amount input::-webkit-outer-spin-button,
.wd-amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wd-all {
  flex: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  font-family: inherit;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.wd-tip { margin: 8px 2px 12px; font-size: 10px; color: var(--ink-3); line-height: 1.6; }
.wd-lb { margin: 0 2px 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }

/* ---------------- 收款银行卡 ---------------- */
.bk-intro {
  margin: 12px 16px 0;
  padding: 11px 13px;
  background: #fff;
  border-radius: 13px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-2);
  box-shadow: 0 1px 6px rgba(90, 62, 40, .04);
}
.bk-list { margin: 11px 16px 0; }
.bk-card {
  padding: 13px 14px 11px;
  margin-bottom: 9px;
  border-radius: 16px;
  background: linear-gradient(158deg, #f3ede2 0%, #fbf7f0 100%);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(90, 62, 40, .05);
}
.bk-card.on {
  background: linear-gradient(158deg, #3b4632 0%, #55683f 60%, #7d6737 100%);
  border-color: transparent;
  color: #f8f1e4;
}
.bk-top { display: flex; align-items: center; gap: 8px; }
.bk-bank { flex: 1; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.bk-def {
  font-size: 9px;
  font-weight: 400;
  padding: 1px 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .22);
  color: #f7e9cd;
}
.bk-card:not(.on) .bk-def { background: var(--brand-soft); color: var(--brand); }
.bk-mask {
  flex: none;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: .82;
  font-family: "SFMono-Regular", Consolas, monospace;
}
.bk-holder { margin-top: 9px; font-size: 11px; opacity: .72; }
.bk-acts {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed rgba(120, 100, 70, .22);
}
.bk-def-on { margin-right: auto; font-size: 10px; opacity: .72; }
.bk-card.on .ad-mini {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .22);
  color: #f6eddd;
}
.bk-form { margin: 12px 16px 0; padding: 14px 14px 12px; }
.bk-add { padding: 12px 16px 0; }
.bk-empty { margin: 12px 16px 0; padding: 20px 0; text-align: center; font-size: 11.5px; color: var(--ink-3); }

/* 我的页佣金卡：深色描边区分余额卡 */
.cm-hero-card {
  background: linear-gradient(150deg, #3d4a33 0%, #58683f 62%, #7a6437 100%);
  color: #f8f1e4;
  box-shadow: 0 6px 18px rgba(52, 44, 32, .16);
}
.cm-hero-card .wc-lb { color: rgba(248, 241, 228, .74); }
.cm-hero-card .wc-num { color: #fbf3e3; }
.cm-hero-card .wc-rt { color: #f2dcae; }

/* 分享页佣金提示条 */
.sh-commission {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 11px 16px 0;
  padding: 11px 13px;
  border-radius: 13px;
  background: linear-gradient(120deg, #fdf4e2, #fbf7f0);
  border: 1px solid #f0e2c6;
  cursor: pointer;
}
.sc-lf { flex: 1; min-width: 0; }
.sc-lf b { display: block; font-size: 12px; font-weight: 600; color: #7a5a26; }
.sc-lf i { font-style: normal; font-size: 9.5px; color: #a08a63; }
.sc-rt { flex: none; font-size: 10.5px; color: var(--brand); }

/* ================= 商品明细相册 + 富文本详情 ================= */
.p-gallery { margin: 6px 0 18px; }
.p-gallery .pg-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.p-gallery img {
  display: block;
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #FBF7F0;
  cursor: zoom-in;
}
.zoom-box {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(16, 13, 10, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.zoom-box img { max-width: 100%; max-height: 100%; border-radius: 8px; }

.desc .rich-body { font-size: 12.5px; line-height: 2; color: var(--ink-2); }
.desc .rich-body p { margin: 0 0 10px; }
.desc .rich-body h4 {
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.desc .rich-body strong { color: var(--ink); font-weight: 600; }
.desc .rich-body ul, .desc .rich-body ol { margin: 0 0 10px; padding-left: 18px; }
.desc .rich-body li { margin: 3px 0; }
.desc .rich-body img { max-width: 100%; border-radius: 10px; display: block; margin: 8px 0; }

/* ==================== 我的滑落位置 ==================== */
.mx-card {
  margin: 12px 14px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f2a24 0%, #423a30 100%);
  color: #F3EADB;
  box-shadow: 0 8px 20px rgba(47, 42, 36, .18);
}
.mx-loading { text-align: center; color: #B9A98F; font-size: 13px; padding: 8px 0; }
.mx-head { display: flex; align-items: baseline; gap: 10px; }
.mx-t { font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.mx-p { font-size: 12px; color: #C3B49A; }
.mx-slots { display: flex; gap: 8px; margin-top: 12px; }
.mx-slot {
  flex: 1;
  min-width: 0;
  text-align: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 8px 4px;
}
.mx-empty { opacity: .55; }
.mx-st { display: block; font-size: 11px; letter-spacing: 2px; color: #C8A25C; }
.mx-su {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 12.5px;
  color: #F3EADB;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mx-av {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: #C8452B;
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mx-hint { margin-top: 11px; font-size: 11.5px; line-height: 1.6; color: #B6A78F; }
.mx-hint b { color: #E6C98A; }

/* ==================== 核销中心（提货积分 / 自提奖励） ==================== */
.vc-hero {
  margin: 12px 14px;
  padding: 20px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3a332b 0%, #52463a 100%);
  color: #F3EADB;
  text-align: center;
  box-shadow: 0 8px 20px rgba(58, 51, 43, .18);
}
.vc-role {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  color: #E6C98A;
}
.vc-num {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.2;
}
.vc-lb { font-size: 12.5px; color: #C3B49A; margin-top: 2px; }
.vc-tip { margin-top: 10px; font-size: 11.5px; color: #B6A78F; }

.vc-note {
  margin: 12px 14px;
  padding: 14px;
  border-radius: 12px;
  background: #FAF6EF;
  border: 1px solid #EFE6D7;
  font-size: 13px;
  line-height: 1.7;
  color: #6B6153;
}
.vc-note b { color: #8A5A2B; }

.vc-sec {
  margin: 12px 14px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #F0E9DE;
  overflow: hidden;
}
.vc-sec-t {
  padding: 12px 14px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #332E27;
}
.vc-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px 6px;
  flex-wrap: wrap;
}
.vc-in {
  flex: 1;
  min-width: 120px;
  border: 1px solid #E6DCCB;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
  background: #FCFAF6;
  color: #332E27;
  outline: none;
}
.vc-in:focus { border-color: #D8B98C; background: #fff; }
.vc-btn {
  flex: none;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  background: #8A5A2B;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.vc-btn:active { background: #6f4722; }
.vc-tip2 {
  padding: 4px 14px 13px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #A2957F;
}

.vc-order {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #F5EFE4;
}
.vc-o-l { flex: 1; min-width: 0; }
.vc-o-no { font-size: 13px; color: #332E27; font-weight: 600; }
.vc-o-sub {
  font-size: 11.5px;
  color: #A2957F;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vc-o-r { text-align: right; flex: none; }
.vc-o-amt { font-size: 14px; font-weight: 700; color: #C8452B; }
.vc-o-pt { font-size: 11px; color: #8A5A2B; margin-top: 2px; }
.vc-o-rw { font-size: 11px; color: #4C6B4F; margin-top: 2px; }
.vc-o-btn {
  flex: none;
  border: 1px solid #8A5A2B;
  background: #fff;
  color: #8A5A2B;
  border-radius: 7px;
  padding: 6px 13px;
  font-size: 12.5px;
  cursor: pointer;
}
.vc-o-btn:active { background: #F8F1E6; }

.vc-log {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid #F5EFE4;
}
.vc-l-l { flex: 1; min-width: 0; }
.vc-l-t { font-size: 13px; color: #332E27; }
.vc-l-s {
  font-size: 11px;
  color: #A2957F;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vc-l-r { flex: none; font-size: 14px; font-weight: 600; }
.vc-l-r.in { color: #C8452B; }
.vc-l-r.out { color: #4C6B4F; }

/* ==================== 微信注册入口 ==================== */
.wx-register-bar {
  background: #F2F8F4;
  border: 1px solid #CFE6D9;
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0 4px;
}
.wx-register-tip {
  font-size: 13px;
  color: #2E6B4C;
  line-height: 1.7;
}
.wx-register-alt {
  text-align: center;
  font-size: 12px;
  color: #9AA79F;
  margin-top: 12px;
  position: relative;
}
.wx-register-alt::before,
.wx-register-alt::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 22%;
  height: 1px;
  background: #D8E5DE;
}
.wx-register-alt::before { left: 0; }
.wx-register-alt::after { right: 0; }
