Enhancing Complex Formula Recognition with Hierarchical Detail-Focused Network