.pisell-scroll-view {
  position: relative;
  overflow: hidden;

  &-viewport {
    width: 100%;
    height: 100%;
    box-sizing: border-box;

    // 隐藏滚动条样式
    &--hide-scrollbar {
      -ms-overflow-style: none !important;
      /* IE and Edge */
      scrollbar-width: none !important;
      /* Firefox */

      &::-webkit-scrollbar {
        display: none !important;
      }
    }

    // 内置滚动条样式
    &[data-scrollbar-style='thin'] {
      &::-webkit-scrollbar {
        width: 8px;
        height: 8px;
      }

      &::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 4px;

        &:hover {
          background-color: rgba(0, 0, 0, 0.3);
        }
      }

      &::-webkit-scrollbar-track {
        background-color: transparent;
      }
    }

    &[data-scrollbar-style='minimal'] {
      &::-webkit-scrollbar {
        width: 4px;
        height: 4px;
      }

      &::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.15);
        border-radius: 2px;

        &:hover {
          background-color: rgba(0, 0, 0, 0.25);
        }
      }
    }

    &[data-scrollbar-style='rounded'] {
      &::-webkit-scrollbar {
        width: 12px;
        height: 12px;
      }

      &::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        border: 2px solid transparent;
        background-clip: content-box;

        &:hover {
          background-color: rgba(0, 0, 0, 0.3);
        }
      }
    }
  }

  // 滚动按钮容器
  &-button-wrapper {
    position: absolute;
    z-index: 10;
    pointer-events: none; // 允许点击穿透到内容，具体按钮开启 pointer-events: auto

    &--top,
    &--bottom,
    &--left,
    &--right {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    // 内部定位
    &--inside-top {
      top: 0;
      left: 0;
      right: 0;
      padding: 8px;
    }

    &--inside-bottom {
      bottom: 0;
      left: 0;
      right: 0;
      padding: 8px;
    }

    &--inside-left {
      top: 0;
      bottom: 0;
      left: 0;
      padding: 8px;
    }

    &--inside-right {
      top: 0;
      bottom: 0;
      right: 0;
      padding: 8px;
    }

    // 外部定位 (通过 margin 或 transform 处理)
  }

  &-button {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;

    &:hover {
      background: #f5f5f5;
    }

    &:active {
      transform: scale(0.95);
    }

    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      box-shadow: none;
    }

    &--circle {
      border-radius: 50%;
      width: 32px;
      height: 32px;
    }

    &--square {
      border-radius: 4px;
      width: 32px;
      height: 32px;
    }

    &--minimal {
      background: transparent;
      box-shadow: none;

      &:hover {
        background: rgba(0, 0, 0, 0.05);
      }
    }

    &--floating {
      background: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(4px);
    }
  }
}