  /* ===== 咨询图标容器（固定右侧居中） ===== */
  .qa-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    cursor: pointer;
    user-select: none;
  }

  /* 呼吸光晕 */
  .qa-widget .halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    animation: halo-pulse 2.8s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes halo-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50%      { transform: translate(-50%, -50%) scale(1.5); opacity: 0.2; }
  }

  /* 图标主体 + 悬浮微动 */
  .qa-widget .icon-wrapper {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(43, 108, 176, 0.35),
                0 0 0 3px var(--white);
    margin-right: 16px;
    animation: float 3.5s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .qa-widget:hover .icon-wrapper {
    transform: scale(1.08);
    box-shadow: 0 10px 36px rgba(43, 108, 176, 0.5),
                0 0 0 3px var(--white);
  }

  .qa-widget .icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
  }

  /* 微光闪烁粒子 */
  .qa-widget .sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 8px 2px var(--accent);
    pointer-events: none;
    opacity: 0;
  }
  .qa-widget .sparkle:nth-child(3) {
    top: -6px; right: 10px;
    animation: sparkle-twinkle 2s ease-in-out 0.3s infinite;
  }
  .qa-widget .sparkle:nth-child(4) {
    top: 20px; right: -8px;
    width: 6px; height: 6px;
    animation: sparkle-twinkle 2s ease-in-out 0.9s infinite;
  }
  .qa-widget .sparkle:nth-child(5) {
    bottom: 12px; left: -6px;
    width: 5px; height: 5px;
    animation: sparkle-twinkle 2s ease-in-out 1.5s infinite;
  }
  .qa-widget .sparkle:nth-child(6) {
    top: -2px; left: 14px;
    width: 4px; height: 4px;
    animation: sparkle-twinkle 2s ease-in-out 0.6s infinite;
  }

  @keyframes sparkle-twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50%      { opacity: 1; transform: scale(1.2); }
  }

  /* 对话气泡提示 */
  .qa-widget .bubble {
    position: absolute;
    right: 104px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: var(--white);
    color: var(--text);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(43, 108, 176, 0.18);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }
  .qa-widget .bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid var(--white);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
  }
  .qa-widget:hover .bubble {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  /* 在线状态小圆点 */
  .qa-widget .status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #48BB78;
    border: 2.5px solid var(--white);
    border-radius: 50%;
    z-index: 2;
    animation: status-blink 2s ease-in-out infinite;
  }
  @keyframes status-blink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.5); }
    50%      { box-shadow: 0 0 0 5px rgba(72, 187, 120, 0); }
  }

  /* 响应式：移动端缩小 */
  @media (max-width: 640px) {
    .qa-widget .icon-wrapper { width: 64px; height: 64px; margin-right: 8px; }
    .qa-widget .halo { width: 90px; height: 90px; }
    .qa-widget .bubble { display: none; }
    .demo-card { margin: 0 16px; padding: 28px 24px; }
    .demo-header h1 { font-size: 22px; }
  }

  /* 使用说明 */
  .usage-note {
    margin-top: 32px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px 28px;
    max-width: 520px;
    font-size: 13px;
    line-height: 1.9;
    color: #2D3748;
    z-index: 1;
  }
  .usage-note strong { color: var(--primary); }
  .usage-note code {
    background: #EBF4FF;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
  }
  @media (prefers-reduced-motion: reduce) {
    .qa-widget .halo,
    .qa-widget .icon-wrapper,
    .qa-widget .sparkle,
    .qa-widget .status-dot {
      animation: none !important;
    }
  }
  @media print {
    .qa-widget { display: none; }
  }