@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: 30px;
    width: 716px;
    height: 302px;
    color: #ffffff;
    margin-bottom: -10px;
    .webpBg("DetailPage/topBg.png");
    text-align: center;

    .productName {
      position: absolute;
      left: 159px;
      top: 4px;
      width: 408px;
      height: 50px;
      line-height: 50px;
      font-size: 32px;
      color: #FFFFFF;
      font-weight: bold;
      .lineClamp1();
    }

    .label1 {
      position: absolute;
      left: 0;
      top: 59px;
      width: 100%;
      font-size: 28px;
      color: #333333;
    }

    .totalProfit {
      position: absolute;
      left: 0;
      top: 114px;
      width: 100%;
      font-size: 46px;
      color: #D90300;
      font-weight: bold;
    }

    .label2 {
      position: absolute;
      left: 22px;
      top: 190px;
      width: 30%;
      font-size: 24px;
      color: #666666;
    }

    .tranche {
      position: absolute;
      left: 22px;
      top: 226px;
      width: 30%;
      font-size: 36px;
      color: #232323;
      font-weight: bold;
    }

    .label3 {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      top: 190px;
      width: 30%;
      font-size: 24px;
      color: #666666;
    }

    .marketValue {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      top: 226px;
      width: 30%;
      font-size: 36px;
      color: #232323;
      font-weight: bold;
    }

    .label4 {
      position: absolute;
      right: 22px;
      top: 190px;
      width: 30%;
      font-size: 24px;
      color: #666666;
    }

    .yesterdayProfit {
      position: absolute;
      right: 22px;
      top: 226px;
      width: 30%;
      font-size: 36px;
      color: #232323;
      font-weight: bold;
    }
  }

  .topArea2 {
    flex-shrink: 0;
    width: 750px;
    height: 110px;
    background: #FCDBDB;
    box-shadow: 0 3px 8px 0 #EAA7A6;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -10px;

    .productName {
      //position: absolute;
      //left: 0;
      //top: 55px;
      width: 78%;
      text-align: center;
      font-size: 36px;
      color: #D90300;
      .lineClamp1();
    }
  }

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

  .options {
    flex-shrink: 0;
    width: 750px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    .sparkBg("DetailPage/bottomBg.png");
    background-size: 762px 400px;
    background-position: top center;

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

      color: #EA1211;
      font-size: 32px;
      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 {
        font-family: SourceHanSansCN-Bold;
        background: #EA1211;
        border-radius: 3px;
        position: absolute;
        left: 80px;
        top: 75px;
        width: 215px;
        height: 6px;
      }
    }

    .buy {
      position: absolute;
      top: 91px;
      width: 634px;
      margin-top: 20px;

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

        & > div {
          font-size: 30px;
          color: #333;
          text-align: center;
          font-weight: bold;
        }

        & > span {
          font-size: 26px;
          color: #666;
          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: 20px;

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

        & > div {
          font-size: 30px;
          color: #333;
          text-align: center;
          font-weight: bold;
        }

        & > span {
          font-size: 26px;
          color: #666;
          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: #EA1211;
          font-weight: bold;
        }
      }
    }

    .tip {
      margin-top: 20px;
      font-size: 24px;
      color: #999;
      text-align: left;
      min-height: 30px;
    }

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

      .btn {
        width: 260px;
        height: 68px;
        border-radius: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        font-weight: bold;
      }

      .simulate {
        background-color: #EA1211;
        color: white;
      }

      .really {
        background-color: white;
        color: #EA1211;
        border: 1px solid #EA1211;
      }
    }
  }

  .backBtn {
    position: absolute;
    left: 40px;
    top: 36px;
    width: 38px;
    height: 38px;
    .webpBg("DetailPage/backBtn.png");
    &.backBtn2 {
      left: 54px;
      top: 85px;
      .webpBg("DetailPage/backBtn2.png");
    }
  }

}
