.module-list-wrap {
  background: #efefef;
}

.module-list {
  width: 100%;
  padding: 0;
  margin-bottom: 0;
  color: #666;
  box-sizing: border-box;
  //font-family: 'Adobe 黑体 Std R';
  &:after {
    content: '';
    display: block;
    width: 100%;
    height: 0;
    overflow: hidden;
    clear: both;
  }

  .module {
    float: left;
    width: 50%;
    padding-right: 10px;
    margin-top: 10px;
    list-style: none;
    border: 0px solid #ff0000;
    // background-color: #ffffff;
    .square-0 {
      float: left;
      width: 200px;
      padding: 11px 11px 0;
      background: #fff;

      .square-1 {
        position: relative;
        width: 178px;
        height: 178px;
        text-align: center;
        background: #fcfcfc;
        background: url(data:image/gif;base64,R0lGODlhCAAIAIABAOXl5f///yH5BAEAAAEALAAAAAAIAAgAAAIIRI6py2wNYQEAOw==);

        .short-cut {
          vertical-align: middle;
          max-width: 100%;
          max-height: 100%;
        }

        .upload {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
        }

        .mask {
          position: absolute;
          top: 0;
          left: 0;
          // bug
          z-index: 1;
          width: 100%;
          height: 100%;
          opacity: 0;
          background: rgba(255, 255, 255, 0.91) center 50px no-repeat url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAzCAYAAADo8TpyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABBtJREFUeNrsmklPFFEQgHsGkQiIShTDwcSDgAsRwgUUGLYYL5roRc/+Bn4HN69uF6MeNGriTRwWI5hI1AugJJwRwUFgQJjFqlCdlDWv3zLTzEhCJZVMd7/l69f1qupVJpLNZr29KFFvj8qeBT/g/xgaGvJ/toEeAX33nzD2gyZAp/BicHDwX3CSatCr7H6p4ftAO0FToN9BV4NMpYNBd1HHUkJ3Mcto19n4WXFdKngOrWTj4JWgxxSDFBteBe0RW5UK/LBmsGLBB0HzPejsDnHA3hJCB/rxNYv23bsE32sJvaYCXwf9VQL4XhrTJAliVJrKjOVkYcHbQqPM6tzhJOh2keBdoLeJLRAcI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CYII=);
          transition: opacity .5s;
          transition-delay: 0.5s;
        }

        svg {
          position: absolute;
          top: 0;
          left: 0;
          z-index: 2;

          line {
            stroke-width: 0;
            stroke: #aaa;
            stroke-dasharray: 196 136;
            fill: none;
            transition: all .5s;
            transition-delay: 0.5s;
          }
        }

        .tip {
          display: block;
          opacity: 0;
          position: relative;
          z-index: 2;
          margin-top: 112px;
          text-align: center;
          color: #777;
          transition: opacity .5s;
          transition-delay: 0.5s;

          a {
            color: #2187CA;
            text-decoration: none;
            cursor: pointer;
          }
        }

        &:hover {
          .mask {
            opacity: 1;
          }

          svg {
            line {
              stroke-width: 4;
            }

            .top {
              transform: translateX(-176px);
            }

            .bottom {
              transform: translateX(176px);
            }

            .left {
              transform: translateY(176px);
            }

            .right {
              transform: translateY(-176px);
            }
          }
          .tip {
            opacity: 1;
          }
        }
      }

      .square-2 {
        //margin-top: 10px;
        //border-top: 1px solid #e2e2e2;
        text-align: right;
        line-height: 39px;

        .author {
          font-size: 16px;
          float: left;
          height: 39px;
          overflow: hidden;
          text-align: left;
          word-break: break-all;
        }

        .date {
          color: #c4c4c4;
        }
      }

    }

    .square-3 {
      padding-left: 200px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
      position: relative;
      box-sizing: border-box;

      .tag {
        display: inline-block;
        border: 1px solid;
        border-radius: 2px;
        text-align: center;
        color: #dd4b39;
        line-height: 17px;
        padding: 0 4px;
        font-size: 14px;
        font-weight: bold;
        margin-left: 8px;
        height: 20px;
        position: relative;
      }

      .publish-blue {
        .tag;
        color: #3c8dbc !important;
      }

      .publish-gray {
        .tag;
        color: #999 !important;
      }

      .right-wrap {
        position: relative;
        padding: 11px;
        height: 228px;
        background: #fff;
        border-left: 1px dashed #e5e5e5;
      }

      .func-bg {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 206px;

        &:after {
          content: '';
          display: block;
          width: 100%;
          height: 100%;
          background-color: rgba(255, 255, 255, 0.9);
        }
      }

      .detail {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        padding: 11px 11px 11px 12px;
        //-webkit-mask-image: -webkit-linear-gradient(top, #000000 40%, rgba(0, 0, 0, 0) 80%);

        .title {
          font-size: 20px;
          max-height: 47px;
          margin-top: 2px;
          //overflow: hidden;

          &.modified {
            &::after {
              content: '';
              display: block;
              width: 6px;
              height: 6px;
              border-radius: 50%;
              background: #2BD85E;
              position: absolute;
              right: 11px;
              top: 13px;
            }
          }

          > * {
            vertical-align: middle;
          }

          a {
            color: #666;

            &[href]:hover {
              color: #e75e40;
            }
          }

          .tooltip {
            opacity: 1;
            cursor: pointer;
          }
        }

        .desc {
          /*position: absolute;
          padding: 11px;
          top: 50%;
          left: 0;
          width: 100%;*/
          max-height: 100%;
          //text-align: center;
          overflow: hidden;
          font-size: 15px;
          line-height: 20px;
          max-height: 120px;
          overflow: hidden;
          //transform: translate(0%, -50%);

          span {
            display: inline-block;
            text-align: left;
          }
        }
      }

      .bottom-panel {
        position: absolute;
        width: 100%;
        //height: 29%;
        padding: 0 11px 11px 11px;
        bottom: 0;
        left: 0;

        .date {

        }

        .actions {
          //margin-top: 10px;

          .btn-group {
            position: relative;
          }

          .btn {
            padding: 4px 6px;
            font-size: 12px;
            background: #fff;
            opacity: 1;
            z-index: 1;

            &:hover, &:focus, &:active {
              z-index: 2;
              outline: none;
            }

            &.disabled {
              opacity: 0.75;

              &:before {
                opacity: 1;
              }
            }

            &:before {
              opacity: 0.75;
              //border-radius: 2px;
              box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.65);
              color: #333;
              background: #fff;
            }

            .fa {
              margin-right: 5px;
              color: #666;
            }

            & + .dropdown-toggle {
              padding: 4px 6px;
            }
          }

          .dropdown-menu {
            position: absolute;
            right: 0;
            top: 32px;
            left: auto;
            min-width: inherit;
            z-index: 1080;

            a {
              cursor: pointer;
              font-size: 13px;
              color: #444;
            }
          }
        }
      }

      .scrap-1, .scrap-2 {
        position: absolute;
        left: -4px;
        width: 8px;
        height: 8px;
        background-color: #efefef;
      }

      .scrap-1 {
        top: -4px;
      }

      .scrap-2 {
        bottom: -4px;
      }
    }

    .loading-progress {
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
    }

    &.loading {
      .square-3 {
        .right-wrap {
          overflow: hidden;
        }

        .detail {
          transition: transform 1s, opacity 1s;
          transition-timing-function: ease-out;
          transform: translateY(-100%);
          opacity: 0;
        }

        .bottom-panel {
          transition: transform 0.5s, opacity 1s;
          transition-timing-function: ease-out;
          transform: translateY(100%);
          opacity: 0;
        }
      }

      .loading-progress {
        display: block;
      }
    }

    &.loaded {
      .right-wrap {
        overflow: hidden;
      }

      .detail {
        transition: transform 1s, opacity 1s;
        transition-timing-function: ease-out;
      }

      .bottom-panel {
        transition: transform 0.5s, opacity 1s;
        transition-timing-function: ease-out;
      }

      .loading-progress {
        opacity: 0;
      }
    }

    .tooltip::before {
      opacity: 0.75;
      //border-radius: 2px;
      box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.65);
      color: #333;
      background: #fff;

      content: attr(data-tip);
      font-size: 10px;
      position: absolute;
      z-index: 999;
      white-space: nowrap;
      bottom: 999999px;
      display: none;
      left: 50%;
      padding: 0 7px;
      line-height: 24px;
      height: 24px;
      transition: opacity 0.4s ease-out;
    }

    .tooltip:hover::before {
      opacity: 0.75;
      bottom: -30px;
      left: 0;
      display: inherit;
    }
  }

  .align-fix {
    display: inline-block;
    width: 0;
    height: 100%;
    vertical-align: middle;
  }

  .blur {
    filter: url(https://atp.alicdn.com/tmse/15/dpl/blur.svg#blur); /* FireFox, Chrome, Opera */
    -webkit-filter: blur(10px); /* Chrome, Opera */
    -moz-filter: blur(10px);
    -ms-filter: blur(10px);
    filter: blur(10px);
    filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius=10, MakeShadow=false); /* IE6~IE9 */
  }
}

.attach-mods {
  td {
    vertical-align: middle;
  }
}

.module-list-empty {
  text-align: center;
  padding: 30px 50px;
}

.mod-to-add-local, .mod-to-add {
  margin-top: 15px;
}

#paste_catcher {
  display: none;
}

.major-mark {
  position: absolute;
  top: 0;
}

.complex {
  display: none;
}

@media screen and (max-width: 710px) {
  .module-list {
    .module {
      width: 100%;
      padding-right: 0;
    }
  }
}

@media screen and (min-width: 711px) and (max-width: 1279px) {
  .module-list {
    .module {
      padding-right: 10px;

      .square-0 {
        display: none;
      }

      .square-3 {
        padding-left: 0;

        .right-wrap {
          border-left: none;
        }
      }

      &:nth-child(2n) {
        padding-right: 0;
      }
    }
  }
}

@media screen and (min-width: 1280px) and (max-width: 1910px) {
  .module-list {
    .module {
      &:nth-child(2n) {
        padding-right: 0;
      }
    }
  }
}

@media screen and (min-width: 1911px) {
  .module-list {
    .module {
      width: 33.33333333%;
      padding-right: 8px;

      &:nth-child(3n) {
        padding-right: 0;
      }

      .square-3 .bottom-panel .actions .btn {
        padding: 4px 8px;
      }
    }
  }
}
