China is untangling its economy from the West. It could be preparing for long-term tensions — and an invasion of Taiwan.