/* ==========================================================================
   日化源头货盘 · 选品与询价中心 — 原生零依赖高定样式表
   设计融合：Lusion 首屏舞台与明暗叙事 + Bruno 三站渐进引路 + Lando 同品贯穿 + 混源商品陈列规范
   严禁外部字体与境外 CDN；全面适配 prefers-reduced-motion 与移动端触控
   ========================================================================== */

:root {
  color-scheme: light;
  --bg-paper: #f6f3ec;
  --bg-elevated: #fdfbf7;
  --pedestal: #efece3;
  --pedestal-scene: #faf8f3;
  --ink: #18201d;
  --ink-secondary: #525b56;
  --ink-muted: #7a837d;
  --line: #dfd9cc;
  --line-strong: #c9c1b0;

  /* 深墨绿舞台与暖铜提示色（克制双色，零 AI 紫青渐变） */
  --pine-deep: #132824;
  --pine-mid: #1c3832;
  --pine-line: rgba(235, 228, 212, 0.16);
  --cream-ink: #f4efe4;
  --cream-muted: #b9c4be;

  --copper: #b65328;
  --copper-hover: #9b431d;
  --copper-soft: #f7e9e1;
  --gold-tag: #e7bc79;
  --ok-green: #1e6b4b;
  --ok-soft: #e3f2eb;
  --danger: #b42318;
  --danger-soft: #fdeceb;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 12px 34px rgba(20, 32, 28, 0.06);
  --shadow-float: 0 18px 48px rgba(16, 28, 24, 0.18);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: transform 0.16s var(--ease-spring), background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

button:active:not(:disabled) {
  transform: scale(0.97);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ================= 顶部固定导航（熟手直达入口） ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 243, 236, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--pine-deep);
  color: var(--gold-tag);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
}

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

.nav-link {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  background: rgba(24, 32, 29, 0.06);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cmdk-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--ink-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.cmdk-trigger:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.cmdk-kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--pedestal);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
}

.header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--pine-deep);
  color: var(--cream-ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cart-btn:hover {
  background: var(--pine-mid);
}

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

/* ================= 首屏舞台（Lusion 构图：一句立场 + 真实货盘舞台） ================= */
.hero-section {
  padding: clamp(28px, 4.5vw, 56px) 0 clamp(28px, 4vw, 44px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 0;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--copper-soft);
  color: var(--copper);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
}

.hero-title {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 18px 0 16px;
  font-weight: 750;
  color: var(--ink);
}

.hero-lead {
  font-size: clamp(15px, 1.4vw, 17.5px);
  color: var(--ink-secondary);
  max-width: 540px;
  margin: 0 0 26px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 22px rgba(182, 83, 40, 0.24);
}

.btn-primary:hover {
  background: var(--copper-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: #fff;
}

/* Bruno 渐进引路三站路标 */
.bruno-wayfinder {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.wayfinder-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.wayfinder-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.way-step {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-paper);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.way-step:hover,
.way-step.is-current {
  border-color: var(--copper);
  background: #fff;
}

.way-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--copper);
}

.way-label {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}

.way-desc {
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* Lusion 实物主舞台（四角十字标尺 + 指针柔光 + 瓶盖瓶底完整陈列） */
.hero-stage-card {
  position: relative;
  background: var(--pedestal);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 490px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  --mx: 50%;
  --my: 45%;
}

.hero-stage-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.72), transparent 70%);
  pointer-events: none;
}

.stage-cross {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  opacity: 0.65;
  pointer-events: none;
  line-height: 1;
}
.stage-cross.tl { top: 12px; left: 14px; }
.stage-cross.tr { top: 12px; right: 14px; }
.stage-cross.bl { bottom: 12px; left: 14px; }
.stage-cross.br { bottom: 12px; right: 14px; }

.stage-top-meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 8px;
}

.stage-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(24, 32, 29, 0.08);
  color: var(--ink);
}

.stage-cat-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pine-deep);
  background: rgba(255, 255, 255, 0.72);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.stage-figure {
  position: relative;
  height: 270px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.stage-figure picture,
.stage-figure img {
  max-width: 86%;
  max-height: 256px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.35s var(--ease-spring);
}

.stage-figure.is-white img {
  mix-blend-mode: multiply;
}

.stage-figure:hover img {
  transform: translateY(-4px) scale(1.025);
}

.stage-info-bar {
  position: relative;
  background: rgba(253, 251, 247, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stage-prod-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 2px;
}

.stage-prod-sub {
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin: 0;
}

.stage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-stage-detail {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.btn-stage-add {
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--pine-deep);
  color: var(--cream-ink);
  font-size: 13px;
  font-weight: 600;
}

.btn-stage-add:hover {
  background: var(--copper);
  color: #fff;
}

.stage-thumbs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.stage-thumb-btn {
  height: 54px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-thumb-btn.is-active {
  background: #fff;
  border-color: var(--copper);
  box-shadow: 0 0 0 1px var(--copper);
}

.stage-thumb-btn img {
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* ================= 品类与场景快捷直达带 ================= */
.quick-cats-section {
  padding: 12px 0 36px;
}

.section-head-compact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head-compact h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
}

.section-head-compact span {
  font-size: 13px;
  color: var(--ink-muted);
}

.cat-bento-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.cat-bento-card {
  text-align: left;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 104px;
}

.cat-bento-card:hover {
  border-color: var(--pine-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.cat-bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-bento-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--copper);
  background: var(--copper-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

.cat-bento-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

/* ================= Lando Norris 暗色叙事带：同一件真实产品走完三幕 ================= */
.story-band {
  background: var(--pine-deep);
  color: var(--cream-ink);
  padding: clamp(36px, 5vw, 60px) 0;
  border-top: 1px solid var(--pine-line);
  border-bottom: 1px solid var(--pine-line);
}

.story-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.story-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-tag);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.story-title {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.18;
  margin: 0;
  font-weight: 700;
}

.story-Sample-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--pine-line);
  color: var(--cream-muted);
  font-size: 12.5px;
}

.story-chip:hover,
.story-chip.is-active {
  background: var(--gold-tag);
  border-color: var(--gold-tag);
  color: var(--pine-deep);
  font-weight: 700;
}

.story-frames {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-frame {
  background: var(--pine-mid);
  border: 1px solid var(--pine-line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.frame-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-tag);
}

.frame-visual-box {
  background: rgba(244, 239, 228, 0.96);
  color: var(--ink);
  border-radius: 10px;
  padding: 14px;
  min-height: 136px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.frame-visual-box img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}

.frame-mini-meta b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.frame-mini-meta span {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--copper-soft);
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 5px;
}

.frame-mini-meta p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.frame-title {
  font-size: 16.5px;
  margin: 0 0 4px;
  font-weight: 650;
}

.frame-desc {
  margin: 0;
  font-size: 13px;
  color: var(--cream-muted);
}

.story-live-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.story-live-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-qty-input {
  width: 92px;
  padding: 6px 9px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
}

.story-note-input {
  width: 100%;
  padding: 6px 9px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 12.5px;
}

.story-preview-snippet {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  color: var(--ink);
  width: 100%;
}

.btn-story-commit {
  margin-top: 6px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--gold-tag);
  color: var(--pine-deep);
  font-weight: 700;
  font-size: 13.5px;
}

.btn-story-commit:hover {
  background: #f2cb8c;
}

/* ================= 产品目录主工作区 ================= */
.story-band,
.catalog-section,
.demand-section,
.filter-console {
  scroll-margin-top: 84px;
}

.catalog-section {
  padding: clamp(40px, 5vw, 68px) 0 36px;
}

.catalog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.catalog-title {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.catalog-sub {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 14px;
}

/* 搜索与筛选工具栏 */
.filter-console {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}

.search-bar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.search-input-wrap {
  position: relative;
  flex: 1 1 280px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 11px 38px 11px 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 14.5px;
}

.search-input:focus {
  border-color: var(--pine-deep);
}

.search-clear-x {
  position: absolute;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pedestal);
  color: var(--ink-secondary);
  font-size: 14px;
}

.search-clear-x[hidden] {
  display: none;
}

.filter-status-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.btn-reset-filters {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--copper-soft);
  color: var(--copper);
  font-size: 13px;
  font-weight: 600;
}

.btn-reset-filters[hidden] {
  display: none;
}

/* 滑动胶囊分类栏（Sliding Pill Glider） */
.glider-scroll-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 12px;
}
.glider-scroll-wrap::-webkit-scrollbar {
  display: none;
}

.cat-glider-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: var(--pedestal);
  border-radius: 999px;
  min-width: max-content;
}

.cat-glider-pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: 88px;
  border-radius: 999px;
  background: var(--pine-deep);
  transition: transform 0.32s var(--ease-spring), width 0.32s var(--ease-spring);
  pointer-events: none;
}

.cat-tab-btn {
  position: relative;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.cat-tab-btn.is-active {
  color: var(--cream-ink);
}

.cat-tab-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  opacity: 0.78;
  margin-left: 3px;
}

/* 用途场景细分标签 */
.scene-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.scene-row-label {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-right: 4px;
}

.scene-chip {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.scene-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.scene-chip.is-active {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
  font-weight: 600;
}

/* 商品网格与统一陈列台（不裁切瓶盖瓶底） */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}

/* 注意：pedestal 承载层不创建独立 z-index 层叠上下文，确保白底图 multiply 自然融入亚麻暖石底座 */
.card-pedestal {
  position: relative;
  aspect-ratio: 1 / 1.02;
  background: var(--pedestal);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-pedestal.is-scene {
  background: var(--pedestal-scene);
  padding: 14px;
}

.card-pedestal picture {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-pedestal img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s var(--ease-spring);
}

.card-pedestal.is-white img {
  mix-blend-mode: multiply;
}

.card-pedestal.is-scene img {
  border-radius: 8px;
  border: 1px solid rgba(24, 32, 29, 0.08);
  background: #fff;
}

.product-card:hover .card-pedestal img {
  transform: scale(1.035);
}

.card-code-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(253, 251, 247, 0.86);
  color: var(--ink-muted);
  border: 1px solid rgba(24, 32, 29, 0.07);
}

.card-in-cart-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ok-green);
  color: #fff;
}

/* 图片加载异常降级占位 */
.img-fallback-box {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 12px;
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.card-cat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}

.card-spec-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--pine-deep);
  background: var(--pedestal);
  padding: 2px 8px;
  border-radius: 6px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-variant {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--pedestal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-price-label {
  font-size: 13px;
  font-weight: 650;
  color: var(--copper);
}

.card-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-card-detail {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-secondary);
  background: #fff;
}

.btn-card-detail:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-card-add {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--pine-deep);
  color: var(--cream-ink);
  font-size: 12.5px;
  font-weight: 600;
}

.btn-card-add:hover {
  background: var(--copper);
  color: #fff;
}

.btn-card-add.is-added {
  background: var(--ok-green);
  color: #fff;
}

/* 无结果提示 */
.empty-catalog-state {
  background: var(--bg-elevated);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
}

.empty-catalog-state[hidden] {
  display: none;
}

.empty-catalog-state h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.empty-catalog-state p {
  margin: 0 0 18px;
  color: var(--ink-secondary);
  font-size: 14px;
}

/* ================= 客户需求整理区（真实可用，绝不伪造已提交后台） ================= */
.demand-section {
  padding: clamp(36px, 5vw, 64px) 0 clamp(80px, 8vw, 110px);
  border-top: 1px solid var(--line);
}

.demand-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

.demand-card,
.demand-output-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-soft);
}

.honest-mode-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--copper-soft);
  color: #7c3415;
  font-size: 13px;
  margin-bottom: 20px;
}

.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  margin-bottom: 6px;
}

.req-star {
  color: var(--copper);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 14px;
}

.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.field-error {
  margin-top: 4px;
  font-size: 12px;
  color: var(--danger);
}

.field-error[hidden] {
  display: none;
}

.custom-tags-check {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.check-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.check-pill.is-checked {
  background: var(--pine-deep);
  border-color: var(--pine-deep);
  color: var(--cream-ink);
  font-weight: 600;
}

.synced-items-preview {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--pedestal);
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.demand-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.demand-sheet-box {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 240px;
  max-height: 420px;
  overflow-y: auto;
  margin: 12px 0 14px;
}

.contact-status-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-secondary);
}

/* ================= 页脚（芯途科技制作署名，明确区分非生产厂家） ================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: #efebe1;
  padding: 28px 0 96px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.maker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--ink);
}

/* ================= 底部悬浮询价灵动岛（Floating Dock） ================= */
.floating-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 45;
  background: rgba(19, 40, 36, 0.95);
  color: var(--cream-ink);
  border: 1px solid rgba(231, 188, 121, 0.35);
  border-radius: 999px;
  padding: 8px 10px 8px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(12px);
  max-width: calc(100vw - 24px);
}

.floating-dock[hidden] {
  display: none;
}

.dock-avatars {
  display: flex;
  align-items: center;
}

.dock-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pedestal);
  border: 2px solid var(--pine-deep);
  margin-left: -8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.dock-avatar:first-child {
  margin-left: 0;
}

.dock-avatar img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.dock-summary {
  font-size: 13.5px;
  white-space: nowrap;
}

.dock-open-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

/* ================= 弹窗与抽屉通用遮罩（从 scale 0.96 入场） ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(16, 24, 21, 0.54);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop[hidden] {
  display: none;
}

/* 产品详情弹窗 */
.detail-dialog {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-float);
  animation: modalIn 0.22s var(--ease-spring);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.dialog-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 2;
}

.btn-icon-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pedestal);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--ink);
}

.btn-icon-close:hover {
  background: var(--line);
}

.detail-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  padding: 22px;
}

.detail-media-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-main-stage {
  aspect-ratio: 1 / 1.05;
  background: var(--pedestal);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
}

.detail-main-stage.is-zoomed {
  cursor: zoom-out;
}

.detail-main-stage img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.detail-main-stage.is-white img {
  mix-blend-mode: multiply;
}

.detail-main-stage.is-zoomed img {
  transform: scale(1.38);
  mix-blend-mode: normal;
}

.detail-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 11.5px;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 999px;
}

.detail-gallery-strip {
  display: flex;
  gap: 8px;
}

.detail-gallery-strip[hidden] {
  display: none;
}

.detail-gal-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
}

.detail-gal-btn.is-active {
  border-color: var(--copper);
  color: var(--copper);
  font-weight: 700;
}

.detail-meta-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.meta-cell {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
}

.meta-cell small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.meta-cell strong {
  font-size: 14px;
  color: var(--ink);
}

.detail-notes-box {
  background: var(--pedestal);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.detail-inquiry-box {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px;
}

.qty-control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.stepper-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.stepper-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--pedestal);
  font-weight: 700;
}

.stepper-input {
  width: 68px;
  height: 34px;
  border: none;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
}

.tbd-toggle-btn {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  background: #fff;
}

.tbd-toggle-btn.is-tbd {
  background: var(--copper-soft);
  border-color: var(--copper);
  color: var(--copper);
  font-weight: 700;
}

/* ================= 询价清单侧边抽屉 ================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(16, 24, 21, 0.5);
  display: flex;
  justify-content: flex-end;
}

.drawer-backdrop[hidden] {
  display: none;
}

.inquiry-drawer {
  width: min(500px, 100vw);
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-float);
  animation: drawerSlide 0.25s var(--ease-spring);
}

@keyframes drawerSlide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
}

.drawer-item-pic {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--pedestal);
  padding: 6px;
  display: grid;
  place-items: center;
}

.drawer-item-pic img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.drawer-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.drawer-item-name {
  font-weight: 700;
  font-size: 14.5px;
}

.btn-remove-item {
  font-size: 12px;
  color: var(--ink-muted);
  padding: 2px 6px;
}

.btn-remove-item:hover {
  color: var(--danger);
}

.drawer-footer {
  border-top: 1px solid var(--line);
  padding: 14px 20px 18px;
  background: var(--bg-paper);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* 手动复制三级降级弹框 */
.manual-copy-box {
  background: #fff;
  border: 1px solid var(--copper);
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
}

.manual-copy-box[hidden] {
  display: none;
}

.manual-copy-box textarea {
  width: 100%;
  height: 110px;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ⌘K 快速检索面板 */
.cmdk-dialog {
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  width: min(600px, 100%);
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.cmdk-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.cmdk-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15.5px;
  outline: none;
}

.cmdk-results {
  overflow-y: auto;
  padding: 8px;
  max-height: 380px;
}

.cmdk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.cmdk-row:hover,
.cmdk-row.is-active {
  background: var(--pedestal);
}

.cmdk-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cmdk-row-left img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
}

/* 抛物线飞入圆牌与顶部轻提示 */
.fly-token {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--copper);
  box-shadow: var(--shadow-soft);
  z-index: 90;
  pointer-events: none;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.fly-token img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.toast-stack {
  position: fixed;
  top: 78px;
  right: 20px;
  z-index: 85;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-msg {
  background: var(--pine-deep);
  color: var(--cream-ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  box-shadow: var(--shadow-float);
  border-left: 4px solid var(--gold-tag);
}

/* ================= 响应式布局（平板与手机端体验） ================= */
@media (max-width: 1060px) {
  .hero-grid,
  .demand-layout,
  .detail-body-grid {
    grid-template-columns: 1fr;
  }
  .cat-bento-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .story-frames {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 58px;
    gap: 10px;
  }
  .header-nav,
  .cmdk-kbd,
  .brand-sub,
  .cmdk-trigger span {
    display: none;
  }
  .cmdk-trigger {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }
  .header-cart-btn {
    padding: 7px 12px;
    font-size: 12.5px;
    gap: 6px;
  }
  .brand-title {
    font-size: 14.5px;
  }
  .wayfinder-steps {
    grid-template-columns: 1fr;
  }
  .cat-bento-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .card-pedestal {
    padding: 12px;
  }
  .card-body {
    padding: 10px 10px 12px;
    gap: 6px;
  }
  .card-cat-line {
    font-size: 11px;
  }
  .card-cat-line > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .card-spec-badge {
    font-size: 11px;
    padding: 1px 6px;
    flex-shrink: 0;
  }
  .card-title {
    font-size: 14px;
  }
  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .card-btn-group {
    width: 100%;
    gap: 5px;
  }
  .btn-card-detail {
    padding: 6px 8px;
    font-size: 12px;
    white-space: nowrap;
  }
  .btn-card-add {
    flex: 1;
    padding: 6px 8px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
  }
  .form-grid-two,
  .drawer-btn-grid {
    grid-template-columns: 1fr;
  }
  .stage-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stage-info-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .stage-actions {
    width: 100%;
  }
  .btn-stage-detail,
  .btn-stage-add {
    flex: 1;
    text-align: center;
  }
}

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