You are talking Total war Here... It would involve a hell lot of sacrifices from the average Chinese.. A place even Putin is afraid to tread.. But yes.. Great power war will essentially morph into an existential war and hence a total war as WW1 and WW2 have shown.. But, even then, China's inherent geographic weakness w.r.t ocean access, will compound their troubles in a years' long Great power attrition war.. US and India are blessed by Geography in that sense..
If the CCP makes a move on Taiwan it's going to be a great war or whatever nomenclature you wish to attach to it. Both the US & its allies as well as China are aware of it & are preparing accordingly.
Putin isn't going down that way for he's confronting a proxy. Proxy wars of the kind we're seeing in Ukraine is not a new phenomen. The US faced it in Vietnam, the former USSR in Afghanistan , etc.
None of the principals then chose to expand the envelope of conflict by dragging in the sponsors of the proxy into open conflict. Neither will Putin, though he'd make noises like he's going to.
The key to fighting a proxy war is to find another proxy who'd engage your foe the way the latter has sponsored the proxy to engage you. Hence Russia's support to Iran China & DPRK.
In any case China's doom is a foregone conclusion for the simple reason that they lack a structured alliance system of the kind the US has been able to conjure up though having said that they'd cause enormous damage all around before going down.