/* 耕云 · 悬浮智能顾问（独立模块样式）
   位置在演示控制条（右下 16px）上方，避免重叠 */

.advisor-fab {
  position: fixed; right: 16px; bottom: 76px; z-index: 1600;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 20px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-lg);
  user-select: none; border: none;
}
.advisor-fab:hover { background: var(--brand-hover); }
/* 呼吸光圈：暗示顾问在线可问 */
.advisor-fab::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(22, 119, 255, .35);
  animation: advisor-halo 2.4s ease-out infinite;
}
@keyframes advisor-halo {
  0% { transform: scale(.92); opacity: .8; }
  70%, 100% { transform: scale(1.28); opacity: 0; }
}

.advisor-card {
  position: fixed; right: 16px; bottom: 140px; z-index: 1600;
  width: 360px; height: 480px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
}
.advisor-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--brand); color: #fff;
  font-weight: 600; font-size: var(--fs-sm);
}
.advisor-card__close {
  background: none; border: none; color: #fff;
  font-size: 18px; cursor: pointer; line-height: 1;
}

.advisor-body {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px; background: #f7f9fc;
}
.advisor-tip { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.7; }

/* 推荐问题：按当前页面预置，点击即发送 */
.advisor-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.advisor-chip {
  border: 1px solid #bae0ff;
  background: var(--surface);
  color: var(--brand);
  border-radius: 14px;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-xs);
  cursor: pointer;
}
.advisor-chip:hover { background: var(--brand-soft); }
.advisor-msg {
  max-width: 82%; padding: 8px 12px; border-radius: 10px;
  font-size: var(--fs-sm); line-height: 1.7; word-break: break-word;
}
.advisor-msg--user { align-self: flex-end; background: var(--brand); color: #fff; }
.advisor-msg--assistant {
  align-self: flex-start; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink);
}

.advisor-card__input {
  display: flex; gap: 8px; padding: 10px;
  border-top: 1px solid var(--line); background: var(--surface);
}
.advisor-card__input input { flex: 1; height: 34px; }

.is-mobile .advisor-card { right: 8px; left: 8px; bottom: 140px; width: auto; height: 60vh; }
