Hi @SHUO .H ,
As the script editor web part is not supported in modern SharePoint.We can build an SPFx Extension (application customizer) to drop CSS to mordern page.
Here is the issue similar,Please refer to the following link:
https://sharepoint.stackexchange.com/questions/230061/sharepoint-365-add-custom-css-to-modern-pages
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.