﻿@charset "utf-8";
.main-content {
  width: 100%;
}
.main-content .cell-list {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(4, auto); /* 每行 4 个 */
  gap: 0.32rem 0.18rem; /* 垂直间距 0.32rem，水平间距 0.18rem */
}
.main-content .cell-item {
  position: relative;
  width: 3.56rem;
  height: 3.67rem;
  background-color: #fff;
  border-radius: 0.15rem;
  overflow: hidden;
}
.main-content .cell-item .cell-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 2.25rem;
  /* 遮罩层 */
}
.main-content .cell-item .cell-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}
.main-content .cell-item .cell-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
  pointer-events: none;
}
.main-content .cell-item .cell-image:hover img {
  transform: scale(1.1);
}
.main-content .cell-item .cell-image:hover::after {
  background-color: rgba(0, 0, 0, 0.3); /* 30% 黑色遮罩 */
}
.main-content .cell-item .cell-title {
  font-size: 0.2rem;
  color: rgb(0, 0, 0);
  font-weight: bold;
  line-height: 1.2;
  padding: 0 0.22rem;
  margin-top: 0.24rem;
  transition: color 0.3s ease;
}
.main-content .cell-item .cell-title:hover {
  color: rgb(204, 181, 121);
}
.main-content .cell-item .cell-date,
.main-content .cell-item .cell-btn {
  position: absolute;
  background-color: #bd2925;
  color: #fff;
  text-align: center;
  font-size: 0.16rem;
  border-radius: 0.06rem;
  transition: background-color 0.3s ease;
}
.main-content .cell-item .cell-date:hover,
.main-content .cell-item .cell-btn:hover {
  background-color: #721310;
}
.main-content .cell-item .cell-date {
  right: 0.16rem;
  top: 0.19rem;
  width: 0.7rem;
  height: 0.28rem;
  line-height: 0.28rem;
}
.main-content .cell-item .cell-btn {
  left: 0.22rem;
  bottom: 0.22rem;
  width: 1.12rem;
  height: 0.37rem;
  line-height: 0.37rem;
  font-weight: bold;
}

@media screen and (max-width: 999px) {
  .banner-top {
    margin-top: 1.01rem;
  }
  .banner-top::before {
    padding-top: 47.733%;
  }
  .banner-top .banner-bd .wp .banner-title {
    font-size: 0.3rem;
    left: 0.75rem;
    top: 2.64rem;
  }
  .container {
    padding: 0.54rem 0.14rem 0.82rem;
  }
  .main-content .cell-list {
    grid-template-columns: repeat(2, auto);
    gap: 0.12rem;
  }
  .main-content .cell-item {
    width: 3.4rem;
    height: 4.07rem;
  }
  .main-content .cell-item .cell-image {
    height: 2.13rem;
  }
  .main-content .cell-item .cell-title {
    font-size: 0.16rem;
  }
}