/* ==========================================================================
   上海人民机电设备有限公司 · 官网设计系统 v6
   Direction: Plate Book / 图册
   —— 纸白底 · 墨黑字 · 一处朱红 · 实物铜版
   --------------------------------------------------------------------------
   01 字体   02 令牌   03 基础   04 版心   05 页头   06 首屏
   07 小节标题   08 按钮   09 产品   10 关于   11 应用
   12 为什么   13 荣誉   14 新闻   15 行动   16 内页
   17 产品详情   18 应用内页   19 证书   20 文章
   21 联系   22 404   23 页脚   24 动效   25 响应式
   ========================================================================== */

/* ---------- 01. 字体 ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 02. 令牌 ---------- */
:root {
  /* 纸白：整册的底 */
  --paper: #f4f1ea;
  --paper-2: #ece6db;
  --paper-3: #ded5c5;

  /* 墨 */
  --ink: #14110e;
  --ink-2: #46403a;
  --muted: #6b645b;

  --line: rgba(20, 17, 14, 0.13);
  --line-2: rgba(20, 17, 14, 0.22);

  /* 深章：只在应用与行动两节出现 */
  --void: #100e0c;
  --void-2: #191613;
  --void-ink: #f4f1ea;
  --void-2-ink: #cdc6bb;
  --void-muted: #9b948a;
  --void-line: rgba(244, 241, 234, 0.15);

  /* 唯一的颜色：带电的红 */
  --accent: #c1121f;
  --accent-2: #d8283a;

  /* 玻璃：压在照片上才有意义 */
  --glass: rgba(255, 255, 255, 0.52);
  --glass-2: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.65);
  --glass-ink: rgba(255, 255, 255, 0.9);
  --blur: blur(22px) saturate(150%);

  /* 版心 */
  --max: 1280px;
  --gutter: clamp(20px, 3.2vw, 44px);
  --r: 4px;

  /* 字号：五级 */
  --fs-display: clamp(2.5rem, 6.2vw, 5.2rem);
  --fs-1: clamp(1.9rem, 4.1vw, 3.3rem);
  --fs-2: clamp(1.78rem, 3.05vw, 2.62rem);
  --fs-3: clamp(1.125rem, 1.5vw, 1.35rem);
  --fs-b: 1.0625rem;
  --fs-s: 0.8125rem;

  --e: cubic-bezier(0.22, 0.61, 0.36, 1);
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 03. 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: var(--fs-b);
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; height: auto; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: #fff; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- 04. 版心 ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(72px, 7.4vw, 132px);
}

.section--tight { padding-block: clamp(52px, 5.6vw, 92px); }

/* 纸白是默认；.section--paper 保留为空别名，兼容旧标记 */
.section--paper { background: transparent; color: var(--ink); }

/* 深章：两处，作为全书的断点 */
.section--ink {
  background: var(--void);
  color: var(--void-ink);
}

.section--ink h2,
.section--ink h3 { color: var(--void-ink); }

.lead {
  font-size: var(--fs-b);
  line-height: 1.78;
  color: var(--ink-2);
  max-width: 46ch;
}

.section--ink .lead { color: var(--void-2-ink); }

.section--ink .dim,
.section--ink .mono { color: var(--void-muted); }

.section--paper .lead,
.section--paper .dim { color: var(--ink-2); }

.mono {
  font-family: inherit;
  font-size: var(--fs-s);
  letter-spacing: 0;
  color: var(--muted);
}

.dim { color: var(--muted); }

/* 小节末尾的收束行 */
.sec-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(30px, 3.6vw, 48px);
  padding-top: 18px;
  box-shadow: inset 0 1px 0 var(--line);
  font-size: 1rem;
  color: var(--ink-2);
}

.plus { color: var(--accent); }

/* ---------- 05. 页头 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  padding-block: 18px;
  transition: padding 0.4s var(--e);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 241, 234, 0);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background 0.4s var(--e), backdrop-filter 0.4s var(--e);
  pointer-events: none;
}

.site-header.is-stuck { padding-block: 11px; }

.site-header.is-stuck::before {
  background: rgba(244, 241, 234, 0.95);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow: inset 0 -1px 0 var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.4vw, 40px);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.logo__mark { color: var(--ink); transition: color 0.35s var(--e); }
.logo:hover .logo__mark { color: var(--accent); }

.logo__text { display: flex; flex-direction: column; line-height: 1.1; }

.logo__en {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo__cn {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.7vw, 28px);
  margin-left: auto;
}

.nav__item { position: relative; }

.nav__link {
  display: block;
  padding: 8px 2px;
  font-size: 1rem;
  color: var(--ink-2);
  transition: color 0.3s var(--e);
}

.nav__link:hover { color: var(--ink); }

.nav__item.is-current > .nav__link {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* 二级菜单：一块贴在页头上的玻璃
   关键在动线：触发词与面板之间有 12px 的视觉间隙，指针穿过这条缝时
   必须仍然落在 .nav__item 里面，否则 :hover 会中断、菜单闪断。
   做法是让面板自带一条透明的"桥"，把这段缝隙连同左右各 24px 一起吃掉。 */
.nav__sub {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: none;
  width: 274px;
  padding: 8px;
  border-radius: 8px;
  /* 这一层必须"读得清"：它正压在首屏那行巨型标题上，
     透得太狠会让黑字从菜单后面浮出来。所以纸白给到 97.5%，
     只留一丝透镜感，靠 blur 和顶部高光交代材质。 */
  background: rgba(250, 248, 243, 0.975);
  -webkit-backdrop-filter: blur(30px) saturate(112%);
  backdrop-filter: blur(30px) saturate(112%);
  box-shadow: 0 0 0 1px var(--line), 0 1px 0 0 rgba(255, 255, 255, 0.85) inset,
    0 32px 60px -34px rgba(20, 17, 14, 0.55), 0 10px 22px -18px rgba(20, 17, 14, 0.4);
  transform: translateX(-50%);
}

/* 桥接层：覆盖间隙并向两侧扩张，给鼠标一点容错 */
.nav__sub::before {
  content: "";
  position: absolute;
  left: -28px;
  right: -28px;
  top: -30px;
  height: 30px;
}

/* 悬停打开 · 键盘聚焦打开 · JS 意图打开（留了 160ms 宽限） */
.nav__item:hover > .nav__sub,
.nav__item.is-open > .nav__sub,
.nav__item:focus-within > .nav__sub {
  display: block;
  animation: subIn 0.2s var(--e) both;
}

@keyframes subIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* 触发词上的小尖角：告诉用户"这里能展开"，展开后翻转 */
.nav__item.has-sub > .nav__link::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  vertical-align: 0.1em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--e), opacity 0.25s;
  opacity: 0.48;
}

.nav__item.has-sub:hover > .nav__link::after,
.nav__item.has-sub.is-open > .nav__link::after,
.nav__item.has-sub:focus-within > .nav__link::after {
  transform: rotate(225deg);
  opacity: 0.85;
}

/* 菜单展开时，触发词本身保持高亮，让人知道这一栏是开着的 */
.nav__item.is-open > .nav__link,
.nav__item.has-sub:hover > .nav__link,
.nav__item.has-sub:focus-within > .nav__link { color: var(--ink); }

.nav__sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 0 var(--accent);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
}

/* 悬停行：纸色垫底 + 左缘一道朱红，确认"这一行是要点下去的" */
.nav__sub a:hover,
.nav__sub a:focus-visible {
  background: rgba(20, 17, 14, 0.055);
  color: var(--ink);
  box-shadow: inset 2px 0 0 var(--accent);
}

.nav__sub a span {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* 末行：通往完整产品列表 */
.nav__sub .nav__sub-all {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  color: var(--ink);
  font-size: 0.875rem;
}

.nav__sub .nav__sub-all span { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  color: var(--ink-2);
  transition: color 0.3s;
}

.header-tel:hover { color: var(--ink); }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--e), opacity 0.25s;
}

.burger span { position: relative; }
.burger span::before,
.burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.is-menu-open .burger span { background: transparent; }
body.is-menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.is-menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 79;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 92px var(--gutter) 40px;
  background: rgba(244, 241, 234, 0.94);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--e), visibility 0.4s;
}

body.is-menu-open .drawer { opacity: 1; visibility: visible; }

.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  letter-spacing: -0.03em;
}

.drawer__link i {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.drawer__meta {
  margin-top: 26px;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--muted);
}

body.is-locked { overflow: hidden; }

/* ---------- 06. 首屏 ---------- */
/* 上半是标题，下半是一整幅铜版：横向铺满，上下不裁 */
.hero {
  position: relative;
  padding-top: 116px;
  background: var(--paper);
}

.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__left {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: clamp(20px, 4vw, 64px);
  row-gap: 0;
}

.hero h1 { grid-column: 1; grid-row: 1; }

.hero__sub {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

.hero__cta { grid-column: 1; grid-row: 2; }

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero h1 span { display: block; }

/* 动态字体把标题拆成 .k-char 之后，上面那条 .hero h1 span { display:block }
   会命中每一个字，整个标题竖着排。这里是结构性兜底，与主题无关：
   主题只决定"要不要动"，不决定"能不能拆"。 */
.hero h1 .k-char,
.hero__left h1 .k-char,
.page-hero h1 .k-char {
  display: inline-block;
  vertical-align: top;
}

.hero__sub {
  max-width: 34ch;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-2);
  padding-bottom: 6px;
}

.hero h1 { grid-column: 1; grid-row: 1; }

.hero__cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(22px, 2.4vw, 32px);
}

/* 铜版：整幅照片，与上方文案区、下方数据条左右对齐。
   文案区 max-width 1280（var(--max)），数据条是 max-2*gutter（1192）。
   图片跟数据条同宽（calc(max - 2*gutter)）居中，三者视觉上收在一条竖轴上，
   不再通栏铺满视口。 */
.hero__visual {
  position: relative;
  margin-top: clamp(28px, 3.4vw, 52px);
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin-inline: auto;
  background: var(--paper-2);
}

/* 画框：照片等比缩放填满整个画框（cover），左右铺满、上下撑满，
   彻底消除两侧黑边；等比缩放不变形，只按需让掉上下多余的天花板/地面。
   画框高度用 max-height 锁在首屏内，保证不出屏。 */
.hero__shot {
  position: relative;
  height: auto;
  overflow: hidden;
  background: #0a0e14;
}

.hero__shot img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 50% 50%;
  max-height: calc(100dvh - 430px);
}

/* 图纸卡：压在铜版右下角，半透明 */
.hero__tag {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  width: min(340px, 42vw);
  padding: 18px 20px 20px;
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: var(--ink);
}

.hero__tag b {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.hero__tag span {
  display: block;
  margin-top: 7px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(20px, 2.4vw, 30px) var(--gutter) clamp(36px, 4vw, 56px);
  box-shadow: inset 0 -1px 0 var(--line);
}

.hero-stat b {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-stat b i {
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0;
}

.hero-stat > span {
  display: block;
  margin-top: 9px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- 07. 小节标题 ---------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: end;
  gap: clamp(20px, 4vw, 72px);
  margin-bottom: clamp(34px, 4vw, 60px);
}

.sec-head h2 {
  font-size: var(--fs-2);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  /* 网格是盒子底对齐（align-items:end），但两栏字号差一大截，行高留白也不同：
     标题 1.08 行高几乎没有下留白，导语 1.75 行高每行下留白近 6px，再加它自己的 4px padding。
     不补这一段，标题最后一行的字底会比导语低约 5px —— 所以按自身字号把这段差量退回去，
     让两条末行的基线严格落在同一条水平线上。 */
  padding-bottom: calc(11.6px - 0.17em);
}

.sec-head__aside {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-2);
  padding-bottom: 4px;
  max-width: 40ch;
  /* 两行的段落最怕断出单字尾行、或把「支持/参数」这类词拦腰切开；pretty 会在两行间重分断点 */
  text-wrap: pretty;
  /* 宽屏下右栏比 40ch 宽，若不管它，导语的盒子会停在栏首、短于内容右边线，
     下面整块的卡片就会比"上方文字"多出一截。靠右站，让标题左沿、导语右沿
     与下方卡片/表格的左右边线落在同两条线上。 */
  justify-self: end;
}

.section--ink .sec-head__aside { color: var(--void-2-ink); }

.sec-head__label { display: none; }

/* ---------- 08. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  transition: background 0.28s var(--e), color 0.28s var(--e), transform 0.28s var(--e);
}

.btn--brand {
  background: var(--accent);
  color: #fff;
}

.btn--brand:hover { background: var(--accent-2); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn--ghost:hover { background: rgba(20, 17, 14, 0.05); }

.btn--danger { background: transparent; color: var(--accent); }
.btn--sm { padding: 9px 14px; font-size: 0.875rem; }
.btn:active { transform: translateY(1px); }

.btn__arrow { display: inline-flex; transition: transform 0.35s var(--e); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  color: var(--ink);
  transition: color 0.28s var(--e);
}

.tlink svg { transition: transform 0.35s var(--e); }
.tlink:hover { color: var(--accent); }
.tlink:hover svg { transform: translateX(4px); }

.tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.06);
  font-size: 0.8125rem;
  color: var(--ink-2);
}

/* ---------- 09. 产品：一本印刷目录 ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: clamp(26px, 3vw, 40px);
}

.tab {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: color 0.25s, background 0.25s;
}

.tab:hover { background: rgba(20, 17, 14, 0.05); color: var(--ink); }

.tab.is-active {
  background: var(--ink);
  color: var(--paper);
}

.tab i {
  font-style: normal;
  margin-left: 6px;
  font-size: 0.75rem;
  opacity: 0.55;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(16px, 2.2vw, 32px);
}

/* 目录条目：一条横线起一个条目，是印刷目录的做法 */
.pcard {
  display: flex;
  flex-direction: column;
  padding-top: 14px;
  box-shadow: inset 0 1px 0 var(--line);
  animation: cardIn 0.66s var(--e-out) backwards;
  animation-delay: var(--d, 0s);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.pcard__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-top: 4px;
}

.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s var(--e-out);
}

.pcard:hover .pcard__media img { transform: scale(1.04); }

.pcard__body { padding-top: 14px; }

.pcard__name {
  min-height: 3rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.pcard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}

.pcard__spec {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcard__go {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(20, 17, 14, 0.06);
  color: var(--ink);
  transition: background 0.3s, color 0.3s, transform 0.4s var(--e);
}

.pcard:hover .pcard__go {
  background: var(--accent);
  color: #fff;
  transform: translate(2px, -2px);
}

/* 产品页筛选 */
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: background 0.25s, color 0.25s;
}

.chip:hover { background: rgba(20, 17, 14, 0.06); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); }

.chip i { font-style: normal; margin-left: 6px; font-size: 0.75rem; opacity: 0.55; }

.cat-rail { display: flex; flex-wrap: wrap; gap: 6px; }

.prod-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-top: clamp(44px, 5vw, 72px);
  padding-top: 24px;
  box-shadow: inset 0 1px 0 var(--line);
}

.prod-foot__copy {
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-2);
}

/* ---------- 10. 关于 ---------- */
.blueprint { position: relative; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.about-copy p {
  font-size: var(--fs-b);
  line-height: 1.82;
  color: var(--ink-2);
  max-width: 46ch;
}

.about-copy p + p { margin-top: 18px; }

.sig {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  padding-top: 16px;
  box-shadow: inset 0 1px 0 var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.sig span { display: inline-flex; align-items: center; gap: 8px; }

.sig span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.about-figure {
  margin: 0;
}

.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-figure figcaption {
  padding-top: 11px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* 数字栏 */
.statlist { display: grid; }

.statlist__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  box-shadow: inset 0 1px 0 var(--line);
}

.statlist__row:last-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }

.statlist__row b {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  min-width: 5.4em;
}

.statlist__row b i {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
}

.statlist__row > span { font-size: 1rem; color: var(--ink-2); }
.statlist__row em { display: none; }

/* ---------- 11. 应用：深章 ---------- */
/* 每张卡 = 一层半透明玻璃壳（四周 8px 可透底）+ 壳内照片开窗 + 压在照片下缘的磨砂玻璃说明片。
   卡壳外沿严格落在 .wrap 的左右边线上（与上方标题、导语同一条线），内缩量给图片、不给卡壳。 */
.apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  /* 卡悬停上浮 7px、投影外扩约 14px：20px 起步，相邻卡的动效才不会互相压到 */
  gap: clamp(20px, 2.2vw, 32px);
}

.app {
  --app-edge: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--app-edge) + 10px);
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.05) 54%, rgba(34, 211, 238, 0.06) 100%);
  box-shadow:
    var(--rim-dark, inset 0 1px 0 rgba(255, 255, 255, 0.22)),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 44px -30px rgba(0, 0, 0, 0.92);
  transition: transform 0.55s var(--e-out), box-shadow 0.55s var(--e-out), background 0.55s var(--e-out);
}

/* 照片开窗：缩放被自己裁掉，不会溢到玻璃壳上 */
.app__media {
  position: absolute;
  inset: var(--app-edge);
  z-index: 0;
  border-radius: 13px;
  overflow: hidden;
}

.app__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  filter: saturate(0.9) brightness(0.88);
  transition: transform 1s var(--e-out), filter 0.6s var(--e-out);
}

/* 磨砂层：从照片下半部渐入的一块玻璃，blur 真的作用在图上的
   —— 上半张图保持清晰，说明片那一带被磨掉，交界处能看见"玻璃压上去"的那道过渡 */
.app::before {
  content: "";
  position: absolute;
  inset: var(--app-edge);
  z-index: 1;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.06) 74%, rgba(255, 255, 255, 0.11) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-mask-image: linear-gradient(180deg, transparent 44%, #000 84%);
  mask-image: linear-gradient(180deg, transparent 44%, #000 84%);
  pointer-events: none;
  transition: background 0.55s var(--e-out);
}

/* 说明片：一块压在照片下缘的烟色玻璃。blur 真的作用在照片上 —— 磨砂感就是这里来的 */
.app__body {
  position: relative;
  z-index: 2;
  padding: 14px 15px 15px;
  border-radius: 13px;
  /* 上薄下厚：贴着照片的那半更透（看得见图），正文坐的那半更沉（读得清），厚度感也来自这道渐变 */
  background: linear-gradient(180deg, rgba(9, 20, 28, 0.3) 0%, rgba(9, 20, 28, 0.38) 46%, rgba(6, 14, 20, 0.58) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 12px 26px -20px rgba(0, 0, 0, 0.9);
  /* 默认下沉：整块玻璃压到卡底之外，只留 --app-see 这一条露在卡里
     = 上内边 14px + 标题行高（1.2rem × 1.06）+ 标题下方的呼吸 4px
     translateY 的 100% 按自身高度解析 —— 不管说明文字折成几行，露出高度都完全一致；
     末尾的 (padding + 10px) 补的是卡壳内边：body 原始底边不在卡底，而在卡底内缩 18px 处，
     裁切线却在卡底，所以要多退这一截，露出的才正好是 --app-see */
  --app-see: calc(14px + 1.2rem * 1.06 + 4px);
  transform: translateY(calc(100% + var(--app-edge) + 10px - var(--app-see)));
  transition: transform 0.6s var(--e-out), background 0.55s var(--e-out), box-shadow 0.55s var(--e-out);
}

.app:nth-child(1) { aspect-ratio: 3 / 4.3; }
.app:nth-child(2) { aspect-ratio: 3 / 3.4; }
.app:nth-child(3) { aspect-ratio: 3 / 4.7; }
.app:nth-child(4) { aspect-ratio: 3 / 3.7; }

/* 折射：与产品卡、荣誉卡同一支 keyframes；压在照片上改 soft-light，不炸高光 */
.app::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: linear-gradient(112deg, transparent 34%, rgba(255, 255, 255, 0.52) 47%, transparent 58%);
  background-size: 260% 100%;
  background-position: 118% 0;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  transition: opacity 0.5s var(--e-out);
}

.app:hover {
  z-index: 3;
  transform: translateY(-7px);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 54%, rgba(34, 211, 238, 0.11) 100%);
  box-shadow:
    var(--rim-dark, inset 0 1px 0 rgba(255, 255, 255, 0.22)),
    0 0 0 1px rgba(34, 211, 238, 0.36),
    0 26px 54px -30px rgba(0, 0, 0, 0.95),
    0 0 34px -14px rgba(34, 211, 238, 0.4);
}

.app:hover .app__media img { transform: scale(1.06); filter: saturate(1.02) brightness(1); }

/* 悬停时磨砂往上"涨"一层：效果集中在玻璃那一带，上半张图不动 */
.app:hover::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.1) 70%, rgba(255, 255, 255, 0.18) 100%);
}

/* 悬停时玻璃被"擦"一下：底色变浅、照片更透出来，模糊保留 —— 这是毛玻璃的手感 */
.app:hover .app__body {
  transform: translateY(0);
  background: linear-gradient(180deg, rgba(9, 20, 28, 0.22) 0%, rgba(9, 20, 28, 0.3) 46%, rgba(6, 14, 20, 0.5) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.27),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    0 14px 30px -20px rgba(0, 0, 0, 0.9);
}

/* 键盘 Tab 到卡片时同样把说明片推上来，不能只有鼠标可达 */
.app:focus-visible .app__body { transform: translateY(0); }

/* 没有悬停能力的设备（触屏）：本来就点完就跳转，藏起来等于丢掉这段说明 —— 直接常驻展开 */
@media (hover: none) {
  .app__body { transform: none; }
}

.app:hover::after { opacity: 1; animation: sheen 1.1s var(--e-out); }

/* 按压：落回 2px 并轻微收一下，时长压到 0.18s 才有手感 */
.app:active {
  transform: translateY(-2px) scale(0.995);
  transition-duration: 0.18s;
}

.app:focus-visible {
  outline: none;
  box-shadow:
    var(--rim-dark, inset 0 1px 0 rgba(255, 255, 255, 0.22)),
    0 0 0 2px rgba(34, 211, 238, 0.72),
    0 20px 44px -30px rgba(0, 0, 0, 0.92);
}

.app h3,
.app p {
  position: relative;
  z-index: 2;
  color: var(--void-ink);
  /* 玻璃会随底下的照片变亮，字要靠一层极浅的投影把自己"垫"起来 */
  text-shadow: 0 1px 2px rgba(2, 8, 12, 0.5);
}

.app h3 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  /* 与 .app__body 的 --app-peek 同一份数值：下沉后露出的高度就按这一行算 */
  line-height: 1.06;
}

.app p {
  margin-top: 7px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(244, 241, 234, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app__bar { display: none; }

/* ---------- 12. 为什么 ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
}

.why__media {
  position: relative;
  width: 100%;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}

.why__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.04);
}

.why__media figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 0.75rem;
  color: rgba(244, 241, 234, 0.72);
  background: rgba(16, 14, 12, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.why__list {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
}

.why__item {
  padding: 22px 0;
  box-shadow: inset 0 1px 0 var(--line);
  transition: padding-left 0.4s var(--e);
}

.why__item:first-child { padding-top: 0; box-shadow: none; }

.why__item h3 {
  font-size: var(--fs-3);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.why__item p {
  margin-top: 9px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 44ch;
}

.why__item:hover { padding-left: 8px; }

/* ---------- 13. 荣誉：三条条目 ---------- */
.honor-grid { display: grid; }

.honor {
  position: relative;
  display: grid;
  grid-template-columns: clamp(110px, 13vw, 180px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 4vw, 60px);
  padding: clamp(18px, 2.2vw, 28px) 0;
  box-shadow: inset 0 1px 0 var(--line);
  color: var(--ink);
  transition: padding-left 0.4s var(--e);
}

.honor:first-child { padding-top: 0; box-shadow: none; }
.honor:last-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.honor:hover { padding-left: 10px; }

.honor__top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: flex-start;
}

.honor__seal { display: none; }

.honor__count {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
  /* 大字号的行盒顶部留白比小字号多，按 em 收回，让数字的字形顶与标题顶齐平 */
  margin-top: -0.11em;
  color: var(--ink);
}

.honor__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: clamp(16px, 3vw, 48px);
  row-gap: 6px;
  padding-top: 0;
}

.honor__body h3 {
  grid-column: 1;
  font-size: var(--fs-3);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.honor__body p {
  grid-column: 1;
  margin-top: 8px;
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-2);
}

/* 链接必须显式落在第 1 行第 2 列：
   若只写 grid-row:1/-1，隐式网格里 -1 会解析成第 1 行，
   按钮反而抢占第 1 列，把标题挤到第 2 行（历史上的错位根因） */
.honor__body .tlink {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  margin-top: -0.3125em;
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
}

/* 首项贴内容左边缘、末项右边缘贴内容右边缘（与上方卡片同一条线），中间两项等分剩余空间。
   用 flex + space-between 而非四等分网格：网格的各列等宽，但四项文字宽度不同，
   末项文字会在自己那一列里提前结束，右边缘就落不到卡片右边线上。 */
.cert-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px clamp(16px, 3vw, 40px);
  margin-top: clamp(32px, 3.6vw, 52px);
  font-size: 0.875rem;
  color: var(--muted);
}

.cert-strip > div { display: flex; align-items: center; gap: 9px; }

.cert-strip > div::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 14. 新闻：一份索引 ---------- */
.news-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 64px);
  /* stretch：右侧索引列表被左栏主稿的高度撑满，两者底线天然齐平（见 theme-liquid 的 1fr 行） */
  align-items: stretch;
}

.news-feature { display: flex; flex-direction: column; }

.news-feature__media { aspect-ratio: 16 / 10; overflow: hidden; }

.news-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--e-out);
}

.news-feature:hover .news-feature__media img { transform: scale(1.03); }

.news-feature__body { padding: 18px 0 0; }

.news-feature__body h3 {
  margin-top: 10px;
  font-size: var(--fs-3);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.news-feature__body > p:last-child {
  margin-top: 9px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.news-list { display: grid; }

.news-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 16px;
  padding: 17px 0;
  box-shadow: inset 0 1px 0 var(--line);
  transition: padding-left 0.4s var(--e);
}

.news-row:last-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }

.news-row__date {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.8125rem;
  color: var(--muted);
}

.news-row__title {
  font-size: 1.125rem;
  line-height: 1.45;
  letter-spacing: -0.018em;
  color: var(--ink);
  transition: color 0.28s;
}

.news-row__tag {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.news-row:hover { padding-left: 8px; }
.news-row:hover .news-row__title { color: var(--accent); }

.news-table { display: grid; }

.pager,
.pagi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.pagi__btns { display: flex; gap: 6px; }

.pager a,
.pagi a {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: background 0.25s, color 0.25s;
}

.pager a:hover,
.pagi a:hover { background: rgba(20, 17, 14, 0.06); color: var(--ink); }

.pager a.is-on,
.pagi a.is-on { background: var(--ink); color: var(--paper); }

/* ---------- 15. 行动 ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 128px);
  isolation: isolate;
  background: var(--void);
  color: var(--void-ink);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/cabinet.jpg") 50% 42% / cover no-repeat;
  filter: grayscale(0.6) brightness(0.42);
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(16, 14, 12, 0.5);
}

.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.cta h2 {
  font-size: var(--fs-1);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: var(--void-ink);
}

.cta__side {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r);
  background: rgba(244, 241, 234, 0.08);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.18);
}

.cta__side > p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(244, 241, 234, 0.82);
  max-width: 38ch;
}

.cta__side .btn { margin-top: 22px; }
.cta__side .tlink { margin-top: 14px; font-size: 0.9375rem; color: rgba(244, 241, 234, 0.72); }
.cta__side .tlink:hover { color: var(--void-ink); }
.cta__ghost { display: none; }

/* ---------- 16. 内页 ---------- */
.page-hero {
  position: relative;
  padding: clamp(112px, 13vw, 168px) 0 clamp(32px, 4vw, 52px);
  box-shadow: inset 0 -1px 0 var(--line);
}

.page-hero h1 {
  font-size: var(--fs-1);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 18ch;
}

.page-hero .lead { margin-top: 22px; }

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 26px;
  font-size: 0.875rem;
  color: var(--muted);
}

.page-hero__meta b { color: var(--ink); font-weight: 500; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); transition: color 0.28s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb i { font-style: normal; opacity: 0.45; }

/* ---------- 17. 产品详情 ---------- */
.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.pd-media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}

.pd-media img { width: 100%; height: 100%; object-fit: cover; }

.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.pd-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-2);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s var(--e);
}

.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover,
.pd-thumb.is-active { opacity: 1; }

.pd-thumb.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.pd-title {
  margin-top: 4px;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.pd-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.spec-table { margin: 0; }

.spec-table__row {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  box-shadow: inset 0 1px 0 var(--line);
}

.spec-table dt { font-size: 0.875rem; color: var(--muted); }
.spec-table dd { margin: 0; font-size: 0.9375rem; color: var(--ink); }

/* ---------- 18. 应用内页 ---------- */
.scen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(36px, 4.4vw, 64px);
  box-shadow: inset 0 1px 0 var(--line);
}

.scen:first-child { box-shadow: none; }
.scen--flip .scen__media { order: 2; }

.scen__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.scen__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

.scen__no {
  display: block;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.scen h2 {
  font-size: var(--fs-2);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.scen p {
  margin-top: 14px;
  font-size: var(--fs-b);
  line-height: 1.78;
  color: var(--ink-2);
  max-width: 42ch;
}

.scen__map {
  display: flex;
  flex-wrap: wrap;
  /* 默认 stretch 会把无背景的链接拉成和胶囊同高，文字贴顶后比「推荐」高 5px；
     改为居中对齐，胶囊内文字与后面的链接落在同一条水平线上 */
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.scen__map span {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.06);
}

/* ---------- 19. 证书墙 ---------- */
.certwall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
}

.certcard {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  box-shadow: inset 0 1px 0 var(--line);
}

.certcard__type {
  padding: 0 0 10px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* 一张纸：极淡横纹 + 右下角印章 */
.certcard__frame {
  position: relative;
  aspect-ratio: 1 / 1.36;
  background:
    repeating-linear-gradient(180deg, rgba(20, 17, 14, 0.045) 0 1px, transparent 1px 11px),
    #fbf8f1;
  box-shadow: inset 0 0 0 1px var(--line);
}

.certcard__frame::after {
  content: "";
  position: absolute;
  right: 14%;
  bottom: 13%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(193, 18, 31, 0.3);
}

.certcard__frame::before {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
  top: 17%;
  height: 7px;
  background: rgba(20, 17, 14, 0.13);
  box-shadow: 0 17px 0 rgba(20, 17, 14, 0.07), 0 33px 0 rgba(20, 17, 14, 0.07),
    0 86px 0 rgba(20, 17, 14, 0.09), 0 102px 0 rgba(20, 17, 14, 0.055);
}

.certcard__frame span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13%;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(20, 17, 14, 0.32);
}

.certcard > div:last-child {
  display: grid;
  gap: 3px;
  padding-top: 10px;
}

.certcard b {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.certcard small { font-size: 0.75rem; color: var(--muted); }

/* ---------- 20. 文章 ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.prose { max-width: 66ch; }

.prose p {
  font-size: var(--fs-b);
  line-height: 1.86;
  color: var(--ink-2);
}

.prose p + p { margin-top: 20px; }

.prose h2 {
  margin: 42px 0 16px;
  font-size: var(--fs-3);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.prose ul { margin-top: 16px; display: grid; gap: 9px; }

.prose li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-b);
  line-height: 1.8;
  color: var(--ink-2);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.prose blockquote {
  margin: 30px 0;
  padding: 2px 0 2px 20px;
  box-shadow: inset 2px 0 0 var(--accent);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
}

.prose-note {
  margin-top: 2.2em;
  padding-top: 18px;
  box-shadow: inset 0 1px 0 var(--line);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
}

.prose-card {
  margin-top: 30px;
  padding: 20px;
  border-radius: var(--r);
  background: var(--paper-2);
}

.article-side { position: sticky; top: 96px; }

.article-side h4 {
  margin-bottom: 12px;
  padding-bottom: 10px;
  box-shadow: inset 0 -1px 0 var(--line);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.side-link {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  color: var(--ink-2);
  transition: color 0.28s, padding-left 0.35s var(--e);
}

.side-link span { font-size: 0.75rem; color: var(--muted); }
.side-link b { font-size: 1rem; font-weight: 400; line-height: 1.5; }
.side-link:hover { color: var(--ink); padding-left: 6px; }

/* ---------- 21. 联系 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.col-title {
  margin-bottom: 18px;
  font-size: var(--fs-3);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.contact-block + .contact-block { margin-top: 32px; }

/* 行距要跟着右栏表单的实际高度走：六行的留白让「发票与资质」末行正好落在右栏
   尾注那一行上。宽度一变右栏高度就变，所以这里只给一个 1440 下的基准值，
   真正的值由 site.js 量一次基线差后写回 --ci-pad */
.contact-block { --ci-pad: 24.6px; }

.contact-item {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: var(--ci-pad) 0;
  box-shadow: inset 0 1px 0 var(--line);
}

.contact-item dt { font-size: 0.875rem; color: var(--muted); }
.contact-item dd { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--ink); }
.contact-item b { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.015em; }
.contact-item span { color: var(--muted); }

.map-frame {
  position: relative;
  margin-top: 26px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
}

.map-frame iframe,
.map-frame img { width: 100%; height: 100%; object-fit: cover; border: 0; }

/* 表单 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--paper-2);
}

/* 标签必须紧贴自己的输入框：标签行盒自带 1.68 行高的上下留白，
   盒间距收 5px 后，肉眼看到的是「标签—框」约 9px、上一栏框—本标签约 24px */
.field { display: grid; gap: 5px; }
.field--full { grid-column: 1 / -1; }

/* 标签行高收到 1.25：默认 1.68 的行盒会在字上方留 4px 空白，
   加上 5px 盒间距，标签和框之间会拉开到 13px，读起来像两家人 */
.field label { font-size: 0.8125rem; line-height: 1.25; color: var(--ink-2); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 0;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: box-shadow 0.25s, background 0.25s;
}

.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.field select option { background: #fff; color: var(--ink); }

/* 下拉的原生渲染高度比输入框矮 4px（行高对它不生效），并排看会一高一低。
   直接按输入框的算式给高度：上下内边 24px + 正文行高 1.68em */
.field select { height: calc(1.68em + 24px); }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* 栏与栏之间用统一的 20px 立住节奏 —— 原来四组零间距，标签几乎贴在上一行的框底，
   会被误读成「标注上面的框」 */
#contactForm { display: grid; gap: 20px; }
/* 尾注是小字脚注，比正文栏距再收一点 */
#contactForm .form-note { margin-top: -6px; }
#contactForm .form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.form-note {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- 22. 404 ---------- */
.e404 {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 110px 0 72px;
  text-align: center;
}

.e404__inner { max-width: 600px; }

.e404__code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.05em;
  font-size: clamp(5.5rem, 16vw, 11rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.e404__zero {
  display: inline-block;
  width: 0.58em;
  height: 0.72em;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translateY(0.02em);
}

.e404__label { display: none; }

.e404 h1,
.e404__copy {
  margin-top: 24px;
  font-size: var(--fs-3);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.e404__desc {
  margin-top: 11px;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-2);
}

.e404__acts {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.e404__links {
  display: flex;
  justify-content: center;
  gap: 10px 28px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 1rem;
}

.e404__links a {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--ink-2);
  transition: color 0.28s;
}

.e404__links a:hover { color: var(--ink); }
.e404__links em { font-style: normal; font-size: 0.8125rem; color: var(--muted); }

/* ---------- 23. 页脚：书的封底 ---------- */
/* 结构照原站：左侧信息块 + 六列导航 + 居中版权条；深色，与两个深章同源 */
.site-footer {
  position: relative;
  padding-top: clamp(52px, 5.4vw, 76px);
  background: var(--void);
  color: var(--void-ink);
  box-shadow: inset 0 1px 0 rgba(244, 241, 234, 0.14);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(26px, 3vw, 40px);
}

/* 左：标识 / 电话 / 联系人 / 地址 */
.footer-info {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--void-ink);
}

.footer-logo__text { display: grid; line-height: 1.14; }

.footer-logo__text b {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-logo__text i {
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--void-muted);
}

.footer-line {
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.footer-key {
  padding-top: 1px;
  font-size: 0.8125rem;
  color: var(--void-muted);
}

.footer-line p {
  font-size: 0.8125rem;
  line-height: 1.85;
  color: var(--void-2-ink);
}

.footer-line a {
  color: var(--void-2-ink);
  transition: color 0.25s;
}

.footer-line a:hover { color: var(--void-ink); }
.footer-line em { font-style: normal; color: var(--void-muted); }

.footer-line .nowrap { white-space: nowrap; }

/* 右：六列导航 */
.footer-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--void-ink);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--void-muted);
  transition: color 0.25s;
}

.footer-col a:hover { color: var(--void-ink); }

/* 版权条：通栏深色带，一行居中 */
.footer-legal {
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(244, 241, 234, 0.08);
}

.footer-legal .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 52px;
  padding-block: 12px;
  font-size: 0.75rem;
  color: var(--void-muted);
}

.footer-legal__sep::before {
  content: "|";
  margin-right: 10px;
  color: rgba(244, 241, 234, 0.28);
}

.footer-legal a { color: var(--void-muted); }
.footer-legal a:hover { color: var(--void-ink); }

/* ---------- 24. 动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--e-out), transform 0.8s var(--e-out);
  transition-delay: var(--d, 0s);
}

[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .pcard { animation: none; opacity: 1; }
}

/* ---------- 25. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav { gap: 13px; }
  .header-tel { display: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app:nth-child(n) { margin-bottom: 0; aspect-ratio: 4 / 3.2; }
  .certwall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero { padding-top: 104px; }

  .hero__left {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 18px;
  }

  .hero h1,
  .hero__sub,
  .hero__cta { grid-column: 1; grid-row: auto; }

  .hero__sub { max-width: 44ch; }
  .hero__shot img { aspect-ratio: 3 / 2; }
  .hero__tag { width: min(320px, 62vw); right: var(--gutter); bottom: 18px; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
  .hero-stats .hero-stat:nth-child(4),
  .hero-stats .hero-stat:nth-child(5) { display: none; }

  .sec-head,
  .about-grid,
  .why,
  .news-split,
  .cta__inner,
  .contact-grid,
  .pd-grid,
  .scen,
  .article-layout { grid-template-columns: 1fr; }

  /* 单列后左右不再并排，行距回到紧凑档（不再需要跟右栏对齐） */
  .contact-block { --ci-pad: 14px; }

  .sec-head { gap: 14px; align-items: start; }
  /* 单列后标题与导语上下叠，不再需要"末行基线对齐"那段补偿 */
  .sec-head h2 { padding-bottom: 0; }
  /* 单列后导语在标题下方，不能再靠右站（40ch 的盒子会被顶到通栏右侧） */
  .sec-head__aside { justify-self: start; }
  .scen--flip .scen__media { order: 0; }
  .why__media { aspect-ratio: 16 / 10; min-height: 0; }
  .article-side { position: static; }
  .honor-grid { gap: 12px; }

  /* 数字与标题并排；三者仍按顶对齐，不改成基线对齐（基线会让小字号数字顶高出标题 6px） */
  .honor {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .honor__count { font-size: clamp(1.6rem, 3vw, 2.2rem); }
  .honor__body { padding-top: 0; }

  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 900px) {
  .nav,
  .header-actions .btn { display: none; }
  .burger { display: inline-flex; }
  .header-tel { display: inline-flex; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }

  .header-tel { display: none; }

  .hero h1 { font-size: clamp(2.05rem, 9.4vw, 2.9rem); }
  .hero__cta { flex-direction: column; align-items: flex-start; gap: 13px; }
  .hero__tag { position: static; width: auto; margin: 14px 0 0; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats .hero-stat:nth-child(3) { display: none; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps { grid-template-columns: 1fr; }
  .certwall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .honor__body { grid-template-columns: 1fr; }
  /* 窄屏放不下并排，链接落到描述之下（显式占第 3 行，避免与 p 抢同一格） */
  .honor__body .tlink {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    align-self: start;
    margin-top: 12px;
  }
  .form-grid,
  .field-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }

  .footer-legal .wrap {
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    padding-block: 14px;
    font-size: 0.6875rem;
    text-align: center;
  }

  .footer-legal__sep::before { display: none; }
  /* 窄屏中途折行时 space-between 会把折行那行的末项顶到最右，退回两列网格 */
  .cert-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta__side { padding: 20px; }
  .news-row { grid-template-columns: 1fr; gap: 6px; }
  .news-row__date { grid-row: auto; }
  .contact-item { grid-template-columns: 1fr; gap: 4px; }
  .prod-foot { grid-template-columns: 1fr; align-items: start; }
}

/* 首屏轮播圆点（后台「轮播图片」驱动） */
.hero__dots{position:absolute;left:clamp(20px,3vw,48px);bottom:18px;display:flex;gap:7px;z-index:2}
.hero__dots button{width:22px;height:3px;border:0;padding:0;background:rgba(255,255,255,.32);cursor:pointer;transition:background .2s}
.hero__dots button.is-on{background:#fff}
.hero__dots button:hover{background:rgba(255,255,255,.6)}
@media (max-width:720px){.hero__dots{bottom:12px}}
