Disclosed are compounds of formula (I) below and pharmaceutically acceptable salts thereof: (I), in which each of variables R1, R2, R3, R4, R5, A1, A2, A3, A4, X and Y is defined herein. Also disclosed are methods for reducing the glycemic level and treating glucagon-associated disorders with a compound of formula (I) or a salt thereof and a pharmaceutical composition containing same.