/* 全站页面转场 - 复刻旧版 fadeUp,页面级,300ms
   旧版原态: @keyframes fadeUp { from { opacity:0; translateY(20px) } to { opacity:1; translateY(0) } }
   新版适配多页面真跳转: body 入场即播放,无需引库 */
body {
  animation: pageFadeUp 0.3s ease-out;
}
@keyframes pageFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 离场淡出（站内跳转前 body 加 .page-leave，150ms 后执行跳转） */
body.page-leave {
  opacity: 0;
  transition: opacity 0.15s ease-in;
  pointer-events: none;
}

/* ===== 全站统一等待态：小象呼吸 ===== */
.elephant-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 20px;
  text-align: center;
}
.elephant-loading img {
  width: 80px;
  height: 80px;
  display: block;
  animation: elephantBreath 2s ease-in-out infinite;
}
.elephant-loading p {
  margin: 0;
  font-size: 14px;
  color: #8A7D66;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
@keyframes elephantBreath {
  0%, 100% { transform: scale(0.97); }
  50% { transform: scale(1.03); }
}

/* ===== 全站按钮/卡片按压触感 =====
   用法：给按钮/卡片加 .pressable 类
   文字链不加 */
.pressable {
  transition: transform 80ms cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.pressable:active {
  transform: scale(0.96);
}

/* ===== 立绘微动：呼吸/悬浮 =====
   用法：给立绘 img 加 .char-breathe / .char-breathe-2 / .char-breathe-3 / .char-breathe-4 类
   周期错开避免集体蠕动 */
@keyframes charBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}
@keyframes charPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}
.char-breathe { animation: charBreathe 4s ease-in-out infinite; }
.char-breathe-2 { animation: charBreathe 3.6s ease-in-out infinite; }
.char-breathe-3 { animation: charBreathe 3.2s ease-in-out infinite; }
.char-breathe-4 { animation: charBreathe 4.2s ease-in-out infinite; }
.empty-pulse { animation: charPulse 2s ease-in-out infinite; }

/* 图鉴小头像 hover 放大 */
.tj-avatar { transition: transform 0.15s ease-out; }
.tj-avatar:hover { transform: scale(1.05); }
.tj-avatar:active { transform: scale(1.05); }

/* 无障碍：尊重 prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .pressable,
  .char-breathe,
  .char-breathe-2,
  .char-breathe-3,
  .char-breathe-4,
  .empty-pulse,
  .tj-avatar {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== 全站页尾版本号（集中源: window.APP_VERSION，从 assets/version.js 取） =====
   字号小、颜色浅，不抢视线；固定在页底 body padding 下方，不遮挡内容 */
body {
  padding-bottom: 24px;
}
.site-version-footer {
  display: block;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(139, 133, 125, 0.55);
  letter-spacing: 0.1em;
  padding: 6px 0 2px;
  user-select: none;
  pointer-events: none;
}
/* 已有固定底角版本号的页面(旧 index.html)，避免重复显示 */
.site-version-footer.site-version-dup-skip { display: none; }

/* ===== 意见反馈入口（仅 solo-cities.html 与 social/team-cities.html 注入） =====
   44×44 点击热区（iOS 最低可点区域），中心视觉圆 24×24 小尺寸不抢视线；
   位置 right:10px bottom:88px 避开盲盒/存图两大按钮；z-index 低于二者不抢点击。 */
.site-feedback-btn {
  position: fixed;
  right: 10px;
  bottom: 88px;
  width: 44px;
  height: 44px;
  /* 透明 padding 方式：用 flex 居中内嵌小圆；外层是 44×44 无背景热区，不会视觉膨胀 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 10px; /* 44-24=20 → 上下/左右各 10 的透明点击区 */
  margin: 0;
  box-sizing: border-box;
  z-index: 18; /* 低于 #savePosterBtn(z20) 和盲盒按钮 */
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.site-feedback-btn-inner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FDFBF7; /* 浅灰白，与卡面底色接近 */
  color: #8A7D66; /* 与返回链接同色系，低存在感 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  opacity: 0.75; /* 用户批示：0.55→0.75，不能太客气 */
  box-shadow: 0 1px 2px rgba(61,58,54,0.06);
  transition: opacity 0.15s ease, transform 80ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.site-feedback-btn:active .site-feedback-btn-inner {
  opacity: 1;
  transform: scale(0.94);
}
