.list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.assemble {
  width: 226px;
  border-radius: 4px;
  border: solid 1px var(--main-item-hr-color);
  box-shadow: 0 1px 2px 0 var(--main-item-hr-color);
  margin-bottom: 10px;
  .category {
    height: 2rem;
    padding: 0px 0.5rem;
    line-height: 2rem;
  }

  @for $var from 0 to 40 {
    .count-#{$var} {
      .item:not(.empty):nth-child(n + #{$var + 1}) {
        display: none;
      }
    }
  }
}

.item {
  display: flex;
  padding-top: 0.5rem;
  width: 226px;
  &.first {
    padding-top: 0;
    main {
      padding: 0.5rem;
    }
    img {
      width: 100%;
      display: block;
      border-radius: 0px !important ;
    }
    flex-direction: column;
  }
  &.empty {
    padding: 0;
  }
  .icon {
    margin-left: 0.5rem;
  }
  main {
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem; 
    flex: 1;
    overflow: hidden;

    .info {
      display: flex;
      flex-direction: column;
      flex: 1;
      overflow: hidden;

      .name {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
      }

      .slogan {
        color: gray;
        min-height: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }

    .control {
      display: none;
    }

    &:hover,
    &.hover {
      background-color: var(--main-item-bg-color-hover);
      border-bottom-color: transparent;

      .control {
        display: flex;
        align-items: center;
      }
    }
    
  }

}