/* 撸撸社用户评价页面样式 */

.stats-overview {
    padding: 40px 0;
    background: white;
}

.stats-overview .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stats-overview .stat-card {
    text-align: center;
    padding: 25px 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stats-overview .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stats-overview .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.stats-overview .stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.stat-stars {
    color: #ffd700;
    font-size: 16px;
    margin-top: 8px;
}

.rating-breakdown {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rating-breakdown h3 {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-label {
    min-width: 30px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.rating-percent {
    min-width: 35px;
    font-size: 13px;
    color: #667eea;
    font-weight: 600;
    text-align: right;
}

.comments-content {
    padding: 40px 0;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tabs .tab {
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.filter-tabs .tab.active,
.filter-tabs .tab:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.comment-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.comment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.comment-card.featured {
    border: 3px solid #667eea;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-card .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.user-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.user-badge {
    background: #667eea;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 6px;
}

.user-level {
    background: #f8f9fa;
    color: #666;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
}

.comment-meta {
    text-align: right;
}

.comment-meta .rating {
    color: #ffd700;
    font-size: 14px;
    margin-bottom: 4px;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-content {
    margin-bottom: 20px;
}

.comment-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.comment-content p {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}

.comment-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 15px;
}

.action-btn:hover {
    background: #f8f9fa;
    color: #667eea;
    transform: translateY(-2px);
}

.helpful-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
}

.write-review {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.write-review h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.form-header span {
    font-size: 14px;
    color: #666;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.star-rating {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 20px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.star:hover,
.star.active {
    color: #ffd700;
    transform: scale(1.2);
}

.review-title {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.review-title:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.review-text {
    width: 100%;
    min-height: 100px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.review-text:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .stats-overview .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .comment-meta {
        text-align: left;
    }
    
    .comment-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .form-actions {
        justify-content: center;
    }
    
    .rating-breakdown {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .stats-overview .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs .tab {
        text-align: center;
        width: 100%;
    }
    
    .comment-card {
        padding: 20px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .write-review {
        padding: 20px 15px;
    }
    
    .form-header {
        flex-direction: column;
        text-align: center;
    }
    
    .rating-input {
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
}