/* 自定义动画：黑色圆形的公转和自转 */

/* 公转动画 - 让整个容器围绕中心旋转 */
@keyframes orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 自转动画 - 让圆形本身反向旋转（抵消公转，同时自己旋转） */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

/* 应用公转动画到容器 */
.hero-link-wrapper-2 {
  animation: orbit 20s linear infinite;
  transform-origin: center center;
}

/* 应用自转动画到圆形本身 */
.landing-book-demo-link {
  animation: spin 10s linear infinite;
}

/* 修复弹窗抖动问题 - 添加平滑过渡 */
.contacts-3-form-wrapper-3 {
  transition: opacity 0.2s ease-in-out !important;
}

.contact-popup {
  transition: none !important;
}

/* 客户评价卡片样式和动画 */
.testimonial-card {
  background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float-up-down 4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

/* 上下浮动动画 */
@keyframes float-up-down {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 悬停时的3D翻转效果 */
.testimonial-card:hover {
  transform: perspective(1000px) rotateX(5deg) translateY(-15px) !important;
  box-shadow: 0 20px 60px rgba(147, 51, 234, 0.6);
  background: linear-gradient(135deg, #A855F7 0%, #C084FC 100%);
}

/* 发光边框效果 */
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-card:hover::before {
  opacity: 1;
}
