/**
* =====================================
* 滚动条美化
**/

/* 亮色 */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* 隐藏 html 滚动条 */
html {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  overflow: hidden
}

html::-webkit-scrollbar {
  display: none;
}

::-webkit-scrollbar-thumb {
  background-color: #b8b8b8;
  background-clip: padding-box;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #878787;
}

/* 暗色 */
body[theme-mode=dark] ::-webkit-scrollbar-thumb {
  background: #565656;
}

body[theme-mode=dark] ::-webkit-scrollbar-thumb:hover {
  background: #424242;
  /* 更深的灰色 */
}


/* 弹框适配消息 */
@media (max-width:768px) {
  .semi-portal .semi-modal,
  .semi-modal-confirm .semi-modal {
    max-width: 80vw;
  }

  .semi-portal .semi-modal-content,
  .semi-modal-confirm .semi-modal-content {
    padding: 0 6vw;
    max-height: calc(98vh - 120px);
  }

  .semi-modal-confirm .semi-modal-content .semi-modal-withIcon {
    margin-left: 0;
  }

  .semi-portal .semi-modal-content {
    padding: 0 4vw;
  }
}

.wk-conversationlist {
    height: 100%;
    overflow-y: auto;
    /* padding: 0px 5px; */
}

.wk-conversationlist-item {
    height: 80px;
    width: 100%;
    cursor: pointer;
    padding: 0px !important;
    background-color: white;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.wk-conversationlist-item-dayun:hover {
    background-color: #8c8c8d26;
}

body[theme-mode=dark] .wk-conversationlist-item {
    background-color: var(--wk-color-secondary-2);
}

.wk-conversationlist-item-top {
    background-color: var(--wk-color-secondary) !important;
}

.wk-conversationlist-item-content {
    display: flex;
    height: 100%;
}

.wk-conversationlist-item-left {
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wk-conversationlist-item-right {
    height: 100%;
    width: calc(100% - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 10px;
    padding-left: 5px;

    flex-grow: 1;
    overflow: hidden;
    box-sizing: border-box;
}

.wk-conversationlist-item-avatar-box {
    margin-left: 4px;
    position: relative;
}

.wk-conversationlist-item-right-second-line {
    display: flex;
}

.wk-conversationlist-item-name {
    display: flex;
    width: 100%;
    align-items: center;
}

.wk-conversationlist-item-selected .wk-conversationlist-item-name .group {
    color: white;
}

.wk-conversationlist-item-name .title {
    font-size: 1rem;
    line-height: 1.6875rem;
    margin: 0;
    /* overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis; */
    width: auto;
    max-width: 80%;
    font-weight: bold;
}

body[theme-mode=dark] .wk-conversationlist-item-name .title {
    color: white;
}

.wk-conversationlist-item-selected .wk-conversationlist-item-name .title {
    color: white;
}

.wk-conversationlist-item-name .mute {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    margin-left: 5px;
}

.wk-conversationlist-item-time {
    color: #9b9b9b;
    padding-left: 10px;
    flex-shrink: 0;
    font-size: .75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.wk-conversationlist-item-selected .wk-conversationlist-item-time {
    color: white;
}

.wk-conversationlist-item-lastmsg {
    width: 100%;
    color: var(--wk-color-font-tip);
    /* text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden; */
    font-size: 14px;
    min-height: 22px;
}

.wk-conversationlist-item-selected .wk-conversationlist-item-lastmsg {
    color: white;
}

.wk-conversationlist-item-content:hover {
    background-color: #e3e3e3;
}

.wk-conversationlist-item .wk-conversationlist-item-selected {
    background-color: var(--wk-color-theme);
}

.wk-mention {
    color: red;
}

.wk-reminder {
    color: red;
}

.wk-onlinestatusbadge {
    background-color: var(--wk-color-item);
    position: absolute;
    padding: 1.5px;
    transform: scale(0.6);
    right: -10px;
    bottom: -5px;
    border-radius: 10px;
}

.wk-onlinestatusbadge-empty.wk-onlinestatusbadge {
    border-radius: 50%;
    right: -1px;
    bottom: -1px;
}

.wk-onlinestatusbadge-content {
    background-color: rgb(238, 249, 233);
    padding: 0px 2px;
    border-radius: 10px;
}

.wk-onlinestatusbadge-content-tip {
    padding: 0px;
    font-size: 12px;
    color: rgb(124, 208, 83);
}

.wk-onlinestatusbadge-empty .wk-onlinestatusbadge-content {
    background-color: rgb(124, 208, 83);
    border-radius: 50%;
    padding: 0px;
}

.wk-onlinestatusbadge-empty .wk-onlinestatusbadge-content-tip {
    padding: 8px;
}

/* 未读消息指示器样式 */
.wk-conversationlist-item-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4d4f;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    padding: 0 4px;
    box-sizing: border-box;
    border: 2px solid white;
}

body[theme-mode=dark] .wk-conversationlist-item-unread-badge {
    border: 2px solid var(--wk-color-secondary-2);
}



.wk-contextmenus {
    position: fixed;
    top: 100px;
    left: 0px;
    background-color: white;
    z-index: 99;

    box-shadow: 0 0.25rem 0.5rem 0.125rem rgba(114,114,114,0.25098);
    border-radius: 0.75rem;
    transform: scale(0.5);
    transition: opacity .2s cubic-bezier(0.2, 0, 0.2, 1),transform .2s cubic-bezier(0.2, 0, 0.2, 1) !important;

    visibility: hidden;
    padding: 10px 0px;

    min-width: 80px;
}

body[theme-mode=dark]  .wk-contextmenus {
    background-color: var(--wk-color-secondary);
    box-shadow: 0 0.25rem 0.5rem 0.125rem rgba(0,0,0,0.6);
}

.wk-contextmenus-open {
    transform: scale(1);
    visibility: visible;
}

.wk-contextmenus ul {
    margin-top: 0;
    margin-bottom: 0;
}

.wk-contextmenus li {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

body[theme-mode=dark]  .wk-contextmenus li {
    color: white;
}

.wk-contextmenus li:hover {
    background-color: #eee;
}

body[theme-mode=dark] .wk-contextmenus li:hover {
    background-color: var(--wk-color-secondary-2);
}

.wk-contextmenus-mask {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    visibility: hidden;
    z-index: 98;
}
:root {
    --wk-width-max-message: 540px;
}

.wk-message-base {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
    /* 防止内容溢出导致水平滚动条 */
}

.wk-message-base-send,
.wk-message-base-recv {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1 1;
    /* 使用flex布局自动调整宽度 */
    min-width: 0;
    /* 允许flex项目缩小 */
}

.wk-message-base-send {
    align-items: flex-end;
    margin-right: 5px;
}

.wk-message-base-recv {
    margin-left: 15px;
    transform: translate3d(0, 0, 0);
    transition: transform var(--wk-layer-transition);
}

.wk-message-base-check-open .wk-message-base-recv {
    transform: translate3d(30px, 0, 0);
    width: calc(100% - 30px);
    /* 减去移动距离，防止溢出 */
}

.senderName {
    color: rgba(9, 30, 66, .74);
    font-size: 12px;
    font-weight: 400;
    /* text-transform: capitalize; */
    padding-bottom: 1px;
}

.senderAvatar {
    cursor: pointer;
    position: absolute;
    left: 0;
    bottom: 5px;
}

.wk-message-base-box {
    display: flex;
    align-items: center;
    position: relative;
}

.wk-message-base-send .wk-message-base-box {
    flex-direction: row-reverse;
    justify-content: center;
    margin-left: 0px;
    margin-right: 10px;
}

.wk-message-base-send .senderName {
    padding-right: 41px;
}

.wk-message-base-recv .senderName {
    padding-left: 41px;
}

/* .wk-message-base-send .senderAvatar {
    display: none;
    text-align: center;
} */

.wk-message-base-bubble-box {
    display: flex;
    position: relative;
}

.wk-message-base-bubble-box.recv {
    margin-left: 50px;
    max-width: 60%;
}

.wk-message-base-bubble {
    color: rgba(9, 30, 66, .87);
    display: flex;
    /* margin-bottom: 4px; */
    padding: 8px 10px;
    position: relative;
    word-wrap: break-word;
    /* max-width: var(--wk-width-max-message); */
    max-width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(114, 114, 114, 0.25098);
    font-size: 15px;
}

.wk-message-base-bubble-box.hide .wk-message-base-bubble {
    padding: 0px;
}

body[theme-mode=dark] .wk-message-base-bubble {
    box-shadow: none;
}

@media screen and (max-width: 640px) {
    .wk-message-base-bubble {
        max-width: calc(100vw - 80px);
    }
}

.wk-message-base-bubble-box.send .wk-message-base-bubble {
    background-color: var(--wk-color-theme);
    border-radius: 0.75rem 0.75rem 0rem 0.75rem;
    color: white;
}

.wk-message-base-bubble-box.recv .wk-message-base-bubble {
    border-radius: 0.75rem 0.75rem 0.75rem 0rem;
    background-color: white;
    color: black;
}

body[theme-mode=dark] .wk-message-base-bubble-box.recv .wk-message-base-bubble {
    color: white;
}

body[theme-mode=dark] .wk-message-base-bubble-box.recv .wk-message-base-bubble {
    background-color: var(--wk-color-secondary);
}

.wk-message-base-bubble-box.send.middle .wk-message-base-bubble {
    border-radius: 0.75rem 0.375rem 0.375rem 0.75rem;
}

.wk-message-base-bubble-box.send.first .wk-message-base-bubble {
    border-radius: 0.75rem 0.75rem 0.375rem 0.75rem;
}

.wk-message-base-bubble-box.recv.middle .wk-message-base-bubble {
    border-radius: 0.375rem 0.75rem 0.75rem 0.375rem;
}

.wk-message-base-bubble-box.recv.first .wk-message-base-bubble {
    border-radius: 0.75rem 0.75rem 0.75rem 0.375rem;
}

.wk-message-base-bubble-box.hide .wk-message-base-bubble {
    background-color: transparent !important;
    box-shadow: none;
}

.svgAppendix {
    display: none;
    overflow: hidden;
    position: absolute;
    width: 0.5625rem;
    height: 1.125rem;
    font-size: 1rem !important;
    bottom: -1px;
}

.wk-message-base-bubble-box.last .svgAppendix {
    display: block;
}

.wk-message-base-bubble-box.single .svgAppendix {
    display: block;
}

.wk-message-base-bubble-box.send .svgAppendix {
    right: -0.551rem;
}

.wk-message-base-bubble-box.recv .svgAppendix {
    left: -0.52rem;
}

.wk-message-base-bubble-box.send .svgAppendix .corner {
    fill: var(--wk-color-theme);
}

.wk-message-base-bubble-box.recv .svgAppendix .corner {
    fill: white;
}

body[theme-mode=dark] .wk-message-base-bubble-box.recv .svgAppendix .corner {
    fill: var(--wk-color-secondary);
}

/* .wk-message-base-recv .wk-message-base-bubble {
    margin-left: 5px;
    background-color: #bedbf5;
}

.wk-message-base-send .wk-message-base-bubble {
    margin-right: 5px;
    background-color: #fff;
    box-shadow: -1px 1px 1px rgba(0,0,0,.12);
    color: rgba(9,30,66,.87) !important;
    border-radius: 20px 4px 8px 20px;
}*/

.messageNameBox {
    display: flex;
    margin-bottom: 1px;
}

.wk-message-base-send .messageNameBox {
    flex-direction: row-reverse;
    justify-content: end;
}

.wk-message-base-recv .messageNameBox {
    flex-direction: row;
}

/*.messageTime {
    color: rgba(9,30,66,.74);
    font-size: 12px;
    font-weight: 400;
    text-transform: capitalize;
    display: none;
}

.wk-message-base-send:hover .messageTime {
    display: block;
}

.wk-message-base-recv:hover .messageTime {
    display: block;
}

.wk-message-base-recv .messageTime {
    margin-left: 8px;
}

.wk-message-base-send .messageTime {
    margin-right: 8px;
}*/

.wk-message-base-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.popupMenusContaner {
    display: none;
}

.wk-message-base-box:hover .popupMenusContaner {
    display: block;
}

.wk-message-base-checkBox {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: translate3d(-10px, 0, 0);
    transition: transform var(--wk-layer-transition);
}

.wk-message-base-check-open {
    cursor: pointer;
}

.wk-message-base-check-open .wk-message-base-checkBox {
    transform: translate3d(25px, 0, 0);

}

.wk-message-base-checkBox .wk-check {
    position: absolute;
    bottom: 10px;
}

.wk-message-base-send .checkBox {
    left: auto;
    right: -30px;
}

.wk-message-base-send .wk-message-base-box.checked {
    margin-left: 0;
    margin-right: 30px;
}

.wk-message-base-recv .wk-message-base-box.checked .senderAvatar {
    left: -30px;
}

.replyBox {
    width: 100%;
}

.reply {
    position: relative;
    color: #666;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 12px;
    margin-bottom: 4px;
    max-width: 100%;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
}

.reply::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    border-radius: 50px;
    background-color: var(--wk-color-theme);
}

.messageMeta {
    position: relative;
    top: 0.375rem;
    bottom: auto !important;
    float: right;
    line-height: 1;
    height: 19px;
    /* margin-left: 0.4375rem; */
    margin-right: -0.2rem;
}

.wk-message-base-bubble-box.send .messageMeta {
    top: 0rem;
}

.messageTime {
    margin-inline-end: 0.1875rem;
    font-size: .75rem;
    white-space: nowrap;
}

.wk-message-base-bubble-box.recv .messageTime {
    color: rgb(104, 108, 114, 0.75);
}

.wk-message-base-bubble-box.send .messageTime {
    color: rgb(255, 255, 255, 0.75);
}

.textTitle {
    /* white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; */
    font-size: calc(1rem - .125rem);
    font-size: calc(var(--message-text-size, 1rem) - .125rem);
    font-weight: 500;
    /* color: var(--accent-color); */
    color: var(--wk-color-theme);
    unicode-bidi: plaintext;
    display: flex;
}

.icon-message-read {
    position: absolute;
    bottom: -4px;
    width: 18px;
    height: 18px;
    fill: rgb(255, 255, 255, 0.75);
}

.icon-message-succeeded {
    position: absolute;
    bottom: -4px;
    width: 18px;
    height: 18px;
    fill: rgb(255, 255, 255, 0.75);
}

.icon-message-pending {
    position: absolute;
    width: 18px;
    height: 18px;
    bottom: -4px;
    fill: rgb(255, 255, 255, 0.75);
}

.messageStatus {
    width: 1.19rem;
    height: 1.19rem;
    overflow: hidden;
    display: inline-block;
    line-height: 1;
    margin-left: -0.1875rem;
    font-size: 1.1875rem;
    border-radius: 0.625rem;
}

.messageFail {
    cursor: pointer;
}

.messageFail img {
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

.wk-message-error-reason {
    font-size: 13px;
    margin-right: 10px;
    margin-top: 5px;
    color: var(--wk-color-font-tip);
}

.messagePinned {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
    vertical-align: middle;
}

.messagePinned svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}


.wk-check {
    cursor: pointer;
}


.channel-category-item {
    font-size: 10px;
    color: #FF0000;
    border: 1px solid #FF0000;
    border-radius: 3px;
    flex-shrink: 0;
    margin-left: 4px;
}
.group-notice-bar {
    background: #fff;
    color: #222;
    width: 100%;
    margin-bottom: 0;
    padding: 6px 16px;
    font-size: 14px;
    cursor: pointer;
}

body[theme-mode=dark] .group-notice-bar {
    background-color: var(--wk-color-secondary) !important;
    color: #fff !important;
}

body[theme-mode=dark] .group-notice-bar span {
    color: #fff;
}



.wk-message-time-box {
    width: 85%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    display: table;
}

.wk-message-time {
    color: rgba(9,30,66,.74);
    padding: 5px 8px 0;
    white-space: nowrap;
    width: auto;
    font-size: 12px;
    font-weight: 600;
}
body[theme-mode=dark] .wk-message-time  {
    color: #999;
}

.wk-message-time-line1 {
    background-image: linear-gradient(360deg,transparent,rgba(9,30,66,.12));
    background-position: 0 0,0 100%;
    background-repeat: no-repeat;
    background-size: 100% 1px;
    top: 13px;
    width: 50%;
    display: table-cell;
    position: relative;
}

.wk-message-time-line2 {
    background-image: linear-gradient(360deg,rgba(9,30,66,.12),transparent);
    background-position: 0 0,0 100%;
    background-repeat: no-repeat;
    background-size: 100% 1px;
    top: 13px;
    width: 50%;
    display: table-cell;
    position: relative;
}


.wk-message-split-box {
    width: 85%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    display: table;
}

.wk-message-split-content {
    color: rgba(9,30,66,.74);
    padding: 5px 8px 0;
    white-space: nowrap;
    width: auto;
    font-size: 12px;
    font-weight: 600;
}

.wk-message-split-line1 {
    background-image: linear-gradient(360deg,transparent,rgba(9,30,66,.12));
    background-position: 0 0,0 100%;
    background-repeat: no-repeat;
    background-size: 100% 1px;
    top: 13px;
    width: 50%;
    display: table-cell;
    position: relative;
}

.wk-message-split-line2 {
    background-image: linear-gradient(360deg,rgba(9,30,66,.12),transparent);
    background-position: 0 0,0 100%;
    background-repeat: no-repeat;
    background-size: 100% 1px;
    top: 13px;
    width: 50%;
    display: table-cell;
    position: relative;
}


:root {
    --wk-height-viewqueueheader: 50px;
}

.wk-viewqueueheader {
    background-color: var(--wk-color-secondary);
    height: 50px;
    height: var(--wk-height-viewqueueheader);
    width: 100%;
    position: relative;
}

.wk-viewqueueheader-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wk-viewqueueheader-content-title {
    font-size: 17px;
    font-weight: 500;
    max-width: 200px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

body[theme-mode=dark] .wk-viewqueueheader-content-title {
    color: white;
}

.wk-viewqueueheader-back {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0px 15px;
}

.wk-viewqueueheader-back img {
    width: 10px;
    height: 15px;
}

.wk-viewqueueheader-content-action {
    position: absolute;
    right: 15px;
}
.wk-mergeforwardmessagelist-content-msgs {
    width: 100%;
    height: 100%;
    background-color: var(--wk-color-secondary);
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.wk-mergeforwardmessagelist-content-msg {
    display: flex;
    width: 100%;
    padding: 15px;
    background-color: var(--wk-color-item);
}

.wk-mergeforwardmessagelist-content-msg-info {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.wk-mergeforwardmessagelist-content-msg-info-first {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0px 15px;

}

.wk-mergeforwardmessagelist-content-msg-info-first-name {
    font-size: 14px;
    color: #333; /* 改为深色，确保在白色背景上可见 */
}

.wk-mergeforwardmessagelist-content-msg-info-first-time {
    font-size: 12px;
    color: #666; /* 改为深色，确保在白色背景上可见 */
}

.wk-mergeforwardmessagelist-content-msg-info-second-msgcontent {
    padding: 0px 15px;
    margin-top: 5px;
    color: #333; /* 添加深色文字颜色 */
}

/* 暗色主题下的样式调整 */
body[theme-mode=dark] .wk-mergeforwardmessagelist-content-msg-info-first-name {
    color: #e0e0e0; /* 暗色主题下使用浅色文字 */
}

body[theme-mode=dark] .wk-mergeforwardmessagelist-content-msg-info-first-time {
    color: #b0b0b0; /* 暗色主题下使用浅色文字 */
}

body[theme-mode=dark] .wk-mergeforwardmessagelist-content-msg-info-second-msgcontent {
    color: #e0e0e0; /* 暗色主题下使用浅色文字 */
}

.wk-message-file {
    display: flex;
    align-items: center;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    overflow: hidden;
}

/* 发送方的文件消息hover效果 */
.wk-message-file:hover {
    background: #f0f0f0;
}

/* 发送方的文件消息样式 */
.wk-message-file.sent {
    background: #e8f5e8;
    border: 1px solid #d4edda;
}

.wk-message-file.sent:hover {
    background: #d1e7dd;
}

.wk-message-file.search {
    padding: 0;
}

.wk-message-file .fileIcon {
    position: relative;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    padding: 8px;
    box-sizing: border-box;
}

/* 下载进度覆盖层 */
.file-download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.file-download-progress {
    text-align: center;
    color: white;
}

.file-download-progress-bar {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.file-download-progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.file-download-progress-text {
    font-size: 10px;
    font-weight: bold;
}

/* 错误提示 */
.file-download-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(244, 67, 54, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: white;
}

.file-download-error-icon {
    font-size: 16px;
    margin-bottom: 4px;
}

.file-download-error-text {
    font-size: 10px;
    text-align: center;
    max-width: 40px;
    word-break: break-word;
}

.wk-message-file .fileContent {
    flex: 1 1;
    min-width: 0;
}

.wk-message-file .fileContent .name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px; /* 限制最大宽度 */
}

.wk-message-file .fileContent .size {
    font-size: 12px;
    color: #666;
}

.wk-message-video {
    position: relative;
    cursor: pointer;
    /* background: #222; */
    background: #cfcfcf;
    border-radius: 8px;
    overflow: hidden;
    max-height: 300px;
    /* min-height: 150px; */
    /* min-width: 150px */
    width: 100%;
    height: 100%;
}

.wk-message-video-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
}

.wk-message-video-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 1;
    background: rgba(0, 0, 0, .5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 4px;
}

.wk-message-video-content-time {
    position: absolute;
    left: 8px;
    top: 8px;
    align-items: center;
    background-color: rgba(0, 0, 0, .5);
    border-radius: 4px;
    color: #fff;
    display: flex;
    font-size: 12px;
    height: 1.125rem;
    line-height: 1;
    padding: 2px 6px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    z-index: 2;
}
.semi-image-preview-footer .semi-image-preview-footer-disabled.semi-icon-download {
    display: none
}
/* 合并文件消息容器 */
.merged-files-container {
    display: grid;
    grid-gap: 12px;
    gap: 12px;
    /* 减少间距避免超出 */
    max-width: 400px;
    /* 恢复原来的最大宽度 */
    margin: 4px 0;
    /* 减少外边距 */
    padding: 4px;
    /* 减少内边距 */
    box-sizing: border-box;
    /* 确保padding包含在宽度内 */
    overflow-x: hidden;
}

/* 单个文件布局 */
.merged-files-single {
    grid-template-columns: 1fr;
}

/* 两个文件布局 */
.merged-files-double {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* 3-4个文件网格布局 */
.merged-files-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    /* 减少间距 */
}

/* 5个以上文件布局 */
.merged-files-multiple {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    /* 减少最小宽度 */
    max-width: 450px;
    /* 减少最大宽度 */
    gap: 12px;
    /* 减少间距 */
}

/* 文件项样式 */
.merged-file-item {
    position: relative;
    border-radius: 8px;
    /* 减少圆角 */
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    min-height: 120px;
    /* 减少最小高度 */
    box-sizing: border-box;
    /* 确保边框包含在尺寸内 */
}

.merged-file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* 减少悬停效果 */
}

/* 图片样式 */
.merged-image {
    aspect-ratio: 1;
    min-height: 120px;
    /* 减少最小高度 */
}

.merged-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 8px;
    /* 减少圆角 */
}

/* 视频样式 */
.merged-video {
    min-height: 120px;
    /* 减少最小高度 */
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 8px;
    /* 减少圆角 */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    /* 减少遮罩透明度 */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    /* 减少圆角 */
}

.play-icon {
    font-size: 24px;
    /* 减少播放图标大小 */
    color: white;
    margin-bottom: 4px;
    /* 减少底部间距 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* 减少阴影 */
}

.duration {
    font-size: 12px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 文件样式 */
.merged-file {
    display: flex;
    align-items: center;
    padding: 12px;
    /* 减少内边距 */
    min-height: 60px;
    /* 减少最小高度 */
    aspect-ratio: auto;
}

.file-icon {
    font-size: 24px;
    /* 减少图标大小 */
    margin-right: 12px;
    /* 减少右边距 */
    flex-shrink: 0;
}

.file-info {
    flex: 1 1;
    min-width: 0;
}

.file-name {
    font-size: 14px;
    /* 减少字体大小 */
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    /* 减少底部间距 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 12px;
    /* 减少字体大小 */
    color: #666;
}

/* 占位符样式 */
.file-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 14px;
}

.file-placeholder span:first-child {
    font-size: 24px;
    margin-bottom: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .merged-files-container {
        max-width: 100%;
        gap: 10px;
        /* 移动端进一步减少间距 */
        padding: 2px;
        /* 减少内边距 */
    }

    .merged-files-multiple {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .merged-file-item {
        min-height: 100px;
        /* 移动端减少高度 */
    }

    .merged-image,
    .merged-video {
        min-height: 100px;
    }
}

@media (max-width: 480px) {

    .merged-files-double,
    .merged-files-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .merged-files-multiple {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }

    .merged-files-container {
        gap: 8px;
        padding: 2px;
    }
}

/* 合并文件文字说明样式 */
.merged-files-text {
    margin-top: 8px;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    /* 改为深色，确保在白色背景上可见 */
    word-break: break-word;
    background: none;
    border: none;
}

/* 暗色主题下的文字说明样式 */
body[theme-mode=dark] .merged-files-text {
    color: #e0e0e0 !important;
    /* 暗色主题下使用浅色文字 */
    background: none;
    border: none;
}

body[theme-mode=dark] .wk-message-base-bubble-box.recv .messageTime {
    color: #888
}

.wk-message-card {
    background-color: white;
    width: 300px;
    cursor: pointer;
    border-radius: 8px;
}

body[theme-mode=dark] .wk-message-card {
    background-color: var(--wk-color-secondary);
}

.wk-message-card-content {
    display: flex;
    padding: 10px;
    align-items: center;
}

.wk-message-card-content-name {
    margin-left: 20px;
    color: var(--wk-text-item);

}

.wk-message-card-bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 10px 5px 10px;
} 

.wk-message-card-bottom-flag {
    font-size: 12px;
    color: #999;
}

.wk-mergeforwards {
    width: 300px;
    background-color: var(--wk-message-item);
    border-radius: 8px;
    cursor: pointer;
}

.wk-mergeforwards-content {
    padding: 10px 10px 0px 10px;
    color: black;

}

.wk-mergeforwards-content-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--wk-message-color);
}

.wk-mergeforwards-content-items {
    padding-bottom: 5px;
}

.wk-mergeforwards-content-items .wk-mergeforwards-content-item {
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    color: #333 !important;
    /* 改为深色，确保在白色背景上可见 */
}

.wk-mergeforwards-content-tip {
    display: flex;
    justify-content: space-between;
    color: #666 !important;
    /* 改为深色，确保在白色背景上可见 */
    font-size: 13px;
    padding: 2px 0px;
}

.wk-mergeforwards-content-tip p {
    margin-bottom: 0px;
}

.wk-mergeforwards-content-tip p:last-child {
    margin-top: -4px;
}

.wk-mergeforwards-content-line {
    width: 100%;
    background-color: var(--wk-line-color);
    height: 1px;
}

.wk-mergeforwardmessagelist-content-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wk-color-secondary);
}

/* 暗色主题下的样式调整 */
body[theme-mode=dark] .wk-mergeforwards-content-items .wk-mergeforwards-content-item {
    /* 暗色主题下使用浅色文字 */
    color: #e0e0e0 !important;

}

body[theme-mode=dark] .wk-mergeforwards-content-tip {
    /* 暗色主题下使用浅色文字 */
    color: #b0b0b0 !important;
}

:root {
  --wk-conversation-footer: 120px;
  --wk-height-conversation-replyview: 50px;
  --wk-height-pinned-messages: 60px;
  /* 新增：置顶消息栏高度 */
}

.wk-conversation {
  width: 100%;
  height: 100%;
  position: relative;
  /* 确保有定位上下文 */
  overflow: hidden;
  /* 防止内容溢出 */
}

.wk-conversation-content {
  width: 100%;
  height: calc(100% - 120px);
  height: calc(100% - var(--wk-conversation-footer));
  position: relative;
  transition: height 150ms ease-out, opacity 150ms ease-out;
  background-color: var(--wk-color-background);
}

/* 新增：当有置顶消息时，聊天内容区域高度需要减少 */
.wk-conversation.has-pinned-messages .wk-conversation-content {
  height: calc(100% - 120px - 60px);
  height: calc(100% - var(--wk-conversation-footer) - var(--wk-height-pinned-messages));
}

body[theme-mode="dark"] .wk-conversation-content {
  background-color: var(--wk-color-secondary-2);
}

.wk-conversation-hasreply .wk-conversation-content {
  height: calc(100% - 120px - 50px);
  height: calc(100% - var(--wk-conversation-footer) - var(--wk-height-conversation-replyview));
}

/* 新增：当有置顶消息且有回复时，聊天内容区域高度需要减少 */
.wk-conversation.has-pinned-messages.wk-conversation-hasreply .wk-conversation-content {
  height: calc(100% - 120px - 50px - 60px);
  height: calc(100% - var(--wk-conversation-footer) - var(--wk-height-conversation-replyview) - var(--wk-height-pinned-messages));
}

.wk-conversation-messages {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding:0 0.5vw;
  /* padding-bottom: 10px; */
}

.wk-message-item {
  width: 100%;
  display: flex;
  position: relative;
}

.wk-message-item-last {
  margin-bottom: 15px;
}

.wk-conversation-dragover .wk-message-item {
  pointer-events: none;
}

.wk-conversation-footer {
  width: 100%;
  height: 120px;
  height: var(--wk-conversation-footer);
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: absolute;
  bottom: 0px;
  overflow: visible !important;
}

.wk-conversation-footer-resizer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  cursor: ns-resize;
  z-index: 10;
}

.wk-conversation-footer-content {
  width: 100%;
  height: 100%;
}

.wk-conversation-chattoolbars {
  height: 100%;
  margin-bottom: 0px;
  display: flex;
  align-items: center;
}

.wk-conversation-chattoolbars-item {
  cursor: pointer;
}

/* 只对工具栏功能图标应用绿色 filter */
.dayun img[src*="func_"],
.dayun svg {
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(0%) !important;
  fill: #051B35 !important;
}

.normal img[src*="func_"],
.normal svg {
  filter: invert(52%) sepia(87%) saturate(372%) hue-rotate(84deg) brightness(93%) contrast(92%);
  fill: #30ba4a !important;
}

.wk-conversation-content-fileupload-mask {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  padding: 15px;
}

.wk-conversation-content-fileupload-mask-content {
  width: 100%;
  height: 100%;
  border: 1px dashed #999;
  border-radius: 4px;
  background-color: rgb(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  padding: 20px;
}

.wk-replyview {
  width: 100%;
  height: 100%;
  display: flex;
}

.wk-replyview-icon {
  height: 100%;
  padding: 0px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: var(--wk-line);
}

.wk-replyview-content {
  width: calc(100% - 130px);
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-left: 15px;
  color: var(--wk-color-font-tip);
  justify-content: center;
  padding: 0 8px;
  transition: background-color 0.2s ease;
}

.wk-replyview-content:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.wk-replyview-content-msg {
  display: inline-block;
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wk-replyview-content-first {
  width: 100%;
  margin-top: 2px;
}

.wk-replyview-content-second {
  margin-top: 2px;
}

.wk-replyview-content-userinfo {
  display: flex;
}

.wk-replyview-content-userinfo-name {
  display: flex;
  align-items: center;
  margin-left: 5px;
}

.wk-conversation-topview {
  transform: translate3d(0, 100%, 0);
  transition: transform var(--wk-layer-transition);
  background-color: white;
}

body[theme-mode="dark"] .wk-conversation-topview {
  background-color: var(--wk-color-secondary);
}

.wk-conversation-hasreply .wk-conversation-topview {
  transform: translate3d(0, 0, 0);
  height: 50px;
  height: var(--wk-height-conversation-replyview);
  box-shadow: 0.3rem -0.2rem 0.8rem 0.05rem rgb(114 114 114 / 5%);
  border-left: none;
}

.wk-conversation-hasreply .wk-messageinput-box {
  box-shadow: none;
}

.wk-replyview-close {
  height: 100%;
  padding: 0px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.wk-conversation-multiplepanel {
  height: 120px;
  height: var(--wk-conversation-footer);
  background-color: var(--wk-color-secondary);
  width: 100%;
  z-index: 999;
  position: absolute;
  bottom: 0px;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  visibility: hidden;
}

.wk-conversation-multiplepanel-show {
  transform: translateY(0);
  visibility: visible;
}

.wk-multiplepanel {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 10px;
}

.wk-multiplepanel-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wk-multiplepanel-content-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 60px;
  cursor: pointer;
}

.wk-multiplepanel-content-item:first-child {
  margin-left: 0px;
}

.wk-multiplepanel-content-item-icon {
  background-color: var(--wk-color-item);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wk-multiplepanel-content-item-icon-svg {
  width: 24px;
  height: 24px;
  fill: var(--wk-text-item);
}

.wk-multiplepanel-content-item-title {
  color: var(--wk-text-item);
  font-size: 14px;
  margin-top: 4px;
}

.wk-multiplepanel-close {
  position: absolute;
  top: 20px;
  left: 40px;
  padding: 10px;
  cursor: pointer;
}

.wk-conversationpositionview {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
}

.wk-conversationpositionview ul {
  margin-bottom: 0px;
}

.wk-conversationpositionview-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: white;

  box-shadow: 0 1px 2px rgba(114, 114, 114, 0.25098);
  color: rgba(112, 117, 121, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: scale(0.5, 0.5);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease;
  opacity: 0;
}

.wk-conversationpositionview-item img {
  width: 20px;
  height: 20px;
}

body[theme-mode="dark"] .wk-conversationpositionview-item {
  background-color: var(--wk-color-secondary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.wk-conversationpositionview-item.wk-reveale {
  transform: scale(1, 1);
  opacity: 1;
  pointer-events: all;
}

.wk-conversationpositionview-item i {
  font-size: 1.75rem;
}

.icon-arrow-down::before {
  content: "";
}

.wk-conversationpositionview-item .wk-conversation-unread-count {
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.45rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  font-weight: 500;
  text-align: center;
  position: absolute;
  top: -0.3rem;
  right: -0.3rem;
  background: red;
  color: #fff;
  pointer-events: none;
}

.wk-conversationpositionview ul li {
  margin-top: 20px;
}

.wk-message-item-reminder {
  animation: wk-message-item-reminder-move 2s;
  -webkit-animation: wk-message-item-reminder-move 2s;
}

@keyframes wk-message-item-reminder-move {
  to {
    background-color: var(--wk-color-theme);
  }
}

/*Safari 和 Chrome:*/

/* 置顶消息专用的蓝色闪烁样式 */
.wk-message-item-pinned-reminder {
  animation: wk-message-item-pinned-reminder-move 2s !important;
  -webkit-animation: wk-message-item-pinned-reminder-move 2s;
}

/* 置顶消息蓝色闪烁动画 #aad4f7、52c41a */
@keyframes wk-message-item-pinned-reminder-move {
  0% {
    background-color: transparent;
  }

  25% {
    background-color: var(--wk-color-theme);
  }

  50% {
    background-color: transparent;
  }

  75% {
    background-color: var(--wk-color-theme);
  }

  100% {
    background-color: transparent;
  }
}

/* 置顶消息蓝色闪烁动画 - WebKit版本 */

.pinned-messages-bar {
  background: #fffbe6;
  border-bottom: 1px solid #ffe58f;
  padding: 8px 16px 4px 16px;
  font-size: 14px;
  position: relative;
  width: 100%;
  min-height: 40px;
  z-index: 10;
  margin-bottom: 8px;
}

.pinned-title {
  color: var(--wk-color-theme);
  font-weight: bold;
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 2px;
  display: block;
}

.pinned-messages-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pinned-message-item {
  background: #fff1b8;
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  max-width: 100%;
  cursor: pointer;
  transition: box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(250, 173, 20, 0.08);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pinned-message-item:hover {
  box-shadow: 0 2px 8px rgba(250, 173, 20, 0.18);
  background: #ffe58f;
}

/* 新的置顶消息栏样式 */
.pinned-messages-bar-new {
  background: white;
  border-bottom: 1px solid #e8e8e8;
  padding: 8px 16px;
  /* 减少上下内边距 */
  font-size: 14px;
  position: relative;
  /* 改为relative定位，正常显示在页面流中 */
  width: 100%;
  height: 48px;
  /* 减少高度，与导航点区域高度一致 */
  margin-bottom: 0;
  display: flex;
  align-items: center;
  /* 改为center对齐，让内容垂直居中 */
  gap: 8px;
  /* 减少整体间距，让右侧内容更近 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  /* 确保不会超出父容器边界 */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  /* 防止内容溢出 */
  z-index: 1;
  /* 降低层级，确保不会覆盖模态框 */
  flex-shrink: 0;
  /* 防止被压缩 */
}

/* 确保.wk-conversation-content不是滚动容器 */
.wk-conversation-content {
  overflow: visible !important;
  /* 强制不滚动 */
}

/* 新增：Chat页面中的置顶消息栏容器样式 */
.wk-chat-pinned-messages {
  position: relative;
  z-index: 50;
  background: white;
  border-bottom: 1px solid #e8e8e8;
  /* 确保置顶消息栏不会超出其父容器 */
  overflow: hidden;
  /* 确保容器有正确的定位上下文 */
  position: relative;
  /* 确保容器有正确的边界 */
  width: 100%;
  box-sizing: border-box;
}

/* 置顶消息栏内容包装器 */
.pinned-content-wrapper {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* 减小间距 */
  min-width: 0;
  height: 40px;
  /* 与导航点区域高度一致 */
  overflow: hidden;
  justify-content: center;
  /* 让内容垂直居中 */
}

.pinned-message-content {
  color: #333;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  transition: color 0.2s;
}

.pinned-message-content:hover {
  color: var(--wk-color-theme);
}

.pinned-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pinned-clear-icon {
  color: #999;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pinned-clear-icon:hover {
  color: #666;
}

/* 新增：更多按钮样式 */
.pinned-more-btn {
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.pinned-more-btn:hover {
  transform: scale(1.05);
}

.pinned-more-btn:active {
  transform: scale(0.95);
}

/* 置顶消息弹窗样式 */
.pinned-messages-modal {
  max-height: 500px;
  overflow-y: auto;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
}

.pinned-navigation {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* 新增：带滚动条的导航容器 */
.pinned-navigation-container {
  display: flex;
  align-items: center;
  gap: 4px;
  /* 减少间距 */
  margin-right: 4px;
  /* 减少右边距 */
  flex-shrink: 0;
  width: auto;
  /* 让容器自适应内容宽度 */
  min-width: 50px;
  /* 减少最小宽度，因为现在只有3个点 */
}

/* 新增：分页导航点区域 */
.pinned-navigation-dots {
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* 增加间距，因为现在只有3个点 */
  height: 40px;
  /* 减少高度，与消息内容区域高度一致 */
  justify-content: center;
  align-items: flex-start;
  /* 确保始终左对齐 */
  width: 6px;
  /* 固定宽度，防止水平偏移 */
  flex-shrink: 0;
  padding: 4px 0;
  /* 减少上下内边距 */
}

/* 新增：翻页按钮 */
.pinned-page-btn {
  width: 14px;
  /* 进一步减少按钮尺寸 */
  height: 14px;
  /* 进一步减少按钮尺寸 */
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 8px;
  /* 减少字体大小 */
  font-weight: bold;
  transition: all 0.2s;
  flex-shrink: 0;
  position: relative;
  /* 确保定位稳定 */
}

.pinned-page-btn:hover {
  background-color: #e0e0e0;
  color: #333;
}

.pinned-page-btn:active {
  transform: scale(0.95);
}

/* 新增：按钮容器，确保布局稳定 */
.pinned-page-btn-container {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pinned-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: background-color 0.2s;
}

.pinned-dot.active {
  background-color: var(--wk-color-theme);
}

/* 新增：空导航点样式 */
.pinned-dot-empty {
  background-color: transparent;
  cursor: default;
  opacity: 0;
}

/* 消息定位高亮效果 */
.msg-locate-highlight {
  animation: msg-locate-flash 1.5s ease-in-out;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

@keyframes msg-locate-flash {
  0% {
    background-color: rgba(76, 175, 80, 0.1);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
  }

  50% {
    background-color: rgba(76, 175, 80, 0.2);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.5);
  }

  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

/* 置顶消息图片预览样式 */
.pinned-image-preview,
.pinned-video-preview,
.pinned-file-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  /* 限制最小高度 */
  max-height: 32px;
  /* 限制最大高度 */
}

.pinned-image-preview img {
  flex-shrink: 0;
}

.pinned-video-preview div,
.pinned-file-preview div {
  flex-shrink: 0;
}

.pinned-message-content {
  display: flex;
  align-items: center;
  min-height: 20px;
  max-height: 32px;
  /* 限制最大高度 */
  overflow: hidden;
}
.mentions {
    margin: 1em 0;
  }
  
  .mentions--singleLine .mentions__control {
    display: inline-block;
    width: 130px;
  }
  .mentions--singleLine .mentions__highlighter {
    padding: 1px;
    border: 2px inset transparent;
  }
  .mentions--singleLine .mentions__input {
    padding: 1px;
    border: 2px inset;
  }
  
  .mentions--multiLine .mentions__control {
    font-family: monospace;
    font-size: 14pt;
  }
  .mentions--multiLine .mentions__highlighter {
    border: 1px solid transparent;
    padding: 9px;
    min-height: 63px;
  }
  .mentions--multiLine .mentions__input {
    border: 1px solid silver;
    padding: 9px;
    outline: 0;
  }
  
  .mentions__suggestions__list {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 10pt;
    /* box-shadow: 15px 0px 15px -15px #eee, -15px 0px 15px -15px #eee; */
  }
  
  .mentions__suggestions__item {
    padding: 5px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  }
  
  .mentions__suggestions__item--focused {
    background-color: #cee4e5;
  }
  
  .mentions__mention {
    position: relative;
    z-index: 1;
    color: var(--wk-color-theme);
    text-shadow: none;
    /* text-shadow: 1px 1px 1px white, 1px -1px 1px white, -1px 1px 1px white,
      -1px -1px 1px white; */
    /* text-decoration: underline; */
    pointer-events: none;
  }
.wk-messageinput-box {
    background: #fff;
    width: 100%;
    height: 100%;
    position: relative;

    box-shadow: 0.3rem -0.2rem 0.8rem 0.05rem rgb(114 114 114 / 5%);
    border-left: none;
}

body[theme-mode=dark] .wk-messageinput-box {
    background-color: var(--wk-color-secondary);
}

.wk-messageinput-mute {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .wk-messageinput-box:hover {
     box-shadow: 0 0 10px rgb(0 0 0 / 15%)
} */

.wk-messageinput-inputbox {
    min-height: 80px;
    max-height: 300px;
    height: 120px;
    width: 100%;
    /* padding: 0px 15px 15px 15px; */
    box-sizing: border-box;
    transition: height 0.2s;
    position: relative;
    /* overflow: auto; */

}

.wk-messageinput-input__highlighter,
.wk-messageinput-input__input {
    height: 100% !important;
    min-height: 80px !important;
    max-height: 300px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

.wk-messageinput-input__input textarea {
    height: 100% !important;
    min-height: 80px !important;
    max-height: 300px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    resize: none !important;
    letter-spacing: 0.5em;
    line-height: 2;
}

.wk-messageinput-input {
    height: 100%;
    width: 100%;
    border: none;
    color: #333;
    font-size: 14px;
    overflow: visible !important;
    display: inline-block;
    -webkit-user-modify: read-write-plaintext-only;
    outline: none;
}

body[theme-mode=dark] .wk-messageinput-input {
    color: white;
}

.wk-messageinput-input:empty:before {
    content: attr(data-placeholder);
    position: absolute;
    color: #a9a9a9;
}

.wk-messageinput-bar {
    height: 40px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 10px;
}

.wk-messageinput-sendbtn {
    height: 28px;
    width: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: linear-gradient(180deg, #92a2b1 4.39%, #7b8e9f 94.46%);
    border-radius: 2px;
    cursor: pointer;
}

.wk-messageinput-hasValue {
    background-color: var(--wk-color-theme);
}

.wk-messageinput-member {
    height: 100%;
    width: 100%;
    padding: 0 16px;
    align-items: center;
    box-sizing: border-box;
    display: flex;
}

.wk-messageinput-iconbox {
    margin-right: 8px;
}

.wk-messageinput-icon {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.wk-messageinput-selected {
    color: #fff;
    /* background-color: #1264a3; */
}

.quickReplyPanel {
    position: absolute;
    box-shadow: 1px -1px 12px -2px rgb(0 0 0 / 28%);
    max-height: 400px;
    overflow-x: hidden;
    bottom: 0;
    background-color: white;
    width: 100%;
    border-radius: 4px;
}

.quickReplyPanel ul {
    margin: 0;
    padding: 0;
}

.quickReplyPanel ul li {
    list-style-type: none;
    height: 60px;
    border-bottom: 1px solid rgba(9, 30, 66, .12);
    cursor: pointer;
}

.quickReplyItem :hover {
    background-color: #f4f5f7;
}

.quickReplySelect {
    background-color: #5d657a !important;
    color: #fff !important;
}

.wk-messageinput-reply {
    margin: 10px 10px 0px 10px;
    background-color: #f5f6f7;
    display: flex;
    color: #8f959e;
    align-items: center;
}

.wk-messageinput-closeicon {
    margin: 0px 6px;
    cursor: pointer;
}

.wk-messageinput-replycontent {
    overflow: hidden;
    text-overflow: ellipsis;
    height: 22px;
}

.wk-messageinput-input__control {
    background-color: white;
}

body[theme-mode=dark] .wk-messageinput-input__control {
    background-color: var(--wk-color-secondary-2);
}

.wk-messageinput-input__suggestions {
    background-color: var(--wk-color-item);
}

body[theme-mode=dark] .wk-messageinput-input__input {
    color: white;
}

.wk-messageinput-input__input:focus,
.wk-messageinput-input__input textarea:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}
/* 图片懒加载样式 */
.image-lazy-load {
    position: relative;
    overflow: hidden;
}

.image-lazy-load-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.image-lazy-load-thumbnail {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    filter: blur(2px);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.image-lazy-load-full {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    transition: opacity 0.3s ease;
}

.image-lazy-load-icon {
    font-size: 24px;
    margin-bottom: 4px;
    opacity: 0.6;
} 
.icon-play::before {
    content: "";
    color: var(--wk-color-theme);
    font-size: 20px;
}

.icon-pause::before {
    content: "";
    font-size: 20px;
    color: var(--wk-color-theme);
}

.voicePlay {
    width: 48px;
    height: 48px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.wk-message-base-bubble-box.recv .voicePlay {
    background-color: var(--wk-color-secondary-2);
}

.voicePlay .icon-play {
    opacity: 1;
    transform: scale(1);
    transition: opacity .4s, transform .6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.voicePlay .icon-pause {
    opacity: 0;
    transform: scale(0.5);
}

.voicePlay i {
    position: absolute;
}

.voicePlaying .icon-pause {
    opacity: 1;
    transform: scale(1);
    transition: opacity .4s, transform .6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.voicePlaying .icon-play {
    opacity: 0;
    transform: scale(0.5);
}

.mediaLoading {
    position: absolute;
    cursor: pointer;
}

.voiceDownloading .icon-pause {
    opacity: 0;
    transform: scale(0.5);
}

.voiceDownloading .icon-play {
    opacity: 0;
    transform: scale(0.5);
}

.progressSpinner {
    width: auto;
    height: auto;
    background: transparent url(data:image/svg+xml;base64,PHN2ZyAgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjIzMTkiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0iTTU2Mi4yODExNzMgNTEwLjgwMDY4NWwyOTQuOTk2NjY0LTI5My40NjY4MjFjMTMuOTQ5NzEtMTMuODc4MDc5IDE0LjAyMDMxOC0zNi4zNjcyNzkgMC4xNDIyNC01MC4zMTY5ODktMTMuOTEzODk0LTEzLjk4NDUwMy0zNi4zNjcyNzktMTQuMDIwMzE4LTUwLjMxNjk4OS0wLjE0MjI0TDUxMi4wMzQ3OTIgNDYwLjM3NzI3MiAyMTkuNTI4ODU1IDE2Ni45ODIwODJjLTEzLjg0MjI2My0xMy44NzgwNzktMzYuMzY3Mjc5LTEzLjk0OTcxLTUwLjMxNjk4OS0wLjA3MTYzMS0xMy45MTM4OTQgMTMuODc4MDc5LTEzLjk0ODY4NyAzNi40MDMwOTUtMC4wNzE2MzEgNTAuMzUyODA1TDQ2MS41NzY1ODcgNTEwLjU4NzgzNyAxNjYuNzIxMTM5IDgwMy44NzY2MDRjLTEzLjk0OTcxIDEzLjg3ODA3OS0xNC4wMjAzMTggMzYuMzY3Mjc5LTAuMTQyMjQgNTAuMzE2OTg5IDYuOTM5MDM5IDYuOTc0ODU1IDE2LjA4NDMyNyAxMC40OTcwNzUgMjUuMjI5NjE0IDEwLjQ5NzA3NSA5LjA3MzY1NiAwIDE4LjE0ODMzNS0zLjQ1MTYxMiAyNS4wODczNzUtMTAuMzU0ODM1bDI5NC45MjYwNTYtMjkzLjM2MDM5OCAyOTUuMTc0NzIgMjk2LjA2NDk5NmM2LjkzOTAzOSA2Ljk3NDg1NSAxNi4wNDg1MTEgMTAuNDYyMjgzIDI1LjE5Mzc5OSAxMC40NjIyODMgOS4xMDk0NzIgMCAxOC4xODQxNTEtMy40ODc0MjggMjUuMTIzMTktMTAuMzkwNjUxIDEzLjkxMzg5NC0xMy44NzgwNzkgMTMuOTQ5NzEtMzYuMzY3Mjc5IDAuMDcxNjMxLTUwLjMxNjk4OUw1NjIuMjgxMTczIDUxMC44MDA2ODV6IiAgZmlsbD0iIzJmNzBmNSI+PC9wYXRoPjwvc3ZnPg==) no-repeat 49% 49%;
}

.progressSpinner svg {
    display: block;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    animation: 4s linear 0s infinite ProgressSpinnerAnimation;
}

.progressSpinner svg circle {
    transition: stroke-dashoffset .5s;
}

@keyframes ProgressSpinnerAnimation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.wk-message-voice {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.wk-message-voice-info {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}

.wk-message-voice-info-status {
    display: flex;
}

.wk-message-voice-info-time {
    display: flex;
    font-size: 14px;
}

.wk-message-voice-waveform {
    position: relative;
    width: 100%;
    height: 100%;
}

.wk-message-voice-lightWavform {
    position: absolute;
    top: 0px;
    left: 0px;
    overflow: hidden;
    transition: width 100ms ease-in-out;
    width: 0%;
}


.wk-message-video-content {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.wk-chat {
    width: 100%;
    height: 100%;
}

.wk-chat-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.wk-chat-search {
    height: var(--wk-height-chat-search);
    width: 100%;
    padding: 0px 20px 0px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.wk-chat-title {
    width: 250px;
    font-size: 24px;
    font-weight: 500;
}

body[theme-mode=dark] .wk-chat-title {
    color: white;
}

.wk-chat-filter {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    justify-content: center;
}

.wk-chat-conversation-list {
    width: 100%;
    flex: 1 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    /* 允许flex子项收缩 */
}

.wk-chat-conversation-list-loading {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.wk-chat-search-loading {
    text-align: center;
    padding: 20px;
    color: #888;
}

.wk-chat-search-title {
    font-weight: 600;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    padding: 0 8px;
}

.wk-chat-search-item {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 4px;
    background-color: #f8f9fa;
}

.wk-chat-content-right {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
}

@media screen and (max-width: 640px) {
    .wk-chat-content-right {
        width: 100%;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        transform: translate3d(0, 0, 0);
        transition: transform var(--wk-layer-transition);
    }

    .wk-chat-content:not(.wk-conversation-open) .wk-chat-content-right {
        transform: translate3d(100vw, 0, 0);
    }

    .wk-chat-conversation-header-back {
        display: flex !important;
    }
}

.wk-chat-content-chat {
    width: 100%;
    height: 100%;
    transition: width 150ms ease-in-out 0s;
}

.wk-chat-content-right.wk-chat-channelsetting-open .wk-chat-content-chat {
    width: calc(100% - var(--wk-wdith-chat-channelsetting));
}

.wk-chat-conversation {
    width: 100%;
    height: calc(100% - var(--wk-height-chat-conversation-header));
    /* 当有群公告和置顶消息时，需要进一步减去它们的高度 */
    /* 群公告高度约为40px，置顶消息栏高度约为60px */
}

/* 使用更简单的方法：通过JavaScript动态计算高度 */
/* 这里提供一个基础的CSS，实际的高度调整将通过JavaScript实现 */

.wk-chat-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--wk-color-secondary);
}

.wk-chat-empty img {
    height: 340px;
    transform: scale(1.14);
}

body[theme-mode=dark] .pinned-messages-bar-new {
    background-color: var(--wk-color-secondary) !important;
    color: #fff;
}

body[theme-mode=dark] .pinned-message-content {
    color: #fff;
}

.wk-chat-conversation-header-setting {
    display: flex;
    align-items: center;
}

.wk-chat-channelsetting {
    pointer-events: auto;
    width: var(--wk-wdith-chat-channelsetting);
    height: 100%;
    transition: margin-right 150ms ease-in-out 0s;
    position: absolute;
    z-index: 99;
    top: 0;
    right: 0;
    border-left: var(--wk-line);
    margin-right: calc(0px - var(--wk-wdith-chat-channelsetting));
    background-color: var(--wk-color-secondary);
}

@media screen and (max-width: 1275px) {
    .wk-chat-channelsetting {
        box-shadow: 0 .25rem .5rem .125rem rgba(114, 114, 114, 0.25098);
        border-left: none;
    }

    body[theme-mode=dark] .wk-chat-channelsetting {
        box-shadow: 0 .25rem .5rem .125rem rgba(0, 0, 0, 0.25098);
    }

    .wk-chat-content-right.wk-chat-channelsetting-open .wk-chat-content-chat {
        width: 100%;
    }
}

.wk-chat-content-right.wk-chat-channelsetting-open .wk-chat-channelsetting {
    margin-right: 0px;
}

.wk-chat-conversation-list-loading {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.wk-contactsselect {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wk-contactsselect-search {
    margin: 8px;
}

.wk-contactsselect-content {
    width: 100%;
    height: calc(100% - var(--wk-height-viewqueueheader));
    min-height: 30vh;
    overflow-y: auto;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.wk-contactsselect-group-header {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.wk-contactsselect-group-header-checkbox {
    margin-right: 4px;
    margin-left: 10px;
}

.wk-contactsselect-group-header-title {
    cursor: pointer;
    margin-left: 8px;
    font-weight: 600;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wk-contactsselect-group-header-arrow {
    flex-shrink: 0;
    cursor: pointer;
    margin-left: 8px;
}

.wk-contactsselect-member-item {
    display: flex;
    align-items: center;
    padding: 4px 0 4px 24px;
}

.wk-contactsselect-member-checkbox {
    margin-right: 8px;
}

.wk-contactsselect-member-remark {
    font-weight: 600;
}

.wk-contactsselect-member-username {
    color: #888;
    font-size: 12px;
    margin-left: 2px;
}

.wk-contactsselect-loading {
    padding: 40px 0;
    text-align: center;
}

.wk-contactsselect-loading-icon {
    font-size: 24px;
    margin-bottom: 16px;
}

.wk-nickname-box {
    margin-left: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1;
    min-width: 0;
    flex-shrink: 0;
    display: block;
    height: 40px;
    line-height: 40px;
}

.wk-loading-row {
     border: none;
}

.wk-loading-title {
     color: var(--semi-color-text-2);
     font-weight: 500;
}

.wk-loading-subtitle {
     color: var(--semi-color-text-2);
     margin: 2px 0px
}

.wk-real-list {
     overflow: hidden auto;
     width: 98%;
}
.wk-friendadd {
    height: 100%;
}

.wk-friendadd .wk-search-box {
    border-radius: 0px;
    background-color: white;
    margin: 0px 15px;
}

.wk-friendadd .wk-search-input {
    max-width: 100%;
}

.wk-friendadd .wk-search-input input {
    width: 250px;
}

.wk-friendadd-content-qrcode {
    margin-top: 10px;
    text-align: center;
}

body[theme-mode=dark] .wk-friendadd-content-qrcode {
    color: white;
}

.wk-friendadd-content-qrcode img {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.wk-add-friend-group-button {
    padding: 5px;
    cursor: pointer;
    color: black;
}

.wk-add-friend-group-button-dy {
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

body[theme-mode=dark] .wk-chat-popover {
    background-color: var(--wk-color-secondary);
    color: white;
    --color-popover-bg-default: red
}

body[theme-mode=dark] .wk-add-friend-group-button {
    color: white;
}
.wk-chat-conversation-header {
    height: var(--wk-height-chat-conversation-header);
    width: 100%;
    background-color: white;
    display: flex;
    flex: 1 1;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 1px rgba(114, 114, 114, 0.168627);
    z-index: 11;
    padding: 0.5rem 0.8125rem 0.5rem 1.5rem;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
}

body[theme-mode=dark] .wk-chat-conversation-header {
    background-color: var(--wk-color-secondary);
    box-shadow: 0 1px 1px rgba(255, 255, 255);
}

.wk-chat-conversation-header-left {
    display: flex;
    align-items: center;
    flex: 1 1;
    min-width: 0;
}

.wk-chat-conversation-header-back {
    width: 40px;
    height: 40px;
    display: none;
    position: relative;
    justify-content: center;
    align-items: center;
}

.wk-chat-conversation-header-back-icon {
    position: absolute;
    /* transform: rotate(-45deg); */
    transform: rotate(180deg);
}

.wk-chat-conversation-header-back-icon::before,
.wk-chat-conversation-header-back-icon::after {
    position: absolute;
    left: 0;
    top: 0;
    content: "";
}

.wk-chat-conversation-header-back-icon::after {
    transform: rotate(-45deg) scaleX(0.75) translate(0, 0.375rem);
}

.wk-chat-conversation-header-back-icon::before {
    transform: rotate(45deg) scaleX(0.75) translate(0, -0.375rem);
}

.wk-chat-conversation-header-back-icon,
.wk-chat-conversation-header-back-icon::before,
.wk-chat-conversation-header-back-icon::after {
    width: 1.125rem;
    height: 0.125rem;
    border-radius: 0.125rem;
    background-color: rgb(112, 117, 121);
    transition: transform var(--wk-slide-transition);
}

/* channel信息 包含头像、标题、在线状态 */
.wk-chat-conversation-header-channel {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1 1;
    min-width: 0;
}

.wk-chat-conversation-header-channel-info {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    flex: 1 1;
    min-width: 0;
}

.wk-chat-conversation-header-channel-info-name {
    font-size: 14px;
    font-weight: 600;
    flex: 1 1;
    min-width: 0;
}

.wk-chat-conversation-header-channel-info-tip {
    font-size: 12px;
    color: #999;
}

.wk-chat-conversation-header-right {
    display: flex;
    align-items: center;
}

.wk-chat-conversation-header-right div {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.wk-chat-conversation-header-right div:last-child {
    margin-right: 0px;
}

.wk-chat-conversation-header-right-item {
    position: relative;
}

.wk-conversation-header-mask {
    background-color: rgb(0, 0, 0, 0.0);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    border-radius: var(--wk-border-radius);
}

.wk-conversation-header-mask:hover {
    background-color: rgb(0, 0, 0, 0.1);
}

/* 在线人数弹框 */
.wk-conversation-header-online-popover {
    min-width: 240px;
    width: 260px;
    max-height: 320px;
    overflow-y: auto;
    padding: 10px;
}

.wk-conversation-header-online-popover-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wk-conversation-header-online-popover-item {
    display: flex;
    align-items: center;
    padding: 6px 0px;
}

.wk-conversation-header-online-popover-item-right {
    flex: 1 1;
    flex-shrink: 0;
    min-width: 0;
    margin-left: 12px;
    flex: 1 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.wk-conversation-header-online-popover-item-right .title {
    font-weight: 500;
    font-size: 15px;
}

.wk-conversation-header-online-popover-item-right .sub-title {
    font-size: 12px;
    color: #1ca57c;
}
.wk-userinfo {
    position: relative;
    --wk-height-userInfo-footer: 60px;
    width: 100%;
    height: 100%;
}

.wk-userInfo-footer {
    width: 100%;
    height: var(--wk-height-userInfo-footer);
    background-color: white;
    position: absolute;
    bottom: 0px;
}

body[theme-mode=dark] .wk-userInfo-footer {
    background-color: var(--wk-color-secondary);
}

.wk-userinfo-user {
    width: 100%;
    display: flex;
}

.wk-userinfo-content {
    width: 100%;
    height: calc(100% - var(--wk-height-userInfo-footer));
    overflow: auto;
}

.wk-userinfo-user-info {
    flex: 1 1;
    min-width: 0;
    flex-shrink: 0;
    margin-left: 10px;
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 15px; */
}

.wk-userinfo-user-avatar {
    margin-left: 20px;
    border-radius: 40%;
    background-color: var(--wk-color-item);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wk-userinfo-user-info-name {
    font-size: 16px;
    color: var(--wk-text-item);
}

.wk-userinfo-user-info-others ul {
    margin-bottom: 0px;
    margin-top: 2px;
}

.wk-userinfo-user-info-others li {
    color: var(--wk-color-font-tip);
}

.wk-userinfo-footer-sendbutton {
    width: 100%;
    height: 100%;
    padding: 10px 15px 15px 15px;
}

.wk-userinfo-footer-sendbutton button {
    width: 100%;
    height: 40px;
}

.wk-userinfo-sections {
    margin-top: 20px;
}

.wk-userinfo-loading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.wk-userinfo-card {
    width: 280px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

body[theme-mode=dark] .wk-userinfo-card {
    background-color: var(--wk-color-secondary) !important;
}

.wk-userinfo-card-loading {
    width: 280px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wk-userinfo-card-header {
    display: flex;
    padding: 10px 12px;
    height: 40px;
    align-items: center;
    background-color: #f7f7f7;
}

body[theme-mode=dark] .wk-userinfo-card-header {
    background-color: var(--wk-color-secondary) !important;
}

.wk-userinfo-card-name {
    flex: 1 1;
    min-width: 0;
    flex-shrink: 0;
    margin-left: 12px;
    font-size: 15px;
    font-weight: 500;
}

.wk-userinfo-card-body {
    padding: 0px 15px;
}

.wk-userinfo-card-section {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wk-userinfo-card-section:last-child {
    border-bottom: none;
}

.wk-userinfo-shared-groups-list {
    max-height: 160px;
    overflow-y: auto;
    background-color: #f7f7f7;
    border-radius: 4px;
    padding: 0px 10px;
    margin-top: 10px;
}

body[theme-mode=dark] .wk-userinfo-shared-groups-list {
    background-color: var(--wk-color-secondary) !important;
}

.wk-userinfo-shared-groups-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.wk-userinfo-shared-groups-item:last-child {
    border-bottom: none;
}

.wk-userinfo-shared-groups-item .wk-avatar {
    margin-right: 10px;
}

.wk-userinfo-card-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    min-height: 22px;
}

.wk-userinfo-card-row:last-child {
    margin-bottom: 0;
}

.wk-userinfo-card-row-label {
    width: 90px;
    color: #666;
}

.wk-userinfo-card-row-value {
    flex: 1 1;
    color: #111;
}

body[theme-mode=dark] .wk-userinfo-card-row-value {
    color: var(--wk-text-item);
}

.wk-userinfo-card-row-action {
    color: #999;
    cursor: pointer;
}

.wk-userinfo-card-row-action:hover {
    color: #333;
}

.wk-userinfo-card-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
}

.wk-userinfo-card-footer-item {
    cursor: pointer;
    color: #333;
    flex: 1 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 100%;
}

.wk-userinfo-card-footer-item+.wk-userinfo-card-footer-item {
    border-left: 1px solid #f0f0f0;
}

body[theme-mode=dark] .wk-userinfo-card-footer-item {
    color: var(--wk-text-item);
    border-left: 1px solid var(--wk-color-border);
}

.wk-userinfo-card-footer-item.primary {
    color: var(--wk-color-theme);
}

body[theme-mode=dark] .wk-userinfo-card-footer-item.primary {
    color: var(--wk-color-theme);
}

.wk-common-groups {
    display: flex;
    align-items: center;
}

.wk-section {
  margin-top: 10px;
}

.wk-section:first-child {
  margin-top: 0px;
}

.wk-section-row:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

.wk-section-title {
  padding: 5px 15px;
  color: var( --wk-color-font-tip);
  font-size: 13px;
}

.wk-section-subtitle {
  padding: 5px 15px;
  color: var( --wk-color-font-tip);
  font-size: 13px;
}


:root {
    --wk-channelsetting-header: 56px;
}

.wk-channelsetting {
    width: 100%;
    height: 100%;
    background-color: var(--wk-color-secondary);
}

.wk-channelsetting-header {
    width: 100%;
    height: 56px;
    height: var(--wk-channelsetting-header);
    padding: 0.5rem 0.8125rem;
    display: flex;
    align-items: center;
}

.wk-channelsetting-close {
    width: 44px;
    height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
}

.wk-channelsetting-close:hover {
    background-color: rgb(112,117,121,0.08);
}

.wk-channelsetting-close-icon {
    position: absolute;
    transform: rotate(-45deg);
}

.wk-channelsetting-close-icon,.wk-channelsetting-close-icon::before,.wk-channelsetting-close-icon::after {
    width: 1.125rem;
    height: 0.125rem;
    border-radius: 0.125rem;
    background-color: rgb(112,117,121);
    transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

.wk-channelsetting-close-icon::before {
    transform: rotate(90deg);
}

.wk-channelsetting-close-icon::before ,.wk-channelsetting-close-icon::after {
    position: absolute;
    left: 0;
    top: 0;
    content: "";
}

.wk-state-back {
    transform: rotate(180deg);
}

.wk-state-back::before {
    transform: rotate(45deg) scaleX(0.75) translate(0, -0.375rem);
}

.wk-state-back::after {
    transform: rotate(-45deg) scaleX(0.75) translate(0, 0.375rem);
}




.wk-channelsetting-box {
    width: 100%;
    height: calc(100% - 56px);
    height: calc(100% - var(--wk-channelsetting-header));
    overflow: hidden;
    position: relative;
}

.wk-channelsetting-content {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding-bottom: 40px;
}

.wk-channelsetting-channel-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;

}

.wk-channelsetting-avatar {
    /* 高宽比率 */
    width: 64px;
    height: 64px; 
    position: relative;
}

.wk-channelsetting-avatar img {
    width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 50%;
}

.wk-channelsetting-name {
    color: var(--wk-color-theme);
    font-size: 16px;
    font-weight: 600;
    margin-left: 10px;
    font-weight: 500px;
}


.wk-channelsetting-header-title-box {
    color: #999;
   display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    flex: 1 1;
}

.wk-channelsetting-header-title {
    font-size: 18px;
    font-weight: 500;
    margin-left: 1.375rem;
    color: black;
}

.wk-channelsetting-header-title-box-open .wk-channelsetting-header-title{
    display: none;
}

.wk-channelsetting-header-title-route {
    font-size: 18px;
    font-weight: 500;
    margin-left: 1.375rem;
    color: black;
    position: absolute;

    transform: translate3d(100vw, 0, 0);
    transition: transform var(--wk-layer-transition);
    width: 240px;

}

.wk-channelsetting-header-title-box-open .wk-channelsetting-header-title-route {
    transform: translate3d(0, 0, 0);
}



.wk-channelsetting-route {
    width: 100%;
    height: 100%;
    background-color: var(--wk-color-secondary);
    position: absolute;
    top: 0px;
    overflow: hidden;
    transform: translate3d(100vw, 0, 0);
    transition: transform var(--wk-layer-transition);
}

.wk-channelsetting-route-open {
    transform: translate3d(0, 0, 0);
}

.wk-channelsetting-route-content {
    width: 100%;
    height: 100%;
}

.wk-channelsetting-header-right-view {
    opacity: 0;
    transition: opacity 500ms ease-out;
}

.wk-channelsetting-header-right-view-open {
    opacity: 1;
}

.wk-channelsetting-content-loading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.wk-channelmanage {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.wk-route {
    width: 100%;
    height: 100%;
    --wk-height-route-header: 56px;
}

.wk-route-header {
    width: 100%;
    height: var(--wk-height-route-header);
    padding: 0.5rem 0.8125rem;
    display: flex;
    align-items: center;
    background-color: var(--wk-color-secondary);
}

.wk-route-content {
    width: 100%;
    height: calc(100% - var(--wk-height-route-header));
    background-color: var(--wk-color-secondary);
    position: relative;
    /* opacity: 1; */
    /* transition: opacity 150ms ease-in 0s; */
}

.wk-route-content-route {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    transform: translate3d(100vw, 0, 0);
    transition: transform var(--wk-layer-transition);
}

.wk-route-content-next {
   width: 100%;
   height: 100%;
   background-color: var(--wk-color-secondary);
   overflow: auto;
   /* transition: opacity 350ms ease-in 0s; */
}

.wk-route-header-close {
    width: 44px;
    height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
}

.wk-route-header-close:hover {
    background-color: rgb(112,117,121,0.08);
}

.wk-route-header-close-icon {
    position: absolute;
    transform: rotate(-45deg);
}

.wk-route-header-close-icon,.wk-route-header-close-icon::before,.wk-route-header-close-icon::after {
    width: 1.125rem;
    height: 0.125rem;
    border-radius: 0.125rem;
    background-color: rgb(112,117,121);
    transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

.wk-route-header-close-icon::before {
    transform: rotate(90deg);
}

.wk-route-header-close-icon::before ,.wk-route-header-close-icon::after {
    position: absolute;
    left: 0;
    top: 0;
    content: "";
}


.wk-state-back {
    transform: rotate(180deg);
}

.wk-state-back::before {
    transform: rotate(45deg) scaleX(0.75) translate(0, -0.375rem);
}

.wk-state-back::after {
    transform: rotate(-45deg) scaleX(0.75) translate(0, 0.375rem);
}




.wk-route-header-title-box {
    color: #999;
   display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    flex: 1 1;
}

.wk-route-header-title-box-open {

}

.wk-route-header-title {
    font-size: 18px;
    font-weight: 500;
    margin-left: 1.375rem;
    color: black;
}

body[theme-mode=dark]  .wk-route-header-title {
    color: white;
}


.wk-route-header-title-box-open .wk-route-header-title{
    display: none;
}

.wk-route-header-title-next {
    font-size: 18px;
    font-weight: 500;
    margin-left: 1.375rem;
    color: black;
    position: absolute;
    opacity: 0;
    transform: translate3d(100vw, 0, 0);
    transition: transform var(--wk-layer-transition),opacity 500ms ease-in 0s;
    width: 180px;

}

body[theme-mode=dark] .wk-route-header-title-next {
    color: white;
}

.wk-route-header-title-box-open .wk-route-header-title-next {
    transform: translate3d(0, 0, 0);
    opacity:1;
}

.wk-route-content-route-open .wk-route-content {
    /* opacity: 0; */
}

.wk-route-content-route-open .wk-route-content-route {
    transform: translate3d(0, 0, 0);
}

.wk-route-content-route-open .wk-route-content-next {
    /* opacity: 1; */
}


.wk-route-header-right-view {
    opacity: 0;
    transition: opacity 500ms ease-out;
}

.wk-route-header-right-view-open {
    opacity: 1;
}





.wk-viewqueue {
    width: 100%;
    height: 100%;
    position: relative;
}

.wk-viewqueue-view{
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: var(--wk-color-secondary);
    transition: transform var(--wk-layer-transition);
    overflow: hidden;
}

.wk-viewqueue-view-in {

    animation: routeAnimationIn 0.25s;
    -webkit-animation: routeAnimationIn 0.25s; /* Safari 与 Chrome */
}

.wk-viewqueue-view-out {
    animation: routeAnimationOut 0.5s;
    -webkit-animation: routeAnimationOut 0.5s; /* Safari 与 Chrome */
}

@keyframes routeAnimationOut {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(100vw, 0, 0);
    }
}

@keyframes routeAnimationIn {
    from {
        transform: translate3d(100vw, 0, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}
:root {
  --wk-color-theme: #30ba4a;
  --wk-color-secondary: rgba(246, 246, 246);
  --wk-color-secondary-2: rgba(246, 246, 246);
  --wk-color-hover: #eee;
  /* 提示类型的字体颜色 */
  --wk-color-font-tip: rgb(170, 170, 170);
  --wk-width-layout-content-left: 300px;
  /* --wk-height-chat-search: 65px; */
  --wk-height-chat-search: 64px;
  --wk-height-chat-conversation-header: 64px;
  --wk-wdith-chat-channelsetting: 340px;
  --wk-layer-transition: 300ms cubic-bezier(0.33, 1, 0.68, 1);
  --wk-slide-transition: 450ms cubic-bezier(0.25, 1, 0.5, 1);

  --wk-line: 1px solid #eee;
  --wk-line-color: #eee;

  --wk-color-item: white;
  --wk-text-item: rgba(9, 30, 66, .87);

  --wk-message-item: white;
  --wk-message-color: #0F0F0F;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body[theme-mode=dark] {
  --wk-color-secondary: #0F0F0F;
  --wk-color-secondary-2: rgb(33, 33, 33);
  --wk-line: 1px solid rgb(255, 255, 255, 0.1);
  --wk-line-color: rgb(255, 255, 255, 0.1);
  --wk-color-item: rgb(33, 33, 33);
  --wk-text-item: white;
  color: white !important;

  --wk-message-item: #0F0F0F;
  --wk-message-color: white;

  --semi-color-primary: #64cb77;
  --semi-color-primary-hover: rgb(177, 229, 186, 0.5);

}

/* ::-webkit-scrollbar-thumb:window-inactive {
    background:rgba(255,0,0,0.4);
  } */

html {
  height: 100%;
  box-sizing: border-box;
}

body {
  height: 100%;
  margin: 0;
  margin: 0;
  /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif; */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Cantarell,sans-serif; */
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Apple Color Emoji", "Helvetica Neue", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--background-color);
  color: rgba(9, 30, 66, .87);

  --semi-color-primary: #30ba4a;
  /* --semi-color-primary-hover: rgb(48, 186, 74, 0.5); */
}

div {
  outline: none;
  /** 让div没有焦点边框 不加这个 第一次打开Modal会聚焦**/
}

#root {
  height: 100%;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

.page {
  width: 100%;
  height: 100%;
  background-color: rgb(236, 239, 243);
}

.pageContent {
  padding: 0px 40px;
  overflow-y: auto;
}

.pageContent.space {
  padding-top: 40px;
  width: 100%;
  height: 100%;
}

@font-face {
  font-family: "icomoon";
  src: url(../../static/media/icomoon.536087723585cc76b849.woff2);
}

[class^=icon-],
[class*=" icon-"] {
  font-family: "icomoon" !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-feature-settings: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul {
  list-style-type: none;
  margin-block-start: 0px;
  margin-block-end: 0px;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 0px;
}

.wk-loading {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 15px 0px;
}

.wk-text-oneline {
  width: 100%;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wk-text-multiplelines {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  -webkit-line-clamp: 3;
  /* 指定显示3行 */
  line-clamp: 3;
  overflow: hidden;
}

.wk-text-wrap {
  word-break: break-all;
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-break: anywhere
}

.semi-modal-confirm-content {
  word-break: break-all;
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-break: anywhere
}

.drag-modal-content-drag{
     position: relative !important;
}

body[theme-mode=dark] .semi-badge-count {
  color: white;
}
.wk-channelavatar {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 40px;
    flex-direction: column;
}

.wk-channelavatar-avatar {
    width: 200px;
    height: 200px;
    
}

.wk-channelavatar-upload {
    margin-top: 20px;
}

.wk-iconclick {
   padding: 10px;
}

.wk-iconclick  img {
    width: 20px;
    height: 20px;
}
.wk-message-card-bottom-time {
    position: absolute;
    right: 10px;
    top: -5px;
    color: #999 !important;
}

.red-packet-message {
  display: flex;
  flex-direction: column;
  max-width: 280px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
  transition: all 0.3s ease;
  margin: 8px 0;
  align-self: flex-start;
}

.red-packet-message:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);
}

.red-packet-message.dimmed {
  background: linear-gradient(135deg, #ffb3b3 0%, #ffc9c9 100%);
  box-shadow: 0 2px 8px rgba(255, 179, 179, 0.3);
}

.red-packet-message.dimmed:hover {
  box-shadow: 0 4px 12px rgba(255, 179, 179, 0.4);
}

.red-packet-container {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  min-height: 60px;
}

.red-packet-icon {
  flex-shrink: 0;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.red-packet-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.red-packet-blessing {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
  word-break: break-word;
}

.red-packet-status {
  color: #ffffff;
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.2;
}

.red-packet-message.dimmed .red-packet-blessing,
.red-packet-message.dimmed .red-packet-status {
  color: #ffffff;
  opacity: 0.8;
}

.red-packet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.red-packet-sender {
  color: #ffffff;
  font-size: 12px;
  opacity: 0.9;
}

.red-packet-time {
  color: #ffffff;
  font-size: 12px;
  opacity: 0.7;
}

.red-packet-message.dimmed .red-packet-sender,
.red-packet-message.dimmed .red-packet-time {
  opacity: 0.6;
}

/* 红包详情模态窗口样式 */
.red-packet-modal {
  padding: 0;
}

.red-packet-summary {
  padding: 20px;
  text-align: center;
  background: #fff;
}

body[theme-mode=dark] .red-packet-summary {
  background: var(--wk-color-secondary) !important;
}

.remaining-amount {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.amount-label {
  color: #666;
  margin-bottom: 8px;
  text-align: left;
  width: 100%;
  font-size: 18px;
}

.amount-value {
  font-size: 36px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 8px;
}

body[theme-mode=dark] .amount-value {
  color: #fff !important;
}

.progress-info {
  font-size: 14px;
  color: #999;
  text-align: left;
  width: 100%;
}

.divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0;
}

.receive-list-container {
  padding: 0;
  background: #fff;
}

body[theme-mode=dark] .receive-list-container {
  background: var(--wk-color-secondary) !important;
}

.receive-list-content {
  height: 300px;
  overflow-y: auto;
  padding: 0 20px;
}

.loading-text,
.empty-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  color: #999;
  font-size: 14px;
}

.receive-list {
  padding: 12px 0;
}

.receive-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.receive-item:last-child {
  border-bottom: none;
}

.user-avatar {
  flex-shrink: 0;
  margin-right: 12px;
}

.avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

.avatar-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

.user-info {
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.receive-time {
  font-size: 12px;
  color: #999;
}

.receive-amount {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: #ff4d4f;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .red-packet-message {
    max-width: 240px;
  }
  
  .red-packet-container {
    padding: 10px 12px;
    min-height: 50px;
  }
  
  .red-packet-blessing {
    font-size: 13px;
  }
  
  .red-packet-status {
    font-size: 11px;
  }
} 
.wk-redpacket-toolbar {
  display: inline-block;
}

.wk-redpacket-toolbar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.wk-redpacket-toolbar-content:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.wk-redpacket-toolbar-content-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wk-redpacket-toolbar-content-icon img {
  width: 16px;
  height: 16px;
} 
.wk-indextable {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.wk-indextable-section-title {
    background-color: var(--wk-color-secondary);
    margin-left: 15px;
}

.wk-indextable-item {
    display: flex;
    align-items: center;
    padding: 5px 15px 5px 25px;
    cursor: pointer;
}

body[theme-mode=dark] .wk-indextable-item {
    background-color: var(--wk-color-secondary);
}

.wk-indextable-item:hover {
    background-color: var(--wk-color-hover);
}

.wk-indextable-item-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.wk-indextable-item-name {
     margin-left: 15px;
     flex: 1 1;
     min-width: 0;
     flex-shrink: 0;
}
.wk-subscribers-page-item {
    display: flex;
    align-items: center;
}
.wk-subscribers-page-item .wk-avatar {
    margin-right: 10px;
}

body[theme-mode=dark]  .wk-indextable-item-name {
    color: white;
}

.wk-indextable-search {
    padding: 10px 0px;
    display: flex;
    overflow: hidden;
    width: 100%;
    background-color: #f4f4f5;
    z-index: 10;
}

body[theme-mode=dark] .wk-indextable-search  {
    background-color: var(--wk-color-secondary-2);
}

.wk-indextable-item-index {
    width: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}

body[theme-mode=dark] .wk-indextable-item-index {
    color: white;
}

.wk-indextable-checkbox {
    margin-right: 10px;
}

.wk-indextable-search-box {
    display: flex;
    min-width: 100px;
    height: 50px;
    background-color: #f4f4f5;
}

body[theme-mode=dark] .wk-indextable-search-box  {
    background-color: var(--wk-color-secondary-2);
}

.wk-indextable-selected-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow-x: scroll;
}

.wk-indextable-search-icon {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.wk-indextable-search-input {
    margin-left: -20px;
    max-width: 100px;
}

.wk-indextable-search-input input {
    flex: 1 1;
    height: 32px;
    font-size: 12px;
    line-height: 18px;
    background-color: transparent;
    color: #1f2329;
    outline: none;
    border: none;
    height: 100%;
    padding-left: 25px;
}

body[theme-mode=dark] .wk-indextable-search-input input {
    color: white;
}

.wk-indextable-select-user {
    padding: 0px 5px;
    cursor: pointer;
}

.wk-indextable-search .wk-indextable-select-user img{
    border-radius: 50%;
}

.wk-indextable-contacts {
    width: 100%;
    height: calc(100% - 70px);
    overflow-y: scroll;
}

.custom-rect-checkbox {
    display: flex;
    align-items: center;
    margin-right: 10px;
}
.rect-box {
    width: 18px;
    height: 18px;
    border: 2px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.custom-rect-checkbox.checked .rect-box {
    border-color: #30ba4a;
    background: #eaffea;
}
.custom-rect-checkbox.disabled .rect-box {
    border-color: #eee;
    background: #f5f5f5;
    cursor: not-allowed;
}
.rect-tick {
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2.5px solid #30ba4a;
    border-bottom: 2.5px solid #30ba4a;
    transform: rotate(-45deg);
    position: absolute;
    left: 3px;
    top: 2px;
}

.wk-inputedit {
    width: 100%;
    height: 50px;
   
}

.wk-inputedit .semi-input-textarea-wrapper {
    background-color: var(--wk-color-item);
}

.wk-inputedit-placeholder {
    font-size: 13px;
    color: #999;
    margin: 5px 0px 0px 5px;
}
.wk-list-item {
    width: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    background-color: white;
    justify-content: space-between;
    box-sizing: border-box;
    -moz-column-gap: 20px;
         column-gap: 20px;
}

body[theme-mode=dark] .wk-list-item {
    background-color: var(--wk-color-secondary-2);
}

.wk-list-item:hover {
    background-color: #eee;
}


.wk-list-item-ripple {
    overflow: hidden;
}

.wk-list-item-ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #666 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .7s, opacity .5s;
}

.wk-list-item-ripple:active:after {
    transform: scale(0, 0);
    opacity: .7;
    transition: 0s;
}

.wk-list-item-title {
    font-size: 15px;
    font-weight: 400;
    color: #000;
}

body[theme-mode=dark] .wk-list-item-title {
    color: white;
}

.wk-list-item-action {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin: 0;
    margin-left: auto;
}

.wk-list-item-subtitle {
    flex: 1 1;
    text-align: end;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    -moz-column-gap: 6px;
         column-gap: 6px;
}

.wk-list-item-subTitle__text {
    flex: 1 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: end;
    color: #b0b3b9;
    font-size: 15px;
    font-weight: 500;
    word-wrap: break-word;
    word-break: normal;
}
.wk-list-item-subTitle__icon {
    display: flex;
    align-items: center;
}

.wk-list-item-subtitle-oneline {
    display: inline-block;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wk-list-item-subtitle-muliteline {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    white-space: pre-line;
    word-wrap: break-word;
}

.wk-list-item-arrow {
    margin-right: -10px;
}

.wk-list-item-arrow img {
    width: 9px;
    height: 14px;
}

.wk-list-item-tip {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wk-color-font-tip);
    font-size: 13px;

}
.wk-subscribers {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.wk-subscribers-content {
    display: flex;
    flex-wrap: wrap;
    padding-left: 20px;
}

.wk-subscribers-item {
    width: 60px;
    height: 80px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
   
}

.wk-subscribers-item img {
    width: 50px;
    height: 50px;
    border-radius: 40%;
}

.wk-subscribers-item-name {
    font-size: 12px;
    color: rgba(9,30,66,.87);
    text-overflow: ellipsis;
    width: 100%;
    height: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    margin-top: 5px;
    line-height: 12px;
}

body[theme-mode=dark] .wk-subscribers-item-name {
    color: white;
}

.wk-subscribers-more {
    font-size: 14px;
    margin-top: 10px;
    color: var(--wk-color-theme);
    cursor: pointer;
    text-align: center;
}

.wk-subscribers-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.wk-subscribers-page .wk-indextable {
    flex: 1 1;
    min-height: 0;
}

.wk-message-system {
    padding: 10px 20px;
    width: 85%;
    margin: 0 auto;
    margin-top: 15px;
    font-size: 12px;
    color: rgba(9, 30, 66, 0.87);
    white-space: pre-line;
    text-align: center;
    /* 推荐使用 overflow-wrap，更优雅 */
    overflow-wrap: break-word;
}

body[theme-mode=dark] .wk-message-system {
    color: #999;
}

.wk-message-text {
    word-wrap: break-word;
    word-break: break-all;
    width: 100%;
}

.wk-message-text pre {
    margin-bottom: 0;
    white-space: pre-wrap;
    /*css-3*/
    white-space: -moz-pre-wrap;
    /*Mozilla,since1999*/
    white-space: -pre-wrap;
    /*Opera4-6*/
    white-space: -o-pre-wrap;
    /*Opera7*/
    word-wrap: break-word;
    /*InternetExplorer5.5+*/
    font-family: Helvetica;
}

.wk-message-text-richmention {
    cursor: pointer;
    text-decoration: underline;
}

.wk-message-text-send {
    color: white;
}

.wk-message-text-recv {
    color: black;
}

body[theme-mode=dark] .wk-message-text-recv {
    color: white;
}

.wk-message-text-richemoji img {
    width: 22px;
    height: 22px;
}

.wk-message-text-reply {
    display: flex;
    color: rgb(255, 255, 255, 0.5);
    font-size: 14px;
    flex-direction: column;
    cursor: pointer;
}

.wk-message-text-reply.wk-message-text-reply-recv {
    color: rgb(0, 0, 0, 0.5);
}


.wk-message-text-reply-author {
    display: flex;
    align-items: center;
}

.wk-message-text-reply-authoravatar {
    margin-right: 4px;
}

.wk-message-text-reply-content {
    width: 100%;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wk-message-text-content {
    margin: 0;
    word-break: break-word;
    line-height: 1.3125;
    text-align: left;
    text-align: initial;
    display: flow-root;
    unicode-bidi: plaintext;
}

.wk-message-voice-info-tail {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.voice-call-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px
}


.wk-message-location {
    cursor: pointer;
}

.wk-message-location-content {
    width: 250px;
    background-color: white;
    border-radius: 4px;
}

body[theme-mode=dark] .wk-message-location-content{
    background-color: var(--wk-color-secondary);
}


.wk-message-location-content-title {
    color: var(--wk-text-item);
    font-size: 16px;
    padding: 5px 5px 0px 5px;
}

.wk-message-location-content-address {
    color: #666;
    font-size: 12px;
    padding: 0px 5px 5px 5px;
}

.wk-message-location-content-locationimg {
    width: 250px;
    height: 100px;
    overflow: hidden;
    background-size: cover;
}

.wk-emojitoolbar {
  padding: 10px;
}

.wk-emojitoolbar img {
  width: 20px;
  height: 20px;
}

.wk-emojitoolbar-emojipanel {
  min-width: 360px;
  max-width: 460px;
  height: 372px;
  background-color: var(--wk-color-item);
  position: absolute;
  left: 20px;
  top: calc(-372px - 15px);
  box-shadow: 0 0.25rem 0.5rem 0.125rem rgba(114, 114, 114, 0.25098);
  border-radius: 0.75rem;

  transition: opacity 0.2s cubic-bezier(0.2, 0, 0.2, 1),
    transform 0.2s cubic-bezier(0.2, 0, 0.2, 1) !important;
  transform-origin: left bottom;
  visibility: hidden;
  z-index: 999;
}

body[theme-mode="dark"] .wk-emojitoolbar-emojipanel {
  box-shadow: 0 0.25rem 0.5rem 0.125rem rgba(0, 0, 0, 0.85098);
}

.wk-emojitoolbar-emojipanel-show {
  animation: emojiPanelAnimationShow 0.25s;
  -webkit-animation: emojiPanelAnimationShow 0.25s; /* Safari 与 Chrome */
  visibility: visible;
}

.wk-emojitoolbar-emojipanel-hide {
  animation: emojiPanelAnimationHide 0.25s;
  -webkit-animation: emojiPanelAnimationHide 0.25s; /* Safari 与 Chrome */
  visibility: visible;
}

@keyframes emojiPanelAnimationShow {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(1);
  }
}

@keyframes emojiPanelAnimationHide {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0);
  }
}

.wk-emojipanel {
  width: 100%;
  height: 100%;
}

.wk-emojipanel-tab {
  width: 100%;
  height: 40px;
  background-color: var(--wk-color-secondary);
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;

  display: flex;
  overflow-x: auto;
}

.wk-emojipanel-content {
  width: 100%;
  height: calc(100% - 40px);
  overflow: hidden;
  overflow-y: auto;
}

.wk-emojipanel-content ul {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  padding: 13px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  overflow-y: auto;
  margin-left: 8px;
}

.wk-emojipanel-content ul li {
  cursor: pointer;
  padding: 6px 4px;
}

.wk-emojipanel-content ul li img {
  height: 26px;
  width: 26px;
  margin: auto;
  display: block;

  transition: transform 0.3s;
  -moz-transition: transform 0.3s;
  -webkit-transition: transform 0.3s;
  -o-transition: transform 0.3s;
}

.wk-emojipanel-tab-item {
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wk-emojipanel-tab-item-selected {
  background-color: white;
}

body[theme-mode="dark"] .wk-emojipanel-tab-item-selected {
  background-color: var(--wk-color-secondary-2);
}

.wk-emojitoolbar-mask {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  z-index: 998;
  cursor: default;
}

.wk-emojipanel-content ul li img {
  height: 26px;
  width: 26px;
  margin: auto;
  display: block;

  filter: none !important;

  transition: transform 0.3s;
  -moz-transition: transform 0.3s;
  -webkit-transition: transform 0.3s;
  -o-transition: transform 0.3s;
}


.wk-smalltableedit {
    overflow-y: auto;
    width: 100%;
    height: 100%;
}

.wk-smalltableedit-content-item{
    display: flex;
    padding: 5px 15px;
    background-color: var(--wk-color-item);
}

.wk-smalltableedit-content-item-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


.wk-smalltableedit-content-item-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.wk-smalltableedit-content-item-name {
    margin-left: 15px;
    max-width: 200px;
    line-height: 40px;
    color: var(--wk-text-item);
   
}

.wk-smalltableedit-content-item-action {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}


.wk-channelmanagerlist {
    overflow-y: auto;
    width: 100%;
    height: 100%;
}




.wk-imagetoolbar {
   
}

.wk-imagetoolbar-content {
    padding: 10px;
}

.wk-imagetoolbar-content-icon  img{
    width: 20px;
    height: 20px;
}

.wk-imagetoolbar-content-icon {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


.wk-imagedialog {
    display: flex;
    justify-content: center;
    align-items: center;

    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-app-region: no-drag;
    z-index: 100;
}

.wk-imagedialog-mask {
    position: absolute;
    background-color: rgba(0,0,0,.3);
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.wk-imagedialog-content {
    width: 420px;
    position: relative;
    padding: 28px;
    background: var(--wk-color-item);
    box-shadow: 0 2px 8px 0 rgba(0,0,0,.2);
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
    max-height: 580px;
}

.wk-imagedialog-content-close {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 28px;
    right: 28px;
    font-size: 18px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    line-height: 18px;
}

.wk-imagedialog-content-close svg {
    fill: var(--wk-text-item);
}

.wk-imagedialog-content-title {
    font-size: 16px;
    font-weight: 600;
}

.wk-imagedialog-content-body {
    width: 100%;
    font-size: 14px;
    text-align: center;
    margin-top: 28px;
}

.wk-imagedialog-content-preview {
    box-sizing: border-box;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    border-radius: 4px 4px 4px 4px;
}

.wk-imagedialog-content-previewImg {
    width: auto;
    height: auto;
    max-width: 240px;
    max-height: 240px;
    background-size: auto 100%;
    background-position: 50%;
    margin: 0 auto 16px;
}

.wk-imagedialog-content-preview-file {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.wk-imagedialog-content-preview--filecontent {
    flex: 1 1;
    width: 100%;
    height: 78px;
    padding: 12px 0px 12px 20px;
    overflow: hidden;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    background-color: rgb(247, 247, 247);
}

body[theme-mode=dark] .wk-imagedialog-content-preview--filecontent {
    background-color: var(--wk-color-secondary);
}

.wk-imagedialog-content-preview-file-icon {
    height: 78px;
    width: 78px;
    display: flex;
    align-items: center;
    border-radius: 0px 0px 0px 10px;
}

.wk-imagedialog-content-preview-file-thumbnail {
    width: 48px;
    height: 48px;
    margin: auto 16px auto auto;
}

.wk-imagedialog-content-preview--filecontent-name {
    color: var(--wk-text-item);
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
    line-height: normal;
}

.wk-imagedialog-content-preview--filecontent-size {
    font-size: 12px;
    color: var(--wk-color-font-tip);
}

.wk-imagedialog-footer {
    margin-top: 28px;
    justify-content: flex-end;
    display: flex;
}

.wk-imagedialog-footer button{
    background-color: #fff;
    border: 1px solid #dee0e3;
    color: #1f2329;
    border-radius: 4px;
    height: 32px;
    min-width: 100px;
    padding: 0 16px;
    cursor: pointer;
}

.wk-imagedialog-footer-okbtn {
    margin-left: 16px;
    color: white !important;
    border: none !important;
}


.search-chat-record-div {
    display: flex;
    flex-direction: column;
    height: 70vh;
}

.search-tab-list {
    display: flex;
    gap: 24;
    color: var(--wk-color-theme);
    font-weight: 600;
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 16px;
    justify-content: space-around;
}

.search-tab-list .search-tab-item {
    cursor: pointer;
}

.search-tab-list .search-tab-item.selected {
    border-bottom: 2px solid var(--wk-color-theme);
}

.search-chat-content {
    flex: 1 1;
    min-height: 0;
    overflow: hidden auto;
}

.search-chat-loading-title {
    text-align: center;
    padding: 40px 0px;
    color: #888;
    font-size: 14px;
}

.search-chat-records-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
}

.search-chat-records-message-image {
    width: 120px;
    height: 90px;
    position: relative;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.search-chat-records-message-location {
    width: 200px;
    border-radius: 8px;
    background: #f7f7f7;
    cursor: pointer;
    border: 1px solid #eee;
    padding: 8px 12px,
}

.search-chat-records-message-merge {
    width: 300px;
    border-radius: 8px;
    background: #f7f7f7;
    cursor: pointer;
    border: 1px solid #eee;
    padding: 10px;
}

.search-chat-records-message-merge .title {
    font-size: 15px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.search-chat-records-message-merge .line {
    width: 100%;
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

body[theme-mode=dark] .search-chat-records-message {
    background: var(--wk-color-secondary) !important;
}

body[theme-mode=dark] .search-chat-text {
    color: #e0e0e0 !important;
}
/* 空状态 */
.merged-files-empty {
  padding: 20px;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
}

.wk-conversationselect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.wk-conversationselect-box {
    display: flex;
    height: 520px;
    width: 780px;
    background-color: #fff;
    border-radius: 4px;
}

.wk-conversationselect-select-header-left {
    display: flex;
}

.wk-conversationselect-left {
    width: 50%;
    height: 100%;
    border-right: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    /* overflow-y: auto; */
}

.wk-conversationselect-right {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wk-conversationselect-header {
    height: 52px;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    justify-content: space-between;
}

.wk-conversationselect-search {
    padding: 10px 20px;
}

.wk-conversationselect-search .semi-input-wrapper {
    border-radius: 20px !important;
}

.wk-conversationselect-tabs {
    padding: 0px 20px 10px 20px;
    display: flex;
    justify-content: space-between;
}

.wk-conversationselect-tab {
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    background-color: #f5f5f5;
    color: #333;
    width: 30%;
    text-align: center;
}

.wk-conversationselect-tab.selected {
    background-color: var(--wk-color-theme);
    color: #fff;
}

.wk-conversationselect-list {
    flex: 1 1;
    height: 360px;
    overflow-y: auto;
}

.wk-conversationselect-collapse {
    padding: 0 10px;
}

.wk-conversationselect-collapse-header {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    justify-content: space-between;
    cursor: pointer;
}

.wk-conversationselect-collapse-header:hover {
    background-color: #f5f5f5;
}

.wk-conversationselect-collapse-header-left {
    display: flex;
    align-items: center;
    flex: 1 1;
    min-width: 0;
}

.wk-conversationselect-collapse-header-arrow {
    margin: 0 5px;
    transition: transform 0.3s;
}

.wk-conversationselect-collapse-header-title {
    font-size: 14px;
    margin-left: 5px;
    min-width: 0;
}

.wk-conversationselect-collapse-header-count {
    font-size: 12px;
    color: #8a8a8a;
}

.wk-conversationselect-collapse-content {
    padding-left: 20px;
}

.wk-conversationselect-group-title {
    padding: 5px 20px;
    font-size: 14px;
    color: #8a8a8a;
    background-color: #f5f5f5;
}

.wk-conversationselect-disabled {
    background: #00000040 !important;
}

.wk-conversationselect-content {
    display: flex;
    align-items: center;
    padding: 5px 20px;
}

.wk-conversationselect-content:hover {
    background-color: #f5f5f5;
}

.wk-conversationselect-content-box-data {
    flex: 1 1;
    min-width: 0;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.wk-conversationselect-content-box-name {
    flex: 1 1;
    min-width: 0;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wk-nickname-box {
    flex: 1 1;
    min-width: 0;
}

.wk-mute-box {
    flex-shrink: 0;
    font-size: 12px;
    color: #808080ff
}

.wk-conversationselect-right-header {
    height: 50px;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    justify-content: center;
}

.wk-conversationselect-right-list {
    flex: 1 1;
    overflow-y: auto;
    padding: 10px;
}

.wk-conversationselect-right-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.wk-conversationselect-right-item-name {
    margin-left: 10px;
    flex: 1 1;
    min-width: 0px;
}

.wk-conversationselect-right-item-close {
    cursor: pointer;
}

.wk-conversationselect-right-footer {
    height: 60px;
    border-top: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.wk-conversationselect-right-footer-actions {
    display: flex;
    align-items: center;
}

.wk-conversationselect-right-footer-multiselect,
.wk-conversationselect-right-footer-selectall {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.wk-conversationselect-right-footer-cancel,
.wk-conversationselect-right-footer-ok {
    padding: 6px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.wk-conversationselect-right-footer-cancel {
    border: 1px solid #e6e6e6;
}

.wk-conversationselect-right-footer-ok {
    background-color: var(--wk-color-theme);
    color: #fff;
}

/* 滚动条样式 */
.wk-conversationselect-list::-webkit-scrollbar {
    width: 4px;
}

.wk-conversationselect-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.wk-conversationselect-right-list::-webkit-scrollbar {
    width: 4px;
}

.wk-conversationselect-right-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.wk-checkbox {
    border-radius: 2px !important;
}
.customer-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.customer-modal-content-image {
    width: 80px;
    height: 80px;
}

.customer-modal-content-title {
    margin-top: 16px;
    font-size: 24px;
}

.customer-modal-content-content {
    margin-top: 16px;
}

.wk-iconlistitem {
    background-color: white;
    height: 70px;
    width: 100%;
    cursor: pointer;
    position: relative;
}

.wk-iconlistitem-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0px 20px;
}

.wk-iconlistitem-content-icon img {
    width: 32px;
    height: 32px;
}

.wk-iconlistitem-content-title {
    font-size: 14px;
    font-weight: 500;
    margin-left: 15px;
}

body[theme-mode=dark] .wk-iconlistitem-content-title {
    color: white;
}

.wk-iconlistitem-content-badge {
    position: absolute;
    right: 15px;
}
.wk-sex-select {
    width: 100%;
    height: 100%;
}

.wk-sex-select-item {
    background-color: white;
    height: 50px;
    width: 100%;
    background-color: var(--wk-color-item);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.wk-sex-select-item .checked {
    color: var(--wk-color-theme);
    margin-left: 40px;
}

.wk-sex-select-item .sex {
    margin-left: 20px;
}
.wk-qrcodemy {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wk-qrcodemy-content-qrcodeinfo {
    margin: 10px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body[theme-mode=dark] .wk-qrcodemy-content-qrcodeinfo {
    background-color: var(--wk-color-secondary-2);
}

.wk-qrcodemy-content-userinfo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 15px;
}

.wk-qrcodemy-content-userinfo-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.wk-qrcodemy-content-qrcode {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    width: 250px;
    height: 250px;
}

.wk-qrcodemy-content-tip {
    font-size: 13px;
    text-align: center;
    color: #999;
    margin: 15px 0px;
}

.wk-qrcodemy-content-userinfo-name {
    font-size: 15px;
    font-weight: 500;
}

body[theme-mode=dark] .wk-qrcodemy-content-userinfo-name {
    color: white;
}

.wk-meinfo {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.wk-addfriend-form {
    padding: 10px;
}

.wk-addfriend-form-item {
    margin-bottom: 15px;
}

.wk-addfriend-form-item-max-length {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

.wk-addfriend-form-item-row {
    display: flex;
    align-items: center;
}

.wk-addfriend-form-item-row .wk-addfriend-form-item-tip {
    margin-right: 10px;
    flex-shrink: 0;
}

.wk-base {
  width: 100%;
  height: 100%;
}

.wk-base-modal .semi-modal-content {
  border: none !important;
  padding: 0px !important;
}

.wk-base-modal .semi-modal-close {
  display: none;
}

.wk-base-modal .semi-modal-body-wrapper {
  margin: 0px;
}

.wk-base-modal-userinfo .semi-modal-body {
  height: 70vh;
}

.wk-layout {
    --wk-width-layout-tab: 60px;
    --wk-height-layout-tab-min: 60px;
    --wk-layer-transition: 300ms cubic-bezier(0.33, 1, 0.68, 1);
    --wk-slide-transition: 450ms cubic-bezier(0.25, 1, 0.5, 1);

    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
}

.wk-layout-tab {
    width: var(--wk-width-layout-tab);
    height: 100%;
}

.wk-layout-content {
    width: 100%;
    height: 100%;
    display: flex;
}

.wk-layout-content.wk-layout-open {
    overflow: hidden;
}

.wk-layout-content-left {
    width: var(--wk-width-layout-content-left);
    height: 100%;
    border-right: var(--wk-line);
}

.wk-layout-content-right {
    width: calc(100% - var(--wk-width-layout-content-left));
    height: 100%;
    display: flex;
    position: relative;
    overflow: hidden;
}

.wk-layout-content-left-discover {
    width: 100% !important;
    flex: 1 1;
}

@media screen and (max-width: 640px) {

    /* .wk-layout {
        flex-direction: column-reverse;
    }

    .wk-layout-tab {
        height: var(--wk-height-layout-tab-min);
        width: 100%;
    } */
    .wk-layout-content-right {
        width: 100%;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        transform: translate3d(0, 0, 0);
        transition: transform var(--wk-layer-transition);
    }

    .wk-layout-content:not(.wk-layout-open) .wk-layout-content-right {
        transform: translate3d(100vw, 0, 0);
    }

    .wk-layout-content-left {
        width: 100%;
    }
}

:root {
    --wk-height-navheader: 64px;
}

.wk-navheader {
    height: 64px;
    height: var(--wk-height-navheader);
    width: 100%;
    background-color: var(--wk-color-secondary);
}

.wk-navheader-content {
    padding: 0px 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wk-navheader-content-left-title {
    font-size: 24px;
    font-weight: 500;
}

body[theme-mode=dark] .wk-navheader-content-left-title {
    color: white;
}

.wk-blacklist {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.wk-blacklist-refresh {
    cursor: pointer;
    padding: 8px;
    color: #666;
}

.wk-blacklist-content {
    flex: 1 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 自定义滚动条样式 */
.wk-blacklist-content::-webkit-scrollbar {
    width: 6px;
}

.wk-blacklist-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.wk-blacklist-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.wk-blacklist-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.wk-blacklist-content .loading-title {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #999;
    font-size: 14px;
}

.wk-blacklist-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wk-blacklist-content ul li {
    height: 80px;
    width: 100%;
    background-color: var(--wk-color-item);
    display: flex;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.wk-blacklist-content ul li:hover {
    background-color: #f5f5f5;
}

.wk-blacklist-content-avatar {
    margin-left: 15px;
}

.wk-blacklist-content-title {
    margin-left: 15px;
    font-size: 15px;
    font-weight: 500;
    color: var(--wk-text-item);
}
.wk-group-invites-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    position: relative;
}

.wk-group-invites-page>.wk-viewqueueheader+div {
    flex: 1 1;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 0px 24px 24px;
}

.wk-group-invites-page .wk-newfriend-more {
    width: 100%;
    position: absolute;
    bottom: 12px;
    left: 0;
    text-align: center;
}
.wk-newfriend {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wk-newfriend-content {
    width: 100%;
    flex: 1 1;
    min-height: 0;
}

.wk-newfriend-content .loading {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 14px;
}

.wk-newfriend-content ul {
    height: 100%;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

.wk-newfriend-content li {
    display: block;
    height: auto;
    align-items: initial;
    background: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.wk-newfriend-content-title {
    margin-left: 15px;
    font-size: 15px;
    font-weight: 500;
    color: var(--wk-text-item);
}

.wk-newfriend-content-title-remark {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.wk-newfriend-content-action {
    margin-right: 10px;
    margin-left: auto;
}

.wk-newfriend-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 110px;
    background-color: var(--wk-color-item);
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    padding: 0;
    box-sizing: border-box;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.wk-newfriend-card-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 16px 20px 0 20px;
    margin-bottom: 5px;
}

.wk-newfriend-card-avatar {
    margin-right: 16px;
    flex-shrink: 0;
}

.wk-newfriend-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.wk-newfriend-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--wk-text-item);
    margin-bottom: 4px;
    display: block;
}

.wk-newfriend-card-remark {
    font-size: 13px;
    color: #888;
    max-width: 180px;
    word-break: break-all;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.wk-newfriend-card-content {
    margin-bottom: 0;
    padding: 0 20px;
}

.wk-newfriend-card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    margin-top: auto;
    padding: 2px 10px;
    border-top: 2px solid #f0f0f0;
}

.wk-newfriend-card-footer .wk-btn-common {
    font-size: 15px;
    font-weight: 600;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    height: 40px;
    width: 100%;
    cursor: pointer;
}

.wk-newfriend-card-footer .wk-btn-accept {
    color: #1abc9c;
}

.wk-newfriend-card-footer .wk-btn-reject {
    color: #f44336;
}

.wk-newfriend-card-footer .wk-footer-divider {
    width: 1px;
    height: 28px;
    background: #e0e0e0;
    margin: 0 8px;
}

.wk-newfriend-card-arrow {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    color: #bbb;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    pointer-events: none;
}

.wk-contacts {
    width: 100%;
    height: 100%;
    position: relative;
}

.wk-contacts-content {
    width: 100%;
    height: calc(100% - var(--wk-height-navheader) - 104px);
    overflow: hidden auto;
    scrollbar-width: none;
    -ms-overflow-style: none
}

.wk-contacts-content::-webkit-scrollbar {
     display: none;
}

.wk-contacts-content-fnc {
    width: 100%;
}

.wk-contacts-tabs {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #e6e6e6;
}

.wk-contacts-tabA {
    width: 50%;
    padding: 6px 15px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    cursor: pointer;
    margin-right: 0px;
    box-sizing: border-box;
    text-align: center;
    background-color: #ffffff;
}

.wk-contacts-tabB {
    width: 50%;
    padding: 6px 15px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    cursor: pointer;
    margin-right: 0px;
    box-sizing: border-box;
    text-align: center;
    background-color: #ffffff;
}

.wk-contacts-tab {
    width: 50%;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    box-sizing: border-box;
    text-align: center;
    background-color: #e6e6e6;
}

.wk-contacts-tab.selected {
    background-color: var(--wk-color-theme);
    color: white;
}

.wk-contacts-tabA.selected {
    border: 1px solid var(--wk-color-theme);
    color: var(--wk-color-theme);
}

.wk-contacts-tabB.selected {
    border: 1px solid var(--wk-color-theme);
    color: var(--wk-color-theme);
}

.wk-contacts-list-content {
    width: 100%;
}

.wk-contacts-section-item {
    display: flex;
    align-items: center;
    padding: 15px 15px 15px 0px;
    cursor: pointer;
}

body[theme-mode=dark] .wk-contacts-section-item {
    background-color: var(--wk-color-secondary-2);
}

/* .wk-contacts-section-item:hover {
    background-color: var(--wk-color-hover);
    border-radius: 10px;
} */

.wk-contacts-section-item-selected {
    background-color: var(--wk-color-theme);
    color: white;
    border-radius: 10px;
}

.wk-contacts-collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
}

.wk-contacts-collapse-header-left {
    flex: 1 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.wk-contacts-collapse-header-arrow {
    transition: transform 0.2s;
    margin-right: 8px;
}

.wk-contacts-collapse-header-title {
    font-weight: 500;
}

.wk-contacts-item {
    display: flex;
    align-items: center;
    padding: 8px 20px 8px 45px;
    cursor: pointer;
}

.wk-contacts-item:hover {
    background-color: var(--color-bg-1);
}

.wk-contacts-item-info {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    min-width: 0;
}

.wk-contacts-item-info-title {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.wk-contacts-item-status {
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 2px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.wk-contacts-item-online-indicator {
    margin-left: 3px;
    width: 8px;
    height: 8px;
    background-color: #52c41a;
    border-radius: 50%;
}

.offline {
    background-color: #8292AB;
}

.group-bottom-box {
     width: 100%;
     height: 58px;
}

.wk-bottom-group-add{
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background-color: var(--wk-color-secondary);
}

.wk-contacts-add-group {
    margin: 10px auto;
    width: 95%;
    height: 38px;
    background: #fafafa;
    border: 1px dashed #d9d9d9;
    border-radius: 8px;
    color: #595959;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.wk-contacts-add-group:hover {
    border-color: var(--wk-color-theme);
    color: var(--wk-color-theme);
    background: #fff;
}

.wk-contacts-group-list {
    padding: 8px 0;
}

.wk-contacts-group-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.wk-contacts-group-name {
    width: 68px;
    color: #2d3a4b;
    font-size: 15px;
    flex-shrink: 0;
    margin-right: 4px;
    text-align: right;
    padding-top: 4px;
    font-weight: 500;
}

.wk-contacts-group-members {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wk-contacts-group-member {

    display: flex;
    align-items: center;
    padding: 6px 0;
}

.wk-contacts-group-remark {
    font-size: 15px;
    color: #222;
    font-weight: 500;
    line-height: 1.2;
}

.wk-contacts-group-nickname {
    font-size: 13px;
    color: #888;
    line-height: 1.2;
}

body[theme-mode=dark] .wk-contacts-tab:not(.selected) {
    background-color: #666 !important;
}

.wk-contacts-search-results{
    border-top: 1px solid #e6e6e6;
    width: 100%;
}

#root {
  width: 100%;
  height: 100%;
}

.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    -webkit-animation: App-logo-spin infinite 20s linear;
            animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@-webkit-keyframes App-logo-spin {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes App-logo-spin {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

:root {
  --sider-width: 60px
}

.wk-main {
    width: 100%;
    height: 100%;
    display: flex;
}

.wk-main-content {
    width: calc(100% - 60px
);
    width: calc(100% - var(--sider-width));
    height: 100%;
    background-color: white;
}

.wk-main-sider {
    width: var(--sider-width);
    height: 100%;
    background-color: var(--wk-color-secondary);
    border-right: var(--wk-line);
}

.wk-main-sider-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}

.wk-main-sider-avatar {
    margin-top: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.wk-main-sider-item {
    width: 32px;
    height: 32px;
    margin-top: 30px;
    cursor: pointer;
    position: relative;
}

.wk-main-sider-item img {
    width: 24px;
    height: 24px;
}

.wk-main-sider-setting-box {
    position: absolute;
    bottom: 30px;
}

.wk-main-sider-setting {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.wk-sider-setting-position-re {
    position: relative;
}

.wk-icon-bar {
    width: 24px;
    height: 2px;
    margin: 5px 10px 0;
    background-color: #999;
}

.wk-icon-bar:nth-child(2n-1) {
    -webkit-transform: rotateZ(0deg);
    transform: rotateZ(0deg);
    transition: background-color 0.2s, -webkit-transform 0.2s;
    transition: background-color 0.2s, transform 0.2s;
    transition: background-color 0.2s, transform 0.2s, -webkit-transform 0.2s;
}

.wk-main-sider-setting.collapsed .wk-icon-bar:nth-child(1) {
    top: 7px;
    -webkit-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
}

.wk-main-sider-setting.collapsed .wk-icon-bar:nth-child(2) {
    background-color: transparent;
}

.wk-main-sider-setting.collapsed .wk-icon-bar:nth-child(3) {
    top: -7px;
    -webkit-transform: rotateZ(-45deg);
    transform: rotateZ(-45deg);
}

.wk-sider-setting-list {
    position: absolute;
    left: var(--sider-width);
    bottom: 0;
    z-index: 1;
    width: 140px;
    box-shadow: rgb(0 0 0 / 50%) 2px 5px 8px;
    color: #fdfdfd;
    background-color: #333;
    border-radius: 4px;

    -webkit-transform: scale(0);

            transform: scale(0);
    transition: opacity .2s cubic-bezier(.2, 0, .2, 1), -webkit-transform .2s cubic-bezier(.2, 0, .2, 1) !important;
    transition: opacity .2s cubic-bezier(.2, 0, .2, 1), transform .2s cubic-bezier(.2, 0, .2, 1) !important;
    transition: opacity .2s cubic-bezier(.2, 0, .2, 1), transform .2s cubic-bezier(.2, 0, .2, 1), -webkit-transform .2s cubic-bezier(.2, 0, .2, 1) !important;
    -webkit-transform-origin: left bottom;
            transform-origin: left bottom;
}

.wk-sider-setting-list.open {
    -webkit-transform: scale(1);
            transform: scale(1);
}

.wk-sider-setting-list li {
    height: 46px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    cursor: pointer;
}

.wk-sider-setting-popover {
    width: 140px;
    box-shadow: rgb(0 0 0 / 50%) 2px 5px 8px;
    color: #fdfdfd;
    background-color: #333;
    border-radius: 4px;
}

.wk-sider-setting-popover li {
    height: 46px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    cursor: pointer;
}

.wk-main-sider-item-badge {
    position: absolute;
    top: -15px;
    right: -5px;
}

.wk-versioncheckview-updateinfo {
    font-weight: 500;
}

.wk-versioncheckview-updateinfo li {
    margin-bottom: 10px;
}

.wk-versioncheckview-tip {
    border-top: var(--wk-line);
}

.wk-versioncheckview-tip-title {
    margin-top: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}

.wk-versioncheckview-tip-content {
    margin-bottom: 40px;
}

.wk-versioncheckview-tip-content li {
    margin-bottom: 10px;
}

.wk-main-sider-setting-badge {
    position: absolute;
    right: 5px;
    top: -10px;
}


.wk-main-sider-modal .semi-modal-content {
    border: none !important;
    padding: 0px !important;
}

.wk-main-sider-modal .semi-modal-close {
    display: none;
}

.wk-main-sider-modal .semi-modal-body-wrapper {
    margin: 0px;
}

.wk-main-sider-meinfo .semi-modal-body {
    height: 70vh;
}

.discover-container {
    background: #fff;
    height: 100%;
    width: 100%;
    padding: 24px;
    overflow-y: auto;
    box-sizing: border-box;
}

.banner-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e3eaf5;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
    min-height: initial;
    height: auto;
    height: initial;
    max-width: 100%;
}

.banner-container a {
    width: 100%;
    height: 100%;
    display: block;
}

.banner-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    opacity: 0.8;
    transition: background-color 0.3s;
    cursor: pointer;
}

.banner-dot.active {
    background: var(--wk-color-theme);
}

.banner-dot:not(.active) {
    background: #fff;
}

.apps-container {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    max-height: 800px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
}

.app-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 4px;
    box-sizing: border-box;
}

.app-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.app-name {
    font-size: 16px;
    color: #222;
    font-weight: 400;
}

@media screen and (max-width: 768px) {
    .banner-container {
        margin-bottom: 16px;
    }

    .apps-container {
        padding: 0 8px;
        overflow-y: scroll;
    }

    .app-item {
        padding: 10px 0;
    }

    .app-icon {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }

    .app-icon img {
        width: 28px;
        height: 28px;
    }

    .app-name {
        font-size: 15px;
    }
}

body[theme-mode=dark] .discover-container {
    background-color: var(--wk-color-secondary) !important;
}

body[theme-mode=dark] .discover-container .banner-container {
    background-color: #444 !important;
}

body[theme-mode=dark] .app-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

body[theme-mode=dark] .app-name {
    color: #fff !important;
}

.slide-captcha-outer {
  width: 350px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #eee;
  padding: 16px;
}

.slide-captcha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 15px;
  color: #333;
}

.slide-captcha-refresh {
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.slide-captcha-btns i {
  margin-left: 8px;
  cursor: pointer;
  font-style: normal;
  font-size: 18px;
  color: #888;
  transition: color 0.2s;
}

.slide-captcha-btns i:hover {
  color: #1890ff;
}

.slide-captcha-image {
  position: relative;
  width: 300px;
  height: 220px;
  margin: 0 auto 16px auto;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px #0001;
}

.slide-captcha-image img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
}

.slide-captcha-thumb {
  box-shadow: 0 0 8px #0002;
  border-radius: 4px;
}

.slide-captcha-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: rgba(24, 144, 255, 0.8);
  border-radius: 50%;
  border: 2px solid #fff;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}

.slide-captcha-button-div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.slide-captcha-track {
  position: relative;
  width: 300px;
  height: 40px;
  background: #f5f5f5;
  border-radius: 20px;
  margin: 16px 0 0 0;
  box-shadow: inset 0 0 5px #0001;
  left: 50%;
  transform: translateX(-50%);
}

.slide-captcha-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: #1890ff;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
  font-size: 22px;
}

.slide-captcha-slider:hover {
  background: #40a9ff;
}

.slide-captcha-icon {
  color: #fff;
  font-size: 22px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.slide-captcha-track::after {
  content: '向右滑动完成验证';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 14px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.captcha-modal-content {
  padding: 20px;
  text-align: center;
}

.captcha-modal-tip {
  margin-bottom: 20px;
  color: #666;
  font-size: 14px;
} 
.panel-box {
  background-color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.panel-body {
  flex-grow: 1;
  min-height: 0;
  /* 确保在flex布局中可以正确缩小 */
  overflow-y: auto;
}

.panel-body-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px 32px;
  cursor: pointer;
  background-color: transparent;
  color: #333;
  font-weight: normal;
}

.panel-body-item.active {
  background-color: var(--wk-color-theme);
  color: #fff;
  font-weight: bold;
}

.panel-body-item-icon {
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.panel-content {
  display: flex;
  flex-direction: column;
  background-color: #fff;
}
.panel-content-box {
  padding: 16px 16px 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.panel-content-title {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: bold;
  color: #222
}
.favorite-box-content {
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
}
.favorite-list {
  flex: 1 1;
  overflow-y: auto;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}

.favorite-list-loading {
  color: #aaa;
  text-align: center;
  margin-top: 40px;
}

.favorite-pagination {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  background-color: #fff;
}

.favorite-item {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.favorite-item-share {
  position: absolute;
  right: 40px;
  top: 6px;
  cursor: pointer;
  z-index: 2;
}

.favorite-item-share-svg {
  width: 20px;
  height: 20px;
  fill: var(--wk-text-item);
}

.favorite-item-delete {
  position: absolute;
  right: 8px;
  top: 8px;
  cursor: pointer;
  color: #f53f3f;
  z-index: 2;
}

.favorite-item-image {
  max-width: 120px;
  max-height: 80px;
  border-radius: 4px;
  cursor: pointer;
}

.favorite-item-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #888;
}

body[theme-mode=dark] .panel-box {
  background-color: var(--wk-color-secondary) !important;
  border-left: 1px solid #fff !important;
  border-right: 1px solid #fff !important;
}

body[theme-mode=dark] .panel-box .panel-body {
  background-color: var(--wk-color-secondary) !important;
  color: #fff !important;
}

body[theme-mode=dark] .panel-box .panel-body-item {
  color: #fff !important;
}

body[theme-mode=dark] .panel-box .panel-body-item.active {
  background-color: #333 !important;
  color: #fff !important;
}

/* body[theme-mode=dark] .favorite-item .semi-icon {
  color: #fff !important;
} */

body[theme-mode=dark] .favorite-item .favorite-item-top {
  color: #fff !important;
}

body[theme-mode=dark] .favorite-item .favorite-item-bottom {
  color: #fff !important;
}

.menuItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding-left: 16px;
  padding-right: 16px;
  cursor: pointer;
}

.menuItem:hover {
  background-color: #cdf9cd;
}

.deleteItem {
  border-top: 1px solid #eee;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  
  /* 兼容性写法 */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  
  /* 禁用拖拽 */
  draggable: false;
}


.wk-filetoolbar {
   
}

.wk-filetoolbar-content {
    padding: 10px;
}

.wk-filetoolbar-content-icon  img{
    width: 20px;
    height: 20px;
}

.wk-filetoolbar-content-icon {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


.wk-imagedialog {
    display: flex;
    justify-content: center;
    align-items: center;

    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-app-region: no-drag;
    z-index: 100;
}

.wk-imagedialog-mask {
    position: absolute;
    background-color: rgba(0,0,0,.3);
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.wk-imagedialog-content {
    width: 420px;
    position: relative;
    padding: 28px;
    background: var(--wk-color-item);
    box-shadow: 0 2px 8px 0 rgba(0,0,0,.2);
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
    max-height: 580px;
}

.wk-imagedialog-content-close {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 28px;
    right: 28px;
    font-size: 18px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    line-height: 18px;
}

.wk-imagedialog-content-close svg {
    fill: var(--wk-text-item);
}

.wk-imagedialog-content-title {
    font-size: 16px;
    font-weight: 600;
}

.wk-imagedialog-content-body {
    width: 100%;
    font-size: 14px;
    text-align: center;
    margin-top: 28px;
}

.wk-imagedialog-content-preview {
    box-sizing: border-box;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    border-radius: 4px 4px 4px 4px;
}

.wk-imagedialog-content-previewImg {
    width: auto;
    height: auto;
    max-width: 240px;
    max-height: 240px;
    background-size: auto 100%;
    background-position: 50%;
    margin: 0 auto 16px;
}

.wk-imagedialog-content-preview-file {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.wk-imagedialog-content-preview--filecontent {
    flex: 1 1;
    width: 100%;
    height: 78px;
    padding: 12px 0px 12px 20px;
    overflow: hidden;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    background-color: rgb(247, 247, 247);
}

body[theme-mode=dark] .wk-imagedialog-content-preview--filecontent {
    background-color: var(--wk-color-secondary);
}

.wk-imagedialog-content-preview-file-icon {
    height: 78px;
    width: 78px;
    display: flex;
    align-items: center;
    border-radius: 0px 0px 0px 10px;
}

.wk-imagedialog-content-preview-file-thumbnail {
    width: 48px;
    height: 48px;
    margin: auto 16px auto auto;
}

.wk-imagedialog-content-preview--filecontent-name {
    color: var(--wk-text-item);
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
    line-height: normal;
}

.wk-imagedialog-content-preview--filecontent-size {
    font-size: 12px;
    color: var(--wk-color-font-tip);
}

.wk-imagedialog-footer {
    margin-top: 28px;
    justify-content: flex-end;
    display: flex;
}

.wk-imagedialog-footer button{
    background-color: #fff;
    border: 1px solid #dee0e3;
    color: #1f2329;
    border-radius: 4px;
    height: 32px;
    min-width: 100px;
    padding: 0 16px;
    cursor: pointer;
}

.wk-imagedialog-footer-okbtn {
    margin-left: 16px;
    color: white !important;
    border: none !important;
}




.wk-visitorheader{
    width: 100%;
    height: 80px;
}

.wk-visitorheader-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.wk-visitorheader-content-avatar {
    margin-left: 15px;
}

.wk-visitorheader-content-avatar img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.wk-visitorheader-content-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1;
    padding: 0px 15px;
}

.wk-visitorheader-content-props {
    font-size: 12px;
    color: gray;
}
