BEIJING — China has warned that U.S. President Donald Trump's vow to impose high tariffs on steel and aluminum would have a "huge impact" on the global trading order and said Beijing would work with other nations to protect its interests.

A Commerce Ministry official said late Friday that Trump's plan to levy tariffs of 25 percent on steel and 10 percent on aluminum would "seriously damage multilateral trade mechanisms represented by the World Trade Organization and will surely have huge impact on normal international trade order."

"If the final measures of the United States hurt Chinese interests, China will work with other affected countries in taking measures to safeguard its own rights and interests," Wang Hejun, head of the ministry's trade remedy and investigation bureau, said in a statement on the ministry's website.

Chinese leaders have threatened in the past to retaliate if Trump raises trade barriers, but now need to weigh whether to back up those threats with action and risk jeopardizing U.S. market access for smartphones and other exports that matter more to their economy than metals.

"China will definitely respond. It doesn't want to be seen as weak. But it will be relatively restrained," said economist Louis Kuijs of Oxford Economics. "They don't want to be seen as a party that is wrecking the international trading system."

Global stock markets fell sharply Friday over worries of a possible trade war following Trump's announcement.

Trump thumbed his nose Friday at the concerns over rising trade tensions and higher prices for U.S. consumers, tweeting that "trade wars are good, and easy to win. Example, when we are down $100 billion with a certain country and they get cute, don't trade anymore-we win big. It's easy!"

Beijing has accused Trump of undermining global trade regulation by taking action over steel, technology policy and other disputes under U.S. law instead of through the World Trade Organization.

Chinese officials have appealed to the White House since last March to avoid hurting both sides by disrupting aluminum trade. Their tone hardened after Trump launched a probe in August of whether Beijing improperly pressures companies to hand over technology and in January raised duties on Chinese solar modules and washing machines.

Canada, Japan and South Korea, all U.S. allies and major exporters of steel and aluminum, are asking for exemptions from the tariff hike, which Trump justified in part on national security grounds.

Canadian Prime Minister Justin Trudeau said it "made no sense" to highlight national security issues noting the countries' military cooperation and defense of North America.

"This is absolutely unacceptable and it's a point we've made many times," Trudeau said.

Canadian Foreign Minister Chrystia Freeland said Canada is prepared to take responsive measures to defend its trade interests.

Canada is the biggest steel exporter to the U.S., and Freeland noted that Canada buys more American steel than any other country in the world, accounting for 50 percent of U.S. exports. She also noted the steel and aluminum industry in North America is highly integrated and said the Canadian government will continue to make that point directly with the Trump administration.

Hiroshige Seko, Japan's trade and industry minister, said at a news conference, "We don't think imports from Japan, an ally, have any effect at all on U.S. national security."

A South Korean trade envoy, Kim Hyun-chong, met with Trump's chief economic adviser, Gary Cohn, and Commerce Secretary Wilbur Ross to "strongly demand" they keep the impact on South Korean companies to a minimum, according to a trade ministry statement.

The president of the European Union's governing body, Jean-Claude Juncker, said the 28-nation trade bloc will retaliate if Trump follows through.

"Risks of trade wars are rising, but should be contained for now," said Cesar Rojas and Ebrahim Rahbari of Citigroup in a report. "We expect U.S. major trade partners' reaction to be moderate, including by taking cases to the WTO."

Adding to the political stakes in China, Trump's announcement came ahead of next week's meeting of its ceremonial legislature, the year's most prominent political event. Action against American companies or goods would compete for attention with the National People's Congress, which the ruling Communist Party uses to showcase its economic plans.

Beijing has an array of high-profile targets for retaliation including suppliers of soybeans, the biggest American export to China. A curb on purchases could hurt farm state voters who supported Trump.

"We've clearly heard from the Chinese" that soybeans "are definitely one of the largest things that could be targeted," said Jake Parker, vice president for China operations for the U.S.-China Business Council.

However, Parker said, soybeans might be held for use later on a bigger issue such as the "301" investigation into Beijing's technology policy, which could have a broader impact.

Trade makes up a smaller share of China's economy than it did a decade ago. But export-driven industries support millions of jobs, raising the potential political cost of any disruption.

The United States, China's No. 2 trade partner after the EU, buys about 20 percent of Chinese exports but allows Beijing to run multibillion-dollar surpluses that offset its deficits with other partners.

Last year, China exported goods worth $2.80 to the United States for every $1 of American goods it bought, according to Chinese data. Its trade surplus of $275.8 billion with the United States was equal to 65 percent of its global total.

"That makes China the more vulnerable partner in this," said Kuijs.

Also Friday, the Commerce Ministry expressed "grave concern" about a trade policy report sent to the U.S. Congress by the White House this week that accuses China of moving away from market principles. It pledges to prevent Beijing from disrupting global trade.

The ministry said Beijing has satisfied its trade obligations and appealed to Washington to settle market access and subsidy disputes through negotiation.