/* ==========================================================================
   艺诺新材 H5 浮雕图库 —— 样式表
   移动端优先（375px 基准），主色 #94743a，浅色系低调简约
   ========================================================================== */

:root {
  --brand: #94743a;
  --brand-dark: #7a5f2e;
  --brand-light: #c9b48a;
  --brand-tint: #f6f2ea;
  --brand-tint-2: #efe8db;
  --text: #2f2a24;
  --text-sub: #7a7167;
  --text-mute: #a49b90;
  --bg: #f5f3ef;
  --surface: #ffffff;
  --line: #e8e2d8;
  --warn-bg: #fff8e1;
  --warn-line: #f0d488;
  --warn-text: #8a6d20;
  --danger: #c0392b;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(80, 66, 45, 0.08);
  --shadow-lg: 0 -6px 24px rgba(60, 48, 30, 0.16);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --header-h: 126px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

img { display: block; max-width: 100%; border: 0; }
button { font-family: inherit; font-size: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font-family: inherit; font-size: inherit; }

/* ---------- Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.hdr__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 6px;
}
.hdr__logo {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
/* 品牌抬头：两行各一个四字词（艺诺新材 / 浮雕图册），nowrap 防手机窄屏在词中间断行 */
.hdr__brand {
  font-size: 15px; font-weight: 600; letter-spacing: .3px;
  white-space: nowrap;
  line-height: 1.3;
}
.hdr__sub { font-size: 11px; color: var(--text-mute); margin-top: 1px; }
.hdr__acts { margin-left: auto; display: flex; gap: 5px; }
.hdr__btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  /* 视觉尺寸不变，padding 把触控热区撑到 44px */
  padding: 7px 9px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: var(--text-sub);
  background: var(--surface);
  text-align: center;
}
/* 双行按钮文字（分行规则：我的/收藏、添加/联系方式） */
.hdr__btn .two {
  display: inline-block;
  font-size: 11px;
  line-height: 1.3;
}
.hdr__btn.is-on { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
/* 收藏数量徽标 */
.hdr__badge {
  display: none;
  margin-left: 5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  line-height: 17px;
  text-align: center;
  font-weight: 700;
}

/* 公司 LOGO（图片版，覆盖文字版的宽高与背景）。2026-09-03：按老板要求缩至 90%（72→65px） */
.hdr__logo--img {
  width: auto;
  height: 65px;
  background: transparent;
  padding: 2px;
  border-radius: 6px;
}
/* 「添加联系方式」按钮：实心品牌色，比另外两个强调一档 */
.hdr__btn--brand {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.hdr__btn--brand:active { background: var(--brand-dark); }
/* 「我的收藏」「我的询价」：深棕实心 + 白字，与品牌亮色按钮区分层次 */
.hdr__btn--alt {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}
.hdr__btn--alt:active { background: #5f4c29; }
/* 深色按钮上的数量徽标：反白处理，保证可读 */
.hdr__btn--alt .hdr__badge {
  background: #fff;
  color: var(--brand-dark);
}

/* 联系方式弹层（复用 sheet 容器，内部 content 由 ContactPanel 渲染） */
.contact { text-align: center; padding: 12px 16px 4px; }
.contact__qr-wrap {
  width: 200px; height: 200px;
  margin: 0 auto 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
}
.contact__qr-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.contact__name { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.contact__sub  { font-size: 13px; color: var(--text-sub); margin-bottom: 14px; }
.contact__hint { font-size: 12px; color: var(--text-mute); line-height: 1.6; margin-top: 10px; }
/* 「拨打电话」按钮：实心品牌色 + 白字 */
.contact__call {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 14px auto 2px;
  width: 100%; max-width: 300px;
  min-height: 46px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  letter-spacing: .3px;
}
.contact__call:active { background: var(--brand-dark); }
.contact__call-ico { font-size: 18px; line-height: 1; }
.contact__call-num { font-variant-numeric: tabular-nums; }

/* ---------- Search ---------- */
.search { padding: 0 12px 8px; position: relative; }
.search__in {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--brand-tint);
  padding: 0 34px 0 34px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
}
.search__in:focus { border-color: var(--brand); background: #fff; }
.search__in::placeholder { color: var(--text-mute); }
.search__ico {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text-mute); pointer-events: none;
  margin-top: -4px;
}
.search__clr {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--text-mute); color: #fff; font-size: 12px; line-height: 20px;
  text-align: center; margin-top: -4px; display: none;
}
.search.has-val .search__clr { display: block; }

/* ---------- Category tabs ---------- */
.tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 55;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.tabs__row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs__row::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  /* 视觉高度 28px，用纵向 padding 把触控热区撑到 44px+（Apple HIG）。
     padding 不影响内容尺寸，只扩大可点区域，布局不位移。 */
  padding: 9px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-sub);
  background: #e8e1d4;
  white-space: nowrap;
}
.tab.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.tab__n { opacity: .75; margin-left: 3px; font-size: 11px; }

/* ---------- Meta bar ---------- */
.meta {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px 4px;
  font-size: 12px; color: var(--text-sub);
}
.meta__tag {
  background: var(--brand-tint-2); color: var(--brand-dark);
  border-radius: 4px; padding: 2px 7px; font-weight: 600;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px 12px calc(28px + var(--safe-b));
}
@media (min-width: 480px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(5, 1fr); } }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  /* 渲染开销优化：视口外卡片跳过布局与绘制。
     intrinsic-size 需与实际高度接近（图片 1:1 + 编号行 + 收藏/下载行 ≈ 281px），
     否则视口外卡片被跳过渲染时会造成滚动条长度抖动。 */
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;   /* 取 1:1 与线条 1:1.5 卡片的较高估高，避免视口外卡片致滚动条抖动 */
}
.card__ph {
  position: relative;
  width: 100%;
  padding-top: 100%;           /* 1:1 占位，避免加载抖动 */
  background: var(--brand-tint);
}
.card__ph::after {              /* 骨架屏微光 */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 80%);
  background-size: 200% 100%;
  animation: sk 1.2s linear infinite;
}
.card.is-loaded .card__ph::after { display: none; }
@keyframes sk { 0% { background-position: 140% 0; } 100% { background-position: -40% 0; } }

.card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;         /* 保持原始宽高比，绝不裁切 */
  opacity: 0;
  transition: opacity .22s ease;
}
.card.is-loaded .card__img { opacity: 1; }

/* 线条卡：剖面图（上）+ 三维图（下）叠放同一长方形格内，两图同时可见 */
.card__ph--stack { padding-top: 150%; }        /* 长方形：宽:高 = 1:1.5 */
.card__ph--stack .card__ph-half {
  position: absolute; left: 0; width: 100%; height: 50%;
  box-sizing: border-box; overflow: hidden;
}
.card__ph--stack .card__ph-half:first-child { top: 0; }
.card__ph--stack .card__ph-half:last-child { bottom: 0; border-top: 1px dashed rgba(0,0,0,.12); }
.card__ph--stack .card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.card__ft {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px 7px;
}
.card__codewrap { flex: 1 1 auto; min-width: 0; }
.card__code {
  font-size: 12px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 搜索结果跨系列时标注所属系列，避免同编号混淆（BJ / BJ15） */
.card__cat {
  font-size: 10.5px; color: var(--text-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-top: 1px;
}
.card__q {
  flex: 0 0 auto;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 5px;
  /* 视觉尺寸不变，纵向 padding 扩大触控热区到 44px */
  padding: 10px 9px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  background: #fff;
}
.card__q:active { background: var(--brand); color: #fff; }

/* 第二行操作区：收藏 + 下载。
   卡片净宽约 164px，两等分后每个按钮约 82px，配合 44px 最小高度，
   满足触控热区要求且不会撑破 2 列网格。 */
.card__acts {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px;
  padding: 0 8px 8px;
}
.card__fav,
.card__dl {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 12px;
}
.card__fav {
  border: 1px solid var(--line);
  color: var(--text-mute);
  background: #fff;
  font-size: 17px;
  line-height: 1;
}
.card__fav.is-on {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-tint);
}
.card__dl {
  border: 1px solid var(--brand-light);
  color: var(--brand-dark);
  background: var(--brand-tint);
  font-weight: 600;
}
.card__dl:active { background: var(--brand); color: #fff; }

/* ---------- Empty / loading / end ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--text-mute); font-size: 13px; }
.spin {
  width: 22px; height: 22px; margin: 14px auto;
  border: 2px solid var(--brand-tint-2); border-top-color: var(--brand);
  border-radius: 50%; animation: sp .7s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }
.end { text-align: center; padding: 16px 0 26px; color: var(--text-mute); font-size: 12px; }

/* ---------- Back to top ---------- */
.fab {
  position: fixed;
  right: 14px;
  bottom: calc(18px + var(--safe-b));
  z-index: 70;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(148, 116, 58, .92);
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center; justify-content: center;
}
.fab.is-on { display: flex; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28, 24, 18, .94);
  display: none;
  flex-direction: column;
}
.lb.is-on { display: flex; }
.lb__bar {
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  color: #fff;
}
.lb__code { font-size: 14px; font-weight: 600; }
.lb__cat { font-size: 11.5px; opacity: .65; }
.lb__close {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 17px; line-height: 30px; text-align: center;
}
.lb__stage {
  flex: 1 1 auto;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px;
  overflow: hidden;
}
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb__ld {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 12px;
}
.lb__nav {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px calc(14px + var(--safe-b));
  color: #fff;
}
.lb__btn {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 7px 16px;
  color: #fff;
  font-size: 13px;
}
.lb__btn--q { background: var(--brand); border-color: var(--brand); font-weight: 600; }
.lb__pos { margin-left: auto; font-size: 12px; opacity: .7; }

/* ---------- Bottom sheet ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 110;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
}
.sheet.is-on { display: flex; }
.sheet__mask { position: absolute; inset: 0; background: rgba(30, 25, 18, .5); }
.sheet__box {
  position: relative;
  background: var(--surface);
  border-radius: 14px 14px 0 0;
  max-height: 88vh;
  display: flex; flex-direction: column;
  animation: up .24s ease;
}
@keyframes up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet__hd {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px 10px;
  border-bottom: 1px solid var(--line);
}
.sheet__ttl { font-size: 15px; font-weight: 600; }
.sheet__x { margin-left: auto; font-size: 20px; color: var(--text-mute); line-height: 1; padding: 0 4px; }
.sheet__bd { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 14px; }
.sheet__ft { padding: 10px 14px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); }

/* ---------- Quote form ---------- */
.qi__item { display: flex; gap: 10px; margin-bottom: 12px; }
.qi__thumb {
  width: 72px; height: 72px; flex: 0 0 auto;
  border-radius: 8px; background: var(--brand-tint);
  overflow: hidden;
}
.qi__thumb img { width: 100%; height: 100%; object-fit: contain; }
.qi__meta { flex: 1 1 auto; min-width: 0; }
.qi__code { font-size: 15px; font-weight: 700; }
.qi__cat { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.qi__px { font-size: 11.5px; color: var(--text-mute); margin-top: 4px; }
/* 联系方式为纯展示文本，不可点击 —— 不要加指针样式或"可切换"的视觉暗示，
   否则客户会以为能点，而点击本就不该改变报价模式 */

.frow { margin-bottom: 11px; }
.flab { font-size: 12.5px; color: var(--text-sub); margin-bottom: 5px; display: block; }
.frow__2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.frow__3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.qi__dims .inp { text-align: center; padding: 0 4px; font-size: 13px; }
.inp {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
  background: #fff;
  outline: none;
  -webkit-appearance: none;
}
.inp:focus { border-color: var(--brand); }
.inp--err { border-color: var(--danger); }
.hint { font-size: 11px; color: var(--text-mute); margin-top: 4px; }
.hint--err { color: var(--danger); }

/* ---------- Result ---------- */
.res {
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
  border-radius: 10px;
  padding: 11px 12px;
  margin-top: 4px;
}
.res__row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 3px 0; color: var(--text-sub); }
.res__row b { color: var(--text); font-weight: 600; }
.res__hl {
  margin-top: 8px; padding-top: 9px; border-top: 1px dashed var(--brand-light);
}
.res__hl .res__row { font-size: 13.5px; color: var(--brand-dark); }
.res__hl .res__row b { color: var(--brand-dark); font-size: 16px; font-weight: 700; }
.res__total .res__row b { font-size: 20px; }

/* ---------- 尺寸识别回显（防静默错价）---------- */
.res__recog {
  background: var(--brand-tint-2);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 9px;
}
.res__recog-main {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.45;
}
.res__recog-hint {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-top: 3px;
  line-height: 1.55;
}
.res__recog--warn { background: var(--warn-bg); border-color: var(--warn-line); }
.res__recog--warn .res__recog-main { color: var(--warn-text); }
.res__recog--warn .res__recog-hint { color: var(--warn-text); opacity: .85; }

/* ---------- Notices ---------- */
.notice {
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 10px;
}
.notice--warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text); }
.notice--info { background: var(--brand-tint); border: 1px solid var(--brand-tint-2); color: var(--text-sub); }

/* ---------- Buttons ---------- */
.btn {
  display: block; width: 100%;
  height: 44px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  text-align: center; line-height: 44px;
}
.btn--main { background: var(--brand); color: #fff; }
.btn--main:active { background: var(--brand-dark); }
.btn--ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn--sub { background: var(--brand-tint); color: var(--brand-dark); border: 1px solid var(--brand-tint-2); }
.btn + .btn { margin-top: 8px; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btns .btn + .btn { margin-top: 0; }
.btns--3 { grid-template-columns: 1fr 1fr 1fr; }
.btns--3 .btn { font-size: 13px; height: 42px; line-height: 42px; }

/* ---------- 梁托立方算价（复用现有 .frow/.inp/.btn/.pset 体系）---------- */
/* 推荐尺寸快捷按钮 */
.szchips { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 11px; }
.szchip {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--brand-tint-2);
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1;
}
.szchip:active { background: var(--brand); color: #fff; }

/* 立方单价当前生效展示行 */
.pset__cur {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

/* ---------- Inquiry list ---------- */
.rec {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  margin-bottom: 9px;
  background: #fff;
}
.rec__hd { display: flex; align-items: baseline; gap: 8px; }
.rec__code { font-weight: 700; font-size: 13.5px; }
.rec__time { margin-left: auto; font-size: 11px; color: var(--text-mute); }
.rec__bd { font-size: 12px; color: var(--text-sub); margin-top: 5px; line-height: 1.7; }
.rec__warn { color: var(--warn-text); }

/* ---------- 我的收藏 ---------- */
.fav {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  margin-bottom: 9px;
  background: #fff;
}
.fav__thumb {
  width: 64px;
  height: 64px;
  border-radius: 7px;
  background: var(--brand-tint);
  overflow: hidden;
}
.fav__thumb img { width: 100%; height: 100%; object-fit: contain; }
.fav__meta { min-width: 0; }
.fav__code { font-weight: 700; font-size: 14px; }
.fav__cat { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.fav__time { font-size: 11px; color: var(--text-mute); margin-top: 3px; }
.fav__x {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  min-height: 44px;
  font-size: 12px;
  color: var(--text-sub);
  background: #fff;
  white-space: nowrap;
}
.fav__x:active { background: var(--brand-tint); color: var(--brand-dark); }
/* 操作按钮跨满整行，避免挤在三列里太窄 */
.fav .btns { grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.ft {
  padding: 14px 14px calc(24px + var(--safe-b));
  text-align: center;
  color: var(--text-mute);
  font-size: 11px;
  line-height: 1.7;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 88px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(40, 33, 24, .92);
  color: #fff;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: 84vw;
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Price setting ---------- */
.pset {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  margin-bottom: 12px;
  background: #fbfaf7;
}
.pset__hd { display: flex; align-items: center; font-size: 12.5px; font-weight: 600; margin-bottom: 7px; }
.pset__mode {
  margin-left: auto; font-size: 11px; font-weight: 500;
  background: var(--brand-tint-2); color: var(--brand-dark);
  border-radius: 4px; padding: 2px 7px;
}
.pset__mode--lock { background: #fdecea; color: var(--danger); }
.pset__row { display: flex; align-items: center; gap: 8px; }
.pset__row .inp { flex: 1 1 auto; height: 36px; }
.pset__save { flex: 0 0 auto; padding: 0 14px; height: 36px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 13px; }
.pset__tip { font-size: 11px; color: var(--text-mute); margin-top: 6px; }
.pset__tip--err { color: var(--danger); }

/* ========== H5 首页 6 入口 ========== */
.home {
  background: linear-gradient(180deg, #DAC29F 0%, #EFE3CC 45%, #F8F3E9 80%, #FBF9F4 100%);
  min-height: 100vh;
  padding-bottom: 48px;
}
.home__hero {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  line-height: 0;
}
.home__hero-img {
  width: 100%;
  display: block;
}
.home__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 18px auto 0;
  padding: 0 16px;
}
.home__card {
  background: #fff;
  border: 1px solid rgba(200, 178, 136, 0.30);
  border-radius: 18px;
  padding: 12px 8px 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(122, 100, 64, 0.10);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home__card:active {
  transform: scale(0.96);
  box-shadow: 0 3px 10px rgba(122, 100, 64, 0.14);
}
.home__card--off {
  cursor: default;
  background: #F8F4EC;
  border-color: rgba(200, 178, 136, 0.18);
  box-shadow: none;
}
.home__card--off:active { transform: none; }
.home__imgwrap {
  width: 100%;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.home__img {
  max-width: 100%;
  max-height: 104px;
  object-fit: contain;
}
.home__card--off .home__img {
  filter: grayscale(0.45);
  opacity: 0.5;
}
.home__label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand);
  margin-bottom: 4px;
}
.home__card--off .home__label { color: var(--text-mute); }
.home__soon {
  display: inline-block;
  font-size: 10.5px;
  color: #fff;
  background: linear-gradient(135deg, #C9B48A, #B09868);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 4px;
  line-height: 1.5;
  letter-spacing: 0.5px;
}
.home__dash {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(201,180,138,0), #C9B48A, rgba(201,180,138,0));
  font-size: 0;
  color: transparent;
  overflow: hidden;
}
.home__card--off .home__dash { display: none; }
.hdr__home-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.hdr__home-btn .hdr__brand {
  transition: opacity 0.15s;
}
.hdr__home-btn:active .hdr__brand {
  opacity: 0.65;
}

/* ========== 算价结果：面积/单价/单件价 三列水平网格 ========== */
.res__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.res__cell {
  background: #fff;
  border: 1px solid var(--brand-tint-2);
  border-radius: 8px;
  padding: 9px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.res__cell-lab { font-size: 11px; color: var(--text-mute); }
.res__cell-val { font-size: 14px; font-weight: 700; color: var(--text); }
.res__cell--hl .res__cell-val { color: var(--brand); font-size: 16px; }
.res__note { font-size: 11px; color: var(--text-sub); margin-top: 7px; text-align: center; }
.res__total {
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid var(--brand-light);
}
.res__total .res__row { font-size: 14px; color: var(--brand-dark); font-weight: 600; }
.res__total .res__row b { color: var(--danger); font-size: 19px; }

/* ========== 防抄袭：图片与价格区禁止选择/拖拽 ========== */
img,
.res, .res__grid, .pset, .qi__px, .qi__code, .contact__name {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.card__img, .lb__img, .qi__thumb img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* ========== 展示层品牌水印（截图/录屏带品牌，非保护原图文件） ========== */
/* 网格缩略图角标 */
.card__ph::before {
  content: "艺诺新材";
  position: absolute;
  right: 5px; bottom: 5px;
  z-index: 3;
  font-size: 10px;
  color: rgba(148, 116, 58, .6);
  background: rgba(255, 255, 255, .55);
  border-radius: 4px;
  padding: 1px 5px;
  pointer-events: none;
}
/* 灯箱大图四角平铺水印 */
.lb__stage { position: relative; }
.lb__wm {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}
.lb__wm .wm {
  position: absolute;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  color: rgba(148, 116, 58, .6);
  text-shadow: 0 1px 2px rgba(255, 255, 255, .65);
  white-space: nowrap;
  transform: rotate(-18deg);
}
.lb__wm .wm:nth-child(1) { top: 12%; left: 7%; }
.lb__wm .wm:nth-child(2) { top: 12%; right: 7%; text-align: right; }
.lb__wm .wm:nth-child(3) { bottom: 16%; left: 7%; }
.lb__wm .wm:nth-child(4) { bottom: 16%; right: 7%; text-align: right; }

/* 线条数量：根数 / 米数 两个窄输入（各容纳 4 位数即可） */
.qi__dims--num { display: flex; gap: 10px; justify-content: flex-start; }
.qi__dims--num .inp { flex: 0 0 auto; width: 104px; text-align: center; }
