/* ==============================================
   子比主题评分与信用分系统样式
   ============================================== */

/* 评分统计区域样式 */
.zib-cs-post-stats-section {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.zib-cs-post-stats-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.zib-cs-rating-summary {
    padding: 25px 20px;
}

.zib-cs-rating-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.zib-cs-rating-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.zib-cs-rating-number {
    font-size: 2.2em;
    line-height: 1.1;
    font-weight: 800;
}

@media (max-width: 600px) {
    .zib-cs-rating-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .zib-cs-rating-stat {
        width: 100%;
        justify-content: center;
    }
    
    .zib-cs-rating-number {
        font-size: 1.8em;
    }
}

/* 评分按钮样式增强 */
.zib-cs-rating-buttons .but {
    min-width: 120px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.zib-cs-rating-buttons .but:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.zib-cs-rating-buttons .but:active {
    transform: translateY(0);
}

.zib-cs-rating-buttons .but.active {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important;
}

.zib-cs-rating-buttons .but-danger.active {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4) !important;
}

/* 统计网格优化 */
.zib-cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .zib-cs-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .zib-cs-rating-number {
        font-size: 2em;
    }
}

.zib-cs-stat-item {
    text-align: center;
    padding: 20px 15px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.zib-cs-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.zib-cs-stat-value {
    font-size: 2em;
    font-weight: 700;
    line-height: 1.3;
}

.zib-cs-stat-label {
    font-size: 0.9em;
    color: #6b7280;
    margin-top: 8px;
    font-weight: 500;
}

.zib-cs-stat-item.zib-cs-positive .zib-cs-stat-value {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.zib-cs-stat-item.zib-cs-negative .zib-cs-stat-value {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 作者统计区域优化 */
.zib-cs-author-stats {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

/* 徽章样式 */
.zib-cs-level-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 信用分卡片优化 */
.zib-cs-level-progress {
    margin-top: 15px;
}

/* 等级项目 */
.zib-cs-level-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

/* 进度条美化 */
.zib-cs-level-progress .progress {
    height: 10px;
    border-radius: 10px;
    background: #e5e7eb;
    overflow: hidden;
}

.zib-cs-level-progress .progress-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 评论区信用展示 */
.zib-cs-comment-credit {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 响应式优化 */
@media (max-width: 480px) {
    .zib-cs-rating-buttons .but {
        min-width: 100px;
        padding: 12px 20px !important;
    }
    
    .zib-cs-rating-buttons .gap20 {
        gap: 12px !important;
    }
}

/* 动画效果 */
.zib-cs-post-stats-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮点击波纹效果 */
.zib-cs-rating-buttons .but:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.zib-cs-rating-buttons .but:active:after {
    width: 200px;
    height: 200px;
}
