/* 筛选下拉框组件样式 */
.filter-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.filter-dropdown {
    position: relative;
}

/* 自定义下拉框样式 */
.custom-dropdown {
    position: relative;
    min-width: 130px;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    user-select: none;
}

.dropdown-selected:hover {
    border-color: #b3d8ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.dropdown-selected.active {
    border-color: #409eff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dropdown-arrow {
    font-size: 12px;
    color: #909399;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.dropdown-selected.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 4px;
}

.dropdown-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 12px 16px;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f7fa;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: #f5f7fa;
    color: #409eff;
}

.dropdown-option[data-selected="true"] {
    background-color: #409eff;
    color: #ffffff;
    font-weight: 500;
}

.dropdown-option[data-selected="true"]:hover {
    background-color: #337ecc;
}

/* 滚动条样式 */
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 兼容原生select的样式（隐藏状态） */
.filter-dropdown select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    padding: 10px 36px 10px 16px;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
    min-width: 130px;
    transition: all 0.3s ease;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 10px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-dropdown select:hover {
    border-color: #b3d8ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.filter-dropdown select:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-right {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .filter-dropdown,
    .custom-dropdown {
        flex: 1;
        min-width: auto;
    }

    .dropdown-selected {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 6px;
    }

    .dropdown-option {
        padding: 10px 12px;
        font-size: 13px;
    }

    .dropdown-arrow {
        font-size: 10px;
    }

    .filter-dropdown select {
        width: 100%;
        min-width: auto;
        font-size: 13px;
        padding: 8px 28px 8px 12px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .filter-right {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }

    .custom-dropdown {
        min-width: 100px;
    }

    .dropdown-selected {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 4px;
    }

    .dropdown-option {
        padding: 8px 10px;
        font-size: 12px;
    }

    .dropdown-arrow {
        font-size: 9px;
        margin-left: 6px;
    }

    .dropdown-options {
        border-radius: 4px;
        max-height: 150px;
    }

    .filter-dropdown select {
        min-width: 100px;
        font-size: 12px;
        padding: 6px 24px 6px 10px;
        border-radius: 4px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-right {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .filter-dropdown {
        flex: 1;
    }

    .filter-dropdown select {
        width: 100%;
        min-width: auto;
        font-size: 13px;
        padding: 8px 32px 8px 12px;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    .filter-dropdown select:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        transform: none;
    }

    .filter-dropdown select:focus {
        box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.12);
        transform: none;
    }

    .filter-dropdown select option {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .filter-right {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
        flex-wrap: wrap;
    }

    .filter-dropdown select {
        min-width: 110px;
        font-size: 13px;
        padding: 8px 30px 8px 12px;
        border-radius: 6px;
    }

    .filter-dropdown select option {
        padding: 6px 12px;
        font-size: 13px;
    }
}