Chinese writer sentenced for ‘anti-government thoughts’