/*************** 产品分类一行4个 ***************/
.float-l {
  float: left;
}
.float-r {
  float: right;
}
.clear {
  clear: both;
}
.center {
  margin: 0 auto;
}
.ft-wei {
  font-weight: 600;
}
.hide-excess-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.v-center {
  display: flex;
  justify-content: center;
  align-items: Center;
}
@keyframes imgHover {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.2);
  }
}
.imgHover {
  animation: imgHover 1s forwards;
}
.home-product{
  background-color: #f7f7f7;
}
.home-product .figure{
  flex-direction: column;
  background-color: #fff;
  height: auto;
  border: none;
  box-shadow: 0 1px 10px #ddd;
}
.home-product .figure:hover{
  background-color: #142e4a;
  border:5px solid #142e4a;

}

.home-product .figure .text {
  position: static;
  background-color: #142e4a;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: auto;
  height: auto;
}
.home-product .figure .text .name{
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  line-height: 1.6;
  color: inherit;
}
.home-product .figure .text .descr{
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
}
.home-product .figure .image{
  width: 100%;
  height: auto;
}
.home-product .figure .image img{
  width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .home-product .figure .text {
    padding: 20px 15px;
    height: 155px;
  }
  .home-product .figure .text .name{
    font-size: 16px;
    max-height: 52px;
    margin-bottom: 5px;
  }
  .home-product .figure .text .descr{
    font-size: 13px;
    max-height: 42px;
  }
}
@media (min-width: 768px) {
  .home-product .figure .text {
    padding: 20px;
    height: 80px;
  }
  .home-product .figure .text .name{
    font-size: 18px;
    max-height: 58px;
    margin-bottom: 5px;
  }
  .home-product .figure .text .descr{
    font-size: 13px;
    max-height: 42px;
    color: #cfdef1;
  }
}
