:root {
  color-scheme: light;
  --paper: #f5f7f6;
  --paper-deep: #e9eeec;
  --ink: #172321;
  --muted: #64716e;
  --faint: #97a4a1;
  --line: rgba(23, 35, 33, 0.14);
  --accent: #39c5bb;
  --accent-strong: #219d95;
  --accent-wash: rgba(57, 197, 187, 0.13);
  --shell: 1080px;
  --sans: "MiSans", "MiSans Latin", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #101716;
    --paper-deep: #1a2523;
    --ink: #e5eeeb;
    --muted: #9eafaa;
    --faint: #657672;
    --line: rgba(229, 238, 235, 0.16);
    --accent: #55d5ca;
    --accent-strong: #7ae2d9;
    --accent-wash: rgba(85, 213, 202, 0.14);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--paper);
  background: var(--accent-strong);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(calc(100% - 64px), var(--shell));
  height: auto;          /* 从 min-height 改为 height */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 0 20px;
  overflow: hidden;       
}

.intro {
  width: min(100%, 650px);
  padding-top: clamp(20px, 5vh, 48px);
}

.avatar {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  background: var(--paper-deep);
}

.avatar-mark {
  color: var(--accent-strong);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.slogan {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.5vw, 21px);
  letter-spacing: -0.01em;
}

.location {
  margin: 21px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.links {
  width: min(100%, 610px);
  margin-top: clamp(42px, 6vh, 64px);
}

.link-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  transition: color 160ms ease, background-color 160ms ease;
}

.link-row:hover,
.link-row:focus-visible {
  color: var(--accent-strong);
  background: var(--accent-wash);
}

.link-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.link-value {
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  color: var(--faint);
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  padding: 0 5px;
}

.footer-mark {
  letter-spacing: 0.08em;
}

.footer-mark span {
  padding: 0;
  color: var(--accent);
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 40px), var(--shell));
    padding-top: 32px;
    padding-bottom: 20px;
  }

  .intro {
    padding-top: 49px;
  }

  .avatar {
    width: 88px;
    height: 88px;
    margin-bottom: 36px;
  }

  .avatar-mark {
    font-size: 18px;
  }

  h1 {
    font-size: clamp(39px, 13vw, 57px);
  }

  .links {
    margin-top: 57px;
  }

  .link-row {
    min-height: 59px;
    padding: 0 14px;
  }

  .link-value {
    font-size: 13px;
  }

  .site-footer {
    display: block;
    margin-top: 64px;
  }

  .footer-mark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
