Excuse me, what is the difference between "lou" and "xuan" in ancient times? What are the main differences?

Pavilion is a high-rise building in the garden. It is generally large in size and rich in shape. The early building refers to a stack of two-story single buildings for residential use. The bottom floor of the pavilion is vacant, and the main buildings are located on the upper floor, mostly used for viewing the scenery. Later, multi-story halls that stored calligraphy and paintings or worshiped Buddha were also called pavilions, such as the Pavilion of Buddhist Incense in the Summer Palace in Beijing. Xuan Xuan is a small, exquisite, open and exquisite building. The indoors are simple and elegant, and outdoors you can watch fish by the water, appreciate flowers and trees, or enjoy the best views. Xuan is also taken from Du Fu's poetic saying "Every layer of Xuan is covered with water, and the old trees are covered with frost".