/* 朗慧顾问 — 小米式悬浮咨询，沿用珊瑚/墨蓝/浅底，无第三套主题色 */
.lh-consult-root { font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; }
.lh-consult-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 99980;
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: #c74435; color: #fff; cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.lh-consult-fab:hover { background: #ab3329; }
.lh-consult-fab[aria-expanded="true"] { background: #091d35; }
.lh-consult-panel {
  position: fixed; right: 16px; bottom: 84px; z-index: 99981;
  width: min(380px, calc(100vw - 24px)); max-height: min(72vh, 640px);
  display: none; flex-direction: column;
  background: #fff; color: #091d35; border: 1px solid #dbe6ef; border-radius: 12px;
  overflow: hidden;
}
.lh-consult-panel.is-open { display: flex; }
.lh-consult-head {
  padding: 14px 16px 10px; background: #091d35; color: #fff;
}
.lh-consult-head strong { display: block; font-size: 15px; }
.lh-consult-head span { display: block; margin-top: 4px; font-size: 12px; color: #d6e3ef; line-height: 1.45; }
.lh-consult-msgs {
  flex: 1; overflow: auto; padding: 12px; background: #f5f8fb;
  font-size: 13px; line-height: 1.55;
}
.lh-consult-bubble { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; max-width: 92%; }
.lh-consult-bubble.bot { background: #fff; border: 1px solid #dbe6ef; }
.lh-consult-bubble.user { background: #091d35; color: #fff; margin-left: auto; }
.lh-consult-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; background: #f5f8fb; }
.lh-consult-chips button {
  border: 1px solid #dbe6ef; background: #fff; color: #091d35;
  border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer;
}
.lh-consult-form, .lh-consult-compose {
  padding: 10px 12px 12px; border-top: 1px solid #dbe6ef; background: #fff;
}
.lh-consult-form label { display: block; font-size: 11px; color: #53677d; margin: 6px 0 2px; }
.lh-consult-form input, .lh-consult-compose textarea, .lh-consult-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #dbe6ef; border-radius: 8px;
  padding: 8px 10px; font: inherit; color: #091d35; background: #fff;
}
.lh-consult-compose { display: flex; gap: 8px; align-items: flex-end; }
.lh-consult-compose textarea { min-height: 44px; resize: none; }
.lh-consult-send, .lh-consult-submit {
  border: 0; border-radius: 8px; background: #c74435; color: #fff;
  font-weight: 700; padding: 10px 12px; cursor: pointer; white-space: nowrap;
}
.lh-consult-note { font-size: 11px; color: #53677d; margin: 6px 0 0; }
.lh-consult-ok { color: #0f766e; font-size: 13px; }
.lh-consult-err { color: #c74435; font-size: 12px; }
.lh-news-pin {
  background: #f5f8fb; border-bottom: 1px solid #dbe6ef; padding: 14px 0;
}
.lh-news-pin .lhg-shell { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.lh-news-pin a { color: #091d35; font-weight: 700; }
.lh-consult-honey { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.lh-consult-form.lh-consult-capture {
  outline: 2px solid #c74435;
  outline-offset: 2px;
}
.lh-consult-form.lh-consult-capture .lh-consult-note {
  color: #c74435;
  font-weight: 700;
}
a#lh-consult-goto:hover { text-decoration: underline; }
/* 顾问上线后隐藏旧浮窗，避免双气泡 */
body.lh-consult-on .lh-chat-toggle,
body.lh-consult-on .lh-chat-window,
body.lh-consult-on #lh-ai-guide,
body.lh-consult-on .lh-ai-guide { display: none !important; }
@media (max-width: 640px) {
  .lh-consult-panel { right: 8px; left: 8px; width: auto; bottom: 76px; }
}
