/**
 * 云信IM - 主样式入口文件
 * 按顺序导入所有样式文件
 */

/* 1. 基础样式 */
@import url('./base/variables.css');
@import url('./base/reset.css');
@import url('./base/animations.css');

/* 2. 布局样式（响应式）*/
@import url('./layouts/desktop.css');
@import url('./layouts/mobile.css');

/* 3. 微信风格精致化样式（优先级最高）*/
@import url('./components/wechat-polish.css');
@import url('./components/sidebar-wechat.css');
@import url('./components/wechat-chat-area.css');

/* 4. 组件样式 */
@import url('./components/conversation-list.css');
@import url('./components/chat-panel.css');
@import url('./components/contact-list.css');
@import url('./components/conversation-actions.css');
@import url('./components/emoji-picker.css');
/* @import url('./components/message-search.css'); 已删除，使用 message-search-dialog.css */
@import url('./components/message-quote.css');
@import url('./components/message-forward.css');
@import url('./components/user-profile.css');
@import url('./components/contacts-manager.css');
@import url('./components/contacts-management.css');
@import url('./components/messages-manager.css');
@import url('./components/message-operations.css');
@import url('./components/add-friend-modal.css');
@import url('./components/message-center.css');

/* 通用样式 */
* {
    box-sizing: border-box;
}

/* Toast提示 */
.yunxin-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.8);
    color: #FFFFFF;
    border-radius: 8px;
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 80%;
    text-align: center;
}

.yunxin-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.yunxin-toast-success {
    background: rgba(7, 193, 96, 0.95);
}

.yunxin-toast-error {
    background: rgba(250, 81, 81, 0.95);
}

.yunxin-toast-info {
    background: rgba(0, 0, 0, 0.8);
}

.yunxin-modal {
    font-family: var(--font-family);
    color: var(--wechat-text-primary);
}

/* 遮罩层 */
.yunxin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: calc(var(--z-index-modal) - 1);
    display: none;
}

.yunxin-overlay.active {
    display: block;
}

/* 隐藏类 */
.yunxin-hidden {
    display: none !important;
}

/* 滚动条样式 */
.yunxin-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.yunxin-scrollbar::-webkit-scrollbar-thumb {
    background: var(--wechat-text-light);
    border-radius: 3px;
}

.yunxin-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

/* 弹窗主容器 */
.yunxin-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 1200px;
    height: 85vh;
    max-height: 800px;
    background: var(--wechat-bg-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    z-index: 9999;
    display: flex;
    overflow: hidden;
    transition: all var(--transition-duration);
}

/* 关闭按钮 */
.yunxin-close-btn {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.yunxin-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* 侧边栏 */
.yunxin-sidebar {
    width: 60px;
    background: var(--wechat-bg-primary);
    border-right: 1px solid var(--wechat-border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.yunxin-sidebar-tab {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    color: var(--wechat-text-secondary);
    transition: all 0.3s;
}

.yunxin-sidebar-tab:hover {
    background: rgba(0, 0, 0, 0.05);
}

.yunxin-sidebar-tab.active {
    background: #FFFFFF;
    color: var(--wechat-primary);
}

/* 列表面板 */
.yunxin-list-panel {
    width: 280px;
    background: #FFFFFF;
    border-right: 1px solid var(--wechat-border-color);
    display: flex;
    flex-direction: column;
}

/* 聊天面板 */
.yunxin-chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--wechat-bg-primary);
}

/* 移动端导航（桌面隐藏）*/
.yunxin-mobile-nav {
    display: none;
}

