China only has two allies: the People’s Liberation Army and the PLA Navy.
That’s all you need to know. The history of modern PRC is shaped by its unique position of being on a precipice and caught between the imperialist struggles between the US and the USSR during the Cold War.
Note: in China, it is not controversial to say that the USSR had imperialist ambitions against China, even if I don’t personally agree with it.
It has always been a balancing act. When the US is strong, we support the USSR as a counterbalance force against US imperialism. And when the USSR is threatening us, we side with the US to get rid of the USSR.
Play between the interests of both sides and win - that’s all you need to know about modern China’s geopolitical stance. This is the means of survival of a weak country caught between two strong powers. We have had 5000 years of history - the rise and fall of countless ruling regimes spanning dozens of dynasties - to learn from. It boils down to pragmatism and survival.
The success of modern China is a testament of how well this strategy has worked. After all, it is the PRC, not the USSR, that prevailed in the end.