/* 解决方案详情页样式 */
/* Banner样式优化 */
.solution-banner {
  background: linear-gradient(135deg, #2b5aae 0%, #4b7be5 100%);
  color: #fff;
  width: 100%;
  height: 100%;
}
.solution-banner .container {
  padding: 100px 0;
 
  /* position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; */
}

.solution-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("../images/pattern.png") repeat;
  opacity: 0.1;
}

.solution-banner h1 {
  font-size: 42px;
  margin-bottom: 25px;
  font-weight: 600;
  position: relative;
}

.solution-banner p {
  font-size: 18px;
  line-height: 1.8;
  max-width: 80vw;
  opacity: 0.9;
  position: relative;
}
.solution-structure img {
  width: 100%;
  height: 100%;
}

/* 热门场景样式 */
.hot-scenarios {
  padding: 60px 0;
  background-color: #f5f7fa;
}

.scenario-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.scenario-item {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.scenario-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.scenario-item h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
}

.scenario-item p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* 解决方案架构部分样式 */
.solution-structure {
  padding: 30px 0; /* 增加整体内边距 */
  background-color: #fff;
}

.solution-structure .container h2 {
  margin-top: 20px; /* 增加标题顶部边距 */
  margin-bottom: 20px;
}

/* 方案优势部分样式 */
.solution-advantages {
  padding: 80px 0;
  background-color: #f8f9fc;
  position: relative;
}

.solution-advantages::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent
  );
}

.advantage-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.advantage-item {
  text-align: center;
  padding: 40px 30px;
  background: #fff;
  border-radius: 12px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.advantage-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2b5aae, #4b7be5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.advantage-item:hover::before {
  opacity: 1;
}

.advantage-item .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.advantage-item:hover .icon {
  background: #e8f0ff;
  transform: scale(1.1);
}

.advantage-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.advantage-item h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.advantage-item p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .advantage-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 0 15px;
  }

  .advantage-item {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .solution-advantages {
    padding: 60px 0;
  }

  .advantage-items {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .advantage-item {
    padding: 30px 20px;
  }

  .advantage-item .icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .advantage-item img {
    width: 30px;
    height: 30px;
  }

  .advantage-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
}

.advantage-item .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.advantage-item h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.advantage-item p {
  font-size: 14px;
  color: #666;
}

/* 通用样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h2 {
  font-size: 32px;
  color: #333;
  text-align: center;
  margin-bottom: 40px;
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .scenario-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantage-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .solution-banner {
    padding: 60px 0;
  }

  .solution-banner h1 {
    font-size: 28px;
  }

  .scenario-cards {
    grid-template-columns: 1fr;
  }

  .advantage-items {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
}

/* 选项卡导航样式 */
.solution-tabs {
  background-color: #f5f5f5;
  padding: 20px 0;
  position: sticky;
  top: 60px;
  z-index: 98;
}

/* 调整各个section的上边距，防止被选项卡遮挡 */
.solution-structure,
.hot-scenarios,
.solution-advantages {
  padding-top: 80px; /* 增加顶部内边距 */
  margin-top: -60px; /* 使用负margin来抵消多余的空间 */
}

/* 调整section标题的位置 */
.solution-structure h2,
.hot-scenarios h2,
.solution-advantages h2 {
  padding-top: 20px; /* 给标题增加一些顶部内边距 */
}

.tab-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 40px; /* 增加链接之间的间距 */
  background-color: #f5f5f5;  
}

.tab-item {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.tab-item:hover {
  color: #1890ff;
}

.tab-item.active {
  background-color: #1890ff; /* 添加选中时的背景色 */
  color: #fff;
}

.tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #2b5aae;
}

/* 添加平滑滚动效果 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px; /* 修改这里，设置为顶部导航+选项卡的总高度 */
}

/* 响应式适配 */
@media (max-width: 768px) {
  .tab-container {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding: 0 15px;
  }

  .tab-item {
    padding: 15px 20px;
    white-space: nowrap;
  }
}
