It's a very common scene in novels where a character travels to another world and is forced to become a tool or ornament for a character, but she eventually finds out what she really wants. In this story, the female protagonist may feel very uncomfortable because she has never experienced such a work and lifestyle. But she might also gradually adapt and find herself interested in this job because it might allow her to have a deeper understanding of the court culture and lay the foundation for her future career development. As for the plot of sleeping with the emperor, it was usually a romantic plot in novels that could be used to strengthen the plot and character development. Although this might not be realistic in real life, it was a key point in the novel that attracted people. No matter how important the story was, it was important for the readers to feel the inner conflicts and emotional reactions of the characters so as to better portray their personalities and backgrounds.