BEIJING (AFP) - President Donald Trump has frustrated and enraged China during a tumultuous first term, but Beijing may welcome his re-election as it scans the horizon for the decline of its superpower rival.
Relations are as icy as at any time since formal ties were established four decades ago, with China warning it does not want to be drawn into a new "Cold War" with the United States.
Under his "America First" banner, Mr Trump has portrayed China as the greatest threat to the US and global democracy.
He has launched a massive trade war that has cost China billions of dollars, harangued Chinese tech firms and laid all the blame for the coronavirus pandemic with Beijing.
But another Trump triumph in November may have its advantages for China as President Xi Jinping seeks to cement his nation's rise as a global superpower.
China's leadership could be handed "the opportunity to boost its global standing as a champion for globalisation, multilateralism, and international cooperation", said professor of political and international relations Zhu Zhiqun of Bucknell University in Pennsylvania.
Mr Trump has pulled America from a sprawling Asia-Pacific commercial deal and climate agreements, imposed billions of dollars of tariffs on Chinese goods, and withdrawn the US from the World Health Organisation at the height of a global pandemic.
Where the US has retreated, Mr Xi has stepped forward.
He has presented his country as the champion of free trade and a leader in the fight against climate change, as well as vowed to share any potential Covid-19 vaccine with poorer nations.
"A second Trump term could give China more time to rise as a great power on the world stage," Prof Zhu said.
Mr Philippe Le Corre, a China expert at the Harvard Kennedy School in the US, agreed an extension of Mr Trump's America First policies would be of long-term benefit for Beijing.
"(It) partially cuts Washington off from its traditional allies," he added, and that gave China room to manoeuvre.
China's nationalists have openly cheered, or jeered, for Mr Trump.
"You can make America eccentric and thus hateful for the world," Mr Hu Xijin, editor-in-chief of the Global Times, a chest-beating nationalist paper, warned in a tweet directed at the US President.
"You help promote unity in China."
Mr Trump is also lampooned on China's heavily censored social media as "Jianguo", meaning "help to build China".
Mr Trump has undoubtedly inflicted economic and political pain on China.
"China has lost out enormously in its plan for trade and technology," said Beijing-based political analyst Hua Po.
In January, the US and China signed a deal bringing a partial truce in their trade war that obliged Beijing to import an additional US$200 billion (S$271.43 billion) in American products over two years, ranging from cars to machinery and oil to farm products.
Washington has also turned its guns on Chinese tech firms it says poses security threats, throwing the future US operations of video-sharing app TikTok - owned by Chinese parent company ByteDance - into uncertainty.
Mobile giant Huawei is also on Mr Trump's hit list.
The enmity also extends into defence and human rights, with Taiwan, Hong Kong and the treatment of China's Muslim Uighur minority all making waves in the US.
But China may not win much relief in any of these areas if Mr Trump loses to Democratic challenger Joe Biden.
Beijing worries that Mr Biden is likely to renew American leadership on human rights, pressing China on issues of the Uighurs, Tibet and freedom in Hong Kong.
"Biden is likely to be tougher than Trump on human rights issues in Xinjiang and Tibet," said Prof Zhu of Bucknell University.
And on tech and trade - crucial flash points in the US-China rivalry - it is unclear just how much room a Biden White House would have to manoeuvre.
"Biden will inherit the tariffs, and I'm doubtful he would lift them unilaterally," said Dr Bonnie Glaser, director of the China Power Project at the Centre for Strategic and International Studies.
"Beijing will probably have to concede to other US demands if it wants the tariffs lifted."