.listContainer {
  margin: 10px 0;
  max-height: calc(var(--window-page-lesson-height) - 204px);
  // overflow-x: auto;

  &.listNoMusic {
    max-height: calc(var(--window-page-lesson-height) - 150px);

    .listSection {
      min-height: calc(var(--window-page-lesson-height) - 150px);
    }
  }

  .listSection {
    min-height: calc(var(--window-page-lesson-height) - 204px);
  }

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

  .list {
    padding: 10px 0;
    text-align: center;

    & > div {
      margin-bottom: 20px;

      &:last-child {
        margin-bottom: 0;
      }
    }
  }
}

.trainEditModal {
  width: 524px;
}

.itemModal {
  display: flex;
  align-items: center;
  margin: 0 17px 20px;

  .itemCover {
    position: relative;
    width: 118px;
    height: 66px;
    margin-right: 10px;
    border-radius: 12px;
    border: 1px solid #eff0f2;
    overflow: hidden;
    .statusCon {
      position: absolute;
      top: 2px;
      left: 2px;
      z-index: 9;
      display: flex;
      align-items: center;
      transform: scale(0.8);
      .status {
        background: rgba(0, 0, 0, 0.5);
        border-radius: 4px;
        font-weight: 600;
        font-size: max(12px, 11Px);
        color: #ffffff;
        padding: 2px 6px;
      }
    }
    :global {
      .n-image {
        width: 118px;
        height: 66px;
      }
    }

    img {
      width: 100%;
      height: fit-content;
    }

    &:hover {
      .function {
        opacity: 1;
        transition: opacity 0.2s ease;
      }
    }
  }

  .function {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    opacity: 0;
    transition: opacity 0.2s ease;

    .iconLook,
    .iconAdd {
      cursor: pointer;
      width: 27px;
      height: 27px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .iconLook {
      &::before {
        display: inline-block;
        content: '';
        width: 15px;
        height: 15px;
        background: url('../../../../images/icon-look.png') no-repeat center;
        background-size: contain;
      }
    }

    .iconAdd {
      &::before {
        display: inline-block;
        content: '';
        width: 12px;
        height: 12px;
        background: url('../../../../images/icon-add.png') no-repeat center;
        background-size: contain;
      }
    }
  }

  .itemContent {
    max-width: 158px;
    text-align: left;
    flex: 1;

    .itemTitle {
      font-weight: 600;
      font-size: max(12px, 11Px);
      color: #000000;
      line-height: 17px;

      &:hover {
        color: #1677ff;
        cursor: pointer;
      }
    }

    .itemSubject {
      padding-top: 7px;
      width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 11px;
      color: #777777;
      line-height: 15px;
    }

    .updateTime {
      font-size: max(12px, 10Px);
      color: #777777;
      padding-top: 2px;
    }

    .other {
      display: flex;
      justify-content: space-between;
      align-items: center;
      span {
        font-size: max(12px, 10Px);
        color: #777777;
      }
    }

    .addCourseBtn {
      display: inline-block;
      padding: 2px 6px;
      background: #e8f4ff;
      border-radius: 2px;
      font-weight: 500;
      font-size: max(10px, 10Px);
      color: #0378ec;
      cursor: pointer;
    }
  }
}
