/* ============================================================
   services/savior.html · Savior 设计软件（2026-09-10）
   英特费斯自研的工业 HMI 设计软件宣传页，试用跳 tool.savehmi.com。
   主角是产品本身：全部界面图都是 hmi-studio 真实截图
   （tools/build-savior-shots.py 从 assets/img/gen/savior/ 与产品仓库的
   .render-out/ 压出 assets/img/savior/），不画假界面。
   亮底 + 墨字，青柠 / 紫罗兰只做小面积爆点；深色只出现在
   「作品画面」本身（动效帧、放映画面）。前缀统一 sv-。
   ============================================================ */

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

/* ============================================================
   首屏 · 翻字巨标 + 一颗青柠 CTA + 浏览器样机里的真实编辑器
   ============================================================ */
.sv-hero { padding-top: clamp(36px, 5.5vw, 68px); }
.sv-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mut);
}
.sv-hero__eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 242, 79, 0.35);
  flex: none;
}
/* 翻字巨标：与顶栏那一行同一个机制——[A, B, A] 三行叠在一行高的小窗里，
   整列每 8s 往上滚两格，第三行与第一行相同，回零看不出接缝。
   行高、位移全部用 em，字号随视口变，翻页距离跟着变。
   第二句用紫罗兰渐变 clip-text，是这一页唯一一块大面积品牌色。 */
.sv-hero__h1 {
  margin: 0;
  font-size: clamp(30px, 6.3vw, 92px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
/* 窗口高度必须大于字身盒，不能按 line-height 1.08 来切：Inter Tight 的
   ascent + descent ≈ 1.21em，1.08em 的窗口会把拉丁字母的上缘削掉一截
   （英文版实测：Savior Design Software 顶部被切）。1.3em 两头各留 0.045em。 */
.sv-flip { --fh: 1.3em; display: block; height: var(--fh); overflow: hidden; margin-block: -0.11em; }
.sv-flip > span { display: block; animation: sv-flip 8s var(--sv-ease) infinite; }
.sv-flip b {
  display: block;
  height: var(--fh);
  line-height: var(--fh);
  white-space: nowrap;
  font-weight: inherit;
}
.sv-flip b:nth-child(2) {
  background: linear-gradient(92deg, #5e6ad2 0%, #3a3fb0 60%, #222 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes sv-flip {
  0%, 44% { transform: translateY(0); }
  50%, 94% { transform: translateY(-1.3em); }
  100% { transform: translateY(-2.6em); }
}
/* 拉丁文字比中文长一大截（"Built for industrial HMI" 24 字符 vs 中文 10 字），
   巨标按中文的 6.3vw 排会顶出容器；非中文降一档，两句都进得来。 */
:root:not([data-lang="zh"]) .sv-hero__h1 { font-size: clamp(22px, 5.4vw, 78px); }
.sv-hero__sub {
  margin: 22px 0 0;
  max-width: 48ch;
  font-size: 17px;
  line-height: 28px;
  color: var(--mut);
}
.sv-hero__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin: 30px 0 0;
}
/* 青柠药丸 + 尾端墨色圆点（与顶栏 CTA 同一个语言，反过来配色）：hover 圆点转 45°，箭头指向右上 */
.sv-try {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 8px 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.42s var(--sv-ease), box-shadow 0.42s var(--sv-ease), background-color 0.3s var(--sv-ease);
}
.sv-try i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.42s var(--sv-ease);
}
.sv-try i svg { width: 14px; height: 14px; }
.sv-try:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -18px rgba(90, 110, 0, 0.6); background: #e2f866; }
.sv-try:hover i { transform: rotate(45deg); }
.sv-try--sm { height: 44px; padding-left: 20px; font-size: 15px; }
.sv-try--sm i { width: 30px; height: 30px; }
.sv-hero__note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 20px;
  color: var(--mut-2);
}

.sv-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}
.sv-hero__facts li { font-size: 12.5px; line-height: 18px; color: var(--mut); }
.sv-hero__facts b {
  display: block;
  margin-bottom: 4px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
/* 直接子代限定，别把 data-count 的计数 span 变成块级（software.css 踩过） */
.sv-hero__facts b > i { font-style: normal; font-size: 0.6em; color: var(--mut-2); margin-left: 1px; }

/* 样机舞台：背后柔光把窗口托起来，两张悬浮小卡是真实产品里会出现的提示 */
.sv-stage { position: relative; margin-top: clamp(40px, 6vw, 70px); }
.sv-stage::before {
  content: "";
  position: absolute;
  inset: -6% -4% -10%;
  background:
    radial-gradient(46% 58% at 18% 22%, rgba(94, 106, 210, 0.18), transparent 70%),
    radial-gradient(40% 50% at 86% 78%, rgba(217, 242, 79, 0.34), transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}
.sv-brow {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.14), 0 44px 90px -40px rgba(0, 0, 0, 0.38);
}
.sv-brow__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  background: #f1f2f4;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.sv-brow__dots { display: flex; gap: 6px; flex: none; }
.sv-brow__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d7d9de; }
.sv-brow__dots i:first-child { background: #ff5f57; }
.sv-brow__dots i:nth-child(2) { background: #febc2e; }
.sv-brow__dots i:nth-child(3) { background: #28c840; }
.sv-brow__url {
  flex: 1;
  max-width: 440px;
  margin-inline: auto;
  height: 24px;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
}
.sv-brow__url svg { width: 10px; height: 10px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; }
.sv-brow__url b { font-weight: 500; color: var(--ink); }
.sv-brow__view { position: relative; background: #f6f7f9; line-height: 0; }
.sv-brow__view img { width: 100%; height: auto; display: block; }

.sv-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.32);
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ink);
  white-space: nowrap;
}
.sv-float small { display: block; font-size: 11px; color: var(--mut-2); }
.sv-float .vb-ico { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
.sv-float--a { left: -14px; top: 22%; animation: sv-bob 6s ease-in-out infinite; }
.sv-float--b { right: -14px; bottom: 14%; animation: sv-bob 7s ease-in-out -2s infinite; }
@keyframes sv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============================================================
   01 · 给谁用：三张彩卡，一个人一句话
   ============================================================ */
.sv-who {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-x);
}
.sv-who__role { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; color: var(--mut); }
.sv-who q {
  display: block;
  margin: 16px 0 10px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.015em;
  quotes: "「" "」";
}
.sv-who q::before { color: var(--vb-f); }
.sv-who q::after { color: var(--vb-f); }
.sv-who p { margin: 0; font-size: 14px; line-height: 23px; color: var(--mut); }

/* ============================================================
   02 · 四步：一步一张真实截图
   ============================================================ */
.sv-steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-x);
}
.sv-step {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform 0.42s var(--sv-ease), box-shadow 0.42s var(--sv-ease);
}
.sv-step:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.3); }
.sv-step__pic {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef0f3;
  border-bottom: 1px solid var(--line);
  line-height: 0;
}
.sv-step__pic img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 0.7s var(--sv-ease); }
.sv-step:hover .sv-step__pic img { transform: scale(1.03); }
.sv-step__b { padding: 18px 20px 22px; }
.sv-step__n {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--vb-b);
  color: var(--vb-f);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.sv-step__t { display: block; margin: 12px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.sv-step__d { margin: 0; font-size: 13.5px; line-height: 22px; color: var(--mut); }

/* ============================================================
   03 · 动效库：同一个动效的三个时刻（帧级一致才敢这么放）
   ============================================================ */
.sv-fx {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-x);
}
.sv-fx__row {
  background: #0d1117;
  border-radius: var(--r-card);
  padding: 12px 12px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sv-fx__row img { width: 100%; height: auto; display: block; border-radius: 8px; }
.sv-fx__cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
}
.sv-fx__cap b { font-family: var(--font); font-size: 13.5px; font-weight: 500; color: #fff; }
.sv-fx__cap span { white-space: nowrap; }
.sv-cats { margin-top: 30px; }
.sv-cats .vb-chip small { font-weight: 400; opacity: 0.72; margin-left: 2px; }
.sv-note { margin-top: 22px; max-width: 720px; }

/* ============================================================
   04 · AI 出稿：真实产出的画面 + 风格清单
   ============================================================ */
.sv-gal {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-x);
}
.sv-gal figure {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0f16;
  border: 1px solid var(--line);
  line-height: 0;
  transition: transform 0.42s var(--sv-ease), box-shadow 0.42s var(--sv-ease);
}
.sv-gal figure:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.4); }
.sv-gal img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.sv-gal figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11.5px;
  line-height: 18px;
}
.sv-styles { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.sv-style {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 7px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 20px;
  transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sv-style:hover { transform: translateY(-3px); }
.sv-style i {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--c, #222);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  flex: none;
}
.sv-ai__how {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 0.5px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.sv-ai__how > div { background: var(--card); padding: 18px 20px 20px; }
.sv-ai__how b { display: block; font-size: 15px; font-weight: 600; line-height: 22px; }
.sv-ai__how span { display: block; margin-top: 6px; font-size: 13px; line-height: 21px; color: var(--mut); }

/* ============================================================
   05 · 一个项目：左图右折叠列表
   ============================================================ */
.sv-proj {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 34px var(--gap-x);
  align-items: start;
}
.sv-proj__pic {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0f16;
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.35);
  line-height: 0;
}
.sv-proj__pic img { width: 100%; height: auto; display: block; }
.sv-proj__pic + .sv-proj__pic { margin-top: var(--gap-x); }
.sv-proj__cap {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--mut-2);
}

/* ============================================================
   06 · 导出去哪：两张白卡，标签是真实的载体 / 格式清单
   ============================================================ */
.sv-with {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-x);
}
.sv-with__c {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 26px 26px;
}
.sv-with__k { margin: 0 0 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--mut-2); }
.sv-with__t { margin: 0 0 16px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; }
.sv-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-tag {
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--ground);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s var(--sv-ease);
}
.sv-tag:hover { transform: translateY(-3px); background: #fff; }
.sv-tag--more { color: var(--mut-2); border-style: dashed; }

/* ============================================================
   07 · 三步开始 + 邀请码表单
   ============================================================ */
.sv-start {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 30px var(--gap-x);
  align-items: start;
}
.sv-start__side p { margin: 0 0 18px; font-size: 15px; line-height: 25px; color: var(--mut); max-width: 36ch; }
.sv-howto { margin: 0; padding: 0; list-style: none; border-top: 0.5px solid var(--line); }
.sv-howto li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 0.5px solid var(--line);
  font-size: 14px;
  line-height: 22px;
  color: var(--mut);
}
.sv-howto li b {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  translate: 0 3px;
}
.sv-howto li strong { font-weight: 500; color: var(--ink); }
.sv-soc { display: grid; gap: 10px; margin-top: 18px; }
.sv-soc__i {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 0.5px solid var(--line);
}
.sv-soc__i b {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.sv-soc__i--dy b { background: #111; }
.sv-soc__i--wx b { background: #07c160; }
.sv-soc__i > span { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.sv-soc__i em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--mut); }
.sv-start__acts { margin-top: 22px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .sv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .sv-who { grid-template-columns: minmax(0, 1fr); }
  .sv-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-ai__how { grid-template-columns: minmax(0, 1fr); }
  .sv-proj { grid-template-columns: minmax(0, 1fr); }
  .sv-with { grid-template-columns: minmax(0, 1fr); }
  .sv-start { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sv-float { display: none; }
  .sv-fx { grid-template-columns: minmax(0, 1fr); }
  .sv-hero__sub { font-size: 15.5px; line-height: 25px; }
  .sv-hero__facts { gap: 12px 26px; }
  .sv-hero__facts b { font-size: 24px; }
}
@media (max-width: 640px) {
  .sv-steps { grid-template-columns: minmax(0, 1fr); }
  .sv-gal { grid-template-columns: minmax(0, 1fr); }
  .sv-brow__url { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sv-flip > span, .sv-float { animation: none; }
  .sv-step, .sv-gal figure, .sv-style, .sv-tag, .sv-try, .sv-try i, .sv-step__pic img { transition: none; }
}
