/* ============================================================
 * 新网传媒 GEO 智能客服 · 样式
 * 蓝白商业 B2B 调性，与官网 style.css 一致
 * ============================================================ */
#gb-root, #gb-root * { box-sizing: border-box; margin: 0; padding: 0; }
#gb-root { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; }

/* ---------- 悬浮按钮（左下角 · 可爱卡通形象） ---------- */
.gb-fab {
  position: fixed; left: 24px; bottom: 24px; z-index: 999999;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #08265c 0%, #0a3d91 48%, #1557c9 100%);
  color: #fff; border: 1px solid rgba(206, 175, 105, .55); border-radius: 50px; cursor: pointer;
  padding: 9px 22px 9px 9px;
  box-shadow: 0 12px 32px rgba(8, 38, 92, .45), 0 0 0 5px rgba(206, 175, 105, .07), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .22s ease, box-shadow .22s ease;
  font-size: 15px; font-weight: 700; letter-spacing: 1px;
}
.gb-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(8, 38, 92, .52), 0 0 0 6px rgba(206, 175, 105, .12), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.gb-fab .gb-fab-icon {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #f4f8ff 70%, #e6efff 100%);
  border: 1.5px solid rgba(206, 175, 105, .7);
  box-shadow: inset 0 -2px 5px rgba(10, 61, 145, .1), 0 2px 6px rgba(8, 38, 92, .35);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: visible;
}
.gb-fab .gb-fab-icon .gb-mascot {
  width: 34px; height: 34px;
  animation: gb-mascot-idle 3.2s ease-in-out infinite;
}
.gb-fab:hover .gb-fab-icon .gb-mascot { animation: gb-mascot-happy .55s ease; }
/* 卡通形象：待机轻轻点头 + 开心摇摆 */
@keyframes gb-mascot-idle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(-2.5deg); }
}
@keyframes gb-mascot-happy {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-4px) rotate(-6deg); }
  60% { transform: translateY(-1px) rotate(5deg); }
}
/* 金色呼吸光环 */
.gb-fab .gb-fab-pulse {
  position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid rgba(214, 184, 116, .75); animation: gb-pulse 2.6s ease-out infinite;
}
@keyframes gb-pulse {
  0% { transform: scale(1); opacity: .8; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (max-width: 480px) {
  .gb-fab { left: 14px; bottom: 14px; padding: 8px 18px 8px 8px; }
  .gb-fab .gb-fab-label { font-size: 14px; }
  .gb-fab .gb-fab-icon { width: 40px; height: 40px; }
  .gb-fab .gb-fab-icon .gb-mascot { width: 30px; height: 30px; }
}

/* ---------- 聊天窗口（左下角） ---------- */
.gb-window {
  position: fixed; left: 24px; bottom: 92px; z-index: 999999;
  width: 392px; max-width: calc(100vw - 28px);
  height: 600px; max-height: calc(100vh - 120px);
  display: none; flex-direction: column;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 40, 90, .28), 0 0 0 1px rgba(10, 61, 145, .08);
  font-size: 14px; color: #23344d; line-height: 1.65;
}
.gb-window.gb-open { display: flex; animation: gb-slide .25s ease; }
@keyframes gb-slide {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 头部 */
.gb-head {
  background: linear-gradient(135deg, #0a3d91 0%, #0d4fae 100%);
  color: #fff; padding: 14px 16px 12px; flex: none;
  display: flex; align-items: flex-start; gap: 10px;
}
.gb-head .gb-h-logo {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #f4f8ff 70%, #e6efff 100%);
  border: 1.5px solid rgba(206, 175, 105, .65);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; color: #0a3d91;
  box-shadow: 0 2px 6px rgba(8, 38, 92, .3);
}
.gb-head .gb-h-logo .gb-mascot { width: 29px; height: 29px; }
.gb-head .gb-h-text { flex: 1; min-width: 0; }
.gb-head .gb-h-title { font-size: 15.5px; font-weight: 800; letter-spacing: .3px; }
.gb-head .gb-h-sub { font-size: 11.5px; opacity: .82; margin-top: 2px; }
.gb-head .gb-h-online {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; background: rgba(255,255,255,.16); border-radius: 20px;
  padding: 2px 9px; margin-top: 6px;
}
.gb-head .gb-h-online i { width: 6px; height: 6px; border-radius: 50%; background: #37e1be; display: inline-block; }
.gb-head .gb-h-close {
  background: none; border: none; color: #fff; cursor: pointer;
  font-size: 22px; line-height: 1; opacity: .75; padding: 2px 4px; margin-left: 2px;
}
.gb-head .gb-h-close:hover { opacity: 1; }

/* 消息区 */
.gb-body {
  flex: 1; overflow-y: auto; padding: 16px 14px 10px;
  background: #f6f9ff;
}
.gb-body::-webkit-scrollbar { width: 5px; }
.gb-body::-webkit-scrollbar-thumb { background: #c9d8f0; border-radius: 3px; }

.gb-msg { display: flex; margin-bottom: 14px; align-items: flex-end; }
.gb-msg.gb-bot { justify-content: flex-start; }
.gb-msg.gb-user { justify-content: flex-end; }
.gb-msg .gb-avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #f4f8ff 70%, #e6efff 100%);
  border: 1px solid #d7e3f7;
  color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-right: 8px;
}
.gb-msg .gb-avatar .gb-mascot { width: 23px; height: 23px; }
.gb-msg.gb-user .gb-avatar { display: none; }
.gb-bubble {
  max-width: 82%; padding: 10px 13px; border-radius: 14px;
  font-size: 13.5px; word-break: break-word; white-space: pre-wrap;
}
.gb-bot .gb-bubble {
  background: #fff; border: 1px solid #e3ecfa; border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(10, 61, 145, .05);
}
.gb-user .gb-bubble {
  background: #0a3d91; color: #fff; border-bottom-right-radius: 4px;
}
.gb-time { font-size: 10.5px; color: #9aa9bc; margin-top: 4px; padding: 0 4px; }

/* 行业卡片 */
.gb-card {
  background: #fff; border: 1px solid #e3ecfa; border-left: 4px solid #f07c1f;
  border-radius: 12px; padding: 12px 14px; margin-top: 8px;
  box-shadow: 0 2px 10px rgba(10, 61, 145, .06);
}
.gb-card .gb-c-title {
  font-size: 15px; font-weight: 800; color: #0a3d91; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.gb-card .gb-c-title .gb-c-tag {
  font-size: 10.5px; background: #fff5ec; color: #b05a12;
  border: 1px solid #f3d5b5; border-radius: 20px; padding: 1px 8px; font-weight: 600;
}
.gb-card .gb-c-block { margin-bottom: 8px; }
.gb-card .gb-c-block:last-child { margin-bottom: 0; }
.gb-card .gb-c-label {
  font-size: 11.5px; font-weight: 800; color: #0a3d91; margin-bottom: 4px;
  display: flex; align-items: center; gap: 5px;
}
.gb-card .gb-c-label::before { content: ""; width: 5px; height: 5px; background: #f07c1f; border-radius: 50%; }
.gb-card .gb-c-list { list-style: none; }
.gb-card .gb-c-list li {
  font-size: 12.5px; color: #3c4b5d; line-height: 1.6;
  padding-left: 13px; position: relative; margin-bottom: 3px;
}
.gb-card .gb-c-list li::before { content: "·"; position: absolute; left: 2px; color: #f07c1f; font-weight: 900; }
.gb-card .gb-c-seg { display: flex; flex-wrap: wrap; gap: 5px; }
.gb-card .gb-c-seg span {
  font-size: 11.5px; background: #f2f7ff; color: #0a3d91;
  border: 1px solid #dbe6f5; border-radius: 20px; padding: 2px 9px;
}
.gb-card .gb-c-data {
  font-size: 12px; color: #5b6b7d; line-height: 1.6;
  border-left: 2px solid #dbe6f5; padding-left: 9px; margin-bottom: 5px;
}
.gb-card .gb-c-data b { color: #f07c1f; font-weight: 700; }
.gb-card .gb-c-cta { margin-top: 9px; padding-top: 9px; border-top: 1px dashed #dbe6f5; }

/* 快捷按钮 */
.gb-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.gb-chip {
  background: #fff; border: 1px solid #0a3d91; color: #0a3d91;
  border-radius: 20px; padding: 5px 13px; font-size: 12.5px; cursor: pointer;
  transition: all .15s ease; font-family: inherit;
}
.gb-chip:hover { background: #0a3d91; color: #fff; }
.gb-chip.gb-chip-org { border-color: #f07c1f; color: #f07c1f; }
.gb-chip.gb-chip-org:hover { background: #f07c1f; color: #fff; }

/* 按钮 */
.gb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #f07c1f; color: #fff; border: none; border-radius: 8px;
  padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all .15s ease; font-family: inherit;
}
.gb-btn:hover { background: #e06e10; box-shadow: 0 4px 12px rgba(240, 124, 31, .35); }
.gb-btn.gb-btn-blue { background: #0a3d91; }
.gb-btn.gb-btn-blue:hover { background: #0d4fae; box-shadow: 0 4px 12px rgba(10, 61, 145, .3); }
.gb-btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 7px; }

/* 报价表 */
.gb-price { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 12px; }
.gb-price th {
  background: #0a3d91; color: #fff; padding: 6px 8px; text-align: left; font-weight: 700;
}
.gb-price td { padding: 6px 8px; border-bottom: 1px solid #e9f0fa; color: #3c4b5d; vertical-align: top; }
.gb-price tr.gb-hot td { background: #fff8f0; }
.gb-price .gb-p-name { font-weight: 700; color: #0a3d91; }
.gb-price .gb-p-price { color: #f07c1f; font-weight: 800; white-space: nowrap; }

/* 一问一答选项按钮（引导式主交互） */
.gb-opts { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.gb-opt {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: #fff; border: 1px solid #dbe6f5; border-radius: 10px;
  padding: 9px 11px; cursor: pointer; transition: all .15s ease; font-family: inherit;
}
.gb-opt:hover { border-color: #0a3d91; background: #f2f7ff; transform: translateY(-1px); }
.gb-opt-icon { font-size: 19px; flex: none; }
.gb-opt-num {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: #0a3d91; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.gb-opt-text { flex: 1; min-width: 0; }
.gb-opt-text b { font-size: 13px; color: #0a3d91; display: block; line-height: 1.4; }
.gb-opt-text small {
  font-size: 11px; color: #8a97a6; line-height: 1.5; display: block; margin-top: 2px;
}
.gb-opt-sm { padding: 8px 11px; }

/* 板块导航（兼容旧版，保留） */
.gb-board-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; margin-top: 9px; }
.gb-board-item {
  background: #fff; border: 1px solid #dbe6f5; border-radius: 10px;
  padding: 9px 6px; text-align: center; cursor: pointer; transition: all .15s ease;
  font-family: inherit;
}
.gb-board-item:hover { border-color: #0a3d91; background: #f2f7ff; transform: translateY(-1px); }
.gb-board-item .gb-b-icon { font-size: 20px; display: block; }
.gb-board-item .gb-b-name { font-size: 11.5px; color: #0a3d91; font-weight: 700; margin-top: 4px; display: block; }

/* 输入区 */
.gb-input {
  flex: none; display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid #e3ecfa; background: #fff; align-items: flex-end;
}
.gb-input textarea {
  flex: 1; resize: none; border: 1px solid #dbe6f5; border-radius: 10px;
  padding: 9px 12px; font-size: 13.5px; font-family: inherit; color: #23344d;
  outline: none; max-height: 90px; line-height: 1.5; background: #fbfdff;
}
.gb-input textarea:focus { border-color: #0a3d91; background: #fff; }
.gb-input .gb-send {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: #0a3d91; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .15s ease;
}
.gb-input .gb-send:hover { background: #f07c1f; }
.gb-input .gb-send svg { width: 18px; height: 18px; }

/* 底部提示 */
.gb-foot { flex: none; text-align: center; font-size: 10.5px; color: #9aa9bc; padding: 6px; background: #fff; border-top: 1px solid #f0f4fa; }

/* 输入中动画 */
.gb-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.gb-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: #b9c9e0;
  animation: gb-bounce 1.2s infinite ease-in-out;
}
.gb-typing i:nth-child(2) { animation-delay: .15s; }
.gb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes gb-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

@media (max-width: 480px) {
  .gb-window { left: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
}
