@imgSrc: '@/assets/images/mobileConfig/WorkDesign';
.workDesign {
  width: 100%;
  height: 100%;
  background: #efefef;
  .workBg {
    width: 100%;
    height: 100%;
    background: url('@{imgSrc}/新建工作台初始页.png');
    background-size: 100% 100%;
    .b-text {
      text-align: center;
      padding: 7.5% 2% 0 0;
      font-size: 20px;
      font-weight: 700;
      color: #0082F0;
      &:hover {
        cursor: pointer;
      }
    }
  }
  .content {
    width: 100%;
    height: 100%;
    border: 1px solid #dbdbdb;
    .listHeader {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 50px;
      background: white;
      padding: 0 10px;
      .h-left {
        display: flex;
        .tab {
          width: 100px;
          text-align: center;
          font-size: 15px;
          line-height: 50px;
          font-weight: bold;
          position: relative;
          height: 50px;
          &:hover {
            cursor: pointer;
          }
          &[active='true'] {
            color: #1890ff;
          }
          .line {
            height: 2px;
            background: #1890ff;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: 0;
            transition: all 0.5s;
            overflow: hidden;
          }
        }
      }
    }
    .cardList {
      width: 100%;
      height: calc(100% - 50px);
      overflow: auto;
      padding: 0 0 0.5% 1.5%;
      display: flex;
      flex-wrap: wrap;
      .card {
        margin-right: 1.5%;
        margin-top: 1.5%;
        margin-bottom: 0.5%;
        width: 23%;
        border-radius: 5px;
        background: white;
        padding: 15px;
        box-shadow: 1px -2px 7px gainsboro;
        position: relative;
        .card-type {
          position: absolute;
          right: -9px;
          top: 16px;
          width: 60px;
          height: 36px;
          color: white;
          padding-left: 10px;
          text-align: center;
          letter-spacing: 3px;
          &[type="运营"] {
            background: url('@{imgSrc}/运营组件.png');
            background-size: 100% 100%;
          }
          &[type="管理"] {
            background: url('@{imgSrc}/管理组件.png');
            background-size: 100% 100%;
          }
          &[type="执行"] {
            background: url('@{imgSrc}/执行组件.png');
            background-size: 100% 100%;
          }
        }
        .title {
          font-size: 12px;
          font-weight: 700;
          .title-click {
            display: inline-block;
            &:hover {
              cursor: pointer;
              color: #1890ff;
            }
            .title-text {
              font-size: 16px;
            }
            .title-icon {
              display: inline-block;
              margin-left: 5px;
              width: 14px;
              height: 14px;
              background: url('@{imgSrc}/编辑.png');
              background-size: 100% 100%;
            }
          }
        }
        .img {
          width: 100%;
          height: 530px;
          transition: all 0.5s ease-in-out;
          position: relative;
          background: url('@{imgSrc}/预览图.jpg');
          background-size: 100%;
          margin-top: 5px;
          margin-bottom: 5px;
          border-radius: 4px;
          overflow: hidden;
          &:hover {
            cursor: pointer;
            .imgCenter {
              width: 100%;
              height: 530px;
            }
          }
          .imgCenter {
            position: absolute;
            overflow: hidden;
            transition: all 0.3s;
            transform-origin: center;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            flex-flow: column;
            align-items: center;
            justify-content: center;
            width: 0;
            height: 0;
            background: rgba(5, 5, 5, 0.6);
          }
        }
        .footer {
          .label {
            color: #aaa;
          }
        }
      }
    }
  }
}