/* 功能卡片 */
.feature-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.dark .feature-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5), 0 10px 10px -5px rgba(0,0,0,0.3);
}

/* 隐藏滚动条 */
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* 星系区域 */
.galaxy-section {
  position: relative;
  padding: 20px 0 40px;
}
.galaxy-orbit-container {
  position: relative;
  width: 620px; height: 620px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .galaxy-orbit-container { width: 360px; height: 360px; }
}

/* 中心核心 */
.galaxy-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.galaxy-core-inner {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #6366f1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 24px;
  box-shadow: 0 0 40px rgba(99,102,241,0.4), 0 0 80px rgba(139,92,246,0.2);
  animation: corePulse 3s ease-in-out infinite;
}
.galaxy-core-ring, .galaxy-core-ring2 {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(139,92,246,0.2);
  animation: coreRingPulse 3s ease-in-out infinite;
}
.galaxy-core-ring  { width: 90px;  height: 90px;  margin: -45px 0 0 -45px; }
.galaxy-core-ring2 { width: 120px; height: 120px; margin: -60px 0 0 -60px; border-color: rgba(99,102,241,0.1); animation-delay: 0.5s; }
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 40px rgba(99,102,241,0.4), 0 0 80px rgba(139,92,246,0.2); }
  50%       { box-shadow: 0 0 60px rgba(99,102,241,0.5), 0 0 120px rgba(139,92,246,0.25); }
}
@keyframes coreRingPulse {
  0%, 100% { transform: scale(1);    opacity: 0.6; }
  50%      { transform: scale(1.15); opacity: 0.2; }
}

/* 轨道环 */
.orbit-ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(148,163,184,0.12);
  transform: translate(-50%, -50%);
}
.dark .orbit-ring { border-color: rgba(148,163,184,0.08); }
.orbit-ring-1 { width: 240px; height: 240px; }
.orbit-ring-2 { width: 390px; height: 390px; }
.orbit-ring-3 { width: 560px; height: 560px; }
@media (max-width: 768px) {
  .orbit-ring-1 { width: 150px; height: 150px; }
  .orbit-ring-2 { width: 240px; height: 240px; }
  .orbit-ring-3 { width: 330px; height: 330px; }
}

/* 公转路径 */
@keyframes orbit        { from { transform: rotate(var(--start)); }                  to { transform: rotate(calc(var(--start) + 360deg)); } }
@keyframes counterOrbit { from { transform: rotate(calc(0deg - var(--start))); }     to { transform: rotate(calc(-360deg - var(--start))); } }
.orbit-path { position: absolute; top: 50%; left: 50%; transform-origin: 0 0; animation: orbit var(--duration) linear infinite; }
.orbit-path-1 { width: 120px; height: 0; }
.orbit-path-2 { width: 195px; height: 0; }
.orbit-path-3 { width: 280px; height: 0; }
@media (max-width: 768px) {
  .orbit-path-1 { width: 75px; }
  .orbit-path-2 { width: 120px; }
  .orbit-path-3 { width: 165px; }
}

/* 轨道图标 */
.orbit-item {
  position: absolute;
  right: -28px; top: -28px;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(199,210,254,0.4);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 0 15px rgba(99,102,241,0.06);
  animation: counterOrbit var(--duration) linear infinite;
  transition: box-shadow 0.3s, border-color 0.3s;
  cursor: default;
}
.orbit-item:hover { box-shadow: 0 0 25px rgba(99,102,241,0.2), 0 4px 20px rgba(0,0,0,0.08); border-color: rgba(129,140,248,0.5); }
.dark .orbit-item { background: rgba(30,41,59,0.75); border-color: rgba(71,85,105,0.4); box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 15px rgba(99,102,241,0.08); }
.dark .orbit-item:hover { box-shadow: 0 0 30px rgba(99,102,241,0.2), 0 4px 20px rgba(0,0,0,0.3); border-color: rgba(129,140,248,0.4); }
.orbit-item img  { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; }
.orbit-item span { font-size: 8px; font-weight: 600; color: #475569; white-space: nowrap; line-height: 1; }
.dark .orbit-item span { color: #94a3b8; }
@media (max-width: 768px) {
  .orbit-item { width: 42px; height: 42px; right: -21px; top: -21px; border-radius: 12px; }
  .orbit-item img  { width: 20px; height: 20px; }
  .orbit-item span { font-size: 6px; }
}

/* 聊天消息入场动画 */
@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg-enter { animation: chatMsgIn 0.35s ease-out forwards; }
