One is to click after the last word on the previous page of the text and insert a section break (not a page break).
Second, double-click the footer to enter the editing state. When you see "Same as the previous section", cancel it.
Third, when inserting a page number, you must select the page number and apply it to this section. Never choose the default "Apply whole article".