/* 用户状态徽章样式 */

.user-times {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    cursor: default;
    white-space: nowrap;
}

.user-times:hover {
    transform: translateY(-1px);
}

/* 状态徽章通用样式 */
.status-badge {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* 管理员徽章 */
.status-badge.admin {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.status-badge.admin:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

/* VIP徽章 */
.status-badge.vip {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.status-badge.vip:hover {
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
}

/* 普通状态 */
.status-badge.normal {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.status-badge.normal:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* 警告状态 */
.status-badge.warning {
    background: #fef3c7;
    color: #f59e0b;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
    border: 1px solid #fbbf24;
}

.status-badge.warning:hover {
    background: #fde68a;
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

/* 危险状态 */
.status-badge.danger {
    background: #fee2e2;
    color: #ef4444;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    border: 1px solid #fca5a5;
}

.status-badge.danger:hover {
    background: #fecaca;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* 用户信息区域 */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.user-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-times,
    .status-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .user-name {
        font-size: 0.9rem;
    }
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.status-badge.danger {
    animation: pulse 2s ease-in-out infinite;
}

/* Tooltip 样式 */
.user-times[title]:hover::after,
.status-badge[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

.user-times,
.status-badge {
    position: relative;
}
