As China wraps its authoritarian rule more tightly around this once-boisterous metropolis, no corner of society has been left untouched. Bookstores are closing, shows have been canceled and opposition to the government—once a rallying force—is now mostly whispered between friends behind closed doors.