/*去掉浏览器默认样式的影响*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  width: 100%;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #d0d0d0;
}
.container {
  width: 1112px;
  height: 784px;
  display: flex;
  border-radius: 10px;
  border: #e5e5e5 solid 1px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    sans-serif;
}

/*左侧导航栏样式*/
nav {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 60px;
  align-items: center;
  background-color: #e0dee3;
}

/*Mac软件图标*/
.mac-icon {
  display: flex;
  justify-content: space-between;
  padding: 6px;
  width: 100%;
  height: 67px;
}
.circle {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid #c7c5ca;
}
.mac-icon :first-child {
  background-color: #ff605c;
}
.mac-icon :nth-child(2) {
  background-color: #ffbd44;
}
.mac-icon :last-child {
  background-color: #00ca4e;
}

/*用户头像*/
.user-avator {
  width: 38px;
  height: 38px;
}
.user-avator img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

/*导航栏*/
.other-switch-icon {
  width: 100%;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 32px;
  padding-bottom: 28px;
}
.other-switch-icon img {
  width: 24px;
  height: 24px;
}
.main-switch-icon {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 28px;
}
.chat-icon {
  height: 20px;
}
.contacts-icon {
  width: 24px;
  height: 30px;
  margin-top: 24px;
}
.collection-icon {
  width: 26px;
  height: 26px;
  margin-top: 20px;
}
.file-icon {
  width: 24px;
  height: 20x;
  margin-top: 24px;
}

/*朋友圈未读消息样式*/
.friend-circle-icon {
  position: relative;
  margin-top: 24px;
}
.friend-circle-icon img {
  width: 28px;
}
.unread-message-number {
  position: absolute;
  width: 16px;
  height: 16px;
  right: -6px;
  top: 0px;
  background-color: #f05858;
  color: #ffe9e9;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}
.video-icon {
  height: 20px;
  margin-top: 20px;
}
.look-icon {
  height: 28px;
  margin-top: 26px;
}
.web-search-icon {
  height: 26px;
  margin-top: 20px;
}

/*右侧信息面板样式*/
main {
  flex: 1;
  display: flex;
}

/*左边信息区域样式*/
.left-area {
  height: 100%;
  width: 260px;
  display: flex;
  flex-direction: column;
  background-color: #f6f7f6;
}

/*搜索区域样式*/
.search-area {
  position: relative;
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  width: 14px;
  left: 22px;
}
.search-box {
  width: 195px;
  height: 26px;
  margin-left: 16px;
  border: none;
  border-radius: 4px;
  background-color: #eaeaea;
  color: #afafaf;
  font-size: 12px;
  padding-left: 23px;
}
.create-group-chat {
  width: 26px;
  height: 26px;
  margin-left: 8px;
  border: none;
  border-radius: 4px;
  background-color: #eaeaea;
  color: #a7a7a7;
  font-size: 24px;
}

/*聊天列表样式*/
.chat-list {
  flex: 1;
  display: flex;
}
.chat-object {
  height: 68px;
  width: 100%;
  display: flex;
  background-color: #dedede;
}
/*聊天对象头像的样式*/
.chat-object-avator {
  width: 58px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.chat-object-info {
  flex: 1;
  flex-direction: column;
}
/*接收信息的样式*/
.chat-object-title {
  display: flex;
  justify-content: space-between;
  height: 36px;
  width: 100%;
  padding-right: 13px;
}
.chat-object-name {
  font-size: 14px;
  font-weight: bold;
  color: black;
  margin-top: 12px;
}
.chat-access-time {
  margin-top: 12px;
  font-size: 10px;
  color: #333333;
  letter-spacing: 0.06rem;
}
.preview-message {
  top: 0px;
  font-size: 12px;
  color: #333333;
  letter-spacing: 0.03rem;
}

/*聊天框样式*/
.chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #f2f3f3;
}

/*聊天对象名称样式*/
.chat-name {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  border: #e5e5e5 solid 1px;
}
.chat-name p {
  font-size: 16px;
  color: black;
  font-weight: bold;
  margin-left: 25px;
}

/*聊天信息页面样式*/
.chat-box {
  height: 400px;
  width: 100%;
  border: #e5e5e5 solid 1px;
  display: flex;
  flex-direction: column;
}
.chat-time {
  display: flex;
  height: 80px;
  width: 100%;
  justify-content: center;
  padding-top: 45px;
}
.chat-time time {
  font-size: 13px;
  letter-spacing: 0.04rem;
  color: #333333;
}
.chat-message {
  width: 100%;
  height: 42px;
  display: flex;
  justify-content: flex-end;
}
.chat-bubble {
  display: flex;
  width: 140px;
  height: 38px;
  background-color: #96eb6a;
  border-radius: 4px;
  margin-right: 12px;
  margin-top: 2px;
  justify-content: center;
  align-items: center;
}
.chat-bubble p {
  font-size: 14px;
  color: #333333;
  letter-spacing: 0.03rem;
}
.chat-avator {
  width: 34px;
  height: 34px;
  display: flex;
  margin-top: 1px;
  margin-right: 16px;
}

/*信息发送框样式*/
.send-message-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: #e5e5e5 solid 1px;
}
.toolbar {
  height: 56px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 16px;
  gap: 18px;
}
.toolbar img {
  height: 20px;
  width: 20px;
}
.shortcut {
  display: flex;
  justify-content: center;
  align-items: center;
}
.shortcut p {
  color: #565656;
}
.send-message {
  flex: 1;
  background-color: transparent;
  border: none;
}
.send-message:focus {
  outline: none;
}
