Amazon surge offsets Apple slump as Nasdaq gains 1%