22. As shown in the figure, in the quadrangular pyramid $P - A B C D$, given that $P A \perp$ plane $A B C D$, and the quadrilateral $A B C D$ is a right trapezoid, $\angle A B C = \angle B A D = \frac { \pi } { 2 } , P A = A D = 2 , A B = B C = 1$
(1) Find the cosine of the dihedral angle between plane $P A B$ and plane $P C D$;
(2) Point Q is a moving point on segment BP. When the angle between line CQ and DP is minimized, find the length of segment BQ. [Figure]