Precise on-site monitoring of alkylresorcinols, a vital biomarker, is crucial for verifying whole wheat foods and accurately quantifying the whole wheat content in various consumer and industrial products. Herein, for the first time, we introduce a novel ratiometric fluorescence sensor (CDs@ZIF-8/CdTe@MIP) for ultrasensitive and selective detection of alkylresorcinols. 5-Heneicosylresorcinol (C21:0 AR), the primary alkylresorcinol homologue in whole wheat grains, was selected as the target analyte. This analyte was specifically and selectively recognized by the incorporation of a molecularly imprinted polymer (MIP) layer. Within this nanoreactor, blue-emitting carbon dots embedded in zeolitic imidazolate framework-8 (CDs@ZIF-8) and orange-emitting CdTe quantum dots served as the self-calibration signal and response signal, respectively. Exploiting a photoinduced electron transfer effect between CdTe and C21:0 AR, the established fluorescence sensor exhibited remarkable sensing performance, offering wide linear responses in 0.005-1 μg·mL