/* 公共自定义下拉组件样式 */
:root {
    --custom-select-bg: #ffffff;
    --custom-select-border: #e0e0e0;
    --custom-select-text: #2c3e50;
    --custom-select-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --custom-select-radius: 12px;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

select.custom-select-hidden {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.custom-select {
    position: relative;
    background: var(--custom-select-bg);
    border: 2px solid var(--custom-select-border);
    border-radius: var(--custom-select-radius);
    padding: 0 0.5rem;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 42px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.custom-select.is-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.custom-select.is-open {
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.15);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-select-value {
    font-size: 0.95rem;
    color: var(--custom-select-text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.custom-select-arrow {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.custom-select-arrow svg {
    width: 14px;
    height: 14px;
    fill: var(--primary-color);
}

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

.custom-select-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--custom-select-bg);
    border: 2px solid var(--primary-color);
    border-top: none;
    border-bottom-left-radius: var(--custom-select-radius);
    border-bottom-right-radius: var(--custom-select-radius);
    box-shadow: var(--custom-select-shadow);
    z-index: 100;
    max-height: 260px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.custom-select.is-open + .custom-select-panel,
.custom-select-wrapper.is-open .custom-select-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
    color: var(--custom-select-text);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.custom-select-option:hover {
    background: #fff5f0;
    color: var(--primary-color);
}

.custom-select-option.is-selected {
    font-weight: 600;
    color: var(--primary-color);
}

.custom-select-option.is-selected::after {
    content: '✔';
    font-size: 0.8rem;
    color: var(--primary-color);
}

.custom-select-option.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.custom-select-empty {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
}


