:root {
  --paper: #ffffff;
  --pink: #f8eeed;
  --rose: #a04e63;
  --ink: #412c34;
  --muted: #78616a;
  --line: #dfced0;
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  scrollbar-color: var(--rose) var(--pink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.125rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 6px;
}

::selection {
  background: #e9b7c4;
  color: var(--ink);
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.wrap {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 12px;
  background: var(--ink);
  color: white;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

nav {
  font-size: 1rem;
}

nav ul {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  display: block;
  padding-block: 12px;
  text-underline-offset: 5px;
}

nav a:hover,
nav a:focus-visible {
  color: var(--rose);
  text-decoration: underline;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  min-height: 590px;
  margin-top: 36px;
  padding: 36px 48px 20px;
  background: #fff0f4;
  border-radius: 28px;
  overflow: clip;
}

.scene-caption {
  position: absolute;
  top: 28px;
  right: 38px;
  margin: 0;
  color: rgb(160 78 99 / 28%);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .12em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero-copy {
  padding-block: 32px;
}

h1 {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(3rem, 4.8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
}

h1 span {
  margin-inline-start: .12em;
  color: var(--rose);
}

.hero-intro {
  max-width: 23em;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.9;
  text-wrap: pretty;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: var(--rose);
  color: white;
  padding: 14px 22px;
  margin-top: 30px;
  font-size: 1rem;
  border-radius: 4px;
}

.button:hover {
  color: white;
  background: #82374b;
}

.button svg {
  width: 18px;
  height: 18px;
}

.portrait {
  position: relative;
  align-self: end;
  height: 534px;
  overflow: visible;
  isolation: isolate;
}

.portrait-disc {
  position: absolute;
  top: 62px;
  left: calc(50% + 64px);
  width: 420px;
  height: 420px;
  translate: -50%;
  border-radius: 50%;
  background: #efdadd;
  z-index: -1;
}

.character {
  position: absolute;
  width: 590px;
  height: 944px;
  max-width: none;
  left: 50%;
  top: -32px;
  translate: -50%;
  clip-path: inset(0 0 0 35%);
  object-fit: contain;
}

.profile,
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 56px;
  padding-block: 80px;
}

h2 {
  margin: 0;
  color: var(--rose);
  font-size: 1.6rem;
  line-height: 1.5;
  font-weight: 500;
  text-wrap: balance;
}

.section-heading {
  display: grid;
  align-content: start;
  gap: 22px;
}

.section-avatar {
  position: relative;
  width: min(100%, 178px);
  aspect-ratio: 1;
  margin: 0;
  overflow: clip;
  border-radius: 50%;
  background: #efdadd;
}

.section-avatar img {
  position: absolute;
  display: block;
  width: 250%;
  height: auto;
  max-width: none;
}

.section-avatar--calm img {
  /* 微笑头像原图更高：收紧纵向取景，让两张头像的脸部大小一致。 */
  width: 350%;
  height: 490%;
  top: -258%;
  left: -13%;
}

.section-avatar--bright img {
  width: 350%;
  top: -405%;
  left: -48%;
}

.profile-lead {
  margin: 0 0 32px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
  margin: 0;
}

.facts div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.facts dt {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 5px;
}

.facts dd {
  margin: 0;
  font-size: 1.125rem;
}

.about {
  background: var(--pink);
}

.about-copy p {
  margin: 0;
  max-width: 70ch;
  line-height: 2;
  text-wrap: pretty;
}

.about-copy p+p {
  margin-top: 24px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-block: 32px;
  font-size: 1rem;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer a:hover {
  color: var(--rose);
}

.footer svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 64px);
  }

  .portrait {
    height: 500px;
  }

  .portrait-disc {
    width: 360px;
    height: 360px;
    left: calc(50% + 48px);
  }

  .character {
    width: 545px;
    height: 872px;
    left: 50%;
    top: -18px;
  }

  .profile,
  .about-layout {
    gap: 40px;
  }

}

@media (max-width: 720px) {
  body {
    font-size: 1.0625rem;
  }

  .wrap {
    width: calc(100% - 40px);
  }

  .header {
    height: 80px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  nav ul {
    gap: 20px;
    font-size: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 20px;
    padding: 32px 24px 0;
    border-radius: 22px;
  }

  .scene-caption {
    display: none;
  }

  .hero-copy {
    padding-block: 0;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 3.6rem);
  }

  .hero-intro {
    margin-top: 20px;
  }

  .button {
    margin-top: 22px;
    padding: 12px 20px;
  }

  .portrait {
    margin: 16px auto 0;
    width: min(100%, 400px);
    height: 432px;
  }

  .portrait-disc {
    width: 300px;
    height: 300px;
    top: 78px;
    left: calc(50% + 20px);
  }

  .character {
    width: 480px;
    height: 768px;
    left: calc(50% - 32px);
    top: -22px;
  }

  .profile,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 48px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section-heading {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
  }

  .section-avatar {
    width: 104px;
    grid-column: 2;
    grid-row: 1;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-avatar {
    display: none;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 18px;
  }

  .facts dd {
    font-size: 1.0625rem;
  }

  .profile-lead {
    margin-bottom: 26px;
  }

  .footer {
    padding-block: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.65rem;
  }

  .portrait {
    height: 395px;
  }

  .character {
    width: 470px;
    height: 752px;
    left: calc(50% - 28px);
  }

  .portrait-disc {
    width: 260px;
    height: 260px;
    left: calc(50% + 18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}
