/* 第二屏样式 */
.section2 {
  background-image: url("/assets/images/nav/zjptbg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #333;
  padding-top: 70px;
}

.section2-info-item:hover {
  background-color: #d12f2d;
  border-color: #d12f2d;
}

.section2-info-item:hover span {
  color: #ffffff;
}

.section2 * {
  overflow: visible !important;
}

.section2-menu-item span {
  line-height: normal;
}

.section2-container {
  width: 83.3%;
  margin: 0 auto;
  display: flex;
  /* justify-content: space-between; */
  flex-direction: column;
  align-items: center;
  /* padding-bottom: 20px; */
  height: 100%;
  padding-top: 0.5rem;
}

/* 第二屏标题样式 */
.section2-title {
  font-size: 0.4rem;
  font-family: "Source Han Sans SC", sans-serif;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

swiper-container {
  background-image: url("/assets/images/section2/swiper-b-bg.webp");
  background-size: 98%;
  background-position: center bottom;
  background-repeat: no-repeat;
}

/* 第二屏内容布局 */
.section2-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 14rem;
  margin: 0 auto;
  gap: 0.2rem;
}

.section2-menu-left {
  background-image: url("/assets/images/section2/lbg.png");
  background-size: auto;
  background-position: left;
  background-repeat: no-repeat;
  padding: 0.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 0 0 3.2rem;
  justify-content: center;
}

/* 右侧内容区域容器 */
.section2-menu-right {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
  align-items: center;
}

/* 中间内容区域 */
.section2-center {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
}

.product-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-container img {
  height: 5.99rem;
  object-fit: cover;
  margin: 0 0.96rem;
}

/* 菜单按钮基础样式 */
.section2-menu-item {
  width: 5.48rem;
  height: 0.76rem;
  background: transparent;
  color: #333;
  font-size: 0.22rem;
  font-family: "Source Han Sans SC", sans-serif;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 0.76rem;
  background: none;
  border-radius: 0.38rem 0 0 0.38rem;
  position: relative;
}
.section2-menu-left .section2-menu-item:hover::after, .section2-menu-left .section2-menu-item.active::after {
  content: "";
  width: 0.64rem;
  height: 0.64rem;
  position: absolute;
  left: 0.06rem;
  top: 0.06rem;
  background: red;
  border-radius: 50%;
}

.section2-menu-left .section2-menu-item {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  text-align: left;
  padding-left: 0.07rem;
}

/* 左侧菜单按钮margin-left设置 */
.section2-menu-left .section2-menu-item:nth-child(1) {
  margin-left: -0.05rem;
}

.section2-menu-left .section2-menu-item:nth-child(2) {
  margin-left: -0.4rem;
}

.section2-menu-left .section2-menu-item:nth-child(3) {
  margin-left: -0.45rem;
}

.section2-menu-left .section2-menu-item:nth-child(4) {
  margin-left: -0.4rem;
}

.section2-menu-left .section2-menu-item:nth-child(5) {
  margin-left: -0.2rem;
}

.section2-menu-left .section2-menu-item:nth-child(6) {
  margin-left: -0.05rem;
}

.section2-menu-item-img {
  opacity: 0;
  width: 0.63rem;
  z-index: 2;
  position: relative;
}

.section2-menu-item.active .section2-menu-item-img,
.section2-menu-left .section2-menu-item:hover .section2-menu-item-img {
  opacity: 1;
}

/* 左侧菜单按钮hover和active状态 */
.section2-menu-left .section2-menu-item:hover,
.section2-menu-left .section2-menu-item.active {
  background-image: linear-gradient(to right, #fa4547, rgba(0, 0, 0, 0));
  /* background-image: url("/assets/images/section2/b-bbg.webp"); */
  background-size: 100%  100%;
  background-position: 0 0;
  background-repeat: no-repeat;
  transform: translateX(0.05rem);
  color: #fff;
}

/* 右侧内容区域 - 信息网格 */
.section2-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.2rem;
  width: 100%;
  max-width: 8rem;
}

.section2-info-item {
  width: 3.2rem;
  height: 2.78rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.16rem;
  border: 0.02rem solid #dcdcdc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}


.section2-info-item img {
  width: 1.05rem;
  height: 0.87rem;
  object-fit: cover;
}

.section2-info-item span {
  font-weight: 500;
  font-size: 0.22rem;
  color: #666666;
  font-family: "Source Han Sans SC", sans-serif;
  transition: color 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 第二屏响应式 */
  .section2 {
    padding: 0.4rem 0.2rem;
  }

  .section2-title {
    font-size: 0.36rem;
    width: 4rem;
    height: 0.6rem;
  }

  .section2-content {
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
  }

  .section2-menu-left {
    flex: none;
    width: 100%;
    max-width: 3.2rem;
  }

  .section2-center {
    width: 100%;
    min-height: 2rem;
    order: 2;
  }

  .section2-menu-right {
    width: 100%;
    order: 3;
  }

  .section2-info-grid {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .section2-info-item {
    width: 100%;
    max-width: 3.86rem;
  }

  .section2-menu-left {
    order: 1;
  }

  .section2-menu-item {
    width: 100%;
    font-size: 0.16rem;
    height: 0.6rem;
  }

  /* 移动端重置margin值 */
  .section2-menu-left .section2-menu-item {
    margin-left: 0 !important;
  }
}

@media (max-width: 1300px) and (min-width: 769px) {
  .section2-content {
    max-width: 12rem;
    gap: 0.2rem;
  }

  .section2-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.15rem;
  }

  .section2-info-item {
    width: 100%;
    max-width: 100%;
  }
}

.block-hsw {
  width: 2.3rem;
  display: inline-block;
  text-align: center;
}