/* Warp design system — authored in-house for Asquad B2B export templates.
   Design DNA: Warp DESIGN.md — warm near-black canvas, Warm Parchment (#faf9f6) text,
   almost-monochromatic warm grays (no bold accent colour), Earth Gray (#353534) pill
   buttons, uppercase editorial micro-labels (letter-spacing 1.4–2.4px), semi-transparent
   borders instead of shadows, terminal/monospace accents. Matter is a proprietary font;
   per DESIGN.md fallback chain we substitute Inter (geometric sans) for body/display and
   Geist Mono for the terminal/code accents. NOT a copy of Warp's content — design
   language only. Terminal-geek aesthetic for tools / hardware / machinery / automation. */

:root {
  /* Warm dark canvas — earthy near-black, never cold/blue */
  --bg: #16140f;
  --bg-2: #1c1a14;
  --panel: rgba(255, 255, 255, 0.022);
  --veil: rgba(255, 255, 255, 0.04);
  --veil-2: rgba(255, 255, 255, 0.06);

  /* Text — warm parchment, never pure white */
  --parchment: #faf9f6;
  --ash: #afaeac;       /* body / button text */
  --stone: #868584;     /* secondary / muted labels */
  --muted: #666469;     /* tertiary, link undertone */

  /* Interactive surfaces */
  --earth: #353534;     /* pill button bg */
  --earth-hi: #454545;  /* hover */
  --charcoal: #454545;

  /* Borders — mist, semi-transparent (depth via border, not shadow) */
  --mist: rgba(226, 226, 226, 0.16);
  --mist-2: rgba(226, 226, 226, 0.26);
  --mist-3: rgba(226, 226, 226, 0.35);

  --maxw: 1180px;
  --radius-card: 12px;
  --radius-img: 8px;
  --radius-pill: 50px;

  --sans: "Inter", "Matter Regular Placeholder", system-ui, -apple-system, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "Geist Mono", "Matter Mono Regular Placeholder", ui-monospace, "SF Mono", Menlo,
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--parchment);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Warm faint grain / vignette to evoke the "campfire in a forest" warmth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(122, 96, 60, 0.10), transparent 60%),
    radial-gradient(900px 700px at 88% 8%, rgba(90, 80, 64, 0.06), transparent 55%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ── Editorial micro-label ── uppercase, wide tracking, mono ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--stone);
  line-height: 1.35;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--ash);
  opacity: 0.7;
}

/* ── Typography ── Matter-style: regular weight dominance, negative tracking ── */
h1, h2, h3, h4 { font-weight: 400; color: var(--parchment); text-wrap: balance; }
h1 { font-size: 72px; line-height: 1.0; letter-spacing: -2.2px; }
h2 { font-size: 48px; line-height: 1.12; letter-spacing: -0.96px; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.4px; }
h4 { font-size: 22px; line-height: 1.14; letter-spacing: -0.2px; }

p { color: var(--ash); }

/* ── Buttons ── dark pill, restrained, no bright CTA ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--mist-2);
  background: transparent;
  color: var(--ash);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.btn:hover { border-color: var(--mist-3); color: var(--parchment); }

.btn-primary {
  background: var(--earth);
  border-color: var(--earth);
  color: var(--ash);
}
.btn-primary:hover { background: var(--earth-hi); border-color: var(--earth-hi); color: var(--parchment); }

.btn .key { font-family: var(--mono); font-size: 13px; opacity: 0.65; letter-spacing: 0.5px; }

/* ── Navigation ── sticky, warm dark, parchment brand ── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 20, 15, 0.78);
  backdrop-filter: saturate(1.1) blur(14px);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
  border-bottom: 1px solid var(--mist);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono);
  font-size: 17px; font-weight: 400; letter-spacing: -0.2px;
  color: var(--parchment);
}
.brand img { height: 26px; width: auto; }
.brand .mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid var(--mist-2);
  background: var(--veil-2);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; color: var(--ash);
}
.brand .mark::before { content: "›_"; }

.navlinks { display: flex; gap: 30px; }
.navlinks a {
  font-size: 16px; color: var(--stone);
  letter-spacing: 0; transition: color 0.16s ease;
}
.navlinks a:hover { color: var(--parchment); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ── Hero ── two states (Shopify image-banner):
   · .hero--media → full-bleed <img> + ONE uniform veil, copy bottom-left
   · .hero--plain → clean warm-dark canvas: no orb / blob / glow decoration of its own.
     刻意**不**给它不透明底色 —— 全站的暖光晕 body::before 是模板原生的极克制底纹
     （DESIGN.md 的营地篝火 DNA），不是 hero 装饰；盖住它会让首屏丢掉品牌签名，
     且那层是 fixed 锚在视口，滚过 hero 后会从视口顶部露出来造成位移穿帮。
     hero 与 body 同色，本就无需再铺一层。终端窗口负责讲故事。
   Both states share height + bottom-left alignment. ── */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  min-height: 82vh;
}
.hero-inner { width: 100%; padding-top: 120px; padding-bottom: 76px; }
.hero .eyebrow { margin-bottom: 26px; }

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media .hero-img { width: 100%; height: 100%; object-fit: cover; }
/* uniform veil (Dawn image-overlay-opacity), pushed to .42 so parchment text
   holds up on a warm dark template — still ONE flat layer, no bottom gradient */
.hero--media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 9, 6, 0.42);
}
.hero h1 { max-width: 16ch; }
.hero .sub {
  margin-top: 26px;
  max-width: 56ch;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.2px;
  color: var(--ash);
}
/* over photography the warm grays lose contrast — lift copy toward parchment.
   ⚠️ 这组覆盖必须排在 .hero .sub 之后：`.hero--media .sub` 与 `.hero .sub` 特异度
   同为 (0,2,0)，同分时靠后者胜出；写在前面等于整条规则从不生效。 */
.hero--media .strip { border-top-color: var(--mist-2); }
.hero--media .eyebrow { color: var(--ash); }
.hero--media .sub,
.hero--media .strip .chips span { color: var(--parchment); }
.hero--media .strip .lbl,
.hero--media .cta-note { color: var(--ash); }
.cta-row { margin-top: 38px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cta-note { font-family: var(--mono); font-size: 13px; color: var(--stone); letter-spacing: 0.3px; }

/* Terminal window — the signature visual */
.terminal {
  margin-top: 64px;
  border: 1px solid var(--mist-2);
  border-radius: 14px;
  /* flat tint — the plain hero must read as a clean solid canvas (playbook §1) */
  background: var(--bg-2);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--mist);
  background: rgba(255,255,255,0.02);
}
.term-dots { display: flex; gap: 7px; }
.term-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--earth-hi); }
.term-title { font-family: var(--mono); font-size: 12px; color: var(--stone); letter-spacing: 0.8px; }
.term-body {
  padding: 26px 24px 30px;
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ash);
  letter-spacing: -0.1px;
}
.term-body .ln { display: block; white-space: pre-wrap; }
.term-body .pr { color: var(--stone); }
.term-body .pr::before { content: "$ "; color: var(--muted); }
.term-body .ok { color: var(--parchment); }
.term-body .cm { color: var(--muted); }
.term-body .cursor {
  display: inline-block; width: 8px; height: 16px;
  background: var(--ash); vertical-align: -2px; margin-left: 2px;
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Trust strip ── monospace capability chips ── */
.strip { margin-top: 56px; border-top: 1px solid var(--mist); padding-top: 26px; }
.strip .lbl {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 2.4px; color: var(--muted); margin-bottom: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  font-family: var(--mono); font-size: 13px; color: var(--ash);
  letter-spacing: 0.2px;
  padding: 7px 14px;
  border: 1px solid var(--mist); border-radius: 6px;
  background: var(--veil);
}

/* ── Section scaffold ── generous editorial pacing ── */
.block { padding: 92px 0; }
/* 陈列区块外壳恒渲染、内部 gate：卖家没填时 section 渲染成空壳，
   收掉它的垂直 padding，否则页面上会留一段无来由的空白（playbook §3）。 */
.block:empty { padding: 0; }
.sec-head { max-width: 62ch; margin-bottom: 52px; }
.sec-head .eyebrow { margin-bottom: 20px; }
.sec-head h2 { margin-bottom: 18px; }
.sec-head p { font-size: 19px; line-height: 1.5; color: var(--stone); max-width: 56ch; }

/* ── Grids ── */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }

/* ── Capability cards ── bordered, flat (depth via border) ── */
.card {
  border: 1px solid var(--mist);
  border-radius: var(--radius-card);
  background: var(--panel);
  padding: 30px 28px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.card:hover { border-color: var(--mist-2); background: var(--veil); }
.card .num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px;
  color: var(--muted); margin-bottom: 22px; text-transform: uppercase;
}
.card .ic {
  width: 40px; height: 40px; margin-bottom: 20px;
  border-radius: 9px; border: 1px solid var(--mist);
  display: grid; place-items: center; color: var(--ash);
  background: var(--veil);
}
.card .ic svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 11px; }
.card p { font-size: 15.5px; line-height: 1.55; color: var(--stone); }

/* ── Product cards ── editorial 3:4 portrait plate in a terminal frame ──
   Retail card language (playbook §2): tall photography field, rollover second
   image, quiet mono price, 2-line clamped description, no "View details" row.
   Warp DNA kept: hairline border instead of shadow, 12px radius, mono micro-tag. */
.prodgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prod {
  display: flex; flex-direction: column;
  border: 1px solid var(--mist);
  border-radius: var(--radius-card);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.prod:hover { border-color: var(--mist-2); background: var(--veil); }
.prod .img {
  aspect-ratio: 3 / 4; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--mist);
  background: var(--bg-2);
}
/* primary + rollover second image stacked, both cover the 3:4 field */
.prod .img .pc-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, opacity 0.45s ease;
}
.prod .img .pc-img-2 { opacity: 0; }
.prod:hover .pc-img { transform: scale(1.03); }
.prod:hover .pc-img-2 { opacity: 1; }
/* clean neutral no-image plate — flat surface + mono slug, no glow / grid noise */
.prod .ph { position: absolute; inset: 0; background: var(--bg-2); }
.prod .ph::after {
  content: "[ no_image ]";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px;
  color: var(--muted);
}
.prod .meta { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.prod .tag {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 2px; color: var(--muted);
}
.prod h4 { color: var(--parchment); font-size: 19px; letter-spacing: -0.2px; }
.prod p {
  font-size: 14.5px; line-height: 1.5; color: var(--stone);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Empty state ── */
.empty {
  border: 1px dashed var(--mist-2); border-radius: var(--radius-card);
  padding: 44px 32px; text-align: center;
}
.empty p { font-family: var(--mono); color: var(--stone); margin-bottom: 18px; letter-spacing: 0.3px; }

/* ── Spec / stat band ── monospace key-value ── */
.band { border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 26px; border-right: 1px solid var(--mist); }
.stat:last-child { border-right: none; }
.stat .n {
  font-family: var(--mono); font-size: 30px; color: var(--parchment);
  letter-spacing: -0.5px; line-height: 1; margin-bottom: 12px;
}
.stat .l { font-size: 14.5px; color: var(--stone); line-height: 1.45; }

/* ── Final CTA ── */
.final {
  border: 1px solid var(--mist-2);
  border-radius: 14px;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(122, 96, 60, 0.10), transparent 60%),
    var(--panel);
  padding: 76px 40px;
  text-align: center;
}
.final .eyebrow { margin-bottom: 18px; }
.final h2 { margin: 0 auto 18px; max-width: 20ch; }
.final p { max-width: 52ch; margin: 0 auto 32px; font-size: 18px; line-height: 1.5; color: var(--stone); }

/* ── Page header (about/contact/list/detail) ── */
.pagehead { padding: 72px 0 8px; border-bottom: 1px solid var(--mist); }
.crumb { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 22px; letter-spacing: 0.4px; }
.crumb a { color: var(--stone); }
.crumb a:hover { color: var(--parchment); }
.pagehead .eyebrow { margin-bottom: 18px; }
.pagehead h1 { font-size: 56px; letter-spacing: -1.4px; }
.pagehead .sub { margin-top: 22px; max-width: 60ch; font-size: 19px; line-height: 1.5; color: var(--ash); }

/* ── Prose ── */
.prose { max-width: 64ch; }
.prose p { font-size: 18px; line-height: 1.62; color: var(--ash); margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field {
  border: 1px solid var(--mist); border-radius: var(--radius-card);
  background: var(--panel); padding: 28px 26px;
}
.field h4 {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 2.4px; color: var(--muted); margin-bottom: 14px; font-weight: 400;
}
.field a, .field p { font-size: 17px; color: var(--parchment); line-height: 1.5; }
.field a:hover { color: var(--ash); }
.field .desc { color: var(--stone); font-size: 15px; }

/* ── Product detail ── */
.detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
/* 主图槽 —— 原名 .hero-img，与首屏出血图 .hero-img 撞名，改叫 .detail-stage（同 apple-elegant） */
.detail-stage {
  border: 1px solid var(--mist); border-radius: var(--radius-card); overflow: hidden;
  aspect-ratio: 4 / 3; max-height: 420px; position: relative; background: var(--bg-2);
}
.detail-stage img { width: 100%; height: 100%; object-fit: cover; }
/* 图库 crossfade + 点击放大（渐进增强） */
.detail-stage .main-img { transition: opacity 0.18s ease; cursor: zoom-in; }
.detail-stage .ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--stone);
}
.detail-stage .ph svg { opacity: 0.9; }
.detail-stage .ph span {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--muted);
  text-transform: uppercase; text-align: center; max-width: 26ch; line-height: 1.4;
}
.detail h1 { font-size: 44px; letter-spacing: -1px; margin-bottom: 18px; }
.detail .eyebrow { margin-bottom: 16px; }
.detail .prose { margin-bottom: 28px; }

.spectable {
  border: 1px solid var(--mist); border-radius: 12px; overflow: hidden; margin-bottom: 30px;
}
.srow {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 14px 20px; border-bottom: 1px solid var(--mist);
  font-family: var(--mono); font-size: 14px;
}
.srow:last-child { border-bottom: none; }
.srow .k { color: var(--stone); text-transform: uppercase; letter-spacing: 1.2px; font-size: 12px; }
.srow .v { color: var(--parchment); text-align: right; }

.spec-note {
  border: 1px solid var(--mist); border-radius: var(--radius-card);
  background: var(--panel); padding: 16px 18px; margin-bottom: 30px;
  font-size: 14px; line-height: 1.6; color: var(--stone); max-width: 64ch;
}

/* ── Gallery (thumbnail row) ── */
.gallery { min-width: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumb {
  width: 66px; height: 66px; padding: 0;
  border: 1px solid var(--mist); border-radius: 8px;
  overflow: hidden; background: var(--bg-2);
  cursor: pointer; transition: border-color 0.15s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--mist-2); }
.thumb.active { border-color: var(--mist-3); box-shadow: 0 0 0 1px var(--mist-3); }

/* ── Price block ── */
.price-ladder,
.price-variant {
  width: 100%; margin: 24px 0 28px;
  border: 1px solid var(--mist); border-radius: 12px;
  border-collapse: collapse; overflow: hidden;
  font-family: var(--mono); font-size: 14px;
}
.price-ladder th,
.price-variant th {
  text-align: left; font-size: 11px; font-weight: 400;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); background: var(--veil);
  padding: 12px 20px; border-bottom: 1px solid var(--mist);
}
.price-ladder th:last-child,
.price-variant th:last-child { text-align: right; }
.price-ladder td,
.price-variant td {
  padding: 13px 20px; border-bottom: 1px solid var(--mist);
  color: var(--parchment);
}
.price-ladder td:first-child,
.price-variant td:first-child { color: var(--stone); }
.price-ladder td:last-child,
.price-variant td:last-child { text-align: right; color: var(--parchment); }
.price-ladder tr:last-child td,
.price-variant tr:last-child td { border-bottom: none; }
.price-range {
  margin: 24px 0 28px;
  font-family: var(--mono); font-size: 22px; letter-spacing: -0.2px;
  color: var(--parchment);
}
.price-inquire {
  display: inline-flex; align-items: center;
  margin: 24px 0 28px; padding: 10px 18px;
  border: 1px solid var(--mist-2); border-radius: var(--radius-pill);
  background: var(--veil);
  font-size: 15px; color: var(--ash);
}

/* ── Certification chips ── */
.cert-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border: 1px solid var(--mist); border-radius: 999px;
  background: var(--veil);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.3px;
  color: var(--stone);
}

/* ── Trade facts (MOQ / lead time / customization) ── */
.facts { margin: 0 0 30px; border: 1px solid var(--mist); border-radius: 12px; overflow: hidden; }
.facts:empty { display: none; }
.fact { display: flex; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--mist); font-size: 14px; }
.fact:nth-child(odd) { background: var(--veil); }
.fact:last-child { border-bottom: none; }
.fact-k {
  flex: 0 0 108px; font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 1.2px; color: var(--stone);
}
.fact-v {
  color: var(--parchment);
  /* 与 .srow .v 同规则：值列右对齐，数字不悬在行中 */
  margin-left: auto;
  text-align: right;
}

/* ── Product card price ── */
.card-price {
  display: block; margin: 0 0 4px;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.2px;
  color: var(--parchment);
}

/* ── Save to inquiry list（收藏协议 fav-btn）── depth via border, no shadow ── */
.fav-btn-card {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid var(--mist-2);
  border-radius: 50%;
  background: rgba(22, 20, 15, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ash);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.fav-btn-card:hover { border-color: var(--mist-3); color: var(--parchment); }
.fav-btn-card.is-active { border-color: var(--mist-3); color: var(--parchment); }
.fav-btn-card.is-active svg { fill: var(--parchment); stroke: var(--parchment); }
.fav-btn-detail.is-active { border-color: var(--mist-3); color: var(--parchment); }
.fav-btn-detail.is-active svg { fill: currentColor; }
.fav-btn .fav-label-added { display: none; }
.fav-btn.is-active .fav-label-add { display: none; }
.fav-btn.is-active .fav-label-added { display: inline; }

/* ── 商品详情页（detail-rich 富文本）── parchment on warm dark ── */
.detail-rich {
  /* 卖家自撰长文按「好读的文章」排版 —— measure 收到 ~72ch（playbook §3.1） */
  max-width: 72ch;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.1px;
  color: var(--ash);
}
.detail-rich h1,
.detail-rich h2,
.detail-rich h3 {
  color: var(--parchment);
  font-weight: 400;
  margin: 32px 0 12px;
}
.detail-rich h1 { font-size: 28px; letter-spacing: -0.6px; }
.detail-rich h2 { font-size: 24px; letter-spacing: -0.4px; }
.detail-rich h3 { font-size: 19px; letter-spacing: -0.2px; }
.detail-rich p { margin: 0 0 14px; color: var(--ash); }
.detail-rich img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-img);
  border: 1px solid var(--mist);
  display: block;
  margin: 18px auto;
}
.detail-rich ul,
.detail-rich ol { margin: 0 0 14px; padding-left: 22px; }
.detail-rich li { margin-bottom: 6px; }
.detail-rich hr { border: none; border-top: 1px solid var(--mist); margin: 26px 0; }
.detail-rich a { color: var(--parchment); text-decoration: underline; text-underline-offset: 3px; }
.detail-rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-family: var(--mono);
  font-size: 14px;
}
.detail-rich th,
.detail-rich td {
  border: 1px solid var(--mist);
  padding: 9px 12px;
  text-align: left;
  color: var(--ash);
}
.detail-rich th {
  font-size: 12px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--stone); background: var(--veil);
}
.detail-rich blockquote {
  margin: 18px 0;
  padding: 10px 18px;
  border-left: 2px solid var(--mist-2);
  background: var(--veil);
  border-radius: 0 var(--radius-img) var(--radius-img) 0;
  color: var(--stone);
}

/* ── Pager ── */
.pager { display: flex; gap: 12px; justify-content: center; margin-top: 48px; }
.pager .pos { font-family: var(--mono); font-size: 13px; color: var(--stone); align-self: center; letter-spacing: 0.5px; }
.pager-nums { display: flex; gap: 8px; align-items: center; }
.pager-num { min-width: 44px; padding: 13px 14px; justify-content: center; }
.pager-num.is-current { background: var(--parchment); border-color: var(--parchment); color: var(--bg); pointer-events: none; }
.pager-gap { font-family: var(--mono); color: var(--muted); font-size: 13px; padding: 0 2px; user-select: none; }

/* ── Footer ── */
footer { border-top: 1px solid var(--mist); padding: 64px 0 40px; margin-top: 40px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.foot .brand { margin-bottom: 16px; }
.foot .desc { font-size: 14.5px; line-height: 1.6; color: var(--stone); max-width: 38ch; }
.foot h5 {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--muted); margin-bottom: 16px; font-weight: 400;
}
.foot a, .foot span.desc { display: block; font-size: 15px; color: var(--ash); margin-bottom: 11px; }
.foot a:hover { color: var(--parchment); }
.legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--mist);
  font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.3px;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .g3, .prodgrid { grid-template-columns: repeat(2, 1fr); }
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .lookbook { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  h1 { font-size: 46px; letter-spacing: -1.2px; }
  h2 { font-size: 36px; letter-spacing: -0.7px; }
  .pagehead h1 { font-size: 40px; }
  .hero { min-height: 0; }
  .hero-inner { padding-top: 64px; padding-bottom: 52px; }
  .block { padding: 64px 0; }
  .navlinks { display: none; }
  .g3, .g2, .prodgrid, .contact-grid { grid-template-columns: 1fr; }
  .statgrid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-right: 1px solid var(--mist); }
  .foot { grid-template-columns: 1fr; gap: 28px; }
  .term-body { font-size: 13px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .lookbook { grid-template-columns: 1fr; }
  .lookbook .lb-cell:first-child { grid-row: auto; aspect-ratio: 4 / 5; }
  .promo-band { padding: 32px 24px; }
}

/* ══════════ Collapsible rows（Shopify Dawn 范式）══════════
   规格 / 认证 / 交易条款折叠；价格表与询盘 CTA 始终常显。
   原生 <details>，无 JS 也能展开。Warp 语汇：mono 大写行标 + hairline 分隔。 */
.acc { border-top: 1px solid var(--mist); margin: 0; }
.acc:last-of-type { border-bottom: 1px solid var(--mist); margin-bottom: 30px; }
.acc-sum {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 2px;
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 1.8px;
  color: var(--ash);
  cursor: pointer;
  list-style: none;
}
.acc-sum::-webkit-details-marker { display: none; }
.acc-sum::after {
  content: "+";
  flex: none;
  font-family: var(--mono); font-size: 15px; line-height: 1;
  color: var(--muted);
  transition: color 0.18s ease;
}
.acc[open] > .acc-sum::after { content: "−"; }
.acc-sum:hover { color: var(--parchment); }
.acc-sum:hover::after { color: var(--ash); }
.acc-sum:focus-visible { outline: 1px solid var(--mist-3); outline-offset: 3px; }
.acc-body { padding: 0 0 18px; }
/* 折叠体内既有组件去掉自身外边距，交给 .acc-body 统一控 */
.acc-body .spectable,
.acc-body .cert-chips,
.acc-body .facts { margin: 0; }

/* ══════════ Lightbox（主图点击放大）══════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  background: rgba(12, 11, 8, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: lb-in 0.2s ease;
  cursor: zoom-out;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border: 1px solid var(--mist-2); border-radius: var(--radius-img);
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 42px; height: 42px;
  border: 1px solid var(--mist-2); border-radius: 50%;
  background: transparent;
  color: var(--ash);
  font-family: var(--mono); font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.lightbox-close:hover { border-color: var(--mist-3); color: var(--parchment); }
.lightbox-close:focus-visible { outline: 1px solid var(--mist-3); outline-offset: 3px; }

/* ══════════ 陈列区块（lookbook / testimonial / press / promo）══════════
   外壳 section[id] 恒渲染，内部 gate 无内容时整段不渲染 → section 收成 0 高度。 */

/* ── Lookbook ── collage，首格跨两行；边框而非阴影 ── */
.lookbook { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.lookbook .lb-cell {
  display: block;
  border: 1px solid var(--mist);
  border-radius: var(--radius-img);
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4 / 5;
  transition: border-color 0.18s ease;
}
.lookbook .lb-cell:first-child { grid-row: span 2; aspect-ratio: auto; }
.lookbook .lb-cell:hover { border-color: var(--mist-2); }
.lookbook .lb-cell img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.lookbook .lb-cell:hover img { transform: scale(1.03); }

/* ── Testimonial ── 居中引言，Matter 式常规字重大字 ── */
.testimonial { max-width: 62ch; margin: 0 auto; text-align: center; }
.testimonial .tq {
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: var(--parchment);
  margin-bottom: 26px;
}
.testimonial .tname {
  display: block;
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--ash);
}
.testimonial .trole {
  display: block; margin-top: 6px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px;
  color: var(--muted);
}

/* ── Press ── 客户 / 媒体 wordmark 行 ── */
.press-strip { text-align: center; }
.press-strip .press-lbl {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 2.4px;
  color: var(--muted); margin-bottom: 24px;
}
.press-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 40px; }
.press-row span {
  font-family: var(--mono); font-size: 17px;
  letter-spacing: 0.6px; color: var(--stone);
}

/* ── Promo band ── 招商横幅：bordered panel，与 .final 的暖光区分（此处保持全平） ── */
.promo-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  border: 1px solid var(--mist-2);
  border-radius: 14px;
  background: var(--panel);
  padding: 44px 40px;
}
.promo-band .promo-copy { max-width: 56ch; }
.promo-band .promo-copy .eyebrow { margin-bottom: 16px; }
.promo-band .promo-copy h2 { font-size: 34px; letter-spacing: -0.7px; margin-bottom: 12px; }
.promo-band .promo-copy p { font-size: 16.5px; line-height: 1.55; color: var(--stone); }
.promo-band .btn { flex: none; }

/* ── reduced-motion ── 关动效，保功能（rollover 的 opacity 切换保留）── */
@media (prefers-reduced-motion: reduce) {
  .prod .img .pc-img { transition: opacity 0.45s ease; }
  .prod:hover .pc-img { transform: none; }
  .lookbook .lb-cell img { transition: none; }
  .lookbook .lb-cell:hover img { transform: none; }
  .detail-stage .main-img { transition: none; }
  .lightbox { animation: none; }
  .term-body .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── header brand（WEB-HDR1）：公司名单行、超出省略号截断（完整名在 title）。
   名字是页头里唯一可收缩项，右侧按钮 / 菜单不被挤压，页头不被撑高。
   用「可任意处断行 + 限 1 行」而非 nowrap：nowrap 的最小内容宽 = 整个名字，brand 要么
   截不动、要么得设 min-width:0 —— 后者在整行放不下时会把 brand 压到比图标还窄、图标压到
   旁边链接上。这样 brand 最窄 = 图标 + 1 个字，永不与邻居重叠。 */
nav .brand {
  flex-shrink: 1;
}
nav .brand > :not(.brand-name),
nav .brand ~ * {
  flex-shrink: 0;
}
nav .brand-name {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
/* 手机宽（≤480）：页头按钮一个不藏，只收紧按钮字号 / 左右内边距 / 间距给公司名让位。
   数值 = 本模板原值与 14px / 12px / 8px 取小（只减不增）。全按 class 选元素：静态站与
   WordPress 两档共用这份 CSS，不依赖只在静态站注入的汉堡菜单或按 .html 改写的链接。 */
@media (max-width: 480px) {
  nav .brand {
    gap: 8px;
  }
  nav .brand ~ * {
    gap: 8px;
  }
  nav .brand ~ * :is(.btn, .ghost) {
    font-size: 14px;
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap;
  }
}

/* 最窄手机宽（WEB-HDR2，≤400）且页头有 logo：只显示 logo，公司名视觉隐藏——不删节点、不用
   display:none，读屏照读，完整名仍在链接 title 与 logo alt。「有 logo」按 authored 结构判定：
   有 logo 时 <img> 紧挨在 .brand-name 前，无 logo 时那里是占位图标 span，所以无 logo 的站照旧
   单行省略。静态 / WordPress 两档同一份 HTML 与 CSS。断点：30 套实测 ≤400 宽时过半模板连
   「ACME」都放不下，412 起 28/30 放得下（常见机型 360 / 375 / 390 / 393 在内，412 / 414 / 430 在外）。 */
@media (max-width: 400px) {
  nav .brand > img + .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}
