.goods-type {
  padding: 90px 0;
  background: #f5f5f5;
}

.goods-type .index-tit {
  text-align: center;
}

.goods-type .index-tit em {
  font-size: 15px;
  color: #575756;
  letter-spacing: 9px;
  font-weight: 600;
  display: block;
  margin: 0 0 15px;
  text-transform: uppercase;
}

.goods-type .index-tit h3 {
  font-size: clamp(24px, 2.4vw, 46px);
  line-height: 1;
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
}

.goods-type .index-tit h3 span {
  color: #93c01f;
}

.goods-type .index-tit p {
  font-size: 16px;
  line-height: 24px;
  color: #373737;
  margin: 20px auto 0;
}

.goods-type ul {
  margin: 30px 0 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 15px; 
  padding: 0;
  list-style: none;
}

.goods-type ul li {
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.goods-type ul li .pic {
  display: block;
  width: 100%;
  position: relative;
  box-shadow: 0 0 13px rgba(0, 0, 0, 0.13);
  overflow: hidden;
}

.goods-type ul li .pic::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(224, 1, 11, 0.41) url("../../images/i1.png") no-repeat center;
  display: block;
  transition: opacity 0.2s, transform 0.35s;
  opacity: 0;
  transform: scale(0);
}

.goods-type ul li:hover .pic::after {
  opacity: 1;
  transform: scale(1);
}

.goods-type ul li .pic img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.goods-type ul li h5 {
  margin: 15px 0 0;
  color: #000;
  font-size: 18px;
  font-weight: 300;
  text-align: center;
  height: 44px;
}

.goods-type ul li h5 a:hover {
  color: var(--color-primary);
}

.goods-type ul li .more {
  width: 120px;
  height: 34px;
  line-height: 34px;
  background: var(--color-second);
  border-radius: 25px;
  margin: 10px auto 0;
  display: block;
  text-align: center;
  font-size: 15px;
  color: #fff;
  border-radius: var(--button-radius);
}

.goods-type ul li .more:hover {
  background: var(--btn-hover);
}

@media screen and (max-width: 1500px) {
  .goods-type ul li h5 {
    height: 60px;
  }
}

@media screen and (max-width: 1440px){
    .goods-type {
        padding: 50px 0;
    }
}

@media screen and (max-width: 991px) {
  .goods-type .index-tit em {
    letter-spacing: 5px;
  }

  .goods-type .index-tit p {
    font-size: 15px;
    line-height: 22px;
    margin: 15px auto 0;
  }

  .goods-type {
    padding: 30px 0;
  }

  .goods-type ul {
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    margin: 15px 0 0 0;
    padding: 0 10px;
  }

  .goods-type ul li {
    width: 100%;
    margin: 0;
  }

  .goods-type ul li h5 {
    font-size: 18px;
    line-height: 22px;
    height: 44px;
  }

  .goods-type ul li .more {
    display: none;
  }
}

@media screen and (max-width: 560px) {
  .goods-type ul li h5 {
    font-size: 17px;
  }
}

@media screen and (max-width: 480px) {
  .goods-type ul li h5 {
    font-size: 14px;
  }
}
