/* 官网悬浮 Agent 机器人 */
.agent-fab {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 90;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.agent-fab__btn {
  width: 72px;
  height: 72px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 40%, #1e3a5f 0%, #0b1220 70%);
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.35),
    0 12px 28px rgba(2, 12, 30, 0.45);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.agent-fab__btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 0 0 4px rgba(250, 204, 21, 0.45),
    0 16px 36px rgba(2, 12, 30, 0.5);
}
.agent-fab__btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agent-fab__pulse {
  display: none; /* 关闭脉冲，避免看起来像页面抖动 */
}
.agent-fab__panel {
  position: absolute;
  right: 0;
  bottom: 86px;
  width: min(320px, calc(100vw - 32px));
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}
.agent-fab__panel[hidden] { display: none !important; }
.agent-fab__panel h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #f8fafc;
}
.agent-fab__panel p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #94a3b8;
}
.agent-fab__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.agent-fab__actions a,
.agent-fab__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.agent-fab__go {
  background: #c47a2c;
  color: #1a1208;
}
.agent-fab__go:hover { filter: brightness(1.06); color: #1a1208; }
.agent-fab__close {
  background: transparent;
  color: #94a3b8;
  border-color: #475569 !important;
}
.agent-fab__close:hover { color: #e2e8f0; }
@media (max-width: 560px) {
  .agent-fab { right: 14px; bottom: 16px; }
  .agent-fab__btn { width: 64px; height: 64px; }
}
