

.card-section-content {
  border-radius: 14px;
  background: linear-gradient(270deg, #DBF1FF 0%, #E7F9FF 100%) !important;

  // :global {
  //   .n-card-cover {
  //     border-radius: 14px !important;
  //   }
  // }



  // 图片禁止拖动
  img {
    -moz-user-select: none;
    /* 火狐浏览器 */
    -webkit-user-drag: none;
    /* 谷歌、Safari和Opera浏览器 */
    -webkit-user-select: none;
    /* 谷歌、Safari和Opera浏览器 */
    -ms-user-select: none;
    /* IE10+浏览器 */
    user-select: none;
    /* 通用 */
    -webkit-touch-callout: none;
    /* iOS Safari */
  }

  &.isActive {
    border: 2px solid rgba(0, 122, 254, 1) !important;
  }

}

.card-section {
  position: relative;
  box-sizing: border-box;
  width: 300px;
  height: 220px;
  border-radius: 14px;
  background: linear-gradient(270deg, #DBF1FF 0%, #E7F9FF 100%) !important;
  display: inline-flex;
  transition: all .3s ease-in-out;

  :global {
    .n-card--bordered {
      border: 1Px solid rgba(202, 228, 244, 1) !important;

      &:hover {
        border: 1Px solid rgba(0, 122, 254, 1) !important;
      }
    }
  }

  &.isError {
    :global {
      .n-card--bordered {
        border: 1Px solid #F51C08 !important;

        &:hover {
          border: 1Px solid #F51C08 !important;
          box-shadow: 0 0 0 2px rgba(245, 28, 8, 0.2);
        }
      }
    }
  }

  &.cardDrag {
    cursor: move;

    :global {
      .n-image:not(.n-image--preview-disabled) {
        cursor: move !important;
      }
    }
  }

  &.course {
    cursor: pointer;
  }



  // 鼠标经过时样式
  &:hover,
  &.showAddBtn {
    transform: scale(1.01);
    transition: all .3s ease-in-out;


    .addBtn {
      display: block;
      opacity: 1;
      transition: all .3s ease-in-out;
    }
  }


  // 封面样式
  .cover {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 14px 14px 0 0;
    overflow: hidden;

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


  :global {
    .n-card__footer {
      padding: 10px 12px;
    }

    .n-card-cover {
      // height: 170px;
      position: relative;
      flex: 1 auto;
    }
  }

  .audioPlayTypeSection {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 0;
    gap: 8px 10px !important;

    &.audioPlayTypeSmall {
      .iconType {
        display: inline-block;
        width: 22px;
        height: 22px;
      }

    }

    .iconType {
      display: inline-block;
      width: 26px;
      height: 26px;
    }

    .iconPlay {
      background: url('../../common/images/icon-play-default.png');
      background-size: contain;

      &:hover {
        background: url('../../common/images/icon-play-active.png');
        background-size: contain;
      }
    }

    .iconSing {
      background: url('../../common/images/icon-sing-default.png');
      background-size: contain;

      &:hover {
        background: url('../../common/images/icon-sing-active.png');
        background-size: contain;
      }
    }
  }

  .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    // padding: 3px 0;
  }

  .title {
    display: flex;
    align-items: center;

    .titleType {
      width: 13Px;
      height: 13Px;
      margin-top: 1px;
      flex-shrink: 0;
    }

    .titleContent {
      padding-left: 6px;
      font-size: max(16px, 12Px);
      max-width: 160px;
      color: #131415;
      font-weight: 600 !important;
      flex: 1;
    }
  }

  // 收藏按钮
  .btnGroup {
    position: absolute;
    right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;

    :global {
      .n-spin-content {
        display: flex;
        align-items: center;
      }
    }
  }


  .btnItem+.btnItem {
    margin-left: 12px;
  }

  .iconCollect {
    width: 34px;
    height: 34px;
    // background: url('../../common/images/icon-collect-default.png') no-repeat center;
    // background-size: contain;
    // position: absolute;
    // right: 0;
    transition: transform .2s ease;

    &:hover {
      transform: scale(1.1);
      transition: transform .2s ease;
    }

    &.isCollect {
      cursor: pointer;
    }
  }

  .iconDiv {
    right: 12px;
  }

  // 精选
  .iconSelected {
    background: url('../../common/images/icon-selected.png') no-repeat center;
    background-size: contain;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 9;
    width: 58px;
    height: 29px;
    border-top-left-radius: 14px;
  }

  // 添加
  .addBtn {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: max(16px, 12Px);
    font-weight: 600 !important;
    height: 32px;
    border-radius: 8px;
    // display: none;
    // opacity: 0;
    z-index: 99;
    transition: all .3s ease-in-out;

    &.addBtnDisabled {
      background-color: #fff;
      color: #999;
      font-weight: bold !important;
      --n-border: 1px solid #fff !important;
      --n-border-hover: 1px solid #fff !important;
      --n-border-pressed: 1px solid #fff !important;
      --n-border-focus: 1px solid #fff !important;
      --n-border-disabled: 1px solid #fff !important;
      --n-opacity-disabled: 1 !important;
    }
  }


  .offShelfBg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    .offShelfTips {
      font-size: 22px;
      font-weight: 600;
      color: #FFFFFF;
      line-height: 30px;
      padding-bottom: 32px;
    }

    .offShelfBtn {
      height: 44px;
      border-radius: 10px;
      min-width: 124px;
    }
  }
}