/* 专题列表页 */

@media (min-width: 768px) {
  .only-h5 {
    display: none !important;
  }
}

.topic-page {
  background: #060611;
}

.topic-subheader {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  padding: 0 12px;
  background: #07060e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topic-subheader__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.topic-subheader__btn .icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.topic-subheader__title {
  flex: 1;
  text-align: center;
  color: #fff;
  font-size: calc(16px + var(--pc-font-boost, 0px));
  font-weight: 500;
  line-height: 22px;
}

.topic-grid--list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-content: flex-start;
  width: 100%;
}

.topic-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 407px;
  height: 200px;
  padding-left: 24px;
  overflow: hidden;
  background: #151326;
  border: 1px solid #34304b;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.topic-card:hover {
  border-color: rgba(241, 43, 158, 0.45);
}

.topic-card__info {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding-right: 8px;
}

.topic-card__eyebrow {
  color: #f12b9e;
  font-size: calc(12px + var(--pc-font-boost, 0px));
  font-weight: 400;
  line-height: 18px;
}

.topic-card__title {
  margin: 0;
  align-self: stretch;
  color: #fff;
  font-size: calc(18px + var(--pc-font-boost, 0px));
  font-weight: 600;
  line-height: 26px;
}

.topic-card__desc {
  margin: 0;
  align-self: stretch;
  color: #9994ad;
  font-size: calc(13px + var(--pc-font-boost, 0px));
  font-weight: 400;
  line-height: 20px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.topic-card__count {
  margin: 0;
  color: #696379;
  font-size: calc(12px + var(--pc-font-boost, 0px));
  font-weight: 400;
  line-height: 18px;
}

.topic-card__stack {
  position: relative;
  width: 150px;
  height: 200px;
  flex-shrink: 0;
}

.topic-card__stack img {
  position: absolute;
  width: 72px;
  height: 96px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  object-fit: cover;
}

.topic-card__stack img:nth-child(1) {
  left: 4px;
  top: 92px;
  opacity: 0.65;
}

.topic-card__stack img:nth-child(2) {
  left: 38px;
  top: 72px;
  opacity: 0.85;
}

.topic-card__stack img:nth-child(3) {
  left: 72px;
  top: 52px;
}

@media (max-width: 767px) {
  .only-pc {
    display: none !important;
  }

  body.page-topic .site-header,
  body.page-topic header.site-header {
    display: none !important;
  }

  .topic-subheader {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .topic-page.page-shell {
    padding: 12px 16px;
    gap: 18px;
  }

  .topic-page .list-hero {
    padding: 0;
    gap: 14px;
  }

  .topic-grid--list {
    gap: 12px;
  }

  .topic-card {
    width: 100%;
    height: 150px;
    padding-left: 16px;
    border-radius: 12px;
  }

  .topic-card__info {
    gap: 6px;
    padding: 0;
  }

  .topic-card__title {
    font-size: calc(15px + var(--pc-font-boost, 0px));
    line-height: 21px;
  }

  .topic-card__desc {
    font-size: calc(12px + var(--pc-font-boost, 0px));
    line-height: 18px;
  }

  .topic-card__count {
    font-size: calc(11px + var(--pc-font-boost, 0px));
    line-height: 16px;
  }

  .topic-card__stack {
    width: 112px;
    height: 150px;
  }

  .topic-card__stack img {
    width: 56px;
    height: 75px;
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  }

  .topic-card__stack img:nth-child(1) {
    left: 4px;
    top: 66px;
  }

  .topic-card__stack img:nth-child(2) {
    left: 30px;
    top: 52px;
  }

  .topic-card__stack img:nth-child(3) {
    left: 56px;
    top: 38px;
  }
}
