:root {
  --background: #faf9f5;

  --text: #1f1f1d;
  --secondary: #77736c;

  --button-bg: rgba(255, 255, 255, 0.62);
  --button-hover: rgba(255, 255, 255, 0.94);

  --border: rgba(31, 31, 29, 0.14);
  --border-hover: rgba(31, 31, 29, 0.28);

  --footer: #8a867f;
}


/* =========================
   Base
   ========================= */

* {
  box-sizing: border-box;
}

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

  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 32px 20px;

  background: var(--background);
  color: var(--text);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;

  text-align: center;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =========================
   Main
   ========================= */

.container {
  width: 100%;
  max-width: 660px;

  display: flex;
  flex-direction: column;
  align-items: center;

  /*
     整体向上移动
  */
  transform: translateY(-92px);
}


/* =========================
   Avatar
   ========================= */

.avatar {
  display: block;

  width: 140px;
  height: 140px;

  object-fit: cover;

  border-radius: 50%;

  margin: 0 auto 25px;

  border: 0;

  user-select: none;
}


/* =========================
   Name
   ========================= */

h1 {
  margin: 0;

  font-size: 35px;
  font-weight: 600;

  line-height: 1.2;
  letter-spacing: -0.03em;
}


/* =========================
   Subtitle
   ========================= */

.subtitle {
  margin: 14px 0 31px;

  color: var(--secondary);

  font-size: 17px;
  font-weight: 400;

  line-height: 1.6;
}


/* =========================
   Links
   ========================= */

.link-list {
  width: 100%;
  max-width: 600px;

  margin: 0;
  padding: 0;

  list-style: none;

  display: flex;
  flex-direction: column;

  gap: 9px;
}

.link-list li {
  width: 100%;

  margin: 0;
  padding: 0;

  list-style: none;
}

.link-button {
  width: 100%;
  min-height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 15px 26px;

  background: var(--button-bg);
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 9px;

  text-decoration: none;

  font-size: 18px;
  font-weight: 400;

  line-height: 1.2;

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.link-button:hover {
  background: var(--button-hover);
  border-color: var(--border-hover);

  transform: translateY(-1px);
}

.link-button:active {
  transform: translateY(0);
}


/* =========================
   Footer
   ========================= */

.footer {
  margin-top: 27px;

  color: var(--footer);

  font-size: 13px;
  font-weight: 400;

  line-height: 1.5;
}


/* =========================
   Dark mode
   ========================= */

@media (prefers-color-scheme: dark) {

  :root {
    --background: #1a1d20;

    --text: #eeeae2;
    --secondary: #aaa59c;

    --button-bg: rgba(255, 255, 255, 0.045);
    --button-hover: rgba(255, 255, 255, 0.085);

    --border: rgba(238, 234, 226, 0.14);
    --border-hover: rgba(238, 234, 226, 0.28);

    --footer: #85817a;
  }

}


/* =========================
   Tablet
   ========================= */

@media (max-width: 720px) {

  body {
    padding: 28px 22px;
  }

  .container {
    max-width: 100%;
    transform: translateY(-55px);
  }

  .link-list {
    max-width: 540px;
  }

}


/* =========================
   Mobile
   ========================= */

@media (max-width: 520px) {

  body {
    padding: 24px 18px;
  }

  .container {
    transform: translateY(-30px);
  }

  .avatar {
    width: 116px;
    height: 116px;

    margin-bottom: 20px;
  }

  h1 {
    font-size: 29px;
  }

  .subtitle {
    margin-top: 11px;
    margin-bottom: 25px;

    font-size: 14px;
  }

  .link-list {
    width: 100%;
    max-width: 100%;

    gap: 8px;
  }

  .link-button {
    min-height: 57px;

    padding: 13px 20px;

    font-size: 16px;

    border-radius: 8px;
  }

  .footer {
    margin-top: 25px;
    font-size: 12px;
  }

}
