苦苦琢磨;苦思冥想;绞尽脑汁
scratch your head (over sth)
to think hard in order to find an answer to sth
释义来自《牛津高阶英汉双解词典》第 9 版