I would argue that "working hard" and "working long hours" are not the same thing.
Being so absorbed in your work that you forget to stop working is a by-product of really enjoying your work and wanting to learn more. You can't force enjoyment of (or a breakthrough in) a subject just by slaving away for hours after the office closes.