/* 自定义工具类 */
@layer utilities {
  .content-auto {
    content-visibility: auto;
  }
  .star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 2s infinite alternate;
  }
  .orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .planet {
    position: absolute;
    border-radius: 50%;
    transform-origin: center;
  }
  .starry-bg {
    position: relative;
    overflow: hidden;
  }
}

/* 星空背景动画 */
body {
  overflow-x: hidden;
  background: linear-gradient(135deg, #050A30 0%, #0B132B 50%, #121A40 100%);
}

/* 行星轨道动画 */
@keyframes orbit1 {
  from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes orbit2 {
  from { transform: rotate(0deg) translateX(220px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(220px) rotate(-360deg); }
}

@keyframes orbit3 {
  from { transform: rotate(0deg) translateX(300px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(300px) rotate(-360deg); }
}

@keyframes orbit4 {
  from { transform: rotate(0deg) translateX(400px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(400px) rotate(-360deg); }
}

/* 星星闪烁动画 */
@keyframes twinkle {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(90deg, #87CEFA, #E6E6FA, #FFFACD);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: textShine 3s linear infinite;
}

@keyframes textShine {
  to { background-position: 200% center; }
}
