.bobo_goods_type {
  padding: 30px 0;
  background-size: cover;
  background-repeat: no-repeat;
}

.bobo_goods_type .container {
  padding-left: 0;
  padding-right: 0;
}

.bobo_goods_type .tit {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
  height: 80px;
  padding: 0 20px;
}

.bobo_goods_type .tit .t em {
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 700;
}

.bobo_goods_type .tit .t h2 {
  font-size: 40px;
  line-height: 1;
  color: #000;
}

.bobo_goods_type .tit .more {
  width: 194px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  background: var(--color-primary);
  border-radius: var(--button-radius);
}

.bobo_goods_type .tit .more:hover {
  background: none;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.bobo_goods_type ul {
  margin: 20px -10px 0; /* 调整负边距 */
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: flex-start; /* 改为flex-start以正确应用间距 */
  justify-content: flex-start;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.bobo_goods_type ul li {
  padding: 0 10px;
  margin: 20px 0 0;
  box-sizing: border-box;
  text-align: center;
  width: 25%; /* 保持25%宽度 */
}

.bobo_goods_type ul li .box {
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
  margin: 0 5px; /* 添加左右间距 */
}

.bobo_goods_type ul li .box:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.bobo_goods_type ul li .pic {
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  padding: 10px;
}

.bobo_goods_type ul li .pic img {
  display: block;
  transition: all 0.3s ease 0s;
  -webkit-transition: all 0.3s ease 0s;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.bobo_goods_type ul li h5 {
  margin: 16px 0 0;
  line-height: 30px;
  height: 60px;
  overflow: hidden;
  color: var(--title-text-color);
  font-size: 18px;
  padding: 0 10px 15px;
}

.bobo_goods_type ul li h5 a:hover {
  color: var(--color-primary);
  text-decoration: underline
}

.bobo_goods_type ul li:hover img {
  transform: scale(1.05);
  -webkit-transform: scale(1.05)
}

@media screen and (max-width: 1500px) {
  .bobo_goods_type ul li h5 {
    font-size: 16px
  }
}

@media screen and (max-width: 1280px) {
  .bobo_goods_type .tit .t h2 {
    font-size: 32px;
  }
  .bobo_goods_type .tit .t em {
    font-size: 14px;
  }
  .bobo_goods_type ul li h5 {
    font-size: 14px
  }
  /* 保持4列布局 */
}

@media screen and (max-width: 1200px) {
  /* 在较小的大屏幕上保持4列但调整间距 */
  .bobo_goods_type ul li {
    width: 25%;
  }
  .bobo_goods_type ul li .box {
    margin: 0 5px; /* 保持间距 */
  }
}

@media screen and (max-width: 992px) {
  .bobo_goods_type .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .bobo_goods_type ul li h5 {
    font-size: 16px
  }
  /* 改为3列布局 */
  .bobo_goods_type ul li {
    width: 33.333%;
  }
}

@media screen and (max-width: 768px) {
  .bobo_goods_type {
    padding: 30px 0;
    background-size: cover;
  }

  .bobo_goods_type .tit .t em {
    font-size: 14px
  }

  .bobo_goods_type .tit .t h2 {
    margin: 10px 0 0;
    font-size: 28px
  }

  .bobo_goods_type .tit .more {
    width: 160px;
    height: 36px;
    line-height: 36px;
    font-size: 14px
  }

  .bobo_goods_type ul {
    margin: 15px -5px 0
  }

  /* 改为2列布局 */
  .bobo_goods_type ul li {
    width: 50%;
    padding: 0 5px;
    margin: 15px 0 0
  }

  .bobo_goods_type ul li .box {
    margin: 0 3px; /* 减小间距 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  }
  
  .bobo_goods_type ul li .box:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  }

  .bobo_goods_type ul li h5 {
    margin: 10px 0 0;
    line-height: 24px;
    height: 48px;
    font-size: 16px
  }
}

@media screen and (max-width: 576px) {
  .bobo_goods_type .tit .t h2 {
    font-size: 24px
  }

  .bobo_goods_type ul li h5 {
    font-size: 14px;
    height: auto; /* 自动高度 */
    line-height: 1.4;
  }

  .bobo_goods_type .tit .more {
    width: 140px;
  }
  
  /* 超小屏幕改为单列布局 */
  .bobo_goods_type ul {
    flex-direction: column;
  }
  
  .bobo_goods_type ul li {
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 0 10px;
  }
  
  .bobo_goods_type ul li .box {
    margin: 0; /* 移除左右间距 */
  }
}