body, html {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.bg-light {
  position: fixed;
  top: 0;
  left:0;
  right:0;
  bottom:0;
}

.container {
  width: 100%;
  max-width: none;
}

.card {
  position: fixed;
  top:0;
  left:0;
  bottom:0;
  right:0;
  border:0;
  display: flex;
  flex-direction: column;
}

.chat-area {
  flex-grow: 1;
  overflow-y: auto;
}

.bottom-bar {
  padding: 15px;
  margin-bottom: 10px;
  padding-bottom: env(safe-area-inset-bottom);
}
.header-bar {
  height: 50px;
  position: fixed;
  top:0;
  left:0;
  right:0;
  border-radius: 0;
  background: rgba(52,53,65);
}

#chat-form {
  position: fixed;
  bottom: 0;
  left: 0;
  right:0;
}

#chat-content {
  position: fixed;
  top:50px;
  left:0;
  right:0;
  bottom: calc(constant(safe-area-inset-bottom) + 63px); /* 旧的iOS版本 */
  bottom: calc(env(safe-area-inset-bottom) + 63px); /* 新的iOS版本及其他支持的环境 */
  overflow-y: auto;
  padding-top: 20px;
}

#message {
  flex: 1;
  margin-right: 10px;
  max-height: 300px;
  overflow-y: auto;
  resize: none;
}
