A defect-induced broadband photodetector based on WS2/pyramid Si 2D/3D mixed-dimensional heterojunction with a light confinement effect.