Theory of superconducting mechanism and gap structure of Sr2RuO4