An ordered mesoporous carbon nanosphere-encapsulated graphene network with optimized nitrogen doping for enhanced supercapacitor performance.