/* 用户区域组件样式 */
.user-area {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    min-height: 40px !important;
}

/* 已登录状态 */
.user-area .user-logged {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    white-space: nowrap !important;
}

.user-area .user-info {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

.user-area .welcome-text {
    color: #666 !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.user-area .username {
    color: #333 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    margin: 0 !important;
}

/* 小型VIP标识 */
.vip-badge-small {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 登录按钮 */
.user-area .login-btn {
    background: linear-gradient(135deg, #4860cd 0%, #1890ff 100%) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.user-area .login-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

/* 个人中心按钮 */
.user-area .user-center-btn {
    color: #1890ff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    border: 1px solid #1890ff !important;
    background: #fff !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

.user-area .user-center-btn:hover {
    color: #fff !important;
    background: #1890ff !important;
}

/* 退出按钮 */
.user-area .logout-btn {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e0e0e0 !important;
    background: #f8f9fa !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

.user-area .logout-btn:hover {
    color: #ff4757 !important;
    border-color: #ff4757 !important;
    background: #fff5f5 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-area {
        gap: 8px;
    }
    
    .user-logged {
        gap: 10px;
    }
    
    .user-info {
        gap: 6px;
    }
    
    .welcome-text,
    .username {
        font-size: 13px;
    }
    
    .login-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .logout-btn {
        padding: 4px 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .welcome-text {
        display: none; /* 在小屏幕上隐藏"欢迎"文字 */
    }
    
    .login-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .logout-btn {
        padding: 4px 6px;
        font-size: 12px;
    }
}
