/* 高科技农业风格聊天框样式 */
.ai-chat-container {
    border: 2px solid #4a8f29;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* 电路板背景图案 - 头部 */
.ai-chat-container:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #8bc34a, #4caf50);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
}

/* 高科技底部装饰 */
.ai-chat-container:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent 0%, #4a8f29 2%, transparent 2%, 
        transparent 4%, #4a8f29 6%, transparent 6%, 
        transparent 8%, #4a8f29 10%, transparent 10%,
        transparent 14%, #4a8f29 16%, #4a8f29 36%, transparent 36%,
        transparent 42%, #4a8f29 44%, #4a8f29 48%, transparent 48%,
        transparent 50%, #4a8f29 52%, transparent 52%,
        transparent 54%, #4a8f29 56%, #4a8f29 58%, transparent 58%,
        transparent 60%, #4a8f29 62%, transparent 62%,
        transparent 70%, #4a8f29 72%, #4a8f29 74%, transparent 74%,
        transparent 84%, #4a8f29 86%, #4a8f29 88%, transparent 88%,
        transparent 92%, #4a8f29 94%, #4a8f29 96%, transparent 96%,
        transparent 98%, #4a8f29 100%
    );
    opacity: 0.8;
}

.ai-chat-header {
    background: linear-gradient(135deg, #2e7d32 0%, #4a8f29 50%, #2e7d32 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #3e7623;
    position: relative;
    overflow: hidden;
}

/* 高科技背景元素 - 头部移动光线 */
.ai-chat-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-15deg);
    animation: headerScan 8s infinite;
}

@keyframes headerScan {
    0% { left: -150%; }
    48% { left: -150%; }
    50% { left: 150%; }
    52% { left: 150%; }
    100% { left: 150%; }
}

.ai-chat-header-left {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ai-chat-header h4 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.ai-chat-header h4 i {
    margin-right: 10px;
    font-size: 1.2em;
    animation: pulse-grow 1.5s ease-in-out infinite alternate;
}

@keyframes pulse-grow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* 科技感状态指示器 */
.ai-chat-header .tech-indicators {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.tech-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    background: rgba(255, 255, 255, 0.5);
}

.tech-indicator:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: pulse 1.5s infinite;
}

.tech-indicator:nth-child(1) {
    background: #4cd964;
    animation: blink 2s infinite;
}

.tech-indicator:nth-child(2) {
    background: #ffcc00;
    animation: blink 2s infinite 0.5s;
}

.tech-indicator:nth-child(3) {
    background: #5ac8fa;
    animation: blink 2s infinite 1s;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.4; }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: rgba(249, 249, 249, 0.5);
    background-image: 
        radial-gradient(circle at 30px 30px, rgba(74, 143, 41, 0.05) 2px, transparent 2px),
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 60px 60px, 20px 20px, 20px 20px;
    border-left: 5px solid rgba(232, 245, 233, 0.5);
    scrollbar-width: thin;
    scrollbar-color: #4a8f29 #e8f5e9;
    font-size: 14px;
    position: relative;
}

/* 高科技垂直电路装饰 */
.ai-chat-body:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(to bottom,
        #4a8f29 0%, #4a8f29 10%, transparent 10%,
        transparent 20%, #4a8f29 20%, #4a8f29 25%, transparent 25%,
        transparent 40%, #4a8f29 40%, #4a8f29 60%, transparent 60%,
        transparent 65%, #4a8f29 65%, #4a8f29 80%, transparent 80%,
        transparent 95%, #4a8f29 95%, #4a8f29 100%
    );
}

.ai-chat-body::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-body::-webkit-scrollbar-track {
    background: #e8f5e9;
}

.ai-chat-body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #4a8f29, #8bc34a);
    border-radius: 3px;
}

.ai-message, .user-message {
    margin-bottom: 20px;
    display: flex;
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-message {
    align-items: flex-start;
}

.user-message {
    flex-direction: row-reverse;
}

.ai-avatar, .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* 头像光晕效果 */
.ai-avatar:before, .user-avatar:before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a8f29, #8bc34a);
    z-index: -1;
    opacity: 0.6;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-avatar {
    background: #f1f8e9;
    box-shadow: 0 0 15px rgba(74, 143, 41, 0.4);
}

.ai-avatar img, .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar {
    background-color: #4a8f29;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(74, 143, 41, 0.4);
}

.message-content {
    max-width: 80%;
    padding: 15px;
    position: relative;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* 复制按钮样式 */
.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(74, 143, 41, 0.3);
}

.message-content:hover .copy-button {
    opacity: 1;
}

.copy-button:hover {
    background: rgba(74, 143, 41, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button i {
    color: #4a8f29;
    font-size: 0.9rem;
}

.copy-button.copied {
    background: rgba(74, 143, 41, 0.2);
}

.copy-button.copied i {
    animation: copied-animation 1s ease;
}

@keyframes copied-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 高科技消息边框效果 */
.ai-message .message-content {
    background-color: rgba(241, 248, 233, 0.9);
    border-radius: 2px;
    clip-path: polygon(
        0% 0%, 
        calc(100% - 10px) 0%, 
        100% 10px, 
        100% 100%, 
        10px 100%, 
        0% calc(100% - 10px)
    );
}

.ai-message .message-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #8bc34a;
    box-sizing: border-box;
    opacity: 0.5;
    pointer-events: none;
    clip-path: polygon(
        0% 0%, 
        calc(100% - 10px) 0%, 
        100% 10px, 
        100% 100%, 
        10px 100%, 
        0% calc(100% - 10px)
    );
}

.user-message .message-content {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 2px;
    clip-path: polygon(
        0% 10px, 
        10px 0%, 
        100% 0%, 
        100% calc(100% - 10px), 
        calc(100% - 10px) 100%, 
        0% 100%
    );
}

.user-message .message-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #4a8f29;
    box-sizing: border-box;
    opacity: 0.5;
    pointer-events: none;
    clip-path: polygon(
        0% 10px, 
        10px 0%, 
        100% 0%, 
        100% calc(100% - 10px), 
        calc(100% - 10px) 100%, 
        0% 100%
    );
}

.message-content p {
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
}

/* Markdown样式 */
.message-content h1, .message-content h2, .message-content h3 {
    color: #2e7d32;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding-left: 14px;
}

.message-content h1:before, 
.message-content h2:before, 
.message-content h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #4a8f29;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.message-content h1 {
    font-size: 1.2rem;
}

.message-content pre {
    background: rgba(232, 245, 233, 0.7);
    padding: 10px;
    overflow-x: auto;
    border-left: 2px solid #4a8f29;
    font-size: 0.85rem;
    margin: 10px 0;
    position: relative;
}

.message-content pre:before {
    content: '<code>';
    position: absolute;
    top: -8px;
    right: 10px;
    font-size: 0.7rem;
    color: #4a8f29;
    font-family: monospace;
    background: white;
    padding: 0 4px;
    border-radius: 2px;
    border: 1px solid #4a8f29;
}

.message-content code {
    background: rgba(232, 245, 233, 0.7);
    padding: 2px 4px;
    color: #2e7d32;
    font-family: monospace;
    font-size: 0.85rem;
    border-radius: 2px;
}

.message-content ul, .message-content ol {
    margin: 5px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 3px;
    position: relative;
}

.message-content ul li:before {
    /*content: '•';*/
    color: #4a8f29;
    font-weight: bold;
    display: inline-block;
    margin-left: -1em;
    width: 1em;
}

.message-content table {
    border-collapse: collapse;
    margin: 10px 0;
    width: 100%;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.5);
}

.message-content table, .message-content th, .message-content td {
    border: 1px solid #c5e1a5;
}

.message-content th, .message-content td {
    padding: 8px;
    text-align: left;
}

.message-content th {
    background-color: rgba(232, 245, 233, 0.7);
    color: #2e7d32;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.message-content blockquote {
    border-left: 3px solid #8bc34a;
    margin: 10px 0;
    padding: 5px 10px;
    color: #555;
    font-style: italic;
    font-size: 0.9rem;
    background: rgba(232, 245, 233, 0.3);
}

/* 聊天输入框 */
.ai-chat-input {
    padding: 15px;
    background: linear-gradient(180deg, #f1f8e9, #e8f5e9);
    border-top: 1px solid #c5e1a5;
    display: flex;
    align-items: center;
    position: relative;
}

/* 键盘输入线 */
.ai-chat-input:before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: 80px;
    height: 2px;
    background: #4a8f29;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(74, 143, 41, 0.6);
    animation: inputPulse 3s infinite;
}

@keyframes inputPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.ai-chat-input textarea {
    resize: none;
    border: 1px solid #aed581;
    padding: 10px 15px;
    transition: all 0.3s ease;
    flex: 1;
    background-color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.9rem;
    border-radius: 0;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
}

.ai-chat-input textarea:focus {
    border-color: #4a8f29;
    box-shadow: 0 0 12px rgba(74, 143, 41, 0.3);
    outline: none;
}

.ai-chat-input button {
    margin-left: 10px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #4a8f29, #2e7d32);
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ai-chat-input button:after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s;
}

.ai-chat-input button:hover:after {
    left: 120%;
    transition: all 0.6s;
}

.ai-chat-input button:hover {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

.ai-chat-input button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.4);
}

.ai-chat-input button i {
    margin-right: 5px;
    position: relative;
    animation: buttonGlow 2s infinite alternate;
}

@keyframes buttonGlow {
    0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5); }
}

/* 打字指示器 */
.typing {
    display: flex;
    align-items: center;
    column-gap: 4px;
    padding: 8px 0;
}

.typing span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4a8f29;
    border-radius: 50%;
    animation: typing 1.4s infinite both;
    margin: 0 2px;
    box-shadow: 0 0 5px rgba(74, 143, 41, 0.5);
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* 高科技装饰元素 */
.tech-border {
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 5;
}

.tech-border-tl {
    top: 0;
    left: 0;
    border-top: 2px solid #4a8f29;
    border-left: 2px solid #4a8f29;
}

.tech-border-tr {
    top: 0;
    right: 0;
    border-top: 2px solid #4a8f29;
    border-right: 2px solid #4a8f29;
}

.tech-border-bl {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid #4a8f29;
    border-left: 2px solid #4a8f29;
}

.tech-border-br {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid #4a8f29;
    border-right: 2px solid #4a8f29;
}

/* 数据流动画 */
.data-flow {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    opacity: 0.15;
}

.data-particle {
    position: absolute;
    width: 2px;
    height: 10px;
    background: #4caf50;
    opacity: 0;
    animation: flowDown 8s linear infinite;
}

@keyframes flowDown {
    0% { 
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        transform: translateY(400px);
        opacity: 0;
    }
}

/* 用于修复引号渲染问题 */
.message-content::after {
    content: "";
    display: table;
    clear: both;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-chat-body {
        height: 250px;
    }
    
    .message-content {
        max-width: 85%;
    }
}

/* 推荐问题样式 */
.suggested-questions {
    margin-top: 15px;
    border-top: 1px dashed rgba(74, 143, 41, 0.3);
    padding-top: 12px;
}

.suggested-title {
    font-size: 0.9rem;
    color: #2e7d32;
    font-weight: 500;
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}

.suggested-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: rgba(74, 143, 41, 0.15);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.suggested-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

.suggested-question-btn {
    background: rgba(139, 195, 74, 0.1);
    border: 1px solid rgba(74, 143, 41, 0.3);
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    position: relative;
    overflow: hidden;
    text-align: left;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1 1 calc(50% - 4px);
    clip-path: polygon(
        0% 0%, 
        calc(100% - 8px) 0%, 
        100% 8px, 
        100% 100%, 
        8px 100%, 
        0% calc(100% - 8px)
    );
}

.suggested-question-btn:hover {
    background: rgba(74, 143, 41, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.suggested-question-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 停止按钮样式 */
#stopBtn {
    margin-left: 10px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

#stopBtn:after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s;
}

#stopBtn:hover:after {
    left: 120%;
    transition: all 0.6s;
}

#stopBtn:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

#stopBtn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(211, 47, 47, 0.4);
}

/* 侧边聊天框样式 */
.ai-chat-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    height: 100vh;
    transition: all 0.5s ease;
}

.ai-chat-toggle {
    position: relative;
    width: 60px;
    height: 160px;
    background: linear-gradient(135deg, rgba(230, 230, 230, 0.8), rgba(200, 200, 200, 0.7));
    border-radius: 15px 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 
        -5px 5px 10px rgba(0, 0, 0, 0.1),
        -3px -3px 6px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-right: none;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: 0;
}

.ai-chat-toggle:hover {
    background: linear-gradient(135deg, rgba(220, 220, 220, 0.85), rgba(190, 190, 190, 0.75));
    box-shadow: 
        -7px 7px 14px rgba(0, 0, 0, 0.15),
        -4px -4px 8px rgba(255, 255, 255, 0.6);
}

.ai-chat-toggle i.bi-chevron-left {
    font-size: 20px;
    color: #4a8f29;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.7));
    transition: transform 0.3s ease;
}

.ai-toggle-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a8f29, #2e7d32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 
        inset 2px 2px 5px rgba(255, 255, 255, 0.3),
        inset -2px -2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse-grow 2s infinite alternate;
    margin-bottom: 12px;
}

.ai-toggle-text {
    font-size: 12px;
    font-weight: 600;
    color: #2e7d32;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.ai-chat-sidebar.active .ai-chat-toggle i.bi-chevron-left {
    transform: rotate(180deg);
}

.ai-chat-panel {
    width: 0;
    height: 100%;
    transition: width 0.3s ease-out;
    overflow: hidden;
    position: relative;
    will-change: width;
}

.ai-chat-sidebar.active .ai-chat-panel {
    width: 50vw;
}

/* 可调整宽度的拖拽条 */
.ai-chat-resizer {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    cursor: col-resize;
    background: transparent;
    z-index: 10;
    touch-action: none;
}

.ai-chat-resizer:hover,
.ai-chat-resizer.resizing {
    background: rgba(74, 143, 41, 0.2);
}

.ai-chat-resizer:before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    width: 2px;
    height: 50px;
    margin-top: -25px;
    background: rgba(74, 143, 41, 0.4);
    border-radius: 1px;
}

/* 拟态效果聊天框样式 */
.ai-chat-panel .ai-chat-container {
    height: 100%;
    margin: 0;
    background: linear-gradient(135deg, rgba(240, 240, 240, 0.85), rgba(210, 210, 210, 0.75));
    border: none;
    box-shadow:
        -10px 10px 20px rgba(0, 0, 0, 0.1),
        -5px -5px 10px rgba(255, 255, 255, 0.5),
        inset 1px 1px 2px rgba(255, 255, 255, 0.2),
        inset -1px -1px 2px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .ai-chat-sidebar.active .ai-chat-panel {
        width: 50vw;
    }
}

@media (max-width: 768px) {
    .ai-chat-sidebar.active .ai-chat-panel {
        width: 70vw;
    }
    
    .ai-chat-toggle {
        height: 140px;
    }
}

@media (max-width: 576px) {
    .ai-chat-sidebar.active .ai-chat-panel {
        width: calc(100vw - 60px);
    }
    
    .ai-chat-toggle {
        width: 50px;
        height: 130px;
    }
    
    .ai-toggle-text {
        font-size: 10px;
    }
}

/* 打字机效果相关样式 */
.typing-text {
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.typewriter-char {
    display: inline;
    opacity: 1;
    transition: visibility 0s, opacity 0.1s;
}

/* 确保列表和表格正确显示 */
.typing-text ul, .typing-text ol {
    padding-left: 20px;
    margin: 10px 0;
}

.typing-text li {
    position: relative;
    margin-bottom: 5px;
}

.typing-text table {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
}

.typing-text th, .typing-text td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

.typing-text th {
    background-color: rgba(74, 143, 41, 0.1);
} 