/* =========================================================
   快讯 · 香烟产品信息平台（移动端 H5 演示）
   设计语言：墨蓝 + 香槟金，克制的商贸质感
   ========================================================= */

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #161c26;
  --ink-2: #3b4657;
  --muted: #8b94a4;
  --line: #e9ecf1;
  --line-2: #f1f3f7;
  --brand: #1b2a44;
  --brand-2: #2c4368;
  --brand-3: #49648d;
  --gold: #c2994f;
  --gold-2: #e3c58c;
  --gold-soft: #faf4e6;
  --red: #be3a30;
  --ok: #1c8560;
  --ok-soft: #e9f6f0;
  --warn: #c07a22;
  --warn-soft: #fdf3e3;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(22, 32, 52, 0.07);
  --shadow-sm: 0 2px 10px rgba(22, 32, 52, 0.05);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  /* 标准手机画布：iPhone 12/13/14 逻辑尺寸 */
  --phone-w: 390px;
  --phone-h: 844px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 700px at 8% -8%, #dde5f2 0%, rgba(221, 229, 242, 0) 62%),
    radial-gradient(900px 700px at 105% 12%, #f1e6cf 0%, rgba(241, 230, 207, 0) 55%),
    #eceff4;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
  font-size: inherit;
}
button { border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea, select { appearance: none; -webkit-appearance: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
img { display: block; max-width: 100%; }

/* ============ 手机容器 ============ */

.stage {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/*
 * 桌面端：固定 390 × 844 的标准手机画布，不随窗口拉伸。
 * 窗口高度不足时由 core.js 的 fitStage() 等比缩放，比例始终不变。
 */
@media (min-width: 480px) {
  .stage {
    width: var(--phone-w);
    height: var(--phone-h);
    flex: none;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .app {
    width: var(--phone-w);
    height: var(--phone-h);
    max-width: none;
    flex: none;
    border-radius: 36px;
    box-shadow:
      0 40px 90px rgba(17, 27, 46, 0.28),
      0 4px 14px rgba(17, 27, 46, 0.12),
      inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(27, 42, 68, 0.1);
    transform-origin: top left;
    will-change: transform;
  }
}

.screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
}
.screen::-webkit-scrollbar { width: 0; height: 0; }
.screen--flush { overflow: hidden; display: flex; flex-direction: column; padding-bottom: 0; }

.layer {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.layer > * { pointer-events: auto; }

/* ============ 顶部栏 ============ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 12px;
  background: linear-gradient(180deg, rgba(244, 245, 247, 0.98) 62%, rgba(244, 245, 247, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark {
  width: 33px; height: 33px; flex: none;
  border-radius: 10px;
  background: linear-gradient(140deg, #22375a, #16233a 70%);
  color: var(--gold-2);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(227, 197, 140, 0.28);
  letter-spacing: 0.5px;
}
.brand__mark svg { width: 17px; height: 17px; display: block; }
.brand__name { font-size: 17px; font-weight: 700; letter-spacing: 0.4px; line-height: 1.2; }
.brand__sub {
  font-size: 9px; color: var(--muted); letter-spacing: 1.6px;
  text-transform: uppercase; margin-top: 3px;
}
.loc {
  flex: none;
  display: inline-flex; align-items: center; gap: 3px;
  height: 31px; padding: 0 10px 0 8px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.loc svg { color: var(--gold); }

.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 12px;
  background: rgba(244, 245, 247, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(233, 236, 241, 0.7);
}
.appbar--plain { background: var(--bg); }
.appbar__back {
  width: 34px; height: 34px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
}
.appbar__back:active { transform: scale(0.96); }
.appbar__title {
  font-size: 15.5px; font-weight: 650; letter-spacing: 0.2px;
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.appbar__title.center { text-align: center; }
.appbar__sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.appbar__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.appbar__spacer { width: 34px; flex: none; }

/* ============ 底部导航 ============ */

.tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 5px 6px calc(5px + var(--safe-b));
  z-index: 30;
}
.tabbar[hidden] { display: none; }
.tabbar__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 6px 0 5px;
  color: #98a1b0;
  font-size: 10px;
  letter-spacing: 0.2px;
  transition: color 0.18s;
}
.tabbar__item svg { width: 22px; height: 22px; }
.tabbar__item.is-active { color: var(--brand); font-weight: 600; }
.tabbar__item.is-active::before {
  content: "";
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}
.tabbar__item:active { opacity: 0.7; }
.tabbar__badge {
  position: absolute;
  top: 1px; left: calc(50% + 7px);
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 9px; font-weight: 700; line-height: 15px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* ============ 通用卡片 / 区块 ============ */

.page { padding: 0 0 8px; }
.section { padding: 0 18px; margin-top: 18px; }
.section__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.section__title { font-size: 13.5px; font-weight: 650; letter-spacing: 0.2px; }
.section__title small { font-size: 10px; color: var(--muted); font-weight: 400; margin-left: 6px; letter-spacing: 0.8px; }
.section__more { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(233, 236, 241, 0.9);
  box-shadow: var(--shadow);
}
.card--flat { box-shadow: none; }

.hairline { height: 1px; background: var(--line-2); }
.gold-line {
  height: 2px; width: 26px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}

/* ============ 按钮 ============ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 18px;
  border-radius: 12px;
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.12s, opacity 0.12s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.985); }
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  background: linear-gradient(140deg, #263d61, #16233a 75%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 35, 58, 0.24);
}
.btn--gold {
  background: linear-gradient(140deg, #dcbb7d, #c2994f 80%);
  color: #2c2213;
  box-shadow: 0 8px 18px rgba(194, 153, 79, 0.3);
}
.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.btn--soft { background: #eef1f6; color: var(--ink-2); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 9px; gap: 4px; }
.btn--sm svg { width: 14px; height: 14px; }
.btn--xs { height: 27px; padding: 0 9px; font-size: 11px; border-radius: 7px; }
.btn--block { width: 100%; }
.btn--danger { color: var(--red); background: #fff; border-color: #f0dedb; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
}
.icon-btn--plain { background: transparent; border-color: transparent; }
.icon-btn:active { opacity: 0.7; }

.fab {
  position: absolute;
  right: 16px;
  bottom: calc(78px + var(--safe-b));
  z-index: 25;
  display: inline-flex; align-items: center; gap: 5px;
  height: 42px; padding: 0 16px 0 13px;
  border-radius: 22px;
  background: linear-gradient(140deg, #d9b775, #b98f45);
  color: #2b2113;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(150, 112, 48, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.fab:active { transform: scale(0.97); }
.fab svg { width: 17px; height: 17px; }

/* ============ 搜索 ============ */

.search {
  display: flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 13px;
  margin: 0 18px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
}
.search svg { flex: none; }
.search input {
  flex: 1; min-width: 0;
  border: 0; outline: none; background: transparent;
  font-size: 13px; color: var(--ink);
}
.search input::placeholder { color: #aab2bf; }
.search__clear { color: var(--muted); flex: none; display: grid; place-items: center; }
.chat-search-tip { box-shadow: none; background: #f9fafc; color: #9aa3b2; }
.chat-search-tip span { flex: 1; font-size: 11.5px; line-height: 1.4; }
.chat-search-tip svg { color: var(--gold); }

/* ============ 分段 / 标签 ============ */

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  margin: 0 18px 12px;
  padding: 3px;
  background: #e9ecf1;
  border-radius: 12px;
}
.seg__item {
  min-width: 0; white-space: nowrap;
  height: 34px;
  border-radius: 9px;
  font-size: 13px; font-weight: 500;
  color: #5d6879;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: all 0.18s;
}
.seg__item.is-active {
  background: #fff;
  color: var(--brand);
  font-weight: 650;
  box-shadow: 0 2px 8px rgba(22, 32, 52, 0.1);
}
.seg__item small { font-size: 9px; color: var(--muted); font-weight: 400; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 11px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; }
.chip.is-on {
  border-color: rgba(194, 153, 79, 0.65);
  background: var(--gold-soft);
  color: #89682a;
  font-weight: 600;
}
.chip--sm { height: 26px; padding: 0 9px; font-size: 11px; border-radius: 13px; }

.tag {
  display: inline-flex; align-items: center; gap: 3px;
  height: 18px; padding: 0 6px;
  border-radius: 5px;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.2px;
  background: #f1f3f7;
  color: #6a7486;
}
.tag svg { width: 10px; height: 10px; }
.tag--gold { background: var(--gold-soft); color: #8a6927; }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--red { background: #fbeceb; color: var(--red); }
.tag--navy { background: #eaeef5; color: var(--brand-2); }

.pill {
  display: inline-flex; align-items: center; gap: 3px;
  height: 20px; padding: 0 8px;
  border-radius: 10px;
  font-size: 10px; font-weight: 600;
}
.pill--unsettled { background: var(--warn-soft); color: var(--warn); }
.pill--settled { background: var(--ok-soft); color: var(--ok); }
.pill--role { background: #eaeef5; color: var(--brand-2); }
.pill--buyer { background: #f2f4f8; color: #5d6879; }

/* ============ 商品信息流 ============ */

.filters {
  display: flex; align-items: center; gap: 7px;
  padding: 0 18px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  display: inline-flex; align-items: center; gap: 4px;
  height: 31px; padding: 0 10px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2);
  white-space: nowrap;
}
.filter svg { width: 13px; height: 13px; color: #9aa3b2; }
.filter.is-on {
  border-color: rgba(194, 153, 79, 0.55);
  background: var(--gold-soft);
  color: #84642a;
}
.filter.is-on svg { color: var(--gold); }
.filter__dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  margin-left: 1px;
}

.active-filters {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 0 18px 8px;
}
.active-filters .chip { background: #fff; }
.active-filters__reset { font-size: 11px; color: var(--muted); text-decoration: underline; }

.result-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 18px 10px;
  font-size: 11px; color: var(--muted);
}
.result-bar b { color: var(--ink-2); font-weight: 650; }
.result-bar__fresh { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; }
.result-bar__fresh i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(28, 133, 96, 0.12);
}
.result-bar__more {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 10.5px; color: #a37a2c; font-weight: 500;
  padding: 3px 0 3px 8px;
}
.result-bar__more svg { color: var(--gold); }

.feed-list { padding: 0 0 6px; }

.pcard {
  position: relative;
  display: flex; gap: 12px;
  margin: 0 18px 11px;
  padding: 11px;
  background: #fff;
  border-radius: 15px;
  border: 1px solid rgba(233, 236, 241, 0.9);
  box-shadow: 0 4px 16px rgba(22, 32, 52, 0.05);
  transition: transform 0.14s, box-shadow 0.14s;
}
.pcard:active { transform: scale(0.993); }
.pcard__img {
  width: 94px; height: 94px; flex: none;
  border-radius: 11px;
  object-fit: cover;
  background: #f0f1f4;
}
.pcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pcard__title {
  font-size: 13.5px; font-weight: 650; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__tags { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.pcard__foot {
  margin-top: auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
}
.price { color: var(--red); font-weight: 750; line-height: 1; letter-spacing: -0.3px; }
.price__cur { font-size: 11px; font-weight: 700; margin-right: 1px; }
.price__num { font-size: 20px; font-family: "DIN Alternate", "Helvetica Neue", var(--font); }
.price__unit { font-size: 10px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.pcard__sub { font-size: 10px; color: var(--muted); margin-top: 5px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pcard .seller-line { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.seller-line b { color: var(--ink-2); font-weight: 600; }
.seller-line .dot { width: 2px; height: 2px; border-radius: 50%; background: #c3c9d4; }
.seller-line--btn {
  background: none; border: 0; padding: 0; margin-top: 3px;
  font-size: 10.5px; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
  max-width: 100%; text-align: left; cursor: pointer;
}
.seller-line__chat { display: inline-flex; color: var(--gold); margin-left: 1px; }

.stock { font-size: 10px; color: var(--muted); white-space: nowrap; }
.stock b { color: var(--ink-2); font-weight: 650; }

.list-footnote {
  padding: 10px 18px 16px;
  font-size: 10.5px; color: var(--muted); line-height: 1.7;
  display: flex; gap: 6px; align-items: flex-start;
}
.list-footnote svg { flex: none; margin-top: 1px; color: var(--gold); }

/* ============ 行情 ============ */

.market-banner {
  position: relative; overflow: hidden;
  margin: 0 18px 12px;
  padding: 15px 16px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(227, 197, 140, 0.34), transparent 55%),
    linear-gradient(135deg, #1b2a44, #2a4166 70%, #1b2a44);
  box-shadow: 0 12px 26px rgba(22, 35, 58, 0.22);
}
.market-banner::after {
  content: "";
  position: absolute; right: -34px; bottom: -54px;
  width: 150px; height: 150px;
  border: 1px solid rgba(227, 197, 140, 0.26);
  border-radius: 50%;
}
.market-banner__eyebrow {
  font-size: 9px; letter-spacing: 2px; color: var(--gold-2);
  text-transform: uppercase; margin-bottom: 6px;
}
.market-banner__title { font-size: 16px; font-weight: 700; letter-spacing: 0.3px; }
.market-banner__meta {
  margin-top: 7px; display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 10px; color: rgba(255, 255, 255, 0.66);
}
.market-banner__meta b { color: #fff; font-weight: 600; }

.mtable {
  margin: 0 18px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.mhead, .mrow {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
}
.mhead {
  background: #f7f8fa;
  border-bottom: 1px solid var(--line);
  font-size: 9.5px; color: var(--muted); letter-spacing: 0.4px;
}
.mhead span:nth-child(2), .mhead span:nth-child(3) { text-align: right; }
.mrow { border-bottom: 1px solid var(--line-2); }
.mrow:last-child { border-bottom: 0; }
.mrow__name { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.mrow__spec { font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.mrow__price {
  text-align: right;
  font-size: 13px; font-weight: 700; color: var(--ink);
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
}
.mrow__price small { font-size: 9px; color: var(--muted); font-weight: 400; }
.mrow__retail { text-align: right; font-size: 12px; font-weight: 600; color: var(--red); }
.mrow__retail small { font-size: 9px; color: var(--muted); font-weight: 400; }
.market-note {
  margin: 12px 18px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f0f2f6;
  font-size: 10.5px; line-height: 1.7; color: #75808f;
  display: flex; gap: 7px;
}
.market-note svg { flex: none; margin-top: 1px; color: var(--gold); }
.market-legend {
  display: flex; gap: 14px; padding: 10px 18px 0;
  font-size: 10px; color: var(--muted);
}
.market-legend i { width: 6px; height: 6px; border-radius: 2px; display: inline-block; margin-right: 4px; }

/* ============ 空状态 ============ */

.empty {
  padding: 52px 30px 44px;
  text-align: center;
}
.empty__icon {
  width: 70px; height: 70px;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: linear-gradient(150deg, #fff, #f7f8fa);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(22, 32, 52, 0.06);
  display: grid; place-items: center;
  color: #b9c0cc;
}
.empty h3 { font-size: 14px; font-weight: 650; color: var(--ink-2); margin-bottom: 7px; }
.empty p { font-size: 11.5px; line-height: 1.75; color: var(--muted); max-width: 260px; margin: 0 auto; }
.empty .btn { margin-top: 18px; }
.empty small { display: block; margin-top: 12px; font-size: 10px; color: #a8b0bd; letter-spacing: 0.3px; }

/* ============ 详情页 ============ */

/* 页面上下留白：内容不贴住顶部栏和底部操作栏；主图可点开看大图，所以只占一条窄带，保证整页一屏看完 */
.detail { padding: 10px 0 8px; position: relative; }
.detail__hero { position: relative; background: #F6F2EA; border-radius: 18px 18px 0 0; overflow: hidden; }
.detail__hero img { width: 100%; height: 220px; object-fit: contain; display: block; }
.detail__hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 60px;
  background: linear-gradient(180deg, transparent, rgba(246, 242, 234, 0.9));
  pointer-events: none;
}
.detail__body {
  position: relative;
  margin-top: -16px;
  border-radius: 20px 20px 0 0;
  background: var(--bg);
  padding: 12px 0 0;
}
.detail__price-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 18px;
}
.detail__price .price__num { font-size: 30px; }
.detail__price small { color: var(--muted); font-size: 11px; margin-left: 4px; }
.detail__title { padding: 10px 18px 0; font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: 0.1px; }
.detail__block { margin: 13px 18px 0; }
.detail__block-title {
  font-size: 12px; font-weight: 650; color: var(--ink-2);
  display: flex; align-items: center; gap: 7px; margin-bottom: 9px;
}
.detail__block-title::before { content: ""; width: 3px; height: 11px; border-radius: 2px; background: var(--gold); }
.spec-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.spec {
  background: #fff;
  padding: 9px 12px;
}
.spec dt { font-size: 9.5px; color: var(--muted); margin-bottom: 3px; }
.spec dd { margin: 0; font-size: 12px; font-weight: 600; color: var(--ink); word-break: break-all; }
/* 参数格为奇数个时，最后一格占满整行，不留下空格子 */
.spec:last-child:nth-child(odd) { grid-column: 1 / -1; }
.notice-list { margin: 0; padding: 0; }
.notice-list li {
  position: relative; padding-left: 13px;
  font-size: 10.5px; line-height: 1.8; color: #818b99;
}
.notice-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: #c9cfd9;
}
.seller-card {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 9px 12px;
}
.seller-card__avatar { width: 36px; height: 36px; border-radius: 11px; flex: none; }
.seller-card__main { flex: 1; min-width: 0; }
.seller-card__name { font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 5px; min-width: 0; }
.seller-card__nametext { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-card__meta { font-size: 10px; color: var(--muted); margin-top: 3px; }

/* 商品详情底部操作栏：占用 app 底部槽位（与 tabbar 同级），随布局沉底，不悬浮、不遮挡内容 */
.bottom-bar {
  flex: none;
  z-index: 30;
  display: flex; gap: 9px; align-items: center;
  padding: 8px 14px calc(8px + var(--safe-b));
  background: #fff;
  border-top: 1px solid var(--line);
}
.bottom-bar[hidden] { display: none; }
/* 底部按钮只到 40px，比整页按钮更轻，不压过内容 */
.bottom-bar .btn { flex: 1; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
.bottom-bar .btn svg { width: 16px; height: 16px; }
/* 已选品：金色描边 + 实心图标，和未选状态明显区分 */
.bottom-bar .btn--pick.is-on {
  background: var(--gold-soft);
  border-color: rgba(194, 153, 79, 0.62);
  color: #8a6927;
}
.bottom-bar .btn--pick.is-on svg { color: #a37a2c; }

/* ============ 聊天列表 ============ */

.conv {
  display: flex; gap: 12px;
  padding: 13px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line-2);
  position: relative;
}
.conv:active { background: #fafbfc; }
.conv__avatar { width: 46px; height: 46px; border-radius: 14px; flex: none; }
.conv__main { flex: 1; min-width: 0; }
.conv__top { display: flex; align-items: center; gap: 6px; }
.conv__name {
  font-size: 13.5px; font-weight: 650;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.conv__time { margin-left: auto; font-size: 9.5px; color: #a4acb9; flex: none; }
.conv__preview {
  margin-top: 5px;
  font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding-right: 46px;
}
.conv__preview b { color: #8a94a3; font-weight: 500; }
.conv__pin {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 6px;
  max-width: 100%;
  height: 20px; padding: 0 7px;
  border-radius: 5px;
  background: #f6f7fa;
  color: #7d8797;
  font-size: 9.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.conv__pin svg { flex: none; color: var(--gold); }
.conv__badge {
  position: absolute; right: 18px; bottom: 18px;
  min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff; font-size: 9.5px; font-weight: 700; line-height: 17px;
  text-align: center;
}

/* ============ 聊天窗口 ============ */

.chat {
  display: flex; flex-direction: column;
  height: 100%;
  background: #eef0f4;
  position: relative;
}
.chat__top {
  flex: none;
  display: flex; align-items: center; gap: 9px;
  padding: calc(16px + var(--safe-t)) 12px 12px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(233, 236, 241, 0.9);
  backdrop-filter: blur(12px);
}
.chat__peer { flex: 1; min-width: 0; }
.chat__peer-name {
  font-size: 14px; font-weight: 650;
  display: flex; align-items: center; gap: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat__peer-meta { font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.chat__pin {
  flex: none;
  margin: 12px 12px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 9px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 14px rgba(22, 32, 52, 0.05);
}
.chat__pin-img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; flex: none; }
.chat__pin-main { flex: 1; min-width: 0; }
.chat__pin-title {
  font-size: 11.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat__pin-price { font-size: 12px; color: var(--red); font-weight: 700; margin-top: 3px; }
.chat__pin-price small { color: var(--muted); font-weight: 400; font-size: 9px; }
.chat__pin .btn { flex: none; }
.chat__shop-all {
  flex: none;
  display: flex; align-items: center; gap: 7px;
  margin: 10px 12px 0;
  padding: 0 12px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(22, 32, 52, 0.04);
}
.chat__shop-all:active { background: #f7f9fc; }
.chat__shop-all > svg:first-child { color: var(--gold); flex: none; }
.chat__shop-all span { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__shop-all > svg:last-child { color: #b6bfcc; flex: none; }
.chat__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 12px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chat__scroll::-webkit-scrollbar { width: 0; }
.chat__time { text-align: center; margin: 12px 0 10px; }
.chat__time span {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 9.5px; color: #929cab;
}
.chat__note { text-align: center; font-size: 9.5px; color: #98a1ae; margin: 10px 0 14px; line-height: 1.6; }

.msg { display: flex; gap: 8px; margin-bottom: 14px; align-items: flex-start; }
.msg--me { flex-direction: row-reverse; }
.msg__avatar { width: 33px; height: 33px; border-radius: 10px; flex: none; }
.msg__body { max-width: 76%; min-width: 0; }
.bubble {
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(22, 32, 52, 0.05);
  word-break: break-word;
  white-space: pre-wrap;
}
.msg--peer .bubble { border-top-left-radius: 4px; }
.msg--me .bubble {
  background: linear-gradient(140deg, #29405f, #1a2a44);
  color: #fff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(22, 35, 58, 0.2);
}
.msg__time { display: none; }

.bubble--media { padding: 4px; background: #fff; }
.msg--me .bubble--media { background: #1f3352; }
.bubble--media img { width: 176px; height: 176px; object-fit: cover; border-radius: 9px; }
.bubble--media video { width: 200px; max-height: 260px; border-radius: 9px; background: #000; }
.video-mock {
  position: relative;
  width: 176px; height: 118px;
  border-radius: 9px;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(227, 197, 140, 0.25), transparent 60%),
    linear-gradient(150deg, #2a3f60, #131e31);
  display: grid; place-items: center;
  overflow: hidden;
}
.video-mock::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 55%);
}
.video-mock__play {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid; place-items: center;
  color: var(--brand); z-index: 1;
}
.video-mock__label {
  position: absolute; left: 8px; bottom: 7px; z-index: 1;
  font-size: 9px; color: rgba(255, 255, 255, 0.85);
}
.msg__product {
  width: 216px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  display: flex; gap: 8px;
  box-shadow: 0 3px 10px rgba(22, 32, 52, 0.08);
}
.msg__product img { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; flex: none; }
.msg__product-name { font-size: 10.5px; font-weight: 600; line-height: 1.35; }
.msg__product-price { font-size: 11px; color: var(--red); font-weight: 700; margin-top: 3px; }

.typing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 13px;
  background: #fff; border-radius: 12px; border-top-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(22, 32, 52, 0.05);
}
.typing i {
  width: 4px; height: 4px; border-radius: 50%; background: #aab2c0;
  animation: blink 1.1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.16s; }
.typing i:nth-child(3) { animation-delay: 0.32s; }

.composer {
  flex: none;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 12px 12px;
}
.composer__row { display: flex; align-items: flex-end; gap: 7px; }
.composer__tool {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  color: #6f7989;
  background: #f4f6f9;
}
.composer__tool:active { background: #e9edf3; }
.composer textarea {
  flex: 1; min-width: 0;
  height: 36px; max-height: 92px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f8f9fb;
  outline: none;
  resize: none;
  font-size: 13px;
  line-height: 1.45;
}
.composer textarea:focus { border-color: #c9d3e2; background: #fff; }
.composer__send {
  flex: none;
  width: 38px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(140deg, #d9b775, #bb9148);
  color: #2b2113;
  display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(187, 145, 72, 0.3);
}
.composer__send[disabled] { opacity: 0.4; box-shadow: none; }

/* ============ 订单 ============ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 18px 12px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.stat { background: #fff; padding: 12px 10px; text-align: center; }
.stat__num {
  font-size: 18px; font-weight: 700; letter-spacing: -0.4px;
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
  color: var(--ink);
}
.stat__num small { font-size: 10px; font-weight: 500; color: var(--muted); margin-left: 1px; }
.stat__num.is-red { color: var(--red); }
.stat__num.is-gold { color: #a37a2c; }
.stat__label { font-size: 9.5px; color: var(--muted); margin-top: 4px; }

.tabs {
  display: flex; gap: 5px;
  padding: 0 18px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none;
  height: 30px; padding: 0 12px;
  border-radius: 15px;
  font-size: 11.5px; color: #6b7585;
  background: #fff;
  border: 1px solid var(--line);
}
.tabs button.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.order-card {
  margin: 0 18px 11px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.order-card__head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  font-size: 10px; color: var(--muted);
}
.order-card__head b { color: var(--ink-2); font-weight: 650; }
.order-card__head .pill { margin-left: auto; }
.order-card__body { display: flex; gap: 10px; padding: 11px 12px; }
.order-card__img { width: 58px; height: 58px; border-radius: 9px; object-fit: cover; flex: none; }
.order-card__main { flex: 1; min-width: 0; }
.order-card__title {
  font-size: 12.5px; font-weight: 600; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.order-card__meta { font-size: 10px; color: var(--muted); margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.order-card__amount { text-align: right; flex: none; }
.order-card__amount b {
  display: block; font-size: 14px; color: var(--ink);
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
}
.order-card__amount span { font-size: 9.5px; color: var(--muted); }

/* 物流时间线 */
.timeline { margin: 14px 0 6px; padding-left: 4px; }
.timeline__item {
  position: relative;
  display: flex; gap: 12px;
  padding: 0 0 20px;
}
.timeline__item::before {
  content: "";
  position: absolute; left: 5px; top: 12px; bottom: 0;
  width: 1px; background: #e6e9ef;
}
.timeline__item:last-child::before { display: none; }
.timeline__item i {
  position: relative; z-index: 1;
  width: 11px; height: 11px; flex: none;
  margin-top: 4px;
  border-radius: 50%;
  border: 2px solid #d5dbe5;
  background: #fff;
}
.timeline__item.is-done i {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 153, 79, 0.14);
}
.timeline__body { display: flex; flex-direction: column; gap: 3px; }
.timeline__body b { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.timeline__body span { font-size: 10px; color: var(--muted); line-height: 1.5; }
.timeline__body small { font-size: 9px; color: #aab2bf; }
.timeline__item:not(.is-done) .timeline__body b { color: #9aa3b2; font-weight: 500; }
.order-card__foot {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px;
  background: #fafbfc;
  border-top: 1px solid var(--line-2);
}
.order-card__foot .status { margin-right: auto; }
.order-card__foot .btn { height: 29px; padding: 0 11px; font-size: 11px; border-radius: 8px; }
.status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 600;
}
.status--pending { color: #b27a1e; }
.status--confirmed { color: var(--brand-2); }
.status--shipped { color: #2f6f9e; }
.status--paid { color: #a3731c; }
.status--done { color: var(--ok); }
.status--cancelled { color: #9aa3b0; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status--paid i { box-shadow: 0 0 0 3px rgba(194, 153, 79, 0.16); }
.logi {
  margin: 0 12px 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f6f8fb;
  font-size: 10px; color: #6f7a8b;
  display: flex; gap: 6px; align-items: center;
}
.logi svg { flex: none; color: #8c97a8; }

/* 付款凭证条 / 截图 */
.payproof {
  display: flex; align-items: center; gap: 9px;
  width: calc(100% - 24px);
  margin: 0 12px 10px;
  padding: 8px 10px;
  border: 1px solid rgba(194, 153, 79, 0.28);
  border-radius: 10px;
  background: #fdf8ee;
  text-align: left;
  color: #7c6027;
}
.payproof__thumb {
  width: 38px; height: 38px; flex: none;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(194, 153, 79, 0.3);
  background: #fff;
}
.payproof__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.payproof__main b {
  font-size: 11px; font-weight: 650; color: #7c6027;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.payproof__main span { font-size: 9.5px; color: #a08a63; line-height: 1.45; }
.payproof__go {
  flex: none; display: inline-flex; align-items: center; gap: 1px;
  font-size: 9.5px; color: #a37a2c;
}
.payproof-view {
  margin: 14px 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101a2b;
}
.payproof-view img { display: block; width: 100%; max-height: 46vh; object-fit: contain; }
.payproof-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 12px;
  font-size: 10px; color: var(--muted);
}
.payproof-meta b { color: var(--ink-2); font-weight: 650; }
.payproof-upload__add {
  width: 100%;
  min-height: 128px;
  padding: 16px;
  border: 1px dashed #cdd5e1;
  border-radius: 12px;
  background: #fbfcfd;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #98a2b1;
}
.payproof-upload__add svg { color: #a37a2c; }
.payproof-upload__add b { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.payproof-upload__add small { font-size: 9.5px; line-height: 1.5; }
.payproof-upload__preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101a2b;
}
.payproof-upload__preview img {
  display: block; width: 100%; max-height: 220px; object-fit: contain;
}
.payproof-upload__del {
  position: absolute; right: 6px; top: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(15, 22, 34, 0.66);
  color: #fff; display: grid; place-items: center;
}
.payproof-upload__re {
  position: absolute; right: 8px; bottom: 8px;
  height: 26px; padding: 0 9px;
  border-radius: 13px;
  background: rgba(15, 22, 34, 0.66);
  color: #fff;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px;
}

/* ============ 店铺首页 ============ */

.shop-hero {
  position: relative; overflow: hidden;
  margin: 12px 18px 14px;
  padding: 18px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(130% 130% at 100% 0%, rgba(227, 197, 140, 0.32), transparent 55%),
    linear-gradient(140deg, #1c2c47, #2a4166 62%, #16233a);
  box-shadow: 0 16px 34px rgba(22, 35, 58, 0.26);
}
.shop-hero::after {
  content: "";
  position: absolute; right: -46px; bottom: -70px;
  width: 190px; height: 190px;
  border: 1px solid rgba(227, 197, 140, 0.26);
  border-radius: 50%;
}
.shop-hero::before {
  content: "";
  position: absolute; right: 16px; top: -30px;
  width: 110px; height: 110px;
  border: 1px solid rgba(227, 197, 140, 0.14);
  border-radius: 50%;
}
.shop-hero__top { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.shop-hero__avatar {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.shop-hero__name {
  font-size: 16px; font-weight: 700; letter-spacing: 0.3px;
  display: flex; align-items: center; gap: 6px;
}
.shop-hero__name .tag { background: rgba(227, 197, 140, 0.18); color: var(--gold-2); }
.shop-hero__meta { font-size: 10px; color: rgba(255, 255, 255, 0.6); margin-top: 4px; }
.shop-hero__stats {
  position: relative; z-index: 1;
  display: flex; gap: 18px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.shop-hero__stat b {
  display: block; font-size: 17px; font-weight: 700;
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
}
.shop-hero__stat b small { font-size: 9.5px; font-weight: 400; color: rgba(255, 255, 255, 0.6); margin-left: 2px; }
.shop-hero__stat span { font-size: 9.5px; color: rgba(255, 255, 255, 0.55); }
.shop-hero__actions { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 15px; }
.shop-hero__actions .btn { flex: 1; height: 38px; font-size: 12.5px; }

.menu-list {
  margin: 0 18px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.menu-item {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 13px;
  border-bottom: 1px solid var(--line-2);
  width: 100%;
  text-align: left;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:active { background: #fafbfc; }
.menu-item__icon {
  width: 34px; height: 34px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  background: #f2f4f8;
  color: var(--brand-2);
}
.menu-item__icon--gold { background: var(--gold-soft); color: #a37a2c; }
.menu-item__icon--green { background: var(--ok-soft); color: var(--ok); }
.menu-item__icon--red { background: #fbeceb; color: var(--red); }
.menu-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.menu-item__title { display: block; font-size: 13px; font-weight: 600; }
.menu-item__desc { display: block; font-size: 10px; color: var(--muted); line-height: 1.45; }
.menu-item__badge {
  flex: none;
  min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 9px;
  background: #f0f2f6;
  color: #7a8494;
  font-size: 9.5px; font-weight: 650; line-height: 17px; text-align: center;
}
.menu-item__badge--red { background: #fbeceb; color: var(--red); }
.menu-item__chev { flex: none; color: #c3c9d4; }

.profile-card {
  margin: 12px 18px 14px;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(227, 197, 140, 0.18), transparent 55%),
    #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px;
}
.profile-card__avatar { width: 54px; height: 54px; border-radius: 16px; flex: none; }
.profile-card__name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.profile-card__meta { font-size: 10.5px; color: var(--muted); margin-top: 5px; }

.upgrade-card {
  margin: 0 18px;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid rgba(194, 153, 79, 0.4);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(227, 197, 140, 0.28), transparent 60%),
    linear-gradient(140deg, #fdf9f0, #faf4e6);
  display: flex; align-items: center; gap: 12px;
}
.upgrade-card__icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 13px;
  background: linear-gradient(140deg, #d9b775, #bb9148);
  color: #33260f;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(187, 145, 72, 0.28);
}
.upgrade-card__title { font-size: 13px; font-weight: 700; color: #5d4620; }
.upgrade-card__desc { font-size: 10px; color: #9a7f4b; line-height: 1.6; margin-top: 3px; }
.upgrade-card .btn { flex: none; height: 32px; padding: 0 12px; font-size: 11.5px; }

/* ============ 管理列表 ============ */

.manage-row {
  display: flex; gap: 11px;
  margin: 0 18px 10px;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}
.manage-row__img { width: 62px; height: 62px; border-radius: 9px; object-fit: cover; flex: none; }
.manage-row__main { flex: 1; min-width: 0; }
.manage-row__title { font-size: 12.5px; font-weight: 650; line-height: 1.4; }
.manage-row__meta { font-size: 10px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.manage-row__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.manage-row__price { font-size: 12px; color: var(--red); font-weight: 700; }

.stock-row {
  margin: 0 18px 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}
.stock-row__top { display: flex; align-items: flex-start; gap: 10px; }
.stock-row__name { font-size: 12.5px; font-weight: 650; line-height: 1.4; }
.stock-row__spec { font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.stock-row__num { margin-left: auto; text-align: right; flex: none; }
.stock-row__num b {
  font-size: 19px; font-weight: 700;
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
}
.stock-row__num span { font-size: 9px; color: var(--muted); display: block; }
.stock-row__num.is-low b { color: var(--warn); }
.stock-row__bar {
  height: 4px; border-radius: 2px; background: #f0f2f6; margin-top: 10px; overflow: hidden;
}
.stock-row__bar i {
  display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #d9b775, #bb9148);
}
.stock-row__bar i.is-low { background: linear-gradient(90deg, #e5a95a, #d38b2c); }
.stock-row__foot {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  padding-top: 9px; border-top: 1px solid var(--line-2);
}
.stock-row__foot .stock-meta { font-size: 9.5px; color: var(--muted); margin-right: auto; }

.log-row {
  display: flex; gap: 10px;
  margin: 0 18px 9px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.log-row__icon {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
}
.log-row__icon--in { background: var(--ok-soft); color: var(--ok); }
.log-row__icon--out { background: var(--warn-soft); color: var(--warn); }
.log-row__main { flex: 1; min-width: 0; }
.log-row__title { font-size: 11.5px; font-weight: 600; line-height: 1.4; }
.log-row__meta { font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.log-row__qty { flex: none; text-align: right; font-size: 13px; font-weight: 700; font-family: "DIN Alternate", var(--font); }
.log-row__qty.in { color: var(--ok); }
.log-row__qty.out { color: var(--warn); }
.log-row__qty span { display: block; font-size: 8.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }

.customer-card {
  margin: 0 18px 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.customer-card__top { display: flex; align-items: center; gap: 10px; }
.customer-card__avatar { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.customer-card__name { font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 5px; }
.customer-card__meta { font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.customer-card__nums {
  display: flex; gap: 1px; margin-top: 11px;
  background: var(--line-2); border-radius: 9px; overflow: hidden;
}
.customer-card__num { flex: 1; background: #fafbfc; padding: 8px 4px; text-align: center; }
.customer-card__num b { display: block; font-size: 13px; font-weight: 700; }
.customer-card__num span { font-size: 8.5px; color: var(--muted); }
.customer-card__foot { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.customer-card__foot .btn { height: 28px; padding: 0 10px; font-size: 10.5px; }
.customer-card__foot .unsettled { margin-right: auto; font-size: 10px; color: var(--warn); font-weight: 600; }

/* ============ 表单 ============ */

.form-wrap { padding: 0 0 20px; }
.form-card {
  margin: 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field__label {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 7px;
}
.field__label em { color: var(--red); font-style: normal; font-size: 10px; }
.field__label small { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 9.5px; }
.input, .select, .textarea {
  width: 100%;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fbfcfd;
  padding: 0 12px;
  height: 44px;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.textarea { height: auto; min-height: 82px; padding: 11px 12px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  border-color: #b7c5da;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(44, 67, 104, 0.07);
}
.input::placeholder, .textarea::placeholder { color: #b0b8c4; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a1b0' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.hint { font-size: 9.5px; color: var(--muted); line-height: 1.65; margin-top: 6px; }
.form-note {
  display: flex; align-items: flex-start; gap: 7px;
  margin: 0 18px 16px;
  padding: 11px 13px;
  border-radius: 11px;
  background: #f2f4f8;
  font-size: 10px; line-height: 1.75; color: #798392;
}
.form-note svg { flex: none; margin-top: 1px; color: var(--gold); }
.form-note b { color: var(--ink-2); font-weight: 650; }

.seg--role { margin: 0 0 14px; }
.role-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex; gap: 10px; align-items: flex-start;
  background: #fbfcfd;
  text-align: left;
  width: 100%;
}
.role-card.is-on { border-color: rgba(194, 153, 79, 0.7); background: var(--gold-soft); }
.role-card__icon {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  background: #eef1f6; color: var(--brand-2);
  display: grid; place-items: center;
}
.role-card.is-on .role-card__icon { background: #fff; color: #a37a2c; }
.role-card__title { font-size: 12px; font-weight: 650; display: flex; align-items: center; gap: 5px; }
.role-card__desc { font-size: 9.5px; color: var(--muted); line-height: 1.55; margin-top: 2px; }

.uploader { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.uploader__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f4f8;
  border: 1px solid var(--line);
}
.uploader__item img { width: 100%; height: 100%; object-fit: cover; }
.uploader__del {
  position: absolute; right: 4px; top: 4px;
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(15, 22, 34, 0.62);
  color: #fff; display: grid; place-items: center;
}
.uploader__add {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px dashed #cdd5e1;
  background: #fbfcfd;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #98a2b1;
  font-size: 9.5px;
}
.uploader__add svg { width: 20px; height: 20px; }

.checkbox-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--ink-2);
  line-height: 1.5;
}
.checkbox-row input { width: 15px; height: 15px; accent-color: var(--brand-2); }
.checkbox-row a { color: #a37a2c; text-decoration: underline; }
.fee-line {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: var(--gold-soft);
  border: 1px solid rgba(194, 153, 79, 0.3);
  border-radius: 12px;
  margin: 0 18px 12px;
  font-size: 11px; color: #7c6027;
}
.fee-line b { font-size: 17px; font-weight: 700; color: #a37a2c; font-family: "DIN Alternate", var(--font); }

/* ============ 登录注册 ============ */

.login {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
  padding: 33px 0 0;
}
.login__hero {
  flex: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 22px 30px;
}
.login__logo {
  width: 64px; height: 64px;
  border-radius: 20px;
  display: grid; place-items: center;
  color: var(--gold-2);
  background: linear-gradient(145deg, #263d61 0%, #16233a 100%);
  border: 1px solid rgba(227, 197, 140, 0.3);
  box-shadow: 0 10px 22px rgba(22, 35, 58, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.login__logo svg { width: 31px; height: 31px; display: block; }
.login__name {
  color: var(--ink-2);
  font-size: 18px; font-weight: 700;
  letter-spacing: 6px; text-indent: 6px;
}
.login__card {
  position: relative;
  flex: none;
  margin: 0 18px auto;
  padding: 22px 18px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(233, 236, 241, 0.9);
  box-shadow: 0 16px 36px rgba(18, 28, 48, 0.1);
}
.login__legal {
  margin: 14px 18px 0;
  font-size: 9px; color: #a6aebc; line-height: 1.8; text-align: center;
}
.code-btn {
  flex: none;
  height: 44px; padding: 0 12px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px; font-weight: 600;
  white-space: nowrap;
  min-width: 94px;
}
.code-btn[disabled] { background: #dfe4ec; color: #8c95a4; }
.code-hint {
  margin-top: 6px;
  font-size: 9.5px; color: #a37a2c;
  display: flex; align-items: center; gap: 4px;
}
.code-hint svg { width: 11px; height: 11px; }

/* ============ 弹层 ============ */

.scrim {
  position: absolute; inset: 0;
  background: rgba(13, 19, 31, 0.46);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade 0.18s ease;
  z-index: 60;
}
.scrim--center { align-items: center; padding: 24px; }
.sheet {
  width: 100%;
  max-height: 86%;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 7px 18px calc(18px + var(--safe-b));
  animation: sheetUp 0.28s cubic-bezier(0.32, 0.72, 0.28, 1);
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { width: 0; }
.sheet__handle {
  width: 38px; height: 4px; border-radius: 2px;
  background: #e2e6ed; margin: 4px auto 14px;
}
.sheet__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.sheet__title { font-size: 15px; font-weight: 700; flex: 1; }
.sheet__sub { font-size: 10px; color: var(--muted); margin-top: 4px; }
.sheet__close {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  color: #8e98a8; background: #f3f5f8;
}
.sheet__body { padding-top: 12px; }
.sheet__foot { display: flex; gap: 8px; margin-top: 16px; }
.sheet__foot .btn { flex: 1; }

.modal {
  width: 100%; max-width: 330px;
  background: #fff;
  border-radius: 20px;
  padding: 20px 18px 16px;
  animation: pop 0.22s cubic-bezier(0.3, 0.8, 0.4, 1.1);
  box-shadow: 0 24px 60px rgba(10, 16, 28, 0.3);
}
.modal__title { font-size: 15px; font-weight: 700; text-align: center; }
.modal__sub { font-size: 10.5px; color: var(--muted); line-height: 1.7; text-align: center; margin-top: 7px; }
.modal__body { margin-top: 14px; }
.modal__foot { display: flex; gap: 8px; margin-top: 16px; }
.modal__foot .btn { flex: 1; height: 40px; }

.pay-amount {
  text-align: center;
  padding: 8px 0 14px;
}
.pay-amount b {
  font-size: 32px; font-weight: 700; letter-spacing: -1px;
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
  color: var(--ink);
}
.pay-amount b small { font-size: 15px; font-weight: 600; margin-right: 2px; }
.pay-amount span { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.pay-methods { display: grid; gap: 8px; }
.pay-method {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfd;
  width: 100%;
}
.pay-method.is-on { border-color: rgba(194, 153, 79, 0.7); background: var(--gold-soft); }
.pay-method__icon {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.pay-method__icon.wx { background: #e8f6ec; color: #25934b; }
.pay-method__icon.ali { background: #e8f1fb; color: #2b7bd4; }
.pay-method__name { font-size: 12px; font-weight: 600; }
.pay-method__check { margin-left: auto; color: #c3c9d4; }
.pay-method.is-on .pay-method__check { color: var(--gold); }
.pay-note { font-size: 9px; color: #a6aebc; text-align: center; margin-top: 12px; line-height: 1.6; }

.option-grid { display: grid; gap: 8px; }
.option-row {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fbfcfd;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
.option-row.is-on { border-color: rgba(194, 153, 79, 0.7); background: var(--gold-soft); color: #7c6027; font-weight: 600; }
.option-row__dot {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid #cfd6e1; flex: none;
  display: grid; place-items: center;
}
.option-row.is-on .option-row__dot { border-color: var(--gold); }
.option-row.is-on .option-row__dot::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.option-row__main { flex: 1; }
.option-row__desc { font-size: 9.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }

.region-picker { display: flex; gap: 2px; height: 300px; margin-top: 4px; }
.region-picker__col {
  flex: 1; overflow-y: auto; scrollbar-width: none;
  border-radius: 10px;
}
.region-picker__col::-webkit-scrollbar { width: 0; }
.region-picker__col:first-child { background: #f6f7fa; }
.region-picker__col + .region-picker__col { background: #fbfcfd; }
.region-item {
  width: 100%; text-align: left;
  padding: 11px 12px;
  font-size: 12px; color: var(--ink-2);
  display: flex; align-items: center; gap: 5px;
}
.region-item.is-on { background: #fff; color: var(--brand); font-weight: 650; }
.region-item small { margin-left: auto; font-size: 9px; color: var(--muted); font-weight: 400; }
.region-item svg { color: var(--gold); }

.brand-picker { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 6px; }
.brand-picker .chip { height: 32px; padding: 0 12px; }

.qty-row { display: flex; align-items: center; gap: 12px; }
.stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.stepper button {
  width: 36px; height: 38px;
  display: grid; place-items: center;
  color: var(--ink-2);
  font-size: 16px;
  background: #f8f9fb;
}
.stepper button:disabled { color: #cbd1db; }
.stepper input {
  width: 50px; height: 38px;
  border: 0; outline: none; text-align: center;
  font-size: 14px; font-weight: 650;
  background: #fff;
}
.qty-total { margin-left: auto; text-align: right; font-size: 10px; color: var(--muted); }
.qty-total b {
  display: block; font-size: 20px; color: var(--red);
  font-family: "DIN Alternate", var(--font);
}

.toast-root {
  position: absolute; inset: 0; z-index: 90; pointer-events: none;
}
.toast {
  position: absolute;
  left: 50%; top: 62px;
  transform: translateX(-50%);
  max-width: 82%;
  padding: 9px 15px;
  border-radius: 10px;
  background: rgba(20, 27, 40, 0.92);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  z-index: 90;
  animation: toastIn 0.22s ease;
  box-shadow: 0 8px 24px rgba(10, 16, 28, 0.28);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.loading-dots { display: inline-flex; gap: 3px; }
.loading-dots i {
  width: 4px; height: 4px; border-radius: 50%; background: currentColor;
  animation: blink 1s infinite;
}
.loading-dots i:nth-child(2) { animation-delay: 0.15s; }
.loading-dots i:nth-child(3) { animation-delay: 0.3s; }

/* ============ 动画 ============ */

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes toastIn { from { transform: translate(-50%, -6px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.page-enter { animation: pageIn 0.24s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ 补充组件 ============ */

.option-row__name {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.option-row__main .option-row__desc { display: block; }

/* 详情页封面控制 */
.detail__hero img { max-height: 400px; }

/* 会话列表使用 div 时的可点击反馈 */
.conv { cursor: pointer; text-align: left; width: 100%; }
.conv:active { background: #fafbfc; }

/* 发布页底部留白 */
.form-wrap { padding-bottom: 28px; }

/* ============ 物流详情 ============ */

.logi--link {
  width: calc(100% - 24px);
  border: 0;
  font-family: inherit;
  font-size: 10px;
  text-align: left;
  cursor: pointer;
  color: #6f7a8b;
}
.logi--link:active { background: #eaf0f7; }
.logi__text {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.logi__go {
  flex: none;
  display: inline-flex; align-items: center; gap: 1px;
  color: #a37a2c; font-size: 9.5px; font-weight: 500;
  white-space: nowrap;
}
.logi__go svg { color: var(--gold); }

.tracking-head {
  display: flex; align-items: flex-start; gap: 11px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 15px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(227, 197, 140, 0.28), transparent 58%),
    linear-gradient(140deg, #1d2f4c, #16233a);
  box-shadow: 0 10px 22px rgba(22, 35, 58, 0.2);
}
.tracking-head__icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: rgba(227, 197, 140, 0.16);
  border: 1px solid rgba(227, 197, 140, 0.26);
  display: grid; place-items: center;
  color: var(--gold-2);
}
.tracking-head__status {
  font-size: 17px; font-weight: 700; letter-spacing: 0.3px;
}
.tracking-head__company {
  font-size: 10px; color: rgba(255, 255, 255, 0.72);
  margin-top: 4px; word-break: break-all;
}
.tracking-head__sub {
  font-size: 9.5px; color: rgba(255, 255, 255, 0.5);
  margin-top: 3px; line-height: 1.5;
}
.tracking-head__copy {
  flex: none;
  height: 26px; padding: 0 9px;
  font-size: 9.5px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.tracking-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin: 11px 2px 0;
  font-size: 9.5px; color: var(--muted);
}
.tracking-meta b { color: var(--ink-2); font-weight: 600; }
.tracking-title {
  display: flex; align-items: center; gap: 6px;
  margin: 16px 0 2px;
  font-size: 11.5px; font-weight: 650; color: var(--ink-2);
}
.tracking-title::before {
  content: ""; width: 3px; height: 11px; border-radius: 2px;
  background: var(--gold);
}

/* ============ 积分 / 转介绍 ============ */

.points-hero {
  position: relative; overflow: hidden;
  margin: 12px 18px 14px;
  padding: 18px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(227, 197, 140, 0.36), transparent 56%),
    linear-gradient(140deg, #1d2f4c, #16233a 70%);
  box-shadow: 0 16px 34px rgba(22, 35, 58, 0.26);
}
.points-hero::after {
  content: ""; position: absolute; right: -50px; bottom: -78px;
  width: 190px; height: 190px; border-radius: 50%;
  border: 1px solid rgba(227, 197, 140, 0.26);
}
.points-hero__eyebrow {
  font-size: 8.5px; letter-spacing: 2px; color: var(--gold-2);
  text-transform: uppercase;
}
.points-hero__label {
  font-size: 10.5px; color: rgba(255, 255, 255, 0.56); margin-top: 10px;
}
.points-hero__num {
  position: relative; z-index: 1;
  margin-top: 2px;
  font-size: 42px; font-weight: 750; letter-spacing: -1px;
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
  line-height: 1.15;
}
.points-hero__num small { font-size: 13px; font-weight: 500; margin-left: 3px; color: rgba(255, 255, 255, 0.64); letter-spacing: 0; }
.points-hero__meta {
  font-size: 9.5px; color: rgba(255, 255, 255, 0.56);
  margin-top: 4px;
}
.points-progress {
  height: 5px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 14px; overflow: hidden;
}
.points-progress i {
  display: block; height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #e3c58c, #c2994f);
  box-shadow: 0 0 10px rgba(227, 197, 140, 0.4);
}
.points-hero__hint {
  font-size: 9.5px; color: rgba(255, 255, 255, 0.5);
  margin-top: 7px;
}
.points-hero__actions {
  position: relative; z-index: 1;
  display: flex; gap: 8px; margin-top: 14px;
}
.points-hero__actions .btn { flex: 1; height: 35px; font-size: 11.5px; }
.points-hero .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.points-hero .btn[disabled] { opacity: 0.5; }

.redeem-pending {
  display: flex; gap: 9px; align-items: flex-start;
  margin: 0 18px 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--warn-soft);
  border: 1px solid rgba(192, 122, 34, 0.16);
  color: #9a6a23;
}
.redeem-pending > svg { flex: none; margin-top: 1px; }
.redeem-pending b { display: block; font-size: 11.5px; margin-bottom: 2px; }
.redeem-pending span { font-size: 9.5px; color: #b0833f; line-height: 1.5; }

.invite-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(194, 153, 79, 0.48);
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(227, 197, 140, 0.16), transparent 55%),
    #fffdf8;
}
.invite-card__code {
  display: flex; align-items: center; gap: 8px;
}
.invite-card__code span { font-size: 10px; color: var(--muted); }
.invite-card__code b {
  font-size: 19px; letter-spacing: 2px; color: #a37a2c;
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
}
.invite-copy {
  margin-left: auto;
  height: 25px; padding: 0 9px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 9.5px; color: #8a6927;
  white-space: nowrap;
}
.invite-card__link {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(194, 153, 79, 0.2);
}
.invite-card__link span { flex: none; font-size: 9.5px; color: var(--muted); }
.invite-card__link p {
  flex: 1; min-width: 0; margin: 0;
  font-size: 9px; color: #7c8796;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.invite-card__note {
  margin-top: 11px;
  font-size: 9.5px; line-height: 1.7; color: #8b94a4;
}

.invite-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-2);
}
.invite-row:last-child { border-bottom: 0; }
.invite-row__avatar { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.invite-row__main { flex: 1; min-width: 0; }
.invite-row__name { font-size: 12.5px; font-weight: 600; }
.invite-row__meta { font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.invite-row__right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.invite-row__right b { font-size: 12px; color: var(--ok); }
.invite-row__right b.is-muted { color: #aab2bf; font-weight: 400; }

.redeem-record {
  margin: 0 18px 10px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.redeem-record__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.redeem-record__head b {
  font-size: 17px; color: var(--ink);
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
}
.redeem-record__meta { font-size: 9.5px; color: var(--muted); margin-top: 4px; }
.redeem-record__desc {
  font-size: 9.5px; color: #8b94a4; line-height: 1.6;
  margin-top: 8px; padding-top: 7px;
  border-top: 1px dashed var(--line);
}

.admin-entry {
  display: flex; align-items: center; gap: 10px;
  width: calc(100% - 36px);
  margin: 18px 18px 0;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f7f8fa;
  text-align: left;
}
.admin-entry__icon {
  width: 32px; height: 32px; flex: none;
  border-radius: 9px;
  background: #eef1f6;
  display: grid; place-items: center;
  color: #7a8494;
}
.admin-entry__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.admin-entry__main b { font-size: 11.5px; color: var(--ink-2); }
.admin-entry__main small { font-size: 9.5px; color: var(--muted); }
.admin-entry > svg { color: #c3c9d4; }

.admin-request {
  margin: 0 18px 10px;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.admin-request__head { display: flex; align-items: center; gap: 10px; }
.admin-request__user { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.admin-request__user b { font-size: 13px; }
.admin-request__user span { font-size: 9.5px; color: var(--muted); }
.admin-request__amount { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.admin-request__amount b {
  font-size: 22px; color: var(--red);
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
}
.admin-request__amount span { font-size: 10px; color: var(--muted); }
.admin-request__meta {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 7px; font-size: 9.5px; color: #8b94a4;
}
.admin-request__actions {
  display: flex; justify-content: flex-end; gap: 7px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line-2);
}

/* 卖家：我的发布入口 */
.my-publish {
  display: flex; align-items: center; gap: 9px;
  width: calc(100% - 36px);
  margin: 0 18px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.my-publish.is-on {
  border-color: rgba(194, 153, 79, 0.6);
  background: var(--gold-soft);
}
.my-publish__icon {
  width: 30px; height: 30px; flex: none;
  border-radius: 9px;
  background: #eef1f6;
  color: var(--brand-2);
  display: grid; place-items: center;
}
.my-publish.is-on .my-publish__icon { background: #fff; color: #a37a2c; }
.my-publish__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.my-publish__main b { font-size: 12px; color: var(--ink-2); }
.my-publish__main small {
  font-size: 9.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.my-publish__go {
  flex: none;
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 10px; color: #a37a2c;
}
.my-publish__go svg { color: var(--gold); }

/* 启动加载 */
.boot-splash {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}
.boot-splash__mark {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: linear-gradient(140deg, #22375a, #16233a);
  color: var(--gold-2);
  font-size: 26px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(22, 35, 58, 0.28);
  letter-spacing: 1px;
}
.boot-splash__mark svg { width: 27px; height: 27px; display: block; }
.boot-splash__name { font-size: 17px; font-weight: 700; letter-spacing: 3px; color: var(--ink-2); }
.boot-splash__hint { font-size: 10px; color: #a6aebc; letter-spacing: 0.5px; }

/* 其他地区货源（同城默认下的全国补充） */
.other-region { margin-top: 18px; }
.other-region__hint {
  padding: 0 18px 9px;
  font-size: 9.5px; color: var(--muted);
}
.mini-list { padding: 0 18px; }
.mini-product {
  display: flex; align-items: center; gap: 9px;
  width: 100%;
  padding: 9px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.mini-product:active { background: #fafbfc; }
.mini-product img {
  width: 46px; height: 46px; flex: none;
  border-radius: 9px; object-fit: cover;
  background: #f0f1f4;
}
.mini-product__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mini-product__main b {
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini-product__main small {
  font-size: 9px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini-product__price {
  flex: none; font-size: 13px; font-weight: 700; color: var(--red);
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
}
.mini-product__price small { font-size: 8px; color: var(--muted); font-weight: 400; }
.other-region__more {
  display: block;
  width: calc(100% - 36px);
  margin: 0 18px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: #a37a2c;
  font-size: 10.5px;
}

/* 双重身份：订单页买家/卖家切换 */
.order-mode {
  display: flex;
  gap: 4px;
  margin: 2px 18px 10px;
  padding: 4px;
  border-radius: 12px;
  background: #eef1f6;
}
.order-mode__item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
}
.order-mode__item b {
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: rgba(22, 35, 58, 0.07);
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.order-mode__item.is-on {
  background: #fff;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.order-mode__item.is-on b { background: var(--gold-soft); color: #a37a2c; }

/* ============ 订单管理（发货 / 付款 双线状态） ============ */

.o2__mode { display: flex; align-items: center; gap: 8px; padding: 2px 18px 10px; }
.o2__mode .order-mode { flex: 1; margin: 0; }
.o2__cart {
  flex: none; height: 40px; padding: 0 11px;
  border-radius: 11px;
  background: #fff; border: 1px solid rgba(194, 153, 79, 0.45);
  color: #84642a; font-size: 10.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.o2__cart i {
  font-style: normal; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: var(--red); color: #fff;
  font-size: 8.5px; font-weight: 700;
  display: inline-grid; place-items: center;
}
.o2__sum {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px 0;
  font-size: 9.5px; color: var(--muted);
}
.o2__sum b { color: var(--ink-2); font-size: 10.5px; font-weight: 700; }
.o2__sum em { font-style: normal; color: var(--red); font-size: 10.5px; font-weight: 700; }
.o2__sum i { width: 1px; height: 9px; background: #d8dee8; }
.o2__search { margin-top: 10px; height: 38px; }
.o2__search input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  font-size: 11.5px; color: var(--ink);
}
.o2__search input::placeholder { color: #b0b8c4; }
/* 6 个状态完全等分、一屏排满，不再横向滑动 */
.o2__tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
  margin: 0 18px 11px;
  padding: 3px;
  border-radius: 11px;
  background: #eef1f6;
}
.o2__tabs button {
  height: 30px;
  padding: 0 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6d7787;
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
}
.o2__tabs button.is-active {
  background: var(--brand);
  color: #fff;
}
.o2__tabs button b { font-size: 9px; font-weight: 600; opacity: .55; }
.o2__tabs button.is-active b { opacity: .85; }

/* 订单卡：上段（商品 + 金额）+ 中段（物流 / 凭证）+ 下段（双线状态 + 操作） */
.ocard {
  margin: 0 18px 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(22, 32, 52, 0.045);
  overflow: hidden;
}
.ocard__main { display: flex; gap: 10px; padding: 10px 11px 9px; }
.ocard__img {
  width: 54px; height: 54px; border-radius: 10px; flex: none;
  object-fit: cover; background: #f6f2ea; border: 1px solid #efe8db;
}
.ocard__info { flex: 1; min-width: 0; }
.ocard__title {
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ocard__meta {
  display: flex; align-items: center; gap: 5px;
  margin-top: 3px; font-size: 9px; color: var(--muted);
  white-space: nowrap; overflow: hidden;
}
.ocard__meta i { width: 2px; height: 2px; border-radius: 50%; background: #c9cfd9; flex: none; }
.ocard__no { font-size: 8.5px; color: #b6bfcc; overflow: hidden; text-overflow: ellipsis; }
.ocard__note {
  display: inline-block; max-width: 100%;
  margin-top: 5px; padding: 2px 6px;
  border-radius: 5px; background: #fdf8ee; color: #a37a2c;
  font-size: 9px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ocard__amt { flex: none; text-align: right; }
.ocard__amt b { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.2px; }
.ocard__amt b small { font-size: 9px; font-weight: 600; }
.ocard .logi, .ocard .payproof { margin: 0 11px 9px; width: auto; }
.ocard__foot {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 11px 9px;
  margin-top: 1px;
  border-top: 1px solid #f1f3f7;
}
.ocard__chips { display: flex; gap: 5px; min-width: 0; overflow: hidden; }
.ocard__acts { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.oline {
  display: inline-flex; align-items: center; gap: 3px;
  height: 21px; padding: 0 7px;
  border-radius: 6px;
  font-size: 9px; font-weight: 600;
  white-space: nowrap;
}
.oline small { font-size: 8px; font-weight: 500; opacity: .62; }
.oline--wait { background: var(--warn-soft); color: var(--warn); }
.oline--ok { background: var(--ok-soft); color: var(--ok); }
.oline--off { background: #f1f3f7; color: #7d8797; }
.oline--finish { background: var(--ok-soft); color: var(--ok); }
.ab {
  height: 28px; padding: 0 11px;
  border-radius: 8px; border: 1px solid transparent;
  font-size: 10px; font-weight: 600; white-space: nowrap;
}
.ab--primary { background: var(--brand); color: #fff; }
.ab--gold { background: linear-gradient(140deg, #d9b775, #bb9148); color: #2b2113; }
.ab--ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.ocard__more {
  width: 28px; height: 28px; flex: none;
  border-radius: 8px; background: #f4f6f9; color: #8b94a4;
  font-size: 12px; letter-spacing: 1px;
  display: grid; place-items: center;
}

/* 发货单拍照 / OCR */
.ship-photo__add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border: 1px dashed rgba(194, 153, 79, 0.55);
  border-radius: 11px;
  background: #fffdf8;
  color: #a37a2c;
  text-align: center;
}
.ship-photo__add svg { color: var(--gold); }
.ship-photo__add b { font-size: 11px; color: var(--ink-2); }
.ship-photo__add small { font-size: 9px; color: var(--muted); }
.ship-photo__add--compact { min-height: 62px; flex-direction: row; gap: 8px; margin-top: 8px; }
.ship-photo__add--compact b { font-size: 10.5px; }
.ship-photo__add--compact small { display: none; }
.ship-photo__preview { border-radius: 11px; overflow: hidden; background: #f4f6f9; }
.ship-photo__preview img { display: block; width: 100%; max-height: 170px; object-fit: cover; }
.ship-photo__actions { display: flex; gap: 8px; padding: 7px 9px; background: #fff; }
.ship-photo__actions button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 28px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; font-size: 9.5px; color: var(--ink-2);
}
.ship-photo__ocr {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 8px 10px; font-size: 9.5px; color: #2b7d55;
  background: #f1f8f4; border-top: 1px solid rgba(43, 125, 85, 0.12);
}
.ship-photo__ocr b { font-size: 11px; letter-spacing: 0.4px; }
.ship-photo__ocr small { flex-basis: 100%; color: var(--muted); font-size: 8.5px; }
.ship-photo__ocr.is-reading { color: #a37a2c; background: #faf4e6; }
.ship-photo__view {
  display: block; width: 100%; padding: 0; border: 0; border-radius: 11px;
  overflow: hidden; position: relative; background: #f4f6f9;
}
.ship-photo__view img { display: block; width: 100%; max-height: 230px; object-fit: cover; }
.ship-photo__view span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 10px 7px; text-align: right;
  font-size: 9px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(15, 25, 42, 0.62));
}
.ship-photo__full { display: block; width: 100%; border-radius: 10px; margin-top: 8px; background: #f4f6f9; }
.logi__thumb {
  width: 26px; height: 26px; flex: none; border-radius: 6px;
  object-fit: cover; background: #eef1f6;
}

/* 订单页：销售订单提醒 */
.order-switch-tip {
  display: flex; align-items: center; gap: 8px;
  width: calc(100% - 36px);
  margin: 0 18px 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(194, 153, 79, 0.45);
  background: #faf4e6;
  text-align: left;
}
.order-switch-tip__icon {
  width: 30px; height: 30px; flex: none;
  border-radius: 9px; background: #fff;
  color: #a37a2c; display: grid; place-items: center;
}
.order-switch-tip__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.order-switch-tip__main b { font-size: 11px; color: var(--ink-2); }
.order-switch-tip__main small { font-size: 9px; color: var(--muted); }
.order-switch-tip > svg { color: var(--gold); flex: none; }

/* 卖家筛选 */
.seller-pick-title {
  display: flex; align-items: center; gap: 5px;
  padding: 12px 2px 7px;
  font-size: 10px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.4px;
}
.seller-pick-title svg { color: var(--gold); }
.seller-pick-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
.seller-pick {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 9px 10px;
  border-radius: 11px; border: 1px solid var(--line);
  background: #fff; text-align: left;
}
.seller-pick.is-on {
  border-color: rgba(194, 153, 79, 0.6);
  background: #fffdf7;
}
.seller-pick__avatar { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.seller-pick__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.seller-pick__main b {
  font-size: 11.5px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.seller-pick__main small {
  font-size: 9px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.seller-pick__star { color: var(--gold); display: inline-flex; flex: none; }
.seller-pick__check { color: #2b7d55; display: inline-flex; flex: none; }

/* 聊天收藏卖家 */
.chat__favorite.is-on { color: var(--gold); }
.chat__favorite.is-on svg { fill: rgba(194, 153, 79, 0.16); }

/* 我的收藏 */
.fav-intro {
  display: flex; align-items: flex-start; gap: 7px;
  margin: 1px 18px 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #faf4e6;
  color: #8a6927;
  font-size: 9.5px;
  line-height: 1.5;
}
.fav-intro svg { flex: none; margin-top: 1px; color: var(--gold); }
.fav-card {
  margin: 0 18px 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.fav-card__head { display: flex; align-items: flex-start; gap: 10px; }
.fav-card__avatar { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.fav-card__main { flex: 1; min-width: 0; }
.fav-card__name {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fav-card__name .tag { flex: none; }
.fav-card__meta { margin-top: 3px; font-size: 9px; color: var(--muted); }
/* 备注：右上角图标按钮；有备注时图标点亮，内容在店名下方一行 */
.fav-card__note-btn {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: #f3f5f8;
  color: #8e98a8;
}
.fav-card__note-btn.is-on {
  background: var(--gold-soft);
  color: #84642a;
  box-shadow: inset 0 0 0 1px rgba(194, 153, 79, 0.3);
}
.fav-card__note {
  display: flex; align-items: center; gap: 4px;
  max-width: 100%;
  margin-top: 6px;
  padding: 0;
  font-size: 9.5px;
  color: #84642a;
  text-align: left;
}
.fav-card__note span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-card__note svg { flex: none; color: var(--gold); }
.fav-card__actions { display: flex; gap: 6px; margin-top: 10px; }
.fav-card__btn {
  flex: 1;
  height: 28px; padding: 0 8px;
  border-radius: 7px; border: 1px solid var(--line);
  background: #fff; font-size: 9.5px; color: var(--ink-2);
}
.fav-card__btn--gold { background: var(--gold-soft); border-color: rgba(194,153,79,.4); color: #84642a; font-weight: 600; }
.fav-card__btn--muted { color: var(--muted); }

/* 聊天顶部：文字收藏按钮 */
.chat-fav-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid rgba(194, 153, 79, 0.55);
  background: #fffdf8;
  color: #8a6927;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.chat-fav-btn svg { width: 13px; height: 13px; }
.chat-fav-btn.is-on {
  background: var(--gold-soft);
  border-color: rgba(194, 153, 79, 0.8);
  color: #84642a;
}
.chat-fav-btn.is-on svg { fill: rgba(194, 153, 79, 0.22); }

/* 商品详情：卖家卡片（收藏状态用标签展示，右侧只放咨询） */
.seller-card__favtag { flex: none; }
.seller-card__favtag svg { fill: rgba(194, 153, 79, 0.28); }
.seller-card__chat {
  flex: none;
  margin-left: auto;
  height: 30px;
  padding: 0 11px;
  font-size: 11.5px;
  border-radius: 9px;
}

/* 商品卡片：收藏卖家文字按钮 */
.seller-line-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}
.seller-line-row .seller-line--btn {
  flex: 1;
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  white-space: nowrap;
}
.seller-line-row .seller-line--btn b {
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: none;
}
.seller-fav-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 23px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid rgba(194, 153, 79, 0.45);
  background: #fffdf8;
  color: #8a6927;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.seller-fav-btn svg { width: 10px; height: 10px; }
.seller-fav-btn.is-on {
  background: var(--gold-soft);
  border-color: rgba(194, 153, 79, 0.75);
}
.seller-fav-btn.is-on svg { fill: rgba(194, 153, 79, 0.22); }

.chat__peer-shop {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat__peer-name > .tag { flex: none; }

/* =========================================================
   统一烟包视觉：固定画布比例 + 统一底色（440×640 素材）
   ========================================================= */
.pcard__imgwrap {
  position: relative; flex: none;
  width: 88px; height: 126px; padding: 0; margin: 0;
  border-radius: 11px; overflow: hidden;
  background: #F6F2EA; border: 1px solid #efe8db;
  display: block;
}
.pcard__imgwrap .pcard__img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 0; background: transparent;
}

/* 烟包大图查看器 */
.pv {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(43, 63, 94, .55), transparent 60%),
    #0b111b;
  animation: pvin .18s ease-out;
}
@keyframes pvin { from { opacity: 0; } }
.pv__bar {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 16px 16px 10px; color: #f2ede2;
}
.pv__title { flex: 1; min-width: 0; }
.pv__title b { display: block; font-size: 14px; font-weight: 650; line-height: 1.4; }
.pv__sub { display: block; font-size: 10.5px; color: rgba(242, 237, 226, .55); margin-top: 2px; }
.pv__close {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff;
  display: grid; place-items: center;
}
.pv__stage {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  padding: 4px 18px; overflow: hidden; -webkit-overflow-scrolling: touch;
}
.pv__stage img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 10px; transition: transform .22s ease;
  transform-origin: center center;
  box-shadow: 0 18px 46px -18px rgba(0, 0, 0, .8);
}
.pv__stage.is-zoomed { overflow: auto; align-items: flex-start; }
.pv__stage.is-zoomed img {
  transform: none; width: 215%; max-width: none; max-height: none; height: auto;
  margin: 0 auto; border-radius: 6px;
}
.pv__hint { text-align: center; font-size: 10px; color: rgba(242, 237, 226, .42); padding: 6px 0 2px; }
.pv__foot { display: flex; gap: 10px; padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); }
.pv__btn {
  flex: 1; height: 42px; border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #f2ede2;
  font-size: 13px;
}
.pv__btn--primary { background: linear-gradient(160deg, #d8b274, #c19a53); border-color: #b98f47; color: #26200f; font-weight: 600; }

/* 商品详情主图：统一画布 + 点击放大 */
.detail__hero-btn { display: block; width: 100%; padding: 0; border: 0; background: #F6F2EA; }
.detail__hero-zoom {
  position: absolute; right: 16px; top: 16px;
  display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 10px; border-radius: 12px;
  background: rgba(255, 255, 255, .82); color: #5b6472; font-size: 10.5px;
  backdrop-filter: blur(4px);
}

/* ============ 库存 / 进销存 ============ */

.inv-tabs { padding-top: 2px; }

.inv-hero {
  display: flex; align-items: center; gap: 10px;
  width: calc(100% - 36px);
  margin: 0 18px 12px; padding: 11px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm); text-align: left;
}
.inv-hero__icon {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: #eaeef5; color: var(--brand-2);
}
.inv-hero__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.inv-hero__title { font-size: 12.5px; font-weight: 650; color: var(--ink); }
.inv-hero__meta { font-size: 9.5px; color: var(--muted); }
.inv-hero__meta em { font-style: normal; color: var(--warn); }
.inv-hero__num {
  flex: none; text-align: right; font-size: 17px; font-weight: 700;
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
}
.inv-hero__num small { display: block; font-size: 8.5px; font-weight: 400; color: var(--muted); }

.inv-kpis {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin: 0 18px 10px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.inv-kpi { background: #fff; padding: 11px 12px; }
.inv-kpi b {
  display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.3px;
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
}
.inv-kpi span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.inv-kpi em { display: block; font-style: normal; font-size: 8.5px; color: #a0a8b5; margin-top: 2px; }
.inv-kpi--ok b { color: var(--ok); }
.inv-kpi--warn b { color: var(--warn); }
.inv-kpi--gold b { color: #a37a2c; }
.inv-kpis--mini { grid-template-columns: repeat(4, 1fr); }
.inv-kpis--mini .inv-kpi { padding: 9px 6px; text-align: center; }
.inv-kpis--mini .inv-kpi b { font-size: 13px; }
.inv-kpis--mini .inv-kpi span { font-size: 8.5px; }

.inv-chips {
  display: flex; gap: 5px; padding: 0 18px 10px;
  overflow-x: auto; scrollbar-width: none;
}
.inv-chips::-webkit-scrollbar { display: none; }
.inv-chips button {
  flex: none; height: 26px; padding: 0 10px; border-radius: 13px;
  font-size: 10.5px; color: #6b7585; background: #fff; border: 1px solid var(--line);
}
.inv-chips button.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
/* chip 内计数：全部 / 未上架 的计数弱化，预警计数 > 0 时用警示色 */
.inv-chips button b { margin-left: 4px; font-weight: 700; opacity: .65; }
.inv-chips button.is-on b { opacity: .8; }
.inv-chips button b.is-warn { color: var(--warn); opacity: 1; }
.inv-chips button.is-on b.is-warn { color: #f3d9a6; }
.inv-chips--inline { padding: 0; }
.inv-chips--filter { padding-top: 0; }

.inv-section {
  margin: 0 18px 12px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.inv-section__head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 10px;
}
.inv-section__head > span:first-child { margin-right: auto; }
.inv-section__hint { font-size: 9px; font-weight: 400; color: var(--muted); }
.inv-section__badge {
  font-size: 9px; font-weight: 600; padding: 2px 7px; border-radius: 9px;
  background: #f0f2f6; color: #6b7585;
}
.inv-section__badge.is-warn { background: var(--warn-soft); color: var(--warn); }

.inv-balance { display: flex; align-items: stretch; gap: 3px; }
.inv-balance > div:not(.inv-balance__op) { flex: 1; min-width: 0; text-align: center; }
.inv-balance span { display: block; font-size: 8.5px; color: var(--muted); }
.inv-balance b {
  display: block; font-size: 14px; font-weight: 700; margin-top: 3px;
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
}
.inv-balance b.is-in { color: var(--ok); }
.inv-balance b.is-out { color: var(--warn); }
.inv-balance em { display: block; font-style: normal; font-size: 7.5px; color: #a8b0bc; margin-top: 1px; }
.inv-balance__op { width: 10px; display: grid; place-items: center; color: #c3cad4; font-size: 11px; padding-top: 12px; }

.inv-chart { display: flex; align-items: flex-end; gap: 3px; height: 74px; }
.inv-chart__col { flex: 1; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.inv-chart__barwrap { flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.inv-chart__barwrap i {
  display: block; width: 62%; min-height: 2px; border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #d9b775, #bb9148);
}
.inv-chart__col span { display: block; height: 13px; font-size: 7.5px; color: var(--muted); text-align: center; margin-top: 4px; }

.inv-quick { display: flex; gap: 8px; margin: 0 18px 12px; }
.inv-quick__item {
  flex: 1; padding: 10px 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; text-align: center; box-shadow: var(--shadow-sm);
}
.inv-quick__item b {
  display: block; font-size: 15px; font-weight: 700;
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
}
.inv-quick__item span { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }

.inv-line {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 0; border-bottom: 1px solid var(--line-2);
}
.inv-line:last-child { border-bottom: 0; padding-bottom: 0; }
.inv-line__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inv-line__main b { font-size: 10.5px; font-weight: 600; line-height: 1.35; }
.inv-line__main span { font-size: 9px; color: var(--muted); }
.inv-line__amount { flex: none; font-size: 11px; font-weight: 700; font-family: "DIN Alternate", var(--font); }
.inv-line__amount.is-in { color: var(--ok); }
.inv-line__amount.is-out { color: var(--warn); }
.inv-line__action { flex: none; font-size: 9.5px; color: #a37a2c; font-weight: 600; }
.inv-more { margin: 6px 0 0; font-size: 9.5px; color: var(--muted); text-align: center; }

.inv-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 18px 10px; }
.inv-search {
  flex: 1 1 100%; display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; color: var(--muted);
}
.inv-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 11.5px; color: var(--ink);
}

/* 台账卡片：3 行结构 —— ①品名·上架状态·账面 ②品牌·规格·进价 + 可用/占用 ③入库·上架/下架 + 详情链。
   整卡可点进详情；预警线 / 销量 / 成本 / 货位 / 均价都在详情弹层里。 */
.inv-sku {
  margin: 0 18px 10px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: background .12s;
}
.inv-sku:active { background: #fafbfc; }
.inv-sku.is-low { border-color: #f0d9b6; }
.inv-sku__head { display: flex; align-items: flex-start; gap: 10px; }
.inv-sku__name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 650; line-height: 1.4; }
.inv-sku__stock { flex: none; text-align: right; }
.inv-sku__stock b {
  display: block; font-size: 19px; font-weight: 700; line-height: 1.15;
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
}
/* 副文案三种形态：可用 N · 占用 M ／ 可用 N · 预警 ／ 缺货 */
.inv-sku__stock span { display: block; font-size: 9px; color: var(--muted); margin-top: 1px; white-space: nowrap; }
.inv-sku__stock .is-warn, .inv-sku__stock .is-zero { color: var(--warn); font-weight: 600; }
.inv-sku.is-low .inv-sku__stock b { color: var(--warn); }
.inv-sku__meta { font-size: 9.5px; color: var(--muted); margin-top: 4px; }
.inv-sku__foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.inv-sku__link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 1px;
  font-size: 10px; color: var(--muted);
}
.inv-sku__link svg { width: 13px; height: 13px; color: #c3cad6; }

.inv-doc {
  display: flex; align-items: flex-start; gap: 10px; width: calc(100% - 36px);
  margin: 0 18px 9px; padding: 10px 12px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.inv-doc__icon {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
}
.inv-doc--in .inv-doc__icon { background: var(--ok-soft); color: var(--ok); }
.inv-doc--out .inv-doc__icon { background: var(--warn-soft); color: var(--warn); }
.inv-doc--adjust .inv-doc__icon { background: #eaeef5; color: var(--brand-2); }
.inv-doc--void { opacity: .62; }
.inv-doc--void .inv-doc__icon { background: #f0f2f6; color: var(--muted); }
.inv-doc__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inv-doc__title { font-size: 11.5px; font-weight: 650; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.inv-doc__title em { font-style: normal; font-weight: 400; font-size: 8.5px; color: var(--muted); }
.inv-doc__meta { font-size: 9px; color: var(--muted); }
.inv-doc__qty {
  flex: none; text-align: right; font-size: 13px; font-weight: 700;
  font-family: "DIN Alternate", var(--font); color: var(--ink-2);
}
.inv-doc--in .inv-doc__qty { color: var(--ok); }
.inv-doc--out .inv-doc__qty { color: var(--warn); }
.inv-doc__qty em { display: block; font-style: normal; font-size: 8px; font-weight: 400; color: var(--muted); }

.inv-rank { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.inv-rank:last-child { border-bottom: 0; }
.inv-rank__no {
  width: 18px; height: 18px; flex: none; border-radius: 6px;
  display: grid; place-items: center; font-size: 9px; font-weight: 700;
  background: #f0f2f6; color: #8b94a4;
}
.inv-rank__no.is-top { background: var(--brand); color: #fff; }
.inv-rank__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.inv-rank__main b { font-size: 10.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-rank__main span { font-size: 8.5px; color: var(--muted); }
.inv-rank__amount { flex: none; font-size: 11px; font-weight: 700; color: #a37a2c; font-family: "DIN Alternate", var(--font); }

.inv-draft-list { display: flex; flex-direction: column; gap: 6px; }
.inv-draft {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: #fafbfc; border: 1px solid var(--line-2); border-radius: 10px;
}
.inv-draft__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.inv-draft__main b { font-size: 10.5px; font-weight: 600; }
.inv-draft__main span { font-size: 9px; color: var(--muted); }
.inv-draft__amount { font-size: 10.5px; font-weight: 700; color: #a37a2c; }
.inv-draft__del {
  width: 22px; height: 22px; flex: none; border-radius: 6px;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--muted);
}

.inv-detail-nums {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
}
.inv-detail-nums > div { background: #fafbfc; padding: 8px 4px; text-align: center; }
.inv-detail-nums b {
  display: block; font-size: 13px; font-weight: 700;
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
}
.inv-detail-nums span { display: block; font-size: 8.5px; color: var(--muted); margin-top: 1px; }
.inv-detail-block { margin-top: 12px; }
.inv-detail-block__title { font-size: 10.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 2px; }
.inv-kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 10px; }
.inv-kv:last-child { border-bottom: 0; }
.inv-kv span { color: var(--muted); flex: none; }
.inv-kv b { font-weight: 600; color: var(--ink-2); text-align: right; }

/* 商品卡片：紧凑布局 / 购物车与咨询图标 */
.pcard { gap: 10px; padding: 10px; }
.pcard__imgwrap {
  width: 70px;
  height: 100px;
  border-radius: 9px;
}
.seller-line-row {
  margin-top: 5px;
}
.seller-line-row .seller-line {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.seller-line-row .seller-line b {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.pcard__pricewrap {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.pcard__acts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.pcard__act {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: #667085;
  display: grid;
  place-items: center;
}
.pcard__act svg { width: 15px; height: 15px; }
.pcard__act--cart {
  background: #fffdf7;
  border-color: rgba(194, 153, 79, 0.42);
  color: #a37a2c;
}
.pcard__act.is-disabled {
  background: #f7f8fa;
  border-color: #eef0f3;
  color: #c9ced8;
}
.pcard__cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  background: var(--gold);
  color: #fff;
  font-size: 8px;
  line-height: 14px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 0 0 1.5px #fff;
}
.pcard .stock { font-size: 9.5px; }

/* 商品卡片：右上角对话 / 五角星收藏 / 无边框购物车 */
.pcard__chat {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #6d7788;
  display: grid;
  place-items: center;
}
.pcard__chat svg { width: 16px; height: 16px; }
.pcard__title { padding-right: 28px; }
.seller-fav-star {
  flex: none;
  width: 24px;
  height: 24px;
  margin-left: 0;
  border: 0;
  background: transparent;
  color: #b5bcc8;
  display: grid;
  place-items: center;
}
.seller-fav-star svg { width: 14px; height: 14px; }
.seller-fav-star.is-on { color: var(--gold); }
.seller-fav-star.is-on svg { fill: currentColor; }
.pcard__act--cart {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #8b93a3;
}
.pcard__act--cart.is-on { color: var(--gold); }
.pcard__act--cart.is-disabled { background: transparent; border: 0; }
.pcard__act--cart .pcard__cart-badge { display: none; }
/* 选中购物车后不再显示数量角标 */
.pcard__cart-badge { display: none; }

/* 统一紧凑商品卡（主列表 / 其他地区 / 搜索结果 / 多选） */
.pcard--row {
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  margin: 0 18px 8px;
  min-height: 64px;
  border-radius: 12px;
  cursor: pointer;
}
.pcard--row .pcard__thumb {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  padding: 0;
  border: 1px solid #efe8db;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f2ea;
  display: block;
}
.pcard--row .pcard__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcard__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pcard__rowline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.pcard__rowtitle {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard__rowprice { flex: none; white-space: nowrap; }
.pcard__rowprice .price__cur { font-size: 9px; }
.pcard__rowprice .price__num { font-size: 14px; }
.pcard__rowprice .price__unit { font-size: 8px; }
.pcard__shopline {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 9.5px;
  color: var(--muted);
}
.pcard__shop {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard__favstate {
  flex: none;
  display: inline-flex;
  color: #b8bfca;
}
.pcard__favstate svg { width: 12px; height: 12px; }
.pcard__favstate.is-on { color: var(--gold); }
.pcard__favstate.is-on svg { fill: currentColor; }
.pcard__qtyline {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.2;
}
.pcard__qtyline b { color: var(--ink-2); font-weight: 600; }

/* 其他地区列表与主列表使用同一卡片 */
.other-region__cards { }
.other-region__cards .pcard { margin: 0 18px 8px; }

/* 多选模式也使用紧凑卡片 */
.pcard--select {
  padding-left: 36px;
  cursor: pointer;
}
.pcard--select .pcard__check {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.pcard--select.is-selected {
  border-color: rgba(194, 153, 79, 0.7);
  background: #fffdf8;
  box-shadow: 0 4px 14px rgba(194, 153, 79, 0.14);
}
.pcard--select .pcard__favstate { pointer-events: none; }

/* 商品信息筛选：四项等宽、两端对齐 */
.filters {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: visible;
}
.filters .filter {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  gap: 3px;
  padding: 0 5px;
  font-size: 11px;
}
.filters .filter > svg { flex: none; }
.filter__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 结果行：左侧信息可截断，右侧操作固定不溢出 */
.result-bar {
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
  min-width: 0;
}
.result-bar__scope {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-bar__side {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.result-bar__more { padding-left: 0; flex: none; }
.result-bar__select { flex: none; }

/* 登录 / 注册模式切换 */
.auth-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 13px;
  border-radius: 11px;
  background: #eef1f6;
}
.auth-switch__item {
  flex: 1;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.auth-switch__item.is-on {
  background: #fff;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.auth-invite-note {
  margin: 0 0 13px;
  background: #faf4e6;
  color: #84642a;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.auth-invite-note svg { flex: none; margin-top: 1px; color: var(--gold); }

/* 登录页顶部色块：方案 C */
.login {
  display: block;
  padding: 0;
  background: #f1f4f6;
}
.login .login__hero {
  position: relative;
  overflow: hidden;
  display: block;
  margin: 0;
  padding: 24px 22px 25px;
  color: #fff;
  background: linear-gradient(135deg, #1a2c49 0%, #1d4050 100%);
  border-bottom: 3px solid #caa45d;
  border-radius: 0;
}
.login .login__hero::before,
.login .login__hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}
.login .login__hero::before { width: 210px; height: 210px; right: -76px; top: -58px; }
.login .login__hero::after { width: 142px; height: 142px; right: -42px; top: -24px; }
.login__topbar { position: relative; z-index: 1; display: flex; align-items: center; }
.login__brand { display: flex; align-items: center; gap: 10px; }
.login .login__logo {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: none;
  color: #e5cf9c;
}
.login .login__logo svg { width: 23px; height: 23px; }
.login .login__name {
  color: #fff;
  font-size: 19px;
  letter-spacing: 4px;
  text-indent: 0;
  line-height: 1.1;
}
.login__en {
  margin-top: 4px;
  color: rgba(255,255,255,.54);
  font-size: 7px;
  letter-spacing: 2.4px;
}
.login__demo {
  margin-left: auto;
  height: 27px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.74);
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.login__demo i { width: 5px; height: 5px; border-radius: 50%; background: #d6b36f; }
.login__copy { position: relative; z-index: 1; margin-top: 24px; }
.login__eyebrow {
  margin-bottom: 8px;
  color: rgba(255,255,255,.48);
  font-size: 8px;
  letter-spacing: 2px;
}
.login__copy h2 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  line-height: 1.36;
  font-weight: 600;
  letter-spacing: .4px;
}
.login__copy h2 em {
  font-style: normal;
  color: #dfc184;
  font-weight: 700;
}
.login__copy p {
  margin: 9px 0 0;
  color: rgba(255,255,255,.55);
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: .3px;
}
.login__body { padding: 14px 18px 22px; }
.login .login__card {
  position: relative;
  flex: none;
  margin: 0;
  padding: 17px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(228,232,239,.92);
  box-shadow: 0 18px 38px rgba(18,28,48,.11);
}
.login .login__legal { margin: 13px 2px 0; }

/* 登录卡标题 / 底部切换 / 演示提示 */
.login__card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--ink-2);
}
.login__card-sub {
  margin: 5px 0 15px;
  color: #8a94a4;
  font-size: 9.5px;
}
.auth-foot {
  margin-top: 12px;
  text-align: center;
  font-size: 9.5px;
  color: #98a1af;
}
.auth-foot button {
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #a37a2c;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 600;
}
.login__hint {
  margin-top: 9px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #faf6ed;
  color: #947235;
  font-size: 8.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.login__hint i {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #c9a055;
}



/* 邀请码输入与获取方式 */
.invite-help-btn {
  flex: none;
  height: 43px;
  padding: 0 11px;
  border: 1px solid rgba(194, 153, 79, .35);
  border-radius: 11px;
  background: #fffaf0;
  color: #8a6424;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.invite-help-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 14px 0 4px;
}
.invite-help-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fbfcfd;
}
.invite-help-num {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f7efdf;
  color: #9a732f;
  font-size: 10px;
  font-weight: 700;
}
.invite-help-body { flex: 1; min-width: 0; }
.invite-help-title { color: var(--ink-2); font-size: 11.5px; font-weight: 650; }
.invite-help-desc { margin-top: 4px; color: #8b94a4; font-size: 9.5px; line-height: 1.6; }
.invite-wechat {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 9px;
  color: #8b94a4;
}
.invite-wechat code {
  padding: 3px 7px;
  border-radius: 6px;
  background: #f4f6f9;
  color: #4b586b;
  font-size: 10px;
  letter-spacing: .4px;
}
.invite-wechat button {
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(194, 153, 79, .35);
  background: #fffaf0;
  color: #8a6424;
  font-family: inherit;
  font-size: 9px;
}

/* 我的：顶部注册名 / 六项数据 / 功能图标 */
.account-head {
  padding: 22px 20px 12px;
}
.account-head__line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-name {
  margin: 0;
  max-width: calc(100% - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .3px;
}
.account-edit {
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 8px;
  border: 1px solid #e7eaf0;
  background: #fff;
  color: #7f8999;
  display: grid;
  place-items: center;
}
.account-edit svg { width: 14px; height: 14px; }
.account-sub {
  margin: 6px 0 0;
  color: #8d96a6;
  font-size: 9.5px;
  letter-spacing: .2px;
}
.account-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 18px 14px;
  padding: 7px 0;
  background: #fff;
  border: 1px solid rgba(233, 236, 241, .95);
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(22, 32, 52, .05);
}
.account-metric {
  min-width: 0;
  padding: 7px 3px;
  border: 0;
  border-right: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: inherit;
}
.account-metric:nth-child(3n) { border-right: 0; }
.account-metric:nth-child(n+4) { border-bottom: 0; }
.account-metric b {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.account-metric span {
  color: #8b94a4;
  font-size: 9px;
}
.account-shortcuts {
  display: flex;
  justify-content: space-around;
  margin: 0 18px 16px;
}
.account-shortcut {
  flex: 1;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #4e5b6d;
  font-family: inherit;
  font-size: 9.5px;
}
.account-shortcut__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #ebedf2;
  box-shadow: 0 5px 14px rgba(22, 32, 52, .05);
}
.account-shortcut__icon svg { width: 19px; height: 19px; }
.account-shortcut__icon.is-gold { color: #a37a2c; background: #fffaf0; border-color: #f0e4cd; }
.account-shortcut__icon.is-green { color: #2d7f68; background: #f3faf7; border-color: #dcefe7; }
.account-shortcut__icon.is-blue { color: #3d638f; background: #f4f8fd; border-color: #e0ebf7; }

/* 邀请好友弹窗 */
.invite-share-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #fffaf0;
  border: 1px solid #f0e4cd;
}
.invite-share-code span { color: #8a6424; font-size: 9.5px; }
.invite-share-code b {
  color: #8a6424;
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 700;
}
.invite-share-link {
  margin: 9px 0 13px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f8fa;
  border: 1px solid #edf0f4;
}
.invite-share-link span { color: #98a1af; font-size: 8.5px; }
.invite-share-link p {
  margin: 5px 0 0;
  color: #59667a;
  font-size: 9px;
  line-height: 1.55;
  word-break: break-all;
}
.invite-share-tip {
  margin-top: 10px;
  color: #9aa3b1;
  font-size: 8.5px;
  line-height: 1.6;
}

/* 我的：统一账户页 */
.acct-page { background: #f4f6f8; }
.acct-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 20px 56px;
  color: #fff;
  background: linear-gradient(135deg, #1a2c49 0%, #1d4050 100%);
  border-radius: 0;
}
.acct-hero::before,
.acct-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}
.acct-hero::before { width: 220px; height: 220px; right: -92px; top: -76px; }
.acct-hero::after { width: 148px; height: 148px; right: -44px; top: -34px; }
.acct-hero__eyebrow {
  position: relative; z-index: 1;
  color: rgba(255,255,255,.45);
  font-size: 8px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.acct-name-line {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.acct-name {
  margin: 0;
  max-width: calc(100% - 42px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .3px;
}
.acct-edit {
  width: 27px; height: 27px;
  flex: none;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  display: grid;
  place-items: center;
}
.acct-edit svg { width: 14px; height: 14px; }
.acct-status {
  margin-left: auto;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.62);
  display: inline-flex;
  align-items: center;
  font-size: 8.5px;
  white-space: nowrap;
}
.acct-status.is-on {
  border-color: rgba(220,187,125,.32);
  background: rgba(220,187,125,.12);
  color: #e3cb98;
}
.acct-meta {
  position: relative; z-index: 1;
  margin: 7px 0 0;
  color: rgba(255,255,255,.5);
  font-size: 9.5px;
  letter-spacing: .2px;
}
.acct-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -32px 18px 14px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid rgba(233,236,241,.95);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(22,32,52,.1);
}
.acct-metric {
  min-width: 0;
  padding: 8px 3px;
  border: 0;
  border-right: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: inherit;
}
.acct-metric:nth-child(3n) { border-right: 0; }
.acct-metric:nth-child(n+4) { border-bottom: 0; }
.acct-metric b {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.acct-metric span { color: #8b94a4; font-size: 9px; }
.acct-quick {
  display: flex;
  justify-content: space-around;
  margin: 0 18px 15px;
}
.acct-quick__item {
  flex: 1;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #4e5b6d;
  font-family: inherit;
  font-size: 9.5px;
}
.acct-quick__icon {
  width: 47px; height: 47px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #ebedf2;
  box-shadow: 0 5px 14px rgba(22,32,52,.05);
}
.acct-quick__icon svg { width: 20px; height: 20px; }
.acct-quick__icon.is-gold { color: #a37a2c; background: #fffaf0; border-color: #f0e4cd; }
.acct-quick__icon.is-green { color: #2d7f68; background: #f3faf7; border-color: #dcefe7; }
.acct-quick__icon.is-blue { color: #3d638f; background: #f4f8fd; border-color: #e0ebf7; }
.acct-upgrade {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 18px 15px;
  padding: 11px 12px;
  border-radius: 13px;
  background: linear-gradient(135deg, #fbf3e3, #f7ead1);
  border: 1px solid rgba(194,153,79,.24);
}
.acct-upgrade__icon {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #c49a4f;
  color: #fff7e8;
}
.acct-upgrade__icon svg { width: 18px; height: 18px; }
.acct-upgrade__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acct-upgrade__main b { color: #5e4720; font-size: 11px; }
.acct-upgrade__main span { color: #9a7e4c; font-size: 8.5px; }
.acct-section { margin-bottom: 15px; }
.acct-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 9px;
}
.acct-section__head h2 {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2px;
}
.acct-section__head span { color: #a0a8b5; font-size: 8.5px; }
.acct-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px 2px;
  padding: 0 12px;
}
.acct-tile {
  min-width: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #556274;
  font-family: inherit;
  font-size: 9px;
  white-space: nowrap;
}
.acct-tile__icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e9edf2;
  color: #6f7c8f;
  box-shadow: 0 4px 12px rgba(22,32,52,.04);
}
.acct-tile__icon svg { width: 18px; height: 18px; }
.acct-links {
  margin: 0 18px;
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  overflow: hidden;
}
.acct-link {
  width: 100%;
  min-height: 45px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid #f3f5f8;
  background: #fff;
  color: #5b687a;
  font-family: inherit;
  font-size: 10.5px;
  text-align: left;
}
.acct-link:last-child { border-bottom: 0; }
.acct-link svg { flex: none; width: 16px; height: 16px; color: #8d98a8; }
.acct-link span { flex: 1; }
.acct-link svg:last-child { width: 13px; height: 13px; color: #c3c9d2; }
.acct-link.is-danger { color: #be3a30; }
.acct-link.is-danger svg { color: #be3a30; }

/* 功能激活 */
.activation-wechat {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid #f0e4cd;
  border-radius: 9px;
  background: #fffaf0;
  color: #8a6424;
  font-size: 9.5px;
}
.activation-wechat span { color: #a58a5e; }
.activation-wechat b { color: #6f4e19; font-size: 10.5px; letter-spacing: .3px; }
.activation-wechat button {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid rgba(194,153,79,.35);
  border-radius: 6px;
  background: #fff;
  color: #8a6424;
  font-family: inherit;
  font-size: 9px;
}
.activation-tip {
  margin-top: 10px;
  color: #9aa3b1;
  font-size: 8.5px;
  line-height: 1.6;
  text-align: center;
}

/* 我的：顶部邀请按钮与更矮的色块 */
.acct-hero {
  padding: 20px 20px 22px;
}
.acct-hero__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.acct-hero__id { flex: 1; min-width: 0; }
.acct-hero__eyebrow { margin-bottom: 7px; }
.acct-name-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.acct-name { max-width: calc(100% - 36px); }
.acct-status {
  margin: 9px 0 0;
  display: inline-flex;
}
.acct-invite {
  flex: none;
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px;
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.84);
  font-family: inherit;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.acct-invite svg { width: 13px; height: 13px; }
.acct-metrics {
  margin: 14px 18px 14px;
}
.invite-list {
  margin: 12px 0 14px;
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  overflow: hidden;
}
.invite-list-empty {
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #9aa3b1;
  font-size: 9px;
}
.invite-list-empty svg { color: #c0c7d1; }
.invite-list-empty b { color: #5f6b7c; font-size: 11px; }

/* 全局统一用户头像：统一头像图标，不使用注册名首字 */
.avatar-art {
  display: inline-grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: #1b2c48;
}
.avatar-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* 我的页面顶部头像 */
.acct-avatar {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  padding: 2px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.06);
}
.acct-avatar .avatar-art,
.acct-avatar__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* 我的顶部：头像、注册名、注册地垂直对齐 */
.acct-hero__top {
  align-items: center;
}
.acct-hero__id {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.acct-name-line { line-height: 1.15; }
.acct-meta { margin-top: 5px; }
.acct-invite { align-self: flex-start; }

/* 我的：色块内三项数据 */
.acct-hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.acct-hero__stat {
  min-width: 0;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: #fff;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.acct-hero__stat:first-child { padding-left: 0; }
.acct-hero__stat:last-child { border-right: 0; }
.acct-hero__stat b {
  color: #f4e3bf;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.acct-hero__stat span {
  color: rgba(255,255,255,.55);
  font-size: 9px;
}
/* 四格版（积分 / 在售商品 / 待发货 / 待结算）：列更窄，数字略收、左右内边距收紧 */
.acct-hero__stats--4 { grid-template-columns: repeat(4, 1fr); }
.acct-hero__stats--4 .acct-hero__stat { padding: 0 8px; }
.acct-hero__stats--4 .acct-hero__stat b { font-size: 17px; white-space: nowrap; }

/* 我的：仓库管理模式 */
.acct-warehouse {
  margin: 0 18px;
  padding-top: 17px;
}
.acct-wh-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.acct-wh-head h2 {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}
.acct-wh-head span {
  display: block;
  margin-top: 3px;
  color: #98a1af;
  font-size: 8.5px;
}
.acct-wh-head em {
  color: #9aa3b1;
  font-size: 8.5px;
  font-style: normal;
  white-space: nowrap;
}
.acct-wh-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.acct-wh-search {
  flex: 1;
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  background: #fff;
}
.acct-wh-search svg { width: 15px; height: 15px; color: #9aa4b2; flex: none; }
.acct-wh-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 10.5px;
}
.acct-wh-search input::placeholder { color: #aab2bf; }
.acct-wh-tools .btn { flex: none; height: 38px; font-size: 10px; padding: 0 12px; }
.acct-wh-lock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid #f0e4cd;
  background: #fffaf0;
  color: #8a6424;
}
.acct-wh-lock svg { flex: none; color: #b28c4b; }
.acct-wh-lock div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.acct-wh-lock b { font-size: 11px; }
.acct-wh-lock span { color: #a58a5e; font-size: 8.5px; }
.acct-wh-lock .btn { flex: none; font-size: 9px; }
.acct-stock-list {
  margin-top: 10px;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  overflow: hidden;
}
.acct-stock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  border-bottom: 1px solid #f2f4f7;
}
.acct-stock-row:last-child { border-bottom: 0; }
.acct-stock-main { flex: 1; min-width: 0; }
.acct-stock-name {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-stock-meta { margin-top: 4px; color: #98a1af; font-size: 8.5px; }
.acct-stock-qty { flex: none; min-width: 38px; text-align: center; }
.acct-stock-qty b { display: block; color: var(--ink); font-size: 16px; line-height: 1.1; }
.acct-stock-qty span { display: block; margin-top: 2px; color: #a0a8b5; font-size: 8px; }
.acct-stock-ops { flex: none; display: flex; gap: 5px; }
.acct-stock-btn {
  height: 27px;
  padding: 0 7px;
  border: 1px solid #e7eaf0;
  border-radius: 7px;
  background: #fff;
  color: #6c7788;
  font-family: inherit;
  font-size: 8px;
  white-space: nowrap;
}
.acct-stock-btn.is-detail { color: #8a6424; border-color: #efe1c7; background: #fffaf0; }
.acct-stock-empty {
  padding: 28px 14px;
  text-align: center;
  color: #9aa3b1;
  font-size: 9px;
}
.profile-logout {
  display: block;
  margin: 12px auto 2px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #be3a30;
  font-family: inherit;
  font-size: 9.5px;
}

/* 库存搜索：确保 [hidden] 覆盖 flex 布局 */
.acct-stock-row[hidden] { display: none !important; }

/* 我的：周期服务到期日与四项数据 */
.acct-expire {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.64);
  font-size: 8.5px;
  letter-spacing: .2px;
}
.acct-hero__stats {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 13px;
  padding-top: 11px;
}
.acct-hero__stat {
  padding: 0 7px;
  gap: 1px;
}
.acct-hero__stat b { font-size: 17px; }
.acct-hero__stat span {
  font-size: 8.2px;
  white-space: nowrap;
}

.acct-hero__id { align-items: flex-start; }
.acct-expire { align-self: flex-start; }

.acct-hero__id { align-items: stretch; }
.acct-name-line { width: 100%; }
.acct-meta { align-self: flex-start; }

/* 无库存时的新用户会员引导 */
.acct-stock-empty--member {
  padding: 26px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.acct-stock-empty--member b {
  color: #5f6b7c;
  font-size: 11.5px;
  font-weight: 650;
}
.acct-stock-empty--member p {
  max-width: 250px;
  margin: 0;
  color: #98a1af;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}
.acct-stock-empty--member .btn {
  margin-top: 5px;
  height: 34px;
  font-size: 9.5px;
}

/* 我的顶部四项数据：均匀四列、数字与标签居中对齐 */
.acct-hero__stats {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(216, 180, 115, .24);
}
.acct-hero__stat {
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 4px;
  text-align: center;
}
.acct-hero__stat:first-child,
.acct-hero__stat:last-child {
  padding-left: 4px;
  padding-right: 4px;
}
.acct-hero__stat b {
  color: #edcf95;
  font-family: "DIN Alternate", "Helvetica Neue", var(--font);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: .2px;
}
.acct-hero__stat span {
  color: rgba(255, 255, 255, .58);
  font-size: 8.5px;
  line-height: 1.2;
  letter-spacing: .2px;
  white-space: nowrap;
}

/* 我的页头 A：身份/状态/机构/地区/到期分层 */
.acct-hero__top { align-items: flex-start; }
.acct-hero__id { min-width: 0; }
.acct-tags { display: flex; align-items: center; gap: 4px; margin-top: 7px; flex-wrap: wrap; }
.acct-tag {
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  font-size: 7.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.acct-tag--buyer {
  color: #bfd4ed;
  background: rgba(121,165,215,.16);
  border: 1px solid rgba(157,194,235,.24);
}
.acct-tag--seller {
  color: #ead2a2;
  background: rgba(201,164,92,.16);
  border: 1px solid rgba(224,195,138,.26);
}
.acct-tag--guest {
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
}
.acct-hero__meta {
  position: relative;
  z-index: 1;
  margin: 10px 18px 0 73px;
}
.acct-institution {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 8.5px;
  color: rgba(255,255,255,.4);
}
.acct-institution b {
  color: rgba(255,255,255,.82);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-service-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  color: rgba(255,255,255,.52);
  font-size: 8.5px;
}
.acct-expiry { color: rgba(255,255,255,.52); white-space: nowrap; }
.acct-expiry b { color: #e3c98f; font-weight: 600; }

/* 手机适配：顶部留出状态栏/刘海空间，信息块与注册名左对齐 */
.acct-hero {
  padding-top: calc(30px + env(safe-area-inset-top, 0px));
}
.acct-hero__meta {
  margin-left: 55px;
}
.acct-service-line {
  flex-wrap: wrap;
  row-gap: 3px;
}

/* 我的页头：注册名与标签同行，右上角编辑/分享 */
.acct-name {
  max-width: 100%;
  min-width: 0;
  font-size: 19px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-name-line {
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.acct-name-line .acct-tags {
  margin-top: 0;
  flex-wrap: wrap;
}
.acct-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: 1px;
}
.acct-action {
  height: 27px;
  padding: 0 7px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  font-family: inherit;
  font-size: 8.5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.acct-action svg { width: 12px; height: 12px; }

/* 我的页头：第二行店铺+注册地，第三行有效期，统一左对齐 */
.acct-hero__meta {
  margin: 9px 18px 0 55px;
}
.acct-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  font-size: 9px;
  line-height: 1.5;
}
.acct-shop {
  color: rgba(255,255,255,.84);
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-dot { color: rgba(255,255,255,.3); }
.acct-region { color: rgba(255,255,255,.52); }
.acct-expiry-line {
  margin-top: 5px;
  color: rgba(255,255,255,.5);
  font-size: 8.5px;
  line-height: 1.4;
  text-align: left;
}
.acct-expiry-line b {
  color: #e3c98f;
  font-weight: 600;
}

/* 注册名与地址/有效期之间去掉空行 */
.acct-hero__meta {
  margin: 3px 0 0;
}

/* 忘记密码 */
.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 10px;
}
.forgot-row button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #a37a2c;
  font-family: inherit;
  font-size: 9px;
}
.forgot-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}
.forgot-step {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.forgot-step > span {
  width: 21px;
  height: 21px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f7efdf;
  color: #9a732f;
  font-size: 9px;
  font-weight: 700;
}
.forgot-step p {
  margin: 2px 0 0;
  color: #697586;
  font-size: 9.5px;
  line-height: 1.65;
}
.forgot-step p b { color: #8a6424; }

/* 修改手机号 */
.phone-change-btn {
  flex: none;
  height: 43px;
  padding: 0 11px;
  border: 1px solid #e7eaf0;
  border-radius: 11px;
  background: #fff;
  color: #697586;
  font-family: inherit;
  font-size: 9.5px;
  white-space: nowrap;
}

/* 我的：经营页签 */
.acct-tabs {
  position: sticky;
  top: 0;
  z-index: 28;
  display: flex;
  gap: 3px;
  margin: 9px 18px 12px;
  padding: 4px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #e9edf2;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(22, 32, 52, .06);
  backdrop-filter: blur(8px);
}
.acct-tab {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8d96a4;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  position: relative;
}
.acct-tab.is-on {
  color: #1d2634;
  background: #f5f7fa;
}
.acct-tab.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #c9a45c;
  transform: translateX(-50%);
}
.acct-tab em {
  min-width: 13px;
  height: 13px;
  margin-left: 3px;
  padding: 0 3px;
  border-radius: 7px;
  background: #c4473a;
  color: #fff;
  font-size: 7px;
  font-style: normal;
  line-height: 13px;
  display: inline-block;
  vertical-align: 1px;
}
.acct-panel { padding-bottom: 2px; }
.acct-panel--inventory { padding: 0 18px; }

/* 概览 */
.acct-overview { padding: 0 18px; }
.acct-task-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.acct-task {
  min-width: 0;
  padding: 10px 3px;
  border: 1px solid #e9edf2;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: inherit;
}
.acct-task b {
  color: #1d2634;
  font-size: 18px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.acct-task span { color: #8d96a4; font-size: 8.5px; white-space: nowrap; }
.acct-todo {
  margin-top: 11px;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 14px;
  overflow: hidden;
}
.acct-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 13px 9px;
}
.acct-block-head b { color: #374456; font-size: 11.5px; font-weight: 700; }
.acct-block-head button,
.acct-block-head span { color: #9aa3b1; font-size: 8.5px; border: 0; background: transparent; font-family: inherit; }
.acct-todo-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid #f2f4f7;
  background: #fff;
  text-align: left;
  font-family: inherit;
}
.acct-todo-row__tag {
  flex: none;
  height: 18px;
  padding: 0 5px;
  border-radius: 6px;
  background: #faf3e4;
  color: #9a732f;
  font-size: 7.5px;
  line-height: 18px;
}
.acct-todo-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.acct-todo-row__main b { color: #3d4a5b; font-size: 10.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-todo-row__main small { color: #9aa3b1; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-todo-row__right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.acct-todo-row__right b { color: #3d4a5b; font-size: 11px; }
.acct-todo-row__right small { color: #a37a2c; font-size: 8px; }
.acct-overview-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 11px;
  padding: 12px 4px;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 14px;
}
.acct-overview-action {
  flex: 1;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}
.acct-overview-action > span {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.acct-overview-action > span.is-green { color: #2d7f68; background: #f3faf7; }
.acct-overview-action > span.is-gold { color: #a37a2c; background: #fffaf0; }
.acct-overview-action > span.is-blue { color: #3d638f; background: #f4f8fd; }
.acct-overview-action > span svg { width: 18px; height: 18px; }
.acct-overview-action b { color: #4d5a6d; font-size: 9.5px; font-weight: 600; }
.acct-overview-action small { color: #a3aab6; font-size: 8px; }
.acct-alert-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eef1f5;
  color: #98a1af;
  font-size: 8.5px;
}
.acct-alert-strip span { display: inline-flex; align-items: center; gap: 4px; }
.acct-alert-strip svg { width: 13px; height: 13px; color: #b39a6c; }
.acct-alert-strip b { color: #596575; font-weight: 600; }

/* 库存页签工具条边距 */
.acct-panel .acct-wh-tools { margin: 0 18px; }
.acct-panel .acct-stock-list { margin: 10px 18px 0; }

/* 商品页签 */
.acct-products-head,
.acct-sales-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 18px;
  margin-bottom: 10px;
}
.acct-chips { display: flex; align-items: center; gap: 5px; }
.acct-chip {
  height: 27px;
  padding: 0 9px;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  background: #fff;
  color: #8b94a4;
  font-family: inherit;
  font-size: 8.5px;
}
.acct-chip.is-on { color: #8a6424; border-color: #ead9b9; background: #fffaf0; }
.acct-text-btn {
  border: 0;
  background: transparent;
  color: #a37a2c;
  font-family: inherit;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.acct-products {
  margin: 0 18px;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 14px;
  overflow: hidden;
}
.acct-product-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-bottom: 1px solid #f2f4f7;
}
.acct-product-row:last-child { border-bottom: 0; }
.acct-product-row > img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f1e8;
  flex: none;
}
.acct-product-main { flex: 1; min-width: 0; }
.acct-product-name { color: #3d4a5b; font-size: 10.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-product-meta { margin-top: 4px; color: #9aa3b1; font-size: 8px; }
.acct-product-ops { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.acct-product-state { color: #9a732f; font-size: 8px; }
.acct-product-state.is-on { color: #2d7f68; }
.acct-product-ops > div { display: flex; gap: 4px; }
.acct-product-ops button {
  height: 24px;
  padding: 0 6px;
  border: 1px solid #e8ecf1;
  border-radius: 6px;
  background: #fff;
  color: #697586;
  font-family: inherit;
  font-size: 8px;
}

/* 销售页签 */
.acct-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 18px;
}
.acct-kpi {
  padding: 12px;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 12px;
}
.acct-kpi span { display: block; color: #929baa; font-size: 8.5px; }
.acct-kpi b { display: block; margin-top: 5px; color: #1d2634; font-size: 18px; font-weight: 700; font-family: "DIN Alternate", "Helvetica Neue", sans-serif; }
.acct-chart-card {
  margin: 9px 18px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 12px;
}
.acct-chart-head { display: flex; justify-content: space-between; align-items: center; }
.acct-chart-head b { color: #3d4a5b; font-size: 10.5px; }
.acct-chart-head span { color: #a0a8b5; font-size: 8px; }
.acct-chart {
  height: 78px;
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.acct-bar {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.acct-bar i {
  display: block;
  width: 100%;
  min-width: 4px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #d3b16f, #b98f45);
}
.acct-bar em {
  position: absolute;
  bottom: -13px;
  color: #b0b7c2;
  font-size: 6px;
  font-style: normal;
  white-space: nowrap;
  transform: scale(.9);
}
.acct-top {
  margin: 18px 18px 0;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 12px;
  overflow: hidden;
}
.acct-top .acct-block-head { padding-bottom: 6px; }
.acct-top-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-top: 1px solid #f2f4f7;
  font-size: 8.5px;
}
.acct-top-row > span { width: 15px; height: 15px; border-radius: 50%; background: #f7efdf; color: #9a732f; display: grid; place-items: center; font-size: 7px; }
.acct-top-row b { flex: 1; min-width: 0; color: #4d5a6d; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-top-row small { color: #9aa3b1; }
.acct-top-row em { color: #a37a2c; font-style: normal; font-weight: 600; }
.acct-empty {
  padding: 28px 15px;
  text-align: center;
  color: #9aa3b1;
  font-size: 9px;
}
.acct-empty b { display: block; margin-bottom: 5px; color: #5f6b7c; font-size: 11px; }
.acct-empty span { display: block; margin-bottom: 10px; }
.acct-empty--sm { padding: 18px 10px; }
.acct-chart-empty {
  height: 78px;
  display: grid;
  place-items: center;
  color: #a0a8b5;
  font-size: 9px;
}

/* 消息页：我的消息 / 我的收藏 */
.msg-tabs {
  display: flex;
  gap: 4px;
  margin: 8px 18px 10px;
  padding: 4px;
  border: 1px solid #e9edf2;
  border-radius: 12px;
  background: #fff;
}
.msg-tabs button {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8d96a4;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  position: relative;
}
.msg-tabs button.is-on { color: #1d2634; background: #f5f7fa; }
.msg-tabs button.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #c9a45c;
  transform: translateX(-50%);
}
.msg-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 50%;
  background: #c4473a;
  vertical-align: 1px;
}
.msg-dot[hidden] { display: none; }
.msg-tabs em {
  min-width: 14px;
  height: 14px;
  margin-left: 3px;
  padding: 0 3px;
  border-radius: 7px;
  background: #c4473a;
  color: #fff;
  font-size: 7px;
  font-style: normal;
  line-height: 14px;
  display: inline-block;
  vertical-align: 1px;
}
.favorites-wrap { padding: 0 0 6px; }

/* 对话内「卖家全部商品」弹层：列表独立滚动，头部与按钮固定 */
.shop-sheet {
  margin: 12px -18px 0;
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shop-sheet::-webkit-scrollbar { display: none; }
.shop-sheet .feed-list { padding: 0; }
.shop-sheet .pcard { margin: 0 18px 8px; }

/* 从对话跳到商品列表时的「回到会话」返回条 */
.chat-return {
  margin: 8px 18px 0;
}
.chat-return button {
  width: 100%;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--gold-soft);
  border: 1px solid rgba(194, 153, 79, 0.35);
  color: #84642a;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
}
.chat-return button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-return svg { flex: none; }
.acct-bar i { height: 100%; }

/* =========================================================
   库存优先：入库模式切换 / 品规选择 / 上架状态
   ========================================================= */
.inv-mode { display: flex; gap: 4px; padding: 3px; margin: 10px 0 12px; background: #f1f3f7; border-radius: 10px; }
.inv-mode button {
  flex: 1; height: 30px; border: 0; border-radius: 8px; background: transparent;
  font-family: inherit; font-size: 12px; color: var(--muted);
}
.inv-mode button.is-on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 2px 8px rgba(22, 32, 52, .08); }

.inv-cat {
  max-height: 208px; overflow-y: auto; margin: 0 0 4px;
  border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
}
.inv-cat::-webkit-scrollbar { width: 0; }
.inv-cat__row {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  background: #fff; border: 0; border-bottom: 1px solid var(--line-2);
  font-family: inherit; text-align: left;
}
.inv-cat__row:last-child { border-bottom: 0; }
.inv-cat__img { width: 30px; height: 40px; flex: none; border-radius: 5px; object-fit: cover; background: #f1f3f7; }
.inv-cat__img.is-text { display: grid; place-items: center; font-size: 10px; color: #8b94a4; }
.inv-cat__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inv-cat__main b { font-size: 11px; font-weight: 600; color: var(--ink); }
.inv-cat__main span { font-size: 9px; color: var(--muted); }
.inv-cat__price { flex: none; font-size: 9.5px; color: #a37a2c; }

.inv-chosen { margin-top: 8px; padding: 10px; border: 1px dashed #d8e0ec; border-radius: 10px; background: #fafbfc; }
.inv-chosen__top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.inv-chosen__top b {
  flex: 1; min-width: 0; font-size: 11px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 我的（卖家）：库存条与入库 / 上架快捷按钮 */
.acct-stock {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 6px;
  width: 100%; margin: 12px 0 0; padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 11px;
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .68); font-family: inherit; font-size: 10.5px; text-align: left;
}
.acct-stock b { font-size: 14px; font-weight: 600; color: #f0d9ac; font-family: "DIN Alternate", var(--font); }
.acct-stock__label { color: rgba(255, 255, 255, .55); }
.acct-stock em {
  font-style: normal; font-size: 9.5px; color: #f0c987;
  background: rgba(227, 197, 140, .16); padding: 1px 5px; border-radius: 4px;
}
.acct-stock__chev { margin-left: auto; font-size: 15px; color: rgba(255, 255, 255, .5); }
.acct-hero__btns { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 11px; }
.acct-hero__btns .btn { flex: 1; height: 38px; font-size: 12.5px; }
.acct-btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }

/* section 本身已有 18px 内边距，卡片不再叠加左右外边距（避免「我的」页卡片过窄） */
.section > .menu-list { margin-left: 0; margin-right: 0; }

/* 入库：搜索框 + 下拉建议（合并原搜索条与品牌筛选） */
.inv-search-wrap { position: relative; margin-bottom: 10px; }
.inv-search {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px;
  border-radius: 10px; background: #f7f9fc; box-shadow: inset 0 0 0 1px #e7ebf2;
}
.inv-search > svg { color: #9aa4b3; flex: none; }
.inv-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  font-family: inherit; font-size: 12.5px; color: var(--ink); outline: none;
}
.inv-search input::placeholder { color: #a8b0bd; }
.inv-search__clear {
  width: 20px; height: 20px; flex: none; border: 0; border-radius: 50%;
  background: #e9edf4; color: #8b94a4; display: grid; place-items: center;
}
.inv-drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  background: #fff; border-radius: 12px; overflow-y: auto; max-height: 222px;
  box-shadow: 0 18px 44px rgba(22, 32, 52, .2), 0 0 0 1px rgba(22, 32, 52, .06);
}
.inv-drop[hidden] { display: none; }
.inv-drop .inv-more { padding: 14px 12px; margin: 0; }
.inv-drop .inv-cat__row { padding: 8px 11px; }
.inv-hint { margin: 2px 0 8px; font-size: 10px; line-height: 1.6; color: #8b94a4; }
/* 下拉展开时让弹层允许溢出，避免被 .sheet 的滚动容器裁切 */
.sheet:has(.inv-drop:not([hidden])) { overflow: visible; }

/* 入库：已选 / 明细里的小烟盒图，只占一行高度 */
.inv-thumb {
  width: 30px; height: 38px; flex: none; border-radius: 5px;
  object-fit: cover; background: #f1f3f7; box-shadow: inset 0 0 0 1px rgba(22, 32, 52, .05);
}
.inv-draft__img {
  width: 22px; height: 28px; flex: none; border-radius: 4px;
  object-fit: cover; background: #f1f3f7;
}
.inv-chosen__top { gap: 8px; align-items: center; }
.inv-chosen__top b { line-height: 1.35; }

/* 入库：未开始新一行时隐藏「加入本次入库」 */
.btn[hidden] { display: none !important; }

/* 入库：取消 / 确认 同一行；已确认明细可点击编辑 */
.inv-item-acts { display: flex; gap: 8px; margin-top: 8px; }
.inv-item-acts .btn { flex: 1; height: 36px; }
.inv-draft { cursor: pointer; }
.inv-draft:active { background: #f3f6fa; }
.inv-draft-tip { margin: 8px 2px 0; font-size: 9.5px; color: #9aa3b1; line-height: 1.5; }

/* 上架商品：顶部汇总 + 待上架卡片 */
.listing-sum {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 12px 14px 2px; padding: 12px 0;
  background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(22, 32, 52, .05);
}
.listing-sum__item { text-align: center; position: relative; }
.listing-sum__item + .listing-sum__item::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: #f1f3f7;
}
.listing-sum__item b {
  display: block; font-size: 19px; font-weight: 700; color: var(--brand);
  font-family: "DIN Alternate", "Helvetica Neue", var(--font); line-height: 1.1;
}
.listing-sum__item span { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }

.listing-body { padding: 0 14px; }
.listing-group { margin-top: 14px; }
.listing-group__head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; }
.listing-group__head b { font-size: 13px; font-weight: 650; color: var(--ink); letter-spacing: .2px; }
.listing-group__head span { font-size: 10.5px; color: var(--muted); }

.listing-card {
  display: flex; gap: 11px; padding: 11px;
  background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(22, 32, 52, .05);
  margin-bottom: 9px;
}
.listing-card__img {
  width: 56px; height: 74px; flex: none; border-radius: 8px; object-fit: cover;
  background: #f1f3f7; box-shadow: inset 0 0 0 1px rgba(22, 32, 52, .05);
}
.listing-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.listing-card__top { display: flex; align-items: center; gap: 5px; }
.listing-card__name {
  flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-card__top .tag { flex: none; }
.listing-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 9.5px; color: var(--muted); }
.listing-card__time { flex: none; }
.listing-card__stats { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; margin-top: 5px; font-size: 10.5px; color: #6b7688; }
.listing-card__price { color: #a37a2c; font-weight: 650; }
.listing-card__stats .is-ok { color: var(--ok); }
.listing-card__stats .is-warn { color: var(--warn); }
.listing-card__acts { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 9px; }
.listing-card__acts .btn { height: 30px; padding: 0 11px; border-radius: 8px; font-size: 11.5px; }
.listing-card__acts .grow { flex: 1; }

.listing-card__tags { display: flex; align-items: center; gap: 5px; flex: none; }
.listing-card__stats .listing-card__time { margin-left: auto; flex: none; font-size: 9.5px; color: var(--muted); }

/* 上架：最近进价提示 */
.listing-cost-hint { margin: -4px 2px 10px; font-size: 10px; color: #8b94a4; }
.listing-cost-hint b { color: #a37a2c; font-weight: 600; }
