*{padding: 0;margin: 0;font-size: 0.43rem;box-sizing: border-box;}
ol,ul,li { list-style:none; }
body{background: #f8f8f8}
:root{
    --im-keyboard-inset: 0px;
    --im-chat-input-height: 140px;
}


#app{width: 100%;max-width: 640px;margin: 0 auto;height: 100vh;height: 100dvh;height: var(--im-app-height, 100vh);overflow: hidden;position: relative}
[v-cloak] {
    display: none!important;;
}

.el-message{width: max-content;}


.im-kf-login{background: #aadcffa1 url(/static/index/images/login_bg.png);background-position: center;
    /*display: flex;align-items: center;justify-content: center;*/
    background-size: 100% 100%;background-position: center;}
#app.im-kf-login{overflow-y: auto;overflow-x: hidden;-webkit-overflow-scrolling: touch;padding-bottom: 1.5rem;}
@media (max-height: 700px){
    .im-kf-login #login-title{margin-top: 0.8rem;}
    .im-kf-login .el-input{margin: 0.32rem 0;}
}
.im-kf-login #login-box{width: 80%;height: auto;margin: 0 auto;background: #ffffffd4;border-radius: 10px;padding: 0.7rem}
.im-kf-login .el-input{border-radius: 2rem;margin: 0.5rem 0}
.im-kf-login .el-input__wrapper{border-radius: 1rem;padding: 0.2rem;border: 2px solid #5767e9;background: transparent;padding-left: 0.5rem;box-shadow:none}
.im-kf-login .el-button{width: 100%;padding: 0.5rem 0.5rem;border-radius: 1rem;margin-top: 0.5rem}
.im-kf-login .el-input__inner{    color: #476082;
    font-size: 0.35rem;}
.im-kf-login #login-title{color: #fff;
    width: 100%;
    position: relative;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.5rem;}
.im-kf-login #login-title img{max-width: 6rem}
.im-kf-login .login_xieyi{font-size: 0.35rem;color: #666}
.im-kf-login .login_xieyi span{color:#299bff;font-size: 0.35rem;}

.im-kf-login .login_forget{margin: 0.2rem auto;text-align: right;color: #666;display: flex;
    justify-content: space-around;
    align-items: center;}
.im-kf-login .login_forget a{color: #9f9f9f;font-size: 0.35rem;}

/* ========== 开关容器 ========== */
.toggle-wrapper {
    position: relative;
    background: #eef4f9;
    border-radius: 60px;
    padding: 6px;
    box-shadow:
            inset 0 2px 6px rgba(0, 0, 0, 0.06),
            0 2px 4px rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    height: 68px;
}

/* ========== 两个选项 ========== */
.toggle-option {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #3a5468;
    padding: 10px 0;
    z-index: 2;
    transition: color 0.35s ease;
    letter-spacing: 0.3px;
    border-radius: 40px;
    line-height: 1.4;
    position: relative;
}

/* 激活状态文字颜色 (由 Vue 动态控制) */
.toggle-option.active {
    color: #ffffff;
}

/* ========== 滑块 (滑动按钮) ========== */
.toggle-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background:linear-gradient(135deg, #409eff, #4878aa);
    border-radius: 40px;
    box-shadow:
            0 6px 18px rgba(26, 77, 102, 0.30),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
    z-index: 1;
}

/* 滑块右移 (登录状态) */
.toggle-slider.right {
    transform: translateX(calc(100% + 0px));
}

/* ========== 点击涟漪反馈 (可选) ========== */
.toggle-wrapper:active .toggle-slider {
    transform: scale(0.96);
    transition-duration: 0.15s;
}
.toggle-wrapper:active .toggle-slider.right {
    transform: translateX(calc(100% + 0px)) scale(0.96);
}



/* ========== 响应式 ========== */
@media (max-width: 480px) {
    .card {
        padding: 32px 24px 36px;
        border-radius: 40px;
        min-width: unset;
    }

    .toggle-wrapper {
        height: 60px;
        padding: 5px;
    }

    .toggle-option {
        font-size: 17px;
        padding: 8px 0;
    }

    .toggle-slider {
        top: 5px;
        left: 5px;
        height: calc(100% - 10px);
        width: calc(50% - 5px);
    }

    .card-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .hint {
        font-size: 14px;
        padding: 10px 16px;
        margin-top: 22px;
    }
}

@media (max-width: 380px) {
    .card {
        padding: 24px 16px 28px;
    }

    .toggle-option {
        font-size: 15px;
    }

    .toggle-wrapper {
        height: 52px;
    }

    .card-title {
        font-size: 19px;
    }
}

/* ========== 暗色模式适配 (可选) ========== */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(145deg, #1a2a33, #0f1a21);
    }

    .card {
        background: rgba(30, 45, 55, 0.75);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    .card-title span {
        background: linear-gradient(135deg, #5ba3c7, #3a7a9e);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .toggle-wrapper {
        background: #1f313d;
        border-color: rgba(255, 255, 255, 0.06);
        box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
    }

    .toggle-option {
        color: #8aacbf;
    }

    .toggle-option.active {
        color: #ffffff;
    }

    .toggle-slider {
        background: linear-gradient(135deg, #4b9fc7, #236884);
        box-shadow: 0 6px 18px rgba(35, 104, 132, 0.4);
    }


}
/* ========== 开关容器 结束 ========== */


.im .im-title{text-align: center;height: 1rem;line-height: 1rem;background:#ffffff45;box-shadow: 0 0 3px 0 #ccc;flex-shrink: 0;}

.im .xiaoxi-list-box{width: 100%;flex: 1;min-height: 0;height: auto;overflow-y: auto;-webkit-overflow-scrolling: touch;}

.im .empty-msg{
    text-align: center;
    display: block !important;
    margin: 0 auto;
    color: #ccc;
    line-height: 3rem;
}


.im #footer{height: 1.3rem;display: flex;justify-content: space-around;position: fixed;bottom: 0;width: 100%;box-shadow: 0 0 3px 0 #ccc;padding: 5px;background: #fff;
    z-index: 10;
    max-width: 640px;}
.im #footer dl{text-align: center;cursor: pointer}
.im #footer dd{position: relative;display: inline-block;}
.im #footer dd .im-footer-badge{position: absolute;top: -3px;right: -10px;min-width: 16px;height: 16px;padding: 0 4px;box-sizing: border-box;border-radius: 999px;background: #FA5151;color: #ffffff;border: 1.5px solid #ffffff;font-style: normal;font-size: 10px;font-weight: 600;line-height: 13px;text-align: center;white-space: nowrap;z-index: 2;pointer-events: none;box-shadow: 0 1px 2px rgba(250,81,81,0.28);}
.im #footer dd span{font-size: 0.6rem;color: #999}
.im #footer dt{font-size: 0.3rem}
.im #footer .sel_page span{color: #09bb07}


.im #page1-xiaoxi{width: 100%;height: 100%;position: absolute;top: 0;left: 0;background: #f3f3f3;display: flex;flex-direction: column;padding-bottom: 1.3rem;box-sizing: border-box;}

.to_left100{transition:all 0.4s;left: -100%}

.im #page1-xiaoxi dl{display: flex;padding: 15px;transition: all 0.2s;background: #fff;margin-bottom: 2px;position: relative;}
.im #page1-xiaoxi dl dd{width: 1.2rem;height: 1.2rem;margin-right: 10px}
.im #page1-xiaoxi dl dd img{width: 100%;height: 100%;display: block;object-fit: cover;border-radius: 5px}
.im #page1-xiaoxi dl dt{width: 8rem}
.im #page1-xiaoxi dl dt .user-name{font-size: 0.45rem}
.im #page1-xiaoxi dl dt .user-name span{float: right;color: #b2b1b1;font-size: 0.3rem}
.im #page1-xiaoxi dl dt .last_xiaoxi{
    display: flex;
}



/* 1. 固定父容器尺寸 */
.im #page1-xiaoxi dl dd {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0.08rem;
    background: #e8ecf1;
}

.im #page1-xiaoxi .gf-name{position: absolute;
    background: linear-gradient(to bottom, #febf6e, #f60);
    color: #fff;
    border-radius: 0.15rem;
    padding: 2px 5px;
    font-size: 0.3rem;
    bottom: 0;
    left: 0.3rem;}


.im #page1-xiaoxi .gf-tag{float: none!important;height:0.5rem}
.im #page1-xiaoxi .gf-tag img{height:0.5rem;vertical-align: sub; }
.red-v-tag{float:none!important;display:inline-block;width:0.44rem;height:0.44rem;margin-left:0.1rem;vertical-align:-0.07rem;line-height:1;}
.red-v-tag svg{display:block;width:100%;height:100%;}
.group-level-tag{float:none!important;display:inline-block;width:0.48rem;height:0.48rem;margin-left:0.1rem;vertical-align:-0.09rem;line-height:1;}
.group-level-tag img{display:block;width:100%;height:100%;object-fit:contain;}
#page7-qunliao .top-2 .red-v-tag-header{width:0.46rem;height:0.46rem;vertical-align:-0.08rem;margin-left:0.12rem;flex-shrink:0;}
#page7-qunliao .top-2 .group-level-tag-header{width:0.5rem;height:0.5rem;vertical-align:-0.09rem;margin-left:0.12rem;flex-shrink:0;}
#page7-qunliao .top{align-items:center;}
#page7-qunliao .top-1,#page7-qunliao .top-3{flex-shrink:0;}
#page7-qunliao .top-2{flex:1;min-width:0;text-align:center;}
#page7-qunliao .top-2.has-auth-pill{padding:6px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;}
#page7-qunliao .top-2 .qun-title-row{display:inline-flex;align-items:center;justify-content:center;max-width:100%;line-height:1.25;}
#page7-qunliao .top-2 .qun-title-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;}
#page7-qunliao .top-2 .qun-auth-pill-row{display:flex;justify-content:center;line-height:1;margin-top:3px;}
.qun-auth-pill{display:inline-flex;align-items:center;justify-content:center;padding:2px 10px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:0.6px;line-height:1.35;white-space:nowrap;box-shadow:0 1px 2px rgba(0,0,0,0.06);}
.qun-auth-pill-official{background:linear-gradient(135deg,#FFF4CC 0%,#F5D076 55%,#E6B64C 100%);color:#5C3A06;border:1px solid #D9A438;box-shadow:inset 0 1px 0 rgba(255,255,255,0.65),0 1px 3px rgba(217,164,56,0.28);}
.qun-auth-pill-l1{background:linear-gradient(135deg,#E7FBF1 0%,#C2F2DA 100%);color:#0F6E42;border:1px solid #6ED9A5;}
.qun-auth-pill-l2{background:linear-gradient(135deg,#E8F4FF 0%,#C2E1FF 100%);color:#1353A3;border:1px solid #75B8FA;}
.qun-auth-pill-l3{background:linear-gradient(135deg,#F0EBFF 0%,#D8CCFF 100%);color:#4C2899;border:1px solid #A78BFA;}
.qun-auth-pill-l4{background:linear-gradient(135deg,#FFF2E0 0%,#FFD6A3 100%);color:#9A4608;border:1px solid #F4AE5B;}
.qun-auth-pill-l5{background:linear-gradient(135deg,#FFEBEE 0%,#FFC8D1 100%);color:#A11A30;border:1px solid #E88B99;box-shadow:inset 0 1px 0 rgba(255,255,255,0.6),0 1px 2px rgba(209,52,78,0.16);}
.qun-auth-pill-l6{background:linear-gradient(135deg,#332D24 0%,#181512 100%);color:#F8D57E;border:1px solid #C99B3B;box-shadow:inset 0 1px 0 rgba(255,227,153,0.28),0 1px 3px rgba(0,0,0,0.22);}

.im #page1-xiaoxi .zhiding-ico{
    position: absolute;
    right: 0.2rem;
    top: 1.5rem;
    color: #e46262;
    display: flex;
}


/* 2. 网格容器 - 固定3列，自动撑满 */
.im #page1-xiaoxi dl dd ul {
    display: flex;
    flex-wrap: wrap;               /* 自动换行 */
    justify-content: center;       /* 水平居中（整体） */
    align-content: center;         /* 垂直居中（整体） */
    gap: 1px;                      /* 头像间隔，可调 */
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    background: #e8ecf1;           /* gap露出的底色 */
}

/* 3. 每个头像占满格子 */
.im #page1-xiaoxi dl dd ul li {
    flex: 0 0 calc(33.33% - 1px);  /* 减去gap宽度 */
    height: calc(33.33% - 1px);
    overflow: hidden;
    background: #d5dbe3;
    border-radius: 0.04rem;
}
.im #page1-xiaoxi dl dd ul li img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 只有 1 张图时，占满整个区域 */
/*.im #page1-xiaoxi dl dd ul li:only-child {*/
/*    flex: 1 1 100%;*/
/*    height: 100%;*/
/*}*/


.im #page1-xiaoxi .last_xiaoxi p{color: #bbb;font-size: 0.35rem;
    width: 90%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.im #page1-xiaoxi .dl-notice-badges{
    position: absolute;
    right: 0.3rem;
    bottom: 0.15rem;
    display: flex;
    align-items: center;
}
.im #page1-xiaoxi .dl-notice-badges > * + *{
    margin-left: 0.08rem;
}
.im #page1-xiaoxi .dl-notice-badges .dl-unread_num,
.im #page1-xiaoxi .dl-notice-badges .dl-mention_num{
    font-size: 0.3rem;
    min-width: 0.5rem;
    height: 0.5rem;
    padding: 0 0.08rem;
    box-sizing: border-box;
    background: #f00;
    color: #fff;
    border-radius: 0.28rem;
    text-align: center;
    line-height: 0.5rem;
}
/* 滑动菜单外层容器 — 关键：overflow:hidden 隐藏超出部分，按钮自然隐藏 */
#page1-xiaoxi .msg-swipe-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 2px;
    background: #fff;
}

/* 内容区域 (原dl样式) */
#page1-xiaoxi .swipe-content {
    background: #fff;
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    width: 100%;
    position: relative;
    z-index: 2;
}
/* 右侧操作按钮容器（左滑时显示） */
#page1-xiaoxi .action-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3.9rem;
    height: 95%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    z-index: 1;
    background: #f8f8f8;
}
#page1-xiaoxi.is-archived-mode .action-right {
    width: 3.0rem;
}
#page1-xiaoxi .action-right .action-btn {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.32rem;
    font-weight: 500;
    cursor: pointer;
}
#page1-xiaoxi .action-right .btn-delete {
    background: #f56c6c;
    color: #fff;
}
#page1-xiaoxi .action-right .btn-block {
    background: #909399;
    color: #fff;
}
#page1-xiaoxi .action-right .btn-archive {
    background: #5b6d8c;
    color: #fff;
}
#page1-xiaoxi .action-right .btn-unarchive {
    background: #10b981;
    color: #fff;
}
#page1-xiaoxi .action-right .btn-mute {
    background: #f59e0b;
    color: #fff;
}
#page1-xiaoxi .action-right .action-btn span{font-size: 0.3rem; white-space: nowrap;}
/* Telegram-style 已归档对话入口与二级页样式 */
#page1-xiaoxi .im-archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.3rem;
    box-sizing: border-box;
}
#page1-xiaoxi .im-archive-back {
    display: inline-flex;
    align-items: center;
    font-size: 0.36rem;
    color: #333;
    cursor: pointer;
    flex-shrink: 0;
}
#page1-xiaoxi .im-archive-title {
    font-size: 0.42rem;
    font-weight: 600;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#page1-xiaoxi .im-archive-batch {
    font-size: 0.3rem;
    color: #4b6cb7;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
}
#page1-xiaoxi .im-archive-tip {
    background: #f3f5f8;
    color: #6b7280;
    font-size: 0.3rem;
    padding: 0.18rem 0.35rem;
    text-align: center;
    border-bottom: 1px solid #eceff3;
    flex-shrink: 0;
}
#page1-xiaoxi .im-archive-entry {
    display: flex;
    align-items: center;
    padding: 0.24rem 0.32rem;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
#page1-xiaoxi .im-archive-entry:active {
    background: #f7f8fa;
}
#page1-xiaoxi .im-archive-icon {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 0.22rem;
    background: linear-gradient(135deg, #8e9aaf 0%, #5b6d8c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0.28rem;
}
#page1-xiaoxi .im-archive-entry-body {
    flex: 1;
    min-width: 0;
}
#page1-xiaoxi .im-archive-entry-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.1rem;
}
#page1-xiaoxi .im-archive-entry-name {
    font-size: 0.42rem;
    font-weight: 600;
    color: #1f2937;
}
#page1-xiaoxi .im-archive-entry-meta {
    display: inline-flex;
    align-items: center;
}
#page1-xiaoxi .im-archive-unread-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0.48rem;
    height: 0.48rem;
    padding: 0 0.14rem;
    border-radius: 999px;
    background: #9ca3af;
    color: #fff;
    font-size: 0.28rem;
    font-weight: 600;
    margin-left: 0.12rem;
}
#page1-xiaoxi .im-archive-count-pill {
    font-size: 0.3rem;
    color: #9ca3af;
    margin-left: 0.12rem;
}
#page1-xiaoxi .im-archive-entry-sub {
    font-size: 0.33rem;
    color: #8c939d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#page1-xiaoxi .im-archive-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 0.36rem;
    padding: 1.6rem 0.4rem;
}
.top-tool .im-tool-archive-ico {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
#page1-xiaoxi .icon-jia{margin-right: 0.5rem;}
.top-tool{
    position: absolute;
    z-index: 11;
    background: #fff;
    right: 0.1rem;
    top:1.2rem;
    padding: 0.2rem 0.5rem;
    box-shadow: 0 0 3px 0 #ccc;
    border-radius: 6px;
}
.top-tool li{margin: 10px 0;width: 100%;display: flex;align-items: center;}
.top-tool li span{margin-right: 0.1rem}
.top-tool::after {
    content: '';
    position: absolute;
    top: -0.3rem;
    right: 0.4rem;
    width: 0.8rem;
    height: 0.4rem;
    background: #ececec;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    /* 三个顶点：(顶部中间) (左下) (右下) -> 形成正三角形，顶点朝上 */
    transform: translate(20%, -20%); /* 可选：微调位置，让三角形更贴合右上角边缘 */
}
.top-tool li a{text-decoration: initial;color: #303133;}
/*页面2 聊天*/
.im #page2-liaotian{
    width: 100%;height: 100%;position: absolute;top:0;
    left: 100%;
    /*left: 0%;*/
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
}
.im #page2-liaotian .top{display: flex;justify-content: space-between;background: #fff;flex-shrink: 0;}
.im #page2-liaotian .top-1{padding: 12px}
.im #page2-liaotian .top-2{padding: 12px}
.im #page2-liaotian .top-3{padding: 12px}


/*客服 底部输入框*/
#page2-liaotian .kehu-bot{width: 100%;height: auto;min-height: 140px;max-height: 46vh;border-top: 1px solid #ccc;position: relative;background:#f9f9f9;z-index: 20;flex-shrink: 0;padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));}
#page2-liaotian .kehu-bot .tool{padding: 5px;font-size: 20px;border-bottom: 1px solid #ecebeb;display: flex}
#page2-liaotian .kehu-bot .tool i{font-size: 0.55rem;margin-right: 10px}
#page2-liaotian .kehu-bot .msg-bot{}
#page2-liaotian .kehu-bot .msg-bot>span{color: #999;margin-left: 10px}
#page2-liaotian .kehu-bot button{float: right;margin-right: 10px;}

#page2-liaotian #chatBox{width: 100%; height: auto; min-height: 65px; max-height: 28vh;  padding: 5px 10px;border: none;overflow-y: auto;white-space: pre-wrap;line-height: 1.45;user-select: text !important;-webkit-user-select: text !important;-webkit-touch-callout: default;touch-action: manipulation;cursor: text;}
#page2-liaotian #chatBox img{max-width: 80%;max-height: 120px}
#page2-liaotian #chatBox:focus {
    outline: none; /* 移除聚焦时的黑色边框 */
}

/*聊天内容*/
#page2-liaotian #liaotian-list{flex: 1;min-height: 0;display: flex;flex-direction: column;overflow: hidden;position: relative;}
#page2-liaotian #liaotian-list ul{padding: 18px;flex: 1;min-height: 0;height: auto;
    overflow-y: auto;-webkit-overflow-scrolling: touch;touch-action: pan-y;overscroll-behavior-y: contain;position: relative;}
#page2-liaotian #liaotian-list li{display: flex;margin-bottom: 0.5rem;animation: fadeIn 0.3s ease;}

.changan_zz{width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background: #00000000;    z-index: 1000;}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#page2-liaotian #liaotian-list .lt-touxiang{width: 1.1rem;height: 1.1rem;flex-shrink: 0;position: relative;}
#page2-liaotian #liaotian-list .lt-touxiang img{width: 100%;height: 100%;display: block;object-fit: cover;border-radius: 5px}
#page2-liaotian #liaotian-list .lt-xiaoxi{max-width: 8.5rem;margin-left: 14px;position: relative;
    min-height: 22px;
    line-height: 1.5;
    padding: 6px 12px;
    background-color: #fff;
    border-radius: 3px;
    color: #333;
    word-break: break-all;
    display: inline-block;border: 1px solid #f0f0f0;}

#page2-liaotian #liaotian-list .msg-content-text,
#page7-qunliao #qunliao-list .msg-content-text {
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#page2-liaotian #liaotian-list .msg-content-text a,
#page7-qunliao #qunliao-list .msg-content-text a {
    color: #1677ff;
    text-decoration: underline;
    cursor: pointer;
}
#page2-liaotian #liaotian-list .lt-xiaoxi:before {

    content: '';
    display: inline-block;
    border-style: solid;
    border-width: 1px 1px 0 0;
    height: .3rem;
    width: .3rem;
    position: absolute;
    top: 17px;
    background: inherit;
    border-color: inherit;
    left: -0.16rem;;
    transform: translate(0, -50%) rotate(-135deg);

}
#page2-liaotian #liaotian-list .you{flex-direction: row-reverse}
#page2-liaotian #liaotian-list .you .lt-xiaoxi{margin: 0 14px 0 0;    background-color: #a5d7ff;border: 1px solid #a5d7ff;}
#page2-liaotian #liaotian-list .you .lt-xiaoxi a{text-decoration: none;
    color: #1a6231;}
#page2-liaotian #liaotian-list .you .lt-xiaoxi:before{left: auto;right: -0.16rem;border-width: 0 0 1px 1px  ;}

#page2-liaotian #liaotian-list .system{width: 100%;text-align: center;display: flex;justify-content: center;color: #aaa;padding: 5px;}

#page2-liaotian #liaotian-list .gf-name{
    display: none;
    position: absolute;
    background: linear-gradient(to bottom, #febf6e, #f60);
    color: #fff;
    border-radius: 0.15rem;
    padding: 2px 2px;
    font-size: 0.3rem;
    bottom: -0.2rem;
    /*禁止换行*/
    white-space: nowrap;
    left: -0.1rem;}
#page2-liaotian #liaotian-list .gf_tag .gf-name{display: block;}

#page2-liaotian .load-more{text-align: center;display: flex;justify-content: center;
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    color: #4a6cf7;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
    z-index: 1;
}
#page2-liaotian .load-more span{text-align: center}

#page2-liaotian .lt-xiaoxi .el-image{max-width: 4.2rem;}
#page2-liaotian .lt-xiaoxi .el-image img{border-radius: 5px}
#page2-liaotian .lt-xiaoxi .image-slot{width: 2rem;height: 1.8rem;text-align: center;display: flex;flex-wrap: wrap;justify-content: center;align-items: center}
#page2-liaotian .lt-xiaoxi .image-slot p{text-align: center;font-size: 10px;color: #737373}
#page2-liaotian .lt-xiaoxi .image-slot .iconfont{
    font-size: 0.8rem;
    color: #737373;
}

/* 聊天图片上传中的本地预览、进度和旋转反馈 */
.chat-upload-preview{
    position: relative;
    display: inline-flex;
    min-width: 2.4rem;
    min-height: 2.2rem;
    max-width: 4.2rem;
    overflow: hidden;
    border-radius: 5px;
    vertical-align: top;
}
.chat-upload-preview .el-image{
    display: block;
    min-width: 2rem;
    min-height: 1.8rem;
}
.chat-image-uploading{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    pointer-events: none;
}
.chat-image-uploading > * + *{
    margin-top: 0.12rem;
}
.chat-image-uploading span:last-child{
    color: #fff;
    font-size: 0.3rem;
    line-height: 1;
    white-space: nowrap;
}
.chat-upload-spinner{
    width: 0.5rem;
    height: 0.5rem;
    border: 3px solid rgba(255, 255, 255, 0.42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: chat-upload-spin 0.8s linear infinite;
}
@keyframes chat-upload-spin{
    to{transform: rotate(360deg);}
}
.chat-image-upload-failed{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.08rem;
    color: #fff;
    background: rgba(120, 16, 16, 0.62);
    text-align: center;
    box-sizing: border-box;
}
.chat-image-upload-failed > * + *{
    margin-top: 0.12rem;
}
.chat-image-upload-failed span{
    color: #fff;
    font-size: 0.26rem;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.chat-image-retry{
    margin: 0;
    padding: 0.06rem 0.16rem;
    border: 0;
    border-radius: 3px;
    background: #fff;
    color: #b42318;
    font-size: 0.26rem;
    line-height: 1;
    cursor: pointer;
}

#page2-liaotian .user_lixian{transition: all 0.5s}
#page2-liaotian .user_lixian dd{transition: all 0.5s;filter: grayscale(90%)}


.popover-popup{    max-height: 50vh;overflow-y: scroll;max-width: 600px;
    margin: 0 auto;
    left: 0 !important;
    right: 0 !important;}
.popover-popup .el-popover__title{text-align: center}
.popover-popup *{font-size: 12px}



.pop-tap-menu{
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    z-index: 1200;

}
.changan_menu {
    background: #4c4c4c;
    border-radius: .15rem;
    padding: .2rem .4rem;
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    position: relative; color: #fff;font-size: 0.35rem;
}
.changan_menu > * + *{margin-left: .3rem;}
.changan_menu dt{font-size: 0.3rem}


.pop-menu-sanjiao {
    width: 0;
    height: 0;
    border-left: .2rem solid transparent;
    border-right: .2rem solid transparent;
    border-top: .16rem solid #4c4c4c;

    flex-shrink: 0;    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    margin-top: -1px;
}



/*聊天内容 结束*/


/**********用户信息页 page3-userinfo**********/
.im #page3-userinfo{  width: 100%;height: 100vh;
    /*left: 0%;z-index: 3;*/
    background: #f8f8f8;
    display: block;
    transition: all 0.4s;
}

.im #page3-userinfo .top{display: flex;justify-content: space-between;background: #fff;}
.im #page3-userinfo .top-1{padding: 12px;color: #666}
.im #page3-userinfo .top-2{padding: 12px}
.im #page3-userinfo .top-3{padding: 12px}
.im #page3-userinfo .userinfo-img{background: #fff;padding: 20px}
.im #page3-userinfo .userinfo-img{display: flex}
.im #page3-userinfo .userinfo-img img{width: 1.5rem;height: 1.5rem;display: block;object-fit: cover;border-radius: 5px;margin-right: 5px}
.im #page3-userinfo .userinfo-img .name{font-weight: bold}
.im #page3-userinfo .userinfo-img .des{color: #aaa;font-size: 0.3rem;margin-top: 5px}
.im #page3-userinfo .userinfo-set{background: #fff;margin-top: 20px;padding: 10px}
.im #page3-userinfo .userinfo-set dl{display: flex;justify-content: space-between;border-bottom: 1px solid #e6e6e6;
    padding: 15px 10px;}
.im #page3-userinfo .userinfo-set dl:last-child{border-bottom: none;}
.im #page3-userinfo .userinfo-set dl span{color: #ccc}
.im #page3-userinfo .userinfo-btn{padding: 15px}
.im #page3-userinfo .userinfo-btn button{width: 100%;padding: 20px;margin: 0.2rem auto;}
.user_info_box .el-drawer__header{display: none}
.user_info_box .el-drawer__body{padding: 0}

/**********客服设置页面 page4-my**********/
.im #page4-my{width: 100%;height: 100vh;position: absolute;top:0;
    left: 100%;overflow: auto;
    /*left: 0%;*/
    background: #f8f8f8;
    display: block;transition: all 0.4s;}

.im #page4-my .top{display: flex;justify-content: space-between;background: #fff;}
.im #page4-my .top-1{padding: 12px;color: #666}
.im #page4-my .top-2{padding: 12px}
.im #page4-my .top-3{padding: 12px}
.im #page4-my .userinfo-img{display: flex;background: #fff;padding: 20px;margin-top: 5px}
.im #page4-my .userinfo-img img{width: 1.5rem;height: 1.5rem;display: block;object-fit: cover;border-radius: 5px;margin-right: 5px}
.im #page4-my .userinfo-img .name{font-weight: bold}
.im #page4-my .userinfo-img .des{color: #aaa;font-size: 0.3rem;margin-top: 5px}
.im #page4-my .userinfo-set{background: #fff;margin-top: 10px;padding: 10px}
.im #page4-my .userinfo-set dl{display: flex;justify-content: space-between;border-bottom: 1px solid #e6e6e6;
    padding: 10px 10px;    flex-wrap: wrap;    color: #666;}
.im #page4-my .userinfo-set dl:last-child{border-bottom: none;}
.im #page4-my .userinfo-set dl dt{font-size: 0.35rem}
.im #page4-my .userinfo-set dl dt span{font-size: 0.3rem}
.im #page4-my .userinfo-set dl dd{font-size: 0.35rem}
/*.im #page4-my .userinfo-set dl span{color: #ccc}*/
.im #page4-my .userinfo-btn{padding: 15px}
.im #page4-my .userinfo-btn button{width: 100%;padding: 20px}
.im #page4-my .el-table .cell{font-size: 12px;padding: 0}
.im #page4-my .el-table .cell span{font-size: 12px}
.im #page4-my .el-drawer.btt{bottom: 1.3rem}

.im #page4-my .userinfo-ewm{
    position: absolute;
    right: 0.3rem;
    top: 2.3rem;
}
.im #page4-my .userinfo-ewm span{font-size: 0.8rem;color: #666}


.im #page4-my .user-jianjie{    flex-wrap: wrap;}
.im #page4-my .user-jianjie dd{width: 100%}
.im #page4-my .user-jianjie dd span{float: right;font-size: 0.3rem;color: #888;}

.im #page4-my .user-jianjie dt{width: 100%;text-align: left}

.im #page4-my .xy_box{min-height: 7rem;max-height: 11rem;overflow-y: scroll}
.password-dialog{max-width: 520px;margin-left: auto;margin-right: auto;}
.password-dialog-form .el-form-item{margin-bottom: 0.35rem;}
.password-dialog-form .el-form-item__label{padding-bottom: 0.08rem;color: #333;}
.password-dialog-tip{color: #888;font-size: 0.3rem;line-height: 1.5;}

.qun_ewm_modal{background: #fff;}
.qun_ewm_modal .userinfo-img{display: flex;background: #fff;padding: 20px;margin-top: 5px}
.qun_ewm_modal .userinfo-img img{width: 1.5rem;height: 1.5rem;display: block;object-fit: cover;border-radius: 5px;margin-right: 5px}
.qun_ewm_modal .userinfo-img .name{font-weight: bold}
.qun_ewm_modal .userinfo-img .des{color: #aaa;font-size: 0.3rem;margin-top: 5px}


/* ── 卡片容器 ── */
.im #page4-my .balance-card {
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff, #fafcff);
    /*border-radius: 24px;*/
    padding: 0.3rem;
    box-shadow:
            0 20px 40px -12px #f0f6ff26,
            0 4px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 0.3rem;
}



.im #page4-my .balance-card:hover {
    transform: translateY(-2px);
    box-shadow:
            0 28px 56px -16px rgba(0, 20, 50, 0.20),
            0 4px 18px rgba(0, 0, 0, 0.04);
}



.im #page4-my .balance-label {
    font-size: 15px;
    font-weight: 500;
    color: #5a6a7e;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}
.im #page4-my .balance-label > * + * {
    margin-left: 6px;
}

/* 标签小圆点装饰 */
.im #page4-my .balance-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4a7cff;
    border-radius: 50%;
    opacity: 0.7;
    margin-right: 2px;
}

.im #page4-my .withdraw-btn {
    background: #eef3fe;
    color: #4a7cff;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(74, 124, 255, 0.08);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}
.im #page4-my .withdraw-btn > * + * {
    margin-left: 4px;
}

.im #page4-my .withdraw-btn:hover {
    background: #4a7cff;
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(74, 124, 255, 0.40);
    transform: scale(1.02);
}

.im #page4-my .withdraw-btn:active {
    transform: scale(0.96);
}

/* ── 金额主体 ── */
.im #page4-my .balance-amount-wrapper {
    display: flex;
    align-items: center;

    padding-left: 2px;
    position: relative;
    z-index: 1;
}
.im #page4-my .balance-amount-wrapper > * + * {
    margin-left: 4px;
}

.im #page4-my .balance-number {
    font-size: 0.5rem;
    font-weight: 700;
    color: #24bf34;
    letter-spacing: -0.5px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.im #page4-my .balance-currency {
    font-size: 0.4rem;
    font-weight: 500;
    color: #6b7d93;
    margin-left: 2px;
    align-self: flex-end;
    padding-bottom: 5px;
}

/* ── 今日收入 ── */
.im #page4-my .today-income {
    display: inline-flex;
    align-items: center;
    background: #f2f9f6;
    padding: 6px 16px 6px 14px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    color: #1c7e6c;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(46, 196, 182, 0.15);
}
.im #page4-my .today-income > * + * {
    margin-left: 6px;
}

.im #page4-my .today-income .income-icon {
    font-size: 16px;
    line-height: 1;
}



/* ── 底部装饰分隔线（极淡） ── */
.im #page4-my .card-footer-deco {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}







/**********联系人 page5-lianxiren**********/
#page5-lianxiren{
    width: 100%;height: 100vh;position: absolute;top:0;
    left: 100%;
    /*left: 0%;*/
    background: #f8f8f8;
    display: block;
    /*z-index: 3;*/
}

#page5-lianxiren .top{display: flex;justify-content: space-between;background: #fff;}
#page5-lianxiren .top-1{padding: 12px}
#page5-lianxiren .top-2{padding: 12px}
#page5-lianxiren .top-3{padding: 12px}

#page5-lianxiren .lianxiren li{display: flex;background: #fff;padding: 10px;margin-top: 3px;align-items: center}
#page5-lianxiren .lianxiren .lianxiren-ul{height: calc(100vh - 5.5rem);overflow-y: auto;}
#page5-lianxiren .lianxiren li span{width: 0.85rem;height: 0.85rem;overflow: hidden;margin-right: 0.2rem}
#page5-lianxiren .lianxiren li img{width: 0.85rem;height: 0.85rem;display: block;object-fit: cover;border-radius: 0.2rem}

#page5-lianxiren .dl-box{border-bottom: 5px}
#page5-lianxiren .dl-box dl{display: flex;background: #fff;padding: 10px;align-items: center;border-top:1px solid #e6e6e6;}
#page5-lianxiren .dl-box dl img{width: 0.85rem;height: 0.85rem;display: block;object-fit: cover;border-radius: 0.2rem;margin-right: 10px}
#page5-lianxiren .dl-box dl dt{position: relative}
#page5-lianxiren .dl-box dl dt span{width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    color: #fff;
    background: #ff5f5f;
    display: inline-block;
    text-align: center;
    line-height: 0.5rem;
    font-size: 0.25rem;
    position: absolute;
    top: -0.2rem;}
/*#page5-lianxiren .gf-name{display: none;position: absolute;*/
/*    background: linear-gradient(to bottom, #febf6e, #f60);*/
/*    color: #fff;*/
/*    border-radius: 0.15rem;*/
/*    padding: 2px 5px;*/
/*    font-size: 0.3rem;*/
/*    bottom: 0;*/
/*    left: 0.3rem;}*/



#page5-lianxiren .gf-tag{display: none;;height:0.5rem;overflow: initial!important;margin-left: 0.1rem}
#page5-lianxiren .gf-tag img{height:0.6rem;vertical-align:-webkit-baseline-middle;
    width: auto!important;
    min-height: auto!important; }
#page5-lianxiren .gf_haoyou .gf-tag{display: inline-block}
#page5-lianxiren .gf_haoyou{color: #ffc203;}

/*.im #page1-xiaoxi .gf_haoyou .gf-name{display: block!important}*/



/**********搜索添加好友 page6-jiahaoyou**********/
#page6-jiahaoyou{
    width: 100%;height: 100vh;position: absolute;top:0;
    left: 100%;
    /*left: 0%;*/
    background: #f8f8f8;
    display: block;
    /*z-index: 3;*/
}

#page6-jiahaoyou .top{display: flex;justify-content: space-between;background: #fff;}
#page6-jiahaoyou .top-1{padding: 12px;color: #666}
#page6-jiahaoyou .top-2{padding: 12px}
#page6-jiahaoyou .top-3{padding: 12px}
#page6-jiahaoyou .seare{width: 96%;margin: 0 auto;padding: 0.2rem}
#page6-jiahaoyou .seare .el-input__wrapper{padding: 0.2rem}
#page6-jiahaoyou .seare .el-input__inner{text-align: center}
#page6-jiahaoyou .sub_sou{
    width: 92%;
    background: #fff;
    margin: 0 auto;
    padding: 0.3rem;
    box-sizing: border-box;color: #67C23A;
}
#page6-jiahaoyou .sub_sou .iconfont{color: #333;font-size: 0.5rem;display: flex;
    align-items: center;}
#page6-jiahaoyou .sub_sou .icon-qunliao:before{font-size: 0.8rem; color: #67C23A; }
#page6-jiahaoyou .sub_sou .s_name{font-size: 0.4rem;color: #67C23A}

#page6-jiahaoyou .sou_userinfo{background: #f2f2f2}


#page6-jiahaoyou .sou_userinfo .userinfo-img{background: #fff;padding: 20px}
#page6-jiahaoyou .sou_userinfo .userinfo-img{display: flex;align-items: center;}
#page6-jiahaoyou .sou_userinfo .userinfo-img img{width: 1.5rem;height: 1.5rem;display: block;object-fit: cover;border-radius: 5px;margin-right: 5px}
#page6-jiahaoyou .sou_userinfo .userinfo-img .name{font-weight: bold}
#page6-jiahaoyou .sou_userinfo .userinfo-img .des{color: #aaa;font-size: 0.3rem;margin-top: 5px}
#page6-jiahaoyou .sou_userinfo .userinfo-set{background: #fff;margin-top: 20px;padding: 10px}
#page6-jiahaoyou .sou_userinfo .userinfo-set dl{display: flex;justify-content: space-between;border-bottom: 1px solid #e6e6e6;
    padding: 15px 10px;}
#page6-jiahaoyou .sou_userinfo .userinfo-set dl:last-child{border-bottom: none;}
#page6-jiahaoyou .sou_userinfo .userinfo-set dl span{color: #ccc}
#page6-jiahaoyou .sou_userinfo .userinfo-btn{padding: 15px}
#page6-jiahaoyou .sou_userinfo .userinfo-btn button{width: 100%;padding: 20px;margin: 0.2rem auto;}

#page6-jiahaoyou #sou_tx{}
/* 2. 网格容器 - 固定3列，自动撑满 */
#page6-jiahaoyou #sou_tx{
    display: flex;
    flex-wrap: wrap;               /* 自动换行 */
    justify-content: center;       /* 水平居中（整体） */
    align-content: center;         /* 垂直居中（整体） */
    gap: 1px;                      /* 头像间隔，可调 */
    width: 1.5rem;height: 1.5rem;

    margin: 0;
    border-radius: 6px;
    padding: 0.1rem;
    margin-right: 0.2rem;
    list-style: none;
    background: #e8ecf1;           /* gap露出的底色 */
}

/* 3. 每个头像占满格子 */
#page6-jiahaoyou #sou_tx li {
    flex: 0 0 calc(33.33% - 1px);  /* 减去gap宽度 */
    height: calc(33.33% - 1px);
    overflow: hidden;
    background: #d5dbe3;
    border-radius: 0.04rem;
}
#page6-jiahaoyou #sou_tx li img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/*发起群聊 弹窗*/
.news_qunliao{}
.news_qunliao .top{display: flex;justify-content: space-between;background: #fff;}
.news_qunliao .top-1{padding: 12px}
.news_qunliao .top-2{padding: 12px}
.news_qunliao .top-3{padding: 12px}
.el-drawer__header{text-align: center;font-weight: bold}
.qunliao_box .el-drawer__header{display: none!important;}
.news_qunliao{padding: 0 ;background: #f2f2f2;}
.qun-xuan{background: #f2f2f2;margin-top: 10px;}
.qun-xuan img{width: 0.85rem;height: 0.85rem;display: block;object-fit: cover;border-radius: 0.2rem;margin-right: 10px}
.qun-xuan .el-checkbox__label{
    display: flex;
    align-items: center;
}


.qun-xuan .el-checkbox__inner{width: 0.5rem;height: 0.5rem}
.qun-xuan .el-checkbox{width: 100%;margin-bottom: 6px;background: #fff;padding: 9px;
    height: auto;margin-right: 0;overflow: hidden;
    text-overflow:ellipsis;
    white-space: nowrap;}
.qun-xuan .is-disabled{filter: saturate(0);}
.qun-xuan-gly .is-disabled{filter: saturate(1)!important;}

.qun-xuan .ruqun_msg{
    color: #acabab;
    font-size: 0.3rem;
    margin-left: 0.3rem;
}

/*页面7 群聊*/
#page7-qunliao{
    width: 100%;height: 100%;position: absolute;top:0;
    left: 100%;
    /*left: 0%;*/
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
}
#page7-qunliao .top{display: flex;justify-content: space-between;background: #fff;flex-shrink: 0;}
#page7-qunliao .top-1{padding: 12px}
#page7-qunliao .top-2{padding: 12px}
#page7-qunliao .top-3{padding: 12px}



#page7-qunliao .kehu-bot{
    width: 100%;height: auto;min-height: 140px;max-height: 46vh;border-top: 1px solid #ccc;position: relative;background:#f9f9f9;z-index: 20;flex-shrink: 0;padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));

    /*width: 100%;*/
    /*height: 140px;*/
    /*border-top: 1px solid #ccc;*/
    /*position: fixed;      !* 改 fixed *!*/
    /*bottom: 0;*/
    /*left: 0;              !* 确保从左边开始 *!*/
    /*background: #f9f9f9;*/
    /*z-index: 100;         !* 防止被其他元素遮挡 *!*/
}
#page7-qunliao .kehu-bot .jinyan-box{position: absolute;
    width: 100%;
    height: 100%;
    background:#cccccc00;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #b89797;z-index: 3;}
#page7-qunliao .kehu-bot .tool{padding: 5px;font-size: 20px;border-bottom: 1px solid #ecebeb;display: flex}
#page7-qunliao .kehu-bot .tool i{font-size: 0.55rem;margin-right: 10px}
#page7-qunliao .kehu-bot .msg-bot{}
#page7-qunliao .kehu-bot .msg-bot>span{color: #999;margin-left: 10px}
#page7-qunliao .kehu-bot button{float: right;margin-right: 10px;width: 2rem;}
.im-mention{padding: 0;color: #3659e8;font-weight: 600;background: transparent;}
.im-mention.is-me{color: #a54c00;background: transparent;}
#page7-qunliao .kehu-bot .msg-bot .yinyong{position: relative;
    background: #e8e8e8;
    color: #a9a9a9;
    font-size: 12px;
    float: left;
    width: 7.5rem;
    padding: 2px 4px;
    padding-right: 0.6rem;
    border-radius: 4px;margin-left: 0.1rem;  overflow: hidden;
    text-overflow:ellipsis;
    white-space: nowrap;
}
#page7-qunliao .yinyong .yy-c{font-size: 12px;}
#page7-qunliao .yinyong .yy-colse{
    position: absolute;
    right: 0.1rem;
    top: 0.1rem;
    width: 0.4rem;
    height: 0.4rem;
    background: #bfbfbf;
    border-radius: 50%;
    font-size: 0.25rem;
    color: #fff;
    line-height: 0.4rem;
    text-align: center;
}
#page7-qunliao #chatQun{width: 100%; height: auto; min-height: 65px; max-height: 28vh;  padding: 5px 10px;border: none;overflow-y: auto;white-space: pre-wrap;line-height: 1.45;user-select: text !important;-webkit-user-select: text !important;-webkit-touch-callout: default;touch-action: manipulation;cursor: text;}
#page7-qunliao #chatQun img{max-width: 80%;max-height: 120px}
#page7-qunliao #chatQun:focus {
    outline: none; /* 移除聚焦时的黑色边框 */
}


#page7-qunliao #qunliao-list{position: relative;flex: 1;min-height: 0;display: flex;flex-direction: column;overflow: hidden;}
#page7-qunliao #qunliao-list ul{padding: 18px;flex: 1;min-height: 0;height: auto;
    overflow-y: auto;-webkit-overflow-scrolling: touch;touch-action: pan-y;overscroll-behavior-y: contain;position: relative;}
#page7-qunliao #qunliao-list li{display: flex;margin-bottom: 0.5rem;animation: fadeIn 0.3s ease;position: relative;}
#page7-qunliao #qunliao-list .qun_user_name{
    /*position: absolute;*/
    /*left: 1.3rem;*/
    /*top: -0.1rem;*/
    margin-left: 0.4rem;
    color: #888;
    font-size: 0.3rem;}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#page7-qunliao #qunliao-list .lt-touxiang{width: 1.2rem;height: 1.2rem;flex-shrink: 0;position: relative;}
#page7-qunliao #qunliao-list .lt-touxiang img{width: 100%;height: 100%;display: block;object-fit: cover;border-radius: 5px}
#page7-qunliao #qunliao-list .lt-xiaoxi{max-width: 8.5rem;margin-left: 14px;position: relative;
    min-height: 22px;
    line-height: 1.5;
    padding: 6px 12px;
    background-color: #fff;
    border-radius: 3px;
    color: #333;
    word-break: break-all;
    display: inline-block;border: 1px solid #f0f0f0;margin-top: 0.1rem;padding-right: 0.6rem;}

#page7-qunliao #qunliao-list .lt-xiaoxi:before {

    content: '';
    display: inline-block;
    border-style: solid;
    border-width: 1px 1px 0 0;
    height: .3rem;
    width: .3rem;
    position: absolute;
    top: 17px;
    background: inherit;
    border-color: inherit;
    left: -0.16rem;;
    transform: translate(0, -50%) rotate(-135deg);

}
#page7-qunliao #qunliao-list .you{flex-direction: row-reverse}
#page7-qunliao #qunliao-list .you .lt-xiaoxi{margin: 0.1rem 14px 0 0;    background-color: #a5d7ff;border: 1px solid #a5d7ff;}
#page7-qunliao #qunliao-list .you .lt-xiaoxi:before{left: auto;right: -0.16rem;border-width: 0 0 1px 1px  ;}
#page7-qunliao #qunliao-list .you .qun_user_name{
    /*position: absolute;*/
    /*left: auto!important;*/
    /*right: 1.3rem!important;*/
    margin-left: 0;
    margin-right: 0.4rem;
    text-align: right;

}
#page7-qunliao #qunliao-list .you .lt-xiaoxi a{text-decoration: none;
    color: #1a6231;}
#page7-qunliao #qunliao-list .you .msg-box{text-align: right;}
#page7-qunliao #qunliao-list .msg_yinyong {
    /*position: absolute;*/

    background: #e8e8e8;
    color: #8c8989;
    padding: 1px 4px;
    font-size: 12px;
    overflow: hidden;
    text-overflow:ellipsis;
    white-space: nowrap;max-width: 7.5rem;margin-top: 0.1rem;margin-left: 0.4rem;border-radius: 2px;
}

#page7-qunliao #qunliao-list .you .msg_yinyong {
    margin-left: 0;
    margin-right: 0.4rem;
}

#page7-qunliao #qunliao-list .gf-name{
    display: none;
    position: absolute;
    background: linear-gradient(to bottom, #febf6e, #f60);
    color: #fff;
    border-radius: 0.15rem;
    padding: 2px 2px;
    font-size: 0.3rem;
    bottom: -0.2rem;
    /*禁止换行*/
    white-space: nowrap;
    left: -0.05rem;}
#page7-qunliao #qunliao-list .gf_tag .gf-name{display: block;}
#page7-qunliao #qunliao-list .gf_tag .qun_user_name{color: #ffc203;}

#page7-qunliao #qunliao-list .gf_img{display: none;;height:0.5rem;overflow: initial!important;margin-left: 0.1rem}
#page7-qunliao #qunliao-list .gf_img img{height:0.5rem;vertical-align:middle;}
#page7-qunliao #qunliao-list .gf_tag .gf_img{display: inline-block!important;}


#page7-qunliao #qunliao-list .system{width: 100%;text-align: center;display: flex;justify-content: center;color: #aaa;padding: 5px;}


#page7-qunliao .load-more{text-align: center;display: flex;justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: #4a6cf7;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
    z-index: 1;
}
#page7-qunliao .load-more span{text-align: center}

#page7-qunliao .lt-xiaoxi .el-image{max-width: 4.2rem;}
#page7-qunliao .lt-xiaoxi .el-image img{border-radius: 5px}
#page7-qunliao .lt-xiaoxi .image-slot{width: 2rem;height: 1.8rem;text-align: center;display: flex;flex-wrap: wrap;justify-content: center;align-items: center}
#page7-qunliao .lt-xiaoxi .image-slot p{text-align: center;font-size: 10px;color: #737373}
#page7-qunliao .lt-xiaoxi .image-slot .iconfont{
    font-size: 0.8rem;
    color: #737373;
}

#page7-qunliao .user_lixian{transition: all 0.5s}
#page7-qunliao .user_lixian dd{transition: all 0.5s;filter: grayscale(90%)}
#page7-qunliao .yaoqing_user{width: 100%;text-align: center;display: flex;justify-content: center;color: #aaa;padding: 5px;}
#page7-qunliao .yaoqing_user span{color: #3c6c94;font-size: 0.3rem}
#page7-qunliao .yaoqing_user b{color: #585858;font-size: 0.3rem}
#page7-qunliao .yaoqing_user .sys-time{font-size: 0.3rem}


#page7-qunliao .hongbao-css{display: flex;background: #fd8f34;padding: 0.2rem;width: 4rem}
#page7-qunliao .hongbao-css .hongbao-css-l{width: 1.2rem;}
#page7-qunliao .hongbao-css .hongbao-css-l img{width: 100%;}
#page7-qunliao .hongbao-css .hongbao-css-r h2{color: #9b1919;}
#page7-qunliao .hongbao-css .hongbao-css-r p{}
#page7-qunliao .hongbao-css .hongbao-css-r p span{color: #ffffff;font-size: 0.3rem}

.qun_ewm_box{text-align: center}
.qun_ewm_box #Img{position: absolute;
    top: 1.2rem;
    left: 0;
    right: 0;
    margin: 0 auto;}


/*如果是红包  图片 单独设置样式*/
#page7-qunliao .lt-xiaoxi:has(.hongbao-css) {
    background-color: #fd8f34!important;
    border: 1px solid #a5d7ff;padding: 2px 12px!important;
}

.xf_bongbao{width: 1.2rem;position: fixed;right: 0.2rem;
    z-index: 1;
   top: 2.35rem;background: #ffb1b117;
    border-radius: 50%;}
.xf_bongbao img{width: 1.2rem;    padding: 2px;filter: drop-shadow(0px 0px 3px #666);}
.xf_bongbao p {font-size: 0.3rem;text-align: center;width: 1.2rem;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #ff0000;}
/*弹跳*/
@keyframes tt {
    0%{ transform: translateY(0) scale(1, 1); }
    30% { transform: translateY(-18px) scale(1.1, 0.9); }
    50% { transform: translateY(0) scale(1, 1); }
    70% { transform: translateY(-8px) scale(1.05, 0.95); }
    85% { transform: translateY(0) scale(1, 1); }
    100% { transform: translateY(0) scale(1, 1); }
}
.tt { animation: tt 1.7s cubic-bezier(0.28, 0.84, 0.42, 1) infinite; }

/*摆动*/
@keyframes bd {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(7deg); }
    50% { transform: rotate(-7deg); }
    75% { transform: rotate(4deg); }
    100% { transform: rotate(0deg); }
}
.bd { animation: bd 1.2s ease-in-out infinite; transform-origin: center center; }

/*#page7-qunliao .lt-xiaoxi:has(.fa_img) {*/
/*    background-color: #fd8f34!important;*/
/*    border: 1px solid #a5d7ff;*/
/*}*/

#page1-xiaoxi .user-name:has(.gf-tag) {
    color: #ffc203!important;

}


.pop-qun-menu{
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    z-index: 1200;

}
.qun_changan_menu {
    background: #4c4c4c;
    border-radius: .15rem;
    padding: .2rem .4rem;
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    position: relative; color: #fff;font-size: 0.35rem;
}
.qun_changan_menu > * + *{margin-left: .3rem;}
.qun_changan_menu dt{font-size: 0.3rem}


.qun_pop-menu-sanjiao {
    width: 0;
    height: 0;
    border-left: .2rem solid transparent;
    border-right: .2rem solid transparent;
    border-top: .16rem solid #4c4c4c;

    flex-shrink: 0;    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    margin-top: -1px;
}

.qun_changan_zz{width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background: #00000000;    z-index: 1000;}

#page7-qunliao .qun-gg{position: absolute;z-index: 1;left: 0;right: 0;}
#page7-qunliao .qun-gg .el-alert__description{
    color: #666;
    font-size: 0.3rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
}
#qun_info .qun-jiben .qun-jianjie dt{
    white-space: pre-wrap;
    overflow-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.5;
}



/*新的好友弹窗*/

.news_haoyou_box li{display: flex;background: #fff;padding: 10px 12px;margin-top: 3px;align-items: center}
.news_haoyou_box li > span{width: 1rem;height: 1rem;overflow: hidden;margin-right: 0.2rem;flex-shrink: 0;border-radius: 0.2rem;}
.news_haoyou_box li img{width: 1rem;height: 1rem;object-fit: cover;border-radius: 0.2rem;display: block;}
.news_haoyou{background: #f2f2f2;padding: 0;}
.news_haoyou .li-name{flex: 1;min-width: 0;margin-right: 10px;}
.news_haoyou .li-name .name{overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}
.news_haoyou .beizhu{color: #888;font-size: 12px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}
.news_haoyou .status{display: flex;align-items: center;flex-shrink: 0;white-space: nowrap;}
.news_haoyou .status span + span{margin-left: 6px;}
.news_haoyou .status span{
    width: auto;
    height: auto;
    margin: 0;
    background: #f60;
    color: #fff;
    padding: 4px 10px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}



/*群信息 弹窗*/
.qun_info_box .el-drawer__header{display: none}
.qun_info_box .el-drawer__body{padding: 0}

#qun_info{  width: 100%;height: 100vh;
    background: #f8f8f8;
    display: block;
}
#qun_info .top{display: flex;justify-content: space-between;background: #fff;}
#qun_info .top-1{padding: 12px;color: #666}
#qun_info .top-2{padding: 12px}
#qun_info .top-3{padding: 12px}

#qun_info .qun-user{background: #fff;padding: 0.5rem;}
#qun_info .qun-user ul{display: flex;flex-wrap: wrap;}
#qun_info .qun-user ul li{width: 1.5rem;padding: 0.1rem;position: relative;margin-right: 0.25rem;margin-bottom: 0.25rem;}
#qun_info .qun-user ul li img{width: 1.5rem;height: 1.5rem;display: block;object-fit: cover;border-radius: 5px;}
#qun_info .qun-user ul li p{width: 1.5rem;border-radius: 5px;margin: 5px;    font-size: 0.3rem;text-align: center;overflow: hidden;
    text-overflow:ellipsis;
    white-space: nowrap;}
#qun_info .qun-user .qun-jia,#qun_info .qun-user .qun-jian{width: 1.5rem;height: 1.5rem;border: 1px dashed #a3a3a3;;color: #a19e9c;border-radius: 5px;font-size: 0.8rem;display: flex;justify-content: center;align-items: center;    margin-top: 0.1rem;}
#qun_info .qun-user ul li .glspan{
    position: absolute;
    width: 100%;
    font-size: 0.25rem;
    color: #fff;
    background: #1d1d1d7d;
    text-align: center;
    border-radius: 11px 11px 0 0;
    top: 0;
}
#qun_info .qun-user ul li .qzspan{
    position: absolute;
    width: 100%;
    font-size: 0.25rem;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    text-align: center;
    border-radius: 11px 11px 0 0;
    top: 0;
    font-weight: 600;
}
#qun_info .qun-member-search,
.qun-xuan-gly .qun-member-search {
    padding: 0.15rem 0.2rem 0.25rem;
}
#qun_info .qun-member-more,
.qun-xuan-gly .qun-member-more {
    text-align: center;
    padding: 0.28rem 0.2rem;
    color: #4b6cb7;
    font-size: 0.34rem;
    cursor: pointer;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.15rem;
}
#page6-jiahaoyou .sou-mode-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eee;
}
#page6-jiahaoyou .sou-mode-tabs span {
    flex: 1;
    text-align: center;
    padding: 0.28rem 0;
    font-size: 0.38rem;
    color: #666;
    position: relative;
    cursor: pointer;
}
#page6-jiahaoyou .sou-mode-tabs span.active {
    color: #07c160;
    font-weight: 600;
}
#page6-jiahaoyou .sou-mode-tabs span.active::after {
    content: "";
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: 0;
    height: 3px;
    background: #07c160;
    border-radius: 2px;
}

#qun_info .qun-jiben{background: #fff;padding: 0.5rem;margin-top: 0.2rem}
#qun_info .qun-jiben dl{
    display: flex;    color: #2b2b2b;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid #f2eeee;
    padding-bottom: 0.2rem;
}
#qun_info .qun-jiben dl dd{width: 2.6rem}
#qun_info .qun-jiben dl dt{width: 6.5rem;text-align: right;color: #888;font-size: 0.35rem}
#qun_info .qun-jiben dl dt span{margin-left: 0.2rem;font-size: 0.3rem;}

#qun_info .qun-jiben .qun-jianjie{    flex-wrap: wrap;}
#qun_info .qun-jiben .qun-jianjie dd{width: 100%}
#qun_info .qun-jiben .qun-jianjie dd span{float: right;font-size: 0.3rem;color: #888;}

#qun_info .qun-jiben .qun-jianjie dt{width: 100%;text-align: left}




/* ????????????????????????? */
.emoji-popper{
    width: 92vw !important;
    max-width: 420px !important;
    box-sizing: border-box;
    padding: 10px !important;
}
.emoji-popper .emoji-box{
    width: 100%;
    max-height: min(45vh, 320px);
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.emoji-popper .emoji-box .emoji-list{
    min-width: 0;
    min-height: 42px;
    margin: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}
.emoji-popper .emoji-box .emoji-list span{
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.emoji-popper .emoji-box .emoji-list span:hover,
.emoji-popper .emoji-box .emoji-list span:active{
    background: #f1f3f5;
    transform: scale(1.06);
}
.target,.target2{margin-top: -0.1rem;font-size: 0.45rem;    margin-right: 0.1rem;}

/*红包*/
.hongbao_ico{margin-top: -0.1rem;font-size: 0.45rem;    margin-right: 0.1rem;}
.hongbao_ico .el-dialog__footer{text-align: center}

.hongbao_modal .el-drawer__header{display: none!important;}
.hongbao_body{padding: 0 ;background: #f2f2f2;overflow: clip;}




/* 群聊头像显示. 网格容器 - 固定3列，自动撑满 */
.qun-tx-ul {
    width: 0.85rem;
    height: 0.85rem;
    display: flex;
    flex-wrap: wrap;               /* 自动换行 */
    justify-content: center;       /* 水平居中（整体） */
    align-content: center;         /* 垂直居中（整体） */
    gap: 1px;                      /* 头像间隔，可调 */
    border-radius: 0.2rem;
    margin: 0;
    margin-right: 10px;
    padding: 0;

    list-style: none;
    background: #e8ecf1;           /* gap露出的底色 */
}

/* 3. 每个头像占满格子 */
.qun-tx-ul li {
    flex: 0 0 calc(33.33% - 1px);  /* 减去gap宽度 */
    height: calc(33.33% - 1px);
    overflow: hidden;
    background: #d5dbe3;
    border-radius: 0.04rem;
}
.qun-tx-ul li img {
    display: block;
    width: 100%!important;
    height: 100%!important;
    object-fit: cover;
}



.ruqun_name_b{color: #f60}
.lianxiren-sh-ruqun{}
.lianxiren-sh-ruqun .name{font-size: 0.33rem}
.lianxiren-sh-ruqun em{display:flex;font-style: normal;}
.lianxiren-sh-ruqun em span{padding: 2px 5px!important;height: 0.6rem;margin-right: 0;margin-left: 5px;    text-align: center;font-size: 0.3rem;width: auto;}
.lianxiren-sh-ruqun .tongyi{background: #67C23A!important;}
.lianxiren-sh-ruqun .jujue{background: #F56C6C!important;}
.lt-time{    font-size: 0.2rem;
    position: absolute;
    right: 0.05rem;
    bottom: -0.15rem;
    color: #888;}
.you .lt-time{color: #1b8f30}

/*发红包 弹窗太大 缩小一点*/
/* 推荐在全局样式文件中定义，或使用不带 scoped 的 style 标签 */
.my-date-picker {
    transform: scale(0.8); /* 缩小到80%，根据需要调整 */
    transform-origin: top left; /* 控制缩放的原点，防止位置偏移[reference:7] */
}

/*发红包 弹窗太大 缩小一点  结束*/





#page7-qunliao #qunliao-list .gly-tag{
   width: 100%;text-align: center;
    position: absolute;
    background: linear-gradient(to bottom, #c97f59, #fdacea);
    color: #fff;
    border-radius: 0.15rem;
    padding: 2px 2px;
    font-size: 0.25rem;
    bottom: -0.2rem;
    /*禁止换行*/
    white-space: nowrap;
    left: -0.05rem;}
#page7-qunliao #qunliao-list .qz-tag{
    width: 100%;
    text-align: center;
    position: absolute;
    background: linear-gradient(to bottom, #f59e0b, #d97706);
    color: #fff;
    border-radius: 0.15rem;
    padding: 2px 2px;
    font-size: 0.25rem;
    font-weight: 600;
    bottom: -0.2rem;
    white-space: nowrap;
    left: -0.05rem;
}

/* P1: reconnect banner, new-message jump, text send status */
.im-conn-banner{
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 86%;
    z-index: 40;
    pointer-events: none;
    text-align: center;
    font-size: 0.3rem;
    line-height: 1.35;
    padding: 5px 14px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    background: rgba(255, 243, 205, 0.94);
    color: #664d03;
    box-sizing: border-box;
    white-space: nowrap;
}
.im-conn-banner.is-offline{background: rgba(248, 215, 218, 0.95);color: #842029;}
.im-conn-banner.is-reconnecting,
.im-conn-banner.is-connecting{background: rgba(255, 243, 205, 0.94);color: #664d03;}
.im-new-msg-indicator{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(var(--im-chat-input-height, 140px) + var(--im-keyboard-inset, 0px) + env(safe-area-inset-bottom, 0px) + 10px);
    z-index: 21;
    border: 0;
    border-radius: 16px;
    padding: 0.12rem 0.32rem;
    background: #3659e8;
    color: #fff;
    font-size: 0.32rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    cursor: pointer;
}
.msg-text-wrap.is-sending .msg-content-text{opacity: .72;}
.chat-text-sending{font-size: 0.26rem;color: #888;margin-top: 0.08rem;}
.chat-text-send-failed{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.08rem;
    font-size: 0.26rem;
    color: #b42318;
}
.chat-text-send-failed > * + *{
    margin-left: 0.12rem;
}
.im-jubao-radio-group > * + *{
    margin-top: 8px;
}
.im-avatar-upload-box .im-avatar-trigger{
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.im-avatar-upload-box .avatar-edit-badge{
    position: absolute;
    right: 5px;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    font-size: 0.24rem;
    line-height: 0.42rem;
    text-align: center;
    border-radius: 0 0 5px 5px;
    pointer-events: none;
}
.im-avatar-preview-wrap{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.im-avatar-preview-box{
    width: 220px;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    background: #1f2937;
    border: 1px solid #d1d5db;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    user-select: none;
    cursor: move;
}
.im-avatar-crop-guide{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 1px dashed rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    pointer-events: none;
}
.im-avatar-zoom-bar{
    display: flex;
    align-items: center;
    width: 240px;
    margin-top: 12px;
}
.im-avatar-zoom-bar > * + *{
    margin-left: 8px;
}
.im-avatar-zoom-slider{
    flex: 1;
    min-width: 0;
    accent-color: #3659e8;
}
.im-avatar-zoom-val{
    width: 42px;
    font-size: 12px;
    color: #555;
    text-align: right;
}
.im-avatar-preview-box img{
    width: 100%;
    height: 100%;
    display: block;
}
.im-avatar-preview-box img.is-cover{
    object-fit: cover;
}
.im-avatar-preview-box img.is-contain{
    object-fit: contain;
}
.im-avatar-preview-fallback{
    padding: 12px;
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}
.im-avatar-crop-switch{
    display: flex;
    justify-content: center;
    margin-top: 14px;
}
.im-avatar-crop-switch > * + *{
    margin-left: 10px;
}
.im-avatar-preview-tip{
    margin-top: 10px;
    font-size: 12px;
    color: #888;
    text-align: center;
}
.you .chat-text-send-failed,
.you .chat-text-sending{justify-content: flex-end;}

/* Chat video message card & modal player */
.im-tool-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  vertical-align: middle;
  cursor: pointer;
}
.chat-video-card {
  position: relative;
  width: 170px;
  max-width: 60vw;
  min-height: 110px;
  max-height: 240px;
  border-radius: 8px;
  overflow: hidden;
  background: #141820;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-video-poster {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
.chat-video-placeholder {
  width: 170px;
  height: 120px;
  background: linear-gradient(135deg, #1e2430, #11151d);
}
.chat-video-play-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.chat-video-meta {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 11px;
  line-height: 1.3;
  pointer-events: none;
}
.im-video-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 24px;
  box-sizing: border-box;
}
.im-video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.im-video-modal-close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 20002;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
}
.im-video-player {
  width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  background: #000000;
  outline: none;
}
.im-video-modal-error {
  padding: 28px 22px;
  border-radius: 10px;
  background: #1f242d;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
}
.im-tool-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 12px 0 0;
  color: #374151;
  cursor: pointer;
  vertical-align: middle;
  font-style: normal;
  transition: opacity 0.15s ease;
}
.im-tool-icon-btn:active {
  opacity: 0.6;
}
.im-tool-icon-btn svg {
  display: block;
  width: 22px;
  height: 22px;
}
.kehu-bot .tool {
  display: flex;
  align-items: center;
  padding: 6px 12px !important;
}
.im-tool-voice-btn {
  margin-right: 12px;
}
.im-vc-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 20, 30, 0.92);
}
.im-vc-overlay.is-mini {
  top: 56px;
  right: 12px;
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  background: transparent;
  pointer-events: none;
}
.im-vc-card {
  position: relative;
  width: 82%;
  max-width: 340px;
  padding: 36px 24px 30px;
  border-radius: 20px;
  background: linear-gradient(160deg, #252b38 0%, #171b24 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.im-vc-min-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.im-vc-avatar-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 16px;
}
.im-vc-avatar {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.22);
}
.im-vc-pulse {
  position: absolute;
  top: -6px;
  right: -6px;
  bottom: -6px;
  left: -6px;
  border-radius: 22px;
  border: 2px solid rgba(52, 211, 153, 0.65);
  animation: imVcPulse 1.6s ease-out infinite;
  z-index: 1;
}
@keyframes imVcPulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  100% { transform: scale(1.22); opacity: 0; }
}
.im-vc-name {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.im-vc-status {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 30px;
}
.im-vc-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}
.im-vc-btn + .im-vc-btn {
  margin-left: 22px;
}
.im-vc-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.im-vc-btn-accept { background: #10b981; }
.im-vc-btn-reject { background: #ef4444; }
.im-vc-btn-tool { background: rgba(255, 255, 255, 0.14); color: #e5e7eb; }
.im-vc-btn-tool.is-active { background: #ffffff; color: #111827; }
.im-vc-mini {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.im-vc-mini-dot {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ffffff;
  animation: imVcPulse 1.4s ease-out infinite;
}
.im-upgrade-banner {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 8px 10px 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #FFF7E6;
  border: 1px solid #FFD89B;
  color: #7C4A0B;
  font-size: 12px;
  line-height: 1.35;
}
.im-upgrade-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: #FFE7BA;
  color: #D46B08;
  flex-shrink: 0;
}
.im-upgrade-text {
  flex: 1;
  min-width: 0;
  margin-right: 8px;
}
.im-upgrade-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: #FF7D00;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  line-height: 1.2;
  cursor: pointer;
}
.im-upgrade-close {
  flex-shrink: 0;
  margin-left: 8px;
  padding: 2px 4px;
  font-size: 16px;
  line-height: 1;
  color: #9CA3AF;
  cursor: pointer;
}

/* 消息页顶部本地搜索栏与分组结果 */
#page1-xiaoxi .im-local-search-bar {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #f6f7f9;
  border-bottom: 1px solid #eceef2;
  flex-shrink: 0;
}
#page1-xiaoxi.is-search-mode .im-local-search-bar {
  background: #ffffff;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-bottom: 10px;
}
#page1-xiaoxi .im-local-search-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: #eaedf2;
  border: 1px solid transparent;
  cursor: text;
  transition: background 0.18s ease, border-color 0.18s ease;
}
#page1-xiaoxi.is-search-mode .im-local-search-box {
  background: #f3f4f6;
  border-color: #dce1ea;
}
#page1-xiaoxi .im-local-search-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8c95a6;
  margin-right: 7px;
  flex-shrink: 0;
}
#page1-xiaoxi .im-local-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  line-height: 1.4;
  color: #1f2937;
}
#page1-xiaoxi .im-local-search-input::placeholder {
  color: #9ca3af;
  font-size: 13px;
}
#page1-xiaoxi .im-local-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
#page1-xiaoxi .im-local-search-clear {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border: none;
  border-radius: 50%;
  background: #c5cbd6;
  color: #ffffff;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}
#page1-xiaoxi .im-local-search-cancel {
  flex-shrink: 0;
  margin-left: 10px;
  padding: 4px 2px;
  border: none;
  background: transparent;
  color: #2b6cff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
#page1-xiaoxi .im-local-search-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f3f4f6;
  padding: 10px 12px calc(20px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
#page1-xiaoxi .im-search-section {
  margin-bottom: 12px;
}
#page1-xiaoxi .im-search-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.4;
  padding: 2px 4px 6px;
}
#page1-xiaoxi .im-search-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
#page1-xiaoxi .im-search-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  position: relative;
}
#page1-xiaoxi .im-search-item + .im-search-item {
  border-top: 1px solid #f2f4f7;
}
#page1-xiaoxi .im-search-item:active {
  background: #f5f7fa;
}
#page1-xiaoxi .im-search-avatar {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  background: #e8ecf1;
  flex-shrink: 0;
  margin-right: 11px;
}
#page1-xiaoxi .im-search-avatar > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
#page1-xiaoxi .im-search-avatar-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 1px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #e8ecf1;
}
#page1-xiaoxi .im-search-avatar-grid li {
  flex: 0 0 calc(33.33% - 1px);
  height: calc(33.33% - 1px);
  overflow: hidden;
  background: #d5dbe3;
}
#page1-xiaoxi .im-search-avatar-grid li img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
#page1-xiaoxi .im-search-item-body {
  flex: 1;
  min-width: 0;
}
#page1-xiaoxi .im-search-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#page1-xiaoxi .im-search-item-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  line-height: 1.35;
}
#page1-xiaoxi .im-search-item-name > span:first-child {
  font-size: inherit;
  line-height: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#page1-xiaoxi .im-search-item-name > span:first-child *,
#page1-xiaoxi .im-search-item-sub * {
  font-size: inherit;
  line-height: inherit;
}
#page1-xiaoxi .im-search-item-name .red-v-tag,
#page1-xiaoxi .im-search-item-name .group-level-tag {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  vertical-align: -2px;
  flex-shrink: 0;
}
#page1-xiaoxi .im-search-item-time {
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.4;
}
#page1-xiaoxi .im-search-item-sub {
  margin-top: 3px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#page1-xiaoxi .im-search-tag {
  flex-shrink: 0;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #eef1f5;
  color: #6b7280;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}
#page1-xiaoxi .im-search-tag.is-official {
  background: #fff3db;
  color: #b45309;
}
#page1-xiaoxi .im-search-tag.is-group {
  background: #eaf2ff;
  color: #2b6cff;
}
#page1-xiaoxi .im-search-right-meta {
  flex-shrink: 0;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
}
#page1-xiaoxi .im-search-right-meta > * + * {
  margin-left: 4px;
}
#page1-xiaoxi .im-search-unread,
#page1-xiaoxi .im-search-mention {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fa5151;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  box-sizing: border-box;
}
#page1-xiaoxi .im-search-hl {
  font-size: inherit;
  line-height: inherit;
  background: transparent;
  color: #2b6cff;
  font-weight: 600;
}
#page1-xiaoxi .im-search-more {
  width: 100%;
  border: none;
  border-top: 1px solid #f2f4f7;
  background: #fafbfc;
  color: #2b6cff;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
}
#page1-xiaoxi .im-search-guide,
#page1-xiaoxi .im-search-empty {
  background: #ffffff;
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
#page1-xiaoxi .im-search-guide-title,
#page1-xiaoxi .im-search-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.45;
}
#page1-xiaoxi .im-search-guide-desc,
#page1-xiaoxi .im-search-empty-sub {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}
#page1-xiaoxi .im-search-guide-stat {
  margin-top: 12px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f5f8;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.4;
}
#page1-xiaoxi .im-search-empty-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
#page1-xiaoxi .im-search-empty-actions > * + * {
  margin-left: 10px;
}
#page1-xiaoxi .im-search-empty-btn {
  border: 1px solid #d6e2ff;
  background: #f4f7ff;
  color: #2b6cff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}
#page1-xiaoxi .im-search-footer-tip {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.5;
  padding: 6px 0 4px;
}

/* 群组纯语音会议（列表标识 / 群顶横幅 / 会议弹窗 / 悬浮胶囊） */
.el-message {
  z-index: 30000 !important;
}
.el-overlay.is-message-box {
  z-index: 25000 !important;
}
body.im-gm-body-locked {
  overflow: hidden !important;
  touch-action: none;
}
#page1-xiaoxi .im-list-meeting-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  margin-left: 5px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: middle;
}

#page7-qunliao .im-tool-meeting-btn.is-live {
  color: #059669;
}

.im-gm-banner,
.im-gm-banner *,
.im-gm-overlay,
.im-gm-overlay *,
.im-gm-mini,
.im-gm-mini * {
  box-sizing: border-box;
}

.im-gm-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 8px 12px;
  background: linear-gradient(90deg, #065f46 0%, #059669 100%);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.im-gm-banner-left {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: inherit;
  line-height: inherit;
}
.im-gm-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7b7;
  margin-right: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.7);
  animation: imGmPulse 1.6s infinite;
}
.im-gm-banner-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.im-gm-banner-btn {
  flex-shrink: 0;
  margin-left: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

@keyframes imGmPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.75);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(110, 231, 183, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(110, 231, 183, 0);
  }
}

.im-gm-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 20, 0.76);
}
.im-gm-shell {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 100%;
  max-height: var(--im-app-height, 100dvh);
  display: flex;
  flex-direction: column;
  background: linear-gradient(175deg, #161f2e 0%, #0d131f 100%);
  color: #f3f4f6;
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
}
.im-gm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.im-gm-head-btn {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.3;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.im-gm-head-btn.is-end {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
}
.im-gm-head-center {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0 10px;
}
.im-gm-head-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.im-gm-head-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.3;
}
.im-gm-head-sub span {
  font-size: inherit;
  line-height: inherit;
}
.im-gm-status-bar {
  flex-shrink: 0;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #a7f3d0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
#im-gm-autoplay-slot {
  flex-shrink: 0;
}
.im-gm-autoplay-bar {
  display: block;
  width: 100%;
  flex-shrink: 0;
  border: none;
  padding: 9px 14px;
  background: #d97706;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.im-gm-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px;
}
.im-gm-section + .im-gm-section {
  margin-top: 18px;
}
.im-gm-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #d1d5db;
  line-height: 1.35;
}
.im-gm-sec-head span {
  font-size: inherit;
  line-height: inherit;
}
.im-gm-sec-tip {
  font-size: 11px !important;
  font-weight: 400;
  color: #9ca3af;
}
.im-gm-sec-toggle {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}
.im-gm-sec-link {
  color: #34d399;
  font-size: 12px !important;
}
.im-gm-speaker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 10px;
}
.im-gm-speaker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.im-gm-speaker-card.is-clickable,
.im-gm-aud-card.is-clickable {
  cursor: pointer;
}
.im-gm-avatar-ring {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.im-gm-avatar-ring.is-speaking {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.28);
}
.im-gm-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #1f2937;
}
.im-gm-mic-badge {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  color: #ffffff;
}
.im-gm-mic-badge.is-live {
  background: #059669;
}
.im-gm-mic-badge.is-muted {
  background: #4b5563;
}
.im-gm-speaker-name {
  margin-top: 10px;
  width: 100%;
  font-size: 12px;
  line-height: 1.35;
  color: #f9fafb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.im-gm-role-tag {
  margin-top: 3px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.3;
}
.im-gm-role-tag.is-owner {
  background: rgba(245, 158, 11, 0.22);
  color: #fcd34d;
}
.im-gm-role-tag.is-admin {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
}
.im-gm-role-tag.is-speaker {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
.im-gm-aud-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 8px;
}
.im-gm-aud-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}
.im-gm-aud-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
}
.im-gm-aud-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #1f2937;
}
.im-gm-aud-hand {
  position: absolute;
  right: -6px;
  top: -4px;
  padding: 1px 4px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}
.im-gm-aud-name {
  margin-top: 5px;
  width: 100%;
  font-size: 11px;
  line-height: 1.3;
  color: #d1d5db;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.im-gm-more-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #34d399;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
}
.im-gm-empty {
  grid-column: 1 / -1;
  padding: 18px 0;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.4;
}
.im-gm-dock {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  padding: 12px 10px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 16, 26, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.im-gm-dock-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  max-width: 88px;
  padding: 0;
  border: none;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.14s ease, transform 0.12s ease;
}
.im-gm-dock-ico {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #f9fafb;
}
.im-gm-dock-btn.is-emerald .im-gm-dock-ico {
  background: #059669;
  color: #ffffff;
}
.im-gm-dock-btn.is-amber .im-gm-dock-ico {
  background: #d97706;
  color: #ffffff;
}
.im-gm-dock-btn.is-active .im-gm-dock-ico {
  background: #2563eb;
  color: #ffffff;
}
.im-gm-dock-btn.is-danger .im-gm-dock-ico {
  background: #dc2626;
  color: #ffffff;
}
.im-gm-dock-txt {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #d1d5db;
}
.im-gm-badge {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.im-gm-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.im-gm-sheet {
  width: 100%;
  max-height: 70%;
  background: #1a2232;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.im-gm-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}
.im-gm-sheet-head span {
  font-size: inherit;
  line-height: inherit;
}
.im-gm-sheet-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.3;
  padding: 6px 10px;
  margin: -6px -10px -6px 0;
  cursor: pointer;
}
.im-gm-sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 16px 18px;
}
.im-gm-hand-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.im-gm-hand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  flex-shrink: 0;
}
.im-gm-hand-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.im-gm-hand-ops {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.im-gm-mini-btn {
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
}
.im-gm-mini-btn.is-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #d1d5db;
}
.im-gm-mini-btn.is-primary {
  background: #059669;
  color: #ffffff;
}
.im-gm-dialog {
  width: 86%;
  max-width: 340px;
  margin: auto;
  padding: 18px 16px 14px;
  border-radius: 16px;
  background: #1f2937;
  color: #f9fafb;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}
.im-gm-dialog-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.im-gm-dialog-desc {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
  text-align: center;
}
.im-gm-dialog-btns {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.im-gm-dialog-btn {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.im-gm-dialog-btn.is-primary {
  background: #059669;
  color: #ffffff;
}
.im-gm-dialog-btn.is-warn {
  background: #d97706;
  color: #ffffff;
}
.im-gm-dialog-btn.is-neutral {
  background: rgba(255, 255, 255, 0.12);
  color: #f9fafb;
}
.im-gm-dialog-btn.is-danger {
  background: #dc2626;
  color: #ffffff;
}
.im-gm-dialog-btn.is-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
}
.im-gm-mini {
  position: fixed;
  top: auto;
  bottom: 148px;
  right: max(12px, calc(50% - 308px));
  z-index: 10025;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #065f46, #059669);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.38);
  cursor: pointer;
}
.im-gm-mini span {
  font-size: inherit;
  line-height: inherit;
}
.im-gm-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a7f3d0;
  animation: imGmPulse 1.6s infinite;
}
.im-gm-sec-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.im-gm-sec-refresh {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  line-height: 1.3;
  cursor: pointer;
}
.im-gm-head-btn,
.im-gm-dock-btn,
.im-gm-dialog-btn,
.im-gm-mini-btn,
.im-gm-sheet-close,
.im-gm-more-btn,
.im-gm-sec-refresh {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.14s ease, transform 0.12s ease;
}
.im-gm-head-btn:active,
.im-gm-dock-btn:active,
.im-gm-dialog-btn:active,
.im-gm-mini-btn:active,
.im-gm-sheet-close:active,
.im-gm-more-btn:active,
.im-gm-sec-refresh:active {
  transform: scale(0.96);
  opacity: 0.85;
}
.im-gm-head-btn:disabled,
.im-gm-head-btn.is-busy,
.im-gm-dock-btn:disabled,
.im-gm-dock-btn.is-busy,
.im-gm-dialog-btn:disabled,
.im-gm-dialog-btn.is-busy,
.im-gm-mini-btn:disabled,
.im-gm-mini-btn.is-busy,
.im-gm-sheet-close:disabled,
.im-gm-more-btn:disabled,
.im-gm-sec-refresh:disabled {
  opacity: 0.55;
  pointer-events: none;
}
@media (max-width: 390px) {
  .im-gm-speaker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .im-gm-aud-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .im-gm-dock-ico {
    width: 42px;
    height: 42px;
  }
  .im-gm-dock-txt {
    font-size: 11px;
  }
}
