/* ============================================================
   青岛金辉工艺品有限公司 — 站点样式
   单文件、无框架、无外部字体，适配桌面与移动端
   设计手法参考 codex-landing-page 技能卡的「溢裁 + 遮罩淡出」
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* 色彩：暖米白纸面 + 深棕墨 + 黄铜 + 烛火橙 */
  --paper: #fbf8f3;
  --paper-2: #f4ede2;
  --paper-3: #ece2d2;
  --ink: #241c16;
  --ink-2: #6a5949;        /* 正文次级，对 paper 对比约 5.5:1 */
  --brass: #a8763c;        /* 仅用于描边、大字号、装饰 */
  --brass-deep: #8a5a24;   /* 可作正文链接色，对比约 4.7:1 */
  --flame: #a8401a;        /* 主按钮底色，白字对比约 5:1 */
  --flame-soft: #e8b796;
  --line: #e2d6c4;
  --ok: #3f6b4a;

  /* 排版 */
  --font-sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei",
    "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Songti TC", "Noto Serif TC", "Source Han Serif TC",
    "Times New Roman", Georgia, serif;

  /* 间距与容器 */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --sec-y: clamp(40px, 4.8vw, 72px);
  --header-h: 68px;

  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* 兜底：任何溢出都不产生横向滚动 */
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

/* hidden 属性必须能压过后续的 display 声明，否则 JS 隐藏会失效 */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.75rem, 4.4vw, 3.05rem); line-height: 1.24; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.28rem); }

/* ---------- 标题字符浮现（逻辑在 main.js 的 initCharReveal） ----------
   每个字是一个 inline-block，默认完全可见。鼠标进入时先被瞬间压到
   is-out 状态（下移半字、透明、失焦），再逐字放回来，形成「浮现」。
   white-space: pre 是必须的，否则逐字包裹后连续空格会被折叠。 */
[data-chars] .ch {
  display: inline-block;
  white-space: pre;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1),
    opacity 0.42s ease,
    filter 0.42s ease;
}

[data-chars].is-out .ch {
  transform: translateY(0.5em);
  opacity: 0;
  filter: blur(5px);
}

/* 播放开始的那一帧：关掉过渡，让「收起」瞬时完成，否则会看到一次缓慢下沉 */
[data-chars].is-instant .ch { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  [data-chars] .ch { transition: none; }
  [data-chars].is-out .ch { transform: none; opacity: 1; filter: none; }
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brass-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--flame); }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

/* 键盘焦点必须可见 */
:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 工具类 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-y); }

/* 色块上下缘溶接 + 大尺度柔光
   手法来源：Codex 首屏用一条「实底 + 渐隐」的定高底色带，把区块与页面底色
   接在一起，而不是用 1px 边线硬切。
   这里叠四层：
     ① ②  上下各 64px 的溶接渐变（对应「渐隐」那一半）
     ③ ④  两团极缓的径向光，让大面积米色有明暗，不变成一块平色
   注意：渐变里的颜色全部写字面值，不写 var()。此前实测该环境下把变量放进
   gradient 会产生「计算值正常但不绘制」的假象（详见 BACKGROUND_IMPLEMENTATION.md）。
   --paper = #fbf8f3，--paper-2 = #f4ede2，--flame-soft = #e8b796 */
.section--tint {
  background-color: #f4ede2;
  background-image:
    linear-gradient(to bottom, #fbf8f3 0, rgba(244, 237, 226, 0) 64px),
    linear-gradient(to top, #fbf8f3 0, rgba(244, 237, 226, 0) 64px),
    radial-gradient(72% 46% at 78% 16%, rgba(255, 252, 245, 0.9) 0%, rgba(255, 252, 245, 0) 68%),
    radial-gradient(60% 40% at 10% 84%, rgba(232, 183, 150, 0.18) 0%, rgba(232, 183, 150, 0) 70%);
  background-repeat: no-repeat;
  background-size: 100% 64px, 100% 64px, 100% 100%, 100% 100%;
  background-position: top, bottom, center, center;
}

.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h2 { color: var(--paper); }
.section--dark p { color: #d9cfc2; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- 页眉 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand__mark { flex: none; width: 26px; height: 26px; }
.brand__cn { font-size: 1.02rem; }
.brand__en {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.nav { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  margin: 0; padding: 0;
  list-style: none;
}
.nav__list li { margin: 0; }
.nav__link {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink-2);
  font-size: 0.94rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav__link:hover { color: var(--ink); border-bottom-color: var(--brass); }
.nav__link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* 页眉 CTA：需用 .btn 前缀提高特异度，否则被后面的 .btn{display:inline-flex} 覆盖 */
.btn.header__cta { display: none; }

/* 移动端菜单按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--ink); }
.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bars span {
  display: block; height: 1.5px; background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* 移动端抽屉 */
.drawer {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.drawer[data-open="true"] { display: block; }
.drawer ul {
  margin: 0; padding: 10px var(--gutter) 22px;
  list-style: none;
}
.drawer li { margin: 0; border-bottom: 1px solid var(--line); }
.drawer li:last-child { border-bottom: 0; }
.drawer a {
  display: block;
  padding: 14px 2px;
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}
.drawer .btn { margin-top: 16px; }

@media (min-width: 900px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .drawer { display: none !important; }
  .btn.header__cta { display: inline-flex; }
  :root { --header-h: 76px; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn--primary { background: var(--flame); color: #fff; }
.btn--primary:hover { background: #8e3413; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: transparent; color: var(--paper); border-color: rgba(251, 248, 243, 0.55); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn:active { transform: translateY(1px); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(460px, 64dvh, 600px);

  /* 底部不再用 1px 边线收边，改成 64px 的渐隐过渡到页面底色
     （--paper-2 #f4ede2 → --paper #fbf8f3）。渐变画在 background 上，
     位于内容之下，不会遮住数据面板。
     高度定 64px 而不是更大：插画自身的 mask 已经在淡出，
     两层叠加过猛会把桌面线一起洗掉。 */
  background:
    linear-gradient(to bottom, rgba(244, 237, 226, 0) calc(100% - 64px), #fbf8f3 100%),
    #f4ede2;

  /* 指標視差的自訂屬性，全部由 JS 寫入；CSS 只給默認值。
     --px/--py 是歸一化後的指標位置（-1 ~ 1）。 */
  --px: 0;
  --py: 0;
}

/* 背景图层：按技能卡记录的「溢裁」手法实现
   容器内放大 108% 宽 / 153% 高并上移一半，形成居中裁切 */
.hero__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* 遮罩直接作用于 SVG 本体：放在父容器上时，子元素的 opacity 会让遮罩失效。
   SVG 高 153% 且上移 26.5%，因此 51% ≈ 容器高度的 52% 处。 */
.hero__art > svg {
  position: absolute;
  left: -4%;
  top: -31%;
  width: 108%;
  height: 153%;
  max-width: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 51%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0, #000 51%, transparent 96%);
}

/* ---------- 指標視差 ----------
   参考页的写法是
     transform: translate(calc(var(--pointer-x) * var(--logo-depth)), ...)
   即「归一化指针位移 × 该层深度系数」。
   这里拆成 --px/--py（-1~1）与 --amp（该层位移幅度），
   每个 SVG 图层在行内写 style="--amp:34"，深度关系一看就知道。
   注意 --amp 的单位是 SVG 使用者单位，不是 CSS px。 */
.hero__art .art-layer {
  transform: translate(
    calc(var(--px) * var(--amp, 0) * 1px),
    calc(var(--py) * var(--amp, 0) * 1px)
  );
}

/* 火焰：跟着蜡体平移，再按指针方向轻微倾斜。
   transform-origin 要落在火苗底部，所以必须用 fill-box 取自身边界。 */
.hero__art .art-flame {
  transform-box: fill-box;
  transform-origin: 50% 92%;
  transform:
    translate(
      calc(var(--px) * var(--amp, 0) * 1px),
      calc(var(--py) * var(--amp, 0) * 1px)
    )
    rotate(calc(var(--px) * 4.5deg));
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: clamp(28px, 4vw, 56px);
  min-height: clamp(460px, 64dvh, 600px);
  padding-block: clamp(32px, 4.8vw, 64px) clamp(28px, 4.2vw, 56px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--brass-deep);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--brass);
}

.hero h1 { margin-bottom: 0.5em; max-width: 20em; }
.hero__lead {
  max-width: 31em;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}
.hero__en {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.06em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 40px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero__stat {
  padding: 18px 20px;
  background: rgba(251, 248, 243, 0.82);
}
.hero__stat dt {
  color: var(--ink-2);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__stat dd {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .hero__stats { grid-template-columns: 1fr; }
  /* 四项数据都未填时，JS 会移除数据面板并加此类，首屏回到单列，不留空洞 */
  .hero__inner--solo { grid-template-columns: 1fr; }
  /* 首屏已不放数据面板，文字直接压在插画左侧。插画随视口等比缩放，
     蜡烛的左边线会随宽度左移，所以正文宽度要跟视口挂钩，否则 1000–1100px 区间会压到蜡烛上。 */
  .hero__inner--solo .hero__lead { max-width: min(38em, 50vw); }
}

/* 小屏上把蜡体压淡，并让首屏内容贴顶排列，避免大片留白 */
@media (max-width: 899px) {
  .hero__art > svg { opacity: 0.55; }
  .hero,
  .hero__inner { min-height: auto; }
  /* 小屏首屏只有 520px 上下，88px 的淡出段占到 17%，会把蜡体洗掉大半。
     压到 56px，过渡还在，但主体完整。 */
  .hero {
    background:
      linear-gradient(to bottom, rgba(244, 237, 226, 0) calc(100% - 56px), #fbf8f3 100%),
      #f4ede2;
  }
  .hero__inner { align-content: start; padding-block: clamp(36px, 8vw, 64px) clamp(40px, 8vw, 60px); }
  .hero__eyebrow { margin-bottom: 14px; }
}

/* ---------- 信任条 ---------- */
.trust { padding-block: 28px; border-bottom: 1px solid var(--line); }
.trust__label {
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}
.trust__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 56px);
}
.trust__item {
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 2px;
}

/* 无认证时展示的四项交付承诺 */
.trust__row--fallback { gap: clamp(14px, 3vw, 40px); }

@media (max-width: 640px) {
  .trust__row--fallback {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
  }
  .trust__row--fallback .trust__item { text-align: center; font-size: 0.9rem; }
}

/* ---------- 认证明细（关于页） ---------- */
.cert-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
@media (min-width: 700px) { .cert-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cert-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cert-list__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--paper);
  box-shadow: inset -1px -1px 0 var(--line);
}
.cert-list__name {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.cert-list__kind {
  color: var(--ink-2);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}
@media (max-width: 480px) {
  .cert-list__item { padding: 14px; }
  .cert-list__name { font-size: 0.95rem; }
}

/* ---------- 事实行（关于页：成立日期 / 主要市场） ---------- */
.fact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  margin-top: 18px;
}
.fact-line p {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 0.92rem;
}
.fact-line em {
  flex: none;
  width: 4.6em;
  color: var(--ink-2);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

/* ---------- 区块标题 ---------- */
.sec-head { margin-bottom: clamp(22px, 3.2vw, 40px); }
.sec-head__kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--brass-deep);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.sec-head__en {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sec-head__desc {
  max-width: 44em;
  margin-top: 14px;
  color: var(--ink-2);
}

/* ---------- 能力卡（四支柱） ---------- */
.pillars {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pillars { grid-template-columns: repeat(4, 1fr); } }

.pillar {
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper);
}
.pillar__no {
  display: block;
  margin-bottom: 14px;
  color: var(--brass);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--ink-2); font-size: 0.93rem; }

/* ---------- 产品卡 ---------- */
.products {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .products { grid-template-columns: repeat(3, 1fr); } }

.product {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.product:hover { border-color: var(--brass); transform: translateY(-2px); }

.product__figure {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.product__figure svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.product__body { padding: clamp(20px, 2.6vw, 26px); }
.product__body h3 { margin-bottom: 8px; }
.product__body p { color: var(--ink-2); font-size: 0.92rem; margin: 0; }
.product__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.product__tags li {
  margin: 0;
  padding: 3px 9px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-2);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

/* ---------- 应用场景 ---------- */
.scenes {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 760px) { .scenes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .scenes { grid-template-columns: repeat(4, 1fr); } }

.scene {
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper-2);
}
.scene h3 { font-size: 1.05rem; margin-bottom: 8px; }
.scene p { color: var(--ink-2); font-size: 0.9rem; }

/* ---------- 流程 ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding-top: 40px;
  border-top: 1px solid rgba(251, 248, 243, 0.28);
}
.steps li::before {
  content: "0" counter(step);
  position: absolute;
  top: 10px; left: 0;
  color: var(--flame-soft);
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}
.steps h3 { color: var(--paper); font-size: 1.02rem; margin-bottom: 6px; }
.steps p { color: #cfc4b6; font-size: 0.9rem; margin: 0; }

/* ---------- 证言（有真实内容才启用） ---------- */
.quotes {
  display: grid;
  gap: clamp(18px, 2.4vw, 26px);
}
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote {
  margin: 0;
  padding: clamp(22px, 3vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.quote blockquote {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.7;
}
.quote figcaption {
  color: var(--ink-2);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.quote figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- 图文分栏 ---------- */
.split {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split--reverse > .split__media { order: -1; }
@media (min-width: 900px) { .split--reverse > .split__media { order: 0; } }

.split__media {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.split__media svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- 规格表 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 18px; }
@media (min-width: 700px) {
  .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}
.field { display: block; }
.field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-2);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.field .req { color: var(--flame); }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: #cbb999; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(168, 118, 60, 0.16);
}
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; background-image: none; }

.field__err {
  display: none;
  margin-top: 6px;
  color: #9c2d0e;
  font-size: 0.8rem;
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea,
.field[data-invalid="true"] select { border-color: #b8350f; }
.field[data-invalid="true"] .field__err { display: block; }

.form__note { color: var(--ink-2); font-size: 0.82rem; }
.form__status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.form__status[data-state="ok"] {
  display: block;
  background: #eef5ee;
  border: 1px solid #bcd6c2;
  color: #28523a;
}
.form__status[data-state="error"] {
  display: block;
  background: #fdf0eb;
  border: 1px solid #efc9b9;
  color: #8a3413;
}

/* ---------- 联系信息块 ---------- */
.info { display: grid; gap: 26px; }
@media (min-width: 620px) { .info { grid-template-columns: repeat(2, 1fr); } }
.info__item h3 {
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.info__item p { color: var(--ink); margin: 0; word-break: break-word; }

/* ---------- CTA 带 ---------- */
.cta-band {
  position: relative;
  padding-block: clamp(36px, 4.6vw, 64px);
  /* 与上方深色区块无缝接续：顶部取 --ink #241c16，向下压深到 #14100c。
     两块同色会糊成一片，纯色压深又会出现硬分界；用纵向渐变两者都避开了。 */
  background: linear-gradient(to bottom, #241c16 0%, #14100c 100%);
  color: var(--paper);
  overflow: hidden;
}

/* 深色块上叠两团极淡的暖光，避免整块死黑。
   坐标写死百分比，不写 var()——同上，该环境下变量进渐变坐标有渲染风险。
   --flame-soft #e8b796 / --brass #a8763c */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(58% 120% at 88% 4%, rgba(232, 183, 150, 0.16) 0%, rgba(232, 183, 150, 0) 68%),
    radial-gradient(44% 92% at 6% 96%, rgba(168, 118, 60, 0.14) 0%, rgba(168, 118, 60, 0) 70%);
}
.cta-band__inner {
  position: relative;
  display: grid;
  gap: 26px;
  align-items: center;
}
@media (min-width: 860px) {
  .cta-band__inner { grid-template-columns: 1fr auto; gap: 48px; }
}
.cta-band h2 { margin-bottom: 10px; color: var(--paper); }
.cta-band p { color: #cfc4b6; max-width: 40em; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 页脚 ---------- */
.footer {
  padding-block: clamp(44px, 6vw, 68px) 28px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.footer__grid {
  display: grid;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer h3 {
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 22px;
  color: var(--ink-2);
  font-size: 0.8rem;
}

/* ---------- 入场动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  /* 视差属于装饰性动效，关掉后画面回到完全静态 */
  .hero__art .art-layer,
  .hero__art .art-flame { transform: none; }
}

/* ---------- 无障碍 ---------- */
@media (prefers-contrast: more) {
  :root { --ink-2: #4a3d31; --line: #b9a88f; }
}

/* ---------- 內頁頁首 ----------
   照 Codex 首屏那条「定高底色带」改：不再是整块纯色矩形 + 下边框，
   而是一条定高（clamp 280–460px）、实底 38%、余下渐隐到透明的底色带。
   带子比区块本身高，会溢出到下方白色区块上；因为下缘是渐隐的，
   接缝看不出来——这正是它比 border 更干净的原因。
   原页参数：height 1200px、mask 实底 480px、渐隐至 1200px（即实底 40%）。
   这里按本站区块高度缩到 38%，让淡出段更短，避免整屏发虚。 */
.page-head {
  position: relative;
  isolation: isolate;
  padding-block: clamp(30px, 4.2vw, 58px) clamp(18px, 2.8vw, 30px);
}

.page-head::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: clamp(240px, 30vw, 360px);
  z-index: -1;
  pointer-events: none;
  background-color: var(--paper-2);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 38%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 38%, transparent 100%);
}

/* 叠两层柔光，让页首不是一块平整的米色。
   沿用上面色带的位置，绘制顺序在 ::before 之后，所以叠在底色带上。 */
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(62% 88% at 84% 4%, rgba(232, 183, 150, 0.3) 0%, rgba(232, 183, 150, 0) 70%),
    radial-gradient(48% 70% at 4% 96%, rgba(255, 252, 245, 0.85) 0%, rgba(255, 252, 245, 0) 72%);
}

.page-head h1 { margin-bottom: 0.4em; }
.page-head__lead { max-width: 40em; color: var(--ink-2); margin: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--brass); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- 產品目錄（列表式） ---------- */
.catalog {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.catalog > li {
  display: grid;
  gap: 18px;
  margin: 0;
  padding-block: clamp(26px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 840px) {
  .catalog > li {
    grid-template-columns: 168px minmax(0, 1fr) 232px;
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
  }
}
.catalog__thumb {
  width: 100%;
  max-width: 168px;
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.catalog__thumb svg { width: 100%; height: 100%; }
.catalog__body h2 {
  margin-bottom: 8px;
  font-size: clamp(1.15rem, 1.8vw, 1.32rem);
}
.catalog__body p { color: var(--ink-2); font-size: 0.94rem; }
.catalog__specs {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--ink-2);
}
.catalog__specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
}
.catalog__specs li:first-child { border-top: 0; }
.catalog__specs b {
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

/* ---------- 三栏说明 ---------- */
.trio {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
}
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio__card {
  padding: clamp(22px, 3vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.trio__card h3 { margin-bottom: 8px; }
.trio__card p { color: var(--ink-2); font-size: 0.92rem; margin: 0; }

/* ---------- 提示条 ---------- */
.notice {
  padding: 16px 18px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 0.88rem;
}
.notice strong { color: var(--ink); }

/* ============================================================
   多语言
   ------------------------------------------------------------
   1) 语言切换器（页眉）
   2) 英文 / 西语下的版式微调：
      中文版式里的「英文字幕行」「品牌英文副行」在英文/西语下会与
      标题重复，直接收起；品牌名改小并允许折行，避免手机端溢出。
   ------------------------------------------------------------ */

/* 首屏翻译完成前先不显示正文，避免先闪一下中文 */
html.i18n-loading body { opacity: 0; }

.header__end {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang__sel {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 21px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
}
.lang__sel:hover { border-color: var(--brass); }
.lang__sel:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 2px;
}
/* 原生下拉箭头在各浏览器里样式不一，自己画一个 */
.lang::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  margin-top: -1px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid var(--ink-2);
  pointer-events: none;
}

/* 英文 / 西语：收起中文版式自带的英文副行，避免与标题重复 */
html[data-lang="en"] .sec-head__en,
html[data-lang="es"] .sec-head__en,
html[data-lang="en"] .hero__en,
html[data-lang="es"] .hero__en,
html[data-lang="en"] .brand__en,
html[data-lang="es"] .brand__en,
html[data-lang="en"] .footer__copy-en,
html[data-lang="es"] .footer__copy-en { display: none; }

/* 英文公司名比中文长，品牌区允许折行并收小字号 */
html[data-lang="en"] .brand,
html[data-lang="es"] .brand { white-space: normal; }
html[data-lang="en"] .brand__cn,
html[data-lang="es"] .brand__cn {
  display: block;
  max-width: 13em;
  font-size: 0.86rem;
  line-height: 1.25;
}

/* 「成立日期 / 主要市场」这类定宽标签在英文下放不下 */
html[data-lang="en"] .fact-line em,
html[data-lang="es"] .fact-line em {
  width: auto;
  white-space: nowrap;
}

@media (max-width: 560px) {
  html[data-lang="en"] .brand__cn,
  html[data-lang="es"] .brand__cn { max-width: 9.5em; font-size: 0.78rem; }
  /* 手机上「選單」两个字占宽度，图标本身已经能说明用途 */
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 9px 11px; }
}
