China heaped praise on Elon Musk’s plan for a Hong Kong-like system for Taiwan, despite declining support for unification on the island as Beijing ramps up military pressure.

Qin Gang, China’s ambassador to the U.S., thanked Musk for the proposal, saying on Twitter the "one country, two systems” framework is a basic principle for "resolving the Taiwan question.”

Hours later, Foreign Ministry spokeswoman Mao Ning affirmed those remarks.

"Provided that national sovereignty, security and development interests are assured, Taiwan can adopt a high degree of autonomy as a special administrative region,” she told reporters during a regular briefing Sunday.

In a Financial Times profile published Friday, Musk said, "My recommendation ... would be to figure out a special administrative zone for Taiwan that is reasonably palatable.” He added that "probably won’t make everyone happy.”

Such a proposal faces growing resistance in Taiwan toward any form of integration with Beijing, especially following the Chinese Communist Party’s sweeping crackdown on dissent in Hong Kong.

The dispute over Taiwan’s sovereignty is among the most dangerous variables in China-U.S. ties, with calls growing among American politicians for a commitment to get involved if Beijing takes military action.

More details about President Xi Jinping’s priorities on Taiwan may emerge next week at the upcoming Communist Party Congress, where he is set to secure a norm-defying third term.