@import "../../../style/index.less";
@font-face {
  font-family: "din";
  src: url("../../../style/DIN.ttf") format("truetype");
}
div {
  box-sizing: border-box;
}
.container{
  width: 100%;
  // overflow: hidden;
  // background: url('https://img.lkbang.net/seckill-bg.1aa5d2ca.png');
  background-size: 100%;
  background-repeat: no-repeat;
  position: relative;
  box-sizing: border-box;
  padding-top: 80px;
  &--loading {
    text-align: center;
    /deep/ .cr-loading--text {
      color: #999;
    }
  }
  .rules{
    position: absolute;
    right: 0;
    top: 17px;
    width: 44px;
    height: 25px;
    border-top-left-radius: 13px;
    border-bottom-left-radius: 13px;
    background: rgba(0,0,0, 0.148);
    background-blend-mode: normal;
    font-size: 12px;
    color:#fff;
    text-align: center;
    padding-left: 4px;
    box-sizing: border-box;
    line-height: 25px;
  }
  .sticky{
    position: sticky;
    top: 0;
    // background: url('https://img.lkbang.net/seckill-bg.1aa5d2ca.png');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: 0 -80px;
    z-index: 2;
  }
  .timers{
    width: 100%;
    height: 48px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    background: #f7f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
    .desc{
      font-size: 14px;
      margin-right: 8px;
    }
    .day{
      font-size: 10px;
      color:#000201;
      font-weight: bold;
    }
    .hours, .mins, .secs{
      width: 16px;
      height: 16px;
      border-radius: 3.2px;
      background: #000201;
      line-height: 16px;
      text-align: center;
      color:#fff;
      margin-left: 2px;
      margin-right: 2px;
    }
  }
  .good-list{
    background: #f7f8fa;
    padding: 0 10px 10px;
    .good-item{
      margin-top: 12px;
      width: 100%;
      height: 118px;
      background:#fff;
      padding: 8px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      &:first-child{
        margin-top: 0;
      }
      .good-img{
        flex-shrink: 0;
        width: 102px;
        height: 102px;
        margin-right: 8px;
        position: relative;
        img{
          width: 100%;
          height: 100%;
          display: block;
          border-radius: 6px;
        }
        .soldout{
          width: 76px;
          height: 76px;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translateX(-50%) translateY(-50%);
        }
      }
      .good-info{
        width: calc(100% - 110px);
        flex-shrink: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        .top-part{
          width: 100%;
          .title{
            width: 100%;
            line-height: 19px;
            overflow:hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            color: #333;
            font-size: 13px;
          }
          .point{
            margin-top: 4px;
            width: 100%;
            line-height: 12px;
            overflow:hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            color: #999;
            font-size: 12px;
          }
        }
        .bottom-part{
          width: 100%;
          display: flex;
          align-items: center;
          justify-content: space-between;
          .info{
            width: calc(100% - 38px);
            display: flex;
            flex-direction: column;
            .price{
              display: flex;
              align-items: center;
              &-content{
                span{
                  font-weight: bold;
                  color: #ec3333;
                  &.unit{
                    font-size: 12px;
                  }
                  &.int{
                    font-size: 18px;
                  }
                  &.float{
                    font-size: 12px;
                  }
                }
              }
              .tags {
                margin-left: 5px;
                position: relative;
                padding: 0 6px 0 10px;
                height: 18px;
                font-size: 12px;
                color: #fff;
                text-align: center;
                line-height: 18px;
                border-radius: 4px;
                border-bottom-left-radius: 0;
                background: linear-gradient(270deg, #fe3d31 0%, #ff5d42 100%);
      
                &.outTime {
                  background: linear-gradient(270deg, #31c087 0%, #76d09b 100%);
                }
      
                .icon {
                  width: 12px;
                  height: 20px;
                  display: block;
                  position: absolute;
                  left: 0;
                  bottom: 0;
                }
              }
            }
            .stock{
              margin-top: 6px;
              display: flex;
              align-items: center;
              .good-list_progress{
                width: 62px;
                margin-right: 8px;
              }
              span{
                color: #999;
                font-size: 12px;
              }
              /deep/ .cr-progress__progress{
                background: linear-gradient(270deg, #FF5D00 0%, #EC1500 100%) !important;
              }
            }
          }
          .shopcart{
            margin-left: 8px;
            flex-shrink: 0;
            width: 30px;
            height: 30px;
            background-image: url('https://img.lkbang.net/shopcart-seckill.8a1cc2e.png');
            background-size: 100%;
            background-repeat: no-repeat;
          }
        }
      }
    }
  }
}


.seckill-title {
  height: 60px;
  width: 100%;
  border-radius: 8px 8px 0 0;

  .scene-less-4 {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 8px;

    .scene-item {
      flex: 1;
      height: 60px;
      // background: pink;
      margin: 0 2px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 8px 0;
      box-sizing: border-box;
      align-items: center;
      &.selected {
        .scene-desc {
          color: @red;
          background: @white;
          padding: 0 12px;
          border-radius: 9px;
          font-weight: bold;
          .timers {
            padding: 0;
          }
        }
        .scene-name {
          color: #fff;
        }

        .timers {
          background: @white;
          color: @red;
        }
      }

      .scene-name {
        color: rgba(255, 255, 255, 0.85);
        font-family: "din";
        font-size: 18px;
        text-align: center;
      }

      .scene-desc {
        height: 18px;
        line-height: 18px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.85);
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;

        .timers {
          margin: 0 auto;
          padding: 0 8px;
        }
        // margin-top: @padding-base;
      }
    }
  }

  .scene-over-4 {
    width: 100%;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    &::-webkit-scrollbar {
      display: none;
    }
    // overflow-y: hidden;

    .scene-item {
      min-width: 72px;
      flex-shrink: 0;
      height: 60px;
      // background: pink;
      margin: 0 2px;
      display: inline-flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 8px 0;
      align-items: center;
      white-space: nowrap;
      &.selected {
        .scene-desc {
          color: @red;
          background: @white;
          padding: 0 12px;
          border-radius: 9px;
          font-weight: bold;
          .timers {
            padding: 0;
          }
        }
        .scene-name {
          color: #fff;
        }
        .timers {
          background: @white;
          color: @red;
        }
      }

      .scene-name {
        color: rgba(255, 255, 255, 0.85);
        font-family: "din";
        font-size: 18px;
        text-align: center;
      }

      .scene-desc {
        height: 18px;
        line-height: 18px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.85);
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;

        .timers {
          margin: 0 auto;
          padding: 0 8px;
        }
        // margin-top: @padding-base;
      }
    }
  }
}