Considering that there is some non-scientific superstition and even some karma/dharma afterlife talk involved in Buddhism/Taoism I’ll consider them religions. Confucianism is more a philosophy. Does China get more roots from it’s philosophy or religions? I’d argue it gets more from its Confucian roots. Buddhism/Taoism came later.