/* =========================================================
   Diye Energy — homepage redesign prototype
   Style: international B2B industrial (light, engineered)
   Tokens are the single source of truth. Change them here only.
   ========================================================= */

:root {
  /* surfaces: warm paper, with a real tonal step between bands */
  --ink: #FBFBF7;
  --ink-2: #EBEEE6;
  --panel: #FFFFFF;
  --panel-2: #F6F7F1;
  /* rules: visible hairlines, not whisper-thin */
  --line: #D6DBD0;
  --line-strong: #AFB8AA;
  /* type */
  --paper: #0F1214;
  --paper-dim: #3D474C;
  --muted: #667075;
  /* accent: deepened for AA contrast on white, still reads "industrial orange" */
  --accent: #D9500B;
  --accent-hi: #FF6A13;
  --accent-soft: rgba(217, 80, 11, 0.09);
  --shadow: 0 1px 2px rgba(20, 24, 27, 0.04), 0 12px 32px rgba(20, 24, 27, 0.06);

  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --f-mono: "IBM Plex Mono", "Consolas", monospace;

  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 0.98; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 16px;
  font-size: 13px; transition: top 0.2s;
}
.skip:focus { top: 12px; }
.mono { font-family: var(--f-mono); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.dim { color: var(--muted); }
.wrap { width: min(100% - (var(--pad) * 2), var(--wrap)); margin-inline: auto; }

/* ---------- utility bar ---------- */
.utility {
  background: #05070800;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--paper-dim);
}
.utility-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px; flex-wrap: wrap;
}
.utility-co { letter-spacing: 0.02em; color: var(--muted); }
.utility-links { display: flex; align-items: center; gap: 22px; }
.utility-links a { position: relative; padding-block: 2px; transition: color 0.2s; }
.utility-links a:hover { color: var(--paper); }
.utility-wa { color: var(--accent); }
.utility-wa::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: var(--accent); margin-right: 7px; vertical-align: middle;
  border-radius: 50%;
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.site-head.is-stuck { background: rgba(255, 255, 255, 0.97); border-bottom-color: var(--line-strong); box-shadow: 0 6px 24px rgba(20, 24, 27, 0.06); }
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); }
.brand-mark { color: var(--paper); display: block; line-height: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--f-display); font-size: 25px; font-weight: 700;
  letter-spacing: 0.14em;
}
.brand-text em {
  font-style: normal; font-family: var(--f-mono);
  font-size: 8.5px; letter-spacing: 0.18em; color: var(--muted); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: 14px; }
.nav > a { color: var(--paper-dim); padding-block: 6px; position: relative; transition: color 0.2s; }
.nav > a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width 0.28s var(--ease);
}
.nav > a:hover { color: var(--paper); }
.nav > a:hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--accent); color: var(--paper) !important;
  padding: 9px 18px; font-size: 13px; letter-spacing: 0.02em;
  background: var(--accent-soft); transition: background 0.2s, color 0.2s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent); color: #fff !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  width: 42px; height: 38px; padding: 0; position: relative;
}
.nav-toggle span:not(.sr-only) {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--paper);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 15px 26px; font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; border: 1px solid transparent; border-radius: var(--radius);
  transition: transform 0.18s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(20, 24, 27, 0.045); }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink-2); border-bottom: 1px solid var(--line); }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 24, 27, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 24, 27, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(120% 90% at 70% 10%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -14%; top: -30%;
  width: 62vw; height: 62vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(217, 80, 11, 0.10), transparent 62%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(56px, 7vw, 104px);
}
.hero-copy { max-width: 900px; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper-dim); margin-bottom: 26px;
}
.tick { width: 22px; height: 2px; background: var(--accent); display: inline-block; }
.hero h1 {
  font-size: clamp(40px, 6.2vw, 78px);
  letter-spacing: -0.015em; line-height: 0.94;
  text-transform: uppercase;
}
.hero h1 .hl { color: var(--accent); }
.lede {
  margin-top: 26px; max-width: 46ch; font-size: clamp(15px, 1.4vw, 17px);
  color: var(--paper-dim); line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin-top: 46px; border-top: 1px solid var(--line);
  background: var(--line);
}
.hero-stats > div { background: var(--ink); padding: 18px 14px 14px; }
.hero-stats dt {
  font-family: var(--f-mono); font-size: 15px; color: var(--paper);
  letter-spacing: 0.02em;
}
.hero-stats dd {
  margin: 6px 0 0; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted);
}

/* ---------- capability strip ---------- */
.strip { border-bottom: 1px solid var(--line); background: var(--ink); overflow: hidden; }
.strip-inner {
  display: flex; flex-wrap: wrap; gap: 10px 34px; padding-block: 15px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.strip-inner span { display: inline-flex; align-items: center; gap: 10px; }
.strip-inner span::before {
  content: ""; width: 4px; height: 4px; background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- section shell ---------- */
.section { padding-block: clamp(64px, 8vw, 116px); }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: clamp(34px, 4vw, 56px); }
.sec-head--split {
  max-width: none; display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 4vw, 64px); align-items: end;
}
.sec-label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.sec-label .mono { color: var(--accent); font-size: 11px; }
.sec-label::after { content: ""; width: 40px; height: 1px; background: var(--line-strong); }
.sec-head h2 {
  font-size: clamp(30px, 3.9vw, 50px); text-transform: uppercase;
}
.sec-note { margin-top: 16px; color: var(--paper-dim); font-size: 15px; max-width: 54ch; }

/* ---------- categories ---------- */
.cat-grid {
  /* 9 项排 3 列正好三行满格，不再需要补宽规则 */
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.cat-grid a {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); padding: 22px 20px;
  transition: background 0.22s var(--ease), padding-left 0.22s var(--ease);
}
.cat-grid a:hover { background: var(--panel-2); padding-left: 26px; }
.cat-grid span {
  font-family: var(--f-display); font-size: 21px; text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- 干燥成品样本行（小尺寸点缀，替首页补一条"食物"线索） ---------- */
.material-note {
  margin-top: 26px; margin-bottom: 12px;
  color: var(--muted); font-size: 10px; letter-spacing: 0.16em;
}
/* 原来是 flex + 固定 84px：8 枚 8*84 + 7*16 = 784px，比 .sec-head 的 760px 宽，
   末枚必然掉到第二行。改成 8 等分 grid，宽度由容器算出，结构上不可能折行。 */
.material-dice {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px; margin: 0; padding: 0; list-style: none;
  /* 提到 .sec-head 外面之后不再受 760px 限制：1440 下每枚 83px -> 113px */
  max-width: 1000px;
}
.material-dice li { display: grid; justify-items: center; align-content: start; gap: 8px; }
.material-dice img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 1px solid var(--line-strong); background: #fff;
  transition: transform 0.3s var(--ease), border-color 0.25s;
}
.material-dice li:hover img { transform: translateY(-2px); border-color: var(--accent); }
.material-dice span { font-size: 9.5px; letter-spacing: 0.1em; color: var(--muted); text-align: center; }

/* 窄屏：8 等分会缩到 60px 以下，改成可横向拖动的单行，读起来仍是一排 */
@media (max-width: 760px) {
  .material-dice {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68px;
    gap: 12px; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x proximity;
    padding-bottom: 6px; scrollbar-width: none; -ms-overflow-style: none;
  }
  .material-dice::-webkit-scrollbar { display: none; }
  .material-dice li { scroll-snap-align: center; }
  .material-dice span { font-size: 9px; }
}

/* ---------- systems ---------- */
.sys-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.sys-card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 24, 27, 0.03);
  transition: border-color 0.25s, transform 0.3s var(--ease), background 0.25s, box-shadow 0.3s;
}
.sys-card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--panel-2); box-shadow: var(--shadow); }
.sys-media { display: block; background: #fff; padding: 18px; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); }
.sys-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.sys-card:hover .sys-media img { transform: scale(1.045); }
.sys-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sys-tag { color: var(--accent); }
.sys-body h3 { font-size: 23px; text-transform: uppercase; line-height: 1.05; }
.sys-body h3 a:hover { color: var(--accent); }
.sys-desc { color: var(--paper-dim); font-size: 14px; line-height: 1.6; }
.sys-specs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.sys-specs dt {
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-family: var(--f-mono);
}
.sys-specs dd {
  margin: 4px 0 0; font-family: var(--f-mono); font-size: 12.5px; color: var(--paper);
}
.sys-card--wide { grid-column: span 2; }
.sys-card--wide .sys-media { aspect-ratio: 16 / 9; }
.sys-card--wide .sys-body h3 { font-size: 30px; }
@media (min-width: 900px) {
  .sys-card--wide { flex-direction: row; }
  .sys-card--wide .sys-media { width: 55%; aspect-ratio: auto; }
  .sys-card--wide .sys-body { width: 45%; justify-content: center; padding: 30px; }
}

/* ---------- spec table ---------- */
.table-scroll {
  overflow-x: auto; border: 1px solid var(--line);
  background: var(--ink);
  scrollbar-color: var(--accent) #E7E9E4;
}
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-track { background: #E7E9E4; }
.table-scroll::-webkit-scrollbar-thumb { background: #B9C0B7; }
.spec-table {
  width: 100%; border-collapse: collapse; min-width: 900px;
  font-family: var(--f-mono); font-size: 12.5px;
}
.spec-table thead th {
  text-align: left; padding: 16px 18px; background: var(--ink-2);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--f-display); font-size: 17px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
}
.spec-table thead th:first-child { color: var(--muted); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; }
.spec-table thead th .mono { display: block; color: var(--accent); font-size: 9.5px; margin-top: 4px; }
.spec-table tbody th {
  text-align: left; padding: 12px 18px; color: var(--muted);
  font-family: var(--f-body); font-weight: 400; font-size: 13px;
  white-space: nowrap; border-bottom: 1px solid var(--line);
  position: sticky; left: 0; background: var(--panel-2);
}
.spec-table tbody td {
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  border-left: 1px solid rgba(20, 24, 27, 0.05); white-space: nowrap;
}
.spec-table tbody tr:hover td { background: var(--accent-soft); }
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: 0; }
.table-hint { color: var(--muted); margin-top: 12px; font-size: 10px; }

/* ---------- 03 energy comparison ----------
   把原来的 DY 六型号参数表整块换成热源能耗对比。数据来自客户自己那份
   "Energy Saving Analysis"：以蒸发 100 kg 水（15 -> 50 ℃，Q=59 500 kcal，
   按 70% 有效利用率折成 85 000 kcal 需求）为同一基准，五种热源横向对比。
   .is-us 是自家热泵那一行，用 accent 底 + 加粗数字挑出来。 */
.energy-basis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin: 0 0 18px; padding: 0; list-style: none;
}
.energy-basis li { background: var(--panel); padding: 16px 18px; }
.energy-basis .mono {
  display: block; font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.energy-basis strong {
  display: block; font-family: var(--f-display); font-size: 26px; font-weight: 600;
  line-height: 1.05; letter-spacing: 0.01em; margin: 6px 0 4px;
}
.energy-basis em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }

.energy-table { min-width: 1040px; }
.energy-table thead th { white-space: normal; }
.energy-table thead th:first-child {
  color: var(--paper); font-family: var(--f-display); font-size: 17px;
  letter-spacing: 0.03em;
}
.energy-table tbody th { white-space: normal; min-width: 168px; }
.energy-table tbody th .mono { display: block; font-size: 9.5px; letter-spacing: 0.1em; color: var(--accent); margin-top: 3px; }
.energy-table tbody td:last-child {
  white-space: normal; min-width: 190px;
  font-family: var(--f-body); font-size: 12px; color: var(--muted);
}
.energy-table .is-num { font-variant-numeric: tabular-nums; }
.energy-table tbody tr.is-us th,
.energy-table tbody tr.is-us td { background: #FBEFE9; }
.energy-table tbody tr.is-us th { color: var(--accent); }
.energy-table tbody tr.is-us td.is-num { color: var(--accent); font-weight: 600; }

.energy-read {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 3vw, 44px); align-items: start; margin-top: 26px;
}
.energy-bars { display: grid; gap: 10px; }
.eb-row { display: grid; grid-template-columns: 116px 1fr 62px; align-items: center; gap: 12px; }
.eb-name { font-size: 11.5px; color: var(--muted); }
.eb-track { height: 12px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.eb-fill { display: block; height: 100%; background: var(--line-strong); }
.eb-num { text-align: right; font-size: 12px; color: var(--muted); }
.eb-row.is-us .eb-name { color: var(--paper); font-weight: 600; }
.eb-row.is-us .eb-fill { background: var(--accent); }
.eb-row.is-us .eb-num { color: var(--accent); }
.energy-say p { font-size: 13.5px; line-height: 1.65; color: var(--muted); margin: 0 0 12px; }
.energy-say p:last-child { margin-bottom: 0; }
.energy-say strong { color: var(--paper); font-weight: 600; }
.energy-note {
  margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 11px; line-height: 1.65; color: var(--muted); max-width: 92ch;
}

/* ---------- why grid ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.why-grid li { background: var(--ink); padding: clamp(24px, 3vw, 36px); position: relative; }
.why-grid li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.4s var(--ease);
}
.why-grid li:hover::before { width: 100%; }
.why-num { color: var(--accent); display: block; margin-bottom: 26px; }
.why-grid h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 10px; }
.why-grid p { color: var(--paper-dim); font-size: 14px; line-height: 1.62; }

/* ---------- solutions ---------- */
.sol-list { border-top: 1px solid var(--line); }
.sol-list a {
  display: grid;
  grid-template-columns: 60px minmax(180px, 1fr) 1.6fr 40px;
  gap: clamp(12px, 2.4vw, 34px); align-items: center;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, padding-left 0.3s var(--ease);
}
.sol-list a:hover { background: linear-gradient(90deg, rgba(255, 106, 19, 0.07), transparent 60%); padding-left: 14px; }
.sol-num { color: var(--muted); }
.sol-title { font-family: var(--f-display); font-size: clamp(21px, 2.4vw, 29px); text-transform: uppercase; }
.sol-desc { color: var(--paper-dim); font-size: 14px; }
.sol-arrow { font-size: 20px; color: var(--accent); transition: transform 0.3s var(--ease); }
.sol-list a:hover .sol-arrow { transform: translateX(6px); }

/* ---------- 干果装饰带：10 枚一格一排，纯装饰无文案 ---------- */
.food-band {
  background: var(--panel-2);
  border-block: 1px solid var(--line);
  padding-block: clamp(26px, 3.4vw, 44px);
  overflow: hidden;
}
/* 原实现 flex-wrap: wrap + 固定尺寸，10 枚在窄屏必然折成两排。
   现在 flex:1 1 0 让十枚等比占满一行：1440 下每枚约 111px（原来最大 88px），
   宽度由容器算出来，无论窗口多宽都只有一排。 */
.food-band-track {
  display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center;
  gap: clamp(10px, 1.5vw, 20px);
  width: min(100% - (var(--pad) * 2), 1400px);
  margin-inline: auto;
  padding-block: clamp(16px, 1.9vw, 24px);
}
.food-band-track img {
  flex: 1 1 0; min-width: 0;
  height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(20, 24, 27, 0.14);
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 24, 27, 0.12);
  transform: translateY(var(--dy, 0px)) scale(var(--sc, 1));
}
/* 起伏只走 transform，不占布局，所以不会把这一行撑高或挤到第二行。
   振幅收到 ±4px / ±1% 缩放：上一版 ±12px 起伏在 1440 下看着"歪"，现在几乎是平的一条线。 */
.food-band-track img:nth-child(1)  { --dy: 0px;    --sc: 1.000; }
.food-band-track img:nth-child(2)  { --dy: 3px;    --sc: 1.005; }
.food-band-track img:nth-child(3)  { --dy: 4px;    --sc: 1.010; }
.food-band-track img:nth-child(4)  { --dy: 4px;    --sc: 1.010; }
.food-band-track img:nth-child(5)  { --dy: 3px;    --sc: 1.005; }
.food-band-track img:nth-child(6)  { --dy: 0px;    --sc: 1.000; }
.food-band-track img:nth-child(7)  { --dy: -3px;   --sc: 0.995; }
.food-band-track img:nth-child(8)  { --dy: -4px;   --sc: 0.990; }
.food-band-track img:nth-child(9)  { --dy: -4px;   --sc: 0.990; }
.food-band-track img:nth-child(10) { --dy: -3px;   --sc: 0.995; }

/* 窄屏十等分会掉到 60px 以下，改成可横向拖动的单行，仍然只有一排 */
@media (max-width: 900px) {
  .food-band-track {
    justify-content: flex-start;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .food-band-track::-webkit-scrollbar { display: none; }
  .food-band-track img { flex: 0 0 auto; width: 84px; height: 84px; scroll-snap-align: center; }
}

@media (max-width: 560px) {
  .food-band { padding-block: 20px; }
  .food-band-track { gap: 10px; }
  .food-band-track img { width: 72px; height: 72px; }
  /* 手机端压缩标签字号，避免四格高度不齐 */
  .hero-stats dt { font-size: 14px; }
  .hero-stats dd { font-size: 9.5px; letter-spacing: 0.05em; }
}

/* ---------- company ---------- */
.company-inner {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(26px, 4vw, 66px); align-items: center;
}
.company-media { margin: 0; }
.company-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: saturate(0.95) contrast(1.02) brightness(1.04);
  border: 1px solid var(--line);
}
.company-media figcaption {
  margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.6;
}
.company-copy h2 { font-size: clamp(29px, 3.6vw, 46px); text-transform: uppercase; margin-bottom: 20px; }
.company-copy p { color: var(--paper-dim); margin-bottom: 16px; font-size: 15px; }
.company-list { margin: 24px 0 30px; display: grid; gap: 12px; }
.company-list li {
  position: relative; padding-left: 22px; font-size: 14.5px; color: var(--paper);
}
.company-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border: 1px solid var(--accent);
}

/* ---------- process ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.steps li {
  border-top: 1px solid var(--line-strong); padding-top: 18px; position: relative;
}
.steps li::before {
  content: ""; position: absolute; top: -3px; left: 0;
  width: 6px; height: 6px; background: var(--accent);
}
.steps .mono { color: var(--accent); }
.steps h3 { font-size: 21px; text-transform: uppercase; margin: 10px 0 8px; }
.steps p { color: var(--paper-dim); font-size: 13.5px; }

/* ---------- quote ---------- */
.quote { background: var(--ink-2); border-top: 1px solid var(--line); padding-block: clamp(60px, 8vw, 104px); }
.quote-inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 76px);
}
.quote-copy h2 { font-size: clamp(30px, 4vw, 48px); text-transform: uppercase; margin-bottom: 18px; }
.quote-copy p { color: var(--paper-dim); font-size: 15px; max-width: 42ch; }
.quote-contact { margin-top: 34px; display: grid; gap: 12px; }
.quote-contact li { display: flex; align-items: baseline; gap: 14px; font-size: 15px; }
.quote-contact .mono { color: var(--accent); min-width: 36px; font-size: 10px; }
.quote-contact a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.quote-contact a:hover { border-bottom-color: var(--accent); }

.quote-form {
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--paper-dim);
}
.field input, .field select, .field textarea {
  width: 100%; background: #fff; border: 1px solid var(--line-strong);
  color: var(--paper); padding: 12px 14px; font-family: var(--f-body);
  font-size: 14px; border-radius: 0; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #6F787D; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note { color: var(--paper-dim); font-size: 11.5px; letter-spacing: 0.05em; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink-2); border-top: 1px solid var(--line); padding-top: clamp(44px, 5vw, 68px); }
.foot-inner {
  display: grid; grid-template-columns: 1.2fr 1fr 0.85fr 1.15fr;
  gap: clamp(26px, 3vw, 44px); padding-bottom: clamp(34px, 4vw, 54px);
}
.foot-desc { margin-top: 18px; color: var(--muted); font-size: 13.5px; max-width: 30ch; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h3 {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--paper); margin-bottom: 6px; font-weight: 500;
}
.foot-col a, .foot-col address {
  color: var(--muted); font-size: 13.5px; font-style: normal; line-height: 1.75;
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--paper); }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.foot-social a { font-size: 12px; color: var(--paper-dim); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}
.foot-bottom .mono { font-size: 10.5px; }

/* ---------- mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(38px, 7vw, 64px); }
  .sec-head--split { grid-template-columns: 1fr; align-items: start; }
  .sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys-card--wide { grid-column: span 2; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-inner { grid-template-columns: 1fr; }
  .company-media { order: -1; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .utility-co { display: none; }
  .utility-inner { justify-content: center; }
  .nav {
    position: fixed; inset: 104px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #FFFFFF; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(20, 24, 27, 0.10);
    padding: 8px var(--pad) 24px;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.28s;
    max-height: calc(100vh - 104px); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-cta { margin-top: 18px; text-align: center; padding: 14px; }
  .nav-toggle { display: block; }
  .head-inner { height: 62px; }

  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 9 项排 2 列会剩 1 格，末项补满整行 */
  .cat-grid li:last-child { grid-column: span 2; }
  .sys-grid { grid-template-columns: 1fr; }
  .sys-card--wide { grid-column: span 1; flex-direction: column; }
  .sys-card--wide .sys-media, .sys-card--wide .sys-body { width: 100%; }
  .sys-card--wide .sys-body { padding: 22px; }
  .sys-card--wide .sys-body h3 { font-size: 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .sol-list a { grid-template-columns: 40px 1fr 32px; row-gap: 8px; }
  .sol-desc { grid-column: 2 / 3; }
  .sol-arrow { grid-column: 3; grid-row: 1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .quote-inner { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { padding-bottom: 64px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-grid li:last-child { grid-column: auto; }
  .field-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; }
  .utility-links { gap: 14px; font-size: 11.5px; }
  .brand-text strong { font-size: 21px; }
  .brand-text em { font-size: 7.5px; letter-spacing: 0.12em; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--line-strong);
    border-top: 1px solid var(--line-strong);
  }
  .mobile-bar .btn { border-radius: 0; padding: 16px 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   色调：一条连续的明度坡道
   取消原来的"三块深色硬锚点"。首屏、规格表表头、页脚统一到同一个
   中深色家族，并且首屏与页脚各接一段过渡带溶进纸白 ——
   页面上不再出现"一块深一块浅"的断层。
    台阶：  #D3DACB  首屏顶（浅中调）
           #EDEFE4  首屏底，接过渡带
           #FBFBF7  纸白主体
           #4A565C  规格表表头   ← 中段深色支点
           #3A454A  页脚         ← 收尾深色支点
   ========================================================= */

/* --- 1. hero：浅中调，顶上接白色导航，底下溶进纸白 --- */
.hero {
  background: linear-gradient(174deg, #D3DACB 0%, #EDEFE4 100%);
  border-bottom: 0;
}
/* 食物场景照作为低保真背景层：压得很低，只留一层气氛。
   用真实 <img> 承载而不是 CSS url()，打包成单文件时这张图才会被内嵌。 */
.hero-backdrop {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  /* 底部淡出，保证首屏与过渡带交界处的颜色与 #EDEFE4 完全一致 */
  mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
}
.hero-backdrop img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center 46%;
}
.hero-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(237, 239, 228, 0.93) 0%, rgba(237, 239, 228, 0.72) 48%, rgba(237, 239, 228, 0.44) 100%);
}
/* 窄屏首屏没有右侧图位、正文铺满整行，横向渐变会让右半行失去遮盖，
   改成整体压得更实的纵向蒙层，保证机台线条不与文字打架。 */
@media (max-width: 860px) {
  .hero-backdrop::after {
    background: linear-gradient(180deg, rgba(237, 239, 228, 0.95) 0%, rgba(237, 239, 228, 0.90) 58%, rgba(237, 239, 228, 0.82) 100%);
  }
}
.hero-grid {
  background-image:
    linear-gradient(to right, rgba(20, 24, 27, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 24, 27, 0.05) 1px, transparent 1px);
}
.hero::after { background: radial-gradient(circle, rgba(255, 106, 19, 0.13), transparent 66%); }
.hero .eyebrow { color: #4A565C; }
.hero .lede { color: #3D474C; }
.hero h1 { color: #14181B; }
.hero h1 .hl { color: var(--accent); }
.hero-stats { border-top-color: rgba(20, 24, 27, 0.16); background: rgba(255, 255, 255, 0.52); }
.hero-stats > div { background: rgba(255, 255, 255, 0.74); }
.hero-stats dt { color: #14181B; }
.hero-stats dd { color: #5B6561; }
.hero .btn-ghost { border-color: rgba(20, 24, 27, 0.42); color: #14181B; }
.hero .btn-ghost:hover { border-color: #14181B; background: rgba(20, 24, 27, 0.06); }

/* --- 2. 过渡带：首屏底色原样接住，再溶进纸白，接缝为零 --- */
.tone-bridge { height: clamp(56px, 7.5vw, 100px); }
.tone-bridge--down { background: linear-gradient(to bottom, #EDEFE4 0%, #FBFBF7 100%); }
.tone-bridge--up { background: linear-gradient(to bottom, #EBEEE6 0%, #3A454A 100%); }

/* --- 3. 规格表表头：与首屏同族的深色 --- */
.spec-table thead th {
  background: #4A565C; color: #F7F8F4;
  border-bottom-color: #4A565C;
}
.spec-table thead th .mono { color: #D3D9D5; }

/* --- 4. 页脚：与首屏同一个色，首尾对称 --- */
.site-foot { background: #3A454A; border-top: 0; color: #C6CECC; }
.site-foot .brand, .site-foot .brand-mark { color: #F7F8F4; }
.site-foot .brand-text em { color: #A9B3B1; }
.site-foot .foot-desc { color: #B7C0BE; }
.site-foot .foot-col h3 { color: #A9B3B1; }
.site-foot .foot-col a, .site-foot .foot-col address { color: #C6CECC; }
.site-foot .foot-col a:hover { color: #FF8A45; }
.site-foot .foot-social a { color: #B7C0BE; }
.site-foot .foot-social a:hover { color: #FF8A45; }
.site-foot .foot-bottom { border-top-color: rgba(255, 255, 255, 0.16); color: #A9B3B1; }
.site-foot .foot-bottom a { color: #C6CECC; }

/* --- 5. 工厂实景照片带 --- */
.photo-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 两行时图注在图下方，行间距必须大于图注块高度，否则第一行图注被下一行图压住 */
  column-gap: 16px;
  row-gap: 48px;
  margin-top: clamp(30px, 4vw, 46px);
}
.photo-band figure { margin: 0; }
.photo-band img {
  display: block; width: 100%; height: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  /* 亚像素落位时 img 背景会透出 1px 浅色线，必须透明 */
  background: transparent;
  border: 1px solid var(--line-strong);
  filter: saturate(0.96);
}
.photo-band figcaption {
  display: flex; justify-content: space-between; gap: 10px;
  padding-top: 9px; margin-top: 9px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.photo-band figcaption b { color: var(--accent); font-weight: 500; }
@media (max-width: 900px) {
  .photo-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .photo-band { grid-template-columns: 1fr; column-gap: 12px; row-gap: 34px; }
  .photo-band img { aspect-ratio: 16 / 10; }
}

/* --- 6. 客户来访 / 参展照片墙 ---
   两组：A 客户来访、B 参展，均为实拍，同一 4:3 格位，行高严格对齐。
   .slot-frame 为备用空位样式：日后新增一组尚未有照片的区域时可直接复用，
   与实拍格同比例同尺寸，补图时把 div 换成 img 即可，不用改布局。 */
.wall-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.wall-head .wall-key { color: var(--accent); }
.wall-head .wall-line { flex: 1; height: 1px; background: var(--line-strong); }
.wall-head + .visit-wall { margin-bottom: clamp(30px, 4vw, 44px); }

.visit-wall {
  display: grid; grid-template-columns: repeat(4, 1fr);
  column-gap: 16px; row-gap: 40px;
}
.visit-wall figure { margin: 0; }
.visit-wall img {
  /* 不要写 height:100%：会让 img 撑满 figure（含图注高度），
     结果实拍格比同排的虚线占位格高出一个图注的高度，两行之差 34px */
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  /* 与 .photo-band 同理：img 自身背景会在亚像素落位时透出浅色线 */
  background: transparent;
  border: 1px solid var(--line-strong);
  filter: saturate(0.96);
}
.visit-wall figcaption {
  display: flex; justify-content: space-between; gap: 10px;
  padding-top: 9px; margin-top: 9px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.visit-wall figcaption b { color: var(--accent); font-weight: 500; }

/* 备用空位样式（当前 08 节未使用） */
.slot-frame {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; aspect-ratio: 4 / 3; padding: 14px; text-align: center;
  border: 1px dashed var(--line-strong); background: var(--panel-2);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-dim);
}
.slot-frame .slot-n { color: var(--accent); font-size: 12px; letter-spacing: 0.16em; }

.wall-note { margin-top: 18px; font-size: 12.5px; color: var(--paper-dim); max-width: 68ch; }

@media (max-width: 900px) {
  .visit-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .visit-wall { grid-template-columns: 1fr; column-gap: 12px; row-gap: 28px; }
  .visit-wall img, .slot-frame { aspect-ratio: 16 / 10; }
}

/* --- 7. 09 发货 / 出口市场 ---
   六张实拍按实际物流顺序排序（打包 -> 装车 -> 待运 -> 捆扎 -> 堆场 -> 发运），下面用国旗铺一片市场墙。
   国旗走 <img> 而不是背景图：build_standalone.py 只内联 img/link/script。 */
.ship-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(24px, 3vw, 34px);
  margin-bottom: clamp(28px, 3.6vw, 42px);
}
.ship-strip figure { margin: 0; }
.ship-strip img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  background: transparent;
  border: 1px solid var(--line-strong);
  filter: saturate(0.96);
}
.ship-strip figcaption {
  display: flex; justify-content: space-between; gap: 10px;
  padding-top: 9px; margin-top: 9px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.ship-strip figcaption b { color: var(--accent); font-weight: 500; }

.flag-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 12px;
  max-width: 900px;
  margin: 0; padding: 0; list-style: none;
}
.flag-wall li { display: grid; gap: 7px; align-content: start; }
.flag-wall img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  filter: saturate(0.98);
  transition: transform 0.3s var(--ease), border-color 0.25s;
}
.flag-wall li:hover img { transform: translateY(-2px); border-color: var(--accent); }
.flag-wall span {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}

@media (max-width: 900px) {
  .ship-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 560px) {
  .ship-strip { grid-template-columns: 1fr; gap: 20px; }
  .ship-strip img { aspect-ratio: 16 / 10; }
  .flag-wall { gap: 12px 6px; }
  .flag-wall span { font-size: 8px; letter-spacing: 0.04em; }
}

@media (max-width: 900px) {
  .energy-basis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .energy-read { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .energy-basis { grid-template-columns: 1fr; }
  .energy-basis strong { font-size: 22px; }
  .eb-row { grid-template-columns: 92px 1fr 54px; gap: 8px; }
  .eb-name { font-size: 10.5px; }
  .energy-say p { font-size: 13px; }
}

/* ---- deployment additions ---- */
.form-ok, .form-err {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; margin: 0 0 16px;
}
.form-ok { color: var(--accent); }
.form-err { color: #C0392B; }
.q-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* ===== INNER PAGES (product category archive + product detail) ===== */
/* =========================================================
   INNER PAGES — product category archive + product detail
   Same tokens, same header/footer as the homepage.
   ========================================================= */

/* ---------- page hero (shared by archive + single) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--ink-2); border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: ""; position: absolute; right: -12%; top: -46%;
  width: 54vw; height: 54vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(circle, rgba(217, 80, 11, 0.09), transparent 62%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(26px, 3.4vw, 44px) clamp(34px, 4.6vw, 60px); }
.page-hero--slim .wrap { padding-block: clamp(22px, 2.6vw, 32px) clamp(28px, 3.4vw, 44px); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); margin-bottom: clamp(18px, 2.2vw, 28px); }
.crumbs a { border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.crumbs .sep { color: var(--line-strong); }
.crumbs [aria-current] { color: var(--paper); }

.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 60px); text-transform: uppercase; line-height: 0.96;
  max-width: 22ch;
}
.page-hero--slim h1 { font-size: clamp(27px, 3.5vw, 44px); max-width: 30ch; }
.page-lede { margin-top: 18px; max-width: 62ch; color: var(--paper-dim); font-size: clamp(14px, 1.3vw, 16px); }
.page-hero .eyebrow { margin-bottom: 16px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
}
.hero-meta div { display: flex; align-items: baseline; gap: 9px; }
.hero-meta dt { color: var(--muted); }
.hero-meta dd { margin: 0; font-family: var(--f-mono); font-size: 13px; }

/* ---------- shop shell: rail + main ---------- */
.shop { padding-block: clamp(38px, 5vw, 68px) clamp(50px, 6vw, 84px); }
.shop-inner { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: clamp(26px, 3.4vw, 54px); align-items: start; }
.shop-rail { position: sticky; top: 92px; }
.shop-rail h2 {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 400; padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.rail-list { display: grid; }
.rail-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent; font-size: 14px; color: var(--paper-dim);
  transition: color 0.2s, border-color 0.2s, padding-left 0.2s var(--ease);
}
.rail-list a:hover { color: var(--paper); border-left-color: var(--line-strong); padding-left: 16px; }
.rail-list a.is-active { color: var(--paper); border-left-color: var(--accent); font-weight: 500; }
.rail-list .n { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.rail-cta {
  margin-top: 22px; padding: 16px; border: 1px solid var(--line);
  background: var(--panel); display: grid; gap: 10px;
}
.rail-cta p { font-size: 12.5px; color: var(--paper-dim); line-height: 1.5; }
.rail-cta .btn { justify-content: center; }

.shop-tools {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 10px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.shop-tools .count { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.shop-tools .count b { color: var(--paper); font-weight: 500; }
.shop-tools .hint { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* category chips (mobile replacement for the rail)
   fixed 34px height + nowrap: rows can never collide, single scroll line only */
.chip-row { display: none; flex-wrap: nowrap; gap: 8px; margin-bottom: 18px; }
.chip-row a {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  height: 34px; padding: 0 12px; line-height: 1;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 12px; color: var(--paper-dim); white-space: nowrap;
}
.chip-row a.is-active { border-color: var(--paper); color: var(--paper); background: var(--panel-2); }

/* ---------- product grid (reuses .sys-card skin) ---------- */
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.p-grid .sys-body h3 { font-size: 21px; }
.p-clamp {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.p-foot .idx { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.p-foot .go { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.p-foot .go::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.sys-card:hover .p-foot .go::after { transform: translateX(4px); }

.empty-note {
  border: 1px dashed var(--line-strong); padding: 34px 26px; background: var(--panel);
  display: grid; gap: 10px; justify-items: start;
}
.empty-note h3 { font-size: 22px; text-transform: uppercase; }
.empty-note p { color: var(--paper-dim); font-size: 14px; max-width: 46ch; }

/* ---------- product detail ---------- */
.pd { padding-block: clamp(30px, 4vw, 54px) clamp(40px, 5vw, 72px); }
.pd-inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(28px, 4vw, 58px); align-items: start; }

.pd-gallery { display: grid; gap: 12px; }
/* 桌面把画廊收窄，1:1 主图 + 缩略图才落在首屏内（900px 高） */
@media (min-width: 1025px) { .pd-gallery { max-width: 470px; } }
.pd-stage {
  border: 1px solid var(--line); background: #fff; padding: clamp(14px, 2vw, 26px);
  aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
}
.pd-stage img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pd-thumbs button {
  border: 1px solid var(--line); background: #fff; padding: 6px; aspect-ratio: 1 / 1;
  display: grid; place-items: center; transition: border-color 0.2s, background 0.2s;
}
.pd-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs button:hover { border-color: var(--line-strong); }
.pd-thumbs button[aria-selected="true"] { border-color: var(--accent); background: var(--panel-2); }

.pd-info { display: grid; gap: 20px; align-content: start; }
.pd-tag { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); }
.pd-tag a { border-bottom: 1px solid transparent; }
.pd-tag a:hover { border-bottom-color: currentColor; }
.pd-info h1 { font-size: clamp(26px, 3.2vw, 40px); text-transform: uppercase; line-height: 1.02; }
.pd-shot { color: var(--paper-dim); font-size: 15px; line-height: 1.6; }

.pd-points { display: grid; gap: 9px; }
.pd-points li {
  position: relative; padding-left: 20px; font-size: 14px; color: var(--paper-dim); line-height: 1.5;
}
.pd-points li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg);
}

.pd-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-note { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.pd-facts { border-top: 1px solid var(--line); margin-top: 4px; }
.pd-facts div {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.pd-facts dt { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.pd-facts dd { margin: 0; font-family: var(--f-mono); font-size: 12.5px; }

/* long description */
.pd-body-section { background: var(--ink-2); border-block: 1px solid var(--line); padding-block: clamp(44px, 5.4vw, 78px); }
.pd-body-inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(26px, 3.4vw, 56px); align-items: start; }
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); text-transform: uppercase; margin-bottom: 18px; }
.prose p { color: var(--paper-dim); font-size: 15px; line-height: 1.72; margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--paper); font-weight: 500; }
.prose img { border: 1px solid var(--line); background: #fff; margin: 18px 0; max-width: 100%; }
.prose figure { margin: 18px 0; }
.prose figcaption { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.pd-aside { position: sticky; top: 92px; border: 1px solid var(--line); background: var(--panel); padding: 22px; display: grid; gap: 14px; }
.pd-aside h2 { font-size: 22px; text-transform: uppercase; }
.pd-aside p { font-size: 13px; color: var(--paper-dim); line-height: 1.55; }
.pd-aside dl { display: grid; gap: 8px; margin: 2px 0; }
.pd-aside dl div { display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 13px; }
.pd-aside dt { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.pd-aside .btn { justify-content: center; }

.pd-related { padding-block: clamp(44px, 5.4vw, 78px); }
.pd-related .sec-head { max-width: 640px; }

/* WooCommerce paginate_links() renders a <ul class="page-numbers"> list. */
.pager { margin-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--line); padding-top: 18px; }
.pager ul.page-numbers {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; margin: 0; padding: 0;
}
.pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); background: var(--panel);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--paper-dim); line-height: 1;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.pager a.page-numbers:hover { border-color: var(--line-strong); color: var(--paper); }
.pager .page-numbers.current {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}

@media (max-width: 1024px) {
  .shop-inner { grid-template-columns: minmax(0, 1fr); }
  .shop-rail { display: none; }
  .chip-row {
    display: flex; overflow-x: auto; overflow-y: hidden;
    padding-bottom: 10px; scrollbar-width: none; -ms-overflow-style: none;
    /* 右端淡出，明确告诉用户"还能往右划" */
    -webkit-mask-image: linear-gradient(90deg, #000 86%, rgba(0, 0, 0, 0.12));
    mask-image: linear-gradient(90deg, #000 86%, rgba(0, 0, 0, 0.12));
  }
  .chip-row::-webkit-scrollbar { display: none; }
  .pd-inner { grid-template-columns: minmax(0, 1fr); }
  .pd-body-inner { grid-template-columns: minmax(0, 1fr); }
  .pd-aside { position: static; }
}
@media (max-width: 760px) {
  .p-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pd-facts dt { padding-top: 0; }
  .hero-meta { gap: 8px 18px; }
}

/* ---------- legacy content (Elementor) inside the unified shell ----------
   Content pages keep their original copy and images; only the surrounding
   chrome, type scale and colour are normalised to this design.
   ---------------------------------------------------------------------- */
.prose.diye-el {
  max-width: none;
  display: grid;
  gap: clamp(22px, 2.8vw, 38px);
}
.diye-el .elementor,
.diye-el .elementor-inner,
.diye-el .elementor-section-wrap,
.diye-el .elementor-section-boxed > .elementor-container { max-width: none !important; width: 100% !important; }
.diye-el .elementor-section,
.diye-el .elementor-column,
.diye-el .elementor-widget-wrap,
.diye-el .elementor-widget-container { background: transparent !important; }
.diye-el .elementor-section { padding-block: 0 !important; margin-block: 0 !important; }
.diye-el .elementor-column-gap-default > .elementor-column > .elementor-element-populated { padding: 0 22px 0 0 !important; }
.diye-el .elementor-column-gap-default > .elementor-column:last-child > .elementor-element-populated { padding-right: 0 !important; }

.diye-el h1, .diye-el h2, .diye-el h3, .diye-el h4, .diye-el h5,
.diye-el .elementor-heading-title {
  font-family: var(--f-display) !important;
  color: var(--paper) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.14 !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}
.diye-el h2, .diye-el h2.elementor-heading-title { font-size: clamp(22px, 2.4vw, 30px) !important; }
.diye-el h3, .diye-el h3.elementor-heading-title { font-size: clamp(18px, 1.8vw, 22px) !important; }
.diye-el h4, .diye-el h4.elementor-heading-title { font-size: 17px !important; }

.diye-el p, .diye-el li, .diye-el dd,
.diye-el .elementor-widget-text-editor,
.diye-el .elementor-widget-text-editor p,
.diye-el .elementor-widget-text-editor li {
  font-family: var(--f-body) !important;
  color: var(--paper-dim) !important;
  font-size: 15px !important;
  line-height: 1.72 !important;
}
.diye-el ul, .diye-el ol { padding-left: 20px; display: grid; gap: 6px; }
.diye-el a { color: var(--accent); }
.diye-el img, .diye-el .elementor-widget-image img { max-width: 100% !important; height: auto !important; }
.diye-el .elementor-widget-image img { border: 1px solid var(--line); background: #fff; }
.diye-el .elementor-button {
  font-family: var(--f-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  background: var(--paper) !important;
  border-color: var(--paper) !important;
  color: var(--ink) !important;
  border-radius: 2px !important;
  padding: 12px 20px !important;
}
.diye-el .elementor-widget-divider .elementor-divider-separator { border-top-color: var(--line) !important; }
.diye-el table { width: 100%; border-collapse: collapse; }
.diye-el table th, .diye-el table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 13px;
  text-align: left;
  color: var(--paper-dim);
}
.diye-el table th { background: var(--ink-2); color: var(--paper); font-family: var(--f-mono); }
.diye-el blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 0;
  color: var(--paper-dim);
}

@media (max-width: 760px) {
  .diye-el .elementor-column { width: 100% !important; }
  .diye-el .elementor-column-gap-default > .elementor-column > .elementor-element-populated { padding: 0 0 18px !important; }
}
