.customer-service-container {
    padding: 10vh 0;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-image {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.5s ease;
}

.service-image:hover {
    transform: perspective(1000px) rotateY(0);
}
@media (max-width: 768px) {
    .main-image {
        width: 100%;
        height: auto;
        display: block;
    }
}
@media (min-width: 769px) {
    .main-image {
        max-height: 80vh;
        display: block;
    }
}

.service-text {
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.service-content:hover .service-text {
    transform: perspective(1000px) rotateY(0);
}

.text-block {
    margin-bottom: 2.5rem;
    transform: translateY(20px);
}

.text-block h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.text-block h3 {
    color: #34495e;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.text-block p {
    color: #7f8c8d;
    font-size: 18px;
    line-height: 1.8;
}

/* 动画定义 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) perspective(1000px) rotateY(5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) perspective(1000px) rotateY(5deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation-fill-mode: forwards;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.slideInRight {
    animation-name: slideInRight;
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .customer-service-container {
        padding: 5vh 5vw;
    }

    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-image,
    .service-text {
        transform: none;
    }

    .text-block h2 {
        font-size: 1.8rem;
    }

    .text-block h3 {
        font-size: 1.4rem;
    }
}
