:root {
  --bg-dark: #0a0a0f;
  --bg-darker: #050508;
  --text-primary: #ffffff;
  --text-secondary: #b8bcc8;
  --accent-blue: #00d4ff;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-orange: #f97316;
  --accent-yellow: #fbbf24;
  --accent-gold: #f3ba2f;
  --accent-cyan: #00d4ff;
  --accent-green: #10b981;
  --glow-blue: rgba(0, 212, 255, 0.4);
  --glow-purple: rgba(139, 92, 246, 0.4);
  --glow-pink: rgba(236, 72, 153, 0.4);
  --glow-orange: rgba(249, 115, 22, 0.4);
  --glow-yellow: rgba(251, 191, 36, 0.4);
  --glow-gold: rgba(243, 186, 47, 0.4);
  --glow-cyan: rgba(0, 212, 255, 0.4);
  --glow-green: rgba(16, 185, 129, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: "Inter", "PingFang SC", "Microsoft Yahei", "SF Pro Display", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* 星空背景 */
.stars-bg {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  z-index: 0;
  animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* 粒子效果 */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(0, 212, 255, 0.2), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(139, 92, 246, 0.2), transparent),
    radial-gradient(2px 2px at 90% 80%, rgba(236, 72, 153, 0.2), transparent);
  background-size: 200% 200%;
  animation: particlesMove 30s linear infinite;
  pointer-events: none;
}

@keyframes particlesMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* 头部 */
.header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px 20px;
}

.title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 0 0 40px var(--glow-blue);
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.subtitle {
  color: var(--text-secondary);
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 300;
  letter-spacing: 1px;
}

/* 主容器 */
.main-container {
  position: relative;
  z-index: 5;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* 星球轨道 */
.planets-orbit {
  position: relative;
  width: min(90vw, 900px);
  height: min(90vw, 900px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 星球 */
.planet {
  position: absolute;
  width: 120px;
  height: 120px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: float 6s ease-in-out infinite;
  will-change: transform, left, top;
}

.planet:nth-child(1) { animation-delay: 0s; }
.planet:nth-child(2) { animation-delay: 0.7s; }
.planet:nth-child(3) { animation-delay: 1.4s; }
.planet:nth-child(4) { animation-delay: 2.1s; }
.planet:nth-child(5) { animation-delay: 2.8s; }
.planet:nth-child(6) { animation-delay: 3.5s; }
.planet:nth-child(7) { animation-delay: 4.2s; }
.planet:nth-child(8) { animation-delay: 4.9s; }
.planet:nth-child(9) { animation-delay: 5.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.05); }
}

.planet:hover {
  transform: scale(1.15) !important;
  filter: brightness(1.2);
  z-index: 20;
}

.planet.active {
  transform: scale(1.2);
  z-index: 20;
}

/* 星球核心 */
.planet-core {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.3));
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.planet-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: pulse 2s ease-in-out infinite;
}

.planet:hover .planet-glow,
.planet.active .planet-glow {
  opacity: 1;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* 币种Logo */
.coin-logo {
  width: 70%;
  height: 70%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  transition: transform 0.3s ease;
}

.coin-logo.okb-logo {
  width: 70%;
  height: 70%;
  display: block;
  margin: 0 auto;
}

.planet:hover .coin-logo {
  transform: rotate(10deg) scale(1.1);
}

/* 星球光环 */
.planet-ring {
  position: absolute;
  inset: -20px;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: ringRotate 8s linear infinite;
}

.planet:hover .planet-ring,
.planet.active .planet-ring {
  opacity: 1;
}

@keyframes ringRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 星球标签 */
.planet-label {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
  text-shadow: 0 0 10px var(--glow-blue);
  letter-spacing: 1px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.planet:hover .planet-label,
.planet.active .planet-label {
  opacity: 1;
  font-size: 16px;
}

/* 币种特定颜色 */
.planet[data-coin="BTC"] .planet-core {
  box-shadow: 
    0 0 30px rgba(249, 115, 22, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.planet[data-coin="BTC"] .planet-glow {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.4), transparent 70%);
}

.planet[data-coin="BTC"] .planet-ring {
  border-color: rgba(249, 115, 22, 0.4);
}

.planet[data-coin="BTC"] .planet-label {
  color: var(--accent-orange);
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

.planet[data-coin="ETH"] .planet-core {
  box-shadow: 
    0 0 30px rgba(139, 92, 246, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.planet[data-coin="ETH"] .planet-glow {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
}

.planet[data-coin="ETH"] .planet-ring {
  border-color: rgba(139, 92, 246, 0.4);
}

.planet[data-coin="ETH"] .planet-label {
  color: var(--accent-purple);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.planet[data-coin="SOL"] .planet-core {
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.planet[data-coin="SOL"] .planet-glow {
  background: radial-gradient(circle, rgba(0, 212, 255, 0.4), transparent 70%);
}

.planet[data-coin="SOL"] .planet-ring {
  border-color: rgba(0, 212, 255, 0.4);
}

.planet[data-coin="SOL"] .planet-label {
  color: var(--accent-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.planet[data-coin="XRP"] .planet-core {
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.planet[data-coin="XRP"] .planet-glow {
  background: radial-gradient(circle, rgba(0, 212, 255, 0.4), transparent 70%);
}

.planet[data-coin="XRP"] .planet-ring {
  border-color: rgba(0, 212, 255, 0.4);
}

.planet[data-coin="XRP"] .planet-label {
  color: var(--accent-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.planet[data-coin="DOGE"] .planet-core {
  box-shadow: 
    0 0 30px rgba(251, 191, 36, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.planet[data-coin="DOGE"] .planet-glow {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4), transparent 70%);
}

.planet[data-coin="DOGE"] .planet-ring {
  border-color: rgba(251, 191, 36, 0.4);
}

.planet[data-coin="DOGE"] .planet-label {
  color: var(--accent-yellow);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.planet[data-coin="BNB"] .planet-core {
  box-shadow: 
    0 0 30px rgba(243, 186, 47, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.planet[data-coin="BNB"] .planet-glow {
  background: radial-gradient(circle, rgba(243, 186, 47, 0.4), transparent 70%);
}

.planet[data-coin="BNB"] .planet-ring {
  border-color: rgba(243, 186, 47, 0.4);
}

.planet[data-coin="BNB"] .planet-label {
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(243, 186, 47, 0.6);
}

.planet[data-coin="OKB"] .planet-core {
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.5),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.planet[data-coin="OKB"] .planet-glow {
  background: radial-gradient(circle, rgba(0, 212, 255, 0.5), transparent 70%);
}

.planet[data-coin="OKB"] .planet-ring {
  border-color: rgba(0, 212, 255, 0.5);
}

.planet[data-coin="OKB"] .planet-label {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
}

.planet[data-coin="HYPE"] .planet-core {
  box-shadow: 
    0 0 30px rgba(139, 92, 246, 0.5),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.planet[data-coin="HYPE"] .planet-glow {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
}

.planet[data-coin="HYPE"] .planet-ring {
  border-color: rgba(139, 92, 246, 0.5);
}

.planet[data-coin="HYPE"] .planet-label {
  color: var(--accent-purple);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.7);
}

.planet[data-coin="PEPE"] .planet-core {
  box-shadow: 
    0 0 30px rgba(16, 185, 129, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.planet[data-coin="PEPE"] .planet-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.4), transparent 70%);
}

.planet[data-coin="PEPE"] .planet-ring {
  border-color: rgba(16, 185, 129, 0.4);
}

.planet[data-coin="PEPE"] .planet-label {
  color: var(--accent-green);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

/* 信息面板 */
.info-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.95) 20%, rgba(10, 10, 15, 0.98) 100%);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 40px 40px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  max-width: 900px;
  margin: 0 auto;
}

.info-panel.show {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.info-content {
  text-align: center;
}

.info-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-description {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* 页脚 */
.footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 30px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .planet {
    width: 90px;
    height: 90px;
  }

  .planet-label {
    font-size: 12px;
    bottom: -30px;
  }

  .planets-orbit {
    width: min(95vw, 700px);
    height: min(95vw, 700px);
  }

  .info-panel {
    padding: 25px 20px 30px;
  }

  .close-btn {
    top: 15px;
    right: 20px;
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .planet {
    width: 70px;
    height: 70px;
  }

  .planet-label {
    font-size: 11px;
    bottom: -25px;
  }

  .planets-orbit {
    width: min(98vw, 550px);
    height: min(98vw, 550px);
  }
}

