html, body {
    height: 100%;
    width: 100%;
    padding: 0px;
    margin: 0px;
    position: relative;
    font-family: '仿宋', sans-serif !important;
}

* {
    box-sizing: border-box;
}

.chat-page-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    /*background: #000000;*/
}

.header {
    height: 50px;
    padding: 10px;
    display: flex;
    align-items: center;
    background: #ffffff;
    /*box-shadow: 0 0 10px #00000040;*/
    border-bottom: 1px solid #00000020;
}

#chatName {
    margin: auto;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: #ffffff;
    display: flex;
    align-items: end;
    box-shadow: 0 0 10px #00000040;
}

#msgPanel {
    height: calc(100% - 110px);
    overflow: auto;
}

#msgInp-wrapper {
    margin-left: 10px;
    width: calc(100% - 145px);
    display: inline-block;
    background: #ffffff;
    position: relative;
}

#msgInp {
    padding: 5px 10px;
    line-height: 28px;
    min-height: 30px;
    max-height: 150px;
    font-size: 16px;
    overflow-y: auto;
    border-radius: 5px;
    outline: none;

    /*border: 1px solid #07c160;*/
    border: 1px solid #777777;
}

.msgInp-quote-wrapper {
    position: relative;
    padding: 5px 10px;
    margin-top: 5px;
    border-radius: 5px;
    outline: none;
    color: #fff;
    background: #00000080;
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 18px;
    max-width: 80%;
}

.msgInp-quote-wrapper .msgBlock-audio {
    max-width: calc(100% - 50px);
}

.msgInp-quote {
    min-height: 20px;
    max-height: 56px;
    width: calc(100% - 20px);
    /*display: inline-block;*/

    display: -webkit-box; /* 使用 WebKit 的弹性盒子模型 */
    -webkit-line-clamp: 3; /* 限制为三行 */
    -webkit-box-orient: vertical; /* 设置垂直布局 */
    overflow: hidden; /* 隐藏超出的内容 */
    text-overflow: ellipsis; /* 在文本溢出时显示省略号 */
}

.msgInp-quote img {
    height: 56px;
}

#msgInp-quote-wrapper .delete {
    width: 20px;
    min-height: 20px;
    text-align: right;
    cursor: pointer;
}

.context-menu {
    color: #fff;
    background: #00000080;
    backdrop-filter: blur(2px);
}

.context-menu div {
    padding: 3px 10px;
}

#file-upload-view {
    height: 40px;
    width: 40px;
    margin-left: 10px;
}

#msgSendBtn {
    height: 40px;
    width: 40px;
    margin-left: 10px;
}

#voiceInputBtn {
    height: 40px;
    width: 40px;
    padding: 5px 3px;
}

#voiceInputBtn.recording {
    background: #d9ede3;
    filter: unset !important;
}

.msgBlock {
    padding: 10px 0;
    display: flex;
}

.msgBlock-self {
    flex-direction: row-reverse;
}

.msgBlock-self .msgBlock-sub {
    align-items: flex-end;
}

.msgBlock-self .msgBlock-msg {
    /*background: #89e929;*/
    background: #ffffff;
}

.msgBlock-avatar {
    display: inline-flex;
    height: 60px;
    width: 60px;
    background: antiquewhite;
    align-items: center;
    border-radius: 50%;
    margin-left: 10px;
    margin-right: 10px;
    border: 1px solid #00000020;

    filter: grayscale(50%);
    -webkit-filter: grayscale(50%);
    -moz-filter: grayscale(50%);
    -ms-filter: grayscale(50%);
    -o-filter: grayscale(50%);
}

.msgBlock-avatar > span {
    margin: auto;
}

.msgBlock-avatar > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.msgBlock-sub {
    display: flex;
    width: calc(100% - 80px);
    flex-direction: column;
    align-items: flex-start;
}

.msgBlock-nickname {
    color: #00000080;
    font-size: 16px;
    margin-bottom: 10px;
}

.msgBlock-nickname em {
    color: #00000040;
    font-size: 12px;
}

.msgBlock-msg {
    font-size: 18px;
    /*background: #30eded;*/
    background: #ffffff;
    width: fit-content;
    padding: 10px;
    max-width: 80%;
    border-radius: 5px;
    word-wrap: break-word; /* 在单词中间断开以防止溢出 */
    overflow-wrap: break-word; /* 同上，这是一个更现代的属性名称 */
}

.msgBlock-media {
    max-width: 80%;
}

.msgBlock-img {
    max-width: 100%;
    max-height: 200px;
}

.msgBlock-video {
    max-width: 100%;
    max-height: 200px;
}

.msgBlock-audio {
    max-width: 100%;
}

.preview-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: black;
    display: flex;
    align-items: center;
    z-index: 2;
}

.preview-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.msgPanel-tip {
    width: 100%;
    display: block;
    color: #00000080;
    text-align: center;
    margin: 0;
    padding: 10px;
    line-height: 30px;
}

.vc-switch {
    position: relative !important;
    bottom: 0 !important;
    z-index: 1 !important;
    padding: 0 !important;
}

.vc-switch .img-btn {
    height: 30px;
}

#vConsoleWrapper {
    position: absolute;
}

#historyMsgSearchView,
#historyMsgSearchBtn {
    height: 30px;
    position: absolute;
    right: 10px;
}

#searchBackBtn {
    height: 30px;
    width: 30px;
    padding: 3px 5px;
}

.img-btn {
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);*/
    border-radius: 5px;
    padding: 3px;
    background: #ffffff;
    border: 1px solid #07c160;

    filter: grayscale(100%);
}

.footer .img-btn {
    box-shadow: none;
    background: #ffffff;
    border: 1px solid #07c160;
}

.vc-switch {
    border: none;
    box-shadow: none !important;

    background-color: #ffffff !important;
    color: #07c160 !important;
}

.img-btn.waiting {
    background: #ccc;
    pointer-events: none;
}

#history-msg-search-wrapper {
    position: absolute;
    height: 100%;
    width: 100%;
    background: #ffffff20;
    z-index: 2;
    backdrop-filter: blur(10px);
    display: none;
}

#searchBackBtn {
    color: #ffffff;
}

#historyMsgSearchInp {
    margin-left: 10px;
    width: calc(100% - 80px);
    display: inline-block;
    background: #ffffff;
    padding: 5px 10px;
    line-height: 18px;
    min-height: 30px;
    max-height: 150px;
    font-size: 14px;
    overflow-y: auto;
    border-radius: 5px;
    /*border: 1px solid #07c160;*/
    border: 1px solid #777777;
    outline: none;
    font-family: '仿宋', sans-serif !important;
}

#searchMsgMainPanel {
    height: calc(100% - 50px);
    width: 100%;
    overflow: auto;
}

.mask {
    height: 100%;
    width: 100%;
    background-image: url("../img/loading.gif");
    background-repeat: no-repeat;
    background-position: center center;
    display: none;
}


@property --rotate {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

:root {
    --rotate: 0deg;
}

/*.header {*/
/*    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);*/
/*    background-image: radial-gradient(*/
/*            #53515010 1px,*/
/*            transparent 0*/
/*    ),*/
/*    radial-gradient(#53515010 2px, #000000b8 0),*/
/*    conic-gradient(*/
/*            from var(--rotate) at 10% 50%,*/
/*            hsl(0 0% 98% / .1) 0deg,*/
/*            #eec32d 72deg,*/
/*            #ec4b4b 144deg,*/
/*            #709ab9 216deg,*/
/*            #4dffbf 288deg,*/
/*            hsl(0 0% 98% / .1) 1turn*/
/*    );*/
/*    !*background-size: 5vmin 5vmin, 5vmin 5vmin, 100% 100%;*!*/
/*    background-size: 1px 1px, 1px 1px, 100% 100%;*/
/*    background-origin: border-box;*/
/*    background-clip: padding-box, padding-box, border-box;*/
/*    animation: spin 5s linear infinite;*/
/*}*/

@keyframes spin {
    0% {
        --rotate: 0deg;
    }
    100% {
        --rotate: 360deg;
    }
}


#chatName {
    letter-spacing: 1px;
    font-size: 18px;

    /*text-shadow: 1px 1px 2px #07c160, -1px -1px 2px #07c160, 1px -1px 2px #07c160, -1px 1px 2px #07c160;
    color: #ffffff;*/
    color: #777777;

    /*color: antiquewhite;
    --color1: azure;
    --color2: aqua;
    --color3: dodgerblue;
    --color4: blue;
    --interval: 1s;
    display: block;
    text-shadow: 0 0 10px var(--color1),
    0 0 20px var(--color2),
    0 0 40px var(--color3),
    0 0 80px var(--color4);
    will-change: filter, color;
    filter: saturate(60%);
    animation: flicker steps(100) var(--interval) 1s infinite;*/
}

@keyframes flicker {
    50% {
        color: white;
        filter: saturate(200%) hue-rotate(20deg);
    }
}


/*#chatName {*/
/*    letter-spacing: 2px;*/
/*    color: #fff;*/
/*    text-shadow:*/
/*            0 0 5px rgba(255, 255, 255, 1),*/
/*            0 0 10px rgba(255, 255, 255, 1),*/
/*            0 0 15px rgba(255, 255, 255, 1),*/
/*            0 0 20px rgba(138, 43, 226, 1),*/
/*            0 0 30px rgba(138, 43, 226, 1),*/
/*            0 0 40px rgba(138, 43, 226, 1);*/
/*    animation: neon 1.5s ease-in-out infinite alternate;*/
/*}*/

/*@keyframes neon {*/
/*    from {*/
/*        text-shadow:*/
/*                0 0 5px rgba(255, 255, 255, 1),*/
/*                0 0 10px rgba(255, 255, 255, 1),*/
/*                0 0 15px rgba(255, 255, 255, 1),*/
/*                0 0 20px rgba(138, 43, 226, 1),*/
/*                0 0 30px rgba(138, 43, 226, 1),*/
/*                0 0 40px rgba(138, 43, 226, 1);*/
/*    }*/
/*    to {*/
/*        text-shadow:*/
/*                0 0 10px rgba(255, 255, 255, 1),*/
/*                0 0 20px rgba(255, 255, 255, 1),*/
/*                0 0 30px rgba(255, 255, 255, 1),*/
/*                0 0 40px rgba(138, 43, 226, 1),*/
/*                0 0 55px rgba(138, 43, 226, 1),*/
/*                0 0 70px rgba(138, 43, 226, 1);*/
/*    }*/
/*}*/


.flash {
    animation: flash 1s infinite;
}

@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.msgBlock-body {
    position: relative;
}

.msgBlock.msgBlock-self .msgBlock-body.msgBlock-msg.sending:before,
.msgBlock:not(.msgBlock-self) .msgBlock-body.msgBlock-msg.sending:after {
    content: "";
    position: absolute;
    top: 0;
    background: url("../img/loading.gif") no-repeat center;
    width: 30px;
    height: 100%;
}

.msgBlock.msgBlock-self .msgBlock-body.msgBlock-msg.sending:before {
    left: -30px;
}

.msgBlock:not(.msgBlock-self) .msgBlock-body.msgBlock-msg.sending:after {
    right: -30px;
}

.msgBlock.msgBlock-self .msgBlock-body.sendFailed:before,
.msgBlock:not(.msgBlock-self) .msgBlock-body.sendFailed:after {
    content: "";
    position: absolute;
    top: 0;
    background: url("../img/sendFailed.svg") no-repeat center;
    width: 30px;
    height: 100%;
    background-size: 16px 16px;
}

.msgBlock.msgBlock-self .msgBlock-body.sendFailed:before {
    left: -30px;
}

.msgBlock:not(.msgBlock-self) .msgBlock-body.sendFailed:after {
    right: -30px;
}

.progress-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: #00000050;
    backdrop-filter: blur(3px);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.progress-ring {
    transform: rotate(-90deg);
    width: 50%;
    height: 50%;
    margin: auto;
}

.progress-ring__completed {
    stroke: #26d077; /* Color for completed part */
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease-in-out;
}

#at-list-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000050;
    z-index: 1;
    display: none;
}

#at-list-wrapper > ul {
    position: absolute;
    bottom: 0px;
    background: #ffffff;
    width: 100%;
    margin: 0px;
    padding: 10px 20px;
    list-style: none;
}

#at-list-wrapper > ul > li {
    padding: 10px 0px;
}

#at-list-wrapper > ul > li ~ li {
    border-top: 1px solid #cccccc;
}