/*
 * 首页样式 —— 对应 docs/design/UI-SPEC.md
 * 只被 frontend/en/index.html 与 frontend/cn/index.html 引用。
 * 其它页面（产品列表、详情、关于）仍走 musilab-custom.css / musilab-theme.css，
 * 两套样式互不引用，所以这里的类名可以放心用短名。
 */

/* ============ 1. 令牌 ============ */
:root {
  --bg: #ffffff;
  --surface: #f5f5f7;   /* 中性浅灰，不带暖调 */
  --ink: #1d1d1f;
  --ink-2: #6e6e73;     /* 白底对比度 4.8:1，正文与所有"需要读"的小字都用它 */
  --ink-3: #a1a1a6;     /* 只有 2.4:1，仅用于纯装饰（跑马灯、版权行） */
  --line: #e6e6e9;
  --line-2: #d2d2d7;
  --navy: #1a1a2e;      /* 沿用原品牌色，只做 CTA 与激活态 */
  --gold: #b08d3f;      /* 只做 1px 细节：logo 圆点、eyebrow 短线、12+ 的加号 */

  --r: 14px;
  --r-sm: 7px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);

  --ls-display: -0.042em;
  --ls-sec: -0.038em;
  --hdr-h: 72px;
}

/* 中文不靠负字距做紧排（Inter 的字距规则对汉字无效，强压会挤成一团），
   改为靠字号与行高。字体栈也把中文系统字体提到前面。 */
html[lang='zh-CN'] {
  --ls-display: -0.01em;
  --ls-sec: -0.012em;
}

/* ============ 2. 基础 ============ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang='zh-CN'] body { letter-spacing: 0; line-height: 1.75; }

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

::selection { background: var(--navy); color: #fff; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  /* 2026-11-21：上限 1360 → 1600，内边距 56 → 44。
     1920 宽屏上内容从 1328 变 1600，左右留白从约 336 降到约 160；
     四列产品卡从约 317px 宽变约 365px。 */
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.2vw, 44px);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  transition: top 0.2s var(--ease-io);
}
.skip:focus { top: 12px; }

/* 给读屏器看、屏幕上不显示 */
.sr-only {
  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;
}

/* ============ 3. 排版 ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
html[lang='zh-CN'] .eyebrow { letter-spacing: 0.14em; }

.display {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 700;
  letter-spacing: var(--ls-display);
  line-height: 1.03;
  margin: 16px 0 20px;
  text-wrap: balance;
}
html[lang='zh-CN'] .display { line-height: 1.14; }

.h-sec {
  font-size: clamp(26px, 2.7vw, 40px);
  font-weight: 700;
  letter-spacing: var(--ls-sec);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
html[lang='zh-CN'] .h-sec { line-height: 1.24; }

.lead {
  color: var(--ink-2);
  font-size: clamp(15px, 1.15vw, 17px);
  max-width: 50ch;
  margin: 0;
  line-height: 1.65;
}

/* ============ 4. 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s,
    border-color 0.3s, box-shadow 0.35s;
}
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(26, 26, 46, 0.55);
}
.btn--line { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn span[aria-hidden] { transition: transform 0.3s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }

/* ============ 5. 顶栏 ============ */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease-io), border-color 0.45s var(--ease-io),
    box-shadow 0.45s var(--ease-io);
}
.hdr.is-stuck {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--line);
}

.hdr__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--hdr-h);
  transition: height 0.45s var(--ease);
}
.hdr.is-stuck .hdr__in { height: 56px; }

/*
 * 品牌区（2026-11-21 改）：
 * logo 从 16.5px 放大到 22px —— 旧站的 .navbar-brand 是 1.4rem = 22.4px，
 * 现在的字反而比改版前小，看着不对。
 * 首屏那行「Since 2002 · Dongguan」挪到 logo 下面，所以这里改成上下两行的竖排。
 */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 22px;
  line-height: 1.05;
  transition: font-size 0.4s var(--ease);
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform 0.4s var(--ease);
}
.brand__tag {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink-2); /* 不用 --ink-3：那只有 2.4:1，小字必须能读 */
}
html[lang='zh-CN'] .brand { letter-spacing: 0; }
html[lang='zh-CN'] .brand__tag { letter-spacing: 0.06em; }
.hdr.is-stuck .brand { font-size: 20px; }
.hdr.is-stuck .brand i { transform: scale(0.85); }

.nav { margin-left: auto; display: flex; gap: 26px; }
.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color 0.25s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--ink); font-weight: 500; }

.lang {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 11px;
  transition: color 0.3s, border-color 0.3s;
}
.lang:hover { color: var(--ink); border-color: var(--ink); }

.hdr .btn { flex: none; }

/* 汉堡 38px、语言胶囊 ~26px，视觉尺寸别动，用伪元素把可点区域撑到 44px 以上 */
.lang { position: relative; }
.burger::after,
.lang::after {
  content: '';
  position: absolute;
  border-radius: 999px;
}
.burger::after { inset: -4px; }
.lang::after { inset: -10px -8px; }

/* 汉堡 */
.burger {
  display: none;
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 21px; }
body.menu-open .burger span:first-child { top: 18px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 18px; transform: rotate(-45deg); }

.mnav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
  padding: 6px 0 18px;
  box-shadow: 0 20px 40px -30px rgba(0, 0, 0, 0.4);
}
body.menu-open .mnav { display: block; }
.mnav a {
  display: block;
  padding: 13px clamp(20px, 4vw, 56px);
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.mnav a:last-child { border-bottom: none; font-weight: 600; }

/* ============ 6. 首屏 ============ */
.hero { padding: clamp(92px, 10vw, 124px) 0 clamp(28px, 3vw, 44px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4.5vw, 68px);
  align-items: center;
}
.hero__cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero__stats {
  display: flex;
  gap: clamp(20px, 3vw, 46px);
  margin-top: clamp(28px, 3.6vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat__num {
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat__num small { font-size: 0.55em; color: var(--gold); margin-left: 1px; }
.stat__lbl {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2); /* 11px 用 --ink-3 只有 2.4:1，读不出来 */
}
html[lang='zh-CN'] .stat__lbl { letter-spacing: 0.06em; }

/* ---------- 首屏轮播 ---------- */
.hero__media {
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
/* 1:1 的框：框高由宽度决定，图片永远 contain 在里面，CLS 稳定 */
.slides__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
/* 所有 slide 叠在同一格：切换只改透明度，不重排、不跳高 */
.slides__track {
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.slide {
  grid-area: 1 / 1;
  position: relative;
  opacity: 0;
  /* visibility 而不是 display:none：淡出能播完，同时把隐藏页里的链接移出 Tab 序列 */
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.slide.is-current {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease), visibility 0s;
}
.slide img {
  width: 100%;
  height: 100%;
  /* contain 而不是 cover：换成非正方形素材也不会裁掉产品 */
  object-fit: contain;
  transition: transform 1.2s var(--ease);
}
.hero__media:hover .slide.is-current img { transform: scale(1.025); }
.slide__link { display: block; width: 100%; height: 100%; }

/* 箭头：只有 JS 接管后（.is-ready）才出现，否则无 JS 时是一排点不动的死按钮 */
.slides__arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s var(--ease-io), background 0.3s;
}
.slides__arrow--prev { left: 12px; }
.slides__arrow--next { right: 12px; }
#heroSlides.is-ready .slides__arrow { display: grid; }
.hero__media:hover .slides__arrow,
.slides__arrow:focus-visible { opacity: 1; }
/* 触屏没有 hover，箭头要常显 */
@media (hover: none) {
  #heroSlides.is-ready .slides__arrow { opacity: 1; }
}

/* 圆点压在图片框内的底部中间。
   不做独立控制条：那会让框高出一行，也让「图」和「控件」分成两块。 */
.slides__dots {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 2;
  align-items: center;
}
#heroSlides.is-ready .slides__dots { display: flex; }
.slides__dot {
  display: grid;
  place-items: center;
  /* 视觉上只有 5px，但保留 24px 的命中区（WCAG 2.5.8 的最小目标尺寸） */
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.slides__dot::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  /* 浅灰线压在白色产品图上会看不见，用 --ink-3 */
  background: var(--ink-3);
  transition: background 0.3s, transform 0.3s;
}
.slides__dot.is-current::before { background: var(--navy); transform: scale(1.4); }

.badge {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 10px -6px rgba(0, 0, 0, 0.3);
  font-size: 11.5px;
  color: var(--ink-2);
}

/* ============ 7. 区块 ============ */
.sect { padding: clamp(52px, 6.4vw, 96px) 0; }
.sect--first { padding-top: clamp(22px, 2.4vw, 34px); }
.sect--flush { padding-top: 0; }

.head { margin-bottom: clamp(20px, 2.6vw, 34px); }
.head .h-sec { margin-top: 14px; }
.head > p {
  margin: 8px 0 0;
  max-width: 36ch;
  color: var(--ink-2);
  font-size: 14px;
}

/* 分类筛选：{{CATEGORY_LIST}} 输出的就是 a.category-btn（产品页也在用同一批链接，
   但那边的样式在 musilab-custom.css 里，两页互不影响） */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.chips .category-btn {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: color 0.28s var(--ease-io), border-color 0.28s var(--ease-io),
    background 0.28s var(--ease-io);
}
.chips .category-btn:hover { border-color: var(--line-2); color: var(--ink); }
.chips .category-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ============ 8. 产品卡 ============ */
#productList {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}
#productList:empty { display: none; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.4s;
  will-change: transform;
}
.card:hover,
.card:focus-visible {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.32);
  border-color: var(--line-2);
  z-index: 2; /* 不然阴影会被相邻卡压住 */
}

.card__media {
  position: relative;
  border-radius: calc(var(--r) - 6px);
  overflow: hidden;
  background: #fff;
}
/* aspect-ratio 写在 img 上，不在容器上：
   ≤860px 时简介层要回到文档流，容器必须能跟着变高 */
.card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: transform 0.9s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__hover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 14px 13px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.98) 42%,
    rgba(255, 255, 255, 0.9) 70%,
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
  pointer-events: none;
}
.card:hover .card__hover,
.card:focus-visible .card__hover { opacity: 1; transform: none; }
.card__hover p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__hover span {
  display: inline-block;
  margin-top: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
}
.card__hover span::after {
  content: '\2192';
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.card:hover .card__hover span::after { transform: translateX(4px); }

/* margin-top:auto：同一行里描述长短不一，把名字压到卡片底部，
   否则各卡片的产品名高低不齐（窄屏简介常显时最明显） */
.card__body { margin-top: auto; padding: 12px 4px 2px; }
.card__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.card__meta {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-2);
}

/* ============ 9. 能力带 ============ */
.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* auto-fit：后台把 4 格删成 2 格或 3 格时，栅格自己适应，不用改 CSS */
.band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.band__cell {
  padding: clamp(24px, 3vw, 38px) clamp(16px, 2vw, 30px);
  border-right: 1px solid var(--line);
  transition: background 0.35s;
}
.band__cell:last-child { border-right: none; }
.band__cell:hover { background: #fff; }
.band__k {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.band__v {
  margin-top: 9px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}
.band__d {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
  /* 格子少（auto-fit 只剩 2 格）时一行会非常长，限一下阅读宽度 */
  max-width: 34ch;
}

/* ============ 10. 工艺四步 ============ */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.step { position: relative; padding-right: 24px; }
.step__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.step:hover .step__dot {
  border-color: var(--navy);
  color: var(--navy);
  box-shadow: 0 0 0 5px rgba(26, 26, 46, 0.06);
}
.step__t { margin-top: 18px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.015em; }
.step__d { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }

/* ============ 11. 客户跑马灯 ============ */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  padding: 0 clamp(16px, 2.2vw, 30px);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  transition: color 0.3s;
  white-space: nowrap;
}
.marquee__item::after {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-2);
  flex: none;
}
.marquee__item:hover { color: var(--ink); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ 12. 结尾 CTA ============ */
.end {
  padding: clamp(56px, 7.5vw, 104px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  text-align: center;
}
.end .eyebrow { justify-content: center; }
.end .display { margin-top: 16px; margin-bottom: 14px; font-size: clamp(30px, 3.6vw, 50px); }
.end p { margin: 0 auto 28px; text-align: center; }
.end .hero__cta { justify-content: center; margin-top: 0; }

/* ============ 13. 页脚 ============ */
.ftr { border-top: 1px solid var(--line); padding: 36px 0 26px; }
.ftr__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 28px;
}
.ftr__brand { margin-bottom: 10px; }
.ftr h2,
.ftr h3 {
  margin: 0 0 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ftr p,
.ftr a { font-size: 13px; line-height: 1.9; color: var(--ink-2); margin: 0; }
.ftr a:hover { color: var(--ink); }
.ftr a { display: inline-block; }

/* 页脚的分类列表同样来自 {{CATEGORY_LIST}}，这里是竖排纯文字链接 */
.ftr__cat { display: flex; flex-direction: column; align-items: flex-start; }
.ftr__cat .category-btn { display: block; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.ftr__cat .category-btn:hover { color: var(--ink); }
.ftr__cat .category-btn.active { color: var(--ink); font-weight: 500; }

.ftr__end {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

/* ============ 14. 进场（只在有 JS 时生效） ============ */
.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .rv.in { opacity: 1; transform: none; }

/* ============ 15. 降级 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .slide { transition: none; }
  .hero__media img,
  .card,
  .card__media img,
  .btn { transition: none; }
  .card:hover,
  .card:focus-visible { transform: none; }
  .hero__media:hover img,
  .card:hover .card__media img { transform: none; }
}

/* ============ 16. 响应式 ============ */
@media (max-width: 1080px) {
  #productList { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band__grid { grid-template-columns: repeat(2, 1fr); }
  .band__cell:nth-child(2) { border-right: none; }
  .band__cell:nth-child(1),
  .band__cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .steps::before { display: none; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero { padding-top: 84px; }
  .hero__grid { grid-template-columns: 1fr; gap: 6px; }
  /* 单列后图片会吃满整行宽度，平板上就是一个 700px 的正方形，太压；
     给个上限并靠左，和文字保持同一条左边线 */
  .hero__media { order: 0; margin-top: 22px; max-width: 480px; width: 100%; }
  .hero__stats .stat { flex: 1 1 40%; }

  .nav { display: none; }
  .burger { display: block; }
  .hdr .btn { display: none; }
  .hdr__in { height: 60px; gap: 14px; }
  .hdr.is-stuck .hdr__in { height: 54px; }
  /* logo 在手机上让一点，给汉堡和语言切换留空间 */
  .brand { font-size: 20px; }
  .brand i { width: 8px; height: 8px; }

  /* 触屏没有悬停概念：简介直接显示在图片下方，卡片不做位移 */
  .card:hover,
  .card:focus-visible {
    transform: none;
    box-shadow: none;
    border-color: var(--line);
    z-index: auto;
  }
  .card:hover .card__media img { transform: none; }
  .card__media { overflow: visible; }
  .card__hover {
    position: static;
    padding: 10px 4px 0;
    background: none;
    opacity: 1;
    transform: none;
  }
  .card__hover span { display: none; }
}

@media (max-width: 620px) {
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }

  #productList {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #productList::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 74%; scroll-snap-align: start; }

  .band__grid { grid-template-columns: 1fr; }
  .band__cell { border-right: none; border-bottom: 1px solid var(--line); }
  .band__cell:last-child { border-bottom: none; }
  .steps { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .ftr__end { margin-top: 24px; }
}
