* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scrollbar-gutter: stable;
}

body {
  min-height: 100svh;
  min-height: 100dvh;
  font-family: "Days One", "Segoe UI", sans-serif;
  font-weight: 400;
  background: #f2f2f2;
  color: #0d0d0d;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
}

.wechat-modal[hidden] {
  display: none;
}

.wechat-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.26s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wechat-modal__card {
  position: relative;
  width: min(420px, 100%);
  background: #f7f7f7;
  border: 1px solid #d3d3d3;
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
  padding: 18px 18px 16px;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.26s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.26s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wechat-modal.is-visible .wechat-modal__backdrop {
  opacity: 1;
}

.wechat-modal.is-visible .wechat-modal__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wechat-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #d1d1d1;
  background: #ededed;
  cursor: pointer;
}

.wechat-modal__close::before,
.wechat-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #2f2f2f;
  transform-origin: center;
}

.wechat-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.wechat-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.wechat-modal__label {
  margin: 4px 0 0;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6f6f6f;
  text-align: center;
}

.wechat-modal__title {
  margin: 6px 0 12px;
  text-align: center;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: #171717;
}

.wechat-modal__qr-wrap {
  width: min(290px, 100%);
  margin: 0 auto;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid #dadada;
  background: #ffffff;
}

.wechat-modal__qr-wrap img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.wechat-modal__actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.wechat-btn {
  min-height: 52px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #333333 0%, #252525 100%);
  color: #f3f3f3;
  border: 1px solid #3e3e3e;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  font-size: clamp(14px, 2vw, 16px);
  font-family: inherit;
  font-weight: 400;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease,
    opacity 0.15s ease;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}

.wechat-modal.is-visible .wechat-btn {
  animation: fadeUpIn 0.55s cubic-bezier(0.25, 0.4, 0.25, 1) forwards;
  animation-delay: 0.08s;
}

.wechat-btn:hover {
  background: linear-gradient(180deg, #3b3b3b 0%, #2c2c2c 100%);
  border-color: #494949;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.wechat-btn:focus-visible {
  outline: 2px solid #8b8b8b;
  outline-offset: 2px;
}

.wechat-btn:active {
  box-shadow: none;
}

.page {
  width: min(560px, 100%);
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0 auto;
  padding-top: clamp(20px, 3.5vw, 32px);
  padding-bottom: clamp(20px, 3.5vw, 32px);
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 28px);
}

.hero {
  text-align: center;
  padding-top: 8px;
}

.avatar {
  width: 178px;
  height: 178px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 18px;
  border: 2px solid #111;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 40px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 12px auto 0;
  max-width: 500px;
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.4;
  text-transform: none;
  color: #666;
}

.links {
  display: grid;
  gap: 12px;
}

.link {
  min-height: 62px;
  border-radius: 999px;
  background: linear-gradient(180deg, #333333 0%, #252525 100%);
  color: #f3f3f3;
  border: 1px solid #3e3e3e;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  font-size: clamp(16px, 2.3vw, 18px);
  font-weight: 400;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}

.link-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link:hover {
  background: linear-gradient(180deg, #3b3b3b 0%, #2c2c2c 100%);
  border-color: #494949;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.icon i {
  font-size: 18px;
  line-height: 1;
  color: currentColor;
}

.arrow {
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
  opacity: 0.8;
}

@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.reveal {
  opacity: 0;
  animation-name: fadeUpIn;
  animation-duration: 0.95s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.25, 0.4, 0.25, 1);
  will-change: opacity, transform, filter;
}

.reveal-0 {
  animation-delay: 0.1s;
}

.reveal-1 {
  animation-delay: 0.25s;
}

.reveal-2 {
  animation-delay: 0.4s;
}

.reveal-3 {
  animation-delay: 0.55s;
}

.reveal-4 {
  animation-delay: 0.7s;
}

.reveal-5 {
  animation-delay: 0.85s;
}

.reveal-6 {
  animation-delay: 1s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    animation: none;
    transform: none;
    filter: none;
  }

  .wechat-btn {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (min-width: 1024px) {
  .page {
    padding-top: 38px;
    padding-bottom: 38px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .avatar {
    width: 196px;
    height: 196px;
  }

  .link {
    min-height: 66px;
    font-size: 18px;
  }

  .wechat-btn {
    min-height: 56px;
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .page {
    justify-content: center;
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    gap: 16px;
  }

  .hero {
    padding-top: 2px;
  }

  .avatar {
    width: 132px;
    height: 132px;
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(27px, 8.3vw, 34px);
    line-height: 1.04;
  }

  .subtitle {
    max-width: 330px;
    font-size: 11px;
    letter-spacing: 0.01em;
    line-height: 1.32;
    margin-top: 10px;
  }

  .links {
    gap: 10px;
  }

  .link {
    min-height: 56px;
    padding: 0 14px;
    font-size: 15px;
  }

  .icon {
    width: 20px;
    height: 20px;
  }

  .icon i {
    font-size: 16px;
  }

  .arrow {
    font-size: 18px;
  }

  .wechat-modal {
    padding: 10px;
  }

  .wechat-modal__card {
    border-radius: 20px;
    padding: 14px 14px 12px;
  }

  .wechat-modal__title {
    font-size: 20px;
  }

  .wechat-btn {
    min-height: 50px;
    padding: 0 12px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .avatar {
    width: 118px;
    height: 118px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .subtitle {
    font-size: 10px;
  }

  .link {
    min-height: 52px;
    font-size: 14px;
    padding: 0 12px;
  }
}
