A reusable naphthalimide-functionalized magnetic fluorescent nanosensor for the simultaneous determination and removal of trace Hg2+ in aqueous solution.