/* =========================================================
   帧屿实验室 · FRAME ISLE LAB
   Design System & Stylesheet
   Aesthetic: deep-space "observatory / lab" — precise, editorial, technical
   Avoids purple-gradient cliché. Signal accent = mint-teal (#57e3c4).
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Surfaces — deep ink */
  --ink-950: #060911;
  --ink-900: #080c16;
  --ink-850: #0b1018;
  --ink-800: #0f151f;
  --surface: #121a27;
  --surface-2: #18222f;
  --surface-3: #1f2b3a;

  /* Lines & borders */
  --line: rgba(146, 170, 200, 0.14);
  --line-strong: rgba(146, 170, 200, 0.26);

  /* Text */
  --text: #eaf0f8;
  --text-dim: #9fadc2;
  --text-faint: #62718a;

  /* Signal accent (primary) */
  --accent: #57e3c4;
  --accent-bright: #7df0d8;
  --accent-deep: #2bb89c;
  --accent-soft: rgba(87, 227, 196, 0.12);
  --accent-glow: rgba(87, 227, 196, 0.38);

  /* Energy accent (sparing) */
  --amber: #ffb454;
  --amber-soft: rgba(255, 180, 84, 0.14);

  /* Semantic */
  --ok: #57e3c4;
  --warn: #ffb454;
  --danger: #ff6b6b;

  /* Type */
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Archivo", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing — 4px base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --s20: 80px; --s24: 96px; --s32: 128px;

  /* Radii */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  /* Shadow & blur */
  --shadow-card: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px var(--accent-soft), 0 24px 60px -28px var(--accent-glow);
  --blur: 14px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms var(--ease);
  --t-mid: 320ms var(--ease);
  --t-slow: 640ms var(--ease);

  --maxw: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--ink-950); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s6); }
.section { position: relative; padding: var(--s24) 0; }
.section--tight { padding: var(--s16) 0; }

/* eyebrow / technical label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.section-title {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
  max-width: 18ch;
}
.section-title .hl { color: var(--accent); }
.section-lead {
  margin-top: var(--s5);
  color: var(--text-dim);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 60ch;
  line-height: 1.7;
}

/* ---------- Header / Nav ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 61;
  height: 36px; background: rgba(6, 9, 17, 0.92);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.topbar__note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-faint); }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.lang-switch__btn {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim);
  background: transparent; border: 1px solid transparent; border-radius: 100px;
  padding: 4px 11px; cursor: pointer; transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.lang-switch__btn:hover { color: var(--text); }
.lang-switch__btn.is-active { color: var(--ink-950); background: var(--accent); border-color: var(--accent); font-weight: 600; }

.site-header {
  position: fixed; inset: 36px 0 auto 0; z-index: 60;
  background: rgba(8, 12, 22, 0.5);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: background var(--t-mid), border-color var(--t-mid), backdrop-filter var(--t-mid);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: var(--s3); }
.brand__mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: radial-gradient(120% 120% at 30% 20%, rgba(87,227,196,0.18), transparent 60%);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
.brand__name span { color: var(--accent); }
.brand__sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28em; color: var(--text-faint); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: var(--s8); }
.nav__link {
  position: relative; font-size: 14.5px; color: var(--text-dim);
  transition: color var(--t-fast);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--accent); transition: width var(--t-mid);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: var(--s4); }

/* 中宽屏及以下统一走汉堡菜单，避免链接与 CTA 挤压重叠（断点见下方 max-width:1180px） */

/* buttons */
.btn {
  --bg: transparent; --fg: var(--text); --bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 0 var(--s5); height: 46px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd);
  border-radius: var(--r-pill);
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--primary {
  --bg: var(--accent); --fg: #05130f; --bd: var(--accent);
  box-shadow: 0 10px 30px -12px var(--accent-glow);
}
.btn--primary:hover { box-shadow: 0 16px 38px -12px var(--accent-glow); background: var(--accent-bright); }
.btn--ghost { --bg: rgba(255,255,255,0.02); --bd: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { height: 40px; padding: 0 var(--s4); font-size: 13.5px; }
.btn--block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

.nav__toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); background: transparent; border-radius: 10px; align-items: center; justify-content: center; }
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text); transition: transform var(--t-fast); }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 72px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.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: 64px 64px;
  mask-image: radial-gradient(120% 90% at 70% 10%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 0%, transparent 75%);
  opacity: 0.5;
}
.hero__glow {
  position: absolute; width: 70vw; height: 70vw; right: -20vw; top: -25vw;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero__grain { position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__status {
  display: inline-flex; align-items: center; gap: var(--s3);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgba(255,255,255,0.02); font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim); letter-spacing: 0.04em; margin-bottom: var(--s6);
}
.hero__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__title {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98; letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero__title .hl { color: var(--accent); }
.hero__title .out { -webkit-text-stroke: 1px var(--text-faint); color: transparent; }
.hero__sub { margin-top: var(--s6); max-width: 56ch; color: var(--text-dim); font-size: clamp(15px, 1.7vw, 19px); line-height: 1.7; }
.hero__actions { margin-top: var(--s8); display: flex; flex-wrap: wrap; gap: var(--s4); }

.hero__metrics { margin-top: var(--s16); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); border-top: 1px solid var(--line); padding-top: var(--s8); }
.metric__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); color: var(--text); }
.metric__num .u { color: var(--accent); font-size: 0.6em; margin-left: 2px; }
.metric__label { margin-top: var(--s2); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }

/* scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--text-faint); display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- About / 概览 ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s16); align-items: start; }
.about__lead { font-size: clamp(18px, 2.2vw, 24px); line-height: 1.5; color: var(--text); }
.about__lead b { color: var(--accent); font-weight: 700; }
.about__body { color: var(--text-dim); margin-top: var(--s6); line-height: 1.75; }
.principles { display: grid; gap: var(--s4); }
.principle {
  display: flex; gap: var(--s4); padding: var(--s5);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
  transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.principle:hover { border-color: var(--line-strong); transform: translateX(4px); background: var(--accent-soft); }
.principle__ix { font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 2px; }
.principle__h { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.principle__p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }

/* ---------- Services (7 directions) ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); margin-top: var(--s12); }
.service {
  position: relative; padding: var(--s8);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(87,227,196,0.06), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  overflow: hidden;
  transition: border-color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
}
.service::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 80% at 50% -20%, var(--accent-soft), transparent 60%);
  opacity: 0; transition: opacity var(--t-mid);
}
.service:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.service:hover::before { opacity: 1; }
.service__top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); }
.service__ix { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); letter-spacing: 0.1em; }
.service__icon {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  display: grid; place-items: center; border: 1px solid var(--line-strong);
  background: var(--accent-soft); color: var(--accent);
  transition: transform var(--t-mid), background var(--t-mid);
}
.service:hover .service__icon { transform: rotate(-6deg) scale(1.05); background: var(--accent); color: #05130f; }
.service__icon svg { width: 26px; height: 26px; }
.service__title { position: relative; margin-top: var(--s6); font-size: clamp(20px, 2.4vw, 26px); }
.service__desc { position: relative; margin-top: var(--s4); color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }
.service__tags { position: relative; margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s2); }
.tag {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em;
  padding: 5px 11px; border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--text-dim); background: rgba(255,255,255,0.015);
}
.tag--accent { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }

.service__more {
  position: relative; margin-top: var(--s6); display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 13.5px; color: var(--accent); font-weight: 600;
}
.service__more svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.service:hover .service__more svg { transform: translateX(4px); }

/* ---------- Process strip ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); margin-top: var(--s12); }
.step { position: relative; padding-top: var(--s6); border-top: 1px solid var(--line-strong); }
.step__n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.2em; }
.step__h { margin-top: var(--s3); font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.step__p { margin-top: var(--s2); color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); margin-top: var(--s12); }
.project {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: border-color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
}
.project:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.project__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); padding: var(--s6) var(--s6) 0; }
.project__stack { display: flex; flex-wrap: wrap; gap: var(--s2); }
.project__title { font-size: clamp(20px, 2.3vw, 25px); margin-top: var(--s4); }
.project__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-soft); background: var(--accent-soft); padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.project__desc { padding: 0 var(--s6); margin-top: var(--s4); color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.project__dev { padding: var(--s4) var(--s6) 0; }
.project__devtoggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s3) var(--s4); border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
  background: rgba(255,255,255,0.015); color: var(--text); font-size: 13.5px; font-weight: 600;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.project__devtoggle:hover { border-color: var(--accent); color: var(--accent); }
.project__devtoggle svg { width: 16px; height: 16px; transition: transform var(--t-mid); }
.project.is-open .project__devtoggle svg { transform: rotate(180deg); }
.project__devbody {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-mid);
}
.project.is-open .project__devbody { grid-template-rows: 1fr; }
.project__devinner { overflow: hidden; }
.project__devtext { padding: var(--s4) var(--s4) var(--s2); font-size: 13.5px; color: var(--text-dim); line-height: 1.75; border-left: 2px solid var(--accent-soft); margin-left: var(--s2); }
.project__devtext code { font-family: var(--font-mono); font-size: 12px; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; }
.project__devtext b { color: var(--text); font-weight: 600; }
.project__links { margin-top: auto; padding: var(--s6); display: flex; gap: var(--s3); flex-wrap: wrap; }
.project__links .btn { flex: 1; min-width: 140px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: var(--s16) var(--s12); text-align: center; overflow: hidden;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(87,227,196,0.12), transparent 55%),
    linear-gradient(180deg, var(--surface), var(--ink-900));
}
.cta__title { font-size: clamp(28px, 4vw, 46px); max-width: 20ch; margin: 0 auto; }
.cta__title .hl { color: var(--accent); }
.cta__sub { margin: var(--s5) auto 0; max-width: 52ch; color: var(--text-dim); }
.cta__actions { margin-top: var(--s8); display: flex; gap: var(--s4); justify-content: center; flex-wrap: wrap; }
.cta__glow { position: absolute; width: 50vw; height: 50vw; left: 50%; top: -10vw; transform: translateX(-50%); background: radial-gradient(circle, var(--accent-soft), transparent 60%); filter: blur(10px); pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s16) 0 var(--s10); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s10); }
.footer-brand__desc { margin-top: var(--s4); color: var(--text-dim); font-size: 14px; max-width: 38ch; line-height: 1.7; }
.footer-col__h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--s5); }
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; padding: var(--s2) 0; transition: color var(--t-fast), transform var(--t-fast); }
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }
.footer-bottom { margin-top: var(--s12); padding-top: var(--s6); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s4); color: var(--text-faint); font-size: 12.5px; font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__status .dot, .scroll-cue::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; gap: var(--s10); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3);
    position: absolute; top: 72px; left: 0; right: 0; padding: var(--s5) var(--s6) var(--s6);
    background: rgba(8,12,22,0.98); backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--line); max-height: calc(100vh - 108px); overflow-y: auto;
  }
  .nav__links.is-open .nav__link { padding: 10px 2px; font-size: 15px; width: 100%; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }
}
@media (max-width: 820px) {
  .services, .projects { grid-template-columns: 1fr; }
  .hero__metrics { grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s4); }
  .cta { padding: var(--s12) var(--s6); }
  .section { padding: var(--s16) 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 var(--s5); }
  .hero__metrics { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .service { padding: var(--s6); }
  .project__links .btn { min-width: 100%; }
}

/* =========================================================
   DYNAMIC TECH LAYER — premium motion & depth
   ========================================================= */

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 80;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 12px var(--accent-glow); transition: width 80ms linear;
}

/* aurora mesh orbs (layer 0) */
.hero__aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: 0.55; mix-blend-mode: screen; will-change: transform; }
.aurora-blob--1 { width: 46vw; height: 46vw; left: -10vw; top: -14vw; background: radial-gradient(circle, rgba(87,227,196,0.55), transparent 65%); animation: drift1 19s ease-in-out infinite; }
.aurora-blob--2 { width: 42vw; height: 42vw; right: -8vw; top: 4vw; background: radial-gradient(circle, rgba(86,150,255,0.42), transparent 65%); animation: drift2 23s ease-in-out infinite; }
.aurora-blob--3 { width: 36vw; height: 36vw; left: 28vw; bottom: -18vw; background: radial-gradient(circle, rgba(255,180,84,0.26), transparent 65%); animation: drift3 27s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw,4vw) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw,6vw) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw,-5vw) scale(1.15); } }

/* custom cursor (desktop fine pointer) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 95; border-radius: 50%; transform: translate(-50%,-50%); }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid var(--accent-soft); transition: width .2s var(--ease), height .2s var(--ease), border-color .2s, background .2s, opacity .2s; }
.cursor-ring.is-hover { width: 56px; height: 56px; border-color: var(--accent); background: var(--accent-soft); }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .service, body.has-cursor .project { cursor: none; }

/* infinite marquee of tech keywords */
.marquee {
  position: relative; overflow: hidden; padding: var(--s8) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: var(--s10); width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-mono); font-size: clamp(15px, 2vw, 22px); letter-spacing: .05em; color: var(--text-dim); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--s10); }
.marquee__item b { color: var(--accent); font-weight: 600; }
.marquee__item .sep { color: var(--text-faint); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* hero headline: line-by-line mask reveal */
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; transform: translateY(110%); animation: lineUp .9s var(--ease) forwards; }
@keyframes lineUp { to { transform: translateY(0); } }

/* gradient shimmer highlight */
.hl-grad { background: linear-gradient(90deg, var(--accent), #8af0db, var(--accent)); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 220% center; } }

/* 3D tilt + glare on cards */
.services, .projects { perspective: 1100px; }
.service, .project { transform-style: preserve-3d; }
.service::after, .project::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(180px 180px at var(--mx, 50%) var(--my, 50%), rgba(87,227,196,0.16), transparent 60%);
}
.service:hover::after, .project:hover::after { opacity: 1; }

/* active nav link (scrollspy) */
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .aurora-blob { animation: none; }
  .hero__title .line > span { animation: none; transform: none; }
  .hl-grad { animation: none; }
  .scroll-progress { display: none; }
}

/* =========================================================
   PHASE 4 — 入场页 / mega-menu / FDE / 招贤纳士 / 协作路径
   ========================================================= */

/* ---------- 入场页 GATE ---------- */
body.gate-locked { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; flex-direction: column;
  background: var(--ink-950);
  opacity: 1; transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.gate.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__bg { position: absolute; inset: 0; overflow: hidden; }
.gate__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gate__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .5;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 78%);
}
.gate__aurora span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
}
.gate__aurora span:nth-child(1) { width: 620px; height: 620px; left: -140px; top: -120px; background: radial-gradient(circle, rgba(87,227,196,.5), transparent 60%); animation: floaty 20s ease-in-out infinite; }
.gate__aurora span:nth-child(2) { width: 520px; height: 520px; right: -120px; bottom: -100px; background: radial-gradient(circle, rgba(60,140,255,.4), transparent 60%); animation: floaty 24s ease-in-out infinite reverse; }
.gate__aurora span:nth-child(3) { width: 420px; height: 420px; left: 45%; top: 30%; background: radial-gradient(circle, rgba(255,180,84,.22), transparent 60%); animation: floaty 28s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-30px)} }
.gate__scan {
  position: absolute; left: 0; right: 0; height: 34%; top: -34%;
  background: linear-gradient(180deg, transparent, rgba(87,227,196,.10), transparent);
  animation: gateScan 7s linear infinite;
}
@keyframes gateScan { to { top: 100%; } }
.gate__grain {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.gate__top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center;
  padding: 28px clamp(20px,5vw,64px); font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
}
.gate__logo { display: inline-flex; align-items: center; gap: 10px; letter-spacing: .04em; }
.gate__logo svg { width: 22px; height: 22px; }
.gate__coord { color: var(--accent); letter-spacing: .02em; }
.gate__center {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 20px;
}
.gate__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; color: var(--text-dim);
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,.02);
}
.gate__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.gate__title { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; font-size: clamp(2.6rem, 7vw, 5.4rem); margin: 0; }
.gate__title em { font-style: normal; color: var(--accent); }
.gate__line { display: block; overflow: hidden; }
.gate__line > span { display: block; transform: translateY(110%); animation: lineUp 1s var(--ease) forwards; }
.gate__line:nth-child(2) > span { animation-delay: .14s; }
.gate__desc { margin: 26px 0 0; color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.85; }
.gate__enter { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gate__btn { position: relative; width: 168px; height: 168px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.gate__btn-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); opacity: .5; animation: ringPulse 2.4s ease-out infinite; }
@keyframes ringPulse { 0%{transform:scale(.72);opacity:.6} 100%{transform:scale(1.05);opacity:0} }
.gate__btn-core {
  position: relative; z-index: 1; width: 128px; height: 128px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(circle at 50% 35%, rgba(87,227,196,.22), rgba(9,14,22,.9));
  border: 1px solid var(--accent); color: var(--text);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em;
  box-shadow: 0 0 40px rgba(87,227,196,.25), inset 0 0 24px rgba(87,227,196,.12);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gate__btn:hover .gate__btn-core { transform: scale(1.05); box-shadow: 0 0 60px rgba(87,227,196,.4), inset 0 0 30px rgba(87,227,196,.2); }
.gate__btn-core svg { width: 20px; height: 20px; }
.gate__hint { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: .1em; }
.gate__nav { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 0 20px 22px; }
.gate__chip {
  cursor: pointer; padding: 9px 18px; border-radius: 100px; border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); background: rgba(255,255,255,.02);
  transition: all .25s var(--ease);
}
.gate__chip:hover { color: var(--ink-950); background: var(--accent); border-color: var(--accent); }
.gate__foot { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 28px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; color: var(--text-faint); }
.gate__foot-line { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: cueLine 1.8s ease-in-out infinite; }
@keyframes cueLine { 0%,100%{opacity:.3;transform:scaleY(.6)} 50%{opacity:1;transform:scaleY(1)} }

/* ---------- 入场序章：多幕导览 ---------- */
.gate__deck { position: relative; z-index: 2; flex: 1; display: grid; min-height: 0; }
.gate__chapter {
  grid-area: 1 / 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px clamp(20px, 5vw, 64px);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(26px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), visibility .55s var(--ease);
}
.gate__chapter.is-active { opacity: 1; visibility: visible; transform: none; }
.gate__chapter::-webkit-scrollbar { width: 4px; }
.gate__chapter::-webkit-scrollbar-thumb { background: rgba(87,227,196,.25); border-radius: 4px; }

/* 章节索引（桌面：左侧竖排） */
.gate__index {
  position: absolute; z-index: 3; left: clamp(20px, 3.4vw, 48px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px; text-align: left;
}
.gate__index-cap {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; color: var(--text-faint);
  margin-bottom: 10px; padding-left: 12px;
}
.gate__idx {
  display: flex; align-items: center; gap: 10px; min-height: 34px;
  background: none; border: 0; cursor: pointer; padding: 6px 12px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
  border-left: 2px solid transparent; transition: all .3s var(--ease);
}
.gate__idx i { font-style: normal; opacity: .7; }
.gate__idx span { letter-spacing: .04em; }
.gate__idx:hover { color: var(--text-dim); background: rgba(255,255,255,.03); }
.gate__idx.is-active { color: var(--accent); border-left-color: var(--accent); background: rgba(87,227,196,.06); }
.gate__idx:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 底部控制条 */
.gate__ctrl {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; padding: 0 20px 26px;
}
.gate__ctrl-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 100px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.02);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim);
  cursor: pointer; transition: all .25s var(--ease);
}
.gate__ctrl-btn svg { width: 15px; height: 15px; }
.gate__ctrl-btn:hover:not(:disabled) { color: var(--text); border-color: var(--accent); background: rgba(87,227,196,.08); }
.gate__ctrl-btn:disabled { opacity: .32; cursor: not-allowed; }
.gate__ctrl-btn--next { color: var(--text); border-color: rgba(87,227,196,.5); }
.gate__ctrl-btn:focus-visible, .gate__skip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gate__prog { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); letter-spacing: .1em; }
.gate__prog b { color: var(--accent); font-weight: 600; }
.gate__prog i { font-style: normal; margin-left: 4px; }
.gate__skip {
  min-height: 44px; padding: 10px 16px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint);
  letter-spacing: .06em; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,.18); transition: color .25s var(--ease);
}
.gate__skip:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* 章节通用排版 */
.gate__ch-tag {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding: 7px 16px; border-radius: 100px; border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--text-dim);
}
.gate__ch-tag i { font-style: normal; color: var(--accent); }
.gate__ch-tag--amber i { color: #ffb454; }
.gate__ch-title {
  font-family: var(--font-display); font-weight: 800; line-height: 1.16; letter-spacing: -.015em;
  font-size: clamp(1.75rem, 3.6vw, 3rem); margin: 0; max-width: 20ch;
}
.gate__ch-title em { font-style: normal; color: var(--accent); }
.gate__ch-tag--amber ~ .gate__ch-title em { color: #ffb454; }
.gate__ch-sub {
  margin: 18px 0 0; max-width: 62ch; color: var(--text-dim);
  font-size: clamp(.95rem, 1.25vw, 1.06rem); line-height: 1.8;
}

/* CH01 信条卡 */
.gate__creed {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 40px; width: 100%; max-width: 1020px; text-align: left;
}
.creed {
  position: relative; padding: 24px 22px 22px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.025);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.creed:hover { border-color: rgba(87,227,196,.45); background: rgba(87,227,196,.05); transform: translateY(-3px); }
.creed__no { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .16em; }
.creed__h { margin: 12px 0 8px; font-size: 1.06rem; font-weight: 700; color: var(--text); line-height: 1.4; }
.creed__p { margin: 0; font-size: .9rem; line-height: 1.75; color: var(--text-dim); }

/* CH02 能力索引 */
.gate__capx {
  list-style: none; margin: 36px 0 0; padding: 0; width: 100%; max-width: 1020px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; text-align: left;
}
.capx {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 5px; align-items: baseline;
  padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.02); transition: all .28s var(--ease);
}
.capx:hover { border-color: rgba(87,227,196,.45); background: rgba(87,227,196,.05); }
.capx__no { grid-row: span 2; font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; padding-top: 2px; }
.capx__h { font-size: 1rem; font-weight: 700; color: var(--text); text-decoration: none; transition: color .2s var(--ease); }
.capx__h:hover { color: var(--accent); }
.capx__p { font-size: .855rem; line-height: 1.7; color: var(--text-dim); }

/* CH03 交付方法 */
.gate__method {
  list-style: none; margin: 34px 0 0; padding: 0; width: 100%; max-width: 900px;
  display: flex; flex-direction: column; gap: 10px; text-align: left; counter-reset: mstep;
}
.mstep {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 16px 20px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.02); transition: all .28s var(--ease);
}
.mstep:hover { border-color: rgba(87,227,196,.4); background: rgba(87,227,196,.045); }
.mstep__no {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(87,227,196,.4); font-family: var(--font-mono); font-size: 12px; color: var(--accent);
}
.mstep__h { margin: 0 0 4px; font-size: .98rem; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.mstep__p { margin: 0; font-size: .855rem; line-height: 1.68; color: var(--text-dim); }
.mstep__t {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); white-space: nowrap;
  padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line);
}

/* CH04 开源主张 */
.gate__oss { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; max-width: 780px; }
.oss__badge {
  padding: 8px 16px; border-radius: 100px; border: 1px solid rgba(255,180,84,.4);
  background: rgba(255,180,84,.07); font-family: var(--font-mono); font-size: 12px; color: #ffcf94;
}
.gate__oss-note {
  margin: 20px 0 0; max-width: 60ch; font-size: .9rem; line-height: 1.8; color: var(--text-dim);
  padding: 14px 20px; border-left: 2px solid #ffb454; background: rgba(255,180,84,.05); text-align: left;
}
.gate__enter--final { margin-top: 34px; }
.gate__enter--final .gate__btn { width: 148px; height: 148px; }
.gate__enter--final .gate__btn-core { width: 116px; height: 116px; }

/* 序章响应式 */
@media (max-width: 1180px) {
  .gate__index { left: 16px; }
  .gate__idx span { display: none; }
  .gate__index-cap { display: none; }
  .gate__idx { padding: 6px 10px; }
  .gate__capx { grid-template-columns: 1fr; }
  .gate__creed { grid-template-columns: 1fr; max-width: 620px; }
}
@media (max-width: 860px) {
  .gate__index {
    left: 0; right: 0; top: auto; bottom: 92px; transform: none;
    flex-direction: row; justify-content: center; gap: 8px;
  }
  .gate__idx { border-left: 0; border-bottom: 2px solid transparent; padding: 6px 8px; min-height: 32px; }
  .gate__idx.is-active { border-left-color: transparent; border-bottom-color: var(--accent); }
  .gate__chapter { padding-bottom: 120px; justify-content: flex-start; padding-top: 12px; }
  .gate__ch-title { max-width: 100%; }
  .mstep { grid-template-columns: auto 1fr; }
  .mstep__t { grid-column: 2; justify-self: start; }
  .gate__ctrl { gap: 10px; padding-bottom: 18px; }
  .gate__skip { flex-basis: 100%; }
  .gate__enter--final .gate__btn { width: 128px; height: 128px; }
  .gate__enter--final .gate__btn-core { width: 100px; height: 100px; }
}

/* 动效敏感用户：直接切换，不做位移 */
@media (prefers-reduced-motion: reduce) {
  .gate__chapter { transition: opacity .01s linear, visibility .01s linear; transform: none; }
  .creed:hover, .capx:hover, .mstep:hover { transform: none; }
}

/* ---------- mega-menu 导航（重做：消除 hover 死区 + 提升对比度） ---------- */
.nav__item--mega { position: static; }
.nav__trigger { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer; font: inherit; font-size: 14.5px; color: var(--text-dim); padding: 6px 2px; border-radius: 8px; transition: color var(--t-fast); }
.nav__caret { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.nav__item--mega.is-open .nav__caret { transform: rotate(180deg); }
.nav__item--mega.is-open .nav__trigger { color: var(--text); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  /* 关键：向上贴住 header 底边，用透明 padding 桥接触发区与面板，消除 hover 死区 */
  padding-top: 0;
  background: linear-gradient(180deg, rgba(13,19,30,.99), rgba(9,13,20,.99));
  backdrop-filter: blur(22px) saturate(150%);
  border-top: 1px solid var(--line); border-bottom: 1px solid rgba(87,227,196,.18);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  z-index: 55; pointer-events: none;
}
/* 仅由 JS 控制的 .is-open 展开，不再依赖脆弱的 :hover 链，彻底解决"打不开" */
.nav__item--mega.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.mega__inner { display: grid; grid-template-columns: repeat(3, 1fr) 1.05fr; gap: 36px; padding: 38px 0 42px; }
.mega__cat { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mega__link { display: flex; gap: 13px; align-items: flex-start; padding: 11px 12px; margin: 0 -12px 2px; border-radius: 11px; transition: background .2s var(--ease), transform .2s var(--ease); }
.mega__link:hover { background: rgba(87,227,196,.09); transform: translateX(3px); }
.mega__ic { font-size: 21px; line-height: 1.15; flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: rgba(87,227,196,.08); border-radius: 9px; }
.mega__link b { display: block; color: var(--text); font-size: 14.5px; font-weight: 600; }
.mega__link i { display: block; font-style: normal; color: var(--text-dim); font-size: 12px; margin-top: 4px; line-height: 1.5; }
.mega__side { border-left: 1px solid var(--line); padding-left: 34px; display: flex; flex-direction: column; }
.mega__side-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--accent); }
.mega__side-title { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.25; margin: 14px 0 12px; color: var(--text); }
.mega__side-desc { color: var(--text-dim); font-size: 13px; line-height: 1.75; margin: 0 0 auto; }
.mega__side-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--accent); font-weight: 600; font-size: 14px; }
.mega__side-btn:hover { gap: 11px; }
.mega__side-btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
@media (max-width: 960px) {
  /* 移动端：mega 改为内联手风琴，随 .is-open 展开 */
  .nav__item--mega { position: relative; width: 100%; }
  .nav__trigger { width: 100%; justify-content: space-between; padding: 12px 2px; font-size: 15px; color: var(--text); }
  .mega {
    position: static; box-shadow: none; border: 0; background: transparent;
    backdrop-filter: none; transform: none; padding: 0;
    max-height: 0; overflow: hidden; opacity: 1; visibility: visible; pointer-events: auto;
    transition: max-height .38s var(--ease);
  }
  .nav__item--mega.is-open .mega { max-height: 900px; }
  .mega__inner { grid-template-columns: 1fr; gap: 20px; padding: 10px 0 18px; }
  .mega__cat { margin-bottom: 12px; }
  .mega__side { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
}

/* ---------- FDE 驻场板块 ---------- */
.section--fde { position: relative; background: linear-gradient(180deg, var(--ink-900), var(--ink-850)); overflow: hidden; }
.fde__bg { position: absolute; inset: 0; pointer-events: none; }
.fde__glow { position: absolute; width: 700px; height: 700px; left: 50%; top: -200px; transform: translateX(-50%); background: radial-gradient(circle, rgba(87,227,196,.14), transparent 62%); filter: blur(40px); }
.fde__flow { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 20px; align-items: stretch; margin-top: 52px; }
.fde__node { border: 1px solid var(--line); border-radius: 16px; padding: 26px; background: rgba(255,255,255,.02); }
.fde__node--site { border-color: rgba(255,180,84,.3); }
.fde__node--lab { border-color: var(--accent-glow); }
.fde__node-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; }
.fde__node--site .fde__node-tag { color: var(--amber); }
.fde__node--lab .fde__node-tag { color: var(--accent); }
.fde__node h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 12px 0 16px; color: var(--text); }
.fde__node ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.fde__node li { position: relative; padding-left: 18px; color: var(--text-dim); font-size: 14px; }
.fde__node li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.fde__node--site li::before { background: var(--amber); }
.fde__bridge { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px 0; }
.fde__fde-badge { position: relative; display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgba(87,227,196,.2), rgba(9,14,22,.9)); border: 1px solid var(--accent); text-align: center; }
.fde__fde-ring { position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed var(--accent-glow); animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fde__fde-badge b { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); line-height: 1; }
.fde__fde-badge i { display: block; font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); margin-top: 5px; }
.fde__arrow { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: .02em; }
.fde__arrow--top { color: var(--amber); }
.fde__arrow--bot { color: var(--accent); }
.fde__flow-note { margin: 26px 0 0; padding: 20px 24px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: rgba(255,255,255,.02); color: var(--text-dim); font-size: 14.5px; line-height: 1.85; }
.fde__flow-note b { color: var(--text); }
.fde__flow-note strong { color: var(--accent); font-weight: 700; }
.fde__flow-note em { font-style: normal; color: var(--amber); }
.fde__map-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; margin-top: 40px; align-items: stretch; }
.fde__map { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: radial-gradient(120% 100% at 70% 30%, rgba(87,227,196,.05), rgba(255,255,255,.01)); }
.fde__map-tag { position: absolute; top: 18px; left: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--accent); }
.fde__map-svg { width: 100%; height: auto; display: block; margin-top: 8px; }
.fde__link { stroke-dasharray: 4 5; animation: dash 20s linear infinite; }
.fde__link--intl { animation: dash 14s linear infinite reverse; }
@keyframes dash { to { stroke-dashoffset: -200; } }
.fde__city circle:last-of-type { animation: cityPulse 3s ease-in-out infinite; }
.fde__city--hub circle:last-of-type { animation: cityPulse 2s ease-in-out infinite; }
.fde__city--intl circle { animation: cityPulse 2.4s ease-in-out infinite; }
@keyframes cityPulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.fde__cities-list { border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: rgba(255,255,255,.02); }
.fde__cities-title { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 14px; }
.fde__coord { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.fde__coord:last-child { border-bottom: 0; }
.fde__coord b { font-family: var(--font-display); font-size: 15px; color: var(--text); min-width: 44px; }
.fde__coord span { flex: 1; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); }
.fde__coord i { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--text-faint); }
.fde__badge-hub { color: var(--ink-950) !important; background: var(--accent); border-color: var(--accent) !important; }
.fde__coord--intl b { color: var(--amber); }
.fde__badge-intl { color: var(--ink-950) !important; background: var(--amber); border-color: var(--amber) !important; }
.fde__apply { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-top: 40px; padding: 28px 30px; border: 1px solid var(--accent-glow); border-radius: 16px; background: radial-gradient(120% 200% at 0% 0%, rgba(87,227,196,.08), transparent 60%); }
.fde__apply-h { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 6px; color: var(--text); }
.fde__apply-p { margin: 0; color: var(--text-dim); font-size: 14px; }
.fde__apply-btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .fde__flow { grid-template-columns: 1fr; }
  .fde__bridge { flex-direction: row; flex-wrap: wrap; }
  .fde__map-wrap { grid-template-columns: 1fr; }
}

/* ---------- 招贤纳士 ---------- */
.section--careers { background: var(--ink-900); }
.careers__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.job { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: rgba(255,255,255,.02); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.job:hover { border-color: var(--accent-glow); transform: translateY(-3px); }
.job__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.job__role { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--text); }
.job__hot { font-family: var(--font-mono); font-size: 10.5px; padding: 4px 10px; border-radius: 100px; color: var(--ink-950); background: var(--amber); letter-spacing: .06em; }
.job__hot--intl { background: linear-gradient(120deg, var(--amber), #ff7a59); }
.job--intl { border-color: rgba(255,180,84,.28); }
.job--intl:hover { border-color: var(--amber); }
.job--intl .job__cities { color: var(--amber); }
.job__tag { font-family: var(--font-mono); font-size: 10.5px; padding: 4px 10px; border-radius: 100px; color: var(--accent); border: 1px solid var(--accent-glow); letter-spacing: .06em; }
.job__cities { margin: 12px 0 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); letter-spacing: .02em; }
.job__desc { color: var(--text-dim); font-size: 14px; line-height: 1.75; margin: 0 0 16px; }
.job__req { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.job__req li { position: relative; padding-left: 20px; color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }
.job__req li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-family: var(--font-mono); }
.job__apply { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; font-size: 14px; padding-bottom: 2px; border-bottom: 1px solid var(--accent); transition: gap .25s var(--ease); }
.job__apply:hover { gap: 12px; }
.job__apply svg { width: 16px; height: 16px; }
.careers__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; color: var(--text-dim); font-size: 14px; }
@media (max-width: 720px) { .careers__grid { grid-template-columns: 1fr; } }

/* ---------- 项目人机协作路径图 ---------- */
.collab { margin: 4px 0 18px; padding: 16px 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(87,227,196,.03); }
.collab__title { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 12px; }
.collab__flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
.collab__step {
  position: relative; flex: 1; min-width: 88px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 10px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--text);
  margin-right: 20px;
}
.collab__step:last-child { margin-right: 0; }
.collab__step::after {
  content: "›"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); font-size: 18px; font-weight: 400;
}
.collab__step:last-child::after { display: none; }
.collab__step i { display: block; font-style: normal; font-weight: 400; font-size: 10.5px; color: var(--text-dim); margin-top: 4px; line-height: 1.4; }
.collab__step--h { background: rgba(255,180,84,.10); border: 1px solid rgba(255,180,84,.28); }
.collab__step--h { color: var(--amber); }
.collab__step--a { background: rgba(87,227,196,.10); border: 1px solid var(--accent-glow); color: var(--accent); }
.collab__step--dual { background: rgba(146,170,200,.10); border: 1px solid var(--line-strong); color: var(--text); }
.collab__step--h i, .collab__step--a i, .collab__step--dual i { color: var(--text-dim); }
@media (max-width: 560px) {
  .collab__flow { flex-direction: column; gap: 10px; }
  .collab__step { margin-right: 0; width: 100%; flex-direction: row; gap: 8px; justify-content: flex-start; }
  .collab__step::after { content: "↓"; right: 50%; top: auto; bottom: -14px; transform: translateX(50%); }
  .collab__step i { margin-top: 0; }
}



/* =========================================================
   联系区 CONTACT - native, no floating popup / no second-level window
   ========================================================= */
.contact { background: linear-gradient(180deg, var(--ink-850), var(--ink-900)); }
.contact__head { text-align: center; margin-bottom: var(--s12); }
.contact__head .eyebrow--center { justify-content: center; display: inline-flex; }
.contact__head .cta__title { margin-top: var(--s3); }

.contact__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s6);
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

/* --- primary conversion: single-step form --- */
.contact__quote {
  background: linear-gradient(180deg, rgba(18,26,39,.92), rgba(11,16,24,.94));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--s8);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.contact__save {
  align-self: flex-start;
  display: inline-flex; align-items: baseline; gap: var(--s2);
  font-family: var(--font-mono); font-size: 12px;
  background: var(--amber-soft); border: 1px solid rgba(255,180,84,.32);
  border-radius: var(--r-pill); padding: 6px 14px;
}
.contact__save b { font-size: 14px; color: var(--amber); }
.contact__save span { color: var(--text-dim); }

.contact__field { display: flex; flex-direction: column; gap: var(--s2); }
.contact__field label {
  font-size: 13px; color: var(--text-dim); font-weight: 500; letter-spacing: .01em;
}
.contact__field input,
.contact__field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.contact__field input::placeholder { color: var(--text-faint); }
.contact__field select:invalid { color: var(--text-faint); }
.contact__field input:focus,
.contact__field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact__field select { appearance: none; cursor: pointer; }

.contact__fine { font-size: 11.5px; color: var(--text-faint); line-height: 1.5; margin-top: 2px; }

/* --- sidebar: AI chat / manager / Skill --- */
.contact__side { display: flex; flex-direction: column; gap: var(--s4); }

.contact__ai {
  background: rgba(15,21,33,.7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.contact__ai-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3);
  background: none; border: none; cursor: pointer;
  padding: var(--s5) var(--s6);
  color: var(--text); font-family: var(--font-body); font-size: 15px; font-weight: 600;
  text-align: left;
  transition: color var(--t-fast), background var(--t-fast);
}
.contact__ai-toggle:hover { color: var(--accent); background: rgba(87,227,196,.04); }
.contact__ai-toggle svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-dim); transition: transform var(--t-fast), color var(--t-fast); }
.contact__ai-toggle[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--accent); }

.contact__ai-panel { padding: 0 var(--s6) var(--s5); border-top: 1px solid var(--line); }
.contact__ai-panel[hidden] { display: none; }
.contact__ai-chat {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 240px; overflow-y: auto; padding: var(--s5) 0 var(--s4);
}
.contact__msg { max-width: 88%; padding: 10px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.55; }
.contact__msg--bot { align-self: flex-start; background: rgba(255,255,255,.04); color: var(--text-dim); border-bottom-left-radius: 4px; }
.contact__msg--me { align-self: flex-end; background: var(--accent); color: var(--ink-950); border-bottom-right-radius: 4px; font-weight: 500; }
.contact__ai-bar { display: flex; gap: var(--s2); align-items: center; }
.contact__ai-bar input {
  flex: 1; padding: 11px 13px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
  color: var(--text); font-family: var(--font-body); font-size: 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.contact__ai-bar input::placeholder { color: var(--text-faint); }
.contact__ai-bar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact__ai-bar button {
  width: 44px; height: 44px; flex-shrink: 0; border: none; border-radius: var(--r-md);
  cursor: pointer; background: var(--accent); color: var(--ink-950);
  display: grid; place-items: center; transition: transform var(--t-fast), background var(--t-fast);
}
.contact__ai-bar button:hover { transform: scale(1.05); background: var(--accent-bright); }
.contact__ai-bar button svg { width: 18px; height: 18px; }

.contact__mgr {
  display: flex; align-items: center; gap: var(--s4);
  background: rgba(15,21,33,.7); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5) var(--s6);
}
.contact__qr { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--line-strong); }
.contact__qr svg { width: 100%; height: 100%; display: block; }
.contact__mgr b { display: block; font-size: 14px; color: var(--text); }
.contact__mgr span { display: block; font-size: 12px; color: var(--text-faint); margin-top: 3px; }

.contact__skill {
  background: rgba(15,21,33,.7); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5) var(--s6);
  display: flex; flex-direction: column; gap: var(--s3);
}
.contact__skill > b { font-size: 14px; color: var(--text); }
.contact__code {
  background: rgba(0,0,0,.35); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 14px;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6;
  color: var(--text-dim); white-space: pre-wrap; word-break: break-word;
  max-height: 180px; overflow-y: auto; margin: 0;
}

/* =========================================================
   服务详情页 SERVICE DETAIL
   ========================================================= */
.back-link { display: inline-block; margin-bottom: var(--s6); color: var(--text-dim); font-size: 14px; transition: color var(--t-fast); }
.back-link:hover { color: var(--accent); }
.svc-detail { padding-top: var(--s16); }
.svc-detail__hero { text-align: center; max-width: 760px; margin: 0 auto var(--s12); display: flex; flex-direction: column; align-items: center; gap: var(--s4); }
.svc-detail__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(87,227,196,.25); }
.svc-detail__icon svg { width: 32px; height: 32px; }
.svc-detail__title { font-family: var(--font-display); font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.1; margin: 0; }
.svc-detail__lead { color: var(--text-dim); font-size: 17px; line-height: 1.7; margin: 0; }
.svc-detail__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); align-items: start; }
.svc-block { background: rgba(15,21,33,.55); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); }
.svc-block__h { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 0 0 var(--s4); color: var(--text); }
.svc-block__h::after { content: ""; display: block; width: 36px; height: 2px; background: var(--accent); margin-top: 10px; border-radius: 2px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s4); }
.steps li { display: flex; gap: var(--s3); align-items: flex-start; }
.step__ix { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.steps li b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.steps li p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }
.deliver, .scenarios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.deliver li, .scenarios li { position: relative; padding-left: 22px; color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.deliver li::before, .scenarios li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.svc-detail__cta { text-align: center; margin-top: var(--s12); padding: var(--s8) var(--s6); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(18,26,39,.7), rgba(11,16,24,.8)); }
.svc-detail__cta h3 { font-family: var(--font-display); font-size: 24px; margin: 0 0 8px; }
.svc-detail__cta p { color: var(--text-dim); margin: 0 0 var(--s5); }

/* —— 服务详情增强：真实痛点 + 应用案例（营销说服力） —— */
.svc-section { max-width: 1000px; margin-left: auto; margin-right: auto; }
.svc-pain { margin-top: var(--s8); }
.svc-cases { margin-top: var(--s16); }
.svc-section__head { text-align: center; max-width: 660px; margin: 0 auto var(--s8); }
.svc-section__kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.svc-section__title { font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 32px); font-weight: 800; margin: var(--s3) 0; line-height: 1.25; }
.svc-section__sub { color: var(--text-dim); font-size: 16px; line-height: 1.7; margin: 0; }

.svc-pain__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.pain { position: relative; padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(28,20,10,.32), rgba(11,16,24,.5)); overflow: hidden; }
.pain::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--amber), transparent); opacity: .85; }
.pain__ix { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; color: var(--amber); }
.pain__q { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); margin: var(--s3) 0; line-height: 1.4; }
.pain__d { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }
.pain__cost { display: inline-block; margin-top: var(--s4); font-size: 12.5px; color: var(--amber); background: rgba(255,180,84,.1); border: 1px solid rgba(255,180,84,.28); border-radius: var(--r-pill); padding: 4px 12px; }

.svc-cases { display: flex; flex-direction: column; gap: var(--s5); }
.case { position: relative; padding: var(--s6) var(--s7); border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(15,21,33,.55); transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); }
.case:hover { border-color: rgba(87,227,196,.4); transform: translateY(-3px); box-shadow: 0 22px 50px -30px rgba(87,227,196,.5); }
.case__top { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-bottom: var(--s4); }
.case__ind { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--accent); border: 1px solid rgba(87,227,196,.3); border-radius: var(--r-pill); padding: 4px 12px; }
.case__tag { font-size: 13px; color: var(--text-dim); }
.case__scene, .case__how { margin: 0 0 var(--s3); font-size: 15px; line-height: 1.75; color: var(--text-dim); }
.case__scene b, .case__how b { color: var(--text); font-weight: 600; }
.case__result { display: flex; align-items: center; gap: var(--s5); margin-top: var(--s5); padding-top: var(--s5); border-top: 1px dashed var(--line); }
.case__metric { font-family: var(--font-display); font-size: 38px; font-weight: 800; color: var(--accent); line-height: 1; white-space: nowrap; }
.case__result-txt { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.65; }
@media (max-width: 900px) {
  .svc-pain__grid { grid-template-columns: 1fr; }
  .case__result { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .case { padding: var(--s6); }
}

/* =========================================================
   联系页 · 沉浸式空间 CONTACT SPACE（无边框 / 漂浮）
   ========================================================= */
.space {
  position: relative;
  min-height: 116vh;
  overflow: hidden;
  padding: 140px 0 120px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(87,227,196,.10), transparent 60%),
    radial-gradient(80% 60% at 85% 100%, rgba(255,180,84,.07), transparent 60%),
    linear-gradient(180deg, var(--ink-850), var(--ink-900));
}
.space__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .65; pointer-events: none; }
.space__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(42% 32% at 50% 44%, rgba(87,227,196,.14), transparent 70%); }

/* —— 中央核心：标题（文字保留）+ 主聊天 —— */
.space__core { position: relative; z-index: 3; max-width: 600px; margin: 0 auto; text-align: center; padding: 0 var(--s4); }
.space__title .eyebrow--center { justify-content: center; display: inline-flex; }
.space__title .cta__title { margin-top: var(--s3); font-size: clamp(30px, 4.6vw, 54px); line-height: 1.12; text-shadow: 0 0 52px rgba(87,227,196,.24); }
.space__cred { margin: var(--s6) auto 0; max-width: 560px; text-align: center; font-family: var(--font-mono); font-size: 13px; letter-spacing: .03em; color: var(--text-faint); opacity: .85; }
.space__cred::before, .space__cred::after { content: "—"; margin: 0 8px; color: var(--accent); opacity: .5; }

.chat {
  margin: var(--s8) auto 0; max-width: 660px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 300px; max-height: 56vh; overflow-y: auto; padding: var(--s5);
  border-radius: 28px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -50px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04);
  scrollbar-width: thin; scrollbar-color: rgba(87,227,196,.4) transparent;
}
.contact__msg { max-width: 88%; padding: 16px 20px; border-radius: 22px; font-size: 17px; line-height: 1.7; box-shadow: 0 0 34px -14px rgba(87,227,196,.5); animation: msgIn .45s cubic-bezier(.2,.7,.3,1) both; }
.contact__msg--bot { align-self: flex-start; background: rgba(255,255,255,.06); color: var(--text); border-bottom-left-radius: 7px; border-left: 2px solid var(--accent); backdrop-filter: blur(6px); }
.contact__msg--me { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: var(--ink-950); font-weight: 600; border-bottom-right-radius: 7px; box-shadow: 0 0 34px rgba(87,227,196,.45); }
.contact__msg--typing { padding: 17px 20px; align-self: flex-start; background: rgba(255,255,255,.06); border-bottom-left-radius: 7px; border-left: 2px solid var(--accent); backdrop-filter: blur(6px); display: inline-flex; gap: 6px; align-items: center; }
.typing__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .5; animation: typing 1.2s infinite both; }
.typing__dot:nth-child(2) { animation-delay: .18s; }
.typing__dot:nth-child(3) { animation-delay: .36s; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat__bar { margin: var(--s6) auto 0; max-width: 680px; display: flex; gap: var(--s3); align-items: center; }
.chat__bar input {
  flex: 1; background: rgba(13,19,30,.72);
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 18px; padding: 22px 24px; color: var(--text); font-family: var(--font-body); font-size: 18px;
  box-shadow: 0 0 0 4px rgba(87,227,196,.10), 0 16px 44px -16px rgba(87,227,196,.92), inset 0 1px 0 rgba(255,255,255,.06);
  transition: box-shadow var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  animation: chatGlow 3.2s ease-in-out infinite;
}
.chat__bar input:hover { border-color: color-mix(in srgb, var(--accent) 82%, transparent); transform: translateY(-1px); }
.chat__bar input::placeholder { color: var(--text-faint); }
.chat__bar input:focus {
  outline: none; border-color: var(--accent-bright);
  box-shadow: 0 0 0 6px rgba(87,227,196,.18), 0 0 48px -4px rgba(87,227,196,.98), inset 0 1px 0 rgba(255,255,255,.08);
  animation: none;
}
.chat__bar button { width: 62px; height: 62px; flex: none; border: none; border-radius: 50%; cursor: pointer; background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: var(--ink-950); display: grid; place-items: center; box-shadow: 0 0 34px rgba(87,227,196,.7); transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast); }
.chat__bar button:hover { transform: scale(1.08); box-shadow: 0 0 46px rgba(87,227,196,.98); }
.chat__bar button svg { width: 26px; height: 26px; }

/* 留资捕获（P0-C1）：紧凑邮件表单，与聊天窗视觉一致 */
.lead { margin: var(--s6) auto 0; max-width: 680px; }
.lead__row { display: flex; gap: var(--s3); align-items: center; }
.lead__input {
  flex: 1; height: 62px; padding: 0 var(--s5); border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--text); font-size: 15px; font-family: var(--font-body);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.lead__input::placeholder { color: var(--text-faint); }
.lead__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(87,227,196,.12); background: rgba(87,227,196,.04); }
.lead__input.is-error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.14); }
.lead__btn {
  height: 62px; padding: 0 var(--s6); border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: var(--ink-950);
  font-weight: 700; font-size: 15px; white-space: nowrap;
  box-shadow: 0 0 34px rgba(87,227,196,.5); transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.lead__btn:hover { transform: translateY(-1px); box-shadow: 0 0 46px rgba(87,227,196,.7); }
.lead__hint { margin: var(--s3) 0 0; text-align: center; font-size: 12.5px; color: var(--text-faint); }
.lead__hint.is-error { color: #ff9a9a; }
.lead__hint.is-ok { color: var(--accent); }
@media (max-width: 540px) {
  .lead__row { flex-direction: column; }
  .lead__input, .lead__btn { width: 100%; }
}
@keyframes chatGlow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(87,227,196,.10), 0 16px 44px -16px rgba(87,227,196,.92), inset 0 1px 0 rgba(255,255,255,.06); }
  50%      { box-shadow: 0 0 0 6px rgba(87,227,196,.16), 0 18px 52px -14px rgba(87,227,196,1), inset 0 1px 0 rgba(255,255,255,.06); }
}
@media (prefers-reduced-motion: reduce) { .chat__bar input { animation: none; } }

/* —— 四周漂浮提示文字（隐现 / 飘动） —— */
.drift {
  position: absolute; z-index: 1; pointer-events: none;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em;
  color: var(--text-faint); opacity: 0; white-space: nowrap;
  text-shadow: 0 0 18px rgba(87,227,196,.25);
  animation: drift 16s ease-in-out infinite;
}
@keyframes drift {
  0%   { opacity: 0; transform: translateY(14px); }
  14%  { opacity: .8; }
  50%  { opacity: .5; transform: translateY(-10px); }
  86%  { opacity: .72; }
  100% { opacity: 0; transform: translateY(14px); }
}
.drift--1 { top: 22%;  left: 5%;  animation-delay: 0s;  animation-duration: 17s; }
.drift--2 { top: 30%;  right: 6%; animation-delay: 3.5s; animation-duration: 19s; }
.drift--3 { top: 47%;  left: 3%;  animation-delay: 6s;  animation-duration: 21s; }
.drift--4 { bottom: 30%; right: 5%; animation-delay: 2s; animation-duration: 18s; }
.drift--5 { bottom: 20%; left: 8%;  animation-delay: 8.5s; animation-duration: 20s; }

/* —— 客户墙：国内 + 国外（示意）企业 logo 墙，整齐网格、零重叠 —— */
.clients { padding: var(--s16) 0; background: linear-gradient(180deg, var(--ink-900), var(--ink-850)); }
.clients .wrap { max-width: 1180px; }
.clients__head { text-align: center; max-width: 720px; margin: 0 auto var(--s12); }
.clients__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.01em; margin-top: var(--s3); }
.clients__sub { margin-top: var(--s4); color: var(--text-dim); font-size: 15px; line-height: 1.7; }
.clients__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s5); }
.client-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s6) var(--s5); border-radius: 18px; background: rgba(255,255,255,.025); border: 1px solid var(--line); transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.client-card:hover { transform: translateY(-4px); border-color: rgba(87,227,196,.45); box-shadow: 0 24px 60px -34px rgba(87,227,196,.5); }
.client-card--intl { border-color: rgba(87,227,196,.3); background: linear-gradient(180deg, rgba(87,227,196,.07), rgba(255,255,255,.02)); }
.client-card__logo { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(120% 120% at 30% 20%, rgba(87,227,196,.14), rgba(11,16,24,.6)); border: 1px solid rgba(87,227,196,.25); overflow: hidden; margin-bottom: var(--s4); }
.client-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.client-card__name { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.client-card__en { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.client-card__reg { margin-top: var(--s3); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--accent); border: 1px solid rgba(87,227,196,.3); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.client-card__blurb { margin-top: var(--s3); font-size: 12.5px; line-height: 1.55; color: var(--text-faint); max-width: 24ch; }
.clients__note { margin-top: var(--s10); text-align: center; font-size: 12px; color: var(--text-faint); opacity: .7; }

/* —— 社交平台二维码墙：国内 + 国外（占位，待补充真实二维码） —— */
.social { padding: var(--s16) 0; background: linear-gradient(180deg, var(--ink-850), var(--ink-900)); border-top: 1px solid var(--line); }
.social .wrap { max-width: 1180px; }
.social__head { text-align: center; max-width: 720px; margin: 0 auto var(--s12); }
.social__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.01em; margin-top: var(--s3); }
.social__sub { margin-top: var(--s4); color: var(--text-dim); font-size: 15px; line-height: 1.7; }
.social__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s5); }
.social-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s6) var(--s5); border-radius: 18px; background: rgba(255,255,255,.025); border: 1px solid var(--line); transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.social-card:hover { transform: translateY(-4px); border-color: rgba(87,227,196,.45); box-shadow: 0 24px 60px -34px rgba(87,227,196,.5); }
.social-card--intl { border-color: rgba(87,227,196,.3); background: linear-gradient(180deg, rgba(87,227,196,.07), rgba(255,255,255,.02)); }
.social-card__qr { width: 104px; height: 104px; border-radius: 14px; padding: 8px; background: #eef3f8; border: 1px solid var(--line-strong); overflow: hidden; margin-bottom: var(--s4); box-shadow: 0 8px 24px -14px rgba(0,0,0,.6); }
.social-card__qr svg { width: 100%; height: 100%; display: block; }
.social-card__name { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.social-card__en { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); margin-top: 3px; }
.social-card__reg { margin-top: var(--s3); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--accent); border: 1px solid rgba(87,227,196,.3); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.social-card__handle { margin-top: var(--s3); font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.social-card__ph { margin-top: var(--s2); font-size: 10.5px; color: var(--amber); font-family: var(--font-mono); letter-spacing: .04em; }
.social__note { margin-top: var(--s10); text-align: center; font-size: 12px; color: var(--text-faint); opacity: .7; }


/* —— 中央：信服度数据 + 操作区（去浮动，整合到核心区，更整洁） —— */
.space__stats { display: flex; gap: var(--s10); justify-content: center; flex-wrap: wrap; margin: var(--s8) auto 0; }
.stat { text-align: center; }
.stat__n { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--text); line-height: 1; }
.stat__n .u { color: var(--accent); font-size: .6em; margin-left: 2px; }
.stat__l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-top: 6px; }

.space__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: var(--s6) auto 0; max-width: 560px; }
.act {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: var(--r-pill); cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-strong);
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.act:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.act svg { width: 16px; height: 16px; flex: none; }
.act .video-frame__play { width: 18px; height: 18px; display: grid; place-items: center; color: var(--accent); }
.act .video-frame__play svg { width: 14px; height: 14px; }
.act__qr { width: 22px; height: 22px; flex: none; border-radius: 5px; overflow: hidden; border: 1px solid var(--line-strong); }
.act__qr svg { width: 100%; height: 100%; display: block; }


/* —— 添加合作经理（保留，无边框发光） —— */
.mgr {
  position: absolute; z-index: 3; bottom: 11%; right: 6%;
  display: flex; align-items: center; gap: 14px;
  background: rgba(15,21,33,.45); backdrop-filter: blur(10px);
  padding: 14px 20px; border-radius: 20px;
  box-shadow: 0 0 44px -6px rgba(87,227,196,.35);
}
.mgr__qr { width: 60px; height: 60px; border-radius: 14px; overflow: hidden; flex: none; box-shadow: 0 0 26px -4px rgba(87,227,196,.55); }
.mgr__qr svg { width: 100%; height: 100%; display: block; }
.mgr__txt b { display: block; font-size: 16px; color: var(--text); }
.mgr__txt span { display: block; font-size: 12.5px; color: var(--text-faint); margin-top: 3px; }

/* —— 复制 Skill（保留，无边框发光芯片） —— */
.skill-chip {
  position: absolute; z-index: 3; bottom: 13%; left: 6%;
  border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--accent);
  background: rgba(87,227,196,.1); padding: 13px 22px; border-radius: 999px;
  box-shadow: 0 0 34px -6px rgba(87,227,196,.4); backdrop-filter: blur(6px);
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.skill-chip:hover { transform: translateY(-2px); background: rgba(87,227,196,.18); color: var(--accent-bright); }

/* —— 演示视频（保留，无边框发光面板，放大） —— */
.video-orb {
  position: absolute; z-index: 3; top: 23%; right: 4%;
  width: 244px; aspect-ratio: 16/10; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, rgba(87,227,196,.16), rgba(11,16,24,.85));
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 50px -8px rgba(87,227,196,.4);
}
.video-orb__play { position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 50%; border: none; background: rgba(87,227,196,.2); color: var(--accent); display: grid; place-items: center; cursor: pointer; transition: transform var(--t-fast), background var(--t-fast); }
.video-orb__play:hover { transform: scale(1.08); background: rgba(87,227,196,.34); }
.video-orb__play svg { width: 26px; height: 26px; }
.video-orb__ph { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; }
.video-orb__ph span { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }

@media (max-width: 960px) {
  .drift { display: none; }
  .space { padding: 116px 0 56px; min-height: auto; }
  .space__core { position: static; }
  .chat { max-height: 60vh; min-height: 240px; }
  .space__actions { margin-top: var(--s6); }
}
@media (max-width: 560px) {
  .space__stats { gap: var(--s6); }
  .stat__n { font-size: 26px; }
}

/* 尊重「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  .drift { animation: none; opacity: .6; }
}

/* API 开放平台外链导航项 */
.nav__link--ext { color: var(--accent); border: 1px solid rgba(87,227,196,.35); border-radius: var(--r-pill); padding: 6px 14px; }
.nav__link--ext:hover { background: rgba(87,227,196,.1); color: var(--accent-bright); }
.nav__ext-ic { width: 13px; height: 13px; margin-left: 4px; vertical-align: -1px; }

@media (max-width: 900px) {
  .svc-detail__grid { grid-template-columns: 1fr; }
  .contact-info__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact-chat__window { border-radius: var(--r-md); }
  .video-frame { aspect-ratio: 4/3; }
}

/* full-width button (original definition lived inside the removed .talk block; re-added here) */
.btn--full { width: 100%; justify-content: center; }

/* --- responsive --- */
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 560px) {
  .contact__quote { padding: var(--s6); }
  .contact__ai-toggle, .contact__mgr, .contact__skill { padding-left: var(--s5); padding-right: var(--s5); }
  .contact__ai-panel { padding-left: var(--s5); padding-right: var(--s5); }
}

/* ============ 开源研究室页 + 首页导览 ============ */
.lab-hero {
  padding: 140px 0 56px;
  position: relative;
  overflow: hidden;
}
.lab-hero::before {
  content: "";
  position: absolute;
  inset: -120px -10% auto -10%;
  height: 520px;
  background:
    radial-gradient(60% 100% at 28% 0%, rgba(87,227,196,.16), transparent 70%),
    radial-gradient(50% 100% at 82% 8%, rgba(255,180,84,.10), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.lab-hero .wrap { position: relative; }
.lab-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: var(--s5) 0 var(--s6);
  max-width: 18ch;
}
.lab-hero__sub {
  max-width: 680px;
  color: var(--text-dim);
  font-size: 1.06rem;
  line-height: 1.85;
}
.lab-hero__actions { display: flex; gap: var(--s4); margin-top: 32px; flex-wrap: wrap; }

.os-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.os-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 13.5px; color: var(--text);
  background: rgba(87,227,196,.05);
}
.os-badge svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.os-banner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 48px; padding: 28px 32px;
  border: 1px solid rgba(87,227,196,.3);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(87,227,196,.08), rgba(255,180,84,.05));
}
.os-banner__tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em;
  color: var(--accent); border: 1px solid rgba(87,227,196,.4);
  border-radius: var(--r-pill); padding: 6px 14px; flex: none;
}
.os-banner p { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.7; }
.os-banner strong { color: var(--accent-bright); }

.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: 32px; }
.os-card {
  padding: var(--s6);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  transition: border-color var(--t-mid), transform var(--t-mid);
}
.os-card:hover { border-color: rgba(87,227,196,.4); transform: translateY(-3px); }
.os-card__tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; color: var(--accent);
  border: 1px solid rgba(87,227,196,.35); border-radius: var(--r-pill);
  padding: 3px 10px; margin-bottom: var(--s4);
}
.os-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 12px; color: var(--text); }
.os-card p { color: var(--text-dim); font-size: 13.5px; line-height: 1.7; margin: 0; }

.wayfinder__lead { max-width: 620px; color: var(--text-dim); font-size: 1.02rem; line-height: 1.8; margin-top: var(--s4); }
.wayfinder__lead strong { color: var(--accent-bright); }
.wayfinder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); margin-top: 32px; }
.wf-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: var(--s6);
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.02);
  text-decoration: none; color: var(--text);
  transition: border-color var(--t-mid), transform var(--t-mid), background var(--t-mid);
}
.wf-card:hover { border-color: rgba(87,227,196,.45); transform: translateY(-4px); background: rgba(87,227,196,.04); }
.wf-card__ic { font-size: 26px; }
.wf-card b { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); }
.wf-card i { font-style: normal; color: var(--text-dim); font-size: 13px; line-height: 1.6; }
.wf-card__go { margin-top: auto; padding-top: var(--s3); color: var(--accent); font-size: 13.5px; font-weight: 600; }

@media (max-width: 1024px) {
  .os-grid, .wayfinder-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .os-grid, .wayfinder-grid { grid-template-columns: 1fr; }
  .os-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
  .lab-hero__title { max-width: none; }
}

/* ===== 应用板块（占位 / 筹备中） ===== */
.apps-prelude {
  min-height: calc(100vh - 240px);
  display: flex;
  align-items: center;
  padding-top: var(--s12);
  padding-bottom: var(--s12);
}
.apps-prelude__inner { max-width: 720px; }
.apps-prelude__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: var(--s4) 0 var(--s6);
  background: linear-gradient(120deg, #fff 0%, var(--accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.apps-prelude__lead {
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 60ch;
}
.apps-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s6);
  padding: var(--s2) var(--s4);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.apps-status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  animation: appsPulse 2s ease-in-out infinite;
}
@keyframes appsPulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.45;transform:scale(.7);} }
.apps-prelude__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }
@media (prefers-reduced-motion: reduce) {
  .apps-status__dot { animation: none; }
}

/* =========================================================
   入场序章 · 电影级滚动镜头（虚拟俯冲 + 分层视差 + 概念3D场景）
   ========================================================= */
/* 远景：真实银河 / 星云（带 CSS 渐变兜底，图片失败也不穿帮） */
/* =========================================================
   传播分享模块（社交属性 · 短视频平台 · 生成图文）
   ========================================================= */
.share-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 3000;
  display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 18px 0 16px;
  border: 1px solid rgba(87,227,196,.5); border-radius: 100px; cursor: pointer;
  background: linear-gradient(180deg, rgba(87,227,196,.16), rgba(9,14,22,.92));
  color: var(--text); font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
  box-shadow: 0 0 26px rgba(87,227,196,.25), 0 8px 24px rgba(0,0,0,.4);
  backdrop-filter: blur(8px); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.share-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 38px rgba(87,227,196,.4); }
.share-fab svg { width: 18px; height: 18px; color: var(--accent); }
.share-fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.share-count {
  font-size: 11px; color: var(--accent); background: rgba(87,227,196,.12);
  padding: 2px 9px; border-radius: 100px; letter-spacing: .02em;
}

.share-mask {
  position: fixed; inset: 0; z-index: 3001; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(3,5,10,.6); backdrop-filter: blur(4px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.share-mask.is-open { opacity: 1; visibility: visible; }
.share-panel {
  width: min(560px, 100%); max-height: 86vh; overflow-y: auto; margin: 0 12px 12px;
  background: linear-gradient(180deg, #0b1018, #070b13); border: 1px solid var(--line-strong);
  border-radius: 20px 20px 16px 16px; padding: 22px 22px 26px; transform: translateY(16px);
  transition: transform .35s var(--ease); box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.share-mask.is-open .share-panel { transform: none; }
.share-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.share-panel__title { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--text); }
.share-panel__sub { margin: 6px 0 18px; font-size: .85rem; line-height: 1.7; color: var(--text-dim); }
.share-panel__close {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--text-dim); cursor: pointer; font-size: 16px; line-height: 1;
}
.share-panel__close:hover { color: var(--text); border-color: var(--accent); }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.share-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02);
  cursor: pointer; color: var(--text-dim); transition: all .25s var(--ease); font-family: var(--font-mono); font-size: 12px;
}
.share-item:hover { border-color: rgba(87,227,196,.5); background: rgba(87,227,196,.06); color: var(--text); transform: translateY(-2px); }
.share-item__ic {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.share-item__ic svg { width: 20px; height: 20px; }
.ic-wechat { background: #1aad19; }
.ic-weibo { background: #e6162d; }
.ic-douyin { background: #000; border: 1px solid #2a2a2a; }
.ic-kuaishou { background: #ff4906; }
.ic-bili { background: #00a1d6; }
.ic-xhs { background: #ff2442; }
.ic-copy { background: rgba(255,255,255,.06); color: var(--accent); }
.ic-poster { background: linear-gradient(135deg, #57e3c4, #3c8cff); color: #04111a; }
.share-foot { margin-top: 18px; display: flex; gap: 12px; }
.share-foot .btn {
  flex: 1; justify-content: center; min-height: 46px; border-radius: 100px; cursor: pointer;
  font-family: var(--font-mono); font-size: 13px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03); color: var(--text); transition: all .25s var(--ease);
}
.share-foot .btn:hover { border-color: var(--accent); background: rgba(87,227,196,.08); }
.share-foot .btn--primary { background: var(--accent); color: #04111a; border-color: var(--accent); font-weight: 700; }
.share-foot .btn--primary:hover { background: var(--accent-bright, #7af0d6); }

/* 生成图文：海报弹窗 */
.poster-mask {
  position: fixed; inset: 0; z-index: 3002; display: flex; align-items: center; justify-content: center;
  background: rgba(3,5,10,.7); backdrop-filter: blur(4px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease); padding: 16px;
}
.poster-mask.is-open { opacity: 1; visibility: visible; }
.poster-card {
  width: min(440px, 100%); background: #070b13; border: 1px solid var(--line-strong);
  border-radius: 18px; padding: 18px; transform: scale(.96); transition: transform .3s var(--ease);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.poster-mask.is-open .poster-card { transform: none; }
.poster-card canvas { width: 100%; height: auto; border-radius: 12px; display: block; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.poster-actions { margin-top: 14px; display: flex; gap: 10px; }
.poster-actions .btn {
  flex: 1; justify-content: center; min-height: 44px; border-radius: 100px; cursor: pointer;
  font-family: var(--font-mono); font-size: 13px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03); color: var(--text); transition: all .25s var(--ease);
}
.poster-actions .btn--primary { background: var(--accent); color: #04111a; border-color: var(--accent); font-weight: 700; }
.poster-actions .btn:hover { border-color: var(--accent); }

/* 轻提示 toast */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 12px); z-index: 3003;
  padding: 11px 20px; border-radius: 100px; background: rgba(7,11,19,.95); color: var(--text);
  border: 1px solid var(--accent); font-family: var(--font-mono); font-size: 13px; letter-spacing: .03em;
  box-shadow: 0 0 24px rgba(87,227,196,.25); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .share-fab { bottom: 132px; right: 14px; padding: 0 14px 0 13px; min-height: 46px; }
  .share-grid { grid-template-columns: repeat(3, 1fr); }
}
