The coronavirus disease 2019 (COVID-19), a dual threat to public physical and mental health, prompted an investigation into the psychological well-being of residents in low- to medium-risk areas of China during the initial stages of the pandemic. We administered WeChat-based questionnaire surveys and employed chi-square tests and multiple logistic regression to analyze correlations between residents’ age, gender, education, symptoms, COVID-19 close contact history, information sources, and anxiety, depression, and attitudes toward lockdown measures. We received 10,433 valid questionnaires, revealing 26% anxiety and 19.5% depression. Support for lockdown measures reached 98.2%. Factors such as female gender, self-diagnosed pneumonia symptoms, close contact history, and higher education levels increased anxiety risk. Having a doctorate posed a severe anxiety risk, at 4.5 times (P = .019, 95% CI 1.29–15.73). Older age acted as a protective factor, reducing severe anxiety risk to 0.98 and 0.22 times (P < .001, 95% CI 0.14–0.34). Females with a master degree or below and those receiving COVID-19 information from multiple channels faced higher depression risk. Pneumonia symptoms were a risk for all anxiety and depression degrees. Attitudes toward lockdown measures had no significant impact on psychological status, nor did any of the analyzed factors affect residents’ overall attitude toward lockdown. Our findings underscore the need for increased psychological counseling, particularly for young females with lower educational backgrounds or self-suspected infection symptoms, to mitigate mild to moderate anxiety and depression in future epidemics or pandemics. The public, especially those of working age with doctorates or higher education, bears the highest risk of severe anxiety. Lockdown measures enjoy strong support in low- to medium-risk areas of China.