/* Figma 2.0 — node 290:27212 搜索/结果页 */
.search-page {
  --search-heat: #fbcc4d;
  --search-kw: #f3ce00;
}

.search-page .search-shell {
  margin-top: 7px;
}

.search-page .search-shell-inner {
  gap: 24px;
}

.search-page .search-hero-title {
  margin: 0;
  padding: 10px 0 0;
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  line-height: normal;
  text-align: center;
}

.search-page .search-form {
  width: 100%;
}

.search-page .search-input-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 44px;
}

.search-page .search-input {
  width: 100%;
  height: 44px;
  padding: 0 84px 0 24px;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  outline: none;
  box-sizing: border-box;
}

.search-page .search-input::placeholder {
  color: var(--home-muted);
}

.search-page.search-page--has-query .search-input {
  font-size: 16px;
}

.search-page .search-submit {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 72px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--home-accent);
  cursor: pointer;
}

.search-page .search-submit-icon {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.search-page .search-landing {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.search-page .search-landing-section--history:not(:has(.search-history-empty)) + .search-landing-section--hot {
  margin-top: 24px;
}

.search-page .search-landing-section--history:has(.search-history-empty) + .search-landing-section--hot {
  margin-top: 0;
}

.search-page .search-results-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-page .search-results-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.search-page .search-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  margin: 0;
}

.search-page .search-section-label {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.search-page .search-section-icon {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
}

.search-page .search-section-title {
  margin: 0;
  padding-left: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
}

.search-page .search-clear-history {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 24px;
  padding: 0;
  cursor: pointer;
}

.search-page .search-clear-history:hover {
  color: var(--home-text);
}

.search-page .search-clear-history:disabled {
  opacity: 0.45;
  cursor: default;
}

.search-page .search-clear-history:disabled:hover {
  color: var(--home-muted);
}

.search-page .search-clear-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
}

.search-page .search-history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.search-page .search-history-tags.is-empty {
  display: block;
  width: 100%;
}

.search-page .search-history-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--home-muted);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.search-page .search-history-tag:hover {
  color: var(--home-text);
}

.search-page .search-history-empty,
.search-page .search-empty-copy {
  color: var(--home-muted);
  font-size: 14px;
  line-height: 20px;
}

.search-page .search-history-tags .search-history-empty {
  width: 100%;
  margin: 0;
  padding: 52px 0;
  text-align: center;
  box-sizing: border-box;
}

.search-page .search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 240px;
  max-width: 100%;
  margin: 73px auto 0;
}

.search-page .search-empty-illustration {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.search-page .search-empty-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-page .search-empty-state .search-empty-copy {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  line-height: normal;
}

.search-page .search-landing-section--hot .search-section-head {
  margin-bottom: 0;
}

.search-page .search-hot-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-page .search-hot-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 1px;
  align-items: center;
  min-height: 32px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.search-page .search-hot-rank-img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.search-page .search-hot-rank-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  z-index: 0;
}

.search-page .search-hot-rank-num::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  background: url('/assets/icons/search/rank-circle.svg') center / contain no-repeat;
  z-index: -1;
}

.search-page .search-hot-term {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.search-page .search-hot-heat {
  color: var(--search-heat);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.search-page .search-results-title {
  margin: 0;
  padding-left: 34px;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--home-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  text-align: left;
}

.search-page .search-kw {
  overflow-wrap: anywhere;
  color: var(--search-kw);
  font-weight: inherit;
}

.search-page .search-results-title .search-kw,
.search-page .home-feed-title .search-kw,
.search-page .home-feed-subtitle .search-kw,
.search-page .search-request-title .search-kw,
.search-page .search-request-intro .search-kw {
  color: var(--search-kw);
}

.search-page .search-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
}

.search-page .search-tab {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--home-muted);
  font-size: 16px;
  line-height: normal;
  width: 102px;
  min-width: 102px;
  height: 36px;
  padding: 8px 10px;
  border-radius: 100px;
  cursor: pointer;
}

.search-page .search-tab.is-active {
  background: var(--home-accent);
  color: #fff;
}

.search-page .search-feed.home-feed {
  gap: 16px;
}

.search-page .search-request-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-height: 132px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--home-card-bg);
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.search-page .search-request-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}

.search-page .search-request-type {
  flex: 0 0 102px;
  width: 102px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--search-kw);
  border-radius: 100px;
  background: transparent;
  color: var(--search-kw);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  box-sizing: border-box;
}

.search-page .search-request-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-page .search-request-intro {
  margin: 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-page .search-request-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  min-height: 24px;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 24px;
}

.search-page .search-request-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
}

.search-page .search-request-meta-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.search-page .search-pager.home-pager {
  /* stack gap is 16px; add 8px to match Figma feed-to-pager 24px */
  margin-top: 8px;
}

.search-page .search-pager .home-pager-input-wrap {
  width: 80px;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 14px;
}

.search-page .search-pager input[type="number"] {
  font-size: 16px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 800px) {
  .search-page .search-hero-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    padding-top: 0;
  }

  .search-page .search-shell {
    max-width: calc(100% - 20px);
    padding: 16px 10px;
    border-radius: 10px;
  }

  .search-page .search-shell-inner {
    gap: 20px;
  }

  .search-page .search-section-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
  }

  .search-page .search-section-icon {
    width: 22px;
    height: 22px;
  }

  .search-page .search-clear-history {
    font-size: 12px;
  }

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

  .search-page .search-history-tag {
    height: 26px;
    padding: 0 14px;
    font-size: 13px;
  }

  .search-page .search-hot-item {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    min-height: 28px;
  }

  .search-page .search-hot-rank-img {
    width: 28px;
    height: 28px;
  }

  .search-page .search-hot-rank-num {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .search-page .search-hot-term {
    font-size: 14px;
  }

  .search-page .search-hot-heat {
    font-size: 13px;
  }

  .search-page .search-results-title {
    font-size: 18px;
    line-height: 24px;
    padding-left: 0;
  }

  .search-page .search-empty-state {
    margin-top: 40px;
    width: min(240px, 72vw);
  }

  .search-page .search-empty-illustration {
    width: min(240px, 72vw);
  }

  .search-page .search-feed .home-feed-card {
    width: 100%;
    max-width: 343px;
    height: auto;
    min-height: 116px;
  }

  .search-page .search-feed .home-feed-subtitle {
    display: -webkit-box;
    margin: 0 0 8px;
    color: var(--home-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .search-page .search-request-card {
    padding: 12px 14px;
    border-radius: 6px;
    min-height: 112px;
  }

  .search-page .search-request-type {
    flex-basis: 88px;
    width: 88px;
    height: 32px;
    font-size: 14px;
  }

  .search-page .search-request-title {
    font-size: 16px;
    line-height: 20px;
  }

  .search-page .search-request-intro {
    font-size: 12px;
    line-height: 17px;
  }

  .search-page .search-request-meta {
    font-size: 12px;
    line-height: 20px;
    gap: 12px;
  }

  .search-page .search-request-meta-item {
    min-height: 20px;
  }

  .search-page .search-request-meta-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .search-page .search-history-tags .search-history-empty {
    padding: 40px 0;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
  }

  .search-page .search-history-empty,
  .search-page .search-empty-copy {
    padding: 24px 0;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
  }

  .search-page .search-pager.home-pager {
    margin-top: 8px;
  }

  .search-page .search-pager .home-pager-input-wrap {
    width: 56px;
    min-height: 28px;
    padding: 4px 8px;
  }

  .search-page .search-pager input[type="number"] {
    font-size: 12px;
  }
}
