Unifying low- and high-mass star formation through density-amplified hubs of filaments