/* 下拉选择器组件样式 */
.custom-select {
    position: relative;
    width: 100%;
}

.select-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    background-color: #fff;
    border: 1px solid #bbb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.select-header:hover {
    border-color: #999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.select-header::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #666;
    transition: transform 0.3s ease;
}

.select-header.open::after {
    transform: rotate(180deg);
}

.selected-option.placeholder {
    color: #757575;
}

.options-container {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    z-index: 100;
}

.select-header.open + .options-container {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
}

/* 隐藏滚动条但保留滚动功能 */
.options-container::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.option {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 1rem;
    color: #444;
    display: flex;
    align-items: center;
}

.option:last-child {
    border-bottom: none;
}

.option:hover {
    background-color: #f8f8f8;
    color: #333;
}

.option.selected {
    background-color: #f0f8ff;
    color: #2c6aa0;
    font-weight: 500;
}

.option::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #bbb;
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.option.selected::before {
    background-color: #3498db;
    border-color: #3498db;
    box-shadow: inset 0 0 0 4px white;
}

.placeholder-text {
    color: #757575;
}