/* AI Agent Styles - iOS 26 果冻弹性科技风格 */
:root {
    --ai-primary: #00d4ff;
    --ai-secondary: #6366f1;
    --ai-accent-1: #3b82f6;
    --ai-accent-2: #8b5cf6;
    --ai-accent-3: #00ffcc;
    --ai-bg-dark: #0a0e1a;
    --ai-bg-card: rgba(15, 23, 42, 0.95);
    --ai-text-light: #e2e8f0;
    --ai-text-glow: #00d4ff;
    --ai-glass-bg: rgba(255, 255, 255, 0.05);
    --ai-glass-border: rgba(0, 212, 255, 0.2);
    --drawer-width: 420px;
    --drawer-bg: linear-gradient(180deg, #0a0e1a 0%, #0f172a 50%, #1e1b4b 100%);
    
    /* iOS 26 果冻弹性曲线 */
    --jelly-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --jelly-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --jelly-smooth: cubic-bezier(0.34, 1.56, 0.64, 1);
    --jelly-spring: cubic-bezier(0.5, 1.8, 0.3, 0.8);
    
    /* 科技渐变 */
    --ai-gradient-main: linear-gradient(135deg, #00d4ff 0%, #6366f1 50%, #8b5cf6 100%);
    --ai-gradient-flow: linear-gradient(120deg, #00d4ff 0%, #00ffcc 50%, #8b5cf6 100%);
    --ai-gradient-button: linear-gradient(135deg, #00d4ff 0%, #6366f1 100%);
    --ai-gradient-glow: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
}

/* Trigger Button - Fixed Position Bottom Right (above back-to-top) */
.ai-agent-trigger-wrapper {
    position: fixed;
    bottom: 100px;
    right: 40px;
    z-index: 10000;
    cursor: pointer;
}

.ai-agent-trigger {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 50%),
        linear-gradient(135deg, #00d4ff 0%, #6366f1 50%, #8b5cf6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 4px 20px rgba(0, 212, 255, 0.4), 
        0 0 40px rgba(0, 212, 255, 0.3),
        0 0 60px rgba(99, 102, 241, 0.2),
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s var(--jelly-elastic);
    overflow: hidden;
    animation: pulse-glow 2s ease-in-out infinite;
    border: 2px solid rgba(255,255,255,0.2);
}

/* 内圈装饰 */
.ai-agent-trigger::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    pointer-events: none;
}

/* 外圈光环 */
.ai-agent-trigger-wrapper::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(0,212,255,0.6), transparent, rgba(139,92,246,0.6), transparent);
    animation: rotate-border 4s linear infinite;
    z-index: -1;
    opacity: 0.8;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 
            0 4px 20px rgba(0, 212, 255, 0.4), 
            0 0 40px rgba(0, 212, 255, 0.2),
            0 0 60px rgba(99, 102, 241, 0.15);
        transform: scale(1);
    }
    50% { 
        box-shadow: 
            0 6px 30px rgba(0, 212, 255, 0.6), 
            0 0 60px rgba(0, 212, 255, 0.3),
            0 0 80px rgba(99, 102, 241, 0.25);
        transform: scale(1.05);
    }
}

/* 流光动画背景 */
.ai-agent-trigger::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg, 
        transparent 0%, 
        rgba(255,255,255,0.4) 20%, 
        rgba(0,212,255,0.6) 40%,
        rgba(139,92,246,0.6) 60%,
        rgba(255,255,255,0.4) 80%, 
        transparent 100%
    );
    animation: rotate-glow 3s linear infinite;
    opacity: 0.4;
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-agent-trigger:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 
        0 12px 35px rgba(99, 102, 241, 0.6), 
        0 0 30px rgba(0, 212, 255, 0.8),
        0 0 60px rgba(0, 212, 255, 0.4),
        inset 0 2px 4px rgba(255,255,255,0.4);
    animation: none;
    border-color: rgba(255,255,255,0.4);
}

.ai-agent-trigger:hover::before {
    opacity: 0.6;
    animation-duration: 1.5s;
}

.ai-agent-trigger:active {
    transform: scale(0.92) translateY(-2px);
}

/* ===== iOS 26 果冻弹性动画系统 ===== */

/* 基础果冻动画 */
.jelly-animate {
    animation: jelly-bounce 0.8s var(--jelly-bounce);
}

@keyframes jelly-bounce {
    0% { transform: scale(1, 1); }
    15% { transform: scale(0.85, 1.15); }
    30% { transform: scale(1.25, 0.75); }
    45% { transform: scale(0.9, 1.1); }
    60% { transform: scale(1.1, 0.9); }
    75% { transform: scale(0.95, 1.05); }
    90% { transform: scale(1.02, 0.98); }
    100% { transform: scale(1, 1); }
}

/* 机器人专属果冻动画 */
.jelly-robot {
    animation: robot-float 3s ease-in-out infinite;
    transition: transform 0.3s var(--jelly-elastic);
}

.jelly-robot:hover {
    animation: robot-jelly 0.6s var(--jelly-bounce);
}

.jelly-robot:active {
    transform: scale(0.92, 0.92);
}

@keyframes robot-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    50% { transform: translateY(-4px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes robot-jelly {
    0% { transform: scale(1) translateY(0); }
    20% { transform: scale(1.15, 0.8) translateY(5px); }
    40% { transform: scale(0.85, 1.2) translateY(-10px); }
    60% { transform: scale(1.1, 0.9) translateY(2px); }
    80% { transform: scale(0.95, 1.05) translateY(-3px); }
    100% { transform: scale(1) translateY(0); }
}

/* 按钮果冻动画 */
.jelly-btn {
    transition: all 0.3s var(--jelly-elastic);
}

.jelly-btn:hover {
    transform: scale(1.1) rotate(5deg);
    animation: btn-jelly 0.5s var(--jelly-bounce);
}

.jelly-btn:active {
    transform: scale(0.85, 0.85);
}

@keyframes btn-jelly {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.2, 0.8) rotate(-3deg); }
    50% { transform: scale(0.9, 1.1) rotate(8deg); }
    70% { transform: scale(1.05, 0.95) rotate(-2deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}

/* 输入框果冻动画 */
.jelly-input {
    transition: all 0.4s var(--jelly-elastic);
}

.jelly-input:focus-within {
    animation: input-jelly 0.5s var(--jelly-bounce);
    transform: scale(1.02);
}

@keyframes input-jelly {
    0% { transform: scale(1); }
    40% { transform: scale(1.04, 0.96); }
    60% { transform: scale(0.98, 1.02); }
    100% { transform: scale(1.02); }
}

/* Chip 果冻动画 */
.jelly-chip {
    transition: all 0.3s var(--jelly-elastic);
}

.jelly-chip:hover {
    animation: chip-jelly 0.4s var(--jelly-bounce);
    transform: translateY(-3px) scale(1.05);
}

.jelly-chip:active {
    transform: scale(0.9, 0.9);
}

@keyframes chip-jelly {
    0% { transform: scale(1) translateY(0); }
    40% { transform: scale(1.1, 0.85) translateY(2px); }
    60% { transform: scale(0.9, 1.1) translateY(-5px); }
    100% { transform: scale(1.05) translateY(-3px); }
}

/* 对话框果冻弹出 */
.jelly-dialog {
    animation: dialog-pop 0.5s var(--jelly-bounce);
}

@keyframes dialog-pop {
    0% { opacity: 0; transform: scale(0.5) translateY(20px); }
    50% { transform: scale(1.1, 0.9) translateY(-5px); }
    70% { transform: scale(0.95, 1.05) translateY(2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* 消息果冻入场 */
.jelly-message-in {
    animation: message-jelly-in 0.6s var(--jelly-bounce);
}

@keyframes message-jelly-in {
    0% { opacity: 0; transform: scale(0) translateY(30px); }
    40% { transform: scale(1.15, 0.85) translateY(-10px); }
    60% { transform: scale(0.9, 1.1) translateY(5px); }
    80% { transform: scale(1.05, 0.95) translateY(-2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* 模态框果冻动画 */
.jelly-modal {
    animation: modal-jelly 0.5s var(--jelly-bounce);
}

@keyframes modal-jelly {
    0% { opacity: 0; transform: scale(0.8) translateY(50px); }
    50% { transform: scale(1.05, 0.95) translateY(-10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.ai-icon-svg {
    width: 30px;
    height: 30px;
    z-index: 2;
    transition: all 0.3s var(--jelly-elastic);
    filter: drop-shadow(0 0 8px rgba(0,212,255,0.6));
}

.ai-agent-trigger:hover .ai-icon-svg {
    transform: rotate(10deg) scale(1.15);
    filter: drop-shadow(0 0 12px rgba(0,212,255,0.9));
}

/* 图标脉冲动画 */
.ai-agent-trigger-wrapper {
    animation: wrapper-float 3s ease-in-out infinite;
}

@keyframes wrapper-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* 提示标签 */
.ai-agent-trigger-wrapper::before {
    content: 'AI助手';
    position: absolute;
    right: 74px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(0, 0, 0, 0.8);
    color: #00d4ff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--jelly-elastic);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ai-agent-trigger-wrapper:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ai-agent-trigger-wrapper {
        bottom: 90px;
        right: 20px;
    }
    
    .ai-agent-trigger {
        width: 56px;
        height: 56px;
    }
    
    .ai-icon-svg {
        width: 26px;
        height: 26px;
    }
    
    .ai-agent-trigger-wrapper::before {
        display: none;
    }
    
    .ai-agent-trigger-wrapper::after {
        inset: -3px;
    }
}

/* Glow Effect */
.ai-agent-trigger::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1;
}

.ai-agent-trigger:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Drawer */
.ai-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100000;
}

.ai-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ai-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: var(--drawer-width);
    height: 100%;
    background: var(--drawer-bg);
    box-shadow: -20px 0 60px rgba(0, 212, 255, 0.2), inset 0 0 100px rgba(0, 212, 255, 0.05);
    z-index: 100001;
    transition: right 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(0, 212, 255, 0.3);
    overflow: hidden;
}

.ai-drawer.active {
    right: 0;
}

/* 粒子背景效果 */
.ai-drawer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(0, 212, 255, 0.4), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 255, 204, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(139, 92, 246, 0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(0, 212, 255, 0.3), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(0, 255, 204, 0.4), transparent),
        radial-gradient(2px 2px at 200px 50px, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 250px 90px, rgba(0, 212, 255, 0.5), transparent),
        radial-gradient(2px 2px at 300px 60px, rgba(0, 255, 204, 0.3), transparent),
        radial-gradient(1px 1px at 350px 100px, rgba(139, 92, 246, 0.4), transparent);
    background-repeat: repeat;
    background-size: 400px 150px;
    animation: particle-float 20s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes particle-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-150px); }
}

/* Drawer Content */
.ai-drawer-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.ai-drawer-title {
    color: var(--ai-text-light);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.ai-drawer-title svg {
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.8));
}

.ai-drawer-title svg path {
    fill: #00d4ff; 
}

.ai-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--ai-text-light);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.3s var(--jelly-elastic);
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

/* 关闭按钮内部X线条 */
.ai-close-btn::before,
.ai-close-btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.ai-close-btn::before {
    transform: rotate(45deg);
}

.ai-close-btn::after {
    transform: rotate(-45deg);
}

.ai-close-btn:hover {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.15);
    border-color: rgba(255, 77, 77, 0.4);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.3);
}

.ai-close-btn:hover::before,
.ai-close-btn:hover::after {
    background: #ff4d4d;
}

.ai-close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.ai-drawer-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: transparent;
    color: var(--ai-text-light);
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: relative;
    z-index: 5;
}

.ai-drawer-body::-webkit-scrollbar {
    display: none;
}

/* ===== 底部固定区域布局 ===== */
.ai-bottom-section {
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 26, 0.8) 20%, rgba(10, 14, 26, 0.98) 100%);
    padding-top: 20px;
}

/* 机器人对话框 - 绑定在机器人上方 */
.ai-robot-dialog {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 20px;
    margin: 0 20px 15px;
    padding: 16px 20px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(0, 212, 255, 0.1);
    animation: dialog-pop 0.5s var(--jelly-bounce);
}

.ai-robot-dialog::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(0, 212, 255, 0.25);
}

.ai-robot-dialog::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 212, 255, 0.08);
}

.ai-dialog-content {
    color: var(--ai-text-light);
    font-size: 14px;
    line-height: 1.7;
    min-height: 40px;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) transparent;
}

.ai-dialog-content::-webkit-scrollbar {
    width: 4px;
}

.ai-dialog-content::-webkit-scrollbar-track {
    background: transparent;
}

.ai-dialog-content::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 2px;
}

.ai-dialog-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

.ai-dialog-content.typing::after {
    content: '|';
    animation: cursor-blink 0.8s infinite;
    color: #00d4ff;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===== 底部固定机器人形象 ===== */
.ai-robot-fixed {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    position: relative;
    cursor: pointer;
}

.ai-robot-avatar {
    width: 100px;
    height: 140px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 天线 */
.ai-robot-antenna {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.ai-antenna-ball {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #00ffcc, #00d4ff);
    border-radius: 50%;
    box-shadow: 
        0 0 15px #00d4ff,
        0 0 30px rgba(0, 212, 255, 0.5);
    animation: antenna-pulse 1.5s ease-in-out infinite;
}

.ai-antenna-stick {
    width: 3px;
    height: 15px;
    background: linear-gradient(180deg, #00d4ff, #6366f1);
    margin-top: -2px;
}

@keyframes antenna-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 15px #00d4ff, 0 0 30px rgba(0, 212, 255, 0.5);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 0 25px #00d4ff, 0 0 50px rgba(0, 212, 255, 0.8);
    }
}

/* 机器人头部 */
.ai-robot-head {
    width: 80px;
    height: 90px;
    background: linear-gradient(145deg, #1e2440 0%, #121628 100%);
    border-radius: 40% 40% 35% 35%;
    position: relative;
    margin-top: 12px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* 面部 */
.ai-robot-face {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* 眼睛容器 */
.ai-robot-eyes {
    display: flex;
    gap: 15px;
}

/* 眼睛 */
.ai-robot-eye {
    width: 18px;
    height: 22px;
    background: linear-gradient(180deg, #00d4ff 0%, #00ffcc 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.8),
        0 0 30px rgba(0, 212, 255, 0.4),
        inset 0 0 8px rgba(255, 255, 255, 0.4);
    animation: eye-breathe 3s ease-in-out infinite;
}

.ai-eye-pupil {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0.9;
}

@keyframes eye-breathe {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.8), 0 0 30px rgba(0, 212, 255, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 212, 255, 1), 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

/* 眨眼动画 */
.ai-robot-eye.blink {
    animation: blink-jelly 0.2s var(--jelly-bounce);
}

@keyframes blink-jelly {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
    100% { transform: scaleY(1); }
}

/* 嘴巴 */
.ai-robot-mouth {
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #00ffcc);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    transition: all 0.3s var(--jelly-elastic);
}

.ai-robot-mouth.speaking {
    animation: mouth-speak 0.4s ease-in-out infinite;
}

@keyframes mouth-speak {
    0%, 100% { height: 3px; width: 24px; border-radius: 2px; }
    25% { height: 10px; width: 16px; border-radius: 50%; }
    50% { height: 5px; width: 22px; border-radius: 3px; }
    75% { height: 12px; width: 14px; border-radius: 50%; }
}

/* 胸口屏幕 */
.ai-robot-chest {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 28px;
}

.ai-chest-screen {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 10px rgba(0, 212, 255, 0.2),
        0 0 15px rgba(0, 212, 255, 0.1);
}

.ai-screen-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffcc, transparent);
    animation: scan-line 2s linear infinite;
    box-shadow: 0 0 10px #00ffcc;
}

@keyframes scan-line {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(28px); opacity: 0; }
}

.ai-screen-data {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ai-data-line {
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, transparent);
    border-radius: 1px;
    animation: data-flicker 1.5s ease-in-out infinite;
}

.ai-data-line:nth-child(1) { width: 80%; animation-delay: 0s; }
.ai-data-line:nth-child(2) { width: 60%; animation-delay: 0.3s; }
.ai-data-line:nth-child(3) { width: 40%; animation-delay: 0.6s; }

@keyframes data-flicker {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* 手臂 */
.ai-robot-arm {
    position: absolute;
    top: 45px;
    width: 12px;
    height: 35px;
    background: linear-gradient(180deg, #2a3050, #1a1f35);
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.ai-arm-left {
    left: -8px;
    transform: rotate(-15deg);
    animation: arm-wave-left 4s ease-in-out infinite;
}

.ai-arm-right {
    right: -8px;
    transform: rotate(15deg);
    animation: arm-wave-right 4s ease-in-out infinite;
}

@keyframes arm-wave-left {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(-25deg); }
}

@keyframes arm-wave-right {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(25deg); }
}

/* 底座 */
.ai-robot-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
}

.ai-base-ring {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: base-glow 2s ease-in-out infinite;
}

@keyframes base-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* 思考状态 */
.ai-robot-thinking .ai-robot-eye {
    animation: thinking-blink 0.8s ease-in-out infinite;
}

@keyframes thinking-blink {
    0%, 100% { transform: scaleY(1) translateY(0); }
    50% { transform: scaleY(0.3) translateY(5px); }
}

.ai-robot-thinking .ai-robot-mouth {
    width: 16px;
    height: 4px;
    border-radius: 50%;
    opacity: 0.6;
}

/* 状态指示器 */
.ai-robot-status-indicator,
.ai-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.4);
    transition: all 0.3s var(--jelly-elastic);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
}

.ai-status-indicator.thinking {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    animation: status-breathe 2s ease-in-out infinite;
}

.ai-status-indicator.speaking {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

@keyframes status-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.ai-status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: status-pulse 2s ease-in-out infinite;
}

.ai-status-dot.thinking {
    background: #ffd700;
    box-shadow: 0 0 10px #ffd700;
    animation: status-thinking 1s ease-in-out infinite;
}

.ai-status-dot.speaking {
    background: #00d4ff;
    box-shadow: 0 0 10px #00d4ff;
}

@keyframes status-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

@keyframes status-thinking {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.6); }
}

.ai-status-text {
    color: var(--ai-text-light);
    font-size: 13px;
    font-weight: 500;
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* 停止按钮 */
.ai-stop-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 4px;
    padding: 0;
    background: rgba(255, 77, 77, 0.9);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-stop-btn:hover {
    background: rgba(255, 77, 77, 1);
    transform: scale(1.1);
}

.ai-stop-btn svg {
    color: white;
}

.ai-status-indicator.thinking .ai-stop-btn,
.ai-status-indicator.speaking .ai-stop-btn {
    display: flex;
}

/* 输入区域遮罩 */
.ai-input-overlay {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 40px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 30px;
    z-index: 100;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.ai-input-overlay.active {
    display: flex;
}

.ai-thinking-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd700;
    font-size: 14px;
    font-weight: 500;
}

.ai-thinking-dots {
    display: inline-flex;
    gap: 4px;
}

.ai-thinking-dots::before,
.ai-thinking-dots::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    animation: thinking-dot 1.4s ease-in-out infinite;
}

.ai-thinking-dots::before {
    animation-delay: 0s;
}

.ai-thinking-dots::after {
    animation-delay: 0.7s;
}

@keyframes thinking-dot {
    0%, 100% { transform: scale(0.6); opacity: 0.4; }
    50% { transform: scale(1); opacity: 1; }
}

/* 机器人状态 - 默认蓝色，思考时变黄，回复时变青 */

/* 头部 - 默认蓝色发光 */
.ai-robot-head {
    transition: all 0.5s ease;
}

/* 思考状态 - 黄色 */
.ai-robot-avatar.thinking .ai-robot-head {
    background: linear-gradient(145deg, #403a1e 0%, #282112 100%);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -10px 20px rgba(0, 0, 0, 0.3);
}

/* 回复状态 - 青色 */
.ai-robot-avatar.speaking .ai-robot-head {
    background: linear-gradient(145deg, #1e4040 0%, #122828 100%);
    border-color: rgba(0, 255, 200, 0.4);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 200, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -10px 20px rgba(0, 0, 0, 0.3);
}

/* 眼睛 - 默认蓝色 */
.ai-robot-eye {
    transition: all 0.3s ease;
}

/* 思考状态 - 黄色 */
.ai-robot-avatar.thinking .ai-robot-eye {
    background: linear-gradient(180deg, #ffd700 0%, #ffaa00 100%);
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.9),
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 0 8px rgba(255, 255, 255, 0.4);
    animation: eye-thinking 0.8s ease-in-out infinite;
}

@keyframes eye-thinking {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 回复状态 - 青色 */
.ai-robot-avatar.speaking .ai-robot-eye {
    background: linear-gradient(180deg, #00ffcc 0%, #00d4ff 100%);
    box-shadow: 
        0 0 20px rgba(0, 255, 200, 1),
        0 0 40px rgba(0, 212, 255, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.5);
    animation: eye-speaking 0.3s ease-in-out infinite;
}

@keyframes eye-speaking {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

/* 天线球体 - 默认蓝色 */
.ai-antenna-ball {
    width: 10px;
    height: 10px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 15px #00d4ff, 0 0 30px #00d4ff;
    transition: all 0.3s ease;
}

/* 思考状态 - 黄色 */
.ai-robot-avatar.thinking .ai-antenna-ball {
    background: #ffd700;
    box-shadow: 0 0 15px #ffd700, 0 0 30px #ffd700;
    animation: antenna-blink 0.4s ease-in-out infinite;
}

@keyframes antenna-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 回复状态 - 青色 */
.ai-robot-avatar.speaking .ai-antenna-ball {
    background: #00ffcc;
    box-shadow: 0 0 20px #00ffcc, 0 0 40px #00d4ff;
    animation: antenna-pulse 0.5s ease-in-out infinite;
}

@keyframes antenna-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* 胸口屏幕 - 默认蓝色 */
.ai-chest-screen {
    transition: all 0.3s ease;
}

/* 思考状态 - 黄色 */
.ai-robot-avatar.thinking .ai-chest-screen {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 
        inset 0 0 15px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
}

/* 回复状态 - 青色 */
.ai-robot-avatar.speaking .ai-chest-screen {
    border-color: rgba(0, 255, 200, 0.6);
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 200, 0.4),
        0 0 25px rgba(0, 255, 200, 0.3);
}

/* 扫描线 - 默认青色 */
.ai-screen-scan {
    transition: all 0.3s ease;
}

/* 思考状态 - 黄色 */
.ai-robot-avatar.thinking .ai-screen-scan {
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    box-shadow: 0 0 10px #ffd700;
}

/* 回复状态 - 青色 */
.ai-robot-avatar.speaking .ai-screen-scan {
    background: linear-gradient(90deg, transparent, #00ffcc, transparent);
    box-shadow: 0 0 15px #00ffcc;
    animation: scan-fast 1s linear infinite;
}

@keyframes scan-fast {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(28px); opacity: 0; }
}

/* 数据线条 - 默认蓝色 */
.ai-data-line {
    transition: all 0.3s ease;
}

/* 思考状态 - 黄色 */
.ai-robot-avatar.thinking .ai-data-line {
    background: linear-gradient(90deg, #ffd700, transparent);
}

/* 回复状态 - 青色 */
.ai-robot-avatar.speaking .ai-data-line {
    background: linear-gradient(90deg, #00ffcc, transparent);
    animation: data-flicker-fast 0.8s ease-in-out infinite;
}

@keyframes data-flicker-fast {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 手臂 - 默认蓝色边框 */
.ai-robot-arm {
    transition: all 0.3s ease;
}

/* 思考状态 - 黄色 */
.ai-robot-avatar.thinking .ai-robot-arm {
    border-color: rgba(255, 215, 0, 0.3);
}

/* 回复状态 - 青色 */
.ai-robot-avatar.speaking .ai-robot-arm {
    border-color: rgba(0, 255, 200, 0.4);
}

/* 底座光环 - 默认蓝色 */
.ai-base-ring {
    transition: all 0.3s ease;
}

/* 思考状态 - 黄色 */
.ai-robot-avatar.thinking .ai-base-ring {
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
}

/* 回复状态 - 青色 */
.ai-robot-avatar.speaking .ai-base-ring {
    background: radial-gradient(ellipse at center, rgba(0, 255, 200, 0.5) 0%, transparent 70%);
}

/* 历史记录按钮 - 位于机器人右侧 */
.ai-history-trigger-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    transition: all 0.3s var(--jelly-elastic);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    z-index: 10;
    box-sizing: border-box;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    overflow: hidden;
}

.ai-history-trigger-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

.ai-history-trigger-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.ai-history-trigger-btn svg {
    transition: transform 0.3s ease;
}

.ai-history-trigger-btn:hover svg {
    transform: rotate(15deg);
}

/* Chat Interface */
.ai-chat-container {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.ai-message {
    margin-bottom: 15px;
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.7;
    animation: message-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.ai-message.bot {
    background: rgba(0, 212, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    color: var(--ai-text-light);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform-origin: bottom left;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.ai-message.bot::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: rgba(0, 212, 255, 0.3);
    border-left: 0;
}

.ai-message.user {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    color: white;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
    transform-origin: bottom right;
    border: 1px solid rgba(0, 212, 255, 0.4);
}

.ai-message.user::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 12px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-left-color: rgba(0, 212, 255, 0.4);
    border-right: 0;
}

.ai-input-area-wrapper {
    padding: 20px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.ai-input-area {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 30px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.ai-input-area:focus-within {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.ai-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 16px;
    color: var(--ai-text-light);
    outline: none;
    font-size: 14px;
}

.ai-input::placeholder {
    color: rgba(226, 232, 240, 0.5);
}

.ai-send-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #6366f1 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    padding: 0;
    margin: 0;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    box-sizing: border-box;
    flex-shrink: 0;
    flex-grow: 0;
    overflow: hidden;
}

.ai-send-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.ai-send-btn:active {
    transform: scale(0.95);
}

/* 预设问题样式 */
.ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 0 5px;
}

.ai-chip {
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    color: var(--ai-text-light) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    cursor: pointer;
    font-size: 13px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.ai-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    transition: left 0.5s;
}

.ai-chip:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #00d4ff !important;
    background: rgba(0, 212, 255, 0.2) !important;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.ai-chip:hover::before {
    left: 100%;
}

@keyframes message-pop-in {
    0% { opacity: 0; transform: translateY(20px) scale(0.8); }
    50% { opacity: 1; transform: translateY(-5px) scale(1.05); }
    70% { transform: translateY(2px) scale(0.95); }
    100% { transform: translateY(0) scale(1); }
}

/* ===== 历史记录弹窗 ===== */
.ai-history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 100002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ai-history-modal.active {
    opacity: 1;
    visibility: visible;
}

.ai-history-content {
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 24px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 212, 255, 0.15);
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s var(--jelly-bounce);
}

.ai-history-modal.active .ai-history-content {
    transform: scale(1) translateY(0);
}

.ai-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.ai-history-header h3 {
    color: var(--ai-text-light);
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-history-header h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--ai-gradient-main);
    border-radius: 2px;
}

.ai-history-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--ai-text-light);
    cursor: pointer;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--jelly-elastic);
}

.ai-history-close:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    color: #00d4ff;
    transform: rotate(90deg);
}

.ai-history-list {
    padding: 20px;
    max-height: calc(70vh - 80px);
    overflow-y: auto;
}

.ai-history-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s var(--jelly-elastic);
    cursor: pointer;
}

.ai-history-item:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

.ai-history-item:active {
    transform: scale(0.98);
}

.ai-history-time {
    font-size: 11px;
    color: rgba(226, 232, 240, 0.5);
    margin-bottom: 8px;
}

.ai-history-question {
    color: var(--ai-text-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-history-question::before {
    content: 'Q';
    width: 18px;
    height: 18px;
    background: var(--ai-gradient-button);
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-history-answer {
    color: rgba(226, 232, 240, 0.7);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-history-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(226, 232, 240, 0.5);
}

.ai-history-empty svg {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    opacity: 0.5;
}
