/* 生升易AI · 全息赛博太极星盘首页 —— 自定义动画（Tailwind CDN 默认不含以下关键帧） */

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spin-slow-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes hub-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 40px 8px rgba(34, 211, 238, 0.35), 0 0 90px 20px rgba(168, 85, 247, 0.18); }
  50% { box-shadow: 0 0 60px 16px rgba(34, 211, 238, 0.55), 0 0 120px 30px rgba(168, 85, 247, 0.30); }
}
@keyframes starfield-drift {
  from { background-position: 0 0; }
  to { background-position: 1000px 500px; }
}

.taichi-ring-outer { animation: spin-slow 26s linear infinite; }
.taichi-ring-inner { animation: spin-slow-reverse 18s linear infinite; }
.hub-node { animation: hub-float 6s ease-in-out infinite; }
.hub-node[data-delay="1"] { animation-delay: 0.4s; }
.hub-node[data-delay="2"] { animation-delay: 1.1s; }
.hub-node[data-delay="3"] { animation-delay: 1.8s; }
.core-glow { animation: core-pulse 4.5s ease-in-out infinite; }

#cosmos-stage {
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(34,211,238,0.6) 50%, transparent 100%),
    radial-gradient(1px 1px at 70% 60%, rgba(168,85,247,0.6) 50%, transparent 100%),
    radial-gradient(1px 1px at 40% 80%, rgba(220,38,38,0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(34,211,238,0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 10% 90%, rgba(168,85,247,0.5) 50%, transparent 100%),
    radial-gradient(2px 2px at 55% 40%, rgba(255,255,255,0.4) 50%, transparent 100%);
  background-size: 1000px 500px;
  animation: starfield-drift 90s linear infinite;
}

.hub-link:hover .hub-orb {
  filter: brightness(1.3);
  transform: scale(1.08);
}

.rune-input {
  background: rgba(11, 15, 25, 0.6);
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rune-input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.9);
  box-shadow: 0 4px 12px -6px rgba(34, 211, 238, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .taichi-ring-outer, .taichi-ring-inner, .hub-node, .core-glow, #cosmos-stage {
    animation: none !important;
  }
}
