/**
 * 访客端聊天窗口样式 - 全屏版本
 * 在线客服系统 - kefu模块
 * @version 2.0.0 - 合并内嵌CSS，支持全屏布局
 */

/* ==================== 全局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f3f4f6;
    height: 100vh;
    height: 100dvh;
}

/* ==================== 聊天窗口全屏 ==================== */
.kefu-chat-window {
    width: 100%;
    display: flex;
    background: #f3f4f6;
    position: fixed;
    top: 1px;
    left: 0;
    right: 0;
    bottom: 0;
}

/* ==================== 主容器 ==================== */
.kefu-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
}

        /* 全屏样式 - 完全覆盖 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            width: 100%;
            height: 100%;
            overflow: hidden;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background: #f3f4f6;
            height: 100vh;
            height: 100dvh;
        }

        /* 聊天窗口全屏 */
        .kefu-chat-window {
            width: 100%;
            display: flex;
            background: #f3f4f6;
            position: fixed;
            top: 1px;
            left: 0;
            right: 0;
            bottom: 0;
        }

        /* 主容器 */
        .kefu-chat-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: white;
            max-width: 100%;
            height: 100%;
            overflow: hidden;
        }

        /* 头部 */
        .kefu-chat-header {
            flex-shrink: 0;
            padding: 12px 16px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            display: flex;
            align-items: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            min-height: 60px;
        }

        .kefu-header-info {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
            overflow: hidden;
            margin-right: auto;
        }

        .kefu-header-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: white;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 16px;
            color: #667eea;
            flex-shrink: 0;
        }

        .kefu-header-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .kefu-header-text {
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }

        .kefu-header-title {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .kefu-header-status {
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 4px;
            opacity: 0.9;
            white-space: nowrap;
        }

        .kefu-status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #10b981;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .kefu-close-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .kefu-close-btn:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .kefu-close-btn svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        /* 消息区域 */
        .kefu-messages-area {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            background: #f8f9fa;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        /* 时间分割线 */
        .kefu-message-time {
            text-align: center;
            margin: 8px 0;
        }

        .kefu-message-time span {
            font-size: 12px;
            color: #9ca3af;
            background: rgba(0, 0, 0, 0.05);
            padding: 4px 12px;
            border-radius: 12px;
        }

        /* 消息容器 */
        .kefu-message {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
            animation: messageSlideIn 0.3s ease;
        }

        @keyframes messageSlideIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 客服消息 - 左边 */
        .kefu-message.agent {
            flex-direction: row;
            justify-content: flex-start;
        }

        /* 访客消息 - 右边 */
        .kefu-message.visitor {
            flex-direction: row-reverse;
            
        }

        /* 消息内容包装器 */
        .kefu-message-content-wrapper {
            display: flex;
            flex-direction: column;
            max-width: 75%;
        }

        .kefu-message.agent .kefu-message-content-wrapper {
            align-items: flex-start;
        }

        .kefu-message.visitor .kefu-message-content-wrapper {
            align-items: flex-end;
        }

        /* 头像 */
        .kefu-message-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 600;
        }

        .kefu-message.agent .kefu-message-avatar {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .kefu-message.visitor .kefu-message-avatar {
            background: #9ca3af;
            color: white;
        }

        .kefu-message-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* v2.1.1 客服名称标签（消息气泡上方） */
        .kefu-message.agent .kefu-agent-name {
            font-size: 12px;
            color: #999;
            margin-bottom: 2px;
            padding-left: 2px;
        }

        /* 消息气泡 */
        .kefu-message-bubble {
            padding: 10px 14px;
            border-radius: 12px;
            word-wrap: break-word;
             
            line-height: 1.5;
            position: relative;
            display: inline-block;
        }

        /* 消息时间 */
        .kefu-message-time {
            font-size: 11px;
            margin-top: 4px;
            color: #94a3b8;
            padding: 0;
            background: none;
            display: block;
        }

        .kefu-message.agent .kefu-message-time {
            text-align: left;
            color: #6b7280;
        }

        .kefu-message.visitor .kefu-message-time {
            text-align: right;
        }

        /* 消息操作按钮 */
        .kefu-message-actions {
            display: none;
            position: absolute;
            top: -10px;
            right: -10px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            padding: 4px;
            gap: 4px;
            z-index: 10;
        }

        .kefu-message.visitor:hover .kefu-message-actions {
            display: flex;
        }

        .kefu-action-btn {
            width: 28px;
            height: 28px;
            border: none;
            background: #f3f4f6;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            color: #6b7280;
        }

        .kefu-action-btn:hover {
            background: #ef4444;
            color: white;
        }

        .kefu-action-btn svg {
            width: 14px;
            height: 14px;
            fill: currentColor;
        }

        /* 撤回的消息 */
        .kefu-message-withdrawn {
            font-style: italic;
            opacity: 0.7;
        }

        .kefu-message.agent .kefu-message-bubble {
            background: white;
            color: #1f2937;
            border-top-left-radius: 4px;
        }

        .kefu-message.visitor .kefu-message-bubble {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-top-right-radius: 4px;
        }

        /* 图片消息 */
        .kefu-message-image {
             
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .kefu-message-image:hover {
            transform: scale(1.02);
        }

        /* ⚠️ v2.0.1新增：自动链接样式 */
        .kefu-auto-link {
            color: #667eea;
            text-decoration: none;
            border-bottom: 1px dashed #667eea;
            transition: all 0.2s;
            word-break: break-all;
        }

        .kefu-auto-link:hover {
            color: #5568d3;
            border-bottom-style: solid;
            text-decoration: none;
        }

        /* 快捷回复区域 */
        .kefu-quick-replies {
            flex-shrink: 0;
            padding: 10px 20px;
            background: #f9fafb;
            border-top: 1px solid #e5e7eb;
            max-height: 120px;
            overflow-y: auto;
        }

        .kefu-quick-replies-title {
            font-size: 13px;
            font-weight: 600;
            color: #6b7280;
            margin-bottom: 12px;
        }

        .kefu-quick-replies-grid {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .kefu-quick-reply-btn {
            padding: 6px 14px;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            font-size: 13px;
            color: #4b5563;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .kefu-quick-reply-btn:hover {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        /* 输入区域 */
        .kefu-input-area {
            flex-shrink: 0;
            padding: 12px 20px;
            background: white;
            border-top: 1px solid #e5e7eb;
        }

        /* 工具栏 */
        .kefu-toolbar {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
        }

        .kefu-tool-btn {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            position: relative;
        }

        .kefu-tool-btn:hover {
            background: #667eea;
            border-color: #667eea;
        }

        .kefu-tool-btn:hover svg {
            fill: white;
        }

        .kefu-tool-btn svg {
            width: 20px;
            height: 20px;
            fill: #6b7280;
            transition: fill 0.2s;
        }

        /* 表情选择器（v1.4.0更新：支持分类） */
        .kefu-emoji-picker {
            position: absolute;
            bottom: 100%;
            left: 0;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            z-index: 100;
            
        }

        .kefu-emoji-picker.active {
            display: block;
        }

        /* 表情选择器头部 */
        .kefu-emoji-picker-header {
            padding: 10px 15px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 14px;
            font-weight: 600;
            color: #374151;
        }

        .kefu-emoji-close {
            width: 24px;
            height: 24px;
            background: none;
            border: none;
            font-size: 18px;
            color: #9ca3af;
            cursor: pointer;
            border-radius: 4px;
            transition: all 0.2s ease;
        }

        .kefu-emoji-close:hover {
            background: #f3f4f6;
            color: #374151;
        }

        /* 表情分类标签 */
        .kefu-emoji-tabs {
            display: flex;
            border-bottom: 1px solid #e5e7eb;
            overflow-x: auto;
        }

        .kefu-emoji-tab {
            flex: 1;
            padding: 10px 15px;
            background: none;
            border: none;
            font-size: 13px;
            color: #6b7280;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .kefu-emoji-tab:hover {
            color: #667eea;
            background: #f9fafb;
        }

        .kefu-emoji-tab.active {
            color: #667eea;
            border-bottom-color: #667eea;
            font-weight: 600;
        }

        /* 表情内容区 */
        .kefu-emoji-content {
           
            overflow-y: auto;
        }

        .kefu-emoji-grid {
            padding: 10px;
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 5px;
        }

        .kefu-emoji-btn {
            width: 28px;
            height: 28px;
            border: none;
            background: none;
            font-size: 20px;
            cursor: pointer;
            border-radius: 4px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        .kefu-emoji-btn img {
            width: 24px;
            height: 24px;
            display: block;
        }

        .kefu-emoji-btn:hover {
            background: #f3f4f6;
            transform: scale(1.1);
        }

        /* 输入框容器 */
        .kefu-input-container {
            display: flex;
            gap: 12px;
            align-items: flex-end;
        }

        .kefu-input-field {
            flex: 1;
            min-height: 44px;
            max-height: 120px;
            padding: 10px 14px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            font-size: 14px;
            font-family: inherit;
            resize: none;
            line-height: 1.5;
            transition: all 0.2s;
        }

        .kefu-input-field:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .kefu-send-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .kefu-send-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        .kefu-send-btn:active {
            transform: scale(0.95);
        }

        .kefu-send-btn svg {
            width: 20px;
            height: 20px;
            fill: white;
            margin-left: 2px;
        }

        /* 图片预览 */
        .kefu-image-preview {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            cursor: zoom-out;
        }

        .kefu-image-preview.active {
            display: flex;
        }

        .kefu-image-preview img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            border-radius: 8px;
        }

        .kefu-image-preview-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
        }

        /* 滚动条样式 */
        .kefu-messages-area::-webkit-scrollbar {
            width: 6px;
        }

        .kefu-messages-area::-webkit-scrollbar-track {
            background: transparent;
        }

        .kefu-messages-area::-webkit-scrollbar-thumb {
            background: #d1d5db;
            border-radius: 3px;
        }

        .kefu-messages-area::-webkit-scrollbar-thumb:hover {
            background: #9ca3af;
        }

        /* 响应式优化 */
        @media (max-width: 768px) {
            .kefu-chat-header {
                padding: 10px 16px;
                min-height: 56px;
            }

            .kefu-header-avatar {
                width: 38px;
                height: 38px;
                font-size: 16px;
            }

            .kefu-header-title {
                font-size: 15px;
            }

            .kefu-header-status {
                font-size: 12px;
            }

            .kefu-messages-area {
                padding: 16px;
                gap: 12px;
            }

            .kefu-message-content-wrapper {
                max-width: 80%;
            }

            .kefu-quick-replies {
                padding: 8px 16px;
            }

            .kefu-input-area {
                padding: 10px 16px;
            }

            .kefu-input-field {
                font-size: 16px; /* 防止iOS自动缩放 */
            }
        }

        @media (min-width: 1024px) {
            .kefu-chat-container {
                max-width: 85%;
                margin: 0 auto;
            }
        }

        @media (min-width: 1440px) {
            .kefu-chat-container {
                max-width: 75%;
                margin: 0 auto;
            }
        }

        /* 大屏幕优化 */
        @media (min-width: 1920px) {
            .kefu-chat-container {
                max-width: 65%;
                margin: 0 auto;
            }

            .kefu-messages-area {
                padding: 24px;
            }
        }

        /* ⚠️ v1.4.5新增：会话状态提示样式 */
        .kefu-session-status {
            padding: 16px;
            margin: 16px;
            border-radius: 12px;
            text-align: center;
            animation: kefu-slide-down 0.3s ease-out;
        }

        @keyframes kefu-slide-down {
            from {
                transform: translateY(-10px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .kefu-status-waiting {
            background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
            border: 1px solid #fcb69f;
        }

        .kefu-status-closed {
            background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
            border: 1px solid #fdcb6e;
        }

        .kefu-status-icon {
            font-size: 32px;
            margin-bottom: 8px;
        }

        .kefu-status-text {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 6px;
        }

        .kefu-status-hint {
            font-size: 13px;
            color: #666;
            line-height: 1.4;
        }
    }
}

/* ==================== v1.7 新增：标签绑定功能 ==================== */

/* 头部按钮组 */
.kefu-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    min-width: fit-content;
}

/* 绑定记录按钮 */
.kefu-bind-tag-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.kefu-bind-tag-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.kefu-bind-tag-btn:active {
    transform: translateY(0);
}

.kefu-bind-tag-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 标签弹窗遮罩 */
.kefu-tag-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: kefuFadeIn 0.3s ease;
}

@keyframes kefuFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 标签弹窗内容 */
.kefu-tag-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: kefuSlideUp 0.3s ease;
}

@keyframes kefuSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 弹窗头部 */
.kefu-tag-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.kefu-tag-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.kefu-tag-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kefu-tag-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 弹窗主体 */
.kefu-tag-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* 标签表单 */
.kefu-tag-form-group {
    margin-bottom: 20px;
}

.kefu-tag-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

/* 标签类型选择器 */
.kefu-tag-type-selector {
    display: flex;
    gap: 12px;
}

.kefu-tag-type-option {
    flex: 1;
    position: relative;
}

.kefu-tag-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.kefu-tag-type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.kefu-tag-type-label svg {
    width: 28px;
    height: 28px;
    fill: #9ca3af;
    transition: fill 0.3s ease;
}

.kefu-tag-type-option input[type="radio"]:checked + .kefu-tag-type-label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.kefu-tag-type-option input[type="radio"]:checked + .kefu-tag-type-label svg {
    fill: #667eea;
}

.kefu-tag-type-option:hover .kefu-tag-type-label {
    border-color: #667eea;
}

/* 标签输入框 */
.kefu-tag-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.kefu-tag-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.kefu-tag-input::placeholder {
    color: #9ca3af;
}

/* 输入提示 */
.kefu-tag-input-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #ef4444;
    min-height: 18px;
}

/* 帮助文本 */
.kefu-tag-help-text {
    padding: 12px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

.kefu-tag-help-text p {
    margin: 4px 0;
}

/* 弹窗底部 */
.kefu-tag-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.kefu-tag-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kefu-tag-btn-cancel {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.kefu-tag-btn-cancel:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.kefu-tag-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.kefu-tag-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.kefu-tag-btn-confirm:active {
    transform: translateY(0);
}

.kefu-tag-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ==================== v1.7.3新增：滚动加载更多样式 ==================== */

/* 加载中提示容器 */
.kefu-loading-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    min-height: 60px;
}

/* 加载动画圆圈 */
.kefu-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: kefu-loading-spin 0.8s linear infinite;
}

@keyframes kefu-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

/* 加载文字 */
.kefu-loading-text {
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
}
}
