Lula's state visit to Beijing reveals Brazil's foreign policy balancing act