Devotion and afterlife in China 500-1000 A.D.