/* 历史面板基础样式（关键：默认隐藏+定位） */
#historyPanel {
  display: none; /* 默认隐藏 */
  position: absolute; /* 相对于输入框定位 */
  top: 100%;
  /* left: 0; */
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 9999; /* 确保在最上层 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 仅新增X按钮样式，其余样式保持你原来的不变 */
.history-del:hover {
  color: #ff4d4f; /* 鼠标移到X上变红，和原有交互风格一致 */
}

/* 输入框容器加相对定位（让面板定位正确） */
.form-group { /* 替换为你输入框的父容器类名 */
  position: relative;
}

/* 历史列表样式 */
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.history-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
}
.history-item:hover {
  background-color: #f5f7fa;
}
.empty-history {
  padding: 12px;
  color: #999;
  text-align: center;
  font-size: 14px;
}