yòng​xīn​liáng​kǔ

to give much thought to something