A sensitive visual detection of thiamethoxam based on fluorescence resonance energy transfer from NH2-SiO2@CsPbBr3 to merocyanine configuration of spiropyran.