/* Hot search page */

.search-hot-page .page-main {
  gap: 30px;
  padding: 30px 0;
}

.hot-search-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 30px;
}

.topic-banner {
  align-self: stretch;
  padding: 24px 18px;
  background: var(--color-primary-alpha-10);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breadcrumb {
  margin: 0;
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
}

.breadcrumb a {
  color: var(--text-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-primary-500);
}

.breadcrumb__current {
  color: var(--text-secondary);
}

.topic-banner__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 20px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 28px;
}

.hot-search-divider {
  align-self: stretch;
  width: 100%;
  height: 1px;
  margin: 0;
  border: none;
  background: var(--color-black-alpha-10);
}

.hot-search-error {
  padding: 12px;
  color: #c00;
  background: #fff3f3;
  border-radius: 8px;
}

.hot-search-tabs.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-self: stretch;
}

.hot-search-tabs .rank-tab {
  width: 120px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  outline: 1px solid var(--color-black-alpha-5);
  outline-offset: -1px;
  background: transparent;
  color: var(--color-neutral-900);
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.hot-search-tabs .rank-tab--active {
  background: var(--color-neutral-900);
  color: #fff;
  outline-color: var(--color-neutral-900);
}

.hot-tags-panels {
  align-self: stretch;
}

.hot-tags {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 18px;
}

.hot-tags[hidden] {
  display: none !important;
}

.hot-tag {
  height: 44px;
  padding: 8px 18px;
  border: none;
  border-radius: 22px;
  outline: 1px solid var(--color-black-alpha-5);
  outline-offset: -1px;
  background: transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--color-primary-500);
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.hot-tag:hover {
  background: var(--color-primary-alpha-10);
}

@media (max-width: 768px) {
  .search-hot-page .page-main {
    gap: 0;
    padding: 12px 0;
  }

  .search-hot-page .hot-search-section.layout-section {
    gap: 18px;
  }

  .search-hot-page .topic-banner {
    padding: 6px 12px;
    border-radius: 6px;
    gap: 6px;
    background: rgba(136, 89, 249, 0.1);
  }

  .search-hot-page .breadcrumb {
    font-size: 12px;
    line-height: 18px;
  }

  .search-hot-page .topic-banner__title {
    font-size: 14px;
    line-height: 20px;
  }

  .search-hot-page .hot-search-tabs.rank-tabs {
    display: flex;
    align-self: stretch;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
  }

  .search-hot-page .hot-search-tabs .rank-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 6px 24px;
    border: none;
    border-radius: 12px;
    outline: 1px solid rgba(0, 0, 0, 0.05);
    outline-offset: -1px;
    background: transparent;
    color: #0d0d0d;
    font-size: 12px;
    font-family: PingFang SC, sans-serif;
    font-weight: 400;
    line-height: 18px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
  }

  .search-hot-page .hot-search-tabs .rank-tab--active {
    background: #0d0d0d;
    color: #fff;
    font-weight: 500;
    outline-color: #0d0d0d;
  }

  .search-hot-page .hot-tags {
    gap: 12px;
  }

  .search-hot-page .hot-tag {
    height: auto;
    min-height: 0;
    padding: 8px 12px;
    border-radius: 22px;
    font-size: 14px;
    line-height: 20px;
  }
}
