BCS-BEC model of high-Tc superconductivity in layered cuprates with unconventional pairing