Well...for such a short layover, you would not want to stray far from the airport. Your options would be limited by whether you have a valid China visa. If you do, I'd encourage you to rush through customs and take a ride on the
MagLev train that runs from the airport to suburbs of Shanghai. The 40 (mile or km) journey is just 8 minutes each way and it costs RMB80 (USD10) roundtrip. If you prefer to remain in the terminal, it is cheaper to relax at a restaurant than pay for the PriorityPass lounge. If you are on a longer journey, you might want to look into buying the NWA 60-day WC membership. Feel free to PM me if you have more questions!