﻿/* ================================================
   mascot.css — 右下角鎏金大眼小猫挂件（纯展示）
   景合画星 官网 发布版
   无交互、无音频：仅眼睛缓转 + 偶尔轻跳 + 定时气泡
   类名前缀：mascot-*
   ================================================ */

/* ---------- 挂件容器：固定右下角，避开「回到顶部」按钮 ---------- */
.mascot-widget {
  position: fixed;
  right: 24px;
  bottom: 68px;
  z-index: 1001; /* 高于回到顶部(999)、低于艺人弹窗(10000) */
  pointer-events: none; /* 整个挂件不可点击 */
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  animation: mascotFadeIn 0.6s ease-out;
}
@keyframes mascotFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 猫体：鎏金渐变 + 深咖描边 + 金色光晕 ---------- */
.mascot-body {
  width: 68px;   /* 2026-09-16：整体小一档（原 76px） */
  height: 68px;
  filter: drop-shadow(0 4px 14px rgba(201,169,110,0.45)) drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.mascot-body svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ---------- 偶尔轻微跳动（JS 定时加 .hop，幅度小） ---------- */
.mascot-body.hop {
  animation: mascotHop 0.6s ease-in-out;
}
@keyframes mascotHop {
  0%, 100% { transform: translateY(0); }
  30%      { transform: translateY(-9px); }
  60%      { transform: translateY(0); }
  80%      { transform: translateY(-4px); }
}

/* ---------- 眼睛：瞳孔缓慢左右转动 ---------- */
.mascot-pupil {
  animation: mascotLook 2s ease-in-out infinite alternate;
}
@keyframes mascotLook {
  0%   { transform: translateX(-6px); }
  100% { transform: translateX(6px); }
}

/* ---------- 气泡：自动弹出/消失，不可点击 ---------- */
.mascot-bubble {
  position: absolute;
  right: -8px;
  bottom: calc(100% + 14px);
  max-width: 220px;
  padding: 10px 16px;
  background: rgba(24,14,7,0.94);   /* 深咖底 */
  border: 1px solid rgba(201,169,110,0.5); /* 鎏金描边 */
  border-radius: 12px;
  color: #f0d9a8;                   /* 鎏金文字 */
  font-size: 12px;                  /* 2026-09-16：气泡字小一档（原 13px） */
  line-height: 1.5;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 0 14px rgba(201,169,110,0.18);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.mascot-bubble.show {
  opacity: 1;
  transform: translateY(0);
}
/* 气泡小三角：金色描边 + 深咖填充 */
.mascot-bubble::before {
  content: '';
  position: absolute;
  right: 18px;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: rgba(201,169,110,0.5);
}
.mascot-bubble::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 100%;
  margin-top: -1px;
  border: 5px solid transparent;
  border-top-color: rgba(24,14,7,0.94);
}

/* ---------- 移动端缩小 ---------- */
@media (max-width: 480px) {
  .mascot-widget { right: 14px; bottom: 58px; }
  .mascot-body { width: 52px; height: 52px; }   /* 原 58px，2026-09-16 小一档 */
  .mascot-bubble { max-width: 190px; font-size: 11px; padding: 8px 13px; white-space: normal; }   /* 原 12px */
}

/* ---------- 减少动态效果偏好时关闭装饰动画 ---------- */
@media (prefers-reduced-motion: reduce) {
  .mascot-body.hop,
  .mascot-pupil {
    animation: none;
  }
}
