A top legislative staffer and campaign aide to veteran Assemblyman Felix Ortiz was busted Thursday and charged with stealing $80,000 from the Brooklyn Democrat’s campaign account — including withdrawing thousands of dollars to pay for a trip to China, authorities said.

Maruf Alam, 29, of Brooklyn’s Kensington had served as Ortiz’s chief of staff and acted as treasurer for his campaign.

But as it turned out, Alam — also known as Mitu Maruf — used the campaign account as his personally piggy bank from 2012 through last year, prosecutors and the FBI alleged.

He then failed to report these expenses with the state Board of Elections.

Alam appeared in Brooklyn federal court Thursday afternoon in the wire fraud case presented by US Attorney Richard Donoghue’s office and the FBI.

The magistrate judge granted $100,000 bail secured by his mother’s signature and her residence. His travel restricted to New York City and New Jersey.

Ortiz, first elected in 1994, told the FBI that he did not authorize Alam to withdraw $80,000 from the campaign account.

Alam was paid $42,487 as Oritz’s legislative staffer.