@import "../../res.less";

.DetailPage {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  position: absolute;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  .topArea {
    width: 100%;
    height: 360px;
    flex-shrink: 0;
    color: #fff;

    .topBg {
      position: absolute;
      left: 29px;
      top: 35px;
      width: 691px;
      height: 299px;
      .webpBg("DetailPage/topBg.png");
    }

    .productName {
      position: absolute;
      left: 0;
      top: 55px;
      width: 100%;
      text-align: center;
      font-size: 28px;
    }

    .totalProfit{
      position: absolute;
      left: 0;
      top: 90px;
      width: 100%;
      text-align: center;
      font-size: 60px;
      font-weight: bold;
    }

    .tranche{
      position: absolute;
      left: 40px;
      top: 270px;
      width: 30%;
      text-align: center;
      font-size: 30px;
      font-weight: bold;
    }


    .marketValue{
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      top: 270px;
      width: 30%;
      text-align: center;
      font-size: 30px;
      font-weight: bold;
    }

    .yesterdayProfit{
      position: absolute;
      right:40px;
      top: 270px;
      width: 30%;
      text-align: center;
      font-size: 30px;
      font-weight: bold;
    }
  }

  .prodIframe {
    width: 100%;
    height: 100%;
    //border: none;
    border: 0;

  }

  .options {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;

    .tab {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 91px;

      color: #bc251c;
      font-size: 28px;
      font-weight: bold;

      display: flex;
      align-items: center;
      justify-content: space-around;

      .tabItem {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .actBar {
        background-color: rgb(188, 37, 28);
        position: absolute;
        left: 61.5px;
        top: 85px;
        width: 252px;
        height: 6px;
      }
    }

    .buy {
      position: absolute;
      top: 91px;
      width: 634px;
      margin-top: 28px;
      margin-bottom: 61px;

      .buyInfo {
        display: flex;
        align-items: center;
        justify-content: space-between;

        &>div {
          font-size: 32px;
          color: rgb(50, 50, 50);
          text-align: center;
          font-weight: bold;
        }

        &>span {
          font-size: 29px;
          color: rgb(155, 155, 155);
          text-align: center;
        }
      }

      .bugInput {
        margin-top: 18px;
        width: 100%;
        border: 1px rgb(155, 155, 155) solid;
        border-radius: 6px;
        height: 78px;
        padding: 10px;
        padding-left: 30px;
        box-sizing: border-box;
        font-size: 29px;
      }

      .buyTip {
        margin-top: 14px;
        font-size: 24px;
        color: rgb(155, 155, 155);
        text-align: left;
      }

      .buyBtn {
        width: 100%;
        height: 82px;
        border-radius: 41px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        font-weight: bold;
      }

      .simulateBuy {
        margin-top: 30px;
        background-color: rgb(188, 37, 28);
        color: white;
      }

      .reallyBuy {
        margin-top: 29px;
        background-color: white;
        color: #bc251c;
        border: 1px solid #bc251c;
      }
    }

    .sell {
      position: absolute;
      top: 91px;
      width: 634px;
      margin-top: 28px;
      margin-bottom: 61px;

      .sellInfo {
        display: flex;
        align-items: center;
        justify-content: space-between;

        &>div {
          font-size: 32px;
          color: rgb(50, 50, 50);
          text-align: center;
          font-weight: bold;
        }

        &>span {
          font-size: 29px;
          color: rgb(155, 155, 155);
          text-align: center;
        }
      }

      .sellInput {
        position: relative;
        margin-top: 18px;
        width: 100%;
        height: 78px;

        input {
          width: 100%;
          height: 100%;
          border: 1px rgb(155, 155, 155) solid;
          border-radius: 6px;
          padding: 10px 10px 10px 30px;
          box-sizing: border-box;
          font-size: 29px;
        }

        .sellAll {
          font-size: 29px;
          position: absolute;
          top: 24px;
          right: 27px;
          color: #bc251c;
          font-weight: bold;
        }
      }

      .sellBtn {
        width: 100%;
        height: 82px;
        border-radius: 41px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        font-weight: bold;
      }

      .simulateSell {
        margin-top: 30px;
        background-color: rgb(188, 37, 28);
        color: white;
      }
    }
  }

  .backBtn {
    position: absolute;
    left: 50px;
    top: 50px;
    width: 18px;
    height: 32px;
    .webpBg("RecordPage/backBtn.png");
  }

}
