@import "tailwindcss";

/* Custom styles */
:root {
  --primary-color: #3b82f6;
  --secondary-color: #1e40af;
}

body {
  @apply font-sans antialiased;
  scroll-behavior: smooth;
}

/* Hero背景渐变 */
.gradient-bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #4c1d95 100%);
  position: relative;
}

.gradient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* 卡片悬停效果 */
.card-hover {
  @apply transition-all duration-500 ease-out;
}

.card-hover:hover {
  @apply shadow-2xl;
  transform: translateY(-8px) scale(1.02);
}

/* 按钮渐变动画 */
.btn-gradient {
  @apply relative overflow-hidden;
  transition: all 0.3s ease;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-gradient:hover::before {
  left: 100%;
}

/* 价格卡片特殊效果 */
.pricing-card {
  @apply relative overflow-hidden;
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-card:hover::after {
  opacity: 1;
}

/* FAQ卡片动画 */
.faq-card {
  @apply transition-all duration-300;
  border-left: 4px solid transparent;
}

.faq-card:hover {
  @apply shadow-xl bg-white;
  border-left-color: #3b82f6;
  transform: translateX(8px);
}

/* 功能图标脉冲动画 */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.icon-pulse {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* 文字渐变动画 */
.text-gradient-animate {
  background-size: 200% auto;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

/* 玻璃态效果 */
.glass-effect {
  @apply backdrop-blur-lg bg-opacity-80;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 阴影增强 */
.shadow-glow {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.shadow-glow-purple {
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

/* 响应式字体优化 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
}
