/* 首页消息 */

ul,
ol,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clearfix:after {
  content: "";
  /*设置内容为空*/
  height: 0;
  /*高度为0*/
  line-height: 0;
  /*行高为0*/
  display: block;
  /*将文本转为块级元素*/
  visibility: hidden;
  /*将元素隐藏*/
  clear: both;
  /*清除浮动*/
}

.clearfix {
  zoom: 1;
  /*为了兼容IE*/
}

.fr {
  float: right;
}

.fw6 {
  font-weight: 600;
}

.message-drawer {
  width: 100%;
  height: calc(100% - 56px);
  position: fixed;
  left: 0;
  top: 56px;
  z-index: 788;
  background: rgba(0, 0, 0, 0.5);
  display: none;
}

.message-drawer .msg-block {
  width: 664px;
  background-color: #fff;
  height: 100%;
  position: absolute;
  right: 0;
  z-index: 800;
}

.message-drawer .msg-header {
  line-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-weight: 400;
  color: #262626;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.message-drawer .msg-header i {
  font-size: 18px;
  cursor: pointer;
}

.message-drawer .go_noticePage_btn {
  font-size: 14px;
  color: var(--color-theme);
  margin-left: 16px;
  cursor: pointer;
  vertical-align: middle;
}

.message-drawer .go_noticePage_btn i {
  font-size: 14px;
  vertical-align: middle;
}

.message-drawer .msg-content {
  height: calc(100% - 49px);
  background-color: #f9f9f9;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.message-drawer .msg-content .msg-nav {
  width: 128px;
  height: 100%;
  background: #ffffff;
  padding-top: 12px;
}

.message-drawer .msg-content .msg-nav li {
  line-height: 36px;
  padding: 0 16px;
  font-weight: 400;
  color: #666666;
  font-size: 14px;
  position: relative;
  cursor: pointer;
}

.message-drawer .msg-content .msg-nav li.active {
  background: #f9f7f5;
  color: var(--color-theme);
}

.message-drawer .msg-content .msg-nav li.active::before {
  content: "";
  display: block;
  width: 4px;
  height: 36px;
  background: var(--color-theme);
  border-radius: 4px;
  position: absolute;
  left: 0;
}

.message-drawer .msg-content .msg-nav li em {
  text-decoration: none;
  margin-left: 8px;
  width: 30px;
  height: 16px;
  background: #e62412;
  color: #fff;
  text-align: center;
  display: inline-block;
  line-height: 16px;
  font-size: 12px;
  vertical-align: middle;
  border-radius: 10px;
  display: none;
}

.message-drawer .msg-content .msg-list {
  width: calc(100% - 128px);
  padding: 8px 16px;
  height: 100%;
  overflow-y: hidden;
  padding-right: 0;
}

.message-drawer .msg-content .msg-list > div {
  width: 100%;
  height: calc(100% - 56px);
  overflow-y: auto;
  padding-right: 16px;
}

.message-drawer .msg-content .msg-list button {
  width: 84px;
  height: 32px;
  background: #ffffff;
  border-radius: 4px 4px 4px 4px;
  border: 1px solid #dcdcdc;
  margin-bottom: 8px;
}

.message-drawer .msg-content .msg-list li {
  width: 100%;
  height: auto;
  background-color: #fff;
  padding: 12px;
  font-size: 0;
  margin-bottom: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}

.message-drawer .msg-content .msg-list li:last-child {
  margin-bottom: 0;
}

.message-drawer .msg-content .msg-list li a {
  color: var(--color-theme);
}

.message-drawer .msg-content .msg-list li div {
  font-size: 14px;
}

.message-drawer .msg-content .msg-list li div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-drawer .msg-content .msg-list li div i.no_read_icon {
  width: 8px;
  height: 8px;
  background: #e62412;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.message-drawer .msg-content .msg-list li div:last-child {
  margin-top: 8px;
  position: relative;
}

.message-drawer .msg-content .msg-list li .msg-tit {
  color: #333;
  font-weight: 600;
}

.message-drawer .msg-content .msg-list li .msg-tit.active {
  cursor: pointer;
}

.message-drawer .msg-content .msg-list li .msg-tit.active:hover {
  color: var(--color-theme);
  font-weight: 600;
}

.message-drawer .msg-content .msg-list li .time {
  color: #999;
}

.message-drawer .msg-content .msg-list li font {
  height: 20px;
  line-height: 20px;
  background: #e7e7e7;
  border-radius: 3px 3px 3px 3px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.9);
  display: inline-block;
  text-align: center;
  margin-right: 6px;
  padding: 0 8px;
}

.message-drawer .msg-content .msg-list li .msg-btn {
  font-weight: 400;
  color: var(--color-theme);
  font-size: 14px;
  cursor: pointer;
}

.message-drawer .msg-content .msg-list li .expand-btn {
  position: absolute;
  right: 0;
  top: 0;
}

.message-drawer .msg-content .msg-list li .reject_project_btn,
.message-drawer .msg-content .msg-list li .join_project_btn {
  width: 84px;
  height: 32px;
  background: #ffffff;
  border-radius: 4px 4px 4px 4px;
  border: 1px solid #dcdcdc;
  margin-bottom: 8px;
  float: right;
  margin-top: 2px;
  margin-left: 10px;
  width: 84px;
  height: 32px;
  border-radius: 4px 4px 4px 4px;
  display: inline-block;
  line-height: 30px;
  text-align: center;
}

.message-drawer .msg-content .msg-list li .join_project_btn {
  background: var(--color-theme);
  color: #fff;
}
.message-drawer .msg-content .msg-list li .reject_project_btn {
  background: #f0f0f0;
  color: #333;
}

.message-drawer .msg-content .msg-list li .retract-btn {
  float: right;
  margin-top: 2px;
  display: none;
}

.message-drawer .msg-content .msg-list li div:last-child p {
  line-height: 18px;
  height: auto;
}

.message-drawer .msg-content .msg-list li div:last-child p.ellipsis {
  width: 90%;
  height: 18px;
  line-height: 18px;
  white-space: nowrap; /* 防止文本换行 */
  overflow: hidden; /* 文本溢出容器时隐藏 */
  text-overflow: ellipsis; /* 使用省略号表示被隐藏的文本 */
}

.message-drawer .no_msg {
  line-height: 200px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.message-drawer .msg-content .msg-list li p img {
  width: 80px;
  height: 80px;
  display: block;
  margin-top: 4px;
  vertical-align: top;
}
