/* 筛选容器 */
.filter-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 24px;
    max-width: 100%;
    /*overflow-x: auto;*/
}

/* 筛选行 */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    align-items: center;
}

.filter-row:last-of-type {
    margin-bottom: 0;
}

/* 筛选组 */
.filter-group {
    flex: 1 1 calc(16.666% - 16px);
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* 输入框包装 */
.input-wrapper, .select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input, .select-wrapper select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.2s ease;
    appearance: none;
    outline: none;
}

.input-wrapper input:focus, .select-wrapper select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 图标样式 */
.input-wrapper i, .select-wrapper i {
    position: absolute;
    right: 12px;
    color: #9ca3af;
    pointer-events: none;
    font-size: 14px;
}

/* 下拉菜单自定义箭头 */
.select-wrapper::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #9ca3af;
    pointer-events: none;
}

/* 操作栏 */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* 按钮样式 */
.btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    margin-bottom: 5px;
}

.btn-status {
    background: #f39c12;
    color: white;
}

.btn-status:hover {
    background: #e08e0b;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-clear {
    background-color: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.btn-clear:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.btn-add {
    background-color: #10b981;
    color: white;
}

.btn-add:hover {
    background-color: #059669;
}

.btn-export {
    background-color: #3b82f6;
    color: white;
}

.btn-export:hover {
    background-color: #2563eb;
}

.btn-search {
    background-color: #3b82f6;
    color: white;
    padding: 10px 20px;
}

.btn-search:hover {
    background-color: #2563eb;
}

.btn-danger {
    background: #ff4d4f;
    color: white;
}

.btn-danger:hover {
    background: #cf1322;
}

/* 分页大小选择器 */
.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.page-size-selector select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: white;
    color: #333;
    font-size: 14px;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.page-size-selector select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .filter-group {
        flex: 1 1 calc(25% - 16px);
    }
}

@media (max-width: 992px) {
    .filter-group {
        flex: 1 1 calc(33.333% - 16px);
    }
}

@media (max-width: 768px) {
    .filter-group {
        flex: 1 1 calc(50% - 16px);
    }
    
    .action-bar {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .filter-group {
        flex: 1 1 100%;
    }
    
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-size-selector {
        margin-top: 12px;
    }
}