/* 客户评论组件样式 - 融合现有设计风格 */

/* 客户评论区域 - 融合现有设计风格 */
.customer-reviews-section {
    background: #f5f5f5;
    margin: 30px 0;
    width: 100%;
}

/* 使用现有的响应式容器样式 */
.customer-reviews-section .container {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 911px) {
    .customer-reviews-section .container {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 479px) {
    .customer-reviews-section .container .row {
        margin: 0;
    }
}

.reviews-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0;
}

/* 标题样式 - 继承现有的标题风格 */
.reviews-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-family: "GoogleSans", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

/* 响应式字体大小 - 使用现有的断点 */
@media (min-width: 1100px) {
    .reviews-title { font-size: 30px; }
}
@media (max-width: 1100px) {
    .reviews-title { font-size: 30px; }
}
@media (max-width: 1000px) {
    .reviews-title { font-size: 28px; }
}
@media (max-width: 900px) {
    .reviews-title { font-size: 28px; }
}
@media (max-width: 800px) {
    .reviews-title { font-size: 16px; }
}
@media (max-width: 700px) {
    .reviews-title { font-size: 14px; }
}

.reviewsSwiper {
    padding: 20px 0 60px 0;
}

/* 评论卡片 - 模仿现有的产品卡片样式 */
.review-card {
    background: white;
    border: 1px solid #ebebeb;
    padding: 16px;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    position: relative;
}

/* 悬停效果 - 使用现有产品卡片的悬停样式 */
.review-card:hover {
    box-shadow: 0px 0px 12px 4px rgba(0,0,0,0.1);
    transform: scale(1.02);
}

/* 评论标题 - 使用产品标题样式 */
.review-title {
    font-weight: 600;
    color: #010101;
    margin-bottom: 8px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 评论内容 - 使用现有的文本样式 */
.review-content {
    color: #2a2a2a;
    line-height: 1.6;
    margin-bottom: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* 评论者名字 - 使用强调样式 */
.review-name {
    font-weight: 600;
    color: #010101;
    margin-bottom: 4px;
}

/* 日期样式 */
.review-date {
    color: grey;
    margin-bottom: 8px;
}

/* 星级评分 - 使用现有的评分图片样式 */
.review-stars {
    display: flex;
    align-items: center;
}

.review-stars .star {
    width: 14px;
    height: 14px;
    background: url('../imgaes_pc/content/product_rate.png') no-repeat;
    background-size: contain;
    margin-right: 2px;
    display: inline-block;
}

/* 响应式字体大小 */
@media (min-width: 1100px) {
    .review-title { font-size: 16px; }
    .review-content { font-size: 16px; }
    .review-name { font-size: 16px; }
    .review-date { font-size: 14px; }
}
@media (max-width: 1100px) {
    .review-title { font-size: 16px; }
    .review-content { font-size: 16px; }
    .review-name { font-size: 16px; }
    .review-date { font-size: 14px; }
}
@media (max-width: 1000px) {
    .review-title { font-size: 15px; }
    .review-content { font-size: 15px; }
    .review-name { font-size: 15px; }
    .review-date { font-size: 13px; }
}
@media (max-width: 800px) {
    .review-title { font-size: 14px; }
    .review-content { font-size: 14px; }
    .review-name { font-size: 14px; }
    .review-date { font-size: 12px; }
}
@media (max-width: 700px) {
    .review-title { font-size: 15px; }
    .review-content { font-size: 15px; }
    .review-name { font-size: 15px; }
    .review-date { font-size: 13px; }
}

/* Swiper导航按钮 - 使用网站主色调 */
.reviewsSwiper .swiper-button-next,
.reviewsSwiper .swiper-button-prev {
    background: #ff0000;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-top: -22.5px;
    transition: all 0.3s ease;
}

.reviewsSwiper .swiper-button-next::after,
.reviewsSwiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.reviewsSwiper .swiper-button-next:hover,
.reviewsSwiper .swiper-button-prev:hover {
    background: #dc143c;
    transform: scale(1.1);
}

/* Swiper分页器 */
.reviewsSwiper .swiper-pagination {
    bottom: 10px;
}

.reviewsSwiper .swiper-pagination-bullet {
    background: #ff0000;
    opacity: 0.3;
}

.reviewsSwiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* 底部评分总结 */
.reviews-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ebebeb;
    margin-top: 20px;
    background: white;
}

.reviews-footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.reviews-stars-display {
    display: flex;
    align-items: center;
}

.reviews-stars-display .star {
    width: 18px;
    height: 18px;
    background: url('../imgaes_pc/content/product_rate.png') no-repeat;
    background-size: contain;
    margin-right: 3px;
    display: inline-block;
}

.reviews-based {
    color: #333;
    font-weight: 500;
}

/* 响应式布局调整 */
@media (max-width: 767px) {
    .reviews-wrap {
        padding: 20px 0;
    }

    .review-card {
        height: auto;
        min-height: 250px;
        padding: 12px;
    }

    .reviews-footer-inner {
        flex-direction: column;
        gap: 10px;
    }

    .reviews-based { font-size: 15px; }
}

@media (max-width: 991px) {
    .review-card {
        height: auto;
        min-height: 220px;
    }
}
