.custom-select {
    position: relative;
    width: 300px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.select-box {
    position: relative;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
    z-index: 1001;
}

.select-input {
    width: 100%;
    padding: 8px;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
    text-align: center; /* 添加文字居中 */
}

.select-dropdown {
    display: none;
    position: absolute;
    width: 100%;
    bottom: 100%;
    margin-bottom: 2px;
    border: 1px solid #ccc;
    background: white;
    z-index: 1000;
    box-sizing: border-box;
    height: 200px;
}

.options-wrapper {
    display: flex;
    height: 100%;
    box-sizing: border-box;
}

.options-container {
    flex: 1;
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
}

.kzhoption {
    cursor: pointer;
    white-space: nowrap;
    height: 32px;
    line-height: 32px;
}

.kzhoption a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 0 8px;
    height: 100%;
}

.kzhoption:hover {
    background-color: #1E90FF;
    color: white;
}

.kzhoption:hover a {
    color: white;
}

.arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.select-dropdown.active {
    display: block;
}

.options-wrapper {
    display: flex;
    height: 100%;
}

.options-container {
    flex: 1;
    overflow-y: hidden;
}

.kzhoption {
    /* padding: 8px; */
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    /* width: 100%;
    height: 100%; */
}

.kzhoption:hover a, .kzhoption.selected a {
    color: white;
}

.kzhoption:hover, .kzhoption.selected {
    background-color: #1E90FF;
    color: white;
}

.scrollbar {
    width: 16px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.scroll-up,
.scroll-down {
    height: 16px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    padding: 0;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-up.disabled,
.scroll-down.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.scroll-track {
    flex: 1;
    position: relative;
    background: #f5f5f5;
}

.scroll-thumb {
    position: absolute;
    width: 14px;
    min-height: 30px;
    background: #ccc;
    left: 1px;
    cursor: pointer;
}

.scroll-thumb:hover {
    background: #999;
}