/* 独立静态页：黑色背景与原始头像，不依赖框架或在线资源。 */
@font-face {
  font-family: "Campaign Sans";
  src: url("./assets/google-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #000;
  color: #f5f2ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.profile {
  --portrait-reserve: 136px;
  width: 100%;
  max-width: 460px;
  display: grid;
  justify-items: center;
  gap: 24px;
}

.profile__portrait {
  display: block;
  width: 100%;
  /* 短屏先缩小头像，为按钮和页面留白保留空间。 */
  max-width: max(160px, calc(100vh - var(--portrait-reserve)));
  max-width: max(160px, calc(100svh - var(--portrait-reserve)));
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 24px;
}

.profile__links {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

/* 移植 Quantum Flow 首屏联系按钮的最终样式与响应断点。 */
.profile__link {
  display: inline-flex;
  flex: 1;
  min-width: 0;
  max-width: 245px;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: "Campaign Sans", "Segoe UI", "Nirmala UI", "Yu Gothic", "Malgun Gothic", sans-serif;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition: scale .18s cubic-bezier(.2, .8, .2, 1), background-color .24s, border-color .24s, color .24s, opacity .24s, transform .24s;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.profile__link--primary {
  background: #83dccb;
  color: #101923;
}

.profile__link--secondary {
  background: rgba(16, 25, 35, .3);
  border-color: #52656f;
  color: #f4f7f5;
}

.profile__icon {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile__arrow {
  width: 17px;
  height: 17px;
  margin-left: 7px;
  transition: translate .28s;
}

.profile__link:focus-visible {
  outline: 3px solid #27a4d9;
  outline-offset: 5px;
}

@media (hover: hover) {
  .profile__link:hover {
    transform: translateY(-2px);
  }

  .profile__link--primary:hover {
    background: #a4eddc;
  }

  .profile__link--secondary:hover {
    background: #21333c;
    border-color: #9eb9ba;
  }

  .profile__link:hover .profile__arrow {
    translate: 3px -1px;
  }
}

.profile__link:active {
  scale: .96;
}

@media (max-width: 1150px) {
  .profile__link {
    font-size: 12px;
  }
}

@media (max-width: 1100px) {
  .profile__links {
    gap: 10px;
  }

  .profile__arrow {
    display: none;
  }
}

@media (max-width: 800px) {
  .profile__links {
    align-items: stretch;
  }
}

@media (min-width: 621px) and (max-width: 800px) {
  .profile {
    --portrait-reserve: 192px;
  }

  .profile__links {
    flex-direction: column;
    max-width: 255px;
  }

  .profile__link {
    min-height: 48px;
    max-width: none;
  }
}

@media (max-width: 620px) {
  .profile__link {
    min-height: 50px;
    max-width: none;
    padding: 12px 10px;
    line-height: 1.45;
  }

  .profile__icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 359px) {
  .profile__link {
    font-size: 11px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile__link,
  .profile__arrow {
    transition: none;
  }

  .profile__link:hover,
  .profile__link:active,
  .profile__link:hover .profile__arrow {
    transform: none;
    translate: none;
    scale: none;
  }
}
