/* Hot search page — dark theme, PC + H5 */

.hot-search-static {
  --hs-bg: #0f0f0f;
  --hs-text: #fff;
  --hs-muted: rgba(255, 255, 255, 0.55);
  --hs-accent: #ecd227;
  --hs-accent-bg: rgba(255, 225, 32, 0.1);
  --hs-outline: rgba(255, 255, 255, 0.05);
  --hs-divider: rgba(255, 255, 255, 0.1);
  --hs-tab-bg: rgba(255, 255, 255, 0.05);
  --hs-font: "PingFang SC", "Noto Sans SC", sans-serif;
  width: 100%;
  box-sizing: border-box;
  background: var(--hs-bg);
  color: var(--hs-text);
  font-family: var(--hs-font);
}

.hot-search-static *,
.hot-search-static *::before,
.hot-search-static *::after {
  box-sizing: border-box;
}

body.home-page.search-hot-page .page-main {
  gap: 0;
  padding: 0;
  max-width: none;
  width: 100%;
}

.hot-search-view {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.hot-search-inner {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 30px;
}

.hot-search-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  gap: 12px;
  padding: 24px 18px;
  background: var(--hs-accent-bg);
  border-radius: 12px;
}

.hot-search-crumb {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
}

.hot-search-crumb__link {
  color: var(--hs-text);
}

.hot-search-crumb__current {
  color: var(--hs-muted);
}

.hot-search-banner__title {
  margin: 0;
  align-self: stretch;
  color: var(--hs-text);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
}

.hot-search-alert {
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 80, 80, 0.12);
  color: #ffb4b4;
  font-size: 14px;
  line-height: 20px;
}

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

.hot-search-tab {
  width: 120px;
  margin: 0;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  border: 1px solid var(--hs-outline);
  background: var(--hs-tab-bg);
  color: var(--hs-muted);
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.hot-search-tab--active {
  background: var(--hs-accent-bg);
  color: var(--hs-accent);
}

.hot-search-divider {
  align-self: stretch;
  height: 1px;
  background: var(--hs-divider);
}

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

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

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

/* ========== H5 ========== */
@media (max-width: 768px) {
  .hot-search-view {
    padding: 12px 16px 24px;
  }

  .hot-search-inner {
    gap: 18px;
  }

  .hot-search-banner {
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
  }

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

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

  .hot-search-tabs {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
  }

  .hot-search-tab {
    width: auto;
    min-width: 0;
    padding: 6px 18px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 18px;
  }

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

  /* Figma H5: banner → divider → tabs → tags */
  .hot-search-divider {
    order: 2;
  }

  .hot-search-tabs {
    order: 3;
  }

  .hot-search-panels {
    order: 4;
  }
}

/* ========== PC ========== */
@media (min-width: 769px) {
  .hot-search-view {
    padding: 30px 200px 60px;
  }
}

@media (min-width: 769px) and (max-width: 1600px) {
  .hot-search-view {
    padding-left: 48px;
    padding-right: 48px;
  }
}
