For family visitors it mirrors the residence period of the person you are visiting, not a fixed number of years. Other private-affairs cases have their own caps: generally 1 year, or 3 years for foreign Chinese aged 60+ who bought property in China.
Nationwide (all cities)
Family visitors
The NIA service guide says that for private-affairs residence documents, family visitors (spouse, parents, parents of a spouse, children under 18) may be issued a residence period consistent with the residence period in China of the person being visited. It is not a fixed number of years — it follows the other person's residence document.
Other private-affairs cases
Other private-affairs cases have explicit caps. People handling other private affairs may be issued up to 1 year; foreign Chinese aged 60 or over who have bought property in China up to 3 years; and foreigners receiving medical treatment or services in China up to 1 year.
Documents that fix the term
The documents follow the same split. A person who entered on an S1 visa submits a letter from the person being visited stating the family relationship and that person's residence document; someone who entered on another visa class also submits proof of the family relationship. Relationship documents issued abroad must be authenticated by the Chinese embassy or consulate in that country.