By GILLIAN WONG and KIM TONG-HYUNG
BEIJING (AP) — With smiles and firm handshakes, North Korea and China used a surprise summit this week to show that despite recent tensions, Pyongyang still has a powerful backer and Beijing will not be sidelined in discussions about the fate of its unpredictable neighbor.
North Korean leader Kim Jong Un's secretive talks with Chinese President Xi Jinping in Beijing appear aimed at improving both countries' positions ahead of Kim's anticipated meetings with South Korean President Moon Jae-in and U.S. President Donald Trump in the coming weeks.
A key objective for Beijing is to reassert its relevance to the talks, from which it has been excluded. China has appeared increasingly shut out as its relations with the North deteriorated and Pyongyang reached out to Seoul and Washington.
"Kim Jong Un's visit shows that China is not marginalized, but playing a leading role. This saves China a lot of face," said Pang Zhongying, a North Korea expert at Renmin University in Beijing.
"North Korea once again is taking advantage of China," Pang said. "It plays the China card, showing South Korea and the U.S.: China is still my ally."
Official reports from both countries on Wednesday depicted in effusive terms warm ties between the leaders in an effort to downplay recent tensions over Kim's development of nuclear weapons and long-range missiles.
In the reports, "Kim reaffirms the traditional friendship between the two countries as if nothing had ever happened, when the relationship had plummeted to unprecedented lows," said Bonnie Glaser, an Asia expert at the Center for Strategic and International Studies.
Ties in recent months have frayed as China supported tougher U.N. sanctions on North Korea and suspended coal and iron ore imports. Pyongyang last year seemingly sought to humiliate Beijing by timing some of its missile tests for major global summits in China.
Kim made the visit to China at Xi's invitation, China's official Xinhua News Agency said, in his first trip to a foreign country since he took power in 2011. Xinhua said the trip ran from Sunday to Wednesday but appeared to include travel time from Pyongyang on the special armored train that Kim traveled on, which secretly arrived in Beijing on Monday and left Tuesday afternoon.
Rumors of Kim's presence began circulating on Monday night, with the spotting of his special train, Chinese security teams and official delegations at the border city of Dandong and various points in Beijing.
Although China sought to keep Kim's visit secret, and described it Wednesday as "unofficial," it accorded him full honors due to a head of state, including a formal welcoming ceremony and troop review at the Great Hall of the People in central Beijing.
Xi and his wife, Peng Liyuan, also hosted a banquet for Kim and his wife, Ri Sol Ju, and they watched an art performance together, Xinhua said.
"We speak highly of this visit," Xi told Kim, according to Xinhua.
For China, the visit also projects to its public that Xi is firmly in charge of steering Beijing's relations with North Korea in a way that favors China's interests.
"Here is Xi Jinping saying, 'Don't worry, everything is going to be great,'" Glaser said.