The development of highly sensitive and selective mercury-ion (Hg²⁺) detection systems remains a critical challenge due to the ultralow permissible exposure levels and the need for reliable monitoring in complex environments. In this work, we prese...
The development of highly sensitive and selective mercury-ion (Hg²⁺) detection systems remains a critical challenge due to the ultralow permissible exposure levels and the need for reliable monitoring in complex environments. In this work, we present a plasmonic SERS platform based on gold nanoparticle (AuNP) dimers confined within anodic aluminum oxide (AAO) nanochannels and functionalized with an imidazole-bearing perylene diimide derivative (HPH). By finely tuning the AAO pore geometry and controlling the protonation state of HPH, efficient adsorption was achieved at the optimized pH of 8, where both the carboxylate (COO⁻) and imidazole N-donor groups exhibit maximal availability for Au binding and Hg²⁺ chelation. This condition enables the formation of a uniform monolayer on the AuNP surface and ensures stable immobilization of HPH within the plasmonic nanogaps. Extensive Raman mapping conducted over 108 distinct positions across multiple substrates confirmed the exceptional spatial uniformity and reproducibility of the confined AuNP dimer hotspots. Furthermore, a semi-in situ measurement strategy—where incremental Hg²⁺ aliquots were introduced directly onto the fixed plasmonic substrate—enabled real-time tracking of coordination-driven spectral changes. Across a broad dynamic range from 1 pM to 1 μM, the Raman intensity increased monotonically with Hg²⁺ concentration, governed by the synergistic interplay between electromagnetic (EM) field enhancement in the nanogap and chemical enhancement (CM) arising from Hg²⁺–HPH coordination and associated charge-transfer interactions. The sensor also exhibited outstanding selectivity, with Hg²⁺ producing a markedly higher Raman response than various competing metal ions, attributable to its strong affinity for the deprotonated functional groups of HPH. Taken together, these results demonstrate that AAO-confined AuNP dimers functionalized with HPH offer a highly robust and ultrasensitive SERS sensing architecture, capable of reproducible hotspot generation, real-time molecular interrogation, and reliable Hg²⁺ quantification at extremely low concentrations. This platform provides a promising foundation for next-generation heavy metal sensing technologies and broader applications in environmental and biochemical monitoring.