/**
 *
 *人员列表
 *
 *
 *
 */

/* 针对美化后的 member-box */
#member-box {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

/* 缩小头像 */
#member-box .avatar {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

/* 微调成员项字体 */
#member-box .member-name {
  font-size: 0.9rem;
}

/* 分隔线更淡 */
#member-box .border-bottom {
  border-bottom: 1px solid #eee !important;
}






/* 通用的角色徽章 */
.role-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 4px;
  color: #fff;
  line-height: 1;
}

/* 群主用绿色 */
.role-owner {
  background-color: rgb(237,219,213);
  color: rgb(249, 168, 50);
}

/* 管理员用橙色 */
.role-admin {
  background-color: rgb(185,213,255);
  color: rgb(64,161,255);
}

/* 左侧“群聊”下面的成员列表框 */
#member-box {
  width: 100%;            /* 占满 nav 宽度 */
  height: 250px;          /* 根据左侧区域高度调整 */
  margin-top: 16px;       /* 距离标题的间距 */
  padding: 8px;           /* 内边距 */
  border: 1px solid #ddd; /* 边框 */
  border-radius: 8px;     /* 圆角 */
  overflow-y: auto;       /* 超高时滚动 */
  background: #fafafa;
}
/* 成员项头像微调 */
.member-item img {
  flex-shrink: 0;
  object-fit: cover;
}

/* 成员名字 */
.member-name {
  font-size: 0.9rem;
  color: #333;
}

/*--------------*/
/**
 *
 *接受信息
 *
 *
 *
 */

/* 接收消息容器定位 */
.receive-message-container {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 80px !important;
}

/* 接收消息头像 */
.receive-message-container::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 35px;
  width: 60px;
  height: 60px;
  background: url('../Icon/tou2.jpg') no-repeat center/cover;
  border-radius: 8px;
  z-index: 1;
}

/* 覆盖Bootstrap默认边距 */
.d-flex.justify-content-start .bubble-container {
  margin-left: 20px !important;
}



/* 给所有右侧消息预留头像空间 */
.d-flex.justify-content-end.mb-2 {
  position: relative;
  padding-right: 50px;
}
.d-flex.justify-content-end.mb-2::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: url('../Icon/icon.jpg') no-repeat center/cover;
}
/*信息框*/
#ipt{
  width: 100%;
  padding: .75rem 4rem .75rem 1rem;
  background: rgb(255, 255, 255);
  border: none;
  border-radius: 30px;
  color: var(--text);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  height: 9vh;
  /*
  display: grid;
  place-items: center;
  */
}
/*消息区*/
#message{
  height: calc(100vh - 80px);
  overflow-y: scroll;          /* 一直保留滚动条位置 */
  scrollbar-gutter: stable;
  padding: 1rem;
}
/*输入栏*/
#ipt {
  width: 100%;
  padding: .75rem 4rem .75rem 1rem;
  background: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  transition: all .3s ease;
  height: 7vh;
}
/*左边导航栏*/
#msgBox{
  position:fixed;
  top:0;
  left:0;
  width:16.6667%;
  height:100vh;
  background-color: rgb(246, 246, 246);
  border-right: 1px solid rgb(223, 223, 223);
}

#ipt_bar .position-relative {
  height: 100%;
  display: flex;
  align-items: center;
  bottom: 0;
  position: sticky; /* 保留，以便按钮绝对定位 */
}
#ipt_bar .container {
  height: 100%;
  padding: 0;  /* 覆盖原来 mt-4 带来的间距 */
}
/*底部消息栏*/
#ipt_bar {
  position: fixed;
  bottom: 0;
  left: 16.6667%;
  right: 0;
  background: #e8e7e7;
  height: 13%;
  z-index: 1;
  padding: 1rem 2rem;
  box-shadow: 0 -4px 8px -4px rgba(0, 0, 0, 0.3);
}
/*发送按钮*/
#sendButton {
  position: absolute;
  right: 2rem;
  transform: translateY(30%);
  border-radius: 20px;
  height: 100%;
}
#top_nav{
  height: 50px;
  background-color: rgb(159, 159, 159);
  border-radius: 10px;
  /*
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;

   */
}
