@charset "utf-8";
@font-face {font-family:'FontAwesome';src:url('fonts/fontawesome-webfont.eot?v=4.7.0');src:url('fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),url('fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),url('fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),url('fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),url('fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal; font-display: swap;}
.icon i {font-family:FontAwesome;}

.icon-bell-o:before {content:"\f0a2";color: #b9b7b7;}/* 铃铛开启; color: #838383;*/
.icon-bell-slash-o:before {content:"\f1f7";color: #b9b7b7;} /* 铃铛关闭;color: #b9b7b7; */
.icon-tudin:before {content: "\f08d";font-style: italic;color: #b3b3b3;}/* 图钉; */
.icon-db:before {content: "\f1d8";margin-right: 5px;}/* 电报; */
.icon-yh:before {content: "\f017";margin: 0 10px 0 5px;}/* 时间; */
.icon-arr:before {content: "\f177";}/* 后退箭头 */


/* 20250722 17_04 */

html,body,h1,h2,h3,p,ol,ul,li,al_tit,dl,dt,dd {margin:0;padding:0;}
body {font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:1.42857143;color:#333;background-color:#fff;}
ol,ul,li {list-style:none;}
a {color:#353535;text-decoration:none;}
a:hover {color:#f70d28;transition:all 0 ease;}
i {font-style:normal;font-weight: normal;}
a img {border:0;}

.huibai{color: #e0e0e0;}
.hui{color: #918f8f;}

.tg_box {
    height: 93vh; /* 改为 min-height，允许内容扩展height: 93vh; */
    display: flex;
    background-color: #f0f2f5;
    overflow: hidden;
    margin-top: 60px;
}
.zhuce {order:5;}

/* 侧边栏 */
.sidebar {
    width: 320px;
    background-color: #fff;
    border-right: 1px solid #e1e3e6;
    display: flex;
    flex-direction: column;
}
.contact-list::-webkit-scrollbar {display: none;}

/* 聊天窗口 */
.chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: auto;
    position: relative;
}

/* 聊天窗口头部 */
.chat-header {
    padding: 8px;
    background-color: #fff;
    border-bottom: 1px solid #e1e3e6;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
}

/* 其他样式保持不变 */
.sidebar-header {padding: 8px;background-color: #f8f9fa;border-bottom: 1px solid #e1e3e6;}
.sidebar-header h2 {font-size: 18px;font-weight: 500;}
.contact:hover {background-color: #f5f6f8;}
.contact img {width: 40px;height: 40px;border-radius: 50%;margin-right: 6px;}
.contact-info {flex: 1;}
.contact-info h3 {font-size: 16px;font-weight: 500;}
.contact-info p {font-size: 14px;color: #8696a0;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;overflow: hidden;color: #838a91;word-break: break-all;}
.contact-time {font-size: 12px;color: #8696a0;}
.menu-container {line-height: 50px;}
.menu-button {position: absolute;right: 20px;top: 10px;text-decoration: none;color: #000;font-size: 1.2em;}
.menu-button i {font-style: normal;}
.menu-button i::before {content: "\1F3E0";}/*\2630*/
.mobmenu i {font-style: normal;}
.mobmenu i::before {content: "\2630";}
.back-button {display: none;margin-right: 10px;background: none;border: none;font-size: 18px;cursor: pointer;color: #2f2f2f;}
.chat-header img {width: 50px;height: 50px;border-radius: 50%;margin-right: 10px;margin-left: 15px;}
.chat-header h2 {font-size: 18px;font-weight: 500;}
.chat-body {flex: 1;background-color: #e5ddd5;padding: 20px;display: flex;flex-direction: column;gap: 10px;}/*overflow-y: auto;*/
.message {max-width: 60%;padding: 10px;border-radius: 10px;margin: 5px 0;font-size: 1em;word-break: break-all;word-wrap: break-word;white-space: pre-wrap;box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);line-height: 1.7em;}
.message.sent {background-color: #d1f4cc;align-self: flex-end;}
.message.received {background-color: #fff;align-self: flex-start;}
.message img{max-width: 90%;}
.contime {text-align: right;font-size: 0.9em;color: #9E9E9E;}
.chat-header p {display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;color: #838a91;word-break: break-all;}
.load_more_btn {display: block;background-color: #eee;padding: 3px 6px;border-radius: 9px;text-align: center;margin: 8px auto;border-radius: 9px;width: 120px;cursor: pointer;}
.lod img {height: 25px;}
.lod {display: grid;place-items: center;height: 45px;}
#showajaxnews {display: flex;flex-direction: column;gap: 10px;}
.tit_time {display: flex;justify-content: space-between;align-items: center;width: 100%;}
.tit_time h3 {margin: 0;text-align: left;}
.tit_time .contact-time {margin: 0;text-align: right;}
.hytis {display: flex;justify-content: space-between;align-items: center;width: 100%;margin: 12px 0;}
.hytis a {color: #fff;border-radius: 5px;}
.hytis a {background: #4797d1;flex: 1;text-align: center;padding: 5px;}
.hytis a:hover {background: #2196f3;}
/* 标签按钮样式 */
/*        
        .tab-buttons {display: flex;gap: 10px;}
        .tab-button {cursor: pointer;border: none;background-color: #e0e0e0;border-radius: 5px;transition: background-color 0.3s, color 0.3s;color: #2f2f2f;}
        .tab-button.active {background-color: #007bff;color: #fff;}
        .tab-button:hover {background-color: #0056b3;color: #fff;}
        .tab-content {display: none;}
        .tab-content.active {display: block;}*/


.contact-list {
    flex: 1;
    display: flex;
    position: relative;
        overflow-y: auto;
}

.tab-buttons {
    position: sticky;
    top: 0;
    background-color: #15202b;
    z-index: 10;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid #e1e3e6;
    transition: width 0.3s ease, margin-left 0.3s ease; /* Transition margin-left for smooth movement */
}

.tab-buttons.collapsed {
    width: 30px; /* Match the margin-left to keep toggle visible at the edge */
    margin-left: 0; /* Move to the left edge when collapsed */
    overflow: hidden;
}

.tab-buttons.collapsed .tab-button {
    display: none; /* Hide other buttons when collapsed */
}

.tab-toggle {
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: #fff;
    text-align: center;
    padding: 10px 5px;
    width: 100%;
    font-size: 18px;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 11; /* Above other elements */
}

.tab-button {
    cursor: pointer;
    border: none;
    background-color: transparent;
    border-radius: 0;
    transition: background-color 0.3s, color 0.3s;
    color: #fff;
    text-align: center;
    padding: 10px 5px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.tab-button.active {
    background-color: #0056b3;
    color: #fff;
    padding: 10px 5px;
    margin: 0;
    box-sizing: border-box;
}

.tab-button:hover {
    background-color: #007bff;
    color: #fff;
}

.contact-scrollable {
    flex: 1;
    overflow-y: auto; /* Enable vertical scrolling */
    /*padding-left: 10px;
   
     Hide scrollbar while keeping functionality */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.contact-scrollable::-webkit-scrollbar {
    display: none;
}

.contact {
    padding: 12px 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #f0f2f5;
}

.sidebar {
    width: 320px;
    background-color: #fff;
    border-right: 1px solid #e1e3e6;
    display: flex;
    flex-direction: column;
}

.tab-buttons.collapsed {
    width: 30px; /* 宽度保持一致 */
    margin-left: 0;
    overflow: hidden;
}

.tab-buttons.collapsed .tab-button {
    display: block;
    padding: 5px;
    text-align: center;
    color: transparent; /* 隐藏原始文本 */
    text-overflow: clip; /* 防止省略号 */
}



.tab-buttons.collapsed .tab-button span, 
.tab-buttons.collapsed .tab-button i {
    display: none; /* 隐藏红点和图标 */
}

.tab-buttons.collapsed .tab-button::before {
    content: attr(data-short-text); /* 显示短文字 */
    color: #fff; /* 确保短文字可见 */
}
.tab-buttons.collapsed .tab-button .red-dot {
    display: none; /* 默认隐藏红点 */
}

.tab-buttons.collapsed .tab-button .red-dot.visible {
    display: block; /* 显示有 visible 类的红点 */
    position: absolute;
    top: 8px; /* 调整位置以适应缩小状态 */
    right: 5px; /* 靠右对齐 */
    width: 8px; /* 缩小红点以适应紧凑布局 */
    height: 8px;
}


/* Adjust padding-left of contact-scrollable when collapsed 
.contact-scrollable.collapsed-padding {
    padding-left: 30px;  
}
Match the collapsed margin-left */





/* Loading spinner styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.loading-overlay.hidden {
    display: none;
    opacity: 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

        /* 返回顶部按钮样式 */
        .back-to-top {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background-color: #007bff;
            color: white;
            text-align: center;
            line-height: 40px;
            border-radius: 50%;
            cursor: pointer;
            opacity: 0.8;
            transition: opacity 0.3s;
            z-index: 1000;
        }

        .back-to-top:hover {
            opacity: 1;
        }

        .back-to-top::before {
            content: "\25B2"; /* 确保反斜杠存在 */
            font-family: Arial, sans-serif; /* 使用支持Unicode的字体 */
            font-size: 24px;
            line-height: 40px;
        }

   blockquote { background-color: #e9f5ff;
    padding: 8px;
    margin: 8px;
    color: #848691;
    border-radius: 2px 6px 6px 2px;
    border-left: 4px solid #a2cdf3; }








.tab-button {position: relative;display: inline-block;padding: 5px 2px;}/* margin-right: 10px; */

.tab-button .red-dot {
    display: none;
    position: absolute;
    top: 3px;
    right: 3px;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    z-index: 1000;
}

.tab-button .red-dot.visible {
    display: block;
}

.sound-icon {
  /*   font-size: 16px;
   margin-left: 5px;*/
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    font-size: 0.8em;
}

h3 .sound-icon {
    font-size: 14px; /* 略小以匹配标题大小 */
    vertical-align: text-bottom; /* 与标题基线对齐 */
}

/* 为tit_time中的红点设置样式 */
.tit_time {
    position: relative; /* 确保红点定位相对tit_time */
}

.tit_time .red-dot {
    display: none;
    position: absolute;
    top: 3px;
    right: 3px;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    z-index: 1000;
}

.tit_time .red-dot.visible {
    display: block;
}

.tab-button#refresh-button {
    background-color: #e0e0e0;
    color: #333;
}

.tab-button#refresh-button:hover {
    background-color: #0056b3;
    color: #fff;
}

.tab-button#refresh-button.has-update {
    background-color: red;
    color: white;
}

.tab-button#refresh-button.has-update:hover {
    background-color: darkred;
    color: #fff;
}










.user-info {
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}
.user-info p {
    margin: 5px 0;
}
    .locked {
        color: #888;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .locked::before {
    content: '\1f512';
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Sans', sans-serif;
    font-size: 14px;
}
    .upgrade-btn {
        display: inline-block;
        padding: 5px 10px;
        background-color: #007bff;
        color: white;
        border-radius: 4px;
        text-decoration: none;
        font-size: 12px;
        margin-top: 5px;
    }
    .upgrade-btn:hover {
        color: yellow; /* 鼠标悬停时文字颜色变为黄色 */
    }

.message.received.blurred {
    position: relative;
    user-select: none; /* 防止复制 */
    cursor: not-allowed; /* 鼠标悬停提示不可用 */
}

.message.received.blurred .blurred-content {
    filter: blur(5px); /* 模糊占位符和时间 */
    white-space: normal; /* 允许换行 */
    word-break: break-all; /* 强制换行，适应中文和全角文字 */
    line-height: 1.5; /* 行高适配内容 */
    margin: 0; /* 移除外边距 */
    padding: 10px; /* 适当内边距 */
}
.message.received.blurred .blurred-content span {
    display: block; /* 占位符占满宽度 */
}
.message.received.blurred .prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* 在模糊内容之上 */
}

.message.blurred {white-space: normal;}
/* 隐藏滚动条箭头 */
::-webkit-scrollbar-button {
  display: none;
}
 
/* 可选：隐藏整个滚动条，只保留滚动功能 */
::-webkit-scrollbar {
  width: 8px;  /* 设置滚动条的宽度 */
  height: 5px; /* 设置滚动条的高度 */
}
 
/* 可选：自定义滚动条轨道的样式 */
::-webkit-scrollbar-track {
  background: #f1f1f1; /* 设置轨道的背景颜色 */
}
 
/* 可选：自定义滚动条滑块的样式 */
::-webkit-scrollbar-thumb {
  background: #afafaf; /* 设置滑块的背景颜色 */
}
 
/* 可选：设置当滑块悬停或活动时的样式 */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}



@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 首页登陆框 */
#pcjs {display: block;width: 100%;height: 30px;}
#pcjs {margin-bottom: 8px;}
#mobilejs iframe, #pcjs iframe {width: 100%;height: 30px;visibility:inherit;width:100%;z-index:2;width;font-size: 9px;}

/* 下载 */

        .download-list {
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .software-title {
            font-size: 24px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 10px;
            border-bottom: 2px solid #3498db;
            padding-bottom: 5px;
        }
        
        .software-description {
            color: #7f8c8d;
            line-height: 1.6;
            margin-bottom: 15px;
            padding-left: 10px;
        }
        
        .download-btn {
            display: inline-block;
            background: linear-gradient(45deg, #3498db, #2980b9);
            color: white;
            padding: 10px;
            margin: 10px;
            text-decoration: none;
            border-radius: 25px;
            font-size: 16px;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
        }
        
        .download-btn:hover {
            color: #ffe200;
            background: linear-gradient(45deg, #2980b9, #3498db);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
        }
        
        .download-section {
            margin-bottom: 30px;
            padding: 20px;
            border: 1px solid #ecf0f1;
            border-radius: 8px;
            background: #fafafa;
        }
        
        .download-section:last-child {
            margin-bottom: 0;
        }


/* 响应式设计 */
@media (max-width: 780px) {
    .sidebar {
        width: 100%;
        height: 90vh; /* 固定视口高度 */
        position: fixed; /* 用 fixed 以支持滑出/滑入 
        top: 0;
        left: 0; */
        z-index: 1;
        transform: translateX(0); /* 默认显示 */
        transition: transform 0.3s ease;
    }

    .contact-list {
        /* height: calc(100vh - 60px); 减去 sidebar-header 高度，需根据实际调整 
        overflow-y: auto; 确保可滚动 */
        /*padding-bottom: 80px;  避免底部内容被遮挡 */
    }

    .chat {
        width: 100%;
        /* height: 100vh; 固定视口高度 用了后不出现滚动*/
        /* position: fixed;  使用 fixed 确保滑入效果 用了后不出现滚动====
        top: 0;
        left: 0;*/
        z-index: 2;
        transform: translateX(100%); /* 默认隐藏 */
        transition: transform 0.3s ease;
        margin-bottom: 40px;
    }

    .sidebar.hidden {
        transform: translateX(-100%); /* 滑出屏幕 */
    }

    .chat.active {
        transform: translateX(0); !important/* 滑入屏幕 */
    }

    .back-button {
        display: block;
    }

    .message {
        white-space: pre-wrap;  /* 保留空格和换行符 */
    word-break: break-word;  /* break-all;强制所有字符断行 */
    overflow-wrap: break-word;  /* 兼容长单词 */
        max-width: 95%;
    }

    .menu-button {
        top: -5px;
    }

    .chat-header p {
        -webkit-line-clamp: 1;
    }

    .mobhid {
        display: none;
    }
     #mobilejs {display: block;width: 100%;height: 35px;}

     .tab-button {padding: 5px 10px;}
/*     .sound-icon {font-size: 18px;}*/

.download-btn {
        padding: 5px;           
        margin: 3px;            
        border-radius: 5px;    
        font-size: 14px;        
        font-weight: normal;   
        transition: none;      
        box-shadow: none;      
    }
}