@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto:wght@300;400;500&display=swap");

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

body {
  font-family: "Roboto", sans-serif;
  overflow: hidden;
  background: #000000;
  color: #ffffff;
}

#canvas-container {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

/* 左侧控制面板 */
#control-panel {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 200, 255, 0.3);
  border-radius: 16px;
  padding: 24px;
  max-width: 300px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(100, 200, 255, 0.1);
  transition: all 0.3s ease;
}

#control-panel:hover {
  background: rgba(10, 14, 39, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(100, 200, 255, 0.2);
}

/* 右侧信息面板 */
#info-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 200, 255, 0.3);
  border-radius: 16px;
  padding: 24px;
  max-width: 380px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(100, 200, 255, 0.1);
  transition: all 0.3s ease;
}

#info-panel:hover {
  background: rgba(10, 14, 39, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(100, 200, 255, 0.2);
}

/* 自定义滚动条 */
#info-panel::-webkit-scrollbar {
  width: 8px;
}

#info-panel::-webkit-scrollbar-track {
  background: rgba(100, 200, 255, 0.1);
  border-radius: 4px;
}

#info-panel::-webkit-scrollbar-thumb {
  background: rgba(100, 200, 255, 0.5);
  border-radius: 4px;
}

#info-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 200, 255, 0.7);
}

h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #64c8ff 0%, #9d7cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(100, 200, 255, 0.3);
}

h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #64c8ff;
}

h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 0;
  color: #9d7cff;
}

#planet-name {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 12px;
}

#planet-details {
  font-size: 13px;
  line-height: 1.6;
  color: #b0c4de;
}

#planet-details p {
  margin: 6px 0;
}

#controls-info ul {
  list-style: none;
  font-size: 13px;
  line-height: 1.8;
  color: #b0c4de;
}

#controls-info li {
  margin: 4px 0;
  padding-left: 4px;
}

#speed-control {
  margin: 16px 0;
}

#speed-control label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #64c8ff;
  font-weight: 500;
}

#speed-value {
  color: #9d7cff;
  font-weight: 700;
}

/* 尺度模式控制 */
#scale-mode {
  margin: 16px 0;
  padding: 12px;
  background: rgba(100, 200, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(100, 200, 255, 0.2);
}

#scale-mode label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #64c8ff;
  font-weight: 500;
}

.scale-button {
  width: 100%;
  padding: 10px 16px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #4a90e2 0%, #7b68ee 100%);
}

.scale-button:hover {
  background: linear-gradient(135deg, #5aa0f2 0%, #8b78fe 100%);
}

#scale-mode-text {
  font-size: 13px;
}

#scale-mode-icon {
  font-size: 16px;
}

#scale-description {
  margin-top: 8px;
  font-size: 11px;
  color: #9d7cff;
  line-height: 1.4;
  text-align: center;
}

#speed-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #64c8ff 0%, #9d7cff 100%);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

#speed-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(100, 200, 255, 0.8);
}

#speed-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

#speed-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(100, 200, 255, 0.8);
}

button {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #64c8ff 0%, #9d7cff 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(100, 200, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 200, 255, 0.5);
  background: linear-gradient(135deg, #7dd3ff 0%, #b18fff 100%);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(100, 200, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  #control-panel,
  #info-panel {
    max-width: 260px;
    padding: 18px;
  }
}

@media (max-width: 768px) {
  #control-panel {
    max-width: 240px;
    padding: 16px;
    top: 10px;
    left: 10px;
  }

  #info-panel {
    max-width: 240px;
    padding: 16px;
    top: 10px;
    right: 10px;
  }

  h1 {
    font-size: 18px;
  }

  h2 {
    font-size: 15px;
  }

  h3 {
    font-size: 12px;
  }

  button {
    padding: 10px 16px;
    font-size: 11px;
  }
}

/* 加载动画 */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s ease-in-out infinite;
}
