This study presented advanced monitoring approaches for the aflatoxin gene cluster in Aspergillus flavus and Aspergillus parasiticus, which are effective tools for controlling aflatoxin proliferation in the food chain. A novel approach involved a ratiometric fluorescence probe based on yolk-shell nanospheres (bCDs@SiO2@gQDs). The probe's fluorescence was activated by DNA hybridization with the modified bCDs@SiO2@gQDs and gold nanoparticles (AuNPs), functioning through donor–acceptor pairs. The exceptional properties of the gQDs and the high FRET efficiency of this system established a functionalized platform for DNA labeling. When the nor-1 gene was present, FRET between the gQDs and AuNPs triggered fluorescence quenching, enabling nor-1 gene detection. The yolk-shell nanostructure of the fluorescent nanoprobes provided an internal reference, reducing experimental errors due to background noise, instrumentation factors, and probe concentration. This allowed for accurate and highly sensitive quantitative determination of the nor-1 gene. The ratiometric fluorescence assay demonstrated a broad linear range (0.1–100 nM) and a low detection limit (12.83 pM) for the nor-1 gene. Tests on non-contaminated maize samples spiked with various concentrations of the nor-1 gene achieved recovery rates between 95.43 % and 101.46 %. This biosensor represents a significant advancement in food safety, offering a simple, rapid, and sensitive method for monitoring agricultural products.