:root {
  --brand: #5e1a26;
  --brand-mid: #7c2434;
  --bg: #f8f2f2;
  --card: #fff;
  --text: #2b1a1c;
  --muted: #9a8486;
  --line: #f0e4e5;
  --up: #d13b2e;
  --down: #1f8f5e;
  --shadow: 0 4px 16px rgba(74, 16, 24, 0.08);
}

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

/* hidden 属性必须生效，否则广告层/筛选条会一直显示 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: #e9edf4;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; }
code { font-family: ui-monospace, Consolas, monospace; }

.app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  background: var(--bg);
}

.view { display: none; }
.view.is-active { display: block; }

/* ==================== 顶部 ==================== */
.hd {
  padding: calc(10px + env(safe-area-inset-top)) 14px 14px;
  color: #fff;
  background: linear-gradient(180deg, #5e1a26 0%, #6d1e2e 56%, #86293a 100%);
  border-radius: 0;
}

.hd--slim { padding-bottom: 18px; }

.hd__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hd__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.4px;
}

.hd__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8a2ac;
  box-shadow: 0 0 0 3px rgba(111, 179, 255, 0.22);
}

.hd__live {
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  color: #ffd9d2;
  background: rgba(229, 73, 58, 0.85);
}

.hd__time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
}

.hd__note {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- 价格牌（2 排 × 4 个） ---- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.tile {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: baseline;
  column-gap: 4px;
  min-height: 60px;
  padding: 7px 8px 8px;
  border-radius: 11px;
  overflow: hidden;
  text-align: left;
  color: #fff;
  transition: 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 3px 10px rgba(3, 18, 40, 0.18);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
}

.tile.is-active {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.95),
    0 8px 18px rgba(3, 18, 40, 0.28);
}

.tile--silver { background: linear-gradient(155deg, #ffffff, #c6cfda); }
.tile--gold { background: linear-gradient(155deg, #e8b95f, #a87a1e); }
.tile--platinum { background: linear-gradient(155deg, #cbb9bd, #8d6f76); }
.tile--palladium { background: linear-gradient(155deg, #c2a8b0, #86626c); }

/* 第二排统一酒红灰 */
.tile--rhodium { background: linear-gradient(155deg, #b98d94, #6f3f49); }
.tile--tin { background: linear-gradient(155deg, #b98d94, #6f3f49); }
.tile--molybdenum { background: linear-gradient(155deg, #b98d94, #6f3f49); }
.tile--nickel { background: linear-gradient(155deg, #b98d94, #6f3f49); }

/* 更多行情用的（不在首页，保留备用） */
.tile--copper { background: linear-gradient(155deg, #b98d94, #6f3f49); }
.tile--brass { background: linear-gradient(155deg, #b98d94, #6f3f49); }
.tile--enamel { background: linear-gradient(155deg, #b98d94, #6f3f49); }
.tile--iron { background: linear-gradient(155deg, #b98d94, #6f3f49); }
.tile--aluminum { background: linear-gradient(155deg, #b98d94, #6f3f49); }
.tile--stainless { background: linear-gradient(155deg, #b98d94, #6f3f49); }
.tile--zinc { background: linear-gradient(155deg, #b98d94, #6f3f49); }
.tile--lead { background: linear-gradient(155deg, #b98d94, #6f3f49); }
.tile--tungsten { background: linear-gradient(155deg, #b98d94, #6f3f49); }
.tile--titanium { background: linear-gradient(155deg, #b98d94, #6f3f49); }

.tile__name {
  grid-column: 1;
  grid-row: 1;
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.tile__label {
  grid-column: 1;
  grid-row: 2;
  font-size: 8px;
  opacity: 0.82;
  white-space: nowrap;
}

.tile__price {
  grid-column: 2;
  grid-row: 1;
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
  text-align: right;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.tile__chg {
  grid-column: 2;
  grid-row: 2;
  font-size: 8px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  opacity: 0.95;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

/* 白银是主推品类：银白金属底 + 深色字，在酒红底上最亮眼 */
.tile--silver .tile__name,
.tile--silver .tile__price {
  color: #1f2733;
  text-shadow: none;
}

.tile--silver .tile__label { color: #5c6673; }
.tile--silver .tile__chg.is-up { color: #c0392b; }
.tile--silver .tile__chg.is-down { color: #1f8f5e; }

.tile__chg.is-up { color: #ffcdbb; }
.tile__chg.is-down { color: #b3f0d8; }

/* ==================== 主体 ==================== */
.body { padding: 12px 14px 8px; }

/* ---- 走势 ---- */
.trend {
  padding: 12px 14px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.trend__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.trend__title { font-size: 12px; color: #5d6f88; }
.trend__title b { color: var(--text); font-size: 13px; }

.trend__tag {
  padding: 0 5px;
  border-radius: 4px;
  font-size: 9px;
  font-style: normal;
  color: #9a7b2e;
  background: #fdf3e0;
}

.trend__hl { font-size: 10px; color: var(--muted); }
.trend__hl b { font-variant-numeric: tabular-nums; color: #33465f; }

.trend__chart { margin: 6px -2px 0; height: 96px; }
.trend__chart svg { display: block; width: 100%; height: 100%; }

.trend__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 9px;
  color: #b3bfd0;
  font-variant-numeric: tabular-nums;
}

/* ---- 公告 ---- */
.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}

.notice__ico { font-size: 14px; }

.notice__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  color: #33465f;
}

.notice__more {
  flex: 0 0 auto;
  font-size: 11px;
  color: #c99aa2;
}

/* ---- 分类 ---- */
.cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.cat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 50px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #4a5f7d;
  background: #fff;
  border: 1px solid #e6ecf5;
  transition: 0.2s;
}

.cat.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0d3568, #86293a);
  box-shadow: 0 8px 18px rgba(9, 47, 97, 0.22);
}

.cat__ico { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }

/* ---- 搜索 ---- */
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 12px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search__ico { font-size: 13px; opacity: 0.45; }

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
}

.search input::placeholder { color: #b3bfd0; }

.search__clear {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #c6d0de;
}

.search__btn {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
}

.search__btn:active { opacity: 0.86; }

/* 搜索建议 / 历史下拉 */
.search-wrap { position: relative; }

.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  max-height: 56vh;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 40, 78, 0.16);
}

.suggest__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 8px;
  font-size: 10px;
  color: #a9b6c7;
}

.suggest__hd button {
  font-size: 10px;
  color: #c99aa2;
}

.suggest__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 8px;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  color: #33465f;
}

.suggest__item:active { background: #f2f6fc; }

.suggest__ico { font-size: 12px; opacity: 0.6; }

.suggest__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.suggest__text em {
  font-style: normal;
  color: #a4303f;
  font-weight: 700;
}

.suggest__sub {
  flex: 0 0 auto;
  font-size: 10px;
  color: #b3bfd0;
}
.suggest__empty {
  padding: 16px 8px;
  text-align: center;
  font-size: 11px;
  color: #a9b6c7;
}

/* ---- 区块 ---- */
.section { margin-top: 14px; }

.section__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
}

.section__hd b { font-size: 13px; font-weight: 650; color: #33465f; }
.section__hint { font-size: 10px; color: #b3bfd0; }

/* ---- 品牌墙 ---- */
.brands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 64px;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef2f8;
  box-shadow: 0 2px 8px rgba(16, 40, 78, 0.04);
  transition: 0.16s;
  overflow: hidden;
}

.brand--logo { padding: 0; }

.brand__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 产品页标题：小 logo 缩略图 + 系列名 */
.bhd__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.bhd__logo {
  display: block;
  height: 22px;
  width: auto;
  max-width: 62px;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
  padding: 2px 4px;
}

.brand.is-on {
  border-color: #8fb3dd;
  box-shadow: 0 0 0 2px rgba(47, 111, 208, 0.28), 0 6px 14px rgba(9, 47, 97, 0.14);
}

.brand__en {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #1e3553;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.brand__cn { font-size: 10px; color: #8798ad; }

.more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 8px;
  padding: 8px 0;
  font-size: 11px;
  color: #c99aa2;
}

.more i { font-style: normal; transition: 0.2s; }
.more.is-open i { transform: rotate(180deg); }

/* ---- 型号卡 ---- */
.list { display: flex; flex-direction: column; gap: 8px; }

.card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.card:active { background: #fafbfd; }

.card__img,
.card__ph {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: #eef2f8;
  object-fit: cover;
}

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

.card__body { flex: 1; min-width: 0; }

.card__model { font-size: 14px; font-weight: 650; letter-spacing: 0.2px; }

.card__sub {
  margin-top: 1px;
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card__tags { margin-top: 5px; display: flex; gap: 5px; flex-wrap: wrap; }

.tag {
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 9px;
  color: #4a5f7d;
  background: #f0f4fa;
}

.tag--silver { color: #8a5a00; background: #fdf3e0; }

.card__price { flex: 0 0 auto; text-align: right; }
.card__price b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.card__price small { font-size: 10px; color: var(--muted); }

.empty {
  padding: 26px 0;
  text-align: center;
  font-size: 12px;
  color: #a9b6c7;
}

/* ==================== 我的 ==================== */
.panel {
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
  font-size: 13px;
}

.panel__row + .panel__row { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

.panel__col { flex: 1; }
.panel__k { font-size: 13px; font-weight: 600; }
.panel__val { font-size: 13px; color: var(--brand); font-variant-numeric: tabular-nums; }
.panel__code { font-size: 11px; color: var(--muted); }

.panel__hint { margin-top: 2px; font-size: 10px; color: #a9b6c7; }

/* 协议 / 客服弹层 */
.doc__title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.doc__body {
  max-height: 52vh;
  overflow: auto;
  padding: 12px;
  border-radius: 12px;
  background: #f6f8fb;
  font-size: 12.5px;
  line-height: 1.75;
  color: #46505f;
  white-space: pre-wrap;
  word-break: break-word;
}
.doc__hint { margin-top: 8px; font-size: 11px; color: #a0aab8; text-align: center; }
.kefu__body { text-align: center; }
.kefu__wx { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.kefu__qr { width: 200px; height: 200px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; }

.bcard__btn--quote {
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  background: #fff;
  color: #8a5a12;
  border: 1px solid #efd9b5;
  white-space: nowrap;
}
.bcard__btn--quote:active { background: #f8e6cc; }

.quote__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.quote__title { font-size: 16px; font-weight: 700; color: var(--ink); }
.quote__date { font-size: 11px; color: #a0aab8; }
.quote__body { max-height: 52vh; overflow: auto; border-radius: 12px; background: #f7f8fb; padding: 12px; }
.quote__tip { margin-top: 10px; font-size: 11px; line-height: 1.6; color: #a0aab8; text-align: center; }
.quote__ops { display: grid; gap: 8px; margin-top: 12px; }

/* 报价单内容：产品头 + 三个重量 + 三项价值 + 整台回收价 */
.qd__hd { display: flex; align-items: center; gap: 10px; }
.qd__img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #fff; }
.qd__meta { flex: 1; min-width: 0; }
.qd__name { font-size: 15px; font-weight: 700; color: #16233a; line-height: 1.3; word-break: break-all; }
.qd__sub { margin-top: 2px; font-size: 11.5px; color: #8798ad; }
.qd__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding: 10px 6px;
  border-radius: 10px;
  background: #fff;
}
.qd__cell { text-align: center; }
.qd__cell span { display: block; font-size: 11px; color: #9aa1ab; line-height: 1.25; }
.qd__cell b { font-size: 17px; font-weight: 700; color: #16233a; font-variant-numeric: tabular-nums; }
.qd__cell i { font-size: 10px; font-style: normal; color: #8798ad; margin-left: 1px; }
.qd__rows { margin-top: 8px; padding: 4px 12px; border-radius: 10px; background: #fff; }
.qd__row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed #eef1f6; font-size: 12.5px; color: #6b7787; }
.qd__row:last-child { border-bottom: 0; }
.qd__row b { font-size: 14px; font-weight: 700; color: #16233a; font-variant-numeric: tabular-nums; }
.qd__total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #fdeeeb;
  font-size: 13px; color: #8a6a63;
}
.qd__total b { font-size: 24px; font-weight: 800; color: #b23b45; letter-spacing: -0.5px; }
.qd__note { margin-top: 8px; font-size: 10.5px; line-height: 1.6; color: #a0aab8; }

.qrow { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px dashed #e6eaf1; }
.qrow:last-child { border-bottom: 0; }
.qrow__name { flex: 1; font-size: 12.5px; font-weight: 600; color: #16233a; word-break: break-all; }
.qrow__w { font-size: 11px; color: #8798ad; white-space: nowrap; }
.qrow__p { font-size: 13px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }

.range {
  width: 100%;
  margin: 10px 0 2px;
  height: 24px;
  -webkit-appearance: none;
  background: transparent;
}

.range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #cfe0f7, #9dc0ea);
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand-mid);
  box-shadow: 0 2px 6px rgba(9, 47, 97, 0.25);
}

.switch {
  flex: 0 0 auto;
  width: 44px;
  height: 25px;
  -webkit-appearance: none;
  border-radius: 999px;
  background: #dbe4f0;
  position: relative;
  transition: 0.2s;
  cursor: pointer;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: 0.2s;
}

.switch:checked { background: var(--brand-mid); }
.switch:checked::after { transform: translateX(19px); }

.formula {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.8;
  color: #7c8ca3;
  background: #eef2f8;
}

.formula__note { color: #a9b6c7; }

/* ==================== 底部 tab ==================== */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  max-width: 480px;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 56px;
  font-size: 10px;
  color: #98a9bf;
}

.tabbar__item.is-active { color: var(--brand); font-weight: 600; }
.tabbar__ico { font-size: 17px; line-height: 1; }

/* ==================== 详情抽屉 ==================== */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet__mask { position: absolute; inset: 0; background: rgba(11, 23, 43, 0.42); animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }

.sheet__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: #fff;
  transform: translateX(-50%);
  animation: slide 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes slide { from { transform: translate(-50%, 100%); } }

.sheet__handle {
  width: 36px;
  height: 4px;
  margin: 2px auto 12px;
  border-radius: 2px;
  background: #e2e8f2;
}

.detail__head { display: flex; align-items: center; gap: 12px; }
.detail__img, .detail__ph {
  width: 60px; height: 60px; border-radius: 12px; background: #eef2f8;
}
.detail__ph { overflow: hidden; }
.detail__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail__model { font-size: 17px; font-weight: 700; }
.detail__sub { margin-top: 2px; font-size: 11px; color: var(--muted); }
.detail__info { min-width: 0; }
.detail__tip { margin: 10px 2px 0; font-size: 11px; line-height: 1.6; color: var(--muted); }

.rows { margin-top: 14px; border-top: 1px solid var(--line); }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}

.row__k { color: #5d6f88; }
.row__v { font-weight: 600; font-variant-numeric: tabular-nums; }

.row--total { border-bottom: 0; padding-top: 14px; }
.row--total .row__k { font-size: 13px; font-weight: 650; color: var(--text); }
.row--total .row__v { font-size: 22px; color: var(--brand); }

.banner {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.6;
  color: #7a5b12;
  background: #fff8e6;
}

.sheet__actions { display: flex; gap: 10px; margin-top: 16px; }

.btn {
  flex: 1;
  padding: 11px 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.btn--primary { color: #fff; background: var(--brand); }
.btn--ghost { color: #5d6f88; background: #eef2f8; }

/* ==================== toast ==================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 60;
  transform: translateX(-50%);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: rgba(15, 28, 48, 0.88);
  animation: fade 0.2s;
  white-space: nowrap;
}

.toast[hidden] { display: none; }

/* ==================== 品牌系列页 ==================== */
.bhd {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: linear-gradient(180deg, #5e1a26 0%, #6d1e2e 60%, #86293a 100%);
}

.bhd__back {
  width: 28px;
  height: 28px;
  margin-right: 6px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.bhd__mid {
  flex: 1;
  margin-right: 34px;
  text-align: center;
}

.bhd__title {
  font-size: 15px;
  font-weight: 650;
  color: #fff;
}

.bhd__sub {
  margin-top: 1px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.66);
}

.blist { margin-top: 12px; }

/* 型号卡片 */
.bcard {
  margin-bottom: 12px;
  padding: 12px 14px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.bcard__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bcard__shot,
.bcard__ph {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #eef2f8;
  object-fit: cover;
}

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

.bcard__title { flex: 1; min-width: 0; }
.bcard__brand { font-size: 15px; font-weight: 650; color: #16233a; }
.bcard__model { margin-top: 1px; font-size: 13px; color: #5d6f88; }
/* 产品名一排大字（品牌 + 型号合成一个名称） */
.bcard__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #16233a;
  word-break: break-word;
}

/* 搜索结果里同时有接触器/断路器时，名称后面的分类标签 */
.bcard__cat {
  display: inline-block;
  margin: 0;
  padding: 1px 7px;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

/* 卡片右侧：分类小字在上，操作按钮在下 */
.bcard__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}
.bcard__cat.is-con { background: #eef3fb; color: #3b5c8a; }
.bcard__cat.is-brk { background: #fdeee6; color: #b1560f; }

.bcard__btn {
  flex: 0 0 auto;
  padding: 5px 14px;
  border-radius: 7px;
  border: 1px solid #b9cdea;
  font-size: 12px;
  color: var(--brand);
  background: #fff;
}

/* 会员看到的「隐藏整台价值 / 显示整台价值」按钮 */
.bcard__btn--hide {
  padding: 5px 10px;
  font-size: 11px;
  color: #7a5a12;
  border-color: #e6d3a6;
  background: #fffaf0;
}

.bcard__btn--hide:active { background: #fdf1d9; }

/* 三格重量 */
/* 两列明细 */
/* 红底总结 */
.bcard__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  color: #c0563f;
  background: #fdeeeb;
}

.bcard__total b {
  font-size: 14px;
  font-weight: 700;
  color: #d2452c;
  font-variant-numeric: tabular-nums;
}

/* 整台价值 + 下面的算式说明（竖排，贴着整台价值） */
.bcard__sum {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.bcard__note {
  font-size: 11px;
  line-height: 1.3;
  color: #9aa1ab;
  font-weight: 400;
}

/* 整台价值那一列下面的「生成报价单」（左侧竖排第三行，与算式说明左对齐） */


/* ==================== 其他品类 ==================== */
.ocats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ocard {
  position: relative;
  min-height: 64px;
  padding: 6px 6px 12px;
  border-radius: 14px;
  text-align: left;
  overflow: hidden;
  background: linear-gradient(150deg, #fdf1f2 0%, #f7e3e6 58%, #efd0d5 100%);
  box-shadow: 0 4px 12px rgba(16, 40, 78, 0.06);
}

.ocard__img {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.ocard__title {
  display: block;
  padding-right: 24px;
  font-size: 10px;
  font-weight: 650;
  color: #16233a;
  line-height: 1.3;
}

.ocard__desc {
  display: block;
  margin-top: 2px;
  font-size: 7px;
  line-height: 1.4;
  color: #7c8ca3;
}

.ocard__arrow {
  position: absolute;
  right: 6px;
  bottom: 2px;
  font-size: 10px;
  font-style: normal;
  color: #a4303f;
}


/* ==================== 回收商家（广告位，竖排 3 行） ==================== */
.mlist { display: flex; flex-direction: column; gap: 8px; }

.mrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: left;
  background: #fff;
  border: 1px solid #eaf0f8;
  box-shadow: 0 4px 14px rgba(16, 40, 78, 0.05);
}

.mrow__logo {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, #4a86d8, #1f4f8f);
}

.mrow__body { flex: 1; min-width: 0; }

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

.mrow__name {
  font-size: 13px;
  font-weight: 650;
  color: #16233a;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mrow__tag {
  flex: 0 0 auto;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 8px;
  line-height: 15px;
  color: #b4741c;
  background: #fdf1dc;
}

.mrow__slogan {
  margin-top: 2px;
  font-size: 10px;
  color: #6b7d95;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mrow__meta {
  margin-top: 2px;
  font-size: 9px;
  color: #a9b6c7;
}

.mrow__go {
  flex: 0 0 auto;
  font-size: 10px;
  color: #c99aa2;
}

/* 商家主页里的大卡（保留） */
/* 商家详情抽屉 */
.msheet {
  display: flex;
  align-items: center;
  gap: 10px;
}

.msheet__logo {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, #4a86d8, #1f4f8f);
}

.msheet__name { font-size: 16px; font-weight: 700; }
.msheet__area { margin-top: 2px; font-size: 11px; color: #8798ad; }

.msheet__slogan {
  margin-top: 10px;
  font-size: 12px;
  color: #5d6f88;
}

.adnote {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.6;
  color: #b3bfd0;
  text-align: center;
}


/* ==================== 商家主页 ==================== */
.mhead {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mhead__logo {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, #4a86d8, #1f4f8f);
}

.mhead__text { flex: 1; min-width: 0; }
.mhead__name { font-size: 16px; font-weight: 700; color: #16233a; }
.mhead__area { margin-top: 2px; font-size: 11px; color: #8798ad; }

.mhead__ad {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 8px;
  line-height: 14px;
  color: #9aa7b8;
  background: #f2f5fa;
}

.mhead__slogan {
  margin-top: 10px;
  font-size: 12px;
  color: #5d6f88;
}

.mhead__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mhead__actions .btn {
  flex: 1;
  padding: 10px 0;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  display: block;
}

.plist { display: flex; flex-direction: column; gap: 10px; }

.post {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.post__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.post__title {
  font-size: 13px;
  font-weight: 650;
  color: #16233a;
}

.post__price {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: #d2452c;
  font-variant-numeric: tabular-nums;
}

.post__price small {
  margin-left: 2px;
  font-size: 9px;
  font-weight: 400;
  color: #a9b6c7;
}

.post__content {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.6;
  color: #6b7d95;
}

.post__date {
  margin-top: 8px;
  font-size: 9px;
  color: #b3bfd0;
}


/* 更多商家 / 地区筛选 */
.more-link {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 0;
  border-radius: 12px;
  font-size: 11px;
  color: #8a5560;
  background: #fbeeee;
}

.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 12px 0 10px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  color: #5d6f88;
  background: #fff;
  border: 1px solid #e8edf5;
}

.chip.is-on {
  color: #fff;
  background: var(--brand);
  border-color: transparent;
}


.chips--city { margin-top: -2px; }
.chips--city .chip--sm { font-size: 10px; padding: 4px 10px; }


/* ==================== 数据打码 / 解锁 ==================== */
.masked {
  color: #9aa7b8 !important;
  letter-spacing: 1px;
  font-weight: 600;
}

.lock {
  text-align: center;
  padding: 8px 0 14px;
}

.lock__ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(150deg, #fdf1f2, #dbe7f8);
}

.lock__title { font-size: 16px; font-weight: 700; color: #16233a; }
.lock__sub { margin-top: 4px; font-size: 11px; color: #8798ad; }

.lock__opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.lock__opt {
  display: block;
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  text-align: left;
  line-height: 1.4;
}

.lock__opt b { display: block; font-size: 14px; }
.lock__opt span { display: block; margin-top: 3px; font-size: 11px; opacity: 0.75; }

.lock__opt--ad {
  color: #fff;
  background: linear-gradient(140deg, #a4303f, #0a2f61);
}

.lock__opt--vip {
  color: #8a6014;
  background: linear-gradient(140deg, #fdf2d8, #f7e2b4);
}

.lock__note {
  margin-top: 14px;
  font-size: 10px;
  line-height: 1.6;
  color: #b3bfd0;
  text-align: center;
}

.vip__plans {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.vip__plan {
  flex: 1;
  padding: 12px 0;
  border-radius: 12px;
  text-align: center;
  background: #f5f8fc;
  border: 1.5px solid transparent;
}

.vip__plan.is-on {
  background: #fdf6e6;
  border-color: #e8c37a;
}

.vip__plan b { font-size: 20px; color: #8a6014; }
.vip__plan span { font-size: 11px; color: #a8905f; }

/* 套餐选择（会员弹层） */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px 10px;
  border-radius: 14px;
  background: #f5f8fc;
  border: 1.5px solid #e4ebf5;
  text-align: left;
}
.plan.is-on {
  background: #fdf6e6;
  border-color: #d9a441;
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.16);
}
.plan__badge {
  position: absolute;
  top: -8px;
  right: 8px;
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-style: normal;
  color: #fff;
  background: linear-gradient(135deg, #c0342b, #8a1f18);
}
.plan__name { font-size: 12px; color: #5d6a7c; font-weight: 600; }
.plan.is-on .plan__name { color: #8a6014; }
.plan__price { display: flex; align-items: baseline; gap: 3px; }
.plan__price b { font-size: 22px; color: #5e1a26; font-weight: 700; }
.plan.is-on .plan__price b { color: #8a6014; }
.plan__price em { font-size: 11px; font-style: normal; color: #97a3b4; }
.plan__per { font-size: 10.5px; color: #97a3b4; }
.plan__gift {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #9c3a1f;
  background: rgba(214, 106, 63, 0.14);
}

.buy { margin-top: 14px; }
.buy__sum { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; }
.buy__sum span { font-size: 12px; color: #5d6a7c; }
.buy__sum b { font-size: 20px; color: #c0342b; }
.buy__tip { font-size: 11px; color: #1f9d63; padding: 0 2px 8px; }
.buy__note { margin-top: 8px; font-size: 10.5px; color: #9aa5b5; text-align: center; }

.vip__feats {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f9fc;
  font-size: 11px;
  line-height: 2;
  color: #5d6f88;
}

/* ==================== 激励广告 ==================== */
/* ==================== 产品大图预览 ==================== */
.imgview {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 12, 24, 0.92);
  cursor: zoom-out;
}

.imgview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.admask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 18, 36, 0.86);
  backdrop-filter: blur(2px);
}

.adbox {
  width: 100%;
  max-width: 360px;
  padding: 14px;
  border-radius: 18px;
  background: #121a27;
  color: #fff;
}

.adbox__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.adbox__tag {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9px;
  color: #cfd8e6;
  background: rgba(255, 255, 255, 0.12);
}

.adbox__tip { font-size: 11px; color: rgba(255, 255, 255, 0.72); }
.adbox__tip b { color: #ffd08a; font-size: 13px; }

.adbox__stage {
  position: relative;
  height: 190px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 10px, transparent 10px 20px),
    #1c2636;
}

.adbox__ph { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.5); }
.adbox__hint { margin-top: 6px; font-size: 10px; color: rgba(255,255,255,0.32); }

.adbox__bar {
  height: 4px;
  margin: 12px 0 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.adbox__bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4a86d8, #7fc0ff);
  transition: width 1s linear;
}

.adbox__btn {
  width: 100%;
  padding: 11px 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #24344d;
}

.adbox__btn:disabled {
  color: rgba(255, 255, 255, 0.45);
  background: #1b2534;
}


.tiles__empty {
  grid-column: 1 / -1;
  padding: 16px 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

/* 整台价值 / 回收价 同一行左右对齐，报价单按钮单独一行放在下面 */
.bcard__total {
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}

.bcard__totalrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.bcard__total--single .bcard__totalrow {
  justify-content: flex-end;
}

.bcard__total .bcard__btn--quote {
  align-self: flex-start;
}

/* 卡密激活 */
.vip__redeem {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.vip__input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  font-size: 13px;
  background: #f7f9fd;
  outline: none;
  text-transform: uppercase;
}

.vip__input:focus { border-color: #b9cdea; background: #fff; }

.vip__redeem .btn {
  flex: 0 0 88px;
  padding: 10px 0;
  font-size: 13px;
}




/* ==================== 更多行情 ==================== */
.hd__sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.hd__sub .hd__note {
  margin-top: 0;
}

.hd__more {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #ffd9d2;
  background: rgba(229, 73, 58, 0.28);
  border: 1px solid rgba(255, 217, 210, 0.35);
  white-space: nowrap;
}

.more__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mtile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px 20px;
  border-radius: 12px;
  text-align: left;
  background: #fff;
  border: 1.5px solid transparent;
  box-shadow: 0 3px 10px rgba(16, 40, 78, 0.06);
}

.mtile.is-on {
  border-color: #a4303f;
  background: #fdf3f4;
}

.mtile__name {
  font-size: 11px;
  font-weight: 650;
  color: #16233a;
}

.mtile__price {
  font-size: 15px;
  font-weight: 700;
  color: #16233a;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

.mtile__unit {
  font-size: 8px;
  color: #a9b6c7;
}

.mtile__chg {
  position: absolute;
  right: 8px;
  bottom: 7px;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.mtile__chg.is-up { color: #e5493a; }
.mtile__chg.is-down { color: #1f9d63; }



/* ==================== 品牌卡片：重量 / 价值 ==================== */
.bcard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 0 4px;
  margin-top: 12px;
  padding: 16px 4px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbf7f7, #f6eff0);
  text-align: center;
}

.bcard__cell {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}

.bcard__cell span {
  font-size: 10.5px;
  color: #a08a8c;
  letter-spacing: 0.2px;
  white-space: normal;
  line-height: 1.25;
  word-break: break-all;
}

.bcard__cell b {
  font-size: 19px;
  font-weight: 700;
  color: #2b1a1c;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.4px;
  line-height: 1;
}

.bcard__cell b i {
  margin-left: 2px;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  color: #a08a8c;
}

.bcard__rows {
  margin-top: 6px;
  padding: 0 2px;
}

.bcard__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 2px;
  border-bottom: 1px dashed #f2e6e7;
}

.bcard__row:last-child { border-bottom: 0; }

.bcard__row span {
  font-size: 13px;
  color: #7d6a6c;
}

.bcard__row b {
  font-size: 17px;
  font-weight: 700;
  color: #2b1a1c;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

/* 整台价值 / 回收价 更醒目 */
.bcard__total {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.bcard__total b {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

/* ==================== 会员卡 ==================== */
.vipcard {
  position: relative;
  margin-bottom: 14px;
  padding: 18px 16px 14px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #2c3d59 0%, #172535 100%);
  box-shadow: 0 10px 24px rgba(9, 20, 38, 0.22);
}

.vipcard.is-on {
  color: #4a3307;
  background: linear-gradient(135deg, #8a6014 0%, #c99433 45%, #f3d489 100%);
  box-shadow: 0 12px 28px rgba(138, 96, 20, 0.3);
}

.vipcard.is-on::after {
  content: '';
  position: absolute;
  top: -46px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.vipcard__hd {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vipcard__ico {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 44px;
  text-align: center;
  background: rgba(255, 255, 255, 0.18);
}

.vipcard__who { flex: 1; min-width: 0; }

.vipcard__title {
  font-size: 16px;
  font-weight: 700;
}

.vipcard__sub {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.vipcard.is-on .vipcard__sub { color: rgba(74, 51, 7, 0.75); }

.vipcard__tag {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #eef3fa;
  background: rgba(255, 255, 255, 0.18);
}

.vipcard.is-on .vipcard__tag {
  color: #6b4a0c;
  background: #ffe9b8;
}

.vipcard__days {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.5;
  color: #5a3f0a;
  background: rgba(255, 255, 255, 0.6);
}

.vipcard__days b {
  font-size: 16px;
  font-weight: 700;
}

.vipcard__ops {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.vipcard__ops .btn { flex: 0 0 auto; }

/* ---------- 我的页会员卡（新结构：顶部用户信息 + 下面购买框） ---------- */
.vipcard__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vipcard__av {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 46px;
  text-align: center;
  background: rgba(255, 255, 255, 0.18);
}

.vipcard.is-on .vipcard__av { background: rgba(255, 255, 255, 0.42); }

.vipcard__info { flex: 1; min-width: 0; }

.vipcard__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.vipcard__line {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.vipcard.is-on .vipcard__line { color: rgba(74, 51, 7, 0.78); }

.vipcard__days {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #5a3f0a;
  background: none;
}

.vipcard.is-on .vipcard__days { color: #4a3307; }

.vipcard__days b { font-size: 15px; }

.vipcard__buy {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.vipcard.is-on .vipcard__buy { background: rgba(255, 255, 255, 0.42); }

.vipcard__buyhd {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.vipcard__buyhd b { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.vipcard__buyhd span { font-size: 12px; opacity: 0.85; }
.vipcard__buyhd em {
  flex: 1 0 100%;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  opacity: 0.72;
}

.vipcard__buy .btn { margin-top: 10px; }

.btn--block { display: block; width: 100%; }

.vipcard__auth {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.vipcard__link {
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #eaf1fb;
  background: rgba(255, 255, 255, 0.16);
}

.vipcard.is-on .vipcard__link {
  color: #5a3f0a;
  background: rgba(255, 255, 255, 0.55);
}

.login__title { font-size: 16px; font-weight: 700; }
.login__tip {
  margin: 6px 0 14px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}
.login__err {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: #c0392b;
}
#sheetLogin .input { margin-bottom: 10px; }

/* ---------- 邀请码 ---------- */
.panel__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}
.invite__row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.invite__row .input { flex: 1; margin: 0; }

.invite__code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f4f6fa;
}
.invite__code b {
  flex: 1;
  font-size: 22px;
  letter-spacing: 4px;
  font-weight: 700;
  color: #5e1a26;
  font-variant-numeric: tabular-nums;
}
.invite__code .btn { margin: 0; height: 30px; padding: 0 12px; font-size: 12px; }

/* ==================== 废钨钼 ==================== */
.wlist { display: flex; flex-direction: column; gap: 10px; }
.wcard {
  padding: 12px 14px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 32, 56, .06);
}
.wcard__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.wcard__name { font-size: 15px; font-weight: 700; color: #16233a; }
.wcard__price { font-size: 17px; font-weight: 800; color: #c0392b; white-space: nowrap; }
.wcard__price.is-lock { color: #b6bdc9; letter-spacing: 3px; }
.wcard__unlock {
  border: 0;
  background: #fbf3e3;
  color: #8a6014;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.wcard__meta { margin-top: 5px; font-size: 11.5px; line-height: 1.5; color: #8b93a3; }
.wcard__meta .wcard__date { font-style: normal; color: #c0342b; font-weight: 600; }
.wcard__ft {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #eef1f6;
  font-size: 12px;
}
.wcard__avg { color: #5d6f88; }
.wcard__unit { margin-left: auto; color: #9aa3b2; }
.w-up { color: #c0392b; font-weight: 600; }
.w-down { color: #1e8e5a; font-weight: 600; }
.w-flat { color: #6b7280; }
.wempty { padding: 30px 12px; text-align: center; color: #8b93a3; font-size: 13px; }
.wtip { margin: 12px 4px 24px; font-size: 11px; line-height: 1.6; color: #8b93a3; }

/* ==================== 今日涨跌 ==================== */
.rank { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.rank__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rank__tag {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  font-size: 11px; font-style: normal; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.rank__tag.is-up { color: #c0392b; background: #fdeeeb; }
.rank__tag.is-down { color: #1e8e5a; background: #e9f7ef; }
.rank__chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 5px 10px; border-radius: 10px; font-size: 12px;
  background: #f6f8fc; color: #404b5c;
}
.rank__chip b { font-size: 12.5px; }
.rank__chip.is-up b { color: #c0392b; }
.rank__chip.is-down b { color: #1e8e5a; }
.rank__none { font-size: 12px; color: #9aa3b2; }

/* ==================== 回收计算器 ==================== */
.calc { margin-top: 8px; }
.calc__picks { display: flex; flex-direction: column; gap: 8px; }
.calc__pick { display: flex; align-items: center; gap: 10px; }
.calc__pick span { flex: 0 0 40px; font-size: 12.5px; color: #6b7787; }
.calc__pick select {
  flex: 1; min-width: 0; box-sizing: border-box;
  padding: 10px 12px; border: 1px solid #e8edf5; border-radius: 10px;
  font-size: 13px; background: #f7f9fd; color: #22303f; outline: none;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9aa3b2 50%), linear-gradient(135deg, #9aa3b2 50%, transparent 50%);
  background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.calc__pick select:focus { border-color: #cfd9e8; background-color: #fff; }
.calc__field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.calc__field #calcModel { flex: 1; min-width: 0; }
.calc__pickbtn {
  flex: 0 0 auto; padding: 0 14px; height: 38px;
  border: 1px solid #e2d3d6; border-radius: 10px;
  background: #fff; color: #8a3a45; font-size: 13px; font-weight: 600;
}
.calc__pickbtn:active { background: #fbf1f2; }

/* 选择型号弹层 */
.cpick__list { max-height: 56vh; overflow-y: auto; padding: 4px 0 8px; }
.cpick__row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 4px; border: 0; border-bottom: 1px solid #f0f3f8;
  background: transparent; font-size: 13.5px; color: #22303f; text-align: left;
}
.cpick__row:last-child { border-bottom: 0; }
.cpick__row i { color: #b9c2d0; font-style: normal; }
.cpick__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpick__brand { flex: 0 0 auto; font-size: 11px; color: #98a3b4; }
.cpick__row:active { background: #f7f9fd; }
.cpick__none { padding: 26px 0; text-align: center; color: #8b93a3; font-size: 13px; }
#calcModel, #calcQty {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; border: 1px solid #e8edf5; border-radius: 10px;
  font-size: 13px; background: #f7f9fd; outline: none; color: #22303f;
}
#calcModel:focus, #calcQty:focus { border-color: #cfd9e8; background: #fff; }
.calc__row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
#calcQty { flex: 0 0 92px; text-align: center; }
.calc__unit { font-size: 12px; color: #8b93a3; }
.calc__row .btn { flex: 1; padding: 10px 0; font-size: 13px; }
.calc__out {
  margin-top: 10px; padding: 12px; border-radius: 10px;
  background: #f6f8fc; font-size: 12.5px; color: #5d6f88; line-height: 1.6;
}
.calc__out.is-warn { background: #fdf3f1; color: #b3392c; }
.calc__link { color: var(--brand); font-weight: 600; text-decoration: underline; }
.calc__res { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.calc__res + .calc__res { margin-top: 6px; }
.calc__res-name { color: #404b5c; }
.calc__res-price { color: #22303f; font-weight: 600; }
.calc__res-price small { font-weight: 400; color: #8b93a3; font-size: 11px; }
.calc__res-total { color: #c0392b; font-size: 17px; font-weight: 700; }
.calc__note { margin-top: 8px; font-size: 11.5px; color: #94a0b3; }
.calc__grid { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.calc__cell { flex: 1 1 70px; min-width: 70px; background: #fff; border-radius: 8px; padding: 7px 8px; text-align: center; }
.calc__cell span { display: block; font-size: 11px; color: #93a0b2; line-height: 1.25; }
.calc__cell b { display: block; margin-top: 2px; font-size: 15px; color: #1f2b3a; }
.calc__cell i { font-style: normal; font-size: 10px; color: #98a3b4; margin-left: 1px; }
.calc__lines { margin-top: 8px; }
.calc__line { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed #e3e9f2; }
.calc__line:last-child { border-bottom: 0; }
.calc__line span { color: #66738a; }
.calc__line b { color: #22303f; font-weight: 600; }
.calc__res--sum { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e3e9f2; }
.calc__quote {
  margin-top: 10px; width: 100%; padding: 10px 0;
  border: 0; border-radius: 10px; background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 600;
}
.calc__quote:active { opacity: .85; }
.calc__hint { margin-bottom: 8px; }
.calc__cands { display: flex; flex-direction: column; }
.calc__cand {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 2px; border: 0; border-bottom: 1px solid #eceff5;
  background: transparent; font-size: 13px; color: #22303f; text-align: left;
}
.calc__cand:last-child { border-bottom: 0; }
.calc__cand i { color: #b9c2d0; font-style: normal; }
.calc__cand:active { background: #eef2f9; }

/* ============ 产品卡片 2.0：品牌彩色标签 + 重量小方块 + 图标 ============ */
.bcard__brand {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
  box-shadow: 0 3px 8px rgba(15, 45, 90, 0.18);
}

.bcard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  border-radius: 0;
  background: none;
  text-align: left;
}

.bcard__cell {
  position: relative;
  display: block;
  padding: 9px 10px 8px;
  border-radius: 13px;
  border: 1px solid #e6edf8;
  background: linear-gradient(160deg, #f8fbff, #eef3fb);
  box-shadow: 0 1px 2px rgba(20, 50, 90, 0.05);
}

.bcard__cell .bcard__ck {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  color: #77879f;
  letter-spacing: 0.2px;
  white-space: normal;
  word-break: break-word;
}

.bcard__cell .bcard__cv {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: #16233a;
  letter-spacing: -0.3px;
}

.bcard__cell .bcard__cv i {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 500;
  font-style: normal;
  color: #8a99ad;
}

.wico {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 24px;
  height: 24px;
  opacity: 0.92;
  pointer-events: none;
}

.wico svg { display: block; width: 100%; height: 100%; }

.bcard__sumline {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  line-height: 1.25;
  /* 图标让到左边留白里，让「整台价值」与下面的银值说明、按钮同一起点 */
  margin-left: -22px;
}

/* 让图标有位置可挪：粉色块左边多留出图标宽度 */
.bcard__total { padding-left: 22px; }

/* 说明文字与上面的图标、下面的按钮统一靠左对齐（留一个字的空） */
.bcard__sum > .bcard__note {
  padding-left: 0;
  margin-left: -17px;
  margin-top: 3px;
}

/* 「生成报价单」也靠左，但不要贴边 */
.bcard__total .bcard__btn--quote {
  margin-left: -17px;
}

/* 图片图标：白底融进小方块背景 */
.wico img.wimg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.bcard__sumico img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bcard__sumico {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.bcard__sumico svg { display: block; width: 100%; height: 100%; }

.bcard__recycle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
