.f-custom-review__wrapper {
    position: relative
}

.f-custom-review__header {
    position: relative
}

.f-custom-review .f-testimonial__wrapper {
    color: rgb(var(--color-foreground))
}


/*新逻辑*/
.f-custom-review .view-more-button {
    margin-top: 60px;
    text-transform: uppercase;
    min-width: 233px;
}

.f-reviews-el {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}


@media (max-width: 1024px) {
    .f-reviews-el {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .f-custom-review .view-more-button {
        margin-top: 30px;
    }
}

@media (max-width: 769px) {
    .f-reviews-el {
        gap: 15px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.f-reviews-item {
    overflow: hidden; /* 防止放大后溢出 */
}

.f-reviews-item .f-image {
    transition: transform 0.3s ease;
}

.f-reviews-item .img-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s;
}

.f-reviews-item .img-mask .mask-button {
    font-size: 16px;
    font-weight: 700;
    padding: 10px 30px;
    text-transform: uppercase;
    transition: all 0.3s;
}


.f-reviews-item:hover .f-image {
    transform: scale(1.1) translateZ(0);
}

.f-reviews-item:hover .img-mask {
    opacity: 1;
}

.review-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.review-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.lightbox-content {
    padding: 36px;
    position: relative;
    background: rgb(var(--color-background));
    max-width: 80vw;
    max-height: 90vh;
    width: 1100px;
    display: flex;
    z-index: 10;
    border-radius: 10px;
}


.lightbox-close {
    line-height: 1;
    padding: 15px;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    cursor: pointer;
    z-index: 11;
}

.lightbox-left {
    display: flex;
    flex: 1;
    max-width: 55%;
    position: relative;
    align-items: center;
}

.lightbox-right {
    flex: 1;
    padding-left: 35px;
    overflow-y: auto;
}

.lightbox-right .share-box {
    margin-top: 20px;
}

.f-custom-review .review-product-info {
    border-top: 1px solid rgb(var(--color-border));
    margin-top: 30px;
}

.f-custom-review .review-product-info .info-box {
    width: 140px;
}

.f-custom-review .review-product-info .info-box img {
    min-height: 100%;
    width: 100%;
    object-fit: contain;
    display: block;
}

.f-custom-review .lightbox-right .m\:flex {
    padding: 10px 0;
}

.f-custom-review .review-product-info .selective-purchase {
    text-transform: uppercase;
    line-height: 50px;
    height: 50px;
    font-weight: 700;
}

.f-custom-review .review-product-info .price-box {
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}
.f-custom-review .review-product-info .price-box .price {
    color: rgb(var(--color-price-sale));
}

.f-custom-review .review-product-info .price-box .compare-price {
    text-decoration: line-through;
    color: rgb(var(--color-foreground-secondary));
}

.f-custom-review .review-product-info .product-title {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}
.f-custom-review .review-product-info .product-title:hover {
    text-decoration: underline;
}
.f-custom-review .review-product-info .buy-button {
    margin-top: 20px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    padding: 5px 10px;
    display: inline-block;
    min-width: 140px;
    border: 1px solid rgb(var(--color-foreground));
    font-weight: 500;
}

@media (max-width: 769px) {
    .lightbox-content {
        padding: 0;
        width: 100%;
        max-width: 100vw;
        max-height: 100vh;
        min-height: 300px;
        height: 100vh;
        border-radius: 0;
        flex-direction: column;
    }

    .lightbox-close {
        color: #fff;
        width: 30px;
        height: 30px;
        border-radius: 5px;
        background: rgba(0, 0, 0, .3);
        z-index: 20;
        right: 20px;
        top: 20px;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .lightbox-left {
        flex: none;
        max-width: 100%;
        width: 100%;

    }

    .lightbox-right {
        max-width: 100%;
        width: 100%;
        padding: 20px;
    }

}

.review-name {
    font-weight: 600;
    font-size: 16px;
}

.review-date {
    color: #888;
    font-size: 14px;
    margin-top: 4px;
}

.review-text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 22px;
}

.lightbox-arrow {
    padding: 5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 11;
    font-size: 32px;
    color: #ffffff;
    fill: #ffffff;
}

.lightbox-arrow.left {
    left: -50px;
}

.lightbox-arrow.right {
    right: -50px;
}

#lightbox-big-wrapper {
    align-items: center;
}

#lightbox-thumb-swiper {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
}

#lightbox-thumb-swiper .swiper-slide {
    width: 60px;
}

#lightbox-thumb-wrapper {
    justify-content: center;
}

#lightbox-thumb-wrapper img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid rgb(var(--color-border));
    transition: all 0.3s;
}

#lightbox-thumb-wrapper .swiper-slide-thumb-active img {
    border: 1px solid rgb(var(--color-foreground));
}
