.pl-hot-categories {
  padding: 40px 0;
  background: #fff;
}

.pl-hot-categories * {
  box-sizing: border-box;
}

.pl-hot-categories .pl-container {
  width: 1360px;
  max-width: calc(100% - 20px);
  margin: 0 auto;
}

.pl-hot-categories .pl-section-title {
  margin: 0 0 30px;
  color: #222;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
}
.pl-hot-list {
  display: flex;
  flex-wrap: wrap;
  margin:10px -8px 0;
  padding: 0;
  list-style: none;
}

.pl-hot-list > li {
  width: 25%;
  padding: 8px;
  box-sizing: border-box;
}
.pl-hot-card {
  position: relative;
  width: 100%;
  height: 338px;
  overflow: hidden;
  border-radius: 5px;
  background: #111;
}


/* 背景图片 */

.pl-hot-card .pl-card-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1);
  transition:
    transform .45s ease,
    opacity .35s ease;
}

.pl-hot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, .55) 0%,
    rgba(0, 0, 0, .08) 45%,
    rgba(0, 0, 0, .35) 100%
  );
  transition: opacity .35s ease;
}

.pl-hot-card .pl-card-title {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 18px;
  right: 18px;
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .75);
}
.pl-hot-card .pl-card-title a {
  color: inherit;
  text-decoration: none;
}

.pl-hot-card .pl-card-title span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: .2px;
  opacity: .82;
}

.pl-hot-card .pl-card-mask {
  position: absolute;
  inset: 0;
  z-index: 2;

  padding: 92px 22px 20px;

  background: rgba(23, 23, 23, .96);

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);

  transition:
    opacity .3s ease,
    visibility .3s ease,
    transform .3s ease;
}
.pl-hot-card .pl-card-links {
  margin: 0;
  padding: 0;
  list-style: none;
  margin-top:10px;
  font-size: 18px;
  line-height: 1.5;
}

.pl-hot-card .pl-card-links li {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.32;
}

.pl-hot-card .pl-card-links a {
  position: relative;
  display: inline-block;
  max-width: 100%;

  color: #fff;
  text-decoration: none;

  transition:
    color .2s ease,
    padding-left .2s ease;
}

.pl-hot-card .pl-card-links a:hover {
  padding-left: 5px;
  color: #ffffff;
}

.pl-hot-card:hover .pl-card-bg {
  transform: scale(1.06);
  opacity: .12;
}

.pl-hot-card:hover::after {
  opacity: 0;
}

.pl-hot-card:hover .pl-card-mask {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pl-hot-list > li:first-child .pl-card-links a:hover {
  color: #ffffff;
}

@media (max-width: 1024px) {

  .pl-hot-categories .pl-container {
    max-width: calc(100% - 30px);
  }

  .pl-hot-list {
    flex-wrap: wrap;
    margin: -7px;
  }

  .pl-hot-list > li {
    width: 50%;
    padding: 7px;
  }

  .pl-hot-card {
    height: auto;
    aspect-ratio: 1 / 1;
  }

}

@media (max-width: 720px) {

  .pl-hot-categories {
    padding: 28px 0;
  }

  .pl-hot-categories .pl-container {
    width: 100%;
    max-width: none;
    padding: 0 12px;
  }

  .pl-hot-categories .pl-section-title {
    margin-bottom: 18px;
    font-size: 24px;
  }


  /* 两列 */

  .pl-hot-list {
    display: flex;
    flex-wrap: wrap;

    margin: -5px;
  }

  .pl-hot-list > li {
    width: 50%;
    padding: 5px;
  }


  /* 关键：
     不再固定330px
     根据宽度自动保持1:1
  */

  .pl-hot-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;

    border-radius: 4px;
  }


  /* 手机端标题缩小 */

  .pl-hot-card .pl-card-title {
    top: 14px;
    left: 10px;
    right: 10px;

    font-size: 17px;
    line-height: 1.2;
  }

  .pl-hot-card .pl-card-title span {
    margin-top: 2px;

    font-size: 10px;
    line-height: 1.2;
  }


  /* Hover文字层 */

  .pl-hot-card .pl-card-mask {
    padding: 58px 12px 10px;

    overflow-y: auto;

    background: rgba(23, 23, 23, .97);
  }


  /* 链接进一步压缩 */

  .pl-hot-card .pl-card-links li {
    margin-bottom: 4px;

    font-size: 11px;
    line-height: 1.25;
  }

  .pl-hot-card .pl-card-links a:hover {
    padding-left: 3px;
  }

}

@media (max-width: 380px) {

  .pl-hot-categories .pl-container {
    padding: 0 8px;
  }

  .pl-hot-list {
    margin: -4px;
  }

  .pl-hot-list > li {
    padding: 4px;
  }

  .pl-hot-card .pl-card-title {
    top: 12px;
    left: 7px;
    right: 7px;

    font-size: 15px;
  }

  .pl-hot-card .pl-card-title span {
    font-size: 9px;
  }

  .pl-hot-card .pl-card-mask {
    padding: 52px 9px 8px;
  }

  .pl-hot-card .pl-card-links li {
    margin-bottom: 3px;

    font-size: 10px;
    line-height: 1.2;
  }

}