/* =======================================
   全局容器 & 卡片基础样式
======================================= */
.container {
    max-width: 1200px !important;
}
.card {
    border-radius: 12px;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.card-header {
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}
.gap-2 {
    gap: 0.5rem;
}
.card-img-top {
    width: auto;
    height: 200px;
    object-fit: cover;
}

/* =======================================
   头像 & 编辑样式
======================================= */
.avatar-container img {
    border-radius: 14px !important;
    object-fit: cover;
}
.avatar-modal-img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}
.avatar-container {
    position: relative;
    display: inline-block;
    height: 100%;
    overflow: hidden;
}
.edit-text {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    width: 120px;
    color: #fff;
    text-align: center;
    padding: 2px;
    font-size: 12px;
    box-sizing: border-box;
}
.avatar-container:hover .edit-text {
    display: block;
}

/* =======================================
   角标 & 菜单按钮
======================================= */
.position-relative {
    position: relative;
    display: inline-block;
}
.badge-image-1 {
    position: absolute;
    bottom: 0;
    right: -10px;
    width: 35px;
    height: auto;
}
.menu-button-container {
    position: absolute;
    bottom: 240px;
    right: 10px;
}
.menu-button {
    font-size: 1rem;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    outline: none;
    cursor: pointer;
}
.menu-button:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* =======================================
   UID / 靓号标签
======================================= */
.badge {
    margin-right: 0 !important;
    font-weight: 500;
}
.badge-primary {
    background: #0d6efd !important;
    color: #fff !important;
}

/* 靓号流光渐变 */
.pretty-uid {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700, #FFEC8B, #FFD700) !important;
    background-size: 300% 300% !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    animation: prettyShine 2s infinite linear !important;
    box-shadow: 0 3px 8px rgba(255, 193, 7, 0.4) !important;
    text-shadow: 0 1px 2px rgba(255,255,255,0.6) !important;
    border: 1px solid rgba(255,215,0,0.3) !important;
}
@keyframes prettyShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =======================================
   用户数据统计栏
======================================= */
.user-stats {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 5px 0;
    font-size: 15px;
    color: #666;
}
.user-stats a {
    color: #666 !important;
    text-decoration: none !important;
}
.user-stats a:hover {
    color: #0d6efd !important;
    text-decoration: underline !important;
}
.stat-sep {
    color: #ccc;
}
.user-signature {
    margin-top: 10px;
    font-size: 14px;
    color: #444;
}

/* =======================================
   按钮样式（认证 / 关注 / 悬浮）
======================================= */
.authentication-button {
    width: 80px;
    height: 20px;
    font-size: 12px;
    line-height: 1.5;
    padding: 0;
}
.interest-buuton {
    width: 60px;
    height: 25px;
    line-height: 1.5;
    padding: 0;
}
.gz-btn, .sx-btn {
    border-radius: 15px;
    padding: 2px 15px;
    font-size: 15px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}
.maxgz-btn, .maxsx-btn {
    border-radius: 10px;
    padding: 0px 20px;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}
.custom-btn:hover {
    background-color: #c82333;
}

/* =======================================
   卡片悬浮动效
======================================= */
.hover-card {
    transition: all 0.2s ease-in-out;
}
.hover-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

/* =======================================
   提示框
======================================= */
.custom-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
}

/* =======================================
   响应式适配（手机/平板）—— 强制显示关注按钮
======================================= */
.responsive-buttons {
    flex-wrap: wrap;
}

/* 取消所有屏幕下的按钮隐藏 */
@media (min-width: 750px) {
    .maxgz-btn, .maxsx-btn {
        display: none !important;
    }
}
@media (max-width: 750px) {
    /* 强制显示 .gz-btn 永远不隐藏 */
    .gz-btn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 140px !important;
    }
}

@media (max-width: 490px) {
    .responsive-buttons,
    .responsive-stats {
        flex-direction: column;
    }
    .responsive-stat,
    .responsive-btn {
        margin-right: 0 !important;
        margin-bottom: 5px;
    }
    .responsive-stat:last-child,
    .responsive-btn:last-child {
        margin-bottom: 0;
    }
}