:root {
  --accent: #ad315d;
  --accent-deep: #7f2445;
  --accent-soft: #fde9f0;
  --gold: #c8963f;
  --gold-soft: #fff3d8;
  --jade: #2d7c73;
  --ink: #2d2b2f;
  --muted: #96939a;
  --line: #f2d7df;
  --paper: #ffffff;
  --page: #fff9fb;
  --shadow: 0 18px 46px rgba(127, 36, 69, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(200, 150, 63, 0.08) 0 1px, transparent 1px 100%) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(173, 49, 93, 0.05) 0 1px, transparent 1px 100%) 0 0 / 28px 28px,
    linear-gradient(180deg, #fff7fa 0%, #fffefd 42%, #fff7fa 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

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

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 46px 22px 64px;
  background:
    linear-gradient(90deg, transparent, rgba(200, 150, 63, 0.16), transparent)
      50% 0 / 100% 1px no-repeat,
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 0 55px rgba(127, 36, 69, 0.08);
}

.hero {
  position: relative;
  padding: 34px 12px 88px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top, rgba(255, 243, 216, 0.78), transparent 54%),
    linear-gradient(135deg, rgba(173, 49, 93, 0.1), rgba(45, 124, 115, 0.07));
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 150, 63, 0.7), transparent);
}

.hero::before {
  top: 18px;
}

.hero::after {
  bottom: 18px;
}

.hero-kicker {
  position: absolute;
  z-index: 2;
  top: 48px;
  left: 28px;
  max-width: calc(100% - 56px);
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(127, 36, 69, 0.9), rgba(45, 124, 115, 0.72));
  box-shadow: 0 10px 22px rgba(45, 24, 36, 0.2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
  object-position: center 35%;
  border: 8px solid rgba(255, 255, 255, 0.84);
  border-radius: 14px;
  background: #f7eef1;
  box-shadow: 0 24px 48px rgba(72, 37, 51, 0.2);
}

.profile-card {
  z-index: 3;
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 16px;
  padding: 24px 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 252, 0.96)),
    #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold), var(--accent), var(--jade));
}

.profile-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.profile-title span {
  padding: 4px 10px;
  border: 1px solid rgba(200, 150, 63, 0.36);
  border-radius: 999px;
  color: var(--accent-deep);
  background: linear-gradient(135deg, var(--gold-soft), #fff);
  font-size: 18px;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 25px;
}

.stat {
  min-width: 0;
  text-align: center;
  border-left: 1px solid #ece8ea;
}

.stat:first-child {
  border-left: 0;
}

.stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--accent-deep);
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.25;
  color: #5a565d;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.highlights span {
  padding: 6px 10px;
  border: 1px solid rgba(200, 150, 63, 0.36);
  border-radius: 999px;
  color: var(--accent-deep);
  background: linear-gradient(135deg, rgba(255, 243, 216, 0.82), rgba(253, 233, 240, 0.72));
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.section {
  margin-top: 76px;
}

.section h2 {
  position: relative;
  margin: 0 0 30px;
  color: #8f8b92;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

.section h2::before,
.section h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(28%, 160px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 150, 63, 0.78), var(--accent-soft));
}

.section h2::before {
  left: 0;
}

.section h2::after {
  right: 0;
  transform: scaleX(-1);
}

.panel {
  position: relative;
  padding: 30px 24px;
  border: 1px solid rgba(240, 168, 189, 0.7);
  border-radius: 14px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(200, 150, 63, 0.5), rgba(173, 49, 93, 0.28), rgba(45, 124, 115, 0.22)) border-box;
  box-shadow: 0 13px 32px rgba(127, 36, 69, 0.09);
}

.panel::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  bottom: 10px;
  left: 12px;
  border: 1px dashed rgba(240, 168, 189, 0.42);
  border-radius: 10px;
  pointer-events: none;
}

.info-list {
  margin: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f9e8ed;
}

.info-row:first-child {
  padding-top: 0;
}

.info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-row dt {
  margin: 0;
  color: #686970;
  text-align: right;
  font-size: 15px;
}

.info-row dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #252329;
}

.prose p {
  margin: 0 0 18px;
  font-size: 16px;
  text-align: justify;
}

.prose p:last-child {
  margin-bottom: 0;
}

.skill-group + .skill-group {
  margin-top: 28px;
}

.skill-group h3 {
  margin: 0 0 12px;
  padding: 8px 12px;
  color: #fff;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  font-size: 18px;
  line-height: 1.3;
  box-shadow: 0 8px 18px rgba(173, 49, 93, 0.16);
}

.skill-group ol {
  margin: 0;
  padding-left: 22px;
}

.skill-group li {
  margin: 4px 0;
  font-size: 15px;
  padding-left: 2px;
}

.gallery {
  display: grid;
  gap: 10px;
}

.gallery-baby {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-food {
  grid-template-columns: repeat(2, 1fr);
}

.gallery button,
.certificate-gallery button,
.feature-gallery button {
  padding: 0;
  border: 4px solid #fff;
  border-radius: 9px;
  overflow: hidden;
  background: #f8eef2;
  box-shadow: 0 8px 18px rgba(67, 46, 55, 0.12);
  cursor: zoom-in;
}

.gallery img,
.certificate-gallery img,
.feature-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.gallery-baby button:nth-child(4n + 1) img {
  aspect-ratio: 0.86;
}

.gallery-baby button:nth-child(4n + 2) img {
  aspect-ratio: 1.1;
}

.gallery-food button:nth-child(3n + 1) {
  grid-column: span 2;
}

.gallery-food button:nth-child(3n + 1) img {
  aspect-ratio: 1.45;
}

.certificate-gallery,
.feature-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.certificate-gallery button,
.feature-gallery button {
  width: min(100%, 560px);
  margin: 0 auto;
  border-width: 6px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(200, 150, 63, 0.62), rgba(173, 49, 93, 0.32)) border-box;
}

.certificate-gallery img {
  aspect-ratio: 1.42;
  object-fit: contain;
  background: #fffaf6;
}

.feature-gallery img {
  aspect-ratio: 1.55;
  object-fit: contain;
  background: #fff4f4;
}

.gallery button:active img,
.gallery button:hover img,
.certificate-gallery button:active img,
.certificate-gallery button:hover img,
.feature-gallery button:active img,
.feature-gallery button:hover img {
  transform: scale(1.03);
}

.contact-section {
  margin-bottom: 10px;
}

.contact-card p {
  margin: 0 0 18px;
  color: #55565c;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(173, 49, 93, 0.78);
  border-radius: 6px;
  color: var(--accent);
  background: linear-gradient(180deg, #fff, #fff8fb);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 10px 22px rgba(173, 49, 93, 0.18);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(20, 18, 19, 0.86);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-height: 86vh;
  width: auto;
  border-radius: 6px;
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 560px) {
  .page-shell {
    padding: 16px 12px 42px;
  }

  .hero {
    padding: 30px 9px 76px;
    border-radius: 14px;
  }

  .hero-kicker {
    top: 40px;
    left: 22px;
    max-width: calc(100% - 44px);
    font-size: 12px;
  }

  .profile-card {
    left: 5%;
    right: 5%;
    bottom: 12px;
    padding: 18px 18px 16px;
  }

  h1 {
    font-size: 30px;
  }

  .profile-title span {
    font-size: 16px;
  }

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

  .stat span,
  .info-row dd,
  .prose p {
    font-size: 15px;
  }

  .section {
    margin-top: 64px;
  }

  .section h2 {
    margin-bottom: 22px;
    font-size: 18px;
  }

  .panel {
    padding: 24px 17px;
  }

  .gallery-baby,
  .gallery-food {
    gap: 8px;
  }

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

@media (max-width: 380px) {
  .profile-card {
    padding: 16px 14px;
  }

  .stats {
    margin-top: 20px;
  }

  .highlights {
    gap: 6px;
  }

  .highlights span {
    padding: 5px 8px;
    font-size: 12px;
  }

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

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

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