/* ============================================================
   加载 / 空态 / 等待 基础层
   ------------------------------------------------------------
   2026-11-03 改版：除站点头像（.qj-mascot）外，**不再使用任何魔女图片或精灵动画**。
   原来的 pose-idle / pose-twirl / sprite.png 全部下线，改由 CSS 绘制：
     · .qj-witch-loader  三点脉冲（文件/按钮内联加载）
     · .qj-loading::after 极淡的旋转弧（页面级加载）
     · 空态不再放插画，只留文字（需要图形时由调用方自己给）
   类名保持原样，避免动所有调用点。
   ============================================================ */

/* 空位标记：调用方仍可放一个"图标"位置，但这里是中性 SVG，不是魔女 */
.qj-witch-pose{
  display:inline-block;vertical-align:middle;flex:none;
  width:var(--qj-pose-size,44px);height:var(--qj-pose-size,44px);
  color:currentColor;opacity:.75;pointer-events:none;user-select:none;
}

.qj-witch-wait{display:inline-flex;align-items:center;gap:9px;color:var(--muted);font-size:13px;line-height:1.6}

/* ---- 三点脉冲加载器 ---- */
.qj-witch-loader{
  display:inline-flex;align-items:center;justify-content:center;gap:calc(var(--qj-witch-size,40px) * .14);
  flex:none;vertical-align:middle;line-height:0;
  width:calc(var(--qj-witch-size,40px) + 16px);height:calc(var(--qj-witch-size,40px) + 16px);
  border-radius:50%;
  background:color-mix(in srgb, var(--surface) 88%, var(--accent) 12%);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.qj-witch-loader.is-flat{
  width:var(--qj-witch-size,40px);height:var(--qj-witch-size,40px);
  background:none;box-shadow:none;border-radius:0;
}

.qj-witch-loader > i{
  display:block;
  width:calc(var(--qj-witch-size,40px) * .18);
  height:calc(var(--qj-witch-size,40px) * .18);
  min-width:3px;min-height:3px;
  border-radius:50%;
  background:var(--accent);
  opacity:.28;
  animation:qjPulseDot 1.05s var(--ease-out, ease-out) infinite;
}
.qj-witch-loader > i:nth-child(2){animation-delay:.14s}
.qj-witch-loader > i:nth-child(3){animation-delay:.28s}

@keyframes qjPulseDot{
  0%,80%,100%{opacity:.24;transform:translateY(0) scale(.82)}
  38%{opacity:1;transform:translateY(-14%) scale(1)}
}

/* 旧的精灵帧：保留类名但不再有图片 */
.qj-witch-dance{display:none}

/* 页面级加载：右下角一圈很淡的旋转弧，代替原来的回身剪影 */
.qj-loading{position:relative}
.qj-loading-label .qj-witch-loader{width:48px;height:48px}
.qj-loading::after{
  content:"";position:absolute;right:16px;top:0;width:96px;height:96px;
  border-radius:50%;
  border:2px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-top-color:color-mix(in srgb, var(--accent) 55%, transparent);
  pointer-events:none;
  animation:qjArcSpin 2.4s linear infinite;
}
@keyframes qjArcSpin{to{transform:rotate(360deg)}}

/* 通用空态：不放插画，只保留文字排版 */
#app .empty::before{content:none;display:none}

@media (prefers-reduced-motion: reduce){
  .qj-witch-loader > i{animation:none;opacity:.6}
  .qj-loading::after{animation:none;opacity:.5}
}
