/* 整体展示区域：极度紧凑，无多余占位 */
.earth-wrapper {
  position: relative;
  width: 100%;
  height: 95px; /* 紧凑高度，消除空白 */
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  user-select: none;
  pointer-events: none;
  background: transparent !important;
}

/* 轨道居中容器 */
.orbit-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* 外层逆时针公转轨道 */
.orbit-outer {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  animation: orbitCcw 15s linear infinite;
}

.dark .orbit-outer {
  border-color: rgba(255, 255, 255, 0.12);
}

/* 内层顺时针公转轨道 */
.orbit-inner {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  animation: orbitCw 12s linear infinite;
}

.dark .orbit-inner {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ================= 日间浅色模式（按指定代码原样使用） ================= */
.earth-sphere {
  width: 60px;
  height: 60px;
  background-image: url('/img/8.png');
  background-size: 72%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.35), 0 0 8px rgba(59, 130, 246, 0.12);
  position: relative;
  z-index: 10;
  animation: spin 60s linear infinite;
}

/* ================= 夜间深色模式（灰黑立体质感 + 正常自转） ================= */
.dark .earth-sphere {
  background-image: url('/img/8.png');
  background-size:72%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  background-color: #1e2536 !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    inset 0 0 12px rgba(0, 0, 0, 0.8),
    0 0 0 5px rgba(255, 255, 255, 0.05),
    0 0 16px 2px rgba(255, 255, 255, 0.08),
    0 0 24px rgba(56, 189, 248, 0.2);
  animation: spin 60s linear infinite;
}

/* 轨道发光微型粒子 */
.color-star-1 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: twinkle 2s infinite, colorCycle 8s linear infinite;
}

.color-star-2 {
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: twinkle 1.5s infinite, colorCycle 6s linear infinite;
}

.color-star-3 {
  position: absolute;
  top: 30%;
  right: 0%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: twinkle 3s infinite, colorCycle 10s linear infinite;
}

/* ================= 核心动画关键帧 ================= */

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes orbitCw {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes orbitCcw {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* 粒子变色 */
@keyframes colorCycle {
  0%, 100% { background-color: #38bdf8; box-shadow: 0 0 5px #38bdf8; }
  25% { background-color: #00FF1E; box-shadow: 0 0 5px #00FF1E; }
  50% { background-color: #0071e3; box-shadow: 0 0 5px #0071e3; }
  75% { background-color: #ec4899; box-shadow: 0 0 5px #ec4899; }
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}
