You just landed at 2 AM. Here is exactly how to get hot food, stay safe, and reach your hotel without speaking a word of Chinese.
Unlike many Western cities where streets are empty and shops are closed after midnight, China's major cities (Beijing, Shanghai, etc.) are incredibly safe. There are 24-hour convenience stores on almost every block, and the streets are heavily monitored by security cameras and patrols. You can walk outside right now and buy a hot meal.