And those written works were not accurate characterizations of what Imperial China was like.
Much less accurate characterizations of "East Asia" as somehow being a single coherent bloc where all the cultures somehow work the same, an idea that is
orientalist garbage; reality was never like that.
Do not make the mistake of comparing horrible
fictional societies to
real societies, purely on the grounds that the fictional society resembles an inaccurate picture of the real society that has been assembled from
other fiction.
Imperial China is not equivalent to, say, the Klingons. It is a real place that really existed. It is a place that had real impact and whose descendants are real people today that deal with real prejudices caused by foreigners who believe
fictions about history.