/*************** 产品分类一行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 .figure .image {
  padding: 0;
}
.home-product .figure .text {
  background-color: rgba(243,87,92,0.9);
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: Center;
}
.home-product .figure .text .pro-group-info {
  display: inline-block;
  width: auto;
  height: auto;
}
.home-product .figure .text .pro-group-info .pro-group-name {
  height: auto;
  color: #fff;
  text-transform: uppercase;
  white-space: normal;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 0;
}
.home-product .figure .text .pro-group-info .pro-group-name:hover {
  text-decoration: none;
}
.home-product .figure .text .pro-group-info .animate-line {
  display: block;
  background-color: #FFFF04;
  width: 60px;
  height: 3px;
  margin: 0 auto;
  margin-top: 10px;
}
.home-product .figure .text .btn {
  left: 30%;
}
.home-product .figure .group-name{
  margin-top: 10px;
}
@keyframes group-animate-line {
  from {
    width: 60px;
    background-color: #FFFF04;
  }
  to {
    width: 100%;
    background-color: #FFFF04;
  }
}
@keyframes group-text {
  from {
    top: 100%;
  }
  to {
    top: 0%;
  }
}
@keyframes group-name {
  from {
    right: 100%;
  }
  to {
    right: 0;
  }
}
@keyframes group-animate-line-show {
  from {
    background-color: transparent;
  }
  to {
    background-color: #FFFF04;
  }
}
@media (max-width: 767px) {
  .home-product .figure .text {
    padding: 0;
    top: 80%;
    bottom: 0;
    height: auto;
  }
  .home-product .figure .text .pro-group-info .pro-group-name {
    font-size: 14px;
    line-height: 20px;
    max-height: 40px;
  }
  .home-product .figure .text .pro-group-info .animate-line {
    margin-top: 5px;
  }
  .home-product .figure .text .btn {
    bottom: 15px;
    left: 18%;
    font-size: 10px;
    padding: 5px 10px;
  }
}
@media (min-width: 768px) {
  .home-product .figure .image {
    height: 320px;
  }
  .home-product .figure .text {
    top: 100%;
  }
  .home-product .figure .text .pro-group-info {
    padding: 0 10%;
    position: relative;
    right: 100%;
  }
  .home-product .figure .text .pro-group-info .pro-group-name {
    font-size: 18px;
    line-height: 20px;
    max-height: 40px;
  }
  .home-product .figure .text .pro-group-info .animate-line {
    background-color: transparent;
  }
  .home-product .figure .text .btn {
    bottom: 18.75px;
    font-size: 12px;
    padding: 5px 15px;
  }
  .home-product .figure:hover .text {
    animation: group-text 1s forwards;
  }
  .home-product .figure:hover .text .pro-group-info {
    animation: group-name 1s 0.5s forwards;
  }
  .home-product .figure:hover .text .pro-group-info .animate-line {
    animation: group-animate-line-show 2s 0.75s forwards;
  }
  .home-product .figure:hover .text .pro-group-info:hover .animate-line {
    animation: group-animate-line 0.75s forwards;
  }
  .home-product .figure .group-name{
    font-size: 16px;
  }
}
