/* 价格筛选器样式 */
.price-filter-container {
    margin-bottom: 20px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
}

.filter-tab:hover {
    background: #e8e8e8;
    color: #333;
    text-decoration: none;
}

.filter-tab.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.filter-tab.active:hover {
    background: #0056b3;
    color: #fff;
}

.filter-tab i {
    font-size: 14px;
}

/* 免费服务标签样式 */
.free-badge {
    background: #28a745;
    color: #fff !important;
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.service-card .service-price .free-badge {
    margin-left: 5px;
}

/* 服务卡片过渡动画 */
.services-grid {
    transition: opacity 0.3s ease;
    width: 100%;
}

.services-grid.loading {
    opacity: 0.5;
}

/* 确保服务卡片在固定布局中对齐 */
.service-card {
    width: 100%;
    box-sizing: border-box;
}

/* 加载状态样式 */
.widget-categories.loading {
    position: relative;
    pointer-events: none;
}

.widget-categories.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* 服务卡片动画 */
.service-card {
    transition: all 0.3s ease;
    position: relative;
}

.service-card.animate-in {
    animation: fadeInUp 0.5s ease forwards;  /* forwards保持动画最终状态 */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

/* 服务列表标题样式 */
.service-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.service-count {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin-left: 5px;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .price-filter-container {
        padding: 10px 15px;
    }
    
    .service-title {
        font-size: 16px;
    }
    
    .filter-tab {
        padding: 5px 12px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .filter-tabs {
        justify-content: flex-start;
        width: 100%;
    }
    
    .filter-tab {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .filter-tab i {
        font-size: 12px;
    }
    
    .service-title {
        font-size: 16px;
    }
    
    .service-count {
        font-size: 14px;
    }
}
