:root {
  --pink-50: #fff7fb;
  --pink-100: #ffeaf3;
  --pink-200: #ffd3e5;
  --pink-300: #ffa8c9;
  --pink-400: #ff7fae;
  --pink-500: #f4518e;
  --pink-600: #d6336c;
  --ink: #5a2a3d;
  --ink-soft: #9c6079;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--pink-50);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

/* ---------- 飘落的小心心 ---------- */
.hearts { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hearts span {
  position: absolute;
  bottom: -8vh;
  color: rgba(244, 81, 142, .32);
  font-size: 18px;
  animation: rise linear infinite;
  will-change: transform, opacity;
}
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0) rotate(-8deg); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translate3d(24px, -112vh, 0) rotate(26deg); opacity: 0; }
}

/* ---------- 封面 ---------- */
.cover {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 46px 20px calc(44px + var(--safe-b));
  overflow: hidden;
  background:
    radial-gradient(75% 55% at 50% -5%, #fffdfa 0%, rgba(255, 253, 250, 0) 62%),
    radial-gradient(70% 60% at 0% 25%, #fff1f7 0%, rgba(255, 241, 247, 0) 60%),
    radial-gradient(65% 55% at 100% 82%, #ffd9e9 0%, rgba(255, 217, 233, 0) 60%),
    linear-gradient(168deg, #fff8f2 0%, #ffeaf3 34%, #ffd8e7 66%, #ffc3dd 100%);
}

.cover__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .85) 1.3px, transparent 1.35px);
  background-size: 26px 26px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 85%);
}

/* 手绘涂鸦 */
.cover__doodles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.doodle { position: absolute; opacity: .78; }
.doodle--heart { width: 46px; left: 7%; top: 13%; transform: rotate(-14deg); }
.doodle--star { width: 40px; right: 8%; top: 19%; transform: rotate(10deg); }
.doodle--flower { width: 38px; left: 11%; bottom: 17%; transform: rotate(-8deg); opacity: .6; }
.doodle--charm { left: 50%; top: 5%; transform: translateX(-50%); font-size: 20px; color: #ffa8c9; }
.doodle--charm2 { right: 17%; bottom: 11%; font-size: 22px; color: #ff8fb8; }

.cover__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 56px);
}

/* 手账相纸 */
.stack {
  position: relative;
  flex: 0 0 auto;
  width: clamp(200px, 30vw, 296px);
  transform: rotate(-2.5deg);
  animation: float-soft 6.5s ease-in-out infinite;
}
@keyframes float-soft {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50%      { transform: rotate(-1.4deg) translateY(-7px); }
}

.stack__sheet { position: absolute; border-radius: 18px; z-index: 1; }
.stack__sheet--1 {
  inset: 10px -6px -10px 6px;
  background: #ffd3e5;
  transform: rotate(5deg);
  box-shadow: 0 14px 28px rgba(214, 51, 108, .16);
}
.stack__sheet--2 {
  inset: 6px 8px -6px -8px;
  background: #fff6fb;
  transform: rotate(-4deg);
  box-shadow: 0 10px 22px rgba(214, 51, 108, .1);
}

.scrapbook {
  position: relative;
  z-index: 4;
  margin: 0;
  padding: 12px 12px 4px;
  background: #fdf8ee;
  border: 1px solid #f0dfcd;
  border-radius: 16px;
  box-shadow: 0 26px 52px rgba(150, 55, 90, .22), inset 0 1px 0 #fff;
}
.scrapbook img { display: block; width: 100%; height: auto; border-radius: 10px; }
.scrapbook figcaption {
  margin: 7px 0 3px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: #b98b74;
}

.tape {
  position: absolute;
  width: 76px;
  height: 23px;
  background: linear-gradient(100deg, rgba(255, 205, 224, .92), rgba(255, 170, 203, .82));
  border-left: 1px dashed rgba(255, 255, 255, .55);
  border-right: 1px dashed rgba(255, 255, 255, .55);
  box-shadow: 0 3px 9px rgba(170, 80, 115, .18);
}
.tape--l { top: -12px; left: -20px; transform: rotate(-26deg); }
.tape--r { bottom: 30px; right: -22px; transform: rotate(-20deg); }

.sticker {
  position: absolute;
  top: -18px;
  right: -16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px dashed #ff9cc2;
  color: #e0447f;
  font-weight: 900;
  font-size: 14px;
  display: grid;
  place-items: center;
  transform: rotate(9deg);
  box-shadow: 0 8px 16px rgba(214, 51, 108, .22);
}

.polaroid {
  position: absolute;
  z-index: 3;
  width: 86px;
  padding: 5px 5px 17px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 10px 22px rgba(120, 50, 80, .22);
}
.polaroid img {
  display: block;
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 2px;
  background: #ffe9f2;
}
.polaroid--a { left: -42px; bottom: -16px; transform: rotate(-10deg); }
.polaroid--b { right: -46px; top: 42%; transform: rotate(8deg); }

/* 文字区 */
.cover__text {
  position: relative;
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 520px;
  text-align: center;
  animation: fade-up .85s .1s cubic-bezier(.22, .9, .3, 1) both;
}

.cover__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: .46em;
  text-transform: uppercase;
  font-weight: 700;
  color: #d98aa6;
}

.cover__title {
  position: relative;
  display: inline-block;
  margin: 4px 0 0;
  font-size: clamp(38px, 8.2vw, 62px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .05em;
  color: #d6336c;
  text-shadow: 0 1px 0 #fff, 0 3px 0 #fff, 0 14px 26px rgba(214, 51, 108, .26);
}
.cover__title::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -14px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12'%3E%3Cpath d='M2 8 C 60 2, 90 12, 150 6 S 250 2, 298 7' fill='none' stroke='%23ff8fb8' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .9;
}

.cover__title .heart {
  display: inline-block;
  font-style: normal;
  font-size: .58em;
  vertical-align: .18em;
  margin: 0 .12em;
  color: #ff4f92;
  animation: beat 1.5s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  30%      { transform: scale(1.22); }
  55%      { transform: scale(.96); }
}

.ribbon {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  padding: 9px 34px;
  color: #fff;
  font-weight: 800;
  font-size: clamp(13px, 3.4vw, 17px);
  letter-spacing: .32em;
  background: linear-gradient(135deg, #ff9cc2, #f4518e 55%, #e83e7f);
  box-shadow: 0 12px 24px rgba(244, 81, 142, .32), inset 0 2px 0 rgba(255, 255, 255, .35);
  clip-path: polygon(0 50%, 14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%);
}

.cover__desc {
  margin: 18px 0 24px;
  font-size: clamp(12.5px, 3.2vw, 14.5px);
  color: #a05372;
  letter-spacing: .05em;
}

.btn-enter {
  position: relative;
  border: 0;
  cursor: pointer;
  padding: 15px 40px;
  border-radius: 999px;
  font-family: inherit;
  font-size: clamp(15px, 3.8vw, 17px);
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(135deg, #ff9cc2 0%, #f4518e 60%, #e83e7f 100%);
  box-shadow:
    0 14px 30px rgba(244, 81, 142, .45),
    0 4px 0 #c9366b,
    inset 0 2px 0 rgba(255, 255, 255, .45);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: breathe 2.8s ease-in-out infinite;
}
.btn-enter span { display: inline-block; margin-left: .3em; }
.btn-enter:hover { transform: translateY(-2px) scale(1.02); }
.btn-enter:active { transform: translateY(2px) scale(.99); box-shadow: 0 6px 18px rgba(244, 81, 142, .4), 0 2px 0 #c9366b; }

@keyframes breathe {
  0%, 100% { box-shadow: 0 14px 30px rgba(244, 81, 142, .45), 0 4px 0 #c9366b, inset 0 2px 0 rgba(255, 255, 255, .45); }
  50%      { box-shadow: 0 18px 38px rgba(244, 81, 142, .6), 0 4px 0 #c9366b, inset 0 2px 0 rgba(255, 255, 255, .45); }
}

.cover__meta {
  margin: 18px 0 0;
  font-size: 12px;
  color: #b36787;
  letter-spacing: .06em;
}
.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1.5px dashed #ffb3d1;
  color: #c9366b;
  font-weight: 700;
}

.cover__scroll {
  position: absolute;
  bottom: calc(16px + var(--safe-b));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 22px;
  color: #d6336c;
  opacity: .55;
  animation: nudge 2s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 7px); }
}

@media (max-width: 760px) {
  .cover { padding-top: 34px; gap: 0; }
  .cover__inner { flex-direction: column; gap: 22px; }
  .stack { width: clamp(172px, 46vw, 224px); }
  .polaroid { width: 64px; padding-bottom: 13px; }
  .polaroid img { height: 64px; }
  .polaroid--a { left: -26px; bottom: -12px; }
  .polaroid--b { right: -28px; top: 12px; }
  .doodle--heart { width: 32px; left: 3%; top: 7%; }
  .doodle--star { width: 28px; right: 3%; top: 11%; }
  .doodle--flower { display: none; }
  .ribbon { margin-top: 26px; }
  .cover__desc { margin: 14px 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .stack, .cover__scroll, .btn-enter, .cover__title .heart { animation: none !important; }
  .cover__text { animation: none !important; }
}

/* ---------- 照片墙 ---------- */
.gallery {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px clamp(14px, 4vw, 40px) 64px;
}

.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.gallery__title {
  margin: 0;
  font-size: clamp(22px, 5.4vw, 30px);
  font-weight: 900;
  letter-spacing: .08em;
  color: #c9366b;
}
.gallery__title::after {
  content: "♡";
  margin-left: .35em;
  font-size: .7em;
  color: #ff7fae;
}

.gallery__sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: .04em;
}

.btn-ghost {
  flex: none;
  border: 1.5px solid rgba(214, 51, 108, .35);
  background: rgba(255, 255, 255, .75);
  color: #c9366b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-ghost:hover { background: #fff; transform: translateY(-1px); }

.grid { column-count: 2; column-gap: 12px; }
@media (min-width: 640px) { .grid { column-count: 3; } }
@media (min-width: 1000px) { .grid { column-count: 4; gap: 14px; } }

.card {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  break-inside: avoid;
  cursor: zoom-in;
  box-shadow: 0 6px 18px rgba(214, 51, 108, .12);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.card img { display: block; width: 100%; height: auto; background: #ffeaf3; }
.card::after {
  content: "♡";
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 15px;
  color: #fff;
  opacity: 0;
  text-shadow: 0 1px 6px rgba(214, 51, 108, .8);
  transition: opacity .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(214, 51, 108, .22); }
.card:hover::after { opacity: 1; }

.gallery__foot {
  margin-top: 26px;
  text-align: center;
  font-size: 12.5px;
  color: #b36787;
}
.gallery__foot code {
  background: #ffe3ef;
  color: #c9366b;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}

/* ---------- 轮播查看器 ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: #1a0d14;
  overflow: hidden;
}

.viewer__bg {
  position: absolute;
  inset: -50px;
  background-size: cover;
  background-position: center;
  filter: blur(42px) saturate(1.35) brightness(.5);
  transform: scale(1.12);
  transition: opacity .45s ease;
  opacity: .9;
}

.viewer__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 14px 6px;
}

.round-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s, transform .2s;
}
.round-btn:hover { background: rgba(255, 255, 255, .26); }
.round-btn:active { transform: scale(.94); }

.viewer__count {
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
}

.viewer__stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  padding: 6px 10px;
  touch-action: pan-y;
}

#viewerImg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
  transition: opacity .28s ease, transform .4s cubic-bezier(.22, .9, .3, 1);
  user-select: none;
  -webkit-user-drag: none;
}
#viewerImg.switching { opacity: 0; transform: scale(.985); }

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s, transform .15s;
}
.nav-btn:hover { background: rgba(255, 255, 255, .28); }
.nav-btn:active { transform: translateY(-50%) scale(.92); }
.nav-btn--prev { left: max(8px, env(safe-area-inset-left, 0px)); }
.nav-btn--next { right: max(8px, env(safe-area-inset-right, 0px)); }

.viewer__bottom {
  position: relative;
  z-index: 2;
  padding: 6px 22px calc(18px + var(--safe-b));
}

.progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb3d1, #ff5c9d);
}

.viewer__caption {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .72);
}

body.viewer-open { overflow: hidden; }

@media (max-width: 520px) {
  .nav-btn { width: 40px; height: 40px; font-size: 26px; }
  .viewer__stage { padding: 2px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .hearts, .kitty, .cover__scroll, .btn-enter, .cover__title .heart { animation: none !important; }
}

/* 小屏补充：相纸说明不换行、右侧拍立得隐藏、整体更紧凑 */
@media (max-width: 760px) {
  .cover__inner { gap: 18px; }
  .stack { width: clamp(158px, 42vw, 200px); }
  .scrapbook figcaption { font-size: 9px; letter-spacing: .05em; white-space: nowrap; }
  .polaroid--b { display: none; }
  .polaroid--a { left: -40px; bottom: -14px; transform: rotate(-12deg); }
  .ribbon { margin-top: 22px; }
}


/* ================= 尾页 / 背景音乐 / 手机整页翻页 ================= */
.ending {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 22px calc(48px + var(--safe-b));
  overflow: hidden;
  background:
    radial-gradient(70% 50% at 50% 0%, #fffdfa 0%, rgba(255, 253, 250, 0) 60%),
    radial-gradient(60% 50% at 100% 82%, #ffd9e9 0%, rgba(255, 217, 233, 0) 60%),
    linear-gradient(168deg, #fff8f2 0%, #ffeaf3 40%, #ffd6e6 72%, #ffc3dd 100%);
}
.ending__inner { max-width: 560px; text-align: center; animation: fade-up .9s both; }
.ending__kitty {
  width: clamp(92px, 18vw, 128px);
  margin: 0 auto 16px;
  padding: 8px;
  background: #fdf8ee;
  border: 1px solid #f0dfcd;
  border-radius: 14px;
  transform: rotate(-3deg);
  box-shadow: 0 14px 28px rgba(150, 55, 90, .18);
}
.ending__kitty img { display: block; width: 100%; border-radius: 8px; }
.ending__kicker { margin: 0; font-size: 11px; letter-spacing: .44em; text-transform: uppercase; font-weight: 700; color: #d98aa6; }
.ending__title {
  margin: 12px 0 6px;
  font-size: clamp(24px, 6.6vw, 38px);
  font-weight: 900;
  letter-spacing: .05em;
  color: #c9366b;
  text-shadow: 0 2px 0 #fff, 0 12px 24px rgba(214, 51, 108, .22);
}
.ending__sub { margin: 0 0 20px; font-size: clamp(14px, 3.6vw, 18px); font-weight: 800; letter-spacing: .3em; color: #e2568f; }
.ending__line { margin: 0 0 26px; font-size: 12.5px; letter-spacing: .14em; color: #b36787; }
.ending .btn-enter { margin: 0 auto; }

.music-btn {
  position: fixed;
  right: 14px;
  bottom: calc(14px + var(--safe-b));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #d6336c;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 0 10px 24px rgba(214, 51, 108, .28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.music-btn__icon { font-size: 15px; line-height: 1; }
.music-btn.is-on { background: linear-gradient(135deg, #ff9cc2, #f4518e); color: #fff; }
.music-btn.is-on .music-btn__icon { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.story { display: none; }

@media (max-width: 760px) {
  html { scroll-snap-type: y mandatory; }
  .gallery { display: none !important; }
  .story { display: block; }
  .cover, .slide, .ending { scroll-snap-align: start; }
  .slide, .ending { scroll-snap-stop: always; }
  .slide {
    position: relative;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #180c12;
  }
  .slide__bg {
    position: absolute;
    inset: -46px;
    background-size: cover;
    background-position: center;
    filter: blur(34px) saturate(1.25) brightness(.45);
    transform: scale(1.12);
  }
  .slide__img {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 82vh;
    max-height: 82svh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .55);
  }
  .slide__meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(30px + var(--safe-b));
    z-index: 2;
    text-align: center;
    color: rgba(255, 255, 255, .92);
  }
  .slide__meta span { font-size: 12px; letter-spacing: .2em; }
  .slide__meta p { margin: 6px 0 0; font-size: 11.5px; letter-spacing: .14em; color: rgba(255, 255, 255, .62); }
  .slide__hint {
    position: absolute;
    top: calc(18px + var(--safe-t));
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .85);
    font-size: 11px;
    letter-spacing: .14em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

/* ================= 手机照片页：粉色相框 + Kitty 边角 ================= */
@media (max-width: 760px) {
  .slide { padding: 12px 0; }

  .slide__card {
    position: relative;
    z-index: 2;
    max-width: 86vw;
    max-height: 78vh;
    max-height: 78svh;
    padding: 12px 12px 36px;
    background: #fffdf8;
    border: 4px solid #ffb3d1;
    border-radius: 18px;
    box-shadow: 0 20px 46px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .22);
    transform: rotate(-1.2deg);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .slide__card .slide__img {
    max-width: 100%;
    max-height: 66vh;
    max-height: 66svh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    box-shadow: none;
  }

  .slide__tape {
    position: absolute;
    z-index: 3;
    width: 58px;
    height: 18px;
    background: linear-gradient(100deg, rgba(255, 205, 224, .95), rgba(255, 170, 203, .85));
    border-left: 1px dashed rgba(255, 255, 255, .6);
    border-right: 1px dashed rgba(255, 255, 255, .6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  }
  .slide__tape--l { top: -9px; left: 18px; transform: rotate(-18deg); }
  .slide__tape--r { top: -9px; right: 18px; transform: rotate(15deg); }

  .slide__kitty {
    position: absolute;
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #fdf8ee;
    border: 2px solid #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
  }
  .slide__kitty--tl { top: -22px; left: -16px; transform: rotate(-12deg); }
  .slide__kitty--br { bottom: -20px; right: -14px; transform: rotate(10deg); }
}

/* 尾页角落的 Kitty 贴纸 */
.ending::before,
.ending::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: url("kitty-head.png") center / cover no-repeat;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(150, 55, 90, .22);
  opacity: .95;
}
.ending::before { top: 38px; left: 30px; transform: rotate(-11deg); }
.ending::after { bottom: 92px; right: 30px; transform: rotate(9deg); }

@media (max-width: 760px) {
  .ending::before { top: 22px; left: 18px; width: 44px; height: 44px; }
  .ending::after { bottom: 86px; right: 18px; width: 44px; height: 44px; }
}

/* 矮屏手机：压缩封面高度，保证按钮和照片都在一屏内 */
@media (max-width: 760px) and (max-height: 720px) {
  .cover { padding-top: 24px; padding-bottom: 24px; }
  .cover__inner { gap: 14px; }
  .stack { width: clamp(146px, 38vw, 176px); }
  .cover__title { font-size: clamp(32px, 8.6vw, 46px); }
  .ribbon { margin: 18px auto 0; padding: 8px 28px; }
  .cover__desc { margin: 12px 0 14px; }
  .btn-enter { padding: 12px 32px; }
  .cover__meta { margin-top: 12px; }
  .ending { padding-top: 26px; padding-bottom: 26px; }
  .ending__kitty { width: 84px; margin-bottom: 10px; }
}
