alay
 
/* 基础样式重置 */
html, 
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}
/* 主页面容器 */
.MessagesPage {
  width: 100%;
  min-height: 100vh;
  background: @body-bg;
  
  .chat, 
  .container.clearfix {
    width: 100% !important;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
}
/* 消息下拉组件 */
.MessagesDropdown {
  .tiblock {
    align-items: center;
    display: flex;
    height: 23px;
    margin: 13px;
  }
  .tidot {
    animation: mercuryTypingAnimation 1.5s infinite ease-in-out;
    border-radius: 13px;
    display: inline-block;
    height: 13px;
    margin-right: 2px;
    width: 13px;
    background-color: @primary-color;
  }
  @keyframes mercuryTypingAnimation {
    0% { transform: translateY(0px) }
    28% { transform: translateY(-5px) }
    44% { transform: translateY(0px) }
  }
  .tidot:nth-child(1) { animation-delay: 200ms; }
  .tidot:nth-child(2) { animation-delay: 300ms; }
  .tidot:nth-child(3) { animation-delay: 400ms; }
  .Dropdown-menu {
    @media (min-width: @screen-desktop) {
      width: 725px;
    }
  }
}
/* 开始对话模态框 */
.StartConversationModal {
  h2 {
    text-align: center;
  }
}
/* 对话列表组件 */
.ConversationsList {
  width: 100%;
  height: 100vh;
  
  *, *:before, *:after {
    box-sizing: border-box;
  }
  .container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: @body-bg;
    border-radius: @border-radius;
    box-shadow: 0 2px 6px @shadow-color;
  }
  /* 响应式布局 */
  @media (min-width: @screen-desktop) {
    .container {
      max-width: 1200px;
      margin: 0 auto;
    }
    .chat {
      width: calc(100% - 280px);
    }
    .people-list {
      width: 280px;
    }
  }
  @media (max-width: 767px) {
    .chat {
      width: 100%;
      height: calc(100vh - 60px);
      margin: 0;
      float: none;
    }
.chat-history {
  height: calc(100vh - 180px) !important;
  overflow-y: auto;
}
.people-list {
  width: 100%;
  height: auto;
  float: none;
  
  ul {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    margin: 0;
    -webkit-overflow-scrolling: touch;
  }
}
  }
  /* 用户列表样式 */
  .people-list {
    float: left;
    background: @control-bg;
.Button--primary {
  margin: 15px 10px;
  width: calc(100% - 20px);
}
ul {
  list-style: none;
  padding: 10px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  .UserListItem {
    cursor: pointer;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: @border-radius;
    transition: background-color 0.2s ease;
    &.active {
      background-color: @primary-color;
      color: white;
    }
    &:hover {
      background: mix(@control-bg, @muted-color, 50%);
    }
    .tiblock {
      padding-left: 12px;
      margin: 0;
      padding-top: 11px;
    }
    .info {
      display: inline-block;
      margin: 8px;
      font-weight: bold;
      font-size: 15px;
      .UserOnline {
        margin-left: 5px;
        
        .fa-circle {
          color: @online-user-circle-color;
        }
      }
    }
    .Avatar {
      width: 40px;
      height: 40px;
      line-height: 40px;
      border-radius: 50%;
      object-fit: cover;
    }
  }
}
  }
  /* 聊天区域样式 */
  .chat {
    background: @body-bg;
    border-radius: @border-radius;
    position: relative;
    
.chat-header {
  padding: 20px;
  border-bottom: 1px solid @primary-color;
  background: @control-bg;
  border-radius: @border-radius @border-radius 0 0;
  .Avatar {
    float: left;
    margin-right: 10px;
  }
  .chat-about {
    float: left;
    padding-left: 10px;
    margin-top: 6px;
  }
  .chat-with {
    font-weight: bold;
    font-size: 16px;
  }
  .chat-num-messages {
    color: @muted-color;
  }
}
.chat-history {
  padding: 20px;
  height: calc(100vh - 240px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: @primary-color @control-bg;
  &::-webkit-scrollbar {
    width: 6px;
  }
  
  &::-webkit-scrollbar-thumb {
    background-color: @primary-color;
    border-radius: 3px;
  }
  
  &::-webkit-scrollbar-track {
    background-color: @control-bg;
  }
  .message-data {
    margin-bottom: 15px;
    
    &.align-right {
      text-align: right;
      
      .message-data-name {
        margin-right: 8px;
      }
    }
  }
  .message {
    color: white;
    padding: 12px 16px;
    line-height: 1.5;
    font-size: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    max-width: 80%;
    position: relative;
    word-wrap: break-word;
    &.my-message {
      background: @primary-color;
      margin-left: auto;
    }
    &.other-message {
      background: @muted-more-color;
    }
    img {
      max-width: 100%;
      height: auto;
    }
    a {
      color: white;
      text-decoration: underline;
    }
  }
}
.chat-message {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: @control-bg;
  border-radius: 0 0 @border-radius @border-radius;
  textarea {
    width: 100%;
    border: none;
    padding: 10px;
    resize: none;
    height: 80px;
    background: @body-bg;
    border-radius: @border-radius;
    margin-bottom: 10px;
    font: 14px/1.5 "Helvetica Neue", Arial, sans-serif;
    color: @text-color;
    &:focus {
      outline: none;
      border: 1px solid @primary-color;
    }
  }
  .button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
  }
}
/* 添加接收者模态框 */
.AddRecipientModal {
  &-form {
    padding: 20px;
textarea {
  width: 100%;
  border: 1px solid @control-bg;
  background-color: @body-bg;
  padding: 10px;
  font: 14px/1.5 "Helvetica Neue", Arial, sans-serif;
  color: @text-color;
  margin-bottom: 15px;
  border-radius: @border-radius;
  resize: none;
  &:focus {
    outline: none;
    border-color: @primary-color;
  }
}
  }
  &-form-input {
    display: flex;
    flex-direction: column;
    position: relative;
input.RecipientsInput {
  margin: 0 1em;
  width: auto !important;
}
.Search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: @body-bg;
  border: 1px solid @control-bg;
  border-radius: @border-radius;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  &.fade:not(.in) {
    display: none;
  }
}
  }
}
/* 工具类 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
.align-left { text-align: left; }
.align-right { text-align: right; }
.float-right { float: right; }