/* saas.html 自定义样式 */

/* 品牌色变量 */
:root {
  /* 品牌主色 */
  --brand-orange: #FF9500;
  --brand-red: #FF3B30;
  --brand-gray: #8E8E93;
  
  /* 页面主色 */
  --primary-blue: #1E40AF;
  --secondary-blue: #3B82F6;
}

/* 基础样式 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* 渐变背景样式 */
.gradient-bg {
  background: linear-gradient(135deg, #0F172A 0%, #1E40AF 50%, #3B82F6 100%);
}

/* 全屏布局 */
.full-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  box-sizing: border-box;
}

/* 首屏标题行高和间距 */
#poster h1 {
  line-height: 1.3;
  margin-bottom: 2rem;
}

/* 标题内span元素调整 */
#poster h1 span {
  display: inline-block;
  margin-top: 0.5rem;
}

/* 核心价值主张间距 */
#poster .text-blue-100 {
  margin-bottom: 3rem;
}

/* CTA按钮区域间距 */
#poster .animate-slide-up.delay-300 {
  margin-bottom: 2rem;
}

/* 核心优势列表间距 */
#poster .grid-cols-3 {
  gap: 2rem;
  margin-bottom: 3rem;
}

/* 移动端优化 */
@media (max-width: 768px) {
  /* 调整首屏元素大小 */
  #poster .text-4xl {
    font-size: 1.5rem;
  }
  
  /* 调整标题大小 */
  #poster h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1.3;
  }
  
  /* 调整CTA按钮 */
  .btn-primary {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
  
  /* 调整特性卡片布局 */
  #features .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  /* 调整表单布局 */
  .form-container {
    flex-direction: column;
  }
  
  /* 调整案例卡片布局 */
  #features .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  /* 调整导航栏 */
  nav {
    display: none;
  }
  
  /* 调整核心优势列表 */
  #poster .grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* 调整表单内边距 */
  #form .p-16 {
    padding: 2rem;
  }
  
  /* 调整表单字段 */
  #form input, #form select {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
  
  /* 调整固定悬浮按钮 */
  .floating-trial-btn {
    padding: 12px 24px;
    font-size: 0.875rem;
    bottom: 16px;
    right: 16px;
  }
  
  /* 调整信任标识布局 */
  .bg-gradient-to-r from-blue-50 to-indigo-50 .grid-cols-4 {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  /* 调整痛点卡片内边距 */
  #features .p-8 {
    padding: 1.5rem;
  }
}

/* 容器样式 */
.container-custom {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* 背景装饰 */
.bg-decoration {
  position: relative;
  overflow: hidden;
}

.bg-decoration::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 12s ease-in-out infinite;
}

.bg-decoration::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

/* AI神经网络背景装饰 */
.neural-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.1;
}

.neural-node {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #3B82F6;
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

/* 按钮样式 */
/* 主按钮 - 蓝色渐变 */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* 品牌色按钮 - 橙色渐变 */
.btn-orange {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #FFB74D 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn-orange:hover {
  background: linear-gradient(135deg, #FF8C00 0%, #FFA726 100%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* 品牌色按钮 - 红色渐变 */
.btn-red {
  background: linear-gradient(135deg, var(--brand-red) 0%, #FF6B6B 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn-red:hover {
  background: linear-gradient(135deg, #E53935 0%, #EF5350 100%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* 重置按钮 */
.btn-reset {
  width: 100%;
  background-color: #f3f4f6;
  color: #4b5563;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn-reset:hover {
  background-color: #e5e7eb;
}

/* 输入框样式 */
.input-custom {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  outline: none;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  color: #1f2937;
}

.input-custom::placeholder {
  color: #9ca3af;
}

.input-custom:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
  outline: none;
}

/* 自定义模态框样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.modal-icon.success {
  background-color: #10B981;
  color: white;
}

.modal-icon.error {
  background-color: #EF4444;
  color: white;
}

.modal-icon.warning {
  background-color: #F59E0B;
  color: white;
}

.modal-icon.info {
  background-color: #3B82F6;
  color: white;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1D2129;
  margin: 0;
}

.modal-body {
  color: #4E5969;
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.modal-btn-primary {
  background-color: #165DFF;
  color: white;
}

.modal-btn-primary:hover {
  background-color: #0E42D2;
}

.modal-btn-secondary {
  background-color: #F5F7FA;
  color: #4E5969;
  border: 1px solid #E5E6EB;
}

.modal-btn-secondary:hover {
  background-color: #E5E6EB;
}

/* 特性卡片 */
.feature-card {
  @apply bg-white/10 backdrop-blur-sm rounded-xl p-6 border border-white/20 hover:bg-white/15 transition-all duration-300 relative overflow-hidden group;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

/* 表单容器 */
.form-container {
  @apply bg-white rounded-2xl shadow-xl overflow-hidden relative;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #1E40AF, #3B82F6);
}

/* 动画延迟 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-250 { animation-delay: 0.25s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* 滚动触发动画 */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 固定导航栏 */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 500;
  transition: all 0.3s ease;
}

/* 固定试用按钮 */
.floating-trial-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 20px rgba(30, 64, 175, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(100px);
  opacity: 0;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 2s;
  text-decoration: none;
}

.floating-trial-btn.visible {
  transform: translateY(0);
  opacity: 1;
}

.floating-trial-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(30, 64, 175, 0.5);
  opacity: 1;
  animation: none;
}

.floating-trial-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(30, 64, 175, 0.4);
}

/* 导航链接样式 */
nav a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary-blue);
}

/* 首屏元素初始动画 */
#poster > .container-custom > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

#poster > .container-custom > *:nth-child(1) {
  animation-delay: 0s;
}

#poster > .container-custom > *:nth-child(2) {
  animation-delay: 0.2s;
}

#poster > .container-custom > *:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}