the city in late Imperial China