/**
 * 与 [小裂变官网](https://www.xiaoliebian.com/) header-footer 公共弹窗一致：场景解决方案 changjing
 */
#image-modal.modal {
  display: none;
  position: fixed;
  z-index: 100100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

#image-modal.modal.is-open {
  display: block;
}

#image-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

#image-modal .modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 96vw);
  height: min(560px, 85vh);
  max-height: 85vh;
  border-radius: 30px;
  overflow: hidden;
}

#image-modal .modal-body {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
}

#image-modal .modal-body .modal-qr {
  position: absolute;
  right: 92px;
  top: 193px;
  width: 225px;
  height: 225px;
}

#image-modal .modal-body .modal-qr-box {
  position: absolute;
  right: 87px;
  top: 188px;
  width: 235px;
  height: 235px;
  background-color: #ffffff;
  z-index: 0;
}

#image-modal .modal-body .modal-qr-border {
  position: absolute;
  right: 87px;
  top: 188px;
  width: 235px;
  height: 235px;
  z-index: 9;
  pointer-events: none;
}

#image-modal .modal-body .modal-qr-line {
  position: absolute;
  width: 235px;
  right: 87px;
  top: 188px;
  z-index: 100;
  pointer-events: none;
  animation: xlb-changjing-scan 6.8s linear infinite;
}

#image-modal .modal-close {
  position: absolute;
  top: 33px;
  right: 33px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  z-index: 110;
  border: 0;
  padding: 0;
  background: transparent;
}

@keyframes xlb-changjing-scan {
  0% {
    top: 188px;
  }
  50% {
    top: 423px;
  }
  100% {
    top: 188px;
  }
}

#image-modal .modal-body-changjing {
  background: url("https://www.xiaoliebian.com/img/qr/changjing.png") no-repeat scroll center center / contain;
}

@media screen and (max-width: 1650px) {
  #image-modal .modal-content {
    width: min(773px, 96vw);
    height: min(481px, 82vh);
  }

  #image-modal .modal-close {
    top: 20px;
    right: 20px;
  }

  #image-modal .modal-body .modal-qr {
    right: 80px;
    top: 166px;
    width: 193px;
    height: 193px;
  }

  #image-modal .modal-body .modal-qr-box {
    right: 75px;
    top: 161px;
    width: 202px;
    height: 202px;
  }

  #image-modal .modal-body .modal-qr-border {
    right: 75px;
    top: 161px;
    width: 202px;
    height: 202px;
  }

  #image-modal .modal-body .modal-qr-line {
    width: 202px;
    right: 75px;
    top: 161px;
  }

  @keyframes xlb-changjing-scan {
    0% {
      top: 161px;
    }
    50% {
      top: 363px;
    }
    100% {
      top: 161px;
    }
  }
}

@media screen and (max-width: 1420px) {
  #image-modal .modal-content {
    width: min(669px, 96vw);
    height: min(416px, 80vh);
  }

  #image-modal .modal-close {
    top: 18px;
    right: 18px;
  }

  #image-modal .modal-body .modal-qr {
    right: 69px;
    top: 143px;
    width: 167px;
    height: 167px;
  }

  #image-modal .modal-body .modal-qr-box {
    right: 64px;
    top: 139px;
    width: 174px;
    height: 174px;
  }

  #image-modal .modal-body .modal-qr-border {
    right: 64px;
    top: 139px;
    width: 174px;
    height: 174px;
  }

  #image-modal .modal-body .modal-qr-line {
    width: 174px;
    right: 64px;
    top: 139px;
  }

  @keyframes xlb-changjing-scan {
    0% {
      top: 139px;
    }
    50% {
      top: 314px;
    }
    100% {
      top: 139px;
    }
  }
}
