/* ============================================================
   英特费斯 INTERFACE · 2026 官网样式系统
   版式取自 awwwards.com 实测（2026-08-24，1440 / 1024 / 390 / 1920 四视口）
   品牌、文案、图形均为英特费斯自有内容。

   实测规范
     字体   Inter Tight 单字族（中文回落 PingFang SC）· 全站不做字距调整
     正文   14px / 行高 28px / 字重 300·400·500·600
     巨标   8.85vw 无上限（390=42 · 1024=89 · 1440=127 · 1920=170）
     容器   无 max-width，宽度 = 100% − 2×padding（52 / 40 / 16）
     栅格   1 列 <760 · 2 列 · 3 列 ≥1500；列距 20 行距 30
     节奏   区块间距 200px（桌面）→ 78px（移动）
     圆角   卡片 14 · 控件 8 · 小件 4 · 头像 50%
     色     #f8f8f8 地 · #222 墨 · #fff 卡 · #e9e9e9/#ededed 灰 · rgba(0,0,0,.13) 线
     品牌   青柠 #d9f24f · 紫罗兰 #5e6ad2（英特费斯自有，非参考站配色）
   ============================================================ */

:root {
  --ground: #f8f8f8;
  --ink: #222222;
  --card: #ffffff;
  --grey: #e9e9e9;
  --grey-2: #ededed;
  --line: rgba(0, 0, 0, 0.13);
  /* 次级文字两档。参考站实测是 .56 / .38，但 .38 落在小字号（眉题 / 日期 / 字段名）上用户反馈「看不清」
     （2026-09-05 晚，页脚联系卡），全站统一调深到 .62 / .5，层级仍是 墨 › 次级 › 三级 */
  --mut: rgba(34, 34, 34, 0.62);
  --mut-2: rgba(34, 34, 34, 0.5);

  /* 英特费斯品牌色（参考站不提供，来自本站 v5 设计语言） */
  --accent: #d9f24f;
  --violet: #5e6ad2;

  --font: "Inter Tight", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 容器：实测参考站无 max-width，宽度恒为 100% − 2×padding */
  --pad: 52px;
  --gap-x: 20px;
  --gap-y: 30px;

  --r-card: 14px;   /* 白色内容卡（对应参考站 .card-course） */
  --r-media: 8px;   /* 图片/作品封面框（对应参考站 .figure-rollover，实测 8 不是 14） */
  --r-ui: 8px;      /* 按钮 / 搜索 / 下拉条目 */
  --r-sm: 4px;

  --header-h: 74px;   /* 2026-09-05 晚：按 growthman.cn 实测 75 放高（原 54）；logo / 菜单字 / 搜索 / CTA 同步放大一档 */
  /* 实测：桌面区块间距恒定 200px，移动端 78px */
  --sec-gap: clamp(78px, 20vw, 200px);

  --ease: cubic-bezier(0.22, 0.65, 0.25, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* 触屏默认的淡蓝点按高亮在深色/灰底控件上很脏；键盘可达性仍由 :focus-visible 保证 */
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

html, body { overflow-x: clip; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 28px;
  font-weight: 300;            /* 实测参考站 body 为 Light 300，不是 400 */
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* ---------- 容器 ---------- */
.inner {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* 实测 padding：1440+ → 52 · 1024 → 40 · 390 → 16 */
@media (max-width: 1279px) { :root { --pad: 40px; } }
@media (max-width: 760px)  { :root { --pad: 16px; } }

/* ============================================================
   字阶
   ============================================================ */
/* 实测：8.85vw 无上限，且参考站全站 letter-spacing 均为 normal */
.display {
  font-size: clamp(42px, 8.85vw, 170px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: normal;
  text-transform: uppercase;
  text-wrap: balance;
}

/* 中文无大小写形态，且方块字在巨号下需要收一点字距才不散——
   这是相对参考站的刻意偏离，仅作用于中文巨标。 */
.display--cn { text-transform: none; letter-spacing: -0.035em; line-height: 1.04; }

/* 中文是全宽字身：42px × 9 字 = 378px，放不进 390 视口下 358px 的容器，
   会把最后一个字挤成孤行。汉字巨标单独降一档。 */
@media (max-width: 760px) {
  .display--cn { font-size: clamp(30px, 9.2vw, 42px); }
}

/* 实测两点 1024=34.86px、1440=41.89px 拟合：斜率 1.69vw，截距 17.5px。
   纯 2.9vw 在 1024 处会偏小 15%，必须带截距。 */
.heading-5 {
  font-size: clamp(26px, calc(17.5px + 1.69vw), 50px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-wrap: balance;
}

.t-24 { font-size: 24px; font-weight: 600; line-height: 28px; }
.t-20 { font-size: 20.6px; font-weight: 600; line-height: 28px; }   /* 实测 card-slide__title */
.t-18 { font-size: 18px; font-weight: 400; line-height: 26px; }
.t-15 { font-size: 15px; font-weight: 300; line-height: 22px; }
.t-13 { font-size: 13px; font-weight: 300; line-height: 20px; color: var(--mut); }

.label { font-size: 14px; font-weight: 400; line-height: 28px; }
.label-mut { font-size: 14px; font-weight: 400; color: var(--mut); }

.micro {
  font-size: 10.5px;
  font-weight: 300;
  line-height: 16px;
  letter-spacing: 0.04em;
  color: var(--mut-2);
}

.strong-15 { font-size: 15px; font-weight: 600; line-height: 18px; }

/* ============================================================
   按钮：42px 高 / 8px 圆角 / 14px-500 / padding 0 20px
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.button--dark { background: var(--ink); color: #fff; }
.button--dark:hover { background: #000; }

.button--outline {
  color: var(--ink);
  box-shadow: inset 0 0 0 0.5px var(--ink);
}
.button--outline:hover { background: var(--ink); color: #fff; }

.button--white {
  height: 48px;
  background: #fff;
  color: var(--ink);
  font-weight: 300;
}

.button--accent { background: var(--accent); color: var(--ink); }
.button--accent:hover { filter: brightness(0.95); }

/* 推荐位大按钮：179×72 / 18px-400 */
.button--xl {
  height: 72px;
  padding: 0 28px;
  font-size: 18px;
  font-weight: 400;
}

.link-underlined {
  font-size: 14px;
  font-weight: 300;
  color: var(--mut);
  border-bottom: 1px solid var(--line);
}
.link-underlined:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

/* ============================================================
   顶栏 · 实测自 awwwards.com（1440）
     条    1321×54 · #e9e9e9 · radius 8 · padding 0 6px
     导航  14px/500 · 每项 padding 0 10px · 行高撑满 54
     搜索  434×42（展开态 890）· radius 8
     右侧  flex · gap 12 · 按钮 42 高
   展开态：条底色转 #ededed、圆角变上圆下方、导航宽度归零、
           搜索撑满、面板 #ededed 接在下沿、全屏 rgba(0,0,0,.7) 遮罩
   ============================================================ */
/* ---------- 吸顶 ----------
   顶栏被 .inner 单独包着，sticky 必须挂在包裹层上（sticky 元素只能在父盒范围内吸附，
   父盒和它一样高就等于没吸）。包裹层顶部 8px 是页顶的呼吸位，top:-8px 让这 8px 在
   吸顶后滚出视口，条正好贴住视口上沿。不支持 :has() 的老内核退回随页滚动，不会坏。 */
.inner:has(> .header-main) {
  position: sticky;
  top: -8px;
  z-index: 60;
  padding-top: 8px;
}
.inner:has(> .header-main) > .header-main { margin-top: 0; }
.header-main { position: relative; margin-top: 8px; z-index: 60; }

/* 离开页顶后的磨砂底：地色 78% + 背景模糊 18px，下沿一条 7% 黑的细线把条与内容分开；
   满幅（抵消 .inner 左右 padding）。页顶时保持透明，首屏视频一直通到顶。
   JS 在滚过 8px（条刚贴住视口顶）时挂 .is-scrolled。 */
.header-main::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--pad) * -1);
  right: calc(var(--pad) * -1);
  background: rgba(248, 248, 248, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.header-main.is-scrolled::before { opacity: 1; }

/* 向下滚超过 120px 隐藏让出屏幕，向上滚立即回来（.is-hidden 由 JS 按滚动方向切换）。
   只位移条本身和磨砂底：遮罩（fixed）与面板是它们的兄弟节点，
   不会被 transform 建立的包含块影响。多移 12px 让下沿细线也完全出屏。 */
.header-main__container { transition: transform 0.45s var(--ease); }
.header-main.is-hidden .header-main__container,
.header-main.is-hidden::before { transform: translateY(calc(-100% - 12px)); }

/* 实测 awwwards.com/directory/：顶栏容器**透明、无圆角**，不是灰色胶囊；
   灰色只出现在搜索框上（#ededed），所以搜索框是看得见的。
   （首页那版是容器与搜索同为 #e9e9e9，搜索框等于隐形，这里不采用。） */
.header-main__container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 0 0 4px;
  background: transparent;
}

/* 展开态顶栏转白（形态取自 growthman.cn 的 .hstyle2：展开即 background:#fff）。
   满幅：抵消 .inner 的左右 padding，让白条与下方满幅面板严丝合缝；
   top:-8px 把顶栏上方的呼吸位一并盖住，遮罩就不会在最顶上留一条灰边。 */
.header-main__container::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: 0;
  left: calc(var(--pad) * -1);
  right: calc(var(--pad) * -1);
  z-index: -1;
  background: var(--card);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.header-main[data-open="true"] .header-main__container::before { opacity: 1; }

/* 焦点遮罩：只压暗「面板下沿以下」的页面，绝不叠在顶栏上。
   原先是 inset:0 的 rgba(0,0,0,.7) 全屏遮罩，而顶栏容器是透明的，
   黑色直接透过顶栏 —— 展开时整条顶栏与它上方的 8px 呼吸位一起变灰，就是这里来的。
   growthman.cn 实测：整站没有任何 mask/overlay（maskCandidates: []），
   顶栏转白 + 白面板直接「盖住」内容，而不是「压暗」内容。
   这里保留极淡的一层把注意力收回菜单，--overlay-top 由 JS 写入顶栏下沿。 */
.header-main__overlay {
  position: fixed;
  top: var(--overlay-top, calc(var(--header-h) + 8px));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: rgba(16, 18, 22, 0.24);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.header-main[data-open="true"] .header-main__overlay { opacity: 1; visibility: visible; }

/* 汉堡：桌面隐藏，实测参考站 display:none */
.header-main__hamburger {
  display: none;
  width: 40px;
  height: var(--header-h);
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex: none;
}

.header-main__logo { display: flex; align-items: center; flex: none; }
.header-main__logo img { height: 32px; width: auto; }

/* ---------- 主导航（2026-09-05 晚重做） ----------
   字 16 / 500、项距 14（growthman.cn 实测 16 / 项 padding 20，我们的字重高一档所以项距收一点）。
   hover 的「字变主题色」不是简单 transition color：.nav-main__t 里的墨色原文向上滚出一行，
   正下方的紫罗兰副本（<i aria-hidden>）滚进来——awwwards 式的文字翻转；chevron 跟 link 的 color 一起转紫。
   底下再垫一块整条导航共用的浅紫底衬 .nav-main__pill：aw.js「主导航 · 滑动底衬」段按当前项写 left / width，
   鼠标在几个菜单项之间移动时它滑过去，不再是每项各自浮起一块；面板展开时钉在展开项底下。 */
.nav-main { position: relative; display: flex; margin-left: 28px; flex: none; overflow: visible; }
.nav-main__item { position: relative; }

.nav-main__pill {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 40px;
  margin-top: -20px;
  border-radius: 10px;
  background: rgba(94, 106, 210, 0.09);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.nav-main.has-pill .nav-main__pill {
  opacity: 1;
  transition: opacity 0.2s var(--ease), left 0.38s var(--ease), width 0.38s var(--ease);
}

.nav-main__link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--header-h);
  padding: 0 14px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.nav-main__link:hover,
.nav-main__link:focus-visible,
.nav-main__link[aria-expanded="true"] { color: var(--violet); }
.nav-main__link:focus-visible { outline: 2px solid var(--violet); outline-offset: -14px; border-radius: 12px; }

/* 文字翻转：外层裁切一行高，内层位移；<i> 是同一个字的紫罗兰副本，挂在原文正下方一行 */
.nav-main__txt { display: block; height: 1.25em; overflow: hidden; }
.nav-main__t {
  position: relative;
  display: block;
  line-height: 1.25em;
  color: var(--ink);
  transition: transform 0.42s var(--ease);
}
.nav-main__t i {
  position: absolute;
  left: 0;
  top: 100%;
  font-style: normal;
  color: var(--violet);
}
.nav-main__link:hover .nav-main__t,
.nav-main__link:focus-visible .nav-main__t,
.nav-main__link[aria-expanded="true"] .nav-main__t { transform: translateY(-100%); }

.nav-main__link svg { transition: transform 0.3s var(--ease); }
.nav-main__link:hover svg { transform: translateY(1px); }
.nav-main__link[aria-expanded="true"] svg { transform: rotate(180deg); }

/* 「招聘中」徽标（2026-09-05 晚重做）：原来是墨底白字的静态小方块（照 awwwards 的 New），
   现在是一颗会变色的药丸——六色柔和渐变（青柠 › 薄荷 › 天蓝 › 淡紫 › 粉 › 杏 › 回到青柠）横向流动 9s 一轮，
   前端一格 17px 的小窗里轮播 16 个不同职业、不同肤色的人物 emoji（tools/build-header.py 的 FACES），
   每 1.2s 翻一张，意思是「什么样的人都欢迎」。hover 徽标微微放大。 */
.nav-main__badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 7px 0 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9f24f, #b9edd2, #bfd6ff, #dccbff, #ffc9dc, #ffdcb0, #d9f24f);
  background-size: 200% 100%;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: normal;
  box-shadow: inset 0 0 0 1px rgba(34, 34, 34, 0.06);
  animation: badge-hue 9s linear infinite;
  transition: transform 0.3s var(--ease);
}
.nav-main__link:hover .nav-main__badge { transform: scale(1.06); }

/* 「伙伴招募」那颗（2026-09-17）：同一个药丸，换成不流动的满色青柠 —— 顶栏里两颗都在变色会打架，
   前面也没有人物小窗，所以左内边距补回来。内容由 tools/build-header.py 的 ALLY 常量给。 */
.nav-main__badge--lime {
  padding: 0 8px;
  background: var(--accent);
  background-size: auto;
  animation: none;
}

@keyframes badge-hue {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }   /* 图宽 = 2 倍容器，走到 200% 正好一整个周期，首尾同色所以无缝 */
}

/* 人物小窗：外层裁成 17×16 的窗，内层一列 <b> 每张 16 高，整列按 faces-roll 逐张上移；
   每格 6.25%（= 1/16），前 65% 停住、后 35%（≈ 0.42s）滑到下一张 */
.nav-main__faces {
  position: relative;
  display: block;
  width: 17px;
  height: 16px;
  overflow: hidden;
  font-style: normal;
}
.nav-main__faces > span { display: block; animation: faces-roll 19.2s var(--ease) infinite; }
.nav-main__faces b {
  display: block;
  height: 16px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
  text-align: center;
}
@keyframes faces-roll {
  0%, 4.0625% { transform: translateY(-0px); }
  6.25%, 10.3125% { transform: translateY(-16px); }
  12.5%, 16.5625% { transform: translateY(-32px); }
  18.75%, 22.8125% { transform: translateY(-48px); }
  25%, 29.0625% { transform: translateY(-64px); }
  31.25%, 35.3125% { transform: translateY(-80px); }
  37.5%, 41.5625% { transform: translateY(-96px); }
  43.75%, 47.8125% { transform: translateY(-112px); }
  50%, 54.0625% { transform: translateY(-128px); }
  56.25%, 60.3125% { transform: translateY(-144px); }
  62.5%, 66.5625% { transform: translateY(-160px); }
  68.75%, 72.8125% { transform: translateY(-176px); }
  75%, 79.0625% { transform: translateY(-192px); }
  81.25%, 85.3125% { transform: translateY(-208px); }
  87.5%, 91.5625% { transform: translateY(-224px); }
  93.75%, 97.8125% { transform: translateY(-240px); }
  100% { transform: translateY(-256px); }
}

/* ---------- 搜索（2026-09-05 晚重做） ----------
   原先 flex:1 撑满导航与 CTA 之间的空当，顶栏放高后显得太重。现在平时是一颗 196px 的小胶囊贴在 CTA 左边
   （margin-left:auto 靠右），聚焦即向左拉宽到 380px、转白、描一圈紫罗兰细边，放大镜同时转紫微转；
   框里还有字（.is-filled，aw.js 维护）时保持展开，不把字藏掉。≤760 仍旧撑满，窄屏没有拉宽的余地。 */
.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  width: 196px;
  height: 40px;
  margin: 0 14px 0 auto;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--grey-2);
  color: var(--ink);
  transition: width 0.45s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.search-form:focus-within,
.search-form.is-filled {
  width: 380px;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--violet), 0 10px 28px -14px rgba(94, 106, 210, 0.4);
}
.search-form svg { flex: none; transition: color 0.3s var(--ease), transform 0.45s var(--ease); }
.search-form:focus-within svg { color: var(--violet); transform: scale(1.12) rotate(-8deg); }
.search-form input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink);
}
.search-form input::placeholder { color: var(--ink); opacity: 1; transition: opacity 0.3s var(--ease); }
.search-form:focus-within input::placeholder { opacity: 0.45; }
.search-form input:focus { outline: none; }

/* 下拉展开时收起搜索框（面板本身已经承担了「找东西」的职责）：宽度收到 0 淡出，右侧 CTA 位置不变 */
.header-main[data-open="true"] .search-form {
  width: 0;
  flex-basis: 0;   /* 窄屏走 flex-basis 定宽，也要一起收到 0 */
  margin-right: 0;
  padding-inline: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: width 0.35s var(--ease), margin 0.35s var(--ease), padding 0.35s var(--ease),
              opacity 0.2s var(--ease), visibility 0.35s;
}

/* ---------- 右侧操作 · 唯一 CTA「联系我们」（2026-09-05 重做） ----------
   原先是「墨色按钮 + 描边按钮」一对，现在只留一颗 40px 墨色药丸，尾端一粒 24px 青柠圆点，
   是整条顶栏里唯一的品牌色；圆点与药丸的圆端同心（right 9 + 半径 13 = 圆端半径 22；2026-09-05 晚随顶栏放高，药丸 40 → 44）。
   静态：圆点外圈每 2.8s 泛一圈涟漪，涨到正好贴住药丸圆端（≈ 药丸的高）时消散——「在线、可联系」的暗示。
   hover / 聚焦：青柠从圆点位置涨满整颗药丸（.cta__fill 圆形 scale），文字转墨色，
   圆点反相成墨色并浮出 ↗。桌面细指针再叠一层磁性吸附（aw.js 的 [data-mag] 段）：
   吸附位移写在 transform，按下的缩放用独立的 scale 属性，两者不互相覆盖。 */
.header-main__acts { display: flex; align-items: center; flex: none; }

/* ---------- 语言菜单（2026-09-05 中英开关 → 2026-09-09 六语下拉） ----------
   顶栏右侧只允许有一颗药丸 CTA，所以语言切换不做成第二颗按钮：
   14/500 的一小行文字 + 14px 地球线图标，平时是灰的、hover 才浮起一块
   #ededed 底（跟搜索框那块灰同一个手法）。点开是一张六行的小白卡，
   每行「母语名 + 二位代码」，当前语言左侧一根青柠竖条。换语言整页刷新。 */
.lang-pick { position: relative; display: inline-flex; }

.lang-sw {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin-right: 10px;
  padding: 0 8px 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mut);
  font: 500 14px/1 inherit;
  font-family: inherit;
  letter-spacing: normal;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-sw__g {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lang-sw__cv {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
  transition: transform 0.3s var(--ease);
}
.lang-sw:hover,
.lang-pick.is-open .lang-sw { background: var(--grey-2); color: var(--ink); }
.lang-pick.is-open .lang-sw__cv { transform: rotate(180deg); }
.lang-sw:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.lang-sw__t { position: relative; top: 0.5px; }

.lang-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 10px;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.11), 0 2px 6px rgba(0, 0, 0, 0.05);
  animation: lang-menu-in 0.22s var(--ease) both;
}
@keyframes lang-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.lang-menu__i {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-ui);
  background: transparent;
  color: var(--ink);
  font: 500 14px/1 inherit;
  font-family: inherit;
  letter-spacing: normal;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.lang-menu__i:hover { background: var(--grey-2); }
.lang-menu__i:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.lang-menu__c {
  color: var(--mut-2);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
}
/* 当前语言：左边一根青柠竖条（不用对勾，省一列宽度） */
.lang-menu__i.is-on { background: var(--grey-2); }
.lang-menu__i.is-on::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.lang-menu__i.is-on .lang-menu__c { color: var(--ink); }

@media (max-width: 760px) {
  .lang-sw { margin-right: 4px; padding: 0 6px; }
  .lang-sw .lang-sw__t { font-size: 13px; }
  .lang-sw__cv { display: none; }
  .lang-menu { right: 4px; min-width: 152px; }
}

/* ---------- 外语版的版式微调 ----------
   巨标的 -0.035em 字距是为汉字全宽字身收的，拉丁字母套上去会挤成一坨；
   逐字上浮的巨标在英文下按词拆（aw.js 的 splitText 已经词感知），这里只
   把字距还原、并允许长单词断行，避免 42px 下 "Manufacturing" 冲出容器。 */
html[data-lang="en"] .display,   html[data-lang="de"] .display,   html[data-lang="es"] .display,
html[data-lang="en"] .hero__title, html[data-lang="de"] .hero__title, html[data-lang="es"] .hero__title,
html[data-lang="en"] .sec__display, html[data-lang="de"] .sec__display, html[data-lang="es"] .sec__display {
  letter-spacing: -0.015em;
}
html[data-lang="en"] .hero__title, html[data-lang="de"] .hero__title, html[data-lang="es"] .hero__title,
html[data-lang="en"] .display,     html[data-lang="de"] .display,     html[data-lang="es"] .display {
  overflow-wrap: break-word;
}
/* 德语复合词特别长（Anlagenbau / Bedienoberfläche），巨标下允许连字符断行 */
html[data-lang="de"] .hero__title,
html[data-lang="de"] .display { hyphens: auto; }
/* 韩语按词分写、日语没有空格：都要允许在任意位置折行，否则长句撑破卡片 */
html[data-lang="ko"] { word-break: keep-all; overflow-wrap: anywhere; }
/* 字体栈：PingFang SC 会把日文汉字画成中文字形（直/涉/骨…），韩文更是整段掉字，
   所以日韩各自把 --font 换掉，其余变量与版式一律不动。 */
html[data-lang="ja"] {
  --font: "Inter Tight", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Noto Sans JP", "Meiryo", system-ui, sans-serif;
}
html[data-lang="ko"] {
  --font: "Inter Tight", "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic",
    "Noto Sans KR", "Nanum Gothic", system-ui, sans-serif;
}
html[data-lang="ja"] { line-break: strict; overflow-wrap: anywhere; }

.cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 9px 0 20px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.6s var(--ease), color 0.3s var(--ease) 0.1s, scale 0.2s var(--ease);
}
.cta:hover,
.cta:focus-visible { color: var(--ink); }
.cta:active { scale: 0.96; }
.cta:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* 青柠填充：与圆点同心的一颗圆，hover 时 scale 到盖满药丸（26 × 10 = 260px，够到最左角） */
.cta__fill {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 9px;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.55s var(--ease);
}
.cta:hover .cta__fill,
.cta:focus-visible .cta__fill { transform: scale(10); }

.cta__label { position: relative; z-index: 1; }

.cta__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: background-color 0.35s var(--ease), transform 0.6s var(--ease);
}
/* 涟漪：28px 起，涨到 1.55 倍（≈ 44px，恰好是药丸的高）时消散，其余时间休息 */
.cta__dot::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: cta-ping 2.8s var(--ease) infinite;
}
.cta__dot svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s var(--ease), transform 0.45s var(--ease);
}
.cta:hover .cta__dot,
.cta:focus-visible .cta__dot { background: var(--ink); }
.cta:hover .cta__dot::before,
.cta:focus-visible .cta__dot::before { animation: none; }
.cta:hover .cta__dot svg,
.cta:focus-visible .cta__dot svg { opacity: 1; transform: none; transition-delay: 0.1s; }

@keyframes cta-ping {
  0%   { opacity: 0.7; transform: scale(1); }
  60%  { opacity: 0; transform: scale(1.55); }
  100% { opacity: 0; transform: scale(1.55); }
}

/* ============================================================
   巨型下拉 v7 · 三分区升级（2026-09-05）
     骨架仍是 growthman.cn 实测的三分区（简介 / 链接 / 资源），
     视觉密度按「亮色 Linear」补足，不再是一片素白：
       简介区  眉题 + 22px 标题 + 一句话 + 圆钮 CTA + 三格经营数据；
               底色带两团极淡光晕（左下青柠 / 右上紫罗兰）
       链接区  每行 44 高：32 圆角图标格（紫罗兰线性图标，hover 反白）
               + 15/500 文字 + 隐藏式 chevron；列尾一条青柠横幅（真实动态 / 招聘 / 案例数）
       资源区  两张 280×150 满色插画卡：底色取自插画自己的平涂背景，
               插画按固定高度贴在右侧、只露出右下角的 3D 物件（左上角的大字标题被裁掉），左侧标题 + 药丸按钮
     面板本体：满幅白底 · 顶部发丝线 · 底部 64px 柔投影
     内容由 tools/build-header.py 生成，四个面板共用这一套样式
   ============================================================ */
.mega {
  position: absolute;
  z-index: 2;
  top: var(--header-h);
  /* 满幅：抵消 .inner 的左右 padding */
  left: calc(var(--pad) * -1);
  right: calc(var(--pad) * -1);
  background: var(--card);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 40px 64px -36px rgba(16, 18, 22, 0.3);
  /* 顶栏吸顶后面板跟着钉在视口顶：窄屏上内容比视口高时要能在面板内滚 */
  max-height: calc(100svh - var(--header-h));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
}
.header-main[data-open="true"] .mega[data-active] { display: block; }

/* 图标雪碧图：占位 0×0，只供 <use> 引用（不用 display:none，旧 Safari 会取不到 symbol） */
.mega-icons { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 整个面板先整体下滑淡入，再由各项逐个入场 */
.mega__box {
  display: flex;
  align-items: stretch;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease);
}
.mega[data-in] .mega__box { opacity: 1; transform: none; }

/* --- 简介区 --- */
.mega__intro {
  width: 340px;
  flex: none;
  display: flex;
  flex-direction: column;
  /* 左内边距 = 容器 padding + 4，让「我们的服务」与顶栏标志左对齐 */
  padding: 30px 32px 30px calc(var(--pad) + 4px);
  background:
    radial-gradient(360px 220px at -8% 108%, rgba(217, 242, 79, 0.55), transparent 62%),
    radial-gradient(320px 220px at 108% -8%, rgba(94, 106, 210, 0.14), transparent 62%),
    linear-gradient(180deg, #f5f6f8 0%, #f8f8fa 100%);
}
.mega__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--mut-2);
}
.mega__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 242, 79, 0.35);
}
.mega__intro h3 { margin-top: 14px; font-size: 22px; font-weight: 600; line-height: 30px; }
.mega__intro p {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 300;
  line-height: 24px;
  color: var(--mut);
}

/* 圆钮 CTA：文字 + 28px 墨色圆钮，hover 转紫罗兰并右移 */
.mega__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--ink);
}
.mega__cta i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: background-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.mega__cta i svg,
.mega__pill svg,
.mega__strip-go svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mega__cta:hover i { background: var(--violet); transform: translateX(3px); }

/* 三格经营数据：数字 22/600，「+」用紫罗兰 */
.mega__stats { display: flex; margin: auto 0 0; padding-top: 28px; }
.mega__stats > div { flex: 1 1 0; min-width: 0; padding-right: 10px; }
.mega__stats > div + div { padding-left: 14px; border-left: 1px solid rgba(0, 0, 0, 0.08); }
.mega__stats dt { font-size: 22px; font-weight: 600; line-height: 26px; white-space: nowrap; }
.mega__stats dt sup {
  margin-left: 1px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--violet);
  vertical-align: top;
}
.mega__stats dd {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
  color: var(--mut);
  white-space: nowrap;
}
.mega__note {
  margin-top: auto;
  padding-top: 24px;
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
  color: var(--mut-2);
}

/* --- 链接区 --- */
.mega__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 32px;
}
.mega__cols { display: flex; gap: 24px; }
/* --col 由生成器写在列上（默认 1，「最新」等宽列 1.7） */
.mega__col { flex: var(--col, 1) 1 auto; min-width: 0; }

.mega__colhead {
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--mut-2);
}

.mega__link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 10px 0 6px;
  margin-inline: -6px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.25s var(--ease);
}
.mega__link:hover { background: #f4f5f7; }
.mega__link > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 图标格：白底发丝线 + 紫罗兰线性图标；hover 整格反成紫罗兰 */
.mega__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--card);
  color: var(--violet);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.mega__ico svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 标识本体自带 viewBox（537.5×317.5），按比例给 18×11 */
.mega__ico svg.is-mark { width: 18px; height: 11px; }
.mega__link:hover .mega__ico { background: var(--violet); color: #fff; box-shadow: none; }

/* 「最新」列用日期代替图标 */
.mega__date {
  flex: none;
  width: 40px;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  color: var(--mut-2);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s var(--ease);
}
.mega__link:hover .mega__date { color: var(--violet); }

.mega__chev {
  flex: none;
  margin-left: auto;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--mut-2);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}
.mega__link:hover .mega__chev { opacity: 1; transform: none; }
/* 外链行（人机界面素材网 → material.savehmi.com）：↗ 常显淡灰提示会离站，hover 转紫罗兰并向右上挪一步 */
.mega__chev--ext { opacity: 0.55; transform: none; }
.mega__link:hover .mega__chev--ext { opacity: 1; color: var(--violet); transform: translate(1px, -1px); }

/* 「自研」用紫罗兰淡底，「招聘中」用青柠 */
.mega__tag {
  display: inline-block;
  margin-left: 6px;
  vertical-align: 1px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  font-style: normal;
  line-height: 16px;
  background: rgba(94, 106, 210, 0.12);
  color: var(--violet);
}
.mega__tag--lime { background: var(--accent); color: var(--ink); }

/* 列尾横幅：青柠渐变，贴在链接区底部与右侧卡片下沿平齐 */
.mega__strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  min-height: 52px;
  padding: 0 16px 0 14px;
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(90deg, #eef9bd 0%, #e2f47a 60%, #d9f24f 100%);
  transition: filter 0.3s var(--ease);
}
.mega__strip:hover { filter: brightness(0.97); }
.mega__strip-tag {
  flex: none;
  display: inline-grid;
  place-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.mega__strip b { flex: none; font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.mega__strip-sub {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 300;
  color: rgba(34, 34, 34, 0.7);
}
.mega__strip-go {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.mega__strip-go svg { transition: transform 0.3s var(--ease); }
.mega__strip:hover .mega__strip-go svg { transform: translateX(3px); }

/* --- 资源区：满色插画卡 --- */
.mega__aside {
  flex: none;
  width: calc(252px + 28px + var(--pad));
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* 右内边距 = 容器 padding，让卡片右沿与顶栏按钮对齐 */
  padding: 30px var(--pad) 30px 28px;
}
.mega__card {
  position: relative;
  display: block;
  overflow: hidden;
  height: 150px;
  border-radius: var(--r-card);
  background: var(--bg, #f0f0f2);
  color: var(--fg, var(--ink));
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.mega__card:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -18px rgba(16, 18, 22, 0.35); }
/* 插画贴在右侧：固定 250px 高、宽度按比例，用 --art-x / --art-y 把左上角的大字标题推出可视区，
   只露右下角的 3D 物件；左缘用遮罩渐隐进卡片底色（底色就是插画自己的平涂背景，所以接得上）。
   4:3 插画用 --art-x:-12px / --art-y:-96px，1:1 插画用 10px / -100px，由生成器按图写入 */
.mega__card-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 66%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36%);
  mask-image: linear-gradient(90deg, transparent 0, #000 36%);
}
.mega__card-art img {
  position: absolute;
  right: var(--art-x, -12px);
  top: var(--art-y, -96px);
  height: var(--art-h, 250px);
  width: auto;
  max-width: none;
  transform-origin: 70% 70%;
  transition: transform 0.6s var(--ease);
}
.mega__card:hover .mega__card-art img { transform: scale(1.04); }
.mega__card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 18px 16px;
}
/* 标题 / 副文都只占左侧平涂区（≤54%），折行用 text-wrap: balance 均分，避免末行只剩一个字 */
.mega__card b { font-size: 15px; font-weight: 600; line-height: 22px; text-wrap: balance; }
.mega__card em {
  margin-top: 3px;
  max-width: 54%;
  text-wrap: balance;
  font-style: normal;
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
  opacity: 0.78;
}
.mega__pill {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--pill-bg, var(--ink));
  color: var(--pill-fg, #fff);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.mega__card:hover .mega__pill { background: var(--violet); color: #fff; }

/* ---------- 入场：逐项上浮淡入 ----------
   节奏取自 growthman.cn 实测：translateY(8px→0) + opacity，.4s，同列每项 delay 递增 50ms。
   data-in 由 JS 在面板 display 生效后的下一帧写入。
   卡片与横幅只做 opacity（它们的 transform 留给 hover 用） */
.mega__intro > *,
.mega__col > * {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s var(--ease) var(--stagger, 0s),
    transform 0.4s var(--ease) var(--stagger, 0s),
    background-color 0.25s var(--ease);
}
.mega__strip { opacity: 0; transition: opacity 0.45s var(--ease) 0.2s, filter 0.3s var(--ease); }
.mega__card {
  opacity: 0;
  transition:
    opacity 0.45s var(--ease) var(--stagger, 0.05s),
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.mega[data-in] .mega__intro > *,
.mega[data-in] .mega__col > * { opacity: 1; transform: none; }
.mega[data-in] .mega__strip,
.mega[data-in] .mega__card { opacity: 1; }

.mega__intro > :nth-child(2), .mega__col > :nth-child(2) { --stagger: 0.05s; }
.mega__intro > :nth-child(3), .mega__col > :nth-child(3) { --stagger: 0.1s; }
.mega__intro > :nth-child(4), .mega__col > :nth-child(4) { --stagger: 0.15s; }
.mega__intro > :nth-child(5), .mega__col > :nth-child(5) { --stagger: 0.2s; }
.mega__col > :nth-child(6) { --stagger: 0.25s; }
.mega__aside > :nth-child(2) { --stagger: 0.15s; }

/* ---------- 断点 ----------
   三分区满配（简介 340 + 三列 + 卡 280）要 1440 才放得下；
   1320–1439 紧凑版（简介 300 / 卡 250 / 14px 行）；1180–1319 再收起简介区，保住插画卡
   （1280 实测：简介 + 三列 + 卡同时在场时列宽只有 173，「HMI 设计开发 自研」会被省略号截断） */
@media (max-width: 1439px) {
  .mega__intro { width: 300px; padding-right: 24px; }
  .mega__aside { width: calc(250px + 24px + var(--pad)); padding-left: 24px; }
  .mega__main { padding: 26px 30px; }
  .mega__cols { gap: 20px; }
  .mega__link { font-size: 14px; gap: 10px; }
  .mega__ico { width: 30px; height: 30px; }
  .mega__stats dt { font-size: 20px; }
  .mega__strip-sub { display: none; }
  .mega__card em { max-width: 52%; }
}
@media (max-width: 1319px) {
  .mega__intro { display: none; }
  .mega__main { padding-left: calc(var(--pad) + 4px); }
}
/* 中屏：简介与资源位让位，只留链接区 + 横幅 */
@media (max-width: 1180px) {
  .mega__intro, .mega__aside { display: none; }
  .mega__main { padding: 22px 0 26px; }
}
@media (max-width: 760px) {
  .mega__cols { flex-direction: column; gap: 10px; }
  .mega__col { flex: 0 0 auto; width: 100%; }
  .mega__main { padding: 14px 0 22px; gap: 16px; }
  .mega__link { height: 42px; }
  .mega__strip { min-height: 48px; padding-inline: 12px; }
  .mega__strip b { font-size: 13px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .header-main__container,
  .header-main__container::before,
  .header-main__overlay,
  .nav-main,
  .nav-main__link::before,
  .mega__box,
  .mega__link,
  .mega__ico,
  .mega__chev,
  .mega__cta i,
  .mega__card,
  .mega__card-art img,
  .mega__pill,
  .mega__strip,
  .mega__strip-go svg,
  .mega__intro > *,
  .mega__col > *,
  .cta,
  .cta__fill,
  .cta__dot,
  .cta__dot svg,
  .nav-main__pill,
  .nav-main__t,
  .nav-main__badge,
  .search-form,
  .search-form svg { transition: none; }
  .cta__dot::before,
  .nav-main__badge,
  .nav-main__faces > span { animation: none; }
  /* 关掉入场位移后必须把内容还原成可见，否则面板会是空的 */
  .mega__box,
  .mega__intro > *,
  .mega__col > *,
  .mega__strip,
  .mega__card { opacity: 1; transform: none; }
}

/* 挤一挤（2026-09-17）：加了第六项「伙伴招募」之后，1101–1279 这一段导航 + 搜索 + 语言 + CTA
   会把药丸挤出右边（1101 实测溢出 53px）。这一档里项距收到 10、「全国」小标收起来，
   六项就都还能站住；1280 以上不受影响，1100 以下本来就换汉堡。 */
@media (max-width: 1279px) and (min-width: 1101px) {
  .nav-main__link { padding: 0 10px; }
  .nav-main__badge--lime { display: none; }
}

/* 中屏：导航收起，改用汉堡（参考站在窄屏同样隐藏文字导航） */
@media (max-width: 1100px) {
  .header-main__hamburger { display: flex; }
  .nav-main { display: none; }
  .header-main__logo { margin-left: 4px; }
}

/* 实测：≤760 参考站顶栏满幅贴边、无圆角 */
@media (max-width: 760px) {
  .mega {
    /* 满幅已由基础规则的 left/right 负偏移完成；这里再叠一次 margin-inline
       会让面板整体左移一个 --pad（390 下实测 left:-16、宽 422，右侧溢出被
       html{overflow-x:clip} 吃掉，肉眼看是内容对不齐页面栏距）。 */
    padding: 0 var(--pad) 12px;
    border-radius: 0;
  }
  .mega__inner { flex-direction: column; gap: 8px; }
  .mega__nav { width: auto; flex-direction: row; overflow-x: auto; gap: 4px; }
  .mega__tab { flex: none; }
  :root { --header-h: 62px; }
  .header-main__logo img { height: 26px; }
  /* 窄屏：平时只剩一颗 40px 的放大镜圆钮（给右侧的语言切换与 CTA 让位），点它聚焦即撑满汉堡与 CTA 之间；
     flex-grow 可插值，所以用它做展开动画而不是 width:auto（aw.js 里点表单任意处都会聚焦输入框） */
  .search-form {
    flex: 0 0 40px;
    width: auto;
    margin: 0 6px 0 auto;
    padding: 0 13px;
    gap: 0;
    transition: flex-grow 0.45s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }
  .search-form input { width: 0; opacity: 0; }
  .search-form:focus-within,
  .search-form.is-filled { flex: 1 1 40px; padding: 0 14px; gap: 10px; }
  .search-form:focus-within input,
  .search-form.is-filled input { width: 100%; opacity: 1; }
  /* 打字时把版面让给搜索框：标志与语言切换暂时收起（失焦且框里没字后自动回来），
     否则 390 宽下搜索框撑开也只有 90px */
  .header-main:has(.search-form:focus-within, .search-form.is-filled) .header-main__logo,
  .header-main:has(.search-form:focus-within, .search-form.is-filled) .lang-pick { display: none; }
  /* 顶栏 CTA 收窄：36px 药丸 / 22px 圆点，圆点仍与圆端同心（right 7 + 半径 11 = 18） */
  .cta { height: 36px; padding: 0 7px 0 14px; gap: 8px; }
  .cta__fill, .cta__dot { width: 22px; height: 22px; }
  .cta__fill { right: 7px; margin-top: -11px; }
}

/* ============================================================
   区块
   ============================================================ */
.sec { margin-top: var(--sec-gap); }

.sec__label { font-size: 14px; font-weight: 400; line-height: 28px; }

.sec__display { margin: 2px 0 28px; }

.sec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 2px 0 28px;
}
.sec__head .heading-5 { max-width: 20ch; }

.sec__more { margin-top: 30px; }

/* ============================================================
   本期精选（Site of the Day 位）
   ============================================================ */
.sotd { margin-top: 52px; text-align: center; }

.sotd__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--mut);
}
.sotd__meta b { color: var(--ink); font-weight: 500; }
.sotd__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--mut-2); }

.sotd__title { margin: 24px 0 22px; }

.sotd__by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.avatar-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 400;
}
.avatar-name span { border-bottom: 1px solid var(--line); }

.circle-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grey);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--mut-2);
  flex: none;
  overflow: hidden;
}
.circle-avatar--52 { width: 52px; height: 52px; font-size: 13px; }

.sotd__stage {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--grey);
}

/* ============================================================
   栅格
   ============================================================ */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap-x);
  row-gap: var(--gap-y);
}

.grid-cards--full { grid-template-columns: 1fr; }

/* 实测：≥1500 参考站升到 3 列 */
@media (min-width: 1500px) {
  .grid-cards--3up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.grid-courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-x);
}

.grid-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-x);
}

@media (max-width: 860px) {
  .grid-cards,
  .grid-courses,
  .grid-directory { grid-template-columns: 1fr; }
}

/* ============================================================
   卡片 A · figure-rollover（作品卡）
   图 4:3 圆角 14 + 下方元信息行
   ============================================================ */
.card-slide { display: flex; flex-direction: column; gap: 0; }   /* 实测参考站图文之间无间隙，靠行高撑开 */

.figure-rollover {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--grey);
  isolation: isolate;
}

.figure-rollover__file,
.slot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--grey);
  color: var(--mut-2);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 12px;
}

.figure-rollover__hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(34, 34, 34, 0.55);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.card-slide:hover .figure-rollover__hover,
.card-slide:focus-within .figure-rollover__hover { opacity: 1; }

.figure-rollover__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.9);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 18px;
}

.figure-rollover__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;    /* 标题 28 + 副信息 28，与参考站一致 */
}

/* 实测参考站 card-slide__data：14px / 300 / lh 28 / 实色 #222 */
.figure-rollover__left small {
  display: block;
  font-size: 14px;
  font-weight: 300;
  line-height: 28px;
  color: var(--ink);
}

.figure-rollover__bts { display: flex; gap: 10px; padding-top: 20px; flex: none; }

.figure-rollover__bt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}
.figure-rollover__bt:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .figure-rollover__hover { transition: none; }
}

/* ============================================================
   卡片 B · card-course（课程 / 文章卡）
   图 4:3 + 内容区 + 页脚双行
   ============================================================ */
.card-course {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 0.5px var(--line);
  overflow: hidden;
}

.card-course__figure {
  aspect-ratio: 4 / 3;
  background: var(--grey);
}

.card-course__content { padding: 22px 24px 4px; }

.card-course__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.012em;
}

.card-course__footer {
  padding: 16px 24px 22px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-course__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 0.5px solid var(--line);
}

.card-course__row strong { font-size: 15px; font-weight: 600; }
.card-course__row span { font-size: 15px; font-weight: 300; color: var(--mut); }

.box-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-ui);
  box-shadow: inset 0 0 0 0.5px var(--line);
  font-size: 12.6px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   卡片 C · card-directory-sp（机构名录卡）
   52px 圆头像 + 缩略图条
   ============================================================ */
.card-directory-sp {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 0.5px var(--line);
}

.card-directory-sp__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card-directory-sp__title { font-size: 20px; font-weight: 600; line-height: 26px; }

.card-directory-sp__right { margin-left: auto; flex: none; }

.card-directory-sp__strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.card-directory-sp__strip .slot {
  aspect-ratio: 5 / 4;
  border-radius: var(--r-ui);
}

/* ============================================================
   box-table（名录下方的数据表）
   ============================================================ */
.box-table {
  margin-top: var(--gap-y);
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 0.5px var(--line);
  overflow: hidden;
}

.box-table__row {
  display: grid;
  grid-template-columns: 44px 1fr 160px auto;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-top: 0.5px solid var(--line);
}
.box-table__row:first-child { border-top: 0; }

.box-table__row--head {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut-2);
  padding-block: 12px;
}

.box-table__n {
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--mut-2);
}

.box-table__name { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.box-table__v { font-size: 13px; font-weight: 300; color: var(--mut); }
.box-table__score { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* 说明列为长句时的变体：名称定宽，说明吃掉剩余宽度。
   基础模板（44px 1fr 160px auto）是为参考站那种「短数值」表设计的，
   直接套中文整句会把说明挤成 3 行窄条。 */
.box-table--desc .box-table__row { grid-template-columns: 44px 132px minmax(0, 1fr) 132px; }
.box-table--desc .box-table__v { line-height: 22px; }
.box-table--desc .box-table__score {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--mut-2);
}

@media (max-width: 700px) {
  .box-table__row { grid-template-columns: 32px 1fr auto; gap: 12px; padding: 14px 16px; }
  .box-table__v { display: none; }
}

/* ============================================================
   推荐位 card-recommendation（底部 CTA）
   左内容 290 宽 + 右满幅背景图
   ============================================================ */
.card-recommendation {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: var(--gap-x);
  align-items: center;
  min-height: 491px;
  padding: 44px;
  border-radius: var(--r-card);
  background: var(--grey);
  overflow: hidden;
}

.card-recommendation__content { display: flex; flex-direction: column; gap: 18px; max-width: 340px; }
.card-recommendation__content > p { font-size: 14px; font-weight: 300; color: var(--mut); }
.card-recommendation__content .button { align-self: flex-start; }

.card-recommendation__bg {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-ui);
  background: var(--grey-2);
  overflow: hidden;
}

.card-recommendation__footer {
  position: absolute;
  left: 44px;
  bottom: 30px;
  display: flex;
  gap: 18px;
}

@media (max-width: 860px) {
  .card-recommendation {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px;
  }
  .card-recommendation__footer { position: static; margin-top: 8px; }
}

/* ============================================================
   页脚
   v9 · 2026-09-05 重做。结构自上而下：
     跑马灯   服务 × 行业两组词条，青柠圆点分隔，匀速左移、悬停暂停；轨道份数由 aw.js「页脚跑马灯」段按容器宽补足
     头行     中文横式标识 + 页脚版药丸 CTA（顶栏同一套 .cta 放大到 48 / 28 圆点，涟漪 + 磁性吸附照旧）
     主体     4 / 5 / 3 三栏：品牌与双引擎 · 站点索引（四行发丝线表）· 联系卡（白卡，大号座机）
     字标     满幅字标 INTERFACE ⇄ SAVEHMI 轮换 + 青柠标识作句点：字号 = 容器宽 ÷ 行总宽（逐字实测，见下），
              用 cqw 量容器而不是 vw，滚动条宽度不会把最后一个字母挤出去；滚到视口时从下方升起，之后逐字换词并荡色浪
     版权     公司全称 + 皖 ICP 备案号 · 回到顶部
   色彩只在青柠圆点 / 标识 / 招聘标签 / hover 下划线上爆发，紫罗兰给双引擎图标格，其余仍是墨与灰。
   标记由 tools/build-footer.py 生成。
   ============================================================ */
.footer {
  margin-top: var(--sec-gap);
  padding-bottom: 40px;
  /* 页脚次级文字只用这两档，比全站 --mut(.56) / --mut-2(.38) 深一截：
     小字号落在白卡与浅灰底上，38% 的灰用户反馈「看不清」（2026-09-05 晚），
     所以这里链接 / 说明 / 次要号码走 .74，眉题 / 字段名 / 版权走 .62。 */
  --f-sub: rgba(34, 34, 34, 0.74);
  --f-label: rgba(34, 34, 34, 0.62);
}

/* ---------- 跑马灯 ---------- */
.footer__mq { border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); }

.mq {
  display: flex;
  height: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.mq__t {
  display: flex;
  align-items: center;
  flex: none;
  gap: 22px;
  padding-right: 22px;
  animation: mq-run 64s linear infinite;
}
.mq:hover .mq__t { animation-play-state: paused; }
.mq__t a,
.mq__k {
  flex: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}
.mq__t a { color: var(--f-sub); transition: color 0.25s var(--ease); }
.mq__t a:hover { color: var(--ink); }
.mq__k {
  margin-right: -6px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--grey);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  line-height: 20px;
}
.mq__t i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@keyframes mq-run { to { transform: translateX(-100%); } }
.no-js .mq__t { animation: none; }

/* ---------- 头行：标识 + CTA ---------- */
.footer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 56px;
}
/* 标识 PNG 四周带透明留白：48px 盒高实际可见约 29px；左移 6px 让可见边缘贴齐容器 */
.footer__logo { display: flex; align-items: center; }
.footer__logo img { height: 48px; width: auto; margin-left: -6px; }

/* 页脚版药丸：比顶栏大一号（48 高 / 28 圆点），圆点仍与圆端同心（right 10 + 半径 14 = 24） */
.cta--lg { height: 48px; padding: 0 10px 0 22px; gap: 12px; font-size: 15px; }
.cta--lg .cta__fill,
.cta--lg .cta__dot { width: 28px; height: 28px; }
.cta--lg .cta__fill { right: 10px; margin-top: -14px; }
.cta--lg:hover .cta__fill,
.cta--lg:focus-visible .cta__fill { transform: scale(12); }
.cta--lg .cta__dot svg { width: 12px; height: 12px; }

/* ---------- 主体三栏 ---------- */
.footer__body {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 40px 48px;
  margin-top: 48px;
}

/* 品牌与双引擎 */
.footer__slogan {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.footer__blurb {
  margin-top: 12px;
  max-width: 30em;
  font-size: 14px;
  font-weight: 300;
  line-height: 24px;
  color: var(--f-sub);
}
.footer__engines { margin-top: 26px; border-top: 0.5px solid var(--line); }
.footer__engine {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 0.5px solid var(--line);
}
.footer__engine > span { flex: 1; min-width: 0; }
.footer__engine b { display: block; font-size: 15px; font-weight: 600; line-height: 20px; }
.footer__engine small { display: block; font-size: 13px; font-weight: 400; line-height: 18px; color: var(--f-sub); }
.footer__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--card);
  color: var(--violet);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.footer__ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer__ico svg[fill="currentColor"] { width: 20px; height: 12px; fill: currentColor; stroke: none; }
.footer__chev {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}
.footer__engine:hover .footer__ico { background: var(--violet); color: #fff; box-shadow: none; }
.footer__engine:hover .footer__chev { opacity: 1; transform: none; }

/* 站点索引：四行发丝线表，行名 + 可换行的链接流 */
.footer__index { border-top: 0.5px solid var(--line); }
.footer__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 17px 0;
  border-bottom: 0.5px solid var(--line);
}
.footer__key { font-size: 18px; font-weight: 600; line-height: 24px; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}
.footer__links a {
  color: var(--f-sub);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}
.footer__links a:hover { color: var(--ink); text-decoration-color: var(--accent); }
.footer__links .is-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-weight: 500;
}
.footer__links .is-more svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.footer__links .is-more:hover svg { transform: translate(2px, -2px); }
.footer__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  font-style: normal;
  line-height: 16px;
  vertical-align: 2px;
  text-decoration: none;
}

/* 联系卡 */
.footer__contact {
  font-style: normal;
  padding: 22px 24px 20px;
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: inset 0 0 0 0.5px var(--line);
}
.footer__eyebrow {
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--f-label);
}
.footer__tel {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s var(--ease);
}
.footer__tel:hover { color: var(--violet); }
.footer__tel2 {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--f-sub);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s var(--ease);
}
.footer__tel2:hover { color: var(--ink); }
.footer__mails {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 0.5px solid var(--line);
}
.footer__mails div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 20px;
}
.footer__mails span { flex: none; color: var(--f-label); }
.footer__mails a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.footer__mails a:hover { color: var(--violet); }
.footer__addr {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 0.5px solid var(--line);
  font-size: 13px;
  line-height: 20px;
}
.footer__addr span { display: block; color: var(--f-label); }
.footer__addr b { display: block; margin-top: 2px; font-weight: 400; color: var(--ink); }

/* ---------- 满幅字标 · INTERFACE ⇄ SAVEHMI ----------
   两个词各占一行、叠在同一个网格格子里底边对齐，各自把容器宽度占满：
     字号 = 100cqw ÷ 行总宽（行上的 --r，由 build-footer.py 的 WORDS 写入）
   所以 SAVEHMI 亮相时字号比 INTERFACE 大 16%；格子高度取较高的那一行，换词时版面不跳
   （代价是 INTERFACE 亮相时上方多出一段空白，margin-top 已按此调过）。
   动效三层，都只在字标滚进视口后才跑：
     换词   逐字上滚——旧词从上方滚出、新词从下方滚入，每字错开 32ms（aw.js「页脚字标」段定时）
     色浪   逐字 墨 → 紫罗兰 → 墨，每字错开 90ms，一轮 4.6s 内荡两次
     句点   青柠标识排在色浪最后一位，浪到时向左舒张一下（不换色：青柠转紫罗兰中途会经过脏绿）
   ---------------------------------------------------------- */
.footer__mark {
  container-type: inline-size;
  margin-top: 52px;
  overflow: hidden;
}
.footer__mark-in {
  display: grid;                       /* 两行同格：行高自动取较高的一行 */
  align-items: end;
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: normal;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
}
.footer__line {
  grid-area: 1 / 1;
  display: flex;
  align-items: flex-end;
  gap: 0.12em;
  font-size: calc(100cqw / var(--r, 6.432));
}
.footer__w { flex: none; display: block; }
.footer__ch { display: inline-block; font-weight: inherit; vertical-align: baseline; }
.footer__dot { flex: none; display: block; width: 1.05em; height: 0.62em; margin-bottom: 0.02em; color: var(--accent); }
.footer__dot svg { display: block; width: 100%; height: 100%; }

/* 三态：等待（停在下方）· 在场 · 退场（滚向上方）。逐字延时按 --dl：字母用序号、句点排在末位。
   进退两侧的过渡分开写：退场的透明只用 0.18s 抹掉，新词才不会和旧词叠着发糊；入场的淡入放慢到 0.44s。 */
.footer__ch { --dl: var(--i, 0); }
.footer__dot { --dl: var(--n, 9); }
.footer__ch,
.footer__dot {
  opacity: 0;
  transform: translateY(0.42em);
  transition: transform 0.5s var(--ease) calc(var(--dl) * 34ms), opacity 0.18s linear calc(var(--dl) * 34ms);
}
.footer__line.is-on .footer__ch,
.footer__line.is-on .footer__dot {
  opacity: 1;
  transform: none;
  transition: transform 0.62s var(--ease) calc(var(--dl) * 34ms), opacity 0.44s linear calc(var(--dl) * 34ms);
}
.footer__line.is-out .footer__ch,
.footer__line.is-out .footer__dot { opacity: 0; transform: translateY(-0.42em); }
/* 退场结束后无声复位到「等待」，别让它带着过渡从上方滑回下方 */
.footer__line.is-jump .footer__ch,
.footer__line.is-jump .footer__dot { transition: none; }

/* 色浪：只给在场的那一行，且要等整块滚进视口。字母荡墨 → 紫罗兰，句点不换色（青柠转紫罗兰中途会发脏绿），
   改成被浪推一下的横向轻微舒张，原点靠右不会被容器裁掉。 */
.footer__mark-in.is-in .footer__line.is-on .footer__ch {
  animation: mk-wave 4.6s linear infinite;
  animation-delay: calc(var(--i) * 90ms);
}
.footer__mark-in.is-in .footer__line.is-on .footer__dot {
  transform-origin: right center;
  animation: mk-dot 4.6s linear infinite;
  animation-delay: calc(var(--n) * 90ms);
}
@keyframes mk-wave {
  0%   { color: var(--ink); translate: 0 0; }
  6%   { color: var(--violet); translate: 0 -0.016em; }
  16%  { color: var(--ink); translate: 0 0; }
  54%  { color: var(--ink); translate: 0 0; }
  60%  { color: var(--violet); translate: 0 -0.016em; }
  70%  { color: var(--ink); translate: 0 0; }
  100% { color: var(--ink); translate: 0 0; }
}
@keyframes mk-dot {
  0%   { scale: 1 1; }
  6%   { scale: 1.07 1.04; }
  16%  { scale: 1 1; }
  54%  { scale: 1 1; }
  60%  { scale: 1.07 1.04; }
  70%  { scale: 1 1; }
  100% { scale: 1 1; }
}

.footer__mark-in[data-reveal] {
  transform: translateY(45%);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
}
.footer__mark-in[data-reveal].is-in { transform: none; }
/* 无 JS：只亮出标记里带 is-on 的第一个词，另一个词必须留在等待态，否则两个词会叠成一团 */
.no-js .footer__line.is-on .footer__ch,
.no-js .footer__line.is-on .footer__dot { opacity: 1; transform: none; }

/* ---------- 版权行 ---------- */
.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 0.5px solid var(--line);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  color: var(--f-label);
}
.footer__legal p { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer__legal b { font-weight: 400; }
.footer__legal a { transition: color 0.25s var(--ease); }
.footer__legal a:hover { color: var(--ink); }
.footer__up { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: var(--f-sub); }
.footer__up svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.footer__up:hover { color: var(--ink); }
.footer__up:hover svg { transform: translateY(-2px); }

/* ---------- 响应 ---------- */
@media (max-width: 1279px) {
  .footer__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 40px; }
  .footer__contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .footer__mails,
  .footer__addr { margin-top: 0; padding-top: 0; padding-left: 24px; border-top: 0; border-left: 0.5px solid var(--line); }
}

@media (max-width: 860px) {
  .footer__body { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer__contact { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer__mails,
  .footer__addr { padding-left: 0; border-left: 0; border-top: 0.5px solid var(--line); }
  .footer__mails { margin-top: 18px; padding-top: 16px; }
  .footer__addr { margin-top: 16px; padding-top: 14px; }
  .footer__row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 0; }
}

@media (max-width: 760px) {
  .footer { padding-bottom: 32px; }
  .mq { height: 48px; }
  .footer__head { padding-top: 40px; }
  .footer__logo img { height: 40px; margin-left: -5px; }
  .cta--lg { height: 40px; padding: 0 8px 0 18px; gap: 10px; font-size: 14px; }
  .cta--lg .cta__fill,
  .cta--lg .cta__dot { width: 24px; height: 24px; }
  .cta--lg .cta__fill { right: 8px; margin-top: -12px; }
  .footer__body { margin-top: 36px; }
  .footer__slogan { font-size: 22px; }
  .footer__mark { margin-top: 48px; }
  .footer__legal { flex-direction: column; align-items: flex-start; margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .mq__t { animation: none; }
  .footer__mark-in[data-reveal] { transform: none; transition: none; }
  .footer__ch,
  .footer__dot { animation: none !important; transition: none; }
  .footer__line.is-on .footer__ch,
  .footer__line.is-on .footer__dot { opacity: 1; transform: none; }
  .footer__chev,
  .footer__links .is-more svg,
  .footer__up svg { transition: none; }
}

/* ============================================================
   滚动进场
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ============================================================
   真实媒体（替代原先的灰色占位槽 .slot）
   封面为英特费斯自有的内联 SVG 作品图，铺满 4:3 / 16:10 画框
   ============================================================ */
.cover-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.figure-rollover .cover-art,
.sotd__stage .cover-art,
.card-course__figure .cover-art,
.card-recommendation__bg .cover-art { border-radius: inherit; }

.card-course__figure { overflow: hidden; }

/* 深色作品图上的徽标改用浅色描边胶囊 */
.figure-rollover__badge {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(2px);
}

/* ============================================================
   品牌标志
   ============================================================ */
.brand-mark { display: flex; align-items: center; }
.brand-mark img { height: 30px; width: auto; }

/* ============================================================
   数据条（真实经营数据：12+ 年 / 200+ 项目 / 60+ 伙伴 / 2 引擎）
   ============================================================ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-x);
  border-top: 0.5px solid var(--line);
  margin-top: 30px;
  padding-top: 24px;
}

/* 用直接子选择器：否则 <b> 内部的数字 <span> 会被下面的 13px 规则吃掉 */
.stat-row__cell > b {
  display: block;
  font-size: clamp(30px, 3.1vw, 46px);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-row__cell > b i { font-style: normal; color: var(--violet); }
.stat-row__cell > span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 300;
  line-height: 20px;
  color: var(--mut);
}

@media (max-width: 760px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
}

/* ============================================================
   双引擎面板（色彩爆发区 · SAVEHMI 紫 / RISEMAP 青柠）
   ============================================================ */
.grid-engines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap-x);
  row-gap: var(--gap-y);
}

.engine {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 460px;
}

.engine--violet { background: linear-gradient(150deg, #e7e4ff 0%, #f3e9ff 46%, #ffeef4 100%); }
.engine--lime   { background: linear-gradient(150deg, #eef8c4 0%, #dff36a 58%, #d9f24f 100%); }

.engine__tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.72);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 18px;
  text-transform: uppercase;
}

.engine__title { font-size: 28px; font-weight: 600; line-height: 1.24; }
.engine__title small {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(34, 34, 34, 0.5);
}
.engine__desc { font-size: 15px; font-weight: 300; line-height: 26px; color: rgba(34, 34, 34, 0.72); max-width: 34ch; }

.engine__shot {
  margin-top: auto;
  border-radius: var(--r-ui);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink);
}
.engine__shot svg { width: 100%; height: 100%; display: block; }

@media (max-width: 860px) {
  .grid-engines { grid-template-columns: 1fr; }
  .engine { min-height: 0; padding: 24px; }
}

/* ============================================================
   服务清单行（可折叠为移动端卡）
   ============================================================ */
.svc-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-top: 0.5px solid var(--line);
  transition: background-color 0.3s var(--ease), padding-inline 0.3s var(--ease);
}
.svc-row:last-child { border-bottom: 0.5px solid var(--line); }
.svc-row:hover { background: rgba(34, 34, 34, 0.03); padding-inline: 16px; }

.svc-row__n { font-family: var(--mono); font-size: 13px; color: var(--mut-2); }
.svc-row__title { font-size: 20.6px; font-weight: 500; line-height: 24.8px; }
.svc-row__title small {
  display: block; margin-top: 2px;
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.08em; color: var(--mut-2); text-transform: uppercase;
}
.svc-row__desc { font-size: 14px; font-weight: 300; line-height: 24px; color: var(--mut); }
.svc-row__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.pill {
  padding: 2px 10px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 400;
  line-height: 20px;
  color: var(--mut);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .svc-row { grid-template-columns: 40px minmax(0, 1fr); row-gap: 10px; padding: 22px 0; }
  .svc-row__desc { grid-column: 2; }
  .svc-row__tags { grid-column: 2; justify-content: flex-start; }
  .svc-row:hover { padding-inline: 0; background: none; }
}

/* ============================================================
   动态列表（时间 · 标题 · 分类）
   ============================================================ */
.news-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-top: 0.5px solid var(--line);
  transition: background-color 0.3s var(--ease), padding-inline 0.3s var(--ease);
}
.news-row:last-child { border-bottom: 0.5px solid var(--line); }
.news-row:hover { background: rgba(34, 34, 34, 0.03); padding-inline: 16px; }
.news-row__date { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--mut-2); }
.news-row__title { font-size: 18px; font-weight: 500; line-height: 26px; }
.news-row__cat {
  font-size: 11px; font-weight: 400; line-height: 20px; color: var(--mut);
  border: 0.5px solid var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}

@media (max-width: 700px) {
  .news-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .news-row__date { grid-column: 1 / -1; }
  .news-row:hover { padding-inline: 0; background: none; }
}

/* ============================================================
   首屏 · 满屏视频（形态取自 growthman.cn 实测）
     .banner 高 = 100vh · video object-fit:cover · autoplay/loop/muted/playsinline
     文案块左对齐，距顶 41%；h1→副标 15px；副标→提示 31px
   本站改动：
     1. 加了左侧压暗 scrim——参考站靠片子本身是灰调保证可读性，
        我们的片子未知，必须自己保证文字对比度
     2. 字阶沿用本站 awwwards 体系，不照搬参考站的 48px
   ============================================================ */
.hero {
  position: relative;
  /* 顶栏浮在视频之上：把首屏上提到页面顶端 */
  margin-top: calc(-1 * (var(--header-h) + 8px));
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  /* 深色底：海报/视频还没解码出来时先垫住，别闪一下亮底 */
  background: #0e1014;
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

/* 无视频时显示自有作品图；视频就绪后 JS 加 is-playing 淡出这一层 */
.hero__poster { transition: opacity 0.8s var(--ease); }
.hero.is-playing .hero__poster { opacity: 0; }

.hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s var(--ease); }
.hero.is-playing .hero__video { opacity: 1; }

/* 2026-09-06 二版：调色烤进片子本身了，这里不再叠 filter。
   一版是「片子直出 + CSS 里 saturate/contrast/brightness」，有两个毛病：
   brightness() 是线性乘法，把高光直接顶到 255 冲掉；而且视频和海报要各自对参数，
   稍不同步淡入那 0.8 秒就跳色。现在统一在 tools/build-hero-video.sh 里用
   eq=gamma=1.52:saturation=0.32 从 10bit 源片转出来，海报也是从成片抽的第一帧，
   天生同色，满屏视频还少一层每帧 GPU 滤镜。
   要改色调就去改那个脚本重转，别在这里加 filter。 */

/* 压暗层二版：一版是整屏压到 80%，文字读得出来，但整屏亮度只剩 Y≈52
   （同一时刻参考站 growthman.cn 是 134），用户的原话是「很暗、黑」。
   现在改成只在文案那一块开一个「暗袋」：椭圆锚在左侧中段，出了文案区
   很快衰减到 0，画面右侧和大部分面积基本是片子本来的样子。
   实测整屏 Y=142，四行字在 5 个代表镜头上最差 4.26（巨标 AA 要 3.0，其余要 4.5）。
   四层从上到下：文案暗袋 / 顶栏收边 / 底边收边 / 整屏薄压兜最亮的镜头。
   动了这里就重量一遍：python3 tools/measure-hero.py "$(node tools/measure-hero.mjs)" */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* 椭圆心要压在文案块的中间：文案从 42%（引题）到 84%（案例提示），中点约 58%，
       不是标题的 46% —— 心放高了副标就掉出暗袋，正午天台那种亮镜头上只剩 3.8:1 看不清 */
    radial-gradient(ellipse 78% 76% at 2% 58%,
      rgba(10, 12, 16, 0.55) 0%,
      rgba(10, 12, 16, 0.47) 38%,
      rgba(10, 12, 16, 0.14) 72%,
      rgba(10, 12, 16, 0) 88%),
    linear-gradient(180deg, rgba(10, 12, 16, 0.18) 0%, rgba(10, 12, 16, 0) 18%),
    linear-gradient(0deg, rgba(10, 12, 16, 0.22) 0%, rgba(10, 12, 16, 0) 32%),
    linear-gradient(rgba(10, 12, 16, 0.06), rgba(10, 12, 16, 0.06));
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
}

/* 实测参考站文案块距首屏顶部 41% */
.hero__content {
  position: absolute;
  top: 41%;
  left: 0;
  right: 0;
  padding-inline: var(--pad);
  color: var(--ink);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
  color: var(--mut);
}
.hero__eyebrow .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--mut-2); }

/* 满屏视频上左对齐，用比站内巨标略收的一档，给副标和提示留出呼吸 */
.hero__title {
  font-size: clamp(36px, 6.2vw, 96px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

.hero__sub {
  margin-top: 15px;          /* 实测参考站 h1→副标 15px */
  max-width: 40ch;
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;         /* 实测 18/27 */
  color: var(--mut);
}

.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 31px;          /* 实测参考站 副标→提示 31px */
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: var(--ink);
}
.hero__cue i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  transition: transform 0.3s var(--ease);
}
.hero__cue:hover i { transform: translateY(3px); }

/* ---- 深色首屏的字色 ----
   实拍片铺满之后首屏是唯一一屏深色，文字整体翻白。
   想退回原来的「亮底 + 墨字」：把这一块和上面的 .hero__scrim 一起换回浅色即可，
   结构和字阶都不用动。青柠圆点在深色上更亮，保持原样。 */
/* 压暗层放轻之后，文字得自己扛一点：每条都是「一层贴边的硬阴影 + 一层很散的软阴影」。
   软的那层等于在字周围开一小块局部压暗，只影响字，不会像整屏压暗那样把画面拉灰；
   硬的那层给笔画收边，中文细横在亮镜头上不至于断掉。
   副标从 0.8 提到 0.94 —— 0.8 的白叠在最亮的镜头上只有 3.8:1，看不清。 */
.hero__eyebrow {
  /* 0.86 在正午天台那个全白天花板的镜头上只有 3.8:1，提到 0.95 才过 AA */
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(8, 10, 14, 0.45), 0 0 16px rgba(8, 10, 14, 0.55);
}
.hero__eyebrow .sep { background: rgba(255, 255, 255, 0.5); }
.hero__title {
  color: #fff;
  text-shadow: 0 1px 2px rgba(8, 10, 14, 0.3), 0 2px 44px rgba(8, 10, 14, 0.5);
}
.hero__sub {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 2px rgba(8, 10, 14, 0.4), 0 0 20px rgba(8, 10, 14, 0.55);
}
.hero__cue {
  color: #fff;
  text-shadow: 0 1px 2px rgba(8, 10, 14, 0.4), 0 0 18px rgba(8, 10, 14, 0.5);
}
/* 青柠圆钮本身是实色块，别让上面那行的阴影落到箭头上 */
.hero__cue i { text-shadow: none; }

/* 顶栏：首页页顶原本是透明的（让片子通到顶），但片子一深，墨色菜单字就读不出来了。
   这里让磨砂底在首页页顶就亮着 —— 深色画面透过 18px 模糊照样在动，
   滚起来之后 .is-scrolled 接管同一层，视觉上是连续的。
   :has(.hero) 只命中首页；其它页顶栏行为不变。 */
body:has(.hero) .header-main::before {
  opacity: 1;
  /* 往上多盖 8px：那是顶栏上方的呼吸位，不盖住就会在磨砂条和宣传条之间
     露出一条深色视频，看着像没对齐 */
  top: -8px;
}

@media (max-width: 760px) {
  .hero { height: 88svh; }
  .hero__content { top: 38%; }
  .hero__sub { font-size: 16px; line-height: 26px; }

  /* 窄屏必须换一套压暗层。桌面那个椭圆暗袋是照 16:9 调的：文案只占左边小半屏，
     右边整片画面留给片子。竖屏是 9:16，object-fit:cover 把片子裁到只剩中间一条，
     文案又几乎顶满整行宽——椭圆的横向衰减刚好落在文字上，实测最差只有 2.3:1。
     所以窄屏改成一条「横向铺满、纵向罩住文案」的带子：顶部 12% 以上不压，
     让画面透出来；文案那一段压到 ~0.5。实测整屏 Y=114，四行字最差 4.68。 */
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(10, 12, 16, 0.20) 0%, rgba(10, 12, 16, 0) 14%),
      linear-gradient(180deg,
        rgba(10, 12, 16, 0) 12%,
        rgba(10, 12, 16, 0.47) 33%,
        rgba(10, 12, 16, 0.50) 74%,
        rgba(10, 12, 16, 0.28) 92%,
        rgba(10, 12, 16, 0.22) 100%),
      linear-gradient(rgba(10, 12, 16, 0.06), rgba(10, 12, 16, 0.06));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__poster, .hero__video, .hero__cue i { transition: none; }
}

/* ============================================================
   目录式 3+4 布局 · 实测自 awwwards.com/directory/（1920）
     上排 .grid-dir-sp   3 列 × 587 · gap 20        · 卡 587×639
     下排 .grid-dir      4 列 × 435.25 · gap 30/20  · 卡 435×707
     1440 时分别退回 2 列（650.5）与 3 列（427），与参考站一致
   ============================================================ */
/* 三条业务线：只有 3 列和 1 列两种形态。
   原来 <1500 退 2 列，第三张卡单独占一行、右边空半个屏——三个一组的东西不能排两列。
   卡片 v2 的标题用 cqi 缩放，900px 起排三列也不会断行 */
.grid-dir-sp {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.grid-dir {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap-x);
  row-gap: var(--gap-y);
  margin-top: 20px;
}
@media (min-width: 1500px) {
  .grid-dir { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .grid-dir-sp { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid-dir { grid-template-columns: 1fr; }
}

/* ---------- 上排：三条业务线主卡 v2（2026-09-06 重做） ----------
   v1 的问题（用户截图指出「不够好」）：57.6px padding 的白卡里塞一张 283px 缩略图 +
   margin-top:auto 把文字压到底，中间空出近 200px 的白洞；50px 标题在 3 列宽下把
   「人机交互业务」断成两行、「装备企业数字化营销」断成两行，三张卡三个基线；
   「案例 25」描边方框浮在标题右边像个输入框；S / B / R 灰圆章没有信息量；
   末行又是「灰字 + 灰字」的四栏排版。

   v2 的结构：满幅彩图 → 标题 → 英文副题 → 数据行（两个数 + 箭头）。
   · 图从 283px 缩略图放大成满幅封面：那三张生成图本来就是平涂彩底 + 写实 3D 物件，
     当封面用色彩就成立了，白洞也被占满，卡高由内容决定、三张自然对齐
   · 标题用 cqi 跟着卡宽缩放，保证最长的「装备企业数字化营销」永远一行
   · 彩色只留小面积：图上的标签药丸、数据行的短彩线、hover 时的箭头底色
   · 卡身顶部一层由该卡色相淡淡渗下来的底色，把封面和白身连起来（不是色块）
   ---------------------------------------------------------------- */
.card-sp {
  --sp-b: var(--vb-lime-b, #e9f8ab);
  --sp-f: var(--vb-lime-f, #5b7a00);
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 0.5px var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.36s var(--ease), box-shadow 0.36s var(--ease);
}
.card-sp[data-c="lime"]   { --sp-b: var(--vb-lime-b, #e9f8ab);   --sp-f: var(--vb-lime-f, #5b7a00); }
.card-sp[data-c="coral"]  { --sp-b: var(--vb-coral-b, #ffeae8);  --sp-f: var(--vb-coral-f, #c4433a); }
.card-sp[data-c="violet"] { --sp-b: var(--vb-violet-b, #dfe3fa); --sp-f: var(--vb-violet-f, #4650b8); }

.card-sp:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 18px 40px -24px rgba(0, 0, 0, 0.28);
}

/* ---- 封面 ---- */
.card-sp__cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sp-b);
}
.card-sp__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.card-sp:hover .card-sp__cover img { transform: scale(1.035); }

/* 图上的标签药丸：原来那颗 S / B / R 灰圆章的位置，换成真正有信息的子品牌名 */
.card-sp__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 0 12px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--sp-f);
  font-size: 12px;
  font-weight: 500;
  line-height: 28px;
  white-space: nowrap;
}

/* ---- 文字区 ---- */
/* 文字区顶部让封面那点色相往下渗一小段再化白，把彩图和白身连起来（不是色块） */
.card-sp__body {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--sp-b) 62%, #fff) 0%,
      var(--card) clamp(96px, 34cqi, 168px));
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: clamp(22px, 6cqi, 34px);
}
.card-sp__txt { margin-bottom: clamp(22px, 7cqi, 40px); }
/* 字号跟着卡宽走：最长的「装备企业数字化营销」9 字在 2 列 / 3 列下都留得住一行 */
.card-sp__name {
  font-size: clamp(24px, 7.2cqi, 38px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
/* 切英文时藏掉：英文标题本身就是这行小字，两行叠在一起是重复 */
:root[data-lang="en"] .card-sp__en { display: none; }
.card-sp__en {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.06em;
  color: var(--mut);
}

/* ---- 数据行：两个数 + 箭头。取代原来「描边方框 + 一行灰字」 ---- */
.card-sp__stats {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 7cqi, 44px);
  /* 压到卡底：英文标题会占两行，靠 auto 让三张卡的数据行始终齐平
     （最小间距由 .card-sp__txt 的 margin-bottom 保底） */
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--grey-2);
}
/* 发丝线左端压一小段品牌色，hover 时横扫满整条 */
.card-sp__stats::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--sp-f);
  border-radius: 2px;
  transition: width 0.42s var(--ease);
}
.card-sp:hover .card-sp__stats::before { width: 96px; }

.card-sp__stat { display: flex; flex-direction: column; gap: 2px; }
.card-sp__stat b {
  font-size: clamp(26px, 8cqi, 38px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.card-sp__stat span {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 20px;
  color: var(--mut);
}

.card-sp__go {
  margin-left: auto;
  align-self: center;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.32s var(--ease), border-color 0.32s var(--ease),
              color 0.32s var(--ease), transform 0.32s var(--ease);
}
.card-sp__go svg { width: 16px; height: 16px; }
.card-sp:hover .card-sp__go {
  background: var(--sp-b);
  border-color: transparent;
  color: var(--sp-f);
  transform: translate(2px, -2px);
}

/* 单列时封面矮一点，别让一张图占满一屏 */
@media (max-width: 860px) {
  .card-sp__cover { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .card-sp,
  .card-sp__cover img,
  .card-sp__stats::before,
  .card-sp__go { transition: none; }
  .card-sp:hover { transform: none; }
  .card-sp:hover .card-sp__cover img { transform: none; }
  .card-sp:hover .card-sp__go { transform: none; }
}

/* ---------- 下排：白色目录卡（实测 bg #fff · radius 8 · cover 4:3） ---------- */
.card-dir {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-ui);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}
.card-dir:hover { transform: translateY(-4px); }

.card-dir__cover { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.card-dir__cover svg { width: 100%; height: 100%; display: block; }

/* 实测 header padding 30px · 名称 22/28/600 · 头像与名称 gap 11 */
.card-dir__head { display: flex; align-items: center; gap: 11px; padding: 30px; }
.card-dir__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grey);
  font-size: 11px;
  font-weight: 600;
  flex: none;
}
.card-dir__name { font-size: 22px; font-weight: 600; line-height: 28px; }

.card-dir__list { margin-top: auto; }
/* 实测行 padding 26px 30px · border-top 1px #ededed · 14px/300 */
.card-dir__row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 30px;
  border-top: 1px solid var(--grey-2);
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
}
.card-dir__row dt { width: 62px; flex: none; color: var(--mut); }
.card-dir__row dd { flex: 1 1 auto; min-width: 0; }
.card-dir__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-dir__tags span {
  padding: 2px 8px;
  border: 1px solid var(--grey-2);
  border-radius: var(--r-sm);
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
}

/* ============================================================
   品牌标识动态展示 · .markshow
   案例页收尾的品牌落款：把标识的三段半径、两条中心线和 21.5 的
   咬合缝一次画给读者看，构造层退场后只剩纯净的标识本身。
   几何全部来自品牌手册原始文件（S-SAVE HMI LOGO 无底），
   逐点复原：杠高 148 · 缝 21.5 · 错位 150 · 半径 122 / 90.25 / 57.75。
   ============================================================ */
.markshow {
  --mk-ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* 描边要像笔走纸上：起收都缓，中段匀速；mk-ease 太前重，一起步就冲过半 */
  --mk-draw: cubic-bezier(0.5, 0.02, 0.3, 1);
  position: relative;
  padding: clamp(26px, 3.2vw, 44px);
  border-radius: var(--r-card);
  background: var(--card);
  overflow: hidden;
}

.markshow__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: clamp(18px, 2.4vw, 32px);
  border-bottom: 0.5px solid var(--line);
}
.markshow__head .sec__label { margin: 0; }

.markshow__replay {
  flex: none;
  padding: 5px 12px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.markshow__replay:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.markshow__body {
  display: grid;
  gap: clamp(24px, 3vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
  padding-top: clamp(20px, 2.6vw, 34px);
}
@media (min-width: 900px) {
  .markshow__body { grid-template-columns: minmax(0, 1fr) minmax(0, 358px); }
}

.markshow__stage { min-width: 0; }
.markshow__svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- 构造层：网格 / 圆 / 尺寸 ---------- */
.mk-build { opacity: 0; }
.mk-grid line { stroke: var(--violet); stroke-width: 1; stroke-opacity: 0.3; vector-effect: non-scaling-stroke; }
.mk-cir {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1;
  stroke-opacity: 0.62;
  stroke-dasharray: 5 6;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.82);
}
.mk-cir--key { stroke: #97ad14; stroke-opacity: 1; stroke-width: 1.2; stroke-dasharray: 8 7; }
.mk-cross { stroke: var(--violet); stroke-width: 1; stroke-opacity: 0.6; opacity: 0; vector-effect: non-scaling-stroke; }
.mk-dim { stroke: #97ad14; stroke-width: 1; opacity: 0; vector-effect: non-scaling-stroke; }
.mk-dim-t {
  font-family: var(--mono);
  font-size: 13px;
  fill: #8a9c19;
  opacity: 0;
}

/* ---------- 标识本体 ---------- */
.mk-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--len, 2000);
  stroke-dashoffset: var(--len, 2000);
}
.mk-fill { fill: var(--ink); fill-opacity: 0; }

/* 咬合缝里扫过的一道青柠高光 */
.mk-seam {
  fill: var(--accent);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
}

/* ---------- 播放（进入视口 / 点重播时加 .is-lit） ----------
   时间轴（合计 3.6s）：
     0.00  构造层淡入
     0.14  六个圆心与构造圆依次落位
     0.72  咬合缝尺寸标注
     0.50  上杠描边 → 1.85
     0.84  下杠描边 → 2.19（错开一拍，像一笔一笔画）
     2.16  构造层退场
     2.19  灌墨；描边同时收掉，成品是纯净的实心形
     2.28  青柠高光扫过咬合缝
     2.50  右栏文字逐行上推
   ---------------------------------------------------------- */
.markshow.is-lit .mk-build { animation: mkBuild 3.6s linear forwards; }
.markshow.is-lit .mk-cir {
  animation: mkPop 0.62s var(--mk-ease) forwards;
  animation-delay: calc(0.14s + var(--i, 0) * 0.07s);
}
.markshow.is-lit .mk-cross {
  animation: mkFade 0.4s var(--mk-ease) forwards;
  animation-delay: calc(0.1s + var(--i, 0) * 0.07s);
}
.markshow.is-lit .mk-dim { animation: mkFade 0.5s var(--mk-ease) 0.72s forwards; }
.markshow.is-lit .mk-dim-t { animation: mkFade 0.5s var(--mk-ease) 0.82s forwards; }
/* 描边画完就交棒给填充：末尾把线收掉，成品是纯净的实心形 */
.markshow.is-lit .mk-line {
  animation: mkDraw 1.35s var(--mk-draw) forwards,
             mkLineOut 0.5s linear 2.3s forwards;
  animation-delay: calc(0.5s + var(--i, 0) * 0.34s), 2.3s;
}
.markshow.is-lit .mk-fill { animation: mkInk 0.7s var(--mk-ease) 2.19s forwards; }
.markshow.is-lit .mk-seam { animation: mkSeam 0.9s var(--mk-ease) 2.28s forwards; }

@keyframes mkBuild {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  60%  { opacity: 1; }
  70%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes mkPop {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes mkFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mkDraw {
  from { stroke-dashoffset: var(--len, 2000); }
  to   { stroke-dashoffset: 0; }
}
@keyframes mkInk {
  from { fill-opacity: 0; }
  to   { fill-opacity: 1; }
}
@keyframes mkLineOut { to { stroke-opacity: 0; } }
@keyframes mkSeam {
  0%   { opacity: 0; transform: scaleX(0); }
  22%  { opacity: 0.9; }
  55%  { opacity: 0.9; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

/* ---------- 右栏文字 ---------- */
.markshow__text { display: flex; flex-direction: column; gap: 18px; }
.markshow__text > * {
  opacity: 0;
  transform: translateY(14px);
}
.markshow.is-lit .markshow__text > * {
  animation: mkRise 0.8s var(--mk-ease) forwards;
  animation-delay: calc(2.5s + var(--i, 0) * 0.09s);
}
@keyframes mkRise {
  to { opacity: 1; transform: none; }
}
.markshow__text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 26px;
  color: var(--mut);
}
.markshow__text .heading-5 { max-width: 12ch; }

.markshow__spec { border-top: 0.5px solid var(--line); }
.markshow__spec div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 0.5px solid var(--line);
}
.markshow__spec dt {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--mut-2);
}
.markshow__spec dd {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  text-align: right;
}
.markshow__sign {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--mut);
}
.markshow__sign b { font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }

/* ---------- 窄屏：标识只剩桌面一半大，构造层要减负 ---------- */
@media (max-width: 700px) {
  .mk-grid, .mk-cross { display: none; }
  /* 字号是 viewBox 单位，SVG 缩到约 0.5 倍，得按比例放大才读得出来 */
  .mk-dim-t { font-size: 25px; }
}

/* ---------- 减少动效：直接给成品，不做任何过场 ---------- */
@media (prefers-reduced-motion: reduce) {
  .markshow .mk-build,
  .markshow.is-lit .mk-build { opacity: 0; animation: none; }
  .markshow .mk-line,
  .markshow.is-lit .mk-line { animation: none; stroke-opacity: 0; }
  .markshow .mk-fill,
  .markshow.is-lit .mk-fill { animation: none; fill-opacity: 1; }
  .markshow .mk-seam,
  .markshow.is-lit .mk-seam { animation: none; opacity: 0; }
  .markshow .markshow__text > *,
  .markshow.is-lit .markshow__text > * { animation: none; opacity: 1; transform: none; }
  .markshow__replay { display: none; }
}
.no-js .markshow .mk-fill { fill-opacity: 1; }
.no-js .markshow .mk-line { stroke-opacity: 0; }
.no-js .markshow .markshow__text > * { opacity: 1; transform: none; }

/* ============================================================
   关于页 · 品牌故事「为什么叫拯救 HMI」
   与全站同一套语言：亮底、Inter Tight、14/8 圆角，
   颜色只在进度线、光标点、爆点方块上小面积出现（紫罗兰 / 青柠）。
   ============================================================ */

/* ---------- 巨标逐字上浮 ---------- */
.split { display: inline-block; }
/* 拆字发生在 JS 里；拆好之前先藏住，避免「整块字先出现再跳回遮罩」的闪烁 */
[data-split]:not(.split) { opacity: 0; }
.no-js [data-split] { opacity: 1; }
.split__c {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* line-height:1 的巨标会裁掉字身下伸部，撑开再用负 margin 收回 */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.split__c > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(108%);
  transition: transform 0.92s cubic-bezier(0.16, 0.84, 0.28, 1);
  transition-delay: calc(var(--i) * 44ms);
}
.is-split-in .split__c > i { transform: none; }

/* ---------- 关于页首屏：文字 + 生成图形 ---------- */
.about-hero { margin-top: 52px; }

.about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: end;
  gap: 40px var(--gap-x);
}

.about-hero__lead { max-width: 52ch; color: var(--mut); }

.meta-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mut);
}
.meta-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
}
.meta-chips b { font-weight: 500; color: var(--ink); }
.meta-chips i {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
  flex: none;
}
.meta-chips span:nth-child(2) i { background: var(--violet); }

.about-hero__art {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-media);
  overflow: hidden;
  background: #0e1013;
}
.about-hero__art svg { width: 100%; height: 100%; }

/* 首屏图形的自转与扫描：只在可见时跑，离屏由 .is-live 摘掉 */
.art-sweep { transform-box: view-box; transform-origin: 400px 300px; animation: artSweep 7.2s linear infinite; }
.art-pulse { animation: artPulse 3.4s ease-in-out infinite; }
.art-scan  { animation: artScan 4.6s cubic-bezier(0.6, 0, 0.2, 1) infinite; }
.art-blink { animation: artBlink 2.1s steps(1, end) infinite; }

@keyframes artSweep { to { transform: rotate(360deg); } }
@keyframes artPulse { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.5; } }
@keyframes artScan  { 0% { transform: translateY(0); } 50% { transform: translateY(150px); } 100% { transform: translateY(0); } }
@keyframes artBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.18; } }

@media (max-width: 1100px) {
  .about-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .about-hero__art { max-width: 460px; }
}

/* ---------- 数据条：进场时下方细线自左向右画出 ---------- */
.stat-row--draw .stat-row__cell { position: relative; padding-bottom: 14px; }
.stat-row--draw .stat-row__cell::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0s) + 0.15s);
}
.stat-row--draw .stat-row__cell.is-in::after { transform: scaleX(1); }
.stat-row--draw .stat-row__cell:last-child::after { background: var(--violet); }

/* ---------- 滚动点亮的大字导语 ---------- */
.lede {
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.022em;
  max-width: 22ch;
  margin: 0 0 8px;
}
.lede .w {
  color: rgba(34, 34, 34, 0.13);
  transition: color 0.5s var(--ease);
}
.lede .w.on { color: var(--ink); }
.lede .w.on.w--hl { color: var(--violet); }
.no-js .lede .w, .lede--static .w { color: var(--ink); }

/* ---------- 时间轴 ---------- */
.story {
  --rail-x: 150px;
  position: relative;
  margin-top: 60px;
}

.story__rail {
  position: absolute;
  left: var(--rail-x);
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.story__rail > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--violet), var(--accent));
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}

.beat {
  position: relative;
  display: grid;
  grid-template-columns: 128px 44px minmax(0, 1fr) 64px;
  padding: 30px 0 34px;
  border-top: 0.5px solid var(--line);
}
.beat:first-of-type { border-top: 0; padding-top: 8px; }

.beat__dot {
  position: absolute;
  left: var(--rail-x);
  top: 40px;
  width: 9px;
  height: 9px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--ground);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
}
.beat:first-of-type .beat__dot { top: 18px; }
.beat.is-on .beat__dot {
  background: var(--violet);
  box-shadow: inset 0 0 0 1px var(--violet), 0 0 0 5px rgba(94, 106, 210, 0.13);
  transform: scale(1.15);
}
.beat--now.is-on .beat__dot {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(34, 34, 34, 0.25), 0 0 0 5px rgba(217, 242, 79, 0.32);
}

/* 圆点是 absolute，不占栅格位——三个内容块必须显式认列，
   否则正文会掉进 44px 的轨道列里被挤成一条 */
.beat__year { grid-column: 1; }
.beat__body { grid-column: 3; }
.beat__n    { grid-column: 4; }

.beat__year {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 22px;
  color: var(--ink);
}
.beat__year em {
  display: block;
  font-style: normal;
  color: var(--mut-2);
}

/* 标题给整行，正文收到易读的 58ch */
.beat__body { max-width: 760px; }
.beat__body h3 {
  font-size: clamp(19px, 1.65vw, 25px);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.beat__body p { max-width: 58ch; font-size: 14px; font-weight: 300; line-height: 26px; color: var(--mut); }
.beat__body p + p { margin-top: 10px; }
.beat__body b { font-weight: 500; color: var(--ink); }

.beat__n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mut-2);
  text-align: right;
}

/* 内容整体随进场轻微上浮，与巨标的节奏一致 */
.beat__year, .beat__body, .beat__n {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.beat__body { transition-delay: 0.06s; }
.beat__n { transition-delay: 0.12s; }
.beat.is-on .beat__year,
.beat.is-on .beat__body,
.beat.is-on .beat__n { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .story { --rail-x: 4px; }
  .beat { grid-template-columns: minmax(0, 1fr) 48px; gap: 0 12px; padding-left: 26px; }
  .beat__year { grid-column: 1; grid-row: 1; margin-bottom: 8px; }
  .beat__n { grid-column: 2; grid-row: 1; }
  .beat__body { grid-column: 1 / -1; grid-row: 2; }
  .beat__dot { top: 36px; }
  .beat:first-of-type .beat__dot { top: 14px; }
}

/* ---------- 视差照片带 ---------- */
.band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-media);
  aspect-ratio: 21 / 9;
  background: var(--grey);
}
.band img {
  position: absolute;
  left: 0;
  top: -9%;
  width: 100%;
  height: 118%;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.band figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(3px);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}
.band figcaption i { width: 5px; height: 5px; border-radius: 1px; background: var(--accent); }

@media (max-width: 760px) { .band { aspect-ratio: 16 / 10; } }

/* ---------- 跑马灯分隔条 ---------- */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  user-select: none;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: mqRun 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > span {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-size: clamp(26px, 4.4vw, 62px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee__track em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--mut-2);
}
.marquee__track i {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}
.marquee__track span:nth-child(even) i { background: var(--violet); }

@keyframes mqRun { to { transform: translateX(-50%); } }

/* ---------- 大字引言 ---------- */
.pull {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 var(--gap-x);
  align-items: start;
}
.pull__bar {
  height: 100%;
  min-height: 84px;
  border-left: 2px solid var(--accent);
}
.pull blockquote {
  font-size: clamp(24px, 3.2vw, 46px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.022em;
  max-width: 24ch;
}
.pull figcaption {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mut-2);
}
@media (max-width: 760px) { .pull { grid-template-columns: 18px minmax(0, 1fr); } }

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-split] { opacity: 1; }
  .split__c > i { transform: none; transition: none; }
  .lede .w { color: var(--ink); transition: none; }
  .beat__year, .beat__body, .beat__n { opacity: 1; transform: none; transition: none; }
  .beat__dot { transition: none; }
  .story__rail > i { transform: scaleY(1); }
  .marquee__track { animation: none; }
  .band img { transform: none; }
  .art-sweep, .art-pulse, .art-scan, .art-blink { animation: none; }
  .stat-row--draw .stat-row__cell::after { transform: scaleX(1); transition: none; }
}
.no-js .split__c > i { transform: none; }
.no-js .beat__year, .no-js .beat__body, .no-js .beat__n { opacity: 1; transform: none; }
.no-js .story__rail > i { transform: scaleY(1); }


/* ============================================================
   首页配图 v8（2026-09-05）：服务卡 / 案例卡 / 双引擎 / CTA / 顶栏缩略图
   全部改为生成图（assets/img/gen/web/home/），不再用内联 SVG 作品图。
   ============================================================ */
.engine__shot img,
.card-dir__cover img,
.card-recommendation__bg img,
.mega__promo .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.engine__shot picture,
.card-dir__cover picture,
.card-recommendation__bg picture,
.mega__promo .thumb picture { display: block; width: 100%; height: 100%; }
.card-recommendation__bg img { border-radius: inherit; }

/* 五个真实 HMI 案例一排放：≥1500 五列；1500 以下沿用 3 列（3+2 换行），≤860 单列 */
@media (min-width: 1500px) {
  .grid-dir--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ============================================================
   临时宣传条（v4 · 2026-09-06 · 拯救 HMI 2026 长期服务计划上线）
   顶栏上方满幅一条。v1 墨底白字像系统通知；v2 通铺品牌青柠；v3 因为「青柠只做小面积
   爆点」的底线把条身退成 22% 青柠淡底（#f7fcd8）。v4 应要求回到满色青柠 var(--accent)：
   淡底那版被判「太淡、看不出是我们的颜色」。满色块抢注意力的老问题这次不靠减色解决，
   而是给它一个内容——条身当成一条舞台地面，站里的小机器人在上面来回跑。整条于是从
   「促销色块」变成「一格场景」，青柠是地不是喊话。
   内容整体居中，× 关闭按钮绝对定位在右端、不参与居中（所以左右留了对称的让位内边距）。
   居中那一组三件：
     [· NEW]   反相药丸：墨底青柠字（v3 是青柠药丸，落在满色条上会糊成一片）
     标题       13/500 墨字
     点击查看 →  尾端箭头，hover 右移

   动效四处：
     1. 进场   底色从左抹开（::before 的 scaleX），文字随后浮起 4px，只跑一次
     2. 常驻   小机器人 28s 一个来回（右端原地转身，左端跑出画面外再折返）
     3. 待机   NEW 里那粒圆点 2.8s 呼吸，机器人天线灯 2.6s 呼吸（与顶栏 CTA 同一暗示）
     4. hover  标题下抻出一条墨色下划线，箭头右移，NEW 小标抬 1px
   prefers-reduced-motion 下循环全掐掉，机器人停在左侧站着不动。

   底色画在 ::before 上、不画在条本身：这样进场动的是伪元素，条的高度第一帧就定死，
   下面的顶栏不会被推着跳一下。
   满色青柠上前景一律留墨色/次级墨（青柠对青柠等于隐形）；机器人身上唯一要改的是
   脸屏——它本来是青柠，在青柠条上只剩 1.5px 的墨边框着，会糊，所以这一处换成白。
   随页面滚走、不吸顶（吸顶的是它下面的顶栏包裹层；aw.js 按条高补偿 .is-scrolled 阈值）。
   标记由 tools/build-header.py 的 PROMO 生成，on=False 重跑即全站摘掉。
   ============================================================ */
.promo-bar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  /* 右边要给 × 让位，左边给同样的量，居中的那一组才真在正中间 */
  padding: 0 calc(var(--pad) + 40px);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  /* 机器人踩着这条线走，比 var(--line) 的 .13 再实一点，否则等于没有地面 */
  box-shadow: inset 0 -1px 0 rgba(34, 34, 34, 0.2);
}
.promo-bar[hidden] { display: none; }

/* 底色 + 进场：从左抹开 */
.promo-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left center;
  animation: promo-wipe 0.72s var(--ease) both;
}
@keyframes promo-wipe {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.promo-bar__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  /* 文字底下垫一块同色「牌子」，两端渐隐：机器人跑到中间时从牌子后面穿过去，
     不会和标题叠成一团。同色所以平时完全看不出有这块牌子。 */
  padding: 11px 22px;
  background: linear-gradient(90deg, #d9f24f00 0, var(--accent) 22px,
                              var(--accent) calc(100% - 22px), #d9f24f00 100%);
  color: inherit;
  animation: promo-rise 0.6s var(--ease) 0.3s both;
}
@keyframes promo-rise {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* 下划线走 background-size 而不是伪元素：b 上有 overflow:hidden 做省略号，
   伪元素会被裁掉，背景不会。牌子底也是背景，所以两层背景写在一起（下划线在前）。 */
.promo-bar__link b {
  min-width: 0;
  padding-bottom: 2px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.42s var(--ease);
}
.promo-bar__link:hover b,
.promo-bar__link:focus-visible b { background-size: 100% 1px; }

.promo-bar__link em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-style: normal;
  color: rgba(34, 34, 34, 0.66);
  white-space: nowrap;
  transition: color 0.28s var(--ease);
}
.promo-bar__link:hover em,
.promo-bar__link:focus-visible em { color: var(--ink); }
.promo-bar__link em svg { transition: transform 0.3s var(--ease); }
.promo-bar__link:hover em svg,
.promo-bar__link:focus-visible em svg { transform: translateX(3px); }
.promo-bar__link:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 6px; }

/* NEW 小标：满色条上做反相 —— 墨药丸 / 青柠字，整条唯一的一块深色，
   圆点收在药丸里（省得圆点和小标并排成两个「注意我」）。 */
.promo-bar__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 16px;
  transition: transform 0.3s var(--ease);
}
.promo-bar__link:hover .promo-bar__tag,
.promo-bar__link:focus-visible .promo-bar__tag { transform: translateY(-1px); }

/* 圆点收进药丸以后没有涟漪的地方了（外圈涨到 2.4 倍就是 26px，药丸内高才 16px，
   环会压到 NEW 上、看着像个瞄准符号），所以改成圆点自己呼吸。 */
.promo-bar__dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: promo-breathe 2.8s cubic-bezier(0.4, 0, 0.5, 1) infinite;
}
@keyframes promo-breathe {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(0.62); opacity: 0.5; }
}

.promo-bar__close {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: calc(var(--pad) - 8px);
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: rgba(34, 34, 34, 0.55);
  /* 跟标题一起淡入：底色还没抹到右边时，× 先浮在白底上会很奇怪 */
  animation: promo-rise 0.6s var(--ease) 0.4s both;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.promo-bar__close:hover,
.promo-bar__close:focus-visible { color: var(--ink); background: rgba(34, 34, 34, 0.12); }
.promo-bar__close:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }

/* ------------------------------------------------------------
   条上跑来跑去的小机器人
   机身几何与 about/join.html 首屏那只、assets/css/bot.css 那套逐点一致（viewBox
   -4 -8 128 164），这里是「只够在 42px 高的条里看清」的精简版：去掉描边罩、扫描线、
   高光、眉毛与闭眼，类名另起 .pb-* 前缀，不和 bot.css 的 .b-* 互相盖。
   跑动分三层，都只动 transform：
     .promo-bar__run   跑道（左到页面最左，右端在 × 之前收住）
     .promo-bar__rail  位移，28s 一个来回；左端把机器人整只送出画面外再折返
     .promo-bot        转身，scaleX 1 → -1 中间过 0，就是一个二维的原地掉头
   机身自己再叠一层跑步循环（腿 / 摆臂 / 上下颠）0.38s 一个步幅。
   ------------------------------------------------------------ */
.promo-bar__run {
  --pb-w: 29px;
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  right: calc(var(--pad) + 30px);
  pointer-events: none;
}
.promo-bar__rail {
  position: absolute;
  inset: 0;
  /* 动画起跑前就得在画面外，否则延迟那 0.6s 里会有一只站在最左边 */
  transform: translateX(calc(-1 * var(--pb-w) - 14px));
  animation: promo-run 28s linear 0.6s infinite;
}
@keyframes promo-run {
  0%,   1%   { transform: translateX(calc(-1 * var(--pb-w) - 14px)); }
  49%,  51%  { transform: translateX(calc(100% - var(--pb-w))); }
  99%,  100% { transform: translateX(calc(-1 * var(--pb-w) - 14px)); }
}

.promo-bot {
  position: absolute;
  left: 0;
  bottom: 1px;                 /* 脚正好踩在条底那条线上 */
  width: var(--pb-w);
  height: auto;
  transform-origin: 50% 100%;
  animation: promo-turn 28s linear 0.6s infinite;
}
/* 掉头：scaleX 从 1 过 0 到 -1，就是一个二维的原地转身，0.45s 正好落在右端那 0.56s 里；
   左端那次转身在画面外，看不见。 */
@keyframes promo-turn {
  0%,    49.2% { transform: scaleX(1); }
  50.8%, 99.2% { transform: scaleX(-1); }
  100%         { transform: scaleX(1); }
}

/* 机身配色：与 bot.css 同一套，只有脸屏改白（见段首注释） */
.promo-bot .pb-torso,
.promo-bot .pb-skull        { fill: var(--ink); }
.promo-bot .pb-leg--f rect  { fill: var(--ink); }
.promo-bot .pb-leg--b rect,
.promo-bot .pb-ear          { fill: #5a5a5a; }
.promo-bot .pb-arm--f > path { stroke: var(--ink); }
.promo-bot .pb-arm--b path  { stroke: #5a5a5a; }
.promo-bot .pb-hand         { fill: #fff; stroke: var(--ink); stroke-width: 3.5; }
.promo-bot .pb-hand--b      { fill: #eaeaea; stroke: #4d4d4d; }
.promo-bot .pb-ant          { stroke: var(--ink); }
.promo-bot .pb-screen       { fill: #fff; }
.promo-bot .pb-tag          { fill: var(--accent); }
.promo-bot .pb-dot          { fill: var(--violet); }
.promo-bot .pb-eye          { fill: var(--ink); }
.promo-bot .pb-mouth        { stroke: var(--ink); fill: none; }

/* 关节原点用的是 viewBox 用户单位，所以要显式声明 transform-box */
.promo-bot .pb-leg,
.promo-bot .pb-arm,
.promo-bot .pb-dot { transform-box: view-box; }
.promo-bot .pb-leg--f { transform-origin: 74px 106px; }
.promo-bot .pb-leg--b { transform-origin: 46px 106px; }
.promo-bot .pb-arm--f { transform-origin: 74px 78px;  transform: rotate(48deg); }
.promo-bot .pb-arm--b { transform-origin: 72px 84px;  transform: rotate(52deg); }
.promo-bot .pb-dot    { transform-origin: 60px 1.5px; animation: promo-bot-dot 2.6s ease-in-out infinite; }

/* 0.34s 一个步幅（身子上下颠是半个步幅，一步一颠）：28s 跑一个来回，1440 宽上约 102px/s，
   一步跨 35px 左右 —— 是跑不是走，与「来回跑动」对得上 */
.promo-bot .pb-leg--f { animation: promo-step-a 0.34s cubic-bezier(0.42, 0, 0.58, 1) infinite; }
.promo-bot .pb-leg--b { animation: promo-step-b 0.34s cubic-bezier(0.42, 0, 0.58, 1) infinite; }
.promo-bot .pb-arm--f { animation: promo-arm-a  0.34s cubic-bezier(0.42, 0, 0.58, 1) infinite; }
.promo-bot .pb-arm--b { animation: promo-arm-b  0.34s cubic-bezier(0.42, 0, 0.58, 1) infinite; }
.promo-bot .pb-bob    { animation: promo-bob    0.17s cubic-bezier(0.42, 0, 0.58, 1) infinite; }
@keyframes promo-step-a { 0%, 100% { transform: rotate(24deg); }  50% { transform: rotate(-24deg); } }
@keyframes promo-step-b { 0%, 100% { transform: rotate(-24deg); } 50% { transform: rotate(24deg); } }
@keyframes promo-arm-a  { 0%, 100% { transform: rotate(22deg); }  50% { transform: rotate(74deg); } }
@keyframes promo-arm-b  { 0%, 100% { transform: rotate(78deg); }  50% { transform: rotate(26deg); } }
@keyframes promo-bob    { 0%, 100% { transform: translateY(0); }  50% { transform: translateY(-1.4px); } }
@keyframes promo-bot-dot {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.24); opacity: 0.72; }
}

@media (max-width: 760px) {
  .promo-bar { font-size: 12px; padding: 0 calc(var(--pad) + 28px); }
  /* 窄屏放不下「NEW」四个字母，但那颗墨药丸不能整个没：font-size:0 只压掉字母，
     里面那粒 5px 青柠圆点是固定尺寸，仍然照常呼吸。 */
  .promo-bar__tag { padding: 4px; gap: 0; font-size: 0; line-height: 0; letter-spacing: 0; }
  .promo-bar__link { gap: 8px; padding: 11px 12px; }
  .promo-bar__close { right: calc(var(--pad) - 6px); }
  /* 窄屏上标题几乎占满整条，机器人一路都在牌子后面，跑了也看不见 —— 直接不跑 */
  .promo-bar__run { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-bar::before,
  .promo-bar__link,
  .promo-bar__close { animation: none; }
  .promo-bar__dot { animation: none; }
  .promo-bar__link b,
  .promo-bar__link em,
  .promo-bar__link em svg,
  .promo-bar__tag,
  .promo-bar__close { transition: none; }
  /* 机器人留下，但不跑：站在左边看着 */
  .promo-bar__rail { animation: none; transform: translateX(30px); }
  .promo-bot,
  .promo-bot .pb-leg,
  .promo-bot .pb-arm,
  .promo-bot .pb-bob,
  .promo-bot .pb-dot { animation: none; }
}

/* ---------- 四行特质表：加了 emoji 圆章与彩色 EN 标（2026-09-05，配合 vibe.css） ---------- */
.box-table__row[data-c] .box-table__score {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--vb-b);
  color: var(--vb-f);
  /* 静止只有字，hover 才浮出彩底 */
  background-image: linear-gradient(var(--vb-b), var(--vb-b));
  background-color: transparent;
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: right center;
  transition: background-size 0.5s var(--ease);
}
.box-table__row[data-c]:hover .box-table__score { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) {
  .box-table__row[data-c] .box-table__score { background-size: 100% 100%; transition: none; }
}

/* ---------- 案例卡徽标按类型上色（2026-09-05，配合 vibe.css 的色板） ---------- */
.figure-rollover__badge { transition: background-color 0.36s var(--ease), color 0.36s var(--ease); }
.card-slide:hover .figure-rollover__badge { background: var(--accent); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .figure-rollover__badge { transition: none; } }

/* ---------- 巨型菜单 · 翻字行（2026-09-10 · Savior 设计软件） ----------
   「软件开发」列第一行的文字在「Savior 设计软件」与「专为工业 HMI 设计而生」之间轮换：
   [A, B, A] 三行叠在 22px 高的小窗里，整列每 7s 往上滚两格，第三行与第一行相同，
   滚到底瞬间回零看不出接缝（同「招聘中」徽标里 FACES 的做法）。标记由 tools/build-header.py 的 flip() 生成。 */
.mega__flip {
  display: inline-block;
  vertical-align: top;
  height: 22px;
  overflow: hidden;
}
.mega__flip > span {
  display: block;
  animation: mega-flip 7s var(--ease) infinite;
}
.mega__flip b {
  display: block;
  height: 22px;
  line-height: 22px;
  font-weight: inherit;
  white-space: nowrap;
}
/* 第二句比产品名长，1440 视口下整行会顶出列宽（实测内容 191 / 可用 187，被 ellipsis 咬掉）；
   收到 .92em 后 180 < 187，同时读起来像产品名下的一行副题。 */
.mega__flip b:nth-child(2) { font-size: 0.92em; color: var(--violet); }
@keyframes mega-flip {
  0%, 42% { transform: translateY(0); }
  50%, 92% { transform: translateY(-22px); }
  100% { transform: translateY(-44px); }
}
/* 非中文只显示产品名：英文第二句实测 186px、列里只有 145px，翻过去就被 ellipsis 咬掉。
   首屏巨标有的是宽度，那里照翻。 */
:root:not([data-lang="zh"]) .mega__flip { height: auto; }
:root:not([data-lang="zh"]) .mega__flip > span { animation: none; }
:root:not([data-lang="zh"]) .mega__flip b:not(:first-child) { display: none; }

@media (prefers-reduced-motion: reduce) {
  .mega__flip > span { animation: none; }
}
