The so-called settlement price means that the exchange shows whether you are profitable after the close of the day.
For example, the settlement price of that day is 4050, so your account shows a profit of 500 yuan.
The opening of the next day was uncertain. Generally speaking, it will open near yesterday's closing price (if nothing unexpected).
Suppose you have 20,000 yuan in your account. If you thread, 4000 will enter the market to do more, and the deposit will be around 4500. Then your account shows the deposit of 4500, available funds 15500, and increase or decrease the profit and loss in the available funds every time.
If you lose all the available funds of 15500, you can't thread any more because the margin is not enough.