I’m going to China on January 1, and my visa expires on January 10. Can I still stay for 30 days?

Yes, you can. As long as you enter China before the expiration date, you can stay for 30 or more days as specified on your visa. The duration of stay starts from the day you enter China.