What is the pain in the neck and back tendons?

Patients often have the phenomenon that after waking up from a nap, they find that the entire neck, with the tendons in the back, is very painful and they cannot move their necks, what is going on? It should be a type of cervical spondylosis in medicine, called soft tissue cervical spondylosis. The pain may be caused by muscle spasm due to strain and pressure on the muscles around the neck caused by poor posture during sleep. Why does this happen? The muscles at the back of the neck, such as the trapezius and scapular raphe, are structures that connect the neck as well as the scapulae and thoracic vertebrae, and are like utility poles. When a utility pole is crooked, the pulling wires around it are equivalent to the muscles at the back of the neck, and when the pole is crooked, the pulling wires will be subject to extra force and there will be damaging changes, which in turn will result in pain, restricted movement and other manifestations.