.image-cropper-container {
  position: relative;
  overflow: hidden;
  background-color: #1e1e1e;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.image-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  .hint-text {
    margin-top: 10px;
    color: #888;
    font-size: 12px;
  }
}

.crop-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;

  .crop-image {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: center;
    cursor: move;
    max-width: none; // 避免图片被容器限制
  }

  .crop-area {
    position: absolute;
    border: 2px solid #1890ff;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    pointer-events: none;
  }

  .crop-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background-color: rgba(30, 30, 30, 0.8);
    display: flex;
    flex-direction: column;
    gap: 12px;

    .core-controls {
      display: flex;
      justify-content: center;
    }

    .zoom-controls,
    .rotation-controls,
    .action-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .action-controls {
      margin-top: 6px;

      button {
        min-width: 80px;
      }
    }
  }
}

.operation-hints {
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(30, 30, 30, 0.8);
  border-radius: 4px;
  color: #d9d9d9;

  h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1890ff;
  }

  ul {
    margin: 0;
    padding-left: 20px;

    li {
      margin-bottom: 5px;

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

:host ::ng-deep .ant-slider-track {
  background-color: #1890ff;
}

:host ::ng-deep .ant-slider-handle {
  border-color: #1890ff;
}

:host ::ng-deep .ant-upload {
  display: inline-block;
}
