@import "init.css";

.container{
   width: 1230px;
   margin: 0 auto;
 }

/*列表*/
.list-container {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   /* 3列布局 */
   grid-column-gap: 26px;  /* 控制列间距 */
   grid-row-gap: 18px;     /* 控制行间距 */
   width: 100%;
}

.list-item {
   position: relative;
   overflow: hidden;
   display: block;
   text-decoration: none;
   border-top: 1px solid #a09d9c;
   padding-top: 20px;
   cursor: pointer;
}

.list-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   filter: brightness(80%);
   /* 图片变暗10% */
   transition: all 0.5s;
}

.list-item:hover img {
   filter: brightness(100%);
   /* 悬停时恢复正常亮度 */
   scale: 1.1;
}

.list-info {
   color: white;
   display: flex;
   margin-bottom: 78px;
}

.list-info i {
   font-size: 18px;
}

.list-info .casename {
   font-size: 20px;
   margin-top: 22px;
   color: #fff;
   min-height: 60px;
   max-height: 60px;
   overflow: hidden;
   text-overflow: ellipsis;
   line-height: 1.4;
}

.cover {
   position: relative;
   aspect-ratio: 4 / 3;
   overflow: hidden;
   border-radius: 10px;
}

.cover .icon-bofanganniu {
   position: absolute;
   font-size: 50px;
   left: 50%;
   top: 50%;
   transform: translate(-50%, -50%);

}

.view-more {
   display: flex;
   align-items: center;
   cursor: pointer;
   justify-content: space-between;
}

.view-more .view-text {
   font-size: 12px;
   color: #948885;
}


.viewall-btn{
   display: block;
   width: 240px;
   height: 52px;
   line-height: 52px;
   border-radius: 52px;
   background-color: #bcb09d;
   color: #fff;
   font-size: 16px;
   text-align: center;
   margin: 160px auto 178px;
   transition: background-color 0.4s;
}
.viewall-btn a:hover{
   text-decoration: underline;
}
/* 响应式布局 */
@media (max-width: 1280px) {

   .container {
      width: 87.2%;
   }

   .list-container {
      grid-template-columns: repeat(2, 1fr);
   }

}

@media (max-width: 960px) {
   .container {
      width: 87.2%;
   }

   .list-container {
      grid-row-gap: 0.9rem;
      grid-template-columns: repeat(1, 1fr);
   }

   .outline::before {
      content: "";
      position: absolute;
      top: -0.24rem !important;
      left: 0;
      right: 0;
      height: 1px;
      background-color: #a09d9c;
      z-index: 1;
   }

   .list-item {
      padding-top: 0.24rem;
      display: flex;
        flex-direction: column-reverse;
   }

   .list-info {
      margin-bottom: 0.8rem;
   }

   .list-info .casename {
      font-size: 0.375rem;
      line-height: 1.3;
      margin-top: 0.1rem;
      max-height: fit-content;
   }

   .list-info .catename {
      font-size: 0.19rem;
      line-height: 0.19rem;
   }

   .list-info i {
      font-size: 0.2rem;
   }

   .view-more {
      padding-bottom: 0.24rem;
  }

   .view-more .view-text {
      font-size: 0.25rem;
  }

   .viewall-btn {
      display: block;
      width: 100%;
      height: 0.94rem;
      line-height: 0.94rem;
      border-radius: 52px;
      background-color: #bcb09d;
      color: #fff;
      font-size: 0.29rem;
      text-align: center;
      margin: 1.28rem auto 1.18rem;

   }

}