Introduction

Anisodus tanguticus (Maxim.) Pascher (A. tanguticus) is a perennial herbaceous plant of the family Solanaceae and the genus Scopolamine [1]. This plant is native to the Qinghai-Tibet Plateau [2,3,4,5]. The detailed account can be found in China’s Tibetan Medicine Chronicles [6]. The whole plant of A. tanguticus contains diverse tropane alkaloids, serving as both an herbal remedy for pain relief and sedation and a vital plant resource for Tibetan herders to mitigate livestock injuries caused by winter’s low temperatures [7]. Being a crucial raw medicinal material, A. tanguticus has been extensively studied for its chemical composition, pharmacological activities of monomeric compounds, and its potential as a source for new drugs [8,9,10,11,12]. Since the 1950s, anisodamine has been extracted from the roots of this plant and used as an anticholinergic medication to inhibit M-choline receptors [13,14,15]. Following that, compounds such as anisodine, scopolamine, and atropine, which are categorized as tropane alkaloids, have been isolated from A. tanguticus[16]. Due to distinct substituents at different positions of their molecular structures, these compounds manifest diverse levels of physiological activity [17]. With the rapid expansion of the market for drugs containing alkaloids, many pharmaceutical factories manufacture diverse active pharmaceutical ingredients utilized as mydriatics, antiemetics, antispasmodics, anesthetics, and bronchodilators [18, 19]. Simultaneously, these alkaloids have been listed on the Essential Medicines List of the World Health Organization and received approval from the United States Food and Drug Administration for market sale [12, 20]. Currently, tropane alkaloids are primarily derived from herbal medicines containing such alkaloids [19, 21, 22]. A. tanguticus, serving as a crucial plant resource for tropane alkaloid extraction, has evolved from a traditional medicinal plant to an industrial one [10, 18, 23]. As a result, the demand for A. tanguticus medicinal materials has steadily risen. Furthermore, given the perennial nature and extended growth cycle of A. tanguticus, excessive harvesting has led to the gradual depletion of wild resources, presenting challenges in sustaining the supply for rapidly growing industrial production [16, 24, 25]. Therefore, cultivating A. tanguticus stands out as the primary approach to addressing the supply–demand imbalance and concurrently serves as the most effective measure to safeguard the ecological environment.

Accurate fertilizer management is crucial in the pursuit of sustainable development of medicinal plants since it directly affects the quantity and quality of medicinal herbs. Nitrogen (N), phosphorus (P), and potassium (K) are three crucial nutrients that affect the growth, development, and synthesis of bioactive compounds in plants [26]. Optimizing the supply of nitrogen, phosphate, and potassium improves the caliber and productivity of therapeutic herbs. Nitrogen is a crucial component of organic compounds such as proteins, amino acids, and nucleic acids [27]. It plays a vital function in regulating the secondary metabolism of medicinal plants [28]. For instance, when nitrogen is plentiful, plants from the Solanaceae family manifest a notable increase in alkaloids [29, 30]. Similar patterns emerge in other alkaloid compounds like morphine in Papaver, scopolamine in Mandragora, and quinine in Cinchona trees, indicating augmented synthesis under optimal nitrogen supply [31,32,33]. These alkaloids play essential roles in the medicinal and defensive functions of plants[34, 35]. Also, the right amount of nitrogen has a direct effect on some secondary substances, like celastrol, silymarin, and saponins [36,37,38]. Hence, the direct regulatory role of nitrogen in the secondary metabolism of plants holds significant importance for the biosynthesis and effectiveness of medicinal plants.

Additionally, phosphorus plays a vital role in numerous cellular processes essential for cell metabolism, division, and plant growth and development[39]. It is a key component of ATP, DNA, RNA, phospholipids, coenzymes, and membrane lipids, functioning as a primary metabolic regulator [40, 41]. An abundant provision of phosphorus in medicinal plants promotes root growth and enhances the production of secondary metabolites, consequently impacting the medicinal potency and effectiveness of the plants [42, 43]. Prior research has demonstrated that adequate or plentiful phosphorus levels promote the development of root structure, weight, and saponin concentration in plants like American ginseng. Additionally, phosphorus greatly augments the alkaloid content in plants such as Sophora flavescens, Lupinus angustifolius, Lolium perenne, and other species [44,45,46,47,48]. However, in certain soils, although phosphorus content may be rich, a substantial portion exists in forms inaccessible to plants, leading to phosphorus deficiency [49, 50]. Confronted with this limitation (phosphorus deficiency), plants have evolved various developmental, biochemical, and symbiotic adaptation strategies, resulting in the accumulation of specific secondary metabolites [51]. Low phosphorus, for example, makes Bupleurum chinense make more saponins, increases the amount of flavonoids (mainly kaempferol and quercetin) in the roots of Cajanus cajan and Pak choi, and makes Dendrobium officinale store more alkaloids and polysaccharides [49, 52, 53]. Consequently, carefully considering and applying phosphorus in the cultivation of medicinal plants can foster robust plant growth and enhance the yield and quality of medicinal herbs.

Finally, potassium, as a key macro-nutrient element, plays a crucial physiological role in plants, participating in key biochemical processes such as regulating osmotic pressure, maintaining ionic homeostasis, sugar transfer, promoting photosynthesis, and "activating" a wide range of enzymes in the plant, which are critical for plant growth, development, and adaptation to the environment [26, 54, 55]. In medicinal plants, an appropriate supply of potassium has a significant regulatory effect on the synthesis and accumulation of secondary metabolites such as alkaloids and anthraquinone compounds [26, 56]. For example, sufficient potassium increases the concentration of alkaloids like vincristine in the roots and leaves of Catharanthus roseus, and the content of ephedrine, pseudoephedrine, and flavonoids in Ephedra sinica rises with an increase in potassium supply [57, 58]. A severe potassium deficit significantly increases the quantity of alkaloids in the seeds of three sweet cultivars of Lupinus angustifolius (Danja, Gungurru, and Yorrel), as observed in a study by Gremigni et al. in 2001 [59]. These findings highlight the significance of potassium in the creation of alkaline compounds. In addition, appropriate potassium levels also enhance the growth and accumulation of secondary metabolites in medicinal plants such as Fritillaria thunbergii and Cannabis sativa [56, 60, 61]. These research findings underscore the crucial role of optimal potassium application in regulating the secondary metabolites of medicinal plants. Thus, the judicious application of potassium is significantly important for the efficacy and medicinal value of medicinal plants.

Therefore, judiciously managing exogenous nutrients (nitrogen, phosphorus, and potassium) in a scientific and rational manner can boost the concentration of bioactive compounds in medicinal plants, enhancing their medicinal value. Simultaneously, it aids in enhancing both yield and quality, offering substantial support for the sustainable cultivation of medicinal plants. Nonetheless, there is a scarcity of research on the nutrient regulation response in A. tanguticus. So, it is very important, both theoretically and practically, to figure. out how nitrogen, phosphorus, and potassium effect on the growth, main alkaloids (anisodine, anisodamine, scopolamine, and atropine) content and alkaloids yield of A. tanguticus. To address this research gap, this study hypothesizes that optimizing the individual application rates of nitrogen (N), phosphorus (P), and potassium (K) nutrients can significantly enhance the alkaloid content and overall yield of A. tanguticus. The specific objectives are as follows: 1. To determine the optimal nitrogen application rate for maximizing alkaloid content and yield in A. tanguticus; 2. To evaluate the optimal phosphorus application rate for enhancing growth and alkaloid accumulation in A. tanguticus; 3. To investigate the optimal potassium application rate for increasing alkaloid content accumulation in A. tanguticus; 4. To develop an integrated nutrient strategy for N, P, and K to provide theoretical support and practical guidance for the efficient cultivation of A. tanguticus.

This research aims to provide critical support for the scientific cultivation and nutrient management of A. tanguticus, thereby improving its medicinal value and market competitiveness.

Materials and methods

Experimental site

The experimental site is located in Lanlongkou Town, Huangzhong County, Xining City, Qinghai Province, China (101.48° E, 36.76° N), with an average elevation of 2480 m. The annual average sunshine hours, temperature, and precipitation are 2588.3 h, 0 ~ 5 ℃, and 360 ~ 650 mm, respectively. Precipitation is mainly concentrated from July to September, accounting for more than 50% of the annual precipitation. The annual evaporation is 900 ~ 1000 mm, and the frost-free period is 150 ~ 190 days. The physical and chemical properties of the soil in the experimental sample plots are shown in Table 1.

Table 1 Soil physical and chemical properties of experimental sample plots

Plant sources and experimental design

The seedling cultivation experiment of A. tanguticus was conducted in 2019 at the Chinese Academy of Sciences Haidong Experimental Station, located in Ledu District, Haidong City, Qinghai Province. After one year of seedling growth, uniform and robust seedlings were excavated in late April 2020 and transplanted to the experimental field in Lanlongkou Town, Huangzhong County, Xining City, Qinghai Province. After transplantation, thorough irrigation was carried out. All samples were identified by Professor Guoying Zhou (Northwest Institute of Plateau Biology, Chinese Academy of Science). The voucher specimens were kept in the Museum of Tibetan Plateau Biology, CAS (HNWP–00018164).

A randomized block experimental design was employed, with nitrogen, phosphorus, and potassium added separately. The specific addition amounts are detailed in Table 2. All additives were applied in a single dose on April 12, 2021, and 2022. Each treatment was repeated three times. Nitrogen was applied using urea (CO(NH2)2 46%), phosphorus using calcium superphosphate (CaP2H4O8 20%), and potassium using potassium chloride (K2 O 60%). Each plot measured 10.5 m in length and 6.5 m in width, covering an area of 68.25 m2, for a total of 54 plots. The plant spacing was 0.4 m × 0.5 m, with 15 rows per plot and a total of 342 plants per plot. The layout of the experimental sample plots is shown in Fig. 1.

Table 2 Levels of nitrogen, phosphorus, and potassium additives(kg/ha)
Fig. 1
figure 1

Layout of experimental sample plots

Field maintenance

During the initial phase, frequent hand-weeding is carried out on a monthly basis due to the rapid growth of weed roots. Following the sprouting of seedlings, any plants that are affected by disease are swiftly eliminated and disposed of.

Sampling

Plant samples were collected on June 10th, August 13th, and October 7th in 2021, and on June 12th, August 13th, and October 14th in 2022, labeled as S-Green, S-Growth, S-Wilting, T-Green, T-Growth, and T-Wilting, respectively. Each year’s sampling in June, August, and October represents the greening period, growth period, and withering period of A. tanguticus, respectively. Five plants were randomly sampled from each plot, and each treatment was replicated three times. After harvesting, the roots were cleaned of soil, and the aboveground parts and roots were weighed for fresh weight. Measurements were taken of pertinent growth markers, including plant height, root length, and root diameter. Afterwards, root slices and aboveground parts were separately placed in mesh bags, air-dried in a well-ventilated environment, and then weighed for dry weight after complete drying. The samples were then ground, sieved through a 60-mesh sieve, and stored in sealed bags for later use.

Methods for the determination of alkaloids

The reference solution was prepared by weighing 0.0004 g of each standard compound (anisodamine, anisodine, scopolamine, and atropine) and dissolving them in the mobile phase. This resulted in a standard solution with a concentration of 0.4 mg/mL.

To prepare the test samples, precisely measure 2.00 g of A. tanguticus (the aboveground sections and roots were measured separately) powder and transfer it into a 150—mL conical flask. Dispense 4 mL of ammonia solution, thoroughly combine, allow to settle for a duration of 10 min, introduce 100 mL of chloroform, and accurately determine the overall mass. Subject the solution to ultrasonication for a duration of 30 min, subsequently allow it to cool down to the ambient temperature, measure its weight, compensate for any weight loss by adding chloroform, and then filter it through defatted cotton. Extract 100 mL of the liquid that has passed through a filter, remove the liquid by evaporation using a device that rotates, dissolve the remaining solid material in 5 mL of methanol, and pass the resulting solution through a 0.45 μm microfiltration membrane into a container for analysis using liquid chromatography (HPLC).

Moisture determination of test samples: Take 2 ~ 5 g of samples from each period of each year and determine the moisture content according to the moisture determination method (General Rule 0832 Second Method) at 105 °C. The results of the moisture determination for A. tanguticus samples are shown in Supplementary.

High-performance liquid chromatography (HPLC) parameters: The tropane alkaloid components were determined using a mobile phase (13:87) consisting of acetonitrile and 30 mmol/L potassium dihydrogen phosphate (containing 0.08% triethylamine) with a pH of 6.0 adjusted using phosphoric acid. The analytical column used was an Agilent 5HC-C18, with a fixed column temperature of 35 °C. The injection volume was set at 10 μl, the flow rate at 1 mL/min, and the detection wavelength at 210 nm. During the experiment, the main instruments and reagents involved are detailed in Supplementary Table 2 and Supplementary Table 3, respectively. The stability testing conducted during the experiment is shown in Supplementary Fig. 1. The content was calculated based on the peak area using the external standard method. The formula for calculating the content is as follows:

$$\text{Content}\,\%=\frac{A_{\text{sample}}\times C_{\text{standard}}\times 100\times 5}{A_{\text{standard}}\times m_{\text{sample}}\times1000\times 100\times (1-\text{Moisture}\%)}\times 100\%$$

where Cstandard is the concentration of the reference solution, in mg/mL, Asample is the peak area of the sample; msample is the weight of the sample; and Astandard is the average peak area of the reference solution.

Statistical analysis

A Data was systematically arranged utilizing Microsoft Excel 2021 (Microsoft, USA), and tables were generated. Data analysis and plotting were performed using R software (R Core Team. R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, 2021). Detailed summaries of experimental data, including agronomic traits, biomass, average values, and standard deviations of major alkaloids at different treatments and periods, were obtained using the dplyr package. ANOVA was subsequently performed using the emmeans software to comprehensively examine the interactions between treatments and times, as well as to assess their significant differences. Tukey’s multiple comparison was precisely determined using the multcomp and emmeans packages, and significant differences between different treatment combinations were displayed using letter annotations. To verify the robustness of the differences, t-tests were further conducted to determine statistical significance at P < 0.05 (*), P < 0.01 (**), and P < 0.001 (***). Subsequently, response surface analysis was conducted using the "rsm" and "rgl" programs to derive the response surface model for achieving the highest possible alkaloid yield of A. tanguticus. Ultimately, all measurements of indicators were standardized based on the ideal time for harvesting and the specific type of nutrient used. The "lm" function was used to conduct regression analysis, and the "glmnet" package was utilized to execute lasso regression. This was done to acquire the C-D production function for the alkaloid yield of A. tanguticus. The software packages utilized in the plotting procedure comprise "ggplot2" for generating bar charts, error bars, and other visualization components; "ggpubr" for incorporating significance markers and labels to ggplot2 charts; "ggsignif" for exhibiting significance markers between two groups in charts; "RColorBrewer" for selecting color schemes for graphics; and "multcompView" for visualizing multiple comparisons.

Results

Effects of macro-nutrient exogenous regulation on growth traits of A. tanguticus

The impact of nitrogen (N), phosphorus (P), and potassium (K) on the growth traits of A. tanguticus, including plant height, root length, and root diameter, revealed significant effects. Nitrogen at different levels exhibited a significant influence on plant height, root length, and root diameter, with the most pronounced effects observed during the growth period. Particularly during the T-Growing period, the N5 level significantly increased plant height, root length, and root diameter by 37.55 cm, 11.92 cm, and 3.01 cm, respectively, representing growth rates of 38.01%, 38.74%, and 40.60%. However, there were no statistically significant differences in the withering period for different nitrogen addition treatments (Table 3). Phosphorus showed a significant increase in plant height, root length, and root diameter. In the S-Growing and T-Growing periods, the P3 level significantly increased plant height by 6.97 cm and 18.09 cm, respectively, compared to CK. In the S-Greening period, the P3 level significantly increased root length by 6.9 cm, while differences in root length between phosphorus levels were not statistically significant in other periods. During the T-Greening and T-Growing periods, root diameter was significantly higher in the P3 and P4 levels compared to CK, with increases of approximately 1.63 cm and 2.84 cm, respectively (Table 3). In terms of potassium treatment, the K1 and K2 levels significantly outperformed other levels in plant height, especially during the S-Growing and T-Growing periods, where the K1 level was 24.14 cm and 26.78 cm higher than K5, respectively. For root length, the K1 and K2 levels in T-Greening significantly exceeded CK, with increases of 5.77 cm and 10.37 cm, respectively, while differences in other periods were not significant. As for root diameter, K2 was significantly higher than K5 in the S-Wilting period, and in the T-Wilting period, K1 was also significantly higher than K5. The results suggest that the K1 and K2 levels promote the growth of A. tanguticus, particularly in plant height and root diameter, showing significant effects. Overall, the impact of nutrient types on plant growth traits is significant, with nitrogen and potassium fertilizers showing significance across multiple indicators (Table 3).

Table 3 Effects of macro-nutrient exogenous regulation on plant height, root length and root diameter at different growth stages of A. tanguticus(cm)

It is noteworthy that the plant height, root length, and root diameter of A. tanguticus exhibited statistically significant differences among years, growth stages, and different treatments. Additionally, the interactions between years and nutrient addition, growth stages, and nutrient addition were statistically significant (P < 0.001) (Table 4). The interactions between plant height and root diameter and between years and nutrient addition, as well as between growth stages and nutrient addition, were not statistically significant. In addition, the impact effects of phosphorus and potassium additions on plant height and root length were also not statistically significant (Table 4).

Table 4 Statistical analysis of traits of A. tanguticus(cm)

Effects of macro-nutrient exogenous regulation on biomass accumulation of A. tanguticus

Nitrogen, phosphorus, and potassium additions all had significant impacts on the biomass accumulation of A. tanguticus. Our results indicate that under nitrogen addition, the effects varied between different nitrogen levels and growth stages but generally promoted biomass accumulation, as illustrated in Fig. 2a and 2b. Specifically, the N5 level significantly affected both root and aboveground biomass of A. tanguticus, with the highest increases observed during the T-Greening and T-Growing periods. The root biomass increased by 98.22% and 377.81%, reaching 1.98 times and 4.78 times that of CK, respectively, while the aboveground biomass increased by 2.35 times and 1.19 times that of CK. Other nitrogen levels also showed inconsistent effects between different growth stages but generally promoted biomass accumulation. The dry weight ratio of the roots was 2.20 times greater during the T-Growing phase when nitrogen was added (Fig. 2a). However, the dry weight ratio of the aboveground parts was generally somewhat lower than the control group under high nitrogen concentrations (Fig. 2b). The root-to-shoot ratio of A. tanguticus showed that low nitrogen levels (N1, N2) generally exceeded high nitrogen levels (N4, N5) (Supplementary Fig. 2a). The addition of phosphorus had a considerable impact on root biomass, with the P2 level causing a rise of 0.137 kg and 0.177 kg during the S-Wilting and T-Wilting periods, respectively. This represents an almost 35% increase in root biomass (Fig. 2c). The impact of phosphorus on root biomass was statistically significant in all growth phases, except for the period between T-Growing and T-Wilting (P < 0.01) (Fig. 2c). Meanwhile, there were no notable disparities in the dry weight of the roots. During the T-Greening period, the aboveground biomass of A. tanguticus was substantially larger at the P3 level, reaching 1.57 times the biomass of CK. Notably, the ratio of aboveground dry weight for CK (13.12%) was higher than that of the P3 level (12.85%). Additionally, the CK level was the highest during both the T-Growing and T-Wilting periods. The overall effect of phosphorus addition on the aboveground biomass of A. tanguticus was relatively weak (Fig. 2d). The root-to-shoot ratio of A. tanguticus indicated that, when phosphorus was added, lower concentrations (P1, P2) outperformed higher concentrations (P5) during the S-Wilting and T-Wilting periods (Supplementary Fig. 2b). The addition of potassium, specifically at the K1 level, had a considerable impact on the root biomass during the T-Wilting phase. It resulted in a 0.145 kg increase, which represents a 28.34% growth. During other growth stages, the differences between potassium levels were not significant. Overall, the root biomass increased by 0.040 kg to 0.103 kg under the K2 level, with growth rates ranging from 10.84% to 83.5%, and there were no significant differences in root dry weight ratio (Fig. 2e). During the T-Greening and T-Growing periods, the aboveground biomass increased by 76.64% and 29.34%, respectively, under the K2 level. Additionally, the aboveground dry weight ratio was lower under low potassium levels (K1, K2) compared to high potassium levels (K3, K4) during the S-Greening and T-Greening periods (Fig. 2f). The root-to-shoot ratio of A. tanguticus showed that the K3 level was the highest during the T-Growing and T-Wilting periods (Supplementary Fig. 2c).

Fig. 2
figure 2

Biomass and dry matter ratio of roots and aboveground parts of A. tanguticus under different nutrient additions (S vs. T = 2021 vs. 2022, Tukey’s (HSD) test indicates statistical significance marked by letter symbols (p-value < 0.05), while the T-test identifies significant differences at the levels of P < 0.05 (*), P < 0.01 (**), and P < 0.001 (***), with ‘ns’ indicating no significant difference. a, c, and e indicate the effects of N, P, and K on the root biomass and dry matter rate of A. tanguticus, respectively; b, d, and f indicate the effects of N, P, and K on the biomass and dry matter rate of the aboveground parts of A. tanguticus, respectively.)

To summarize, the addition of nitrogen had a considerable impact on the accumulation of biomass in A. tanguticus, especially in terms of root biomass. The impacts of adding phosphorus and potassium were relatively weaker, particularly in terms of aboveground biomass where the addition of phosphorus did not provide a distinct advantage (Supplementary Fig. 3d, e, and f). Additionally, root dry weight ratio and aboveground dry weight ratio under nitrogen, phosphorus, and potassium additions were higher in the greening and growing periods than in the withering period, with root dry weight ratio being lower than aboveground dry weight ratio in the withering period.

During the T-Growing stage, the addition of potassium resulted in a reduced ratio of root dry weight compared to aboveground dry weight (Fig. 2). The root-to-shoot ratio exhibited a steady trend that aligned with the aboveground dry weight ratio, as shown in Supplementary Fig. 2a, b, and c and Fig. 2b, d, and f. The root-to-shoot ratio changes indicated that the addition of nitrogen, phosphorus, and potassium reached their highest levels during the T-Wilting stage, with phosphorus having the greatest effect, followed by nitrogen and then potassium (Supplementary Fig. 3c, f). From Fig. 2 and Supplementary Fig. 3, it can also be observed that although root biomass and leaf biomass appear to be significantly influenced by potassium and nitrogen levels respectively, root-to-shoot ratio seems to be more affected by phosphorus levels (with a larger dose leading to a greater negative impact). In addition, the root and aboveground biomass, dry weight ratio, and root-to-shoot ratio of A. tanguticus showed statistical significance and significant differences between years, growth stages, nutrient types, and their interactions (P < 0.001) (Table 5).

Table 5 Statistical analysis of root and aboveground part biomass and root-to-Shoot Ratio of A. tanguticus(cm)

Effects of exogenous macronutrient regulation on the major alkaloids content of A. tanguticus roots

The content of anisodine, anisodamine, atropine, and scopolamine in the roots of A. tanguticus showed different regulatory patterns in response to the addition of nitrogen, phosphorus, and potassium. The results indicate significant variations in the impact of nitrogen addition on the alkaloid content in the roots of A. tanguticus at different growth stages. Specifically, during the S-Greening period, the content of anisodine, anisodamine, atropine, and scopolamine significantly increased by 158.77%, 152.34%, 74.30%, and 200.50%, respectively, under the N3 level. At the N4 level, anisodamine and atropine content significantly increased, reaching 1.54 times and 1.68 times that of CK. Nitrogen addition led to varying degrees of accumulation of these alkaloids (Fig. 3a, b, c, and d). During the S-Growing period, anisodine, anisodamine, and scopolamine content at N4 and N5 levels were significantly higher than CK, increasing by approximately 116.79%, 188.19%, and 89.39%, respectively. Moreover, during the T-Wilting period, scopolamine and hyoscyamine content significantly increased under the N5 level, reaching 0.26% and 0.14%, respectively, representing a 43.83% and 187.28% increase. The addition of phosphorus had various effects on the alkaloid concentration in the roots of A. tanguticus at different stages of growth. During the S-Greening period, anisodine and anisodamine content significantly increased at the P2 level, being 1.68 times and 1.62 times that of CK (Fig. 4a, b). Additionally, the content of atropine increased by approximately 31.00% at the P4 level (Fig. 4c). During the T-Growing period, anisodine and anisodamine content significantly increased by 16.48% and 34.60% at the P2 level. Nevertheless, the addition of phosphorus did not have a significant effect on the scopolamine level. In fact, the scopolamine concentration decreased compared to the control group during the S-Growing, S-Wilting, T-Greening, and S-Growing periods (Fig. 4d). Potassium addition significantly influenced the alkaloid content in the roots of A. tanguticus at different growth stages. During the S-Greening period, the K1 level significantly affected the content of anisodine, anisodamine, atropine, and scopolamine, increasing by 87.18%, 93.06%, 45.71%, and 130.76%, respectively (Fig. 5a, b, c, d). In addition, the anisodine content increased by 1.67 times at the K4 level during the S-Growing period and 1.52 times during the S-Wilting period. Anisodamine and scopolamine content at the T-Growing and T-Wilting periods showed an increasing trend under low potassium levels (K1, K2) compared to CK. During the T-Wilting period, there was a noticeable upward tendency in the levels of atropine as the potassium concentration increased. However, this trend did not reach a statistically significant level, as shown in Fig. 5c.

Fig. 3
figure 3

Effect of nitrogen addition on the content of major alkaloids of A. tanguticus roots at different stages of growth (S vs. T = 2021 vs. 2022, Tukey’s (HSD) test indicates statistical significance marked by letter symbols (p-value < 0.05), while the T-test identifies significant differences at the levels of P < 0.05 (*), P < 0.01 (**), and P < 0.001 (***), with ‘ns’ indicating no significant difference)

Fig. 4
figure 4

Effect of phosphorus addition on the content of major alkaloids of A. tanguticus roots at different stages of growth (Significance level as above)

Fig. 5
figure 5

Effect of potassium addition on the content of major alkaloids of A. tanguticus roots at different stages of growth (Significance level as above)

To summarize, the addition of nitrogen had a greater and more noticeable enhancing influence on the concentration of these primary alkaloids in the roots of A. tanguticus. This effect was followed by the addition of potassium, while the impact of the phosphorus addition was less obvious. Additionally, the content of scopolamine decreased during specific periods. The specific nutritional effects were observed as follows: anisodine, anisodamine, and scopolamine showed a pattern of N > K > P, while atropine exhibited a pattern of N > K ≈ P (Fig. 6a, b, c, d). Furthermore, atropine, anisodamine, anisodine, and scopolamine demonstrated significant statistical differences in years, growth stages, nutrient types, and their interactions (P < 0.001), including interactions between different treatments and growth stages (Fig. 3, 4, 5, and Table 6).

Fig. 6
figure 6

Major alkaloid content of A. tanguticus roots in response to different nutrients (t-tests to determine significant differences at the P < 0.05 (*), P < 0.01 (**), and P < 0.001 (***) levels, with "ns" denoting non-significant differences)

Table 6 Statistical analysis of the main alkaloid contents of A. tanguticus roots(cm)

Effect of macro-nutrient exogenous regulation on the alkaloid content in A. tanguticus aboveground parts

The content of anisodine, anisodamine, atropine, and scopolamine in the aboveground parts of A. tanguticus showed significant regulatory effects under the addition of nitrogen, phosphorus, and potassium nutrients. Our research results revealed that nitrogen addition generally demonstrated a strong promoting effect on A. tanguticus during the greening and growing periods. The content of both anisodine and scopolamine increased significantly during the S-Greening and T-Greening periods, with anisodine increasing by 36.66% and 32.92% at the N3 level and scopolamine increasing by 30.35% and 79.01% at the N4 level, respectively (Fig. 7a, b). The concentration of atropine significantly increased at N4 and N5 levels, especially during the T-Greening period, with a notable rise of 191.45% at the N4 level (Fig. 7c). Scopolamine content significantly increased by 51.95% at the N3 level during the S-Greening period, 55.49% at the N4 level during the T-Greening period, and 233.61% at the N5 level during the S-Growing period (Fig. 7d). Phosphorus addition also showed significant effects on the aboveground content of anisodine, anisodamine, atropine, and scopolamine in A. tanguticus. Specifically, during the S-Greening period, the P2 level significantly increased the content of anisodine and anisodamine by 73.36% and 56.64%, respectively. During the T-Greening period, the P1 level significantly increased the content of anisodine by 52.62% and anisodamine by 35.36% (Fig. 8a, b). Notably, atropine content exhibited a substantial increase at the P3 level during the S-Greening period and the P5 level during the T-Greening period, with increases of 518.66% and 311.73%, respectively. Different phosphorus levels promoted the generation of aboveground atropine (Fig. 8c). Additionally, except during the S-Greening period, the overall difference in scopolamine was not significant, and the scopolamine content showed a decreasing trend with the increase in phosphorus concentration (Fig. 8d). Potassium addition led to an increase in the content of major alkaloids in the aboveground parts of A. tanguticus during the greening period. During the S-Greening period, the K1 level significantly increased the content of anisodine, anisodamine, atropine, and scopolamine by 60.65%, 54.28%, 155.66%, and 62.96%, respectively, as depicted in Fig. 9s a, b, c, and d. Significantly, atropine had the most substantial rise, reaching a remarkable 200.89% at the K1 level throughout the T-Greening period (Fig. 9c). Additionally, anisodine and scopolamine content increased at the K5 level during the S-Growing period by 59.42% and 50.27%, respectively, and at K4 level during the T-Growing period by 78.60% and 170.55%, respectively (Fig. 9a, d).

Fig. 7
figure 7

Effect of nitrogen addition on the content of major alkaloids in the aboveground parts of A. tanguticus roots at different stages of growth (S vs. T = 2021 vs 2022, Tukey’s (HSD) test indicates statistical significance marked by letter symbols (p-value < 0.05), while the T-test identifies significant differences at the levels of P < 0.05 (*), P < 0.01 (**), and P < 0.001 (***), with ‘ns’ indicating no significant difference)

Fig. 8
figure 8

Effect of phosphorus addition on the content of major alkaloids in the aboveground parts of A. tanguticus roots at different stages of growth (Significance level as above)

Fig. 9
figure 9

Effect of potassium addition on the content of major alkaloids in the aboveground parts of A. tanguticus roots at different stages of growth (Significance level as above)

To summarize, nitrogen, phosphorus, and potassium additions had varying degrees of influence on the content of major alkaloids in the aboveground parts of A. tanguticus. The specific effects were as follows: Anisodine exhibited a pattern of K > P ≈ N; the impact of nitrogen, phosphorus, and potassium additions on aboveground anisodamine content was similar; atropine exhibited a pattern of P > N ≈ K; and scopolamine exhibited a pattern of K ≈ N > P (Fig. 10a, b, c, and d). Moreover, there were statistically significant differences in years, different nutrient additions, growth stages, and their interactions (P < 0.001) (Fig. 7, 8, and 9; Table 7).

Fig. 10
figure 10

Major alkaloid contents of A. tanguticus aboveground parts in response to different nutrients (t-tests were used to determine significant differences at the P < 0.05 (*), P < 0.01 (**), and P < 0.001 (***) levels, with "ns" denoting no significant differences)

Table 7 Statistical analysis of the main alkaloid contents of aboveground parts of A. tanguticus (cm)

Seasonal variation in the exogenous regulation of macro-nutrients on the major alkaloids of A. tanguticus

The alkaloid content in the roots of A. tanguticus exhibits a certain seasonal variation with its growth. Specifically, the anisodine content significantly decreased during the 2021 growing season and accumulated significantly in 2022 (Fig. 11a). Under nitrogen, phosphorus, and potassium additions, the anisodine content during S-Greening was significantly higher than during S-Wilting. Additionally, the addition of nitrogen and phosphorus resulted in a significant increase in anisodine content from S-Greening to S-Wilting, as shown in Fig. 3a and 4a. However, the addition of potassium did not show any statistically significant effect, as depicted in Fig. 5a. The anisodamine content significantly decreased during the 2021 growing season but remained relatively stable during the 2022 growing season (Fig. 11b). Under the conditions of nitrogen, phosphorus, and potassium additions, the anisodamine content during S-Greening was notably higher than during S-Growing and S-Wilting. Furthermore, the anisodamine content during S-Growing was much higher than during S-Wilting, as shown in Fig. 3b, 4b, and 5b. The atropine content significantly decreased in both years during the growing season, with no significant difference between T-Growing and T-Wilting (Fig. 11c). Under nitrogen and potassium additions, except for no significant difference in atropine content between T-Growing and T-Wilting, there was a significant difference in other growth stages (Fig. 3c, 5c). Under phosphorus addition, atropine content during S-Greening was significantly higher than during S-Growing and S-Wilting, with no significant difference between the other growth stages (Fig. 4c). The scopolamine content displayed a trend of increasing and then decreasing during the two years of growth (Fig. 11d). Under nitrogen, phosphorus, and potassium additions, the scopolamine content during S-Greening and S-Growing was significantly different from S-Wilting, and T-Greening was significantly different from T-Growing, as shown in Fig. 3d, Fig. 4d, and Fig. 5d.

Fig. 11
figure 11

Seasonal effects of different nutrients on the content of major alkaloids of A. tanguticus (t-tests were used to determine significant differences at the P < 0.05 (*), P < 0.01 (**), and P < 0.001 (***) levels, with "ns" denoting no significant differences, a, b, c, and d represent major alkaloid content in roots, e, f, g, and h represent major alkaloid content in aboveground parts)

Similarly, the aboveground alkaloid content of A. tanguticus also shows some seasonal variation. Particularly, the content of anisodine, anisodamine, atropine, and scopolamine significantly decreases with the growth season, reaching its highest during the greening period (Fig. 11e-h). Under nitrogen, phosphorus, and potassium nutrient additions, the aboveground content of anisodine and scopolamine was significantly different between each growth stage (Fig. 7a, d; Fig. 8a, d; Fig. 9a, d), while anisodamine and atropine, except for no significant difference between T-Growing and T-Wilting, were significantly different between other growth stages, with atropine also not being significant between S-Growing and S-Wilting (Fig. 7b, c; Fig. 8b, c; Fig. 9b, c).

Furthermore, we found that nutrient additions in the greening period of A. tanguticus coordinate and regulate the alkaloid content between its aboveground and root parts. During the S-Greening period, the concentration of anisodamine and scopolamine in the aboveground portion was higher than in the roots (Fig. 11b, d, f, and h). Phosphorus addition also increased the content of anisodine aboveground compared to the roots during S-Greening, as seen in Fig. 4a and 8a. Additionally, during T-Greening, phosphorus addition increased the content of anisodine, anisodamine, atropine, and scopolamine aboveground compared to the roots, and the total content of these four alkaloids aboveground was 0.65 g/plant, while underground was 0.39 g/plant. Meanwhile, potassium addition also showed a trend of increasing the content of anisodine, anisodamine, and scopolamine aboveground compared to the roots (Fig. 5a, b, and d; Fig. 9a, b, and d). Nitrogen addition only resulted in a higher scopolamine content aboveground compared to the roots (Fig. 3d, 7d). This not only reveals the dynamic changes in alkaloid content in different parts of A. tanguticus but also highlights the regulatory role of nitrogen, phosphorus, and potassium additions.

Exogenous regulation of macro-nutrients affects the accumulation and yield of major alkaloids in A. tanguticus

The analysis of alkaloid accumulation per plant and alkaloid yield per unit area in A. tanguticus, as depicted in Fig. 12, demonstrated a progressive increase in alkaloid accumulation throughout the growth season when nitrogen, phosphorus, and potassium were added. The highest accumulation was observed with the addition of nitrogen. During T-Growing, the alkaloid accumulation per plant reached 4.106 g/plant at N3 level, and the unit area alkaloid yield accumulation reached 205.79 kg/ha (Fig. 12a), which was 4.59 times, 0.88 times, and 1.33 times higher than CK, phosphorus addition, and potassium addition, respectively. The root accounted for 84.24% of the total accumulation. The optimal unit area alkaloid yield under phosphorus and potassium addition during S-Wilting at P2 and K1 levels reached 142.18 kg/ha and 146.91 kg/ha, respectively, with the root accounting for 97% to 99% of the accumulation, as shown in Fig. 12B and 12C. Nevertheless, the concentration of alkaloids per unit area in the aboveground portion exhibited a declining pattern during the growth season, particularly in the second year. During the greening period, the alkaloid accumulation per plant in the aboveground part under nitrogen, phosphorus, and potassium additions was 1.44 g/plant, 0.85 g/plant, and 1.22 g/plant, respectively (Fig. 12a, b, and c). The unit area alkaloid yields reached 72.36 kg/ha, 42.48 kg/ha, and 61.21 kg/ha, respectively, decreasing by 55.19%, 53.10%, and 43.84% during the growing season, as shown in Fig. 12A, B, and C.

Fig. 12
figure 12

Accumulation and yield of A. tanguticus alkaloids (a, b, and c represent the accumulation of the major alkaloid content of A. tanguticus per unit area under the addition of nitrogen, phosphorus, and potassium, respectively. I represents the effect of nutrient type on the accumulation of major alkaloid content in A. tanguticus. A, B, and C represent the accumulation of major alkaloid content per unit area of A. tanguticus under the addition of nitrogen, phosphorus, and potassium, respectively. II represents the effect of nutrient type on the accumulation of major alkaloid content per unit area of A. tanguticus)

In addition, the analysis of nutrient type indicated that nitrogen had a greater impact on alkaloid accumulation per plant and per unit area compared to potassium and phosphorus, as shown in Fig. 12I and II. Nitrogen had a promoting effect on the accumulation and yield of alkaloids, with the highest accumulation observed in the root and aboveground part of anisodine under nitrogen addition, reaching 57.82 kg/ha (1.154 g/plant) and 16.23 kg/ha (0.324 g/plant), respectively, which was the highest proportion among the four alkaloids. Following the figures. presented (12a, A), it can be shown that atropine and scopolamine were the next most abundant, while anisodamine had the least proportion. It is noteworthy that during the greening period, the effect of phosphorus addition on atropine and anisodamine in the aboveground part was superior to nitrogen and potassium, with atropine reaching 8.65 kg/ha (0.173 g/plant) in T-Greening, an increase of 6.60% and 38.96% compared to nitrogen and potassium, respectively. In S-Greening, the aboveground part of anisodamine reached 4.53 kg/ha (0.090 g/plant), an increase of 13.38% and 79.51% compared to nitrogen and potassium, respectively (Fig. 12A, B, C, I, II).

Optimal analysis based on response surface and c-d production function

The rsm function was utilized to establish a response surface mode: \({\text{Alkaloid Yiled = Period}}+ \text{SO} ({\text{N}}{, }{\text{P}}{, }{\text{K}})\). The model comprises the response variable Alkaloid Yiled and the independent variables Period and SO(N, P, K), with SO representing a quadratic polynomial model incorporating linear, quadratic, and interaction terms. The results demonstrate that the coefficients of the independent variables exhibit statistical significance, indicating their impact on the response variable. The model’s coefficient of determination R2 is 0.6139, with p < 0.001, indicating that the model explains 61.39% of the variability in the response variable and is overall significant (Supplementary Table 4). In addition, the "lack of fit" is not significant (p-value 0.9558), indicating a good fit to the data. Based on the model results, we obtained the final equation as follows:

$$\begin{array}{c}\text{alkaloid yiled}=33.89+12.09\times S\_\text{Growing}+4.14\times S\_\text{Wilting}+23.56\times T\_\text{Greening}+\\ 46.10\times T\_\text{Growning}+55.41\times T\_\text{Wilting}+0.31\times N+0.03\times P+0.36\times\\ K\text{-0.0005}\times N^2\text{-0.00003}\times P^2\text{-0.002}\times K^2\end{array}$$

Based on the given equation, the coefficient of the independent variable Period’indicates that various growth stages have distinct impacts on alkaloid yield. Harvesting and nutrient input during the T-Growing (46.10) and T-Wilting (55.41) periods should be emphasized, as they have the most significant positive impact on alkaloid yield. The coefficients of the independent variables N, P, and K, and their quadratic terms suggest that adjusting the amounts of different nutrients can optimize alkaloid yield. Specifically, increasing nitrogen and potassium in moderate amounts may have a positive effect on alkaloid yield, while adding phosphorus in a moderate range could also positively impact yield. Additionally, the presence of quadratic terms in the equation indicates that once nutrient concentrations surpass a specific threshold, the production of alkaloids may decline. Therefore, it is crucial to refrain from excessive fertilization and maintain nutrient levels within a moderate range in order to optimize alkaloid production.

Moreover, the equation’s coefficients reveal that the T-Wilting period has the greatest influence on alkaloid yield, as indicated by a coefficient of 55.41, which is significantly greater than coefficients associated with other growth periods. Thus, it can be inferred that the T-Wilting period is the optimal harvesting time for alkaloid yield. According to the model results, the parameter estimate for N is 0.31, which is substantially smaller than the parameter estimate for K (0.36). Although the effect of N is relatively smaller, it is statistically more significant. This is evident from the smaller standard error (N: 0.09, K: 0.10), larger T-value (N: 3.61, K: 2.65), and smaller p-value (N: 0.000486, K: 0.009435). These results highlight the more significant and reliable influence of N in the model (Supplementary Table 4, Supplementary Fig. 4).

The model suggests that the ideal amounts of nutrient input are as follows: N = 324.11 kg/ha, P = 0 kg/ha, K = 101.44 kg/ha. According to this information, the projected highest possible amount of alkaloid produced is 157.78 kg per hectare. This forecast can be utilized to ascertain the optimal time for harvesting, optimize the application of nutrients, and implement other management strategies to increase crop productivity. Nevertheless, it is important to take caution when interpreting this prediction, as the actual outcomes may be influenced by unaccounted factors.

We have chosen the most suitable time for harvesting, known as T-Wilting and have normalized all the measured indicators by adding the appropriate amount of nitrogen (N). This is done in preparation for the "three-stage modeling" process. Initially, linear regression was utilized to analyze the correlation between all factors and alkaloid yield, resulting in coefficient estimates (R2 = 0.98, F = 104; p < 0.01). Following that, LASSO regression was performed, incorporating L1 regularization to find crucial factors that have a large impact on alkaloid yield while also reducing the coefficients of less relevant factors to zero. In this case, the coefficients for plant height, root diameter, and aboveground fraction of anisodine were reduced to zero and subsequently removed from the analysis (Supplementary Fig. 5). Linear regression was conducted once more, this time utilizing the variables chosen via LASSO regression (F = 121.5, F = 153.4; p < 0.01). The results identified several significant indicators associated with alkaloid yield, including root dry weight, root anisodine, root scopolamine, root atropine, aboveground scopolamine, and aboveground atropine (Supplementary Table 5). We utilized the aforementioned indicators in the context of the Cobb–Douglas production function, a widely employed economic model for assessing the influence of input components on output. Additionally, it is utilized to examine the impact of agricultural practices on crop output, evaluate the effectiveness of agricultural production, investigate the integration of production elements, and develop agricultural policies [62, 63]. Regression was performed with the obtained indicators, and in the parameter estimates of the regression model (R2 = 0.95, F = 121.5, p < 0.01), we assessed the impact of different indicators on the alkaloid yield of A. tanguticus. The intercept term coefficient was close to zero, and positive elasticity coefficients indicated that an increase in the respective indicator would lead to an increase in alkaloid yield. The Cobb–Douglas production function obtained is as follows:

$$\begin{array}{cc} \text{alkaloid yiled}_{\mathrm{T}\_\text{wilting}\_\mathrm{N}}=root\,dry\,biomass^{0.88}\bullet root\,Ani.^{0.19}\bullet root\,Sco.^{0.27}\bullet\\ root\,Atr.^{0.23}\bullet above\,SCo.^{0.14}\bullet above\,Atr.^{0.1}\end{array}$$

This function elucidates the correlations among various production input parameters, namely root dry weight, root anisodine, root scopolamine, root atropine, aboveground scopolamine, aboveground atropine, and the resulting alkaloid yield. The production factor coefficients illustrate their influence on the alkaloid yield. For instance, a coefficient of 0.88 signifies the impact of an augmentation in root biomass on the production of alkaloids. A 1% increase in root biomass will result in a 0.88% increase in alkaloid yield, indicating a significant positive correlation between root biomass and alkaloid yield.

Discussion

Impact of nitrogen addition on the growth and quality of A. tanguticus

In our study, nitrogen addition exhibited a significant increasing effect on the plant height, root length, and root diameter of A. tanguticus. The impact was particularly pronounced at high nitrogen levels during the growing period, indicating a responsive adjustment of plant height and root growth to nitrogen absorption. Nitrogen plays a key role in plants and regulates plant growth and development mainly by affecting protein and nucleic acid synthesis [64, 65]. Different nitrogen levels significantly affect the allocation ratio of nitrogen in non-photosynthetic and photosynthetic systems, thereby influencing plant growth and yield [66, 67]. Moreover, various nitrogen levels promoted the accumulation of biomass in different growth stages of A. tanguticus. For instance, at the N5 level (375 kg/ha) during T-Greening, the aboveground biomass increased by 1.4 times, and the root biomass during T-Growing at the N5 level increased by 3.78 times, reaching the maximum root dry matter ratio. These suggest that a sufficient nitrogen supply promotes early nutritional growth and accelerates the accumulation of root biomass during the vigorous growth period. This finding aligns with previous studies on nitrogen-sensitive medicinal plants [68,69,70]. Simultaneously, the response of the root-to-shoot ratio in A. tanguticus to nitrogen levels showed a trend of being higher at low concentrations than at high concentrations. This may align with the nitrogen response strategy observed in some plants, such as Panax notoginseng and Globe artichoke, where low nitrogen prompts a foraging strategy in roots, while high nitrogen invokes a survival strategy by inhibiting root growth [71,72,73]. Under high nitrogen conditions, plants sacrifice root biomass to allocate more biomass aboveground, leading to a promotion of aboveground biomass accumulation with less impact on belowground biomass [74,75,76]. However, it is crucial to note that excessive nitrogen may result in a relative dilution of active plant compounds, adversely affecting quality [69, 77]. Our study found that varying nitrogen levels enhanced the accumulation of major alkaloids in both the root and aboveground parts of A. tanguticus, with the accumulation effect being lower at high nitrogen levels than at moderate levels. This suggests that excessive nitrogen addition weakens the positive regulatory effect of nitrogen on alkaloid accumulation in A. tanguticus. While high nitrogen promotes biomass accumulation, it diminishes alkaloid accumulation. This phenomenon has been observed in other medicinal plants, including Tripterygium wilfordii, Panax notoginseng, ginseng and Panax quinquefolius [36, 71, 78, 79]. In addition, during the greening period, nitrogen levels (225–300 kg/ha) were more favorable for the accumulation of root alkaloids, while the N4 level (300 kg/ha) was more conducive to the increase in aboveground alkaloid content. This might be attributed to roots being the primary site for the biosynthesis of tropane alkaloids, and with plant growth, medium to high nitrogen levels (300 kg/ha) promote the transfer of alkaloids from roots to tender aboveground tissue [19, 80]. This further emphasizes the crucial regulatory role of nitrogen in the metabolism of tropane alkaloids in A. tanguticus, revealing the synergistic action of roots and aboveground parts in alkaloid synthesis and transformation. It is noteworthy that the highest accumulation of alkaloid yield per unit area in A. tanguticus was achieved at the N level of T-Growing (225 kg/ha), reaching 205.79 kg/ha, an increase of 3.6 times compared to the control (CK). Importantly, at this level, root accumulation accounted for 84.24%, and aboveground accumulation accounted for 15.76%. This indicates that nitrogen addition not only promotes the accumulation of alkaloids in the roots of A. tanguticus but also enhances the accumulation of alkaloids in its aboveground parts. Therefore, during the harvesting of A. tanguticus, consideration should also be given to the medicinal value of its aboveground parts to ensure the optimal utilization of resources.

Impact of phosphorus addition on the growth and quality of A. tanguticus

Adequate phosphorus supply contributes to maintaining normal plant growth and promoting the development of both roots and aboveground parts [81, 82]. In this study, moderate phosphorus addition (900 kg/ha) significantly increased the plant height, root length, and root diameter of A. tanguticus. This enhancement is attributed to phosphorus being a crucial component in ATP synthesis, with ATP being the primary driving force for energy transfer in plants [83]. The moderate phosphorus level likely provided sufficient phosphorus, prompting more efficient photosynthesis and energy production, leading to a significant improvement in growth traits [39]. On the other hand, low phosphorus addition (600 kg/ha or 750 kg/ha) significantly increased the root biomass of A. tanguticus. Meanwhile, the root-to-shoot ratio was higher at low concentrations (600 kg/ha or 750 kg/ha) than at high concentrations (1200 kg/ha). This reflects the plant’s physiological adaptation to phosphorus demands. Under low phosphorus conditions, increasing root biomass enhances the absorption of limited phosphorus resources, representing an adaptive strategy in plants [47, 84, 85]. However, the impact of different phosphorus levels on the aboveground biomass of A. tanguticus was relatively weak. This may be due to the plant’s relatively low demand for phosphorus in aboveground parts or the influence of other environmental factors, resulting in less pronounced effects of phosphorus on aboveground biomass. In summary, the results of this study reveal the regulatory role of phosphorus in the growth and biomass allocation of A. tanguticus. Phosphorus has also been found to play a crucial role in the healthy development of roots and biomass accumulation in medicinal plants such as Lupinus angustifolius, Dendrobium officinale, and Bupleurum chinense [45, 49, 52]. Previous studies have demonstrated that appropriate phosphorus addition helps improve the quality of medicinal plants while ensuring economic yield [86, 87]. However, in our study, different levels of phosphorus addition did not significantly affect the content of major alkaloids, including anisodine, atropine, and scopolamine, in the roots of A. tanguticus. It is noteworthy that, with increasing phosphorus content, there was a decreasing trend in the content of these alkaloids. In contrast, low phosphorus significantly increased the content of major alkaloids in the aboveground parts of A. tanguticus, with atropine showing a particularly prominent increase, approximately six times higher than the control (CK). These results indicate that low-concentration phosphorus addition is more effective in promoting the accumulation of alkaloids in the aboveground parts of A. tanguticus. This phenomenon has also been observed in Bupleurum chinense, Dendrobium officinale, and Artemisia annua [52, 88], where low phosphorus enhances the production of certain secondary metabolites in plants. This is attributed to the complex regulation of phosphorus entry into the plant body through gene expression networks, with low phosphorus stress upregulating the genes of key enzymes in the biosynthesis of secondary metabolite [88, 89]. Additionally, genes responding to low phosphorus stress and phosphoric acid transport proteins in plants increase with phosphorus deficiency [90, 91]. Therefore, phosphorus management in the cultivation of A. tanguticus requires careful application. Adding a certain amount of phosphorus within a moderate range can enhance both yield and quality, avoiding the negative impacts associated with excessive phosphorus.

Impact of potassium addition on the growth and quality of A. tanguticus

Adequate potassium supply enhances a plant’s water regulation capacity, photosynthetic efficiency, and resistance to environmental stress, thereby increasing the biomass of medicinal plants and boosting the accumulation of medicinal compounds [92, 93]. In this study, low concentrations of potassium (75 kg/ha or 112.5 kg/ha) promoted the growth of A. tanguticus, particularly in plant height during the growing season, root length in the greening period, and root diameter during the wilting period, showing significant effects. Similarly, low potassium levels increased both root and aboveground biomass, indicating that low-concentration potassium addition provided the necessary nutrients for the growth of A. tanguticus, promoting development during critical growth stages. Previous research has shown that adequate potassium also promotes the growth and biomass accumulation of medicinal plants such as Rheum tanguticum, Salvia miltiorrhiza, and Fritillaria thunbergii [56, 93, 94]. However, high-concentration potassium addition inhibited the growth and biomass accumulation of A. tanguticus. This inhibition may be due to the competition and imbalance among mineral elements, such as calcium ions and magnesium ions, caused by high concentrations of potassium [95,96,97]. Additionally, high concentrations of potassium may lead to an osmotic regulation imbalance, increasing the difference in osmotic pressure between intracellular and extracellular environments and affecting water absorption and transport [98,99,100]. Therefore, moderate potassium addition has a promoting effect on the growth and biomass accumulation of the medicinal plant A. tanguticus. Furthermore, in our study, the addition of 75 kg/ha potassium significantly increased the content of anisodine, atropine, and scopolamine in the roots of A. tanguticus during the regreening period. Simultaneously, it increased the content of atropine in the aboveground parts. Conversely, high potassium addition had an inhibitory effect on the accumulation of alkaloids in A. tanguticus. This could be attributed to the crucial role of potassium in the synthesis of tropane alkaloids. Previous studies have found that Fe2+ significantly activates the key enzyme involved in tropane alkaloid synthesis—hyoscyamine 6β-hydroxylase—while divalent cations such as Mn2+ and Co2+ strongly inhibit this enzyme [101, 102]. Moreover, lower concentrations of Ca2+ can decrease the synthesis of scopolamine [103]. Potassium, existing in the ionic state (K+), plays a role in maintaining ion balance within cells, and it may indirectly influence the synthesis of key enzymes in the tropane alkaloid synthesis process through competition, absorption, transportation, and antagonistic effects among these ions [26, 54, 55]. Recent research also indicates that potassium addition increases intermediate products of the tricarboxylic acid (TCA) cycle and enhances mobile nitrogen reservoirs, such as putrescine and asparagine (Asn), an amino acid [104, 105]. Interestingly, putrescine serves as a precursor for tropane alkaloid synthesis [22]. Therefore, maintaining an appropriate level of potassium is crucial for the physiological functions and quality of medicinal components in A. tanguticus. It is noteworthy that, in this study, potassium addition led to the maximum unit area alkaloid yield of 146.91 kg/ha during the wilting period at a low potassium level (75 kg/ha), where root accumulation accounted for 97% to 99%.

To summarize, the addition of nitrogen, phosphorus, and potassium regulates the growth, development, and medicinal quality formation of the medicinal plant A. tanguticus to varying degrees, with the order of effectiveness being nitrogen > potassium > phosphorus. Response surface analysis incorporating all nutrient additions and their interactions with alkaloid yield across different growth stages of A. tanguticus yielded consistent results. Practical implications suggest that increasing nitrogen and potassium within appropriate limits may have a positive impact on alkaloid yield, while moderate phosphorus addition could positively influence yield. This is further confirmed by Fig. 6a, b, c, and d, Fig. 10a, b, c, and d. Moreover, based on our response surface results, the wilting period in the third year after transplantation is identified as the optimal harvest period for this experiment. Alkaloid accumulation correlates with the accumulation of A. tanguticus root biomass, while aboveground parts are shed as the growing season progresses (Fig. 11). Subsequently, in the analysis of the Douglas production function, the optimal harvest period T-Wilting, with optimal nutrient N, indicates that, for cultivating A. tanguticus in this region, attention should be focused on the third wilting period and the accumulation of root biomass, followed by the accumulation of scopolamine and atropine content in the roots.

Conclusions

Nutrient addition significantly influences the growth and alkaloid content of A. tanguticus. Specifically, high nitrogen (375 kg/ha) and low potassium (75, 112.5 kg/ha) significantly promote multiple growth indicators, with high nitrogen particularly demonstrating a pronounced stimulatory effect on the overall biomass of A. tanguticus. In contrast, the impact of phosphorus is relatively weaker, especially regarding its insignificant effect on aboveground biomass. Concerning alkaloid content, moderate nitrogen (225 kg/ha) shows a significant enhancement, followed by low potassium (75 kg/ha), while phosphorus has a minor impact on the increase in alkaloid content. It is noteworthy that phosphorus addition, at specific stages, exhibits a decreasing trend in the content of scopolamine in the roots, concurrently with an increase in phosphorus concentration leading to a decline in aboveground scopolamine content. Furthermore, during the regreening period of A. tanguticus, nitrogen (300 kg/ha), phosphorus (900 kg/ha), and potassium (75 kg/ha) additions significantly increase the content of aboveground atropine, with the order of the enhancing effect being P > K > N, and it exhibits the highest increment compared to other alkaloids. The maximum alkaloid accumulation per unit area for A. tanguticus follows the order of N > K > P, with nitrogen addition at the middle nitrogen level (225 kg/ha) during the T-Growing period reaching 205.79 kg/ha, potassium addition at the low potassium level (75 kg/ha) during the S-Wilting period reaching 146.91 kg/ha, and phosphorus addition at the low phosphorus level (750 kg/ha) during the S-Wilting period reaching 142.18 kg/ha. Response surface model analysis indicates that the T-Wilting period is the optimal harvesting time, with the optimal nutrient combination being N = 324.11 kg/ha, P = 0 kg/ha, K = 101.44 kg/ha, and the predicted maximum economically viable total alkaloid yield being 157.78 kg/ha. Results from the Douglas production function reveal that, when maximizing the total alkaloid production in the region, focusing on root biomass, scopolamine, and atropine content in the roots is crucial. In conclusion, by judiciously selecting and regulating the amounts of different nutrient additions, optimal accumulation of alkaloid yield per unit area can be achieved, providing a scientific basis for the efficient cultivation of A. tanguticus.