突發奇想

Idiom

 * 1) to suddenly come up with an ingenious idea; to suddenly be inspired to do something