.smart-dropdown {
    position: relative;
    width: auto; /* 允许宽度根据内容自动调整 */
    min-width: 120px; /* 最小宽度为120px */
    max-width: 300px; /* 最大宽度为300px */
    font-family: Arial, sans-serif;
}

.smart-dropdown-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
.smart-dropdown-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}


.smart-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    margin-top: 2px;
}

.smart-dropdown-search {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.smart-search-input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

.smart-dropdown-content {
    max-height: 300px;
    overflow-y: auto;
}

.smart-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.smart-dropdown-item:hover {
    background: #f5f5f5;
}

.smart-dropdown-item.selected {
    background: #e6f7ff;
    color: #1890ff;
}

.smart-dropdown-pagination {
    padding: 8px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smart-pagination-info {
    font-size: 12px;
    color: #666;
}

.smart-pagination-controls button {
    padding: 4px 8px;
    margin-left: 4px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 3px;
    cursor: pointer;
}

.smart-pagination-controls button:hover:not(:disabled) {
    background: #f5f5f5;
}

.smart-pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading {
    padding: 20px;
    text-align: center;
    color: #999;
}

.error {
    padding: 20px;
    text-align: center;
    color: #f5222d;
}