/* =========================================================
   TRUSTED BY
========================================================= */

.home-trust {

    position: relative;

    padding: 60px 0 60px;

    background: #ffffff;

    overflow: hidden;
}


/* ---------------------------------------------------------
   Container
--------------------------------------------------------- */

.trust-container {

    width: min(
        1320px,
        calc(100% - 80px)
    );

    margin: 0 auto;
}


/* ---------------------------------------------------------
   Heading
--------------------------------------------------------- */

.trust-heading {

    max-width: 760px;

    margin-bottom: 55px;
}


.trust-eyebrow {

    display: block;

    margin-bottom: 18px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;

    color: #0868d5;
}


.trust-heading h2 {

    margin: 0 0 18px;

    font-size: clamp(
        36px,
        4vw,
        54px
    );

    line-height: 1.1;

    letter-spacing: -1.5px;

    color: #101820;
}


.trust-heading p {

    margin: 0;

    max-width: 650px;

    font-size: 16px;

    line-height: 1.8;

    color: #64748b;
}


/* ---------------------------------------------------------
   Logo Area
--------------------------------------------------------- */

.trust-logo-area {

    position: relative;

    display: flex;

    flex-direction: column;

    gap: 24px;
}


/* ---------------------------------------------------------
   Marquee
--------------------------------------------------------- */

.trust-marquee {

    position: relative;

    width: 100%;

    overflow: hidden;

    /*
     * 两侧渐隐
     */

    mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            #000 7%,
            #000 93%,
            transparent 100%
        );

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            #000 7%,
            #000 93%,
            transparent 100%
        );
}


/* ---------------------------------------------------------
   Track
--------------------------------------------------------- */

.trust-track {

    display: flex;

    width: max-content;

    gap: 24px;

    will-change: transform;
}


/* ---------------------------------------------------------
   Left
--------------------------------------------------------- */

.trust-track-left {

    animation:
        trust-scroll-left
        35s
        linear
        infinite;
}


/* ---------------------------------------------------------
   Right
--------------------------------------------------------- */

.trust-track-right {

    animation:
        trust-scroll-right
        38s
        linear
        infinite;
}


/* ---------------------------------------------------------
   Logo Card
--------------------------------------------------------- */

.trust-logo {

    flex: 0 0 210px;

    width: 210px;

    height: 96px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px 30px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 5px;

    transition:
        border-color .35s ease,
        box-shadow .35s ease,
        transform .35s ease;
}


/* ---------------------------------------------------------
   Logo
--------------------------------------------------------- */

.trust-logo img {

    display: block;

    width: 100%;

    max-width: 150px;

    height: 70px;

    object-fit: contain;

    /*
     * 默认降低视觉存在感
     */

    /*filter:*/
    /*    grayscale(100%)*/
    /*    opacity(.55);*/

    transition:
        filter .35s ease,
        transform .35s ease;
}


/* ---------------------------------------------------------
   Hover
--------------------------------------------------------- */

.trust-logo:hover {

    border-color: #cbd5e1;

    box-shadow:
        0 15px 35px
        rgba(15, 23, 42, .08);

    transform:
        translateY(-4px);
}


.trust-logo:hover img {

    filter:
        grayscale(0%)
        opacity(1);

    transform:
        scale(1.04);
}


/* ---------------------------------------------------------
   Animation
--------------------------------------------------------- */

@keyframes trust-scroll-left {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(
            calc(-50% - 12px)
        );
    }

}


@keyframes trust-scroll-right {

    from {
        transform: translateX(
            calc(-50% - 12px)
        );
    }

    to {
        transform: translateX(0);
    }

}


/* ---------------------------------------------------------
   Hover Pause
--------------------------------------------------------- */

.trust-logo-area:hover
.trust-track {

    animation-play-state: paused;
}


/* ---------------------------------------------------------
   Tablet
--------------------------------------------------------- */

@media (max-width: 1024px) {

    .trust-container {

        width:
            calc(100% - 50px);

    }


    .trust-logo {

        flex-basis: 190px;

        width: 190px;

        height: 90px;

    }

}


/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */

@media (max-width: 767px) {

    .home-trust {

        padding: 75px 0 80px;

    }


    .trust-container {

        width:
            calc(100% - 40px);

    }


    .trust-heading {

        margin-bottom: 40px;

    }


    .trust-heading h2 {

        font-size: 34px;

    }


    .trust-heading p {

        font-size: 14px;

    }


    .trust-logo {

        flex-basis: 160px;

        width: 160px;

        height: 82px;

        padding: 15px 20px;

    }


    .trust-logo img {

        max-width: 125px;

        height: 44px;

    }


    .trust-track {

        gap: 16px;

    }

}