I talked to Chinese people about Taiwan. They are very emotional about it (anger and hate). Don’t expect China to act logical.
The average Chinese person is no more responsible for Chinese foreign policy than the average American is for American foreign policy.
During the Opium Wars, foreign invaders occupied many of the mainland's ocean ports.
Taiwan, as part of the First Island Chain, represents a critical strategic asset for those wishing to control mainland China.