@import "init.css";

/* .topnav {
   position: relative;
} */

.container {
   width: 90%;
   margin: 0 auto;
}

/*列表*/
.list-container {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   grid-column-gap: 5vw;
   grid-row-gap: 140px;
   width: 100%;
   margin-top: 110px;
   margin-bottom: 170px;
}

.list-item {
   position: relative;
   overflow: hidden;
   display: block;
}

.list-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: all 0.6s;
}

.list-item:hover img {
   scale: 1.1;
}

.cover {
   aspect-ratio: 500 / 350;
   overflow: hidden;
   position: relative;
}

.cover i {
   display: block;
   position: absolute;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   z-index: 9;
   background-color: rgba(0, 0, 0, 0.1);
   background-image: url(../images/img38.png);
   background-size: 60px auto;
   background-repeat: no-repeat;
   background-position: center center;
   opacity: 0;
   transition: all 0.8s;
}

.list-item:hover i {
   opacity: 1;
}

.list-title {
   font-size: clamp(16px, 1vw, 18px);
   line-height: 1.5;
   min-height: calc(2em * 1.5);
   margin: 30px 0;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
   text-overflow: ellipsis;
}

.view-more {
   display: flex;
   align-items: center;
   cursor: pointer;
   justify-content: space-between;
}

.view-more .view-date {
   font-size: clamp(14px, 1vw, 16px);
   color: #005b57;
}

.view-more .view-text {
   font-size: clamp(12px, 1vw, 14px);
   color: #005b57;
}


.view-line {
   height: 1px;
   width: 50%;
   background-color: #becac2;
   margin: 0 10px 0 auto;
   position: relative;
   overflow: hidden;
}




/* 响应式布局 */
@media (max-width: 1280px) {

   .list-container {
      grid-template-columns: repeat(2, 1fr);
      margin-top: 70px;
      grid-row-gap: 80px;
   }
}

@media (max-width: 767px) {

   .list-container {
      margin-top: 0.9rem;
      grid-row-gap: 0.9rem;
      grid-template-columns: repeat(1, 1fr);
	  margin-bottom: 1.5rem;
   }

   .list-title {
      font-size: 0.29rem;
      margin: 10px 0;
   }

   .cover {
      aspect-ratio: 500 / 350;
      margin-top: 0.23rem;
   }
}