You can’t buy US stocks “ in China” as foreign stocks are not listed at the Chinese stock exchanges.
You can easily live in China and buy US or other foreign stocks through
a bank/ brokerage abroad. Questions that come up are how to get the money from point C. to point A. and taxation.