/* 下拉框容器 - 用于定位自定义箭头 */
.yn-select-wrapper {
    position: relative;
    width: 100%;
}

/* 隐藏原生下拉箭头，统一样式 */
.yn-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px !important; /* 给箭头留空间 */
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    height: calc(3.5rem + 2px);
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
}

/* 自定义下拉箭头（伪元素实现） */
.yn-select-wrapper::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #6c757d; /* 箭头颜色 */
    pointer-events: none; /* 不影响下拉框点击 */
}

/* 聚焦/hover 样式优化 */
.yn-select:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .yn-select {
        height: calc(3rem + 2px);
    }
    .yn-select-wrapper::after {
        right: 8px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #6c757d;
    }
}
