China is conflicted about Afghanistan.