17.(本小题满分 12 分)
在 $\triangle \mathrm{ABC}$ 中,角 $\mathrm{A}, \mathrm{B}, \mathrm{C}$ 所对的边分别为 $\mathrm{a}, \mathrm{b}, \mathrm{c}$ ,且满足 $\mathrm{c} \sin \mathrm{A}=\mathrm{a} \cos \mathrm{C}$ .
(I)求角 C 的大小;
(II)求 $\sqrt{3} \sin \mathrm{~A}-\cos \left(\mathrm{B}+\frac{\pi}{4}\right)$ 的最大值,并求取得最大值时角 A 、 B 的大小.
参考答案
(1) $C=\frac{\pi}{4}$; (2) $A=\frac{\pi}{3}, B=\frac{5 \pi}{12}$