Hopf bifurcation for a class of three-dimensional nonlinear dynamic systems