:root{
  --chat-size: 420px;
  --chat-offset: 60px;
  --chat-radius: 16px;
}

/* 气泡按钮 */
#chat-toggle-button{
  position: fixed;
  right: var(--chat-offset);
  bottom: var(--chat-offset);
  width: 78px;
  height: 78px;
  line-height: 78px;
  text-align: center;
  font-size: 34px;
  background: #000000;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  cursor: pointer;
  z-index: 2147483000;
  user-select: none;
}


/* 弹窗容器 */
#chat-frame-wrapper{
  position: fixed;
  right: var(--chat-offset);
  bottom: calc(var(--chat-offset) + 64px);
  width: min(var(--chat-size), 92vw);
  max-height: 80vh;
  background: #fff;
  border-radius: var(--chat-radius);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  overflow: hidden;
  z-index: 2147483000;
}

/* 关闭按钮 */
#chat-close-button{
  position: absolute;
  right: 10px;
  top: 10px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  cursor: pointer;
  z-index: 2;
}

/* 显隐控制 */
.chat-hidden{ display: none; }
.chat-visible{ display: block; }

/* iframe 基本样式（JS 会设置高度）*/
#chat-frame{
  width: 100%;
  border: 0;
  display: block;
}
