Molecular receptors integrated bimodal porous polymer scaffolds as portable solid-state optical ion-sensors and extractors for the selective capturing of ultra-trace toxic copper ions.