Camouflaged Object Detection (COD) aims to segment objects that are highly similar to their background. When dealing with blurred object boundaries, most existing methods struggle to capture complete object edges because they rely solely on local detailed features. To address this issue, a COD Network with Hierarchical Edge-aware Optimization (HEO-Net) was proposed to enhance edge-aware capability by balancing local details with global semantics. First, a global semantic prior branch was designed that incorporated the CLIP (Contrastive Language-Image Pre-training) model to extract rich global visual features, thereby enabling the understanding of semantic information, such as object structures, in complex backgrounds. Second, a multi-scale local detail aggregation branch was constructed to capture multi-scale local features, including object boundaries. Finally, to effectively integrate the heterogeneous features, a Dual-Attention Fusion Module (DAFM) was introduced to facilitate interaction between local details and global semantic priors. In addition, inspired by the human visual mechanism of “coarse-to-fine localization and identification”, a hierarchical progressive optimization strategy was developed, which used localization, multi-scale fusion, and region-aware refinement modules to optimize object features layer by layer and obtain refined boundaries. Experimental results demonstrate that HEO-Net outperforms mainstream comparative models across multiple benchmark datasets, validating its effectiveness and advancement in complex camouflaged scenarios.