For premodern Chinese people, sleep was much more than daily rest – it was a cultivated discipline and a medical necessity.