@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 {
    position: relative;
    flex-shrink: 0;
    margin-top: 40px;
    width: 691px;
    // height: 299px;
    height: 254px;
    color: #ffffff;
    margin-bottom: 10px;
    // .webpBg("DetailPage/topBg.png");
    border-radius: 13px;
    background-image: linear-gradient( 0deg, rgb(170,52,39) 0%, rgb(199,68,54) 100%);

    .productName {
      position: absolute;
      left: 149px;
      top: 0;
      width: 393px;
      height: 42px;
      text-align: center;
      font-size: 28px;
      background-image: linear-gradient( 0deg, #a5281e 0%, #a2261d 100%);
      border-radius: 0 0 13px 13px;
      .lineClamp1();
    }

    .label1 {
      position: absolute;
      left: 22px;
      top: 45px;
      width: 100%;
      font-size: 28px;
      color: rgba(255, 255, 255, 0.6);
    }

    .totalProfit {
      position: absolute;
      left: 22px;
      top: 80px;
      width: 100%;
      font-size: 60px;
      font-weight: bold;
    }

    .label2 {
      position: absolute;
      left: 22px;
      top: 166px;
      width: 30%;
      font-size: 22px;
      color: rgba(255, 255, 255, 0.6);
    }

    .tranche {
      position: absolute;
      left: 22px;
      top: 198px;
      width: 30%;
      font-size: 30px;
      font-weight: bold;
    }

    .label3 {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      top: 166px;
      width: 30%;
      font-size: 22px;
      text-align: center;
      color: rgba(255, 255, 255, 0.6);
    }

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

    .label4 {
      position: absolute;
      right: 22px;
      top: 166px;
      width: 30%;
      font-size: 22px;
      text-align: right;
      color: rgba(255, 255, 255, 0.6);
    }

    .yesterdayProfit {
      position: absolute;
      right: 22px;
      top: 198px;
      width: 30%;
      text-align: right;
      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");
    &.backBtn2 {
      top: 42px;
    }
  }

}
