.qq-container {
    display: flex;
    width: 100%;
    height: 100%;
    background: #fff;
    overflow: hidden;
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
}

.qq-container.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
}

/* 第一列：侧边导航 */
.qq-nav {
    width: 60px;
    background: #2e2e2e;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0 15px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}
.qq-nav-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.qq-nav-avatar {
    margin-bottom: 25px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
    border-radius: 4px;
}
.qq-nav-avatar:hover {
    transform: scale(1.05);
}
.qq-nav-item {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b9b9b;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    margin-bottom: 5px;
}
.qq-nav-item:hover {
    color: #fff;
}
.qq-nav-item.active {
    color: #07c160;
}
.qq-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: #07c160;
}

/* 第二列：列表区域 */
.qq-list-pane {
    width: 280px;
    max-width: 30vw;
    background: rgba(247, 247, 247, 0.7);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(229, 229, 229, 0.5);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.qq-list-header {
    padding: 25px 15px 15px;
    height: auto;
}
.qq-search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.qq-search-box {
    flex: 1;
}
.qq-search-box .el-input__wrapper {
    background-color: #e2e2e2 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 4px;
}
.qq-plus-btn {
    width: 28px;
    height: 28px;
    background: #e2e2e2;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}
.qq-plus-btn:hover {
    background: #d0d0d0;
    color: #333;
}
.qq-plus-btn:active {
    background: #c0c0c0;
    transform: scale(0.95);
}
.qq-contact-tabs {
    display: flex;
    padding: 10px 15px;
    gap: 20px;
    border-bottom: 1px solid #eee;
    background: #f7f7f7;
}
.qq-contact-tab {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding-bottom: 5px;
    position: relative;
    font-weight: 500;
}
.qq-contact-tab:hover {
    color: #333;
}
.qq-contact-tab.active {
    color: #0099ff;
    font-weight: 600;
}
.qq-contact-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0099ff;
}
.qq-list-content {
    flex: 1;
    overflow-y: auto;
}
.qq-list-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}
.qq-list-item:hover {
    background: #ebebeb;
}
.qq-list-item:hover .qq-item-actions {
    opacity: 1;
}
.qq-list-item.active {
    background: #e1e1e1;
}
.qq-list-item.pinned {
    background: #f0f0f0;
}
.qq-list-item.pinned:hover {
    background: #e8e8e8;
}
.qq-list-item.pinned.active {
    background: #e1e1e1;
}

/* 置顶标记 */
.qq-pinned-tag {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-top: 8px solid #0099ff;
    border-right: 8px solid transparent;
}

/* 操作按钮样式 */
.qq-item-actions {
    opacity: 0;
    transition: opacity 0.2s;
    margin-left: 4px;
}
.qq-action-trigger {
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    background: #fff;
    transition: all 0.2s;
}
.qq-action-trigger:hover {
    background: #f5f5f5;
    color: #666;
    border-color: #ccc;
}
.qq-action-trigger .el-icon {
    font-size: 12px;
}
.qq-pinned-tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 0 0;
    border-color: #0099ff transparent transparent transparent;
}
.qq-item-detail {
    flex: 1;
    min-width: 0;
}
.qq-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.qq-item-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qq-item-time {
    font-size: 11px;
    color: #b2b2b2;
}
.qq-item-msg {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qq-list-group {
    padding: 10px 15px;
    font-size: 12px;
    color: #999;
}

/* 第三列：主内容区 */
.qq-content-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    min-width: 0;
}
.qq-content-header {
    height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    cursor: move;
}
.qq-header-info {
    display: flex;
    flex-direction: column;
}
.qq-header-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}
.qq-header-status {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}
.qq-win-btn {
    padding: 8px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 2px;
    transition: all 0.2s;
}
.qq-win-btn:hover {
    background: #f2f2f2;
}
.qq-win-btn.close:hover {
    background: #ff4d4f;
    color: #fff;
}

/* 聊天区域 */
.qq-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: transparent;
    background-size: cover;
    background-position: center;
}
.qq-msg-time-divider {
    align-self: center;
    font-size: 12px;
    color: #999;
    background: rgba(0,0,0,0.05);
    padding: 2px 10px;
    border-radius: 10px;
    margin: 10px 0;
}
.qq-msg-item {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 15px;
}
.qq-msg-item.self {
    flex-direction: row-reverse;
    justify-content: flex-start;
}
.qq-msg-bubble-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 70%;
    min-width: 0;
}
.qq-msg-name {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}
.qq-msg-item.self .qq-msg-name {
    text-align: right;
}
.qq-msg-item.self .qq-msg-bubble-wrap {
    align-items: flex-end;
}
.qq-msg-bubble {
    padding: 8px 14px;
    background: #fff;
    border-radius: 4px 16px 16px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a1a;
    word-break: break-all;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
    max-width: fit-content;
}
.qq-msg-item.self .qq-msg-bubble {
    background: #95ec69;
    border-radius: 16px 4px 16px 16px;
    color: #000;
}

/* 聊天工具栏 */
.qq-chat-tools {
    height: 40px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
}
.tool-icon {
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}
.tool-icon:hover {
    color: #0099ff;
}

/* 输入框 */
.qq-chat-input {
    height: 160px;
    padding: 0 15px 15px;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.qq-textarea {
    flex: 1;
    border: none;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    padding: 10px 0;
    color: #333;
}
.qq-input-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}
.input-tip {
    font-size: 12px;
    color: #bbb;
}
.qq-send-btn {
    padding: 6px 24px;
    background: #f2f2f2;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.qq-send-btn:hover {
    background: #0099ff;
    color: #fff;
    border-color: #0099ff;
}

/* 滚动条美化 */
.qq-list-content::-webkit-scrollbar,
.qq-chat-body::-webkit-scrollbar {
    width: 6px;
}
.qq-list-content::-webkit-scrollbar-thumb,
.qq-chat-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.qq-list-content::-webkit-scrollbar-track,
.qq-chat-body::-webkit-scrollbar-track {
    background: transparent;
}

/* 详情页空状态 */
.qq-empty-state {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.qq-empty-content {
    text-align: center;
    color: #ccc;
}
.empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

/* 资料卡页面 */
.qq-profile-view {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.qq-profile-card {
    width: 320px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.qq-profile-bg {
    height: 120px;
    background: linear-gradient(135deg, #07c160, #0099ff);
}
.qq-profile-body {
    padding: 0 25px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.qq-profile-avatar {
    margin-top: -40px;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.qq-profile-name {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}
.qq-profile-desc {
    margin-top: 8px;
    font-size: 13px;
    color: #999;
    text-align: center;
}
.qq-profile-details {
    margin-top: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.detail-item .label {
    color: #999;
}
.detail-item .value {
    color: #333;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.status-online {
    color: #07c160;
}
.qq-profile-actions {
    margin-top: 30px;
    width: 100%;
    display: flex;
    gap: 10px;
}
.qq-btn-msg {
    flex: 2;
    background: #0099ff !important;
    border: none !important;
    color: white !important;
}
.qq-btn-more {
    flex: 1;
}

/* 公会与设置视图 */
.qq-guild-list-view, .qq-settings-view {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    background: #fff;
}
.qq-guild-list-view .el-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.qq-settings-view .el-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
}

/* 好友申请提示样式 */
.qq-new-friend-tip {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}
.qq-new-friend-tip:hover {
    background: #ebebeb;
}
.tip-content {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tip-icon {
    width: 32px;
    height: 32px;
    background: #ff9800;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.tip-text {
    flex: 1;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}
.tip-arrow {
    color: #ccc;
    font-size: 14px;
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* 表情 */
.qq-emoji-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; max-height: 200px; overflow-y: auto; padding: 10px; }
.qq-emoji-item { width: 28px; height: 28px; cursor: pointer; padding: 2px; transition: transform 0.1s; }
.qq-emoji-item:hover { background: #f0f0f0; transform: scale(1.2); }
.qq-emoji-popover { padding: 0 !important; border-radius: 8px !important; box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; }

/* 响应式适配 */
@media (max-width: 768px) {
    .qq-list-pane {
        width: 80px; /* 手机端缩减列表宽度 */
    }
    
    .qq-list-pane .contact-name,
    .qq-list-pane .contact-last-msg,
    .qq-list-pane .contact-time,
    .qq-list-header h2 {
        display: none; /* 手机端只显示头像 */
    }
    
    .qq-search-container .el-button {
        display: none;
    }

    .qq-chat-header {
        padding: 10px;
    }
    
    .qq-chat-header .chat-title {
        font-size: 14px;
    }
}

@media (max-width: 500px) {
    .qq-nav {
        width: 50px;
        padding: 15px 0 10px;
    }
    
    .qq-nav-avatar {
        width: 32px;
        height: 32px;
        margin-bottom: 15px;
    }
    
    .qq-nav-item {
        height: 40px;
        font-size: 20px;
    }
}
