Addressing severe environmental and health threats posed by mercury, cadmium, lead, chromium, and arsenic ("five toxic" heavy metals), this study employs density functional theory (DFT) calculations and molecular simulations to investigate the capture and detection mechanisms of the dual-fluorescent probe 2-((2-(hydroxymethyl)quinolin-8-yl)oxy)-N-(quinolin-8-yl)acetamide in both water solvent and dimethyl sulfoxide (DMSO). Key findings indicate that the probe forms highly stable, planar complexes with arsenic, lead, and chromium, exhibiting significant red-shifts in UV absorption bands and enh...