/* ============================================================
   SingX 项目汇报 · 设计系统 v4（竞赛级动效）
   暖白纸面 · 玫红主色 + 干净蓝 + 沙金点缀
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --ink-0: #F4F4F1;
  --ink-1: #FBFAF7;
  --ink-2: #FFFFFF;
  --ink-3: #F0EFEB;
  --ink-4: #E5E4DE;
  --line: rgba(0, 0, 0, 0.09);
  --line-2: rgba(0, 0, 0, 0.15);
  --text: #1B1D22;
  --text-mut: #5E626C;
  --text-dim: #9498A0;
  --pink: #E83A66;
  --pink-soft: #F06A8C;
  --blue: #2E6BF0;
  --blue-soft: #5E8EF5;
  --cyan: #138F86;
  --purple: #5B62B8;
  --gold: #B5852A;
  --red: #DA3B45;
  --grad-signature: linear-gradient(90deg, #E83A66, #2E6BF0);
  --grad-cool: linear-gradient(90deg, #138F86, #2E6BF0);
  --grad-warm: linear-gradient(90deg, #B5852A, #E83A66);
  --accent: var(--pink);
  --glow: rgba(232, 58, 102, 0.055);
  --fs-display: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  --fs-body: 'Noto Sans SC', 'Space Grotesk', sans-serif;
  --fs-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

deck-stage:not(:defined) { visibility: hidden; }
deck-stage { background: #E2E2DD; }

section {
  font-family: var(--fs-body);
  color: var(--text);
  background: var(--ink-0);
  overflow: hidden;
}

/* 全幅底纹：极细网格 + 暖光 */
section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 40%, #000 28%, transparent 84%);
  pointer-events: none;
  z-index: 0;
}
section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(860px 600px at 88% 4%, var(--glow), transparent 64%);
  pointer-events: none;
  z-index: 0;
}

/* ── 扫描线叠加 ── */
section .slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.008) 2px,
    rgba(0, 0, 0, 0.008) 4px
  );
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  animation: scanlinesIn 1.2s ease 0.8s forwards;
}
@keyframes scanlinesIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── 容器入场：3D 透视 + 弹性 ── */
.slide {
  position: absolute;
  inset: 0;
  padding: 92px 110px;
  display: flex;
  flex-direction: column;
  z-index: 1;
  opacity: 1;
  perspective: 1200px;
}
.slide.in {
  animation: slideReveal .8s cubic-bezier(.16, 1, .3, 1) both;
  transform-origin: center;
}
.slide.in[data-motion="hero"]     { animation-name: slideHero; animation-duration: .9s; }
.slide.in[data-motion="cards"]    { animation-name: slideCards; }
.slide.in[data-motion="diagram"]  { animation-name: slideDiagram; }
.slide.in[data-motion="split"]    { animation-name: slideSplit; }
.slide.in[data-motion="impact"]   { animation-name: slideImpact; animation-duration: .85s; }
.slide.in[data-motion="data"]     { animation-name: slideData; }
.slide.in[data-motion="gallery"]  { animation-name: slideGallery; }
.slide.in[data-motion="ops"]      { animation-name: slideOps; }
.slide.in[data-motion="gateway"]  { animation-name: slideGateway; }
.slide.in[data-motion="timeline"] { animation-name: slideTimeline; }
.slide.in[data-motion="finale"]   { animation-name: slideFinale; animation-duration: 1s; }

@keyframes slideReveal {
  0% { translate: 0 30px; scale: .97; opacity: 0; filter: blur(4px); }
  60% { scale: 1.008; opacity: 1; filter: blur(0); }
  100% { translate: 0 0; scale: 1; opacity: 1; }
}
@keyframes slideHero {
  0% { translate: 0 50px; scale: .94; opacity: 0; filter: blur(8px); }
  50% { scale: 1.02; opacity: 1; filter: blur(0); }
  100% { translate: 0 0; scale: 1; }
}
@keyframes slideCards {
  0% { translate: 0 40px; scale: .975; opacity: 0; }
  70% { scale: 1.005; }
  100% { translate: 0 0; scale: 1; opacity: 1; }
}
@keyframes slideDiagram {
  0% { translate: -40px 0; scale: .98; opacity: 0; filter: blur(3px); }
  100% { translate: 0 0; scale: 1; opacity: 1; filter: blur(0); }
}
@keyframes slideSplit {
  0% { translate: 50px 0; scale: .98; opacity: 0; filter: blur(3px); }
  100% { translate: 0 0; scale: 1; opacity: 1; filter: blur(0); }
}
@keyframes slideImpact {
  0% { translate: 0 -20px; scale: 1.06; opacity: 0; }
  60% { scale: .995; }
  100% { translate: 0 0; scale: 1; opacity: 1; }
}
@keyframes slideData {
  0% { translate: 0 20px; scale: .98; opacity: 0; }
  100% { translate: 0 0; scale: 1; opacity: 1; }
}
@keyframes slideGallery {
  0% { translate: -30px 20px; scale: .98; opacity: 0; filter: blur(2px); }
  100% { translate: 0 0; scale: 1; opacity: 1; filter: blur(0); }
}
@keyframes slideOps {
  0% { translate: 30px 20px; scale: .98; opacity: 0; filter: blur(2px); }
  100% { translate: 0 0; scale: 1; opacity: 1; filter: blur(0); }
}
@keyframes slideGateway {
  0% { translate: 0 30px; scale: .985; opacity: 0; }
  100% { translate: 0 0; scale: 1; opacity: 1; }
}
@keyframes slideTimeline {
  0% { translate: 0 40px; scale: .98; opacity: 0; filter: blur(3px); }
  100% { translate: 0 0; scale: 1; opacity: 1; filter: blur(0); }
}
@keyframes slideFinale {
  0% { translate: 0 30px; scale: .96; opacity: 0; filter: blur(6px); }
  50% { scale: 1.015; filter: blur(0); }
  100% { translate: 0 0; scale: 1; opacity: 1; }
}

/* ── 元素错落入场：多维度动画 ── */
.slide.in [data-anim] {
  animation: elemEnter .75s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * var(--motion-stagger, 70ms) + var(--motion-delay-base, 120ms));
  will-change: translate, scale, rotate, opacity, clip-path, filter;
}
.slide.in [data-anim="up"]    { animation-name: inUp; }
.slide.in [data-anim="down"]  { animation-name: inDown; }
.slide.in [data-anim="left"]  { animation-name: inLeft; }
.slide.in [data-anim="right"] { animation-name: inRight; }
.slide.in [data-anim="scale"] { animation-name: inScale; }
.slide.in [data-anim="zoom"]  { animation-name: inZoom; }
.slide.in [data-anim="blur"]  { animation-name: inBlur; }
.slide.in [data-anim="clip"]  { animation-name: inClip; }

/* 按 motion 类型调整节奏 */
.slide.in[data-motion="hero"] {
  --motion-stagger: 80ms;
  --motion-delay-base: 100ms;
}
.slide.in[data-motion="cards"] {
  --motion-stagger: 62ms;
  --motion-delay-base: 120ms;
}
.slide.in[data-motion="diagram"] {
  --motion-stagger: 68ms;
  --motion-delay-base: 110ms;
}
.slide.in[data-motion="split"] {
  --motion-stagger: 64ms;
  --motion-delay-base: 130ms;
}
.slide.in[data-motion="impact"] {
  --motion-stagger: 52ms;
  --motion-delay-base: 90ms;
}
.slide.in[data-motion="data"] {
  --motion-stagger: 60ms;
  --motion-delay-base: 100ms;
}
.slide.in[data-motion="gallery"] {
  --motion-stagger: 66ms;
  --motion-delay-base: 115ms;
}
.slide.in[data-motion="ops"],
.slide.in[data-motion="gateway"] {
  --motion-stagger: 56ms;
  --motion-delay-base: 120ms;
}
.slide.in[data-motion="timeline"] {
  --motion-stagger: 75ms;
  --motion-delay-base: 95ms;
}
.slide.in[data-motion="finale"] {
  --motion-stagger: 90ms;
  --motion-delay-base: 115ms;
}

/* ── 元素动画：复合运动 + 弹性 + 发光 ── */
@keyframes elemEnter {
  from { translate: 0 42px; opacity: 0; filter: blur(3px); }
  to   { translate: 0 0; opacity: 1; filter: blur(0); }
}
@keyframes inUp {
  0% { translate: 0 48px; opacity: 0; filter: blur(4px); }
  70% { translate: 0 -4px; opacity: 1; filter: blur(0); }
  100% { translate: 0 0; opacity: 1; }
}
@keyframes inDown {
  0% { translate: 0 -40px; opacity: 0; filter: blur(3px); }
  70% { translate: 0 3px; opacity: 1; }
  100% { translate: 0 0; opacity: 1; }
}
@keyframes inLeft {
  0% { translate: -55px 0; opacity: 0; filter: blur(4px); }
  70% { translate: 5px 0; opacity: 1; filter: blur(0); }
  100% { translate: 0 0; opacity: 1; }
}
@keyframes inRight {
  0% { translate: 55px 0; opacity: 0; filter: blur(4px); }
  70% { translate: -5px 0; opacity: 1; filter: blur(0); }
  100% { translate: 0 0; opacity: 1; }
}
@keyframes inScale {
  0% { scale: .85; opacity: 0; filter: blur(6px); }
  60% { scale: 1.03; opacity: 1; filter: blur(0); }
  100% { scale: 1; opacity: 1; }
}
@keyframes inZoom {
  0% { scale: 1.15; opacity: 0; filter: blur(8px); }
  60% { scale: .98; opacity: 1; filter: blur(0); }
  100% { scale: 1; opacity: 1; }
}
@keyframes inBlur {
  0% { translate: 0 20px; opacity: 0; filter: blur(12px); }
  100% { translate: 0 0; opacity: 1; filter: blur(0); }
}
@keyframes inClip {
  0% { translate: -40px 0; opacity: 0; clip-path: inset(0 100% 0 0); }
  100% { translate: 0 0; opacity: 1; clip-path: inset(0); }
}

/* ── 标题专用动画：bloom + 弹性 ── */
.slide.in[data-motion="hero"] h1[data-anim],
.slide.in[data-motion="finale"] h1[data-anim] {
  animation: inTitleBloom 1s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * var(--motion-stagger, 80ms) + var(--motion-delay-base, 100ms));
}
@keyframes inTitleBloom {
  0% { translate: 0 30px; scale: .9; opacity: 0; filter: blur(8px); }
  50% { scale: 1.04; filter: blur(0); }
  75% { scale: .99; }
  100% { translate: 0 0; scale: 1; opacity: 1; }
}

/* ── 卡片动画：3D 翻转入场 ── */
.slide.in[data-motion="cards"] .card[data-anim] {
  animation: inCardFlip .85s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 62ms + 120ms);
}
@keyframes inCardFlip {
  0% { translate: 0 40px; rotateX: 8deg; opacity: 0; filter: blur(4px); }
  60% { translate: 0 -6px; rotateX: -1deg; opacity: 1; filter: blur(0); }
  100% { translate: 0 0; rotateX: 0deg; opacity: 1; }
}

/* ── 图表/面板动画：从左侧滑入 + 发光 ── */
.slide.in[data-motion="diagram"] .card[data-anim],
.slide.in[data-motion="gateway"] .card[data-anim] {
  animation: inTracePanel .8s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 68ms + 110ms);
}
@keyframes inTracePanel {
  0% { translate: -45px 0; scale: .97; opacity: 0; filter: blur(5px); }
  60% { translate: 4px 0; scale: 1.01; filter: blur(0); }
  100% { translate: 0 0; scale: 1; opacity: 1; }
}

/* ── 分屏动画：面板聚焦 + 弹性 ── */
.slide.in[data-motion="split"] .shot[data-anim],
.slide.in[data-motion="split"] .card[data-anim] {
  animation: inPanelFocus .85s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 64ms + 130ms);
}
@keyframes inPanelFocus {
  0% { translate: 45px 0; scale: .95; opacity: 0; filter: blur(5px); }
  65% { translate: -4px 0; scale: 1.015; filter: blur(0); }
  100% { translate: 0 0; scale: 1; opacity: 1; }
}

/* ── 冲击力动画：从上方砸下 ── */
.slide.in[data-motion="impact"] .card[data-anim] {
  animation: inImpactCard .8s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 52ms + 90ms);
}
@keyframes inImpactCard {
  0% { translate: 0 -30px; scale: .93; rotate: 1deg; opacity: 0; filter: blur(6px); }
  60% { scale: 1.02; rotate: -0.3deg; filter: blur(0); }
  100% { translate: 0 0; scale: 1; rotate: 0deg; opacity: 1; }
}

/* ── 数据动画：从下方浮起 ── */
.slide.in[data-motion="data"] .card[data-anim] {
  animation: inDataCard .75s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 60ms + 100ms);
}
@keyframes inDataCard {
  0% { translate: 0 25px; scale: .97; opacity: 0; }
  100% { translate: 0 0; scale: 1; opacity: 1; }
}

/* ── 画廊动画：交错弹入 ── */
.slide.in[data-motion="gallery"] [data-anim="up"] {
  animation: inGalleryTile .8s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 66ms + 115ms);
}
@keyframes inGalleryTile {
  0% { translate: 0 35px; scale: .94; opacity: 0; filter: blur(4px); }
  60% { scale: 1.04; filter: blur(0); }
  100% { translate: 0 0; scale: 1; opacity: 1; }
}

/* ── 运维动画：右侧滑入 ── */
.slide.in[data-motion="ops"] .card[data-anim] {
  animation: inOpsPanel .8s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 56ms + 120ms);
}
@keyframes inOpsPanel {
  0% { translate: 35px 0; scale: .97; opacity: 0; filter: blur(3px); }
  100% { translate: 0 0; scale: 1; opacity: 1; filter: blur(0); }
}

/* ── 时间线动画：线条展开 + 步骤浮现 ── */
.slide.in[data-motion="timeline"] [data-anim="clip"] {
  animation: inTimelineLine .9s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 75ms + 95ms);
}
@keyframes inTimelineLine {
  0% { clip-path: inset(0 100% 0 0); opacity: 0; }
  100% { clip-path: inset(0); opacity: 1; }
}
.slide.in[data-motion="timeline"] [data-anim="up"] {
  animation: inTimelineStep .85s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 75ms + 95ms);
}
@keyframes inTimelineStep {
  0% { translate: 0 38px; scale: .92; opacity: 0; filter: blur(5px); }
  60% { scale: 1.03; filter: blur(0); }
  100% { translate: 0 0; scale: 1; opacity: 1; }
}

/* ── 兜底落定 ── */
.slide.settle,
.slide.settle [data-anim] {
  animation: none !important;
  translate: none !important;
  scale: none !important;
  rotate: none !important;
  rotateX: none !important;
  opacity: 1 !important;
  filter: none !important;
  clip-path: none !important;
}

/* ── 通用排版原子 ── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--fs-mono);
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--accent);
}
.kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.eyebrow {
  font-family: var(--fs-mono);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

h1.title {
  font-family: var(--fs-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.lede {
  color: var(--text-mut);
  line-height: 1.65;
  font-weight: 400;
}

.grad-text { color: var(--pink); }
.cyan-text { color: var(--blue); }

/* ── 页眉条 ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 54px;
}
.topbar .crumb {
  font-family: var(--fs-mono);
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 14px;
}
.topbar .crumb b { color: var(--text); font-weight: 500; }
.brand-mini {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--fs-display); font-weight: 600;
  font-size: 18px; letter-spacing: 0;
  color: var(--text-mut);
}
.brand-mini .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-size: 15px; color: var(--pink);
}
.brand-mini .x { color: var(--pink); font-weight: 700; }

/* ── 卡片：白底 + 细描边 + 柔和阴影 + hover 微交互 ── */
.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 14px 34px -22px rgba(0, 0, 0, 0.18);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease;
}
.card:hover {
  transform: translateY(-3px) scale(1.008);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 20px 48px -22px rgba(0, 0, 0, 0.22);
}
.card.glow { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.card .topline {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
}

/* ── 芯片标签 ── */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--fs-mono);
  font-size: 13px; letter-spacing: .5px;
  padding: 6px 13px; border-radius: 8px;
  border: 1px solid var(--line-2);
  color: var(--text-mut);
  background: var(--ink-2);
  transition: all .25s ease;
}
.chip:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line-2));
  color: var(--text);
}
.chip.accent {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 46%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, var(--ink-2));
}

/* ── 序号大字 ── */
.bignum {
  font-family: var(--fs-display);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 65%, transparent);
}

.icn { width: 1em; height: 1em; vertical-align: -0.15em; display: inline-block; }

/* ── 封面品牌标记 ── */
.cover-brand-mark {
  width: 120px;
  height: 120px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  box-shadow:
    0 24px 46px -30px rgba(46, 107, 240, 0.72),
    0 18px 42px -34px rgba(232, 58, 102, 0.7);
}
.cover-brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.vocal-fit-score {
  fill: var(--text);
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 1.2px;
  paint-order: stroke fill;
  filter: drop-shadow(0 5px 12px rgba(19, 143, 134, 0.18));
}
.vocal-fit-label {
  fill: var(--text-mut);
  letter-spacing: 0.6px;
}

/* ── 占位截图框 ── */
.shot {
  position: relative;
  border-radius: 14px;
  border: 1px dashed var(--line-2);
  background: var(--ink-1);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 14px 34px -24px rgba(0, 0, 0, 0.2);
}
.shot .bar {
  height: 40px; flex: none;
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.shot .bar .url {
  margin-left: 12px; font-family: var(--fs-mono); font-size: 12.5px;
  color: var(--text-dim); letter-spacing: .5px;
}
.shot .body { flex: 1; display: grid; place-items: center; text-align: center; gap: 12px; padding: 24px; align-content: center; }
.shot .ph-ico {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--accent); font-size: 24px;
}
.shot .ph-t { font-family: var(--fs-mono); font-size: 14px; letter-spacing: 1px; color: var(--text-mut); }
.shot .ph-s { font-size: 12.5px; color: var(--text-dim); }

/* ── 列表点 ── */
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat .ic {
  flex: none; width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; font-size: 21px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  color: var(--accent);
}
.feat .ft { font-weight: 600; font-size: 21px; margin-bottom: 5px; letter-spacing: .2px; }
.feat .fd { color: var(--text-mut); font-size: 15.5px; line-height: 1.55; font-weight: 400; }

.hr { height: 1px; background: var(--line); border: 0; }

/* ── 页码 + 页脚 ── */
.pageno {
  position: absolute; bottom: 46px; right: 56px;
  font-family: var(--fs-mono); font-size: 14px; letter-spacing: 2px;
  color: var(--text-dim); z-index: 2;
}
.foot {
  position: absolute; bottom: 46px; left: 110px;
  font-family: var(--fs-mono); font-size: 13px; letter-spacing: 1.5px;
  color: var(--text-dim); z-index: 2;
  display: flex; align-items: center; gap: 10px;
}
.foot .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ── 装饰性粒子背景（封面/收尾页） ── */
.particle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle-field .p {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: particleFloat 4s ease-in-out infinite;
}
.particle-field .p:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 3.5s; }
.particle-field .p:nth-child(2) { left: 25%; top: 60%; animation-delay: 0.5s; animation-duration: 4.2s; }
.particle-field .p:nth-child(3) { left: 45%; top: 30%; animation-delay: 1s; animation-duration: 3.8s; }
.particle-field .p:nth-child(4) { left: 65%; top: 70%; animation-delay: 1.5s; animation-duration: 4.5s; }
.particle-field .p:nth-child(5) { left: 80%; top: 40%; animation-delay: 2s; animation-duration: 3.2s; }
.particle-field .p:nth-child(6) { left: 90%; top: 15%; animation-delay: 0.3s; animation-duration: 4.8s; }
.particle-field .p:nth-child(7) { left: 15%; top: 80%; animation-delay: 1.2s; animation-duration: 3.6s; }
.particle-field .p:nth-child(8) { left: 55%; top: 50%; animation-delay: 0.8s; animation-duration: 4.1s; }

@keyframes particleFloat {
  0% { opacity: 0; translate: 0 20px; scale: 0; }
  20% { opacity: .6; scale: 1; }
  80% { opacity: .4; }
  100% { opacity: 0; translate: 0 -40px; scale: .5; }
}

/* ── 光晕脉冲（卡片发光效果） ── */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 20%, transparent); }
  50% { box-shadow: 0 0 20px 4px color-mix(in srgb, var(--accent) 15%, transparent); }
}
.card.glow.pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

/* ── 数字计数动画占位 ── */
@keyframes countUp {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}

/* ── 进度条动画 ── */
@keyframes progressFill {
  from { width: 0; }
}
.slide.in .progress-fill {
  animation: progressFill 1.2s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms + 300ms);
}

/* ── 3D 磁性卡片：跟随鼠标倾斜 ── */
.card.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.card.tilt-3d:hover {
  transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(12px) scale(1.015);
  box-shadow:
    0 25px 60px -20px rgba(0,0,0,0.3),
    0 0 30px -10px var(--glow),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ── 数字计数弹跳 ── */
.num-counter {
  display: inline-block;
  animation: numBounce 0.6s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: var(--counter-delay, 0ms);
}
@keyframes numBounce {
  0% { transform: scale(0.3) translateY(20px); opacity: 0; filter: blur(6px); }
  60% { transform: scale(1.15) translateY(-3px); opacity: 1; filter: blur(0); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ── 鼠标光晕跟随 ── */
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
.cursor-glow.active { opacity: 0.4; }

/* ── 背景极光 blob ── */
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  animation: auroraFloat 12s ease-in-out infinite alternate;
}
@keyframes auroraFloat {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(30px, -40px) scale(1.1) rotate(60deg); }
  66% { transform: translate(-20px, 20px) scale(0.95) rotate(120deg); }
  100% { transform: translate(10px, -10px) scale(1.05) rotate(180deg); }
}

/* ── 标题文字闪光扫过 ── */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--text) 0%,
    var(--text) 40%,
    var(--accent) 50%,
    var(--text) 60%,
    var(--text) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerPass 4s ease-in-out infinite;
}
@keyframes shimmerPass {
  0%, 100% { background-position: 200% center; }
  50% { background-position: -50% center; }
}

/* ── SVG 路径绘制动画 ── */
.draw-on path, .draw-on polyline, .draw-on line, .draw-on circle, .draw-on polygon {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: svgDraw 2s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--draw-delay, 0.5s);
}
@keyframes svgDraw {
  to { stroke-dashoffset: 0; }
}

/* ── 进度条波纹 ── */
.ripple-bar {
  position: relative;
  overflow: hidden;
}
.ripple-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: rippleBar 2s ease-in-out infinite;
}
@keyframes rippleBar {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ── 连线粒子 canvas 容器 ── */
.particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── 弹性缩放入场（覆盖 data-anim="scale"） ── */
.slide.in [data-anim="scale"].spring {
  animation-name: inScaleSpring;
}
@keyframes inScaleSpring {
  0% { scale: .7; opacity: 0; filter: blur(8px); }
  50% { scale: 1.08; opacity: 1; filter: blur(0); }
  70% { scale: .97; }
  85% { scale: 1.02; }
  100% { scale: 1; opacity: 1; }
}

/* ── 卡片悬浮光边扫描 ── */
.card.glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: conic-gradient(from var(--scan-angle, 0deg), transparent 60%, var(--accent) 80%, transparent 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.card.glow:hover::before {
  opacity: 0.3;
  animation: borderScan 3s linear infinite;
}
@keyframes borderScan {
  to { --scan-angle: 360deg; }
}
@property --scan-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ── 审计日志逐行打字效果 ── */
.typewriter-line {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent);
  animation: typewriter 1.5s steps(40) forwards, blinkCaret 0.8s step-end infinite;
  width: 0;
}
.slide.in .typewriter-line {
  animation-delay: calc(var(--tw-delay, 0ms));
}
@keyframes typewriter {
  to { width: 100%; }
}
@keyframes blinkCaret {
  50% { border-color: transparent; }
}

/* ── 芯片标签弹性入场 ── */
.slide.in .chip[data-anim] {
  animation: chipPop 0.5s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: calc(var(--i, 0) * 40ms + 300ms);
}
@keyframes chipPop {
  0% { scale: 0; opacity: 0; }
  100% { scale: 1; opacity: 1; }
}

/* ── 呼吸灯：持续脉冲发光 ── */
.breathe {
  animation: breatheGlow 3s ease-in-out infinite;
}
@keyframes breatheGlow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 20%, transparent); }
  50% { box-shadow: 0 0 20px 4px color-mix(in srgb, var(--accent) 15%, transparent); }
}

/* ── 桌面鼠标跟踪视差层 ── */
.parallax-layer {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* ── 更平滑的粒子浮动 + 更多位置 ── */
@keyframes particleFloatSmooth {
  0% { opacity: 0; translate: 0 30px; scale: 0; }
  15% { opacity: .7; scale: 1.1; }
  50% { translate: 10px -20px; opacity: .5; }
  85% { opacity: .3; }
  100% { opacity: 0; translate: -5px -50px; scale: .4; }
}
.particle-field .p:nth-child(n+9) {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: particleFloatSmooth 5s ease-in-out infinite;
}
.particle-field .p:nth-child(9)  { left: 5%;  top: 45%; animation-delay: 0.2s; animation-duration: 4.3s; }
.particle-field .p:nth-child(10) { left: 35%; top: 15%; animation-delay: 1.8s; animation-duration: 3.9s; }
.particle-field .p:nth-child(11) { left: 70%; top: 55%; animation-delay: 0.6s; animation-duration: 4.7s; }
.particle-field .p:nth-child(12) { left: 50%; top: 85%; animation-delay: 2.5s; animation-duration: 3.4s; }

/* ============================================================
   动画增强 v5（数据可视化 + 转场 + 进度条）— 追加，不改既有
   ============================================================ */

/* ============ 动画增强：顶部进度条 ============ */
.deck-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 2147482950;
  background: rgba(0, 0, 0, 0.06);
  pointer-events: none;
}
.deck-progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  box-shadow: 0 0 8px color-mix(in srgb, var(--pink) 55%, transparent);
  transition: width 0.5s cubic-bezier(.16, 1, .3, 1);
}

/* ============ 动画增强：封面 Logo 自绘 ============ */
svg[data-viz="logo"] [data-brand-layer="geometric-s"] {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
svg[data-viz="logo"].viz-play [data-brand-layer="geometric-s"] {
  animation: svgDraw 1s cubic-bezier(.16, 1, .3, 1) 0.2s forwards;
}
svg[data-viz="logo"] [data-brand-layer="wave-x"] path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}
svg[data-viz="logo"].viz-play [data-brand-layer="wave-x"] path {
  animation: svgDraw 0.55s ease forwards;
}
svg[data-viz="logo"].viz-play [data-brand-layer="wave-x"] path:nth-child(1) { animation-delay: 0.95s; }
svg[data-viz="logo"].viz-play [data-brand-layer="wave-x"] path:nth-child(2) { animation-delay: 1.05s; }
svg[data-viz="logo"].viz-play [data-brand-layer="wave-x"] path:nth-child(3) { animation-delay: 1.15s; }
svg[data-viz="logo"].viz-play [data-brand-layer="wave-x"] path:nth-child(4) { animation-delay: 1.20s; }

/* ============ 动画增强：五因子加权柱状图 ============ */
.viz-bars { display: flex; flex-direction: column; gap: 6px; }
.viz-bar {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--fs-mono); font-size: 14px;
}
.viz-bar__name { width: 52px; flex: none; color: var(--text-mut); }
.viz-bar__track {
  flex: 1; height: 9px; border-radius: 6px;
  background: var(--ink-3); overflow: hidden;
}
.viz-bar__track i {
  display: block; height: 100%; width: 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 35%, var(--blue)));
  transition: width 1s cubic-bezier(.16, 1, .3, 1);
}
.viz-bars.viz-play .viz-bar__track i { width: var(--w); }
.viz-bars.viz-play .viz-bar:nth-child(1) .viz-bar__track i { transition-delay: 0.00s; }
.viz-bars.viz-play .viz-bar:nth-child(2) .viz-bar__track i { transition-delay: 0.08s; }
.viz-bars.viz-play .viz-bar:nth-child(3) .viz-bar__track i { transition-delay: 0.16s; }
.viz-bars.viz-play .viz-bar:nth-child(4) .viz-bar__track i { transition-delay: 0.24s; }
.viz-bars.viz-play .viz-bar:nth-child(5) .viz-bar__track i { transition-delay: 0.32s; }
.viz-bar__val { width: 44px; flex: none; text-align: right; color: var(--text); font-weight: 600; }

/* ============ 动画增强：五维声线雷达 ============ */
.viz-radar { display: block; margin: 8px auto 2px; width: 120px; height: auto; overflow: visible; }
.viz-radar .grid { fill: none; stroke: var(--line-2); stroke-width: 1; }
.viz-radar .axis { stroke: var(--line-2); stroke-width: 1; }
.viz-radar .grid, .viz-radar .axis { stroke-dasharray: 700; stroke-dashoffset: 700; }
.viz-radar.viz-play .grid, .viz-radar.viz-play .axis { animation: svgDraw 0.9s ease forwards; }
.viz-radar .area {
  fill: color-mix(in srgb, var(--accent) 22%, transparent);
  stroke: var(--accent); stroke-width: 2; stroke-linejoin: round;
  transform-box: view-box; transform-origin: 100px 100px;
  transform: scale(0); opacity: 0;
}
.viz-radar.viz-play .area { animation: radarPop 0.85s cubic-bezier(.34, 1.56, .64, 1) 0.55s forwards; }
@keyframes radarPop {
  0%   { transform: scale(0);    opacity: 0; }
  70%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}
.viz-radar .vtx { fill: var(--accent); opacity: 0; }
.viz-radar.viz-play .vtx { animation: vizFadeIn 0.3s ease forwards; }
.viz-radar.viz-play .vtx:nth-of-type(1) { animation-delay: 0.75s; }
.viz-radar.viz-play .vtx:nth-of-type(2) { animation-delay: 0.83s; }
.viz-radar.viz-play .vtx:nth-of-type(3) { animation-delay: 0.91s; }
.viz-radar.viz-play .vtx:nth-of-type(4) { animation-delay: 0.99s; }
.viz-radar.viz-play .vtx:nth-of-type(5) { animation-delay: 1.07s; }
@keyframes vizFadeIn { to { opacity: 1; } }

/* ============ 动画增强：情绪张力贝塞尔曲线 ============ */
.viz-bezier__line { stroke-dasharray: 320; stroke-dashoffset: 320; }
.viz-bezier.viz-play .viz-bezier__line { animation: svgDraw 1.6s cubic-bezier(.16, 1, .3, 1) forwards; }
.viz-bezier__area { opacity: 0; }
.viz-bezier.viz-play .viz-bezier__area { animation: vizFadeIn 1.6s ease forwards; }
.viz-bezier__dot { filter: drop-shadow(0 0 4px var(--accent)); }

/* ============ 动画增强：尊重 prefers-reduced-motion ============ */
@media (prefers-reduced-motion: reduce) {
  .deck-transition { display: none !important; }
  .deck-progress__fill { transition: none !important; }
  .viz-bars .viz-bar__track i { transition: none !important; width: var(--w) !important; }
  .viz-radar .grid, .viz-radar .axis { stroke-dashoffset: 0 !important; animation: none !important; }
  .viz-radar .area { transform: none !important; opacity: 1 !important; animation: none !important; }
  .viz-radar .vtx { opacity: 1 !important; animation: none !important; }
  svg[data-viz="logo"] [data-brand-layer="geometric-s"],
  svg[data-viz="logo"] [data-brand-layer="wave-x"] path { stroke-dashoffset: 0 !important; animation: none !important; }
  .viz-bezier__line { stroke-dashoffset: 0 !important; animation: none !important; }
  .viz-bezier__area { opacity: 1 !important; animation: none !important; }
}
