.filters {
    background-color: white;
    padding: 20px;
    margin-top: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

.filter-group select, .filter-group input {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-group select:focus, .filter-group input:focus {
    outline: none;
    border-color: #457b9d;
}

.filter-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 15px;
}

.btn-primary {
    background-color: #457b9d;
    color: white;
}

.btn-primary:hover {
    background-color: #356482;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #457b9d;
    color: #457b9d;
}

.btn-outline:hover {
    background-color: #f1f7fb;
}

/* 服务列表样式 */
.service-top {
    background: linear-gradient(4deg, #f0fcff 0, #f9fbff 100%);
    height: 53px;
    padding: 16px 20px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #e63946;
    border-radius: 2px;
}

.sort-options select {
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
}

.service-grid {
    max-width: 1600px;
    margin: 65px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 220px;
    background-color: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #e63946;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.service-content {
    padding: 20px;
}

.service-title {
    font-size: 18px;
    height: 50px;
    font-weight: 600;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.service-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.designer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.designer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    overflow: hidden;
    border: 2px solid #f5f5f5;
}

.designer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.designer-info {
    flex: 1;
}

.designer-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;

    height: 40px;
}

.designer-level {
    font-size: 12px;
    color: #999;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 1px solid #f5f5f5;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #e63946;
}

.price span {
    font-size: 14px;
    font-weight: 500;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.rating .stars {
    color: #ffb703;
}

.rating .count {
    color: #666;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.service-tags span {
    /* background-color: #f1f7fb; */
    color: #457b9d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.service-actions {
    display: flex;
    gap: 12px;
}

.service-actions .btn {
    flex: 1;
    padding: 12px 0;
    font-size: 15px;
    text-align: center;
}

.btn-view {
    background-color: #f1f7fb;
    color: #457b9d;
}

.btn-view:hover {
    background-color: #e1eef8;
}

.btn-hire {
    background-color: #e63946;
    color: white;
}

.btn-hire:hover {
    background-color: #d62839;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.page-btn:hover {
    border-color: #457b9d;
    color: #457b9d;
}

.page-btn.active {
    background-color: #457b9d;
    color: white;
    border-color: #457b9d;
}

.page-btn.prev-next {
    width: auto;
    padding: 0 15px;
}


/* 响应式设计 */
@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        margin: 15px 0 0;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-actions {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
 
}

@media (max-width: 576px) {

    
    .nav-links a:not(.btn) {
        display: none;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-actions {
        flex-direction: column;
        gap: 8px;
    }
}


/* 批发商 */
.btn-pf {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-pf-primary {
    background-color: #165DFF;
    color: white;
}

.btn-pf-primary:hover {
    background-color: #0E42D2;
}

.btn-pf-outline {
    background-color: transparent;
    border: 1px solid #165DFF;
    color: #165DFF;
}

.btn-pf-outline:hover {
    background-color: #f0f5ff;
}

.service-pf-grid {
    max-width: 1600px;
    margin: 107px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-pf-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-pf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-image-pf {
    height: 280px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    overflow: hidden;
}

.service-image-pf img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-pf-content {
    padding: 15px;
}

.service-pf-title {
    font-size: 16px;
    height: 42px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-pf-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.supplier {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.supplier-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ddd;
    overflow: hidden;
}

.supplier-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supplier-name {
    font-size: 14px;
    color: #666;
}

.service-meta-pf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pf-price {
    font-size: 18px;
    font-weight: bold;
    color: #FF5722;
}

.pf-price span {
    font-size: 14px;
}



.service-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.service-actions {
    display: flex;
    gap: 10px;
}

.service-actions .btn-pf {
    flex: 1;
    padding: 8px 0;
    font-size: 14px;
}

.btn-pf-view {
    background-color: #f0f5ff;
    color: #165DFF;
}

.btn-pf-view:hover {
    background-color: #e0ecff;
}

.btn-pf-contact {
    background-color: #165DFF;
    color: white;
}

.btn-pf-contact:hover {
    background-color: #0E42D2;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}
/* 批发商 */