China is increasingly self-sufficient, militarily assertive and economically insulated—and it is digging in on core issues of contention.