Are you sure you are in Shanghai?? If I would give my wife 16k she would only need 3 minutes to spend it and then ask for more.
If you don’t want to bring it out in cash go to watch shop and get a watch or go to the bank and get a piece of gold.
Around 50g are allowed to be brought out of China. And don’t worry about the amount of cash. Have you ever seen Chinese bringing their money to the bank? They bring it in suitcases!! there. So relax and enjoy the last days here!!