Calibre’s editor and the KindleUnpack plugin both attempt to produce an OPF that meets EPUB standards from Kindle formats that are actually structured much differently.
For what Amazon actually uses see
https://wiki.mobileread.com/wiki/MOBI#EXTH_Header