/* 评分区域容器样式 */
.rating-container {
    margin: 15px 0;  /* 外边距 */
    padding: 15px;  /* 内边距 */
    background-color: rgba(214, 247, 235, 0.5);  /* 半透明背景 */
    border-radius: 8px;  /* 圆角 */
    transition: all 0.3s ease;  /* 平滑过渡 */
}

/* 星星评分区域样式 */
.stars {
    text-align: center;  /* 水平居中 */
    flex-direction: row;  /* 正向排列（1星到5星） */
    margin-bottom: 20px;
}

/* 单个星星样式 */
.star {
    font-size: 1.8rem;  /* 大尺寸星星 */
    color: #555555;  /* 默认灰色 */
    cursor: pointer;  /* 鼠标指针 */
    transition: all 0.2s ease;  /* 平滑过渡 */
    margin: 0 1px;  /* 星星间距 */
    position: relative;
}

/* 星星鼠标悬停样式 */
.star::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, top 0.3s;
    white-space: nowrap;
    z-index: 10;
}

.star[data-value="1"]::after { content: '很差'; }
.star[data-value="2"]::after { content: '一般'; }
.star[data-value="3"]::after { content: '不错'; }
.star[data-value="4"]::after { content: '很好'; }
.star[data-value="5"]::after { content: '满意'; }

.star:hover::after {
    opacity: 1;
    top: -40px;
}

/* 悬浮和选中状态样式 */
.star:hover,
.star.hovered,  /* 添加悬浮状态 */
.star.active {
    color: #ff6600;  /* 金色高亮 */
}

/* 已评分反馈区域样式 */
.feedback {
    background: rgba(255, 255, 255, 0.8);  /* 轻微透明背景 */
    margin: 10px 0;  /* 外边距 */
    padding: 15px;  /* 内边距 */
    border-radius: 12px;  /* 更大圆角 */
    text-align: center;
}

/* 评分信息区域样式 */
.rating-info {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 15px;  /* 上边距 */
    margin-bottom: 10px; /* 下边距 */
}

.rating-info span {
    margin: 0 5px;  /* 间距 */
}

/* 平均分星星样式 */
.average-stars {
    font-size: 1.0rem;  /* 小型字体 */
}

/* 平均分星星图标 */
.average-stars i {
    margin: 0 2px;  /* 间距 */
}

/* 满星样式 */
.average-stars .fas.fa-star {
    color: #FF6600;  /* 金色 */
}

/* 半星样式 */
.average-stars .fas.fa-star-half-alt {
    color: #FFbb00;  /* 金色 */
}

/* 空星样式 */
.average-stars .far.fa-star {
    color: #555555;  /* 灰色 */
}

/* 平均分值显示样式 */
.average-value {
    font-size: 1.3rem;  /* 中等字体 */
    font-weight: bold;  /* 加粗 */
    background: rgba(255, 255, 255, 0.1);  /* 轻微透明背景 */
    padding: 5px 15px;  /* 内边距 */
    border-radius: 20px;  /* 圆形边框 */
    margin-top: 10px;  /* 上边距 */
}

/* 评分计数样式 */
.rating-count {
    background-color: rgba(28, 192, 136, 0.2);  /* 半透明绿色 */
    padding: 3px 8px;  /* 内边距 */
    border-radius: 12px;  /* 圆角 */
    font-size: 14px;  /* 小字体 */
    transform:translateY(5%);
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 600px) {
    .rating-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}