
.service-container {
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    width: 745px;
    display: flex;
    background: white;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.thumbnail {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.thumbnail img {
    width: 335px;
    height: 335px;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .thumbnail img {
    transform: scale(1.05);
}

.content {
    flex: 1;
    padding: 20px 20px 0px;
    position: relative;
}

.service-tag {
    position: absolute;
    top: 10px;
    right: -40px;
    background: #e62129;
    color: white;
    padding: 8px 50px;
    transform: rotate(45deg);
    font-size: 14px;
    font-weight: bold;
}

h2 {
    color: #2d3436;
    margin-bottom: 15px;
    font-size: 28px;
}

p {
    color: #636e72;
    line-height: 1.8;
    margin-bottom: 10px;
}

.contact {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #4b7bec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
}

.contact-info h3 {
    color: #2d3436;
    margin-bottom: 5px;
    font-size: 16px;
}

.contact-info p {
    color: #4b7bec;
    margin: 0;
    font-weight: 500;
}

/* 交替布局 */
.service-card:nth-child(even) {
    flex-direction: row-reverse;
}
.service-card:nth-child(even) img{
    float: right;
}


@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
    }

    .thumbnail {
        min-height: 200px;
    }

    .service-card:nth-child(even) {
        flex-direction: column;
    }

    .service-tag {
        right: -55px;
        font-size: 12px;
    }
}


.content h2{
    height: 74px;
}
