/* AI 选房顾问 · PC 右下角卡片 + 右侧面板 */
.ai-launcher-card {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #2b6cff 0%, #4f8bff 100%);
  border-radius: 40px;
  box-shadow: 0 8px 26px rgba(43, 108, 255, .36);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  transition: opacity .3s, transform .3s cubic-bezier(.22,.61,.36,1);
}
.ai-launcher-card.show { opacity: 1; transform: translateY(0) scale(1); }
.ai-launcher-card.hide { display: none; }
.ai-launcher-card:hover { box-shadow: 0 10px 30px rgba(43, 108, 255, .48); }

.ai-launcher-ava {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}
.ai-launcher-ava svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ai-launcher-ctxt { line-height: 1.25; }
.ai-launcher-ctxt b { display: block; font-size: 14px; font-weight: 600; }
.ai-launcher-ctxt span { display: block; font-size: 11px; opacity: .88; }

.ai-launcher-cx {
  font-style: normal; font-size: 18px; line-height: 1;
  color: rgba(255,255,255,.7); margin-left: 4px; cursor: pointer;
}
.ai-launcher-cx:hover { color: #fff; }

/* 右侧面板 */
.ai-launcher-panel {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(30px);
  width: 420px;
  height: min(680px, calc(100vh - 48px));
  z-index: 9500;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 50px rgba(0,0,0,.24);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity .3s, transform .3s cubic-bezier(.22,.61,.36,1);
}
.ai-launcher-panel.show { opacity: 1; transform: translateY(-50%) translateX(0); }

.ai-launcher-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #2b6cff 0%, #4f8bff 100%);
  color: #fff;
}
.ai-launcher-head b { font-size: 15px; font-weight: 600; }
.ai-launcher-head em { font-style: normal; font-size: 11px; opacity: .88; margin-left: 2px; }
.ai-launcher-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.3);
}
.ai-launcher-x {
  margin-left: auto; font-style: normal; font-size: 22px; line-height: 1;
  color: rgba(255,255,255,.8); cursor: pointer;
}
.ai-launcher-x:hover { color: #fff; }

.ai-launcher-frame { flex: 1 1 auto; width: 100%; border: 0; }

@media (max-width: 480px) {
  .ai-launcher-panel { right: 0; left: 0; width: auto; top: 0; height: 100vh; transform: none; border-radius: 0; }
  .ai-launcher-panel.show { transform: none; }
}
