/**
 * 尔湾云 (erwanyun.shop) - 模板动效系统
 * 模板 70: 3D 星际飞船 (3D Interstellar Spaceship Canvas & Warp Engine)
 */

.starship-hero-stage {
  position: relative;
  width: 100%;
  min-height: 520px;
  border-radius: var(--clay-radius-lg);
  background: radial-gradient(circle at 60% 40%, #1e3a8a 0%, #0f172a 60%, #020617 100%);
  box-shadow: var(--clay-shadow-lg);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3D 星际飞船画布 */
#starship-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  cursor: grab;
}

#starship-canvas:active {
  cursor: grabbing;
}

/* 星际星云与星尘辉光装饰层 */
.starship-nebula-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(59, 130, 246, 0.15) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 2;
  animation: nebula-drift 8s infinite alternate ease-in-out;
}

@keyframes nebula-drift {
  0% { transform: translate(-20px, -15px) scale(0.9); }
  100% { transform: translate(30px, 20px) scale(1.15); }
}

/* 星际飞船飞行遥测 HUD 面板 (3D 软陶 HUD 仪表) */
.starship-telemetry-hud {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--clay-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  pointer-events: auto;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-size: 0.8125rem;
}

.hud-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: hud-ping 1.5s infinite;
}

@keyframes hud-ping {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hud-item-label {
  color: #94a3b8;
  font-weight: 500;
}

.hud-item-val {
  color: #38bdf8;
  font-weight: 700;
  font-family: monospace;
}

/* 飞船状态切换微交互提示 */
.starship-ctrl-tip {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
  padding: 6px 14px;
  border-radius: var(--clay-radius-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

@media (max-width: 768px) {
  .starship-hero-stage {
    min-height: 420px;
  }
  .starship-telemetry-hud {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 10px 14px;
    font-size: 0.75rem;
  }
}
