/* ===== 1. 全局重置 + 舞台（响应式） ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #000; overflow: hidden; font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; }
.stage { position: relative; width: 1920px; height: 1080px; background: #050510; overflow: hidden; flex-shrink: 0; transform-origin: center center; }

/* ===== 2. 背景光球层 ===== */
.bg-orbs { position: absolute; inset: 0; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.10; animation: orbFloat 12s ease-in-out infinite alternate; }
.orb:nth-child(1) { width: 600px; height: 600px; background: #0066ff; top: -200px; left: -100px; }
.orb:nth-child(2) { width: 500px; height: 500px; background: #6600ff; top: 40%; right: -150px; animation-delay: -4s; }
.orb:nth-child(3) { width: 450px; height: 450px; background: #00aaaa; bottom: -150px; left: 30%; animation-delay: -8s; }
.orb:nth-child(4) { width: 400px; height: 400px; background: #ff4488; top: 10%; right: 30%; opacity: 0.06; animation-delay: -2s; }
@keyframes orbFloat {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(60px,-40px) scale(1.15); }
}

/* ===== 3. 网格线层 ===== */
.bg-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.04;
  background-image:
    linear-gradient(rgba(0,180,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,255,0.4) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { 0% { transform: translate(0,0); } 100% { transform: translate(80px,80px); } }

/* ===== 4. 六边形纹理 ===== */
.bg-hex {
  position: absolute; inset: 0; z-index: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpath d='M30 0l30 17.3v34.6L30 69.3 0 52V17.3z' fill='none' stroke='%2300b4ff' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 104px;
}

/* ===== 5. 扫描线 ===== */
.scanline {
  position: absolute; top: -4px; left: 0; width: 100%; height: 4px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.06), transparent);
  animation: scanDown 6s linear infinite;
}
@keyframes scanDown { 0% { top: -4px; } 100% { top: 1084px; } }

/* ===== 6. 粒子容器 ===== */
.particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particle {
  position: absolute; border-radius: 50%; bottom: -10px;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-1120px) translateX(var(--dx)); opacity: 0; }
}

/* ===== 7. 浮动几何体 ===== */
.float-geo { position: absolute; z-index: 1; pointer-events: none; }
.float-geo svg { opacity: 0.06; animation: geoFloat 10s ease-in-out infinite alternate; }
.float-geo:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.float-geo:nth-child(2) { top: 70%; right: 10%; animation-delay: -3s; }
.float-geo:nth-child(3) { bottom: 20%; left: 60%; animation-delay: -6s; }
@keyframes geoFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-30px) rotate(15deg); }
}

/* ===== 8. 脉冲环 ===== */
.pulse-rings { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pulse-ring {
  position: absolute; border-radius: 50%; border: 2px solid rgba(0,212,255,0.15);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: pulseOut 4s ease-out infinite;
}
.pulse-ring:nth-child(1) { width: 300px; height: 300px; }
.pulse-ring:nth-child(2) { width: 400px; height: 400px; animation-delay: 1.3s; }
.pulse-ring:nth-child(3) { width: 500px; height: 500px; animation-delay: 2.6s; }
@keyframes pulseOut {
  0% { transform: translate(-50%,-50%) scale(0.6); opacity: 0.5; }
  100% { transform: translate(-50%,-50%) scale(1.8); opacity: 0; }
}

/* ===== 9. 角标装饰 ===== */
.corner-decor { position: absolute; z-index: 2; pointer-events: none; }
.corner { position: absolute; width: 40px; height: 40px; border-color: rgba(0,212,255,0.2); border-style: solid; }
.corner-tl { top: 30px; left: 30px; border-width: 2px 0 0 2px; }
.corner-tr { top: 30px; right: 30px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: 30px; left: 30px; border-width: 0 0 2px 2px; }
.corner-br { bottom: 30px; right: 30px; border-width: 0 2px 2px 0; }

/* ===== 10. 场景容器（纯flex居中，不写死padding偏移） ===== */
.scene-container { position: absolute; inset: 0; z-index: 10; }
.scene {
  position: absolute; inset: 0; display: none; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 60px 160px; overflow: auto;
}
.scene.active { display: flex; }
.scene.hide { display: flex; animation: sceneOut 0.3s ease-in forwards; }
@keyframes sceneOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.97) translateY(-20px); }
}

/* ===== 11. 文字动画库 ===== */
.scene .line { opacity: 0; }
.scene .line.animate-in { animation-fill-mode: forwards; animation-timing-function: cubic-bezier(0.16,1,0.3,1); }
.scene .line.animate-in.from-bottom { animation-name: fromBottom; animation-duration: 0.7s; }
.scene .line.animate-in.from-left { animation-name: fromLeft; animation-duration: 0.7s; }
.scene .line.animate-in.from-right { animation-name: fromRight; animation-duration: 0.7s; }
.scene .line.animate-in.from-scale { animation-name: fromScale; animation-duration: 0.75s; }
.scene .line.animate-in.glitch-in { animation-name: glitchIn; animation-duration: 0.5s; }
@keyframes fromBottom { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fromLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fromRight { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fromScale { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes glitchIn {
  0% { opacity: 0; transform: translateX(-8px); }
  20% { opacity: 0.7; transform: translateX(6px); }
  40% { opacity: 0.4; transform: translateX(-4px); }
  60% { opacity: 0.9; transform: translateX(3px); }
  80% { opacity: 0.7; transform: translateX(-2px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ===== 12. 排版体系 ===== */
.txt-hero { font-size: 80px; font-weight: 900; color: #fff; text-shadow: 0 0 60px rgba(0,150,255,0.4), 0 4px 20px rgba(0,0,0,0.5); line-height: 1.15; text-align: center; }
.txt-hero-xl { font-size: 100px; font-weight: 900; color: #fff; text-shadow: 0 0 80px rgba(0,180,255,0.5), 0 6px 30px rgba(0,0,0,0.6); line-height: 1.1; text-align: center; }
.txt-sub { font-size: 52px; font-weight: 700; color: #e0e8ff; line-height: 1.3; text-align: center; }
.txt-body { font-size: 40px; font-weight: 400; color: #e8eef5; line-height: 1.5; text-align: center; }
.txt-body-md { font-size: 36px; font-weight: 400; color: #d0d8e8; line-height: 1.45; text-align: center; }
.txt-caption { font-size: 24px; font-weight: 300; color: #8899bb; line-height: 1.4; text-align: center; }
.txt-stat { font-family: 'Orbitron', 'Courier New', monospace; font-size: 130px; font-weight: 900; color: #ffd700; text-shadow: 0 0 50px rgba(255,215,0,0.5); line-height: 1; }

.c-blue { color: #2adb5c; } .c-gold { color: #ffd700; } .c-green { color: #00ff88; } .c-orange { color: #ff8c00; } .c-purple { color: #b366ff; } .c-pink { color: #ff4488; }

/* ===== 13. 组件 ===== */
/* Tag Pill */
.tag-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }
.tag-pill {
  display: inline-block; padding: 10px 28px; border-radius: 50px; font-size: 26px; font-weight: 500;
  border: 1px solid; letter-spacing: 2px;
}
.tag-blue { background: rgba(0,150,255,0.1); border-color: rgba(0,180,255,0.4); color: #00d4ff; }
.tag-gold { background: rgba(255,200,0,0.08); border-color: rgba(255,200,0,0.35); color: #ffd700; }
.tag-green { background: rgba(0,255,100,0.08); border-color: rgba(0,255,100,0.3); color: #00ff88; }
.tag-orange { background: rgba(255,140,0,0.08); border-color: rgba(255,140,0,0.3); color: #ff8c00; }
.tag-purple { background: rgba(180,100,255,0.08); border-color: rgba(180,100,255,0.3); color: #b366ff; }

/* Step Badge */
.step-row { display: flex; flex-direction: column; gap: 30px; width: 100%; max-width: 1400px; margin: 20px 0; }
.step-badge { display: flex; align-items: center; gap: 32px; }
.step-num {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #0055cc, #00aaff);
  box-shadow: 0 0 30px rgba(0,150,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', monospace; font-size: 32px; font-weight: 900; color: #fff;
}
.step-num.gold { background: linear-gradient(135deg, #996600, #ffcc00); box-shadow: 0 0 30px rgba(255,200,0,0.4); }
.step-num.green { background: linear-gradient(135deg, #006644, #00cc77); box-shadow: 0 0 30px rgba(0,255,100,0.4); }
.step-content { flex: 1; }
.step-label { font-size: 28px; font-weight: 300; color: #8899bb; margin-bottom: 4px; }
.step-desc { font-size: 36px; font-weight: 400; color: #e8eef5; line-height: 1.4; }

/* Reason Block */
.reason-row { display: flex; gap: 40px; width: 100%; max-width: 1500px; margin: 20px 0; }
.reason-block {
  flex: 1; background: rgba(0,20,50,0.5); border-left: 4px solid #00d4ff; border-radius: 0 16px 16px 0;
  padding: 36px 44px; backdrop-filter: blur(10px);
}
.reason-block.gold-bl { border-left-color: #ffd700; }
.reason-num { font-family: 'Orbitron', monospace; font-size: 56px; font-weight: 900; color: #00d4ff; line-height: 1; margin-bottom: 12px; }
.reason-block.gold-bl .reason-num { color: #ffd700; }
.reason-title { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.reason-desc { font-size: 30px; font-weight: 400; color: #d0d8e8; line-height: 1.4; }

/* Feature Card */
.feat-row { display: flex; gap: 30px; justify-content: center; margin: 20px 0; }
.feat-card {
  display: flex; align-items: center; gap: 16px; background: rgba(0,150,255,0.06);
  border: 1px solid rgba(0,180,255,0.2); border-radius: 16px; padding: 20px 36px;
}
.feat-icon { font-size: 36px; }
.feat-text { font-size: 30px; font-weight: 500; color: #e8eef5; }

/* Glow Card */
.glow-card {
  background: rgba(0,10,30,0.7); border: 1px solid rgba(0,180,255,0.25); border-radius: 24px;
  padding: 48px 72px; backdrop-filter: blur(20px); position: relative; overflow: hidden;
}
.glow-card::before {
  content: ''; position: absolute; inset: -2px; border-radius: 26px; padding: 2px;
  background: linear-gradient(135deg, #00d4ff, #a855f7, #ff4488, #ffd700, #00d4ff);
  background-size: 300% 300%; animation: borderGlow 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; z-index: 0;
}
.glow-card > * { position: relative; z-index: 1; }
@keyframes borderGlow { 0% { background-position: 0% 0%; } 100% { background-position: 300% 0%; } }

/* CTA Card */
.cta-mega {
  background: linear-gradient(135deg, rgba(0,20,60,0.8), rgba(20,0,40,0.8));
  border: 2px solid rgba(0,212,255,0.35); border-radius: 28px;
  padding: 56px 80px; position: relative; overflow: hidden; text-align: center;
}
.cta-mega::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(0,212,255,0.08), transparent, rgba(180,100,255,0.08), transparent);
  animation: ctaSpin 6s linear infinite; z-index: 0;
}
.cta-mega > * { position: relative; z-index: 1; }
@keyframes ctaSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Arrow connector */
.flow-row { display: flex; align-items: center; gap: 30px; justify-content: center; margin: 30px 0; }
.flow-item { font-size: 34px; font-weight: 700; color: #fff; text-align: center; }
.flow-arrow { font-size: 36px; color: #00d4ff; }

/* ===== 14. 进度条 ===== */
.progress-bar-wrap { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; z-index: 50; background: rgba(255,255,255,0.05); }
.progress-bar {
  height: 100%; width: 0%; transition: width 0.2s linear;
  background: linear-gradient(90deg, #00d4ff, #a855f7, #ff4488, #ffd700);
  background-size: 200% 100%; animation: progressShine 2s linear infinite;
}
@keyframes progressShine { 0% { background-position: 0% 0%; } 100% { background-position: 200% 0%; } }

/* ===== 15. 音频指示器 ===== */
.audio-ui { position: absolute; top: 40px; right: 50px; z-index: 50; display: flex; align-items: center; gap: 12px; }
.audio-bars { display: flex; align-items: flex-end; gap: 3px; height: 24px; }
.audio-bar {
  width: 3px; background: #00d4ff; border-radius: 2px;
  animation: barJump 0.6s ease-in-out infinite alternate;
}
.audio-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.audio-bar:nth-child(2) { height: 18px; animation-delay: 0.15s; }
.audio-bar:nth-child(3) { height: 14px; animation-delay: 0.3s; }
.audio-bar:nth-child(4) { height: 22px; animation-delay: 0.1s; }
.audio-bar:nth-child(5) { height: 12px; animation-delay: 0.25s; }
@keyframes barJump { to { transform: scaleY(0.3); } }
.audio-time { font-family: 'Orbitron', monospace; font-size: 18px; color: rgba(255,255,255,0.6); }

/* ===== 16. 启动遮罩 ===== */
.start-overlay {
  position: absolute; inset: 0; z-index: 100; background: rgba(5,5,16,0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
}
.start-btn {
  width: 140px; height: 140px; border-radius: 50%; border: 3px solid rgba(0,212,255,0.5);
  background: rgba(0,20,50,0.7); display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; box-shadow: 0 0 40px rgba(0,150,255,0.3);
}
.start-btn:hover { border-color: #00d4ff; box-shadow: 0 0 60px rgba(0,180,255,0.5); transform: scale(1.05); }
.start-tri { width: 0; height: 0; border-left: 35px solid #00d4ff; border-top: 22px solid transparent; border-bottom: 22px solid transparent; margin-left: 8px; }
.start-hint { margin-top: 36px; font-size: 24px; color: rgba(255,255,255,0.5); letter-spacing: 4px; }

/* ===== 17. Highlight span ===== */
.hl { color: #00d4ff; font-weight: 700; }
.hl-g { color: #ffd700; font-weight: 700; }
.hl-r { color: #00ff88; font-weight: 700; }
.hl-o { color: #ff8c00; font-weight: 700; }

/* ===== 18. Matrix Canvas ===== */
#matrixCanvas { position: absolute; inset: 0; z-index: 0; opacity: 0.04; pointer-events: none; }

/* ===== 19. 移动端优化（缩放后角标和UI元素视觉调整） ===== */
@media (max-width: 768px) {
  .audio-ui { top: 24px; right: 24px; gap: 8px; }
  .audio-time { font-size: 16px; }
}
