.search-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}
.search-input-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}
.search-input {
    width: 100%;
    padding: 10px 30px 10px 10px; /* 右侧留出空间给清除按钮 */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    outline: none;
    box-sizing: border-box; /* 确保 padding 不会影响宽度 */
}
.clear-button {
    position: absolute;
    right: 10px; /* 调整清除按钮的位置 */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
}
.clear-button:hover {
    color: #333;
}
.search-button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
    height: 100%; /* 确保按钮高度与输入框一致 */
    box-sizing: border-box; /* 确保 padding 不会影响高度 */
}
.search-button:hover {
    background-color: #0056b3;
}
.history-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}
.history-item {
    padding: 10px;
    cursor: pointer;
}
.history-item:hover {
    background-color: #f1f1f1;
}
