Gram-positive bacteria pose significant threats to human health, necessitating the development of targeted bacterial detection and eradication strategies. Nevertheless, current approaches often suffer from poor targeting specificity. Herein, the study utilizes purple rice lixivium to synthesize biomass carbon dots (termed BCDs) with wheat germ agglutinin-like residues for precisely targeting Gram-positive bacteria. Subsequently, fluorescein isothiocyanate (FITC) molecules are grafted onto BCDs to yield FITC-labeled BCDs (termed CDFs), which can selectively and rapidly (≤5 min) stain bacterial cell wall and particularly target the peptidoglycan component. Strikingly, CDFs achieve superselective visualization of Gram-positive bacteria even in the presence of mammalian cells and Gram-negative bacteria. Furthermore, protoporphyrin (PpIX) molecules are conjugated onto BCDs to yield PpIX-modified BCDs (termed CDPs), which can induce bacterial aggregation and in situ generate singlet oxygen for realizing enhanced antibacterial photodynamic therapy (PDT). At the minimum bactericidal concentration of CDPs (PpIX: 5 µg mL