/* 鼠标跟随效果样式 */

.mouse-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 136, 229, 0.3) 0%, rgba(30, 136, 229, 0) 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.1s ease;
  box-shadow: 0 0 15px rgba(30, 136, 229, 0.5);
}

.mouse-follower::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  background-color: rgba(30, 136, 229, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(30, 136, 229, 0.8);
}

/* 交互元素悬停效果 */
.btn:hover ~ .mouse-follower,
.product-card:hover ~ .mouse-follower,
.dashboard-card:hover ~ .mouse-follower {
  transform: translate(-50%, -50%) scale(1.5);
  background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, rgba(255, 107, 53, 0) 70%);
}

.btn-particle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  pointer-events: none;
  animation: particleFade 1s forwards ease-out;
}

@keyframes particleFade {
  0% {
    opacity: 1;
    transform: translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x, 20px), var(--y, -20px));
  }
}

/* 页面加载动画 */
.page-loaded .hero-content h1 {
  animation: slideInUp 0.8s ease forwards;
}

.page-loaded .hero-content p {
  animation: slideInUp 0.8s ease 0.2s forwards;
}

.page-loaded .hero-buttons {
  animation: slideInUp 0.8s ease 0.4s forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 高级悬停效果 */
.value-feature:hover .feature-icon i {
  animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* 科技感滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
}