.jwell-featured_products {
  padding: 70px 0;
  background: var(--bg-color-second);
}

.jwell-featured_products .tit {
  text-align: center;
}

.jwell-featured_products .tit h3 {
  font-size: 60px;
  line-height: 1;
  color: #040404;
  font-weight: bold;
  text-transform: uppercase;
  padding-bottom: 29px;
  background: url("../../images/tit1.png") no-repeat center bottom;
}

.jwell-featured_products .tit p {
  font-size: 24px;
  color: #040404;
  line-height: 24px;
  max-width: 1200px;
  margin: 28px auto 0;
  font-weight: 300;
}

.jwell-featured_products .list {
  margin: 80px 0 0;
  position: relative;
}

/* Grid 四列布局 */
.jwell-featured_products .list ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jwell-featured_products .list li {
  position: relative;
  min-width: 0;
  margin: 0;
  background: #fff;
  box-shadow: 0 0 5px 0 rgba(63, 62, 62, 0.1);
  overflow: hidden;
}

.jwell-featured_products .list li .pic {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.jwell-featured_products .list li .pic > img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

/* 悬浮遮罩 */
.jwell-featured_products .list li .fun-btn {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 30px;
  text-align: center;
  background: rgba(24, 103, 180, 0.45);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.jwell-featured_products .list li .fun-btn::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 20px;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.jwell-featured_products .list li .fun-btn h6 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 18px;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.jwell-featured_products .list li h5 {
  margin: 0;
  padding: 15px;
  background: #fff;
  color: #000;
  font-size: 21px;
  line-height: 1.4;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.jwell-featured_products .list li h5 a:hover {
  color: var(--active-color);
}

/* 桌面端悬浮效果 */
.jwell-featured_products .list li:hover .pic > img {
  transform: scale(1.05);
}

.jwell-featured_products .list li:hover .fun-btn {
  opacity: 1;
}

.jwell-featured_products .list li:hover .fun-btn h6 {
  opacity: 1;
  transform: translateY(0);
}

.jwell-featured_products .list li:hover h5 {
  opacity: 1;
}

@media screen and (max-width: 1500px) {
  .jwell-featured_products .tit h3,
  .indexG .tit h3,
  .indexE .top .tit h3,
  .indexC .tit h3 {
    font-size: 48px;
    background-size: 320px auto;
  }

  .jwell-featured_products .tit p,
  .indexG .tit p,
  .indexE .top .tit p,
  .indexC .tit p {
    font-size: 22px;
    margin: 25px auto 0;
  }

  .jwell-featured_products .list {
    margin-top: 60px;
  }

  .jwell-featured_products .list ul {
    gap: 24px;
  }

  .jwell-featured_products .list li .fun-btn {
    padding: 0 20px;
  }

  .jwell-featured_products .list li .fun-btn::after {
    top: 15px;
    right: 15px;
    bottom: 15px;
    left: 15px;
  }

  .jwell-featured_products .list li .fun-btn h6 {
    font-size: 18px;
  }

  .jwell-featured_products .list li h5 {
    font-size: 18px;
  }
}

@media screen and (max-width: 1400px) {
  .jwell-featured_products .tit h3,
  .indexG .tit h3,
  .indexE .top .tit h3,
  .indexC .tit h3 {
    font-size: 40px;
    background-size: 280px auto;
  }

  .jwell-featured_products .tit p,
  .indexG .tit p,
  .indexE .top .tit p,
  .indexC .tit p {
    margin: 20px auto 0;
  }
}

/* 平板端：一排两个 */
@media screen and (max-width: 992px) {
  .jwell-featured_products .list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .jwell-featured_products .tit h3,
  .indexG .tit h3,
  .indexE .top .tit h3,
  .indexC .tit h3 {
    font-size: 30px;
    background-size: 220px auto;
    padding-bottom: 0;
  }

  .jwell-featured_products .tit p,
  .indexG .tit p,
  .indexE .top .tit p,
  .indexC .tit p {
    font-size: 15px;
    line-height: 1.6;
    margin: 15px auto 0;
  }

  .jwell-featured_products {
    padding: 30px 0;
  }

  .jwell-featured_products .list {
    margin-top: 30px;
  }

  /* 移动端关闭遮罩，避免触摸设备无法正常触发 hover */
  .jwell-featured_products .list li .fun-btn {
    display: none;
  }

  .jwell-featured_products .list li:hover .pic > img {
    transform: none;
  }

  .jwell-featured_products .list li:hover h5 {
    opacity: 1;
  }

  .jwell-featured_products .list li h5 {
    padding: 15px 10px;
    font-size: 16px;
  }
}

/* 手机端：一排一个 */
@media screen and (max-width: 480px) {
  .jwell-featured_products .list ul {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .jwell-featured_products .tit h3,
  .indexG .tit h3,
  .indexE .top .tit h3,
  .indexC .tit h3 {
    font-size: 24px;
    background-size: 160px auto;
    padding-bottom: 20px;
  }
}
