/* 旬工 XunCrew 官网 — 设计 token 与页面样式。品牌色取自 docs/logo 的旬轮渐变。 */

:root {
  --cyan: #00e5ff;
  --blue: #3b6cff;
  --violet: #8b5cf6;

  --ink: #0a1a3c;
  --ink-2: #33456e;
  --ink-3: #5b6b8c;
  --muted: #6b7a99;

  --line: #e4eaf6;
  --line-2: #cfdaf0;
  --surface: #ffffff;
  --surface-soft: #f6f8fd;
  --surface-tint: #eef4ff;

  --navy: #071026;
  --navy-2: #0a1a3c;

  --brand-gradient: linear-gradient(120deg, var(--cyan), var(--blue) 55%, var(--violet));

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 10px rgba(10, 26, 60, 0.05);
  --shadow: 0 10px 34px rgba(10, 26, 60, 0.08);
  --shadow-lg: 0 24px 70px rgba(10, 26, 60, 0.14);

  --nav-h: 68px;
  --gutter: clamp(20px, 5vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------- 导航 ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 16, 38, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}

/* 横版组合标自带深空蓝底板,压在导航/页脚上会看成一个浮动方块。
   这里用透明的旬轮 mark 加 HTML 文字自己拼字标,底色随容器走。 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand__text {
  display: grid;
  line-height: 1.2;
}

.brand__text b {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.brand__text small {
  /* 副标题是一句话,折行只会把导航条撑高 —— 英文的 "Multi-Agent Productivity
     Engine" 在 1121px 上正好会被挤成两行。窄屏由 600px 断点整条隐藏。 */
  white-space: nowrap;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.48);
}

/* 导航项用 order 排序而不是靠 DOM 顺序:语言切换器在手机上要和汉堡按钮同排常驻,
   在桌面上又该待在 CTA 左边,两种顺序对不上同一份 DOM。
   必须限定在 .nav__inner 内 —— 页脚也是 flex 且同样有一个 .brand,不限定的话
   order:1 会把页脚品牌排到所有兄弟节点之后,直接甩到最右边。 */
.nav__inner .brand {
  order: 1;
}

.nav__links {
  order: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.74);
}

/* 导航项永不折行:空间不够时宁可溢出被溢出检测抓到,也不要静默折成三行 —— 后者
   在视觉上是坏的,却不会有任何报错。 */
.nav__links a {
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nav__links a:hover {
  color: #fff;
}

.nav__cta {
  order: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------------- 语言切换 ---------------- */

/* 排在 CTA 之后,落在导航条最右端。这是个工具型控件,不该和「联系商务」抢视觉
   权重:去掉外层描边和内衬,只给当前语言一枚淡底片,靠它自己就够读出是个开关。 */
.lang {
  order: 4;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  font-size: 12px;
  font-weight: 700;
}

.lang > * {
  display: grid;
  place-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.lang__on {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.lang__off {
  color: rgba(255, 255, 255, 0.45);
}

.lang__off:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.nav__toggle {
  order: 5;
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  /* border 是透明的,只为让 primary 与 ghost 变体外形尺寸一致。但 CSS 默认
     background-origin: padding-box 而 background-clip: border-box —— 渐变画布
     按 padding box 定尺寸、却按 border box 裁剪,四周多出的 1px 环会被默认的
     background-repeat 用渐变**另一端**的颜色补上:青色胶囊左端糊一圈紫、右端
     糊一圈青(实测 DPR 1/2/4 下分别 1/2/4 物理像素,恒等于 border 宽度)。
     origin 对齐到 border-box 才能根治。
     配套要求:各变体一律用 background-image / background-color 长写,不要用
     `background:` 简写 —— 简写会把所有 background-* 长写重置回初始值,把这行
     悄悄抹掉,描边就又回来了。 */
  background-origin: border-box;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.btn--sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn--lg {
  padding: 15px 32px;
  font-size: 16.5px;
}

.btn--primary {
  background-image: var(--brand-gradient);
  color: #04122e;
  /* 三层而不是一层柔光:只给一片 26px 的外扩光晕时,亮胶囊压在深底上会显得
     边界发虚。贴地的 1px 接触阴影负责勾出轮廓,外扩光晕保留品牌氛围,顶部
     1px 内高光给出受光面,边缘才有实体感。 */
  box-shadow:
    0 1px 2px rgba(4, 18, 46, 0.3),
    0 8px 24px rgba(59, 108, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 5px rgba(4, 18, 46, 0.32),
    0 14px 34px rgba(59, 108, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.btn--ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.08);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background-color: #fff;
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ---------------- 首屏 ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(0, 229, 255, 0.2), transparent 60%),
    radial-gradient(760px 520px at 88% 8%, rgba(139, 92, 246, 0.24), transparent 62%),
    linear-gradient(168deg, #071026, #0a1a3c 58%, #0b2350);
  color: #fff;
  padding: clamp(64px, 11vw, 128px) 0 clamp(72px, 10vw, 118px);
}

/* 底部渐隐,让深色首屏与白色正文之间没有硬边。 */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.06));
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
  gap: clamp(36px, 5vw, 60px);
  align-items: center;
}

.slogan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(0, 229, 255, 0.34);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #8ef4ff;
}

.slogan__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.16);
}

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(2rem, 5.2vw, 3.3rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

/* 标题按语义分段而不是写死 <br>:每段自身不断行,断点只落在段之间,
   所以从 375px 到 1440px 都不会出现「驱动引/擎」这种词中折行。 */
.hero h1 .nb,
.hero h1 em {
  display: inline-block;
  white-space: nowrap;
}

/* 英文靠词间空格换行,禁止断行只会让长句直接溢出屏幕 —— 中文那套分段保护
   在这里必须关掉。改用 balance 让浏览器把行长匀开,否则 3.3rem 下第二行会只
   剩一个 "engine." 吊在那里。 */
html[lang="en"] .hero h1 .nb,
html[lang="en"] .hero h1 em {
  white-space: normal;
}

html[lang="en"] .hero h1 .nb {
  display: block;
  text-wrap: balance;
}

/* 收益句独占一行,和中文版的视觉节奏对齐。 */
html[lang="en"] .hero h1 em {
  display: block;
}

.hero h1 em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(15.5px, 1.7vw, 18px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.76);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__note {
  margin-top: 18px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fact {
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.fact__k {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
}

.fact__v {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------------- 通用区块 ---------------- */

.section {
  padding: clamp(64px, 9vw, 116px) 0;
  scroll-margin-top: var(--nav-h);
}

.section--soft {
  background: var(--surface-soft);
  border-block: 1px solid var(--line);
}

.section--dark {
  background:
    radial-gradient(700px 420px at 78% 0%, rgba(59, 108, 255, 0.28), transparent 62%),
    linear-gradient(160deg, #071026, #0a1a3c);
  color: #fff;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.section--dark .eyebrow {
  color: #6ee7ff;
}

.section__head {
  max-width: 50em;
}

.section__head h2 {
  margin-top: 14px;
  font-size: clamp(1.62rem, 3.4vw, 2.45rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.015em;
}

.section__head p {
  margin-top: 18px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--ink-3);
}

.section--dark .section__head p {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------------- 业务痛点 ---------------- */

.pains {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.pain {
  padding: 28px 24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.pain:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pain__idx {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--line-2);
}

.pain h3 {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
}

.pain p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-3);
}

/* ---------------- 产品理念 / 对照 ---------------- */

.creed__quote {
  margin-top: 40px;
  padding: 28px 32px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 255, 255, 0.055);
  font-size: clamp(16px, 1.9vw, 19.5px);
  font-weight: 600;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.9);
}

.creed__quote span {
  color: #6ee7ff;
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 44px;
}

.col {
  border-radius: var(--radius-lg);
  padding: 30px clamp(20px, 2.4vw, 30px) 34px;
}

.col--them {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.col--us {
  border: 1px solid rgba(0, 229, 255, 0.34);
  background:
    radial-gradient(420px 260px at 82% 0%, rgba(139, 92, 246, 0.22), transparent 66%),
    rgba(0, 229, 255, 0.075);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.col__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.col--them .col__tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
}

.col--us .col__tag {
  background: var(--brand-gradient);
  color: #04122e;
}

.col h3 {
  margin-top: 18px;
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 800;
  line-height: 1.4;
}

.col--them h3 {
  color: rgba(255, 255, 255, 0.72);
}

.col__list {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.col__list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  font-size: 14.8px;
  line-height: 1.78;
}

.col--them .col__list li {
  color: rgba(255, 255, 255, 0.58);
}

.col--us .col__list li {
  color: rgba(255, 255, 255, 0.9);
}

.col__list b {
  color: #fff;
  font-weight: 700;
}

.mk {
  font-size: 15px;
  line-height: 1.5;
}

.col--them .mk {
  color: rgba(255, 255, 255, 0.32);
}

.col--us .mk {
  color: var(--cyan);
}

.gives {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.give {
  padding: 24px 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.give__n {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #6ee7ff;
}

.give h4 {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.give p {
  margin-top: 10px;
  font-size: 13.8px;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.62);
}

.creed__kicker {
  margin-top: 46px;
  text-align: center;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.creed__kicker span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- 架构图 ---------------- */

.diagram {
  margin-top: 52px;
  padding: clamp(18px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.diagram__svg {
  display: block;
}

.diagram__mobile {
  display: none;
}

.diagram__kicker {
  margin-top: 30px;
  text-align: center;
  font-size: clamp(17px, 2.3vw, 23px);
  font-weight: 800;
  color: var(--ink);
}

.diagram__kicker span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.diagram__foot {
  margin-top: 14px;
  text-align: center;
  font-size: 13.8px;
  line-height: 1.8;
  color: var(--muted);
}

/* 移动端把闭环拆成竖排时间线,比横向滚一张 1240 宽的图可读得多。 */
.mflow {
  display: grid;
  gap: 12px;
}

.mflow__io {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.6px;
  font-weight: 600;
  line-height: 1.6;
}

.mflow__io--in {
  background: #e6f7fb;
  color: #0e6f85;
}

.mflow__io--out {
  background: #e7f6ef;
  color: #05664a;
}

.mflow__step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.mflow__n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}

.mflow__step h4 {
  margin: 3px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.mflow__step p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-3);
}

.mflow__loop {
  padding: 15px 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  font-size: 13.8px;
  font-weight: 600;
  color: var(--blue);
  text-align: center;
}

.mflow__hub {
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
}

.mflow__hub b {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
}

.mflow__hub ul {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  font-size: 13.6px;
  color: var(--ink-3);
}

/* ---------------- 核心能力 ---------------- */

.caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 52px;
}

.cap {
  padding: 30px 26px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.cap:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}

.cap__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-tint);
  color: var(--blue);
}

.cap h3 {
  margin-top: 18px;
  font-size: 18.5px;
  font-weight: 700;
}

.cap p {
  margin-top: 12px;
  font-size: 14.6px;
  line-height: 1.82;
  color: var(--ink-3);
}

/* ---------------- 合作方式 ---------------- */

.steps {
  /* 箭头占独立网格轨道,在两块卡片之间水平/垂直居中。
     与架构图同一套:圆头线段 + 实心三角,#3b6cff。整体放大一档,线加粗缩短。
     用 --arr-rot 转向。桌面蛇形:1 → 2 → 3 ↓ 4 ← 5 ← 6。 */
  --step-rail: 56px;
  --step-ink: #3b6cff;
  --arr-len: 26px;
  --arr-thick: 3.4px;
  --arr-head-w: 14px;
  --arr-head-h: 12px;
  --arr-head: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12' viewBox='0 0 14 12' fill='%233b6cff'%3E%3Cpath d='M0 0l14 6-14 6z'/%3E%3C/svg%3E");
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--step-rail) minmax(0, 1fr) var(--step-rail) minmax(0, 1fr);
  grid-template-rows: auto var(--step-rail) auto;
  margin-top: 52px;
}

.steps__list {
  display: contents;
}

.step:nth-child(1) { grid-column: 1; grid-row: 1; }
.step:nth-child(2) { grid-column: 3; grid-row: 1; }
.step:nth-child(3) { grid-column: 5; grid-row: 1; }
.step:nth-child(4) { grid-column: 5; grid-row: 3; }
.step:nth-child(5) { grid-column: 3; grid-row: 3; }
.step:nth-child(6) { grid-column: 1; grid-row: 3; }

.steps__arr {
  display: grid;
  place-items: center;
  pointer-events: none;
}

.steps__arr > span {
  display: block;
  position: relative;
  width: var(--arr-len);
  height: var(--arr-thick);
  border-radius: 999px;
  background: var(--step-ink);
  transform: rotate(var(--arr-rot, 0deg));
}

.steps__arr > span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: var(--arr-head-w);
  height: var(--arr-head-h);
  background: var(--arr-head) center / var(--arr-head-w) var(--arr-head-h) no-repeat;
  transform: translate(55%, -50%);
}

.steps__arr--12 { grid-column: 2; grid-row: 1; --arr-rot: 0deg; }
.steps__arr--23 { grid-column: 4; grid-row: 1; --arr-rot: 0deg; }
.steps__arr--34 { grid-column: 5; grid-row: 2; --arr-rot: 90deg; }
.steps__arr--45 { grid-column: 4; grid-row: 3; --arr-rot: 180deg; }
.steps__arr--56 { grid-column: 2; grid-row: 3; --arr-rot: 180deg; }

.step {
  padding: 28px 24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.step--paid .step__n {
  background: var(--brand-gradient);
  color: #04122e;
}

.step h3 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
}

.step p {
  margin-top: 11px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-3);
}

.step__badge {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e7f6ef;
  font-size: 12.5px;
  font-weight: 700;
  color: #05664a;
}

.pledge {
  margin-top: 40px;
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--surface-tint), #fff 70%);
  text-align: center;
}

.pledge b {
  display: block;
  font-size: clamp(18px, 2.5vw, 25px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pledge p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.82;
  color: var(--ink-3);
}

/* ---------------- 联系 ---------------- */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--radius-lg);
}

.card--console {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.card--sales {
  border: 1px solid rgba(0, 229, 255, 0.32);
  background:
    radial-gradient(420px 240px at 84% 0%, rgba(139, 92, 246, 0.24), transparent 66%),
    rgba(0, 229, 255, 0.075);
}

.card h3 {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 800;
}

.card p {
  margin-top: 12px;
  font-size: 14.8px;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.68);
}

.card__spacer {
  flex: 1;
  min-height: 20px;
}

/* 电话和邮箱是并列的两个入口,不分主次 —— 同样的字号、同样的处理,区别只在上面
   那行标签。这里没有沿用原来那个 clamp(26px, 4.4vw, 40px) 的巨号码:邮箱地址有
   16 个字符,同字号会比卡片还宽;而把邮箱单独做小,就等于替用户选了电话。 */
.reach {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.reach__k {
  display: block;
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.44);
}

.reach__v {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: #fff;
  /* 邮箱是一整串没有空格的字符,窄屏放不下时必须允许在任意位置断开,
     否则它会把暗色卡片顶出横向滚动条。 */
  overflow-wrap: anywhere;
  transition: color 0.18s ease;
}

.reach__v:hover {
  color: var(--cyan);
}

.card .btn {
  align-self: flex-start;
  margin-top: 24px;
}

/* ---------------- 联系方式弹层 ---------------- */

/* 号码不直接铺在卡片上。原生 <dialog> 打开后由 UA 居中;我们只负责尺寸、底色
   和关闭按钮。::backdrop 是点空白关闭的那一层。 */
.sheet {
  position: fixed;
  margin: auto;
  width: min(440px, calc(100vw - 32px));
  padding: 32px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: #0c1b3a;
  color: #fff;
  box-shadow: 0 24px 64px rgba(4, 12, 32, 0.55);
}

.sheet::backdrop {
  background: rgba(7, 16, 38, 0.72);
}

.sheet h3 {
  padding-right: 36px;
  font-size: 20px;
  font-weight: 800;
}

.sheet__lede {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.sheet .reach {
  margin-top: 22px;
}

.sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sheet__close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.card code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  color: #8ef4ff;
}

/* ---------------- 页脚 ---------------- */

.footer {
  padding: 44px 0 52px;
  background: #050c1c;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13.5px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.footer .brand__mark {
  width: 30px;
  height: 30px;
}

.footer .brand__text b {
  font-size: 17px;
}

.footer__meta {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer a:hover {
  color: #fff;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1080px) {
  .pains,
  .gives {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .caps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 两列蛇形:1 → 2 ↓ 3 ← 4 ↓ 5 → 6 */
  .steps {
    grid-template-columns: minmax(0, 1fr) var(--step-rail) minmax(0, 1fr);
    grid-template-rows: auto var(--step-rail) auto var(--step-rail) auto;
  }

  .step:nth-child(1) { grid-column: 1; grid-row: 1; }
  .step:nth-child(2) { grid-column: 3; grid-row: 1; }
  .step:nth-child(3) { grid-column: 3; grid-row: 3; }
  .step:nth-child(4) { grid-column: 1; grid-row: 3; }
  .step:nth-child(5) { grid-column: 1; grid-row: 5; }
  .step:nth-child(6) { grid-column: 3; grid-row: 5; }

  .steps__arr--12 { grid-column: 2; grid-row: 1; --arr-rot: 0deg; }
  .steps__arr--23 { grid-column: 3; grid-row: 2; --arr-rot: 90deg; }
  .steps__arr--34 { grid-column: 2; grid-row: 3; --arr-rot: 180deg; }
  .steps__arr--45 { grid-column: 1; grid-row: 4; --arr-rot: 90deg; }
  .steps__arr--56 { grid-column: 2; grid-row: 5; --arr-rot: 0deg; }

  /* 首屏两栏在这个宽度下右栏只剩 300 出头,四张卡会把「不改造你的系统」
     折成「不改造你的系 / 统」。宁可堆成一列,也不要过度折行。 */
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 导航收进汉堡菜单的断点是 1120px,而不是下面那些布局断点的 900px:五个导航项
   加上语言切换器和两个按钮,英文的 "How It Works" 在 1120 就会被折成三行,中文
   在 1024 也会五个全折。断点按最长的那一版定,两种语言用同一个值 —— 让断点跟着
   文案长短漂移,只会在下次改文案时再断一次。 */
@media (max-width: 1120px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: block;
    margin-left: 12px;
  }

  /* 收起态下 links 不在流里,得由语言切换器把右侧撑开。 */
  .lang {
    margin-left: auto;
  }

  /* 展开态:导航链接与 CTA 掉到条下面,变成竖排面板。 */
  .nav[data-open="true"] .nav__inner {
    height: auto;
    flex-wrap: wrap;
    padding-bottom: 20px;
  }

  .nav[data-open="true"] .nav__links,
  .nav[data-open="true"] .nav__cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    gap: 4px;
  }

  /* 展开时把面板排到汉堡按钮(order 5)之后,否则 100% 宽的 links 会挤在
     品牌与语言切换器之间,把首行拆成三行。 */
  .nav[data-open="true"] .nav__links {
    order: 6;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
  }

  .nav[data-open="true"] .nav__links a {
    padding: 11px 2px;
  }

  .nav[data-open="true"] .nav__cta {
    order: 7;
    gap: 10px;
    margin-top: 12px;
  }

  .nav[data-open="true"] .nav__cta .btn {
    justify-content: center;
    padding: 9px 16px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare,
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .diagram__svg {
    display: none;
  }

  .diagram__mobile {
    display: block;
  }

  .diagram {
    padding: 16px 14px 18px;
    margin-top: 32px;
  }

  .hero {
    padding: 56px 0 52px;
  }

  .section {
    padding: 56px 0;
  }

  .btn--lg {
    padding: 11px 20px;
    font-size: 15px;
  }
}

/* 导航条上品牌副标题最先该被牺牲:1280px 以下,英文副标题 + 五个导航项 + 语言
   切换器 + 两个按钮已经装不下,不隐藏它就得让 CTA 溢出。字标本身足够识别品牌,
   完整副标题在页脚照常显示。 */
@media (max-width: 1280px) {
  .nav .brand__text small {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 16px;
    --nav-h: 56px;
    --radius: 14px;
    --radius-lg: 18px;
  }

  body {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .slogan {
    gap: 7px;
    padding: 5px 12px 5px 10px;
    font-size: 12.5px;
  }

  .hero::after {
    height: 72px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: 1.55rem;
    line-height: 1.28;
  }

  .hero__lede {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.7;
  }

  .hero__actions {
    gap: 8px;
    margin-top: 20px;
  }

  /* 大号胶囊拉满整行会显得空且笨。窄屏用默认尺寸、并排能放下就并排。 */
  .btn--lg {
    padding: 8px 14px;
    font-size: 13.5px;
  }

  .hero__note {
    margin-top: 12px;
    font-size: 12.5px;
  }

  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fact {
    padding: 14px 13px 13px;
  }

  .fact__k {
    font-size: 13.5px;
  }

  .fact__v {
    font-size: 12px;
    line-height: 1.55;
  }

  .section {
    padding: 36px 0;
  }

  .section__head h2 {
    margin-top: 8px;
    font-size: 1.4rem;
    line-height: 1.35;
  }

  .section__head p {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.7;
  }

  .pains,
  .gives,
  .caps {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 24px;
  }

  .pain,
  .cap,
  .step,
  .give {
    padding: 18px 16px 18px;
  }

  .pain h3,
  .cap h3,
  .step h3 {
    margin-top: 10px;
    font-size: 16.5px;
  }

  .pain p,
  .cap p,
  .step p {
    margin-top: 8px;
    font-size: 13.8px;
    line-height: 1.65;
  }

  .creed__quote {
    margin-top: 24px;
    padding: 18px 18px;
    font-size: 15.5px;
    line-height: 1.7;
  }

  .compare {
    gap: 12px;
    margin-top: 24px;
  }

  .col {
    padding: 20px 16px 22px;
  }

  .col h3 {
    margin-top: 12px;
  }

  .creed__kicker {
    margin-top: 28px;
  }

  .diagram {
    margin-top: 24px;
    padding: 14px 12px 16px;
  }

  .mflow {
    gap: 8px;
  }

  .mflow__io,
  .mflow__step,
  .mflow__loop,
  .mflow__hub {
    padding: 12px 13px;
  }

  .mflow__step {
    gap: 10px;
  }

  .diagram__kicker {
    margin-top: 18px;
  }

  .steps {
    --step-rail: 32px;
    --arr-len: 18px;
    --arr-thick: 2.8px;
    --arr-head-w: 11px;
    --arr-head-h: 9px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto var(--step-rail) auto var(--step-rail) auto var(--step-rail) auto
      var(--step-rail) auto var(--step-rail) auto;
    margin-top: 24px;
  }

  .step:nth-child(1) { grid-column: 1; grid-row: 1; }
  .step:nth-child(2) { grid-column: 1; grid-row: 3; }
  .step:nth-child(3) { grid-column: 1; grid-row: 5; }
  .step:nth-child(4) { grid-column: 1; grid-row: 7; }
  .step:nth-child(5) { grid-column: 1; grid-row: 9; }
  .step:nth-child(6) { grid-column: 1; grid-row: 11; }

  .steps__arr--12 { grid-column: 1; grid-row: 2; --arr-rot: 90deg; }
  .steps__arr--23 { grid-column: 1; grid-row: 4; --arr-rot: 90deg; }
  .steps__arr--34 { grid-column: 1; grid-row: 6; --arr-rot: 90deg; }
  .steps__arr--45 { grid-column: 1; grid-row: 8; --arr-rot: 90deg; }
  .steps__arr--56 { grid-column: 1; grid-row: 10; --arr-rot: 90deg; }

  .step__n {
    width: 28px;
    height: 28px;
    font-size: 13.5px;
  }

  .step__badge {
    margin-top: 12px;
    padding: 3px 10px;
    font-size: 12px;
  }

  .pledge {
    margin-top: 22px;
    padding: 18px 16px;
  }

  .pledge b {
    font-size: 16.5px;
  }

  .pledge p {
    margin-top: 8px;
    font-size: 13.8px;
    line-height: 1.65;
  }

  .contact__grid {
    gap: 12px;
    margin-top: 24px;
  }

  .card {
    padding: 20px 16px 18px;
  }

  .card h3 {
    font-size: 17.5px;
  }

  .card p {
    margin-top: 8px;
    font-size: 13.8px;
    line-height: 1.65;
  }

  .card__spacer {
    min-height: 8px;
  }

  .card .btn {
    margin-top: 14px;
  }

  .sheet {
    width: min(440px, calc(100vw - 24px));
    padding: 22px 18px 20px;
  }

  .sheet h3 {
    font-size: 17.5px;
  }

  .reach {
    gap: 14px;
    margin-top: 16px;
  }

  .reach__v {
    font-size: 18px;
  }

  .footer {
    padding: 28px 0 36px;
  }

  .nav__toggle {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .footer__meta {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
