A rough-looking Chinese animated film that was initially mocked for its crude visuals has become an unlikely box-office hit, as audiences embrace its imperfections.