﻿
.customSelect001 {
    font-size:15px;
    position: relative;
    width: 120px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.customSelect001 .select-header {
    padding: 0 10px 0 30px;
    height:38px;
    background: white;
    border: 1px solid rgba(45,125,255,.7);
    border-radius: 30px 0  0 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    color:#336;
    user-select: none;
}

.customSelect001 .select-header:hover {
    border-color: #999;
}

.customSelect001 .select-header.active {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.customSelect001 .select-arrow {
    transition: transform 0.2s;
    color: #666;
}

.customSelect001 .select-header.active .select-arrow {
    transform: rotate(180deg);
    color: #4a6cf7;
}

.customSelect001 .select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s;
    z-index: 1000;
    max-height: 400px; /* 限制最大高度 */
    overflow-y: auto;  /* 添加垂直滚动条 */
}

.customSelect001 .select-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 自定义滚动条样式 */
.customSelect001 .select-options::-webkit-scrollbar {
    width: 8px;
}

.customSelect001 .select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.customSelect001 .select-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.customSelect001 .select-options::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* 分类标签 - 淡化样式 */
.customSelect001 .category-label {
    color: #2765dc;
    text-align:left;
    cursor: default;
    user-select: none;
    letter-spacing: 0.5px;
    position: sticky; /* 保持分类标签在顶部可见 */
    top: 0;
    z-index: 10;
    background:#FFF;
}

.customSelect001 .category-label .t{
    display:block;
}

.customSelect001 .category-label .b{
    padding:0 5px;
    font-size:11px;
    display:block;
    color:#a0d197;
}

/* 可选项样式 */
.customSelect001 .option-item {
    padding: 5px 25px 5px 5px;
    cursor: pointer;
    transition: all 0.15s;
    color: #555;
    border-left: 5px solid transparent;
    font-family: 'Consolas', 'Monaco', monospace;
}

.customSelect001 .option-item:hover {
    background: #f5f7ff;
    border-left-color: #4a6cf7;
}

.customSelect001 .option-item.selected {
    background: #f0f4ff;
    color: #4a6cf7;
    font-weight: bold;
    border-left-color: #4a6cf7;
}
