Hierarchical modularization and dual-domain formation for product adaptability