/* ═══════════════════════════════════════════
   赛博霓虹 · Cyber Neon 设计系统
   美学关键词：霓虹、暗夜、故障艺术、终端、电能
   ═══════════════════════════════════════════ */

/* ── 设计令牌 ── */
:root {
  /* 暗夜基底 */
  --bg-deep: #05080f;
  --bg-base: #0a0a14;
  --bg-panel: rgba(10, 12, 24, 0.85);
  --bg-card: rgba(15, 17, 31, 0.72);
  --bg-card-hover: rgba(18, 20, 38, 0.88);

  /* 霓虹色盘 */
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff2d95;
  --neon-purple: #b347ea;
  --neon-green: #39ff14;
  --neon-amber: #ffb800;

  /* 霓虹辉光 */
  --glow-cyan: 0 0 8px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.3);
  --glow-magenta: 0 0 8px rgba(255, 45, 149, 0.5), 0 0 20px rgba(255, 45, 149, 0.25);
  --glow-purple: 0 0 8px rgba(179, 71, 234, 0.5), 0 0 20px rgba(179, 71, 234, 0.25);

  /* 文字 */
  --text-primary: #e8ecfa;
  --text-secondary: #a0a8cc;
  --text-muted: #6b7294;

  /* 边框 */
  --border-dim: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(0, 240, 255, 0.25);
  --border-neon-hover: rgba(0, 240, 255, 0.55);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* 动效 */
  --ease-glitch: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-neon: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* 字体 */
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── 暗角氛围 ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(0, 240, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 45, 149, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(179, 71, 234, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 240, 255, 0.03) 0%, transparent 50%);
}

/* ── 扫描线 ── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.03) 2px,
    rgba(255, 255, 255, 0.03) 4px
  );
}

/* ── 网格 ── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ── Canvas 光标粒子 ── */
#particle-canvas,
#orbital-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── 滚动进度条（霓虹） ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-magenta));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6), 0 0 24px rgba(179, 71, 234, 0.4);
  transition: width 0.06s linear;
}

/* ═══════════════════════════════════════════
   导航栏
   ═══════════════════════════════════════════ */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 8, 15, 0.78);
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 8vw;
  transition: border-color 0.3s ease;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.top-nav nav {
  display: flex;
  gap: 30px;
}

.top-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  transition: transform 0.4s var(--ease-neon);
}

.top-nav a:hover,
.top-nav a.active {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.top-nav a:hover::after,
.top-nav a.active::after {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════════
   主内容区
   ═══════════════════════════════════════════ */
main {
  width: min(1160px, 88vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 44px 0;
}

/* ═══════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════ */
.hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-display);
  color: var(--neon-cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.76rem;
  margin-bottom: 16px;
  height: 1.5em;
  position: relative;
  display: flex;
  align-items: center;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.eyebrow .cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--neon-cyan);
  margin-left: 2px;
  vertical-align: middle;
  box-shadow: 0 0 6px var(--neon-cyan);
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.18;
  margin: 0;
  max-width: 14ch;
  background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 30%, var(--neon-purple) 65%, var(--neon-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: neonShift 6s ease infinite;
}

@keyframes neonShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 58ch;
  line-height: 1.85;
  font-size: 1rem;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
}

/* ── 按钮系统 ── */
.btn {
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-neon);
}

.btn.primary {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12), inset 0 0 16px rgba(0, 240, 255, 0.04);
}

.btn.primary:hover {
  background: rgba(0, 240, 255, 0.16);
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.25), 0 0 50px rgba(0, 240, 255, 0.1), inset 0 0 24px rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.btn.ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-dim);
}

.btn.ghost:hover {
  border-color: rgba(255, 45, 149, 0.5);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 45, 149, 0.12), inset 0 0 20px rgba(255, 45, 149, 0.04);
  transform: translateY(-2px);
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 240, 255, 0.5);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple {
  from { width: 0; height: 0; opacity: 0.6; }
  to { width: 260px; height: 260px; opacity: 0; }
}

/* ── 统计数据卡片 ── */
.stat-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 16px 16px 18px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease-neon);
  transform-style: preserve-3d;
  will-change: transform;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(0, 240, 255, 0.08) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.stat-card:hover {
  border-color: var(--border-neon-hover);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1), inset 0 0 20px rgba(0, 240, 255, 0.03);
  transform: translateY(-5px);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-icon {
  display: block;
  font-size: 1.7rem;
  line-height: 1.3;
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.floating {
  animation: floatY 5s ease-in-out infinite;
}

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

/* ── 个人画像霓虹卡片 ── */
.profile-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-lg);
}

.profile-link:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 4px;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  padding: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.45s var(--ease-neon);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(0, 240, 255, 0.06) 0%,
    rgba(179, 71, 234, 0.04) 50%,
    rgba(255, 45, 149, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.glass-card:hover {
  border-color: var(--border-neon-hover);
  box-shadow:
    0 0 24px rgba(0, 240, 255, 0.1),
    0 12px 48px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover::after {
  opacity: 1.4;
  transform: scale(1.1);
}

.glass-card .card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 16px;
  color: var(--neon-cyan);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.glass-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  display: grid;
  gap: 10px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.glass-card ul li {
  font-size: 0.93rem;
}

/* ═══════════════════════════════════════════
   区块标题
   ═══════════════════════════════════════════ */
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  transition: width 0.5s var(--ease-neon), box-shadow 0.5s ease;
}

.section.show h2::after {
  width: 56px;
  box-shadow: 0 0 18px var(--neon-cyan), 0 0 30px rgba(0, 240, 255, 0.4);
}

/* ═══════════════════════════════════════════
   About 区块
   ═══════════════════════════════════════════ */
#about-desc {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1rem;
  max-width: 72ch;
}

.chip-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(15, 17, 31, 0.7);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 8px 15px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: default;
  transition: border-color 0.3s ease, box-shadow 0.3s ease,
    color 0.3s ease, transform 0.35s var(--ease-neon);
}

.chip:hover {
  border-color: rgba(0, 240, 255, 0.5);
  color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.12), inset 0 0 14px rgba(0, 240, 255, 0.04);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════
   Timeline
   ═══════════════════════════════════════════ */
.timeline {
  border-left: 2px solid rgba(0, 240, 255, 0.12);
  padding-left: 28px;
  display: grid;
  gap: 16px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple), transparent);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
  transform-origin: top;
  animation: timelineGrow 1.6s var(--ease-out-expo) forwards;
}

@keyframes timelineGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.timeline-item {
  position: relative;
  padding: 18px 18px 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color 0.4s ease, box-shadow 0.4s ease,
    transform 0.4s var(--ease-neon), background 0.4s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.6), 0 0 28px rgba(0, 240, 255, 0.3);
  z-index: 2;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.timeline-item:hover {
  border-color: var(--border-neon-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.08), inset 0 0 18px rgba(0, 240, 255, 0.02);
  transform: translateX(5px);
}

.timeline-item:hover::before {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.8), 0 0 40px rgba(0, 240, 255, 0.4);
  transform: scale(1.25);
}

.timeline-year {
  font-family: var(--font-display);
  color: var(--neon-cyan);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.timeline-title {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.timeline-desc {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.93rem;
}

/* ═══════════════════════════════════════════
   卡片网格（Craft & Memory）
   ═══════════════════════════════════════════ */
.card-grid,
.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.memory-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.4s ease, box-shadow 0.4s ease,
    transform 0.4s var(--ease-neon), background 0.4s ease;
}

.feature-card::before,
.memory-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    var(--neon-angle, 135deg),
    rgba(0, 240, 255, 0.06) 0%,
    rgba(179, 71, 234, 0.03) 50%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.feature-card::after,
.memory-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(0, 240, 255, 0.2),
    rgba(179, 71, 234, 0.15),
    rgba(255, 45, 149, 0.1)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.feature-card:hover,
.memory-card:hover {
  border-color: var(--border-neon-hover);
  background: var(--bg-card-hover);
  box-shadow:
    0 0 24px rgba(0, 240, 255, 0.08),
    0 12px 36px rgba(0, 0, 0, 0.4);
  transform: translateY(-7px);
}

.feature-card:hover::before,
.memory-card:hover::before {
  opacity: 1;
}

.feature-card:hover::after,
.memory-card:hover::after {
  opacity: 0.7;
}

.feature-card h3,
.memory-card h3 {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 4px 0 14px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.feature-card:hover h3,
.memory-card:hover h3 {
  color: var(--neon-cyan);
}

.feature-card p,
.memory-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

/* ── 故障动画 ── */
@keyframes glitch {
  0%, 100% { transform: translate(0); }
  5% { transform: translate(-2px, 1px); }
  10% { transform: translate(2px, -1px); }
  15% { transform: translate(-1px, -1px); }
  20% { transform: translate(0); }
}

.glitch-hover:hover {
  animation: glitch 0.3s ease;
}

/* ── 可点击卡片 ── */
.click-card {
  cursor: pointer;
}

.click-card:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border-dim);
  text-align: center;
  color: var(--text-muted);
  padding: 36px 0 32px;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════
   滚动揭示动画（含故障）
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out-expo),
    transform 0.55s var(--ease-out-expo);
}

.reveal-stagger.show > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.show > *:nth-child(1) { transition-delay: 0.03s; }
.reveal-stagger.show > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.show > *:nth-child(3) { transition-delay: 0.13s; }
.reveal-stagger.show > *:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger.show > *:nth-child(5) { transition-delay: 0.23s; }
.reveal-stagger.show > *:nth-child(6) { transition-delay: 0.28s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}

.reveal-left.show {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}

.reveal-right.show {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}

.reveal-scale.show {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════
   滚动条
   ═══════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.2);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.4);
}

/* ═══════════════════════════════════════════
   选中文本
   ═══════════════════════════════════════════ */
::selection {
  background: rgba(0, 240, 255, 0.25);
  color: #fff;
}

/* ═══════════════════════════════════════════
   响应式
   ═══════════════════════════════════════════ */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
  }

  .hero-right {
    order: -1;
  }

  .card-grid,
  .memory-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
    padding: 12px 5vw;
  }

  .top-nav nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .memory-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .scanlines {
    opacity: 0.03;
  }
}

/* ═══════════════════════════════════════════
   自定义霓虹光标
   ═══════════════════════════════════════════ */
.custom-cursor {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 240, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 10px rgba(0, 240, 255, 0.3),
    0 0 20px rgba(0, 240, 255, 0.15),
    inset 0 0 10px rgba(0, 240, 255, 0.1);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  mix-blend-mode: difference;
}

.custom-cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--neon-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--neon-cyan), 0 0 20px rgba(0, 240, 255, 0.7);
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
}

.custom-cursor.hover-interactive {
  width: 52px;
  height: 52px;
  border-color: rgba(179, 71, 234, 0.7);
  box-shadow:
    0 0 18px rgba(179, 71, 234, 0.4),
    0 0 36px rgba(179, 71, 234, 0.2);
}

.custom-cursor-dot.hover-interactive {
  width: 10px;
  height: 10px;
  background: var(--neon-purple);
  box-shadow: 0 0 14px var(--neon-purple), 0 0 30px rgba(179, 71, 234, 0.8);
}

.cursor-ripple {
  position: fixed;
  border: 1px solid rgba(0, 240, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  animation: cursorRipple 0.7s ease-out forwards;
}

@keyframes cursorRipple {
  from {
    width: 10px;
    height: 10px;
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0);
  }
  to {
    width: 80px;
    height: 80px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ═══════════════════════════════════════════
   动态光斑 (Ambient Orbs)
   ═══════════════════════════════════════════ */
.ambient-orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}

.orb-1 {
  width: min(50vw, 600px);
  height: min(50vw, 600px);
  background: radial-gradient(circle, var(--neon-cyan), transparent 70%);
  top: 10%;
  left: 15%;
  animation: orbFloat1 14s ease-in-out infinite;
}

.orb-2 {
  width: min(40vw, 500px);
  height: min(40vw, 500px);
  background: radial-gradient(circle, var(--neon-purple), transparent 70%);
  top: 45%;
  right: 10%;
  animation: orbFloat2 18s ease-in-out infinite;
}

.orb-3 {
  width: min(35vw, 450px);
  height: min(35vw, 450px);
  background: radial-gradient(circle, var(--neon-magenta), transparent 70%);
  bottom: 15%;
  left: 35%;
  animation: orbFloat3 16s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(8vw, 6vh) scale(1.15); }
  50% { transform: translate(4vw, -4vh) scale(0.9); }
  75% { transform: translate(-3vw, 8vh) scale(1.1); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-6vw, -5vh) scale(1.2); }
  66% { transform: translate(5vw, 7vh) scale(0.85); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-5vw, 4vh) scale(1.1); }
  50% { transform: translate(7vw, -3vh) scale(0.95); }
  75% { transform: translate(-2vw, -6vh) scale(1.08); }
}

/* ═══════════════════════════════════════════
   胶片噪点叠加
   ═══════════════════════════════════════════ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,<svg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* ═══════════════════════════════════════════
   卡片全息光扫效果
   ═══════════════════════════════════════════ */
.feature-card,
.memory-card,
.stat-card,
.glass-card {
  --sweep-x: 50%;
  --sweep-y: 50%;
}

.card-sweep {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--sweep-x) var(--sweep-y),
    rgba(0, 240, 255, 0.12) 0%,
    rgba(179, 71, 234, 0.05) 30%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.feature-card:hover .card-sweep,
.memory-card:hover .card-sweep,
.glass-card:hover .card-sweep {
  opacity: 1;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--sweep-x) var(--sweep-y),
    rgba(0, 240, 255, 0.1) 0%,
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.stat-card:hover::after {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   卡片边框旋转渐变
   ═══════════════════════════════════════════ */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.feature-card,
.memory-card {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    conic-gradient(
      from var(--border-angle, 0deg),
      transparent,
      rgba(0, 240, 255, 0.25),
      rgba(179, 71, 234, 0.2),
      transparent
    ) border-box;
}

@keyframes borderSpin {
  from { --border-angle: 0deg; }
  to { --border-angle: 360deg; }
}

.feature-card:hover,
.memory-card:hover {
  animation: borderSpin 5s linear infinite;
  border-color: transparent;
  background:
    linear-gradient(var(--bg-card-hover), var(--bg-card-hover)) padding-box,
    conic-gradient(
      from var(--border-angle, 0deg),
      transparent,
      rgba(0, 240, 255, 0.35),
      rgba(179, 71, 234, 0.3),
      transparent
    ) border-box;
}

/* ═══════════════════════════════════════════
   按钮增强辉光脉冲
   ═══════════════════════════════════════════ */
.btn.primary {
  animation: btnGlowPulse 2.5s ease-in-out infinite;
}

@keyframes btnGlowPulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.12), inset 0 0 16px rgba(0, 240, 255, 0.04);
  }
  50% {
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.2), 0 0 50px rgba(179, 71, 234, 0.1), inset 0 0 20px rgba(0, 240, 255, 0.06);
  }
}

.btn.primary:hover {
  animation: none;
}

/* ═══════════════════════════════════════════
   文字乱码揭示（h2）
   ═══════════════════════════════════════════ */
h2.glitching {
  color: var(--neon-green);
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.6);
}

/* ═══════════════════════════════════════════
   导航栏滚动收缩
   ═══════════════════════════════════════════ */
.top-nav.scrolled {
  padding: 8px 8vw;
  background: rgba(5, 8, 15, 0.92);
  box-shadow: 0 2px 30px rgba(0, 240, 255, 0.06);
  border-bottom-color: rgba(0, 240, 255, 0.12);
}

/* ═══════════════════════════════════════════
   Hero 入场粒子爆发
   ═══════════════════════════════════════════ */
.hero-burst-particle {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  animation: burst 0.9s ease-out forwards;
}

@keyframes burst {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(var(--bx), var(--by)) scale(0);
  }
}

/* ═══════════════════════════════════════════
   点击冲击波
   ═══════════════════════════════════════════ */
.shockwave {
  position: fixed;
  pointer-events: none;
  z-index: 100;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 2px solid rgba(0, 240, 255, 0.7);
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.4),
    0 0 60px rgba(179, 71, 234, 0.25),
    inset 0 0 20px rgba(0, 240, 255, 0.15);
  animation: shockwaveExpand 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shockwaveExpand {
  0% {
    width: 10px;
    height: 10px;
    opacity: 1;
    border-width: 2px;
  }
  40% {
    opacity: 0.7;
  }
  100% {
    width: 250vmax;
    height: 250vmax;
    opacity: 0;
    border-width: 0.5px;
  }
}

/* ═══════════════════════════════════════════
   字符交互 — 逐字 hover 响应
   ═══════════════════════════════════════════ */
h2 .char {
  display: inline-block;
  will-change: transform, color, text-shadow;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.2s ease,
    text-shadow 0.2s ease;
}

/* ═══════════════════════════════════════════
   力场过渡 — 卡片非 hover 态弹簧回弹
   ═══════════════════════════════════════════ */
.feature-card,
.memory-card,
.stat-card,
.glass-card,
.timeline-item,
.chip,
.btn {
  will-change: transform;
}

/* ═══════════════════════════════════════════
   滚动揭示增强 — 弹簧入场
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
}

.reveal.show {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ═══════════════════════════════════════════
   触摸设备降级
   ═══════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor,
  .custom-cursor-dot {
    display: none;
  }
}
