/* banner区域样式 */
.banner {
  height: 40vh;
}

.banner img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* 导航区域样式 */
.nav {
  position: sticky;
  top: var(--header-height);
  background-color: var(--color-white);
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  z-index: 2;
}

.nav ul {
  display: flex;
  height: 60px;
  align-items: center;
  justify-content: center;
}


.nav ul li a {
  color: var(--color-black);
  margin: 0 20px;
  display: block;
  text-align: center;
}

.nav ul li a.active {
  color: var(--color-red-1);
  font-weight: bold;
}

/* 项目示例样式 */
.product-box h2 {
  text-align: center;
  position: relative;
}

.product-box h2 a {
  position: absolute;
  top: calc((var(--header-height) + 80px) * -1);
}

.product-box h2 span {
  position: relative;
  padding-bottom: 10px;
}

.product-box h2 span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 4px;
  transform: translateX(-50%);
  background-color: var(--color-red-1);
}

.section {
  width: 80%;
  margin: 40px auto;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.product-item {
  display: flex;
  align-items: center;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, .12);
  padding: 20px;
  border-radius: 10px;
  margin-top: 40px;
}

.product-item .product-title {
  flex: 1;
  padding-right: 40px;
}

.product-item .product-title-content {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 20px;
}

.product-item .product-content {
  font-size: 18px;
  color: var(--color-gray-3);
  line-height: 1.6;
}

.product-item .product-img {
  flex-basis: 55%;
  height: 40vh;
  overflow: hidden;
}

.product-item .product-img .swiper {
  width: 100%;
  height: 100%;
  user-select: none;
}

.product-item .product-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
}

.product-item:nth-of-type(2n) {
  flex-direction: row-reverse;
}

.product-item:nth-of-type(2n) .product-title {
  padding-right: 0;
  padding-left: 40px;
}

.product-no-Img ul {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-left: -20px;
}

.product-no-Img ul li {
  box-shadow: 0px 0px 12px rgba(0, 0, 0, .12);
  margin: 0 0 10px 20px;
  padding: 10px;
  border-radius: 10px;
}

.product-no-Img ul li .name {
  padding-left: 20px;
  position: relative;
}

.product-no-Img ul li .name::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-gray-4);
}

@media screen and (max-width: 1440px) {
  /* banner区域样式 */

  /* 导航区域样式 */


  /* 项目示例样式 */
  .product-item .product-content {
    font-size: 16px;
  }

  .product-item .product-img {
    flex-basis: 50%;
  }

  .product-no-Img ul li .name {
    font-size: 14px;
  }
}

@media screen and (max-width: 1024px) {
  /* banner区域样式 */

  /* 导航区域样式 */
  .nav {
    margin-bottom: 0;
  }

  /* 项目示例样式 */
  .section {
    width: 90%;
  }

  .section:first-child {
    margin-top: 0;
  }

  .product-box h2 {
    font-size: 20px;
  }

  .product-item {
    align-items: flex-start;
  }

  .product-item .product-title-content {
    text-align: center;
    font-size: 18px;
  }

  .product-item,
  .product-item:nth-of-type(2n) {
    flex-direction: column;
  }

  .product-item .product-title {
    width: 100%;
    padding-right: 0;
  }

  .product-item:nth-of-type(2n) .product-title {
    padding-left: 0;
  }

  .product-item .product-img {
    flex-basis: initial;
    width: 100%;
    height: initial;
    margin-top: 10px;
  }
}

@media screen and (max-width: 768px) {
  /* banner区域样式 */

  /* 导航区域样式 */

  .nav ul li a {
    font-size: 14px;
    margin: 0 10px;
  }

  /* 项目示例样式 */
  .section {
    margin: 0 auto;
  }

}