
.chat-at-list-container {
    display: none;
    min-width: 220px;
    max-width: 260px;
    background: #fff;
    position: fixed;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 6px 0;
    z-index: 1000;
}

/* 底部小三角形 */
.chat-at-list-container::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 24px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    transform: rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.04);
}

/* 标题 */
.chat-at-list-title {
    padding: 6px 14px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #9CA3AF;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.chat-at-list {
    background: #fff;
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chat-at-item {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.chat-at-item .chat-at-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-at-item .chat-at-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-left: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1F2937;
}

.chat-at-item .chat-at-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-at-item:hover {
    background: #F3F4F6;
}

.chat-at-item:first-child {
    border-radius: 4px 4px 0 0;
}

.chat-at-item:last-child {
    border-radius: 0 0 4px 4px;
}

.chat-at-list::-webkit-scrollbar {
    width: 4px;
}

.chat-at-list::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.chat-at-list::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}


/* hover 提示信息样式 */
.chat-agent-tooltip {
    text-align: left;
    display: none;
    position: absolute;
    top: -40px;
    left: -10px;
    /*transform: translateX(-50%);*/
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-agent-tooltip-title {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
}

.chat-agent-tooltip-description {
    display: block;
    font-size: 12px;
}

.chat-agent-upload-area:hover .chat-agent-tooltip {
    display: block;
    opacity: 1;
}

.chat-agent-upload-area.highlight {
    border-color: #1890ff;
    background-color: #e6f7ff;
}

/* 聊天页面中的样式 */
.chat-agent-list-chat {
    margin-top: 10px;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    gap: 8px;
    width: calc(100% - 15px);
    max-height: 80px;
    display: flex;
    overflow-y: auto;
}

.chat-agent-list {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    max-height: 80px;
    display: flex;
    overflow-y: auto;
    margin-bottom: 6px;
}

.chat-agent-item:hover {
    cursor: pointer;
    transition: box-shadow .2s ease-in-out;
}

.chat-agent-item:hover .chat-agent-close {
    display: block;
    opacity: 1;
}

.chat-agent-close {
    display: none;
    margin-left: 4px;
    cursor: pointer;
    line-height: 0;
}

.chat-agent-close img {
    width: 14px;
    height: 14px;
}

.chat-agent-item {
    position: relative;
    align-items: center;
    display: inline-flex;
    border-radius: 4px;
    background: #EFF4FF;
    padding: 3px 8px;
    font-size: 13px;
    line-height: 1.4;
}

.chat-agent-info {
    display: block;
}

.chat-agent-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #155EEF;
    font-size: 13px;
}

