Ecological differentiation and variety degeneration of maize under heavy metal contamination