@import '../node_modules/ant-design-vue/es/style/themes/default.less';
/*
  1. amount  金额
  2. quantity 数量
  3. personal 个人信息
  4. payMethod 支付方式
  5. pay-statistics 交易统计
*/
#chart-card {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  & > div {
    padding: 0 15px 30px;
    // flex-grow: 1;
    width: 100%;
  }
  & > div > div {
    width: 100%;
    height: 100%;
    padding: 30px;
    border-radius: 5px;
    box-sizing: border-box;
  }
  // order 排列顺序 越小越靠前
  .amount {
    order: 1;
    & > div {
      background: linear-gradient(103.57deg, #0c2640 0%, #12375e 100%);
      display: flex;
      flex-direction: column;
      .amount-top {
        color: rgba(255, 255, 255, 0.6);
        min-width: 300px;
        .amount-date {
          width: auto;
          border-radius: 3px;
          overflow: hidden;
          display: inline-block;
          color: rgba(255, 255, 255, 0.7);
          margin-bottom: 50px;
          div {
            display: inline-block;
            background: rgba(0, 0, 0, 0.2);
            padding: 9px 20px;
            &:hover {
              cursor: pointer;
            }
          }
          .amount-date-active {
            background: var(--ant-primary-color);
            color: #fff;
          }
        }
        .amount-list {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          gap: 0 10px;
          p {
            margin-bottom: 10px;
          }
          span {
            font-size: 20px;
            color: #fff;
          }
        }
      }
      .amount-line {
        width: 100%;
        height: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin: 0 10px 0 20px;
      }
      #pay-amount {
        height: 200px;
      }
    }
  }
  .quantity {
    order: 2;
    display: flex;
    flex-direction: column;
    .quantity-top {
      background-color: var(--ant-primary-color);
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }
    .quantity-bottom {
      background-color: #123559;
      border-top-left-radius: 0;
      border-top-right-radius: 0;
      .quantity-number {
        margin-bottom: 15px;
      }
    }
    .quantity-number {
      color: #fff;
      font-size: 30px;
      margin-top: 15px;
    }
    .quantity-title {
      display: flex;
      flex-direction: row;
      align-items: center;
      span {
        color: rgba(255, 255, 255, 0.6);
        margin-right: 20px;
      }
      .bi {
        color: rgba(255, 255, 255, 0.6);
      }
    }
    .quantity-contrast {
      .contrast-text {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
        color: #ffce80;
        .ordinary {
          color: #ff8066;
        }
      }
      .contrast-chart {
        width: 100%;
        height: 30px;
        display: flex;
        flex-direction: row;
      }
    }
  }
  .personal {
    order: 3;
    & > div {
      display: flex;
      flex-direction: column;
      background-color: #fff;
      .personal-line {
        width: 100%;
        border-top: 1px solid #ebeff2;
        margin: 20px 0;
      }
      .msg {
        font-weight: 400;
        font-size: 14px;
        text-align: left;
        color: #8f8f8f;
        p {
          margin-bottom: 15px;
        }
      }
    }
  }
  .method {
    order: 4;
    height: 530px;
    & > div {
      background-color: #fff;
      display: flex;
      flex-direction: column;
    }
  }
  .pay-statistics {
    order: 5;
    height: 530px;
    & > div {
      position: relative;
      background-color: #fff;
    }
  }
  .personal {
    order: 0;
  }
}

@media screen and (min-width: 1024px) {
  #chart-card {
    .personal {
      order: 0;
      width: 100%;
      & > div {
        display: flex;
        flex-direction: row;
        .personal-line {
          width: 0;
          height: 100%;
          border-left: 1px solid #ebeff2;
          margin: 0 25px;
        }
      }
    }
    .amount {
      width: 100%;
      & > div {
        flex-direction: row;
        .amount-line {
          width: 0;
          height: 100%;
          border-left: 1px solid rgba(255, 255, 255, 0.15);
          margin: 0 30px;
        }
        #pay-amount {
          height: 100%;
        }
      }
    }
    .quantity {
      width: 285px;
      .quantity-top {
        height: 40%;
      }
      .quantity-bottom {
        height: 60%;
        position: relative;
        .quantity-contrast {
          width: calc(100% - 60px);
          position: absolute;
          left: 30px;
          bottom: 30px;
        }
      }
    }
    .method {
      width: calc(100% - 285px);
      // flex-grow: 1;
    }
    .pay-statistics {
      width: 100%;
      height: 530px;
    }
  }
}
@media screen and (min-width: 1366px) {
  #chart-card {
    .personal {
      order: 0;
      width: 100%;
    }
    .amount {
      width: calc(100% - 265px);
      flex-grow: 1;
    }
    .quantity {
      width: 265px;
    }
    .method {
      width: 460px;
    }
    .pay-statistics {
      width: calc(100% - 460px);
      flex-grow: 1;
      height: 530px;
    }
  }
}
@media screen and (min-width: 1600px) {
  #chart-card {
    .amount {
      order: 1;
      width: calc(100% - 270px - 330px);
      flex-grow: 1;
    } // order 排列顺序 越小越靠前
    .quantity {
      order: 2;
      width: 270px;
    }

     .personal_price {
      width: 600px !important;
    }
    .personal {
      order: 3;
      width: 330px;
      & > div {
        display: flex;
        flex-direction: column;
        .personal-line {
          width: 100%;
          height: 0;
          border-top: 1px solid #ebeff2;
          margin: 25px 0;
        }
      }
    }
    .method {
      width: 544px;
    }
    .pay-statistics {
      width: calc(100% - 544px);
      flex-grow: 1;
    }
  }
}
