<template>
  <!-- 余额 -->
  <div class="balance">
    <div class="asset-total">
      <div class="asset-title pf400 fs16 fc1F2937">总资产(USDT)</div>
      <div class="asset-number pf600 fs32 fc1F2937">1,125,158.00</div>
      <div class="asset-approximately pf400 fs16 fcDF384C">≈35,458.00</div>
    </div>
    <div class="asset-money">
      <div class="money-item" @click="goRecharge">
        <div class="item-img">
          <img src="@/assets/img/index/Rectangle 8.svg" />
        </div>
        <div class="pf400 fs14 fc666666">充币</div>
        <img src="@/assets/icon/asset/divider.svg" alt="" class="divider-img" />
      </div>
      <div class="money-item" @click="goWithdraw">
        <div class="item-img">
          <img src="@/assets/img/index/Rectangle 9.svg" />
        </div>
        <div class="pf400 fs14 fc666666">提币</div>
        <img src="@/assets/icon/asset/divider.svg" alt="" class="divider-img" />
      </div>
      <div class="money-item" @click="goTransfer">
        <div class="item-img">
          <img src="@/assets/img/index/user/huazhuan.svg" />
        </div>
        <div class="pf400 fs14 fc666666">划转</div>
      </div>
    </div>
    <div class="balance-coin">
      <div class="pf600 fs14 fc121212">余额</div>
      <div class="coin-main">
        <div class="coin-item" v-for="(item, index) in 2" :key="index">
          <div class="item-name">
            <img src="@/assets/icon/coin/bnb.svg" alt="" />
            <div class="item-info">
              <div class="info-top pf500 fs14 fc1F2937">
                <div>Bitcoin</div>
                <div>215520.54(USDT)</div>
              </div>
              <div class="info-bottom">
                <div class="pf400 fs10 fcA9A9A9">BTC</div>
                <div class="pf400 fs10 fcDF384C">≈￥25280.580</div>
              </div>
            </div>
          </div>
          <div class="item-line"></div>
          <div class="item-use pf500 fs12 margin-top10">
            <div class="fcA8A8A8">可用</div>
            <div class="fc767676">0.45 USDT</div>
          </div>
          <div class="item-use pf500 fs12 margin-top4">
            <div class="fcA8A8A8">冻结</div>
            <div class="fc767676">0.45 USDT</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup></script>
<style lang="less" scoped>
  .balance {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;

    .asset-total {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      margin-top: 16px;
      width: 343px;

      .asset-title {
        height: 22px;
        line-height: 22px;
      }

      .asset-number {
        margin-top: 3px;
        height: 44px;
        line-height: 44px;
      }

      .asset-approximately {
        margin-top: 1px;
        height: 22px;
        line-height: 22px;
      }
    }

    .asset-money {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      margin-top: 10px;
      width: 345px;
      height: 80px;

      .money-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        width: 114px;
        height: 80px;

        .divider-img {
          position: absolute;
          top: 14.5px;
          right: 0;
        }

        .item-img {
          margin-bottom: 3px;
          width: 32px;
          height: 32px;

          img {
            width: 32px;
            height: 32px;
          }
        }
      }
    }

    .balance-coin {
      margin-top: 10px;
      width: 345px;

      .coin-main {
        width: 100%;

        .coin-item {
          padding-left: 19px;
          padding-right: 11px;
          margin-top: 10px;
          width: 100%;
          height: 115px;
          border-radius: 8px;
          border: 1px solid #ebebeb;
          box-sizing: border-box;

          .item-name {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            margin-top: 12.5px;
            width: 100%;
            height: 34px;

            img {
              width: 32px;
              height: 32px;
            }

            .item-info {
              width: calc(345px - 40px - 30px);
              height: 34px;

              .info-top {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                height: 20px;
              }

              .info-bottom {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                height: 14px;
              }
            }
          }

          .item-line {
            margin-top: 10px;
            width: 100%;
            height: 1px;
            background: #e9e9e9;
          }

          .margin-top10 {
            margin-top: 10px;
          }

          .margin-top4 {
            margin-top: 4px;
          }

          .item-use {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            height: 18px;
          }
        }
      }
    }
  }
</style>
