3. Among the three lateral faces and the base of a triangular pyramid, the maximum number of right-angled triangles is ( )
(A) 1
(B) 2
(C) 3
(D) 4
D

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.