@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;
  background-color: #f2f5f7;

  .topArea {
    flex-shrink: 0;
    margin-top: 40px;
    width: 691px;
    height: 299px;
    color: #ffffff;
    margin-bottom: 10px;
    .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;
    }
  }

  .topArea2 {
    flex-shrink: 0;
    margin-top: 40px;
    width: 691px;
    height: 115px;
    .webpBg("DetailPage/topBg2.png");
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;

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

  .prodIframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  .options {
    flex-shrink: 0;
    width: 709px;
    height: 465px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    .webpBg("DetailPage/bottomBg.png");

    .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;
      }
    }

    .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;
        }
      }
    }

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

    .btnArea {
      margin-top: 10px;
      width: 100%;
      height: 82px;
      display: flex;
      align-items: center;
      justify-content: space-between;

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

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

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

    }
  }

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

}
