:root {
  --rose: #e95f8a;
  --rose-dark: #b9416b;
  --rose-soft: #ffd9e6;
  --ink: #4c3340;
  --paper: #fff8fb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 72px;
  padding: 0 clamp(20px, 7vw, 118px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(118, 41, 75, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  filter: drop-shadow(0 0 10px rgba(255, 126, 167, 0.75));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  opacity: 0.9;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--rose-soft);
  box-shadow: 0 0 12px rgba(255, 213, 227, 0.85);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(80, 37, 69, 0.18), rgba(70, 31, 55, 0.26)),
    url("assets/hero-roses-sunset.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 223, 229, 0.22), transparent 24%),
    linear-gradient(90deg, rgba(96, 23, 53, 0.12), transparent 30%, rgba(42, 31, 60, 0.2)),
    linear-gradient(180deg, rgba(34, 28, 48, 0.08), rgba(96, 31, 60, 0.16));
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 140' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0 72 C126 124 230 42 370 58 C504 73 586 125 724 92 C858 60 937 55 1066 80 C1210 108 1322 104 1440 48 L1440 140 L0 140 Z' fill='%23fff8fb'/%3E%3Cpath d='M0 72 C126 124 230 42 370 58 C504 73 586 125 724 92 C858 60 937 55 1066 80 C1210 108 1322 104 1440 48' fill='none' stroke='rgba(255,255,255,0.92)' stroke-width='9'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
  filter:
    drop-shadow(0 -12px 12px rgba(185, 80, 122, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(960px, calc(100% - 40px));
  margin-top: clamp(138px, 20vh, 210px);
}

.hero-content h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: clamp(54px, 6.2vw, 96px);
  font-weight: 800;
  line-height: 1.08;
  text-shadow:
    0 4px 0 rgba(155, 61, 91, 0.26),
    0 10px 28px rgba(117, 42, 78, 0.46);
}

.hero-content h1 .hero-heart {
  display: inline-block;
  margin-left: 18px;
  font-weight: 400;
}

.hero-content p {
  margin: 20px 0 4px;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(221, 69, 124, 0.62);
}

.ornament {
  position: relative;
  width: min(280px, 46vw);
  height: 24px;
  margin: 0 auto;
  border-bottom: 2px solid rgba(255, 231, 238, 0.92);
  border-radius: 50%;
}

.ornament::after {
  content: "♡";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  color: rgba(255, 236, 242, 0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.hero-catalog-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(118, 41, 75, 0.32);
  box-shadow: 0 12px 32px rgba(122, 47, 86, 0.18);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, background 180ms ease;
}

.hero-catalog-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.scroll-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 28px;
}

.scroll-hint small {
  font-size: 14px;
}

.down-button {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--white);
  color: var(--rose);
  font-size: 38px;
  box-shadow: 0 10px 24px rgba(207, 85, 128, 0.28);
}

.floating-hearts span {
  position: absolute;
  z-index: 1;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: rgba(255, 211, 224, 0.84);
  animation: floatUp 9s linear infinite;
  box-shadow: 0 0 16px rgba(255, 208, 221, 0.8);
}

.floating-hearts span::before,
.floating-hearts span::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: inherit;
}

.floating-hearts span::before {
  left: -5px;
}

.floating-hearts span::after {
  top: -5px;
}

.floating-hearts span:nth-child(1) { left: 14%; top: 30%; animation-delay: 0s; }
.floating-hearts span:nth-child(2) { left: 45%; top: 20%; animation-delay: 1.4s; }
.floating-hearts span:nth-child(3) { left: 61%; top: 24%; animation-delay: 3s; }
.floating-hearts span:nth-child(4) { left: 75%; top: 37%; animation-delay: 4.2s; }
.floating-hearts span:nth-child(5) { left: 87%; top: 56%; animation-delay: 2.2s; }
.floating-hearts span:nth-child(6) { left: 24%; top: 52%; animation-delay: 5.6s; }

.butterfly-field {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  width: min(48vw, 720px);
  pointer-events: none;
  overflow: hidden;
}

.butterfly-field::before,
.butterfly-field::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 234, 242, 0.82);
  box-shadow:
    96px 92px 0 rgba(255, 217, 232, 0.55),
    188px 168px 0 rgba(255, 242, 248, 0.72),
    298px 116px 0 rgba(255, 191, 218, 0.52),
    410px 234px 0 rgba(255, 239, 246, 0.64),
    520px 142px 0 rgba(255, 195, 221, 0.56),
    610px 318px 0 rgba(255, 238, 246, 0.6);
  opacity: 0.7;
  animation: sparkleDrift 10s ease-in-out infinite;
}

.butterfly-field::after {
  left: 18%;
  top: 18%;
  transform: scale(0.72);
  animation-delay: 3.2s;
}

.butterfly {
  position: absolute;
  left: var(--butterfly-left, 70%);
  top: var(--butterfly-top, 44%);
  width: var(--butterfly-size, 42px);
  height: calc(var(--butterfly-size, 42px) * 0.78);
  filter:
    drop-shadow(0 0 10px rgba(255, 230, 240, 0.82))
    drop-shadow(0 0 18px rgba(255, 161, 199, 0.32));
  opacity: 0;
  animation: butterflyDrift var(--butterfly-duration, 13s) ease-in-out infinite;
  animation-delay: var(--butterfly-delay, 0s);
}

.butterfly i,
.butterfly i::before,
.butterfly i::after,
.butterfly::before,
.butterfly::after {
  position: absolute;
  content: "";
}

.butterfly i {
  left: 50%;
  top: 23%;
  width: 5%;
  height: 58%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 249, 252, 0.96), rgba(251, 169, 204, 0.76));
  box-shadow: 0 0 8px rgba(255, 236, 244, 0.88);
}

.butterfly i::before,
.butterfly i::after {
  top: 0;
  width: 1px;
  height: 34%;
  background: rgba(255, 245, 250, 0.78);
  transform-origin: bottom;
}

.butterfly i::before {
  left: 1px;
  transform: rotate(-32deg);
}

.butterfly i::after {
  right: 1px;
  transform: rotate(32deg);
}

.butterfly::before,
.butterfly::after {
  top: 0;
  width: 48%;
  height: 100%;
  background:
    radial-gradient(ellipse at 48% 28%, rgba(255, 255, 255, 0.96) 0 12%, transparent 13%),
    radial-gradient(ellipse at 56% 68%, rgba(255, 215, 232, 0.7) 0 18%, transparent 19%),
    linear-gradient(145deg, rgba(255, 249, 252, 0.94), rgba(255, 193, 218, 0.78) 54%, rgba(240, 119, 168, 0.46));
  border: 1px solid rgba(255, 244, 249, 0.58);
  box-shadow:
    inset 0 0 16px rgba(255, 255, 255, 0.72),
    inset 10px 0 18px rgba(247, 141, 185, 0.18);
}

.butterfly::before {
  right: 51%;
  clip-path: polygon(100% 46%, 78% 6%, 27% 0, 0 24%, 17% 54%, 3% 82%, 38% 100%, 78% 78%);
  border-radius: 74% 28% 70% 38%;
  transform-origin: 100% 52%;
  animation: wingLeft 920ms ease-in-out infinite;
}

.butterfly::after {
  left: 51%;
  clip-path: polygon(0 46%, 22% 6%, 73% 0, 100% 24%, 83% 54%, 97% 82%, 62% 100%, 22% 78%);
  border-radius: 28% 74% 38% 70%;
  transform-origin: 0 52%;
  animation: wingRight 920ms ease-in-out infinite;
}

.butterfly:nth-child(1) {
  --butterfly-left: 52%;
  --butterfly-top: 32%;
  --butterfly-size: 46px;
  --butterfly-duration: 14s;
  --butterfly-delay: 0s;
}

.butterfly:nth-child(2) {
  --butterfly-left: 76%;
  --butterfly-top: 50%;
  --butterfly-size: 26px;
  --butterfly-duration: 12s;
  --butterfly-delay: 2.8s;
}

.butterfly:nth-child(3) {
  --butterfly-left: 64%;
  --butterfly-top: 66%;
  --butterfly-size: 54px;
  --butterfly-duration: 16s;
  --butterfly-delay: 5.2s;
}

.butterfly:nth-child(4) {
  --butterfly-left: 88%;
  --butterfly-top: 26%;
  --butterfly-size: 32px;
  --butterfly-duration: 13s;
  --butterfly-delay: 7.4s;
}

.butterfly:nth-child(5) {
  --butterfly-left: 43%;
  --butterfly-top: 55%;
  --butterfly-size: 24px;
  --butterfly-duration: 15s;
  --butterfly-delay: 9.3s;
}

@keyframes floatUp {
  0%, 100% {
    opacity: 0;
    translate: 0 22px;
  }
  25%, 80% {
    opacity: 1;
  }
  60% {
    translate: 0 -38px;
  }
}

@keyframes butterflyDrift {
  0%, 100% {
    opacity: 0;
    transform: translate3d(28px, 24px, 0) rotate(-8deg) scale(0.78);
  }
  12%, 82% {
    opacity: 0.72;
  }
  34% {
    transform: translate3d(-44px, -34px, 0) rotate(9deg) scale(1);
  }
  62% {
    transform: translate3d(18px, -76px, 0) rotate(-5deg) scale(0.92);
  }
}

@keyframes wingLeft {
  0%, 100% {
    transform: rotateY(18deg) rotate(-11deg);
  }
  50% {
    transform: rotateY(58deg) rotate(-24deg);
  }
}

@keyframes wingRight {
  0%, 100% {
    transform: rotateY(-18deg) rotate(11deg);
  }
  50% {
    transform: rotateY(-58deg) rotate(24deg);
  }
}

@keyframes sparkleDrift {
  0%, 100% {
    opacity: 0.22;
    transform: translate3d(0, 16px, 0);
  }
  50% {
    opacity: 0.78;
    transform: translate3d(-16px, -22px, 0);
  }
}

.chapter-preview {
  position: relative;
  min-height: 100vh;
  padding: clamp(78px, 9vw, 132px) clamp(20px, 8vw, 160px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 520px);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  overflow: hidden;
  background:
    radial-gradient(circle at 21% 62%, rgba(255, 206, 221, 0.45), transparent 20%),
    radial-gradient(circle at 88% 28%, rgba(255, 221, 231, 0.56), transparent 18%),
    var(--paper);
}

.section-glow {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 21%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 64%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px);
  background-size: 140px 140px;
  opacity: 0.68;
  pointer-events: none;
}

.chapter-copy,
.memory-card {
  position: relative;
  z-index: 1;
}

.chapter-copy {
  text-align: center;
}

.chapter-script {
  margin: 0 0 -18px;
  color: rgba(233, 95, 138, 0.22);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1;
}

.chapter-copy h2 {
  margin: 0;
  color: var(--rose-dark);
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.08;
}

.chapter-subtitle {
  margin: 24px 0 34px;
  color: var(--rose);
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 800;
}

.chapter-text {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 2;
}

.chapter-text h3 {
  display: none;
}

.chapter-text p {
  margin: 0;
  white-space: pre-line;
}

button,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 30px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #e95482, #ee7499);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(223, 79, 126, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

button:hover,
.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(223, 79, 126, 0.32);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.language-switcher .language-option {
  min-height: 30px;
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.language-switcher .language-option:hover {
  transform: none;
  box-shadow: none;
}

.language-switcher .language-option.active {
  background: var(--white);
  color: var(--rose-dark);
}

.memory-card {
  margin: 0;
  padding: clamp(14px, 1.7vw, 22px) clamp(14px, 1.7vw, 22px) 64px;
  background: var(--white);
  box-shadow: 0 22px 48px rgba(216, 82, 128, 0.22);
  transform: rotate(0.6deg);
}

.memory-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
}

.detail-gallery {
  display: grid;
  gap: 12px;
}

.detail-gallery img {
  width: 100%;
  height: auto;
  max-height: 560px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
  background: #fff;
}

.detail-gallery.multi-image {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-gallery.multi-image img {
  max-height: 620px;
}

.memory-card figcaption {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) rotate(-2deg);
  padding: 12px 18px;
  background: rgba(255, 249, 245, 0.92);
  color: #6b4b46;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(127, 70, 66, 0.12);
}

.tape {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 100px;
  height: 28px;
  background: rgba(238, 123, 167, 0.54);
  transform: rotate(31deg);
}

.heart-line {
  position: absolute;
  right: -32px;
  bottom: 2px;
  color: var(--rose);
  font-size: 92px;
  line-height: 1;
  text-shadow: 0 8px 18px rgba(218, 79, 126, 0.22);
}

.petals span {
  position: absolute;
  z-index: 1;
  width: 26px;
  height: 16px;
  border-radius: 90% 10% 90% 10%;
  background: rgba(242, 116, 151, 0.26);
  filter: blur(0.2px);
}

.petals span:nth-child(1) { left: 12%; top: 34%; transform: rotate(-35deg); }
.petals span:nth-child(2) { left: 52%; top: 48%; transform: rotate(20deg); }
.petals span:nth-child(3) { right: 19%; bottom: 18%; transform: rotate(-14deg); }

.page-dots {
  position: fixed;
  z-index: 10;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  gap: 16px;
}

.page-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(233, 95, 138, 0.18);
  color: rgba(233, 95, 138, 0.45);
}

.page-dots span.active {
  background: var(--rose);
}

.page-dots span:last-child {
  width: auto;
  height: auto;
  background: transparent;
  font-size: 26px;
}

.chapter-teaser {
  max-width: 540px;
  margin: 0 auto;
  color: rgba(76, 51, 64, 0.72);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.9;
}

.catalog-gateway {
  position: relative;
  min-height: 68vh;
  padding: clamp(92px, 11vw, 150px) clamp(20px, 8vw, 160px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 21% 62%, rgba(255, 206, 221, 0.45), transparent 20%),
    radial-gradient(circle at 86% 28%, rgba(255, 221, 231, 0.56), transparent 18%),
    var(--paper);
}

.catalog-gateway-inner {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  text-align: center;
}

.catalog-gateway-inner h2 {
  margin: 0;
  color: var(--rose-dark);
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.1;
}

.catalog-gateway-inner p:not(.chapter-script) {
  max-width: 680px;
  margin: 26px auto 0;
  color: rgba(76, 51, 64, 0.74);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.9;
}

.catalog-action {
  min-height: 58px;
  margin-top: 34px;
  padding-inline: 42px;
  font-size: 18px;
}

.verify-page {
  min-height: 100vh;
  background: #5b344f;
}

.verify-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 92px 20px 48px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(128, 28, 64, 0.28), rgba(44, 25, 54, 0.42)),
    linear-gradient(180deg, rgba(255, 108, 146, 0.22), rgba(68, 31, 61, 0.28)),
    url("assets/hero-roses-sunset.png");
  background-size: cover;
  background-position: center;
}

.verify-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 48% 43%, rgba(255, 232, 239, 0.3), transparent 18%),
    radial-gradient(circle at 80% 25%, rgba(255, 154, 187, 0.22), transparent 20%);
  pointer-events: none;
}

.verify-brand {
  position: fixed;
  top: 34px;
  left: clamp(24px, 7vw, 112px);
  z-index: 3;
  color: #fff;
}

.verify-card {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  padding: clamp(30px, 5vw, 48px);
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 214, 228, 0.18);
  box-shadow: 0 26px 80px rgba(96, 38, 70, 0.34);
  backdrop-filter: blur(14px);
}

.verify-card .chapter-script {
  margin: 0 0 -4px;
  color: rgba(255, 230, 238, 0.68);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 0.9;
  transform: translateY(-10px);
}

.verify-card h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: clamp(34px, 4.8vw, 50px);
  line-height: 1.15;
  letter-spacing: 0;
  text-shadow: 0 8px 24px rgba(91, 38, 70, 0.32);
}

.verify-card p:not(.chapter-script):not(.verify-error) {
  margin: 0 auto 28px;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.8;
}

.verify-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.verify-form label {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.verify-input-wrap {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.verify-input-wrap span {
  color: #fff;
  font-size: 20px;
}

.verify-input-wrap input {
  width: 100%;
  min-width: 0;
  color: #fff;
  font: inherit;
  border: 0;
  outline: 0;
  background: transparent;
}

.verify-input-wrap:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.verify-error {
  margin: 0;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.verify-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(224, 67, 123, 0.78);
}

.verify-submit:disabled {
  cursor: wait;
  opacity: 0.78;
}

.verify-language {
  display: inline-flex;
  margin-top: 24px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.verify-hearts span,
.verify-butterflies .butterfly {
  opacity: 0.72;
}

.detail-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 213, 227, 0.75), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(255, 232, 238, 0.82), transparent 22%),
    radial-gradient(circle at 52% 82%, rgba(255, 202, 219, 0.45), transparent 34%),
    var(--paper);
}

.catalog-main {
  position: relative;
  min-height: 100vh;
  padding: clamp(116px, 12vw, 152px) clamp(20px, 6vw, 120px) 86px;
  overflow: hidden;
}

.catalog-hero {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  margin: 0 auto clamp(48px, 7vw, 78px);
  text-align: center;
}

.catalog-hero .chapter-script {
  margin-bottom: -10px;
}

.catalog-hero h1 {
  margin: 0;
  color: var(--rose-dark);
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.1;
}

.catalog-hero p:not(.chapter-script) {
  max-width: 720px;
  margin: 24px auto 0;
  color: rgba(76, 51, 64, 0.72);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.9;
}

.chapter-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  width: min(1080px, 100%);
  margin: 0 auto;
}

.chapter-card {
  display: grid;
  grid-template-columns: minmax(320px, 44%) minmax(0, 1fr);
  align-items: stretch;
  min-height: 360px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 210, 225, 0.78);
  border-radius: 8px;
  box-shadow: 0 24px 52px rgba(216, 82, 128, 0.17);
  backdrop-filter: blur(14px);
}

.chapter-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
}

.chapter-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3.4vw, 42px);
}

.chapter-card-kicker {
  margin: 0 0 6px;
  color: rgba(233, 95, 138, 0.42);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1;
}

.chapter-card h2 {
  margin: 0;
  color: var(--rose-dark);
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.16;
  text-wrap: balance;
}

.chapter-card-number,
.chapter-card-title {
  display: block;
}

.chapter-card-number {
  margin-bottom: 6px;
}

.chapter-card-title {
  font-size: 0.78em;
  line-height: 1.32;
}

.chapter-card-content > p:not(.chapter-card-kicker) {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(76, 51, 64, 0.75);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.95;
}

.chapter-card .primary-action {
  align-self: flex-start;
  margin-top: 26px;
}

.detail-header {
  background: linear-gradient(180deg, rgba(210, 87, 127, 0.36), rgba(210, 87, 127, 0));
}

.chapter-detail {
  position: relative;
  min-height: 100vh;
  padding: clamp(112px, 12vw, 150px) clamp(20px, 8vw, 150px) 80px;
  overflow: hidden;
}

.detail-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 480px);
  align-items: start;
  gap: clamp(40px, 7vw, 96px);
}

.detail-copy {
  text-align: center;
}

.detail-copy .chapter-script {
  margin-bottom: -8px;
}

.detail-copy h1 {
  margin: 0 0 34px;
  color: var(--rose-dark);
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: clamp(34px, 4.7vw, 64px);
  line-height: 1.16;
}

.detail-content {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(76, 51, 64, 0.86);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 2.15;
}

.detail-content p {
  margin: 0 0 18px;
}

.detail-card {
  align-self: start;
  margin-top: 18px;
}

.detail-card.wide-gallery {
  width: min(680px, 46vw);
  justify-self: center;
}

.chapter-album-section {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: clamp(42px, 6vw, 72px) auto 0;
  padding-top: 34px;
  border-top: 1px solid rgba(233, 95, 138, 0.18);
}

.chapter-album {
  display: grid;
  gap: 34px;
}

.album-group {
  display: grid;
  gap: 16px;
}

.album-group-title {
  margin: 0;
  color: var(--rose-dark);
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  text-align: center;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 132px);
  justify-content: center;
  gap: 14px;
}

.album-grid .album-thumb {
  display: block;
  width: 132px;
  height: 132px;
  min-height: 0;
  margin: 0;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px rgba(216, 82, 128, 0.14);
  cursor: zoom-in;
  overflow: hidden;
}

.album-grid .album-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(216, 82, 128, 0.22);
}

.album-grid .album-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 48px 72px;
  background: rgba(42, 25, 36, 0.78);
  backdrop-filter: blur(12px);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 96px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 101;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-dark);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.lightbox-close {
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  font-size: 32px;
  line-height: 1;
}

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

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

body.lightbox-open {
  overflow: hidden;
}

.future-space {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: clamp(54px, 8vw, 96px) auto 0;
  padding-top: 34px;
  text-align: center;
  border-top: 1px solid rgba(233, 95, 138, 0.18);
}

.future-space h2 {
  margin: 0 0 14px;
  color: var(--rose-dark);
  font-size: clamp(24px, 3vw, 34px);
}

.future-space p {
  margin: 0;
  color: rgba(76, 51, 64, 0.68);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.9;
}

.detail-petals span:nth-child(1) { left: 8%; top: 22%; }
.detail-petals span:nth-child(2) { left: 66%; top: 28%; }
.detail-petals span:nth-child(3) { right: 10%; bottom: 16%; }

@media (max-width: 860px) {
  .site-header {
    height: 66px;
    padding: 0 18px;
  }

  .nav-links {
    gap: 14px;
    font-size: 13px;
  }

  .nav-links a:nth-child(n + 3) {
    display: none;
  }

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

  .hero-content h1 .hero-heart {
    display: block;
    margin: 6px 0 0;
  }

  .chapter-preview {
    grid-template-columns: 1fr;
    padding-top: 86px;
  }

  .catalog-gateway {
    min-height: 62vh;
  }

  .memory-card {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .chapter-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .chapter-card img {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .detail-card {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .detail-gallery.multi-image {
    grid-template-columns: 1fr;
  }

  .album-grid {
    grid-template-columns: repeat(auto-fill, 112px);
    gap: 12px;
  }

  .album-grid .album-thumb {
    width: 112px;
    height: 112px;
  }

  .image-lightbox {
    padding: 56px 18px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .page-dots {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 17px;
  }

  .nav-links {
    gap: 10px;
  }

  .language-switcher .language-option {
    padding: 0 9px;
    font-size: 12px;
  }

  .nav-links a {
    gap: 4px;
  }

  .hero {
    min-height: 92vh;
  }

  .butterfly-field {
    width: 58vw;
    opacity: 0.78;
  }

  .butterfly:nth-child(n + 4) {
    display: none;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .scroll-hint {
    bottom: 88px;
  }

  .down-button {
    width: 58px;
    height: 58px;
    bottom: 42px;
    font-size: 34px;
  }

  .chapter-preview {
    padding-inline: 18px;
  }

  button,
  .primary-action {
    width: 100%;
    padding: 0 18px;
  }

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

  .album-grid .album-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .heart-line {
    right: -15px;
    font-size: 70px;
  }
}
