:root {
  --home-welcome-green: #063f31;
  --home-welcome-deep: #022a21;
}

body.native-eyou-home.is-welcome-loading {
  overflow: hidden;
}

html.home-welcome-seen body.native-eyou-home.is-welcome-loading {
  overflow: auto;
}

html.home-welcome-seen .home-welcome {
  display: none;
}

.home-welcome {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: var(--home-welcome-green);
  clip-path: inset(0 0 0 0);
  will-change: clip-path, opacity;
  animation: home-welcome-failsafe 0s linear 8s forwards;
}

.home-welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.055), transparent 37%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.035), transparent 34%, rgba(0, 0, 0, 0.06));
}

.home-welcome__inner {
  position: relative;
  width: min(72vw, 560px);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-welcome__logo {
  position: relative;
  width: clamp(220px, 24vw, 360px);
  aspect-ratio: 1048 / 170;
  transform: translate3d(0, 12px, 0) scale(0.975);
  animation: home-welcome-logo-lift 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.home-welcome__logo-layer {
  position: absolute;
  inset: 0;
  display: block;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
  -webkit-mask: url("/static/hengyuan-logo-white.png") center / contain no-repeat;
  mask: url("/static/hengyuan-logo-white.png") center / contain no-repeat;
  transition: clip-path 0.18s linear;
}

.home-welcome__logo-layer--transition {
  z-index: 1;
  background: #92a4a0;
  clip-path: inset(0 var(--home-welcome-clip-right, 100%) 0 0);
}

.home-welcome__logo-layer--white {
  z-index: 2;
  background: #ffffff;
  clip-path: inset(0 var(--home-welcome-white-clip-right, 100%) 0 0);
}

@supports not ((mask: url("") center / contain no-repeat) or (-webkit-mask: url("") center / contain no-repeat)) {
  .home-welcome__logo {
    background: url("/static/hengyuan-logo-white.png") center / contain no-repeat;
    clip-path: inset(0 var(--home-welcome-clip-right, 100%) 0 0);
  }
}

.home-welcome__progress {
  min-width: 64px;
  margin-top: 54px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

.home-welcome__progress small {
  margin-left: 2px;
  font-size: 9px;
  font-weight: 500;
  opacity: 0.72;
}

.home-welcome__line {
  width: min(190px, 48vw);
  height: 1px;
  margin-top: 17px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.home-welcome__line i {
  width: 100%;
  height: 100%;
  display: block;
  background: #ffffff;
  transform: scaleX(var(--home-welcome-progress, 0));
  transform-origin: left center;
  transition: transform 0.18s linear;
}

.home-welcome.is-leaving {
  pointer-events: none;
  animation: home-welcome-exit 1.25s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.home-welcome.is-leaving .home-welcome__inner {
  animation: home-welcome-content-exit 0.82s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes home-welcome-logo-lift {
  to {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes home-welcome-content-exit {
  to {
    opacity: 0;
    transform: translate3d(0, -24px, 0) scale(0.985);
  }
}

@keyframes home-welcome-exit {
  0% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
  }
}

@keyframes home-welcome-failsafe {
  to {
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  .home-welcome__inner {
    width: calc(100vw - 48px);
  }

  .home-welcome__logo {
    width: min(68vw, 270px);
  }

  .home-welcome__progress {
    margin-top: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-welcome__logo,
  .home-welcome.is-leaving,
  .home-welcome.is-leaving .home-welcome__inner {
    animation-duration: 0.35s;
  }

  .home-welcome__logo {
    transform: none;
  }
}
