/* 服务页面样式 */

/* 服务列表页样式 */
.services-section {
    padding: 80px 0;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    background-color: #f5f5f5;
    border-radius: 5px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: #0056b3;
    color: #fff;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.services-main {
    flex: 2;
    min-width: 300px;
}

.services-filter {
    margin-bottom: 30px;
}

.services-filter ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.services-filter ul li {
    margin-right: 10px;
}

.services-filter ul li a {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f5f5f5;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.services-filter ul li a:hover,
.services-filter ul li.active a {
    background-color: #0056b3;
    color: #fff;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.service-item {
    flex-basis: calc(50% - 15px);
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-meta {
    margin-bottom: 15px;
    color: #666;
}

.service-meta span {
    margin-right: 15px;
}

.service-meta i {
    color: #0056b3;
    margin-right: 5px;
}

.read-more {
    display: inline-block;
    color: #0056b3;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #003d82;
}

.read-more i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.read-more:hover i {
    margin-left: 8px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

/* 侧边栏小部件样式 */
.widget {
    background-color: #fff;
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #0056b3;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #0056b3;
}

/* 分类小部件 */
.categories-widget ul li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.categories-widget ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.categories-widget ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.categories-widget ul li a:hover {
    color: #0056b3;
    padding-left: 5px;
}

.categories-widget ul li a span {
    color: #666;
    font-size: 14px;
}

/* 热门服务小部件 */
.popular-services-widget ul li {
    display: flex;
    margin-bottom: 20px;
}

.popular-services-widget ul li:last-child {
    margin-bottom: 0;
}

.post-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.post-image:hover img {
    transform: scale(1.1);
}

.post-info {
    flex: 1;
}

.post-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-info span {
    font-size: 14px;
    color: #666;
}

.post-info span i {
    color: #0056b3;
    margin-right: 5px;
}

/* 联系我们小部件 */
.contact-widget ul li {
    margin-bottom: 10px;
    color: #666;
}

.contact-widget ul li i {
    width: 20px;
    color: #0056b3;
    margin-right: 10px;
}

.contact-widget .btn {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.contact-widget .btn:hover {
    background-color: #003d82;
}

/* 服务详情页样式 */
.service-detail-section {
    padding: 80px 0;
}

.service-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.service-detail-main {
    flex: 2;
    min-width: 300px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.service-detail-header {
    margin-bottom: 30px;
}

.service-detail-header h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #0056b3;
    line-height: 1.4;
}

.service-detail-content {
    line-height: 1.8;
}

.service-detail-content p {
    margin-bottom: 20px;
}

.service-detail-image {
    margin: 20px 0;
    border-radius: 5px;
    overflow: hidden;
}

.service-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-detail-image .image-caption {
    background-color: #f5f5f5;
    padding: 10px 15px;
    font-size: 14px;
    color: #666;
    margin: 0;
}

.service-detail-content h2 {
    font-size: 24px;
    margin: 30px 0 20px;
    color: #0056b3;
}

.service-detail-content h2>p, .service-detail-content ul, .service-detail-content ol {
    color: #939292;
}

.service-detail-content ul, .service-detail-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.service-detail-content ul li, .service-detail-content ol li {
    margin-bottom: 10px;
}

.related-services {
    margin-top: 40px;
}

.related-services h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #0056b3;
    position: relative;
    padding-bottom: 10px;
}

.related-services h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #0056b3;
}

.related-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.related-service-item {
    flex: 1;
    min-width: 200px;
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.related-service-image {
    height: 150px;
    overflow: hidden;
}

.related-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.related-service-item:hover .related-service-image img {
    transform: scale(1.1);
}

.related-service-info {
    padding: 15px;
}

.related-service-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-service-info a {
    color: #0056b3;
    font-weight: 500;
    transition: all 0.3s ease;
}

.related-service-info a:hover {
    color: #003d82;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .service-item {
        flex-basis: 100%;
    }
    
    .services-container,
    .service-detail-container {
        flex-direction: column;
    }
    
    .services-main,
    .service-detail-main,
    .sidebar {
        width: 100%;
    }
    
    .sidebar {
        margin-top: 30px;
    }
    
    .related-service-item {
        min-width: 250px;
    }
    
    .widget {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .services-filter ul {
        justify-content: center;
    }
    
    .services-filter ul li {
        margin-bottom: 10px;
    }
    
    .related-services-list {
        flex-direction: column;
    }
    
    .related-service-item {
        width: 100%;
    }
    
    .widget {
        padding: 20px 15px;
    }
    
    .widget-title {
        font-size: 18px;
    }
    
    .post-image {
        width: 70px;
        height: 70px;
    }
    
    .post-info h4 {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .service-detail-header h1 {
        font-size: 24px;
    }
    
    .service-detail-content h2 {
        font-size: 20px;
    }
    
    .service-detail-main {
        padding: 20px 15px;
    }
    
    .services-filter ul li a {
        padding: 6px 15px;
        font-size: 14px;
    }
    
    .widget {
        padding: 15px 12px;
    }
    
    .widget-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .post-image {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }
    
    .post-info h4 {
        font-size: 14px;
    }
    
    .post-info span {
        font-size: 12px;
    }
    
    .categories-widget ul li a span {
        font-size: 12px;
    }
    
    .contact-widget .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .pagination {
        margin-top: 30px;
    }
    
    .pagination a {
        width: 35px;
        height: 35px;
        margin: 0 3px;
        font-size: 13px;
    }
}