In recent years, with the development of photonic crystals, metamaterials, metasurfaces, and other related disciplines, the relationship between the structures and functionalities of artificial optical/electromagnetic materials and devices has become a research hotspot. This article reviews the optical/electromagnetic properties and performance of typical artificial micro/nanostructures. Based on the analogy of mechanics and optics/electromagnetism, the concept of "Electromagnetic Architectures" is proposed. In particular, we reviewed several typical methods for the study of optical/electromagnetic structural-functional relationships, including semi-classical analytical models, heuristic optimization methods, deep neural networks, topological optimization methods, etc. The viewpoint of this paper may push further researches on the structural-functional relationship of artificially structured materials and devices, and find broad application prospects in imaging, communication, photonic chips, among many others.