Introduction

As an important bio-based textile, cotton fabric has been widely used for home decoration, packaging and clothing, due to their excellent properties of water absorptivity, flexibility, wearing comfort, breathability, and biodegradation (Li et al. 2020; Makhlouf et al. 2021; Nabipour et al. 2020; Zhang et al. 2022). However, cotton fabrics were highly flammable, increasing the risk of fire events in everyday life and causing hazards to both people’s health and property safety (Wang et al. 2020, 2021a). To imparting flame retardancy to cotton fabrics, many technologies have been reported, such as impregnating, coating (Zhang et al. 2017), surface grafting treatment (Wang et al. 2018b; Zhang et al. 2018), sol–gel technique (Bentis et al. 2019), and layer-by-layer (LBL) self-assembly (Pan et al. 2018). Among them, due to flexibility within the kinds of components, the LBL self-assembly method has been widely applied with modified systems which containing various components. Li et al. (2019a, b) synthesized a novel compound contained silicon and nitrogen, and combined the compound with phytic acid (PA) to fabricate flame retardant and antibacterial cotton fabrics through LBL self-assembly method (Li et al. 2019b). In recent years, researchers have focused on designing and developing highly effective flame retardants without halogen for safety and environmental-friendly considerations. According to published literature, phosphorus-, silicon- or nitrogen- compound based flame retardants represent replacement to halogen-based flame retardants (Li et al. 2022). Wang et al. (2021b) manufactured flame retardant cotton fabrics with the synthetic EPSO-P containing phosphorus (P), nitrogen (N) and silicon (Si), and the LOI of treated fabrics reached to 31.4% (Wang et al. 2021b). Manfredia et al. (2018) synthesized eight linear polyamidoamines (PAAs), and proved the potential of PAAs as flame retardants for cotton textiles (Manfredi et al. 2018). Many PAAs are water-soluble and hold great promise for ecofriendly flame-retardants (Arioli et al. 2020).

The breathability and polysaccharide structure of cellulose are a natural culture medium for bacterial proliferation, which limits the application of cotton fabrics in areas where safety requirements are high (Mu et al. 2018). For antibacterial modification, quaternary ammonium salts, guanidine, metal ions, N-halamine compounds, and nanoparticles have been widely used to prepare antibacterial compounds. N-halamine compounds are extensively been explored for such due to their advantages of antimicrobial efficacies in a short time, long-term stability, broad-spectrum activity, low toxicity and regeneration ability (Tian et al. 2021; Xu et al. 2021). Various N-halamine copolymers which are applied as antibacterial textile coatings have been reported (Zhang et al. 2020). Pan et al. (2016) prepared multifunctional cotton with antibacterial property and hydrophobicity by using polymeric N-halamine precursor modified graphene oxide. The functional fabrics achieved antibacterial efficacy and self-cleaning ability (Pan et al. 2016). Zhang et al. (2019) synthesized N-halamine copolymers and coated them on cotton fabrics. The prepared fabrics showed excellent antibacterial efficacy which could inactivate six logs of bacteria within 1 min (Zhang et al. 2019). Improving the hydrophobicity of cotton fabrics can enhance their resistance to bacterial adhesion and antibacterial durability. Some studies for preparing antibacterial cotton fabrics with hydrophobicity have been reported. Yang et al (2020) manufactured an non-fluorinated superhydrophobic and antibacterial cotton through in situ growing zeolitic imidazolate framework-8 (ZIF-8) and being coated with polydimethylsiloxane (PDMS) (Yang et al. 2020). The obtained cotton fabric showed superhydrophobicity and high antibacterial activity against E. coli and S. aureus. Ma (2019) et al. prepared antibacterial and hydrophobic cotton fabrics with N-halamine siloxanes, ZnO, and silane precursors via the ultrasonic-assisted dipping-padding assembly technique. The coated cotton fabrics showed good hydrophobicity and antibacterial efficacy. 69% of the chlorine was retained after the equivalent of 25 machine washes, indicating the excellent durability (Ma et al. 2019).

To extend the usefulness of cellulose textiles, creating a cotton fabric with multifunctionality is one of the future research goals. The studies of cotton fabrics with effectively flame retardancy, and simultaneously providing antibacterial and hydrophobic properties have been rarely reported until now. Herein, a water-soluble flame retardant and antibacterial polymer P(AA-ADMH) was synthesized by introducing N-halamine structure into PAAs. In order to achieve efficient flame retardant and antibacterial modified cotton fabrics, P(AA-ADMH) was reacted with PA and γ-aminopropyl triethoxysilane (APS) to achieve modification via LBL self-assembly method. The N-halamine structure of P(AA-ADMH) created the main antibacterial component. Meanwhile, P(AA-ADMH), PA and APS impacted P/N/Si synergistic flame retardancy of fabrics. The flame-retardant performance and mechanism of the modified cotton fabrics were studied. Antibacterial properties, hydrophobicity, mechanical properties and durability of the modified fabrics were also characterized.

Experimental

Materials

Glycine (G), lithium hydroxide monohydrate (LiOH·H2O), sodium hypochlorite solution (NaClO), sodium hydroxide (NaOH) and sulfuric acid (H2SO4) were purchased from Sinopharm Group Chemical Reagent (Shanghai, China) Co., Ltd. Phytic acid (PA), N, N'-methylenebisacrylamide (MA) and γ-Aminopropyl triethoxysilane (APS) were purchased from Beijing Bailingwei Technology (Beijing, China) Co., Ltd. Cotton fabrics (110 g/m2) were obtained from Zhejiang Guandong Textile Dyeing Garment (Zhejiang, China) Co., Ltd.

Synthesis of P(AA-ADMH)

Synthesis of P(AA-ADMH) is shown in Scheme 1: Typically, LiOH·H2O (0.01 mol, 0.42 g) was dissolved in 5.79 mL deionized water (DI). Then G (0.008 mol, 0.6 g) and ADMH (0.002 mol, 0.34 g, prepared as per the methods reported in a previous study (Jiang et al. 2016) were introduced to the mixture, stirred for 30 min at 25 °C. Furthermore, MA (0.01 mol, 1.54 g) was added to the mixture, stirred at 50 °C until the mixture became a clear transparent solution. Finally, the product P(AA-ADMH) solution was obtained after stirring at 25 °C for 48 h. Then the product was diluted to 100 mL with DI, and ultra-filtered through a membrane.

Scheme 1
scheme 1

Synthesis of P(AA-ADMH)

Preparation of the modified cotton fabrics

Cotton fabrics were pre-treated with 1.0 wt% NaOH aqueous solution. The P(AA-ADMH) solution was diluted to 10 wt% for application to modify the cotton fabrics. The cationic solutions of LBL consisted of 5wt% APS aqueous solution (pH = 3.4, adjusted by 5 mol/L H2SO4 aqueous solutions); 10 wt% P(AA-ADMH) aqueous solution and 2 wt% PA aqueous solution were prepared as anionic solution.

One-bilayer for P(AA-ADMH)/APS cotton (Scheme 1): The cotton fabrics were exposed to 5 wt% APS for 20 min, washed and dried at 80 °C. Then cotton fabrics were exposed to 10 wt% P(AA-ADMH) for 10 min, washed and dried at 80 °C.

One-bilayer for P(AA-ADMH)/PA/APS cotton (Scheme 2): 1 BL of P(AA-ADMH)/APS cotton was exposed to 5 wt% APS for 20 min, washed and dried at 90 °C, then the modified fabric was exposed to exposed to in 2 wt% PA for 10 min, washed and dried at 90 °C.

Scheme 2
scheme 2

Schematic illustration of the preparation of the modified cotton fabrics

Chlorination of the modified cotton fabrics

The P(AA-ADMH)/APS cotton and P(AA-ADMH)/PA/APS cotton were submerged in 10% NaClO aqueous solution (regulated with 10% H2SO4 aqueous solution, pH = 7) for 1 h, washed and dried at 50 °C for 2 h. The chlorine content of samples were analysed via iodine/thiosulfate titration (Ma et al. 2019).

Analytical measurements

Structural analysis: The P(AA-ADMH) was freeze-dried for nuclear magnetic resonance (1H NMR) and Fourier transform infrared spectroscope (FTIR) tests. The 1H-NMR analysis was recorded on Bruker Avance III 400 NMR spectrometer. The solvent was D2O (99.9%). (1.34 ppm: H10 and H11; 2.67 ppm: H2 and H6; 3.37 ppm: H1, H5 and 3 0.62 ppm: H4, H8 and H9; 4.53 ppm: H3 and H7). The FTIR analysis was recorded on Fourier infrared spectrometer (Nicolet Avatar370, USA). The morphology of the samples was recorded on Hitachi SU-1510 scanning electron microscopy (SEM, Japan) which was connected energy dispersive X-ray spectrometer (EDS). The samples were sputtered with gold for 60 s. The test voltage of SEM was 5 kV, and the test voltage of EDS was 15 kV. X-ray diffraction (XRD) of various samples was recorded on X-ray diffractor (Bruker D2 PHASER, Germany) to obtain 2750 counts in the range of 5°-60° with a step size of 0.02°. The complete fabrics were used as the test samples. X-ray photoelectron spectra (XPS, Thermo Scientific K-Alpha, UK) were performed to study the contents of the elements on the samples. The radiation power was 15 kW. The dimensions of samples were 5 mm × 5 mm. The water contact angles were evaluated by PT-602A contact angle analyzer (China), and 4 μL of DI was used as testing liquid. Thermogravimetric (TG) analysis was conducted with a TA Instruments Q500 thermal analyzer in a temperature range (30–700 °C) at 10 °C / min in static N2 atmosphere, and each sample was 5 mg.

According to GB / T 17591–2006 standard, LOI was conducted on a JF-3 type digital limiting oxygen index analyzer instrument (China). According to GB / T 5455–2014 standard, vertical burning tests were recorded in a vertical flame chamber. Cone calorimeter test (CCT) was investigated by using an FTT Fire Testing Technology (UK). The heat flux was 35 kw / m2. Thermogravimetric analysis coupled with Fourier Transform infrared spectroscopy (TG-FTIR, BR UKER TGA-IR) was performed to evaluate the thermogravimetric properties of the modified cotton fabrics in a temperature range (50–800 °C) at 10 °C/min in static N2 atmospheres.

Antibacterial activity evaluation: The antibacterial efficiencies of control cotton, [P(AA-ADMH)/APS]15-Cl cotton and [P(AA-ADMH)/PA/APS]15-Cl cotton were evaluated by contact test and bacterial biofilm test. Escherichia coli (E. coil) and Staphylococcus aureus (S. aureus) were set as the model strain for the test. The method of contact test was assessed by AATCC Test Method 100–2004 (Kong et al. 2021b). Two 2.54 cm × 2.54 cm samples were contact with 25 μL bacterial inoculum with 30, 60, and 120 min. Then the bacteria were extracted from the samples and incubated at 37 °C for 24 h. The number of bacterial colonies was counted for biocidal assessment. The inhibitory effect of the samples for bacterial biofilm was assessed by bacterial biofilm-controlling test. The samples were exposed to the bacterial inoculum for 2 h, then the bacteria were removed by rinsing with phosphate buffered saline (PBS) and incubated in broth at 37 °C for 24 h. Part of the samples were immersed into 5 mL PBS, vortexed for 2 min. Then, the bacteria were inoculated on nutrient agar medium (NAM) plates for CFU determination. Part of the samples were exposed to glutaraldehyde solution (3 wt%) at 4 °C for 12 h to fix the bacteria, then dehydrated with ethanol solutions (30%, 50%, 75%, 90%, and 100%) and dried for SEM observation.

Tensile tests were recorded on YG026D-250 electronic universal testing machine (China) with 10 mm/min strain rate. The washing durability of chlorinated modified samples was conducted under AATCC 61–2006 standard.

Results and discussion

Characterization of P(AA-ADMH)

1H NMR spectrum of P(AA-ADMH) is shown in Fig. 1a. The signals of 2.67 ppm and 3.37 ppm were assigned to -CH2- of P(AA-ADMH) (Xia et al. 2022), and the peak at 4.53 ppm to the N-CH2-N group. The peaks at 3.4–4.3 ppm correspond to -CH3 from P(AA-ADMH). Furthermore, one peak located at 3.62 ppm was assigned to the N-CH2- group of P(AA-ADMH) (Kang et al. 2013). The FTIR spectra of P(AA-ADMH) is shown in Fig. 1b. The peaks at 3056 cm−1 and 1532 cm−1 were ascribed to the stretching vibration and formation vibration of N–H (Arioli et al. 2020), respectively. The peaks at 1721 cm−1 and 1622 cm−1 corresponding to the stretching vibration of C = O, were attributed to ADMH and G (Yin et al. 2016). The peak at 3241 cm−1 was ascribed to the stretching vibration of C-H. The peaks at 1382 cm−1 and 1231 cm−1 corresponding to C-H formation vibration, were due to P(AA-ADMH) polymer. The peaks at 1337 cm−1 and 1108 cm−1 were attributed to the stretching vibration of C-O and C–C, respectively. The results of 1H NMR and FTIR indicated that a successful reaction happened between MA with G and ADMH.

Fig. 1
figure 1

1H-NMR spectrum a and FTIR spectrum b of P(AA-ADMH)

Characterization of the modified cotton fabrics

Firstly, XRD patterns of control cotton, [P(AA-ADMH)/APS]15-Cl cotton and [P(AA-ADMH)/PA/APS]15-Cl cotton are shown in Fig. 2a. Compared to control cotton, there was no significant change observed for the non-crystalline phase structure of the modified samples. According to Fig. 2a, all samples showed four peaks at the 2θ values around 15°, 17°, 23° and 34°, which were assigned to the (1–10), (110), (200), and (004) crystal planes of cellulose (French 2014; Gao et al. 2019). These peaks of the modified cotton fabrics shifted slightly, indicating cotton fibers swelled in NaOH and cellulose I structure was partially destroyed (Zhou et al. 2020). The results of the XRD analyses indicated that the treatment did not substantially affect the crystal structures of the cotton fabrics. Furthermore, XPS spectra in Fig. 1b showed O1s (534.02 eV) and C1s (284.09 eV) signals for control cotton, while the spectrum of [P(AA-ADMH)/APS]15-Cl cotton exhibited N1s, Si2s, Si2p and Cl2p peaks at 400.1 eV, 152.1 eV, 101.3 eV and 202.2 eV(Jiang et al. 2019), proving the successful modification of control cotton. Moreover, the peak at 133.4 eV (P2p) in the spectrum of [P(AA-ADMH)/PA/APS]15-Cl cotton was due to the presence of PA (Li et al. 2019a).

Fig. 2
figure 2

XRD and XPS spectra of control and modified samples (a) and (b). EDS spectra of control cotton (c), [P(AA-ADMH)/APS]15-Cl cotton (d) and [P (AA-ADMH)/PA/APS]15-Cl cotton (e). SEM images (× 500, × 2000): Control cotton (f), P(AA-ADMH)/APS]15 cotton (g), [P(AA-ADMH)/APS]15-Cl cotton (h), P(AA-ADMH)/PA/APS]15 cotton (i) and [P(AA-ADMH)/PA/APS]15-Cl cotton (j)

To explore the elements of the modified samples, EDS was carried out. As depicted in Figs. 2c, d and e, the surface elemental composition of [P(AA-ADMH)/APS]15-Cl cotton showed the typical N and Si elements of P(AA-ADMH) and APS, and [P(AA-ADMH)/PA/APS]15-Cl cotton exhibited P element of PA. Furthermore, the morphology of the control and modified samples was investigated via SEM, (Figs.2f-j). The surface of the control cotton was glossy. After modification, the fabrics clearly exhibited a layer of coating.

Thermal properties

TG and DTG curves are shown in Fig. 3, and the relevant TG data are summarized in Table S1. The first 5% weight loss (T5%) of control cotton resulted from evaporation of water. Remarkably, the temperature at T5% of two modified cotton fabrics obviously decreased, which was due to the lower degradation temperature of P (AA-ADMH) and PA (Lin et al. 2019). The main weight loss of the control cotton in temperature range of 292–381 °C, the maximum weight loss rate (Rmax) of 2.5%/°C at 355 °C was due to the decomposititon of cellulose (Wang et al. 2022b). It was worth mentioning that the modified cotton fabrics displayed almost the same thermal behaviors, and presented lower values of Rmax than that of control cotton. In addition, the rate of char residue at 700 °C of [P(AA-ADMH)/APS]15-Cl cotton increased from 11.1% to 15.9%, which was mainly due to the high thermal stability of inorganic silica generated from the degraded APS (Wang et al. 2022a). When heating, PA was cracked into polyphosphoric acid and phosphoric acid, propelling the pyeolysis and carbonation of cellulose and suppressing production of L-glucose (de Oliveira et al. 2021b). Therefore, the char residue of [P(AA-ADMH)/PA/APS]15-Cl cotton was higher than [P(AA-ADMH)/APS]15-Cl cotton. These results could prove that the synergistic effect of P(AA-ADMH) and PA could further prevented the thermal degradation.

Fig. 3
figure 3

TG and DTG curves of control and the modified samples (a) and (b). Chlorine content of the modified samples (c). WCA of the modified cotton samples (d)

Chlorine content

Generally, the chlorine content directly shows the load of N-halamine and the antibacterial property of the modified fabrics. As shown in Fig. 3c, with increasing the numbers of layers, the chlorine content gradually increased. In addition, compared to [P(AA-ADMH)/APS]-Cl cotton, the [P(AA-ADMH)/PA/APS]-Cl cotton exhibited a higher chlorine content, which might be due to the more APS layers in resulting in P(AA-ADMH) being strongly bound to the cotton fabrics (Mostofi Sarkari et al. 2019). [P(AA-ADMH)/PA/APS]15-Cl cotton with the highest chlorine content were used for further testing.

Static hydrophobic properties

The WCA value and test images are displayed in Fig. 3d. Regular cotton fabrics (the WCA is around 0°) are considered highly hydrophilic due to the existence of abundant hydroxyl groups in the cellulosic chemical structure (Maia et al. 2022). According to Fig. 3d, with 1 s contact time, the WCA of [P(AA-ADMH)/APS]15 cotton and [P(AA-ADMH)/PA/APS]15 cotton were 61.0° and 92.9°. On the one hand, the dehydration condensation of APS layers that occurred in the cotton fabrics could reduce the hydroxyl groups on the cotton surface (Cheng et al. 2015), contributing to the increase of WCA. On the other hand, according to SEM results (Figs. 2f-g), the surface roughness of the modified cotton fabrics was increased, which promoted by self-assembled layers deposition, resulted in higher WCA of the modified samples. Meanwhile, the WCA of the modified fabrics increased further after chlorination, the reason might be that N–H bonds [P(AA-ADMH)] changed to N-Cl bonds, leading to the reduction of hydrogen bonds in cotton fabrics. According to the images of Fig. 3d, most of the water was still retained on the surface of the modified fabrics over 10 s. It demonstrated that the load of the self-assembled layers rendered cotton fabrics some hydrophobicity (Cao et al. 2022; Kong et al. 2021).

Flame retardant properties

To analyze the flame retardant properties of the modified cotton fabrics, LOI and vertical burning tests were carried out (Fig. 4 and Table S2). Compared to the regular cotton (the LOI value is 18.0%), the LOI of [P(AA-ADMH)/PA/APS]-Cl cotton increased significantly with increasing number of the layers, especially for 15 BL (27.3%). Generally, after ignition, the regular cotton burned rapidly within a time of 12 s and flame was extinguished without residue. In contrast, [P(AA-ADMH)/APS]15-Cl cotton was carbonized completely during flame combustion and smoldering with a decreased of combustion rate, as schematized in Fig. 4a. According to Table S2, [P(AA-ADMH)/PA/APS]-Cl cotton with 5 BL could self-extinguish once the fire source was removed. For 15 BL, the sample had no both afterflame time and afterglow time, the value of char length was 12.2 cm.

Fig. 4
figure 4

Digital images of the modified samples through vertical burning tests (a). LOI and char length of the modified samples (b)

CCT was performed to simulate a realistic fire scene, and further evaluated the flammability performance of the modified samples. Critical combustion data are reported in Fig. 5 and Table S3. For control cotton, typical peak heat release rate (PHRR) was 117 kW/m2, and total heat release (THR) was 2.2 MJ/m2. In contrast, for the [P(AA-ADMH)/APS]15-Cl cotton, the PHRR and THR decreased by 8.5% and 22.7%, respectively. Increasing the layers of PA further decreased the PHRR and THR values, 29.1% and 31.8% reduction were observed for [P(AA-ADMH)/PA/APS]15-Cl cotton. The results demonstrated that the fire threat of the modified cotton fabrics was reduced and could extend fire escape time (de Oliveira et al. 2021a). The time to ignition (TTI) value of [P(AA-ADMH)/PA/APS]15-Cl cotton was 3 s, which was lower than that of control cotton (7 s). This phenomenon was accordance with the results of TG measurements. During combustion, PA firstly decomposed, which lead to the earlier pyrolysis of [P(AA-ADMH)/PA/APS]15-Cl cotton.

Fig. 5
figure 5

CCT data: HRR (a); THR (b); SPR (c); TSP (d); COP (e) and CO2P (f). Digital photographs of control and modified samples after cone calorimeter test: control cotton (g); [P(AA-ADMH)/APS]15-Cl cotton (h) and [P(AA-ADMH)/PA/APS]15-Cl cotton (i). Mapping images for the char of [P(AA-ADMH)/PA/APS]15-Cl cotton (j)

The smoke release threats the safety of evacuation greatly. As shown in Fig. 5c, the values of smoke production rate (SPR) and total smoke production (TSP) of [P(AA-ADMH)/APS]15-Cl cotton dramatically increased. Comparatively, both SPR and TSP values of [P(AA-ADMH)/PA/APS]15-Cl cotton obviously reduced, due to the deposition of PA. In other words, [P(AA-ADMH)/PA/APS]15-Cl cotton achieved great fire safety, and had a lower smoke emission as well. The CO production rate (COP, Fig. 5e) values of [P(AA-ADMH)/APS]15-Cl cotton and [P(AA-ADMH)/PA/APS]15-Cl cotton increased, and the CO2 production rate (CO2P, Fig. 5f) values decreased, which was caused by the low combustion efficiency of the modified cotton fabrics. This indicated that the modified layers were conductive to hindering the release of combustion component formed in condensed phase decomposition (Chen et al. 2019). According to the data in Table S3, the char residue of P(AA-ADMH)/PA/APS]15-Cl cotton increased from 0.1 to 17.1 wt%. Moreover, P, N, and Si elements (Fig. 5j) were observed on the [P(AA-ADMH)/PA/APS]15-Cl cotton after burning. The digital photographs in Figs. 5g-i for the residues of samples after the CCT test confirmed the above results. As shown in Fig. 5, control cotton burnt completely, meanwhile, [P(AA-ADMH)/PA/APS]15-Cl cotton formed continuous and compact char residue.

Flame retardant mechanism

To discover the flame retardant mechanism of the modified samples, TG-IR and the morphology of residues was conducted. The thermal decomposition products of modified and control cotton fabrics were investigated by TG-FTIR in the temperature range of 50–800 °C. As revealed in Figs. 6a-c, comparison with the control cotton, the absorption positions of FTIR peaks [P(AA-ADMH)/APS]15-Cl cotton and [P (AA-ADMH)/PA/APS]15-Cl cotton presented similar, with only difference in peak intensity, which was caused by the change of the released gas (Wang et al. 2018a). The FT-IR curves of samples at different temperature are shown in Figs. 6 d-e, to verify the decomposition products further. As shown in Fig. 6d, the control cotton began to decomposed of at around 370 °C, with emerging the characteristic absorption peaks which were owing to H2O (3764–3459 cm−1), carbonyl compounds (2864–2765 cm−1), CO2 (2403–2246 cm−1), CO (2183-2111 cm−1) and carbonyl groups (1740 cm−1) (Rao et al. 2021). From Fig. 6d, the absorption intensity of the peaks at 2809 cm−1(carbonyl compounds) from the modified cotton fabrics (Figs. 6e-f) were obviously decreased, indicating that [P(AA-ADMH)/APS]15-Cl cotton and [P(AA-ADMH)/PA/APS]15-Cl cotton produced fewer volatile products containing hydrocarbon during the pyrolysis process. For the modified samples, the strength of 3584 cm−1 (NH3) and 3731 cm−1 (H2O) peaks were increased, suggesting the higher release of NH3 and H2O from the modified samples (Zheng et al. 2016). In addition, compared with control and [P(AA-ADMH)/APS]15-Cl cotton, the peaks of ether compounds and carbonyl compound (which belong to flammable substances) from [P(AA-ADMH)/PA/APS]15-Cl cotton were significantly reduced.

Fig. 6
figure 6

3D TG-FTIR curves: (a), P(AA-ADMH)/APS]-Cl cotton (b) and [P(AA-ADMH)/PA/APS]-Cl cotton (c). FTIR spectra of pyrolysis volatile products: cotton fabrics (d), P(AA-ADMH)/APS]-Cl cotton (e) and [P(AA-ADMH)/PA/APS]-Cl cotton (f). SEM images (× 500, × 2000) of samples: Control cotton (g), P(AA-ADMH)/APS]15-Cl cotton (h) and [P(AA-ADMH)/PA/APS]15-Cl cotton (i)

The morphology of the char residue after the vertical burning test was observed to further discover flame resistance mechanism of the modified fabrics. As could be observed in Fig. 6g, the fibers of control cotton were loose, and the structure was broken. However, the SEM images (Fig. 6h-i) of [P(AA-ADMH)/APS]15-Cl cotton and [P(AA-ADMH)/PA/APS]15-Cl cotton presented the image of the complete structure and shape of fibers. After combustion, the fibers of [P(AA-ADMH)/APS]15-Cl cotton showed rough surfaces but loose structures, with severe shrinkage and fractures, which resulted from unsatisfactory flame retardancy of P(AA-ADMH) and APS. As for the [P(AA-ADMH)/PA/APS]15-Cl cotton, the fibers stayed fully compact and almost integral, with the char layer being thicker and more condensed. This structure was able to lower combustible gases release and to block the heat exchange, thereby [P(AA-ADMH)/PA/APS]15-Cl cotton have great flame retardant property (Rosace et al. 2017). This phenomenon was due to the cooperation of PA and APS. During combustion, cotton fibers were promoted the dehydration and carbonization as a result of the pyrolysis of PA. Meanwhile, Si compound of APS could contribute to form more stable carbon layer contained silicon (Jin et al. 2023).

Thus, P, N and Si elements of modified system improved flame retardant property of cotton fabrics via two pathways. In the gas phase, modified cotton fabrics released some non-flammable gas which could dilute flammable volatiles. In the condensed phase, the modified cotton fabrics shield heat transfer and lowered oxygen passage via promoting the formation of a dense and complete residue structure.

Antibacterial activities

According to Fig. 7a, the unchlorinated modified cotton fabrics did not display antimicrobial activity within 120 min. While, [P(AA-ADMH)/APS]15-Cl cotton and [P(AA-ADMH)/PA/APS]15-Cl cotton exhibited high antibacterial efficiencies, and over 90% against E. coli and S. aureus within 30 min. The antibacterial rate of [P(AA-ADMH)/PA/APS]15-Cl cotton was 100% against S. aureus and E. coli within 60 min and 120 min, respectively. According to the literature (Zheng et al. 2021), the oxidative chlorine (Cl+) reacted with appropriate receptors in the bacteria, leading to intracellular content leakage, which finally caused the bacteria to be inactivated. Therefore, the oxidative chlorine provided by N-halamine attributed to the potent antibacterial property of the modified fabrics (Yang et al. 2021). The results of biofilm-controlling test are shown in Fig. 7c-d, [P(AA-ADMH)/APS]15-Cl cotton and [P(AA-ADMH)/PA/APS]15-Cl cotton could effectively inhibit the adherence of bacteria. The control cotton showed a recoverable E. coli and S. aureus level with 2.40 ± 0.33 × 106 CFU/mL and 2.53 ± 0.50 × 106 CFU/mL, respectively. After treatment with [P(AA-ADMH)/APS]15-Cl cotton for 2 h, 72.21% and 47.44% of E. coli and S. aureus were decreased, respectively. For [P(AA-ADMH)/PA/APS]15-Cl cotton, the adherent level of E. coli and S. aureus decreased significantly by 83.33% and 99.99%, respectively. To further investigate the antibacterial mechanism, morphological studies of control and modified cotton fabrics contacted with bacteria were conducted. According to Figs. 7e and j, the regular cotton was covered with a large amount of layered of E. coli and S. aureus, while, [P(AA-ADMH)/APS]15-Cl cotton and [P(AA-ADMH)/PA/APS]15-Cl cotton appeared relatively clean, evidencing that the modification of cotton fabrics effectively reduced the bacteria adhesion and the related biofilm formation.

Fig. 7
figure 7

Biocidal activities of the control and modified samples against E. coli (Inoculum concentration: 5.25 × 106 CFU) (a) and S. aureus (Inoculum concentration: 3.96 × 106 CFU) (b). Biofilms controlling ability of: E. coli (c) and S. aureus (d). SEM images of bacterial biofilm(× 2000). E. coli: Control cotton (e), [P(AA-ADMH)/APS]15 cotton (f), P(AA-ADMH)/PA/APS]15 cotton (g), [P(AA-ADMH)/APS]15-Cl cotton (h), [P(AA-ADMH)/PA/APS]15-Cl cotton (i); S. aureus: Control cotton (j), [P(AA-ADMH)/APS]15 cotton (k), P(AA-ADMH)/PA/APS]15 cotton (l), [P(AA-ADMH)/APS]15-Cl cotton (m), [P(AA-ADMH)/PA/APS]15-Cl cotton (n)

Washing durability

To verify the washing durability of the modified cotton fabrics, the flame retardant and antibacterial properties of [P(AA-ADMH)/APS]15-Cl cotton and [P(AA-ADMH)/PA/APS]15-Cl cotton were evaluated after 5 and 10 washing cycle time. The LOI and chlorine content is shown in Fig. 8a. After washing for 5 cycles, the chlorine content of [P(AA-ADMH)/APS]15-Cl cotton had decreased from 0.26% to 0.03%, [P(AA-ADMH)/PA/APS]15-Cl cotton had decreased from 1.41% to 0.11%. During the washing test, the N-Cl bonds in modified samples decomposed, leading to decrease of the chlorine content. Furtherly, the chlorine content of modified cotton fabrics was nearly undetectable after 10 washing cycles. However, most initial chlorine content could be regenerated with a re-chlorination process by exposure to NaClO solution. After 10 washing cycles, the LOI of [P(AA-ADMH)/PA/APS]15-Cl cotton reduced from 27.3% to 24.3% which was indicated that the durability of modified sample could be preserved in part.

Fig. 8
figure 8

Results of washing (AATCC 61–1996): Chlorine loading (a) and LOI (b). Tensile strength of the modified samples (c) and (d)

Mechanical characterization

The mechanical properties of the modified cotton fabrics were evaluated via tensile strength tests. As presented in Fig. 8c-d, the tensile strength of modified cotton fabrics was retained by around 90% in warp and weft directions. The decline could be the results of the weak acidity of modification conditions and high temperature (Xu et al. 2019). From Fig. 8c-d, the tensile strength of the unchlorinated and chlorinated modified samples was almost the same; these results indicated that the chlorination treatment hardly affected the tensile properties of cotton fabrics.

Conclusions

In summary, novel flame retardant, antibacterial cotton fabrics with increased hydrophobicity were prepared through LBL self-assembly method with synthesized P(AA-ADMH), PA and APS. After the modification, phosphorus, nitrogen and silicon elements were verified on cotton fabrics. The modified cotton fabrics [P(AA-ADMH)/PA/APS]15-Cl cotton had a LOI value of 27.3%, exhibiting good flame-retardant performance, and self-extinguishing capabilities were proved by vertical combustion. Owing to the N-halamine structure, the modified cotton fabrics inactivated 100.0% of E. coli and S. aureus within 120 min. In addition, modified cotton fabrics presented some hydrophobicity, which contributed to the decrease of the bacterial adsorption and favored the antibacterial property. These multifunctional cotton fabrics show potential applications as protective textiles.