/* ============================================================
   裕宸安全 · 组件与区块
   只动 transform / opacity；锚点状态：hover / focus / active
   ============================================================ */

/* ---------- 滚动进度条 ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.progress-bar {
  height: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- 公告条 ---------- */
.notice {
  background: var(--ink-1);
  color: var(--ink-inv);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}

.notice-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.notice-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  background: var(--brand);
  color: var(--ink-inv);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}

.notice a {
  color: var(--ink-inv);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.notice a:hover {
  border-color: var(--ink-inv);
}

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: transparent;
  transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(245, 247, 250, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--sh-1);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: var(--fw-h);
  letter-spacing: -0.01em;
  color: var(--ink-1);
  white-space: nowrap;
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
  border-left: 1px solid var(--line-2);
  padding-left: 9px;
  margin-left: 2px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 13px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  border-radius: var(--r-pill);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.nav-links > a:hover {
  color: var(--ink-1);
  background: var(--brand-soft);
}

.nav-links > a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  cursor: pointer;
}

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-weight: var(--fw-m);
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--brand);
  color: var(--ink-inv);
  box-shadow: var(--sh-brand);
}

.btn--primary:hover {
  background: var(--brand-deep);
  color: var(--ink-inv);
}

/* 光扫：hover 时一道浅色斜带掠过 */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--ink {
  background: var(--ink-1);
  color: var(--ink-inv);
}

.btn--ink:hover {
  background: #000;
  color: var(--ink-inv);
}

.btn--line {
  background: transparent;
  color: var(--ink-1);
  border-color: var(--line-2);
}

.btn--line:hover {
  border-color: var(--ink-1);
  color: var(--ink-1);
}

.btn--quiet {
  background: var(--surface);
  color: var(--ink-1);
  border-color: var(--line);
  box-shadow: var(--sh-1);
}

.btn--quiet:hover {
  border-color: var(--brand-line);
  color: var(--brand-deep);
}

.btn--sm {
  height: 38px;
  padding: 0 18px;
  font-size: var(--fs-xs);
}

.btn--lg {
  height: 54px;
  padding: 0 30px;
  font-size: var(--fs-body);
}

.btn--block {
  width: 100%;
}

.btn svg {
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -12% -8% 0;
  z-index: -1;
  pointer-events: none;
}

/* 经纬网格：品牌母题，缓慢漂移 */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 62% 54% at 50% 26%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 62% 54% at 50% 26%, #000 0%, transparent 76%);
  animation: gridDrift 48s linear infinite;
}

@keyframes gridDrift {
  to {
    transform: translate3d(68px, 68px, 0);
  }
}

/* 顶部品牌光晕：呼吸 */
.hero-glow {
  position: absolute;
  left: 50%;
  top: -340px;
  width: 1080px;
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0) 66%);
  animation: glowBreathe 9s ease-in-out infinite;
}

@keyframes glowBreathe {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.06);
  }
}

/* 鼠标跟随光斑 */
.hero-spot {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 38%),
    rgba(37, 99, 235, 0.11),
    transparent 68%
  );
  transition: opacity var(--dur-slow) var(--ease-out);
}

.hero:hover .hero-spot {
  opacity: 1;
}

.hero-head {
  display: block;
}

/* 副标题 + 旁注：标题下方的不对称两栏 */
.hero-sub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 56px;
  align-items: start;
  margin-top: 32px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-micro);
  font-weight: var(--fw-b);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 26px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: dotPulse 2.4s var(--ease-inout) infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.72);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: var(--tr-display);
  font-weight: var(--fw-h);
  color: var(--ink-1);
  margin: 0;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-title .line > span {
  display: block;
}

.hero-title .line:nth-child(1) > span {
  animation-delay: 0.1s;
}

.hero-title .line:nth-child(2) > span {
  animation-delay: 0.2s;
}

.hero-title em {
  font-style: normal;
  color: var(--brand);
}

/* 小屏断行控制：避免「攻击链」被拆成「攻 / 击链」 */
.br-m {
  display: none;
}

@media (max-width: 430px) {
  .br-m {
    display: inline;
  }
}

/* 描边字：本页唯一的破格排版处理 */
.hero-title .hollow {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--brand);
}

/* Hero 右侧竖排旁注：打破栅格 */
.hero-aside {
  border-left: 1px solid var(--line-2);
  padding-left: 22px;
  padding-bottom: 10px;
}

.hero-aside p {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-3);
}

.hero-aside .aside-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-1);
  display: block;
  margin-bottom: 6px;
}

.hero-lead {
  max-width: 560px;
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-meta {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-4);
}

/* ---------- Hero 产品面板 ---------- */
.hero-figure {
  position: relative;
  margin-top: 64px;
  margin-bottom: 80px;
  perspective: 1600px;
}

.hero-panel {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-3);
  overflow: hidden;
  transform: rotateX(var(--tilt, 5deg)) rotateZ(-0.7deg) scale(var(--zoom, 1));
  transform-origin: 50% 100%;
  will-change: transform;
}

/* 实机截图：撑满容器，由 .hero-panel 的 overflow 裁出圆角 */
.panel-shot {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.panel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-3);
}

.panel-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--ink-4);
  letter-spacing: 0.06em;
}

.panel-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-pill);
  padding: 2px 8px;
}

.panel-body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--bg);
}

.panel-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
}

.panel-label {
  font-size: var(--fs-micro);
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.panel-score strong {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: var(--fw-h);
  color: var(--ink-1);
}

.panel-score span {
  font-size: var(--fs-xs);
  color: var(--ink-4);
}

.panel-chart {
  margin-top: 14px;
  width: 100%;
  height: auto;
}

.panel-chart .area {
  fill: var(--brand-soft);
}

.panel-chart .line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.panel-metric {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
}

.panel-metric b {
  display: block;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.panel-metric i {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 3px;
}

.panel-alerts {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.alert-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.sev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: var(--fw-m);
  white-space: nowrap;
}

.sev::before {
  content: "";
  width: 3px;
  height: 9px;
  border-radius: 1px;
  background: currentColor;
}

.sev--critical {
  color: var(--sev-critical);
  background: var(--sev-critical-soft);
  border: 1px solid var(--sev-critical-line);
}

.sev--high {
  color: var(--sev-high);
  background: var(--sev-high-soft);
  border: 1px solid var(--sev-high-line);
}

.sev--ok {
  color: var(--sev-low);
  background: var(--sev-low-soft);
  border: 1px solid var(--sev-low-line);
}

.alert-path {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  white-space: nowrap;
}

/* 面板下方渐隐，衔接页面底色 */
.hero-fade {
  position: relative;
  height: 96px;
  margin-top: -96px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(245, 247, 250, 0) 0%, var(--bg) 88%);
}

/* ---------- 指标条 ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 34px 26px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: var(--fw-h);
  color: var(--ink-1);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-num small {
  font-size: 0.4em;
  letter-spacing: 0;
  color: var(--ink-3);
  font-weight: var(--fw-m);
}

.stat-label {
  margin-top: 10px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ---------- 跑马灯 ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  white-space: nowrap;
}

.marquee-group span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.45;
}

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

/* ---------- 能力区：非对称 Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--brand-line);
}

.bento-card .ico {
  width: 34px;
  height: 34px;
  color: var(--brand);
  transition: transform var(--dur) var(--ease-out);
}

.bento-card:hover .ico {
  transform: translateY(-2px) scale(1.06);
}

.bento-card h3 {
  margin-top: 16px;
}

.bento-card p {
  margin-top: 8px;
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--ink-3);
}

/* 尺寸分配：故意不对称 */
.bento-a {
  grid-column: span 7;
}
.bento-b {
  grid-column: span 5;
}
.bento-c {
  grid-column: span 4;
}
.bento-d {
  grid-column: span 4;
}
.bento-e {
  grid-column: span 4;
}
.bento-f {
  grid-column: span 6;
}
.bento-g {
  grid-column: span 6;
}

.bento-a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  background: linear-gradient(160deg, var(--surface) 0%, var(--brand-tint) 130%);
}

.bento-a .bento-visual {
  margin-top: 22px;
}

/* 迷你可视化：节点网络 */
.mini-net {
  width: 100%;
  height: auto;
}

.mini-net .edge {
  stroke: var(--brand-line);
  stroke-width: 1;
  fill: none;
}

.mini-net .node {
  fill: var(--surface);
  stroke: var(--brand);
  stroke-width: 1.6;
}

.mini-net .node--hot {
  fill: var(--brand);
}

/* 迷你柱状图 */
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 54px;
  margin-top: 18px;
}

.mini-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
  transform-origin: 50% 100%;
}

@keyframes barGrow {
  from {
    transform: scaleY(0.02);
    opacity: 0.25;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* 动画带 fill:both，起始态是「压扁」。只在允许动效时才启用，
   否则降级环境下柱子会永久停在起始态（近乎不可见）。 */
@media (prefers-reduced-motion: no-preference) {
  .bento-card.in .mini-bars i {
    animation: barGrow 0.65s var(--ease-out) both;
  }

  .bento-card.in .mini-bars i:nth-child(1) {
    animation-delay: 60ms;
  }
  .bento-card.in .mini-bars i:nth-child(2) {
    animation-delay: 110ms;
  }
  .bento-card.in .mini-bars i:nth-child(3) {
    animation-delay: 160ms;
  }
  .bento-card.in .mini-bars i:nth-child(4) {
    animation-delay: 210ms;
  }
  .bento-card.in .mini-bars i:nth-child(5) {
    animation-delay: 260ms;
  }
  .bento-card.in .mini-bars i:nth-child(6) {
    animation-delay: 310ms;
  }
  .bento-card.in .mini-bars i:nth-child(7) {
    animation-delay: 360ms;
  }
}

/* 代码片段 */
.mini-code {
  margin-top: 16px;
  background: var(--dark);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.85;
  color: var(--dark-ink-2);
  overflow: hidden;
}

.mini-code .k {
  color: var(--brand-bright);
}
.mini-code .s {
  color: #e0b25c;
}
.mini-code .c {
  color: var(--dark-ink-3);
}

/* ---------- 深色叙事区：攻击链 ---------- */
.chain-sec {
  position: relative;
  background: var(--dark);
  color: var(--dark-ink);
  overflow: hidden;
  padding: var(--s9) 0;
}

.chain-sec .label {
  color: var(--brand-bright);
}

.chain-sec .h2 {
  color: var(--dark-ink);
}

.chain-sec .lead {
  color: var(--dark-ink-2);
}

.chain-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000, transparent 78%);
  opacity: 0.6;
}

.chain-stage {
  position: relative;
  margin-top: 56px;
}

.chain-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chain-base {
  fill: none;
  stroke: var(--dark-line);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chain-live {
  fill: none;
  stroke: var(--brand-bright);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

@keyframes chainDraw {
  from {
    stroke-dashoffset: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .chain-stage.in .chain-live {
    animation: chainDraw 2.4s var(--ease-inout) both;
  }
}

.chain-node {
  fill: var(--dark);
  stroke: var(--brand-bright);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes nodeIn {
  from {
    opacity: 0;
    transform: scale(0.35);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .chain-stage.in .chain-node {
    animation: nodeIn 0.45s var(--ease-out) both;
  }

  .chain-stage.in .chain-node:nth-of-type(1) {
    animation-delay: 0.15s;
  }
  .chain-stage.in .chain-node:nth-of-type(2) {
    animation-delay: 0.6s;
  }
  .chain-stage.in .chain-node:nth-of-type(3) {
    animation-delay: 1.05s;
  }
  .chain-stage.in .chain-node:nth-of-type(4) {
    animation-delay: 1.5s;
  }
  .chain-stage.in .chain-node:nth-of-type(5) {
    animation-delay: 1.95s;
  }
}

.chain-ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes ringIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .chain-stage.in .chain-ring {
    animation: ringIn 0.8s 2.1s var(--ease-out) both, ringSpin 18s 2.9s linear infinite;
  }
}

@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}

.chain-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.chain-step {
  border-top: 1px solid var(--dark-line);
  padding-top: 16px;
}

.chain-step b {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dark-ink-3);
  font-weight: var(--fw-n);
}

.chain-step strong {
  display: block;
  margin-top: 7px;
  font-size: 15px;
  font-weight: var(--fw-b);
  color: var(--dark-ink);
}

.chain-step span {
  display: block;
  margin-top: 5px;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--dark-ink-3);
}

/* ---------- 端侧 AI ---------- */
.ai {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.ai-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 34px;
}

.ai-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.ai-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.ai-ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--brand);
}

.ai-item b {
  display: block;
  font-size: 15px;
  font-weight: var(--fw-b);
  color: var(--ink-1);
}

.ai-item p {
  margin-top: 5px;
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--ink-3);
}

.ai-panel {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  overflow: hidden;
}

.ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.ai-panel-head b {
  font-size: var(--fs-sm);
  font-weight: var(--fw-b);
}

.ai-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ok);
  background: var(--ok-soft);
  border: 1px solid rgba(31, 122, 69, 0.28);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  animation: dotPulse 2s var(--ease-inout) infinite;
}

.ai-panel-body {
  padding: 6px 20px 18px;
}

.ai-row {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-xs);
}

.ai-row:last-child {
  border-bottom: 0;
}

.ai-key {
  flex-shrink: 0;
  width: 56px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  padding-top: 1px;
}

.ai-val {
  color: var(--ink-2);
  line-height: 1.7;
}

.ai-val strong {
  color: var(--brand-deep);
  font-weight: var(--fw-b);
}

.ai-val code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-2);
  border-radius: 3px;
  padding: 1px 5px;
}

/* ---------- 下载 CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: var(--ink-inv);
  border-radius: var(--r-xl);
  padding: 64px;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 50%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 90% at 80% 50%, #000, transparent 72%);
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: var(--tr-heading);
  font-weight: var(--fw-h);
  max-width: 520px;
}

.cta p {
  margin-top: 14px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-os {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-inv);
  color: var(--ink-1);
  border-radius: var(--r-md);
  padding: 12px 20px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.cta-os:hover {
  transform: translateY(-2px);
  color: var(--ink-1);
}

.cta-os svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.cta-os small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}

.cta-os b {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-b);
  line-height: 1.3;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--surface);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin-top: 16px;
  font-size: var(--fs-xs);
  line-height: 1.9;
  color: var(--ink-3);
  max-width: 300px;
}

.footer-col h4 {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: var(--fw-b);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--ink-3);
}

.footer-legal a:hover {
  color: var(--ink-2);
}

/* ============================================================
   实机界面画廊（标签切换）
   约束：标签与图注默认都可见/可读，JS 只做切换增强。
   ============================================================ */
.ui-gal {
  margin-top: 40px;
}

.ui-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.ui-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-3);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-m);
  line-height: 1;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.ui-tab i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-4);
  transition: color var(--dur-fast) var(--ease-out);
}

.ui-tab:hover {
  color: var(--ink-1);
  background: var(--bg-2);
}

.ui-tab:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.ui-tab[aria-selected="true"] {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: var(--brand-line);
}

.ui-tab[aria-selected="true"] i {
  color: var(--brand);
}

.ui-count {
  margin-left: auto;
  padding-right: 4px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.ui-stage {
  margin: 24px 0 0;
}

.ui-frame {
  position: relative;
  /* 与截图原始比例一致（1.68:1），避免 cover 把左右边缘切掉 */
  aspect-ratio: 1.68;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--dark);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-3);
}

.ui-frame picture {
  display: contents;
}

.ui-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.012);
  transition: opacity var(--dur) var(--ease-out),
    transform var(--dur-scene) var(--ease-out);
}

.ui-shot.is-on {
  opacity: 1;
  transform: none;
}

.ui-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-top: 18px;
}

.ui-caption {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
}

.ui-cap {
  grid-area: 1 / 1;
  max-width: 720px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out);
}

.ui-cap.is-on {
  opacity: 1;
  visibility: visible;
}

.ui-cap h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: var(--fw-b);
  letter-spacing: 0;
  color: var(--ink-1);
}

.ui-cap h3 span {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: var(--fw-n);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.ui-cap p {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: pretty;
}

.ui-open {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.ui-open:hover {
  color: var(--brand);
  border-color: var(--brand-line);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .hero-sub {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-aside {
    border-left: 0;
    border-top: 1px solid var(--line-2);
    padding-left: 0;
    padding-top: 18px;
    max-width: 460px;
  }

  .hero-aside .aside-num {
    font-size: 34px;
    display: inline;
    margin-right: 8px;
  }

  .bento-a,
  .bento-b,
  .bento-f,
  .bento-g {
    grid-column: span 12;
  }

  .bento-c,
  .bento-d,
  .bento-e {
    grid-column: span 6;
  }

  .chain-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }

  /* 触摸目标不小于 44×44 */
  .btn--sm {
    height: 44px;
    padding: 0 16px;
  }

  .brand-en {
    display: none;
  }

  .ai {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .cta {
    padding: 44px 32px;
  }
}

@media (max-width: 767px) {
  .hero {
    padding-top: 44px;
  }

  .hero-eyebrow {
    margin-bottom: 18px;
  }

  .hero-title {
    letter-spacing: -0.03em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-figure {
    margin-top: 40px;
  }

  .hero-panel {
    transform: none;
    animation: none;
    opacity: 1;
    border-radius: var(--r-md);
  }

  .panel-body {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .hero-fade {
    height: 64px;
    margin-top: -64px;
  }

  .bento-card {
    grid-column: span 12 !important;
    padding: 22px;
  }

  .bento-a {
    min-height: 0;
  }

  .chain-steps {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .cta {
    padding: 36px 24px;
    border-radius: var(--r-lg);
  }

  .cta-actions {
    width: 100%;
  }

  .cta-os {
    flex: 1;
    min-width: 150px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 画廊：标签改为横向滑动，避免两行挤压 */
  .ui-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom-color: var(--line-2);
    /* 右缘渐隐，提示还有标签可滑 */
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 86%, transparent 100%);
  }

  .ui-tabs::-webkit-scrollbar {
    display: none;
  }

  .ui-tab {
    flex: 0 0 auto;
    padding: 8px 13px;
  }

  .ui-count {
    display: none;
  }

  .ui-frame {
    border-radius: var(--r-md);
  }

  .ui-foot {
    flex-direction: column;
    gap: 12px;
  }

  .ui-cap {
    max-width: none;
  }
}

/* 移动端抽屉 */
.nav-links.is-open {
  display: flex;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 12px 20px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  box-shadow: var(--sh-2);
}

.nav-links.is-open > a {
  height: 46px;
  border-radius: var(--r-sm);
  font-size: var(--fs-body);
}
