/**
 * AI聊天界面样式 - QQ风格
 */

/* 聊天按钮 */
.zibll-ai-chat-button {
    position: fixed;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    z-index: 9998;
    transition: all 0.3s ease;
    border: none;
    animation: robotGentle 4s ease-in-out infinite;
    overflow: visible;
}

.zibll-ai-chat-button:hover {
    background: transparent;
    animation: robotGentleHover 3s ease-in-out infinite;
}

.zibll-ai-chat-button:active {
    transform: scale(0.9);
    animation: none;
}

.zibll-ai-chat-button svg {
    width: 80px;
    height: 80px;
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(33, 204, 124, 0.3));
}

.zibll-ai-chat-button:hover svg {
    transform: scale(1.08);
    filter: drop-shadow(0 3px 12px rgba(33, 204, 124, 0.5));
}

/* 机器人额头闪电呼吸灯效果 */
@keyframes lightningBreath {
    0%, 100% {
        fill: #4ade80;
        opacity: 0.6;
        filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.6));
    }
    50% {
        fill: #22c55e;
        opacity: 1;
        filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.9));
    }
}

#zibll-ai-chat-button #robot-lightning,
#zibll-ai-chat-button .robot-lightning {
    animation: lightningBreath 2s ease-in-out infinite;
    fill: #4ade80 !important;
}

/* 机器人眼睛眨眼动画 - 增强版，更明显的闭完再睁开 */
@keyframes eyeBlink {
    0%, 75% {
        opacity: 1;
        transform: scaleY(1) scaleX(1) translate(0, 0);
    }
    77%, 80% {
        opacity: 0.5;
        transform: scaleY(0.3) scaleX(0.5) translate(0, 0);
    }
    82%, 88% {
        opacity: 0;
        transform: scaleY(0) scaleX(0) translate(0, 0);
    }
    90%, 92% {
        opacity: 0.3;
        transform: scaleY(0.2) scaleX(0.3) translate(0, 0);
    }
    95%, 100% {
        opacity: 1;
        transform: scaleY(1) scaleX(1) translate(0, 0);
    }
}

/* 确保中间的眼睛元素（4、5）不受影响，保持静态 */
#zibll-ai-chat-button .robot-eye-left.robot-eye-4,
#zibll-ai-chat-button .robot-eye-left.robot-eye-5,
#zibll-ai-chat-button .robot-eye-right.robot-eye-4,
#zibll-ai-chat-button .robot-eye-right.robot-eye-5 {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* 左眼上排3个（1、2、3）- 从左边向中间收缩 */
#zibll-ai-chat-button .robot-eye-left.robot-eye-1 {
    animation: eyeBlink 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: 0% 50%;
    transform-box: fill-box;
}

#zibll-ai-chat-button .robot-eye-left.robot-eye-2 {
    animation: eyeBlink 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: 0% 50%;
    transform-box: fill-box;
    animation-delay: 0.02s;
}

#zibll-ai-chat-button .robot-eye-left.robot-eye-3 {
    animation: eyeBlink 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: 0% 50%;
    transform-box: fill-box;
    animation-delay: 0.04s;
}

/* 左眼下排3个（6、7、8）- 从右边向中间收缩 */
#zibll-ai-chat-button .robot-eye-left.robot-eye-6 {
    animation: eyeBlink 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: 100% 50%;
    transform-box: fill-box;
    animation-delay: 0.04s;
}

#zibll-ai-chat-button .robot-eye-left.robot-eye-7 {
    animation: eyeBlink 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: 100% 50%;
    transform-box: fill-box;
    animation-delay: 0.02s;
}

#zibll-ai-chat-button .robot-eye-left.robot-eye-8 {
    animation: eyeBlink 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: 100% 50%;
    transform-box: fill-box;
}

/* 右眼上排3个（1、2、3）- 从左边向中间收缩，稍微延迟 */
#zibll-ai-chat-button .robot-eye-right.robot-eye-1 {
    animation: eyeBlink 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: 0% 50%;
    transform-box: fill-box;
    animation-delay: 0.06s;
}

#zibll-ai-chat-button .robot-eye-right.robot-eye-2 {
    animation: eyeBlink 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: 0% 50%;
    transform-box: fill-box;
    animation-delay: 0.08s;
}

#zibll-ai-chat-button .robot-eye-right.robot-eye-3 {
    animation: eyeBlink 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: 0% 50%;
    transform-box: fill-box;
    animation-delay: 0.1s;
}

/* 右眼下排3个（6、7、8）- 从右边向中间收缩，稍微延迟 */
#zibll-ai-chat-button .robot-eye-right.robot-eye-6 {
    animation: eyeBlink 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: 100% 50%;
    transform-box: fill-box;
    animation-delay: 0.1s;
}

#zibll-ai-chat-button .robot-eye-right.robot-eye-7 {
    animation: eyeBlink 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: 100% 50%;
    transform-box: fill-box;
    animation-delay: 0.08s;
}

#zibll-ai-chat-button .robot-eye-right.robot-eye-8 {
    animation: eyeBlink 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: 100% 50%;
    transform-box: fill-box;
    animation-delay: 0.06s;
}

/* 未读消息徽章 */
.zibll-ai-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 1px 4px rgba(255, 68, 68, 0.3);
    z-index: 10000;
    animation: badgePulse 2s ease-in-out infinite;
    white-space: nowrap;
    border: 1.5px solid #fff;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 1px 4px rgba(255, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4);
    }
}

/* 温柔的浮动动画 - 轻柔缓慢 */
@keyframes robotGentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* 鼠标悬停时的温柔呼吸效果 */
@keyframes robotGentleHover {
    0%, 100% {
        transform: translateY(0px) scale(1.08);
    }
    50% {
        transform: translateY(-4px) scale(1.1);
    }
}

.zibll-ai-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.zibll-ai-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

/* 聊天窗口 */
.zibll-ai-chat-widget {
    position: fixed;
    width: 400px;
    height: 600px;
    background: #f5f5f5;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.zibll-ai-chat-widget.zibll-ai-position-bottom-right {
    bottom: 50px;
    right: 20px;
}

.zibll-ai-chat-widget.zibll-ai-position-bottom-left {
    bottom: 50px;
    left: 20px;
}

/* 响应式 */
@media (max-width: 600px) {
    .zibll-ai-chat-widget {
        width: calc(100% - 40px);
        height: calc(100vh - 120px);
        bottom: 50px !important;
        left: 20px !important;
        right: 20px !important;
    }
}

/* 头部 */
.zibll-ai-chat-header {
    background: #12B7F5;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px 16px 0 0;
}

.zibll-ai-chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.zibll-ai-chat-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.zibll-ai-chat-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.zibll-ai-chat-title-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zibll-ai-chat-title-text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.zibll-ai-chat-status {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
}

.zibll-ai-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    animation: breathe-dot 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

@keyframes breathe-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
        box-shadow: 0 0 12px rgba(74, 222, 128, 0.9);
    }
}

.zibll-ai-status-text {
    white-space: nowrap;
}

.zibll-ai-status-qq {
    white-space: nowrap;
    font-size: 10px;
    opacity: 0.85;
    cursor: pointer;
    transition: opacity 0.2s;
    color: inherit;
    text-decoration: none;
}

.zibll-ai-status-qq:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 响应式：小屏幕时调整状态显示 */
@media (max-width: 600px) {
    .zibll-ai-chat-status {
        font-size: 10px;
        gap: 4px;
    }
    
    .zibll-ai-status-qq {
        font-size: 9px;
    }
}

.zibll-ai-chat-header-actions {
    display: flex;
    gap: 4px;
}

.zibll-ai-chat-action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.zibll-ai-chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 容器布局 */
.zibll-ai-chat-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.zibll-ai-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.zibll-ai-chat-sidebar {
    display: none; /* 隐藏侧边栏，更简洁 */
}

.zibll-ai-chat-sidebar-avatar {
    text-align: center;
}

.zibll-ai-chat-sidebar-info {
    margin-top: 12px;
}

.zibll-ai-chat-sidebar-info h3 {
    font-size: 14px;
    color: #333;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.zibll-ai-chat-sidebar-info p {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* 头像 */
.zibll-ai-chat-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #12B7F5 0%, #0D8BD9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.zibll-ai-chat-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.zibll-ai-chat-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

/* 消息区域 */
.zibll-ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f5f5f5;
}

.zibll-ai-chat-welcome {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* 快速导航 */
.zibll-ai-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    max-width: 100%;
}

/* 对话框内显示的导航 */
.zibll-ai-chat-nav-display .zibll-ai-quick-nav {
    justify-content: flex-start;
    margin-top: 8px;
}

.zibll-ai-quick-nav-item {
    display: inline-block;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.zibll-ai-quick-nav-item:hover {
    background: #12B7F5;
    color: #fff;
    border-color: #12B7F5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(18, 183, 245, 0.3);
}

.zibll-ai-chat-message {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.zibll-ai-chat-message.user {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.zibll-ai-chat-message.assistant {
    flex-direction: row;
    justify-content: flex-start;
}

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

.zibll-ai-chat-message-wrapper {
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 50px);
    gap: 4px;
    flex: 1;
}

.zibll-ai-chat-message.user .zibll-ai-chat-message-wrapper {
    align-items: flex-end;
}

.zibll-ai-chat-message.assistant .zibll-ai-chat-message-wrapper {
    align-items: flex-start;
}

.zibll-ai-chat-message-time {
    font-size: 11px;
    color: #999;
    padding: 0 4px;
    margin-bottom: 0;
    display: block;
    opacity: 0.7;
    line-height: 1.2;
}

.zibll-ai-chat-message.user .zibll-ai-chat-message-time {
    text-align: right;
    padding-right: 8px;
}

.zibll-ai-chat-message.assistant .zibll-ai-chat-message-time {
    text-align: left;
    padding-left: 8px;
}

.zibll-ai-chat-message-content {
    position: relative;
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.6;
    font-size: 14px;
    max-width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 消息气泡（圆润，带尾巴指向头像） */
.zibll-ai-chat-message.user .zibll-ai-chat-message-content {
    background: #12B7F5;
    color: #fff;
    border-radius: 12px; /* 统一圆润 */
    margin-left: 0;
    margin-right: 0;
    position: relative;
}

/* 用户消息气泡尾巴（指向右边头像） */
.zibll-ai-chat-message.user .zibll-ai-chat-message-content::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #12B7F5;
}

.zibll-ai-chat-message.assistant .zibll-ai-chat-message-content {
    background: #fff;
    color: #333;
    border-radius: 12px; /* 统一圆润 */
    border: 1px solid #e0e0e0;
    margin-left: 0;
    margin-right: 0;
    position: relative;
}

/* 助手消息气泡尾巴（指向左边头像） */
.zibll-ai-chat-message.assistant .zibll-ai-chat-message-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 8px 6px 0;
    border-color: transparent #fff transparent transparent;
}

/* 助手消息气泡尾巴边框（与边框颜色一致） */
.zibll-ai-chat-message.assistant .zibll-ai-chat-message-content::after {
    content: '';
    position: absolute;
    left: -9px;
    top: 12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 8px 6px 0;
    border-color: transparent #e0e0e0 transparent transparent;
    z-index: -1;
}

.zibll-ai-chat-message-loading {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 12px 12px 12px 4px;
    border: 1px solid #e0e0e0;
}

.zibll-ai-chat-message-loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #12B7F5;
    animation: bounce 1.4s infinite ease-in-out both;
}

.zibll-ai-chat-message-loading span:nth-child(1) {
    animation-delay: -0.32s;
}

.zibll-ai-chat-message-loading span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* 输入区域 */
.zibll-ai-chat-footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 10px;
}

/* 导航按钮区域 */
.zibll-ai-chat-nav-button-wrapper {
    margin-bottom: 8px;
    display: flex;
    justify-content: flex-start;
}

.zibll-ai-chat-nav-btn {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2px 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 28px;
    height: 28px;
    min-width: 28px;
}

.zibll-ai-chat-nav-btn:hover {
    background: #12B7F5;
    border-color: #12B7F5;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(18, 183, 245, 0.3);
}

.zibll-ai-chat-nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(18, 183, 245, 0.2);
}

.zibll-ai-chat-nav-icon {
    width: 14px;
    height: 14px;
    display: block;
    transition: all 0.2s ease;
}

.zibll-ai-chat-nav-btn:hover .zibll-ai-chat-nav-icon {
    filter: brightness(0) invert(1); /* 悬停时图标变白色 */
}

.zibll-ai-chat-toolbar {
    display: none; /* 隐藏工具栏，更简洁 */
}

.zibll-ai-chat-tool-btn {
    background: transparent;
    border: none;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.zibll-ai-chat-tool-btn:hover {
    background: #f0f0f0;
    color: #12B7F5;
}

.zibll-ai-chat-input-wrapper {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.zibll-ai-chat-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 14px;
    resize: none;
    max-height: 100px;
    min-height: 40px;
    font-family: inherit;
    transition: border-color 0.2s;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}

.zibll-ai-chat-input:focus {
    outline: none;
    border-color: #12B7F5;
}

.zibll-ai-chat-send-area {
    display: none; /* 发送按钮移到输入框旁边 */
}

.zibll-ai-chat-send-btn {
    background: #12B7F5;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 0 28px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 40px;
    min-width: 70px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(18, 183, 245, 0.25);
}

.zibll-ai-chat-send-btn:hover:not(:disabled) {
    background: #0D8BD9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.4);
}

.zibll-ai-chat-send-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(18, 183, 245, 0.2);
}

.zibll-ai-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
    box-shadow: none;
}

/* 滚动条样式 */
.zibll-ai-chat-body::-webkit-scrollbar {
    width: 6px;
}

.zibll-ai-chat-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.zibll-ai-chat-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.zibll-ai-chat-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 消息中的链接样式 */
.zibll-ai-chat-message-content a {
    color: #12B7F5;
    text-decoration: underline;
    word-break: break-all;
    transition: color 0.2s;
}

.zibll-ai-chat-message-content a:hover {
    color: #0D8BD9;
    text-decoration: underline;
}

.zibll-ai-chat-message.user .zibll-ai-chat-message-content a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}

.zibll-ai-chat-message.user .zibll-ai-chat-message-content a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 结束对话按钮 */
.zibll-ai-end-conversation-buttons {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.zibll-ai-end-conversation-btn {
    flex: 1;
    min-width: 60px;
    padding: 6px 14px;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.zibll-ai-end-btn {
    background: #ff6b6b;
    color: #fff;
}

.zibll-ai-end-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.zibll-ai-end-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
}

.zibll-ai-continue-btn {
    background: #12B7F5;
    color: #fff;
}

.zibll-ai-continue-btn:hover {
    background: #0D8BD9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(18, 183, 245, 0.3);
}

.zibll-ai-continue-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(18, 183, 245, 0.2);
}

/* 欢迎提示框 */
.zibll-ai-welcome-tooltip {
    position: fixed;
    z-index: 9997;
    max-width: 260px;
    width: 260px;
    background: linear-gradient(135deg, #12B7F5 0%, #0D8BD9 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(18, 183, 245, 0.3);
    padding: 0;
    animation: tooltipFadeIn 0.5s ease-out;
    overflow: visible;
}

.zibll-ai-welcome-tooltip.zibll-ai-position-bottom-right {
    bottom: 90px;
    right: 90px;
}

.zibll-ai-welcome-tooltip.zibll-ai-position-bottom-left {
    bottom: 90px;
    left: 90px;
}

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

.zibll-ai-tooltip-body {
    padding: 14px 16px;
    color: #fff;
    position: relative;
    background-image: 
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 20px 20px;
    background-position: 0 0;
}

.zibll-ai-tooltip-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 10;
}

.zibll-ai-tooltip-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.zibll-ai-tooltip-body p {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    padding-right: 30px; /* 为关闭按钮留出空间 */
}

.zibll-ai-tooltip-body p:first-child {
    font-size: 15px;
    margin-bottom: 6px;
    margin-top: 0;
}

.zibll-ai-tooltip-desc {
    font-size: 12px !important;
    font-weight: 400 !important;
    opacity: 0.95;
    line-height: 1.5;
    margin-bottom: 10px !important;
}

.zibll-ai-tooltip-action {
    margin-top: 8px;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.zibll-ai-tooltip-action:hover {
    opacity: 1;
    transform: translateX(3px);
}

.zibll-ai-tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
}

.zibll-ai-welcome-tooltip.zibll-ai-position-bottom-right .zibll-ai-tooltip-arrow {
    right: 15px;
    bottom: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #0D8BD9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transform: rotate(45deg);
}

.zibll-ai-welcome-tooltip.zibll-ai-position-bottom-left .zibll-ai-tooltip-arrow {
    right: 15px;
    bottom: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #0D8BD9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transform: rotate(45deg);
}

/* 响应式 */
@media (max-width: 600px) {
    .zibll-ai-welcome-tooltip {
        max-width: calc(100% - 40px);
        width: auto;
        right: 20px !important;
        left: 20px !important;
        bottom: 90px !important;
    }
    
    .zibll-ai-welcome-tooltip.zibll-ai-position-bottom-right .zibll-ai-tooltip-arrow,
    .zibll-ai-welcome-tooltip.zibll-ai-position-bottom-left .zibll-ai-tooltip-arrow {
        right: 20px;
        bottom: -10px;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid #0D8BD9;
        transform: rotate(45deg);
    }
}
