:root {
  --ink: #2f2b4a;
  --muted: #6f6a86;
  --sky: #bcecff;
  --sky-deep: #61c7ed;
  --lavender: #cfc4ff;
  --pink: #ffbfd5;
  --cream: #fffdf8;
  --white: #ffffff;
  --line: rgba(64, 54, 101, 0.14);
  --shadow: 0 24px 60px rgba(77, 95, 146, 0.16);
  --radius-lg: 36px;
  --radius-md: 24px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  position: relative;
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 7%, rgba(255, 255, 255, 0.95) 0 9%, transparent 28%),
    linear-gradient(155deg, #e8f8ff 0%, #f4f0ff 45%, #fff8fb 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.28;
  pointer-events: none;
  background-image: radial-gradient(rgba(93, 117, 175, 0.22) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  top: 11rem;
  left: -9rem;
  width: 25rem;
  height: 25rem;
  background: rgba(123, 219, 255, 0.28);
}

.ambient-two {
  top: 45rem;
  right: -8rem;
  width: 22rem;
  height: 22rem;
  background: rgba(200, 184, 255, 0.28);
}

.site-header {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.header-link {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.header-link-mobile {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--sky-deep);
  box-shadow: 0 0 0 2px var(--sky-deep);
}

.header-link {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
}

main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

main,
section,
.hero > *,
.gallery > * {
  min-width: 0;
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(360px, 0.77fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding: 44px 0 90px;
}

.avatar-wrap {
  position: relative;
  width: 136px;
  margin-bottom: 22px;
}

.avatar {
  width: 136px;
  height: 136px;
  object-fit: cover;
  border: 7px solid rgba(255, 255, 255, 0.9);
  border-radius: 40px;
  box-shadow: 0 18px 45px rgba(93, 129, 175, 0.2);
  transform: rotate(-3deg);
}

.online-badge {
  position: absolute;
  right: -54px;
  bottom: 4px;
  padding: 7px 13px;
  border: 3px solid var(--white);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  background: #a6ebcb;
  box-shadow: 0 8px 24px rgba(68, 166, 125, 0.18);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: #6680a8;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.23em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

h1 span {
  position: relative;
  display: inline-block;
  margin-left: 0.12em;
  color: #4ebee8;
  text-shadow: 3px 3px 0 var(--white);
}

h1 span::after {
  content: "✦";
  position: absolute;
  top: -0.18em;
  right: -0.42em;
  color: #a88ff0;
  font-size: 0.25em;
  letter-spacing: 0;
}

.hero-intro {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.tag-list span {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #665e80;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.55);
}

.primary-button,
.qq-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 16px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  background: var(--ink);
  box-shadow: 0 13px 30px rgba(47, 43, 74, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible,
.qq-button:hover,
.qq-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(47, 43, 74, 0.26);
}

.hero-photo-card {
  position: relative;
  width: min(100%, 450px);
  justify-self: end;
  padding: 14px 14px 72px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(2.4deg);
}

.hero-photo-frame {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
}

.hero-photo-card::before,
.hero-photo-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.hero-photo-card::before {
  width: 84px;
  height: 84px;
  top: -33px;
  right: -25px;
  border: 18px solid rgba(255, 191, 213, 0.72);
}

.hero-photo-card::after {
  width: 44px;
  height: 44px;
  left: -40px;
  bottom: 70px;
  background: var(--lavender);
  box-shadow: 54px 62px 0 -11px var(--sky-deep);
}

.hero-photo-card picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.mobile-qq-card {
  display: none;
}

.photo-label {
  position: absolute;
  right: 26px;
  bottom: 22px;
  font-family: "KaiTi", "STKaiti", serif;
  font-size: 1rem;
  font-weight: 700;
}

.photo-label span {
  color: #7f6ed4;
}

.tape {
  position: absolute;
  width: 92px;
  height: 26px;
  opacity: 0.82;
  background: #d9f1ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.tape-top {
  top: 7px;
  left: -28px;
  transform: rotate(-39deg);
}

.tape-bottom {
  right: -25px;
  bottom: 45px;
  transform: rotate(-38deg);
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 7vw;
  align-items: center;
  margin: 40px 0 130px;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 20px 60px rgba(80, 107, 155, 0.1);
  backdrop-filter: blur(20px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.25;
  letter-spacing: -0.055em;
}

.about-note {
  position: relative;
  padding-left: 55px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.quote-mark {
  position: absolute;
  top: -28px;
  left: 0;
  color: var(--sky-deep);
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  opacity: 0.4;
}

.signature {
  margin: 20px 0 0;
  color: var(--ink);
  font-family: "KaiTi", "STKaiti", serif;
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.swipe-hint {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 250px;
  gap: 22px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--white);
  background: #dfeff8;
  box-shadow: 0 16px 38px rgba(75, 93, 139, 0.15);
  cursor: zoom-in;
  isolation: isolate;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(29, 27, 52, 0.68), transparent 47%);
  opacity: 0.82;
  transition: opacity 240ms ease;
}

.gallery-card picture,
.gallery-card img {
  width: 100%;
  height: 100%;
}

.gallery-card img {
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  transform: scale(1.035);
}

.gallery-card:focus-visible {
  outline: 4px solid #6fcff3;
  outline-offset: 4px;
}

.card-tall {
  grid-column: span 5;
  grid-row: span 2;
}

.card-wide {
  grid-column: span 7;
}

.gallery-caption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.94rem;
  font-weight: 800;
  text-align: left;
}

.gallery-caption b {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  opacity: 0.72;
}

.contact {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  margin: 150px 0 70px;
  padding: clamp(40px, 7vw, 80px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #d8f3ff 0%, #ebe7ff 100%);
  box-shadow: var(--shadow);
}

.contact::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: -110px;
  bottom: -130px;
  border: 44px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}

.contact-copy {
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  margin-bottom: 18px;
}

.contact-copy > p:not(.section-kicker) {
  max-width: 440px;
  margin-bottom: 28px;
  color: var(--muted);
}

.qq-button {
  background: linear-gradient(120deg, #49bfe8, #8c83e9);
}

.qr-card {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 340px);
  justify-self: center;
  padding: 18px 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  text-decoration: none;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(69, 99, 150, 0.2);
  transform: rotate(1.5deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.qr-card:hover,
.qr-card:focus-visible {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 26px 60px rgba(69, 99, 150, 0.26);
}

.qr-card:focus-visible {
  outline: 4px solid #6fcff3;
  outline-offset: 5px;
}

.qr-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 17px;
}

.qr-image-frame {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.qr-card > .qr-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-top: 13px;
  font-size: 0.85rem;
  font-weight: 800;
}

.qr-card i {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-style: normal;
  background: #6cc9eb;
}

.contact-star {
  position: absolute;
  color: rgba(108, 92, 181, 0.46);
}

.star-one {
  top: 22px;
  right: 32px;
  font-size: 3rem;
}

.star-two {
  right: 42%;
  bottom: 25px;
  font-size: 2rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 max(40px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

footer a {
  text-decoration: none;
}

.lightbox {
  width: min(92vw, 1040px);
  max-width: none;
  height: min(88vh, 840px);
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: var(--white);
  background: rgba(27, 25, 43, 0.96);
  box-shadow: 0 40px 100px rgba(20, 20, 40, 0.42);
}

.lightbox::backdrop {
  background: rgba(34, 38, 64, 0.76);
  backdrop-filter: blur(12px);
}

.lightbox figure {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.lightbox figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  padding: 28px;
}

.lightbox figcaption {
  padding: 12px 76px 22px;
  text-align: center;
  font-weight: 800;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
  cursor: pointer;
}

.lightbox-close {
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  font-size: 1.7rem;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-delay {
  transition-delay: 110ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    min-height: 70px;
  }

  .brand {
    font-size: 0.86rem;
  }

  .header-link {
    padding: 7px 12px;
    font-size: 0.76rem;
  }

  .header-link-desktop {
    display: none;
  }

  .header-link-mobile {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 22px 0 82px;
  }

  .hero-copy {
    position: relative;
  }

  .avatar-wrap {
    width: 84px;
    margin-bottom: 16px;
  }

  .avatar {
    width: 84px;
    height: 84px;
    border-width: 5px;
    border-radius: 25px;
  }

  .online-badge {
    right: -67px;
    bottom: 1px;
    font-size: 0.66rem;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: clamp(2.85rem, 14vw, 4rem);
    line-height: 0.98;
  }

  h1 span {
    display: block;
    width: fit-content;
    margin-top: 0.07em;
    margin-left: 0;
  }

  .hero-intro {
    margin-bottom: 16px;
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .mobile-qq-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(112px, 34vw, 150px);
    gap: 14px;
    align-items: center;
    margin: 18px 0 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(216, 243, 255, 0.96), rgba(235, 231, 255, 0.96));
    box-shadow: 0 16px 38px rgba(75, 93, 139, 0.14);
  }

  .mobile-qq-copy {
    min-width: 0;
  }

  .mobile-qq-copy strong,
  .mobile-qq-copy span {
    display: block;
  }

  .mobile-qq-copy strong {
    margin-bottom: 5px;
    font-size: 1.08rem;
  }

  .mobile-qq-copy span {
    margin-bottom: 11px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.55;
  }

  .mobile-qq-copy a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(120deg, #49bfe8, #8c83e9);
    box-shadow: 0 9px 22px rgba(89, 131, 203, 0.2);
  }

  .mobile-qq-copy i {
    font-style: normal;
  }

  .mobile-qr-link {
    display: block;
    min-width: 0;
    padding: 7px 7px 5px;
    border-radius: 17px;
    text-align: center;
    text-decoration: none;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(77, 95, 146, 0.16);
  }

  .mobile-qr-link .qr-image-frame {
    border-radius: 12px;
  }

  .mobile-qr-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .mobile-qr-link small {
    display: block;
    padding-top: 3px;
    font-size: 0.66rem;
    font-weight: 800;
  }

  .tag-list {
    gap: 7px;
    margin-bottom: 0;
  }

  .tag-list span {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .primary-button {
    display: none;
  }

  .hero-photo-card {
    overflow: hidden;
    width: min(100%, 440px);
    justify-self: center;
    padding: 10px 10px 56px;
    transform: none;
  }

  .hero-photo-frame {
    aspect-ratio: 4 / 3;
  }

  .hero-photo-card picture img {
    object-position: center 30%;
  }

  .hero-photo-card::before {
    top: -24px;
    right: -8px;
  }

  .hero-photo-card::after {
    left: -12px;
    bottom: 50px;
  }

  .tape-top {
    left: -18px;
  }

  .tape-bottom {
    right: -12px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 42px;
    margin-bottom: 100px;
    padding: 34px 26px;
    border-radius: 28px;
  }

  .about-note {
    padding-left: 38px;
  }

  .section-heading {
    align-items: flex-end;
  }

  .swipe-hint {
    display: block;
  }

  .gallery {
    width: 100%;
    min-width: 0;
    display: flex;
    overflow-x: auto;
    gap: 16px;
    margin: 0;
    padding: 5px 0 26px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery-card {
    flex: 0 0 min(78vw, 360px);
    height: 110vw;
    max-height: 520px;
    scroll-snap-align: center;
  }

  .gallery-card.card-wide {
    height: 82vw;
    max-height: 410px;
  }

  .contact {
    display: none;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .lightbox {
    width: 94vw;
    height: 82vh;
    border-radius: 20px;
  }

  .lightbox figure img {
    padding: 18px 10px 8px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 12px;
    transform: none;
  }
}

@media (max-width: 430px) {
  .section-heading {
    display: block;
  }

  .swipe-hint {
    margin-top: 12px;
  }

  .hero-photo-card {
    width: 100%;
  }
}

@media (max-width: 350px) {
  .site-header,
  main,
  footer {
    width: calc(100% - 20px);
  }

  .brand {
    font-size: 0.78rem;
  }

  .mobile-qq-card {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 10px;
    padding: 11px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
