/* 复刻小程序的 UI 风格（单位改为 px，布局与阴影等保持一致） */
:root { --rpx: calc(100vw / 750); }

.page-container { position: relative; width: 100%; min-height: 100vh; }
.fullscreen-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: -1; }
.content { position: relative; z-index: 1; padding: 20px; }

/* 樱花层 */
.sakura-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 10; pointer-events: none; }

/* 感谢信 */
.thank-letter {
  background: linear-gradient(135deg, #fdf6e3 98%, #f5ecd7 100%);
  border-radius: 18px 18px 32px 18px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.16), 0 2px 0 #e6d8b8 inset;
  border: 2px solid #e6d8b8;
  padding: 24px 16px;
}
.title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 16px; color: #000; }
.thank-content { max-height: 120px; overflow: hidden; transition: max-height .3s ease; font-size: 22px; }
.thank-content[aria-expanded="true"], .thank-content[data-collapsed="false"] { max-height: none; }
.toggle-btn { display: block; margin: 8px auto 0; font-size: 16px; color: #007aff; background: #f4f4f4; border-radius: 16px; padding: 6px 16px; border: none; }

/* 人物卡片 */
.person-card { display: flex; align-items: center; background: rgba(255,255,255,0.5); border-radius: 18px; box-shadow: 0 4px 16px rgba(230,67,64,0.08); padding: 24px 32px; margin: 24px 12px 0; }
.person-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-right: 32px; border: 4px solid #ffd1dc; box-shadow: 0 2px 8px #ffd1dc44; }
.person-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.person-name { font-size: 22px; font-weight: 700; color: #e64340; margin-bottom: 8px; letter-spacing: 2px; }
.person-desc { font-size: 16px; color: #555; line-height: 1.6; }

/* 图片堆叠卡片 */
.stack-card { background: rgba(255,255,255,0.1); border-radius: 16px; margin: 24px 0 0; padding: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.stack-container { position: relative; width: 100%; height: 400px; }
.stack-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: opacity .5s; opacity: 1; }

/* 轮播卡片 */
.carousel-card { background: rgba(255,255,255,0.4); border-radius: 16px; margin: 24px 0 0; padding: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.carousel-title { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 8px; color: #2c3e50; }
.carousel-title-center { text-align: center; width: 100%; font-weight: 700; text-shadow: 2px 2px 8px #b3c6e0; letter-spacing: 2px; color: #2c3e50; }
.carousel-swiper { width: 100%; height: 360px; border-radius: 12px; overflow: hidden; position: relative; }
.carousel-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.carousel-swiper .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.carousel-swiper .slide.active { opacity: 1; }
.heart { color: #e64340; }

/* 页脚文案 */
.footer-bless { margin-top: 24px; padding-bottom: 16px; text-align: center; }
.bless-cn { display: block; font-size: 22px; color: #e64340; font-weight: 700; letter-spacing: 2px; text-shadow: 2px 2px 8px #ffd1dc, 0 0 2px #fff; margin-bottom: 6px; }
.bless-en { display: block; font-size: 18px; color: #ff7f50; font-weight: 700; letter-spacing: 1px; text-shadow: 1px 1px 6px #fff0f5, 0 0 2px #fff; }

/* 弹幕系统 */
.barrage-container { position: fixed; inset: 0; pointer-events: none; z-index: 10000; overflow: hidden; }
.barrage-item { position: absolute; white-space: nowrap; font-size: 18px; font-weight: 700; text-shadow: 1px 1px 2px #b9b4b4; animation: barrageMove 15s linear infinite; opacity: .9; }
@keyframes barrageMove { 0% { transform: translateX(100vw); opacity: .9 } 100% { transform: translateX(-100%); opacity: .2 } }

.barrage-input-container { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); display: flex; width: 86%; background: rgba(255,255,255,.95); border-radius: 32px; padding: 12px; z-index: 10001; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.barrage-input { flex: 1; height: 40px; padding: 0 12px; background: transparent; border: none; outline: none; }
.send-btn { width: 96px; height: 40px; line-height: 40px; text-align: center; background: #07c160; color: #fff; border-radius: 24px; font-size: 14px; border: none; }

/* 右下角弹幕触发按钮 */
.barrage-trigger { position: fixed; bottom: 24px; right: 24px; width: 64px; height: 64px; border-radius: 50%; background: rgba(230, 67, 64, 0); color: #305df1; display: grid; place-items: center; font-size: 30px; z-index: 10001; border: none; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; }
.barrage-trigger:focus, .barrage-trigger:active { outline: none; box-shadow: none; }
.barrage-trigger::-moz-focus-inner { border: 0; padding: 0; }
.barrage-trigger::before {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90% 90%;
  transform: none;
  /* 使用本地 PNG 图标 */
  background-image: url('./images/NLqoPmbJpe.png');
}

/* 左下角管理按钮 */
.manage-barrage-btn { position: fixed; bottom: 24px; left: 24px; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #e6434000 0%, #ff7f5000 100%);z-index: 10001; border: none; }

/* 管理弹窗 */
.manage-barrage-modal.hidden { display: none; }
.manage-barrage-modal .modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 10002; }
.manage-barrage-modal .modal-content { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 12px; padding: 16px; z-index: 10003; min-width: 320px; }
.modal-title { font-weight: 700; margin-bottom: 12px; }
.barrage-list-scroll { max-height: 50vh; overflow: auto; }
.hidden { display: none; }

/* 音乐按钮 */
.music-btn { position: fixed; top: 12px; right: 12px; background: transparent; border: none; font-size: 22px; z-index: 10001; }
