/* ============================================================
   养猫彩蛋样式（独立文件，随 catpet.js 一起使用）
   ============================================================ */

/* 底部猫栏（固定在最下方，像任务栏上方） */
#catpet-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 9990;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 4px 16px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.9) 40%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}
#catpet-dock .catpet-item {
  position: relative;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  padding: 2px 6px;
  animation: catpet-walk-in .5s ease;
}
#catpet-dock .catpet-emoji { font-size: 34px; display: block; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.15)); transition: transform .2s ease; }
#catpet-dock .catpet-item:hover .catpet-emoji { transform: translateY(-3px) scale(1.08); }
#catpet-dock .catpet-bubble {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--muted, #64748b);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  box-shadow: 0 3px 10px rgba(15,23,42,.08);
}
#catpet-dock .catpet-item:hover .catpet-bubble { opacity: 1; }
@keyframes catpet-walk-in { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* 右键菜单 */
#catpet-menu {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,.14);
  padding: 6px;
  min-width: 170px;
}
#catpet-menu .catpet-menu-title { font-size: 12px; font-weight: 700; color: var(--ink, #0f172a); padding: 6px 10px 4px; }
#catpet-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}
#catpet-menu button:hover { background: #f1f5f9; }

/* 彩蛋弹窗 */
.catpet-egg-mask {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15,23,42,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: catpet-fade .25s ease;
}
@keyframes catpet-fade { from { opacity: 0; } to { opacity: 1; } }
.catpet-egg {
  background: #fff;
  border-radius: 18px;
  padding: 28px 36px;
  text-align: center;
  max-width: 320px;
  box-shadow: 0 20px 60px rgba(15,23,42,.25);
  animation: catpet-pop .35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes catpet-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.catpet-egg-title { font-size: 16px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.catpet-egg-emoji { font-size: 64px; line-height: 1.2; }
.catpet-egg-name { font-size: 20px; font-weight: 800; color: #0f172a; margin-top: 8px; }
.catpet-egg-rarity { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; background: #fef3c7; color: #92400e; border-radius: 999px; padding: 3px 12px; }
.catpet-egg-hint { font-size: 12px; color: #64748b; margin: 12px 0; line-height: 1.7; }
.catpet-egg-close { border: none; background: linear-gradient(135deg,#2563eb,#06b6d4); color: #fff; border-radius: 10px; padding: 9px 26px; font-size: 14px; font-weight: 700; cursor: pointer; }

/* 我的猫面板 */
#catpet-panel .catpet-panel-mask { position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 9996; }
#catpet-panel .catpet-panel-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9997;
  width: min(720px, 92vw);
  max-height: 84vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 24px 70px rgba(15,23,42,.3);
}
.catpet-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.catpet-panel-head h3 { margin: 0; font-size: 17px; }
.catpet-close { border: none; background: #eef1f6; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 13px; color: #475569; }
.catpet-growth { background: #f8fafc; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.catpet-growth-label { font-size: 13px; font-weight: 700; color: #0f172a; }
.catpet-progress { height: 8px; background: #e2e8f0; border-radius: 999px; margin: 8px 0; overflow: hidden; }
.catpet-progress div { height: 100%; background: linear-gradient(90deg,#2563eb,#06b6d4); border-radius: 999px; transition: width .4s ease; }
.catpet-growth-hint { font-size: 11.5px; color: #64748b; line-height: 1.7; }
.catpet-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.catpet-card { display: flex; align-items: center; gap: 12px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; }
.catpet-card-emoji { font-size: 34px; line-height: 1; }
.catpet-card-info { flex: 1; min-width: 0; }
.catpet-card-name { font-weight: 700; color: #0f172a; font-size: 14px; }
.catpet-rarity { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.catpet-rarity.r-S { background: #fef3c7; color: #92400e; }
.catpet-rarity.r-A { background: #ede9fe; color: #6d28d9; }
.catpet-rarity.r-B { background: #e0f2fe; color: #0369a1; }
.catpet-rarity.r-C { background: #f1f5f9; color: #475569; }
.catpet-card-meta { font-size: 12px; color: #64748b; margin-top: 2px; }
.catpet-card-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.catpet-card-actions button { border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; color: #334155; }
.catpet-card-actions button:hover { border-color: #2563eb; color: #2563eb; }
.catpet-tip { font-size: 11.5px; color: #94a3b8; }
.catpet-empty { text-align: center; color: #64748b; font-size: 13px; padding: 22px 0; }
.catpet-gift-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.catpet-gift-row { display: flex; gap: 8px; }
.catpet-gift-row input { flex: 1; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.catpet-gift-row button { border: none; background: linear-gradient(135deg,#f59e0b,#f97316); color: #fff; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.catpet-msg { margin-top: 8px; font-size: 12.5px; color: #0f172a; min-height: 16px; }
.catpet-settings { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #334155; }
.catpet-settings button { border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; }
