You say the situation is quite special, in Beijing there are few places where you can stay within a scenic area, and only Yuanmingyuan has one hotel. Although it’s located outside the east gate of Yuanmingyuan, but there is an entrance available, which you can book on Ctrip website.
You said the situation is quite special, in Beijing there are few hotels that can accommodate you near scenic spots, except for one hotel at Yi Shan Garden which has a gate that leads inside although it’s located outside the East Palace Gate of Yi Shan Garden, and you can make reservations on Ctrip online.