/* Customer Testimonials — dual-row opposite infinite scroll */
.customer-testimonials {
    padding: 8px 0 32px;
}

.customer-testimonials__viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 392px;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 96px,
        #000 calc(100% - 96px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 96px,
        #000 calc(100% - 96px),
        transparent 100%
    );
}

.customer-testimonials__loading-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 392px;
    width: 100%;
}

.customer-testimonials__loading {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 2em 0;
}

.customer-testimonials__rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.customer-testimonials__rows:not(.customer-testimonials__rows--pending) {
    animation: customer-testimonials-fade-in 0.8s ease both;
}

.customer-testimonials__rows--pending .customer-testimonials__track-inner {
    animation: none;
}

.customer-testimonials__rows:hover .customer-testimonials__track-inner {
    animation-play-state: paused;
}

.customer-testimonials__track {
    overflow: hidden;
    width: 100%;
}

.customer-testimonials__track-inner {
    display: flex;
    width: max-content;
    will-change: transform;
}

.customer-testimonials__track-inner--left {
    animation: customer-testimonials-scroll-left 90s linear infinite;
}

.customer-testimonials__track-inner--right {
    animation: customer-testimonials-scroll-right 90s linear infinite;
}

.customer-testimonials__empty {
    min-height: 392px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: 14px;
    color: #999999;
}

.customer-testimonials__user-icon img {
    display: block;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    object-fit: cover;
}

.customer-testimonials__flag img {
    display: block;
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.customer-testimonials__row {
    display: flex;
    flex-shrink: 0;
    gap: 16px;
    padding-right: 16px;
}

.customer-testimonials__card {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 408px;
    min-height: 188px;
    padding: 20px 24px;
    box-sizing: border-box;
    border: 1px solid #eef0f3;
    border-radius: 20px;
    background: #ffffff;
    cursor: pointer;
}

.customer-testimonials__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.customer-testimonials__stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.customer-testimonials__date {
    flex-shrink: 0;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #999999;
}

.customer-testimonials__card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 1;
    margin-bottom: 16px;
}

.customer-testimonials__card-copy {
    flex: 1;
    min-width: 0;
}

.customer-testimonials__desc {
    margin: 0 0 6px;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    color: #26272a;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.customer-testimonials__text {
    margin: 0;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #26272a;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;


font-family: 'HarmonyOS Sans';
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 22px;


color: #26272A;


}

.customer-testimonials__thumb {
    flex-shrink: 0;
    width: 103px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f7fa;
}

.customer-testimonials__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-testimonials__card-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.customer-testimonials__user-icon {
    display: flex;
    flex-shrink: 0;
}

.customer-testimonials__user-name {
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #26272a;
}

.customer-testimonials__flag {
    display: flex;
    flex-shrink: 0;
    margin-left: 4px;
}

/* 上排：向左滚动 */
@keyframes customer-testimonials-fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes customer-testimonials-scroll-left {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* 下排：向右滚动 */
@keyframes customer-testimonials-scroll-right {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-testimonials__track-inner {
        animation: none;
    }

    .customer-testimonials__rows:not(.customer-testimonials__rows--pending) {
        animation: none;
    }
}

@media (max-width: 768px) {
    .customer-testimonials__viewport {
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 48px,
            #000 calc(100% - 48px),
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 48px,
            #000 calc(100% - 48px),
            transparent 100%
        );
    }

    .customer-testimonials__card {
        width: 320px;
    }
}
