/* ══ 时间条内的星座宠物（主上 2026-11-10）══
   「宠物偏离了，我想他是要放在自选日期旁边。」
   err-ok: truth_brief.py 所在 AI视频工厂 目录本机已不存在，无法执行真源重建；
           已改用 read 源码 + 部署后 _sync_ver 的 ALL_ALIGNED 作为核实证据。

   ⇒ 从原来的绝对定位改为**行内元素**，紧跟「自选日期」按钮，
     与按钮同排、垂直居中，不再飘到输入框另一侧。
*/

/* 时间条允许宠物作为行内元素排列 */
.wb-tr-inline .wb-tr-chips{
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.wb-tr-pet{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 主上（2026-11-10）：「宠物你不要找一个框，把它框住，而且体积可以更大一点。」
     ⇒ ① 去掉圆形边框/底/轮廓线（原来是 border-radius:50% + 背景感，形成"框住"的错觉）
        ② 尺寸放大到 68px（原 54px） */
  /* 主上（2026-11-11）：「宠物现在那个形象放大2倍」
     原 68px / 图 64px ⇒ 136px / 图 128px */
  width: 136px;
  height: 136px;
  flex: 0 0 136px;
  margin-left: 6px;
  pointer-events: auto;
  cursor: pointer;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin-top: -26px;
  margin-bottom: -26px;
  transition: transform .16s ease, filter .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.wb-tr-pet:hover{
  /* 悬停只做轻微放大，不出现任何边框或底色 */
  transform: scale(1.06);
  filter: brightness(1.08);
}
.wb-tr-pet:active{ transform: scale(.97); }
.wb-tr-pet:focus-visible{
  outline: 2px solid rgba(255,215,110,.7) !important;
  outline-offset: 3px !important;
  border-radius: 12px !important;
}

.wb-tr-pet-glow{
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 92px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(186,150,255,.6) 0%,
    rgba(140,100,230,.26) 48%,
    rgba(120,80,210,0) 100%);
  filter: blur(6px);
  animation: wbTrPetGlow 3.4s ease-in-out infinite;
}
@keyframes wbTrPetGlow{
  0%, 100% { opacity: .6; transform: translateX(-50%) scale(1); }
  50%      { opacity: .95; transform: translateX(-50%) scale(1.09); }
}

.wb-tr-pet-img{
  position: relative;
  width: 128px;
  height: 128px;
  object-fit: contain;
  /* 主上要"体积更大" + "不要框住" ⇒ 图放大、无边框无底色 */
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  /* 2026-11-18 实测：img 上的 filter:drop-shadow 会让这张 webp 在合成层里渲染成空白
     （整屏截图该区域绿像素 0；把 filter+animation 去掉后 26928）。
     数据侧一切正常（naturalWidth 512 / decode ok / canvas 采样有像素 / elementFromPoint 命中），
     纯渲染层问题。故 img 上不再挂 filter / 动画 / will-change，阴影交给父层 box-shadow。 */
  filter: none;
  will-change: auto;
}
@keyframes wbTrPetFloat{
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(-3deg); }
}
.wb-asksheet:hover .wb-tr-pet-img{
  animation-duration: 2.2s;
}

/* 手机端缩小（桌面 136px 的等比档：102 / 76） */
@media (max-width: 900px){
  .wb-tr-pet,
  .wb-tr-pet-img{ width: 102px; height: 102px; }
  .wb-tr-pet{ flex: 0 0 102px; margin-top: -18px; margin-bottom: -18px; }
  .wb-tr-pet-glow{ width: 70px; height: 20px; }
}
@media (max-width: 480px){
  .wb-tr-pet,
  .wb-tr-pet-img{ width: 76px; height: 76px; }
  .wb-tr-pet{ flex: 0 0 76px; margin-top: -12px; margin-bottom: -12px; }
  .wb-tr-pet-glow{ width: 52px; height: 16px; }
}
