/* GoldenPaw AI Chat — 悬浮客服聊天组件 */
.gp-ai-chat { position: fixed; right: 24px; bottom: 24px; z-index: 99999; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }

/* 悬浮按钮 */
.gp-ai-chat__launcher { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: none; border-radius: 999px; background: #8A9A5B; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 12px 30px rgba(110,125,73,0.35); transition: transform .2s, box-shadow .2s, background .2s; }
.gp-ai-chat__launcher:hover { transform: translateY(-2px); background: #6E7D49; box-shadow: 0 16px 36px rgba(110,125,73,0.42); }
.gp-ai-chat__launcher-icon { display: inline-flex; }
.gp-ai-chat__lap-close-icon { display: none; }
.gp-ai-chat.is-open .gp-ai-chat__launcher-label, .gp-ai-chat.is-open .gp-ai-chat__launcher-icon { display: none; }
.gp-ai-chat.is-open .gp-ai-chat__launcher { padding: 14px; }

/* 窗口 */
.gp-ai-chat__window { position: absolute; right: 0; bottom: calc(100% + 14px); width: 380px; max-width: calc(100vw - 40px); height: 560px; max-height: calc(100vh - 120px); opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transition: opacity .25s, transform .25s, visibility .25s; }
.gp-ai-chat.is-open .gp-ai-chat__window { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.gp-ai-chat__panel { display: flex; flex-direction: column; height: 100%; background: #F5F1E9; border: 1px solid #E4DDD0; border-radius: 22px; overflow: hidden; box-shadow: 0 28px 70px rgba(44,41,37,0.24); }

/* 头部 */
.gp-ai-chat__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: #fff; border-bottom: 1px solid #E4DDD0; }
.gp-ai-chat__brand { display: flex; align-items: center; gap: 12px; }
.gp-ai-chat__avatar { width: 42px; height: 42px; border-radius: 50%; background: #8A9A5B; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gp-ai-chat__head-meta { display: flex; flex-direction: column; line-height: 1.2; }
.gp-ai-chat__title { font-weight: 700; font-size: 15px; color: #2C2925; }
.gp-ai-chat__status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #8A847A; }
.gp-ai-chat__status i { width: 7px; height: 7px; border-radius: 50%; background: #7A9E6E; }
.gp-ai-chat__close { width: 32px; height: 32px; border: none; border-radius: 50%; background: transparent; color: #6B655C; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.gp-ai-chat__close:hover { background: #EDE8DE; }

/* 消息区 */
.gp-ai-chat__messages { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.gp-ai-chat__msg { display: flex; }
.gp-ai-chat__msg--user { justify-content: flex-end; }
.gp-ai-chat__bubble { max-width: 82%; padding: 11px 15px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; border-radius: 16px; }
.gp-ai-chat__msg--bot .gp-ai-chat__bubble { background: #fff; color: #2C2925; border: 1px solid #E4DDD0; border-bottom-left-radius: 4px; }
.gp-ai-chat__msg--user .gp-ai-chat__bubble { background: #8A9A5B; color: #fff; border-bottom-right-radius: 4px; }
.gp-ai-chat__msg--bot .gp-ai-chat__bubble.is-loading { color: #8A847A; font-style: italic; }

/* 建议快捷问题 */
.gp-ai-chat__suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
.gp-ai-chat__chip { padding: 8px 14px; border: 1px solid #B9C39B; border-radius: 999px; background: rgba(138,154,91,0.10); color: #6E7D49; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.gp-ai-chat__chip:hover { background: #8A9A5B; color: #fff; }

/* 输入 */
.gp-ai-chat__form { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border-top: 1px solid #E4DDD0; }
.gp-ai-chat__input { flex: 1; min-width: 0; border: 1px solid #E4DDD0; border-radius: 999px; padding: 12px 18px; font-size: 14px; color: #2C2925; outline: none; background: #FDFBF7; transition: border-color .2s, box-shadow .2s; }
.gp-ai-chat__input:focus { border-color: #8A9A5B; box-shadow: 0 0 0 3px rgba(138,154,91,0.15); background: #fff; }
.gp-ai-chat__send { width: 44px; height: 44px; flex-shrink: 0; border: none; border-radius: 50%; background: #8A9A5B; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.gp-ai-chat__send:hover { background: #6E7D49; transform: translateY(-1px); }
.gp-ai-chat__send:disabled { opacity: .6; cursor: not-allowed; }

@media (max-width: 480px) {
	.gp-ai-chat { right: 12px; bottom: 12px; }
	.gp-ai-chat__window { width: calc(100vw - 24px); height: calc(100vh - 150px); max-height: none; }
}

/* 推荐产品卡（渲染于气泡内部） */
.gp-ai-chat__bubble--has-cards { max-width: 100%; width: 100%; }
.gp-ai-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.gp-ai-card { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: #fdfbf7; border: 1px solid #EFE9DE; border-radius: 12px; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.gp-ai-card:hover { border-color: #8A9A5B; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(44,41,37,0.08); }
.gp-ai-card__img { width: 100%; height: 72px; border-radius: 9px; overflow: hidden; background: #EDE8DE; display: block; }
.gp-ai-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-ai-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gp-ai-card__name { font-size: 13px; font-weight: 600; color: #2C2925; line-height: 1.3; }
.gp-ai-card__price { font-size: 12px; font-weight: 600; color: #6E7D49; }
