A molecularly imprinted g-C3N4/MXene/AuNPs photoelectrochemical sensor was developed for non-invasive sweat lactate detection, achieving a linear range of 1-20 mM and a detection limit of 0.55 mM. Reliable on-body analysis demonstrates its potential for fitness assessment and metabolic monitoring.