/* Panda 主题静态样式：由 panda/widgets/widgets/hot-widgets.php 提取，此处不要写 PHP */
            /** 首页热门排行榜小工具 **/
#syphb.panda-hot-widget {
  --hot-gap: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--hot-gap);
  width: 100%;
}

#syphb.panda-hot-widget .panda_new_post_label {
  display: none;
}

#syphb.panda-hot-widget .ranking-item {
  position: relative;
  flex: 0 0 calc((100% - (var(--hot-gap) * 2)) / 3);
  min-width: 0;
  margin: 0;
  padding: 54px 14px 14px;
  box-sizing: border-box;
  background: var(--main-bg-color);
  box-shadow: 0 0 10px var(--main-shadow);
  border-radius: var(--main-radius);
}

#syphb.panda-hot-widget a.top-icon {
  display: block;
  width: 129px;
  height: 43px;
  line-height: 32px;
  position: absolute;
  left: 50%;
  top: -7px;
  transform: translateX(-50%);
  font-size: 18px;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

#syphb.panda-hot-widget a.top-icon.js-rank-bottom1 {
  background: url("../../img/widgets/hot/ranking1.png") no-repeat center/100%;
}

#syphb.panda-hot-widget a.top-icon.js-rank-bottom2 {
  background: url("../../img/widgets/hot/ranking2.png") no-repeat center/100%;
}

#syphb.panda-hot-widget a.top-icon.js-rank-bottom3 {
  background: url("../../img/widgets/hot/ranking3.png") no-repeat center/100%;
}

#syphb.panda-hot-widget .class-box {
  margin-top: 0;
}

#syphb.panda-hot-widget a.class-item.js-rank {
  display: grid;
  grid-template-columns: 40px 90px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 70px;
  margin-bottom: 14px;
}

#syphb.panda-hot-widget a.class-item.js-rank:last-child {
  margin-bottom: 0;
}

#syphb.panda-hot-widget .num-icon {
  width: 40px;
  height: 22px;
  margin: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

#syphb.panda-hot-widget .num-icon.num-icon1 {
  background-image: url("../../img/widgets/hot/top1.png");
}

#syphb.panda-hot-widget .num-icon.num-icon2 {
  background-image: url("../../img/widgets/hot/top2.png");
}

#syphb.panda-hot-widget .num-icon.num-icon3 {
  background-image: url("../../img/widgets/hot/top3.png");
}

#syphb.panda-hot-widget .num-icon.num-icon4 {
  background-image: url("../../img/widgets/hot/top4.png");
}

#syphb.panda-hot-widget .num-icon.num-icon5 {
  background-image: url("../../img/widgets/hot/top5.png");
}

#syphb.panda-hot-widget .syphimg {
  width: 90px;
  height: 60px;
  margin-right: 0;
  overflow: hidden;
  border-radius: 8px;
  display: block;
}

#syphb.panda-hot-widget .syphimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#syphb.panda-hot-widget .class-info {
  width: auto;
  min-width: 0;
  font-size: 12px;
}

#syphb.panda-hot-widget .name {
  color: var(--key-color);
  line-height: 20px;
  font-weight: 400;
  margin-bottom: 4px;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

#syphb.panda-hot-widget .class-info .badg {
  margin: 0 6px 6px 0;
}

#syphb.panda-hot-widget a.bottom-link.js-rank-bottom {
  width: max-content;
  min-width: 120px;
  max-width: 100%;
  height: 28px;
  padding: 0 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 14px auto 0;
  font-size: 12px;
  color: #fff;
  line-height: 1;
  font-weight: 500;
  background-image: linear-gradient(270deg, #4063ffa3 0, #409eff 100%);
  border-radius: 14px;
}

@media (max-width: 992px) {
  #syphb.panda-hot-widget .ranking-item {
    flex-basis: calc((100% - var(--hot-gap)) / 2);
  }
}

@media (max-width: 768px) {
  #syphb.panda-hot-widget { gap: 12px; }
  #syphb.panda-hot-widget .ranking-item {
    flex-basis: 100%;
  }
  #syphb.panda-hot-widget .ranking-item {
    padding: 50px 12px 12px;
  }
  #syphb.panda-hot-widget a.class-item.js-rank {
    grid-template-columns: 32px 82px minmax(0, 1fr);
    column-gap: 8px;
    min-height: 64px;
    margin-bottom: 12px;
  }
  #syphb.panda-hot-widget .num-icon {
    width: 32px;
    height: 18px;
  }
  #syphb.panda-hot-widget .syphimg {
    width: 82px;
    height: 54px;
  }
  #syphb.panda-hot-widget .name {
    line-height: 18px;
  }
}

@media (max-width: 480px) {
  #syphb.panda-hot-widget a.top-icon {
    width: 116px;
    font-size: 16px;
  }
  #syphb.panda-hot-widget a.bottom-link.js-rank-bottom {
    width: 100%;
  }
}
