/* 服务卡片样式 */
.services-cards {
    max-width: 1060px;
    margin: 0 auto;
}

.service-card {
    padding: 18px 32px;          /* 左右间距拉开卡片距离 */
    text-align: center;
    position: relative;
}

.service-card .card-img {
    width: 100%;
    aspect-ratio: 16 / 9;        /* 改为 16:9 比例 */
    overflow: hidden;
    border-radius: 12px;         /* 内部图片圆角略小于卡片，形成层次感 */
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card:hover .card-img {
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}

.service-card .card-body {
    padding: 20px 0 10px;
}

.service-card .card-body h4 {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Asap', sans-serif;
}

.service-card .card-body p {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.75;
    font-family: 'OpenSans', sans-serif;
}

/* 响应式：小屏幕时缩小间距，图片仍保持 16:9 */
@media only screen and (max-width: 639px) {
    .service-card {
        padding: 15px 22px;
    }
    .service-card .card-img {
        aspect-ratio: 16 / 9;    /* 同样保持 16:9 */
    }
}