/* 商品评论系统样式 - SEO优化版 */

/* 评论简介 - 标题下方 */
.reviewShortCut {
    padding: 10px 0;
    margin: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.star-rating {
    color: #FFB800;
    font-size: 16px;
    margin: 0 5px;
}

.review_cnt {
    color: #009688;
    text-decoration: none;
}

.review_cnt:hover {
    text-decoration: underline;
}

/* 评论统计区 */
.reviews-summary {
    display: flex;
    gap: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-score {
    text-align: center;
    min-width: 150px;
}

.score-number {
    font-size: 48px;
    font-weight: bold;
    color: #333;
}

.score-stars {
    color: #FFB800;
    font-size: 20px;
    margin: 10px 0;
}

.score-count {
    color: #666;
    font-size: 14px;
}

.summary-bars {
    flex: 1;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bar-label {
    width: 60px;
    font-size: 13px;
    color: #666;
}

.bar-progress {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #FFB800;
    transition: width 0.3s;
}

.bar-count {
    width: 40px;
    text-align: right;
    font-size: 13px;
    color: #666;
}

/* 评论列表 */
.review-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-user {
    font-weight: bold;
    color: #333;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-rating {
    color: #FFB800;
    margin: 5px 0;
}

.review-content {
    line-height: 1.6;
    color: #333;
    margin: 10px 0;
}

.review-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.review-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.review-images img:hover {
    transform: scale(1.05);
}

/* 加载更多按钮 */
#load-more-reviews {
    text-align: center;
    margin: 20px 0;
    display: none; /* 默认隐藏，由JS控制显示 */
}

#reviews-loading {
    text-align: center;
    padding: 20px;
    color: #999;
    display: none; /* 默认隐藏，加载时显示 */
}

#reviews-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    display: none; /* 默认隐藏，无评论时显示 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .reviews-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    .summary-score {
        min-width: auto;
    }
    
    .review-images img {
        width: 60px;
        height: 60px;
    }
}
