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 −1 and 1−80 μg•mL −1 concentration ranges, and achieving a low detection limit of 1.14 ng•mL −1 . The proposed assay effectively detected C21:0 AR in real samples, including 8 whole wheat foods and 19 whole wheat grains, demonstrating good recoveries and relative standard deviation. Furthermore, an intelligent sensing platform was established by integrating CDs@ZIF-8/CdTe@MIP with a smartphone-assisted device, thus validating the feasibility of visual and on-site monitoring of C21:0 AR. Because of its rapid response, portability, cost-effectiveness, superior sensitivity, and high selectivity, the proposed sensor serves as a reliable method for the analysis of C21:0 AR, thus having substantial potential for on-site monitoring of whole wheat foods.