The new regulations, which could ensnare people consensually sharing explicit images, come as the Chinese Communist Party tries to enforce high moral standards.