At the end of the third page (and at the end of the penultimate page): Insert the-separator and select "section break" as the next page.
Step 2: Set the header and footer respectively, as follows:
On page 4 (that is, section 2, page 1), enter the header (should it be entered? ), you can use the Link to Previous icon. Click Cancel, then click the "Header and Footer Switch" icon to switch to the footer, and still cancel "Link to Previous"; Click "Show Next Item" (that is, the icon to the left of "Close"), switch to the third section (penultimate page), repeat the above steps, and cancel "Link to the previous item" (note that the header and footer should be cancelled separately).
At this time, the header and footer will not have the problem of front and back links. Go back to Section 2 (as long as it is not the first three pages and the last three pages) and set the header and footer you need without affecting Section 1 and Section 3 (that is, the first three pages and the last three pages).
If the header and footer of section 1 and section 3 already have contents, just delete them separately, without affecting section 2. (intermediate content).
I hope I can help you. I'm not sure. Please ask again.