.banner {
  height: 600px;
  overflow: hidden;
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: myfirst 20s linear infinite;
}
@keyframes myfirst {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.15);
  }
  75% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@-moz-keyframes myfirst {
  /* Firefox */
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.15);
  }
  75% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@-webkit-keyframes myfirst {
  /* Safari and Chrome */
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.15);
  }
  75% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@-o-keyframes myfirst {
  /* Opera */
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.15);
  }
  75% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
.main-1 .content {
  display: flex;
  flex-wrap: wrap;
}
.main-1 .content a {
  width: calc(96% / 3);
  margin-right: 2%;
  margin-bottom: 2rem;
}
.main-1 .content a .item {
  width: 100%;
}
.main-1 .content a .item .img {
  width: 100%;
  height: 15rem;
  position: relative;
}
.main-1 .content a .item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.main-1 .content a .item .img .mask {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  top: 0;
  align-items: center;
  display: flex;
  transform: scale(0);
  transition: all 0.5s ease;
}
.main-1 .content a .item .img .mask p {
  display: block;
  width: 90%;
  color: #fff;
  margin: 0 auto;
  line-height: 1.5;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.main-1 .content a .item h1 {
  text-align: center;
  font-size: 1rem;
  padding-top: 1rem;
  transition: all 0.4s ease;
}
.main-1 .content a:nth-of-type(3n) {
  margin-right: 0;
}
.main-1 .content a:hover .item .img .mask {
  transform: scale(1);
}
.main-1 .content a:hover .item h1 {
  color: #5dc9df;
}
@media screen and (max-width: 768px) {
  .banner {
    height: 12rem;
    object-fit: cover;
    margin-top: 50px;
  }
  .main-1 .content {
    justify-content: space-between;
  }
  .main-1 .content a {
    width: 49%;
    margin-right: 0;
  }
  .main-1 .content a .item .img {
    height: 8rem;
  }
}
