/* ===================================================================
   开源大模型本地私有化部署页面 - 增强设计样式
   基于 frontend-design skill 的设计原则
   =================================================================== */

/* 设计方向：科技感+专业，避免通用AI美学 */

/* CSS变量 - 优雅专业的配色方案 */
:root {
  --deploy-primary: #1e293b;        /* 深灰蓝 - 专业、稳重 */
  --deploy-accent: #3b82f6;         /* 优雅蓝 - 科技感但不刺眼 */
  --deploy-secondary: #10b981;      /* 翠绿色 - 成功、成长 */
  --deploy-tertiary: #6366f1;       /* 靛蓝色 - 创新 */
  --deploy-success: #059669;        /* 深绿色 - 成功指标 */
  --deploy-warning: #f59e0b;        /* 温暖橙 - 提醒 */
  --deploy-bg-gradient-start: #f8fafc;
  --deploy-bg-gradient-end: #f1f5f9;
  --deploy-card-bg: #ffffff;
  --deploy-card-hover: #f8fafc;
  --deploy-text-primary: #0f172a;
  --deploy-text-secondary: #64748b;
  --deploy-border: #e2e8f0;
  --deploy-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  --deploy-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.06);
  --deploy-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.05);
  --deploy-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.05), 0 10px 10px rgba(0, 0, 0, 0.04);
}

/* 页面主容器 */
.ai-deploy-container {
  position: relative;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 30%, #ffffff 100%);
  overflow: hidden;
}

/* 背景装饰元素 - 更柔和的渐变 */
.ai-deploy-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.ai-deploy-container > section {
  position: relative;
  z-index: 1;
}

/* Section标题样式 */
.ai-deploy-container .deploy-section-title {
  font-size: clamp(2rem, 5vw, 3rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--deploy-text-primary);
  text-align: center;
}

.ai-deploy-container .deploy-section-title .highlight {
  color: var(--deploy-accent);
  position: relative;
}

.ai-deploy-container .deploy-section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--deploy-text-secondary);
  max-width: 800px;
  margin: 0 auto 60px auto;
  line-height: 1.7;
}

/* 价值点卡片 */
.ai-deploy-container .value-point {
  background: var(--deploy-card-bg);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--deploy-shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ai-deploy-container .value-point::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--deploy-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-deploy-container .value-point:hover {
  transform: translateY(-8px);
  box-shadow: var(--deploy-shadow-lg);
  border-color: var(--deploy-accent);
  background: var(--deploy-card-hover);
}

.ai-deploy-container .value-point:hover::before {
  transform: scaleX(1);
}

.ai-deploy-container .value-point-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
  color: var(--deploy-accent);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-deploy-container .value-point:hover .value-point-icon {
  transform: scale(1.15) rotate(5deg);
}

.ai-deploy-container .value-point h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deploy-text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.ai-deploy-container .value-point p {
  color: var(--deploy-text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

/* 对比表格 */
.ai-deploy-container .comparison-col {
  background: var(--deploy-card-bg) !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: var(--deploy-shadow-md) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 2px solid transparent !important;
}

.ai-deploy-container .comparison-col:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--deploy-shadow-xl) !important;
}

.ai-deploy-container .comparison-header.cloud {
  background: #64748b !important;
}

.ai-deploy-container .comparison-header.local {
  background: var(--deploy-accent) !important;
}

/* 能力卡片 */
.ai-deploy-container .capability-card {
  background: var(--deploy-card-bg) !important;
  padding: 40px 32px !important;
  border-radius: 20px !important;
  box-shadow: var(--deploy-shadow-sm) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 2px solid transparent !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ai-deploy-container .capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--deploy-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-deploy-container .capability-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--deploy-shadow-lg) !important;
  border-color: var(--deploy-accent) !important;
  background: var(--deploy-card-hover) !important;
}

.ai-deploy-container .capability-card:hover::before {
  transform: scaleX(1);
}

.ai-deploy-container .capability-card .card-icon {
  font-size: 3.5rem !important;
  margin-bottom: 24px !important;
  color: var(--deploy-accent);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-deploy-container .capability-card:hover .card-icon {
  transform: scale(1.15) rotate(-5deg);
}

/* 客户画像卡片 */
.ai-deploy-container .profile-item {
  background: var(--deploy-card-bg) !important;
  padding: 32px 24px !important;
  border-radius: 16px !important;
  text-align: center;
  box-shadow: var(--deploy-shadow-sm) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 2px solid transparent !important;
}

.ai-deploy-container .profile-item:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--deploy-shadow-md) !important;
  border-color: var(--deploy-accent) !important;
  background: var(--deploy-card-hover) !important;
}

.ai-deploy-container .profile-icon {
  font-size: 3rem !important;
  margin-bottom: 20px !important;
  color: var(--deploy-accent);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-deploy-container .profile-item:hover .profile-icon {
  transform: scale(1.2) rotate(10deg);
}

/* 成本效益分析卡片 */
.ai-deploy-container .analysis-card {
  background: var(--deploy-card-bg) !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: var(--deploy-shadow-md) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 2px solid transparent !important;
}

.ai-deploy-container .analysis-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--deploy-shadow-xl);
}

.ai-deploy-container .analysis-card.input-card .analysis-header {
  background: #ef4444 !important;
}

.ai-deploy-container .analysis-card.output-card .analysis-header {
  background: var(--deploy-success) !important;
}

/* 时间轴样式 */
.ai-deploy-container .timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.ai-deploy-container .timeline-step {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: var(--deploy-accent) !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.8rem !important;
  font-weight: bold !important;
  border: 4px solid white !important;
  box-shadow: var(--deploy-shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-deploy-container .timeline-item:hover .timeline-step {
  transform: scale(1.15);
  box-shadow: var(--deploy-shadow-lg);
}

.ai-deploy-container .timeline-content {
  background: var(--deploy-card-bg) !important;
  padding: 32px !important;
  border-radius: 16px !important;
  box-shadow: var(--deploy-shadow-sm) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.ai-deploy-container .timeline-item:hover .timeline-content {
  transform: translateX(10px);
  box-shadow: var(--deploy-shadow-md);
  border-color: var(--deploy-accent);
}

/* 成功案例卡片 */
.ai-deploy-container .story-card {
  background: var(--deploy-card-bg) !important;
  border-radius: 20px !important;
  box-shadow: var(--deploy-shadow-md) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-deploy-container .story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--deploy-shadow-xl);
  border-color: var(--deploy-accent);
}

.ai-deploy-container .story-logo {
  background: linear-gradient(135deg, var(--deploy-card-hover) 0%, #f0f5ff 100%) !important;
  padding: 24px !important;
  border-bottom: 2px solid var(--deploy-border) !important;
}

.ai-deploy-container .story-logo i {
  font-size: 2.5rem !important;
  color: var(--deploy-accent);
}

.ai-deploy-container .story-cta {
  background: var(--deploy-primary) !important;
  color: white !important;
  font-weight: 600 !important;
  transition: all 0.3s ease;
}

.ai-deploy-container .story-cta:hover {
  background: var(--deploy-accent) !important;
  transform: scale(1.02);
}

/* CTA按钮 */
.ai-deploy-container .cta-button {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--deploy-accent);
  color: #fff;
  border: none;
  box-shadow: var(--deploy-shadow-md);
  text-decoration: none;
}

.ai-deploy-container .cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--deploy-shadow-xl);
  background: #2563eb;
  color: #fff;
}

.ai-deploy-container .secondary-cta {
  background: white !important;
  color: var(--deploy-primary) !important;
  border: 2px solid var(--deploy-primary) !important;
}

.ai-deploy-container .secondary-cta:hover {
  background: var(--deploy-primary) !important;
  color: white !important;
  border-color: var(--deploy-primary) !important;
}

/* 表单样式 */
.ai-deploy-container .deploy-form input,
.ai-deploy-container .deploy-form select {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid var(--deploy-border);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.ai-deploy-container .deploy-form input:focus,
.ai-deploy-container .deploy-form select:focus {
  outline: none;
  border-color: var(--deploy-accent);
  box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .ai-deploy-container .deploy-section {
    padding: 60px 0 !important;
  }
  
  .ai-deploy-container .value-points {
    flex-direction: column;
    align-items: center;
  }
  
  .ai-deploy-container .comparison-table {
    flex-direction: column;
  }
  
  .ai-deploy-container .capabilities-grid {
    grid-template-columns: 1fr !important;
  }
  
  .ai-deploy-container .customer-profiles {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 768px) {
  .ai-deploy-container .deploy-section-title {
    font-size: 1.75rem !important;
  }
  
  .ai-deploy-container .customer-profiles {
    grid-template-columns: 1fr !important;
  }
  
  .ai-deploy-container .timeline-item {
    padding-left: 80px !important;
  }
}

/* 滚动动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-deploy-container .value-point,
.ai-deploy-container .capability-card,
.ai-deploy-container .profile-item,
.ai-deploy-container .timeline-item,
.ai-deploy-container .story-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.ai-deploy-container .value-point:nth-child(1) { animation-delay: 0.1s; }
.ai-deploy-container .value-point:nth-child(2) { animation-delay: 0.2s; }
.ai-deploy-container .value-point:nth-child(3) { animation-delay: 0.3s; }

.ai-deploy-container .capability-card:nth-child(1) { animation-delay: 0.1s; }
.ai-deploy-container .capability-card:nth-child(2) { animation-delay: 0.2s; }
.ai-deploy-container .capability-card:nth-child(3) { animation-delay: 0.3s; }
.ai-deploy-container .capability-card:nth-child(4) { animation-delay: 0.4s; }
