The formalized state ceremonies and dress codes that defined social hierarchy and political legitimacy in ancient China.