In Chinese architecture, curved roofs and winding paths are common elements thought to confuse evil spirits, who according to folklore can only travel in straight lines. The curving of rooflines and walkways aims to trap spirits and prevent them from entering homes and buildings.