Let me try to give you a brief explanation.
In my opinion, trade deficit is not that bad. It is quite neutral. It is not as most people might originally think that the country is losing money.
You can analysize in this way:
You buy imports with currency issued by your own government. Where can the currency finally be? The currency can flow back as a foreign investment, or be used to buy exports from your country, or just be kept by someone else for future use. Each way is not that bad to your country.
If you learned some macroeconomics, I'd like to give you some formulas to remind you the relation above:
In the balance sheet of an open economy:
current account = - financial account
current account = net exports (about to be equal)
financial account = - net foreign investment (Notice here: NFI is defined as the difference between the cash flows out of your country and the cash flows in)
That is to say that:
net export = net foreign investment!
This is just a brief model and some of my analysis.