SCMs for ions detection. (a)–(c) Reflection images of the parent colloidal crystal structural color particles with crimson color (a), the corresponding inverse opal hydrogel SCM particles (b), and the SCMs functionalized with Hg2+-responsive aptamers (c). Scale bar is 200 μm. (d) Optical response of the SCMs functionalized with Hg2+-responsive aptamers incubated in different concentrations of Hg2+ solution. (e) The relation between the reflective peak shift values of three kinds of aptamer-functionalized SCMs and the concentration of the target ions. (f) The reflection spectra shift of the aptamer-modified SCMs, Janus structural color hydrogel particles without Pt and Fe3O4 NPs (NP-), and SCMs without aptamer modification (aptamer-) in the corresponding metal ion solutions. ∗0.01 < p < 0.05, ∗∗p < 0.01, ∗∗∗p < 0.001. The number of replicates at any concentration was five. (g) The reflective peak shift values of the SCMs modified with Hg2+-responsive aptamers in various metal ion solutions (1 μM for Hg2+ and 100 μM for other ions), and the blank represents the SCMs treated with buffer.