Antibacterial and Anticorrosive Hydrogel Coating Based on Complementary Functions of Sodium Alginate and g-C3N4

Graphitic carbon nitride (g-C3N4, CN) has emerged as a promising photocatalytic material due to its inherent stability, antibacterial properties, and eco-friendliness. However, its tendency to aggregate and limited dispersion hinder its efficacy in practical antibacterial applications. To address these limitations, this study focuses on developing a composite hydrogel coating, in which sodium alginate (SA) molecules interact electrostatically and through hydrogen bonding to anchor CN, thereby significantly improving its dispersion. The optimal CN loading of 35% results in a hydrogel with a tensile strength of 120 MPa and an antibacterial rate of 99.87% within 6 h. The enhanced mechanical properties are attributed to hydrogen bonding between the -NH2 groups of CN and the -OH groups of SA, while the -OH groups of SA facilitate the attraction of photogenerated holes from CN, promoting carrier transfer and separation, thereby strengthening the antibacterial action. Moreover, the hydrogel coating exhibits excellent antibacterial and corrosion resistance capabilities against Pseudomonas aeruginosa on 316L stainless steel (316L SS), laying the foundation for advanced antimicrobial and anticorrosion hydrogel systems.


Introduction
Microbiologically influenced corrosion (MIC) represents a significant form of failure in metallic materials, potentially leading to substantial economic losses [1].This type of corrosion is particularly prevalent in marine environments, posing a considerable threat to offshore installations and structures [1][2][3].In contrast to the traditional protective coatings, photocatalytic coatings offer a highly efficient and environmentally friendly alternative, as they harness solar energy to facilitate antibacterial and anticorrosive processes.Consequently, they are a promising option for combating microbial corrosion [4][5][6].
Graphitic carbon nitride (g-C 3 N 4 , CN) is a semiconductor material distinguished by excellent photoelectric properties as well as high thermal and chemical stability [7].However, the application of CN is constrained by several defects, including its tendency to stack, a high recombination rate of photogenerated carriers, and the inability to form films [8].Sodium alginate (SA) is a natural polymer frequently employed as a building block for hydrogels [9,10].CN-SA hydrogel combines the advantages of both materials, resulting in a composite hydrogel that provides a stable platform for CN loading.In applications such as photocatalytic water splitting for hydrogen production and the degradation of organic pollutants, this composite material can offer an enhanced photocatalytic performance [11].Additionally, it can improve the photocatalytic activity of CN, while increasing the adsorption capacity for microorganisms due to its porous structure.This enhancement is particularly significant for the design of water treatment systems and bioreactors [12].In sewage treatment, this composite material can serve as an effective microbial carrier and improve the removal efficiency of pollutants [13].However, the loading amount of CN significantly affects the properties of the hydrogel, particularly its mechanical properties, which are closely related to the protective effect of the coating.Nevertheless, there are currently few studies that focus on the impact of CN loading on hydrogel systems, especially SA hydrogels, indicating the pressing need for relevant research.
In an additional phase, carbon nitride particles can be integrated into the sodium alginate hydrogel network through either physical adsorption or chemical bonding [14].Physical adsorption encompasses non-covalent bonding interactions, such as van der Waals forces and electrostatic interactions, whereas chemical bonding involves covalent bonds formed between the carboxyl groups on the sodium alginate molecular chain and the functional groups on the carbon nitride surface [15].Other researchers [16,17] have tried to introduce two-dimensional nanomaterials into SA to prepare composite membranes with a good performance and strong stability.Ye et al. [18] developed carbon nanotubes/phenolic resin spheres through carbonization and activation, exhibiting robust mechanical strength, a medium-to-high pore volume, and the efficient adsorption of medium-molecular-weight toxins.Similarly, Jiang et al. [19] crafted a GO/SA/PAM hydrogel with excellent elasticity, capable of adsorbing heavy metal ions.These two methods not only enhance the mechanical strength of the hydrogel, but also improve its durability against specific environmental stimuli.
Photocatalytic antibacterial activity is the primary reason that carbon nitride hydrogels exhibit antibacterial and corrosion-resistant effects [20].This photocatalytic antibacterial effect primarily relies on carbon nitride's ability to generate electron-hole pairs under illumination, which subsequently participate in the photocatalytic reaction [21].The photocatalytic performance is closely related to the system's light absorption range, charge transfer efficiency, and the number and distribution of surface reaction active sites.Huang et al. [22] modified the amination surface of CN by treating it with monoethanolamine, which increased the number of reactive sites and significantly enhanced the separation efficiency of the photogenerated carriers.Li et al. [23] obtained the surface-alkalized CN by introducing KCl and NH 4 Cl during the thermal condensation polymerization of melamine.The hydroxyl groups grafted on the surface of CN can capture the photogenerated holes, further inhibiting the recombination of photogenerated carriers.The distribution and effective surface area of CN within a hydrogel system are closely related to the loading amount of CN, which directly influences the photocatalytic antibacterial efficacy of the hydrogel system [24].Therefore, a comprehensive investigation into the relationship and mechanisms influencing the loading of CN and the photocatalytic performance of hydrogel systems is of great significance for the development of new, high-efficiency photocatalytic antibacterial coatings.
This study aims to develop an eco-friendly composite hydrogel coating utilizing SA and CN, while thoroughly investigating the interaction mechanisms between CN and SA.Additionally, we examined the effects of varying loading amounts on the mechanical properties and photocatalytic antibacterial performance of the composite hydrogel.Through these investigations, we aspire to provide a theoretical foundation for the advancement of new, efficient, and high-performance antibacterial hydrogels, thereby broadening their applications in the field of MIC.

Form and Structure
The morphologies of SA, SA-CN20%, SA-CN35%, SA-CN50%, and CN were observed using scanning electron microscopy (SEM), as illustrated in Figure 1A-D.Figure 1A reveals that SA exhibits a distinctive three-dimensional network structure, characterized by a finely cross-linked network with numerous gaps.This structure results from the gradual acidification of CaCO 3 and the cross-linking of Ca 2+ with SA [25].Additionally, the presence of substantial amounts of CO 2 (Figure 1B) illustrates that CN is well dispersed within the SA-Ca 2+ network structure, confirming the successful incorporation of CN into the SA hydrogel.When comparing SA-CN20% to SA-CN35%, it is evident that the hydrogel grid cross-linked lines formed by SA-CN35%, which contains a CN loading of 35% (Figure 1C), exhibit greater strength.This enhancement in strength can be attributed to CN serving as an additional phase that increases the overall CN loading and provides more cross-linking sites for SA during the cross-linking process, thereby resulting in a more robust mesh structure [26].However, when the loading amount of CN reaches 50% (Figure 1D), the SA-CN50% hydrogel grid exhibits the stacking of excess CN, which hinders the crosslinking of the hydrogel and results in a scattered grid formation.To further confirm the elemental composition, the results of energy-dispersive X-ray spectroscopy (EDS) (Figure 1E-I) indicate that C, O, N, Na, and Ca are evenly distributed in the SA-CN35% composite hydrogel, as shown in Figure S1.This demonstrates that the Ca 2+ -CN composite material was successfully prepared.The carrier separation of the material was investigated using photoluminescence spectroscopy (PL), as shown in Figure 1L.SA has no characteristic peaks; SA-CN20%, SA-CN35%, and SA-CN50% all have peaks near 475 nm, indicating the successful loading of CN onto SA.Generally, a lower photoluminescence (PL) intensity suggests that the recombination efficiency of the photoexcited electrons and holes is relatively low, indicating enhanced photocatalytic activity [39].The peak intensity of the SA-CN samples is lower than that of CN.This can be attributed to the presence of a significant amount of -OH groups in SA, which attract the photogenerated holes produced by CN and improve the carrier separation efficiency [40].Among the samples, SA-CN35% exhibits the lowest spectral intensity, which suggesting it possesses the highest photocatalytic activity.In contrast, the peak intensity of SA-CN50% increases due to the excess of CN, which leads to stacking, and subsequently impedes carrier separation.

Light Absorption and Optoelectronic Properties
The light absorption properties of the material were investigated using ultraviolet-visible diffuse reflectance spectroscopy (UV-Vis DRS), as illustrated in Figure 2A.CN powder exhibits strong absorption in the visible light region, with its absorption band edge located at approximately 465 nm.In comparison to CN, the absorption wavelength of SA-CN was red-shifted to 493 nm, resulting in a significant enhancement of absorption in the mid-and long-wavelength visible light ranges.This improvement can be attributed to the three-dimensional network structure of SA, which enhances the layer-stacking structure of CN, thereby increasing the conductivity and photocatalytic activity of the material [41].The band gap energy (Eg) of the CN and SA-CN materials can be determined using the Kubelka-Munk function, as illustrated in Figure 2B.The band gap energy values for SA-CN20%, SA-CN35%, and SA-CN50% are all 2.49 eV, which is lower  CN35% (E-I).Additionally, the FT-IR spectrum (J), the XRD data (K), and the PL spectrum (L).
The functional groups and complex chemical structure of the hydrogel were analyzed using Fourier-transform infrared spectroscopy (FT-IR), as shown in Figure 1J.For SA, the peak at 3450 cm -1 corresponds to the OH stretching vibration, the peak at 2940 cm -1 is associated with the C-H stretching vibration, and the peak at 1639 cm -1 corresponds to the O=C stretching vibration in the carboxyl group [27].In the case of CN, the broad peak observed between 3000 and 3550 cm −1 is attributed to the stretching vibration of the NH bond in the terminal amino group.Additionally, the series of characteristic peaks ranging from 1700 to 1200 cm −1 corresponds to the C-N stretching vibrations present in the heterocyclic structure [28].For the SA-CN20%, SA-CN35%, and SA-CN50% samples, the series of characteristic peaks at 1639 cm -1 and in the range of 1700 to 1200 cm -1 are evident in all the SA-CN hydrogels, indicating the formation of a composite material between SA and CN.Notably, new characteristic peaks appear at 3419 cm -1 , 3409 cm -1 , and 3407 cm -1 , with the peak positions exhibiting a certain degree of shift compared to those observed before recombination.This shift can be attributed to the interaction between the -NH 2 group at the CN end and SA.The formation of hydrogen bonds between the -OH groups facilitates the stable anchoring of CN within the SA matrix, thereby enhancing the stability of the network structure and promoting the more uniform distribution of CN [29][30][31].In comparison to SA-CN20% and SA-CN35%, the 3000-3550 cm -1 region of SA-CN50% becomes more pronounced.This enhancement may be attributed to the excessive loading of CN, which leads to the aggregation of CN and results in the terminal amino groups (NH) becoming more dominant, thereby increasing the peak value [32,33].
The crystal structure of the material was analyzed using X-ray diffraction (XRD), as illustrated in Figure 1K.The XRD pattern of SA exhibits only broad lines between 5 • and 60 • , indicating its amorphous nature [34].In contrast, the diffraction pattern of CN displays two distinct peaks at 14.3 • (corresponding to the 100 crystal plane) and 27.5 • (corresponding to the 002 crystal plane), which confirms the successful preparation of CN [35].The peaks of SA-CN20%, SA-CN35%, and SA-CN50% exhibit weakening at 27.5 • .This phenomenon is attributed to the hydrogen bonding between the -OH groups in the SA molecule and the -NH 2 groups at the CN end.Such interactions occur during the cross-linking of SA, which promotes the dispersion of CN, anchors the CN within the SA matrix, enhances the mechanical properties of the coating, and significantly addresses the interlayer stacking issue of CN [36,37].The peak at 27.5 • of SA-CN50% is slightly enhanced, suggesting that excessive CN loading has been accumulated, which aligns with the findings from FT-IR and SEM analyses.Concurrently, the peak value at 14.3 • appears to be shifted, potentially due to physical effects that facilitate the adsorption of SA onto the CN surface.This alteration may change the crystal orientation of CN or induce inhomogeneity in the grain size, resulting in a shift to a lower 2θ value [38].
The carrier separation of the material was investigated using photoluminescence spectroscopy (PL), as shown in Figure 1L.SA has no characteristic peaks; SA-CN20%, SA-CN35%, and SA-CN50% all have peaks near 475 nm, indicating the successful loading of CN onto SA.Generally, a lower photoluminescence (PL) intensity suggests that the recombination efficiency of the photoexcited electrons and holes is relatively low, indicating enhanced photocatalytic activity [39].The peak intensity of the SA-CN samples is lower than that of CN.This can be attributed to the presence of a significant amount of -OH groups in SA, which attract the photogenerated holes produced by CN and improve the carrier separation efficiency [40].Among the samples, SA-CN35% exhibits the lowest spectral intensity, which suggesting it possesses the highest photocatalytic activity.In contrast, the peak intensity of SA-CN50% increases due to the excess of CN, which leads to stacking, and subsequently impedes carrier separation.

Light Absorption and Optoelectronic Properties
The light absorption properties of the material were investigated using ultravioletvisible diffuse reflectance spectroscopy (UV-Vis DRS), as illustrated in Figure 2A.CN powder exhibits strong absorption in the visible light region, with its absorption band edge located at approximately 465 nm.In comparison to CN, the absorption wavelength of SA-CN was red-shifted to 493 nm, resulting in a significant enhancement of absorption in the mid-and long-wavelength visible light ranges.This improvement can be attributed to the three-dimensional network structure of SA, which enhances the layer-stacking structure of CN, thereby increasing the conductivity and photocatalytic activity of the material [41].The band gap energy (Eg) of the CN and SA-CN materials can be determined using the Kubelka-Munk function, as illustrated in Figure 2B.The band gap energy values for SA-CN20%, SA-CN35%, and SA-CN50% are all 2.49 eV, which is lower than that of CN at 2.68 eV.This indicates that SA-CN exhibits enhanced light absorption performance under visible light irradiation.

Mechanical and Swelling Properties
The mechanical properties of hydrogel coatings directly influence their stability in water [45].As illustrated in Figure 3A, the tensile stress of the SA hydrogel was measured at 40 kPa, with a strain of 283%.Notably, when the concentration of CN reaches 35%, the tensile strength increases significantly, achieving a value of 120 kPa, which is three times greater than that of the SA hydrogel.This phenomenon can be attributed to the incorpo ration of g-C3N4 as a nano-reinforcement agent in the system.The amino groups at the CN terminal enhance the formation of hydrogen bonds with the hydroxyl groups of SA thereby increasing the structural stability and improving the mechanical properties of the composite hydrogel.However, the tensile strength of SA-CN50% decreased, indicating that the excessive loading of CN led to CN stacking, which inhibited the formation o hydrogen bonds, and ultimately resulted in a reduction in the tensile strength of the coating.This observation is consistent with the findings from FT-IR and XRD analyses.
Additionally, less swelling is a critical requirement for the preparation of coatings [46].As illustrated in Figure 3B, SA achieved swelling equilibrium, with a swelling rate o 95% after 150 min of the swelling test, and it nearly completely recovered.Following the swelling test, the swelling rates of SA-CN20%, SA-CN35%, and SA-CN50% significantly decreased to 40%.The hydrogen bonds formed between CN and SA upon loading con tribute to a tighter internal structure of the hydrogel, enhancing the strength of the grid and complicating recovery after water loss.Under light irradiation, the photocatalyst generates a transient photocurrent (TPC), which serves as reliable evidence for evaluating the separation and transfer of photogenerated charge carriers [42], as illustrated in Figure 2C.The samples CN, SA-CN20%, SA-CN35%, and SA-CN50% all produce a distinct photocurrent upon illumination.In contrast, because SA is not a semiconductor, it does not exhibit a photocurrent response.As the loading of CN increases, the photocurrent exhibits a significant increase.The average photocurrent of SA-CN35% is approximately three times greater than that of CN.This observation indicates that a greater number of photogenerated carriers are produced, further supporting the notion that the abundant hydroxyl groups on the surface of SA can effectively attract the photogenerated holes generated by CN.Consequently, this interaction leads to the generation of more photogenerated electrons and enhances the separation efficiency of the electrons (e -) and holes (h + ).This results in enhanced photocatalytic activity [43].However, when the loading of CN reaches 50%, the photocurrent intensity decreases compared to that of SA-CN35%.This decline is attributed to excessive CN loading, which negatively impacts its dispersion and leads to CN stacking, thus affecting the structural integrity of SA-CN.The conductivity of CN diminishes, which subsequently reduces the efficiency of photoelectric separation and leads to a decrease in the photocurrent intensity.
The optoelectronic properties of the material were further investigated using electrochemical impedance spectroscopy (EIS) [44].As illustrated in Figure 2D, CN exhibits the largest impedance arc radius, while SA-CN20% follows, and SA-CN35% displays the smallest impedance arc radius.The radius of the semicircle represents the charge transfer resistance, indicating that SA-CN35% demonstrates higher efficiency in photogenerated electron transfer.Consequently, mobility is enhanced, leading to a significant improvement in photocatalytic activity.The electrochemical impedance of SA-CN50% falls between that of SA-CN20% and SA-CN35%.This phenomenon may be attributed to the excessive addition of CN, which leads to interlayer stacking, and subsequently increases the charge transfer resistance.

Mechanical and Swelling Properties
The mechanical properties of hydrogel coatings directly influence their stability in water [45].As illustrated in Figure 3A, the tensile stress of the SA hydrogel was measured at 40 kPa, with a strain of 283%.Notably, when the concentration of CN reaches 35%, the tensile strength increases significantly, achieving a value of 120 kPa, which is three times greater than that of the SA hydrogel.This phenomenon can be attributed to the incorporation of g-C 3 N 4 as a nano-reinforcement agent in the system.The amino groups at the CN terminal enhance the formation of hydrogen bonds with the hydroxyl groups of SA, thereby increasing the structural stability and improving the mechanical properties of the composite hydrogel.However, the tensile strength of SA-CN50% decreased, indicating that the excessive loading of CN led to CN stacking, which inhibited the formation of hydrogen bonds, and ultimately resulted in a reduction in the tensile strength of the coating.This observation is consistent with the findings from FT-IR and XRD analyses.

Photocatalytic Antibacterial Performance
SA and SA-CN were formulated into coatings and applied to the surface of stainless steel (316L SS).The antibacterial properties of these coatings were subseque evaluated.The standard plate counting method was employed to assess the antibact efficacy of coatings with varying CN loadings, as illustrated in Figure 4A.Under conditions, the colony count in the solution that had been in contact with 316L SS comparable to that of the control group, indicating that the sample exhibited no ant terial effect.Similarly, the solution in which the SA sample was soaked did not ex antibacterial properties under the light conditions.Although the number of colo soaked in the SA-CN20% solution was significantly reduced, a small number of colo persisted.This indicates that while SA-CN20% demonstrated antibacterial effects u the light conditions, it did not achieve a 100% antibacterial rate.Notably, when the l ing of CN reached 35%, the antibacterial rate against both E. coli and S. aureus was 1 (Figure 4C,D), which was superior to most sodium alginate hydrogels [47][48][49], ne consistent with the 50% antibacterial effect observed with SA-CN.This phenome occurs because the -OH groups on SA attract the photogenerated holes produced by thereby increasing carrier separation efficiency and enhancing the photocatalytic bacterial performance [50].The results indicate that an optimal antibacterial effe achieved when CN loading reaches 35%.Additionally, even at a CN loading of while aggregation occurs, a sufficient amount of active oxygen can still be gener leading to improved bactericidal efficacy.
The durability and long-term antimicrobial properties of the SA-CN35% hydro were assessed through immersion experiments, as depicted in Figure S2A,B.SA-CN35% hydrogel exhibited intact integrity even after one month of immersion in medium solution containing Escherichia coli and Staphylococcus aureus, indicating cellent durability.Bacterial growth was monitored using absorbance measurements After one month of immersion, absorbance was measured, as shown in Figure Additionally, less swelling is a critical requirement for the preparation of coatings [46].As illustrated in Figure 3B, SA achieved swelling equilibrium, with a swelling rate of 95% after 150 min of the swelling test, and it nearly completely recovered.Following the swelling test, the swelling rates of SA-CN20%, SA-CN35%, and SA-CN50% significantly decreased to 40%.The hydrogen bonds formed between CN and SA upon loading contribute to a tighter internal structure of the hydrogel, enhancing the strength of the grid and complicating recovery after water loss.

Photocatalytic Antibacterial Performance
SA and SA-CN were formulated into coatings and applied to the surface of 316L stainless steel (316L SS).The antibacterial properties of these coatings were subsequently evaluated.The standard plate counting method was employed to assess the antibacterial efficacy of coatings with varying CN loadings, as illustrated in Figure 4A.Under light conditions, the colony count in the solution that had been in contact with 316L SS was comparable to that of the control group, indicating that the sample exhibited no antibacterial effect.Similarly, the solution in which the SA sample was soaked did not exhibit antibacterial properties under the light conditions.Although the number of colonies soaked in the SA-CN20% solution was significantly reduced, a small number of colonies persisted.This indicates that while SA-CN20% demonstrated antibacterial effects under the light conditions, it did not achieve a 100% antibacterial rate.Notably, when the loading of CN reached 35%, the antibacterial rate against both E. coli and S. aureus was 100% (Figure 4C,D), which was superior to most sodium alginate hydrogels [47][48][49], nearly consistent with the 50% antibacterial effect observed with SA-CN.This phenomenon occurs because the -OH groups on SA attract the photogenerated holes produced by CN, thereby increasing carrier separation efficiency and enhancing the photocatalytic antibacterial performance [50].The results indicate that an optimal antibacterial effect is achieved when CN loading reaches 35%.Additionally, even at a CN loading of 50%, while aggregation occurs, a sufficient amount of active oxygen can still be generated, leading to improved bactericidal efficacy.

Photocatalytic Antibacterial Mechanism
Photocatalysts generate reactive oxygen species (ROS) under light conditions, including superoxide anions (•O2 − ), hydroxyl radicals (•OH), and singlet oxygen ( 1 O2), among others [51].These reactive oxygen species possess strong oxidizing abilities and can damage the cell membranes and nucleic acids of microorganisms, thus serving an antibacterial function [52].To investigate the role of various reactive oxygen species in the photocatalytic process of SA-CN35%, 10 mM tert-butanol (TBA), 1,4-benzoquinone (BQ), The durability and long-term antimicrobial properties of the SA-CN35% hydrogels were assessed through immersion experiments, as depicted in Figure S2A,B.The SA-CN35% hydrogel exhibited intact integrity even after one month of immersion in the medium solution containing Escherichia coli and Staphylococcus aureus, indicating excellent durability.Bacterial growth was monitored using absorbance measurements [20].After one month of immersion, absorbance was measured, as shown in Figure S3A,B.The blank group displayed significantly higher absorbance compared to that of SA-CN35%, suggesting that SA-CN35% effectively inhibited bacterial growth over an extended period, demonstrating outstanding long-term antimicrobial properties.
Live/dead cell staining was employed to further assess the antimicrobial properties of the coating, as illustrated in Figure 4B.Green fluorescence signifies live bacteria, whereas red fluorescence indicates dead bacteria.After 6 h of antibacterial activity under light irradiation, the bacteria in the suspension soaked in SA-CN35% were nearly all dead compared to those in SA, demonstrating an excellent photocatalytic antibacterial performance, which aligns with the colony count results.
To detect the reactive oxygen species (ROS) generated by SA-CN35%, electron paramagnetic resonance (EPR) measurements were conducted using TEMP and DMPO as spin traps, as illustrated in Figure 5B [54].The results indicate that superoxide radicals (•O2 − ), hydroxyl radicals (•OH), and singlet oxygen ( 1 O2) produced by SA-CN35% exhibit distinct EPR peaks corresponding to TEMP and DMPO spin adducts (TEMP-1 O2, DMPO-•O2 − , and DMPO-•OH).This confirms that the ROS generated under illumination by SA-CN35% are the primary mechanism driving its photocatalytic antibacterial activity, a conclusion that aligns with the results from quenching experiments and photoelectrochemical analyses.
ATP serves as the primary energy supply molecule in cells and is a crucial marker within the bacterial respiratory chain, providing an indicator for measuring cellular metabolic activity and assessing the antibacterial efficacy of coatings [55].As illustrated in Figure 5C, it is evident that the ATP level in the soaked 316L SS medium remained largely unchanged compared to that of the control group.In contrast, the ATP content in the soaked sample from the SA-CN35% solution was significantly reduced, measuring only 58 ± 6.8 RLU and 37 ± 5.1 RLU.This finding further substantiates that SA-CN35% possesses superior photocatalytic antibacterial properties.

Corrosion Resistance
To investigate the protective effect of the coating on 316L SS, the coated 316L SS samples were immersed in a bacterial solution for a designated duration, after which the corrosion morphology of the 316L SS surface was examined.Figure 6A illustrates the morphology of the 316L SS samples, along with those coated with SA and sodium alginate loaded with SA-CN35%, respectively.The SA and SA-CN35% coatings exhibit distinct colors; the SA coating is transparent, whereas the SA-CN35% coating, which contains CN, appears light yellow.This color variation can be attributed to the presence of CN, as illustrated in Figures S4 and S5.CN exists as a fine, light-yellow powder.Particle size analysis (Figure S6) indicates that the CN particles are uniformly distributed within the range of 180-260 nm.The even distribution of CN particles in the hydrogel contributes to the observed coating and associated color changes.
The surface morphologies of 316L SS, SA, and SA-CN35% were examined using atomic force microscopy (AFM), as depicted in Figure 6B.The surface roughness of 316L SS was measured at Ra = 877.5 nm.Following the application of the SA coating, a signif- To detect the reactive oxygen species (ROS) generated by SA-CN35%, electron paramagnetic resonance (EPR) measurements were conducted using TEMP and DMPO as spin traps, as illustrated in Figure 5B  − , and DMPO-•OH).This confirms that the ROS generated under illumination by SA-CN35% are the primary mechanism driving its photocatalytic antibacterial activity, a conclusion that aligns with the results from quenching experiments and photoelectrochemical analyses.
ATP serves as the primary energy supply molecule in cells and is a crucial marker within the bacterial respiratory chain, providing an indicator for measuring cellular metabolic activity and assessing the antibacterial efficacy of coatings [55].As illustrated in Figure 5C, it is evident that the ATP level in the soaked 316L SS medium remained largely unchanged compared to that of the control group.In contrast, the ATP content in the soaked sample from the SA-CN35% solution was significantly reduced, measuring only 58 ± 6.8 RLU and 37 ± 5.1 RLU.This finding further substantiates that SA-CN35% possesses superior photocatalytic antibacterial properties.

Corrosion Resistance
To investigate the protective effect of the coating on 316L SS, the coated 316L SS samples were immersed in a bacterial solution for a designated duration, after which the corrosion morphology of the 316L SS surface was examined.Figure 6A illustrates the morphology of the 316L SS samples, along with those coated with SA and sodium alginate loaded with SA-CN35%, respectively.The SA and SA-CN35% coatings exhibit distinct colors; the SA coating is transparent, whereas the SA-CN35% coating, which contains CN, appears light yellow.This color variation can be attributed to the presence of CN, as illustrated in Figures S4 and S5.CN exists as a fine, light-yellow powder.Particle size analysis (Figure S6) indicates that the CN particles are uniformly distributed within the range of 180-260 nm.The even distribution of CN particles in the hydrogel contributes to the observed coating and associated color changes.
SA-CN35%, the surface roughness of the sample increased to Ra = 648.8nm.This increase can be attributed to the surface height variations resulting from hydrogen bonding between SA and the CN loading.These height differences not only form, but also enhance supply.Additionally, the presence of numerous defects increases the effective surface area, providing a significant number of active sites for photocatalysis, thereby facilitating the progression of photocatalytic reactions [43].
The wettability of the coating significantly influences its corrosion resistance, as illustrated in Figure 6C [56].The contact angle of the 316L SS surface is measured at 87.6°.Following the application of SA, the contact angle decreased to 32.4°.This reduction is attributed to the high content of hydrophilic oxygen groups, such as -OH and -COOH, present in the SA molecules, which lower the contact angle of the coating and enhance its corrosion resistance.After the addition of CN to SA, the contact angle of SA-CN35% increases to 58.1°.This increase may be attributed to the formation of hydrogen bonds between CN and some of the -OH groups, which reduces the number of exposed hydrophilic groups, and consequently decreases hydrophilicity.Nevertheless, the hydrophilicity of SA-CN35% remains higher than that of 316L SS.The surface morphologies of 316L SS, SA, and SA-CN35% were examined using atomic force microscopy (AFM), as depicted in Figure 6B.The surface roughness of 316L SS was measured at Ra = 877.5 nm.Following the application of the SA coating, a significant reduction in roughness was observed (Ra = 355.1 nm).This improvement can be attributed to the gel coating formed by SA, which possesses excellent sealing properties and results in a smooth, water-based finish on the surface.After the application of SA-CN35%, the surface roughness of the sample increased to Ra = 648.8nm.This increase can be attributed to the surface height variations resulting from hydrogen bonding between SA and the CN loading.These height differences not only form, but also enhance supply.Additionally, the presence of numerous defects increases the effective surface area, providing a significant number of active sites for photocatalysis, thereby facilitating the progression of photocatalytic reactions [43].
The wettability of the coating significantly influences its corrosion resistance, as illustrated in Figure 6C [56].The contact angle of the 316L SS surface is measured at 87.6 • .Following the application of SA, the contact angle decreased to 32.4 • .This reduction is attributed to the high content of hydrophilic oxygen groups, such as -OH and -COOH, present in the SA molecules, which lower the contact angle of the coating and enhance its corrosion resistance.After the addition of CN to SA, the contact angle of SA-CN35% increases to 58.1 • .This increase may be attributed to the formation of hydrogen bonds between CN and some of the -OH groups, which reduces the number of exposed hydrophilic groups, and consequently decreases hydrophilicity.Nevertheless, the hydrophilicity of SA-CN35% remains higher than that of 316L SS.
The antibacterial effect of the coating directly influences the antimicrobial corrosion performance of the substrate.P. aeruginosa is widely distributed in nature and is the primary bacterial species responsible for the corrosion of metal materials in marine and other environments.Consequently, utilizing P. aeruginosa to assess the microbial corrosion resistance of 316L SS, SA, and SA-CN35% holds significant practical importance and serves as a valuable reference [57][58][59].The open circuit potential (OCP) results (Figure 7A) indicate that SA-CN35% exhibits an E OCP correction of −157.6 mV, which was compared to those of 316L SS and SA.The corrosion rate was assessed using linear polarization resistance (LPR) (Figure 7B), and the findings revealed that SA-CN35% demonstrated a higher RP value throughout the 14-day test period in comparison to those of 316L SS and SA, suggesting a lower corrosion rate.Similarly, the potentiodynamic polarization curve (Figure 7C) indicates that the test results for SA-CN35% exhibit a corrected E corr and a lower i corr (Figure 7D).This suggests that SA-CN35% demonstrates a superior inhibitory effect on the microbial corrosion of 316L SS induced by P. aeruginosa.
The pitting morphology of the sample surface was analyzed using confocal laser scanning microscopy (CLSM), as illustrated in Figure 7E-H.After a 14-day culture period in the presence of P. aeruginosa, the maximum pitting depth observed on the surface of 316L SS was 2.41 µm, with an average pitting depth of 2.07 ± 0.34 µm.In contrast, the maximum pitting depth of the SA surface was 0.81 µm, with an average depth of 0.7 ± 0.22 µm.The SA-CN35% surface exhibited a maximum pitting depth of only 0.41 µm and an average pitting depth of 0.3 ± 0.25 µm.These results further demonstrate that SA-CN35% possesses superior antimicrobial corrosion properties.
EIS is a technology that has been extensively utilized to assess the corrosion resistance of coatings [60].Figure 8A-F illustrates Nyquist and Bode plots for the 316L SS (A, B), SA (C, D), and SA-CN35% (E, F) coatings in the Pseudomonas aeruginosa culture medium after 14 days.The size of the capacitive arc in the Nyquist diagram is indicative of the corrosion rate of the sample [61].Notably, the SA-CN35% coating exhibits the largest capacitive arc radius, signifying superior corrosion resistance.

Materials and Microorganisms
SA (AR; 120 kDa; G/M ratio, 35/65) was purchased from Aladdin Industrial C ration (Shanghai, China).Analytically pure calcium carbonate (CaCO3), Melamine purity), and acetic acid were purchased from Beijing Tongguang Fine Chemicals pany (Beijing, China).All other reagents were analytical-grade and underwent no fu The impedance modulus (|Z| 0.01Hz ) in the low-frequency Bode plot serves as a crucial indicator of the corrosion resistance of the coating [62].During the 14-day test, the |Z| 0.01Hz of 316L SS exhibited a rapid decline.Although the |Z| 0.01Hz of the SA coating increased, it remained at a lower value compared to those of the others.In contrast, the |Z| 0.01Hz value of the SA-CN35% coating remained relatively stable and exhibited the highest value.
The circuit diagram presented in Figure 8G was employed to fit the electrochemical data [63].The EIS data were fitted using the parameters R s , R f , R ct , C b , and C dl , which correspond to solution resistance, biofilm resistance, charge transfer resistance, and the electrochemical elements representing biofilm capacitance and the double-layer capacitor, respectively.Table S1 provides a summary of the electrochemical parameters obtained from the fitting of the EIS data for the composite coating.
The EIS data indicate that the corrosion resistance of 316L SS coatings diminishes rapidly in a P. aeruginosa medium.The SA coating is unable to prevent bacterial damage over an extended period.In contrast, the SA-CN35% coating demonstrates efficacy in killing and inhibiting P. aeruginosa, thereby reducing bacterial damage to the substrate and exhibiting superior corrosion resistance.

Materials and Microorganisms
SA (AR; 120 kDa; G/M ratio, 35/65) was purchased from Aladdin Industrial Corporation (Shanghai, China).Analytically pure calcium carbonate (CaCO 3 ), Melamine (98% purity), and acetic acid were purchased from Beijing Tongguang Fine Chemicals Company (Beijing, China).All other reagents were analytical-grade and underwent no further purification throughout the experiment.X80 steel was supplied by the Institute of Metal Research Chinese Academy of Sciences.316L SS cut into square pieces having dimensions of 10 mm × 10 mm × 5 mm, and subsequently mechanically polished with wet silicon carbide abrasive papers with 240, 400, 600, 800, 1000, and 1200 grits, respectively.Before usage, all coupons were cleaned in distilled water and ethanol for 20 min and sterilized under ultraviolet light for 30 min.

Preparation of CN
A total of 5 g of melamine was weighed and placed into a 50 mL covered container.Melamine was burnt in a muffle furnace at 550 • C for 2 h, and then allowed to cool naturally to room temperature.This process yielded a yellow solid, which consisted of CN particles.

Preparation of SA-CN Composite Coating
First, 0.40 g of calcium carbonate was dissolved in 47.8 g of deionized water and stirred for 10 min.Next, 1.75 g of SA was added, and we continued stirring for an additional 10 min.Subsequently, CN was incorporated in varying amounts (0.6125 g) into the mixture.To ensure that carbon nitride was evenly dispersed in the hydrogel, stirring was conducted at 40 • C for 3 h.It was left to sit for 30 min to remove air bubbles.A dropper was used to apply the paddle-like mixture onto the surface of 316L SS.Finally, the samples were placed in an acetic acid atmosphere (100 mL) for 1 h to complete semi-soluble-acidified/sol-gel conversion.During the conversion process, CN was anchored in sol to prevent uneven precipitation, and a uniform SA-CN gel coating was obtained after conversion as shown in Figure 9.The resulting samples were designated as SA, SA-CN20%, SA-CN35%, and SA-CN50%.

Characterization
The surface morphology and structure of the samples were observed using a field emission scanning electron microscope (SEM, Zeiss Gemini SEM 500, Oberkochen, Germany).Energy dispersive spectroscopy (EDS, INCAx-Sight 6427, Tokyo, Japan) was employed to analyze the elemental distribution within the samples.The chemical structure of the samples was characterized using Fourier-transform infrared spectroscopy (FT-IR, SHIMADZU IRPrestige-21, Kenilworth, NJ, USA) over a scanning range of 400-4000 cm⁻ 1 .The crystal structure was characterized using X-ray diffraction (XRD, Ultima IV, Cu Kα, Waltham, MA, USA) within a 2θ range of 5-80° at a step size of 0.02°.Morphological images of the samples were obtained through atomic force microscopy (AFM, Bruker Multimode 8, Billerica, MA, USA) in contact mode.The contact angle of the samples was measured using an SL200B contact angle meter (CA, Kono Industries, Ltd., Seattle, WA, USA).The photoluminescence spectrum was recorded using a fluorescence spectrometer (PL, Hitachi F-4600, Tokyo, Japan) to assess the recombination efficiency of the photogenerated carriers.Ultraviolet-visible diffuse reflectance spectroscopy (UV-vis DRS, U-3900 H, Kyoto, Japan) was utilized to evaluate the absorption edge of the sample, and the band gap energy was calculated using the Kubelka-Munk function (1) [64].

Mechanical Performance Testing
The tensile properties of the hydrogels with and without CN were measured using an XT Plus C texture analyzer (Stable Micro Systems, Godalmin, UK) [65].All the composite hydrogels were cut into dumbbell shapes, with a length of 50 mm and a width of 10 mm.The testing speed was set at 1 mm/s, and the initial distance was 35 mm.To ensure the accuracy and reliability of the experimental results, the relevant experiments were repeated three times.

Characterization
The surface morphology and structure of the samples were observed using a field emission scanning electron microscope (SEM, Zeiss Gemini SEM 500, Oberkochen, Germany).Energy dispersive spectroscopy (EDS, INCAx-Sight 6427, Tokyo, Japan) was employed to analyze the elemental distribution within the samples.The chemical structure of the samples was characterized using Fourier-transform infrared spectroscopy (FT-IR, SHIMADZU IRPrestige-21, Kenilworth, NJ, USA) over a scanning range of 400-4000 cm −1 .The crystal structure was characterized using X-ray diffraction (XRD, Ultima IV, Cu Kα, Waltham, MA, USA) within a 2θ range of 5-80 • at a step size of 0.02 • .Morphological images of the samples were obtained through atomic force microscopy (AFM, Bruker Multimode 8, Billerica, MA, USA) in contact mode.The contact angle of the samples was measured using an SL200B contact angle meter (CA, Kono Industries, Ltd., Seattle, WA, USA).The photoluminescence spectrum was recorded using a fluorescence spectrometer (PL, Hitachi F-4600, Tokyo, Japan) to assess the recombination efficiency of the photogenerated carriers.Ultraviolet-visible diffuse reflectance spectroscopy (UV-vis DRS, U-3900 H, Kyoto, Japan) was utilized to evaluate the absorption edge of the sample, and the band gap energy was calculated using the Kubelka-Munk function (1) [64]. (1)

Mechanical Performance Testing
The tensile properties of the hydrogels with and without CN were measured using an XT Plus C texture analyzer (Stable Micro Systems, Godalmin, UK) [65].All the composite hydrogels were cut into dumbbell shapes, with a length of 50 mm and a width of 10 mm.The testing speed was set at 1 mm/s, and the initial distance was 35 mm.To ensure the accuracy and reliability of the experimental results, the relevant experiments were repeated three times.
The samples were freeze-dried at −60 • C until a constant weight was achieved, designated as M 0 .Four species were then immersed in 20 mL of deionized water for 150 min.After this period, the samples were removed, and any residual water was wiped off.The weight of the samples was recorded as M 1 .The swelling rate was calculated using Equation (2) [66].

Antibacterial Performance Testing
The plate counting method was employed to evaluate the antibacterial activity of the samples under both light and dark conditions.The concentration of the bacterial solution was standardized to 1 × 10 7 CFU/mL.The samples were introduced into glass test tubes containing the bacterial solution and were maintained in darkness or light for 6 h, respectively.The control group consisted of a bacterial solution at the same concentration without the addition of hydrogel.Subsequently, 50 µL of the bacterial solution was spread onto a solid agar medium.After a 24 h incubation period, the colonies on the solid medium were counted, and the antibacterial rate was calculated using Equation (3).
Cell viability staining was also employed to further characterize the antibacterial properties of the samples.The sample surface was stained using a bacterial viability kit (LIVE/DEAD ® BacLightTM, Invi Biotrogen, Carlsbad, CA, USA) [67].After 15 min incubation in a dark environment, live cells (green) and dead cells (red) were observed using a confocal laser scanning microscope (CLSM, LSM 900, Zeiss, Oberkochen, Germany).
The ATP concentration was measured using an ATP fluorescence detector (UPF-10ATP, Up General, Beijing, China).After 6 h of antibacterial treatment, 2 mL of the bacterial suspension was withdrawn.The cotton tip of an adenosine triphosphate (ATP) sampling swab was immersed into the bacterial liquid to initiate the measurement, and this process was repeated three times.
To ascertain the precision and dependability of the experimental outcomes, each pertinent antibacterial experiment was meticulously replicated three times.

Photocatalytic Performance Testing
The photocatalytic antibacterial mechanism was elucidated through free radical quenching experiments.Tert-butyl alcohol (TBA, 1 mM), 1,4-benzoquinone (BQ, 1 mM), and L-histidine (L-HIS, 0.5 mM) were introduced to the bacterial suspension containing SA-CN35% hydrogel to capture hydroxyl radicals (•OH), superoxide radicals (•O 2 − ), and singlet oxygen ( 1 O 2 ).The experimental procedure mirrored that of the photo antibacterial experiment, with the exception that the quenchers were added in advance.

Optoelectronic Performance Testing
The TPC and EIS of the sample were measured using a Princeton electrochemical workstation (Reference 600+, Gamry Instruments, Philadelphia, PA, USA).The sample served as the working electrode, while a platinum wire was utilized as the counter electrode, and a saturated calomel electrode functioned as the reference electrode.Measurements were conducted using a standard three-electrode system, with a 300 W Xe lamp employed as the light source.

Corrosion Resistance Test
The same electrochemical workstation used in Section 3.7 was employed to assess the corrosion behavior of the samples.The test was conducted using a three-electrode system

Figure 4 .
Figure 4.The antibacterial performances of the blank group, 316L SS, SA, SA-CN20%, SA-CN35%, and SA-CN50% against E. coli and S. aureus are presented in panel (A).A confocal laser scanning microscopy (CLSM) diagram is shown in panel (B).The antibacterial efficiency against E. coli is detailed in panel (C), while panel (D) illustrates the antibacterial efficiency against S. aureus.

Figure 4 .
Figure 4.The antibacterial performances of the blank group, 316L SS, SA, SA-CN20%, SA-CN35%, and SA-CN50% against E. coli and S. aureus are presented in panel (A).A confocal laser scanning microscopy (CLSM) diagram is shown in panel (B).The antibacterial efficiency against E. coli is detailed in panel (C), while panel (D) illustrates the antibacterial efficiency against S. aureus.

Figure 7 .
Figure 7.The OCP of the 316L SS, SA, and SA-CN35% coatings (A); LPR (B); Tafel analysis Tafel curve fitting data (D); CLSM images of pitting pits (E-G); and the pitting pit density map are presented.

Figure 8 .
Figure 8.A Nyquist diagram and Bode diagram for 316L (A,B), SA (C,D), and SA-CN35% (E,F) and a fitting circuit diagram (G) are presented.