.search-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.search-header__title {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.search-rank-tabs {
  display: flex;
  flex: 0 0 auto;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.search-rank-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border: none;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.search-rank-tab:hover {
  opacity: 0.9;
}

.search-rank-tab.is-active {
  background-color: var(--dx-primary-color);
  color: #fff;
}

.search-results.is-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s;
}

.search-related {
  padding-bottom: 24px;
}

.search-related__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.search-related__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-related__tags > li {
  display: flex;
  flex: 0 0 auto;
}

.search-related__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 16px;
  border-radius: 8px;
  background-color: var(--dx-base10-color);
  color: var(--dx-primary-color);
  font-size: 14px;
  line-height: 1;
  text-align: center;
  transition: opacity 0.2s;
}

.search-related__tag:hover {
  opacity: 0.85;
  color: var(--dx-primary-color);
}

@media (max-width: 768px) {
  .search-header__title .dx-title {
    font-size: 14px;
  }

  .search-rank-tab {
    padding: 6px 12px;
    font-size: 12px;
  }

  .search-related__title {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .search-related__tags {
    gap: 10px 0;
  }

  .search-related__tags > li {
    flex: 0 0 calc(50% - 5px);
  }

  .search-related__tag {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ===== 搜索页 FAQ 板块（翻页下方，5条左右两列） ===== */
.search-faq__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.search-faq__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-faq__item {
  padding: 14px 16px;
  border-radius: 8px;
  background-color: var(--dx-base10-color);
}

.search-faq__q {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
}

.search-faq__a {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 768px) {
  .search-faq__title {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .search-faq__list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .search-faq__item {
    padding: 12px;
  }
}
