
/* 1. 设置整个网页的基础样式 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", sans-serif;
  color: #fff3dc;

  /* 深蓝色星空背景 */
  background:
    radial-gradient(
      circle at 20% 20%,
      #26396c 0,
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 70%,
      #40305f 0,
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #080d27,
      #121a3d,
      #211d46
    );
}

/* 2. 首页内容区域 */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
}

/* 3. 首页小标题 */
.eyebrow {
  color: #ffdc9b;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* 4. 主标题 */
h1 {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
}

h1 span {
  display: block;
  color: #f3bddb;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  margin-top: 10px;
}

/* 5. 首页介绍文字 */
.description {
  color: #d0d5f3;
  font-size: 15px;
  line-height: 2;
  margin: 26px 0;
}

/* 6. 进入按钮 */
.enter-button {
  display: inline-block;
  padding: 14px 28px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(120deg, #ffe4a6, #f2b9d8);
  color: #222344;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.enter-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px #f2b9d844;
}

/* ===== 生日贺卡首页：精致排版 ===== */

body {
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    sans-serif;
  color: #F0E8D9;
  background:
    radial-gradient(
      circle at 50% 20%,
      #263354 0%,
      transparent 55%
    ),
    linear-gradient(
      145deg,
      #10182D 0%,
      #1A2340 55%,
      #22263F 100%
    );
}

/* 首页整体布局 */
.hero {
  min-height: 100vh;
  padding: 64px 24px;
  gap: 0;
}

/* 英文小标题 */
.eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  color: #C9B995;
  margin-bottom: 30px;
}

/* 主标题统一使用非斜体字体 */
h1 {
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.12em;
  color: #F1E8D7;
  margin: 0;
}

h1 span {
  display: block;
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 0.78em;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: #D8B6C7;
  margin-top: 8px;
}

/* 祝福文字 */
.description {
  margin: 34px 0 28px;
  font-size: 16px;
  font-weight: 400;
  line-height: 2.1;
  letter-spacing: 0.08em;
  color: #D1D5E1;
}

/* 按钮改为低饱和香槟金 */
.enter-button {
  padding: 13px 30px;
  border: 1px solid #C9B995;
  border-radius: 4px;
  background: #C9B995;
  color: #182039;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
}

.enter-button:hover {
  background: #E1D2B2;
  border-color: #E1D2B2;
  box-shadow: 0 8px 24px #080D1B40;
  transform: translateY(-2px);
}

/* ===== 卡通星空生日主题 ===== */

body {
  background:
    radial-gradient(ellipse at 15% 18%, #4A6192 0%, transparent 32%),
    radial-gradient(ellipse at 85% 72%, #6A568E 0%, transparent 30%),
    linear-gradient(180deg, #202F55 0%, #343A68 55%, #55456F 100%);
  overflow-x: hidden;
}

/* 首页作为卡通元素的定位区域 */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
}

/* 卡通背景装饰层 */
.cartoon-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* 漂浮星星 */
.cartoon-star {
  position: absolute;
  color: #FFE6A8;
  font-size: clamp(18px, 3vw, 34px);
  text-shadow: 0 0 16px #FFE6A855;
  animation: star-float 3.5s ease-in-out infinite;
}

.star-a { left: 12%; top: 18%; }
.star-b { left: 25%; top: 68%; animation-delay: .8s; }
.star-c { right: 13%; top: 20%; animation-delay: 1.2s; }
.star-d { right: 23%; top: 72%; animation-delay: .5s; }
.star-e { left: 48%; top: 12%; animation-delay: 1.6s; }

/* 圆滚滚的星星人 */
.star-person {
  position: absolute;
  right: 12%;
  top: 40%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  font-size: 56px;
  filter: drop-shadow(0 7px 8px #11152E44);
  animation: character-bob 3s ease-in-out infinite;
}

/* 另一侧的小云朵 */
.cartoon-cloud {
  position: absolute;
  right: 8%;
  bottom: 13%;
  font-size: clamp(48px, 7vw, 78px);
  opacity: .9;
  animation: cloud-drift 5s ease-in-out infinite;
}

/* 标题放在卡通元素前面 */
.hero > :not(.cartoon-scene) {
  position: relative;
  z-index: 1;
}

/* 让标题更像童话贺卡 */
.hero h1 {
  text-shadow: 0 4px 24px #10152D55;
}

.hero .eyebrow {
  color: #FFE6A8;
}

.hero .description {
  color: #F1EAF5;
}

/* 卡通人物的轻盈动画 */
@keyframes star-float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

@keyframes character-bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes dog-bob {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes cloud-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-12px); }
}

/* 手机屏幕：避免装饰挡住文字 */
@media (max-width: 600px) {
  .star-person {
    right: 5%;
    top: 20%;
    font-size: 42px;
    width: 55px;
    height: 55px;
  }

  .border-collie {
    left: 3%;
    bottom: 4%;
    font-size: 72px;
  }

  .cartoon-cloud {
    right: 3%;
    bottom: 5%;
    font-size: 48px;
  }

  .star-e {
    top: 8%;
  }
}


/* ===== 第二页布局修复 ===== */

.world-page {
  min-height: 100vh;
  padding: 35px 6%;
  box-sizing: border-box;
  color: #F5EBDD;
  background: linear-gradient(
    145deg,
    #222C50,
    #403C68 65%,
    #64517D
  );
}

.world-header {
  max-width: 1000px;
  margin: 0 auto;
}

.back-button {
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 24px;
  background: rgba(255,255,255,0.1);
  color: #F5EBDD;
  font-size: 14px;
  cursor: pointer;
}

.world-heading {
  text-align: center;
  margin: 40px auto 45px;
}

.world-eyebrow {
  color: #E4D2B6;
  font-size: 12px;
  letter-spacing: 3px;
}

.world-heading h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  margin: 18px 0;
  color: #FFF0DD;
}

.world-heading p {
  color: #E0D9E8;
}

/* 四个入口：两列卡片 */
.world-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.world-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;

  min-height: 200px;
  padding: 25px;
  box-sizing: border-box;

  text-align: center;
  text-decoration: none;
  color: #F5EBDD;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 24px;

  transition: transform 0.3s ease,
              background 0.3s ease;
}

.world-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.15);
}

.world-icon {
  font-size: 38px;
}

.world-card-title {
  font-size: 18px;
  font-weight: 500;
}

.world-card-desc {
  font-size: 13px;
  color: #D5D2E4;
}

.world-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 45px;
  color: #E4D2B6;
  font-size: 13px;
}

/* 手机适配 */
@media (max-width: 600px) {
  .world-map {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .world-card {
    min-height: 160px;
  }
}


/* ===== 左下角：鲜花边牧插画 ===== */

.flower-collie {
  position: absolute;

  /* 左下角位置 */
  left: 4%;
  bottom: 5%;

  /* 插画大小 */
  width: 270px;

  /* 显示层级 */
  z-index: 3;

  /* 透明度 */
  opacity: 0.80;

  /* 不遮挡按钮点击 */
  pointer-events: none;

  /* 轻微漂浮动画 */
  animation: flower-dog-float 4s ease-in-out infinite;
}

/* 保持图片原始比例 */
.flower-collie img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(12, 16, 40, 0.25));
}

/* 轻微漂浮 */
@keyframes flower-dog-float {
  0%, 80% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* 手机屏幕适配 */
@media (max-width: 600px) {
  .flower-collie {
    width: 65px;
    left: 2%;
    bottom: 2%;
  }
}


/* ===== 第三级页面：Some Photos ===== */

/* 页面切换：进入二级或三级页面时隐藏首页 */
body:has(#world:target) .hero,
body:has(#gallery:target) .hero {
  display: none;
}

body:has(#gallery:target) .world-page {
  display: none;
}

.gallery-page {
  display: none;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 35px 6% 80px;
  color: #F5EBDD;
  background:
    radial-gradient(ellipse at 10% 15%, #46587D 0%, transparent 35%),
    radial-gradient(ellipse at 90% 70%, #57436D 0%, transparent 35%),
    linear-gradient(180deg, #202B4A, #303453 55%, #443958);
}

.gallery-page:target {
  display: block;
}

/* 顶部 */
.gallery-header {
  max-width: 1150px;
  margin: 0 auto;
}

.gallery-back {
  display: inline-block;
  padding: 10px 16px;
  color: #F1E4D2;
  border: 1px solid #FFFFFF40;
  border-radius: 24px;
  text-decoration: none;
  font-size: 13px;
  background: #FFFFFF0C;
}

.gallery-back:hover {
  background: #FFFFFF20;
}

.gallery-intro {
  text-align: center;
  padding: 55px 0 65px;
}

.gallery-kicker {
  font-size: 11px;
  letter-spacing: 4px;
  color: #E3CDA6;
}

.gallery-intro h2 {
  margin: 22px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.gallery-intro p {
  font-size: 15px;
  color: #D7D2E2;
}

.gallery-sparkle {
  display: block;
  margin-top: 25px;
  color: #F2D89B;
  letter-spacing: 18px;
}

/* 错落照片墙 */
.photo-wall {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10%;
  row-gap: 85px;
  align-items: start;
  padding-bottom: 70px;
}

.photo-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: zoom-in;
  color: #353042;
  font: inherit;

  opacity: 0;
  transform: translateY(40px) rotate(var(--tilt, 0deg));
  transition:
    opacity .7s ease,
    transform .7s ease;
}

.photo-item.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--tilt, 0deg));
}

.photo-item.is-visible:hover {
  transform: translateY(-12px) rotate(0deg) scale(1.025);
}

/* 左右错落、高低不齐 */
.photo-item:nth-child(1) {
  --tilt: -4deg;
  margin-top: 0;
}

.photo-item:nth-child(2) {
  --tilt: 5deg;
  margin-top: 110px;
}

.photo-item:nth-child(3) {
  --tilt: 3deg;
  margin-top: -40px;
}

.photo-item:nth-child(4) {
  --tilt: -5deg;
  margin-top: 85px;
}

.photo-item:nth-child(5) {
  --tilt: -3deg;
  margin-top: -20px;
}

.photo-item:nth-child(6) {
  --tilt: 4deg;
  margin-top: 110px;
}

/* 明信片纸张 */
.photo-paper {
  display: block;
  padding: 13px 13px 19px;
  background: #F5EFE4;
  border-radius: 3px;
  box-shadow:
    0 20px 45px #0B102950,
    0 4px 12px #0B102930;
}

.photo-paper img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: 2px;
}

.photo-caption {
  display: block;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: #5D5361;
}

/* 页面底部 */
.gallery-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #E1CEAA;
  font-size: 13px;
  text-align: center;
}

.gallery-footer a {
  color: #F5EBDD;
  text-decoration: none;
  border-bottom: 1px solid #F5EBDD70;
  padding-bottom: 5px;
}

/* ===== 放大明信片弹窗 ===== */

.postcard-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.postcard-modal.active {
  display: flex;
}

.postcard-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 30, .86);
  backdrop-filter: blur(10px);
}

.postcard-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  width: min(950px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #F5EFE4;
  color: #3D3440;
  border-radius: 6px;
  box-shadow: 0 25px 80px #00000070;
}

.postcard-close {
  position: absolute;
  top: 12px;
  right: 15px;
  z-index: 2;
  border: none;
  background: transparent;
  color: #514659;
  font-size: 32px;
  cursor: pointer;
}

.postcard-photo {
  padding: 22px;
  background: #EAE1D5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.postcard-photo img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.postcard-message {
  padding: 55px 42px 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.postcard-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: #A58C75;
}

.postcard-message h3 {
  margin: 28px 0 18px;
  font-size: 27px;
  font-weight: 500;
}

.postcard-date,
.postcard-place {
  font-size: 12px;
  color: #847686;
  margin: 3px 0;
}

.postcard-divider {
  color: #C4A67A;
  margin: 30px 0 15px;
}

.postcard-note {
  font-size: 15px;
  line-height: 2.2;
  white-space: pre-line;
}

.postcard-signature {
  margin-top: auto;
  padding-top: 30px;
  align-self: flex-end;
  font-size: 15px;
  color: #A68C82;
}

/* 手机适配 */
@media (max-width: 650px) {
  .gallery-page {
    padding: 25px 18px 55px;
  }

  .photo-wall {
    grid-template-columns: 1fr;
    gap: 45px;
    max-width: 400px;
  }

  .photo-item:nth-child(n) {
    margin-top: 0;
  }

  .photo-item:nth-child(even) {
    width: 88%;
    justify-self: end;
  }

  .photo-item:nth-child(odd) {
    width: 88%;
    justify-self: start;
  }

  .postcard-content {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }

  .postcard-photo {
    padding: 15px;
  }

  .postcard-photo img {
    max-height: 45vh;
  }

  .postcard-message {
    padding: 28px 25px 30px;
  }

  .postcard-message h3 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-item,
  .photo-item.is-visible,
  .photo-item.is-visible:hover {
    transition: none;
    transform: none;
  }
}


/* ===== Beauty of Soul 动效 ===== */


/* 标题进入动画 */
.world-page:target .world-heading {
  animation: world-title-enter .8s ease-out both;
}

@keyframes world-title-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 四张卡片依次出现 */
.world-page:target .world-card {
  animation: world-card-enter .7s ease-out both;
}

.world-page:target .world-card:nth-child(1) {
  animation-delay: .15s;
}

.world-page:target .world-card:nth-child(2) {
  animation-delay: .3s;
}

.world-page:target .world-card:nth-child(3) {
  animation-delay: .45s;
}

.world-page:target .world-card:nth-child(4) {
  animation-delay: .6s;
}

@keyframes world-card-enter {
  from {
    opacity: 0;
    transform: translateY(35px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 卡片悬停发光 */
.world-card {
  position: relative;
  overflow: hidden;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.world-card:hover {
  transform: translateY(-7px) scale(1.025);
  box-shadow:
    0 0 22px rgba(231, 199, 255, .3),
    0 12px 30px rgba(12, 16, 40, .35);
}

/* 点击时震动 */
.world-card.card-clicked {
  animation: card-shake-flash .48s ease-in-out both !important;
}

@keyframes card-shake-flash {
  0% {
    transform: translateX(0) scale(1);
    filter: brightness(1);
  }

  20% {
    transform: translateX(-5px) scale(1.02);
    filter: brightness(1.7);
  }

  40% {
    transform: translateX(5px) scale(1.02);
    filter: brightness(1.3);
  }

  60% {
    transform: translateX(-3px) scale(1.01);
    filter: brightness(1.6);
  }

  80% {
    transform: translateX(2px) scale(1.01);
  }

  100% {
    transform: translateX(0) scale(1);
    filter: brightness(1);
  }
}

/* 点击时产生一层白色闪光 */
.world-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.65);
  opacity: 0;
  pointer-events: none;
}

.world-card.card-clicked::after {
  animation: card-light-flash .48s ease-out;
}

@keyframes card-light-flash {
  0%, 100% {
    opacity: 0;
  }

  30% {
    opacity: .55;
  }
}

/* 尊重系统减少动画的设置 */
@media (prefers-reduced-motion: reduce) {
  .world-page:target .meteor,
  .world-page:target .world-heading,
  .world-page:target .world-card,
  .world-card.card-clicked,
  .world-card.card-clicked::after {
    animation: none !important;
  }
}



/* ==================================
   BIRTHDAY CASTLE
   午夜限定梦幻城堡
================================== */

.birthday-castle-page {
  display: none;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #111831;
  color: #fff1dc;
}

/* 通过 #birthday-castle 进入页面 */
.birthday-castle-page:target {
  display: block;
}

/* 城堡打开时隐藏原有页面 */
body:has(#birthday-castle:target)
  > section:not(#birthday-castle),
body:has(#birthday-castle:target)
  > main {
  display: none !important;
}

/* 如果原有页面使用其他容器，
   JS 还会额外切换页面显示 */

/* 城堡背景 */
.bc-scenery {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;

  background:
    linear-gradient(
      to top,
      rgba(12, 13, 40, .55),
      rgba(20, 19, 55, .08) 65%
    ),
    url("images/birthday-castle.png")
      center center / cover no-repeat,
    linear-gradient(
      160deg,
      #111a39 5%,
      #373064 48%,
      #986b9c 100%
    );

  filter: blur(18px) brightness(.65);
  transform: scale(1.1);

  transition:
    filter 2.3s ease,
    transform 3s ease;
}

/* 午夜揭幕：背景清晰 */
.birthday-castle-page.bc-revealed
.bc-scenery {
  filter: blur(0) brightness(1);
  transform: scale(1);
}

/* 银河：柔和发光的斜向光带 */
.bc-galaxy {
  position: absolute;
  width: 150%;
  height: 26%;
  top: 13%;
  left: -25%;
  transform: rotate(-17deg);

  background: linear-gradient(
    to bottom,
    transparent,
    rgba(173, 160, 255, .12),
    rgba(247, 211, 250, .4),
    rgba(150, 183, 255, .17),
    transparent
  );

  filter: blur(20px);
  opacity: .6;
  transition: opacity 2s ease;
}

.bc-revealed .bc-galaxy {
  opacity: 1;
}

/* 星光 */
.bc-stars {
  position: absolute;
  inset: 0;
  opacity: .6;

  background-image:
    radial-gradient(
      2px 2px at 15% 20%,
      #fff 99%, transparent
    ),
    radial-gradient(
      2px 2px at 70% 12%,
      #ffe4b2 99%, transparent
    ),
    radial-gradient(
      3px 3px at 40% 35%,
      #fff 99%, transparent
    ),
    radial-gradient(
      2px 2px at 85% 42%,
      #fff 99%, transparent
    ),
    radial-gradient(
      2px 2px at 28% 58%,
      #d7c6ff 99%, transparent
    );

  background-size: 310px 260px;
  animation: bc-twinkle 4s ease-in-out infinite alternate;
}

@keyframes bc-twinkle {
  from { opacity: .35; }
  to { opacity: 1; }
}

/* 各阶段居中 */
.bc-stage {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 24px;
  text-align: center;
}

.bc-hidden {
  display: none !important;
}

/* 倒计时玻璃面板 */
.bc-waiting-panel {
  width: min(90%, 650px);
  padding: 48px 28px;

  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;

  background: rgba(25, 24, 59, .28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 0 65px rgba(201,172,255,.12);
}

.bc-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  color: #f0d5a5;
}

.bc-waiting-panel h2 {
  margin: 24px 0 30px;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 400;
  letter-spacing: 3px;
}

.bc-clock {
  font-size: clamp(38px, 8vw, 80px);
  font-weight: 300;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 25px rgba(255,220,170,.65);
  white-space: nowrap;
}

.bc-hint {
  margin-top: 25px;
  font-size: 13px;
  letter-spacing: 2px;
  color: #f1d7ba;
}

/* 最后十秒 */
.bc-big-number {
  margin-top: 25px;
  font-size: clamp(130px, 27vw, 290px);
  line-height: 1.1;
  font-weight: 300;
  color: #ffe6b7;

  text-shadow:
    0 0 30px rgba(255,218,155,.9),
    0 0 90px rgba(245,174,209,.5);
}

.bc-number-pop {
  animation: bc-count-pop .8s ease-out;
}

@keyframes bc-count-pop {
  from {
    opacity: .2;
    transform: scale(1.4);
    filter: blur(7px);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* 烟花覆盖全屏 */
#bc-fireworks {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 最终祝福 */
#bc-finale {
  z-index: 4;
}

.bc-message {
  opacity: 0;
  transform: translateY(30px) scale(.95);
}

.bc-message.bc-message-show {
  animation: bc-message-appear 2.5s ease forwards;
}

.bc-message span {
  font-size: 12px;
  letter-spacing: 4px;
  color: #f5d4a3;
}

.bc-message h1 {
  margin: 28px 0;
  font-size: clamp(36px, 7vw, 85px);
  font-weight: 500;
  letter-spacing: 5px;
  color: #fff1d6;

  text-shadow:
    0 0 25px #ffdfad,
    0 0 65px rgba(248,174,207,.65);
}

.bc-message p {
  font-size: 13px;
  letter-spacing: 2px;
  color: #f8e6d8;
}

@keyframes bc-message-appear {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 返回入口 */
.bc-back {
  position: absolute;
  z-index: 10;
  top: 28px;
  left: 30px;
  color: #fff0d8;
  font-size: 13px;
  text-decoration: none;
  opacity: .75;
}

.bc-back:hover {
  opacity: 1;
}

/* 手机适配 */
@media (max-width: 600px) {
  .bc-waiting-panel {
    padding: 36px 15px;
  }

  .bc-clock {
    font-size: clamp(30px, 8vw, 48px);
    letter-spacing: 1px;
  }

  .bc-message h1 {
    letter-spacing: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bc-stars,
  .bc-number-pop,
  .bc-message.bc-message-show {
    animation: none !important;
  }

  .bc-scenery {
    transition: none !important;
  }

  .bc-message.bc-message-show {
    opacity: 1;
    transform: none;
  }
}


/* ===== 首页：梦幻紫主题 ===== */

.hero {
  background:
    radial-gradient(
      ellipse at 18% 80%,
      rgba(239, 170, 205, 0.22) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse at 78% 18%,
      rgba(190, 158, 235, 0.26) 0%,
      transparent 48%
    ),
    linear-gradient(
      135deg,
      #292342 0%,
      #564270 36%,
      #89648F 72%,
      #B58AA9 100%
    );
}


/* 首页主标题 */
.hero h1 {
  color: #FFF0E2;
  text-shadow:
    0 0 20px rgba(255, 223, 199, 0.22);
}

/* 首页按钮：香槟金 */
.hero .open-btn {
  background: #F0D8AE;
  color: #342A4A;
  border-color: rgba(255, 240, 220, .5);

  box-shadow:
    0 6px 24px rgba(246, 197, 219, .2);
}

.hero .open-btn:hover {
  background: #FFE6C3;
  transform: translateY(-3px);
  box-shadow:
    0 0 30px rgba(255, 215, 183, .45);
}



/* ===== 二级页面：发光蝴蝶 ===== */

.world-page {
  position: relative;
}

/* 飞行轨道 */
.butterfly-flight {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 40px;
  z-index: 8;
  pointer-events: none;

  opacity: 0;
}

/* 进入二级页面后开始飞行 */
.world-page:target .butterfly-flight {
  animation: butterfly-travel 4.2s ease-in-out 1s forwards;
}

/* 蝴蝶整体 */
.butterfly-body {
  width: 100%;
  height: 100%;
  transform: rotate(-12deg);
  filter:
    drop-shadow(0 0 4px rgba(255, 231, 171, .9))
    drop-shadow(0 0 12px rgba(255, 210, 145, .6));
}

/* SVG */
.glow-butterfly {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* 翅膀线描 */
.butterfly-wing {
  fill: rgba(255, 226, 180, .07);
  stroke: #FFE8B6;
  stroke-width: 1.7;
  stroke-linejoin: round;
  transform-box: fill-box;
}

/* 左右翅膀扇动 */
.butterfly-left {
  transform-origin: right center;
  animation: wing-left 0.38s ease-in-out infinite alternate;
}

.butterfly-right {
  transform-origin: left center;
  animation: wing-right 0.38s ease-in-out infinite alternate;
}

@keyframes wing-left {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(.45);
  }
}

@keyframes wing-right {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(.45);
  }
}

/* 身体与触角 */
.butterfly-center {
  fill: #FFE9BF;
  stroke: #FFE9BF;
  stroke-width: 1;
}

.butterfly-antenna {
  fill: none;
  stroke: #FFE9BF;
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* 飞行路径：从左侧飞到右侧 */
@keyframes butterfly-travel {
  0% {
    opacity: 0;
    left: -8%;
    top: 57%;
    transform: rotate(-15deg) scale(.8);
  }

  12% {
    opacity: 1;
  }

  28% {
    left: 16%;
    top: 38%;
    transform: rotate(12deg) scale(1);
  }

  52% {
    left: 38%;
    top: 53%;
    transform: rotate(-10deg) scale(.95);
  }

  76% {
    left: 61%;
    top: 31%;
    transform: rotate(10deg) scale(1);
  }

  100% {
  opacity: 1;
  left: var(--butterfly-end-x, 76%);
  top: var(--butterfly-end-y, 45%);
  transform: rotate(-8deg) scale(.85);
  }
}

/* 停稳之后轻微浮动 */
.world-page:target .butterfly-body {
  animation: butterfly-rest 2.5s ease-in-out 5.2s infinite;
}

@keyframes butterfly-rest {
  0%, 100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-4px) rotate(-5deg);
  }
}

/* 手机屏幕 */
@media (max-width: 600px) {
  .butterfly-flight {
    width: 34px;
    height: 30px;
  }
}

/* 减少动态效果偏好 */
@media (prefers-reduced-motion: reduce) {
  .world-page:target .butterfly-flight {
    animation: none;
    opacity: 1;
    left: 76%;
    top: 45%;
  }

  .butterfly-left,
  .butterfly-right,
  .world-page:target .butterfly-body {
    animation: none;
  }
}


/* Some Pieces 保持原尺寸，移动到第二行正中央 */
.three-card-layout > a:nth-child(3) {
  grid-column: 1 / -1 !important;
  justify-self: center !important;

  width: calc(50% - 13px) !important;
  max-width: none !important;
}
@media (max-width: 700px) {
  .three-card-layout > a:nth-child(3) {
    grid-column: 1 !important;
    width: 100% !important;
  }
}


/* ==========================================
   HAPPY BIRTHDAY · 页面显示与切换
========================================== */

/* 默认隐藏生日页面 */
#diary.poetry-page {
  display: none;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: #fff0e9;

  background:
    radial-gradient(
      ellipse at 65% 65%,
      rgba(159, 112, 173, .35),
      transparent 52%
    ),
    linear-gradient(
      145deg,
      #222541,
      #403354 48%,
      #675079
    );
}

/* 只有点击 Happy Birthday 才显示 */
#diary.poetry-page:target {
  display: block;
}

/* 进入生日页面时，隐藏其他页面 */
body:has(#diary:target) > .hero,
body:has(#diary:target) > #world,
body:has(#diary:target) > #gallery,
body:has(#diary:target) > #birthday-castle,
body:has(#diary:target) > #postcard-modal {
  display: none !important;
}

/* ==========================================
   星空与星云
========================================== */

#diary .poetry-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

#diary .poetry-nebula {
  position: absolute;
  inset: -20%;

  background:
    radial-gradient(
      ellipse at 30% 55%,
      rgba(234, 178, 217, .13),
      transparent 40%
    ),
    radial-gradient(
      ellipse at 75% 35%,
      rgba(198, 176, 248, .15),
      transparent 38%
    );

  animation: poetry-nebula-move 20s
    ease-in-out infinite alternate;
}

@keyframes poetry-nebula-move {
  from {
    transform: translate(-2%, 1%) scale(1);
  }
  to {
    transform: translate(2%, -2%) scale(1.08);
  }
}

#diary .poetry-stars {
  position: absolute;
  inset: 0;
}

#diary .poetry-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ffe5bd;
  box-shadow: 0 0 8px #ffe5bd;

  animation: poetry-twinkle
    var(--twinkle-time, 4s)
    ease-in-out infinite alternate;
}

@keyframes poetry-twinkle {
  from { opacity: .15; }
  to { opacity: .85; }
}

/* ==========================================
   返回按钮
========================================== */

#diary .poetry-back {
  position: absolute;
  top: 25px;
  left: 30px;
  z-index: 5;

  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 30px;

  color: #f6e9ef;
  text-decoration: none;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);

  transition: background .3s, transform .3s;
}

#diary .poetry-back:hover {
  background: rgba(255,255,255,.15);
  transform: translateX(-4px);
}

/* ==========================================
   顶部标题
========================================== */

#diary .poetry-header {
  position: relative;
  z-index: 2;
  padding: 95px 20px 0;
  text-align: center;
  pointer-events: none;
}

#diary .poetry-eyebrow {
  color: #ead3ad;
  font-size: 12px;
  letter-spacing: .3em;
}

#diary .poetry-header h1 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.4;
  color: #fff0e5;
}

#diary .poetry-header p {
  margin: 0;
  font-size: 15px;
  letter-spacing: .12em;
  color: #dccbe5;
}

/* ==========================================
   漂浮文字区域
========================================== */

#diary .poetry-field {
  position: relative;
  z-index: 2;
  width: min(1100px, 92%);
  height: clamp(390px, 56vh, 650px);
  margin: 20px auto 0;
}

#diary .poetry-phrase {
  position: absolute;

  left: var(--x);
  top: var(--y);

  padding: 12px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;

  color: #f4e4ee;

  font-family:
    "Noto Serif SC",
    "Songti SC",
    "SimSun",
    serif;

  font-size: var(--font-size, 18px);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.6;
  white-space: nowrap;

  cursor: pointer;
  opacity: .75;

  text-shadow:
    0 0 12px rgba(250,220,239,.22);

  transform: translate(-50%, -50%);

  transition:
    opacity .5s,
    color .4s,
    text-shadow .4s;

  animation:
    poetry-float var(--float-time, 11s)
    ease-in-out infinite alternate;
}

@keyframes poetry-float {
  0% {
    translate: -9px 5px;
  }

  50% {
    translate: 8px -8px;
  }

  100% {
    translate: 15px 7px;
  }
}

/* 鼠标经过文字 */
#diary .poetry-phrase:hover,
#diary .poetry-phrase:focus-visible {
  opacity: 1;
  color: #ffe5bc;

  text-shadow:
    0 0 12px rgba(255,226,175,.8),
    0 0 25px rgba(255,205,164,.35);

  animation-play-state: paused;
  outline: none;
}

/* 已经阅读过的文字 */
#diary .poetry-phrase.is-read {
  color: #f4d5a9;
  opacity: .9;
}

/* 展开祝福时，其余文字淡出 */
#diary.is-reading .poetry-phrase {
  opacity: .1;
  pointer-events: none;
}

/* ==========================================
   底部阅读进度
========================================== */

#diary .poetry-progress {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: space-between;
  gap: 20px;

  width: min(900px, 85%);
  margin: 0 auto;
  padding: 15px 0 35px;

  color: #e1cee7;
  font-size: 12px;
  letter-spacing: .08em;
}

/* ==========================================
   点击文字后：祝福展开层
========================================== */

#diary .poetry-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(25,22,47,.88);
  backdrop-filter: blur(10px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .55s ease,
    visibility .55s ease;
}

/* 只有点击祝福时才显示 */
#diary .poetry-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#diary .poetry-message {
  width: min(560px, 100%);
  text-align: center;

  transform: translateY(20px) scale(.96);
  transition: transform .6s ease;
}

#diary .poetry-overlay.is-open .poetry-message {
  transform: translateY(0) scale(1);
}

#diary .poetry-message-star {
  display: block;
  color: #f8d8a9;
  font-size: 30px;
  margin-bottom: 24px;
}

#diary .poetry-message h2 {
  margin: 0 0 25px;

  color: #fff0d8;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(25px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.5;
}

#diary .poetry-message p {
  color: #f1e1ef;
  font-size: 17px;
  line-height: 2.2;
  letter-spacing: .07em;
}

/* 关闭祝福按钮 */
#diary #poetry-close,
#diary #poetry-replay {
  margin-top: 30px;
  padding: 12px 25px;

  border: 1px solid rgba(246,218,177,.55);
  border-radius: 30px;

  background: rgba(255,255,255,.07);
  color: #f7e6ce;
  font-size: 14px;

  cursor: pointer;
  transition: background .3s, transform .3s;
}

#diary #poetry-close:hover,
#diary #poetry-replay:hover {
  background: rgba(246,218,177,.15);
  transform: translateY(-3px);
}

/* ==========================================
   最终生日信
========================================== */

#diary .poetry-finale {
  position: fixed;
  inset: 0;
  z-index: 1100;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
  overflow-y: auto;

  background:
    radial-gradient(
      ellipse at center,
      rgba(124,87,142,.97),
      #25243f 75%
    );

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 1.5s ease,
    visibility 1.5s ease;
}

/* 十句祝福读完后才显示 */
#diary .poetry-finale.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#diary .poetry-letter {
  width: min(650px, 100%);
  max-height: 90vh;
  overflow-y: auto;

  padding: 45px 48px;

  border: 1px solid rgba(255,235,210,.2);
  border-radius: 22px;

  background: rgba(255,255,255,.055);
  backdrop-filter: blur(14px);

  text-align: center;
  box-shadow: 0 20px 80px rgba(0,0,0,.15);
}

#diary .poetry-letter-label {
  color: #f0d6af;
  font-size: 11px;
  letter-spacing: .28em;
}

#diary .poetry-letter h2 {
  color: #fff0dc;
  font-size: 30px;
  font-weight: 400;
  margin: 20px 0 30px;
}

#diary .poetry-letter-body {
  color: #f3e5ed;
  font-size: 16px;
  line-height: 2.2;
  text-align: left;
}

#diary .poetry-letter-body p {
  margin: 0 0 18px;
}

#diary .poetry-letter-ending {
  color: #ffe2b5;
  font-size: 22px;
  text-align: center;
  margin-top: 32px;
}

/* ==========================================
   手机屏幕适配
========================================== */

@media (max-width: 700px) {
  #diary .poetry-header {
    padding-top: 95px;
  }

  #diary .poetry-back {
    top: 16px;
    left: 16px;
    font-size: 12px;
  }

  #diary .poetry-field {
    height: 62vh;
    min-height: 430px;
  }

  #diary .poetry-phrase {
    font-size: 13px;
    white-space: normal;
    width: max-content;
    max-width: 43%;
    text-align: center;
  }

  #diary .poetry-letter {
    padding: 30px 24px;
  }

  #diary .poetry-progress {
    width: 90%;
    font-size: 11px;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  #diary .poetry-nebula,
  #diary .poetry-star,
  #diary .poetry-phrase {
    animation: none;
  }
}


/* ==========================================
   HAPPY BIRTHDAY · 璀璨星河升级
========================================== */

/* 所有星星的基础效果 */
#diary .poetry-star {
  border-radius: 50%;
  background: #fff2da;

  box-shadow:
    0 0 5px rgba(255, 241, 215, .8),
    0 0 12px rgba(245, 205, 255, .35);

  animation: poetry-star-shimmer
    var(--twinkle-time, 4s)
    ease-in-out infinite alternate;
}

/* 远景：细碎的小星星，占大多数 */
#diary .poetry-star-small {
  width: 1px;
  height: 1px;
  opacity: .55;
}

/* 中景：柔和明亮的星点 */
#diary .poetry-star-medium {
  width: 2.5px;
  height: 2.5px;

  box-shadow:
    0 0 6px rgba(255,255,255,.9),
    0 0 15px rgba(230,192,255,.65);
}

/* 近景：少量特别闪耀的亮星 */
#diary .poetry-star-bright {
  width: 4px;
  height: 4px;

  background: #fff6e5;

  box-shadow:
    0 0 8px #fff5e4,
    0 0 18px rgba(255,220,175,.8),
    0 0 32px rgba(235,185,255,.5);
}

/* 十字星芒 */
#diary .poetry-star-bright::before,
#diary .poetry-star-bright::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,240,218,.9),
    transparent
  );

  pointer-events: none;
}

/* 横向光芒 */
#diary .poetry-star-bright::before {
  width: 20px;
  height: 1px;
}

/* 纵向光芒 */
#diary .poetry-star-bright::after {
  width: 1px;
  height: 20px;

  background: linear-gradient(
    180deg,
    transparent,
    rgba(255,240,218,.9),
    transparent
  );
}

/* 闪烁动画 */
@keyframes poetry-star-shimmer {
  0% {
    opacity: .18;
    transform: scale(.75);
  }

  50% {
    opacity: .7;
  }

  100% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* 星空背景稍微增加紫粉色光晕 */
#diary.poetry-page {
  background:
    radial-gradient(
      ellipse at 28% 35%,
      rgba(184, 140, 230, .22),
      transparent 45%
    ),
    radial-gradient(
      ellipse at 75% 65%,
      rgba(235, 155, 205, .18),
      transparent 48%
    ),
    linear-gradient(
      145deg,
      #1c203e 0%,
      #3a3159 48%,
      #624978 100%
    );
}

/* 尊重系统减少动画的设置 */
@media (prefers-reduced-motion: reduce) {
  #diary .poetry-star {
    animation: none;
  }
}


/* ==========================================
   FLOATING MEMORIES · 循环漂浮照片长廊
========================================== */

.floating-memories {
  position: relative;
  width: 100%;
  padding: 90px 0 70px;
  overflow: hidden;
}

/* 顶部标题 */
.floating-memories-heading {
  text-align: center;
  padding: 0 20px 50px;
}

.floating-memories-heading span {
  color: #e8d3a9;
  font-size: 11px;
  letter-spacing: 4px;
}

.floating-memories-heading h2 {
  margin: 20px 0 14px;
  color: #fff0df;
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 2px;
}

.floating-memories-heading p {
  color: #d8cde3;
  font-size: 14px;
  letter-spacing: 2px;
}

/* 照片长廊窗口 */
.floating-memories-window {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 45px 0;

  /* 两侧逐渐消失，形成梦幻过渡 */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );

  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

/* 整条照片轨道 */
.floating-memories-track {
  display: flex;
  width: max-content;
  animation: memories-scroll 48s linear infinite;
}

/* 鼠标经过时暂停滚动 */
.floating-memories-window:hover
.floating-memories-track {
  animation-play-state: paused;
}

/* 每组照片 */
.floating-memories-group {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 0 0 auto;
  padding-right: 32px;
}

/* 拍立得照片外框 */
.floating-photo {
  position: relative;
  flex: 0 0 auto;

  width: 210px;
  height: 265px;

  padding: 9px 9px 28px;

  background: #f9f3eb;
  border-radius: 4px;

  box-shadow:
    0 12px 30px rgba(10, 10, 35, .3),
    0 2px 8px rgba(255,255,255,.12);

  transform: rotate(var(--photo-tilt, -3deg));

  animation: memories-float
    var(--float-duration, 5s)
    ease-in-out infinite alternate;

  transition: box-shadow .4s;
}

/* 照片本身 */
.floating-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  pointer-events: none;
  user-select: none;
}

/* 每张照片不同的倾斜方向和漂浮节奏 */
.floating-photo:nth-child(6n + 1) {
  --photo-tilt: -6deg;
  --float-duration: 5.2s;
}

.floating-photo:nth-child(6n + 2) {
  --photo-tilt: 4deg;
  --float-duration: 6.5s;
}

.floating-photo:nth-child(6n + 3) {
  --photo-tilt: -2deg;
  --float-duration: 4.8s;
}

.floating-photo:nth-child(6n + 4) {
  --photo-tilt: 7deg;
  --float-duration: 6.1s;
}

.floating-photo:nth-child(6n + 5) {
  --photo-tilt: -5deg;
  --float-duration: 5.7s;
}

.floating-photo:nth-child(6n + 6) {
  --photo-tilt: 3deg;
  --float-duration: 6.8s;
}

/* 照片上下轻轻漂浮 */
@keyframes memories-float {
  0% {
    transform:
      translateY(-8px)
      rotate(var(--photo-tilt));
  }

  100% {
    transform:
      translateY(9px)
      rotate(var(--photo-tilt));
  }
}

/* 整条照片长廊无缝移动 */
@keyframes memories-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* 底部小字 */
.floating-memories-ending {
  margin-top: 30px;
  text-align: center;

  color: #e4cda8;
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
  letter-spacing: 3px;
  opacity: .75;
}

/* 手机适配 */
@media (max-width: 700px) {
  .floating-memories {
    padding: 60px 0 45px;
  }

  .floating-photo {
    width: 155px;
    height: 205px;
    padding: 7px 7px 22px;
  }

  .floating-memories-group {
    gap: 20px;
    padding-right: 20px;
  }

  .floating-memories-track {
    animation-duration: 38s;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .floating-memories-track,
  .floating-photo {
    animation: none;
  }
}

/* Happy Birthday 星空亮度增强 */

#diary .poetry-star-small {
  opacity: 0.8;
  box-shadow: 0 0 7px rgba(255, 245, 225, 0.8);
}

#diary .poetry-star-medium {
  box-shadow:
    0 0 9px rgba(255,255,255,0.95),
    0 0 20px rgba(230,192,255,0.7);
}

#diary .poetry-star-bright {
  box-shadow:
    0 0 12px #fff5e4,
    0 0 25px rgba(255,220,175,0.9),
    0 0 40px rgba(235,185,255,0.6);
}


/* ==========================================
   HAPPY · 全站音乐按钮
========================================== */

.site-music-toggle {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 9999;

  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 226, 182, 0.6);
  border-radius: 50%;

  background: rgba(49, 37, 79, 0.65);
  backdrop-filter: blur(14px);

  color: #ffe4b5;
  cursor: pointer;

  box-shadow:
    0 5px 20px rgba(20, 14, 45, 0.25),
    0 0 15px rgba(255, 215, 170, 0.12);

  transition:
    transform 0.3s ease,
    box-shadow 0.4s ease,
    background 0.3s ease;
}

.site-music-toggle:hover {
  transform: scale(1.1);
  background: rgba(91, 67, 122, 0.8);
}

.site-music-toggle .music-symbol {
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1;
  transform: translateY(-1px);
}

/* 播放时发出光晕 */

.site-music-toggle.is-playing {
  animation: music-light-pulse
    3s ease-in-out infinite;
}

@keyframes music-light-pulse {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(255, 219, 173, 0.2),
      0 0 25px rgba(210, 160, 255, 0.1);
  }

  50% {
    box-shadow:
      0 0 22px rgba(255, 219, 173, 0.55),
      0 0 40px rgba(210, 160, 255, 0.3);
  }
}

/* 右下角小状态指示灯 */

.site-music-toggle .music-status {
  position: absolute;
  right: 6px;
  bottom: 7px;

  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: #d2b9c8;

  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.site-music-toggle.is-playing .music-status {
  background: #ffe2a8;

  box-shadow:
    0 0 7px #ffe2a8,
    0 0 14px rgba(255, 226, 168, 0.7);
}

/* 关闭音乐时 */

.site-music-toggle.is-muted {
  opacity: 0.65;
}

.site-music-toggle.is-muted .music-symbol {
  color: #d7c7dc;
}

/* 手机适配 */

@media (max-width: 700px) {
  .site-music-toggle {
    right: 16px;
    bottom: 18px;

    width: 46px;
    height: 46px;
  }

  .site-music-toggle .music-symbol {
    font-size: 23px;
  }
}

/* 减少动画偏好 */

@media (prefers-reduced-motion: reduce) {
  .site-music-toggle.is-playing {
    animation: none;
  }
}
