* {
  padding: 0;
  margin: 0;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: rgba(237, 244, 250);
}
.container {
  display: flex;
  height: 100vh;
  flex-direction: column;
}
.header {
  background-color: #fff;
  padding: 20px;
  height: 40px;
  box-shadow: 0px 0px 18px 0px rgba(40, 141, 233, 0.2);
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header h1 {
  font-family: OPPOSans;
  font-weight: 500;
  font-size: 24px;
  color: #2d2d2d;
  line-height: 40px;
}
.listen_btn {
  display: flex;
}
.listen_btn span {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
}
.listen_btn #doc {
  color: #b0b0b0;
}
.listen_btn #listen {
  color: #527ee5;
}
.listen_btn #stop_listen {
  color: #ff2929;
  display: none;
}
.main_content {
  display: flex;
  /*flex: 0 0 calc(100% - 120px);*/
  height: calc(100% - 120px);
  margin: 20px;
  width: calc(100% - 40px);
  flex-wrap: nowrap;
}
.device_list {
  flex: 0 0 280px;
  background-color: white;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  overflow-y: auto;
}
.device_list .device_list_title {
  font-family: OPPOSans;
  font-weight: 500;
  font-size: 18px;
  color: #2d2d2d;
  margin: 20px 0 0 20px;
}
.device_list #device_list_ul {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 100%;
}
.device_list #device_list_ul .device_item {
  flex: 0 0 calc(100% - 20px);
  height: 48px;
  line-height: 48px;
  font-size: 16px;
  color: #595959;
  cursor: pointer;
  padding-left: 20px;
  display: flex;
  align-items: center;
  font-weight: 400;
}
.device_list #device_list_ul .device_item_active {
  background: #ecf2ff;
  color: #527ee5;
}
.device_list #device_list_ul .device_item .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #595959;
  margin-right: 13px;
}
.device_list #device_list_ul .device_item:hover {
  /*background: #ecf2ff;*/
  color: #527ee5;
}

.device_list #device_list_ul .device_item:hover .dot {
  background: #527ee5;
}
.send_receive_area {
  flex: 0 0 calc(100% - 300px);
  display: flex;
  flex-direction: column;
  margin-left: 20px;
}
.receive_area {
  flex: 1;
  border-radius: 10px;
  margin-bottom: 20px;
  background-color: white;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}
.receive_area .receive_message {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9e9e9;
  padding: 20px 0;
}
.receive_area .receive_message:hover {
  background-color: rgba(237, 244, 250);
}
.receive_area .receive_message .receive_area_header {
  display: flex;
  align-items: center;
  color: #272727;
  font-size: 18px;
  font-weight: 400;
}
.receive_area .receive_message .receive_area_header .receive_content {
  display: inline-block; /* 或者 display: block; */
  /*width: 100px; !* 设置宽度 *!*/
  width: calc(100vw - 600px);
  /* flex: 1; */
  word-wrap: break-word; /* 超出宽度时换行 */
}

.receive_content .receive_hex {
  font-size: 18px;
  color: #bb1616;
  font-weight: 400;
  line-height: 36px;
}
.receive_content .receive_br {
  display: block;
}
.receive_content .receive_ascii {
  line-height: 36px;
  margin-top: 20px;
  font-size: 18px;
  color: #527ee5;
  font-weight: 400;
}
.receive_area .receive_message .receive_time {
  font-size: 14px;
  color: #a3a3a3;
  font-weight: 500;
}
.receive_area .receive_message .receive_area_header .receive_avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #f2f2f2;
  color: #484848;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.send_area {
  display: flex;
  align-items: center;
  border-radius: 10px;
}
.send_area .send_content {
  flex: 1;
  display: flex;
  align-items: center;
  height: 40px;
  border-radius: 10px;
  padding: 20px;
  background-color: white;
}
.send_area .send_content .msg_type {
  flex: 0 0 80px;
  height: 100%;
  border: none;
  outline: none;
  font-size: 18px;
  color: #272727;
  margin-right: 34px;
}
.send_area .send_content #send_text {
  flex: 1;
  margin-right: 20px;
  border: none;
  height: 100%;
  border-left: 1px solid #bebebe;
  outline: none;
  resize: none; /* 禁止调整大小 */
  font-size: 18px;
  padding-left: 34px;
  line-height: 40px;
}
.send_area .send_content #send_text::placeholder {
  color: #bebebe;
  font-size: 18px;
}
.send_area #send_btn {
  flex: 0 0 150px;
  margin-left: 20px;
  height: 100%;
  background-color: #527ee5;
  border: none;
  color: white;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 10px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.send_area #send_btn span {
  margin-left: 14px;
}
.send_area #send_btn:hover {
  background-color: #4a9ae2; /* 悬停颜色 */
}
