/* ==========================================================================
   LuckNum · 灵枢智能 — Embodied AI
   Design system + layout
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:          #f5f7f9;
  --bg-elev:     #ffffff;

  --panel:       rgba(255, 255, 255, .90);
  --panel-hi:    #ffffff;
  --line:        rgba(16, 28, 48, .10);
  --line-2:      rgba(16, 28, 48, .18);

  --text:        #0e1729;
  --dim:         #4a586e;
  --mute:        #5f6e87;

  /* 浅色主题：白略灰底 + 深色文字。
     品牌三色在白底上整体取较深档位（青色最易偏浅，单独取 700 档），
     以保证小号等宽字（eyebrow / chips / code 等）的对比度达标。
     改这三个值会同步改变 --grad 与 --grad-soft；
     注意正文另有约 40 处带透明度的 rgba(...) 混色为独立硬编码，
     换肤时需一并手工替换，详见 README「改配色」。 */
  --cyan:        #0e7490;
  --indigo:      #4f46e5;
  --violet:      #7c3aed;

  --grad:        linear-gradient(115deg, var(--cyan) 0%, var(--indigo) 52%, var(--violet) 100%);
  --grad-soft:   linear-gradient(115deg,
                   color-mix(in srgb, var(--cyan) 16%, transparent),
                   color-mix(in srgb, var(--indigo) 16%, transparent) 52%,
                   color-mix(in srgb, var(--violet) 16%, transparent));

  --wrap:        1280px;
  --gutter:      clamp(20px, 4vw, 40px);
  --sect-y:      clamp(88px, 11vw, 158px);

  --r-md:        16px;
  --r-lg:        22px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
               "Source Han Sans SC", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --ease:        cubic-bezier(.16, 1, .3, 1);
  --shadow-lg:   0 24px 56px -26px rgba(15, 23, 42, .18);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.14; letter-spacing: -.022em; font-weight: 600; }
p { margin: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(14, 116, 144, .22); color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. Background layer ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, rgba(16, 28, 48, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 28, 48, .05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 100% 68% at 50% 0%, #000 12%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 100% 68% at 50% 0%, #000 12%, transparent 82%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: .26;
}
.bg-glow--cyan {
  width: 52vw; height: 52vw;
  top: -18vw; left: -12vw;
  background: radial-gradient(circle,
    rgba(14, 116, 144, .18) 0%,
    rgba(14, 116, 144, .10) 28%,
    rgba(14, 116, 144, .035) 52%,
    rgba(14, 116, 144, 0) 76%);
}
.bg-glow--violet {
  width: 48vw; height: 48vw;
  top: 26vw; right: -14vw;
  background: radial-gradient(circle,
    rgba(124, 58, 237, .16) 0%,
    rgba(124, 58, 237, .09) 28%,
    rgba(124, 58, 237, .03) 52%,
    rgba(124, 58, 237, 0) 76%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* ---------- 4. Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 120;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(14, 116, 144, .35);
  transition: width .1s linear;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(245, 247, 249, .82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text b {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.brand__text i {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 8px 13px;
  font-size: 14px;
  color: var(--dim);
  border-radius: 8px;
  transition: color .22s, background .22s;
}
.nav a:hover { color: var(--text); background: var(--panel-hi); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 1px;
  width: 16px; height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--grad);
}

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

/* language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  transition: border-color .25s, color .25s;
}
.lang-toggle:hover { border-color: var(--line-2); }
.lang-toggle__sep { opacity: .4; }
.lang-toggle__opt { transition: color .2s; }
.lang-toggle__opt.is-active { color: var(--cyan); }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 15px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-py: 12px;
  --btn-px: 22px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: var(--btn-py) var(--btn-px);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 550;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .3s, border-color .25s, background .25s, color .25s;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 30px -14px rgba(14, 116, 144, .38);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(79, 70, 229, .34);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line-2);
  background: var(--panel);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 116, 144, .45);
  background: var(--panel-hi);
}

.btn--sm { --btn-py: 9px; --btn-px: 17px; font-size: 13.5px; }

/* ---------- 7. Shared section bits ---------- */
.section {
  position: relative;
  z-index: 1;
  padding-block: var(--sect-y);
}
.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(16, 28, 48, .035) 14%, rgba(16, 28, 48, .035) 86%, transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(14, 116, 144, .35);
  animation: pulseDot 2.6s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(14, 116, 144, .32); }
  70%  { box-shadow: 0 0 0 9px rgba(14, 116, 144, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 116, 144, 0); }
}

.sec-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head--center { max-width: 760px; margin-inline: auto; text-align: center; }
.sec-head h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 620;
  margin-bottom: 20px;
}
.sec-head__lead {
  font-size: clamp(15.5px, 1.35vw, 17.5px);
  color: var(--dim);
  line-height: 1.78;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding-top: 128px;
  padding-bottom: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(64px, 8vw, 104px);
}

.hero__title {
  font-size: clamp(44px, 7.2vw, 92px);
  font-weight: 640;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: 26px;
}

.hero__lead {
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--dim);
  line-height: 1.8;
  max-width: 34em;
  margin-bottom: 36px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__stats dt {
  font-size: 12.5px;
  color: var(--mute);
  letter-spacing: .02em;
  margin-bottom: 6px;
}
.hero__stats dd {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 620;
  letter-spacing: -.03em;
  line-height: 1;
}
.hero__stats dd em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: .04em;
}

/* hero visual */
.hero__visual { position: relative; }

.viz-frame {
  position: relative;
  padding: 1px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(14, 116, 144, .40), rgba(79, 70, 229, .16) 42%, rgba(124, 58, 237, .34));
  box-shadow: var(--shadow-lg), 0 0 64px -26px rgba(79, 70, 229, .32);
  isolation: isolate;
  /* 裁剪：__scan 的扫描动画会 translateY 到 300%，不裁剪会溢出成一条横线 */
  overflow: hidden;
}
.viz-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  object-position: 54% 30%;
  border-radius: calc(var(--r-lg) - 1px);
  filter: saturate(1.06) contrast(1.05);
}
.viz-frame__scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 34%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .13) 62%, rgba(34, 211, 238, .5));
  mix-blend-mode: screen;
  border-radius: calc(var(--r-lg) - 1px);
  animation: scan 5.6s cubic-bezier(.55, 0, .45, 1) infinite;
}
@keyframes scan {
  0%, 12%   { transform: translateY(-34%); opacity: 0; }
  22%       { opacity: 1; }
  78%       { opacity: 1; }
  92%, 100% { transform: translateY(300%); opacity: 0; }
}

.viz-frame__corner {
  position: absolute;
  z-index: 3;
  width: 20px; height: 20px;
  border: 1.5px solid rgba(34, 211, 238, .85);
  pointer-events: none;
}
.viz-frame__corner.tl { top: 12px;    left: 12px;    border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.viz-frame__corner.tr { top: 12px;    right: 12px;   border-left: 0;  border-bottom: 0; border-radius: 0 6px 0 0; }
.viz-frame__corner.bl { bottom: 12px; left: 12px;    border-right: 0; border-top: 0;    border-radius: 0 0 0 6px; }
.viz-frame__corner.br { bottom: 12px; right: 12px;   border-left: 0;  border-top: 0;    border-radius: 0 0 6px 0; }

.float-tag {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  box-shadow: 0 14px 34px -18px rgba(15, 23, 42, .22);
  animation: floaty 6s ease-in-out infinite;
}
.float-tag b { font-weight: 550; color: var(--text); }
.float-tag i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--cyan);
}
.float-tag .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, .55);
}
.float-tag--a { top: 8%;  left: -26px;              animation-delay: 0s; }
.float-tag--b { top: 47%; right: -30px;             animation-delay: -2s; }
.float-tag--c { bottom: 9%; left: -12px;            animation-delay: -4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* marquee */
.hero__marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 16px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
.marquee-track span:nth-child(even) { color: rgba(14, 116, 144, .55); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 9. Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: clamp(52px, 7vw, 88px);
}
.pillar {
  position: relative;
  padding: 34px 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
  transition: border-color .35s, transform .45s var(--ease), background .35s;
}
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 0% 0%, rgba(8, 145, 178, .10), transparent 58%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--line-2); }
.pillar:hover::after { opacity: 1; }

.pillar__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: .16em;
  margin-bottom: 22px;
}
.pillar h3 { font-size: 19px; margin-bottom: 12px; }
.pillar p { font-size: 14.5px; color: var(--dim); line-height: 1.75; }

/* ---------- 10. Wide figure ---------- */
.wide-figure {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.wide-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  opacity: .88;
  transition: opacity .6s var(--ease), transform 1.2s var(--ease);
}
.wide-figure:hover img { opacity: 1; transform: scale(1.022); }
.wide-figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 30px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(226, 234, 245, .85);
  background: linear-gradient(180deg, transparent, rgba(4, 6, 12, .9));
}

/* ---------- 11. Tech grid ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tech-card {
  position: relative;
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(170deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .74));
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .35s;
}
.tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .45s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(8, 145, 178, .11), transparent 62%);
  pointer-events: none;
}
.tech-card:hover { transform: translateY(-5px); border-color: rgba(14, 116, 144, .42); }
.tech-card:hover::before { opacity: 1; }

.tech-card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 24px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: var(--grad-soft);
  color: var(--cyan);
}
.tech-card__icon svg { width: 23px; height: 23px; }
.tech-card h3 { font-size: 17.5px; margin-bottom: 12px; }
.tech-card p { font-size: 14px; color: var(--dim); line-height: 1.75; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.chips li {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 28, 48, .03);
}

/* ---------- 12. Stack ---------- */
.stack {
  position: relative;
  display: grid;
  gap: 14px;
  /* 层级轴：圆心相对 .stack 左边缘的位置 = 行边框 1px + .stack__code 的 left 24px。
     .stack__spine 与 .stack__code 共用该值，保证轴线始终穿过圆点中心。 */
  --spine-x: 25px;
}

.stack__spine {
  position: absolute;
  left: var(--spine-x); top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(14, 116, 144, .48), rgba(67, 56, 202, .38), rgba(124, 58, 237, .48));
}

.stack__row {
  position: relative;
  display: grid;
  grid-template-columns: 172px 1fr;
  align-items: center;
  gap: 28px;
  padding: 22px 28px 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  transition: border-color .35s, background .35s, transform .4s var(--ease);
}
.stack__row:hover {
  border-color: rgba(14, 116, 144, .42);
  background: var(--panel-hi);
  transform: translateX(5px);
}

.stack__label { position: relative; padding-left: 74px; }
.stack__code {
  position: absolute;
  /* 减去行边框宽度，使圆心正好落在 --spine-x 上 */
  left: calc(var(--spine-x) - 1px); top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--cyan);
}
.stack__label h3 { font-size: 17px; margin-bottom: 2px; }
.stack__label p {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

.stack__items { display: flex; flex-wrap: wrap; gap: 8px; }
.stack__items li {
  padding: 7px 14px;
  font-size: 13px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 28, 48, .03);
  transition: color .25s, border-color .25s;
}
.stack__row:hover .stack__items li { color: var(--text); border-color: rgba(14, 116, 144, .28); }

/* ---------- 13. Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .35s, box-shadow .5s;
}
.product:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 116, 144, .40);
  box-shadow: 0 30px 60px -38px rgba(14, 116, 144, .34);
}

.product__media { position: relative; overflow: hidden; }
.product__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(255, 255, 255, .92));
}
.product__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.product:hover .product__media img { transform: scale(1.06); }

.product__body { padding: 26px 26px 28px; }
.product__code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--cyan);
  margin-bottom: 14px;
}
.product h3 { font-size: 20px; margin-bottom: 12px; }
.product p { font-size: 14px; color: var(--dim); line-height: 1.75; }

.spec-row {
  display: flex;
  gap: 26px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.spec-row li { display: flex; align-items: baseline; gap: 4px; }
.spec-row b {
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.spec-row span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--mute);
}

/* ---------- 14. Scenarios ---------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: clamp(52px, 7vw, 88px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
}
.scenario {
  position: relative;
  padding: 34px 30px;
  background: var(--bg);
  transition: background .4s;
}
.scenario::after {
  content: "";
  position: absolute;
  left: 30px; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width .5s var(--ease);
}
.scenario:hover { background: var(--bg-elev); }
.scenario:hover::after { width: calc(100% - 60px); }
.scenario h3 { font-size: 17px; margin-bottom: 10px; }
.scenario p { font-size: 13.5px; color: var(--dim); line-height: 1.72; }

/* ---------- 15. Metrics ---------- */
.section--metrics::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(67, 56, 202, .07), transparent 70%);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
}
.metric {
  padding: 42px 34px;
  background: var(--bg);
  transition: background .4s;
}
.metric:hover { background: var(--bg-elev); }
.metric b {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 640;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric b em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .02em;
  -webkit-text-fill-color: var(--cyan);
  color: var(--cyan);
}
.metric > span { font-size: 14px; color: var(--dim); }

/* ---------- 16. Timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before {
  content: "";
  position: absolute;
  /* 与 .timeline__mark 同心：圆点宽 48px，圆心在 24px 处 */
  left: 24px; top: 14px; bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, rgba(14, 116, 144, .5), rgba(67, 56, 202, .42), rgba(124, 58, 237, .5));
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 30px;
  padding-bottom: 38px;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  transition: border-color .35s, box-shadow .35s;
}
.timeline__item:hover .timeline__mark {
  border-color: rgba(14, 116, 144, .55);
  box-shadow: 0 0 26px -6px rgba(14, 116, 144, .35);
}

.timeline__content { padding-top: 5px; }
.timeline__content time {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--mute);
  margin-bottom: 9px;
}
.timeline__content h3 { font-size: 19px; margin-bottom: 9px; }
.timeline__content p { font-size: 14.5px; color: var(--dim); line-height: 1.75; max-width: 62em; }

/* ---------- 17. Contact ---------- */
.contact-shell {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(170deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .70));
}
.contact__glow {
  position: absolute;
  inset: -40% -10% auto;
  height: 120%;
  background: radial-gradient(ellipse at 50% 0%, rgba(67, 56, 202, .13), transparent 62%);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  padding: clamp(44px, 6vw, 78px) clamp(26px, 5vw, 68px);
  text-align: center;
}
.contact__inner h2 {
  font-size: clamp(28px, 3.9vw, 46px);
  margin-bottom: 18px;
}
.contact__lead {
  font-size: 16px;
  color: var(--dim);
  max-width: 44em;
  margin-inline: auto;
  margin-bottom: 44px;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 900px;
  margin-inline: auto;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(16, 28, 48, .04);
  text-align: left;
  transition: border-color .3s, transform .4s var(--ease), background .3s;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 116, 144, .45);
  background: rgba(255, 255, 255, .96);
}
.contact-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.contact-card__value { font-size: 15px; color: var(--text); word-break: break-all; }

/* ---------- 18. Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--line);
  padding-top: 62px;
  background: linear-gradient(180deg, transparent, rgba(16, 28, 48, .05));
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.15fr 2fr;
  gap: 56px;
  padding-bottom: 52px;
}
.footer__brand p {
  margin-top: 18px;
  font-size: 14px;
  color: var(--mute);
  max-width: 26em;
}
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__nav h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer__nav a {
  display: block;
  font-size: 14px;
  color: var(--dim);
  padding: 5px 0;
  transition: color .22s, transform .22s;
}
.footer__nav a:hover { color: var(--text); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px 28px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--mute);
}
.footer-bottom__meta { font-family: var(--font-mono); letter-spacing: .1em; }

/* ---------- 19. Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1100px) {
  .tech-grid,
  .product-grid,
  .scenario-grid,
  .contact-cards,
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .stack__row { grid-template-columns: 1fr; gap: 16px; padding: 22px 24px; }
  .stack__spine { display: none; }
  .stack__label { padding-left: 0; }
  .stack__code { position: static; transform: none; margin-right: 10px; display: inline-grid; vertical-align: middle; }
  .stack__label h3, .stack__label p { display: inline-block; }
  .stack__label p { margin-left: 10px; }
}

@media (max-width: 920px) {
  .nav {
    position: fixed;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 14px var(--gutter) 26px;
    background: rgba(245, 247, 249, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 12px; font-size: 15.5px; }
  .nav a.is-active::after { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn--sm { display: none; }

  .hero { padding-top: 108px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { order: -1; }
  .float-tag--a { left: 4px; }
  .float-tag--b { right: 6px; }
  .float-tag--c { left: 12px; }

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

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .tech-grid,
  .product-grid,
  .scenario-grid,
  .contact-cards,
  .metrics { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(38px, 12vw, 52px); }
  .hero__stats { gap: 22px 34px; }
  .wide-figure img { aspect-ratio: 16 / 10; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
  .spec-row { gap: 18px; }
  .float-tag { padding: 7px 11px; font-size: 11px; }
  .hero__visual .float-tag--a, .hero__visual .float-tag--c { display: none; }
  .viz-frame img { aspect-ratio: 4 / 3.4; }
}

/* ---------- 21. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .scroll-progress, .bg-layer, .hero__marquee { display: none; }
  body { background: #fff; color: #000; }
}
