/* 响应式设计 - 解决方案页面优化 */

/* 全局样式重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 基础样式 */
.section {
  padding: 60px 0;
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 横幅部分 - 响应式优化 */
.server-banner {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.server-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.server-banner .section-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: left;
}

.server-banner h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.server-banner .server-banner-desc {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 30px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.server-banner .btn {
  display: inline-block;
  padding: 12px 30px;
  background: #1890ff;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.server-banner .btn:hover {
  background: #40a9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.server-banner .mr-20 {
  margin-right: 20px;
}

/* 行业趋势部分 - 响应式优化 */
.solution-trend .trend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.solution-trend .trend-box {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.solution-trend .trend-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.solution-trend .trend-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.solution-trend .trend-box .con {
  padding: 20px;
}

.solution-trend .trend-box .con h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #333;
}

.solution-trend .trend-box .con p {
  font-size: 14px;
  line-height: 20px;
  color: #666;
}

/* 部署方式部分 - 响应式优化 */
.arrange-way .img {
  text-align: center;
}

.arrange-way img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 典型场景部分 - 响应式优化 */
.solution-scene .hot {
  margin-top: 30px;
}

.solution-scene .jr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.solution-scene .jr-tabs .title {
  padding: 10px 20px;
  background: #f8f9fa;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.solution-scene .jr-tabs .title.active {
  background: #f8f9fa;
  color: #333333;
  border: 1px solid var(--color-primary);
}

.solution-scene .scene-box {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  padding: 30px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.solution-scene .scene-box img {
  flex: 1;
  min-width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.solution-scene .scene-cont {
  flex: 1;
  min-width: 300px;
}

.solution-scene .scene-cont h4 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
}

.solution-scene .scene-cont p {
  font-size: 14px;
  line-height: 22px;
  color: #666;
  margin-bottom: 12px;
}

/* 产品特征部分 - 响应式优化 */
.solution-advantage {
  position: relative;
  overflow: hidden;
}

.solution-advantage .advantage {
  position: relative;
  height: auto;
  min-height: 600px;
  padding: 60px 0;
  background: #f7f8fa;
}

.solution-advantage .advantage-list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
}

.solution-advantage .box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  margin: 0;
  width: auto;
  height: auto;
}

.solution-advantage .advantage-box {
  position: relative;
  width: 100%;
  max-width: 320px;
  min-height: 300px;
  padding: 30px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  left: 0 !important;
  bottom: 0 !important;
}

.solution-advantage .advantage-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.solution-advantage .advantage-box img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.solution-advantage .advantage-box h5 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #333;
}

.solution-advantage .advantage-box p {
  font-size: 14px;
  line-height: 22px;
  color: #666;
}

/* 成功案例部分 - 响应式优化 */
.solution-future {
  background: #f7f8fa;
  padding: 60px 0;
}

.solution-future .section-content {
  text-align: center;
}

.solution-future .section-title h2 {
  font-size: 28px;
  margin-bottom: 40px;
  color: #333;
}

.solution-future .case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 60px;
}

.solution-future .case-item {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.solution-future .case-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.solution-future .case-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.solution-future .case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.solution-future .case-item:hover .case-img img {
  transform: scale(1.05);
}

.solution-future .case-cont {
  padding: 20px;
}

.solution-future .case-cont h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #333;
}

.solution-future .case-cont p {
  font-size: 14px;
  line-height: 22px;
  color: #666;
}

.solution-future .contact-btn {
  margin-top: 40px;
}

.solution-future .btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: #1890ff;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.solution-future .btn-primary:hover {
  background: #40a9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

/* 响应式设计 - 平板设备 */
@media screen and (max-width: 768px) {
  .section {
    padding: 40px 0;
  }
  
  .section-content {
    padding: 0 15px;
  }
  
  /* 横幅部分 */
  .server-banner {
    height: 400px;
  }
  
  .server-banner h1 {
    font-size: 28px;
  }
  
  .server-banner .server-banner-desc {
    font-size: 14px;
  }
  
  .server-banner .btn {
    padding: 10px 24px;
    font-size: 14px;
  }
  
  .server-banner .mr-20 {
    margin-right: 15px;
  }
  
  /* 行业趋势部分 */
  .solution-trend .trend {
    justify-content: flex-start;
  }
  
  .solution-trend .trend-box {
    min-width: 280px;
    max-width: none;
  }
  
  .solution-trend .trend-box img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
  }
  
  /* 典型场景部分 */
  .solution-scene .scene-box {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .solution-scene .scene-box img {
    min-width: 100%;
  }
  
  .solution-scene .scene-cont {
    min-width: 100%;
  }
  
  .solution-scene .jr-tabs .title {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 20px;
  }
  
  .solution-scene .jr-tabs .title.active {
    border: 1px solid var(--color-primary);
  }
  
  /* 产品特征部分 */
  .solution-advantage .advantage-list {
    gap: 20px;
  }
  
  .solution-advantage .box {
    min-width: 100%;
    max-width: 100%;
  }
  
  .solution-advantage .advantage-box {
    min-width: 100%;
    max-width: 100%;
  }
  
  /* 成功案例部分 */
  .solution-future .case-list {
    gap: 20px;
  }
  
  .solution-future .case-item {
    min-width: 100%;
    max-width: 100%;
  }
  
  .solution-future .case-img {
    height: 180px;
  }
  
  .solution-future .section-title h2 {
    font-size: 24px;
  }
}

/* 响应式设计 - 手机设备 */
@media screen and (max-width: 480px) {
  .section {
    padding: 30px 0;
  }
  
  /* 横幅部分 */
  .server-banner {
    height: 300px;
  }
  
  .server-banner h1 {
    font-size: 24px;
  }
  
  .server-banner .server-banner-desc {
    font-size: 13px;
  }
  
  .server-banner .btn {
    padding: 8px 16px;
    font-size: 13px;
    display: inline-block;
    margin: 0;
  }
  
  .server-banner .mr-20 {
    margin-right: 10px;
  }
  
  /* 行业趋势部分 */
  .solution-trend .trend {
    justify-content: flex-start;
  }
  
  .solution-trend .trend-box {
    min-width: 240px;
    max-width: none;
  }
  
  .solution-trend .trend-box img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
  }
  
  .solution-trend .trend-box .con {
    padding: 15px;
  }
  
  .solution-trend .trend-box .con h4 {
    font-size: 16px;
  }
  
  .solution-trend .trend-box .con p {
    font-size: 13px;
  }
  
  /* 典型场景部分 */
  .solution-scene .jr-tabs {
    gap: 8px;
  }
  
  .solution-scene .jr-tabs .title {
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 20px;
  }
  
  .solution-scene .jr-tabs .title.active {
    border: 1px solid var(--color-primary);
  }
  
  .solution-scene .scene-box {
    padding: 15px;
  }
  
  .solution-scene .scene-cont h4 {
    font-size: 18px;
  }
  
  .solution-scene .scene-cont p {
    font-size: 13px;
  }
  
  /* 产品特征部分 */
  .solution-advantage .advantage-box {
    padding: 20px;
  }
  
  .solution-advantage .advantage-box h5 {
    font-size: 16px;
  }
  
  .solution-advantage .advantage-box p {
    font-size: 13px;
  }
  
  /* 成功案例部分 */
  .solution-future {
    padding: 40px 0;
  }
  
  .solution-future .case-list {
    gap: 16px;
  }
  
  .solution-future .case-img {
    height: 150px;
  }
  
  .solution-future .case-cont {
    padding: 16px;
  }
  
  .solution-future .section-title h2 {
    font-size: 20px;
  }
  
  .solution-future .case-cont h4 {
    font-size: 16px;
  }
  
  .solution-future .case-cont p {
    font-size: 13px;
  }
  
  .solution-future .btn-primary {
    padding: 12px 28px;
    font-size: 14px;
  }
}

/* 动画效果 - 使用 index.css 中的 @keyframes fadeInUp, fadeInLeft, fadeInRight */

/* 为各个部分添加入场动画 */
.server-banner {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.solution-trend {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.solution-scene {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

.solution-future {
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

/* 为卡片添加入场动画 */
.trend-box,
.advantage-box,
.case-item {
  opacity: 0;
  animation-fill-mode: forwards;
}

.trend-box:nth-child(1) {
  animation: fadeInLeft 0.6s ease-out 1s forwards;
}

.trend-box:nth-child(2) {
  animation: fadeInRight 0.6s ease-out 1.1s forwards;
}

.trend-box:nth-child(3) {
  animation: fadeInLeft 0.6s ease-out 1.2s forwards;
}

.trend-box:nth-child(4) {
  animation: fadeInRight 0.6s ease-out 1.3s forwards;
}

.advantage-box:nth-child(1) {
  animation: fadeInLeft 0.6s ease-out 1s forwards;
}

.advantage-box:nth-child(2) {
  animation: fadeInRight 0.6s ease-out 1.1s forwards;
}

.advantage-box:nth-child(3) {
  animation: fadeInLeft 0.6s ease-out 1.2s forwards;
}

.advantage-box:nth-child(4) {
  animation: fadeInRight 0.6s ease-out 1.3s forwards;
}

.case-item:nth-child(1) {
  animation: fadeInLeft 0.6s ease-out 1s forwards;
}

.case-item:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 1.1s forwards;
}

.case-item:nth-child(3) {
  animation: fadeInRight 0.6s ease-out 1.2s forwards;
}
