/** JSON 错误响应（与既有前端契约一致） */
export function jsonError(status: number, message: string): Response {
  return new Response(JSON.stringify({ success: false, errors: [{ message }] }), {
    status,
    headers: { "Content-Type": "application/json" },
  });
}
