/* 统一select标签样式 */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 100%;
    color: #1f2937;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    transition: all 0.2s ease;
}

select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 修复select在不同浏览器中的样式差异 */
select::-ms-expand {
    display: none;
}

/* 修复select在Firefox中的内边距问题 */
@-moz-document url-prefix() {
    select {
        text-indent: 0.01px;
        text-overflow: '';
        padding-right: 2.5rem;
    }
}

/* 修复select在Safari和Chrome中的样式问题 */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    select {
        padding-right: 2.5rem;
    }
}

/* 修复select在IE中的样式问题 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    select {
        padding-right: 2.5rem;
    }
}

/* 为select添加自定义下拉箭头容器 */
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 0.8rem;
    height: 0.8rem;
    pointer-events: none;
}