@import url(../../../../styles/common/easyvCommon.less);

.itemWrapper {
  padding-bottom: 71%;
  position: relative;
  cursor: pointer;

  .back {
    position: absolute;
    top: 22px;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 2px;
    background: #1f212c;
    box-shadow: 0px 16px 16px rgba(0, 0, 0, 0.08);
  }

  .imgWrapper {
    position: absolute;
    top: 0;
    padding: 0 17px;
    z-index: 1;
    width: 100%;
    height: calc(~'100% - 48px');

    .imgContainer {
      height: 100%;
      position: relative;
      cursor: pointer;

      .img {
        border: 1px solid var(--easyv-background-6);
        border-top-left-radius: 2px;
        border-top-right-radius: 2px;
        transition: transform 0.2s;
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;

        img {
          width: 100%;
          height: 100%;
          object-fit: contain;
          background-color: rgb(24, 25, 38);
        }

        &:after {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          opacity: 0;
          background-color: rgba(0, 0, 0, 0.8);
        }
      }

      &:hover {
        .img {
          transform: scale(1.05);

          &:after {
            opacity: 1;
          }
        }
      }

      &:hover .imgOperate {
        opacity: 1;
      }

      .imgOperate {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        opacity: 0;
        text-align: center;
        padding-top: 35px;

        button {
          margin: 12px auto;
        }

        .drag {
          cursor: move;
          width: 28px;
          text-align: center;

          &:hover {
            color: var(--easyv-primary-color);
          }
        }
      }
    }
  }

  .footerInfo {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    background-image: url(../../../../images/screen_bg.png);
    background-size: 109% 106%;
    background-position: left top;
    background-origin: border-box;
    background-repeat: no-repeat;
    width: 100%;
    height: 81px;
    padding: 25px 16px 0px 16px;
    border-radius: 4px;

    .box_top {
      display: flex;
      justify-content: space-between;
      .box__title {
        font-size: 14px;
        color: #fff;
        font-weight: 500;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        width: 200px;
      }
      .box_purchased {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 4px 8px;
        width: 40px;
        height: 20px;
        background: #5a5d69;
        border-radius: 2px;
      }
    }

    .box__desc {
      color: #b4b7c1;
      font-size: 12px;
      line-height: 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
  }
}

.title {
  font-size: 16px;
  color: #dddddd;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 24px;

  .more {
    font-size: 12px;
    color: #3f87ff;

    :global(.iconfont) {
      font-size: 12px;
    }
  }
}

.group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  grid-template-rows: repeat(auto-fill, minmax(196px, 1fr));
  grid-gap: 24px;
}

.box {
  // margin-top: 25px;
  // margin-right: 24px;
  height: 224px;
  display: inline-block;
  border: 1px solid rgb(29, 37, 62);
  cursor: pointer;
  position: relative;
  background-color: #101318cc;
  vertical-align: top;
}

.box__img {
  height: 160px;
  border-bottom: 1px solid rgb(29, 37, 62);
  background-size: 100%;
}

.box:hover {
  border-color: #3f87ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.box:hover .box__float {
  opacity: 1;
}

.box__float {
  opacity: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 160px;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
  padding-top: 74px;
  transition: all 0.3s;
}

.box__float > button {
  margin-right: 12px;
}

.createRect {
  // width: 100%;
  // height: 197px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  background: var(--easyv-background-6);
  color: #b4b7c1;
  border: 1px dashed rgba(180, 183, 193, 0.24);
  border-radius: 2px;
  transition: all 0.3s ease;

  .createRectCont {
    width: 170px;
    height: 64px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    span {
      font-size: 14px;
      line-height: 20px;
      font-family: PingFang SC;
      font-style: normal;
      font-weight: normal;
      position: relative;
      top: 40px;
    }
  }

  &:hover {
    border: 1px dashed #3a89fe;
    color: #3a89fe;

    p {
      background-color: #3a89fe;

      &::after {
        background-color: #3a89fe;
      }
    }
  }

  p {
    width: 28px;
    height: 4px;
    display: inline-block;
    background-color: #b4b7c1;
    top: 35%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);

    &::after {
      content: '';
      width: 4px;
      height: 28px;
      display: inline-block;
      background-color: #b4b7c1;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
    }
  }
}

.container {
  // max-height: 100vh;
  // overflow-y: auto;
  // background: var(--easyv-background-1);
  &::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: block;
  }
}

.sort_wrapper {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dropClass {
  .select();
}

.option {
  color: #b4b7c1;
  font-size: 14px;
  max-width: 200px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  position: absolute;
  left: 75px;

  :global {
    .easyv-select-arrow {
      color: #b4b7c1;
      transform: scale(0.8);
    }
  }
}

.search_input {
  .easyvSearchInput();
  background: var(--easyv-background-6);

  :global {
    .easyv-gui-btn .anticon {
      color: #b4b7c1;
    }

    .easyv-gui-btn .anticon {
      color: #b4b7c1;
    }

    .easyv-gui-input {
      background-color: var(--easyv-background-6);
    }

    .easyv-gui-input-group-addon {
      background-color: var(--easyv-background-6);
    }

    .easyv-gui-btn-icon-only {
      background-color: var(--easyv-background-6);
    }
  }
}
