The intrinsic thermodynamic instability of foam systems significantly constrains their effectiveness in enhancing oil and gas recovery from unconventional reservoirs. This study investigated the foam properties and interfacial rheological characteristics of the EDAB/CNC/APG system, analyzing the influence of various factors including temperature, pH, and inorganic salts. The results indicated that the optimal concentration ratio for CNC-surfactant system consists of 0.3 % EDAB, 1.5 % CNC and 0.5 % APG by mass fraction. In this system, the addition of CNC forms a three-dimensional network structure at the gas–liquid continuous interface, significantly extending the drainage half-life of the system. At elevated temperatures, the intense molecular thermal motion disrupts the interactions between CNC and EDAB. This disruption leads to a decrease in surface tension and the viscoelastic modulus of interfacial expansion, resulting in an increase of foam volume but a decline in foam drainage half-life. Foam performance and interfacial rheological characteristics are optimal under neutral pH conditions and manifest higher stability in alkaline conditions compared to acidic conditions. In highly mineralized reservoirs (≥5.0 % salt concentration), inorganic salt ions shield the attraction between CNC and oppositely charged surfactants. This shielding weakens the cross-linking within CNC-surfactant systems, altering the structure of the liquid film interface and causing a sharp decrease in foam half-life. The C22-tailed zwitterionic betaine surfactant EDAB, enhanced by CNC, provides a novel, environmentally friendly, efficient, and safe approach to the exploitation of complex, low-permeability oil and gas reservoirs.