.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    padding-bottom: 100px;
}

.review-card:hover {
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.06);
}

.review-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.review-img {
    width: 100%;
    object-fit: cover;
}

.review-content {
    padding: 30px;
}

.review-title {
    font-size: 22px;
    color: #333333;
    margin-bottom: 10px;
}

.review-text {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #333;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

.review-stars {
    color: #ffe234;
    font-size: 24px;
}




/* ------------弹出层--------- */
.rating-popup {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
}

.rating-pupbox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pupbx-remov {
    text-align: right;
}

.pupbx-remov>i {
    font-size: 24px;
    color: #cccccc;
    cursor: pointer;
}

.pupbx-cnt {
    width: 860px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
}

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 25px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8a0a0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.stars {
    color: #ffc107;
    font-size: 24px;
}

.review-date {
    font-size: 14px;
    color: #999;
}

.review-title {
    font-size: 24px;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}

.review-txt {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.review-images {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.review-pup-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.view-product-btn {
    width: 100%;
    padding: 15px;
    background: #00a8e8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}


@media only screen and (max-width: 1540px) {
    .reviews-grid {
        gap: 40px;
        padding-bottom: 90px;
    }

    .review-content {
        padding: 25px;
    }

    .review-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .review-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .review-author {
        gap: 6px;
        font-size: 16px;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
    }

    .review-stars {
        font-size: 22px;
    }






    /* ------------弹出层--------- */
    .pupbx-remov>i {
        font-size: 22px;
    }

    .pupbx-cnt {
        width: 820px;
        border-radius: 20px;
        padding: 30px;
    }

    .review-header {
        margin-bottom: 20px;
    }

    .user-info {
        gap: 10px;
    }

    .avatar {
        width: 45px;
        height: 45px;
    }

    .user-name {
        font-size: 14px;
    }

    .stars {
        font-size: 22px;
    }

    .review-date {
        font-size: 12px;
    }

    .review-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .review-txt {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .review-images {
        gap: 15px;
        margin-bottom: 30px;
    }

    .review-pup-img {
        width: 90px;
        height: 90px;
        border-radius: 10px;
    }

    .view-product-btn {
        padding: 12px;
        border-radius: 10px;
        font-size: 16px;
    }



}



@media only screen and (max-width: 1440px) {
    .reviews-grid {
        gap: 35px;
        padding-bottom: 80px;
    }

    .review-content {
        padding: 20px;
    }




    /* ------------弹出层--------- */
    .pupbx-remov>i {
        font-size: 22px;
    }

    .pupbx-cnt {
        width: 780px;
        border-radius: 16px;
        padding: 25px;
    }

    .review-header {
        margin-bottom: 15px;
    }

    .user-info {
        gap: 10px;
    }

    .avatar {
        width: 45px;
        height: 45px;
    }

    .review-txt {
        font-size: 13px;
        margin-bottom: 13px;
    }

    .review-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .review-images {
        gap: 12px;
        margin-bottom: 25px;
    }


    .review-pup-img {
        width: 80px;
        height: 80px;
        border-radius: 10px;
    }

    .view-product-btn {
        padding: 12px;
        border-radius: 10px;
        font-size: 16px;
    }




}




@media only screen and (max-width: 1340px) {
    .reviews-grid {
        gap: 30px;
        padding-bottom: 70px;
    }

    .review-content {
        padding: 15px;
    }

    .review-text {
        margin-bottom: 16px;
    }

    .review-author {
        gap: 6px;
        font-size: 15px;
    }

    .author-avatar {
        width: 35px;
        height: 35px;
    }

    .review-stars {
        font-size: 20px;
    }





    .pupbx-cnt {
        width: 700px;
        border-radius: 15px;
        padding: 20px;
    }

    .review-header {
        margin-bottom: 12px;
    }



}


@media only screen and (max-width: 769px) {

    .reviews-grid {
        gap: .3rem;
        padding-bottom: .7rem;
        grid-template-columns: repeat(1, 1fr);
    }



    .review-images {
        gap: 10px;
        margin-bottom: 20px;
    }
    .pupbx-cnt {
        width: 95vw;
        border-radius: 15px;
        padding: .2rem;
    }



}