/* 聊天室整体样式 */
.zib-chat-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 消息区域 */
.zib-chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    background-color: #f9fafb;
}

/* 单条消息样式（美化UI） */
.zib-chat-msg {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}
.msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.msg-content {
    flex: 1;
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.msg-header {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 12px;
    color: #6b7280;
}
.msg-username {
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}
.msg-username:hover {
    color: #165dff;
}
.msg-text {
    font-size: 14px;
    line-height: 1.5;
    color: #111827;
}
.msg-actions {
    margin-top: 5px;
    font-size: 12px;
}
.private-msg-btn {
    color: #165dff;
    cursor: pointer;
}
.private-msg-btn:hover {
    text-decoration: underline;
}

/* 输入区域 */
.zib-chat-input-area {
    padding: 15px;
    border-top: 1px solid #e5e7eb;
    background-color: #fff;
}
.zib-chat-tools {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}
.chat-tool {
    padding: 5px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background-color: #f9fafb;
    cursor: pointer;
    font-size: 14px;
}
.chat-tool:hover {
    background-color: #e5e7eb;
}
#zib-chat-input {
    width: 100%;
    height: 60px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    resize: none;
    font-size: 14px;
    margin-bottom: 10px;
}
#zib-chat-input:disabled {
    background-color: #f9fafb;
    cursor: not-allowed;
}
.zib-chat-send-btn {
    padding: 8px 20px;
    background-color: #165dff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.zib-chat-send-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

/* 表情面板 */
.zib-chat-emoji-panel {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}
.emoji-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}
.emoji-item {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
}
.emoji-item:hover {
    background-color: #f9fafb;
}
.custom-emoji {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 私信弹窗 */
.zib-chat-private-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-content {
    width: 400px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
}
.close-modal {
    float: right;
    font-size: 20px;
    cursor: pointer;
}
#private-input {
    width: 100%;
    height: 100px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

/* 版权信息 */
.zib-chat-copyright {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* 无权限提示 */
.zib-chat-no-permission, .zib-chat-not-login {
    padding: 20px;
    text-align: center;
    color: #dc2626;
    font-size: 14px;
}

/* 禁言提示 */
.zib-chat-muted-tip {
    color: #dc2626;
    font-size: 12px;
    margin-bottom: 10px;
}