/* 续奏 Reprise · 银白玻璃 H5。内容保持清晰，玻璃仅用于导航和固定操作层。 */

/* ---------------------------------- 令牌 ---------------------------------- */
:root {
  --bg: #F3F4F6;          /* 冷银白页面底色 */
  --bg-outer: #E8ECF0;    /* 桌面预览时手机壳外的底色 */
  --surface: #FCFCFD;
  --wash: #EEF1F5;        /* 图位 / 次级块 */
  --wash-2: #E7EBF0;
  --photo-stage: #EBEFF2;
  --tint: #EAF0F5;        /* 会员卡那种极淡的蓝灰 */
  --tint-2: #E0E8EF;

  --ink: #202124;
  --ink-2: #586473;
  --ink-3: #626B78;
  --ink-4: #8B96A3;

  --hair: #DBE1E7;
  --hair-2: #E8EDF1;

  --dark: #202124;
  --dark-2: #35414D;
  --on-dark: #FCFCFD;

  --warn: #A9432C;        /* 只用于待支付 / 异常提示 */
  --warn-soft: #FBF1ED;
  --ok: #3D6B57;
  --ok-soft: #EDF3EF;

  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --shadow-card: 0 1px 2px rgba(23, 22, 20, .02);
  --shadow-float: 0 1px 2px rgba(23, 22, 20, .03), 0 18px 34px -16px rgba(23, 22, 20, .18);

  /* 兼容旧引用 */
  --card: var(--surface);
  --brand: var(--ink);
  --brand-2: var(--ink);
  --brand-soft: #EDF1F5;
  --brand-ink: #FCFCFD;
  --accent: #42688A;
  --accent-soft: #E5EDF4;
  --line: var(--hair);
  --line-2: var(--hair-2);
  --gold: #6F602F;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-en: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg-outer);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
}

/* -------------------------------- 手机壳 -------------------------------- */
.phone {
  position: relative;
  width: min(430px, 100%);
  height: min(880px, calc(100vh - 48px));
  background: var(--bg);
  border-radius: 40px;
  box-shadow: 0 24px 60px -24px rgba(23, 22, 20, .30), 0 0 0 1px rgba(23, 22, 20, .05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 560px) {
  body { padding: 0; align-items: stretch; background: var(--bg); }
  .phone {
    width: 100%; height: 100vh; height: 100dvh;
    border-radius: 0; box-shadow: none;
  }
}

/* --------------------------------- 顶栏 --------------------------------- */
.appbar {
  flex: 0 0 auto;
  height: calc(52px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 18px 0;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg);
  position: relative; z-index: 30;
}
.appbar .bar-title {
  font-size: 15px; font-weight: 500; letter-spacing: .01em; color: var(--ink);
}
.appbar .spacer { flex: 1; }
.appbar .back {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(20, 20, 20, .05); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  font-size: 17px; line-height: 1; padding: 0 1px 2px 0;
  font-family: var(--font);
}
.appbar .back:active { background: rgba(20, 20, 20, .10); }
.appbar .reprise-wordmark, body.home .appbar .bar-title { display: none; }
body.home .appbar .reprise-wordmark { display: block; }

/* 滚动区 */
.view {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 14px 20px calc(108px + env(safe-area-inset-bottom, 0px));
  scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: #CCD5DE transparent;
}
.view::-webkit-scrollbar { width: 4px; height: 0; }
.view::-webkit-scrollbar-thumb { background: #CCD5DE; border-radius: 3px; }
body.home .view { padding-top: 0; }
.phone.has-actions .view, .phone.no-tabbar .view { padding-bottom: 24px; }

/* -------------------------------- 浮动玻璃导航 -------------------------------- */
.tabbar {
  position: absolute; left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 68px; padding: 5px; border-radius: 27px;
  background: rgba(244,247,250,.96);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid #D7DFE7;
  box-shadow: inset 0 1px 1px #fff, 0 8px 30px rgba(0,0,0,.11);
}
.tabbar button {
  min-width: 0; border: 1px solid transparent; border-radius: 22px;
  background: none; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 4px 0; color: var(--ink-2); font-size: 12px; font-weight: 600;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.tabbar button svg { width: 21px; height: 21px; stroke-width: 1.6; }
.tabbar button.on { color: #284A68; background: #E1EAF2; border-color: #D6E1EA; }
.tabbar button.on svg { stroke-width: 1.9; }
.tabbar button:active { transform: scale(.96); background: rgba(255,255,255,.85); }
.tabbar[hidden] { display: none; }

/* ================================= 首页封面 ================================= */
.cover {
  position: relative;
  margin: 0 -16px;
  height: 302px;
  background: var(--dark);
  overflow: hidden;
  display: flex; flex-direction: column;
  isolation: isolate;
}
/* 右上角暖光 + 底部压暗，替代真实照片的光线 */
.cover::before {
  content: ""; position: absolute; inset: -20% -30% 20% 20%;
  background:
    radial-gradient(60% 55% at 72% 22%, rgba(196, 158, 104, .42) 0%, rgba(196, 158, 104, 0) 62%),
    radial-gradient(50% 40% at 20% 0%, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 11, 10, .55) 0%, rgba(12, 11, 10, 0) 26%),
    linear-gradient(0deg, rgba(12, 11, 10, .78) 0%, rgba(12, 11, 10, .10) 46%, rgba(12, 11, 10, 0) 70%);
  z-index: 1;
}
.cover .cover-art {
  position: absolute; right: -78px; top: 46px;
  width: 296px; height: 296px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .15);
  z-index: 1;
}
.cover .cover-art::before {
  content: ""; position: absolute; inset: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .075);
}
.cover .cover-art::after {
  content: ""; position: absolute; inset: 86px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(214, 176, 122, .26) 0%, rgba(214, 176, 122, .02) 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.cover .cover-art svg { display: none; }
.cover .cover-word {
  position: relative; z-index: 2;
  margin: auto 0 0;
  padding: 0 24px;
}
.cover .cover-eyebrow {
  font-family: var(--font-en);
  font-size: 9px; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.cover .cover-en {
  font-family: var(--font-en);
  font-size: 31px; line-height: 1.16; font-weight: 300;
  letter-spacing: .02em; color: #fff;
  margin: 12px 0 0;
}
.cover .cover-cn {
  margin: 12px 0 0;
  font-size: 12px; font-weight: 400; letter-spacing: .18em;
  color: rgba(255, 255, 255, .66);
}
.cover .cover-foot {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 18px 24px 76px;
  font-family: var(--font-en);
  font-size: 8.5px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255, 255, 255, .46);
}

/* ------------------------- 浮起的信息卡（首页核心） ------------------------- */
.panel {
  position: relative; z-index: 5;
  margin: -60px 0 0;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.panel-top {
  padding: 20px 20px 18px;
  background: linear-gradient(178deg, #EDF2FA 0%, #F7F9FC 34%, #FCFCFD 78%);
}
.panel-eyebrow {
  font-family: var(--font-en);
  font-size: 8.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-3);
}
.panel-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 9px;
}
.panel-title h1 {
  margin: 0; font-size: 17px; font-weight: 500; letter-spacing: .01em; line-height: 1.3;
}
.panel-title h1 b { font-weight: 600; }
.panel-unit {
  font-size: 11px; font-weight: 400; color: var(--ink-3);
  margin-left: 2px; letter-spacing: .02em;
}
.panel-sub {
  margin-top: 8px;
  font-size: 11px; color: var(--ink-3); letter-spacing: .02em; line-height: 1.6;
}
.panel-sub .lk { color: var(--ink-2); border-bottom: 1px solid var(--ink-4); padding-bottom: 1px; }
.panel-round {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--tint-2); color: #3E5474;
  display: grid; place-items: center;
}
.panel-round svg { width: 17px; height: 17px; stroke-width: 1.6; }
.panel-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hair);
}
.panel-stats > div { padding: 16px 20px 18px; position: relative; }
.panel-stats > div + div::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--hair);
}
.panel-stats .k {
  font-family: var(--font-en);
  font-size: 23px; font-weight: 500; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1;
}
.panel-stats .k small { font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 2px; }
.panel-stats .v {
  margin-top: 6px;
  font-size: 10px; color: var(--ink-3); letter-spacing: .16em;
}

/* --------------------------- 活动栏（运营可改） --------------------------- */
.promo {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 11px 14px 11px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.promo::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #C0A079, #8C7452);
  opacity: .5;
}
.promo-tag {
  flex: 0 0 auto;
  font-size: 9px; letter-spacing: .12em;
  color: var(--ink-2); background: var(--wash);
  padding: 3px 7px; border-radius: 5px;
}
.promo-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.promo-title {
  font-size: 12px; color: var(--ink); letter-spacing: .01em; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.promo-sub {
  font-size: 9.5px; color: var(--ink-3); letter-spacing: .04em; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.promo-go {
  flex: 0 0 auto; display: flex; align-items: center; gap: 1px;
  font-size: 9.5px; color: var(--ink-3); letter-spacing: .06em;
}
.promo-go svg { width: 12px; height: 12px; stroke-width: 1.6; }

/* --------------------------------- 搜索条 --------------------------------- */
.searchbar {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  margin-top: 14px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  color: var(--ink-3); font-size: 12px; letter-spacing: .02em;
  cursor: pointer;
}
.searchbar svg { width: 15px; height: 15px; stroke: var(--ink-3); stroke-width: 1.5; flex: 0 0 auto; }

/* ------------------------- 四宫格（2×2 画册式磁贴） ------------------------- */
.grid-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.grid-nav .gn {
  display: block; text-align: left;
  background: var(--surface);
  border: 0; border-radius: 18px;
  padding: 0; overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer; font: inherit; color: var(--ink);
}
.grid-nav .gn .gn-pic {
  height: 88px;
  background: radial-gradient(120% 100% at 50% 0%, #FCFAF7 0%, #EFEAE2 100%);
  display: grid; place-items: center;
  color: #8F8A81;
}
.grid-nav .gn .gn-pic svg { width: 34px; height: 34px; stroke-width: 1.1; }
.grid-nav .gn:nth-child(2) .gn-pic { background: radial-gradient(120% 100% at 50% 0%, #FAFAF8 0%, #ECEEEC 100%); }
.grid-nav .gn:nth-child(3) .gn-pic { background: radial-gradient(120% 100% at 50% 0%, #FBF9F6 0%, #EDE9E1 100%); }
.grid-nav .gn:nth-child(4) .gn-pic { background: radial-gradient(120% 100% at 50% 0%, #F9FAFB 0%, #E9EBEF 100%); }
.grid-nav .gn .gn-body { padding: 11px 14px 13px; }
.grid-nav .gn .gn-cn { font-size: 12.5px; font-weight: 500; letter-spacing: .02em; line-height: 1.3; }
.grid-nav .gn .gn-en {
  margin-top: 4px;
  font-family: var(--font-en);
  font-size: 7.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
}
.grid-nav .gn:active .gn-pic { background: var(--wash-2); }

/* --------------------------- 深色推广条（回收报价） --------------------------- */
.rec-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; gap: 12px;
  min-height: 132px;
  margin-top: 14px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(150deg, #232120 0%, #202124 62%, #1F1D1A 100%);
  color: var(--on-dark);
  cursor: pointer;
  isolation: isolate;
}
.rec-banner::before {
  content: ""; position: absolute; right: -30px; top: -40px; width: 190px; height: 190px;
  background: radial-gradient(circle at 50% 50%, rgba(196, 158, 104, .38), rgba(196, 158, 104, 0) 66%);
  z-index: 0;
}
.rec-banner .rb-art {
  position: absolute; right: 14px; bottom: -12px;
  width: 108px; height: 108px; color: rgba(255, 255, 255, .12); z-index: 0;
}
.rec-banner .rb-art svg { width: 100%; height: 100%; stroke-width: .9; }
.rec-banner > div { position: relative; z-index: 1; }
.rec-banner .rb-k {
  font-size: 10px; letter-spacing: .18em; color: rgba(246, 244, 240, .58);
  text-transform: uppercase; font-family: var(--font-en);
}
.rec-banner .rb-v {
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: 27px; font-weight: 400; letter-spacing: -.01em;
  color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.rec-banner .rb-note {
  margin-top: 7px; font-size: 10.5px; color: rgba(246, 244, 240, .52); letter-spacing: .02em;
}
.rec-banner .rb-btn {
  position: relative; z-index: 1;
  margin-left: auto; align-self: flex-end; flex: 0 0 auto;
  border: 0; border-radius: 999px; cursor: pointer;
  background: #FCFCFD; color: #1A1917;
  padding: 10px 18px; font: inherit; font-size: 11.5px; font-weight: 500;
  letter-spacing: .06em;
}
.rec-banner .rb-btn:active { background: #E9E5DE; }

/* --------------------------- 数据条（我的 / 首页复用） --------------------------- */
.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border-radius: 18px;
  margin-top: 12px; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.metrics > div { padding: 15px 6px; text-align: center; position: relative; }
.metrics > div + div::before {
  content: ""; position: absolute; left: 0; top: 26%; bottom: 26%; width: 1px; background: var(--hair);
}
.metrics .k {
  font-family: var(--font-en);
  font-size: 18px; font-weight: 500; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1;
}
.metrics .k.txt { font-size: 13px; font-weight: 500; letter-spacing: .02em; font-family: var(--font); }
.metrics .v { font-size: 9.5px; color: var(--ink-3); margin-top: 6px; letter-spacing: .12em; }
.metrics .l { color: var(--ink-3); }

/* --------------------------------- 分区 --------------------------------- */
.section { margin-top: 26px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px; padding: 0 2px;
}
.section-head h2 {
  margin: 0; font-size: 15px; font-weight: 500; letter-spacing: .02em; color: var(--ink);
}
.section-head .more {
  border: 0; background: none; cursor: pointer; font-family: inherit;
  font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em;
}

/* -------------------------------- 品牌墙 -------------------------------- */
/* 4 列，一格只放「英文 logo + 中文小字」。
   logo 不做图片，用字距和字重撑住版面——图片会引入加载态和尺寸抖动，
   而这里是首页最上面的一块，抖动一次整屏都跟着跳。 */
.brand-wall {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.brand {
  appearance: none; border: 0; cursor: pointer; font-family: inherit;
  height: 76px; padding: 0 6px; background: var(--surface);
  border-radius: 14px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  transition: transform .16s ease;
}
.brand:active { transform: scale(.97); }
.brand-logo {
  font-family: var(--font-en); font-size: 11.5px; font-weight: 500;
  letter-spacing: .02em; color: var(--ink); line-height: 1.1;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-logo.sm { font-size: 9.5px; letter-spacing: 0; }

/* 上传的 Logo 图：格子只有 71×76，所以高度卡在 26px、宽 84%，
   剩下的空间留给中文名。object-fit 保证长条形 logo 不被拉变形。 */
.brand-img {
  display: block; max-width: 84%; max-height: 26px; object-fit: contain;
  overflow: hidden;
}
.brand-cn {
  font-size: 9px; color: var(--ink-3); letter-spacing: .08em; line-height: 1;
}

/* --------------------------------- 卡片 --------------------------------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 18px; }

/* --------------------------------- 商品卡 --------------------------------- */
.market-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.goods {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden; cursor: pointer; min-width: 0;
  width: 100%; padding: 0; text-align: start; font: inherit;
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-card);
  transition: transform .16s ease;
}
.goods:active { transform: scale(.985); }
.goods .pic {
  position: relative; height: 154px;
  background: var(--photo-stage);
}
.goods .cond-tag {
  position: absolute; left: 8px; top: 8px; z-index: 1;
  max-width: calc(100% - 16px);
  background: var(--surface); color: var(--ink-2);
  font-size: 11px; line-height: 1.35; font-weight: 500;
  padding: 3px 6px; border-radius: 6px;
}
.goods .info { padding: 11px 12px 13px; }
.goods .ttl {
  font-size: 14px; line-height: 1.4; min-height: 2.8em; overflow: hidden; color: var(--ink);
  font-weight: 650; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.goods .sub { font-size: 12px; line-height: 1.4; color: var(--ink-3); margin-top: 5px; overflow-wrap: anywhere; }
.goods .prow {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 6px; margin-top: 9px;
}
.goods .prow .price { font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.market-price-note { color: var(--ink-3); font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }

/* 图位（详情 / 列表通用）：暖白渐层 + 极淡品牌字 */
.ph, .ph-lg {
  position: relative;
  background: linear-gradient(178deg, #FAF8F5 0%, #EFEBE4 100%);
  display: grid; place-items: center;
  overflow: hidden;
}
.ph svg, .ph-lg svg { stroke: #BFB9AF; stroke-width: 1.1; }
.ph::after, .ph-lg::after {
  content: ""; position: absolute; left: 50%; bottom: 11%;
  width: 58%; height: 10px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(60, 52, 40, .13) 0%, rgba(60, 52, 40, 0) 72%);
  filter: blur(4px);
}
.ph > *, .ph-lg > * { position: relative; z-index: 1; }
.ph-word {
  position: absolute; left: 0; right: 0; bottom: 22px;
  text-align: center;
  font-family: var(--font-en);
  font-size: 8px; letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase;
  color: rgba(60, 52, 40, .26);
  z-index: 1;
}
/* 图位左上角的目录式小标签（品牌 / 图注） */
.ph-tag {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  font-family: var(--font-en);
  font-size: 8px; letter-spacing: .20em; text-transform: uppercase;
  color: rgba(60, 52, 40, .45);
  border: 1px solid rgba(60, 52, 40, .13);
  background: rgba(255, 255, 255, .55);
  border-radius: 999px; padding: 5px 10px;
}
.listing-hero {
  position: relative; height: 232px; margin-bottom: 14px;
  border-radius: 22px; overflow: hidden; background: var(--photo-stage);
}
.listing-hero .ph-tag {
  background: var(--surface); border-color: var(--hair); color: var(--ink-2);
  font-size: 11px; letter-spacing: .06em;
}

/* --------------------------------- 按钮 --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--hair); background: var(--surface); color: var(--ink);
  border-radius: 14px; padding: 11px 16px;
  font: inherit; font-size: 13.5px; font-weight: 500; letter-spacing: .02em;
  cursor: pointer; transition: transform .1s ease, background .16s ease;
}
.btn:active { transform: scale(.985); background: #F1F4F7; }
.btn-primary {
  background: var(--ink); border-color: var(--ink); color: #fff;
  font-weight: 500;
}
.btn-primary:active { background: #000; }
.btn-primary:disabled {
  background: #E8E5E0; border-color: #E8E5E0; color: #A8A39C;
  cursor: not-allowed; transform: none;
}
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 8px 13px; font-size: 12px; border-radius: 999px; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--warn); border-color: #EFDFD9; background: #fff; }

/* --------------------------------- 标签 --------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 9.5px; font-weight: 500; letter-spacing: .04em;
  background: #EDF1F5; color: var(--ink-2);
}
.badge.green { background: var(--ok-soft); color: var(--ok); }
.badge.red { background: var(--warn-soft); color: var(--warn); }
.badge.gold { background: #F7F2E4; color: var(--gold); }
.badge.gray { background: #EDF1F5; color: var(--ink-2); }

/* --------------------------------- 价格 --------------------------------- */
.price {
  color: var(--ink); font-weight: 500;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.price .unit, .price .cur { font-weight: 400; }
.price.red { color: var(--ink); }
.money-red, .red { color: var(--ink); }

/* --------------------------------- 表单 --------------------------------- */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit; font-size: 13.5px; color: var(--ink);
  outline: none;
  transition: border-color .16s ease, background .16s ease;
}
.field input::placeholder, .field textarea::placeholder, .search-field input::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink); background: #fff;
}
.field textarea { resize: vertical; min-height: 82px; }
.hint { font-size: 10.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }

/* --------------------------------- 品牌筛选条 --------------------------------- */
.brand-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; margin-bottom: 10px;
  background: var(--surface); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.brand-bar .bb-eyebrow {
  font-family: var(--font-en); font-size: 8px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-4);
}
.brand-bar .bb-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.brand-bar .bb-x {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em;
}

/* --------------------------------- 胶囊筛选 --------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--hair); background: var(--surface);
  border-radius: 999px; padding: 9px 15px;
  font: inherit; font-size: 11.5px; letter-spacing: .03em; color: var(--ink-2);
  cursor: pointer; transition: all .16s ease;
}
.chip.on {
  background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500;
}
.chip:active { transform: scale(.97); }

/* --------------------------------- 列表行 --------------------------------- */
.item {
  display: flex; gap: 13px; padding: 15px 16px; align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--hair-2);
  cursor: pointer;
}
.item:last-child { border-bottom: 0; }
.item:active { background: #F1F4F7; }
.item .thumb {
  width: 58px; height: 58px; border-radius: 14px; flex: 0 0 auto;
  background: var(--wash);
  display: grid; place-items: center;
  overflow: hidden;
}
.item .thumb svg { width: 26px; height: 26px; stroke: #8B99A7; stroke-width: 1.2; }
.item .body { flex: 1; min-width: 0; }
.item .title {
  font-size: 13px; font-weight: 500; line-height: 1.45; margin-bottom: 4px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.item .meta { font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em; }
.item .line-1 { color: var(--ink); }
.item .line-2 { color: var(--ink-3); }

/* --------------------------------- 步骤 --------------------------------- */
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.steps .dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-en); font-size: 10px; font-weight: 500;
  background: transparent; color: var(--ink-4);
  border: 1px solid var(--hair);
  flex: 0 0 auto;
}
.steps .dot.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps .dot.done { background: #E5EBF1; border-color: transparent; color: var(--ink-2); }
.steps .bar { flex: 1; height: 1px; background: var(--hair); border-radius: 0; }
.steps .bar.on { background: var(--ink); }

/* -------------------------------- 估价结果 -------------------------------- */
.quote-box {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.quote-box .label {
  font-family: var(--font-en);
  font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3);
}
.quote-box .amount {
  font-family: var(--font-en);
  font-size: 44px; font-weight: 400; color: var(--ink);
  line-height: 1.1; letter-spacing: -.03em; margin: 10px 0 6px;
}
.quote-box .range { font-size: 11.5px; color: var(--ink-2); letter-spacing: .04em; }
.quote-box .maxline { margin-top: 12px; font-size: 10.5px; color: var(--ink-3); }

.breakdown { margin-top: 18px; }
.bd-row { padding: 14px 0; border-bottom: 1px solid var(--hair-2); }
.bd-row:last-child { border-bottom: 0; }
.bd-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.bd-label { font-weight: 400; color: var(--ink-2); }
.bd-val { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.bd-note { font-size: 10.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.6; }

/* -------------------------------- 时间线 -------------------------------- */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: ""; position: absolute; left: 3px; top: 8px; bottom: 8px; width: 1px;
  background: var(--hair);
}
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -20px; top: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; border: 1px solid var(--ink-4);
}
.tl-item.active::before { background: var(--ink); border-color: var(--ink); }
.tl-title { font-size: 12.5px; font-weight: 500; }
.tl-time { font-size: 10px; color: var(--ink-3); margin-top: 3px; letter-spacing: .06em; }
.tl-note { font-size: 11px; color: var(--ink-2); margin-top: 5px; line-height: 1.6; }

/* ------------------------------ 底部操作条 ------------------------------ */
.action-bar {
  flex: 0 0 auto;
  padding: 12px 16px; margin-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  background: rgba(252, 252, 253, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.92);
  display: flex; gap: 12px; align-items: center;
  z-index: 5;
}
.action-bar[hidden] { display: none; }
.phone.no-tabbar .action-bar { margin-bottom: 0; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }

/* --------------------------------- 空态 --------------------------------- */
.empty { text-align: center; padding: 64px 20px; color: var(--ink-3); }
.empty svg { width: 46px; height: 46px; stroke: var(--ink-4); stroke-width: 1.1; margin-bottom: 14px; }
.empty p { margin: 0 0 16px; font-size: 12px; letter-spacing: .04em; }

/* --------------------------------- toast --------------------------------- */
#toast {
  position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 10px);
  background: rgba(20, 20, 20, .92); color: #fff;
  font-size: 12px; letter-spacing: .02em;
  padding: 11px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none;
  transition: all .22s ease; z-index: 999;
  max-width: 80vw; text-align: center; line-height: 1.5;
  backdrop-filter: blur(6px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------- 弹层 --------------------------------- */
.mask {
  position: fixed; inset: 0; background: rgba(18, 17, 15, .42);
  display: flex; align-items: flex-end; justify-content: center; z-index: 500;
  animation: fade .18s ease;
}
.sheet {
  width: min(430px, 100%);
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  animation: slideUp .26s cubic-bezier(.2, .8, .3, 1);
  max-height: 86vh; overflow-y: auto;
  scrollbar-width: thin;
}
.sheet h3 { margin: 0 0 6px; font-size: 16px; font-weight: 500; letter-spacing: .01em; }
@keyframes fade { from { opacity: 0 } }
@keyframes slideUp { from { transform: translateY(26px); opacity: .5 } }

/* --------------------------------- 骨架 --------------------------------- */
.skel {
  background: linear-gradient(90deg, #E8EDF2 25%, #F4F6F8 37%, #E8EDF2 63%);
  background-size: 400% 100%; animation: shimmer 1.4s infinite;
  border-radius: 10px;
}
@keyframes shimmer { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }

/* --------------------------------- 数据条 --------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.stats > div { padding: 15px 8px; text-align: center; }
.stats .k {
  font-family: var(--font-en);
  font-size: 17px; font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.stats .k.txt { font-size: 13px; }
.stats .v { font-size: 9.5px; color: var(--ink-3); margin-top: 5px; letter-spacing: .12em; }

/* -------------------------------- 单选行 -------------------------------- */
.opt-row {
  display: flex; gap: 12px; align-items: center;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 16px; margin-bottom: 8px; cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.opt-row.on { border-color: var(--ink); background: #EDF2F6; }
.opt-row .radio {
  width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid var(--ink-4); flex: 0 0 auto;
  display: grid; place-items: center;
  transition: border-color .16s ease;
}
.opt-row.on .radio { border-color: var(--ink); }
.opt-row.on .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.opt-row .txt { flex: 1; }
.opt-row .t1 { font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.opt-row .t2 { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.55; }

/* -------------------------------- 复选块 -------------------------------- */
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt-cell {
  border: 1px solid var(--hair); border-radius: 14px;
  padding: 12px 13px; background: var(--surface);
  cursor: pointer; transition: all .16s ease;
  font-size: 12px;
}
.opt-cell.on { border-color: var(--ink); background: #EDF2F6; }
.opt-cell .n { font-weight: 500; }
.opt-cell .d { font-size: 10px; color: var(--ink-3); margin-top: 3px; }

/* -------------------------------- 工具类 -------------------------------- */
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.gap8 { gap: 8px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 11.5px; }
.tiny { font-size: 10.5px; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }

/* 旧版 hero（其他页面若引用，保持可用的深色块） */
.hero {
  background: var(--dark); border-radius: var(--radius); padding: 22px; color: var(--on-dark);
}
.hero h1 { margin: 0 0 8px; font-size: 19px; font-weight: 400; letter-spacing: .04em; }
.hero p { margin: 0; font-size: 11.5px; color: rgba(246, 244, 240, .62); line-height: 1.7; }
.hero .hero-actions { display: flex; gap: 10px; margin-top: 18px; }
.hero .hero-btn {
  flex: 1; border: 0; border-radius: 999px; padding: 11px 10px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 500;
  background: var(--on-dark); color: #1A1917;
}
.hero .hero-btn.ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .30); }

/* ---------------------------- 首页横向商品列表 ---------------------------- */
.hscroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }

/* -------------------------------- 收货地址 -------------------------------- */
.addr-card,
.addr-empty {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border-radius: var(--radius-sm);
  padding: 14px 15px; box-shadow: var(--shadow-card);
}
.addr-card { cursor: pointer; }
.addr-main { flex: 1; min-width: 0; }
.addr-l1 {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; letter-spacing: .01em;
}
.addr-l1 b { font-weight: 600; }
.addr-tel {
  font-family: var(--font-en); font-size: 12px; font-weight: 400;
  color: var(--ink-3); letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.addr-tag {
  font-size: 9px; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px;
  background: var(--ink); color: #fff; font-weight: 500;
}
.addr-tag.gray { background: var(--wash-2); color: var(--ink-3); }
.addr-l2 {
  font-size: 12px; color: var(--ink-3); line-height: 1.65;
  margin-top: 5px; word-break: break-all;
}
.addr-arrow { color: var(--ink-4); font-size: 17px; line-height: 1; }

.addr-empty { border: 1px dashed #DDD9D2; box-shadow: none; background: transparent; cursor: pointer; }
.addr-plus {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  background: var(--wash-2); color: var(--ink-2);
  display: grid; place-items: center; font-size: 15px; line-height: 1;
}
.addr-empty-t { display: block; font-size: 13px; font-weight: 500; }
.addr-empty-m { display: block; font-size: 11px; color: var(--ink-3); margin-top: 4px; }

/* 选择弹层：absolute 挂在手机壳里，PC 预览也不会铺满浏览器 */
.addr-mask {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(18, 17, 15, .42);
  display: flex; align-items: flex-end;
  animation: fade .18s ease;
}
.addr-sheet {
  width: 100%; border-radius: 24px 24px 0 0;
  max-height: 84%; overflow-y: auto;
  animation: slideUp .26s cubic-bezier(.2, .8, .3, 1);
}
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet-head h3 { margin: 0; flex: 1; }
.linkbtn {
  background: none; border: 0; padding: 0; font: inherit;
  font-size: 12px; color: var(--ink-3); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--hair);
}
.linkbtn.danger { color: var(--warn); }

.addr-list { display: flex; flex-direction: column; }
.addr-row {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 2px; border-bottom: 1px solid var(--line-2); cursor: pointer;
}
.addr-row:last-child { border-bottom: 0; }
.addr-tick {
  width: 20px; text-align: center; font-size: 13px;
  color: var(--ink); font-weight: 700;
}
.addr-none { padding: 26px 0; text-align: center; font-size: 12px; color: var(--ink-3); }

.addr-def {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-2); margin: 6px 0 2px; cursor: pointer;
}
.addr-def input { width: 16px; height: 16px; accent-color: #202124; }

.addr-mgr { margin-bottom: 10px; }
.addr-ops {
  display: flex; align-items: center; gap: 16px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2);
}

/* -------------------------------- 售后服务 -------------------------------- */
/* 六个入口收进一张面板：3 列 × 2 行 + 底部保修行。
   之前是 6 张独立卡片，视觉上是「六块浮岛」，跟其他页面的面板语言不一致。 */
.svc-panel {
  background: var(--surface); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-card); margin-bottom: 22px;
}
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.svc-tile {
  position: relative; box-sizing: border-box;
  padding: 14px 14px 16px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  cursor: pointer; transition: background .16s ease;
}
.svc-tile:active { background: var(--wash-2); }
.svc-tile.no-r { border-right: 0; }
.svc-tile.no-b { border-bottom: 0; }

.svc-en { font-size: 8.5px; letter-spacing: .16em; color: var(--ink-3); padding-right: 14px; }
.svc-arrow {
  position: absolute; right: 10px; top: 12px;
  font-size: 13px; line-height: 1; color: #8B96A3;
}
.svc-cn { margin-top: 8px; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.svc-desc {
  margin-top: 5px; font-size: 10.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.svc-foot {
  display: flex; align-items: center; justify-content: space-between;
  height: 46px; padding: 0 16px;
  font-size: 12px; color: var(--ink-3); cursor: pointer;
}
.svc-foot:active { background: #EEF2F6; }
.svc-foot .arrow { font-size: 15px; color: #8B96A3; }

.svc-card { margin-bottom: 10px; }
.svc-l1 { display: flex; align-items: center; gap: 8px; }
.svc-type { font-size: 13px; font-weight: 600; color: var(--ink); }
.svc-state {
  font-size: 10px; padding: 3px 8px; border-radius: 999px;
  background: var(--wash-2); color: var(--ink-2); letter-spacing: .04em;
}
.svc-state.s-submitted { background: #FBEAE6; color: #A8391F; }
.svc-state.s-accepted { background: #FBF1DC; color: #7A5A12; }
.svc-state.s-processing { background: #E8EEF6; color: #2A4C74; }
.svc-state.s-done { background: #E7F1E9; color: #2F6038; }

.svc-title { margin-top: 7px; font-size: 13.5px; color: var(--ink); }
.svc-meta { margin-top: 5px; font-size: 11px; color: var(--ink-3); }
.svc-note {
  margin-top: 7px; padding: 8px 10px; border-radius: 8px;
  background: #EEF2F6; font-size: 11.5px; line-height: 1.55; color: var(--ink-2);
}
.svc-l3 {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-2);
}

/* -------------------------------- 消息 -------------------------------- */
.msg-card { padding: 0 16px; }
.msg-item {
  display: flex; gap: 10px; padding: 14px 0;
  border-bottom: 1px solid var(--line-2); cursor: pointer;
}
.msg-item:last-child { border-bottom: 0; }
.msg-item.read { opacity: .6; }
.msg-dot {
  flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%;
  background: #C0392B; margin-top: 7px;
}
.msg-item.read .msg-dot { background: transparent; }
.msg-body { flex: 1; min-width: 0; }
.msg-l1 {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.msg-time { font-size: 10px; color: var(--ink-3); font-weight: 400; }
.msg-t2 { margin-top: 4px; font-size: 11.5px; color: var(--ink-2); line-height: 1.55; }

.msg-badge {
  display: inline-block; min-width: 16px; padding: 0 5px;
  border-radius: 999px; background: #C0392B; color: #fff;
  font-size: 9px; line-height: 16px; text-align: center; vertical-align: 1px;
}

/* -------------------------------- 银白首页与设备目录 -------------------------------- */
button, summary, a, input, select, textarea { touch-action: manipulation; }
button, input, select, textarea { font-family: inherit; }
button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid rgba(66,104,138,.55); outline-offset: 3px;
}
button { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
.btn, .chip { min-height: 44px; }
.field label { font-size: 12px; letter-spacing: .02em; }
.field input, .field textarea, .field select { font-size: 16px; }
.home-hero { padding: 12px 0 22px; }
.home-hero h1 { margin:0;font-size:30px;font-weight:650;line-height:1.25;letter-spacing:-1.2px;overflow-wrap:anywhere; }
.home-hero h1 em { font-style:normal;color:#4A5E72;margin-left:8px; }
.home-hero p { margin:10px 0 0;font-size:14px;color:var(--ink-3);line-height:1.6;overflow-wrap:anywhere; }
.home-primary-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:10px; }
.home-primary-actions button { display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:56px;padding:14px 18px;border:1px solid rgba(255,255,255,.95);border-radius:18px;background:linear-gradient(140deg,#fff,#e9edf2);box-shadow:0 3px 10px rgba(44,58,73,.04);text-align:left;color:var(--ink);cursor:pointer;transition:transform 120ms ease-out; }
.home-primary-actions button:first-child { background:linear-gradient(130deg,#35424f,#202a34);color:#fff;border-color:#34414e;box-shadow:0 6px 14px rgba(36,49,62,.13); }
.home-primary-actions button:active { transform:scale(.98); }
.home-primary-actions strong { font-size:16px;font-weight:600;line-height:1.5; }
.home-primary-actions svg { width:17px;height:17px;flex-shrink:0;color:inherit; }
.home-section-head { display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 4px; }
.home-section-head h2 { margin:0;font-size:19px;font-weight:650;line-height:1.4;letter-spacing:-.4px; }
.home-section-head button { display:flex;gap:4px;align-items:center;min-height:48px;border:0;padding:5px 0 5px 8px;background:none;color:var(--accent);font-size:14px;cursor:pointer; }
.home-section-head svg { width:14px;height:14px;stroke-width:1.7; }
.product-grid { display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-left:4px;padding:4px 20px 8px 4px;margin:0 -20px 0 -4px;scrollbar-width:thin;scrollbar-color:#a8b5c2 transparent; }
.product-card {
  flex: 0 0 calc(100% - 22px); min-width: 0; display: flex; flex-direction: column;
  overflow: hidden; border: 1px solid var(--hair); border-radius: 22px; padding: 0;
  background: var(--surface); text-align: left; cursor: pointer; color: var(--ink);
  scroll-snap-align: start; transition: transform 120ms ease-out;
}
.product-card:only-child { flex-basis: 100%; }
.product-card:active { transform:scale(.985); }
.home-primary-actions button:focus-visible,.product-card:focus-visible,.home-section-head button:focus-visible { outline:3px solid var(--accent);outline-offset:3px; }
.product-card:focus-visible { outline-offset:-5px; }
@media(hover:hover) { .product-card:hover { border-color: #BFCBD7; } }
.product-brand-line .brand-word { color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.brand-word { font-size:14px;line-height:1.4;letter-spacing:0; }
.brand-word { font-family: var(--font-en); font-size: 20px; font-weight: 700; letter-spacing: -.7px; line-height: 1.25; overflow-wrap: anywhere; }
.brand-word-condensed { font-family: "Arial Narrow", "Avenir Next Condensed", Impact, sans-serif; font-size: 25px; font-stretch: condensed; letter-spacing: -.6px; }
.brand-word-heritage { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; letter-spacing: -.8px; }
.brand-word-technical { font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif; font-size: 19px; font-weight: 800; letter-spacing: .2px; }
.brand-word-slayer { font-size: 19px; font-weight: 900; font-style: italic; letter-spacing: 2px; }
.brand-word-mazzer { font-size: 19px; font-weight: 850; letter-spacing: 1px; }
.brand-word-wide { font-size: 18px; font-weight: 800; letter-spacing: 1.8px; }
.brand-word-rounded { font-family: "Avenir Next", "Trebuchet MS", sans-serif; font-size: 23px; font-weight: 750; letter-spacing: -.9px; }
.product-image { height: clamp(146px,43vw,168px); width: 100%; padding: 8px 10px; background: var(--photo-stage); }
.model-image-fallback { height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#626b78; }
.model-image-fallback svg { width:54px;height:54px;stroke-width:1; }
.model-image-fallback small { font-size:13px;color:var(--ink-3);line-height:1.5; }
.model-image-fallback[hidden],img[data-model-image][hidden] { display:none; }
.product-bottom { display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1;width:100%;min-width:0;padding:12px 14px; }
.product-bottom>div { flex:1;min-width:0; }
.product-bottom h3 { margin:2px 0 0;font-size:22px;font-weight:700;line-height:1.15;letter-spacing:-.45px;overflow-wrap:anywhere; }
.product-bottom p { margin:4px 0 0;font-size:13px;line-height:1.4;color:var(--ink-3); }
.product-detail-arrow { display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:var(--photo-stage);color:#355572; }
.product-bottom svg { width:18px;height:18px; }
.home-machine-note { margin:2px 0 10px;color:var(--ink-3);font-size:12px;line-height:1.6; }
.home-service { margin:0 0 16px; }
.estimate-cta { display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:62px;border:0;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair);border-radius:0;background:none;color:var(--ink);padding:10px 0;text-align:left;cursor:pointer; }
.estimate-cta strong { display:block;font-size:16px;font-weight:600;line-height:1.5; }
.estimate-cta small { display:block;margin-top:3px;font-size:13px;color:var(--ink-3);line-height:1.6; }
.estimate-cta svg { width:20px;height:20px;flex-shrink:0;stroke-width:1.5; }
.activity-banner { display: block; width: 100%; text-align: left; border: 1px solid #fff; border-radius: 20px; padding: 19px; margin: 20px 0 26px; background: linear-gradient(110deg,#E1E8F0,#EDF1F5); color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.activity-banner > small { font-size: 10px; color: var(--accent); }
.activity-banner h3 { margin: 8px 0; font-size: 17px; line-height: 1.5; font-weight: 600; letter-spacing: -.4px; }
.activity-banner p { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.activity-banner > span { display: inline-flex; align-items: center; gap: 7px; margin-top: 15px; font-size: 12px; color: var(--accent); }
.activity-banner svg { width: 13px; height: 13px; stroke-width: 1.5; }
.brand-list { border-top: 1px solid var(--hair); }
.brand-disclosure { border-bottom: 1px solid var(--hair); }
.brand-disclosure summary { display: flex; list-style: none; align-items: center; justify-content: space-between; gap: 15px; min-height: 74px; padding: 17px 1px; cursor: pointer; }
.brand-disclosure summary::-webkit-details-marker { display: none; }
.brand-disclosure summary::marker { content: ""; }
.brand-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.brand-logo { width: 54px; height: 26px; flex: 0 0 54px; object-fit: contain; }
.brand-logo[hidden] { display: none; }
.brand-count { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.brand-count svg { width: 13px; height: 13px; stroke-width: 1.6; transition: transform .18s ease; }
.brand-disclosure[open] .brand-count svg { transform: rotate(90deg); }
.brand-model { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; border: 0; border-top: 1px solid var(--hair-2); background: none; padding: 14px 4px; color: var(--ink); text-align: left; cursor: pointer; }
.brand-model > span { min-width: 0; }
.brand-model strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.brand-model small { display: block; color: var(--ink-3); font-size: 11px; margin-top: 5px; line-height: 1.5; }
.brand-model svg { width: 14px; height: 14px; flex-shrink: 0; stroke-width: 1.5; color: var(--ink-3); }
.brand-model:active, .brand-disclosure summary:active, .secondary-actions button:active { background: rgba(255,255,255,.55); }
.merchant-entry { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 52px; margin-top: 25px; border: 0; background: none; color: var(--ink-3); padding: 10px 2px; font-size: 12px; text-align: left; cursor: pointer; }
.merchant-entry svg { width: 14px; height: 14px; stroke-width: 1.5; }
.catalog-heading { margin: 12px 0 24px; }
.catalog-heading h1 { font-size: 29px; font-weight: 650; letter-spacing: -1.2px; margin: 0 0 11px; }
.catalog-heading p { font-size: 12px; line-height: 1.7; color: var(--ink-3); margin: 0; }
.search-field { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 13px; border: 1px solid #DCE5ED; border-radius: 14px; background: #E8EEF3; margin: 0 0 16px; }
.search-field svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.5; color: var(--ink-3); }
.search-field input { border: 0; background: none; outline: none; font-size: 16px; width: 100%; min-width: 0; height: 100%; color: var(--ink); }
.search-field:focus-within { outline: 2px solid rgba(66,104,138,.4); outline-offset: 2px; }
.catalog-filters { margin-bottom: 18px; gap: 8px; }
.catalog-filters .chip.on { background: var(--accent); border-color: var(--accent); }
.catalog-count { margin-bottom: 14px; font-size: 12px; color: var(--ink-3); }
.catalog-empty { padding: 30px 12px; text-align: center; color: var(--ink-3); font-size: 13px; line-height: 1.8; }
.catalog-market-links, .model-market-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 24px; }
.catalog-market-links .btn, .model-market-actions .btn { justify-content: center; padding-inline: 10px; font-size: 12px; }
.model-detail { padding: 10px 0 5px; }
.model-detail-image { height: 240px; margin: 16px 0 20px; padding: 12px 16px; border-radius: 22px; background: var(--photo-stage); }
.model-detail h1 { font-size: 29px; font-weight: 650; letter-spacing: -1px; line-height: 1.3; margin: 0 0 12px; overflow-wrap: anywhere; }
.model-detail-copy, .model-detail-note { font-size: 13px; line-height: 1.85; color: var(--ink-3); }
.model-detail-note { margin: 24px 0 0; font-size: 12px; }
.model-facts { margin: 26px 0 0; }
.model-facts > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border-top: 1px solid var(--hair); padding: 17px 0; font-size: 12px; line-height: 1.7; }
.model-facts dt { color: var(--ink-3); flex-shrink: 0; }
.model-facts dd { text-align: right; margin: 0; }
.model-facts dd small { display: block; font-size: 10px; color: var(--ink-3); margin-top: 3px; }
@media (max-width: 360px) {
  .view { padding-inline: 16px; }
  .home-hero h1 { font-size:27px;letter-spacing:-1px; }
  .product-grid { margin-right:-16px;padding-right:16px;gap:12px; }
  .product-bottom h3 { font-size: 20px; }
  .carousel-bottom { flex-wrap: wrap; gap: 0; }
  .carousel-bottom > span { max-width: none; }
  .catalog-heading h1 { font-size: 27px; }
  .model-facts > div { gap: 9px; font-size: 11px; }
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar, .action-bar { background: #F3F5F8; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-3: #4B5865; --hair: #A9B7C5; }
  .tabbar { background: #EDF2F7; border-color: #9CABB8; }
}

/* -------------------------------- 动效偏好 -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  button:active { transform: none !important; }
}

/* Shared equipment imagery and accessible control dimensions. */
.model-photo-frame { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.model-photo-frame > img, .model-photo-frame > .model-image-fallback { width: 100%; flex: 1; min-height: 0; }
.model-photo-frame > img { display: block; object-fit: contain; }
.model-photo-frame > img[data-photo-reference] { mix-blend-mode: multiply; }
.model-photo-series { display: block; flex: none; background: var(--surface); color: var(--ink-2); border-radius: 5px; padding: 3px 6px; font-size: 11px; font-weight: 500; line-height: 1.35; }
.model-photo-frame > [hidden], .model-photo-frame > img[hidden] ~ .model-photo-series { display: none; }
.product-image .model-photo-series { order: -1; }
.catalog-thumbnail { width:58px; height:64px; flex:0 0 58px; border-radius:10px; background:var(--photo-stage); overflow:hidden; }
.catalog-thumbnail .model-photo-series { width: 100%; text-align: center; border-radius: 0; background: none; padding: 0 0 2px; font-size: 10px; }
.catalog-thumbnail .model-image-fallback { gap:0; }
.catalog-thumbnail .model-image-fallback svg { width:27px; height:27px; }
.catalog-thumbnail .model-image-fallback small { display:none; }
.brand-model > span { flex:1; min-width:0; }
.listing-photo { width:100%; height:100%; padding:31px 8px 8px; }
.listing-detail-photo { width:100%; height:100%; padding:40px 12px 12px; }
.btn,.chip,.home-section-head button,.secondary-actions button,.brand-model,.brand-disclosure summary { min-height:48px; }
.activity-banner > small,.model-image-fallback small { font-size:13px; }
button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[role="button"]:focus-visible { outline:3px solid #42688a; outline-offset:3px; }
@media(max-width:360px) { .catalog-thumbnail{width:54px;height:58px;flex-basis:54px} #modelList .item{gap:9px} #modelList .item>div:last-child{max-width:90px} }

/* Home loading and recovery preserve the rental / purchase entry points. */
.home-state-panel{padding:24px;margin-bottom:24px;border:1px solid #d4dae2;border-radius:24px;background:#fcfcfd}
.home-state-panel h3{margin:0;font-size:20px;line-height:1.5;color:#202124}
.home-state-panel p{margin:8px 0 0;font-size:15px;line-height:1.6;color:#626b78}
.home-state-action{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:56px;margin-top:16px;padding:14px 16px;border:0;border-radius:16px;background:#202a34;color:#fff;font-size:16px;line-height:1.5;font-weight:600;cursor:pointer}
.home-state-action:focus-visible{outline:3px solid #42688a;outline-offset:3px}
.home-state-action:active{opacity:.86}
.home-loading-card{height:calc(clamp(146px,43vw,168px) + 88px);border-radius:22px;background:linear-gradient(145deg,#fcfcfd,#e9eef4)}
.home-loading p{font-size:14px;line-height:1.6;color:#626b78}

/* Commerce: restrained surfaces, immediate press feedback, stable machine imagery. */
.commerce-city,.commerce-activity>button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #dce3ea;
  background: transparent;
  color: #29343f;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.commerce-city-copy,.commerce-activity-copy { flex: 1; min-width: 0; }
.commerce-city strong,.commerce-activity strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.commerce-city small,.commerce-activity small { display: block; margin-top: 2px; color: #536170; font-size: 12px; line-height: 1.5; }
.commerce-city-value { max-width: 42%; color: #415569; font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.commerce-row-arrow { flex: none; color: #536170; font-size: 20px; }
.commerce-activity { margin: 0 0 6px; }
.commerce-activity-copy { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.commerce-activity strong { flex: none; }
.commerce-activity small { margin-top: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commerce-heading{margin:12px 0 24px}.commerce-heading>p{margin:0 0 8px;color:var(--accent);font-size:12px;font-weight:600}.commerce-heading h1{margin:0 0 10px;font-size:28px;line-height:1.25;letter-spacing:-.8px;font-weight:650;overflow-wrap:anywhere}.commerce-heading>span{font-size:14px;line-height:1.7;color:var(--ink-3)}
.commerce-guides{margin:28px 0 0}.commerce-guide{border-bottom:1px solid var(--hair);margin:0}.commerce-guide summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:76px;list-style:none;cursor:pointer;padding:15px 1px}.commerce-guide summary::-webkit-details-marker{display:none}.commerce-guide summary strong{font-size:15px;font-weight:600;line-height:1.5;display:block}.commerce-guide summary small{display:block;margin-top:4px;font-size:13px;line-height:1.5;color:var(--ink-3)}.commerce-guide summary>span:last-child{font-size:20px;color:var(--ink-3);flex-shrink:0}.commerce-guide[open] summary>span:last-child{transform:rotate(45deg)}.commerce-guide>div{padding:0 0 18px}.commerce-guide h3{margin:12px 0 4px;font-size:14px;font-weight:600}.commerce-guide p{margin:0;font-size:14px;line-height:1.85;color:var(--ink-3)}
.commerce-support{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:76px;margin:20px 0;padding:16px;border:1px solid #dde3e9;border-radius:16px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}.commerce-support strong{display:block;font-size:15px;font-weight:600;line-height:1.5}.commerce-support small{display:block;margin-top:4px;color:var(--ink-3);font-size:13px;line-height:1.5}.commerce-support>span:last-child{font-size:24px;flex-shrink:0;color:var(--ink-3)}
.commerce-policy{font-size:13px;line-height:1.8;color:var(--ink-3);margin:12px 0 18px;overflow-wrap:anywhere}.commerce-region{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.commerce-region>.field:first-child{grid-column:1/-1}.commerce-region input,.commerce-region select{width:100%;min-width:0}.commerce-region label{font-size:13px}.commerce-context{font-size:13px;color:var(--accent)}
.commerce-links{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.commerce-links>.btn{flex:1;justify-content:center;min-width:120px;text-decoration:none}.commerce-section-title{font-size:19px;font-weight:650;margin:26px 0 12px}.commerce-empty{padding:24px 20px;border:1px solid #dde3e9;border-radius:18px;background:#fafbfc;line-height:1.7;font-size:14px;color:var(--ink-3)}.commerce-empty strong{display:block;color:var(--ink);font-size:16px}.commerce-empty p{margin:7px 0}.commerce-empty .linkbtn{display:block;min-height:48px}
.commerce-coupon,.commerce-contract,.commerce-inquiry,.commerce-invite-card{padding:20px;border:1px solid #dde3e9;border-radius:20px;background:#fff;margin:12px 0;overflow-wrap:anywhere}.commerce-coupon h3,.commerce-contract h3,.commerce-inquiry h3{font-size:18px;line-height:1.5;margin:9px 0}.commerce-coupon>strong{display:block;font-size:30px;font-weight:650;line-height:1.4}.commerce-coupon p,.commerce-contract p,.commerce-inquiry p{font-size:14px;color:var(--ink-3);line-height:1.8;margin:8px 0}.commerce-coupon small,.commerce-contract small,.commerce-inquiry>small{display:block;color:var(--ink-3);font-size:12px;line-height:1.6}.commerce-coupon .btn,.commerce-contract .btn{margin-top:14px;width:100%;justify-content:center}.btn[disabled]{cursor:default;opacity:.55}.commerce-invite-card>span{display:block;font-size:13px;color:var(--ink-3)}.commerce-invite-card>strong{display:block;letter-spacing:.08em;font-size:29px;margin:12px 0 20px;overflow-wrap:anywhere}.commerce-invite-card>label{display:block;font-size:12px;color:var(--ink-3);margin:10px 0 7px}.commerce-invite-card>input{width:100%;min-height:48px;padding:10px;border:1px solid #dde3e9;border-radius:10px;font-size:13px;background:#f8fafc}.commerce-reply{padding:14px;border-radius:12px;background:#f0f4f8;margin:12px 0}.commerce-reply>strong{font-size:13px;color:var(--accent)}
.commerce-intent{margin-top:20px}.commerce-intent .chip{flex:1;justify-content:center}.sheet .linkbtn{min-height:48px}.commerce-support:active,.commerce-activity>button:active{transform:scale(.985);background:#edf2f6}.commerce-city:active{opacity:.7}
@media(max-width:360px){.commerce-heading h1{font-size:25px}.commerce-region{grid-template-columns:1fr}.commerce-region>.field:first-child{grid-column:auto}.commerce-links>.btn{min-width:100px}}
.commerce-invite-card > strong {
  font: 650 clamp(17px, 5vw, 23px)/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .03em;
}
@media(prefers-reduced-motion:reduce){.commerce-support:active,.commerce-activity>button:active{transform:none}.commerce-guide[open] summary>span:last-child{transform:none}}

.commerce-discount{display:flex;justify-content:space-between;gap:12px;padding:12px 0;font-size:14px;color:var(--accent)}.commerce-discount[hidden]{display:none}.commerce-discount strong{font-weight:600;font-variant-numeric:tabular-nums}

.payment-trial { max-width: 420px; margin: 0 auto; padding: 22px clamp(16px, 5vw, 28px) 32px; color: var(--ink); }
.payment-trial [hidden] { display: none; }
.payment-trial h1 { margin: 0 0 16px; font-size: 28px; font-weight: 650; line-height: 1.2; }
.trial-model { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.trial-model-photo { flex: 0 0 74px; width: 74px; height: 56px; overflow: hidden; border-radius: 10px; background: white; }
.trial-model-photo img { width: 100%; height: 100%; object-fit: contain; }
.trial-model-photo .model-photo-series { display: none; }
.trial-model small, .trial-receipt p, .trial-scan p { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.trial-model strong { display: block; overflow-wrap: anywhere; font-size: 16px; }
.trial-receipt { padding: 16px 18px; border: 1px solid var(--hair); border-radius: 16px; background: white; }
.trial-total, .trial-receipt dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.trial-total span { font-size: 15px; font-weight: 600; }
.trial-total strong { font-size: 30px; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; }
.trial-receipt dl { margin: 12px 0 8px; padding-top: 9px; border-top: 1px solid var(--hair-2); }
.trial-receipt dl > div { padding: 3px 0; font-size: 14px; }
.trial-receipt dt { color: var(--ink-2); }
.trial-receipt dd { margin: 0; font-variant-numeric: tabular-nums; }
.trial-receipt p, .trial-scan p { margin: 4px 0 0; overflow-wrap: anywhere; }
.trial-scan { margin: 18px auto 0; text-align: center; }
.trial-scan img { display: block; margin: 0 auto 8px; width: 174px; max-width: 100%; height: auto; border-radius: 12px; }
.trial-scan strong { font-size: 16px; }
.trial-scan button { min-height: 44px; margin-top: 10px; }

.estimate-tools, .estimate-steps, .market-mode, .market-directory button,
.listing-heading, .listing-merchant, .customer-order-head, .customer-order-foot {
  display: flex; align-items: center;
}
.estimate-tools, .listing-heading, .listing-merchant, .customer-order-head {
  justify-content: space-between; gap: 12px;
}
.estimate-steps { list-style: none; padding: 0; gap: 8px; margin: 12px 0 16px; }
.estimate-steps li { font-size: 13px; color: var(--ink-3); }
.estimate-steps li + li { display: flex; align-items: center; gap: 8px; }
.estimate-steps li + li::before { content: ""; width: 8px; height: 1px; background: var(--hair); }
.estimate-steps [aria-current] { font-weight: 650; color: var(--ink); }
.estimate-tools { flex-wrap: wrap; row-gap: 0; margin-bottom: 6px; }
.estimate-tools .estimate-steps { margin: 0; }
.estimate-history-tools { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.estimate-tools .text-link { min-height: 44px; padding: 0 4px; color: var(--accent); background: none; border: 0; font: inherit; font-size: 13px; cursor: pointer; }
.market-mode { padding: 3px; gap: 3px; border-radius: var(--radius-sm); background: var(--wash-2); margin-bottom: 18px; }
.market-mode button { flex: 1; min-height: 44px; border: 0; border-radius: 11px; font: inherit; font-weight: 500; color: var(--ink-2); background: transparent; cursor: pointer; }
.market-mode [aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: var(--shadow-card); }
.market-directory { margin: 16px 0; }
.market-directory button { width: 100%; min-height: 48px; justify-content: space-between; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--hair); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.market-directory button span, .customer-order-foot i { color: var(--ink-3); font-size: 20px; font-style: normal; }
.listing-heading { align-items: flex-start; }
.listing-heading > div { min-width: 0; }
.listing-heading h1 { margin: 0; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.listing-heading > span, .listing-heading small, .listing-merchant { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.listing-heading > span { max-width: 45%; flex-shrink: 0; }
.listing-heading small { display: block; margin-top: 4px; }
.listing-merchant { align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.listing-merchant > span { flex-shrink: 0; }
.listing-merchant > div { text-align: end; color: var(--ink); overflow-wrap: anywhere; }
.listing-merchant small { font-size: inherit; margin-inline-start: .5em; color: var(--ink-2); }
.listing-description { line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.customer-order { display: grid; gap: 5px; width: 100%; margin: 0 0 12px; padding: 16px; border: 1px solid var(--hair); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-align: start; font: inherit; cursor: pointer; }
.customer-order-head, .customer-order-date, .customer-order-foot { font-size: 13px; color: var(--ink-2); }
.customer-order-head .order-status-red { color: var(--warn); }
.customer-order-head .order-status-green { color: var(--ok); }
.customer-order-name { color: var(--ink); font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.customer-order-date { overflow-wrap: anywhere; }
.customer-order-foot { gap: 8px; margin-top: 7px; padding-top: 9px; border-top: 1px solid var(--hair-2); }
.customer-order-foot strong { margin-inline-start: auto; color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.estimate-tools button:focus-visible, .market-mode button:focus-visible,
.market-directory button:focus-visible, .goods:focus-visible, .customer-order:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.pay-receipt { display: grid; justify-items: center; gap: 4px; margin: 20px 0 24px; text-align: center; }
.pay-check { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 32px; }
.pay-receipt h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.3; }
.pay-receipt > span { font-size: 13px; color: var(--ink-2); }
.pay-receipt > strong { font-size: 32px; line-height: 1.25; font-variant-numeric: tabular-nums; }

.listing-photo-options{display:flex;gap:8px;overflow-x:auto;margin:8px 0 12px}
.listing-photo-options button{padding:3px;border:1px solid #d8dfe3;border-radius:8px;background:#fff;flex:none}
.listing-photo-options button[aria-pressed=true]{border:2px solid #354b58;padding:2px}
.listing-photo-options img{width:64px;height:48px;object-fit:contain;display:block}

.buyout-card { background:#f5f8fb; border:1px solid #dce4eb; }
.buyout-card h2 { font-size:17px; line-height:1.5; margin:0; }
.buyout-status { margin:8px 0 0; color:#3b617c; font-size:14px; line-height:1.5; font-weight:650; }
.buyout-copy,.buyout-message,.buyout-handoff p { margin:8px 0 0; color:#4d5966; line-height:1.65; font-size:13px; overflow-wrap:anywhere; }
.buyout-message { color:#803d25; }
.buyout-message:empty { margin:0; }
.buyout-amounts { margin:10px 0 0; }
.buyout-amounts > div { display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:5px 0; font-size:14px; line-height:1.6; }
.buyout-amounts > div:last-child { margin-top:5px; padding-top:10px; border-top:1px solid #dce4eb; font-weight:600; }
.buyout-amounts dd { margin:0; flex:none; font-variant-numeric:tabular-nums; }
.buyout-actions { display:grid; gap:8px; margin-top:12px; }
.buyout-card .btn { min-height:48px; }
.buyout-handoff { margin-top:12px; }
.buyout-handoff[hidden] { display:none; }

.buyout-refund { margin-top:12px; padding-top:8px; border-top:1px solid #dce4eb; }
.buyout-refund-line { display:flex; justify-content:space-between; gap:16px; font-size:14px; line-height:1.6; }
.buyout-refund .btn { margin-top:8px; }
