/**
 * 51ziy.com版权所有，未经允许请勿复制！
 * 最终整合版
 */

/* ==========================================================================
   徽章容器样式
   ========================================================================== */

/* 让徽章容器独占一行，并与下方的简介文字保持间距 */
.mcp-user-badges-container {
    display: block;
    width: 100%;
    margin-bottom: 10px; 
}


/* ==========================================================================
   用户信息徽章样式
   ========================================================================== */

.user-info-badge {
    /* 使用flex布局以更好地垂直对齐内部内容（即使没有图标） */
    display: inline-flex;
    align-items: center;

    /* 恢复到您熟悉的原始风格 */
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 4px;

    /* 最终版边距：移除下边距，只保留右边距用于徽章间的水平间隔 */
    margin: 0 5px 0 0; 
    
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* 为未来可能重新添加的图标保留的样式 */
.user-info-badge i,
.user-info-badge svg {
    margin-right: 4px;
    vertical-align: -0.15em;
}

/* 原始的半透明背景颜色 */
.c-red { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; }
.c-blue { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.c-green { background-color: rgba(34, 197, 94, 0.1); color: #22c55e; }
.c-purple { background-color: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.c-cyan { background-color: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.c-yellow { background-color: rgba(234, 179, 8, 0.1); color: #eab308; }

/* 原始的渐变色背景颜色 */
.jb-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.jb-red { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.jb-green { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; }
.jb-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
.jb-yellow { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.jb-vip1 { background: linear-gradient(135deg, #f97316, #ea580c); color: white; }
.jb-vip2 { background: linear-gradient(135deg, #ec4899, #db2777); color: white; }

/* 原始的悬停效果 */
.user-info-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 移动端视图 */
@media (max-width: 768px) {
    .user-info-badge {
        /* 在移动端，为了防止换行时过于拥挤，可以保留下边距 */
        margin: 0 5px 3px 0;
        padding: 2px 8px;
        font-size: 11px;
    }
}


/* ==========================================================================
   QQ群二维码悬停样式
   ========================================================================== */

.mcp-qq-button-wrapper {
    position: relative;
    cursor: pointer;
}

.mcp-qrcode-popup {
    position: absolute;
    bottom: 110%; /* 出现在按钮上方 */
    left: 50%;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 99;
    
    /* 默认隐藏 */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(10px); /* 悬停时上浮效果 */
}

.mcp-qrcode-popup img {
    display: block;
    width: 150px;
    height: 150px;
}

/* 鼠标悬停时显示二维码 */
.mcp-qq-button-wrapper:hover .mcp-qrcode-popup {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}