/* who-is-she-page 图片动画和布局 */
.photo-group {
  position: relative;
  width: 100vw;
  height: 60vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.who-photo {
  position: absolute;
  left: 12vw;
  opacity: 0;
  box-shadow: 0 8px 24px rgba(255,192,203,0.18);
  border-radius: 18px;
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1), transform 1.2s cubic-bezier(.4,0,.2,1);
}
.who-photo-1 {
  top: -60px;
  width: 220px;
  z-index: 2;
  border: 5px solid #ffc1dc; /* 粉色边框 */
  box-shadow: 0 0 0 8px #fff6fa, 0 8px 24px rgba(255,192,203,0.18);
  animation: photoDropIn 1.2s ease forwards;
  animation-delay: 0.3s;
}
.who-photo-2 {
  top: 180px;
  left: 7vw;
  width: 160px;
  z-index: 1;
  transform: rotate(-8deg) scale(0.98);
  border: 5px solid #222; /* 黑色边框 */
  box-shadow: 0 0 0 8px #fff, 0 8px 24px rgba(120,120,120,0.10);
  animation: photoCuteIn 1.2s ease forwards;
  animation-delay: 1.3s;
}
@keyframes photoDropIn {
  0% { opacity: 0; transform: translateY(-80px) scale(0.96); }
  80% { opacity: 1; transform: translateY(0) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes photoCuteIn {
  0% { opacity: 0; transform: rotate(-8deg) scale(0.8) translateY(-40px); }
  80% { opacity: 1; transform: rotate(-8deg) scale(1.05) translateY(0); }
  100% { opacity: 1; transform: rotate(-8deg) scale(0.98) translateY(0); }
}
/* 主内容区渐隐动画，按钮点击后文字淡出 */
.main-content.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}
/* "她是谁"页面淡入动画与隐藏显示切换 */
.who-is-she-page.hidden {
  display: none;
}

.who-is-she-page {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 99;
  background: linear-gradient(90deg, #ffc1dc 0%, #fef6f9 100%);
  color: #d33;
  border: none;
  border-radius: 50%;
  font-size: 1.5em;
  font-family: 'Quicksand', 'ZCOOL KuaiLe', sans-serif;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255,192,203,0.12);
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}
.who-is-she-page.show {
  display: block;
  opacity: 1;
}
/* 主内容区垂直排列，按钮始终在下方且不受文字高度影响 */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 60vh;
  margin-top: 0;
}
/* 弹幕样式：极淡灰色，无发光 */
#bullets {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}
.bullet {
  position: absolute;
  color: rgba(120,120,120,0.22); /* 稍深一点的极淡灰色 */
  font-family: 'ZCOOL KuaiLe', 'Segoe UI', sans-serif;
  font-weight: normal;
  white-space: nowrap;
  opacity: 0;
  animation: bullet-fall 6s linear forwards;
  pointer-events: none;
  text-shadow: none;
  user-select: none;
}
@keyframes bullet-fall {
  0% {
    transform: translateY(-60px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    transform: translateY(300px);
    opacity: 1;
  }
  100% {
    transform: translateY(350px);
    opacity: 0;
  }
}
/* 页面基础样式 */
body {
  margin: 0;
  padding: 0;
  background: #fef6f9; /* 柔和粉色背景 */
  font-family: 'Segoe UI', sans-serif; /* 使用无衬线字体 */
  overflow: hidden; /* 防止滚动条出现 */
}

/* 主标题样式，带有淡入动画 */
h1 {
  text-align: center; /* 居中 */
  margin-top: 20vh;   /* 距顶部20%视口高度 */
  font-size: 3em;     /* 大号字体 */
  opacity: 0;         /* 初始透明 */
  animation: fadeIn 2s ease-in-out forwards; /* 淡入动画 */
}

/* 打字机文字样式 */
p {
  text-align: center;     /* 居中 */
  font-size: 1.2em;       /* 稍大字体 */
  color: #555;            /* 深灰色 */
  overflow: hidden;       /* 隐藏溢出 */
  white-space: nowrap;    /* 不换行 */
  margin: 20px auto 0 auto; /* 只设置上间距，底部无间距 */
}

/* "她是谁"按钮样式，固定在打字机区下方且不受文字高度影响 */
/* 让按钮浮动在固定位置，不被其他元素推下去 */
button[onclick*='#whoIsShe'] {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  padding: 12px 28px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(145deg, #ffc1dc, #ffe7ef);
  color: #70234b;
  font-family: 'Quicksand', sans-serif;
  box-shadow: 0 8px 15px rgba(255, 192, 203, 0.2);
  transition: all 0.3s ease;
  z-index: 10;
  animation: breathing 4s ease-in-out infinite;
}

button[onclick*='#whoIsShe']:hover {
  background: linear-gradient(145deg, #ff9ebf, #ffc1dc);
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 10px 18px rgba(255, 105, 135, 0.3);
}

/* 呼吸动画 */
@keyframes breathing {
  0%   { transform: translateX(-50%) scale(1); }
  50%  { transform: translateX(-50%) scale(1.06); }
  100% { transform: translateX(-50%) scale(1); }
}

/* 标题淡入关键帧动画 */
@keyframes fadeIn {
  to { opacity: 1; } /* 动画结束时完全不透明 */
}

/* 樱花canvas样式，固定在页面底层 */
canvas {
  position: fixed;      /* 固定定位 */
  top: 0;
  left: 0;
  pointer-events: none; /* 允许鼠标事件穿透，不影响页面交互 */
  z-index: 11;
}

/* 引用样式，使用 ZCOOL KuaiLe 字体 */
#quote {
  font-family: 'ZCOOL KuaiLe', cursive;
  max-height: 40vh;
  overflow: hidden;
  padding-bottom: 80px; /* 给文字区底部腾出空间，防止文字被按钮挡住 */
  white-space: normal; /* 允许文字自动换行 */
  line-height: 1.8em;
  text-align: center;
}

#title {
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  font-size: 3.8em;
  color: #333;
  font-weight: normal;
  letter-spacing: 2px;
  text-shadow: 2px 2px 5px rgba(255, 192, 203, 0.2);
  animation: fadeIn 2s ease-in-out forwards, floatTitle 4s ease-in-out infinite;
  opacity: 0; /* 保留这个，否则动画不触发 */
}

@keyframes floatTitle {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* "她是谁"气泡按钮样式，固定在页面底部居中，带有渐变、圆角和扩展动画，无黑边 */
.button-bubble {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 28px;
  border-radius: 40px;
  background: linear-gradient(145deg, #ffc1dc, #ffe7ef);
  color: #70234b;
  font-family: 'Quicksand', sans-serif;
  box-shadow: 0 8px 15px rgba(255, 192, 203, 0.2);
  cursor: pointer;
  z-index: 20;
  border: none;
  outline: none;
  transition: all 0.5s ease-in-out;
  overflow: hidden;
}

.button-bubble.hide-text {
  color: transparent;
}

.button-bubble.expand-hole {
  transform: translate(-50%, 0) scale(80);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffc1dc, #ffe7ef); /* 与按钮一致的渐变粉色 */
  transition: transform 1s ease-in-out;
  z-index: 19;
}

/* 隐藏默认的第二页内容 */
.who-is-she-page.hidden {
  display: none;
}
.who-is-she-page {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100vw;
  height: 100vh;
  background: #fef6f9;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  padding-top: 20vh;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.who-is-she-page.show {
  display: block;
  opacity: 1;
}

/* 新增样式：who-is-she-page 标题和内容 */
.who-is-she-page h1 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 2.8em;
  color: #70234b;
  margin-bottom: 20px;
}

.who-is-she-page .content {
  max-width: 600px;
  margin: auto;
  font-size: 1.2em;
  line-height: 2em;
  color: #444;
}
