html {
    font-size: 18px; /* 设置根元素字体大小;不让myselect font-size 1rem 会很小 */
}

p {
    font-size: 1.2rem; /* 相对于根元素字体大小 */
}
.MySelect{
    z-index: 10001;
    cursor: pointer;
    line-height: 2rem;
    font-size: 1rem; /* 或其他你想要的大小 */
    display: inline-block;
    border:1px;
}
.MySelect .selected{
    display: inline-block;
    text-align: center; /* 水平居中文字 */
    width:120px;
    background-color: white;
    border: 1px solid black;
    z-index: 10001;
    border-radius: 3px;
    margin-left: 10px;
}
.MySelect .options {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1110001;
}

.MySelect .option {
    padding: 5px 10px;
    cursor: pointer;
    z-index: 1110001;
}

.MySelect .option:hover {
    background: #f0f0f0;
}

.MySelect a {
    text-decoration: none;
}

.mySelectModal .userDiv{
    cursor: pointer;
}
.mySelectModal .userDiv label{
    cursor: pointer;
}

.mySelectModal .modal-body{
    overflow-y: auto;
    max-height: 80vh; /* 视口高度的 80% */
}

.mySelectModal .modal-dialog {
    font-size: 1rem; /* 或其他你想要的大小 */
    line-height: 2rem;
    width:100vh;
}

/* 搜索框样式 */
.MySelect .search-box {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.MySelect .search-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.9rem;
}

.MySelect .search-input:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: 0 0 3px rgba(102, 175, 233, 0.3);
}

/* 选项列表滚动条 */
.MySelect .options-list {
    max-height: 250px;
    overflow-y: auto;
}

.MySelect .options-list::-webkit-scrollbar {
    width: 6px;
}

.MySelect .options-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.MySelect .options-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
