body {
  --primary-blue-color: #7064ff;
  --primary-black-color: #2e2e2e;
  --primary-deep-blue-color: #564cc9;
  --primary-bg-color: #080429;
}

html,
body {
  font-family: "Open Sans";
  background: #080429;
  transition: all 0.3s ease;
  overflow-x: hidden;
}

body::-webkit-scrollbar-thumb {
  background-color: #4caf50;
}

body::-webkit-scrollbar {
  display: none;
  width: 8px;
}

/* 设置滚动条轨道透明 */
body::-webkit-scrollbar-track {
  display: none;
  background-color: transparent; /* 轨道透明 */
}

main h2 {
  margin-bottom: 15px;
  text-align: center;
  font-size: 38px;
  font-weight: 700;
  line-height: 52px;
  color: #fff;
}

main .title-desc {
  max-width: 826px;
  margin: 0 auto 45px;
  font-size: 16px;
  text-align: center;
  line-height: 22px;
  color: #fff;
}

@media (max-width: 768px) {
  main h2 {
    margin-bottom: 11px;
    font-size: 26px;
    line-height: 35px;
  }

  main .title-desc {
    margin: 0 auto 25px;
    padding: 0 10px;
    font-size: 14px;
    line-height: 19px;
  }
}

/* Common Start */
input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type="checkbox"]:checked {
  background-color: #007bff;
  border-color: #007bff;
}

input[type="checkbox"]:checked::after {
  position: absolute;
  display: block;
  width: 3px;
  height: 5px;
  content: "";
  border: solid #fff;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg) scale(1.5);
}

.header-content-bg {
  top: 62px;
}

@media (max-width: 1024px) {
  .header-content-bg {
    top: 68px;
  }
  .nav-bottom-functions {
    top: 0;
  }
}
  
.product-nav .right-item .m-hidden a,
.product-nav .right-item .m-hidden .hover-icon {
  display: none;
}

@keyframes gradientAnimation {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

.product-nav .right-item li.m-hidden {
  width: 150px;
  height: 32px;
  cursor: pointer;
  margin-right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  color: #2D2D2D;
  font-size: 14px;
  font-weight: 700;
  transition: all .3s;
  animation: gradientAnimation 3s infinite linear;
  background-image: linear-gradient(67.98deg, #4C17D2 0%, #7635FF 32.05%, #E339FF 61.14%, #F6B451 97.18%);
  background-size: 200% 200%;
}

.product-nav .right-item li.m-hidden .upload-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
}

.product-nav .right-item li.m-hidden .upload-label svg {
  color: #fff;
  width: 15px;
  height: 15px;
  margin-right: 8px;
}


.product-nav .right-item li.m-hidden .upload-label span {
  vertical-align: middle;
}

.product-nav .right-item li.m-hidden .icon {
  display: none;
}

.product-nav .right-item li.m-hidden .hover-icon {
  display: block;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background-color: #fff;
  cursor: ew-resize;
  opacity: 0;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transition: none;
}

.slider-handle.loaded {
  opacity: 1;
  transition: all 1s ease;
}

.move-icon {
  position: absolute;
  bottom: 67px;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translateX(-50%);
  cursor: pointer;
  background: url(https://images.anyrecover.com/anyrecoveren/themes/anyrecover/public/assets/images/photo_recovery/move-icon.svg);
  background-size: contain;
}

.canvas-container {
  position: relative;
  width: 100vw;
  min-width: 1920px;
  height: 962px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.processed-image,
.original-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: all 1s ease;
}

.processed-image {
  z-index: 1;
  clip-path: inset(0 0 0 50%);
  transition: none;
}

.processed-image.loaded {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s ease;
}

.original-image {
  z-index: 0;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #fff;
  z-index: 2;
}

@media (max-width: 1204px) {
  .image-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(8, 4, 41, 0) 64.6%, #080429 100%);
  }
}

@media (max-width: 768px) {
  .move-icon {
    width: 40px;
    height: 40px;
    bottom: 56px;
  }
}

@media (max-width: 554px) {
  .product-nav .right-item li.m-hidden {
    display: none;
  }
}

/* Common End */

/* Header Start */
.header-nav .header-content {
  height: 62px;
}

.product-nav {
  height: 62px;
}

/* Header End */

/* Banner Start  */
.banner .shake-animation {
  animation: headShake 1s ease-in-out;
}

.banner .brand-intro {
  animation-name: slideUp;
  animation-delay: 0.2s;
}

.banner .title {
  animation-name: slideUp;
  animation-delay: 0.4s;
}

.banner .desc {
  animation-name: slideUp;
  animation-delay: 0.6s;
}

.banner .upload-container {
  animation-name: slideUp;
  animation-delay: 0.8s;
}

.banner .brand-intro,
.banner .title,
.banner .desc,
.banner .upload-container,
.banner .app-download-container {
  opacity: 0; /* 初始隐藏 */
  transform: translateY(20px); /* 初始位置下移 */
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

.banner {
  position: relative;
}

.banner .slider-handle {
  width: 4px;
}

.banner .canvas-wrap {
  position: relative;
  z-index: 0;
}

.banner .move-icon {
  bottom: 284px;
  width: 62px;
  height: 62px;
}

.banner .image-wrapper .original-image.mobile {
  display: none;
}


@keyframes slideOnce {
  from {
    left: 0;
    opacity: 0;
  }
  to {
    left: 30%;
    opacity: 1;
  }
}

.banner .before-label,
.banner .after-label {
  position: absolute;
  top: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  width: 70px;
  height: 30px;
  border-radius: 3px;
  background: #0000004d;
  pointer-events: none;
}

.banner .before-label {
  right: calc(100% + 10px); /* 滑竿左边，稍微偏移10px */
}

.banner .after-label {
  left: calc(100% + 10px); /* 滑竿右边，稍微偏移10px */
}

.banner .no-select {
  user-select: none;
}

.banner .right {
  position: absolute;
  right: 16.2%;
  top: 95px;
  width: 546px;
  color: #fff;
}

.banner .brand-intro {
  display: flex;
  align-items: center;
}

.banner .right .brand-intro h1 {
  margin-left: 13px;
  font-size: 22px;
  font-weight: 600;
  line-height: 22px;
  color: #fff;
}

.banner .title {
  font-weight: 700;
  font-size: 56px;
  line-height: 76px;
}

.banner .right .desc {
  margin-top: 12px;
  padding-right: 10px;
  font-size: 16px;
  line-height: 22px;
}

.upload-container {
  position: relative;
  width: 100%;
  padding: 60px 53px 32px 46px;
  border: 2px dashed #ccc;
  color: #fff;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin: 40px auto 0;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.upload-container:hover {
  background: rgba(255, 255, 255, 0.3);
}

.upload-container input[type="file"] {
  display: none;
}

.upload-container .upload-label {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  cursor: pointer;
  z-index: 0;
}

.upload-container .upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 211px;
  height: 60px;
  margin: 0 auto;
  color: var(--primary-blue-color);
  background: rgba(255, 255, 255);
  border-radius: 10px;
}

.upload-container .upload-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.upload-container .upload-btn img {
  margin-right: 10px;
}

.upload-container .drop {
  margin: 24px auto 64px;
  font-size: 16px;
  line-height: 22px;
  color: #fff;
}

.upload-container .terms {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 20px;
  color: #bbb8c6;
  font-size: 14px;
  z-index: 1;
}

.upload-container .terms a {
  color: #fff;
  text-decoration: underline;
}

.upload-container .terms a:hover {
  text-decoration: underline;
}

.upload-container .terms input {
  width: 18px;
  height: 18px;
  border: 1px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  margin-right: 9px;
  background-color: #0000004d;
  position: relative; /* 必须确保相对定位 */
  appearance: none; /* 隐藏默认复选框样式 */
}

.banner .app-download-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  animation-name: slideUp;
  animation-delay: 1s;
}

.banner .app-download-container .item {
  position: relative;
  flex: 1;
  height: 62px;
  border: 1px solid #FFFFFF;
  background-size: contain;
  border-radius: 14px;
}


.banner .app-download-container .item::before {
  position: absolute;
  content: '';
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 14px;
  background: var(--primary-bg-color);
  z-index: -1;
}

.banner .app-download-container .google-pay {
  background: url(../png/google-pay.png) no-repeat center center;
}

.banner .app-download-container .apple-store {
  background: url(../png/app-store.png) no-repeat center center;
}

.banner .app-download-container .production{
  width: 50%;
  flex: none;
  line-height: 60px;
  font-size: 28px;
  color: #fff;
  text-align: center;
  animation: gradientAnimation 3s infinite linear;
  background-image: linear-gradient(67.98deg, #4C17D2 0%, #7635FF 32.05%, #E339FF 61.14%, #F6B451 97.18%);
  background-size: 200% 200%;
  font-weight: 600;
  border: none;
  border-radius: 10px;
}

@media (max-width: 1880px) {
  .banner .right {
    right: 100px;
  }
}

@media (max-width: 1300px) {
  .banner .right {
    right: 50px;
  }
}

@media (max-width: 1204px) {
  .banner {
    height: 245.733vw;
    max-height: 850px;
  }

  .banner .canvas-wrap {
    position: relative;
    max-height: 650px;
  }
  .banner .canvas-container {
    position: unset;
    height: auto;
    min-width: auto;
    width: 100vw;
    aspect-ratio: 375 /537;
  }

  .banner .image-wrapper .original-image.mobile {
    display: block;
  }
  .banner .image-wrapper .processed-image.pc {
    display: none;
  }
  .banner .right {
    top: 404px;
    width: 92%;
    margin: 0 auto;
    right: 50%;
    max-width: 800px;
    transform: translateX(50%);
  }
  .banner .slider-handle.show {
    left: 50%;
  }
  .banner .brand-intro {
    justify-content: center;
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 30px;
  }

  .banner .brand-intro img {
    width: 32px;
  }

  .banner .title {
    font-size: 28px;
    line-height: 38px;
    text-align: center;
  }
  .banner .right .desc {
    margin-top: 14px;
    padding-right: 0;
    font-size: 15px;
    line-height: 20px;
    text-align: center;
  }

  .banner .slider-handle {
    width: 0;
    background-color: transparent;
    border: 1px solid;
    border-image-source: linear-gradient(
      180deg,
      #ffffff 73.79%,
      rgba(153, 153, 153, 0) 90.56%
    );
    border-image-slice: 1; /* 需要设置 border-image-slice 否则不会应用渐变 */
  }

  .banner .move-icon {
    bottom: 300px;
    width: 40px;
    height: 40px;
  }

  .banner .upload-container {
    margin-top: 25px;
    padding: 36px 33px 23px 29px;
  }

  .upload-container .drop {
    display: none;
    margin: 19px auto 39px;
  }
  .upload-container .terms {
    position: relative;
    justify-content: center;
    width: max-content;
    margin: 30px auto 0;
    padding-left: 12px;
    text-align: left;
  }

  .upload-container .terms input {
    position: absolute;
    top: 4px;
    left: -12px;
    min-width: 16px;
    min-height: 16px;
  }
}

@media (max-width: 768px) {
  .upload-container .terms {
    width: auto;
  }
  .banner .move-icon {
    bottom: 53.333vw;
  }
  .banner .app-download-container {
    margin-top: 24px;
  }
  .banner .app-download-container .item {
    min-width: 200px;
  }

  .banner .app-download-container .production{
    font-size: 18px;
  }
}



/* Banner Start  */

/* Best Image Enhancer Start */

.best-enhancer {
  position: relative;
}

.best-enhancer .container {
  position: relative;
  top: -116px;
  width: 98%;
  max-width: 1800px;
  border-radius: 30px;
  padding: 56px 0 86px;
  background: var(--primary-deep-blue-color);
}

.best-enhancer .canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 380 / 360;
  border-radius: 20px;
  overflow: hidden;
}

.best-enhancer::before {
  position: absolute;
  content: "";
  top: -10px;
  height: 80px;
  left: 0;
  right: 0;
  filter: blur(4px);
  background: var(--primary-bg-color);
  z-index: 0;
}

.best-enhancer .enhancer-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0 14px;
}

.best-enhancer .enhancer-list .item {
  width: 32%;
  max-width: 380px;
}

.best-enhancer .item .item-desc {
  text-align: left;
  color: #fff;
}

.best-enhancer .item .item-desc .title {
  margin-bottom: 12px;
  margin-top: 23px;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.best-enhancer .item .item-desc .desc {
  font-weight: 300;
  font-size: 14px;
  line-height: 19px;
}

@media (max-width: 1204px) {
  .best-enhancer {
    margin: 0 auto;
  }
  .best-enhancer .enhancer-list {
    padding: 14px;
  }
  .best-enhancer .container {
    top: 0;
    margin-top: 60px;
    padding-bottom: 0;
  }

  .best-enhancer::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .best-enhancer .container {
    max-width: 92%;
    background: transparent;
  }

  .best-enhancer .container .enhancer-list {
    flex-wrap: wrap;
    gap: 28px;
    padding: 26px 14px 33px;
    border-radius: 15px;
    background: var(--primary-blue-color);
  }

  .best-enhancer .container .enhancer-list .item {
    display: flex;
    flex-direction: column-reverse;
    width: 98%;
    max-width: 460px;
  }

  .best-enhancer .item .item-desc .title {
    margin: 0;
    margin-bottom: 5px;
    font-size: 18px;
    line-height: 24px;
  }

  .best-enhancer .item .item-desc .desc {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 17px;
  }
}

/* Best Image Enhancer End */

/* Super Image Enhancer Stat  */
.super-enhancer {
  position: relative;
  margin-top: -57px;
  padding-bottom: 232px;
}

.super-enhancer::before,
.super-enhancer::after {
  position: absolute;
  content: "";
  height: 676px;
  left: 0;
  right: 0;
  background-size: contain;
  z-index: 0;
}

.super-enhancer::before {
  top: 0;
  background: url(https://images.anyrecover.com/anyrecoveren/assets/overview/photo_restoration_online/liner-bg.svg)
    no-repeat;
  background-size: contain;
}

.super-enhancer::after {
  height: 486px;
  bottom: 0;
  background: url(https://images.anyrecover.com/anyrecoveren/assets/overview/photo_restoration_online/bg-bottom.svg)
    no-repeat;
  background-size: cover;
}

.super-enhancer .super-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 80px;
  z-index: 1;
}

.super-enhancer .super-container .enhancer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 45px;
}

.super-enhancer .super-container .item {
  display: flex;
  gap: 36px;
  height: 300px;
  border: 1px solid #7064ff;
  border-radius: 20px;
  background: #140e414d;
}

.super-enhancer .super-container .item.reverse {
  flex-direction: row-reverse;
  gap: 33px;
}

.super-enhancer .super-container .item:nth-child(2) {
  background: #340e414d;
  border: 1px solid #ff64e8;
}

.super-enhancer .super-container .item:nth-child(3) {
  background: #39410e42;
  border: 1px solid #fff764;
}

.super-enhancer .super-container .item:nth-child(4) {
  background: #0e244163;
  border: 1px solid #64c4ff;
}

.super-enhancer .super-container .item:nth-child(5) {
  background: #0e413e6b;
  border: 1px solid #64ffc6;
}

.super-enhancer .super-container .item:nth-child(6) {
  background: #140e41;
  border: 1px solid #7064ff;
}

.super-enhancer .super-container .item:nth-child(6) {
  background: #340e414d;
  border: 1px solid #ff64e8;
}

.super-enhancer .super-container .production-download-btn{
  color: #fff;
  text-align: center;
  margin: 40px auto 0;
  display: block;
  height: 60px;
  width: 320px;
  line-height: 60px;
  border: 1px solid #fff;
  border-radius: 14px;
  font-size: 28px;
}

.super-enhancer .item.reverse .item-desc {
  padding-right: 0;
  padding-left: 40px;
}

.super-enhancer .item .canvas {
  position: relative;
  min-width: 688px;
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.super-enhancer .item .item-desc {
  flex: 1;
  padding-top: 58px;
  padding-right: 37px;
  text-align: left;
  color: #fff;
}

.super-enhancer .item .item-desc .title {
  margin-bottom: 27px;
  font-size: 24px;
  font-weight: 700;
  line-height: 33px;
}

.super-enhancer .slider-handle {
  max-height: 300px;
}

.super-enhancer .item .item-desc .desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #e5e5e5;
}

@media (max-width: 1204px) {
  .super-enhancer {
    margin-top: 50px;
    padding-bottom: 97px;
    background: var(--primary-bg-color);
  }

  .super-enhancer::after {
    display: none;
  }

  .super-enhancer .enhancer-list {
    max-width: 98%;
    margin: 0 auto;
  }

  .super-enhancer .super-container .item {
    width: 100%;
    height: auto;
  }

  .super-enhancer .item .canvas {
    width: 57%;
    height: max-content;
    min-width: max-content;
    aspect-ratio: 688 / 300;
  }

  .super-enhancer .super-container .item,
  .super-enhancer .super-container .item.reverse {
    gap: 21px;
  }

  .super-enhancer .item .item-desc {
    display: flex;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
  }

  .super-enhancer .item .item-desc .title {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 24px;
  }
  
  .super-enhancer .item .item-desc .desc {
    font-size: 14px;
    line-height: 19px;
  }

  .super-enhancer .item.reverse .item-desc {
    padding-left: 10px;
  }
}

@media (max-width: 768px) {
  .super-enhancer::before {
    background: url(https://images.anyrecover.com/anyrecoveren/assets/overview/photo_restoration_online/bg-top-mobile.svg) no-repeat;
    width: 100vw;
    height: 36vw;
    background-size: cover;
  }

  .super-enhancer .enhancer-list {
    width: 100%;
  }

  .super-enhancer .super-container {
    padding-top: 41px;
    max-width: 92%;
  }

  .super-enhancer .super-container .title-desc {
    padding: 0;
  }

  .super-enhancer .super-container h2 {
    margin-bottom: 22px;
  }

  .super-enhancer .super-container .enhancer-list {
    width: 100%;
    max-width: 100%;
    gap: 22px;
  }

  .super-enhancer .super-container .item {
    flex-wrap: wrap;
    width: 100%;
    border-radius: 15px;
  }

  .super-enhancer .item .item-desc {
    padding: 0 13px 20px;
  }

  .super-enhancer .item .canvas {
    width: 100%;
    border-radius: 15px;
    aspect-ratio: 345 / 161;
  }

  .super-enhancer .super-container .production-download-btn{
    font-size: 18px;
  }
}

/* Super Image Enhancer End  */

/* Dialog And Toast Start */
.progress-modal {
  max-width: 450px;
  z-index: 1002;
}

.progress-modal .progress-container {
  position: relative;
  overflow: hidden;
  width: 343px;
  margin: 17px auto 33px;
  background-color: #c9c7d4;
  border-radius: 16px;
}

.progress-modal .progress-container .progress {
  height: 12px;
  background-color: #7064ff;
  border-top-right-radius: 26px;
  border-bottom-right-radius: 26px;
  width: var(--progress, 0%); /* 使用 CSS 变量来控制进度 */
  transition: width 0.3s ease; /* 动画过渡效果 */
}

.progress-modal .desc {
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  color: var(--primary-black-color);
}

.progress-modal .upload-status {
  font-size: 16px;
  font-weight: bold;
}

.progress-modal .dots::after,
.loading-tips .dots::after {
  content: "";
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: dots 2s steps(4, end) infinite;
}

.toast.max-size-error,
.toast.toast-files-type-error,
.toast.toast-exceeds-error {
  max-width: 449px;
  padding: 13px 30px 13px 20px;
  background-color: #ffffffe5;
  font-size: 15px;
  line-height: 21px;
  color: var(--primary-black-color);
}

.toast.toast-files-type-error {
  max-width: 500px;
}

.modal.drop-tips,
.modal.loading-tips {
  max-width: none;
  text-align: center;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  line-height: 44px;
}


@media (max-width: 768px) {
  .progress-modal {
    max-width: 96%;
  }

  .progress-modal .progress-container {
    width: 100%;
  }
}

/* Dialog And Toast End */

@media (max-width: 458px) {
  .banner {
    max-height: 912px;
  }
  .best-enhancer .container {
    margin-top: 80px;
  }
}
/* Footer Start */
.container {
  max-width: 1370px;
}
/* Footer End */