#MICHAT-MINI-WRAP {
  position: fixed;
  z-index: 2147483647;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  background: transparent;
  display: none; /* 初始隐藏 */
  transition: opacity 0.3s ease;
  /* right 和 bottom 移除，改用内联样式 */
}

#MICHAT-IFRAME {
  width: 100% !important;
  height: 100% !important;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  position: relative;
  float: none;
}

#titles{
        text-align: center;
    position: absolute;
    pointer-events: auto;
    z-index: 4147483648;
    top: 15px;
    left: 50px;
    color: #fff;
    display: none;

}

#MICHAT-DRAG-HANDLE,
#MICHAT-DRAG-MASK,
#MICHAT-MAX,
#closes {
  position: absolute; 
  pointer-events: auto;
  z-index: 4147483648;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  user-select: none;
}

#MICHAT-DRAG-HANDLE {
  top: 0;
  left: 0;
  right: 140px;
  height: 60px;
  z-index: 3;
}

#MICHAT-DRAG-MASK {
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

#MICHAT-MAX {
  top: 23px;
  right: 28px;
  width: 19px;
  height: 16px;
  z-index: 4;
}

#closes {
  top: 23px;
  right: 15px;
  width: 25px;
  height: 25px;
  z-index: 4147483648;
  color: #fff;
  text-align: center;
  line-height: 8px;
  font-size: 25px;

  border-radius: 50%;
  font-weight: bold;
  user-select: none;
}

/* PC样式 */
@media (min-width: 768px) {
  #MICHAT-MINI-WRAP {
    width: 360px;
    height: 480px;
    /* right 和 bottom 移除，改用内联样式 */
  }
  #titles{
        text-align: center;
    position: absolute;
    pointer-events: auto;
    z-index: 4147483648;
    top: 20px;
    left: 10px;
    color: #fff;
    display: none;

}
}

/* 移动样式 */
@media (max-width: 767px) {
  #MICHAT-MINI-WRAP {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    /* right 和 bottom 移除，改用内联样式 */
  }
  #titles{
        text-align: center;
    position: absolute;
    pointer-events: auto;
    z-index: 4147483648;
    top: 15px;
    left: 50px;
    color: #fff;
    display: none;

}
}

/* 浮动图标 */
#chat-toggle-btn {
  position: fixed;
  width: 56px;
  height: 56px;
  background-color: #0078ff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 120, 255, 0.3);
  cursor: pointer;
  z-index: 2147483649;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 28px;
  user-select: none;
  transition: background-color 0.3s ease;
  /* right 和 bottom 移除，改用内联样式 */
}

#chat-toggle-btn:hover {
  background-color: #005fcc;
}