/* 筛选区域主容器 - 增强视觉容器感 */
.filter-wrapper {
    margin-bottom: 40px;
    padding: 24px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
}

/* 筛选项行布局 - 保持flex-stack原有逻辑并优化 */
.d-flex.flex-stack {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 8px;
    flex-wrap: nowrap; /* 强制不换行 */
}

/* 标签容器 - 固定宽度并优化对齐 */
.d-flex.align-items-center.w-100px {
    width: 100px;
    min-width: 100px; /* 防止收缩 */
    display: flex;
    align-items: center;
    padding-right: 12px;
    box-sizing: border-box;
}

/* 标签文本样式 - 增强可读性 */
.text-gray-800.text-hover-primary.fw-bold {
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.text-gray-800.text-hover-primary.fw-bold:hover {
    color: #165DFF; /* 主色调 */
    cursor: default;
}

/* 筛选内容容器 - 核心布局优化 */
.d-flex.align-items-center.w-100 {
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: nowrap; /* 禁止换行 */
    gap: 10px;
    overflow-x: auto; /* 小屏幕横向滚动 */
    scrollbar-width: none; /* 隐藏Firefox滚动条 */
    padding: 4px 0;
}

/* 隐藏Chrome/Safari滚动条 */
.d-flex.align-items-center.w-100::-webkit-scrollbar {
    display: none;
}

/* 徽章样式 - 美化优化 */
.badge.badge-light.fw-bold {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 13px;
    color: #495057;
    background-color: #f5f7fa;
    border: 1px solid #e8ebf0;
    text-decoration: none;
    white-space: nowrap; /* 文字不换行 */
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 选中状态徽章 - 增强对比 */
.badge.badge-light.fw-bold.badge-light-primary {
    color: #165DFF;
    background-color: #e8f3ff;
    border-color: #b3d9ff;
    box-shadow: 0 2px 6px 0 rgba(22, 93, 255, 0.12);
}

/* 徽章hover效果 */
.badge.badge-light.fw-bold:not(.badge-light-primary):hover {
    color: #165DFF;
    background-color: #f0f5ff;
    border-color: #d1e3ff;
    transform: translateY(-1px);
}

/* 分隔线样式 - 更精致 */
.separator.separator-dashed.my-3 {
    height: 1px;
    background-color: #f0f2f5;
    margin: 18px 0;
    border-style: dashed;
    opacity: 0.8;
}

/* 搜索框容器 - 优化定位和尺寸 */
.d-flex.align-items-center.position-relative.me-4 {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 12px;
    flex: 1; /* 占满剩余空间 */
    min-width: 200px; /* 最小宽度防止挤压 */
}

/* 搜索图标样式 - 优化位置和颜色 */
.svg-icon.svg-icon-3.position-absolute.ms-3 {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #86909c;
}

/* 搜索输入框 - 美化样式 */
.form-control.form-control-sm.w-250px.ps-10 {
    width: 100% !important; /* 覆盖原有宽度，自适应 */
    max-width: 320px; /* 最大宽度限制 */
    padding: 10px 12px 10px 42px; /* 优化内边距 */
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #dcdfe6;
    background-color: #ffffff;
    color: #2d3748;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* 输入框聚焦效果 */
.form-control.form-control-sm.w-250px.ps-10:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
    background-color: #f9fbff;
}

/* 输入框占位符样式 */
.form-control.form-control-sm.w-250px.ps-10::placeholder {
    color: #86909c;
    font-size: 12px;
}

/* 搜索按钮 - 美化优化 */
.btn.btn-primary.btn-sm {
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    background-color: #165DFF;
    color: #ffffff;
    border: none;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

/* 按钮hover效果 */
.btn.btn-primary.btn-sm:hover {
    background-color: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px 0 rgba(22, 93, 255, 0.18);
}

/* 按钮active效果 */
.btn.btn-primary.btn-sm:active {
    background-color: #0b3d8b;
    transform: translateY(0);
    box-shadow: 0 2px 6px 0 rgba(22, 93, 255, 0.15);
}

/* 响应式适配 - 小屏幕优化 */
@media (max-width: 768px) {
    .filter-wrapper {
        padding: 16px;
    }
    
    .d-flex.flex-stack {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
    }
    
    .d-flex.align-items-center.w-100px {
        padding-right: 0;
        margin-bottom: 8px;
    }
    
    .d-flex.align-items-center.w-100 {
        flex-wrap: wrap; /* 小屏幕允许换行 */
        overflow-x: visible;
    }
    
    .d-flex.align-items-center.position-relative.me-4 {
        margin-right: 0;
        width: 100%;
        max-width: none;
        margin-bottom: 12px;
    }
    
    .form-control.form-control-sm.w-250px.ps-10 {
        max-width: none;
    }
    
    .btn.btn-primary.btn-sm {
        width: 100%;
    }
}

/* 提示框样式 - 美化dr_tips */
.dr-tips {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 12px 24px;
    border-radius: 8px;
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.dr-tips.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
