/* ════════════════════════════════════════════════════════════
   星核科技 CoreNova · 官网样式
   设计系统：深空星核 / Deep-Space Core
   ─ 色板：深空墨蓝底 + 青→紫极光渐变
   ─ 字体：Space Grotesk（西文展示）/ JetBrains Mono（标签数据）
           中文使用系统黑体（PingFang / 雅黑）保证加载速度
   ════════════════════════════════════════════════════════════ */

:root {
  /* 色板 */
  --ink: #05070F;          /* 深空底色 */
  --ink-2: #0A0E1C;        /* 面板底 */
  --ink-3: #10142A;        /* 面板亮层 */
  --text: #EDF0FF;         /* 主文字：冷白 */
  --muted: #9AA3C7;        /* 次要文字 */
  --faint: #5C6489;        /* 弱化文字/标签 */
  --cyan: #35E0FF;         /* 极光青 */
  --violet: #7A5CFF;       /* 极光紫 */
  --danger: #FF7A93;
  --grad: linear-gradient(135deg, var(--cyan), var(--violet));
  --line: rgba(146, 160, 255, 0.14);          /* 发丝线 */
  --line-strong: rgba(146, 160, 255, 0.28);
  --glass: rgba(8, 11, 24, 0.62);             /* 玻璃态 */

  /* 字体 */
  --font-body: "Space Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "PingFang SC", monospace;

  /* 尺度 */
  --container: 1200px;
  --radius: 20px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-curtain: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── 基础 ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(53, 224, 255, 0.28); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 6px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
strong { font-weight: 600; color: var(--text); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(var(--container), 92vw); margin-inline: auto; }

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ── 背景层 ───────────────────────────────────────────── */
#coreCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(146, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%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");
}

/* ── 预加载 ───────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  transition: transform 0.85s var(--ease-curtain);
}
.preloader.done { transform: translateY(-100%); }
.preloader-inner { text-align: center; }
.preloader-logo { display: flex; justify-content: center; margin-bottom: 1.2rem; animation: spin-slow 6s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.preloader-count {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.preloader-label { margin-top: 0.8rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.22em; color: var(--faint); }

/* ── 自定义光标（仅 fine pointer 设备启用） ────────────── */
.cursor-dot, .cursor-ring { display: none; }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button, body.has-cursor [data-cursor] { cursor: none; }
body.has-cursor .cursor-dot {
  display: block;
  position: fixed;
  z-index: 4001;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
  pointer-events: none;
  transform: translate(-50%, -50%);
}
body.has-cursor .cursor-ring {
  display: block;
  position: fixed;
  z-index: 4000;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(53, 224, 255, 0.45);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s, background-color 0.25s;
}
body.has-cursor .cursor-ring.is-hover {
  width: 60px; height: 60px;
  border-color: rgba(122, 92, 255, 0.7);
  background: rgba(122, 92, 255, 0.08);
}

/* ── 按钮 ─────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
}
.btn-sm { padding: 0.7rem 1.2rem; font-size: 0.88rem; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--grad);
  color: #04060D;
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(53, 224, 255, 0.35), 0 4px 16px rgba(122, 92, 255, 0.3); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── 导航 ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(var(--container), 94vw);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo-text { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; display: flex; align-items: baseline; gap: 0.5rem; }
.nav-logo-text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.3s;
  padding: 0.3rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 40px; height: 40px;
  align-items: center;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav-burger.open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-burger.open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ── 移动端菜单 ───────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(5, 7, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 8vw 3rem;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-curtain);
  visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu-links a {
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 700;
  padding: 0.5rem 0;
  color: var(--muted);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.mobile-menu.open .mobile-menu-links a { opacity: 1; transform: none; }
.mobile-menu-links a:hover { color: var(--text); }
.mobile-menu-links a:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu-links a:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu-links a:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu-links a:nth-child(4) { transition-delay: 0.28s; }
.mobile-menu-links a:nth-child(5) { transition-delay: 0.34s; }
.mobile-menu-links a:nth-child(6) { transition-delay: 0.40s; }
.mobile-menu-links a:nth-child(7) { transition-delay: 0.46s; }
.mobile-menu-links a:nth-child(8) { transition-delay: 0.52s; }
.mobile-menu-cta {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.mobile-menu-foot { margin-top: auto; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--faint); }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 0 6rem;
  overflow: hidden;
}
.hero-outline-word {
  position: absolute;
  right: -1vw;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: clamp(8rem, 16vw, 15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(146, 160, 255, 0.13);
  user-select: none;
  pointer-events: none;
}
.hero-eyebrow { margin-bottom: 1.6rem; }
.hero-eyebrow .mono-tag { color: var(--cyan); }

.hero-title {
  font-size: clamp(3rem, 8.5vw, 7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
}
.ht-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.ht-char { display: inline-block; will-change: transform; }
.ht-grad .ht-char, .ht-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 620px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  margin-bottom: 2.6rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 2rem; }
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.pulse-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.scroll-line {
  width: 1px; height: 52px;
  background: var(--line-strong);
  overflow: hidden;
}
.scroll-line span {
  display: block;
  width: 100%; height: 40%;
  background: var(--grad);
  animation: scroll-drip 1.8s var(--ease-out) infinite;
}
@keyframes scroll-drip {
  0% { transform: translateY(-110%); }
  60%, 100% { transform: translateY(280%); }
}

/* ── 跑马灯 ───────────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 0;
  overflow: hidden;
  background: rgba(10, 14, 28, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 3rem; padding-right: 3rem; }
.marquee-group span {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-group i {
  font-style: normal;
  font-size: 0.8rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── 通用版块 ─────────────────────────────────────────── */
.section { padding: clamp(6rem, 12vh, 9.5rem) 0; position: relative; }
.section-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.eyebrow { margin-bottom: 1.1rem; }
.eyebrow .mono-tag { color: var(--cyan); }
.section-title {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
.section-sub { margin-top: 1.2rem; max-width: 600px; color: var(--muted); }

/* ── 服务能力 Bento ───────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.bento-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  padding: 2rem;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.bento-card:hover { border-color: var(--line-strong); }
.bento-a { grid-column: span 4; }
.bento-b { grid-column: span 2; }
.bento-c { grid-column: span 2; }
.bento-d { grid-column: span 2; }
.bento-e { grid-column: span 2; }

/* 鼠标聚光灯 */
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(53, 224, 255, 0.09), rgba(122, 92, 255, 0.05) 45%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }

.bento-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--cyan);
  background: rgba(53, 224, 255, 0.07);
  border: 1px solid rgba(53, 224, 255, 0.18);
}
.bento-icon svg { width: 22px; height: 22px; }
.bento-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.7rem; }
.bento-card p { color: var(--muted); font-size: 0.95rem; }
.bento-list { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.bento-list li { position: relative; padding-left: 1.2rem; font-size: 0.92rem; color: var(--muted); }
.bento-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--grad);
}
.bento-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.bento-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--faint);
}
.bento-code {
  margin-top: 1.6rem;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 6, 13, 0.7);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--muted);
  overflow-x: auto;
}
.bento-code code { font-family: inherit; }
.bento-arrow {
  position: absolute;
  top: 1.6rem; right: 1.6rem;
  font-size: 1.2rem;
  color: var(--faint);
  transition: transform 0.35s var(--ease-out), color 0.35s;
}
.bento-card:hover .bento-arrow { transform: translate(4px, -4px); color: var(--cyan); }

/* ── 自研产品 ─────────────────────────────────────────── */
.products { display: flex; flex-direction: column; gap: clamp(4rem, 8vw, 6.5rem); }
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.product-flip .product-visual { order: 2; }
.product-flip .product-info { order: 1; }

.product-tag { color: var(--cyan); margin-bottom: 0.9rem; }
.product-info h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; margin-bottom: 1rem; }
.product-info > p { color: var(--muted); margin-bottom: 1.4rem; }
.product-points { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.5rem; }
.product-points li { position: relative; padding-left: 1.35rem; color: var(--muted); font-size: 0.95rem; }
.product-points li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan);
}
.product-flags { display: flex; gap: 0.6rem; }
.product-flags span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(122, 92, 255, 0.1);
  border: 1px solid rgba(122, 92, 255, 0.32);
  color: #B7A8FF;
}

/* 设备模型：窗口 */
.mock-window {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(53, 224, 255, 0.05);
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .mock-window { transform: translateY(-6px); }
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.mock-titlebar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--line); }
.mock-titlebar i:first-child { background: rgba(255, 122, 147, 0.35); }
.mock-titlebar i:nth-child(2) { background: rgba(255, 209, 116, 0.3); }
.mock-titlebar i:nth-child(3) { background: rgba(94, 234, 180, 0.3); }
.mock-url {
  margin-left: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding: 0.2rem 0.8rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}
.mock-body { padding: 1.1rem; min-height: 240px; }

/* OA 仪表盘示意 */
.mock-oa { display: flex; gap: 1rem; }
.mock-oa-side { display: flex; flex-direction: column; gap: 0.7rem; padding: 0.4rem 0.2rem; }
.mock-oa-side b {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--ink-3);
  border: 1px solid var(--line);
}
.mock-oa-side b:first-child { background: linear-gradient(135deg, rgba(53,224,255,.35), rgba(122,92,255,.35)); border-color: transparent; }
.mock-oa-main { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.mock-oa-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.mock-oa-stats > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
}
.mock-oa-stats em { display: block; font-style: normal; font-size: 0.68rem; color: var(--faint); margin-bottom: 0.25rem; }
.mock-oa-stats strong {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mock-oa-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 110px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}
.mock-oa-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(53, 224, 255, 0.75), rgba(122, 92, 255, 0.35));
  transform-origin: bottom;
  animation: bar-grow 1.2s var(--ease-out) backwards;
}
.mock-oa-chart i:nth-child(2) { animation-delay: 0.08s; }
.mock-oa-chart i:nth-child(3) { animation-delay: 0.16s; }
.mock-oa-chart i:nth-child(4) { animation-delay: 0.24s; }
.mock-oa-chart i:nth-child(5) { animation-delay: 0.32s; }
.mock-oa-chart i:nth-child(6) { animation-delay: 0.40s; }
.mock-oa-chart i:nth-child(7) { animation-delay: 0.48s; }
@keyframes bar-grow { from { transform: scaleY(0); } }

/* 设备模型：手机小程序 */
.mock-phone {
  position: relative;
  width: min(280px, 78%);
  margin-inline: auto;
  border-radius: 38px;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(122, 92, 255, 0.08);
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .mock-phone { transform: translateY(-6px) rotate(-1deg); }
.mock-phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 20px;
  border-radius: 0 0 14px 14px;
  background: var(--ink);
  z-index: 2;
}
.mock-mp {
  border-radius: 28px;
  overflow: hidden;
  background: #0B0F1F;
  padding: 2.4rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.mock-mp-nav { text-align: center; font-size: 0.85rem; font-weight: 600; }
.mock-mp-banner {
  border-radius: 12px;
  padding: 1.1rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #04060D;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
}
.mock-mp-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.mock-mp-cats i {
  font-style: normal;
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  padding: 0.5rem 0.2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.mock-mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.mock-mp-grid > div {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.mock-mp-grid b {
  height: 52px;
  border-radius: 7px;
  background: linear-gradient(150deg, rgba(53, 224, 255, 0.22), rgba(122, 92, 255, 0.28));
}
.mock-mp-grid em { font-style: normal; font-size: 0.7rem; color: var(--text); }
.mock-mp-grid strong { font-size: 0.78rem; color: var(--cyan); }

/* AI 对话示意 */
.mock-ai { display: flex; flex-direction: column; gap: 0.8rem; justify-content: center; }
.mock-ai-msg {
  max-width: 86%;
  padding: 0.75rem 0.95rem;
  border-radius: 13px;
  font-size: 0.8rem;
  line-height: 1.6;
}
.mock-ai-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(53, 224, 255, 0.16), rgba(122, 92, 255, 0.2));
  border: 1px solid rgba(53, 224, 255, 0.25);
  border-bottom-right-radius: 4px;
}
.mock-ai-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--muted);
}
.mock-ai-cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
}
.mock-ai-typing { display: flex; gap: 5px; padding: 0.3rem 0.5rem; }
.mock-ai-typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--faint);
  animation: typing 1.2s ease-in-out infinite;
}
.mock-ai-typing i:nth-child(2) { animation-delay: 0.15s; }
.mock-ai-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

/* ── 服务流程 ─────────────────────────────────────────── */
.process { position: relative; padding-top: 1rem; }
.process-line {
  position: absolute;
  top: 1.9rem; left: 0;
  width: 100%; height: 1px;
  background: var(--line);
}
.process-line span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  counter-reset: step;
}
.process-step { position: relative; padding-top: 2.4rem; }
.process-step::before {
  content: "";
  position: absolute;
  top: 0.55rem; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--line-strong);
  transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s;
}
.process-step:hover::before { border-color: var(--cyan); box-shadow: 0 0 16px rgba(53, 224, 255, 0.5); }
.process-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.process-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.55rem; }
.process-step p { font-size: 0.9rem; color: var(--muted); }

/* ── 交付场景 ─────────────────────────────────────────── */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.scene-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006));
  padding: 2rem;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.scene-card:hover { border-color: var(--line-strong); }
.scene-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.7rem; }
.scene-card > p { color: var(--muted); font-size: 0.93rem; margin-bottom: 1.3rem; }
.scene-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.scene-chips span {
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.scene-card:hover .scene-chips span { border-color: rgba(53, 224, 255, 0.35); color: var(--text); }
.scene-meta { color: var(--cyan); }

/* ── 技术栈 ───────────────────────────────────────────── */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.stack-group h3 { margin-bottom: 1rem; color: var(--cyan); }
.stack-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.stack-pills span {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.stack-pills span:hover {
  border-color: var(--cyan);
  color: var(--text);
  box-shadow: 0 0 20px rgba(53, 224, 255, 0.15);
  transform: translateY(-2px);
}

/* ── 数据承诺带 ───────────────────────────────────────── */
.stats-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 28, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3.5rem 0;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stats strong {
  display: block;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stats strong i {
  font-style: normal;
  font-size: 0.45em;
  font-weight: 600;
  margin-left: 0.15em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats li > span { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 0.92rem; }

/* ── 联系我们 ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}
.contact-methods { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.contact-methods li { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-methods .mono-tag { color: var(--faint); }
.contact-methods a { font-size: 1.1rem; font-weight: 600; transition: color 0.3s; width: fit-content; }
.contact-methods a:hover { color: var(--cyan); }

.contact-wechat {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.6rem;
  padding: 1.2rem;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  width: fit-content;
}
.wechat-qr {
  width: 72px; height: 72px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
}
.contact-wechat p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.contact-wechat .mono-tag { font-size: 0.64rem; }

.contact-form {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 6, 13, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  color-scheme: dark;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--faint); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 224, 255, 0.12);
}
.form-error { display: none; font-style: normal; font-size: 0.78rem; color: var(--danger); margin-top: 0.4rem; }
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--danger); }
.form-field.invalid .form-error { display: block; }
.form-note { margin-top: 1rem; font-size: 0.78rem; color: var(--faint); text-align: center; }

.form-success {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius);
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 2rem;
  color: var(--cyan);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}
.form-success h3 { color: var(--text); font-size: 1.35rem; }
.form-success p { color: var(--muted); font-size: 0.92rem; max-width: 320px; }
.contact-form.sent .form-success { opacity: 1; visibility: visible; }

/* ── 页脚 ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  background: rgba(6, 8, 17, 0.7);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { margin-top: 0.7rem; color: var(--faint); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.footer-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.8rem;
  color: var(--faint);
}
.footer-bottom a { transition: color 0.3s; }
.footer-bottom a:hover { color: var(--muted); }

/* ── 回到顶部 ─────────────────────────────────────────── */
.back-top {
  position: fixed;
  right: 1.6rem; bottom: 1.6rem;
  z-index: 900;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s, border-color 0.3s, color 0.3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── 滚动揭示（仅 JS/GSAP 可用时启用隐藏初始态） ───────── */
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
html.js-anim .reveal.in { opacity: 1; transform: none; }

/* ── 响应式 ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bento-a, .bento-b, .bento-c, .bento-d, .bento-e { grid-column: span 3; }
  .bento-a { grid-column: span 6; }
  .product-card, .product-flip .product-visual, .product-flip .product-info { grid-template-columns: 1fr; order: initial; }
  .product-card { gap: 2.5rem; }
  .scenes { grid-template-columns: 1fr 1fr; }
  .stack { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-line { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-burger { display: flex; }
  .hero { padding-bottom: 8rem; }
  .hero-outline-word { display: none; }
  .hero-badges { gap: 1.2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 2.4rem 1rem; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .bento-a, .bento-b, .bento-c, .bento-d, .bento-e { grid-column: span 6; }
  .scenes { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr; gap: 1.8rem; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-scroll-hint { display: none; }
}

/* ── 信任区块 ───────────────────────────────────────────── */
.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.trust-stat {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trust-stat strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.trust-stat strong i { font-style: normal; color: var(--cyan); font-size: 1.4rem; margin-left: 0.1em; }

.trust-stat > span {
  color: var(--muted);
  font-size: 0.85rem;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color 0.35s var(--ease-out);
}

.testimonial-card:hover {
  border-color: var(--line-strong);
}

.testimonial-stars {
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.testimonial-card blockquote {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-author .mono-tag {
  font-size: 0.62rem;
  margin-top: 0.1rem;
}

/* ── 关于我们 ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-value {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  transition: border-color 0.35s var(--ease-out);
}

.about-value:hover {
  border-color: var(--line-strong);
}

.about-value h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.about-value p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list {
  max-width: 700px;
  margin: 2rem auto 0;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.6rem;
  background: var(--glass);
  transition: border-color 0.3s var(--ease-out);
}

.faq-item:hover {
  border-color: var(--line-strong);
}

.faq-item summary {
  padding: 1rem 1.3rem;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--cyan);
  transition: transform 0.3s var(--ease-out);
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--violet);
}

.faq-body {
  padding: 0 1.3rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.faq-body strong { color: var(--text); }

/* ── AI 强化卡片 ─────────────────────────────────────────── */
.bento-featured {
  position: relative;
  border-color: rgba(122, 92, 255, 0.3) !important;
  background: linear-gradient(135deg, rgba(122,92,255,0.06) 0%, rgba(53,224,255,0.04) 100%);
}

.bento-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.7rem;
  background: var(--grad);
  border-radius: 20px;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 500;
}

.bento-cta {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 0.65rem;
  transition: border-color 0.3s;
}

.bento-cta:hover { border-color: var(--violet); color: var(--violet); }

/* ── 案例指标 ───────────────────────────────────────────── */
.case-metric {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.7rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-metric strong {
  font-size: 0.85rem;
  color: var(--cyan);
}

.case-metric span {
  font-size: 0.75rem;
  color: var(--faint);
  font-family: var(--font-mono);
}

/* ── 响应式：信任区块 ───────────────────────────────────── */
@media (max-width: 1024px) {
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .trust-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .trust-stat strong { font-size: 1.8rem; }
  .bento-badge { position: static; display: inline-block; margin-bottom: 0.6rem; }
}

@media (max-width: 560px) {
  .trust-stats { grid-template-columns: 1fr 1fr; }
  .testimonial-card { padding: 1.4rem; }
  .faq-item summary { font-size: 0.88rem; padding: 0.9rem 1rem; }
}

/* ── 降低动态偏好 ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  html.js-anim .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .hero-scroll-hint, .grain { display: none; }
}
