Xie Yuner went mountain climbing with her best friend, just to pass the time, and the two of them fell off a cliff.
When she met her newly cleared name's archenemy, the white-moonlight third female lead, she learned that not only had she transmigrated into a book, but her best friend had too.
In the book, the two of them were mortal enemies. Her best friend Mei Xiyao, the white moonlight, was fought over by the second male lead and the villainous crown prince, then died beneath a horse's hooves. Xie Yuner was buried alive for indirectly causing the white moonlight's death.
After they died, the female lead appeared and helped the second male lead overcome his emotional turmoil. She became the unattainable love of his life, then married the male lead after he became emperor, and lived happily ever after in shameless bliss.
The logic doesn't make sense, I have no idea what I'm writing.