/* 整体评论区域 - 紧凑设计 */
.euvr-reviews-section {
    margin: 25px 0;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.euvr-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f7fa;
}

/* 评分概览 - 紧凑布局 */
.euvr-rating-overview {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f9fafc;
    border-radius: 8px;
}

.euvr-average-box {
    display: flex;
    align-items: baseline;
}

.euvr-average {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.euvr-max {
    font-size: 18px;
    color: #7f8c8d;
    font-weight: 500;
    margin-left: 4px;
}

.euvr-stars {
    display: flex;
    gap: 3px;
}

.euvr-star {
    color: #e0e0e0;
}

.euvr-star.filled {
    color: #FFC107; /* 黄色星星 */
}

.euvr-count {
    font-size: 14px;
    color: #7f8c8d;
    margin-left: auto;
}

/* 筛选按钮 - 紧凑设计 */
.euvr-filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.euvr-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f7fa;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.euvr-filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.euvr-count-badge {
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 600;
}

.euvr-filter-btn.active .euvr-count-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* 关键词区域 - 紧凑设计 */
.euvr-keywords-section {
    margin-bottom: 25px;
    padding: 15px;
    background: #f9fafc;
    border-radius: 8px;
}

.euvr-keywords-title {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.euvr-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.euvr-keyword-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

/* 评论列表 - 紧凑设计 */
.euvr-reviews-list {
    margin-bottom: 30px;
}

.euvr-review-item {
    padding: 18px 0;
    border-bottom: 1px solid #f0f4f8;
}

/* 顶部信息行 - 合并为一行 */
.euvr-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.euvr-reviewer-info {
    display: flex;
    flex-direction: column;
}

.euvr-reviewer-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.euvr-review-date {
    color: #7f8c8d;
    font-size: 13px;
}

/* 评分移到右侧 */
.euvr-review-rating {
    display: flex;
    gap: 3px;
}

.euvr-review-rating .euvr-star {
    width: 16px;
    height: 16px;
}

.euvr-review-rating .euvr-star.filled {
    color: #FFC107; /* 黄色星星 */
}

.euvr-product-attributes {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.euvr-attribute {
    background: #f1f8e9;
    color: #558b2f;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.euvr-review-content {
    line-height: 1.6;
    color: #34495e;
    font-size: 14px;
    margin-bottom: 15px;
}

.euvr-review-photos {
    margin-top: 12px;
}

.euvr-review-photo {
    max-width: 120px;
    max-height: 120px;
    border-radius: 6px;
    border: 1px solid #eee;
    padding: 3px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.euvr-no-reviews {
    text-align: center;
    padding: 30px 15px;
    color: #7f8c8d;
}

.euvr-no-reviews svg {
    width: 50px;
    height: 50px;
    fill: #e0e0e0;
    margin-bottom: 15px;
}

/* 分页 - 紧凑设计 */
.euvr-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 25px;
    margin-bottom: 30px;
}

.euvr-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    color: #555;
    transition: all 0.3s;
}

.euvr-pagination .page-numbers.current {
    background: #3498db;
    color: white;
}

.euvr-pagination .page-numbers:hover:not(.current) {
    background: #f5f7fa;
}

.euvr-pagination .prev,
.euvr-pagination .next {
    width: auto;
    padding: 0 12px;
    border-radius: 17px;
}

.euvr-pagination svg {
    width: 14px;
    height: 14px;
}

/* 评论表单区域 - 紧凑设计 */
.euvr-review-form-section {
    padding-top: 25px;
    border-top: 1px solid #f0f4f8;
}

.euvr-form-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.euvr-attributes-field {
    margin-top: 15px;
}

.euvr-attributes-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.euvr-attributes-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.euvr-submit-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.euvr-submit-btn:hover {
    background: #2980b9;
}

/* 受限访问区域 */
.euvr-restricted-access,
.euvr-login-required {
    text-align: center;
    padding: 25px 15px;
    background: #f9fafc;
    border-radius: 8px;
}

.euvr-restricted-access svg,
.euvr-login-required svg {
    width: 50px;
    height: 50px;
    fill: #b0bec5;
    margin-bottom: 15px;
}

.euvr-restricted-access h3,
.euvr-login-required h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.euvr-restricted-access p,
.euvr-login-required p {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 14px;
}

/* 高亮关键词样式 */
.highlight {
    background-color: #fff9c4;
    padding: 2px 4px;
    border-radius: 3px;
    box-shadow: 0 0 3px rgba(255, 193, 7, 0.5);
}

/* 首页产品评分样式 - 优化颜色方案 */
.euvr-home-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0 10px;
}

.euvr-home-rating .euvr-stars {
    display: flex;
    gap: 1px;
}

.euvr-home-rating .euvr-star {
    display: inline-flex;
    width: 14px;
    height: 14px;
}

.euvr-home-rating .euvr-star svg {
    width: 100%;
    height: 100%;
}

.euvr-home-rating .euvr-star.filled svg path {
    fill: #FFC107; /* 黄色星星 */
}

/* 评分文本样式 */
.euvr-home-rating .euvr-rating-count {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-size: 12px;
    font-weight: 500;
}

.euvr-home-rating .euvr-average {
    color: #FF9800; /* 橙色突出平均分 */
    font-weight: 600;
}

.euvr-home-rating .euvr-total {
    color: #757575; /* 灰色评论数量 */
}

/* 无评论状态 */
.euvr-home-rating.no-reviews .euvr-rating-count {
    color: #9E9E9E;
    font-style: italic;
    font-size: 11px;
}

/* 关键词高亮效果 */
.euvr-review-item.euvr-highlighted {
    position: relative;
    background: #f8fdff;
    border-left: 3px solid #3498db;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.1);
}

.euvr-review-item.euvr-highlighted::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.03), transparent);
    pointer-events: none;
}

/* 关键词通知 */
#euvr-keyword-notice {
    margin-bottom: 20px;
    background: #e3f2fd;
    border-radius: 6px;
    overflow: hidden;
    border-left: 3px solid #3498db;
}

.euvr-notice-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.euvr-notice-content span {
    font-size: 14px;
    color: #1976d2;
    font-weight: 500;
}

.euvr-clear-highlight {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.euvr-clear-highlight:hover {
    opacity: 1;
}

.euvr-clear-highlight svg {
    width: 16px;
    height: 16px;
    fill: #1976d2;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .euvr-reviews-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .euvr-section-title {
        font-size: 20px;
    }
    
    .euvr-rating-overview {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .euvr-count {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .euvr-filter-buttons {
        flex-wrap: wrap;
    }
    
    .euvr-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .euvr-review-rating {
        align-self: flex-start;
    }
    
    .euvr-review-photo {
        max-width: 100px;
        max-height: 100px;
    }
    
    .euvr-pagination .page-numbers {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

/* 确保SVG图标正确显示 */
.euvr-home-rating .euvr-stars {
    display: flex;
    gap: 2px;
}
.euvr-home-rating .euvr-stars svg {
    width: 14px;
    height: 14px;
    display: block;
}