.yingfang-service {
    position: relative;
    padding-top: var(--gap-90);
    padding-bottom: var(--gap-100);
    overflow: hidden;
    color: #fff;
}

.yingfang-service__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.yingfang-service__mask {
    position: absolute;
    inset: 0;
    opacity: 0.8;
    background: #222;
}

.yingfang-service__inner {
    position: relative;
    z-index: 1;
}

.yingfang-service__head {
    text-align: center;
    margin-bottom: 18px;
}

.yingfang-service__title {
    color: #FFF;
    text-align: center;
    font-family: var(--title-font-family);
    font-size: var(--font-48);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.yingfang-service__sub {
    color: #FFF;
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--font-24);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 19px auto 63px;
}

.yingfang-service__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 48px;
    align-items: start;
}

.yingfang-service__item {
    text-align: center;
    min-width: 0;
}

.yingfang-service__icon {
    width: 61px;
    height: 61px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform-style: preserve-3d;
    transition: transform 0.45s ease;
}

.yingfang-service__item:hover .yingfang-service__icon {
    transform: rotateY(180deg);
}


.yingfang-service__icon svg path,
.yingfang-service__icon svg circle,
.yingfang-service__icon svg rect {
    fill: currentColor;
    stroke: currentColor;
}

.yingfang-service__icon img {
    object-fit: contain;
}

.yingfang-service__text {
    color: #FFF;
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--font-20);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
}

@media screen and (max-width: 1200px) {
    .yingfang-service__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 22px;
    }
}

@media screen and (max-width: 768px) {
    .yingfang-service {
        padding: 28px 0 22px;
    }

    .yingfang-service__title {
        font-size: 22px;
    }

    .yingfang-service__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 16px;
    }
}

@media screen and (max-width: 480px) {
    .yingfang-service__grid {
        grid-template-columns: 1fr;
    }
}