You can set the time of automatic shutdown, and you can also set two reminding methods, namely, only reminding not to shut down and automatic shutdown.
At the set rest time, the health assistant will pop up a shutdown reminder in the lower right corner of the desktop:
If automatic shutdown is set, a reminder will pop up after 30 seconds to help you shut down automatically. You can click "Don't turn off your phone now" to give up this reminder.