/*
* haaio中控网关网站样式
* 版本: 1.0.0
* 作者: haaio团队
*/

/* 淡入动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay-1 {
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.fade-in-delay-2 {
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

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

/* 悬停效果 */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* 按钮脉动效果 */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.pulse-button {
  animation: pulse 2s infinite;
}

/* 图标旋转 */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-hover:hover {
  animation: spin 1s ease;
}

/* 渐变背景 */
.gradient-bg {
  background: linear-gradient(135deg, #3b82f6 0%, #93c5fd 100%);
}

/* 阴影效果 */
.shadow-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.1), 0 8px 10px -6px rgba(59, 130, 246, 0.1);
}

/* 特性卡片 */
.feature-card {
  transition: all 0.3s ease;
  border: 1px solid #f3f4f6;
}

.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);
  border-color: #dbeafe;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  /* 响应式调整特定部分 */
  #hero .grid {
    grid-template-columns: 1fr !important;
  }

  #hero .text-center.md\\:text-left {
    text-align: center !important;
  }

  .order-2.md\\:order-1 {
    order: 0;
  }

  .order-1.md\\:order-2 {
    order: 0;
  }
}

/* 导航栏滚动效果 */
.header-scroll {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* FAQ手风琴效果 */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  background-color: #f8fafc;
}

/* 加载动画 */
@keyframes loadIn {
  0% { width: 0%; }
  100% { width: 100%; }
}

.loading-bar {
  height: 4px;
  background: #3b82f6;
  animation: loadIn 1.5s ease-out forwards;
}

/* 按钮样式增强 */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.btn-primary:hover:after {
  width: 300%;
  height: 300%;
}

/* 图片悬停效果 */
.img-zoom {
  transition: transform 0.5s ease;
}

.img-zoom:hover {
  transform: scale(1.05);
}

/* 颜色变量 */
:root {
  --primary: #3b82f6;
  --primary-light: #93c5fd;
  --primary-dark: #2563eb;
  --secondary: #4f46e5;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
}