/* ===== 0002 - APP德扑网 自定义样式 ===== */

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 自定义动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(79, 70, 229, 0);
  }
}

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

/* 淡入动画类 */
.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

/* 浮动动画 */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* 脉冲发光按钮 */
.btn-glow {
  animation: pulse-glow 2s infinite;
}

/* 导航栏滚动后样式 */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* 功能卡片悬停效果 */
.feature-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.2);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
}

.feature-icon {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 统计数据卡片 */
.stat-item {
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

/* 用户评价卡片 */
.testimonial-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

/* FAQ 手风琴样式 */
.faq-item {
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(79, 70, 229, 0.2);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.35s ease;
}

/* 移动端菜单 */
.mobile-menu {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

/* Hero 渐变背景 */
.hero-gradient {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 30%, #c7d2fe 60%, #ddd6fe 100%);
}

/* CTA 渐变背景 */
.cta-gradient {
  background: linear-gradient(135deg, #312e81 0%, #4338ca 30%, #4f46e5 60%, #6366f1 100%);
}

/* 滚动显示动画 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 图片容器 */
.hero-image-container {
  position: relative;
}

.hero-image-container::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  background: linear-gradient(135deg, #4f46e5, #818cf8, #6366f1);
  z-index: -1;
  opacity: 0.3;
  filter: blur(20px);
}

/* 下载按钮样式 */
.btn-download {
  position: relative;
  overflow: hidden;
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-download:hover::before {
  width: 300px;
  height: 300px;
}

/* 面包屑 */
.breadcrumb {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

/* 页面头部 */
.page-header {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #c7d2fe 100%);
}
