Phase transition of spacetime: particles as black holes in anti-de Sitter space