Strong earnings and AI spending keep markets afloat.