/* 网站在线客服 · 对话框样式（前缀 kfc-，不影响站点其它样式）
 * 注意：站点 components.css 里有 `.float-contact a, .float-contact button`
 * 会覆盖按钮外观，所以这里用 `.float-contact .kfc-btn` 提高优先级。
 */
.float-contact .kfc-btn,
.kfc-btn{
  display:flex;align-items:center;justify-content:center;
  width:46px;height:46px;border:0;border-radius:50%;cursor:pointer;
  background:#0b6bd8;color:#fff;box-shadow:0 6px 16px -6px rgba(11,107,216,.6);
}
.float-contact .kfc-btn svg,
.kfc-btn svg{width:24px;height:24px}
.kfc-btn:hover{filter:brightness(1.06)}

.kfc-panel{
  position:fixed;right:18px;bottom:134px;z-index:99999;
  width:330px;max-width:calc(100vw - 24px);
  background:#fff;border:1px solid #e3e8ef;border-radius:14px;
  box-shadow:0 18px 48px -12px rgba(10,28,51,.28);
  display:none;flex-direction:column;overflow:hidden;
  font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
  color:#0a1c33;
}
.kfc-panel.is-open{display:flex}
.kfc-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 14px;background:#0b2140;color:#fff;
}
.kfc-head b{font-size:15px;font-weight:600}
.kfc-head small{display:block;font-size:11.5px;opacity:.72;font-weight:400;margin-top:2px}
.kfc-close{background:transparent;border:0;color:#fff;font-size:20px;line-height:1;cursor:pointer;padding:0 2px;opacity:.8}
.kfc-close:hover{opacity:1}

.kfc-body{padding:12px 14px;overflow:auto;max-height:46vh;min-height:180px;background:#f7f9fc}
.kfc-row{display:flex;margin:7px 0}
.kfc-row .b{max-width:80%;padding:8px 11px;border-radius:12px;white-space:pre-wrap;word-break:break-word;font-size:14px}
.kfc-row.in .b{background:#fff;border:1px solid #e3e8ef;border-top-left-radius:4px}
.kfc-row.out{justify-content:flex-end}
.kfc-row.out .b{background:#0b6bd8;color:#fff;border-top-right-radius:4px}
.kfc-row .t{font-size:11px;color:#8a97a8;align-self:flex-end;margin:0 6px}
.kfc-sys{color:#8a97a8;font-size:12.5px;text-align:center;margin:10px 0}

.kfc-foot{border-top:1px solid #e3e8ef;padding:10px;background:#fff}
.kfc-in{display:flex;gap:8px;align-items:flex-end}
.kfc-in textarea{
  flex:1;min-height:40px;max-height:110px;padding:9px 10px;resize:none;
  border:1px solid #e3e8ef;border-radius:10px;font:14px/1.5 inherit;outline:none;
}
.kfc-in textarea:focus{border-color:#0b6bd8}
.kfc-send{
  padding:10px 16px;border:0;border-radius:10px;background:#f97316;color:#fff;
  font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap;
}
.kfc-send:disabled{opacity:.5;cursor:default}
.kfc-tip{font-size:11.5px;color:#8a97a8;margin:7px 2px 0;line-height:1.45}
.kfc-tip a{color:#0b6bd8}

@media (max-width:560px){
  .kfc-panel{right:10px;left:10px;width:auto;bottom:122px;max-height:calc(100vh - 150px)}
  .kfc-body{max-height:44vh}
}


/* 文字型咨询按钮（替代原来的蓝色圆气泡，2026-11-19） */
.float-contact .kfc-btn--text,
.kfc-btn--text{
  width:auto;height:38px;padding:0 16px;border-radius:999px;
  background:#ff7a00;color:#fff;border:1px solid #ff7a00;
  font-size:14px;font-weight:600;letter-spacing:.02em;
  box-shadow:0 8px 20px -10px rgba(10,28,51,.45);
}
.float-contact .kfc-btn--text:hover,
.kfc-btn--text:hover{background:#f26a00;border-color:#f26a00;color:#fff}

/* ===== 悬浮件定位（2026-11-20 补：原来这些写在 C 站 components.css 里，
   副站换模板后没有，导致挂件掉进页面流、出现在底部 ===== */
.float-contact{
  position:fixed;right:18px;bottom:18px;z-index:100000;
  display:grid;gap:8px;justify-items:center;
}
.float-contact a,.float-contact button{
  width:46px;height:46px;display:grid;place-items:center;
  border-radius:50%;border:1px solid rgba(0,0,0,.08);background:#fff;
  box-shadow:0 6px 16px -8px rgba(10,28,51,.35);color:#0b2140;cursor:pointer;
  padding:0;line-height:1;
}
.float-contact svg{width:22px;height:22px;display:block}
.float-contact__tip{
  position:absolute;right:56px;top:50%;transform:translateY(-50%);
  background:#0b2140;color:#fff;font-size:12px;padding:7px 10px;border-radius:6px;
  white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s;
}
.float-contact a:hover .float-contact__tip,
.float-contact button:hover .float-contact__tip{opacity:1}
.fc-wechat{position:relative}
.fc-wechat__btn{background:#07c160 !important;border-color:#07c160 !important;color:#fff !important}
.fc-wechat__btn:hover{background:#06ad56 !important}
.fc-wechat__btn svg{width:24px;height:24px}
.fc-wechat__qr{
  position:absolute;right:58px;bottom:0;width:160px;padding:10px;
  background:#fff;border:1px solid #e3e8ef;border-radius:12px;
  box-shadow:0 12px 32px -12px rgba(10,28,51,.3);text-align:center;
  display:none;opacity:0;transform:translateX(6px);transition:.2s;z-index:100001;
}
.fc-wechat__qr.is-open{display:block;opacity:1;transform:translateX(0)}
.fc-wechat__qr img{display:block;margin:0 auto 6px;border-radius:4px;max-width:140px;height:auto}
.fc-wechat__qr span{font-size:12px;color:#7d8f9e}
@media(max-width:760px){ .float-contact{right:12px;bottom:12px} }


/* ==== TEXTBTN_2026 文字按钮（在线咨询/收起咨询）==== */
.float-contact button.kfc-btn--text{
  width:auto !important;min-width:46px;height:46px;
  border-radius:23px !important;padding:0 16px !important;
  display:inline-flex !important;align-items:center;justify-content:center;
  background:#0b6bd8 !important;color:#fff !important;border:1px solid #0b6bd8 !important;
  font-size:13px !important;font-weight:600;letter-spacing:.02em;white-space:nowrap;
  box-shadow:0 6px 16px -8px rgba(11,107,216,.6) !important;
}
.float-contact button.kfc-btn--text:hover{background:#0a5fbe !important;border-color:#0a5fbe !important}

