/* 评分系统样式 */

/* 基础评分容器 */
.zh_rating_container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* 星星容器 */
.zh_rating_stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* 星星样式 */
.zh_rating_star {
    font-size: 14px;
    transition: all 0.2s ease;
}

.zh_rating_star_full {
    color: #FFD700;
}

.zh_rating_star_half {
    color: #FFD700;
}

.zh_rating_star_empty {
    color: #E0E0E0;
}

/* 评分分数 */
.zh_rating_score {
    font-weight: 600;
    color: #FF6B35;
    margin-left: 4px;
}

/* 评价数量 */
.zh_rating_count {
    color: #757575;
    font-size: 12px;
}

/* 商品评分样式（较小） */
.zh_goods_rating_container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.zh_goods_rating_stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.zh_goods_rating_star {
    font-size: 12px;
    transition: all 0.2s ease;
}

.zh_goods_rating_star_full {
    color: #FFD700;
}

.zh_goods_rating_star_half {
    color: #FFD700;
}

.zh_goods_rating_star_empty {
    color: #E0E0E0;
}

.zh_goods_rating_score {
    font-weight: 600;
    color: #FF6B35;
    margin-left: 3px;
}

.zh_goods_rating_count {
    color: #757575;
    font-size: 11px;
}

/* 店铺评分样式（较大） */
.zh_store_rating_container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.zh_store_rating_stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.zh_store_rating_star {
    font-size: 16px;
    transition: all 0.2s ease;
}

.zh_store_rating_star_full {
    color: #FFD700;
}

.zh_store_rating_star_half {
    color: #FFD700;
}

.zh_store_rating_star_empty {
    color: #E0E0E0;
}

.zh_store_rating_score {
    font-weight: 600;
    color: #FF6B35;
    margin-left: 5px;
    font-size: 16px;
}

.zh_store_rating_count {
    color: #757575;
    font-size: 13px;
}

/* 卡片式评分样式 */
.zh_rating_card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.zh_rating_card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.zh_rating_card .zh_rating_stars {
    gap: 3px;
}

.zh_rating_card .zh_rating_star {
    font-size: 16px;
}

.zh_rating_card .zh_rating_score {
    font-size: 18px;
    font-weight: 700;
}

.zh_rating_card .zh_rating_count {
    font-size: 14px;
}

/* 列表页评分样式 */
.zh_list_rating_container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-top: 8px;
}

.zh_list_rating_stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.zh_list_rating_star {
    font-size: 11px;
}

.zh_list_rating_star_full {
    color: #FFD700;
}

.zh_list_rating_star_half {
    color: #FFD700;
}

.zh_list_rating_star_empty {
    color: #E0E0E0;
}

.zh_list_rating_score {
    font-weight: 600;
    color: #FF6B35;
    margin-left: 2px;
}

.zh_list_rating_count {
    color: #999;
    font-size: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zh_rating_container {
        gap: 6px;
        font-size: 13px;
    }
    
    .zh_rating_star {
        font-size: 13px;
    }
    
    .zh_goods_rating_container {
        gap: 4px;
        font-size: 12px;
    }
    
    .zh_goods_rating_star {
        font-size: 11px;
    }
    
    .zh_store_rating_container {
        gap: 8px;
        font-size: 14px;
    }
    
    .zh_store_rating_star {
        font-size: 15px;
    }
    
    .zh_store_rating_score {
        font-size: 15px;
    }
    
    .zh_rating_card {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .zh_rating_card .zh_rating_star {
        font-size: 15px;
    }
    
    .zh_rating_card .zh_rating_score {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .zh_rating_container {
        gap: 4px;
        font-size: 12px;
    }
    
    .zh_rating_star {
        font-size: 12px;
    }
    
    .zh_goods_rating_container {
        gap: 3px;
        font-size: 11px;
    }
    
    .zh_goods_rating_star {
        font-size: 10px;
    }
    
    .zh_store_rating_container {
        gap: 6px;
        font-size: 13px;
    }
    
    .zh_store_rating_star {
        font-size: 14px;
    }
    
    .zh_store_rating_score {
        font-size: 14px;
    }
    
    .zh_list_rating_container {
        gap: 4px;
        font-size: 11px;
    }
    
    .zh_list_rating_star {
        font-size: 10px;
    }
    
    .zh_list_rating_score {
        font-size: 11px;
    }
    
    .zh_list_rating_count {
        font-size: 9px;
    }
}

/* 商品详情页评分样式 */
.zh_goods_rating_section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.zh_rating_label {
    font-weight: 600;
    color: #2E7D32;
    font-size: 16px;
    min-width: 100px;
}

/* 店铺列表页评分样式 */
.zh_store_rating_section {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zh_store_rating_section .zh_rating_label {
    font-size: 14px;
    font-weight: 500;
    color: #424242;
    min-width: 80px;
}

/* 热销商品评分样式 */
.zh_hot_product_rating {
    margin-top: 5px;
}

/* 动画效果 */
@keyframes ratingFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zh_rating_container,
.zh_goods_rating_container,
.zh_store_rating_container,
.zh_list_rating_container {
    animation: ratingFadeIn 0.3s ease-out;
}

/* 悬停效果 */
.zh_rating_star:hover {
    transform: scale(1.1);
}

/* 加载中状态 */
.zh_rating_loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
    font-size: 12px;
}

.zh_rating_loading::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 