/* ==========================================================================
   模板 099 · 反重力电梯视觉系统 (Template 099: Anti-Gravity Elevator Theme)
   mojienet.baby · 魔戒 (MoJie) 官方落地页专属视觉引擎
   ========================================================================== */

:root {
  --elev-shaft-color: rgba(0, 242, 254, 0.18);
  --elev-beam-glow: rgba(0, 242, 254, 0.65);
  --elev-gold-plasma: #ffd200;
  --elev-gold-glow: rgba(255, 210, 0, 0.4);
  --elev-bg-space: #050811;
  --elev-grid-color: rgba(0, 242, 254, 0.05);
  --hud-cyan: #00f2fe;
  --hud-cyan-dim: rgba(0, 242, 254, 0.25);
  --hud-cyan-glow: rgba(0, 242, 254, 0.5);
  --hud-gold: #f59e0b;
  --hud-green: #00ffb0;
}

/* 全屏反重力电梯井道背景 Canvas */
#antigravityCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* 背景立体空间网格与微距标线 */
.elevator-shaft-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, var(--elev-grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--elev-grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,1) 40%, rgba(0,0,0,0.1) 90%);
}

/* 垂直双轨磁悬浮电梯井导轨 (左右立柱) */
.shaft-rail-left,
.shaft-rail-right {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    var(--hud-cyan-dim) 15%, 
    var(--hud-cyan) 50%, 
    var(--hud-cyan-dim) 85%, 
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
}
.shaft-rail-left { left: 40px; }
.shaft-rail-right { right: 40px; }

@media (max-width: 1024px) {
  .shaft-rail-left { left: 12px; }
  .shaft-rail-right { right: 12px; }
}

/* 井道立柱刻度光斑动画 */
.shaft-rail-left::before,
.shaft-rail-right::before {
  content: '';
  position: absolute;
  left: -2px;
  width: 6px;
  height: 80px;
  background: linear-gradient(180deg, transparent, #00f2fe, #ffffff, #00f2fe, transparent);
  border-radius: 3px;
  filter: drop-shadow(0 0 8px #00f2fe);
  animation: elevatorRailPulse 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.shaft-rail-right::before {
  animation-delay: -2.25s;
}

@keyframes elevatorRailPulse {
  0% { top: 110%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: -100px; opacity: 0; }
}

/* 悬浮反重力座舱固定 HUD 遥测挂件 (右侧电梯楼层与重力指标) */
.anti-gravity-telemetry-hud {
  position: fixed;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  background: rgba(6, 11, 23, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 18px 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 16px rgba(0, 242, 254, 0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 160px;
  transition: all 0.3s ease;
}

@media (max-width: 1280px) {
  .anti-gravity-telemetry-hud {
    display: none;
  }
}

.hud-elev-header {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--hud-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 242, 254, 0.2);
  padding-bottom: 8px;
}
.hud-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hud-green);
  box-shadow: 0 0 8px var(--hud-green);
  animation: hudPulse 1.8s infinite;
}

.hud-elev-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hud-elev-metric .lbl {
  font-size: 10px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hud-elev-metric .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}
.hud-elev-metric .val.accent {
  color: #ffd200;
  text-shadow: 0 0 10px rgba(255, 210, 0, 0.4);
}
.hud-elev-metric .val.cyan {
  color: #00f2fe;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* 楼层导航指示器 */
.hud-floor-levels {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(0, 242, 254, 0.2);
  padding-top: 10px;
}
.floor-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.floor-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  color: var(--hud-cyan);
  border-color: rgba(0, 242, 254, 0.3);
}
.floor-btn.active {
  background: rgba(0, 242, 254, 0.18);
  color: #ffffff;
  border-color: var(--hud-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}
.floor-btn .lvl-tag {
  font-weight: 800;
  color: var(--hud-cyan);
}
.floor-btn.active .lvl-tag {
  color: #ffd200;
}

/* 反重力核心升维舱体光效装饰 (出现在首屏卡片后侧) */
.elevator-core-chamber {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(255, 210, 0, 0.05) 45%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
  z-index: 1;
  animation: chamberLevitate 8s ease-in-out infinite;
}

@keyframes chamberLevitate {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -54%) scale(1.08); opacity: 0.95; }
}

/* 垂直上升的光束粒子流 */
.vertical-ascension-stream {
  position: absolute;
  width: 2px;
  background: linear-gradient(0deg, transparent, #00f2fe, #ffd200, transparent);
  pointer-events: none;
  opacity: 0.6;
  filter: blur(0.5px);
}
