/* 积分流水列表 - 单行显示 */
.uap-points-log-list {
    display: flex;
    flex-direction: column;
}

.uap-points-log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.uap-points-log-item:last-child {
    border-bottom: none;
}

.uap-log-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.uap-log-type {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.uap-log-time {
    font-size: 12px;
    color: #d1d5db;
    white-space: nowrap;
    margin-left: auto;
    padding-left: 12px;
}

.uap-log-points {
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    margin-left: 16px;
    white-space: nowrap;
}

.uap-log-points.positive {
    color: #059669;
}

.uap-log-points.negative {
    color: #dc2626;
}

.uap-log-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: 16px;
    white-space: nowrap;
}

.uap-log-values .uap-log-points {
    margin-left: 0;
}

.uap-log-balance {
    font-size: 11px;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .uap-log-info {
        flex-wrap: wrap;
        gap: 4px;
    }

    .uap-log-time {
        margin-left: 0;
        padding-left: 0;
    }
}

/* 积分分页 */
.uap-points-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.uap-points-pagination .uap-page-btn,
.uap-points-pagination .uap-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    line-height: 1;
}

.uap-page-btn {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
    transition: all 0.15s;
}

.uap-page-btn:hover {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

.uap-page-current {
    padding: 6px 12px;
    background: #1f2937;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
}

.uap-page-dots {
    padding: 6px 8px;
    color: #d1d5db;
}

/* 积分排行榜 */
.uap-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uap-ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    transition: background 0.15s;
}

.uap-ranking-item:hover {
    background: #f5f5f5;
}

.uap-ranking-item.top-1 {
    background: #fffbeb;
}

.uap-ranking-item.top-1:hover {
    background: #fef3c7;
}

.uap-ranking-item.top-2 {
    background: #f9fafb;
}

.uap-ranking-item.top-3 {
    background: #fff7ed;
}

.uap-ranking-item.top-3:hover {
    background: #ffedd5;
}

.uap-rank-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    background: #fff;
    border-radius: 6px;
    flex-shrink: 0;
}

.uap-ranking-item.top-1 .uap-rank-num {
    color: #d97706;
    background: #fef3c7;
}

.uap-ranking-item.top-2 .uap-rank-num {
    color: #6b7280;
    background: #e5e7eb;
}

.uap-ranking-item.top-3 .uap-rank-num {
    color: #ea580c;
    background: #fed7aa;
}

.uap-rank-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.uap-rank-name {
    flex: 1;
    font-size: 14px;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uap-rank-points {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
}

/* 积分规则 */
.uap-points-rules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.uap-points-rule-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 8px;
}

.uap-rule-name {
    font-size: 14px;
    color: #374151;
}

.uap-rule-points {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
}

.uap-rule-limit {
    font-size: 12px;
    color: #9ca3af;
    width: 100%;
}

.uap-rule-description {
    width: 100%;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}

