/* 可搜索下拉选择器样式 */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.searchable-select.disabled .select-trigger {
    cursor: not-allowed;
    background: #f3f4f6;
}

.select-trigger:hover:not(.disabled) {
    border-color: #3b82f6;
}

.select-value {
    flex: 1;
    color: #9ca3af;
    font-size: 0.875rem;
}

.select-value.selected {
    color: #111827;
}

.select-arrow {
    color: #6b7280;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.searchable-select.open .select-arrow {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

.select-search {
    padding: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.select-search-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    outline: none;
}

.select-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.select-items {
    overflow-y: auto;
    max-height: 240px;
}

.select-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s;
}

.select-item:hover {
    background: #f3f4f6;
}

.select-item:active {
    background: #e5e7eb;
}

.select-no-results {
    padding: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* 地区选择器网格布局 */
.region-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.region-selector-field {
    display: flex;
    flex-direction: column;
}

.region-selector-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.region-selector-field input.form-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.region-selector-field input.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .region-selector-grid {
        grid-template-columns: 1fr;
    }
}

/* 滚动条美化 */
.select-items::-webkit-scrollbar {
    width: 6px;
}

.select-items::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.select-items::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.select-items::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
