.quote-page {
  --quote-brand: #1B3F8D;
  --quote-brand-strong: #153170;
  --quote-brand-tint: #E8EDF7;
  --quote-ink: #1a1a1a;
  --quote-ink-2: #5a5e73;
  --quote-line: #dedfe8;
  --quote-panel: #f2f3f6;
  --quote-bg: #ffffff;
  --quote-save: #0a7f4f;
  --quote-whatsapp: #1da851;
  --quote-warn-line: #886033;
  --quote-bar-height: 64px;
  background: var(--quote-bg);
  color: var(--quote-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  padding-bottom: var(--quote-bar-height);
}

.quote-page .site-head { position: relative; }
.quote-page .site-head .site-top.topbar-min { background: var(--quote-brand-strong); }
.quote-page .inside-content { background: var(--quote-bg); }
.quote-page .qq-wrap { padding-block: 24px 40px; }

.quote-page .quote-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px 24px;
}

.quote-page .quote-heading { min-width: 0; }
.quote-page .quote-heading h1 {
  color: var(--quote-ink);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.quote-page .quote-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.quote-page .quote-capsules li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--quote-panel);
  color: var(--quote-ink-2);
  font-size: 13px;
  font-weight: 600;
}

.quote-page .quote-config > .nq {
  --bg: var(--quote-panel);
  --card: var(--quote-bg);
  --ink: var(--quote-ink);
  --ink-2: var(--quote-ink-2);
  --line: var(--quote-line);
  --good: var(--quote-save);
  width: 100%;
  padding: 0 14px 24px;
  border-radius: 16px;
  font-family: inherit;
  container-type: inline-size;
}

.quote-page .nq .step-head { justify-content: flex-start; flex-wrap: wrap; }
.quote-page .nq .step-num { background: var(--quote-brand); color: var(--quote-bg); }
.quote-page .nq .pick { min-width: 0; overflow-wrap: anywhere; }
.quote-page .nq .pick.on { border-color: var(--quote-brand); box-shadow: inset 0 0 0 .5px var(--quote-brand); }
.quote-page .nq .rec-tag { color: var(--quote-bg); }
.quote-page .nq .b3e-look,
.quote-page .nq .quote-followup { margin-top: 22px; }
.quote-page .nq :is(#calcBtn, #qtyChips, #tierStep)[hidden] { display: none; }

.quote-page .quote-note {
  color: var(--quote-ink-2);
  font-size: 13px;
  margin: 8px 0;
}

.quote-page .b3e-aside .chip.on {
  background: var(--quote-brand);
  border-color: var(--quote-brand);
  color: var(--quote-bg);
}

.quote-page .b3e-aside #b3eStage[data-studio]:not(.b3e-zoomed)[data-bg="studio"] {
  background: #f5f7fa;
}

.quote-page .quote-tier-scroll { overflow-x: auto; }
.quote-page .quote-tiers {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  white-space: nowrap;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.quote-page .quote-tiers caption {
  caption-side: top;
  text-align: start;
  white-space: normal;
  color: var(--quote-ink-2);
  padding-bottom: 8px;
}

.quote-page .quote-tiers :is(th, td) {
  padding: 8px;
  border-bottom: 1px solid var(--quote-line);
  text-align: start;
}

.quote-page .quote-tiers thead { background: var(--quote-panel); }
.quote-page .quote-tiers tbody tr:nth-child(n+2):nth-child(-n+5) td:last-child {
  color: var(--quote-save);
  font-weight: 600;
}

.quote-page .quote-tiers tr[data-quote-qty],
.quote-page .quote-tiers tr[data-quote-qty] button { cursor: pointer; }

.quote-page .quote-tiers tr[data-quote-qty] button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.quote-page .quote-tiers tr.is-selected > * { background: var(--quote-brand-tint); }
.quote-page .quote-tiers tbody th { position: relative; }
.quote-page .quote-tiers tr.is-selected > th::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: var(--quote-brand);
  content: "";
}

.quote-page .quote-tiers button:focus-visible,
.quote-page .quote-price-cta:focus-visible {
  outline: 2px solid var(--quote-brand);
  outline-offset: 2px;
}

.quote-page .quote-current-tier {
  color: var(--quote-ink-2);
  font-variant-numeric: tabular-nums;
}

.quote-page .quote-tiers input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--quote-line);
  border-radius: 6px;
  background: var(--quote-bg);
  color: var(--quote-ink);
  font: inherit;
}

.quote-page .nq .rush-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  text-align: start;
}

.quote-page .quote-standard,
.quote-page .quote-rush-label { font-size: 13px; color: var(--quote-ink-2); }
.quote-page .quote-standard:has(+ #rushChip:not(.on)) { color: var(--quote-ink); font-weight: 700; }
.quote-page .nq .rush-state:empty,
.quote-page .nq #rushChip small { display: none; }

.quote-page .nq .quote-price-bar {
  position: fixed;
  inset-inline: auto;
  bottom: 0;
  width: calc(100cqw + 28px);
  margin-inline: -14px;
  min-height: var(--quote-bar-height);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 50;
  border: 0;
  border-top: 1px solid var(--quote-line);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -5px 16px rgba(26, 26, 26, .08);
  background: var(--quote-bg);
  color: var(--quote-ink-2);
  font-size: 13px;
}

.quote-page .nq .quote-price-bar :is(.s-unit, .s-total) b {
  color: var(--quote-ink);
  font-size: 17px;
}

.quote-page .nq .quote-price-bar.result-in-view { justify-content: flex-end; }
.quote-page .nq .quote-price-bar.result-in-view :is(.s-unit, .s-total),
.quote-page .nq .quote-price-bar .s-unit[hidden],
.quote-page .nq.gated .yfq-email,
.quote-page .nq .result.no-price :is(.yfq-email, #waBtn, #saveBtn, #saveMsg) { display: none; }

.quote-page .quote-price-cta {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--quote-brand);
  color: var(--quote-bg);
  font: inherit;
  font-weight: 700;
  flex-shrink: 0;
  cursor: pointer;
}

.quote-page .quote-price-cta:active { background: var(--quote-brand-strong); }
.quote-page .quote-price-cta:disabled { opacity: .7; }

@media (min-width: 901px) {
  .quote-page .b3e-wide .quote-config {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr;
  }

  .quote-page .b3e-wide .quote-heading { grid-area: 1 / 2; }
  .quote-page .b3e-wide .b3e-aside { grid-area: 1 / 1 / span 2; }
  .quote-page .b3e-wide .quote-config > .nq { grid-area: 2 / 2; }
  .quote-page .b3e-aside .b3e-card { top: 40px; }
}

@media (max-width: 900px) {
  .quote-page .quote-heading h1 { font-size: 24px; }
  /* Mobile fixed header (topbar 36px + nav 58px = 94px) overlays content from y=0:
     clear it so the H1 is fully visible at load (bed-verified 2026-11-30). */
  .quote-page .qq-wrap { padding-top: 118px; }
  .quote-page .b3e-aside #b3eStage[data-studio]:not(.b3e-zoomed) {
    height: 45vh;
    min-height: 0;
  }

  html body.quote-page { padding-bottom: var(--quote-bar-height); }
  .quote-page .nq .quote-price-bar {
    display: flex !important;
    inset-inline: 0;
    width: auto;
    margin-inline: 0;
    height: var(--quote-bar-height);
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    border-radius: 0;
  }

  /* 锁定时手机栏不断价：遮罩价本身不换行，14px 在 390px 屏一行放得下（床验 2026-11-30）；窄屏仍可在词间换行，但价不断。 */
  .quote-page .nq .quote-price-bar :is(.s-unit, .s-total) b { font-size: 14px; white-space: nowrap; }

  .quote-page :is(.mobile-bottom-nav, .wa-float, #yfqWaBar) { display: none !important; }
}
