/* ---------- Clawd 小桌宠：趴在输入栏上沿右边 ---------- */
.input-bar { position: relative; }
.pet { position: absolute; right: 13px; bottom: 100%; width: 51px; height: 42px; margin-bottom: -1px; z-index: 5;
  cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.pet .pet-walk { width: 100%; height: 100%; }
.pet .pet-svg { display: block; overflow: visible; transform-origin: 50% 100%; }   /* 平时不晃，只有小花在摇 */
@keyframes pet-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
.pet .eyes { transform-box: fill-box; transform-origin: center; animation: pet-blink 4.6s infinite; }
@keyframes pet-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.15); } }
.pet .happy, .pet .sleepy { display: none; }
.pet.joy .eyes { display: none; } .pet.joy .happy { display: inline; }
.pet.nap:not(.joy) .eyes { display: none; } .pet.nap:not(.joy) .sleepy { display: inline; }
/* 小花：陪在 Clawd 左边，轻轻摇 */
.pet-flower { position: absolute; left: -13px; bottom: 0; transform-origin: 50% 100%; pointer-events: none;
  animation: flower-sway 3.2s ease-in-out infinite; }
@keyframes flower-sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
/* 装扮：按时间 / 节日显示，节日优先 */
.pet .acc { display: none; }
.pet.t-morning .acc-morning, .pet.t-day .acc-day, .pet.t-night .acc-night { display: inline; }
.pet.fest .acc-morning, .pet.fest .acc-day, .pet.fest .acc-night { display: none; }
.pet.f-national .acc-flag, .pet.f-halloween .acc-pumpkin, .pet.f-xmas .acc-santa { display: inline; }
/* 小动作：走两步 / 挥钳子 / 打盹 */
.pet.walk .pet-walk { animation: pet-stroll 3s ease-in-out; }
@keyframes pet-stroll { 0%, 100% { transform: translate(0, 0); } 12% { transform: translate(-2px, -2px); } 24% { transform: translate(-4px, 0); }
  36% { transform: translate(-6px, -2px); } 46%, 58% { transform: translate(-8px, 0); } 70% { transform: translate(-5px, -2px); }
  82% { transform: translate(-2px, 0); } 92% { transform: translate(0, -2px); } }
.pet.wave .arm-r { animation: pet-wave .3s ease-in-out 6 alternate; }
@keyframes pet-wave { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
.pet.nap .pet-svg { animation: pet-breathe 2.4s ease-in-out infinite; }
@keyframes pet-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.93); } }
.pet-z { display: none; position: absolute; right: 6px; top: -2px; font-size: 11px; font-weight: 700; color: var(--dim);
  pointer-events: none; animation: pet-z 2.2s ease-in-out infinite; }
.pet.t-night .pet-z, .pet.nap .pet-z { display: block; }
@keyframes pet-z { 0% { opacity: 0; transform: translate(0, 4px) scale(.7); } 30% { opacity: .9; }
  100% { opacity: 0; transform: translate(6px, -8px) scale(1.1); } }
.pet.jump .pet-svg { animation: pet-jump .55s ease-out; }
@keyframes pet-jump { 0% { transform: translateY(0); } 35% { transform: translateY(-11px); }
  65% { transform: translateY(0) scale(1.08, .88); } 100% { transform: translateY(0); } }
.pet-heart { position: absolute; left: 50%; top: -6px; font-size: 14px; color: #ff6b8a; pointer-events: none;
  animation: pet-heart 1s ease-out forwards; }
@keyframes pet-heart { from { opacity: 1; transform: translate(-50%, 0) scale(.6); }
  to { opacity: 0; transform: translate(-50%, -24px) scale(1.15); } }
.pet-say { position: absolute; right: 18px; bottom: 40px; background: var(--ai); color: var(--ai-text); font-size: 12px; line-height: 1.3;
  padding: 4px 8px; border-radius: 8px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.18); pointer-events: none;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.pet-say.show { opacity: 1; transform: translateY(0); }

