/* ============================================================
   宇宙核 官网样式 — 极客 · 深空 · 霓虹
   ============================================================ */

/* ---------- 主题变量 ---------- */
:root {
  --bg: #05060f;
  --bg-2: #0a0d1f;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .09);
  --border-hi: rgba(255, 255, 255, .18);
  --text: #e8ecf8;
  --text-dim: #9aa3c0;
  --accent: #7c6cff;
  --accent-2: #4de3ff;
  --accent-3: #ff6cd5;
  --glow: rgba(124, 108, 255, .35);
  --font-sans: 'Inter', 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', 'Cascadia Code', 'Fira Code', Consolas, 'Courier New', monospace;
  --nav-h: 64px;
  --radius: 16px;
}
[data-theme="aurora"] { --accent:#7c6cff; --accent-2:#4de3ff; --accent-3:#ff6cd5; --glow:rgba(124,108,255,.35); }
[data-theme="cyber"]  { --accent:#00e5c7; --accent-2:#4de3ff; --accent-3:#7c6cff; --glow:rgba(0,229,199,.3); }
[data-theme="solar"]  { --accent:#ff9a3c; --accent-2:#ffd23c; --accent-3:#ff5c7a; --glow:rgba(255,154,60,.3); }
[data-theme="sakura"] { --accent:#ff6cd5; --accent-2:#ff9ec7; --accent-3:#7c6cff; --glow:rgba(255,108,213,.3); }

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .5s ease;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }
.mono { font-family: var(--font-mono); }
.container { width: min(1180px, 92%); margin: 0 auto; }
section { scroll-margin-top: var(--nav-h); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2f4a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  z-index: 1001; box-shadow: 0 0 12px var(--glow);
}

/* ---------- 自定义光标 ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.cursor-ring {
  width: 34px; height: 34px; border: 1.5px solid var(--accent);
  opacity: .55; transition: width .25s, height .25s, opacity .25s;
}
.cursor-ring.hovering { width: 52px; height: 52px; opacity: .9; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 15, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .3px; }
.nav-logo em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 7px 14px; border-radius: 9px; font-size: 14.5px; color: var(--text-dim);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.nav-cta {
  color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-left: 8px; box-shadow: 0 4px 18px var(--glow);
}
.nav-links a.nav-cta:hover { filter: brightness(1.12); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.theme-dots { display: flex; gap: 8px; }
.theme-dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--dot);
  border: 2px solid transparent; transition: transform .25s, border-color .25s;
}
.theme-dot:hover { transform: scale(1.25); }
.theme-dot.active { border-color: #fff; transform: scale(1.15); box-shadow: 0 0 10px var(--dot); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  overflow: hidden;
}
#starCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.orb-a { width: 480px; height: 480px; background: var(--accent); top: -160px; right: -80px; opacity: .24; animation: orbFloat 12s ease-in-out infinite; }
.orb-b { width: 380px; height: 380px; background: var(--accent-3); bottom: -140px; left: -100px; opacity: .17; animation: orbFloat 15s ease-in-out infinite reverse; }
.orb-c { width: 300px; height: 300px; background: var(--accent-2); top: 32%; left: 38%; opacity: .13; animation: orbFloat 18s ease-in-out infinite 2s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(36px, 44px) scale(1.09); }
  66% { transform: translate(-28px, 20px) scale(.95); }
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 99px; font-size: 13.5px;
  background: var(--surface); border: 1px solid var(--border-hi);
  color: var(--text-dim); backdrop-filter: blur(8px);
}
.hero-badge .mono { color: var(--accent-2); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--glow); } 100% { box-shadow: 0 0 0 10px transparent; } }

.hero-title {
  margin: 22px 0 6px; line-height: 1.08;
  font-size: clamp(44px, 6.4vw, 76px); font-weight: 900; letter-spacing: -1.5px;
}
.hero-title-cn {
  display: block; font-size: .42em; font-weight: 800; letter-spacing: 14px; margin-top: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.glitch {
  position: relative; display: inline-block;
  background: linear-gradient(90deg, #fff 0%, var(--accent-2) 28%, #fff 50%, var(--accent) 74%, #fff 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleSheen 6s linear infinite;
}
@keyframes titleSheen { to { background-position: -240% 0; } }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: 0;
  background: none;
}
.glitch::before { color: var(--accent-2); -webkit-text-fill-color: var(--accent-2); animation: glitch1 3.4s infinite linear alternate; }
.glitch::after { color: var(--accent-3); -webkit-text-fill-color: var(--accent-3); animation: glitch2 2.9s infinite linear alternate; }
@keyframes glitch1 {
  0%, 88%, 100% { opacity: 0; }
  90% { opacity: .8; transform: translate(-3px, -2px); clip-path: inset(12% 0 58% 0); }
  94% { opacity: .8; transform: translate(3px, 1px); clip-path: inset(62% 0 8% 0); }
}
@keyframes glitch2 {
  0%, 86%, 100% { opacity: 0; }
  89% { opacity: .8; transform: translate(3px, 2px); clip-path: inset(38% 0 32% 0); }
  95% { opacity: .8; transform: translate(-3px, -1px); clip-path: inset(78% 0 2% 0); }
}
.hero-tag { font-size: clamp(17px, 2vw, 21px); color: var(--text-dim); }
.hero-type { min-height: 30px; margin-top: 14px; font-size: 15px; color: var(--accent-2); }
.caret {
  display: inline-block; width: 8px; height: 17px; margin-left: 3px; vertical-align: -3px;
  background: var(--accent-2); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 12px; font-size: 15px; font-weight: 700;
  transition: transform .25s, box-shadow .25s, filter .25s, border-color .25s;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 26px var(--glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 34px var(--glow); filter: brightness(1.1); }
.btn-ghost { border: 1px solid var(--border-hi); color: var(--text); background: var(--surface); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.btn-lg { padding: 16px 34px; font-size: 16px; border-radius: 14px; }

.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--accent-2); }
.stat b::after { content: '+'; color: var(--accent-3); }
.stat span { font-size: 13px; color: var(--text-dim); }

/* ---------- 手机 Mock ---------- */
.hero-phone-wrap { position: relative; display: flex; justify-content: center; perspective: 1200px; }
.phone {
  position: relative; width: min(300px, 72vw); aspect-ratio: 300 / 600;
  border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #23273f, #0b0e1d 40%);
  border: 1px solid var(--border-hi);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 70px var(--glow);
  transform: rotateY(-11deg) rotateX(5deg);
  animation: phoneFloat 6s ease-in-out infinite;
  transition: transform .2s ease-out;
}
@keyframes phoneFloat { 50% { translate: 0 -16px; } }
.phone-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px; border-radius: 0 0 16px 16px; background: #0b0e1d; z-index: 3;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(170deg, #0d1024 0%, #080a18 60%, #0a0d1f 100%);
  display: flex; flex-direction: column; padding: 12px 14px;
}
.ps-status { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-dim); padding: 4px 6px 0; }
.ps-icons { display: flex; gap: 4px; }
.ps-icons i { width: 10px; height: 6px; border-radius: 1.5px; background: var(--text-dim); opacity: .7; }
.ps-header { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 800; font-size: 15px; }
.ps-logo { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px var(--glow); }
.ps-avatar { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-3), var(--accent)); }
.ps-search {
  margin-top: 14px; padding: 9px 13px; border-radius: 11px; font-size: 11px;
  color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border);
}
.ps-label { margin-top: 16px; margin-bottom: 10px; font-size: 12.5px; font-weight: 700; color: var(--text-dim); }
.ps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.ps-tile {
  aspect-ratio: 1; border-radius: 13px; background: var(--tg);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: rgba(255,255,255,.95);
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  animation: tilePulse 4s ease-in-out infinite;
}
.ps-tile:nth-child(3n) { animation-delay: 1.2s; }
.ps-tile:nth-child(4n) { animation-delay: 2.1s; }
@keyframes tilePulse { 50% { transform: scale(.92); filter: brightness(1.25); } }
.ps-tile svg {
  width: 18px; height: 18px; color: #fff; opacity: .96;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.ps-tile-more { background: var(--surface-2); border: 1px dashed var(--border-hi); color: var(--text-dim); font-size: 11px; animation: none; }
.ps-voice-fab {
  position: absolute; right: 16px; bottom: 66px; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px var(--glow);
  animation: fabBreath 2.6s ease-in-out infinite;
}
@keyframes fabBreath { 50% { box-shadow: 0 8px 32px var(--glow), 0 0 0 10px rgba(255,255,255,.04); } }
.ps-nav {
  margin-top: auto; display: flex; justify-content: space-around;
  padding: 10px 0 4px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-dim);
}
.ps-nav .on { color: var(--accent-2); font-weight: 700; }

.chip {
  position: absolute; padding: 8px 15px; border-radius: 99px; font-size: 12px;
  background: rgba(10, 13, 31, .8); border: 1px solid var(--border-hi);
  backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,.4);
  animation: chipFloat 5s ease-in-out infinite;
}
.chip::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); margin-right: 7px; box-shadow: 0 0 8px var(--accent-2); }
.chip-a { top: 12%; left: -6%; color: var(--accent-2); }
.chip-b { top: 44%; right: -9%; color: var(--accent-3); animation-delay: 1.4s; }
.chip-b::before { background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3); }
.chip-c { bottom: 12%; left: -2%; color: var(--accent); animation-delay: 2.6s; }
.chip-c::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
@keyframes chipFloat { 50% { transform: translateY(-12px); } }

.hero-scrollhint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 3px; color: var(--text-dim);
  animation: hintBob 2s ease-in-out infinite; z-index: 2;
}
@keyframes hintBob { 50% { transform: translate(-50%, 8px); opacity: .5; } }

/* ---------- 滚动带 ---------- */
.marquee {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 16px 0; overflow: hidden; background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; white-space: nowrap; width: max-content; animation: marquee 46s linear infinite; }
.marquee-track span { font-size: 13.5px; color: var(--text-dim); padding-right: 12px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 通用 Section ---------- */
.section { position: relative; padding: 110px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 58px; }
.sec-tag {
  display: inline-block; font-size: 12.5px; letter-spacing: 2px; color: var(--accent-2);
  padding: 5px 14px; border: 1px solid var(--border-hi); border-radius: 99px;
  background: var(--surface); margin-bottom: 18px;
}
.sec-head h2, .split h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -.5px; line-height: 1.25; }
.sec-head p { margin-top: 12px; color: var(--text-dim); font-size: 16px; }

/* ---------- 核心功能卡片 ---------- */
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fcard {
  position: relative; padding: 34px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; transform-style: preserve-3d;
  transition: border-color .35s, box-shadow .35s;
}
.fcard:hover { border-color: var(--accent); box-shadow: 0 24px 50px rgba(0,0,0,.45), 0 0 40px var(--glow); }
.fcard-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px var(--glow);
}
.fcard-icon svg { width: 26px; height: 26px; color: #fff; }
.fcard h3 { font-size: 21px; font-weight: 800; margin-bottom: 12px; }
.fcard p { font-size: 14.5px; color: var(--text-dim); }
.fcard-list { margin-top: 18px; display: flex; flex-direction: column; gap: 7px; }
.fcard-list li { font-size: 12.5px; color: var(--accent-2); padding-left: 16px; position: relative; }
.fcard-list li::before { content: '▸'; position: absolute; left: 0; color: var(--accent-3); }
.fcard-glow {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: var(--accent); filter: blur(90px); opacity: 0;
  top: -80px; right: -80px; transition: opacity .4s; pointer-events: none;
}
.fcard:hover .fcard-glow { opacity: .18; }

/* ---------- 工具矩阵 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tcard {
  position: relative; padding: 24px 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s, background .3s;
  overflow: hidden;
}
.tcard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.tcard:hover { border-color: var(--border-hi); background: var(--surface-2); box-shadow: 0 16px 36px rgba(0,0,0,.4); }
.tcard:hover::before { transform: scaleX(1); }
.tcard-num { font-size: 11px; letter-spacing: 2.5px; color: var(--accent-3); }
.tcard h4 { margin: 10px 0 8px; font-size: 17px; font-weight: 800; }
.tcard p { font-size: 12.8px; color: var(--text-dim); line-height: 1.75; }

/* ---------- 左右分栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-reverse > .split-left { order: 1; }
.split-reverse > .split-right { order: 2; }
.split-desc { margin-top: 14px; color: var(--text-dim); font-size: 15.5px; }
.split .sec-tag { margin-bottom: 14px; }
.check-list { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: '✔'; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 7px; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 12px var(--glow);
}
.check-list b { display: block; font-size: 15.5px; }
.check-list span { font-size: 13.5px; color: var(--text-dim); }

/* ---------- 终端 ---------- */
.terminal {
  border-radius: 14px; overflow: hidden;
  background: #0a0c1a; border: 1px solid var(--border-hi);
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 50px var(--glow);
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: 10px; font-size: 12px; color: var(--text-dim); }
.terminal-body { padding: 20px; min-height: 300px; font-size: 13.2px; line-height: 2.05; white-space: pre-wrap; word-break: break-all; }
.t-cmd { color: var(--accent-2); }
.t-sys { color: #28c840; }
.t-user { color: var(--text); }
.t-ai { color: var(--accent); }
.t-ok { color: var(--accent-2); }
.t-tts { color: var(--accent-3); }
.t-caret { display: inline-block; width: 8px; height: 15px; background: var(--accent-2); vertical-align: -2px; animation: blink 1s steps(1) infinite; }

/* ---------- 代码窗口 ---------- */
.code-window {
  border-radius: 14px; overflow: hidden;
  background: #0a0c1a; border: 1px solid var(--border-hi);
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 50px var(--glow);
}
.code-bar { padding: 12px 18px; font-size: 12.5px; color: var(--text-dim); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.code-body { padding: 22px; font-size: 14px; line-height: 1.95; overflow-x: auto; }
.c-k { color: var(--accent-2); }
.c-s { color: #a8e07f; }
.c-p { color: var(--text-dim); }

/* ---------- 安全卡片 ---------- */
.sec-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scard {
  padding: 28px 22px; border-radius: var(--radius); text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s;
}
.scard:hover { border-color: var(--accent); box-shadow: 0 18px 44px rgba(0,0,0,.45), 0 0 30px var(--glow); }
.scard-icon {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-hi); background: var(--surface-2);
  color: var(--accent-2); box-shadow: 0 0 22px var(--glow) inset;
}
.scard-icon svg { width: 25px; height: 25px; }
.scard h4 { font-size: 16.5px; margin-bottom: 10px; }
.scard p { font-size: 13px; color: var(--text-dim); }

/* ---------- 主题切换 ---------- */
.themes-inner { text-align: center; }
.theme-switcher { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.theme-card {
  width: 168px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.theme-card:hover { transform: translateY(-6px); }
.theme-card.active { border-color: var(--accent); box-shadow: 0 14px 36px var(--glow); }
.tc-preview {
  width: 100%; height: 74px; border-radius: 10px; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--p1), var(--p2) 55%, var(--p3));
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.theme-card b { font-size: 15.5px; }
.theme-card .mono { font-size: 11px; letter-spacing: 2px; color: var(--text-dim); }
.effect-tags { margin-top: 38px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.etag {
  padding: 8px 18px; border-radius: 99px; font-size: 13px;
  border: 1px solid var(--border-hi); background: var(--surface); color: var(--text-dim);
  transition: color .3s, border-color .3s, box-shadow .3s;
}
.etag:hover { color: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 0 18px var(--glow); }
.etag.more { border-style: dashed; }

/* ---------- 下载 ---------- */
.download-inner {
  position: relative; text-align: center; padding: 80px 40px;
  border-radius: 24px; border: 1px solid var(--border-hi);
  background: var(--bg-2); overflow: hidden;
}
.dl-glow {
  position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 70%, var(--accent) 82%, var(--accent-2) 90%, transparent 100%);
  animation: dlSpin 5s linear infinite; opacity: .5; pointer-events: none;
}
@keyframes dlSpin { to { transform: rotate(360deg); } }
.download-inner::before {
  content: ''; position: absolute; inset: 1px; border-radius: 23px; background: var(--bg-2);
}
.download-inner > * { position: relative; z-index: 1; }
.dl-sub { margin-top: 14px; font-size: 13.5px; color: var(--accent-2); }
.dl-actions { display: flex; justify-content: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.dl-note { margin-top: 26px; font-size: 12px; color: var(--text-dim); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { margin-top: 14px; font-size: 13.5px; color: var(--text-dim); max-width: 260px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col b { font-size: 14px; margin-bottom: 6px; }
.footer-col a { font-size: 13.5px; color: var(--text-dim); transition: color .25s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim);
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border-hi);
  backdrop-filter: blur(8px); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .3s, transform .3s, border-color .3s;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { border-color: var(--accent); box-shadow: 0 0 20px var(--glow); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* ---------- 3D 倾斜 ---------- */
.tilt { will-change: transform; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .feature-cards { grid-template-columns: 1fr 1fr; }
  .tool-grid, .sec-cards { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 70px; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-phone-wrap { order: 2; }
  .phone { transform: none; }
  .split, .split-reverse { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse > .split-left { order: 2; }
  .split-reverse > .split-right { order: 1; }
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(5,6,15,.96); backdrop-filter: blur(18px);
    padding: 16px 4%; border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform .35s;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 16px; }
  .nav-links a.nav-cta { margin-left: 0; text-align: center; }
  .nav-burger { display: flex; }
}
@media (max-width: 560px) {
  .feature-cards, .tool-grid, .sec-cards, .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero-stats { gap: 24px; }
  .chip-a { left: 0; } .chip-c { left: 0; } .chip-b { right: 0; }
  .download-inner { padding: 60px 22px; }
}

/* ---------- 角度变量（旋转霓虹边框用） ---------- */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* ---------- 赛博透视地板 ---------- */
.hero-floor {
  position: absolute; left: -12%; right: -12%; bottom: -4%; height: 36%;
  pointer-events: none; opacity: .32;
  background-image:
    linear-gradient(rgba(124, 108, 255, .3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 108, 255, .3) 1px, transparent 1px);
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 32%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 32%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  background-position: 0 0, 0 0;
  transform: perspective(560px) rotateX(63deg);
  transform-origin: top center;
  mask-image: linear-gradient(to bottom, transparent, #000 34%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%);
  animation: floorScroll 3.4s linear infinite;
}
@keyframes floorScroll { to { background-position: 0 46px, 0 0; } }

/* ---------- 流星雨 ---------- */
.meteor {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px 1px rgba(255, 255, 255, .55);
  opacity: 0; z-index: 1; pointer-events: none;
}
.meteor::before {
  content: ''; position: absolute; top: 50%; left: 100%;
  width: 150px; height: 1.6px;
  transform-origin: 0 50%; transform: translateY(-50%) rotate(-45deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, .9), transparent);
}
.m1 { top: 10%; left: 82%; animation: shoot 6.8s linear infinite 1.2s; }
.m2 { top: 24%; left: 66%; animation: shoot 8.4s linear infinite 3.6s; }
.m3 { top: 5%;  left: 54%; animation: shoot 10s linear infinite 5.8s; }
@keyframes shoot {
  0% { opacity: 0; transform: translate(0, 0); }
  2.5% { opacity: 1; }
  16% { opacity: 1; }
  22%, 100% { opacity: 0; transform: translate(-400px, 400px); }
}

/* ---------- 手机轨道环 ---------- */
.orbit-ring {
  position: absolute; top: 50%; left: 50%; z-index: 0;
  border-radius: 50%; pointer-events: none;
}
.ring-1 {
  width: 430px; height: 430px;
  border: 1px dashed var(--border-hi);
  animation: orbitSpin 28s linear infinite;
}
.ring-1::before {
  content: ''; position: absolute; top: -4px; left: 50%;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-3); box-shadow: 0 0 14px var(--accent-3);
}
.ring-2 {
  width: 540px; height: 540px;
  border: 1.5px solid transparent;
  border-top-color: var(--accent); border-right-color: var(--accent-2);
  opacity: .4; filter: drop-shadow(0 0 8px var(--glow));
  animation: orbitSpin 40s linear infinite reverse;
}
@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.hero-phone-wrap .phone, .hero-phone-wrap .chip { z-index: 1; }

/* ---------- 旋转霓虹边框（卡片 hover） ---------- */
.fcard::after, .tcard::after, .scard::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.3px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--angle),
    transparent 0 70%, var(--accent) 82%, var(--accent-2) 90%, var(--accent-3) 95%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  transition: opacity .45s;
}
.fcard:hover::after, .tcard:hover::after, .scard:hover::after {
  opacity: 1; animation: angleSpin 3.2s linear infinite;
}
@keyframes angleSpin { to { --angle: 360deg; } }

/* ---------- 按钮扫光 ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -90%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-22deg); pointer-events: none;
}
.btn-primary:hover::after { animation: shine .85s ease; }
@keyframes shine { to { left: 135%; } }

/* ---------- 标题渐变下划线 ---------- */
.sec-head h2::after {
  content: ''; display: block; width: 66px; height: 3px;
  margin: 18px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 16px var(--glow);
}
.split h2 {
  background: linear-gradient(100deg, var(--text) 55%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 鼠标视差过渡 ---------- */
.hero-inner, .hero-grid { transition: transform .28s ease-out; will-change: transform; }

/* ---------- 全局噪点质感 ---------- */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 2000;
  pointer-events: none; opacity: .03;
  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");
}

/* ---------- 终端 / 代码窗呼吸描边 ---------- */
.terminal, .code-window { position: relative; }
.terminal::before, .code-window::before {
  content: ''; position: absolute; inset: -1px; border-radius: 15px;
  padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, var(--accent), transparent 30%, transparent 70%, var(--accent-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: .55;
}

/* ============================================================
   零知识架构板块（ZERO-KNOWLEDGE）
   ============================================================ */
.zk-section {
  position: relative; overflow: hidden;
  background: #03040a;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
#cipherRain {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .16; pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 78%);
}
.zk-scanline {
  position: absolute; left: 0; right: 0; top: -120px; height: 120px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent-2) 9%, transparent) 70%, color-mix(in srgb, var(--accent-2) 22%, transparent));
  pointer-events: none; opacity: .8;
  animation: scanSweep 7s linear infinite;
}
@keyframes scanSweep {
  0% { top: -120px; }
  100% { top: 110%; }
}
.zk-section .container { position: relative; z-index: 1; }

/* 三原则 */
.zk-split { align-items: start; margin-bottom: 70px; }
.zk-principles { display: flex; flex-direction: column; gap: 26px; margin-top: 8px; }
.zk-principle {
  display: flex; gap: 18px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.zk-principle:hover {
  border-color: var(--accent-2); transform: translateX(6px);
  box-shadow: -4px 0 0 var(--accent-2), 0 14px 34px rgba(0,0,0,.4);
}
.zk-p-num {
  font-size: 22px; font-weight: 800; color: var(--accent-2); opacity: .8;
  text-shadow: 0 0 18px var(--accent-2);
}
.zk-principle h4 { font-size: 17px; font-weight: 800; margin-bottom: 7px; }
.zk-p-tag {
  margin-left: 8px; font-size: 10.5px; letter-spacing: 1.5px; font-weight: 500;
  color: var(--accent-3); border: 1px solid color-mix(in srgb, var(--accent-3) 45%, transparent);
  padding: 2px 8px; border-radius: 99px; vertical-align: 2px;
}
.zk-principle p { font-size: 13.8px; color: var(--text-dim); }

/* 隐私承诺条 */
.zk-pledge {
  margin-top: 30px; display: flex; flex-wrap: wrap; gap: 9px;
}
.zk-pledge span {
  font-size: 12px; color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
  background: color-mix(in srgb, var(--accent-2) 7%, transparent);
  padding: 6px 13px; border-radius: 99px;
  transition: box-shadow .3s, color .3s;
}
.zk-pledge span:hover { box-shadow: 0 0 16px var(--glow); color: #fff; }

/* 现场加密演示 */
.zk-demo { box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px var(--glow); }
.zk-demo-body { padding: 20px; }
.zk-label { display: block; font-size: 10.5px; letter-spacing: 2px; color: var(--accent-3); margin: 14px 0 6px; }
.zk-label:first-child { margin-top: 0; }
.zk-input {
  width: 100%; padding: 11px 14px; border-radius: 10px; font-size: 13.5px;
  background: rgba(0,0,0,.4); border: 1px solid var(--border-hi); color: var(--accent-2);
  outline: none; transition: border-color .25s, box-shadow .25s;
}
.zk-input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 18%, transparent); }
.zk-btn { margin-top: 16px; width: 100%; justify-content: center; font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 1px; }
.zk-btn:disabled { opacity: .55; cursor: wait; transform: none; }
.zk-output {
  margin-top: 16px; padding: 14px; border-radius: 10px; min-height: 118px;
  background: rgba(0,0,0,.45); border: 1px solid var(--border);
  font-size: 11.8px; line-height: 1.9; word-break: break-all;
}
.zk-out-line { display: block; }
.zk-dim { color: var(--text-dim); }
.zk-key { color: var(--accent-3); }
.zk-val { color: var(--accent-2); }
.zk-ok { color: #28c840; }
.zk-err { color: #ff5c7a; }

/* 六张安全卡：三列布局 */
.zk-cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .zk-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .zk-cards { grid-template-columns: 1fr; } }
.reveal[data-delay="6"] { transition-delay: .48s; }

/* scramble 标题保持稳定布局 */
.scramble-title { min-height: 1.25em; }

/* hero 副标题补充段 */
.hero-tag-dot { margin: 0 10px; color: var(--accent-3); }
.hero-tag-sec {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* ============================================================
   Matrix 彩蛋（Konami Code）
   ============================================================ */
#matrixCanvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 5000; pointer-events: none; opacity: 0;
  transition: opacity .6s ease; background: #000;
}
#matrixCanvas.on { opacity: .92; }
.konami-toast {
  position: fixed; top: 76px; left: 50%; transform: translate(-50%, -16px);
  z-index: 5001; padding: 10px 22px; border-radius: 99px; font-size: 13px;
  background: rgba(0, 12, 4, .9); color: #2bff6a; border: 1px solid #2bff6a;
  box-shadow: 0 0 26px rgba(43, 255, 106, .35);
  opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s;
}
.konami-toast.on { opacity: 1; transform: translate(-50%, 0); }
body.matrix-mode main, body.matrix-mode .nav, body.matrix-mode .footer,
body.matrix-mode .hero, body.matrix-mode .marquee, body.matrix-mode .section {
  filter: hue-rotate(85deg) saturate(1.35);
}
.konami-toast .zk-val { color: #2bff6a; }

/* 页脚零追踪声明 */
.footer-zero { color: var(--accent-2); text-shadow: 0 0 14px var(--glow); }

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
