/* 五个小程序页面的原样式合并（由 tools/port_miniprogram.mjs 生成）
   rpx 已 ×0.5 换算为 pt、env(safe-area-inset-*) 已归零、
   选择器已分别收进 .mp-beach / .mp-collection / .mp-friends / .mp-puzzle / .mp-me */
/* 由 tools/port_miniprogram.mjs 自动转换：rpx×0.5→pt、env(safe-area)→0、选择器收进 .mp-beach。来源 mini/pages/index/index.wxss */
/* ★ 恢复纯净背景，并加入 Swiper 滑动组件支持 */
.mp-beach .home-container{
  background-color: #E0F2FE;
  height: 812px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(8px) scale(0.996);
  transition: opacity 260ms cubic-bezier(0.22, 1, 0.36, 1), transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mp-beach .home-container.page-entered{
  opacity: 1;
  transform: translateY(0) scale(1);
}
.mp-beach .beach-swiper{ position: absolute; top: 0; left: 0; width: 375px; height: 812px; z-index: 0; }
.mp-beach .beach-bg{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.mp-beach .beach-bg-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.mp-beach .page-turn-zone{
  position: fixed;
  top: 0;
  height: 812px;
  width: 67.5px;
  z-index: 8;
}
.mp-beach .page-turn-zone.left{ left: 0; }
.mp-beach .page-turn-zone.right{ right: 0; }
.mp-beach .top-header{ position: absolute; top: calc(0px + 60px); left: 0; width: 100%; z-index: 10; padding: 0 24px; box-sizing: border-box; pointer-events: none;}
.mp-beach .status-bar{ margin-bottom: 24px; display: flex; align-items: center; pointer-events: auto;}
.mp-beach /* 优化了白底的内边距，让大图标有呼吸感 */
.star-dust-badge{ background-color: #ffffff; padding: 5px 14px; border-radius: 20px; display: flex; align-items: center; gap: 5px; box-shadow: 0 2px 7.5px rgba(0,0,0,0.08); }
.mp-beach /* 缩小星尘图标，显得更精致 */
.star-icon-img{ width: 24px; height: 24px; filter: drop-shadow(0 2px 3px rgba(118, 195, 196, 0.4)); margin-left: -2px; }
.mp-beach .star-icon-fallback{ width: 24px; height: 24px; line-height: 24px; text-align: center; font-size: 16px; color: #F59E0B; margin-left: -2px; }
.mp-beach .star-count{ font-weight: 900; color: #1F2937; font-size: 16px; }
.mp-beach .greeting-box{ display: flex; flex-direction: column; align-items: flex-start; pointer-events: none;}
.mp-beach .status-bar,.mp-beach .greeting-box{
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.mp-beach .beach-switch-out{
  opacity: 0;
  transform: translateY(-12px);
  transition-duration: 0.2s;
}
.mp-beach .beach-switch-in-prep{
  opacity: 0;
  transform: translateY(20px);
  transition: none;
}
.mp-beach .beach-switch-in{
  opacity: 1;
  transform: translateY(0);
}
.mp-beach /* ★ 给标题加上较深的文字阴影，防止被浅色背景吞没 */
.greeting-title{ font-size: 32px; font-weight: 900; color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.3); margin-bottom: 8px; letter-spacing: 2px; }
.mp-beach .greeting-sub{ font-size: 16px; font-weight: bold; color: rgba(255,255,255,0.95); text-shadow: 0 2px 6px rgba(0,0,0,0.4); letter-spacing: 1px; }
.mp-beach /* 悬浮按钮组调整 */
.floating-btns-group{ position: fixed; right: 15px; top: 25%; display: flex; flex-direction: column; gap: 37.5px; z-index: 100; }
.mp-beach .floating-treasure-btn,.mp-beach .floating-backpack-btn{ 
  width: 47.5px; 
  height: 47.5px; 
  background-color: transparent; 
  border-radius: 0;
  box-shadow: none; 
  filter: drop-shadow(0 2px 4px rgba(20, 40, 100, 0.2));
  transition: filter 0.2s;
}
.mp-beach .floating-icon-fallback{
  width: 47.5px;
  height: 47.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #334155;
  font-size: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.16);
}
.mp-beach .floating-treasure-btn{ animation: rockSwing 3.2s ease-in-out infinite; }
.mp-beach .floating-backpack-btn{ animation: rockSwing 3.6s ease-in-out infinite 0.25s; }
.mp-beach .floating-treasure-btn:active,.mp-beach .floating-backpack-btn:active{ 
  transform: scale(0.85) !important;
  filter: drop-shadow(0 3px 7px rgba(20, 40, 100, 0.35));
  animation-play-state: paused;
}
.mp-beach .ocean-refresh-btn{
  position: fixed;
  right: 15px;
  top: 52%;
  z-index: 95;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  color: #64748B;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 11px rgba(15, 23, 42, 0.12);
  border: 0.5px solid rgba(255, 255, 255, 0.95);
  pointer-events: auto;
}
.mp-beach .ocean-refresh-btn:active{
  transform: scale(0.9);
  opacity: 0.92;
}
@keyframes rockSwing{
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.6deg); }
}
.mp-beach .ocean-area{ position: absolute; bottom: calc(0px + 160px); left: 0; width: 100%; height: 284.2px; z-index: 5; pointer-events: none;}
.mp-beach .float-bottle{ position: absolute; width: 38px; height: 95px; pointer-events: auto;}
.mp-beach .float-bottle:active{ transform: scale(0.9); transition: transform 0.2s; }
.mp-beach .float-bottle img{ width: 100%; height: 100%; position: relative; z-index: 2; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 95%); transition: filter 0.3s; }
.mp-beach .bottle-emoji-fallback{ width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 31px; line-height: 1; position: relative; z-index: 2; }
.mp-beach .float-bottle::after{ content: ''; position: absolute; bottom: 5px; left: 50%; margin-left: -20px; width: 40px; height: 10px; background: rgba(255,255,255,0.4); border-radius: 50%; box-shadow: 0 0 10px rgba(255,255,255,0.6); z-index: 1; }
.mp-beach /* 回信瓶专属特效与徽章 */
.glowing-reply img{ filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.95)); }
.mp-beach .reply-badge{ position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #EF4444, #F59E0B); color: #fff; padding: 2px 7px; border-radius: 10px; font-size: 9px; font-weight: bold; white-space: nowrap; box-shadow: 0 2px 5px rgba(239,68,68,0.5); border: 1px solid #fff; animation: floatBadge 2.8s infinite ease-in-out; z-index: 10; }
@keyframes floatBadge{ 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-2px); } }
.mp-beach .b1{ left: 18%; bottom: 230px; }
.mp-beach .b2{ left: 45%; bottom: 275px; width: 30px; height: 75px; opacity: 0.9; z-index: 3; }
.mp-beach .b2::after{ margin-left: -12px; width: 24px; height: 8px;}
.mp-beach .b3{ right: 20%; bottom: 220px; }
.mp-beach .b1 img{ animation: bottleBob1 4s ease-in-out infinite; }
.mp-beach .b1::after{ animation: rippleScale 4s ease-in-out infinite; }
.mp-beach .b2 img{ animation: bottleBob2 3.2s ease-in-out infinite 1s; }
.mp-beach .b2::after{ animation: rippleScale 3.2s ease-in-out infinite 1s; }
.mp-beach .b3 img{ animation: bottleBob3 3.8s ease-in-out infinite 0.5s; }
.mp-beach .b3::after{ animation: rippleScale 3.8s ease-in-out infinite 0.5s; }
@keyframes bottleBob1{ 0%, 100% { transform: translateY(0) rotate(-11deg); } 50% { transform: translateY(-4px) rotate(-8deg); } }
@keyframes bottleBob2{ 0%, 100% { transform: translateY(0) rotate(10deg); } 50% { transform: translateY(-4px) rotate(14deg); } }
@keyframes bottleBob3{ 0%, 100% { transform: translateY(0) rotate(-14deg); } 50% { transform: translateY(-4px) rotate(-10deg); } }
@keyframes rippleScale{ 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.7); opacity: 0.5; } }
.mp-beach .tide-scavenge-item{ position: absolute; left: 55%; bottom: 60px; width: 50px; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; animation: crabWalk 12s ease-in-out infinite; pointer-events: auto;}
.mp-beach .tide-glow{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: radial-gradient(circle, rgba(255,249,196,0.8) 0%, rgba(255,255,255,0) 70%); border-radius: 50%; z-index: 1; animation: tidePulse 2s infinite; }
.mp-beach .tide-icon-img{ width: 32px; height: 32px; position: relative; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15)); }
.mp-beach .tide-icon-fallback{ width: 32px; height: 32px; line-height: 32px; text-align: center; font-size: 25px; position: relative; z-index: 2; }
.mp-beach .tide-label{ position: absolute; bottom: -20px; background: rgba(255,255,255,0.85); color: #F59E0B; font-size: 11px; font-weight: bold; padding: 2px 8px; border-radius: 10px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
@keyframes crabWalk{ 
  0%, 100% { transform: translateX(0); } 
  15% { transform: translateX(-20px); } 
  30% { transform: translateX(-20px); } 
  45% { transform: translateX(15px); } 
  65% { transform: translateX(15px); } 
  80% { transform: translateX(-5px); } 
  90% { transform: translateX(-5px); } 
}
@keyframes tidePulse{ 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; } 50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; } }
.mp-beach .bottom-actions{ position: absolute; bottom: calc(0px + 90px); left: 0; width: 100%; padding: 0 24px; box-sizing: border-box; display: flex; gap: 16px; z-index: 20; }
.mp-beach .action-btn{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
  border-radius: 20px;
  transform: scale(1);
  transition: transform 130ms ease-out, box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}
.mp-beach .action-btn::after{ border: none; }
.mp-beach .action-btn:active{
  transform: scale(0.97);
}
.mp-beach .random-btn{ background: linear-gradient(145deg, #FDE047, #F59E0B); box-shadow: 0 8px 20px rgba(245,158,11,0.25); color: #fff; }
.mp-beach .target-btn{ background: #ffffff; box-shadow: 0 8px 20px rgba(0,0,0,0.06); color: #374151; }
.mp-beach .btn-title{ font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.mp-beach .btn-cost-wrap{ font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 2px; }
.mp-beach .inline-star{ width: 17px; height: 17px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }
.mp-beach .inline-star-fallback{ font-size: 14px; color: #F59E0B; line-height: 1; }
.mp-beach .inline-bottle-fallback{ width: 15px; height: 25px; line-height: 25px; text-align: center; font-size: 15px; margin-right: 6px; }
.mp-beach .backpack-modal{ position: fixed; top: 0; left: 0; width: 375px; height: 812px; z-index: 500; padding: 0; box-sizing: border-box; display: flex; align-items: flex-end; }
.mp-beach .modal-mask{ position: fixed; top: 0; left: 0; width: 375px; height: 812px; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 501; }
.mp-beach .modal-content{ position: relative; width: 100%; height: 609px; background: #F8FAFC; padding: 30px 20px 20px; box-sizing: border-box; display: flex; flex-direction: column; border-radius: 15px 15px 0 0; box-shadow: 0 -5px 20px rgba(0,0,0,0.15); animation: slideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1); z-index: 502; }
.mp-beach .modal-header{ display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #E2E8F0; padding-bottom: 10px; margin-bottom: 10px; }
.mp-beach .modal-title{ font-size: 20px; font-weight: bold; color: #1E293B; letter-spacing: 1px; }
.mp-beach .close-btn{ width: 30px; height: 30px; background: #E2E8F0; color: #64748B; font-size: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
@keyframes slideUp{ from { opacity: 0; transform: translateY(32px) scale(0.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
.mp-beach .bottle-list-scroll{ flex: 1; overflow-y: auto; padding: 5px; }
.mp-beach .bottle-list-card{ display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 10px; box-shadow: 0 2px 7.5px rgba(0,0,0,0.03); }
.mp-beach .blc-img-box{ width: 40px; height: 50px; margin-right: 12px; display: flex; justify-content: center; align-items: center; }
.mp-beach .blc-img-box img{ width: 100%; height: 100%; }
.mp-beach .blc-info{ flex: 1; }
.mp-beach .blc-name{ font-size: 14px; color: #333; font-weight: bold; margin-bottom: 4px; display: flex; align-items: center; }
.mp-beach .blc-mut{ font-size: 10px; color: #76c3c4; background: rgba(118, 195, 196, 0.1); padding: 2px 6px; border-radius: 10px; margin-left: 6px; font-weight: normal; }
.mp-beach .blc-desc{ font-size: 11px; color: #999; }
.mp-beach .history-group-tabs{ width: 100%; white-space: nowrap; padding: 12px 0 15px; border-bottom: 1px solid #E2E8F0; margin-bottom: 15px; -webkit-overflow-scrolling: touch; }
.mp-beach .h-group-item{ display: inline-block; padding: 6px 16px; background: #F1F5F9; color: #64748B; border-radius: 20px; font-size: 13px; font-weight: bold; margin-right: 10px; transition: all 0.2s; }
.mp-beach .h-group-item.active{ background: #76c3c4; color: #fff; box-shadow: 0 2px 6px rgba(118, 195, 196, 0.3); }
.mp-beach .history-list{ flex: 1; overflow-y: auto; }
.mp-beach .history-card{ position: relative; display: flex; align-items: center; padding: 16px; background: #fff; border-radius: 16px; margin-bottom: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.mp-beach .delete-btn{ position: absolute; right: 16px; font-size: 12px; color: #EF4444; background: #FEE2E2; padding: 4px 10px; border-radius: 10px; font-weight: bold; }
.mp-beach .history-icon{ font-size: 20px; margin-right: 12px; }
.mp-beach .history-info{ flex: 1; margin-right: 40px; }
.mp-beach .history-title{ font-size: 14px; font-weight: 600; color: #1E293B; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.mp-beach .history-time{ font-size: 12px; color: #94A3B8; }
.mp-beach .empty-hint{ text-align: center; color: #bbb; font-size: 12px; padding-top: 30px; }
.mp-beach .friend-select-modal,.mp-beach .write-modal,.mp-beach .reply-modal{ position: fixed; top: 0; left: 0; width: 375px; height: 812px; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 100001; display: flex; justify-content: center; align-items: center; }
.mp-beach .fs-mask,.mp-beach .wm-mask,.mp-beach .rm-mask{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
@keyframes popUp{ from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.mp-beach .fs-content{ position: relative; z-index: 1; width: 85%; background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); display: flex; flex-direction: column; max-height: 568.4px; animation: popUp 0.24s cubic-bezier(0.22, 1, 0.36, 1); }
.mp-beach .fs-header{ display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #E5E7EB; }
.mp-beach .fs-title-block{ flex: 1; min-width: 0; }
.mp-beach .fs-title{ font-size: 18px; font-weight: bold; color: #1E293B; display: block; }
.mp-beach .fs-sub{ display: block; margin-top: 8px; font-size: 12px; color: #64748B; line-height: 1.45; font-weight: normal; }
.mp-beach .fs-close{ flex-shrink: 0; width: 28px; height: 28px; background: #F3F4F6; color: #94A3B8; font-size: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mp-beach .fs-list{ flex: 1; overflow-y: auto; }
.mp-beach .fs-list-body{ height: 373.52px; max-height: 260px; width: 100%; box-sizing: border-box; }
.mp-beach .fs-item{ display: flex; align-items: center; padding: 16px; background: #F8FAFC; border-radius: 16px; margin-bottom: 12px; transition: all 0.2s; }
.mp-beach .fs-item:active,.mp-beach .fs-item-hover{ transform: scale(0.98); background: #F1F5F9; }
.mp-beach .fs-avatar{ font-size: 24px; margin-right: 12px; }
.mp-beach .fs-name{ font-size: 16px; font-weight: 600; color: #1F293B; flex: 1; }
.mp-beach .fs-badge{ background: #E2E8F0; color: #475569; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: bold; flex-shrink: 0; }
.mp-beach .paper-style-modal{ position: relative; width: 78%; background: #FAFAFA; border-radius: 20px; padding: 20px; box-shadow: 0 12px 28px rgba(0,0,0,0.14); display: flex; flex-direction: column; animation: popUp 0.24s cubic-bezier(0.22, 1, 0.36, 1); }
.mp-beach .wm-header,.mp-beach .rm-header{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mp-beach .wm-title,.mp-beach .rm-title{ font-size: 17px; font-weight: bold; color: #111; letter-spacing: 1px; }
.mp-beach .wm-close,.mp-beach .rm-close{ width: 28px; height: 28px; background: #EEEEEE; color: #666; font-size: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mp-beach .paper-box{ position: relative; background: #FFFFFF; border: 1px solid #EFEFEF; border-radius: 12px; padding: 20px; box-shadow: 0 4px 16px rgba(0,0,0,0.03); margin-bottom: 20px; overflow: hidden; }
.mp-beach .origami-deco-top{ position: absolute; top: -36px; left: 50%; transform: translateX(-50%); width: 72px; height: 72px; z-index: 10; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.mp-beach .origami-deco-top:active{ transform: translateX(-50%) scale(0.9); }
.mp-beach .paper-textarea{ width: 100%; height: 140px; font-size: 15px; color: #333; line-height: 1.6; position: relative; z-index: 2; box-sizing: border-box; }
.mp-beach .reading-box{ min-height: 100px; }
.mp-beach .original-quote{ background: rgba(0,0,0,0.03); border-left: 3px solid #76c3c4; padding: 8px 10px; border-radius: 4px; margin-bottom: 12px; }
.mp-beach .quote-label{ font-size: 11px; color: #76c3c4; font-weight: bold; display: block; margin-bottom: 4px; }
.mp-beach .quote-text{ font-size: 12px; color: #666; font-style: italic; line-height: 1.4; }
.mp-beach .rm-author{ font-size: 13px; font-weight: bold; color: #999; margin-bottom: 12px; position: relative; z-index: 2;}
.mp-beach .rm-text{ font-size: 15px; color: #222; line-height: 1.6; position: relative; z-index: 2; }
.mp-beach .reply-box{ padding: 16px; margin-bottom: 24px;}
.mp-beach .small-textarea{ height: 90px; }
.mp-beach .wm-footer{ display: flex; justify-content: space-between; align-items: center; }
.mp-beach .wm-cost{ font-size: 14px; color: #999; font-weight: bold; letter-spacing: 0.5px; display: flex; align-items: center; gap: 4px; }
.mp-beach .rm-footer-center{ display: flex; justify-content: center; align-items: center; }
.mp-beach .rm-cost-hint{
  text-align: center;
  font-size: 12px;
  color: #94A3B8;
  margin-top: 8px;
  line-height: 1.4;
}
.mp-beach .rm-footer-flex{ display: flex; justify-content: space-between; gap: 10px; width: 100%; margin-top: 5px;}
.mp-beach .action-btn-half{ flex: 1; text-align: center; padding: 10px 0; border-radius: 8px; font-weight: bold; font-size: 14px; transition: transform 0.1s; box-sizing: border-box; letter-spacing: 1px; }
.mp-beach .action-btn-half:active{ transform: scale(0.96); }
.mp-beach .finish-btn{ background: linear-gradient(135deg, #FDE047, #F59E0B); color: #fff; box-shadow: 0 4px 10px rgba(245,158,11,0.25); }
.mp-beach .normal-btn{ background: #2A2A2A; color: #FFFFFF; box-shadow: 0 4px 10px rgba(42,42,42,0.2); }
.mp-beach .action-cancel-text{ text-align: center; color: #999; font-size: 12px; margin-top: 12px; padding: 5px; }
.mp-beach .action-cancel-text:active{ opacity: 0.7; }
.mp-beach .dark-btn{ background: #2A2A2A; color: #FFFFFF; padding: 14px 28px; border-radius: 12px; font-weight: 500; font-size: 15px; box-shadow: 0 6px 16px rgba(42,42,42,0.2); letter-spacing: 1px; transition: transform 130ms ease-out, box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms cubic-bezier(0.22, 1, 0.36, 1); }
.mp-beach .dark-btn:active{ transform: scale(0.97); }
.mp-beach .full-width{ width: 100%; text-align: center; }
.mp-beach .paper-select-modal{ position: fixed; top: 0; left: 0; width: 375px; height: 812px; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 100003; display: flex; justify-content: center; align-items: center; }
.mp-beach .ps-mask{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.mp-beach .ps-content{ position: relative; width: 85%; background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); display: flex; flex-direction: column; max-height: 487.2px; animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.mp-beach .ps-header{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #E5E7EB; }
.mp-beach .ps-title{ font-size: 18px; font-weight: bold; color: #1E293B; }
.mp-beach .ps-close{ width: 28px; height: 28px; background: #F3F4F6; color: #94A3B8; font-size: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mp-beach .ps-scroll{ flex: 1; max-height: 365.4px; width: 100%; }
.mp-beach .ps-grid-inner{ display: flex; flex-wrap: wrap; gap: 12px; padding: 4px; }
.mp-beach .ps-item{ width: calc(33.33% - 8px); height: 80px; background: #F8FAFC; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 2px solid transparent; transition: all 0.2s; }
.mp-beach .ps-item:active{ transform: scale(0.95); }
.mp-beach .ps-item-active{ border-color: #F59E0B; background: #FFFBEB; }
.mp-beach .ps-item-locked{ position: relative; }
.mp-beach .ps-item-locked .ps-icon-img{ opacity: 0.52; filter: grayscale(85%); }
.mp-beach .ps-lock-dot{
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  border-radius: 999px;
  padding: 2px 6px;
  line-height: 1.2;
}
.mp-beach .ps-icon-img{ width: 45px; height: 45px; }
.mp-beach .mailbox-layout{ display: flex; flex: 1; height: 0; background: #f9f9f9;}
.mp-beach .groups-sidebar{ width: 110px; height: 100%; background: #f0f0f0; border-right: 1px solid rgba(0,0,0,0.05); }
.mp-beach .group-item-wrap{ position: relative; }
.mp-beach .group-item{ padding: 12px 8px; font-size: 13px; color: #666; text-align: center; transition: all 0.2s; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; }
.mp-beach .group-name{ font-size: 12.5px; }
.mp-beach .group-count{ font-size: 9px; color: #999; background: rgba(0,0,0,0.05); padding: 1px 5px; border-radius: 5px; }
.mp-beach .unread-dot{ width: 7px; height: 7px; background: #ef4444; border-radius: 50%; box-shadow: 0 0 2px rgba(239,68,68,0.5); }
.mp-beach .group-item.active{ background: #fff; color: #333; font-weight: bold; position: relative; }
.mp-beach .group-item.active .group-name{ font-weight: 600; }
.mp-beach .group-item.active::before{ content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 4px; background: #76c3c4; border-radius: 0 4px 4px 0; }
.mp-beach .add-group-btn{ padding: 18px 10px; font-size: 13px; color: #76c3c4; text-align: center; border-top: 1px dashed rgba(0,0,0,0.1); font-weight: bold; }
.mp-beach .messages-list{ flex: 1; height: 100%; padding: 10px; box-sizing: border-box; }
.mp-beach .msg-card{ background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 10px; box-shadow: 0 2px 7.5px rgba(0,0,0,0.03); display: flex; align-items: center;}
.mp-beach .msg-info{ flex: 1; margin-right: 10px; min-width: 0; }
.mp-beach .msg-line1{ display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.mp-beach .msg-role-pill{ flex-shrink: 0; font-size: 10px; padding: 2px 7px; border-radius: 5px; font-weight: 700; }
.mp-beach .msg-role-me{ background: #E0F2FE; color: #0369A1; }
.mp-beach .msg-role-them{ background: #F1F5F9; color: #475569; }
.mp-beach .msg-role-neutral{ background: #F3F4F6; color: #64748B; }
.mp-beach .msg-one-title{ flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #1E293B; }
.mp-beach .msg-status-tag{ flex-shrink: 0; font-size: 10px; color: #F59E0B; font-weight: 600; }
.mp-beach .msg-desc{ font-size: 12px; color: #64748B; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.45; }
.mp-beach .mailbox-select-toggle{ font-size: 12px; color: #334155; background: rgba(148,163,184,0.12); padding: 4px 8px; border-radius: 7px; font-weight: 700; transition: transform 130ms ease-out, opacity 200ms cubic-bezier(0.22, 1, 0.36, 1); }
.mp-beach .mailbox-select-toggle:active{ transform: scale(0.97); }
.mp-beach .mailbox-header-actions{ display: flex; align-items: center; gap: 4px; }
.mp-beach .mailbox-head-btn{ font-size: 11px; padding: 4px 7px; border-radius: 6px; font-weight: 700; transition: transform 130ms ease-out, opacity 200ms cubic-bezier(0.22, 1, 0.36, 1); }
.mp-beach .mailbox-head-btn:active{ transform: scale(0.97); }
.mp-beach .mailbox-head-btn.ghost{ color: #334155; background: rgba(148,163,184,0.14); }
.mp-beach .mailbox-head-btn.danger{ color: #fff; background: #EF4444; }
.mp-beach .msg-select-mark{ width: 22px; margin-right: 6px; display: flex; justify-content: center; align-items: center; }
.mp-beach .ui-checkbox{
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #CBD5E1;
  position: relative;
  transition: all 0.3s;
  box-sizing: border-box;
}
.mp-beach .ui-checkbox.checked{
  background: #0EA5E9;
  border-color: #0EA5E9;
  box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.16);
}
.mp-beach .ui-checkbox-mark{
  position: absolute;
  top: 3.5px;
  left: 5.5px;
  width: 3.5px;
  height: 6px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
  transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46);
  box-sizing: border-box;
}
.mp-beach .ui-checkbox.checked .ui-checkbox-mark{
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.mp-beach .mailbox-thread-scroll{ max-height: 422.24px; width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.mp-beach .mb-thread-block{ margin-bottom: 10px; padding: 10px 11px; border-radius: 8px; }
.mp-beach .mb-from-me{ background: #F0F9FF; border-left: 4px solid #0EA5E9; }
.mp-beach .mb-from-them{ background: #F8FAFC; border-left: 4px solid #94A3B8; }
.mp-beach .mb-thread-role{ font-size: 11px; font-weight: 700; color: #64748B; margin-bottom: 5px; }
.mp-beach .mb-thread-body{ font-size: 14px; color: #1E293B; line-height: 1.55; word-break: break-word; }
.mp-beach .mb-thread-meta{ font-size: 10px; color: #94A3B8; margin-top: 6px; }
.mp-beach .home-container.is-overlay-active .floating-treasure-btn,.mp-beach .home-container.is-overlay-active .floating-backpack-btn,.mp-beach .home-container.is-overlay-active .b1 img,.mp-beach .home-container.is-overlay-active .b2 img,.mp-beach .home-container.is-overlay-active .b3 img,.mp-beach .home-container.is-overlay-active .reply-badge{
  animation-play-state: paused;
}
.mp-beach .home-container.is-overlay-active .floating-treasure-btn,.mp-beach .home-container.is-overlay-active .floating-backpack-btn{
  opacity: 0.92;
}
/* ==== 视口单位修正（由转换器追加） ====
   原工程的 100vw/100vh 指手机屏幕；网页里指整个浏览器窗口，会撑爆竖屏框。
   上面已经按 375×812 把 vw/vh 换算成绝对像素，这里只兜底处理
   "必须整屏铺满"的那几个容器，以及固定定位改成相对手机框。
   ⚠️ .page-turn-zone 不在这里：它是原设计的 18vw 侧边翻页条，
      强行撑成整屏会盖住漂流瓶（点不到），交给上面的换算就够了。 */
.mp-beach{ --vw:375px; --vh:812px; }
.mp-beach .home-container,
.mp-beach .beach-swiper,
.mp-beach .modal-mask,
.mp-beach .reply-modal,
.mp-beach .write-modal,
.mp-beach .friend-select-modal,
.mp-beach .paper-select-modal,
.mp-beach .backpack-modal,
.mp-beach .collection-wrapper,
.mp-beach .art-bg,
.mp-beach .invisible-grid,
.mp-beach .action-modal,
.mp-beach .read-modal,
.mp-beach .friends-container,
.mp-beach .page-bg,
.mp-beach .visit-modal,
.mp-beach .visit-bg,
.mp-beach .puzzle-wrapper,
.mp-beach .me-page,
.mp-beach .bg-header{
  width:375px !important;
  height:812px !important;
  max-width:none !important;
}
/* 铺满视口用的固定定位在网页里要改成相对手机框 */
.mp-beach .floating-btns-group,
.mp-beach .ocean-refresh-btn,
.mp-beach .page-turn-zone,
.mp-beach .modal-mask,
.mp-beach .visit-mask,
.mp-beach .draw-anim-mask,
.mp-beach .reward-modal-mask,
.mp-beach .chat-modal,
.mp-beach .reply-modal,
.mp-beach .paper-select-modal{
  position:absolute !important;
}
/* ==== swiper-item 必须填满 swiper ====
   swiper / swiper-item 是微信**内置组件**，原工程 wxss 里没有它们的选择器
   （尺寸由组件自己给）。网页里它们变成了普通 div，不补这条：
   swiper-item 高度 auto=0 → 里面的 .beach-bg(height:100%) 跟着变 0 高
   → **海滩背景整块画不出来**（实测 .beach-bg 盒高 0）。 */
.mp-beach .beach-swiper > div{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* ==== 视频要盖在背景图上 ====
   小程序的 <video> 是**原生组件，永远显示在最上层**，z-index 管不着它；
   网页的 video 老实按 z-index 排。原样式写的是 video:0、bg:1，
   照搬就会把视频压在背景图下面 → 用户看到的"动态海滩"没了。 */
.mp-beach .beach-bg-video{
  z-index: 2;
  object-fit: cover;
}
/* ==== swiper 只显示"当前那一块" ====
   小程序的 <swiper current="{{i}}"> 只显示第 i 块；网页里三块 swiper-item 是叠着的，
   不处理就永远只有最后一块可见——点左右两侧换海滩时，标题变了、画面却没变。
   运行时会给正在显示的那块加 .zone-on（见 exhibition.js 的 afterRender）。
   ⚠️ 这里用 .zone-managed 开关：万一逻辑没接上，不做任何隐藏（回落到"叠着"的老样子），
      不会出现"整个海滩背景一片空白"这种更糟的结果。 */
.mp-beach .beach-swiper.zone-managed > div{ opacity: 0; transition: opacity .35s ease; }
.mp-beach .beach-swiper.zone-managed > div.zone-on{ opacity: 1; }

/* 由 tools/port_miniprogram.mjs 自动转换：rpx×0.5→pt、env(safe-area)→0、选择器收进 .mp-collection。来源 mini/pages/collection/collection.wxss */
.mp-collection .collection-wrapper{ position: relative; width: 375px; height: 812px; overflow: hidden; background: #cce9e8; }
.mp-collection .art-bg{ position: absolute; top: 0; left: 0; width: 100%; height: 812px; z-index: 1; transition: all 0.5s ease;}
.mp-collection .nav-header-float{ position: absolute; top: 0; left: 0; width: 100%; z-index: 10; padding: 0 25px; box-sizing: border-box; pointer-events: none;}
.mp-collection .header-top{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; pointer-events: auto;}
.mp-collection .currency-board{ display: flex; align-items: center; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); padding: 6px 15px; border-radius: 20px; }
.mp-collection /* ★ 更新星星图标的样式设置 */
.currency-icon{ width: 22px; height: 22px; margin-right: 4px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1)); }
.mp-collection .amount{ color: #4a6c6c; font-size: 14px; font-weight: 800; margin-left: 2px;}
.mp-collection .cabinet-title{ font-size: 17px; color: #fff; background: rgba(36, 111, 124, 0.72); padding: 5px 14px; border-radius: 15px; font-weight: 800; letter-spacing: 0.5px; }
.mp-collection .score-board{ margin-top: 0; text-align: center; display: flex; flex-direction: column; align-items: center; pointer-events: auto;}
.mp-collection /* ★ 略微缩小分数牌字体，防止挡住第一排瓶子 */
.score-value{ font-size: 45px; font-weight: 900; color: #fff; text-shadow: 0 2px 7.5px rgba(118,195,196,0.4); line-height: 1;}
.mp-collection .score-label{ font-size: 10px; color: #355a5a; background: #ffffff; backdrop-filter: blur(8px); padding: 3px 15px; border-radius: 20px; letter-spacing: 1px; display: inline-block; font-weight: 400; margin-top: 5px; box-shadow: 0 2px 5px rgba(118, 195, 196, 0.15); }
.mp-collection .cabinet-buff-hint{ display: flex; flex-direction: column; margin-top: 5px; gap: 1px; font-size: 9px; color: #0f766e; font-weight: 700; background: rgba(255,255,255,0.56); border-radius: 5px; padding: 3px 6px; }
.mp-collection /* 挂机产出与领取面板样式，压缩间距 */
.idle-panel{ display: flex; flex-direction: row; align-items: center; gap: 4px; margin-top: 5px; background: rgba(255,255,255,0.18); padding: 3px 6px; border-radius: 7px; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.3); }
.mp-collection .idle-rate{ font-size: 10px; color: #355a5a; font-weight: 700; letter-spacing: 0; }
.mp-collection .growth-row{ display: flex; align-items: center; gap: 4px; margin-bottom: 0; }
.mp-collection .growth-main{ font-size: 9px; color: #1f2937; font-weight: 700; }
.mp-collection .growth-bonus{ font-size: 9px; color: #0f766e; margin-top: 0; font-weight: 700; }
.mp-collection .growth-upgrade-btn{ font-size: 9px; color: #64748b; background: rgba(255,255,255,0.55); padding: 3px 7px; border-radius: 9px; margin-bottom: 0; pointer-events: none; }
.mp-collection .growth-upgrade-btn.ready{ color: #fff; background: linear-gradient(135deg, #2dd4bf, #0ea5e9); box-shadow: 0 2px 5px rgba(14, 165, 233, 0.35); pointer-events: auto; }
.mp-collection .idle-collect-btn{ font-size: 9px; color: #94A3B8; background: rgba(255,255,255,0.5); padding: 3px 7px; border-radius: 10px; font-weight: 700; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 3px;}
.mp-collection .idle-collect-btn.ready{ color: #fff; background: linear-gradient(135deg, #FDE047, #F59E0B); box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4); pointer-events: auto; }
.mp-collection .idle-collect-btn.ready:active{ transform: scale(0.92); }
@keyframes gentlePulse{ 0% { transform: scale(1); box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4); } 100% { transform: scale(1.05); box-shadow: 0 4px 10px rgba(245, 158, 11, 0.6); } }
.mp-collection /* ★ 恢复：将画幅整体移回原位，完美对齐背景图的货架 (37.5%) */
.invisible-grid{ position: absolute; top: 0; left: 0; width: 100%; height: 812px; z-index: 5; display: flex; flex-direction: column; padding-top: 37.5%; padding-bottom: 14%; box-sizing: border-box; }
.mp-collection .invisible-shelf{ display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0%; position: relative; }
.mp-collection .invisible-shelf:nth-child(1){ height: 25%; }
.mp-collection .invisible-shelf:nth-child(2){ height: 21%; }
.mp-collection .invisible-shelf:nth-child(3){ height: 21%; }
.mp-collection .invisible-shelf:nth-child(4){ height: 21%; }
.mp-collection .snow-row{ overflow: hidden; }
.mp-collection .shelf-snow{ position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.mp-collection .snow-dot{ position: absolute; top: -5px; color: rgba(255,255,255,0.75); font-size: 9px; animation: snowDown 4s linear infinite; }
@keyframes snowDown{
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  20% { opacity: 0.9; }
  100% { transform: translateY(85px) rotate(180deg); opacity: 0; }
}
.mp-collection .shelf-lock-zone{ width: 78%; margin: 0 auto; height: 72%; border-radius: 9px; background: rgba(203, 213, 225, 0.46); border: none; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: inset 0 0 0 0.5px rgba(148, 163, 184, 0.2); }
.mp-collection .shelf-lock-icon{ width: 36px; height: 36px; }
.mp-collection .inline-dust-icon{ width: 12px; height: 12px; margin-left: 3px; vertical-align: middle; }
.mp-collection .slots-container{ width: 78%; margin: 0 auto; height: 100%; display: flex; justify-content: space-evenly; align-items: flex-end; padding: 0; }
.mp-collection .unlocking-shelf{ animation: unlockShelfGlow 0.9s ease-out; }
.mp-collection .unlock-burst{ position: absolute; inset: 0; pointer-events: none; z-index: 15; overflow: hidden; }
.mp-collection .unlock-flash{ position: absolute; left: 50%; top: 62%; width: 110px; height: 60px; transform: translate(-50%, -50%); border-radius: 499.5px; background: radial-gradient(ellipse at center, rgba(253,224,71,0.55) 0%, rgba(253,224,71,0.2) 45%, rgba(253,224,71,0) 75%); animation: unlockFlash 0.75s ease-out forwards; }
.mp-collection .unlock-star{ position: absolute; bottom: 12px; color: #fde047; font-size: 17px; text-shadow: 0 0 8px rgba(253, 224, 71, 0.95); animation: unlockStarRise 1s ease-out forwards; opacity: 0; }
@keyframes unlockShelfGlow{
  0% { filter: brightness(1); }
  30% { filter: brightness(1.6); }
  100% { filter: brightness(1); }
}
@keyframes unlockFlash{
  0% { opacity: 0; transform: translate(-50%, -45%) scale(0.7); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -55%) scale(1.2); }
}
@keyframes unlockStarRise{
  0% { transform: translateY(10px) scale(0.65); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(-60px) scale(1.2); opacity: 0; }
}
.mp-collection .bottle-slot{ width: 18%; height: 90%; display: flex; justify-content: center; align-items: flex-end; }
.mp-collection .bottle-group{ width: 100%; height: 100%; display: flex; justify-content: center; align-items: flex-end; position: relative;}
.mp-collection .empty-add-icon{
  color: #2f5f66;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
}
.mp-collection /* 恢复最纯净清爽的瓶子图片展现 */
.bottle-img{ width: 48px; height: 75px; transform-origin: bottom center; transition: all 0.3s ease; z-index: 2; }
.mp-collection .bottle-img:active{ transform: scale(1.05); }
.mp-collection .bp-bottle-img{ transition: all 0.3s ease; }
.mp-collection /* ===== 等级光效（E / D / C / B / A / S / SS / SSS） ===== */
.grade-E{ filter: none; }
.mp-collection .grade-D{ filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.55)); }
.mp-collection .grade-C{ filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.6)); }
.mp-collection .grade-B{ filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.66)); }
.mp-collection .grade-A{ filter: drop-shadow(0 0 7px rgba(250, 204, 21, 0.75)); }
.mp-collection .grade-S{ filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.82)); animation: gradePulseS 1.8s ease-in-out infinite; }
.mp-collection .grade-SS{ filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.95)); animation: gradePulseSS 2s linear infinite; }
.mp-collection .grade-SSS{ filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1)); animation: gradePulseSSS 1.6s linear infinite; }
@keyframes gradePulseS{
  0%, 100% { filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.7)); }
  50% { filter: drop-shadow(0 0 10px rgba(248, 113, 113, 0.95)); }
}
@keyframes gradePulseSS{
  0% { filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.85)); }
  25% { filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.9)); }
  50% { filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.9)); }
  75% { filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.9)); }
  100% { filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.85)); }
}
@keyframes gradePulseSSS{
  0% { filter: drop-shadow(0 0 7px rgba(236, 72, 153, 0.9)); }
  33% { filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.95)); }
  66% { filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.95)); }
  100% { filter: drop-shadow(0 0 7px rgba(236, 72, 153, 0.9)); }
}
.mp-collection /* 恢复精巧低调的信件角标，通过定位紧密贴合瓶身，哪怕全都有信也不会显得杂乱 */
.mail-badge{ position: absolute; bottom: 45px; left: 50%; margin-left: 10px; font-size: 11px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); opacity: 0.85; pointer-events: none; z-index: 10; animation: mailHover 3s infinite ease-in-out; }
@keyframes mailHover{ 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.mp-collection .page-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 140;
  pointer-events: auto;
}
.mp-collection .page-arrow.left{ left: 4px; }
.mp-collection .page-arrow.right{ right: 4px; }
.mp-collection .page-arrow-icon{
  font-size: 28px;
  color: rgba(100, 116, 139, 0.42);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 0.5px 1px rgba(255, 255, 255, 0.7);
}
.mp-collection .page-arrow:active{ transform: translateY(-50%) scale(0.92); }
.mp-collection .cabinet-lock-overlay{
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: 68%;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 17px 14px;
  box-sizing: border-box;
}
.mp-collection .cabinet-lock-image{ width: 29px; height: 29px; margin-bottom: 6px; }
.mp-collection .cabinet-lock-title{ color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 1px; }
.mp-collection .cabinet-lock-sub{ color: #cbd5e1; font-size: 11px; margin-top: 5px; text-align: center; line-height: 1.5; }
.mp-collection .cabinet-title-pulse{ animation: cabinetPulse 0.24s ease-in-out; }
.mp-collection .cabinet-switch-hint{
  position: absolute;
  top: calc(0px + 85px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(15, 23, 42, 0.56);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 499.5px;
  padding: 5px 12px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}
@keyframes cabinetPulse{
  0% { transform: scale(1); }
  50% { transform: scale(1.16); }
  100% { transform: scale(1); }
}
.mp-collection .float-score-container{ position: fixed; top: 45%; left: 50%; transform: translate(-50%, -50%); z-index: 1000; pointer-events: none; opacity: 0; }
.mp-collection .float-score-container.animate{ animation: floatUpBurst 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards; }
.mp-collection .float-text{ font-size: 45px; font-weight: 900; color: #fff; text-shadow: 0 4px 10px rgba(118,195,196,0.6); -webkit-text-stroke: 1px #5aa5a6; }
@keyframes floatUpBurst{ 0% { opacity: 0; transform: translate(-50%, 40px) scale(0.3); } 15% { opacity: 1; transform: translate(-50%, -10px) scale(1.3); } 30% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; transform: translate(-50%, -30px); } 100% { opacity: 0; transform: translate(-50%, -60px); } }
@keyframes slideUp{ from { transform: translateY(100%); } to { transform: translateY(0); } }
.mp-collection .action-modal{ position: absolute; top: 0; left: 0; width: 375px; height: 812px; z-index: 400; display: flex; justify-content: center; align-items: center; pointer-events: auto;}
.mp-collection .action-mask{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.mp-collection .action-content{ position: relative; width: 60%; background: #fff; border-radius: 12px; padding: 24px 20px 20px; z-index: 401; display: flex; flex-direction: column; align-items: center; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.mp-collection .action-title{ font-size: 19px; font-weight: 900; color: #1F2937; margin-bottom: 4px; letter-spacing: 1px;}
.mp-collection .action-intro{ width: 100%; font-size: 13px; color: #334155; line-height: 1.6; text-align: center; margin-bottom: 12px; font-weight: 700; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 6px; padding: 7px 8px; box-sizing: border-box; }
.mp-collection .action-btn{ width: 100%; padding: 12px 0; background: #E2E8F0; color: #111827; text-align: center; border-radius: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 900; transition: background 0.2s;}
.mp-collection .action-btn:active{ opacity: 0.8; }
.mp-collection .action-cancel{ width: 100%; padding: 12px 0; color: #475569; text-align: center; font-size: 15px; margin-top: 5px; font-weight: 800;}
.mp-collection .grade-text-E{ color: #64748B; }
.mp-collection .grade-text-D{ color: #16A34A; }
.mp-collection .grade-text-C{ color: #2563EB; }
.mp-collection .grade-text-B{ color: #7C3AED; }
.mp-collection .grade-text-A{ color: #CA8A04; }
.mp-collection .grade-text-S{ color: #DC2626; }
.mp-collection .grade-text-SS{ background: linear-gradient(90deg, #ec4899, #f59e0b, #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mp-collection .grade-text-SSS{ background: linear-gradient(90deg, #ec4899, #f59e0b, #22d3ee, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mp-collection .backpack-modal{ position: fixed; top: 0; left: 0; width: 375px; height: 812px; z-index: 200; display: flex; align-items: flex-end; }
.mp-collection .modal-mask{ position: fixed; top: 0; left: 0; width: 375px; height: 812px; background: rgba(0,0,0,0.4); backdrop-filter: blur(6px); }
.mp-collection .modal-content{ position: absolute; bottom: 0; left: 0; width: 100%; height: 527.8px; background: #fff; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); animation: slideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.mp-collection .modal-header{ display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 10px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.mp-collection .modal-title{ font-size: 17px; font-weight: bold; color: #333; letter-spacing: 1px; }
.mp-collection .close-btn{ font-size: 20px; color: #999; padding: 5px; }
.mp-collection .backpack-list{ flex: 1; padding: 10px 20px 20px; box-sizing: border-box; background: #f9f9f9;}
.mp-collection .backpack-item{ display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 12px; box-shadow: 0 2px 7.5px rgba(0,0,0,0.03); }
.mp-collection .bp-img-box{ width: 40px; height: 50px; margin-right: 12px; display: flex; justify-content: center; align-items: center; position: relative;}
.mp-collection .bp-bottle-img{ width: 100%; height: 100%; z-index: 2;}
.mp-collection .bp-info{ flex: 1; display: flex; flex-direction: column; justify-content: center; }
.mp-collection .bp-name{ font-size: 14px; color: #333; font-weight: 500; display: flex; align-items: center; }
.mp-collection .bp-mutation{ font-size: 10px; color: #D97706; background: rgba(253, 230, 138, 0.3); padding: 2px 6px; border-radius: 10px; margin-left: 6px; font-weight: bold; }
.mp-collection .bp-score-info{ display: flex; gap: 8px; margin-top: 6px; align-items: center; }
.mp-collection .bp-est-score{ font-size: 10px; color: #0EA5E9; background: rgba(14, 165, 233, 0.1); padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.mp-collection .bp-dec-val{ font-size: 10px; color: #64748B; background: rgba(100, 116, 139, 0.1); padding: 2px 6px; border-radius: 4px; font-weight: bold; display: flex; align-items: center; }
.mp-collection .bp-action-group{ display: flex; flex-direction: column; gap: 8px; align-items: flex-end; justify-content: center; margin-left: 5px;}
.mp-collection .bp-btn{ font-size: 12px; padding: 5px 0; border-radius: 15px; font-weight: bold; text-align: center; width: 60px; }
.mp-collection .bp-btn.place{ background: #333; color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.mp-collection .bp-btn.place:active{ transform: scale(0.95); }
.mp-collection .bp-btn.decompose{ background: #FEE2E2; color: #EF4444; border: 1px solid #FCA5A5; box-sizing: border-box; }
.mp-collection .bp-btn.decompose:active{ transform: scale(0.95); }
.mp-collection .empty-hint{ text-align: center; color: #bbb; font-size: 13px; padding-top: 50px; }
.mp-collection .mailbox-layout{ display: flex; flex: 1; height: 0; background: #f9f9f9;}
.mp-collection .groups-sidebar{ width: 110px; height: 100%; background: #f0f0f0; border-right: 1px solid rgba(0,0,0,0.05); }
.mp-collection /* ★ 侧边栏分组删除按钮的样式 */
.group-item-wrap{ position: relative; }
.mp-collection .group-item{
  padding: 12px 8px;
  font-size: 13px;
  color: #666;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}
.mp-collection .group-name{ font-size: 12.5px; }
.mp-collection .group-count{
  font-size: 9px;
  color: #999;
  background: rgba(0,0,0,0.05);
  padding: 1px 5px;
  border-radius: 5px;
}
.mp-collection .unread-dot{
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(239,68,68,0.5);
}
.mp-collection .group-item.active{ background: #fff; color: #333; font-weight: bold; position: relative; }
.mp-collection .group-item.active .group-name{ font-weight: 600; }
.mp-collection .group-item.active::before{ content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 4px; background: #76c3c4; border-radius: 0 4px 4px 0; }
.mp-collection .group-delete-icon{ position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; background: #ff9b9b; color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 12px; font-weight: bold; z-index: 10; }
.mp-collection .group-hint-text{ font-size: 10px; color: #b0b0b0; text-align: center; padding: 5px 0 15px; }
.mp-collection .add-group-btn{ padding: 18px 10px; font-size: 13px; color: #76c3c4; text-align: center; border-top: 1px dashed rgba(0,0,0,0.1); font-weight: bold; }
.mp-collection .messages-list{ flex: 1; height: 100%; padding: 10px; box-sizing: border-box; }
.mp-collection .msg-card{ background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 10px; box-shadow: 0 2px 7.5px rgba(0,0,0,0.03); display: flex; align-items: center;}
.mp-collection .msg-info{ flex: 1; margin-right: 10px; }
.mp-collection .msg-title{ font-size: 14px; font-weight: bold; color: #333; margin-bottom: 5px; display: flex; align-items: center;}
.mp-collection .msg-desc{ font-size: 12px; color: #888; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.mp-collection .msg-place-btn{ background: #76c3c4; color: #fff; font-size: 12px; padding: 6px 14px; border-radius: 15px; font-weight: bold; flex-shrink: 0;}
.mp-collection .msg-place-btn.disabled{ background: #cbd5e1; color: #fff; pointer-events: none; }
.mp-collection .origami-list{ flex: 1; background: #f9f9f9;}
.mp-collection .origami-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px; }
.mp-collection .origami-item{ background: #fff; border-radius: 8px; aspect-ratio: 1/1; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.2s; }
.mp-collection .origami-item:active{ transform: scale(0.9); }
.mp-collection .origami-img{ width: 40px; height: 40px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); }
.mp-collection .read-modal{ position: absolute; top: 0; left: 0; width: 375px; height: 812px; z-index: 300; display: flex; justify-content: center; align-items: center; }
.mp-collection .read-mask{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); }
.mp-collection .read-paper-content{ position: relative; width: 80%; background: #fdfaf4; padding: 30px 25px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 301; text-align: center; background-image: repeating-linear-gradient(transparent, transparent 24px, rgba(0,0,0,0.04) 24.5px, rgba(0,0,0,0.04) 25px); line-height: 25px; }
.mp-collection .read-title{ font-size: 18px; font-weight: bold; color: #4a4a4a; margin-bottom: 15px; letter-spacing: 1px;}
.mp-collection .read-text{ font-size: 14px; color: #666; text-align: left; min-height: 100px; }
.mp-collection .read-close{ margin-top: 25px; display: inline-block; padding: 8px 30px; border-radius: 20px; background: #76c3c4; color: #fff; font-size: 14px; font-weight: bold; letter-spacing: 1px; transition: transform 0.2s;}
.mp-collection .read-close:active{ transform: scale(0.95); }
/* ==== 视口单位修正（由转换器追加） ====
   原工程的 100vw/100vh 指手机屏幕；网页里指整个浏览器窗口，会撑爆竖屏框。
   上面已经按 375×812 把 vw/vh 换算成绝对像素，这里只兜底处理
   "必须整屏铺满"的那几个容器，以及固定定位改成相对手机框。
   ⚠️ .page-turn-zone 不在这里：它是原设计的 18vw 侧边翻页条，
      强行撑成整屏会盖住漂流瓶（点不到），交给上面的换算就够了。 */
.mp-collection{ --vw:375px; --vh:812px; }
.mp-collection .home-container,
.mp-collection .beach-swiper,
.mp-collection .modal-mask,
.mp-collection .reply-modal,
.mp-collection .write-modal,
.mp-collection .friend-select-modal,
.mp-collection .paper-select-modal,
.mp-collection .backpack-modal,
.mp-collection .collection-wrapper,
.mp-collection .art-bg,
.mp-collection .invisible-grid,
.mp-collection .action-modal,
.mp-collection .read-modal,
.mp-collection .friends-container,
.mp-collection .page-bg,
.mp-collection .visit-modal,
.mp-collection .visit-bg,
.mp-collection .puzzle-wrapper,
.mp-collection .me-page,
.mp-collection .bg-header{
  width:375px !important;
  height:812px !important;
  max-width:none !important;
}
/* 铺满视口用的固定定位在网页里要改成相对手机框 */
.mp-collection .floating-btns-group,
.mp-collection .ocean-refresh-btn,
.mp-collection .page-turn-zone,
.mp-collection .modal-mask,
.mp-collection .visit-mask,
.mp-collection .draw-anim-mask,
.mp-collection .reward-modal-mask,
.mp-collection .chat-modal,
.mp-collection .reply-modal,
.mp-collection .paper-select-modal{
  position:absolute !important;
}
/* ==== swiper-item 必须填满 swiper ====
   swiper / swiper-item 是微信**内置组件**，原工程 wxss 里没有它们的选择器
   （尺寸由组件自己给）。网页里它们变成了普通 div，不补这条：
   swiper-item 高度 auto=0 → 里面的 .beach-bg(height:100%) 跟着变 0 高
   → **海滩背景整块画不出来**（实测 .beach-bg 盒高 0）。 */
.mp-collection .beach-swiper > div{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* ==== 视频要盖在背景图上 ====
   小程序的 <video> 是**原生组件，永远显示在最上层**，z-index 管不着它；
   网页的 video 老实按 z-index 排。原样式写的是 video:0、bg:1，
   照搬就会把视频压在背景图下面 → 用户看到的"动态海滩"没了。 */
.mp-collection .beach-bg-video{
  z-index: 2;
  object-fit: cover;
}
/* ==== swiper 只显示"当前那一块" ====
   小程序的 <swiper current="{{i}}"> 只显示第 i 块；网页里三块 swiper-item 是叠着的，
   不处理就永远只有最后一块可见——点左右两侧换海滩时，标题变了、画面却没变。
   运行时会给正在显示的那块加 .zone-on（见 exhibition.js 的 afterRender）。
   ⚠️ 这里用 .zone-managed 开关：万一逻辑没接上，不做任何隐藏（回落到"叠着"的老样子），
      不会出现"整个海滩背景一片空白"这种更糟的结果。 */
.mp-collection .beach-swiper.zone-managed > div{ opacity: 0; transition: opacity .35s ease; }
.mp-collection .beach-swiper.zone-managed > div.zone-on{ opacity: 1; }

/* 由 tools/port_miniprogram.mjs 自动转换：rpx×0.5→pt、env(safe-area)→0、选择器收进 .mp-friends。来源 mini/pages/friends/friends.wxss */
.mp-friends .mp-friends{ background-color: #1a1a2e; height: 812px; overflow: hidden; }
.mp-friends .friends-container{ display: flex; flex-direction: column; height: 812px; position: relative; overflow: hidden; }
.mp-friends /* 背景层 */
.page-bg{ position: absolute; top: 0; left: 0; width: 100%; height: 812px; z-index: -2; }
.mp-friends .noise-overlay{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.05; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); }
.mp-friends .list-top-mask{ position: absolute; top: 0; left: 0; width: 100%; height: 60px; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(26, 26, 46, 0.42), rgba(26, 26, 46, 0)); }
.mp-friends /* 核心列表区 */
.list-scroll-area{ flex: 1; overflow-y: auto; padding-bottom: 130px; padding-top: 80px; }
.mp-friends /* 标题区 */
.title-wrap{ display: flex; flex-direction: column; align-items: center; margin-bottom: 25px; }
.mp-friends .main-title{ font-size: 28px; font-weight: 900; color: #fff; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(118,195,196,0.4); }
.mp-friends .sub-title{ font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 8px; font-weight: 300; letter-spacing: 1px; }
.mp-friends /* 新好友卡片 */
.new-mutual-card{ margin: 0 15px 15px; background: #fff; border-radius: 12px; border: 1px solid #eee; padding: 15px; position: relative; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.mp-friends .card-edge{ position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(to bottom, #76c3c4, #5aa5a6); }
.mp-friends .mutual-content{ display: flex; align-items: flex-start; gap: 12px; }
.mp-friends .icon-wrap{ width: 44px; height: 44px; background: #f5f5f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; border: 2px solid #e0e0e0; }
.mp-friends .text-wrap{ flex: 1; }
.mp-friends .mt-title{ font-size: 14px; font-weight: 600; color: #333; margin-bottom: 4px; }
.mp-friends .mt-desc{ font-size: 11px; color: #666; line-height: 1.6; margin-bottom: 10px; }
.mp-friends .accept-btn{ width: 100%; background: linear-gradient(135deg, #76c3c4, #5aa5a6); color: #fff; font-size: 12px; font-weight: 600; text-align: center; padding: 10px 0; border-radius: 8px; box-shadow: 0 2px 7.5px rgba(118, 195, 196, 0.4); }
.mp-friends .accept-btn:active{ transform: scale(0.98); }
.mp-friends /* 好友卡片列表 */
.friends-list{ padding: 0 15px; display: flex; flex-direction: column; gap: 10px; }
.mp-friends .friend-card{ background: #fff; border-radius: 12px; padding: 15px; display: flex; align-items: center; gap: 12px; transition: all 0.3s ease; border: 1px solid #eee; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.mp-friends .friend-card:active{ transform: scale(0.98); background: rgba(255, 255, 255, 0.85); }
.mp-friends .avatar-box{ width: 50px; height: 50px; background: #f5f5f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; position: relative; flex-shrink: 0; border: 2px solid #e0e0e0; }
.mp-friends .online-dot{ position: absolute; bottom: 1px; left: 1px; width: 10px; height: 10px; background-color: #4ade80; border: 1.5px solid #fff; border-radius: 50%; z-index: 2; }
.mp-friends .unread-dot{ position: absolute; top: -1px; right: -1px; min-width: 16px; height: 16px; background-color: #ef4444; border: 1.5px solid #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #fff; font-weight: bold; padding: 0 3px; box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4); z-index: 3; }
.mp-friends .info-box{ flex: 1; overflow: hidden; }
.mp-friends .name{ font-size: 15px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.mp-friends .tags{ display: flex; align-items: center; gap: 6px; }
.mp-friends .tag{ background: rgba(118,195,196,0.15); font-size: 10px; color: #76c3c4; padding: 3px 6px; border-radius: 4px; border: 1px solid rgba(118,195,196,0.2); }
.mp-friends .tag-text{ font-size: 10px; color: #999; }
.mp-friends .action-box{ display: flex; gap: 8px; flex-shrink: 0; }
.mp-friends .icon-btn{ width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; border: 1px solid; transition: all 0.2s; }
.mp-friends .visit-btn{
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #76c3c4;
}
.mp-friends .visit-btn:active{ transform: scale(0.96); opacity: 0.9; }
.mp-friends .visit-icon-img{ width: 33px; height: 33px; }
.mp-friends .bottom-hint{ text-align: center; margin-top: 20px; padding-bottom: 20px; font-size: 11px; color: #999; font-weight: 300; letter-spacing: 1px; }
.mp-friends /* ================= 完美私聊面板重构 ================= */
.chat-modal{
  position: fixed; 
  top: 0; left: 0; right: 0; bottom: 0;
  background: #f4f5f7; 
  z-index: 9999;
  display: flex;
  flex-direction: column; 
  animation: slideInRight 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
@keyframes slideInRight{ from { transform: translateX(100%); } to { transform: translateX(0); } }
.mp-friends /* 头部：彻底解决刘海屏遮挡 */
.chat-header{
  background: #fff;
  flex-shrink: 0;
  border-bottom: 0.5px solid #ebebeb;
}
.mp-friends .chat-header-content{
  height: 44px; /* 微信标准导航栏高度 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px 0 15px;
}
.mp-friends .chat-back{ font-size: 20px; color: #333; padding: 5px 10px; margin-left: -10px; }
.mp-friends .chat-title{ display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mp-friends .chat-name{ font-size: 16px; font-weight: 600; color: #333; line-height: 1.2; }
.mp-friends .chat-status-wrap{ display: flex; align-items: center; margin-top: 2px; }
.mp-friends .online-dot-chat{ width: 6px; height: 6px; background: #76c3c4; border-radius: 50%; margin-right: 4px; }
.mp-friends .chat-status{ font-size: 10px; color: #76c3c4; }
.mp-friends .chat-right-placeholder{ width: 32px; height: 32px; flex-shrink: 0; }
.mp-friends /* 聊天记录滚动区 */
.chat-messages{
  flex: 1; 
  width: 100%;
  height: 0;
}
.mp-friends .chat-messages-inner{
  padding: 20px 15px;
  padding-bottom: 40px; /* 底部绝对预留空间 */
}
.mp-friends .chat-hint{ text-align: center; font-size: 11px; color: #aaa; margin-bottom: 20px; font-weight: 300; }
.mp-friends /* 完美的行布局：彻底解决对齐打架 */
.msg-row{ 
  display: flex; 
  flex-direction: row; 
  align-items: flex-start; /* 绝对顶端对齐 */
  margin-bottom: 20px; 
  width: 100%;
}
.mp-friends .msg-left{ justify-content: flex-start; }
.mp-friends .msg-right{ justify-content: flex-end; }
.mp-friends /* 头像 */
.msg-avatar{ 
  width: 40px; height: 40px; 
  border-radius: 50%; 
  background: #fff; 
  display: flex; align-items: center; justify-content: center; 
  font-size: 20px; 
  flex-shrink: 0; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.mp-friends .msg-avatar.left{ margin-right: 10px; }
.mp-friends .msg-avatar.right{ margin-left: 10px; }
.mp-friends .msg-avatar.me{ background: linear-gradient(135deg, #76c3c4, #5aa5a6); }
.mp-friends /* 消息包裹 */
.msg-content{ display: flex; flex-direction: column; max-width: 65%; }
.mp-friends .msg-content.left{ align-items: flex-start; }
.mp-friends .msg-content.right{ align-items: flex-end; }
.mp-friends /* 气泡精简内边距 */
.msg-bubble{
  padding: 10px 12px; 
  font-size: 15px;
  line-height: 1.5;
  border-radius: 10px;
  word-wrap: break-word;
  word-break: break-all;
  white-space: pre-wrap;
}
.mp-friends .bubble-friend{ background: #fff; color: #333; border-top-left-radius: 2px; box-shadow: 0 1px 4px rgba(0,0,0,0.03); }
.mp-friends .bubble-me{ background: #76c3c4; color: #fff; border-top-right-radius: 2px; box-shadow: 0 1px 4px rgba(118, 195, 196, 0.2); }
.mp-friends .msg-time{ font-size: 10px; color: #b3b3b3; margin-top: 5px; padding: 0 5px; }
.mp-friends .msg-time-top{ margin-top: 0; margin-bottom: 4px; }
.mp-friends /* 底部输入框 */
.chat-input-area{
  display: flex;
  align-items: center;
  padding: 10px 15px calc(10px + 0px);
  background: #fff;
  flex-shrink: 0; 
  border-top: 0.5px solid #ebebeb;
}
.mp-friends .chat-input{
  flex: 1; 
  background: #f5f6f8;
  height: 40px;
  border-radius: 20px;
  padding: 0 15px;
  font-size: 14px;
  color: #333;
}
.mp-friends .send-btn{
  margin-left: 10px;
  width: 60px; height: 40px;
  border-radius: 20px;
  background: #e5e7eb;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: bold;
  transition: all 0.2s;
}
.mp-friends .send-active{ background: #76c3c4; box-shadow: 0 2px 6px rgba(118, 195, 196, 0.4); }
.mp-friends /* ================= 参观收藏室面板 ================= */
.visit-mask{ position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 150; display: flex; align-items: center; justify-content: center; }
.mp-friends .visit-modal{ position: relative; width: 375px; height: 812px; overflow: hidden; }
.mp-friends .visit-bg{ position: absolute; top: 0; left: 0; width: 100%; height: 812px; z-index: 1; }
.mp-friends .visit-header-float{ position: absolute; top: 7%; left: 0; width: 100%; z-index: 60; padding: 0 25px; box-sizing: border-box; }
.mp-friends .header-top{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mp-friends .visit-close-icon{ display: flex; align-items: center; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); padding: 6px 15px; border-radius: 20px; color: #4a6c6c; font-size: 14px; }
.mp-friends .cabinet-title{ font-size: 13px; color: #fff; background: rgba(118, 195, 196, 0.8); padding: 5px 12px; border-radius: 15px; font-weight: bold; }
.mp-friends .score-board{ margin-top: 5px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.mp-friends .visit-name{ font-size: 14px; color: #4a6c6c; background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(8px); padding: 6px 18px; border-radius: 20px; letter-spacing: 1px; display: inline-block; font-weight: 900; margin-top: 8px; box-shadow: 0 2px 5px rgba(118, 195, 196, 0.15); }
.mp-friends .page-arrow{ position: absolute; top: 50%; font-size: 30px; color: #fff; padding: 15px; z-index: 50; font-weight: 300; opacity: 0.8; text-shadow: 0 1px 5px rgba(0,0,0,0.5); }
.mp-friends .page-arrow.left{ left: 0; }
.mp-friends .page-arrow.right{ right: 0; }
.mp-friends .invisible-grid{ position: absolute; top: 0; left: 0; width: 100%; height: 812px; z-index: 5; display: flex; flex-direction: column; padding-top: 37.5%; padding-bottom: 14%; box-sizing: border-box; pointer-events: none; }
.mp-friends .bottle-slot{ pointer-events: auto; }
.mp-friends .invisible-shelf{ display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; }
.mp-friends .invisible-shelf:nth-child(1){ height: 25%; margin-bottom: 1px; }
.mp-friends .invisible-shelf:nth-child(2){ height: 21%; margin-bottom: 1.5px; }
.mp-friends .invisible-shelf:nth-child(3){ height: 21%; margin-bottom: 2px; }
.mp-friends .invisible-shelf:nth-child(4){ height: 21%; margin-bottom: 2.5px; }
.mp-friends .slots-container{ width: 78%; margin: 0 auto; height: 100%; display: flex; justify-content: space-evenly; align-items: flex-end; }
.mp-friends .bottle-slot{ width: 16%; height: 90%; display: flex; justify-content: center; align-items: flex-end; }
.mp-friends .bottle-group{ width: 100%; height: 100%; display: flex; justify-content: center; align-items: flex-end; position: relative; }
.mp-friends .bottle-img{ width: 48px; height: 75px; transform-origin: bottom center; z-index: 2; }
.mp-friends .bottle-cover{ position: absolute; width: 48px; height: 75px; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 3; pointer-events: none; }
.mp-friends .bottle-label{ position: absolute; bottom: -17.5px; left: 50%; transform: translateX(-50%); width: 47.5px; background: rgba(253, 251, 247, 0.95); border: 1px solid rgba(118, 195, 196, 0.5); border-radius: 3px; padding: 2px 0; display: flex; flex-direction: column; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); z-index: 5; pointer-events: none; }
.mp-friends .label-name{ font-size: 8px; color: #334155; font-weight: 900; line-height: 1.2; white-space: nowrap; transform: scale(0.85); }
.mp-friends .label-mut{ display: flex; align-items: center; gap: 1px; }
.mp-friends .mut-text{ font-size: 6px; color: #666; }
.mp-friends .mail-mark{ font-size: 6px; }
.mp-friends .empty-add-icon{ font-size: 20px; color: rgba(118, 195, 196, 0.5); margin-bottom: 10px; }
.mp-friends .visit-read-modal{ position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.mp-friends .visit-read-mask{ position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); }
.mp-friends .visit-read-content{ position: relative; width: 80%; max-height: 568.4px; background: #FEF3C7; border-radius: 12px; padding: 20px 15px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 1px solid rgba(245,158,11,0.3); }
.mp-friends .visit-read-title{ font-size: 16px; font-weight: 600; color: #92400e; margin-bottom: 10px; text-align: center; }
.mp-friends .visit-read-text{ font-size: 14px; color: #78350f; line-height: 1.8; text-align: left; width: 100%; max-height: 406px; overflow-y: auto; }
.mp-friends .visit-read-close{ margin-top: 15px; font-size: 13px; color: #92400e; padding: 8px 20px; background: rgba(245,158,11,0.2); border-radius: 15px; }
/* ==== 视口单位修正（由转换器追加） ====
   原工程的 100vw/100vh 指手机屏幕；网页里指整个浏览器窗口，会撑爆竖屏框。
   上面已经按 375×812 把 vw/vh 换算成绝对像素，这里只兜底处理
   "必须整屏铺满"的那几个容器，以及固定定位改成相对手机框。
   ⚠️ .page-turn-zone 不在这里：它是原设计的 18vw 侧边翻页条，
      强行撑成整屏会盖住漂流瓶（点不到），交给上面的换算就够了。 */
.mp-friends{ --vw:375px; --vh:812px; }
.mp-friends .home-container,
.mp-friends .beach-swiper,
.mp-friends .modal-mask,
.mp-friends .reply-modal,
.mp-friends .write-modal,
.mp-friends .friend-select-modal,
.mp-friends .paper-select-modal,
.mp-friends .backpack-modal,
.mp-friends .collection-wrapper,
.mp-friends .art-bg,
.mp-friends .invisible-grid,
.mp-friends .action-modal,
.mp-friends .read-modal,
.mp-friends .friends-container,
.mp-friends .page-bg,
.mp-friends .visit-modal,
.mp-friends .visit-bg,
.mp-friends .puzzle-wrapper,
.mp-friends .me-page,
.mp-friends .bg-header{
  width:375px !important;
  height:812px !important;
  max-width:none !important;
}
/* 铺满视口用的固定定位在网页里要改成相对手机框 */
.mp-friends .floating-btns-group,
.mp-friends .ocean-refresh-btn,
.mp-friends .page-turn-zone,
.mp-friends .modal-mask,
.mp-friends .visit-mask,
.mp-friends .draw-anim-mask,
.mp-friends .reward-modal-mask,
.mp-friends .chat-modal,
.mp-friends .reply-modal,
.mp-friends .paper-select-modal{
  position:absolute !important;
}
/* ==== swiper-item 必须填满 swiper ====
   swiper / swiper-item 是微信**内置组件**，原工程 wxss 里没有它们的选择器
   （尺寸由组件自己给）。网页里它们变成了普通 div，不补这条：
   swiper-item 高度 auto=0 → 里面的 .beach-bg(height:100%) 跟着变 0 高
   → **海滩背景整块画不出来**（实测 .beach-bg 盒高 0）。 */
.mp-friends .beach-swiper > div{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* ==== 视频要盖在背景图上 ====
   小程序的 <video> 是**原生组件，永远显示在最上层**，z-index 管不着它；
   网页的 video 老实按 z-index 排。原样式写的是 video:0、bg:1，
   照搬就会把视频压在背景图下面 → 用户看到的"动态海滩"没了。 */
.mp-friends .beach-bg-video{
  z-index: 2;
  object-fit: cover;
}
/* ==== swiper 只显示"当前那一块" ====
   小程序的 <swiper current="{{i}}"> 只显示第 i 块；网页里三块 swiper-item 是叠着的，
   不处理就永远只有最后一块可见——点左右两侧换海滩时，标题变了、画面却没变。
   运行时会给正在显示的那块加 .zone-on（见 exhibition.js 的 afterRender）。
   ⚠️ 这里用 .zone-managed 开关：万一逻辑没接上，不做任何隐藏（回落到"叠着"的老样子），
      不会出现"整个海滩背景一片空白"这种更糟的结果。 */
.mp-friends .beach-swiper.zone-managed > div{ opacity: 0; transition: opacity .35s ease; }
.mp-friends .beach-swiper.zone-managed > div.zone-on{ opacity: 1; }

/* 由 tools/port_miniprogram.mjs 自动转换：rpx×0.5→pt、env(safe-area)→0、选择器收进 .mp-puzzle。来源 mini/pages/puzzle/puzzle.wxss */
/* ====================
   全局与背景：丝网印刷肌理
==================== */
.mp-puzzle .puzzle-wrapper{
  position: relative;
  width: 375px;
  height: 812px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #333;
}
.mp-puzzle .page-bg{
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
}
.mp-puzzle .noise-overlay{
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
.mp-puzzle /* 动态下调顶部资产栏的高度，完美避开刘海并让出呼吸空间 */
.nav-header{ padding: calc(0px + 22px) 20px 0; }
.mp-puzzle /* 白底胶囊状的高级星尘标签 */
.currency-board{ 
  display: inline-flex; 
  align-items: center; 
  background: rgba(255, 255, 255, 0.85); 
  backdrop-filter: blur(10px);
  padding: 5px 14px; 
  border-radius: 20px;
  box-shadow: 0 2px 7.5px rgba(0,0,0,0.06);
}
.mp-puzzle .currency-icon{ width: 22px; height: 22px; margin-right: 6px; }
.mp-puzzle .amount{ color: #0F172A; font-size: 16px; font-weight: 900; letter-spacing: 1px; }
.mp-puzzle /* Scroll-view 滚动 */
.main-scroll{ flex: 1; height: 0; width: 100%; }
.mp-puzzle /* 顶部展览馆风标题 */
.board-header{ display: flex; justify-content: space-between; align-items: center; padding: 20px; margin-top: 5px; }
.mp-puzzle .title-center{ text-align: center; }
.mp-puzzle .p-idx{ font-size: 10px; letter-spacing: 3px; color: rgba(0, 0, 0, 0.4); font-family: sans-serif; margin-bottom: 4px; }
.mp-puzzle .p-name{ font-size: 18px; font-weight: 300; color: #333; letter-spacing: 2px; }
.mp-puzzle .p-prog{ font-size: 12px; color: #666; margin-top: 4px; }
.mp-puzzle .p-buff{ font-size: 11px; color: #999; margin-top: 4px; }
.mp-puzzle /* 去除白色半透明底座，改为极简、优雅的大号指示箭头，保留大面积点击区域 */
.nav-arrow{ 
  color: rgba(0, 0, 0, 0.4); 
  font-size: 25px; 
  font-weight: 300;
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; 
}
.mp-puzzle .nav-arrow:active{ transform: scale(0.85); color: rgba(0, 0, 0, 0.8); }
.mp-puzzle /* 通透的毛玻璃画框 */
.board-section{ padding: 0 20px; display: flex; justify-content: center; }
.mp-puzzle .board-frame{ width: 100%; aspect-ratio: 1 / 1; background: rgba(255, 255, 255, 0.45); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 8px; padding: 10px; box-sizing: border-box; position: relative; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); }
.mp-puzzle .locked-overlay{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(8px); z-index: 10; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 8px; }
.mp-puzzle .lock-icon{ font-size: 25px; margin-bottom: 10px; opacity: 0.8; }
.mp-puzzle .lock-text{ font-size: 13px; color: #333; letter-spacing: 1px; font-weight: 300; }
.mp-puzzle /* 画板网格设计，完成后缝合无间隙 */
.board-grid{ display: grid; width: 100%; height: 100%; gap: 2px; transition: gap 0.4s ease; }
.mp-puzzle .completed-grid{ gap: 0 !important; }
.mp-puzzle .completed-grid .board-slot{ border: none !important; border-radius: 0 !important; }
.mp-puzzle .completed-grid .piece-correct{ border-radius: 0 !important; }
.mp-puzzle .board-slot{ background: rgba(255, 255, 255, 0.3); border: 0.5px solid rgba(0, 0, 0, 0.04); display: flex; justify-content: center; align-items: center; border-radius: 2px; transition: all 0.2s ease; overflow: visible; position: relative; }
.mp-puzzle /* 画板上的碎片被点击选中时的闪耀和缩放效果 */
.board-slot.selected-board-slot{
  transform: scale(0.92);
  box-shadow: 0 0 0 2px #38BDF8 inset, 0 5px 10px rgba(56, 189, 248, 0.4);
  z-index: 20;
  border-radius: 4px;
}
.mp-puzzle /* 槽位底图提示已经去除，纯玻璃空底 */
.slot-idx{ position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden; border-radius: 2px; }
.mp-puzzle .click-hint{ position: absolute; bottom: -25px; left: 0; width: 100%; text-align: center; font-size: 11px; color: #FFFFFF; text-shadow: 0 1px 4px rgba(0,0,0,0.35); font-weight: bold; letter-spacing: 1px; animation: textBreathe 2s infinite; }
.mp-puzzle /* ==================== ★ 托盘区与抽卡区(二者存一) ==================== */
.tray-section{ margin-top: 30px; flex: 1; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(25px); border-radius: 20px 20px 0 0; padding: 20px; padding-bottom: 120px; min-height: 406px; box-sizing: border-box; box-shadow: 0 -5px 15px rgba(0,0,0,0.02); border-top: 1px solid rgba(255,255,255,0.6); }
.mp-puzzle .tray-header{ display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 15px; }
.mp-puzzle .tray-title{ font-size: 15px; font-weight: bold; color: #333; }
.mp-puzzle .tray-subtitle{ font-size: 10px; color: #999; letter-spacing: 1px; font-weight: normal;}
.mp-puzzle .decompose-btn{ font-size: 11px; color: #64748B; background: #F1F5F9; padding: 5px 12px; border-radius: 15px; font-weight: bold; }
.mp-puzzle .decompose-btn:active{ opacity: 0.7; }
.mp-puzzle /* 托盘网格恢复为4列 */
.tray-grid{ display: grid; gap: 10px; }
.mp-puzzle /* 彻底去除背景白框与多余的内边距，变成纯净的浮动碎片 */
.tray-item{ display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; background: transparent; padding: 5px; box-shadow: none; transition: transform 0.2s; }
.mp-puzzle .tray-item:active{ transform: scale(0.92); }
.mp-puzzle /* 选中时直接给碎片图片本身套上柔和蓝光外发光 */
.tray-item.selected-tray{
  transform: translateY(-4px) scale(1.05);
  z-index: 10;
}
.mp-puzzle .tray-item.selected-tray .piece-slice{
  box-shadow: 0 5px 12.5px rgba(3, 105, 161, 0.4), 0 0 0 3px #38BDF8;
}
.mp-puzzle .tray-empty-hint{ grid-column: 1 / -1; text-align: center; color: #aaa; font-size: 12px; padding-top: 30px; }
.mp-puzzle .tray-piece-wrap{
  position: relative;
  display: inline-block;
}
.mp-puzzle /* ★ 托盘为空时的抽卡状态容器 */
.empty-tray-state{ display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 20px; width: 100%; }
.mp-puzzle .empty-hint-text{ font-size: 13px; color: #94A3B8; margin-bottom: 25px; letter-spacing: 1px; font-weight: bold; text-align: center; }
.mp-puzzle /* 抽卡按钮区(现已内嵌到托盘区空状态) */
.action-section{ display: flex; justify-content: center; gap: 15px; width: 100%; padding: 0 10px; box-sizing: border-box; }
.mp-puzzle .draw-btn{ flex: 1; display: flex; flex-direction: column; align-items: center; padding: 12px 0; border-radius: 6px; background: rgba(255, 255, 255, 0.95); color: #333; box-shadow: 0 4px 12px rgba(0,0,0,0.06); transition: transform 0.1s; }
.mp-puzzle .draw-btn:active{ transform: scale(0.96); }
.mp-puzzle .draw-btn.ten-btn{ background: #2A2A2A; color: #fff; box-shadow: 0 4px 12px rgba(42,42,42,0.25); }
.mp-puzzle .btn-name{ font-size: 14px; letter-spacing: 1px; font-weight: bold; }
.mp-puzzle .btn-cost{ font-size: 11px; font-weight: bold; }
.mp-puzzle /* 角标紧贴碎片右上角 */
.badge{ position: absolute; top: -7.5px; right: -7.5px; background: #EF4444; color: #fff; font-size: 10px; width: 20px; height: 20px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3); z-index: 10;}
.mp-puzzle /* ==================== ★ 精灵图切片核心样式 ==================== */
.piece-slice{
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: block;
}
.mp-puzzle /* 放对位置：完美贴合无缝隙 */
.piece-correct{
  width: 100%; height: 100%;
  border-radius: 2px;
  box-shadow: none;
}
.mp-puzzle /* 放错位置的质感悬浮呼吸动画 (保留100%透明度完美色彩) */
.piece-wrong{
  width: 100%; height: 100%;
  border-radius: 4px;
  opacity: 1; /* 保持100%色彩 */
  position: relative;
  z-index: 10;
  /* 加入物理浮空动画 */
  animation: wrongPieceHover 3.5s ease-in-out infinite;
}
.mp-puzzle /* 赋予放错碎片一个随风浮动、轻微摇摆的错位感 */
@keyframes wrongPieceHover{
  0%, 100% { 
    transform: scale(0.86) rotate(-2.5deg); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.4) inset; 
  }
  50% { 
    transform: scale(0.92) rotate(1.5deg); 
    box-shadow: 0 8px 16px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.7) inset; 
  }
}
.mp-puzzle .tray-slice{
  margin-bottom: 0; 
}
.mp-puzzle .drag-shadow{ 
  position: fixed; 
  z-index: 9999; 
  pointer-events: none; 
  opacity: 0.9;
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.mp-puzzle /* ★ 放大弹窗的样式已经彻底删除 */

/* ==================== ★ 过场动画：温柔治愈的星尘祈愿 ==================== */

.draw-anim-mask{
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22, 35, 55, 0.7); 
  backdrop-filter: blur(15px);
  z-index: 9990;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  animation: fadeIn 0.5s ease;
}
.mp-puzzle .anim-glow-bg{
  position: absolute;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255, 251, 235, 0.15) 0%, rgba(118, 195, 196, 0.1) 40%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  animation: softGlowPulse 3s ease-in-out infinite alternate;
}
.mp-puzzle .gathering-star{ position: relative; width: 90px; height: 90px; display: flex; justify-content: center; align-items: center; z-index: 2; }
.mp-puzzle /* 核心星星：温柔的呼吸浮动 */
.anim-star-img{ 
  width: 70px; height: 70px; 
  animation: starBreathe 3s ease-in-out infinite; 
}
.mp-puzzle /* 涟漪圈：向外水波纹扩散 */
.energy-ring{
  position: absolute;
  width: 100%; height: 100%;
  border: 2px solid rgba(253, 224, 71, 0.8);
  border-radius: 50%;
  animation: rippleOut 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.mp-puzzle .energy-ring.delay{ animation-delay: 1.25s; border-color: rgba(118, 195, 196, 0.6); }
.mp-puzzle .anim-text{ 
  margin-top: 50px; color: rgba(255, 255, 255, 0.9); 
  font-size: 14px; letter-spacing: 4px; font-weight: 300; 
  animation: textBreathe 2.5s ease-in-out infinite; z-index: 2; 
}
.mp-puzzle /* 柔和光晕过渡 */
.flash-overlay{
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: transparent;
  z-index: 10;
  pointer-events: none;
  animation: softTransitionGlow 1.8s ease forwards;
}
.mp-puzzle /* ==================== ★ 抽奖结果弹窗 (梦幻色彩) ==================== */

.reward-modal-mask{
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  animation: fadeIn 0.3s ease;
}
.mp-puzzle .reward-modal-content{
  width: 82%; max-height: 609px;
  border-radius: 20px; padding: 25px 20px 20px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 3px solid rgba(255, 255, 255, 0.9);
  
  /* 治愈梦幻的马卡龙渐变背景 */
  background: linear-gradient(135deg, #E8F4FD 0%, #F5F3FF 50%, #FEF9C3 100%);
  animation: modalPopUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mp-puzzle .reward-title{ font-size: 18px; font-weight: 900; color: #0369A1; margin-bottom: 20px; letter-spacing: 1px; text-shadow: 0 1px 2px rgba(255,255,255,0.8); }
.mp-puzzle /* 宫格排版适配单抽和十连抽 */
.reward-grid-inner{
  width: 100%; max-height: 365.4px; overflow-y: auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  padding: 5px 0;
}
.mp-puzzle /* 单抽大图展示 */
.reward-grid-inner.single-draw .reward-item{
  width: 110px; height: 110px; padding: 20px;
}
.mp-puzzle .reward-grid-inner.single-draw .piece-slice{ margin-bottom: 0; }
.mp-puzzle /* 十连抽小图网格 */
.reward-grid-inner.ten-draw .reward-item{
  width: calc(33.3% - 8px); height: 80px; padding: 10px 5px;
}
.mp-puzzle .reward-item{
  /* 磨砂玻璃质感 */
  background: rgba(255, 255, 255, 0.6); 
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03); 
  position: relative;
  /* 依次弹出的动画 */
  opacity: 0;
  animation: itemPopUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.mp-puzzle .reward-item .piece-slice{ margin-bottom: 0; }
.mp-puzzle .empty-draw-item{
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.18);
  border: 1px dashed rgba(100, 116, 139, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp-puzzle .empty-draw-text{
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.mp-puzzle /* NEW标签 */
.new-badge{
  position: absolute; top: -5px; right: -5px;
  background: linear-gradient(135deg, #FDE047, #F59E0B); color: #fff;
  font-size: 8px; font-weight: 900; padding: 2px 6px; border-radius: 8px;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.4);
  transform: rotate(10deg);
}
.mp-puzzle .accept-btn{
  margin-top: 25px; 
  /* 水光蓝渐变 */
  background: linear-gradient(135deg, #76c3c4, #5aa5a6); 
  color: #fff;
  padding: 12px 60px; border-radius: 20px; font-size: 15px; font-weight: bold; letter-spacing: 2px;
  box-shadow: 0 4px 10px rgba(118, 195, 196, 0.4); 
  transition: transform 0.1s;
}
.mp-puzzle .accept-btn:active{ transform: scale(0.95); }
.mp-puzzle /* ==================== 治愈系动画定义库 ==================== */
@keyframes fadeIn{ 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes softGlowPulse{ 
  0% { transform: scale(0.9); opacity: 0.6; } 
  100% { transform: scale(1.1); opacity: 1; } 
}
@keyframes starBreathe{ 
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.6)); } 
  50% { transform: translateY(-7.5px) scale(1.05); filter: drop-shadow(0 0 20px rgba(253, 224, 71, 1)); } 
}
@keyframes rippleOut{ 
  0% { transform: scale(0.8); opacity: 0.8; border-width: 1px; } 
  100% { transform: scale(2.5); opacity: 0; border-width: 4px; } 
}
@keyframes textBreathe{ 
  0%, 100% { opacity: 0.5; } 
  50% { opacity: 1; } 
}
@keyframes softTransitionGlow{ 
  0%, 75% { opacity: 0; background: transparent; } 
  90% { opacity: 1; background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 80%); } 
  100% { opacity: 0; background: transparent; } 
}
@keyframes modalPopUp{ 
  0% { transform: translateY(30px) scale(0.9); opacity: 0; } 
  100% { transform: translateY(0) scale(1); opacity: 1; } 
}
@keyframes itemPopUp{ 
  0% { transform: scale(0.5); opacity: 0; } 
  100% { transform: scale(1); opacity: 1; } 
}
/* ==== 视口单位修正（由转换器追加） ====
   原工程的 100vw/100vh 指手机屏幕；网页里指整个浏览器窗口，会撑爆竖屏框。
   上面已经按 375×812 把 vw/vh 换算成绝对像素，这里只兜底处理
   "必须整屏铺满"的那几个容器，以及固定定位改成相对手机框。
   ⚠️ .page-turn-zone 不在这里：它是原设计的 18vw 侧边翻页条，
      强行撑成整屏会盖住漂流瓶（点不到），交给上面的换算就够了。 */
.mp-puzzle{ --vw:375px; --vh:812px; }
.mp-puzzle .home-container,
.mp-puzzle .beach-swiper,
.mp-puzzle .modal-mask,
.mp-puzzle .reply-modal,
.mp-puzzle .write-modal,
.mp-puzzle .friend-select-modal,
.mp-puzzle .paper-select-modal,
.mp-puzzle .backpack-modal,
.mp-puzzle .collection-wrapper,
.mp-puzzle .art-bg,
.mp-puzzle .invisible-grid,
.mp-puzzle .action-modal,
.mp-puzzle .read-modal,
.mp-puzzle .friends-container,
.mp-puzzle .page-bg,
.mp-puzzle .visit-modal,
.mp-puzzle .visit-bg,
.mp-puzzle .puzzle-wrapper,
.mp-puzzle .me-page,
.mp-puzzle .bg-header{
  width:375px !important;
  height:812px !important;
  max-width:none !important;
}
/* 铺满视口用的固定定位在网页里要改成相对手机框 */
.mp-puzzle .floating-btns-group,
.mp-puzzle .ocean-refresh-btn,
.mp-puzzle .page-turn-zone,
.mp-puzzle .modal-mask,
.mp-puzzle .visit-mask,
.mp-puzzle .draw-anim-mask,
.mp-puzzle .reward-modal-mask,
.mp-puzzle .chat-modal,
.mp-puzzle .reply-modal,
.mp-puzzle .paper-select-modal{
  position:absolute !important;
}
/* ==== swiper-item 必须填满 swiper ====
   swiper / swiper-item 是微信**内置组件**，原工程 wxss 里没有它们的选择器
   （尺寸由组件自己给）。网页里它们变成了普通 div，不补这条：
   swiper-item 高度 auto=0 → 里面的 .beach-bg(height:100%) 跟着变 0 高
   → **海滩背景整块画不出来**（实测 .beach-bg 盒高 0）。 */
.mp-puzzle .beach-swiper > div{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* ==== 视频要盖在背景图上 ====
   小程序的 <video> 是**原生组件，永远显示在最上层**，z-index 管不着它；
   网页的 video 老实按 z-index 排。原样式写的是 video:0、bg:1，
   照搬就会把视频压在背景图下面 → 用户看到的"动态海滩"没了。 */
.mp-puzzle .beach-bg-video{
  z-index: 2;
  object-fit: cover;
}
/* ==== swiper 只显示"当前那一块" ====
   小程序的 <swiper current="{{i}}"> 只显示第 i 块；网页里三块 swiper-item 是叠着的，
   不处理就永远只有最后一块可见——点左右两侧换海滩时，标题变了、画面却没变。
   运行时会给正在显示的那块加 .zone-on（见 exhibition.js 的 afterRender）。
   ⚠️ 这里用 .zone-managed 开关：万一逻辑没接上，不做任何隐藏（回落到"叠着"的老样子），
      不会出现"整个海滩背景一片空白"这种更糟的结果。 */
.mp-puzzle .beach-swiper.zone-managed > div{ opacity: 0; transition: opacity .35s ease; }
.mp-puzzle .beach-swiper.zone-managed > div.zone-on{ opacity: 1; }

/* 由 tools/port_miniprogram.mjs 自动转换：rpx×0.5→pt、env(safe-area)→0、选择器收进 .mp-me。来源 mini/pages/me/me.wxss */
.mp-me .mp-me{ background: #F0F9FF; min-height: 812px; }
.mp-me /* ★ 核心修改：加入 0px 动态适配刘海屏高度 */
.me-page{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(0px + 24px);
  padding-bottom: calc(0px + 20px);
  min-height: 812px;
  box-sizing: border-box;
  position: relative;
}
.mp-me /* ★ 核心修改：拉长背景高度，配合下移的卡片 */
.bg-header{ position: absolute; top: 0; left: 0; width: 100%; height: 280px; background: linear-gradient(180deg, #BAE6FD, #F0F9FF); z-index: -1; }
.mp-me .profile-card{ width: 86%; background: white; border-radius: 30px; padding: 20px 24px; box-shadow: 0 10px 30px rgba(2, 132, 199, 0.05); margin-bottom: 20px; border: 4px solid white; }
.mp-me .title-top{ text-align: center; color: #0369A1; font-weight: 900; font-size: 18px; margin-bottom: 20px; }
.mp-me .user-row{ display: flex; align-items: center; gap: 15px; margin-bottom: 30px; position: relative; }
.mp-me .avatar-wrap{ width: 70px; height: 70px; background: #F0F9FF; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; border: 4px solid #E0F2FE; position: relative; }
.mp-me .gear-btn{ position: absolute; bottom: -5px; right: -5px; background: #FBBF24; width: 24px; height: 24px; border-radius: 50%; border: 2px solid white; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: transform 0.2s;}
.mp-me .gear-btn:active{ transform: scale(0.9); }
.mp-me .user-info{ flex: 1; }
.mp-me .nickname{ font-size: 22px; font-weight: 900; color: #1E293B; display: block; }
.mp-me .id-tag{ background: #F1F5F9; color: #64748B; font-size: 11px; padding: 4px 10px; border-radius: 8px; display: inline-block; margin-top: 4px; font-weight: bold; }
.mp-me .checkin-btn{ background: #FB923C; color: white; padding: 8px 16px; border-radius: 16px; border-bottom: 4px solid #EA580C; display: flex; flex-direction: column; align-items: center; transition: transform 130ms ease-out, opacity 220ms cubic-bezier(0.22, 1, 0.36, 1), border-bottom-width 130ms ease-out; }
.mp-me .checkin-btn:active{ transform: scale(0.97); border-bottom-width: 3px; }
.mp-me .checkin-btn.checked{ background: #E2E8F0; border-bottom: 4px solid #CBD5E1; color: #94A3B8;}
.mp-me .gift-icon{ font-size: 18px; margin-bottom: 2px;}
.mp-me .checkin-btn span{ font-size: 11px; font-weight: 900; }
.mp-me .stats-row{ display: flex; border-top: 2px dashed #E2E8F0; padding-top: 15px; }
.mp-me .stat-item{ flex: 1; text-align: center; display: flex; flex-direction: column; }
.mp-me .val{ font-size: 20px; font-weight: 900; color: #0284C7; }
.mp-me .lab{ font-size: 11px; color: #94A3B8; font-weight: bold; margin-top: 6px; }
.mp-me .stat-line{ width: 2px; height: 30px; background: #F1F5F9; margin: 8px 0; border-radius: 2px;}
.mp-me .asset-card{ width: 86%; background: linear-gradient(135deg, #FEF9C3, #FDE68A); border-radius: 25px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border: 3px solid white; box-shadow: 0 8px 20px rgba(245, 158, 11, 0.1); transition: transform 130ms ease-out, box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms cubic-bezier(0.22, 1, 0.36, 1); }
.mp-me .asset-card:active{ transform: scale(0.97); }
.mp-me .asset-label{ font-size: 13px; font-weight: 900; color: #D97706; display: block; margin-bottom: 4px;}
.mp-me .asset-val{ font-size: 34px; font-weight: 900; color: #92400E; }
.mp-me .action-btn{ background: white; color: #D97706; font-size: 12px; font-weight: 900; padding: 10px 18px; border-radius: 12px; border-bottom: 4px solid #FEF08A; }
.mp-me .menu-list{ width: 93%; }
.mp-me .menu-title{ font-size: 14px; font-weight: 900; color: #94A3B8; margin-bottom: 12px; margin-left: 15px; letter-spacing: 1px;}
.mp-me .menu-item{ background: white; border-radius: 20px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 4px solid #E2E8F0; margin-bottom: 12px; transition: transform 130ms ease-out, opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);}
.mp-me .menu-item:active{ transform: scale(0.97); }
.mp-me .m-left{ display: flex; align-items: center; gap: 14px; }
.mp-me .m-icon{ width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mp-me .m-left span{ font-weight: 900; color: #1E293B; font-size: 16px; }
.mp-me .m-arrow{ color: #CBD5E1; font-weight: bold; font-size: 18px;}
.mp-me .blue-i .m-icon{ background: #E0F2FE; }
.mp-me .purp-i .m-icon{ background: #F3E8FF; }
.mp-me .gold-i .m-icon{ background: #FEF9C3; }
.mp-me /* ================= 弹窗通用样式 ================= */
.modal-mask{ position: fixed; top: 0; left: 0; width: 375px; height: 812px; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 999; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.24s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes fadeIn{ from { opacity: 0; } to { opacity: 1; } }
.mp-me .modal-content{ background: #fff; width: 85%; border-radius: 16px; padding: 25px 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); display: flex; flex-direction: column; align-items: center; position: relative; animation: modalPop 0.24s cubic-bezier(0.22, 1, 0.36, 1);}
@keyframes modalPop{ from { opacity: 0; transform: translateY(9px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.mp-me .m-title{ font-size: 20px; font-weight: 900; color: #0F172A; text-align: center; }
.mp-me .m-header-close{ position: absolute; right: 15px; top: 15px; width: 30px; height: 30px; background: #F1F5F9; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #64748B; font-size: 14px; font-weight: bold; }
.mp-me /* ================= 签到弹窗 ================= */
.checkin-modal{ padding-bottom: 30px; }
.mp-me .m-sub{ font-size: 13px; color: #64748B; margin-top: 5px; margin-bottom: 20px; font-weight: bold; }
.mp-me .checkin-grid{ 
  display: flex; flex-wrap: wrap; justify-content: center; 
  gap: 15px 10px; margin-bottom: 25px; width: 100%;
}
.mp-me .day-item{ display: flex; flex-direction: column; align-items: center; width: 60px; opacity: 0.8; }
.mp-me .today-day{ opacity: 1; transform: scale(1.1); }
.mp-me .past-day{ opacity: 0.5; }
.mp-me .day-label{ font-size: 11px; color: #94A3B8; font-weight: bold; margin-bottom: 6px; }
.mp-me .day-icon-box{ width: 45px; height: 45px; background: #FFFBEB; border-radius: 10px; border: 1px solid #FDE68A; display: flex; align-items: center; justify-content: center; font-size: 20px; position: relative; margin-bottom: 6px; }
.mp-me .today-day .day-icon-box{ background: #FEF08A; border-color: #F59E0B; box-shadow: 0 2px 7.5px rgba(245,158,11,0.2); }
.mp-me .d-icon-img{ width: 29px; height: 29px; }
.mp-me .dust-icon-stack{
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp-me .dust-icon{
  width: 17px;
  height: 17px;
  margin-left: -3px;
}
.mp-me .dust-icon:first-child{
  margin-left: 0;
}
.mp-me .bottle-icon{
  width: 29px;
  height: 29px;
}
.mp-me .d-checked-mask{
  position: absolute;
  top: -4px;
  right: -4px;
}
.mp-me .day-reward{ font-size: 12px; color: #D97706; font-weight: bold; width: 100%; text-align: center; line-height: 1.25;}
.mp-me .ui-checkbox{
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #BAE6FD;
  position: relative;
  transition: all 0.3s;
  box-sizing: border-box;
}
.mp-me .ui-checkbox.checked{
  background: #0EA5E9;
  border-color: #0EA5E9;
  box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.16);
}
.mp-me .ui-checkbox-mark{
  position: absolute;
  top: 3.5px;
  left: 5.5px;
  width: 3.5px;
  height: 6px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
  transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46);
  box-sizing: border-box;
}
.mp-me .ui-checkbox.checked .ui-checkbox-mark{
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.mp-me .m-btn{ width: 80%; padding: 12px 0; border-radius: 20px; font-size: 15px; font-weight: bold; text-align: center; transition: transform 130ms ease-out, opacity 220ms cubic-bezier(0.22, 1, 0.36, 1); }
.mp-me .confirm-btn{ background: #FB923C; color: #fff; box-shadow: 0 4px 10px rgba(251,146,60,0.3); transition: transform 0.2s;}
.mp-me .confirm-btn:active{ transform: scale(0.97); }
.mp-me /* 已领取的禁用状态 */
.confirm-btn.disabled{ background: #E2E8F0; color: #94A3B8; box-shadow: none; pointer-events: none; }
.mp-me /* ================= 列表弹窗(成就/星尘明细) ================= */
.achieve-modal{ height: 609px; padding: 25px 15px; box-sizing: border-box; }
.mp-me .achieve-scroll-list{ flex: 1; width: 100%; overflow-y: auto; }
.mp-me .achieve-card{ background: #F8FAFC; border-radius: 12px; padding: 15px; display: flex; align-items: center; margin-bottom: 12px; border: 1px solid #E2E8F0; }
.mp-me .achieve-card.done{ background: #F0FDF4; border-color: #BBF7D0; }
.mp-me .a-icon{ width: 40px; height: 40px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-right: 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.mp-me .a-info{ flex: 1; }
.mp-me .a-name{ font-size: 14px; font-weight: 900; color: #1E293B; display: flex; align-items: center; margin-bottom: 3px; }
.mp-me .a-status{ font-size: 9px; background: #22C55E; color: #fff; padding: 2px 6px; border-radius: 5px; margin-left: 6px; }
.mp-me .a-desc{ font-size: 11px; color: #64748B; margin-bottom: 6px; }
.mp-me .a-progress-bar{ width: 100%; height: 6px; background: #E2E8F0; border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.mp-me .a-progress-inner{ height: 100%; background: #38BDF8; transition: width 0.3s; }
.mp-me .a-progress-text{ font-size: 10px; color: #94A3B8; text-align: right; font-weight: bold; }
.mp-me .dust-record-item{ display: flex; justify-content: space-between; align-items: center; padding: 12px 5px; border-bottom: 1px solid #F1F5F9; }
.mp-me .dr-left{ display: flex; flex-direction: column; }
.mp-me .dr-title{ font-size: 14px; font-weight: bold; color: #333; margin-bottom: 4px; }
.mp-me .dr-time{ font-size: 11px; color: #94A3B8; }
.mp-me .dr-right{ font-size: 16px; font-weight: 900; }
.mp-me .dr-right.add{ color: #10B981; }
.mp-me .dr-right.sub{ color: #EF4444; }
.mp-me /* ================= 客服反馈弹窗 ================= */
.feedback-modal{ padding-bottom: 30px; }
.mp-me .feedback-input-box{ width: 100%; background: #F8FAFC; border-radius: 10px; padding: 12px; box-sizing: border-box; margin-bottom: 20px; border: 1px solid #E2E8F0; position: relative;}
.mp-me .feedback-textarea{ width: 100%; height: 110px; font-size: 14px; color: #333; line-height: 1.5; }
.mp-me .text-count{ position: absolute; bottom: 10px; right: 12px; font-size: 11px; color: #94A3B8; font-weight: bold; }
.mp-me .sync-status-row{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 9px 10px;
  box-sizing: border-box;
  margin-bottom: 12px;
}
.mp-me .sync-status-label{
  font-size: 12px;
  color: #64748B;
  font-weight: bold;
}
.mp-me .sync-status-pill{
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 499.5px;
  color: #64748B;
  background: #E2E8F0;
  font-weight: bold;
}
.mp-me .sync-status-pill.synced{
  color: #047857;
  background: #D1FAE5;
}
.mp-me .sync-status-pill.syncing,.mp-me .sync-status-pill.pending{
  color: #1D4ED8;
  background: #DBEAFE;
}
.mp-me .sync-status-pill.error{
  color: #B91C1C;
  background: #FEE2E2;
}
.mp-me .sync-status-pill.local{
  color: #7C3AED;
  background: #EDE9FE;
}
/* ==== 视口单位修正（由转换器追加） ====
   原工程的 100vw/100vh 指手机屏幕；网页里指整个浏览器窗口，会撑爆竖屏框。
   上面已经按 375×812 把 vw/vh 换算成绝对像素，这里只兜底处理
   "必须整屏铺满"的那几个容器，以及固定定位改成相对手机框。
   ⚠️ .page-turn-zone 不在这里：它是原设计的 18vw 侧边翻页条，
      强行撑成整屏会盖住漂流瓶（点不到），交给上面的换算就够了。 */
.mp-me{ --vw:375px; --vh:812px; }
.mp-me .home-container,
.mp-me .beach-swiper,
.mp-me .modal-mask,
.mp-me .reply-modal,
.mp-me .write-modal,
.mp-me .friend-select-modal,
.mp-me .paper-select-modal,
.mp-me .backpack-modal,
.mp-me .collection-wrapper,
.mp-me .art-bg,
.mp-me .invisible-grid,
.mp-me .action-modal,
.mp-me .read-modal,
.mp-me .friends-container,
.mp-me .page-bg,
.mp-me .visit-modal,
.mp-me .visit-bg,
.mp-me .puzzle-wrapper,
.mp-me .me-page,
.mp-me .bg-header{
  width:375px !important;
  height:812px !important;
  max-width:none !important;
}
/* 铺满视口用的固定定位在网页里要改成相对手机框 */
.mp-me .floating-btns-group,
.mp-me .ocean-refresh-btn,
.mp-me .page-turn-zone,
.mp-me .modal-mask,
.mp-me .visit-mask,
.mp-me .draw-anim-mask,
.mp-me .reward-modal-mask,
.mp-me .chat-modal,
.mp-me .reply-modal,
.mp-me .paper-select-modal{
  position:absolute !important;
}
/* ==== swiper-item 必须填满 swiper ====
   swiper / swiper-item 是微信**内置组件**，原工程 wxss 里没有它们的选择器
   （尺寸由组件自己给）。网页里它们变成了普通 div，不补这条：
   swiper-item 高度 auto=0 → 里面的 .beach-bg(height:100%) 跟着变 0 高
   → **海滩背景整块画不出来**（实测 .beach-bg 盒高 0）。 */
.mp-me .beach-swiper > div{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* ==== 视频要盖在背景图上 ====
   小程序的 <video> 是**原生组件，永远显示在最上层**，z-index 管不着它；
   网页的 video 老实按 z-index 排。原样式写的是 video:0、bg:1，
   照搬就会把视频压在背景图下面 → 用户看到的"动态海滩"没了。 */
.mp-me .beach-bg-video{
  z-index: 2;
  object-fit: cover;
}
/* ==== swiper 只显示"当前那一块" ====
   小程序的 <swiper current="{{i}}"> 只显示第 i 块；网页里三块 swiper-item 是叠着的，
   不处理就永远只有最后一块可见——点左右两侧换海滩时，标题变了、画面却没变。
   运行时会给正在显示的那块加 .zone-on（见 exhibition.js 的 afterRender）。
   ⚠️ 这里用 .zone-managed 开关：万一逻辑没接上，不做任何隐藏（回落到"叠着"的老样子），
      不会出现"整个海滩背景一片空白"这种更糟的结果。 */
.mp-me .beach-swiper.zone-managed > div{ opacity: 0; transition: opacity .35s ease; }
.mp-me .beach-swiper.zone-managed > div.zone-on{ opacity: 1; }
