/* 游戏动态面板（首页右栏） */
.opfeed-card {
    margin-bottom: 1rem;
    padding: 14px 16px;
}

.opfeed-card .widget-title {
    margin-bottom: 12px;
    font-size: 16px;
    border-left: 3px solid #1a7f37;
    padding-left: 8px;
}

/* ===== 统计卡片（光明/愤怒/总在线/总注册） ===== */
.opfeed-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.opfeed-stat {
    flex: 1;
    text-align: center;
    border-radius: 8px;
    padding: 10px 4px;
}

.opfeed-light {
    background: #e8f7ec;
    color: #1a7f37;
}

.opfeed-dark {
    background: #fdeaea;
    color: #c0392b;
}

.opfeed-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.opfeed-label {
    font-size: 12px;
}

.opfeed-totals {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.opfeed-total {
    flex: 1;
    text-align: center;
    border-radius: 8px;
    padding: 10px 4px;
    background: #eef4fc;
    color: #1a5fb4;
}

/* ===== 动态列表容器 ===== */
.opfeed-list {
    height: 340px;
    overflow-y: auto;
    font-size: 13px;
    scrollbar-width: thin;
}

/* ===== 单条动态（新格式：[类型]时间 角色名 详情） ===== */
.opfeed-item {
    padding: 6px 4px;
    border-bottom: 1px solid #f2f2f2;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 4px;
}

/* 类型标签 [积分兑换] 等 */
.opfeed-type-tag {
    font-size: 11px;
    color: #fff;
    background: #6c757d;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    font-weight: 500;
    flex-shrink: 0;
}

/* 各类型的标签颜色 */
.opfeed-type-注册 { background: #17a2b8; }
.opfeed-type-登录 { background: #6c757d; }
.opfeed-type-积分兑换,
.opfeed-type-兑换 { background: #fd7e14; }
.opfeed-type-每日任务,
.opfeed-type-任务 { background: #20c997; }
.opfeed-type-角色转生,
.opfeed-type-转生 { background: #e83e8c; }
.opfeed-type-阵营转换,
.opfeed-type-阵营 { background: #6610f2; }
.opfeed-type-角色复活,
.opfeed-type-复活 { background: #dc3545; }
.opfeed-type-在线奖励 { background: #007bff; }
.opfeed-type-战功转移 { background: #d63384; }
.opfeed-type-战功转生 { background: #f4511e; }
.opfeed-type-积分交易 { background: #0d6efd; }

/* 时间 */
.opfeed-time {
    color: #999;
    margin-right: 2px;
    font-size: 12px;
    flex-shrink: 0;
}

/* 角色名（高亮显示） */
.opfeed-char {
    color: #1a7f37;
    font-weight: 600;
    flex-shrink: 0;
}

/* 详情文字 */
.opfeed-text {
    color: #333;
    word-break: break-all;
}

/* 空状态 */
.opfeed-empty {
    color: #aaa;
    text-align: center;
    padding: 20px 0;
}

/* 响应式：窄屏时列表高度缩小 */
@media (max-width: 991.98px) {
    .opfeed-list {
        height: 260px;
    }
}
