Signatures of cosmic-ray interactions on the solar surface