/* 用户中心悬浮弹窗 - 完全按你第二张图排版 */
.user-popup-card {
    display: none;
    position: fixed;
    z-index: 999999;
    width: 260px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    font-family: sans-serif;
}

/* 顶部用户信息区 */
.popup-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #e6f7ff 0%, #ffffff 100%);
}
.popup-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #d9d9d9;
}
.popup-info {
    margin-left: 12px;
}
.popup-username {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.popup-role {
    font-size: 12px;
    color: #666;
}

/* 积分余额区 */
.popup-balance {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f5f5f5;
}
.balance-item span {
    font-size: 14px;
    color: #333;
}

/* VIP升级区 */
.popup-vip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
}
.vip-text p:first-child {
    font-size: 14px;
    color: #333;
    margin: 0 0 4px 0;
}
.vip-text p:last-child {
    font-size: 12px;
    color: #666;
    margin: 0;
}
.vip-btn {
    background: #ff7a45;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
}

/* 按钮区 */
.popup-buttons {
    display: flex;
    gap: 10px;
    padding: 16px;
}
.btn {
    flex: 1 1 0%;  /* 关键改动！替代旧的 flex:1 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
}
.btn-blue {
    background: #e6f7ff;
    color: #1677ff;
    border: 1px solid #91d5ff;
}
.btn-orange {
    background: #fff7e6;
    color: #ff7a45;
    border: 1px solid #ffd591;
}

/* 底部导航 */
.popup-nav {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #eee;
}
.popup-nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}
.popup-logout {
    color: #ff4d4f;
}