:root {
  color-scheme: light;
  --paper: #f4efe6;
  --panel: #fffaf2;
  --panel-soft: #faf3e8;
  --ink: #252326;
  --muted: #6c6259;
  --line: #ded1c2;
  --blue: #596f9e;
  --red: #c96f66;
  --yellow: #d8b969;
  --green: #7e997e;
  --shadow: rgba(55, 44, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  background:
    radial-gradient(circle at 14% 10%, rgba(216, 185, 105, 0.16), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(89, 111, 158, 0.12), transparent 26%),
    linear-gradient(90deg, rgba(78, 65, 50, 0.034) 1px, transparent 1px),
    linear-gradient(rgba(78, 65, 50, 0.034) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figure,
p,
h1,
h2,
h3,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.page-shell {
  width: min(calc(100% - 56px), 1480px);
  margin: 0 auto;
  padding: 32px 0 60px;
}

.hero,
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.94);
  box-shadow: 0 18px 44px var(--shadow);
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(28px, 4vw, 58px);
  overflow: hidden;
  padding: clamp(34px, 4.2vw, 58px);
}

.hero::before {
  position: absolute;
  left: clamp(34px, 4.2vw, 58px);
  right: clamp(34px, 4.2vw, 58px);
  top: 0;
  height: 6px;
  content: "";
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, var(--blue), var(--yellow) 52%, var(--red));
}

.intro-card {
  container-type: inline-size;
  min-width: 0;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.profile-top {
  display: grid;
  grid-template-columns: clamp(92px, 17cqw, 130px) minmax(0, 1fr);
  gap: clamp(14px, 3cqw, 22px);
  align-items: center;
}

.avatar {
  width: clamp(92px, 17cqw, 130px);
  height: clamp(92px, 17cqw, 130px);
  border: 3px solid rgba(37, 35, 38, 0.8);
  border-radius: 50%;
  background: var(--panel-soft);
  box-shadow: 0 10px 22px rgba(55, 44, 35, 0.14);
}

.kicker,
.section-stamp,
.attribute-group h3 {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.kicker {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fffaf2;
  background: var(--blue);
}

.intro-copy p:not(.kicker) {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(15px, 2.4cqw, 18px);
  font-weight: 720;
  line-height: 1.58;
}

.intro-copy strong {
  color: var(--ink);
  font-weight: 900;
}

h1 {
  max-width: 100%;
  margin-top: clamp(32px, 6cqw, 48px);
  font-size: clamp(46px, 10cqw, 84px);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: normal;
}

h2 {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.fact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: clamp(30px, 5cqw, 38px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.fact-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: clamp(14px, 2.25cqw, 16px);
  font-weight: 760;
  line-height: 1.45;
}

.fact-list li::before,
.attribute-group li::before {
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--line);
}

.fact-list li:nth-child(1)::before,
.fact-list li:nth-child(4)::before,
.group-yellow li::before {
  background: var(--yellow);
}

.fact-list li:nth-child(2)::before,
.fact-list li:nth-child(5)::before,
.group-blue li::before {
  background: var(--blue);
}

.fact-list li:nth-child(3)::before,
.group-red li::before {
  background: var(--red);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.social-card {
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 250, 242, 0.76);
  box-shadow: 0 9px 22px rgba(55, 44, 35, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.social-card:hover {
  transform: translateY(-3px);
  border-color: #c6b8aa;
  box-shadow: 0 14px 30px rgba(55, 44, 35, 0.12);
}

.social-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fffaf2;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  background: var(--ink);
}

.social-weibo .social-mark {
  background: var(--red);
}

.social-xhs .social-mark {
  background: #ff4260;
}

.social-card span:last-child {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.social-card strong,
.social-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-card strong {
  font-size: 16px;
  line-height: 1;
}

.social-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(89, 111, 158, 0.32);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.7);
  box-shadow: 0 9px 22px rgba(55, 44, 35, 0.08);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.page-link:hover,
.page-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(89, 111, 158, 0.64);
  box-shadow: 0 12px 26px rgba(55, 44, 35, 0.12);
}

.page-link:focus-visible {
  outline: 3px solid rgba(216, 185, 105, 0.72);
  outline-offset: 4px;
}

.photo-board {
  min-width: 0;
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.34fr);
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.lead-photo,
.private-photo,
.gallery-grid figure {
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel-soft);
  box-shadow: 0 12px 28px rgba(55, 44, 35, 0.12);
}

.lead-photo {
  grid-row: 1 / span 2;
  position: relative;
}

.lead-photo::after {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 48px;
  height: 48px;
  content: "";
  border-radius: 8px;
  background: rgba(216, 185, 105, 0.88);
  box-shadow: 0 8px 18px rgba(55, 44, 35, 0.16);
}

.private-photo {
  position: relative;
  min-width: 0;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  appearance: none;
  cursor: pointer;
}

.private-photo img {
  filter: blur(17px) saturate(0.92) brightness(0.96);
  transform: scale(1.08);
  transition:
    filter 200ms ease,
    transform 200ms ease;
}


.selfie-cue,
.selfie-glint {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.selfie-cue {
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.72);
  border-radius: 50%;
  color: rgba(255, 250, 242, 0.9);
  background: rgba(37, 35, 38, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-transform: lowercase;
}

.selfie-glint {
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 242, 0.78), transparent);
  opacity: 0.86;
}

.private-photo.is-revealed .selfie-cue,
.private-photo.is-revealed .selfie-glint {
  opacity: 0;
}

.glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.1)),
    rgba(244, 239, 230, 0.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  transition: opacity 200ms ease;
}

.glass::before {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
}

.private-photo.is-revealed img {
  filter: none;
  transform: scale(1);
}

.private-photo.is-revealed .glass {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .private-photo:hover img {
    filter: none;
    transform: scale(1);
  }

  .private-photo:hover .glass {
    opacity: 0;
  }

  .private-photo:hover .selfie-cue,
  .private-photo:hover .selfie-glint {
    opacity: 0;
  }
}

.private-photo:focus-visible {
  outline: 3px solid rgba(216, 185, 105, 0.72);
  outline-offset: 4px;
}

.panel {
  margin-top: 30px;
  padding: clamp(28px, 3.8vw, 46px);
}

.section-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-right: 74px;
}

.section-stamp {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 54px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(216, 185, 105, 0.86);
}

.attribute-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr 0.9fr;
  gap: 18px;
  margin-top: 30px;
}

.attribute-group {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 243, 232, 0.6);
}

.attribute-group h3 {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fffaf2;
  background: var(--blue);
}

.group-yellow h3 {
  color: var(--ink);
  background: rgba(216, 185, 105, 0.9);
}

.group-blue h3 {
  background: var(--blue);
}

.group-red h3 {
  background: var(--red);
}

.attribute-group ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px 16px;
  margin-top: 16px;
}

.attribute-group li {
  position: relative;
  min-height: 0;
  padding-left: 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.42;
}

.attribute-group li::before {
  width: 6px;
  height: 6px;
}

.photo-head p {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.62;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.92fr;
  grid-auto-rows: 270px;
  gap: 16px;
  margin-top: 28px;
}

.gallery-main {
  grid-row: span 2;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-grid figure {
  cursor: zoom-in;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.gallery-grid figure img {
  transition: transform 260ms ease;
}

.gallery-grid figure:hover,
.gallery-grid figure:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(55, 44, 35, 0.16);
}

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

.gallery-grid figure:focus-visible {
  outline: 3px solid rgba(216, 185, 105, 0.72);
  outline-offset: 4px;
}

body.is-lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(44px, 0.12fr) minmax(0, 1fr) minmax(44px, 0.12fr);
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  padding: clamp(18px, 4vw, 48px);
  background: rgba(37, 35, 38, 0.48);
  -webkit-backdrop-filter: blur(18px) saturate(0.95);
  backdrop-filter: blur(18px) saturate(0.95);
  opacity: 0;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-frame {
  grid-column: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: min(100%, 1180px);
  margin: 0 auto;
}

.lightbox-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(82vh, 860px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.965) translateY(8px);
  transition:
    opacity 200ms ease,
    transform 220ms ease;
}

.lightbox.is-ready .lightbox-image {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.lightbox-count {
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.9);
  background: rgba(37, 35, 38, 0.34);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
}

.lightbox-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.5);
  border-radius: 50%;
  color: rgba(255, 250, 242, 0.94);
  background: rgba(37, 35, 38, 0.26);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.lightbox-button:hover,
.lightbox-button:focus-visible {
  transform: scale(1.06);
  background: rgba(37, 35, 38, 0.42);
}

.lightbox-button:focus-visible {
  outline: 3px solid rgba(216, 185, 105, 0.72);
  outline-offset: 4px;
}

.lightbox-close {
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  top: clamp(18px, 4vw, 42px);
  font-size: 28px;
}

.lightbox-prev {
  justify-self: end;
}

.lightbox-next {
  justify-self: start;
}

.is-missing {
  display: grid;
  place-items: center;
  min-height: 160px;
  border-style: dashed;
}

.is-missing img {
  display: none;
}

.is-missing::before {
  content: "IMAGE MISSING";
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

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

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

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

@media (max-width: 1120px) {
  .hero,
  .attribute-grid {
    grid-template-columns: 1fr;
  }

  .photo-board {
    min-height: 560px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 420px 180px;
  }

  .lead-photo {
    grid-column: 1 / span 2;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 28px), 1480px);
    padding: 16px 0 38px;
  }

  .hero,
  .panel {
    box-shadow: 0 12px 30px var(--shadow);
  }

  .hero,
  .panel {
    padding: 18px;
  }

  .hero {
    min-height: 0;
    gap: 22px;
  }

  .hero::before {
    left: 18px;
    right: 18px;
  }

  .social-links,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .social-card {
    min-height: 72px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 58px);
    overflow-wrap: anywhere;
  }

  .photo-board {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 420px 150px;
  }

  .lead-photo {
    grid-column: 1 / span 2;
  }

  .section-head {
    padding-right: 56px;
  }

  .section-stamp {
    top: -12px;
    right: -12px;
  }

  .attribute-group ul {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 220px;
  }

  .gallery-main,
  .gallery-wide {
    grid-column: auto;
    grid-row: auto;
  }
}


@media (max-width: 760px) {
  .lightbox {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 12px;
    padding: 18px;
  }

  .lightbox-frame {
    grid-column: 1 / span 2;
    grid-row: 1;
    align-self: center;
  }

  .lightbox-image {
    max-height: 76vh;
  }

  .lightbox-prev,
  .lightbox-next {
    grid-row: 2;
    justify-self: center;
  }
}

/* Mobile refinement soft10 */

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 22px), 1480px);
    padding: 12px 0 30px;
  }

  .hero,
  .panel {
    border-radius: 7px;
    box-shadow: 0 10px 24px rgba(55, 44, 35, 0.12);
  }

  .hero {
    gap: 18px;
    padding: 16px;
  }

  .profile-top {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }

  .avatar {
    width: 78px;
    height: 78px;
    border-width: 2px;
  }

  .kicker {
    padding: 6px 9px;
    font-size: 12px;
  }

  .intro-copy p:not(.kicker) {
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.5;
  }

  h1 {
    margin-top: 22px;
    font-size: clamp(36px, 11vw, 50px);
    line-height: 1;
  }

  h2 {
    font-size: clamp(28px, 8.5vw, 36px);
  }

  .fact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 20px;
    padding-top: 16px;
  }

  .fact-list li {
    width: auto;
    max-width: 100%;
    padding-left: 13px;
    font-size: 13px;
    line-height: 1.35;
  }

  .fact-list li:nth-child(2) {
    flex-basis: 100%;
  }

  .fact-list li::before {
    top: 0.55em;
    width: 5px;
    height: 5px;
  }

  .social-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
  }

  .social-card {
    min-height: 62px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 7px;
  }

  .social-mark {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    font-size: 10px;
  }

  .social-card span:last-child {
    justify-items: center;
    gap: 0;
  }

  .social-card strong {
    max-width: 100%;
    font-size: 12px;
  }

  .social-card small {
    display: none;
  }

  .page-actions {
    margin-top: 18px;
  }

  .page-link {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 7px;
    font-size: 12px;
  }

  .photo-board {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 340px) 116px;
    gap: 10px;
  }

  .lead-photo,
  .private-photo,
  .gallery-grid figure {
    border-radius: 7px;
    box-shadow: 0 8px 18px rgba(55, 44, 35, 0.1);
  }

  .lead-photo::after {
    right: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .selfie-cue {
    right: 8px;
    top: 8px;
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .glass::before {
    inset: 9px;
  }

  .panel {
    margin-top: 18px;
    padding: 18px;
  }

  .section-head {
    padding-right: 48px;
  }

  .section-stamp {
    width: 48px;
    height: 32px;
    font-size: 12px;
  }

  .attribute-grid {
    gap: 12px;
    margin-top: 20px;
  }

  .attribute-group {
    padding: 14px;
    border-radius: 7px;
  }

  .attribute-group h3 {
    padding: 7px 10px;
    font-size: 12px;
  }

  .attribute-group ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin-top: 12px;
  }

  .attribute-group li {
    padding-left: 12px;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .attribute-group li::before {
    top: 0.52em;
    width: 5px;
    height: 5px;
  }

  .group-yellow li:nth-child(3),
  .group-blue li:nth-child(n + 5) {
    grid-column: 1 / -1;
  }

  .photo-head p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
  }

  .gallery-grid {
    gap: 10px;
    margin-top: 18px;
    grid-auto-rows: 190px;
  }

  .gallery-main {
    min-height: 260px;
  }
}
