.compare-container {
  position: relative;
  overflow: hidden;
  user-select: none;
}

.screen-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  -webkit-user-drag: none;
}

.top-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 手柄永远垂直居中 */
.handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #007aff;
  border-radius: 50%;
  cursor: ew-resize;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 10px 30px #007aff80;
}

.handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.12);
}

.line {
  position: absolute;
  width: 6px;
  box-shadow: 0 10px 30px #007aff80;
  background: #007aff;
  height: 100vh;
  z-index: 0;
}

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.screen img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  -webkit-user-drag: none;
}


.handle-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: #007aff;
  border-radius: 50%;
  animation: rippleEffect 1s cubic-bezier(0, 0, .2, 1) infinite;
  --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
  --tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
  translate: var(--tw-translate-x) var(--tw-translate-y);
}

@keyframes rippleEffect {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.apps-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.svg-center {
  width: 22.875rem;
  max-width: 100%;
}