* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
}

.space-background {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0e17, #1a202c);
  overflow: hidden;
}

/* 星空效果 */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

/* 太阳效果 */
.sun {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #fffacd, #ff7f50, #ff4500);
  border-radius: 50%;
  box-shadow: 0 0 100px #ff7f50, 0 0 200px rgba(255, 69, 0, 0.5), 0 0 300px rgba(255, 127, 80, 0.3);
  animation: glow 5s infinite alternate;
  z-index: 10;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 80px #ff7f50, 0 0 150px rgba(255, 69, 0, 0.5), 0 0 250px rgba(255, 127, 80, 0.3);
  }
  100% {
    box-shadow: 0 0 120px #ff7f50, 0 0 250px rgba(255, 69, 0, 0.7), 0 0 350px rgba(255, 127, 80, 0.5);
  }
}

/* 太阳系容器 */
.solar-system {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
}

/* 轨道效果 */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* 行星效果 */
.planets {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.planet {
  position: absolute;
  border-radius: 50%;
  transform-origin: center;
  top: 50%;
  left: 50%;
  cursor: pointer;
  z-index: 5;
}

/* 星球名称样式 */
.planet-name {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 7px;
  font-weight: normal;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  z-index: 10;
}

/* 星球提示框样式 */
.planet-tooltip {
  position: fixed;
  background-color: rgba(10, 14, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 15px;
  color: white;
  width: 250px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: none;
  backdrop-filter: blur(5px);
}

.planet-tooltip h3 {
  margin-top: 0;
  margin-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 5px;
  font-size: 16px;
}

.planet-tooltip p {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.4;
}

/* 月球效果 */
.moon {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform-origin: 20px 20px;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  animation: moonOrbit 0.8s linear infinite;
}

/* 月球公转动画 */
@keyframes moonOrbit {
  0% { transform: rotate(0deg) translateX(20px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

/* 土星环效果 */
.planet.saturn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 30%;
  background-color: rgba(210, 180, 140, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 10px rgba(210, 180, 140, 0.8);
}

/* 行星公转动画 */
@keyframes mercuryOrbit {
  0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes venusOrbit {
  0% { transform: rotate(0deg) translateX(150px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes earthOrbit {
  0% { transform: rotate(0deg) translateX(200px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

@keyframes marsOrbit {
  0% { transform: rotate(0deg) translateX(250px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(250px) rotate(-360deg); }
}

@keyframes jupiterOrbit {
  0% { transform: rotate(0deg) translateX(320px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(320px) rotate(-360deg); }
}

@keyframes saturnOrbit {
  0% { transform: rotate(0deg) translateX(400px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(400px) rotate(-360deg); }
}

@keyframes uranusOrbit {
  0% { transform: rotate(0deg) translateX(460px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(460px) rotate(-360deg); }
}

@keyframes neptuneOrbit {
  0% { transform: rotate(0deg) translateX(520px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(520px) rotate(-360deg); }
}

@keyframes plutoOrbit {
  0% { transform: rotate(0deg) translateX(580px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(580px) rotate(-360deg); }
}

/* 宇宙飞船效果 */
.spaceship {
  position: absolute;
  top: 20%;
  left: -100px;
  width: 100px;
  height: 50px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><path d="M90,25 L10,15 L10,35 Z" fill="#4a5568"/><path d="M90,25 L60,20 L60,30 Z" fill="#2d3748"/><circle cx="70" cy="25" r="5" fill="#cbd5e0"/></svg>') no-repeat center center;
  background-size: contain;
  animation: fly 15s infinite linear;
}

@keyframes fly {
  0% {
    left: -100px;
    top: 20%;
  }
  50% {
    top: 30%;
  }
  100% {
    left: 100%;
    top: 20%;
  }
}

/* 流星效果 */
.meteors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.meteor {
  position: absolute;
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  transform-origin: top left;
  animation: meteor 3s infinite linear;
}

@keyframes meteor {
  0% {
    transform: translateX(0) translateY(0) rotate(45deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateX(300px) translateY(300px) rotate(45deg);
    opacity: 0;
  }
}

/* 中央文字容器 */
.central-text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

/* 乐高风格文字 */
.lego-text {
  font-size: 6rem;
  font-weight: bold;
  color: #ff6b6b;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.7), 0 0 20px rgba(255, 107, 107, 0.5);
  position: relative;
  display: inline-block;
  padding: 10px 20px;
}

.lego-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 107, 107, 0.2);
  border: 5px solid #ff6b6b;
  border-radius: 10px;
  z-index: -1;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.5), 0 0 40px rgba(255, 107, 107, 0.3);
}

.lego-text::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

/* 底部备案信息 */
.footer {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  z-index: 10;
}

.footer p {
  background-color: rgba(10, 14, 23, 0.7);
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  margin: 5px 0;
}

.friend-links {
  margin-bottom: 10px;
  text-align: center;
}

.friend-links p {
  margin-bottom: 5px;
}

.friend-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.friend-links a:hover {
  color: white;
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .solar-system {
    width: 600px;
    height: 600px;
  }

  .orbit:nth-child(1) { width: 150px; height: 150px; }
  .orbit:nth-child(2) { width: 225px; height: 225px; }
  .orbit:nth-child(3) { width: 300px; height: 300px; }
  .orbit:nth-child(4) { width: 375px; height: 375px; }
  .orbit:nth-child(5) { width: 480px; height: 480px; }
  .orbit:nth-child(6) { width: 600px; height: 600px; }
  .orbit:nth-child(7) { width: 690px; height: 690px; }
  .orbit:nth-child(8) { width: 780px; height: 780px; }
  .orbit:nth-child(9) { width: 870px; height: 870px; }
}

@media (max-width: 768px) {
  .moon {
    width: 6px;
    height: 6px;
    transform-origin: 15px 15px;
  }
  .lego-text {
    font-size: 3rem;
  }

  .sun {
    width: 200px;
    height: 200px;
  }

  .earth-label {
    margin-left: 150px;
    font-size: 12px;
  }

  .solar-system {
    width: 600px;
    height: 600px;
  }

  .orbit:nth-child(1) { width: 150px; height: 150px; }
  .orbit:nth-child(2) { width: 225px; height: 225px; }
  .orbit:nth-child(3) { width: 300px; height: 300px; }
  .orbit:nth-child(4) { width: 375px; height: 375px; }
  .orbit:nth-child(5) { width: 480px; height: 480px; }
  .orbit:nth-child(6) { width: 600px; height: 600px; }
  .orbit:nth-child(7) { width: 690px; height: 690px; }
  .orbit:nth-child(8) { width: 780px; height: 780px; }
  .orbit:nth-child(9) { width: 870px; height: 870px; }

  .planet.mercury { width: 7px; height: 7px; }
  .planet.venus { width: 18px; height: 18px; }
  .planet.earth { width: 20px; height: 20px; }
  .planet.mars { width: 11px; height: 11px; }
  .planet.jupiter { width: 71px; height: 71px; }
  .planet.saturn { width: 64px; height: 64px; }
  .planet.uranus { width: 29px; height: 29px; }
  .planet.neptune { width: 28px; height: 28px; }
  .planet.pluto { width: 4px; height: 4px; }
  .moon { width: 6px; height: 6px; }
  .moon { transform-origin: 15px 15px; }
}

@media (max-width: 480px) {
  .moon {
    width: 5px;
    height: 5px;
    transform-origin: 12px 12px;
  }
  .lego-text {
    font-size: 2rem;
  }

  .footer {
    font-size: 0.7rem;
  }

  .sun {
    width: 140px;
    height: 140px;
  }

  .earth-label {
    margin-left: 110px;
    font-size: 10px;
  }

  .solar-system {
    width: 400px;
    height: 400px;
  }

  .orbit:nth-child(1) { width: 100px; height: 100px; }
  .orbit:nth-child(2) { width: 150px; height: 150px; }
  .orbit:nth-child(3) { width: 200px; height: 200px; }
  .orbit:nth-child(4) { width: 250px; height: 250px; }
  .orbit:nth-child(5) { width: 320px; height: 320px; }
  .orbit:nth-child(6) { width: 400px; height: 400px; }
  .orbit:nth-child(7) { width: 460px; height: 460px; }
  .orbit:nth-child(8) { width: 520px; height: 520px; }
  .orbit:nth-child(9) { width: 580px; height: 580px; }

  .planet.mercury { width: 6px; height: 6px; }
  .planet.venus { width: 14px; height: 14px; }
  .planet.earth { width: 16px; height: 16px; }
  .planet.mars { width: 9px; height: 9px; }
  .planet.jupiter { width: 57px; height: 57px; }
  .planet.saturn { width: 51px; height: 51px; }
  .planet.uranus { width: 23px; height: 23px; }
  .planet.neptune { width: 22px; height: 22px; }
  .planet.pluto { width: 3px; height: 3px; }
  .moon { width: 5px; height: 5px; }
  .moon { transform-origin: 12px 12px; }
}

@media (max-width: 480px) {
  .lego-text {
    font-size: 2rem;
  }

  .footer {
    font-size: 0.7rem;
  }
}