:root {
  --paper: #f6efe6;
  --paper-deep: #efe4d6;
  --card: #fffaf4;
  --ink: #3d2b28;
  --muted: #7a625c;
  --line: rgba(61, 43, 40, 0.1);
  --rose: #b76e79;
  --rose-soft: #f3e2e0;
  --gold: #c4a36a;
  --sage: #7d8b74;
  --shadow: 0 18px 40px rgba(80, 48, 40, 0.08);
  --radius: 22px;
  --font: "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
}

@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("https://puhuiti.oss-cn-hangzhou.aliyuncs.com/AlibabaPuHuiTi-3/AlibabaPuHuiTi-3-55-Regular/AlibabaPuHuiTi-3-55-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("https://puhuiti.oss-cn-hangzhou.aliyuncs.com/AlibabaPuHuiTi-3/AlibabaPuHuiTi-3-65-Medium/AlibabaPuHuiTi-3-65-Medium.woff2")
    format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at top, #fff8f1 0, transparent 42%),
    linear-gradient(180deg, var(--paper) 0, #f3e8dc 100%);
  line-height: 1.7;
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 28px 36px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.92), rgba(247, 232, 223, 0.88)),
    var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.ornament,
.ornament::before,
.ornament::after {
  position: absolute;
  left: 50%;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament {
  top: 22px;
  transform: translateX(-50%);
}

.ornament::before,
.ornament::after {
  content: "";
  top: 0;
}

.ornament::before {
  transform: translate(-50%, -8px);
  width: 70px;
}

.ornament::after {
  transform: translate(-50%, 8px);
  width: 70px;
}

.avatar {
  width: 92px;
  height: 92px;
  margin: 28px auto 16px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 34px;
  box-shadow: inset 0 0 0 1px rgba(183, 110, 121, 0.18);
  overflow: hidden;
  cursor: pointer;
}

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

h1 {
  font-family: var(--font);
  font-size: clamp(42px, 8vw, 64px);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.15;
}

.roles,
.stats,
.info-grid,
.skill-tags,
.gallery {
  list-style: none;
}

.roles,
.stats {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  margin-top: 18px;
}

.roles li,
.skill-tags li,
.stat,
.empty-slot {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.roles li,
.skill-tags li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

.stat {
  flex: 1;
  min-width: 0;
  padding: 12px 10px;
  border-radius: 16px;
}

.stat strong {
  display: block;
  font-size: 22px;
  color: var(--rose);
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav a:hover,
.nav a.is-active,
.lightbox-close:hover {
  background: var(--rose-soft);
}

.nav a.is-active {
  color: var(--rose);
}

.section {
  padding: 28px 8px 8px;
  scroll-margin-top: 72px;
}

.section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 22px;
  letter-spacing: 0.12em;
}

.section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.card,
.skill-group,
.album,
.info-grid {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-card {
  padding: 28px;
  font-size: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  padding: 6px 18px;
}

.info-grid div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.info-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.info-grid dt {
  color: var(--muted);
}

.info-grid dd {
  font-weight: 600;
}

.skill-groups {
  display: grid;
  gap: 14px;
}

.skill-group {
  padding: 20px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.album {
  padding: 20px;
  margin-bottom: 16px;
}

.album h3 {
  margin-bottom: 6px;
}

.empty-slot p,
.footer {
  color: var(--muted);
  font-size: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.gallery button,
.empty-slot {
  aspect-ratio: 1;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper-deep);
}

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

.empty-slot {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(183, 110, 121, 0.35);
  background: var(--rose-soft);
  cursor: default;
}

.contact-section {
  text-align: center;
}

.contact-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  padding: 8px 10px 0;
  text-align: center;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--rose);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.phone-link.is-copied {
  color: var(--sage);
}

.phone-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer .back-top {
  color: var(--rose);
  text-decoration: none;
}

.lightbox {
  width: min(920px, 92vw);
  max-height: 90vh;
  padding: 16px;
  border: 0;
  border-radius: 24px;
  background: #1f1614;
}

.lightbox::backdrop {
  background: rgba(30, 20, 18, 0.72);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox-close {
  display: block;
  margin: 0 0 12px auto;
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 16px, 920px);
    margin-top: 10px;
  }

  .hero {
    padding: 36px 12px 22px;
  }

  .roles {
    gap: 4px;
  }

  .roles li {
    padding: 4px 7px;
    font-size: 12px;
  }

  .stats {
    gap: 6px;
  }

  .stat {
    padding: 10px 4px;
  }

  .stat strong {
    font-size: 18px;
  }

  .stat span {
    font-size: 12px;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .info-grid {
    gap: 0 14px;
    padding: 4px 14px;
  }

  .info-grid div {
    padding: 8px 0;
    font-size: 13px;
  }

  .nav {
    gap: 4px;
    padding: 6px;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .roles li {
    padding: 4px 5px;
    font-size: 11px;
  }

  .stat strong {
    font-size: 16px;
  }

  .stat span {
    font-size: 11px;
  }
}
