/* Solutions Section Redesign */

/* 只对class="solutions"的section应用样式 */
.solutions {
  padding: 120px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease-out;
}

.solutions::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: rotate 25s linear infinite;
  z-index: 0;
}

.solutions .container {
  position: relative;
  z-index: 1;
}

/* 只对solutions section中的section-header应用样式 */
.solutions .section-header {
  text-align: center;
  width: 100%;
  margin-bottom: 4rem;
}

/* 重新设计的h3文字颜色 - 深色背景下使用渐变文字效果 */
.solutions .section-header .section-subheading,
.solutions .section-header h3 {
  text-align: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  font-weight: 700 !important;
  box-sizing: border-box !important;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #93c5fd 0%, #bfdbfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 只对solutions section中的section-title应用样式 */
.solutions .section-title {
  width: 100%;
  text-align: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
}

.solutions .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px;
}

/* 只对solutions section中的section-subtitle应用样式 */
.solutions .section-subtitle {
  width: 100%;
  max-width: 100%;
  text-align: center;
  color: #94a3b8;
  font-size: 1.25rem;
  margin: 0 auto !important;
  padding-left: 0;
  padding-right: 0;
  line-height: 1.6;
  box-sizing: border-box !important;
  display: block;
}

/* 确保解决方案部分的p标签宽度与div一致 */
.solutions .section-subtitle {
  max-width: none !important;
  width: 100% !important;
}

/* 只对当前选择的div中的solutions-grid应用样式 */
.solutions .solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
  /* 确保样式优先级 */
  position: relative;
  z-index: 1;
}

.solutions.animate-in .solutions-grid {
  opacity: 1;
  transform: translateY(0);
}

/* 只对solutions section中的solution-item应用样式 */
.solutions .solution-item {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(25px);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 每个卡片添加独特的顶部渐变边框 */
.solutions .solution-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.solutions .solution-item:nth-child(1)::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.solutions .solution-item:nth-child(2)::before { background: linear-gradient(90deg, #10b981, #34d399); }
.solutions .solution-item:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.solutions .solution-item:nth-child(4)::before { background: linear-gradient(90deg, #ec4899, #f472b6); }
.solutions .solution-item:nth-child(5)::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.solutions .solution-item:nth-child(6)::before { background: linear-gradient(90deg, #ef4444, #f87171); }

.solutions.animate-in .solution-item {
  opacity: 1;
  transform: translateY(0);
}

.solutions .solution-item:nth-child(1) { transition-delay: 0.1s; }
.solutions .solution-item:nth-child(2) { transition-delay: 0.2s; }
.solutions .solution-item:nth-child(3) { transition-delay: 0.3s; }
.solutions .solution-item:nth-child(4) { transition-delay: 0.4s; }
.solutions .solution-item:nth-child(5) { transition-delay: 0.5s; }
.solutions .solution-item:nth-child(6) { transition-delay: 0.6s; }

/* 重新设计的悬停效果 */
.solutions .solution-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(59, 130, 246, 0.5);
  border-color: rgba(59, 130, 246, 0.7);
}

/* 每个卡片的独特悬停效果 */
.solutions .solution-item:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  opacity: 0.6;
}

.solutions .solution-item:nth-child(1):hover::after { background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.3), transparent 70%); }
.solutions .solution-item:nth-child(2):hover::after { background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.3), transparent 70%); }
.solutions .solution-item:nth-child(3):hover::after { background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.3), transparent 70%); }
.solutions .solution-item:nth-child(4):hover::after { background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.3), transparent 70%); }
.solutions .solution-item:nth-child(5):hover::after { background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.3), transparent 70%); }
.solutions .solution-item:nth-child(6):hover::after { background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.3), transparent 70%); }

.solutions .solution-item .solution-number {
  width: 70px !important;
  height: 70px !important;
  margin-bottom: 1.5rem !important;
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  font-weight: 900 !important;
  font-size: 1.75rem !important;
  flex-shrink: 0 !important;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4) !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: white !important;
  background-clip: border-box !important;
  opacity: 1 !important;
}

.solutions .solution-item:hover .solution-number {
  transform: scale(1.15) rotate(-8deg) !important;
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5) !important;
}

/* 只对solutions section中的solution-content应用样式 */
.solutions .solution-content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.solutions .solution-content p {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  font-weight: 400;
  flex-grow: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}

/* Responsive Design */

/* Large Tablet Styles */
@media (max-width: 1024px) {
  .solutions {
    padding: 100px 2rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .solution-item {
    padding: 2rem;
  }
  
  .solution-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .solution-content h4 {
    font-size: 1.35rem;
  }
  
  .solution-content p {
    font-size: 1rem;
  }
}

/* Tablet Styles */
@media (max-width: 768px) {
  .solutions {
    padding: 80px 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }
  
  .solutions-grid {
    /* 在较大的移动端屏幕上显示 2 列 */
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  
  .solution-item {
    padding: 1.75rem;
  }
  
  .solution-number {
    width: 55px;
    height: 55px;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
  }
  
  .solution-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .solution-content p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
}

/* Mobile Styles */
@media (max-width: 576px) {
  .solutions {
    padding: 60px 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .solutions-grid {
    /* 在较小的移动端屏幕上显示 1 列 */
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .solution-item {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .solution-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .solution-content h4 {
    font-size: 1.15rem;
    margin-bottom: 0.875rem;
  }
  
  .solution-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .solutions {
    padding: 50px 0.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.85rem;
  }
  
  .solution-item {
    padding: 1.25rem;
  }
  
  .solution-number {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .solution-content h4 {
    font-size: 1.1rem;
  }
  
  .solution-content p {
    font-size: 0.85rem;
  }
}

/* Ultra Small Mobile Styles */
@media (max-width: 360px) {
  .solutions {
    padding: 40px 0.5rem;
  }
  
  .section-title {
    font-size: 1.35rem;
  }
  
  .section-subtitle {
    font-size: 0.8rem;
  }
  
  .solution-item {
    padding: 1rem;
  }
  
  .solution-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .solution-content h4 {
    font-size: 1rem;
  }
  
  .solution-content p {
    font-size: 0.8rem;
  }
}