/**
 * 子比主题 · 信誉分系统
 * 徽章复用子比原生 .badg.badg-sm.c-* 样式体系，此处只补充简码组件样式
 */

/* ===== 排行榜 ===== */
.zcs-box {
    background: var(--main-bg-color, #fff);
    border-radius: 10px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    max-width: 480px;
}

.zcs-empty {
    color: var(--muted-color, #999);
    text-align: center;
    font-size: 14px;
    padding: 24px 16px;
}

.zcs-rank-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.zcs-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zcs-rank-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--muted-border-color, #f0f0f0);
}

.zcs-rank-list li:last-child {
    border-bottom: none;
}

.zcs-rank-user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.zcs-rank-user a {
    color: var(--key-color, #333);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zcs-rank-user .zcs-avatar img {
    border-radius: 50%;
    display: block;
}

.zcs-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(128, 128, 128, .12);
    color: var(--muted-color, #999);
    font-size: 12px;
    margin-left: 4px;
    flex: none;
}

.zcs-medal-1 { background: rgba(255, 215, 0, .35); color: #b8860b; }
.zcs-medal-2 { background: rgba(160, 174, 192, .35); color: #64748b; }
.zcs-medal-3 { background: rgba(245, 158, 11, .3); color: #b45309; }

.zcs-rank-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.zcs-rank-right .zcs-score {
    font-size: 15px;
    color: var(--key-color, #333);
}

/* ===== 我的信誉卡片 ===== */
.zcs-my-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.zcs-my-score {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.zcs-progress {
    height: 8px;
    background: rgba(128, 128, 128, .15);
    border-radius: 4px;
    overflow: hidden;
}

.zcs-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width .6s ease;
}

.zcs-my-next {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted-color, #999);
}

/* ===== 变动记录 ===== */
.zcs-log-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zcs-log-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--muted-border-color, #f0f0f0);
    font-size: 14px;
}

.zcs-log-list li:last-child {
    border-bottom: none;
}

.zcs-log-desc {
    flex: 1;
    min-width: 0;
    color: var(--key-color, #333);
}

.zcs-log-time {
    color: var(--muted-color, #bbb);
    font-size: 12px;
    flex: none;
}

.zcs-log-delta {
    font-weight: 700;
    flex: none;
    min-width: 36px;
    text-align: right;
}

.zcs-log-delta.up { color: #2fb56b; }
.zcs-log-delta.down { color: #d54941; }

/* ===== 用户中心信誉积分页 ===== */

/* 仪表盘（270°半圆弧 + 进度圆点端头） */
.zcs-gauge {
    position: relative;
    width: 130px;
    height: 130px;
    flex: none;
}

.zcs-gauge svg {
    display: block;
}

.zcs-gauge-con {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 1.35;
}

/* 能力宫格 */
.zcs-ability-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zcs-ability-item {
    flex: 1 0 30%;
    min-width: 96px;
    text-align: center;
    padding: 12px 6px;
    border-radius: 8px;
    background: rgba(128, 128, 128, .06);
}

.zcs-ability-item.is-locked {
    opacity: .55;
}

.zcs-ability-icon .icon,
.zcs-ability-icon .fa {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.zcs-ability-icon .icon {
    fill: currentColor;
}

.zcs-ability-item.is-ok .zcs-ability-icon {
    color: #2fb56b;
}

.zcs-ability-item.is-locked .zcs-ability-icon {
    color: #d54941;
}

.zcs-ability-name {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.zcs-ability-state {
    margin-top: 2px;
    color: var(--muted-color, #999);
}

.zcs-ability-item.is-ok .zcs-ability-state {
    color: #2fb56b;
}

.zcs-ability-item.is-locked .zcs-ability-state {
    color: #d54941;
}

/* 提升任务 */
.zcs-task-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
}

.zcs-task-item:last-child {
    border-bottom: none !important;
}

.zcs-task-item .zcs-progress {
    height: 6px;
    background: rgba(45, 140, 240, .12);
    border-radius: 3px;
    overflow: hidden;
}

.zcs-task-item .zcs-progress-bar {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #2d8cf0, #19be6b);
    transition: width .4s ease;
}

/* 明细 */
.zcs-log2-item {
    padding: 10px 0;
}

.zcs-log2-item:last-child {
    border-bottom: none !important;
}

.zcs-log2-empty {
    text-align: center;
    color: var(--muted-color, #999);
    padding: 18px 0 8px;
}

.zcs-log2-empty .zcs-log2-empty-icon {
    font-size: 30px;
    opacity: .4;
    margin-bottom: 6px;
}

.c-green { color: #2fb56b; }
.c-red { color: #d54941; }

/* ===== 后台用户列表徽章 ===== */
.wp-admin .zcs-lv-badge {
    cursor: help;
}


/* ===== 功能状态说明 ===== */
.zcs-help-btn {
    flex: none;
}

.zcs-help-panel {
    margin-top: 8px;
    padding: 4px 12px;
    border-top: 1px dashed rgba(128, 128, 128, .2);
}

.zcs-help-panel.collapse {
    display: none;
}

.zcs-help-panel.collapse.in {
    display: block;
}

.zcs-help-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
}

.zcs-help-item:last-child {
    border-bottom: none !important;
}

.zcs-help-icon {
    flex: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(45, 140, 240, .1);
    color: #2d8cf0;
}

.zcs-help-icon .icon,
.zcs-help-icon .fa {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.zcs-help-icon .icon {
    fill: currentColor;
}

.zcs-help-con {
    flex: 1;
    min-width: 0;
}
