.yc-upload-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  .yc-upload {
    cursor: pointer;
    max-width: 100%;
    .yc-upload-tip {
      max-width: 100%;
      color: var(--color-text-3);
      font-size: 12px;
      line-height: 1.5;
    }
    .yc-upload-button {
      display: flex;
      flex-direction: column;
      gap: 4px;
      .yc-button {
        width: fit-content;
        max-width: 100%;
      }
    }
    .yc-upload-drag {
      width: 100%;
      padding: 50px 0;
      background-color: var(--color-fill-1);
      border: 1px dashed var(--color-neutral-3);
      border-radius: var(--border-radius-small);
      color: var(--color-text-1);
      transition: all 0.2s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      &:not(.yc-upload-drag-disabled):hover {
        background-color: var(--color-fill-3);
        border-color: var(--color-neutral-4);
      }
      .yc-upload-drag-icon {
        color: var(--color-text-2);
        .yc-icon {
          margin-bottom: 24px;
          font-size: 14px;
        }
      }
      .yc-upload-drag-text {
        color: var(--color-text-1);
        font-size: 14px;
        line-height: 1.5;
      }
    }
  }
}
// list-type
.yc-upload-list-type-text,
.yc-upload-list-type-picture {
  width: 100%;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  .yc-upload-list-item {
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    .yc-upload-list-item-content {
      overflow: hidden;
      flex: 1;
      width: 100%;
      padding: 8px 10px 8px 12px;
      background-color: var(--color-fill-1);
      transition: background-color 0.1s cubic-bezier(0, 0, 1, 1);
      font-size: 14px;
      display: flex;
      align-items: center;
      .yc-upload-list-item-thumbnail {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        margin-right: 12px;
        img {
          width: 100%;
          height: 100%;
        }
      }
      .yc-upload-list-item-name {
        flex: 1;
        overflow: hidden;
        color: var(--color-text-1);
        font-size: 14px;
        line-height: 1.4286;
        display: flex;
        align-items: center;
        gap: 12px;
        .yc-upload-list-item-file-icon {
          color: rgb(var(--primary-6));
          font-size: 16px;
          display: flex;
          justify-content: center;
          align-items: center;
        }
        .yc-upload-list-item-name-link {
          cursor: pointer;
          color: rgb(var(--link-6));
        }
      }
    }
    .yc-upload-list-item-operation {
      color: var(--color-text-2);
      font-size: 12px;
    }
  }
}
.yc-upload-list-type-picture-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  .yc-upload-list-picture {
    position: relative;
    width: 80px;
    height: 80px;
    overflow: hidden;
    line-height: 80px;
    text-align: center;
    border-radius: var(--border-radius-small);
    transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
    &:hover .yc-upload-list-picture-mask {
      opacity: 1;
    }
    img {
      width: 100%;
      height: 100%;
    }
    .yc-upload-list-picture-mask {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      color: var(--color-white);
      font-size: 16px;
      line-height: 80px;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.1s cubic-bezier(0, 0, 1, 1);
      .yc-upload-list-picture-operation {
        width: 100%;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        .yc-upload-icon {
          cursor: pointer;
        }
      }
    }
  }
  .yc-upload-picture-card {
    min-width: 80px;
    height: 80px;
    background: var(--color-fill-2);
    border: 1px dashed var(--color-neutral-3);
    border-radius: var(--border-radius-small);
    color: var(--color-text-2);
    transition: all 0.1s cubic-bezier(0, 0, 1, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    &:not(.yc-upload-picture-card-disabled):hover {
      color: var(--color-text-2);
      background-color: var(--color-fill-3);
      border-color: var(--color-neutral-4);
    }
  }
}
// 禁用
.yc-upload-disabled {
  .yc-upload {
    cursor: not-allowed;
    .yc-upload-drag,
    .yc-upload-picture-card {
      border-color: var(--color-text-4);
      .yc-upload-drag-text,
      .yc-upload-tip,
      .yc-upload-drag-icon,
      .yc-upload-picture-card-text {
        color: var(--color-text-4);
      }
    }
  }
}
