/* 自定义下拉选择器样式 */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select-trigger {
    width: 100%;
    padding: 8px 0;
    border-radius: 4px;
    border: 2px solid #FFD700;
    background: #1a1a1a;
    color: white;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.custom-select-trigger:hover {
    border-color: #FFA500;
}

.custom-select-trigger::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.custom-select-trigger.open::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: #1a1a1a;
    border: 2px solid #FFD700;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    display: none;
    margin-top: -2px;
}

.custom-select-options.open {
    display: block;
}

.custom-select-option {
    padding: 1px 0;
    text-align: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.1;
}

.custom-select-option:hover {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
}

.custom-select-option.selected {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
}

@media (max-width: 768px) {
    .custom-select-trigger {
        font-size: 0.82rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .custom-select-option {
        font-size: 0.78rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.05;
    }
}

/* 滚动条样式 */
.custom-select-options::-webkit-scrollbar {
    width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: #FFA500;
}
