.ctn1 {
  padding: 80px 0 120px;
  overflow: hidden;
}
.ctn1 .ctn-wrapper ul {
  display: flex;
  justify-content: center;
}
.ctn1 .ctn-wrapper ul li a {
  display: block;
  padding: 0 30px 14px;
  color: #333;
  position: relative;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
}
.ctn1 .ctn-wrapper ul li a:after {
  content: '';
  width: 0;
  height: 1px;
  background: var(--blue);
  position: absolute;
  left: 50%;
  bottom: 0;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
}
.ctn1 .ctn-wrapper ul li:hover a {
  color: var(--blue);
}
.ctn1 .ctn-wrapper ul li.active a {
  color: var(--blue);
}
.ctn1 .ctn-wrapper ul li.active a:after {
  width: 100%;
  left: 0;
}
.ctn1 .ctn-list {
  margin-top: 40px;
}
.ctn1 .ctn-list ul {
  display: flex;
  flex-wrap: wrap;
}
.ctn1 .ctn-list ul li {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  width: 32%;
  margin-top: 30px;
}
.ctn1 .ctn-list ul li .tu img {
  width: 100%;
}
.ctn1 .ctn-list ul li .text {
  background: rgba(238, 241, 250, 0.6);
  padding: 30px 40px 40px;
}
.ctn1 .ctn-list ul li .text h2 {
  color: #444;
  -webkit-line-clamp: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.5;
  height: 1.5em;
}
.ctn1 .ctn-list ul li .text h3 {
  color: #1464dc;
  margin: 4px 0 10px;
}
.ctn1 .ctn-list ul li .text p {
  color: #999;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.5;
  height: 3em;
}
.ctn1 .ctn-list ul li .masks {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: -30px;
  background: url(../img/product/bg3.jpg) no-repeat;
  background-size: cover;
  padding: 30px 40px 40px;
  opacity: 0;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
}
.ctn1 .ctn-list ul li .masks h2 {
  color: #fff;
  -webkit-line-clamp: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.5;
  height: 1.5em;
}
.ctn1 .ctn-list ul li .masks h3 {
  color: #fff;
  margin: 4px 0 10px;
}
.ctn1 .ctn-list ul li .masks p {
  color: rgba(255, 255, 255, 0.5);
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.5;
  height: 3em;
}
.ctn1 .ctn-list ul li .masks h4 {
  margin-top: 30px;
  color: #fff;
}
.ctn1 .ctn-list ul li .masks h4 span {
  margin-left: 10px;
}
.ctn1 .ctn-list ul li:not(:nth-child(3n)) {
  margin-right: 2%;
}
.ctn1 .ctn-list ul li:hover .masks {
  opacity: 1;
  bottom: 0;
}
@media screen and (max-width: 1680px) {
  .ctn1 {
    padding: 4vw 0 6vw;
  }
  .ctn1 .ctn-wrapper ul li a {
    padding: 0 20px 14px;
  }
  .ctn1 .ctn-list {
    margin-top: 30px;
  }
  .ctn1 .ctn-list ul li .text {
    padding: 1.5vw 2vw 2vw;
  }
  .ctn1 .ctn-list ul li .masks {
    padding: 1.5vw 2vw 2vw;
  }
  .ctn1 .ctn-list ul li .masks h4 {
    margin-top: 20px;
  }
}
@media screen and (max-width: 1440px) {
  .ctn1 .ctn-list {
    margin-top: 20px;
  }
  .ctn1 .ctn-list ul li {
    margin-top: 24px;
  }
}
@media screen and (max-width: 768px) {
  .ctn1 {
    padding: 40px 0;
  }
  .ctn1 .ctn-wrapper ul li a {
    padding: 0 14px 10px;
  }
  .ctn1 .ctn-list {
    margin-top: 16px;
  }
  .ctn1 .ctn-list ul li {
    width: 48.5%;
    border-radius: 10px;
    margin-top: 14px;
  }
  .ctn1 .ctn-list ul li .text {
    padding: 14px;
  }
  .ctn1 .ctn-list ul li .masks {
    padding: 14px;
  }
  .ctn1 .ctn-list ul li .masks h4 {
    margin-top: 10px;
  }
  .ctn1 .ctn-list ul li:not(:nth-child(3n)) {
    margin-right: 0;
  }
  .ctn1 .ctn-list ul li:not(:nth-child(even)) {
    margin-right: 3%;
  }
}
