/* 搜索历史下拉组件样式 */
.search-history-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-width: 400px;
  background: #000;
  border: 0.5px solid #FFFFFF33;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  display: none;
  overflow: hidden;
  min-width: 300px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-history-dropdown.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.search-history-header {
  padding: 16px 20px;
  text-align: left;
  color: #FFF;

  /* Medium */
  font-family: "PingFang SC";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px; /* 137.5% */
}

.search-history-title {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.search-history-content {
  /* 移除滚动，最多展示5条 */
}

.search-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: left;

  overflow: hidden;

}

.search-history-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}


.search-history-text {
  flex: 1;
  color: rgba(255, 255, 255, 0.60);
text-overflow: ellipsis;
white-space: nowrap;

/* Regular */
font-family: "PingFang SC";
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 20px; /* 142.857% */
}

.search-history-delete {
  width: 16px;
  height: 16px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.search-history-delete:hover {
  opacity: 1;
}

.search-history-footer {
  padding: 12px 20px;
  text-align: center;
  background: #FFFFFF1A;
}

.search-history-clear-all {
  color: #EB7332;
  font-size: 14px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.search-history-clear-all:hover {
  opacity: 0.8;
}

.search-history-empty {
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* 搜索框容器需要相对定位 - 如果还没有设置的话 */
.pcNav .searchBox {
  position: relative;
}

/* 移动端适配 */
@media screen and (max-width: 1366px) {
  .search-history-dropdown {
    max-width: 100%;
  }
}
