﻿/* ==========================================================================
   TechX · 杭州探先智造有限公司 — 主样式表
   Design system v3.0 — Light / 产品即主角
   ---------------------------------------------------------------------------
   设计取向：参考 Apple 与宇树科技官网的表达方式，改掉 v2.0 的「深色霓虹」语言。

   v2.0 → v3.0 的关键取舍
   1. 底色改为白色系（#fff 与 #f5f5f7 交替，少数区块纯黑做对比）。
      产品渲染图本身是浅底，白底页面能让它无缝融入 —— 这是「产品即主角」的前提。
   2. 删除一切靠 CSS 堆出来的「科技感」：青色光晕、渐变文字、碳纤维斜纹、
      工程网格、四角图纸标记、旋转刻度环、悬浮玻璃药丸、跑马灯、卡片描边发光。
      这些是模板化视觉，堆得越多越像通用 AI 生成页。
   3. 真正的技术感来自真实素材：商业计划书里的工程线图（drawing-*、head-section、
      fiber-curve/loop）本身就是最好的技术视觉，不需要再画装饰。
   4. 主按钮改为黑色药丸，点缀色只保留一个克制的蓝（#0066cc）用于链接。
   5. 字体：中文字形一律走系统黑体栈，等宽体只用于纯 ASCII 的技术数值。
      —— v2.0 用等宽体 + 大写 + 宽字距去排版中文，中文无字形会回退到系统字体，
      在 11px / 0.16em 的字距下几乎不可读。详见 §3 的注释。
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. 字体（自托管，无外部 CDN 依赖）
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* 等宽体只有拉丁字形。凡是可能出现中文的地方都不要用它，否则中文回退到系统字体，
   与拉丁字母混排时字重、字宽、基线都对不上。 */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
  /* 表面：白 → 浅灰 → 黑 三级 */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #0a0a0b;

  /* 文字 */
  --fg: #1d1d1f;      /* 标题 */
  --fg-2: #4b4b50;    /* 正文 */
  --fg-3: #6e6e73;    /* 次级说明 */
  --fg-4: #86868b;    /* 最弱 */
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;

  /* 描边 */
  --line: #d2d2d7;
  --line-soft: #e6e6ea;
  --line-dark: rgba(255, 255, 255, 0.16);

  /* 点缀：只保留一个蓝，用于链接与聚焦态 */
  --accent: #0066cc;
  --accent-dark: #0055b3;
  --danger: #c0392b;

  /* 占位符（待替换内容）用的琥珀色 */
  --ph: #8a6420;
  --ph-bg: #fdf7ec;
  /* 尺寸 */
  --container: 1400px;
  --container-nav: 1120px;
  --container-text: 780px;
  --gutter: clamp(20px, 4vw, 44px);
  --header-h: 48px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* 动效 */
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --dur: 0.32s;
  /* 下拉面板与搜索的专用缓动：出场用减速曲线长一点，收场快一点，
     否则「收」的过程会拖沓，观感不干脆。 */
  --ease-mega: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-mega: 0.42s;
  --dur-mega-out: 0.26s;

  /* 字体栈 —— 拉丁优先，中文依次回退到各平台原生黑体。
     中文不要依赖任何自托管字体，这类字形文件动辄数 MB，国内首屏代价太大。 */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'HarmonyOS Sans SC', 'MiSans', 'Source Han Sans SC', 'Noto Sans SC',
    'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  font-feature-settings: 'kern' 1, 'liga' 1;
  /* 注意：这里刻意不写 -webkit-font-smoothing: antialiased。
     Windows 上它会强制灰度平滑，中文笔画细的会发虚、发灰，可读性明显变差；
     macOS 上它也会让字重变薄。国内用户以 Windows 为主，保留系统默认渲染更清楚。 */
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }

::selection { background: rgba(0, 102, 204, 0.16); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #f5f5f7; }
::-webkit-scrollbar-thumb { background: #c7c7cc; border-radius: 8px; border: 3px solid #f5f5f7; }
::-webkit-scrollbar-thumb:hover { background: #a8a8ad; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--bg-dark); color: #fff; padding: 12px 20px;
  font-weight: 600; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. 排版
   --------------------------------------------------------------------------
   中英混排的三条硬规则（v2.0 踩过的坑）：
   1) 字重不要低于 500 配大字号；中文黑体只有 Regular/Medium/Bold 少数几档，
      浏览器合成的假粗体在大字号下会糊。标题统一用 700。
   2) 不要给中文加 letter-spacing。汉字是等宽方块，拉开字距只会让词间距失真；
      负字距过大又会挤压笔画。正文用 0，大标题最多 -0.01em。
   3) 小字号下限 12px，重要标签 13px。中文笔画密度远高于拉丁，11px 以下就糊成一团。
   -------------------------------------------------------------------------- */
.u-display {
  font-size: clamp(2.3rem, 5.6vw, 4.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1, .u-h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h2, .u-h2 {
  font-size: clamp(1.65rem, 3.1vw, 2.6rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.008em;
}
h3, .u-h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}
h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }

p { color: var(--fg-2); }
.u-lead {
  font-size: clamp(1.0625rem, 1.35vw, 1.3125rem);
  line-height: 1.72;
  color: var(--fg-2);
  font-weight: 400;
}
.u-small { font-size: 0.9375rem; line-height: 1.7; }
.u-dim { color: var(--fg-3); }
.u-white { color: var(--fg); }
.u-cyan { color: var(--accent); }
.u-gold { color: var(--ph); }
.u-center { text-align: center; }

/* 小标签：用无衬线体、正常字距、13px 起。
   这里刻意不用等宽体 + 大写 + 宽字距的写法 —— 那是模板化页面的典型记号，
   而且一旦标签里出现中文就会回退成系统字体，观感很差。 */
.u-mono {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fg-3);
}
/* 纯 ASCII 的技术数值才走等宽体（尺寸、编号、日期） */
.u-tech {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg-3);
}

/* 数字：用无衬线体 + 等宽数字，比等宽字体的观感更高级，读数也稳 */
.u-num {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   4. 布局
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 1680px; }
.container--narrow { max-width: var(--container-text); }

.section { position: relative; padding-block: clamp(72px, 9vw, 148px); }
.section--tight { padding-block: clamp(52px, 6vw, 92px); }
.section--flush { padding-block: 0; }

.section-head { max-width: 860px; margin-bottom: clamp(38px, 5vw, 68px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; }

/* 交替底色：白 → 浅灰 → 白 ...，与 Apple 的节奏一致 */
.section--alt { background: var(--bg-alt); }
/* 纯黑区块，用于需要强对比的段落（工艺验证、CTA） */
.section--darkest { background: var(--bg-dark); color: var(--on-dark); }
.section--darkest h1, .section--darkest h2, .section--darkest h3, .section--darkest h4 { color: var(--on-dark); }
.section--darkest p, .section--darkest .u-lead { color: var(--on-dark-2); }
.section--darkest .u-dim, .section--darkest .u-mono { color: var(--on-dark-2); }
.section--darkest .u-white { color: var(--on-dark); }
.section--darkest .u-cyan { color: #5aa9f0; }

/* 卡片在深色区块上的表面色 */
.section--darkest .card { background: #1a1a1c; border-color: transparent; }
.section--darkest .card--media,
.section--darkest .card--photo { background: #1a1a1c; border-color: #2a2a2e; }
.section--darkest .card h3 { color: var(--on-dark); }
.section--darkest .card p { color: var(--on-dark-2); }
.section--darkest .tag { background: rgba(255, 255, 255, 0.1); color: #d2d2d7; }
.section--darkest .tag--cyan { background: #fff; color: #1d1d1f; }

/* v2.0 的装饰层：保留选择器以免旧标记残留影响布局，但不再产生视觉 */
.tex-carbon::before, .tex-grid::after { content: none; }
.hairline { height: 1px; border: 0; background: var(--line-soft); margin: 0; }
.hairline--glow { height: 1px; border: 0; background: var(--line-soft); }

.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* --------------------------------------------------------------------------
   5. 按钮 —— 主按钮黑色药丸，次按钮浅灰药丸，链接为蓝色文字
   尺寸对齐 apple.com：基准 14px / 36px 高，修饰符只做小幅放大。
   药丸做得越小越显精致，`min-height` 下调后要用 padding 保持点击热区，
   所以垂直 padding 不再等比缩小。
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  min-height: 36px;
  border: 0;
  border-radius: 980px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.btn svg { width: 13px; height: 13px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(2px); }

.btn--primary { --btn-bg: var(--fg); --btn-fg: #fff; font-weight: 500; }
.btn--primary:hover { --btn-bg: #000; }

.btn--ghost { --btn-bg: var(--bg-alt); --btn-fg: var(--fg); }
.btn--ghost:hover { --btn-bg: #e8e8ed; }

.btn--dark { --btn-bg: #2a2a2e; --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: #3a3a3f; }

.btn--light { --btn-bg: #fff; --btn-fg: var(--fg); }
.btn--light:hover { --btn-bg: #e8e8ed; }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn--outline:hover { --btn-bg: var(--bg-alt); }

/* 文字链接：蓝色 + 箭头，Apple 式的“了解更多” */
.btn--link {
  padding: 4px 0; min-height: 0; border-radius: 0;
  background: none; color: var(--accent); font-weight: 500;
}
.btn--link:hover { color: var(--accent-dark); background: none; }
.btn--link:hover::after { transform: scaleX(1); }
.btn--link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.btn--sm { padding: 5px 13px; min-height: 28px; font-size: 0.8125rem; }
.btn--sm svg { width: 12px; height: 12px; }
.btn--lg { padding: 10px 21px; min-height: 40px; font-size: 0.9375rem; }
.btn--lg svg { width: 14px; height: 14px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* --------------------------------------------------------------------------
   6. 页头 / 导航
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--line-soft);
}

.header__inner {
  position: relative;
  width: 100%;
  /* 页头单独用一个比正文容器更窄的宽度：正文 1400px 放 6 个导航项会把间距拉得
     过于松散。1120px 接近 apple.com 的 1024px 密度。 */
  max-width: var(--container-nav);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.header__logo { display: flex; align-items: center; flex: none; }
/* 页头用裁掉副行的 TECHX 字标：完整 logo 在 22px 高度下，
   INDUSTRIAL SOLUTIONS 那行只有约 4px，糊成一条灰线，不如不放。 */
.header__logo img { height: 19px; width: auto; }
.header__logo-text { display: none; }

/* 导航在 logo 与右侧图标之间铺开（不是靠右堆叠）。
   两端留白用 .nav 自己的 padding 补出来 —— .header__inner 的 18px gap 单独
   撑不起两端：.nav__link 自带 12px 左右内边距，项与项之间是「盒间距 + 24」，
   而与 logo / 图标之间只有「盒间距 + 12」。实测两端 30px、中间 107px，
   差 78px，肉眼就是「首项黏着 logo、末项黏着放大镜」。加 padding 后
   六个留白都是约 82px。
   52px 是解出来的：设 padding = P，则
     两端留白 = 18 + P + 12
     项间留白 = (nav宽 - 2P - 5×80) / 4 + 24
   令两者相等 → P ≈ 51.5。容器在视口 ≥1208px 时固定 1120px，nav 宽恒为
   733px，所以桌面端 52px 都成立；窄于 1208px 用 clamp 收窄，避免挤爆。 */
.nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-inline: clamp(12px, 4vw, 52px);
}
.nav__link {
  position: relative;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--fg);
  border-radius: 8px;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__link:hover { color: var(--accent); }
.nav__link.is-active { font-weight: 500; color: var(--fg); }
/* 有下拉菜单的项：悬停时整行发亮，提示可展开 */
.nav__link[data-mega]::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 1px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease);
}
.header.is-mega-open .nav__link[data-mega].is-mega-active::after { transform: scaleX(1); }

.header__cta { flex: none; }

/* 页头右侧图标组（搜索 / 语言）—— 与 CTA 一起贴右端 */
.header__tools { flex: none; display: flex; align-items: center; gap: 6px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  margin-left: auto;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; width: 18px; height: 1.5px; background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer a {
  padding: 16px 2px;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--fg);
}
.drawer .btn {
  margin-top: 26px;
  border-bottom: 0;
  justify-content: center;
  font-size: 1rem;
}
body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Hero —— 居中标题 + 大图产品
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 92px));
  padding-bottom: clamp(40px, 5vw, 72px);
  background: var(--bg);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
}
.hero__copy { max-width: 980px; margin-inline: auto; }
.hero__title {
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero__title .line { display: block; }
/* v2.0 的渐变文字已移除：彩色渐变字是模板化页面的高频特征 */
.hero__title .accent { color: var(--fg); }
.hero__sub {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.72;
  color: var(--fg-2);
  max-width: 40em;
  margin-inline: auto;
  margin-bottom: 30px;
}
.hero__actions { margin-bottom: 0; justify-content: center; }

/* 大图产品：白底页面 + 白底渲染图，无缝 */
.hero__stage {
  margin-top: clamp(36px, 5vw, 64px);
  display: flex;
  justify-content: center;
}
.hero__stage .plate {
  width: 100%;
  max-width: 1040px;
  /* 与渲染图原始比例一致，contain 下正好铺满，不留多余留白 */
  aspect-ratio: 4 / 3;
}

/* Hero 指标条 */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(40px, 5vw, 68px);
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
  text-align: left;
}
.hero__stat {
  padding-right: clamp(16px, 2.5vw, 40px);
}
.hero__stat + .hero__stat { padding-left: clamp(16px, 2.5vw, 40px); border-left: 1px solid var(--line-soft); }
.hero__stat b {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero__stat b em { font-style: normal; font-size: 0.56em; color: var(--fg-3); margin-left: 3px; font-weight: 500; }
/* 只作用于说明文字这一层；不加子选择器会误伤 <b> 内部做数字滚动用的 <span>，
   把它变成块级，导致「300」和「%」被拆到两行。 */
.hero__stat > span {
  display: block;
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fg-3);
}

/* --------------------------------------------------------------------------
   8. 图片容器
   --------------------------------------------------------------------------
   托盘底色设为透明：白底产品图在白色区块上自然融合，在浅灰区块上则由
   object-fit 的留白透出区块底色，不会出现「白方块」接缝。
   线图类 PNG 已在素材阶段把白底转成透明，因此两种底色下都干净。
   -------------------------------------------------------------------------- */
.plate {
  position: relative;
  border-radius: var(--radius-lg);
  background: transparent;
  overflow: hidden;
}
.plate img { width: 100%; height: 100%; object-fit: contain; }
.plate--contain img { object-fit: contain; }
.plate--cover img { object-fit: cover; }
/* 图片容器不再需要四角标记等装饰 */
.plate__marks::before, .plate__marks::after,
.plate__marks > i::before, .plate__marks > i::after { content: none; }

/* --------------------------------------------------------------------------
   9. 页面头（内页）
   -------------------------------------------------------------------------- */
.pagehead {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 7vw, 104px));
  padding-bottom: clamp(40px, 5vw, 68px);
  background: var(--bg-alt);
  overflow: hidden;
}
.pagehead__inner { position: relative; z-index: 2; }
.pagehead h1 { max-width: 22em; margin-bottom: 18px; }
.pagehead p { max-width: 46em; font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); }

.crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--fg-4);
  margin-bottom: 18px;
}
.crumbs a { color: var(--fg-3); transition: color var(--dur) var(--ease); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--fg-2); }

/* --------------------------------------------------------------------------
   10. 数据指标
   -------------------------------------------------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.metric {
  padding: clamp(26px, 3.2vw, 44px) clamp(18px, 2vw, 32px) clamp(26px, 3.2vw, 44px) 0;
}
.metric + .metric { padding-left: clamp(18px, 2vw, 32px); border-left: 1px solid var(--line); }
.metric b {
  display: block;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.metric b .unit { font-size: 0.42em; color: var(--fg-3); margin-left: 4px; letter-spacing: 0; font-weight: 500; }
.metric b .pre { font-size: 0.5em; color: var(--fg-3); margin-right: 2px; }
.metric h4 { margin-top: 16px; font-size: 1rem; font-weight: 600; color: var(--fg); }
.metric p { margin-top: 8px; font-size: 0.9375rem; color: var(--fg-3); line-height: 1.68; }

/* --------------------------------------------------------------------------
   11. 卡片
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* 卡片总是与所在区块形成对比：浅灰区块上用白卡 */
.section--alt .card { background: #fff; }
.card__icon {
  width: auto; height: auto;
  display: block;
  border: 0;
  background: none;
  color: var(--fg);
  margin-bottom: 20px;
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 1rem; line-height: 1.7; }
.card__foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.card__meta { font-size: 0.8125rem; color: var(--fg-4); }

/* 带真实图片的卡片 */
.card--media,
.card--photo {
  padding: 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.section--darkest .card--media,
.section--darkest .card--photo { border-color: #2a2a2e; }

.card--media .plate {
  border-radius: 0;
  background: transparent;
  aspect-ratio: 4 / 3;
}
.card--media .plate img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 6%;
  transition: transform 0.6s var(--ease);
}
.card--media:hover .plate img { transform: scale(1.03); }
.card--media .card__body {
  padding: clamp(22px, 2.4vw, 30px);
  flex: 1; display: flex; flex-direction: column;
}

.card--photo .card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.card--photo .card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card--photo:hover .card__media img { transform: scale(1.03); }
.card--photo .card__body {
  padding: clamp(22px, 2.4vw, 30px);
  flex: 1; display: flex; flex-direction: column;
}

/* 标签：小圆角胶囊，13px，正常字距 —— 中英文都能读 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 0;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--fg-2);
}
.tag--cyan { background: var(--fg); color: #fff; }
.tag--gold { background: var(--ph-bg); color: var(--ph); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------------------
   12. 分屏（文字 + 图）
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
/* 栅格 / 弹性子项兜底：默认 min-width:auto 会被长内容（长标签、对比条、
   规格表）撑破，进而在窄屏上溢出视口。统一归零，让内容自己换行。 */
 .split > *, .rung > *, .grid > *, .metrics > *, .news-item > *, .contact-layout > *, .footer__top > *, .form__row > *, .spec-table > div > *  { min-width: 0; }

.split__body { max-width: 34em; }
.split__body h2 { margin-bottom: 18px; }
.split__body p + p { margin-top: 16px; }

.checklist { margin-top: 28px; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-2);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 14px; height: 8px;
  border-left: 1.6px solid var(--fg);
  border-bottom: 1.6px solid var(--fg);
  transform: rotate(-45deg);
}
.checklist li b { color: var(--fg); font-weight: 600; }

/* 规格表 */
.spec-table { margin-top: 28px; border-top: 1px solid var(--line-soft); }
.spec-table div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
}
.spec-table dt { color: var(--fg-3); flex: none; }
.spec-table dd {
  margin: 0;
  color: var(--fg);
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.section--darkest .spec-table { border-top-color: var(--line-dark); }
.section--darkest .spec-table div { border-bottom-color: var(--line-dark); }
.section--darkest .spec-table dd { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   13. 产品条（横向滚动）
   -------------------------------------------------------------------------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 32%);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.rail-nav { display: flex; gap: 8px; }
.rail-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--fg);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.section--alt .rail-btn { background: #fff; }
.rail-btn:hover { background: #e8e8ed; }
.section--alt .rail-btn:hover { background: #e8e8ed; }
.rail-btn:disabled { opacity: 0.32; cursor: default; }
.rail-btn svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   14. Tab / 筛选
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 0;
  border-radius: 100px;
  background: var(--bg-alt);
  width: fit-content;
  max-width: 100%;
}
.section--alt .tabs { background: #fff; }
.tab {
  padding: 9px 20px;
  border: 0;
  border-radius: 100px;
  background: none;
  color: var(--fg-2);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tab:hover { color: var(--fg); }
.tab.is-active { color: #fff; background: var(--fg); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  padding: 9px 18px;
  border: 0;
  border-radius: 100px;
  background: var(--bg-alt);
  color: var(--fg-2);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.section--alt .chip { background: #fff; }
.chip:hover { color: var(--fg); background: #e8e8ed; }
.chip.is-active { background: var(--fg); color: #fff; }

.panel { display: none; }
.panel.is-active { display: block; }

/* --------------------------------------------------------------------------
   15. 应用行业 —— 原跑马灯改为静态排布，避免无休止横向滚动
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: visible;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding-block: 30px;
  mask-image: none;
  -webkit-mask-image: none;
}
.marquee__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  width: auto;
  animation: none;
}
/* 原跑马灯为无缝循环复制的一份内容，静态排布下直接隐藏 */
.marquee__item[aria-hidden="true"] { display: none; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg-2);
  white-space: nowrap;
  letter-spacing: 0;
}
.marquee__item i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line);
  flex: none;
}

/* --------------------------------------------------------------------------
   16. 时间线
   -------------------------------------------------------------------------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 4px; top: 10px; bottom: 10px;
  width: 1px;
  background: var(--line);
}
.timeline li { position: relative; padding-bottom: 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -30px; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--fg);
}
.timeline time {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-3);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.timeline h3 { margin-bottom: 6px; font-size: 1.125rem; }
.timeline p { font-size: 1rem; }
.section--darkest .timeline::before { background: var(--line-dark); }
.section--darkest .timeline li::before { background: var(--on-dark); }

/* --------------------------------------------------------------------------
   18. 知识产权 / 专利
   -------------------------------------------------------------------------- */
.patent-list { display: grid; gap: 10px; }
.patent {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color var(--dur) var(--ease);
}
.patent:hover { border-color: var(--line); }
.patent__type {
  flex: none;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  margin-top: 2px;
}
.patent__type--inv { background: var(--fg); color: #fff; }
.patent__type--uti { background: rgba(0, 0, 0, 0.06); color: var(--fg-2); }
.patent__type--plan { background: var(--ph-bg); color: var(--ph); }
.patent__name { color: var(--fg); font-size: 1rem; line-height: 1.65; }
.patent__name span {
  display: block;
  font-size: 0.8125rem;
  color: var(--fg-4);
  margin-top: 5px;
}

/* 技术路线三级 —— 图文左右交替 */
.ladder { display: grid; gap: clamp(56px, 7vw, 104px); }
.rung {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.rung:nth-child(even) .rung__media { order: 2; }
.rung__media {
  background: transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rung__media img { width: 100%; height: 100%; object-fit: contain; }
/* 流程图/路线图是内联 SVG —— 内联是为了让图内文案进 i18n 词表（用 <img> 就翻不了）。
   内联的 <svg> 自己不会撑满容器，尺寸规则单独给。 */
.rung__media > svg { display: block; width: 100%; height: auto; margin-inline: auto; }
/* 窄屏：图不跟着缩到看不清。
   1200 宽画布上的标注缩到 350px 只剩 8.75px，手机上读不了，所以给图一个最小
   可读宽度，超出部分横向滑动（本站的产品条 .rail 本来就是横向滚动，交互不算陌生）。 */
@media (max-width: 640px) {
  .rung__media { overflow-x: auto; }
  .rung__media > svg { min-width: 560px; }
}
.rung__body { max-width: 32em; }
.rung__no {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-4);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.rung h3 { margin-bottom: 10px; }
.rung__size {
  display: block;
  margin-top: 10px;
  margin-bottom: 16px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.rung p { font-size: 1rem; }
.rung ul { display: grid; gap: 10px; margin-top: 20px; }
.rung ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9375rem;
  color: var(--fg-2);
}
.rung ul li::before {
  content: '';
  position: absolute;
  left: 2px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   19. 对比 / 引用块
   -------------------------------------------------------------------------- */
.callout {
  position: relative;
  padding: clamp(28px, 3.4vw, 44px);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  overflow: hidden;
}
.section--alt .callout { background: #fff; }
.section--darkest .callout { background: #1a1a1c; }
.section--darkest .callout .u-mono { color: var(--on-dark-2); }
.callout h3 { margin-bottom: 12px; }
.callout p { font-size: 1rem; }

.bar-compare { display: grid; gap: 18px; margin-top: 24px; }
.bar-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  font-size: 0.9375rem;
}
.bar-row > span:first-child { color: var(--fg-3); }
.bar { height: 7px; border-radius: 4px; background: rgba(0, 0, 0, 0.07); overflow: hidden; }
.section--darkest .bar { background: rgba(255, 255, 255, 0.14); }
.bar i {
  display: block; height: 100%; border-radius: 4px;
  background: var(--fg);
  width: 0;
  transition: width 1.1s var(--ease);
}
.section--darkest .bar i { background: var(--on-dark); }
.bar--dim i { background: #c7c7cc; }
.section--darkest .bar--dim i { background: #48484a; }
.bar-row b {
  font-size: 0.9375rem;
  color: var(--fg);
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.section--darkest .bar-row b { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   20. 新闻列表
   -------------------------------------------------------------------------- */
.news-list { border-top: 1px solid var(--line-soft); }
.news-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: clamp(18px, 2.6vw, 44px);
  align-items: center;
  padding: clamp(24px, 2.8vw, 34px) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: opacity var(--dur) var(--ease);
}
.news-item:hover { opacity: 0.68; }
.news-item__date {
  font-size: 0.875rem;
  color: var(--fg-4);
  font-variant-numeric: tabular-nums;
}
.news-item h3 { margin-bottom: 6px; }
.news-item p { font-size: 1rem; max-width: 62em; }
.news-item__arrow {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--fg-2);
  transition: transform var(--dur) var(--ease);
  flex: none;
}
.section--alt .news-item__arrow { background: #fff; }
.news-item:hover .news-item__arrow { transform: translateX(3px); }
.news-item__arrow svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   21. 联系 / 表单
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fg-2);
}
.field label .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.7; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236e6e73' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 38px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.14);
}
.field.is-error input,
.field.is-error textarea,
.field.is-error select { border-color: var(--danger); }
.field__err {
  font-size: 0.8125rem;
  color: var(--danger);
  min-height: 0;
  display: none;
}
.field.is-error .field__err { display: block; }
.form__note { font-size: 0.875rem; color: var(--fg-4); }
.form__ok {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border: 0;
  border-radius: var(--radius);
  background: #eaf5ec;
  color: #1f6b33;
  font-size: 0.9375rem;
}
.form__ok.is-visible { display: flex; }

.info-list { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-list .ic {
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--fg-2);
  margin-top: 2px;
}
.info-list .ic svg { width: 20px; height: 20px; }
.info-list dt {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-3);
  margin-bottom: 5px;
}
.info-list dd { margin: 0; font-size: 1rem; color: var(--fg); line-height: 1.65; }
.info-list dd a { color: var(--accent); }
.info-list dd small { display: block; color: var(--fg-3); font-size: 0.875rem; margin-top: 4px; }

.qr-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: #fff;
}
.qr-box__img {
  flex: none;
  width: 104px; height: 104px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
  display: grid; place-items: center;
}
.qr-box__img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.qr-box__img span {
  font-size: 0.75rem;
  color: var(--fg-4);
  text-align: center;
  padding: 0 8px;
  line-height: 1.6;
}

.map-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-box__pin {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
}
.map-box__pin i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--fg);
}
.map-box__pin span { font-size: 0.875rem; color: var(--fg-3); }

/* --------------------------------------------------------------------------
   22. CTA 区块
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 0;
  padding: clamp(44px, 6vw, 96px) clamp(28px, 5vw, 80px);
  background: var(--bg-dark);
  color: var(--on-dark);
  text-align: center;
}
.cta h2 { margin-bottom: 16px; color: var(--on-dark); }
.cta p { max-width: 42em; margin-inline: auto; margin-bottom: 32px; color: var(--on-dark-2); }
.cta .btn-row { justify-content: center; }
.cta .btn--ghost { --btn-bg: #2a2a2e; --btn-fg: #fff; }
.cta .btn--ghost:hover { --btn-bg: #3a3a3f; }

/* --------------------------------------------------------------------------
   23. 页脚
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(52px, 6vw, 84px);
  padding-bottom: 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
}
.footer__brand img { height: 19px; width: auto; margin-bottom: 20px; }
.footer__brand p { font-size: 0.9375rem; max-width: 30em; margin-bottom: 20px; }
.footer__cn { font-size: 0.9375rem; color: var(--fg-3); line-height: 1.9; }
.footer__cn b { color: var(--fg-2); font-weight: 600; }
.footer__col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 16px;
}
.footer__col li { margin-bottom: 12px; }
.footer__col a {
  font-size: 0.9375rem;
  color: var(--fg-3);
  transition: color var(--dur) var(--ease);
}
.footer__col a:hover { color: var(--fg); }
.footer__col span { font-size: 0.9375rem; color: var(--fg-3); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--fg-3);
}
.footer__bottom a:hover { color: var(--fg); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }

.icp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--fg-4);
}
.icp a { color: var(--fg-4); }
.icp a:hover { color: var(--fg-2); }

/* --------------------------------------------------------------------------
   24. 滚动进场动画 —— 幅度与时长都收敛，避免整页“动起来”的廉价感
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   25. 杂项
   -------------------------------------------------------------------------- */
.badge-line { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.badge-line span {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.9375rem; color: var(--fg-3);
}
.badge-line span::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--line); flex: none;
}

/* 占位符：上线前需替换的内容 */
.ph {
  color: var(--ph);
  background: var(--ph-bg);
  border-bottom: 1px dashed rgba(138, 100, 32, 0.45);
  padding: 0 2px;
}
.section--darkest .ph { color: #e8c88a; background: rgba(232, 200, 138, 0.12); border-bottom-color: rgba(232, 200, 138, 0.5); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mt-4 { margin-top: 52px; }
.mt-5 { margin-top: 72px; }
.mb-2 { margin-bottom: 24px; }
.mb-3 { margin-bottom: 36px; }
.mb-4 { margin-bottom: 52px; }
.mb-5 { margin-bottom: 72px; }

/* 回到顶部 */
.totop {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--fg-2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: #fff; color: var(--fg); }
.totop svg { width: 16px; height: 16px; }

/* 404 */
.err-code {
  font-size: clamp(4.5rem, 14vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   26. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; }
  .hero__stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__stat:nth-child(odd) { padding-right: 24px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
  .metric:nth-child(3), .metric:nth-child(4) { padding-top: clamp(26px, 3.2vw, 44px); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: block; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .split__body { max-width: none; }
  .rung { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rung:nth-child(even) .rung__media { order: 0; }
  .rung__body { max-width: none; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-auto-columns: minmax(300px, 62%); }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .section { padding-block: clamp(56px, 12vw, 84px); }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .metrics { grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
  .metric { padding: 26px 0; border-left: 0 !important; }
  .metric + .metric { border-top: 1px solid var(--line); }
  .metric:nth-child(3), .metric:nth-child(4) { padding-top: 26px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .hero__stat {
    padding: 16px 16px 16px 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid var(--line-soft);
  }
  .hero__stat:nth-child(odd) { border-right: 1px solid var(--line-soft); padding-right: 16px !important; }
  .hero__stat:nth-last-child(-n+2) { border-bottom: 0; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .btn-row--inline { flex-direction: row; align-items: center; }
  .btn-row--inline .btn { width: auto; }
  .news-item { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .news-item__arrow { display: none; }
  .bar-row { grid-template-columns: 100px minmax(0, 1fr) auto; gap: 10px; font-size: 0.875rem; }
  .rail { grid-auto-columns: minmax(260px, 84%); }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 9px 16px; font-size: 0.875rem; }
  .qr-box { flex-direction: column; align-items: flex-start; }
  .totop { right: 14px; bottom: 14px; }
  .marquee__track { gap: 10px 22px; }
  .marquee__item { font-size: 0.9375rem; }
}

@media (max-width: 420px) {
  .rail { grid-auto-columns: 86%; }
  .hero__stats { grid-template-columns: minmax(0, 1fr); }
  .hero__stat { border-right: 0 !important; border-bottom: 1px solid var(--line-soft) !important; padding-right: 0 !important; }
  .hero__stat:last-child { border-bottom: 0 !important; }
}

/* --------------------------------------------------------------------------
   27. 无障碍 / 偏好
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .header, .drawer, .totop, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  .section--darkest, .cta { background: #fff !important; color: #000 !important; }
  .section--darkest h2, .cta h2 { color: #000 !important; }
}

/* --------------------------------------------------------------------------
   窄屏收尾：两个最容易挤爆的组件
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  /* 对比条：标签与读数各占一行，进度条独占一行，避免 128px 标签列把条挤出去 */
  .bar-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'label value' 'bar bar';
    row-gap: 7px;
    column-gap: 12px;
  }
  .bar-row > span:first-child { grid-area: label; }
  .bar-row > .bar { grid-area: bar; }
  .bar-row > b { grid-area: value; text-align: right; }

  /* 规格表：标签在上、值在下并左对齐，比两列挤压可读 */
  .spec-table div { display: block; padding: 13px 0; }
  .spec-table dt { margin-bottom: 3px; font-size: 0.875rem; }
  .spec-table dd { text-align: left; }
}

/* --------------------------------------------------------------------------
   语言切换按钮（页头）
   -------------------------------------------------------------------------- */
.lang-toggle {
  flex: none;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--fg-2);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lang-toggle:hover { color: var(--fg); border-color: var(--fg-4); }
.lang-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 页头图标按钮（搜索）—— 与语言胶囊同一视觉重量，不抢 CTA */
.icon-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--fg-2);
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--fg); background: var(--bg-alt); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn svg { width: 15px; height: 15px; }

/* 语言偏好已存为英文时，先隐藏正文，等 i18n.js 完成替换再显示，
   避免「先中文后英文」的闪动。2.5s 兜底由页头内联脚本负责，脚本异常也不会白屏。 */
html.lang-en:not(.i18n-ready) body { visibility: hidden; }

/* --------------------------------------------------------------------------
   28. 页头下拉面板（apple.com 式全宽飞行菜单）
   高度由 main.js 量测面板实际高度后写进内联 style，再靠 height 过渡展开 ——
   这是唯一在「内容高度不确定」时还能得到平滑动画的办法（max-height 猜值会拖影）。
   -------------------------------------------------------------------------- */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid transparent;
  transition: height var(--dur-mega) var(--ease-mega),
    border-color 0.3s var(--ease);
}
.mega.is-open { border-bottom-color: var(--line-soft); }
/* 收起时用更短的时长，避免“慢慢缩回去”的拖沓感 */
.mega.is-closing { transition-duration: var(--dur-mega-out); }

/* .mega__inner 只负责容器宽度与内边距。分栏要交给面板自己 ——
   同一时刻只有一个面板可见，而它内部有几栏并不固定
   （产品 3 栏、技术 4 栏、新闻 2 栏）。之前把 grid 写在 .mega__inner 上，
   它的直接子项是 .mega__panel（只有一个可见），结果所有分栏被压成一列。
   用 auto-fill 而不是 auto-fit：auto-fill 保留空轨道，栏按容器宽度均分，
   内容靠左、右侧自然留白；auto-fit 会折叠空轨道把剩下的栏拉满整行，
   栏宽会随栏目数跳变。轨道宽度用 1fr 而不是写死的上限 ——
   写死 240px 时 4 栏会溢出容器，第 4 栏被迫换行。 */
.mega__inner {
  max-width: var(--container-nav);
  margin-inline: auto;
  padding: clamp(26px, 3vw, 42px) var(--gutter) clamp(30px, 3.4vw, 48px);
}
.mega__panel { display: none; }
.mega__panel.is-active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px 44px;
}

.mega__col { min-width: 0; }
/* 新闻面板第二条是文章标题（最长 24 字），单栏 225px 会断成两行、
   而且断在「确立三级 / 装备技术路线」这种词组中间。让它跨两栏。
   只在 ≥1024px 生效：窄屏下轨道数可能不足 2，span 2 会撑出隐式轨道。 */
@media (min-width: 1024px) {
  .mega__panel[data-mega-panel="news"] .mega__col:nth-child(2) { grid-column: span 2; }
}
.mega__heading {
  margin: 0 0 9px;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--fg-4);
}
.mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mega__link {
  display: inline-block;
  padding: 4px 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--fg-2);
  transition: color var(--dur) var(--ease);
}
.mega__link:hover { color: var(--accent); }
/* 首列主链接：字号明显放大，形成苹果那种“大标题 + 小链接”的层级 */
.mega__link--lead {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.32;
  color: var(--fg);
}
.mega__link--lead:hover { color: var(--accent); }

/* 面板内容逐列淡入上浮：切换不同菜单时也会重播一次，避免内容“硬切” */
@keyframes megaIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.mega.is-open .mega__panel.is-active .mega__col {
  animation: megaIn 0.46s var(--ease-mega) both;
}
.mega.is-open .mega__panel.is-active .mega__col:nth-child(2) { animation-delay: 0.05s; }
.mega.is-open .mega__panel.is-active .mega__col:nth-child(3) { animation-delay: 0.1s; }
.mega.is-open .mega__panel.is-active .mega__col:nth-child(4) { animation-delay: 0.15s; }

/* --------------------------------------------------------------------------
   29. 站内搜索（apple.com 式：唤出后页头内容淡出，搜索栏滑入）
   -------------------------------------------------------------------------- */
.search {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s var(--ease), visibility 0.26s;
}
.search.is-open { opacity: 1; visibility: visible; }
.search__inner {
  max-width: var(--container-nav);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.search__form {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--header-h);
}
.search.is-open .search__form { animation: searchIn 0.4s var(--ease-mega) both; }
@keyframes searchIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}
.search__icon { width: 15px; height: 15px; flex: none; color: var(--fg-3); }
.search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  outline: none;
}
.search__input::placeholder { color: var(--fg-4); }
/* type=search 在各家浏览器都自带一颗清除按钮，先隐藏，用统一的取消按钮 */
.search__input::-webkit-search-decoration,
.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-results-button { -webkit-appearance: none; }
.search__cancel {
  flex: none;
  padding: 6px 2px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--accent);
  cursor: pointer;
}
.search__cancel:hover { color: var(--accent-dark); }

.search__body {
  padding-bottom: 20px;
  border-top: 1px solid var(--line-soft);
}
.search__label {
  margin: 16px 0 6px;
  font-size: 0.75rem;
  color: var(--fg-4);
}
.search__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(54vh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.search__item a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-inline: -10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--fg);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.search__item a:hover,
.search__item.is-active a { background: var(--bg-alt); }
/* 快速链接前面那颗小箭头（苹果用的是 ↗） */
.search__item--quick a::before {
  content: '\2197';
  flex: none;
  font-size: 0.8125rem;
  color: var(--fg-4);
  line-height: 1.5;
}
.search__item mark { background: none; color: var(--accent); font-weight: 600; }
/* 标题占满剩余宽度并单行省略，页面徽标才不会被长标题挤走 */
.search__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search__page { flex: none; margin-left: auto; font-size: 0.75rem; color: var(--fg-4); }
.search__empty { padding: 16px 0 6px; font-size: 0.9375rem; color: var(--fg-3); }

/* --------------------------------------------------------------------------
   30. 页面遮罩：面板打开时把正文压下去，让页头成为唯一焦点
   -------------------------------------------------------------------------- */
.scrim {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: rgba(10, 10, 11, 0);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.34s var(--ease), visibility 0.34s,
    background-color 0.34s var(--ease);
}
.scrim.is-open { opacity: 1; visibility: visible; }
/* 下拉面板：轻压；搜索：压得更深并模糊，因为它需要用户把注意力放到输入框 */
.scrim--soft.is-open {
  background: rgba(10, 10, 11, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.scrim--strong.is-open {
  background: rgba(10, 10, 11, 0.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* 搜索唤出时页头原有内容让位（淡出并停止响应指针） */
.header__inner { transition: opacity 0.22s var(--ease); }
.header.is-searching .header__inner { opacity: 0; pointer-events: none; }

/* 窄屏：导航项已收进抽屉，下拉面板无从触发，直接隐藏 */
@media (max-width: 1023px) {
  .header__tools { margin-left: auto; }
  .mega { display: none; }
}

