
/* ===== 好友圈浮窗 fcw- ===== */
.fcw-bubble{position:fixed;right:16px;right:max(16px, calc((100vw - var(--max-width, 1400px)) / 2 - 66px));bottom:74px; /* 上移10px避开一键回顶 */
  display:flex;flex-direction:column;align-items:center;gap:5px;
  cursor:pointer;z-index:99998;border:none;padding:0;background:none}
.fcw-bicon{position:relative;width:54px;height:54px;background:transparent;border:none;border-radius:0;
  box-shadow:none;transition:transform .18s}
.fcw-bubble:hover .fcw-bicon{transform:scale(1.07)}
.fcw-bicon img{width:100%;height:100%;object-fit:contain;display:block}
.fcw-btext{font-size:11px;line-height:1;color:#fff;background:rgba(15,23,42,.62);padding:4px 9px;border-radius:10px;white-space:nowrap}
.fcw-badge{position:absolute;top:-4px;right:-4px;min-width:19px;height:19px;border-radius:99px;background:#ef4444;color:#fff;
  font-size:11px;font-weight:700;display:none;align-items:center;justify-content:center;padding:0 5px;border:2px solid #fff;z-index:2}
.fcw-badge.show{display:flex}
.fcw-panel{position:fixed;right:20px;bottom:162px;width:373px;height:min(560px,calc(100vh - 210px)); /* 桌面默认宽度加宽 1/3：280→373 */
  background:#f5f5f5;border-radius:14px;overflow:hidden;z-index:99999;display:none;flex-direction:column;
  box-shadow:0 12px 48px rgba(15,23,42,.28);border:1px solid #e2e8f0}
.fcw-panel.show{display:flex}
/* #1241-h 招呼到达时自动展开对话框的轻提示动效（0.7s 自消） */
@keyframes fcwPanelPop{0%{box-shadow:0 0 0 0 rgba(42,110,176,.55)}70%{box-shadow:0 0 0 10px rgba(42,110,176,0)}100%{box-shadow:0 0 0 0 rgba(42,110,176,0)}}
.fcw-panel.pop{animation:fcwPanelPop .7s ease-out}
.fcw-head{height:46px;background:#ededed;display:flex;align-items:center;padding:0 12px;gap:8px;flex-shrink:0;border-bottom:1px solid #dcdcdc;
  cursor:move;touch-action:none;user-select:none}
.fcw-head-mid{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;min-width:0}
.fcw-head-title{font-size:14.5px;font-weight:600;color:#1e293b;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
/* #1241-l 头部标签：图标 + 名称（官方固定「嘉品AI 客服中心」）+ 登录名小字 */
.fcw-head-login{font-size:10.5px;color:#94a3b8;font-weight:400;margin-left:5px;white-space:nowrap}
.fcw-title-ic{width:24px;height:24px;object-fit:contain;flex-shrink:0}
.fcw-back{display:none;border:none;background:none;font-size:20px;color:#475569;cursor:pointer;padding:0 4px;line-height:1}
.fcw-back.show{display:block}
.fcw-head-link{font-size:12px;color:#1d4ed8;text-decoration:none;flex-shrink:0}
.fcw-head-link:hover{text-decoration:underline}
/* #1241-i 来源渠道标注条（会员端）：来自百度 / 360 / 搜狗 / 豆包 / 微信… */
.fcw-src{display:none;align-items:center;gap:6px;padding:4px 11px;background:#f8fafc;border-bottom:1px solid #eef2f7;
  font-size:11.5px;color:#64748b;flex-shrink:0;line-height:1.6}
.fcw-src.show{display:flex}
.fcw-src b{color:#0e7490;font-weight:700}
.fcw-src .kw{color:#94a3b8}
.fcw-src .x{margin-left:auto;border:none;background:none;color:#cbd5e1;font-size:14px;cursor:pointer;padding:0 2px;line-height:1}
.fcw-src .x:hover{color:#64748b}
/* 会话列表 */
.fcw-list{flex:1;overflow-y:auto;background:#fff}
.fcw-convo{display:flex;gap:10px;padding:11px 14px;cursor:pointer;align-items:center;border-bottom:1px solid #f1f5f9}
.fcw-convo:hover{background:#f6f9ff}
.fcw-convo.active{background:#eef4ff}
.fcw-av{width:40px;height:40px;border-radius:6px;background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;flex-shrink:0;overflow:hidden}
.fcw-av img{width:100%;height:100%;object-fit:cover}
.fcw-av.off{background:linear-gradient(135deg,#07c160,#34d399)}
.fcw-av.grp{background:linear-gradient(135deg,#475569,#94a3b8)}
.fcw-convo-main{flex:1;min-width:0}
.fcw-convo-name{font-size:14px;color:#1e293b;font-weight:600;display:flex;align-items:center;gap:6px}
.fcw-official-tag{font-size:10px;color:#15803d;font-weight:700}
.fcw-convo-prev{font-size:12px;color:#94a3b8;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fcw-convo-right{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}
.fcw-convo-time{font-size:10.5px;color:#cbd5e1}
.fcw-mini-badge{min-width:17px;height:17px;border-radius:99px;background:#ef4444;color:#fff;font-size:10.5px;font-weight:700;
  display:none;align-items:center;justify-content:center;padding:0 4px}
.fcw-mini-badge.show{display:flex}
/* 聊天视图 */
.fcw-chat{flex:1;display:none;flex-direction:column;min-height:0}
.fcw-chat.show{display:flex}
.fcw-msgs{flex:1;overflow-y:auto;padding:12px 12px 6px;display:flex;flex-direction:column;gap:11px}
.fcw-msg{display:flex;gap:8px;max-width:86%}
.fcw-msg.mine{align-self:flex-end;flex-direction:row-reverse}
.fcw-msg-av{width:32px;height:32px;border-radius:6px;background:#e2e8f0;color:#334155;display:flex;align-items:center;
  justify-content:center;font-size:13px;font-weight:600;flex-shrink:0;overflow:hidden;margin-top:2px}
.fcw-msg-av img{width:100%;height:100%;object-fit:cover}
.fcw-msg.mine .fcw-msg-av{background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff}
.fcw-col{min-width:0;max-width:100%}
.fcw-msg-name{font-size:11px;color:#94a3b8;margin-bottom:3px}
.fcw-msg.mine .fcw-msg-name{text-align:right}
.fcw-msg-bubble{background:#fff;border-radius:4px 12px 12px 12px;padding:8px 11px;font-size:13.5px;color:#1e293b;
  line-height:1.55;word-break:break-word;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.fcw-msg.mine .fcw-msg-bubble{background:#95ec69;border-radius:12px 4px 12px 12px}
.fcw-msg.thanks .fcw-msg-bubble{background:linear-gradient(135deg,#fef9c3,#fde68a)!important;border:1px solid #fcd34d}
.fcw-msg-time{font-size:10px;color:#b6c2d2;margin-top:3px}
.fcw-msg.mine .fcw-msg-time{text-align:right}
.fcw-att-img{max-width:180px;max-height:180px;border-radius:8px;display:block;cursor:zoom-in}
.fcw-att-file{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dbe7ff;border-radius:8px;
  padding:6px 10px;text-decoration:none;color:#1d4ed8;font-size:12px}
.fcw-msg.mine .fcw-att-file{background:#f0fdf4}
.fcw-att-card{display:flex;gap:9px;align-items:center;background:#fff;border:1px solid #e2e8f0;border-left:3px solid #3b82f6;
  border-radius:8px;padding:7px 11px 7px 8px;text-decoration:none;min-width:200px;max-width:300px}
.fcw-att-card:hover{background:#f8fbff}
.fcw-card-thumb{width:46px;height:46px;object-fit:cover;border-radius:6px;flex-shrink:0;background:#f1f5f9}
.fcw-att-card .bd{min-width:0;flex:1}
.fcw-att-card .k{font-size:10px;color:#3b82f6;font-weight:700;letter-spacing:.5px}
.fcw-att-card .t{font-size:12.5px;color:#1e293b;font-weight:600;margin-top:2px;line-height:1.35;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-all}
.fcw-att-card .h{font-size:10px;color:#94a3b8;margin-top:2px}
.fcw-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
/* #1184 药丸清除：chip 纯文字化 */
.fcw-chip{border:none;background:none;color:#1d4ed8;font-size:11.5px;padding:2px 0;cursor:pointer;font-weight:600}
.fcw-rel-link{display:block;font-size:12px;color:#1e293b;text-decoration:none;padding:4px 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fcw-rel-link:active{background:#f4f8ff}
.fcw-rel-link .fcw-rel-type{display:inline-block;background:#eef4ff;color:#1d4ed8;font-size:10px;font-weight:700;padding:1px 6px;border-radius:4px;margin-right:6px;vertical-align:1px}
.fcw-chip:hover{background:#e8f1ff}
.fcw-chip:disabled{opacity:.5;cursor:default}
.fcw-chip-more{border-color:#c7d9f7;background:#fff;color:#3b82f6}
.fcw-empty{margin:auto;text-align:center;color:#94a3b8;font-size:12.5px;line-height:1.9;padding:24px}
/* 输入区 */
.fcw-inputrow{display:flex;gap:7px;padding:9px 10px;background:#f7f8fa;border-top:1px solid #e5e7eb;flex-shrink:0;align-items:center;position:relative}
.fcw-plus-btn{border:none;background:none;font-size:22px;color:#64748b;cursor:pointer;line-height:1;padding:0 2px}
.fcw-plus-btn:hover{color:#1d4ed8}
.fcw-input{flex:1;border:1px solid #d9dee7;border-radius:8px;padding:8px 11px;font-size:13px;outline:none;background:#fff;min-width:0}
.fcw-input:focus{border-color:#3b82f6}
#fcwInput{height:48px} /* 加高后回调 1/3：72→48 */
.fcw-send{border:none;background:#07c160;color:#fff;border-radius:8px;padding:8px 15px;font-size:13px;cursor:pointer;font-weight:600;flex-shrink:0}
.fcw-send:hover{background:#06ad56}
.fcw-thanks{display:none;border:1px solid #fcd34d;background:#fffbeb;color:#b45309;border-radius:8px;padding:7px 10px;font-size:12.5px;cursor:pointer;flex-shrink:0}
.fcw-thanks.show{display:block}
.fcw-plus-panel{display:flex;gap:8px;padding:7px 10px;background:#f7f8fa;border-top:1px solid #e5e7eb}
.fcw-plus-panel.show{display:flex}
.fcw-plus-panel.fcw-plus-min{display:none} /* 点＋号隐藏常显工具栏 */
.fcw-tile{position:relative;display:flex;align-items:center;justify-content:center;padding:4px 11px;border-radius:8px;cursor:pointer;
  color:#475569;background:#fff;border:1px solid #eef1f6}
.fcw-tile:hover{border-color:#3b82f6;color:#1d4ed8}
.fcw-tile-icon{font-size:19px;line-height:1}
.fcw-tile-label{display:none;position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;
  font-size:10.5px;padding:3px 9px;border-radius:6px;white-space:nowrap;z-index:3;pointer-events:none} /* 注释文字 hover 浮现 */
.fcw-tile:hover .fcw-tile-label{display:block}
/* 表情面板（微信式） */
.fcw-emoji-panel{display:none;grid-template-columns:repeat(8,1fr);gap:2px;padding:9px 11px;background:#f7f8fa;border-top:1px solid #e5e7eb;
  max-height:150px;overflow-y:auto}
.fcw-emoji-panel.show{display:grid}
.fcw-emoji{border:none;background:none;font-size:20px;cursor:pointer;padding:4px 0;border-radius:6px;line-height:1}
.fcw-emoji:hover{background:#e8f0ff}
.fcw-emoji-thanks{grid-column:1 / -1;background:#fffbeb;border:1px solid #fcd34d;color:#b45309;font-size:12px;font-weight:700;
  border-radius:8px;padding:6px 0;cursor:pointer;margin-top:3px}
/* 窗口拉伸 */
.fcw-resize{position:absolute;right:1px;bottom:1px;width:20px;height:20px;cursor:nwse-resize;z-index:5;
  display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:13px;line-height:1;user-select:none} /* 箭头符号指向右下角 */
.fcw-resize-reset{position:absolute;right:-6px;top:-13px;bottom:auto;z-index:5;width:26px;height:26px;border:none;border-radius:50%;
  background:#e2e8f0;color:#475569;font-size:14px;cursor:pointer;display:none;line-height:1} /* ⟲ 悬浮在发送按钮右上角外（加大一号 22→26） */
.fcw-panel.sized .fcw-resize-reset{display:block} /* 自定义过尺寸才显示 ⟲ */
/* 输入框下方注释文字 */
.fcw-note{font-size:12px;color:#475569;padding:5px 12px 8px;background:#f7f8fa;text-align:center}
.fcw-cardrow{display:none;gap:7px;padding:9px 10px;background:#f7f8fa;border-top:1px solid #e5e7eb}
.fcw-cardrow.show{display:flex}
.fcw-toast{position:fixed;left:50%;bottom:40px;transform:translateX(-50%);background:#0f172a;color:#fff;font-size:13px;
  padding:8px 18px;border-radius:8px;opacity:0;transition:.25s;pointer-events:none;z-index:100000}
.fcw-toast.show{opacity:.92}
/* #1241-k 手机端一键全屏：全屏 ↔ 缩回（桌面端隐藏，保留拖拽/拉伸） */
.fcw-head{position:relative}
.fcw-fsbtn{display:none;position:absolute;right:10px;top:8px;border:1px solid #d5dbe3;background:#fff;color:#475569;
  font-size:11px;font-weight:700;border-radius:6px;padding:4px 9px;cursor:pointer;flex-shrink:0;line-height:1.2;z-index:3}
.fcw-fsbtn:active{background:#eef2f7}
@media (max-width:640px){
  .fcw-fsbtn{display:block}
  .fcw-head-link{margin-right:44px} /* 给右侧全屏按钮让位 */
  .fcw-panel.fcw-fs{left:0!important;right:0!important;top:0!important;bottom:0!important;width:auto!important;height:auto!important;border-radius:0!important;border:none!important}
}
@media (max-width:768px){
  .fcw-bubble{right:14px;bottom:138px} /* #fabup2 2026-10-10：#fabup 已把回顶钮上移到 bottom:86px(≤768)/74px(≤480)（顶边 130/118px），气泡 70px 反而整个压在回顶上（用户报重叠）；抬到 138px 恒在其上方 */
  .fcw-bicon{width:48px;height:48px}
  .fcw-panel{right:8px;left:auto;width:80vw;bottom:218px;height:min(70vh,520px)} /* #fabup2 随气泡上移：气泡顶=138+72≈210px，面板 218px 起不压气泡 */
}
