/* 腾讯元宝风格AI助手样式 */
:root {
    --tech-gold: #FFB300;
    --tech-gold-dark: #FF8F00;
    --tech-gold-light: #FFD54F;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 179, 0, 0.3);
    --shadow-gold: 0 8px 32px rgba(255, 179, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
}

/* 腾讯元宝风格AI助手容器 */
.yuanbao-ai-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1400px;
    width: 95%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    box-shadow: 0 -4px 20px rgba(255, 179, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    max-height: 420px;
    pointer-events: auto;
}

/* 确保所有子元素都可以交互 */
.yuanbao-ai-container * {
    pointer-events: auto;
}

/* 快捷功能按钮区域 */
.yuanbao-shortcuts {
    display: flex;
    gap: 15px;
    padding: 12px 20px;
    background: transparent;
    border-bottom: none;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 50px;
    flex-shrink: 0;
}

.yuanbao-shortcuts::-webkit-scrollbar {
    display: none;
}

.shortcut-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

.shortcut-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--tech-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.2);
}

/* 输入区域 */
.yuanbao-input-area {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.05);
    min-height: 80px;
    flex-shrink: 0;
}

/* 输入区域底部行 */
.yuanbao-input-area-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 85%;
    margin: 0 auto;
    position: relative;
    border-radius: 27px;
    padding: 0;
    background: transparent;
    overflow: hidden;
}

/* 功能按钮组 */
.yuanbao-function-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* 输入框容器 */
.yuanbao-input-container {
    flex: 1;
    min-width: 0;
}

/* 功能按钮组 */
.yuanbao-function-buttons {
    display: flex;
    gap: 12px;
}

.function-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    gap: 5px;
}

.function-btn:hover {
    background: rgba(255, 179, 0, 0.2);
    border-color: var(--tech-gold);
    color: var(--tech-gold);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.3);
}

.function-btn.selected {
    background: rgba(255, 179, 0, 0.3);
    border-color: var(--tech-gold);
    color: var(--tech-gold);
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.3);
}

/* 输入框 */
.yuanbao-input-container {
    flex: 1;
}

.yuanbao-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    overflow-y: auto;
}

.yuanbao-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.yuanbao-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--tech-gold);
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.1);
}

/* 发送按钮 */
.yuanbao-pause-btn {
    padding: 0 16px;
    height: 44px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.yuanbao-pause-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--tech-gold);
    color: var(--tech-gold);
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.1);
}

/* 上传按钮 */
.yuanbao-upload-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    margin-right: 0;
    position: relative;
}

.yuanbao-upload-btn:hover {
    background: rgba(255, 179, 0, 0.2);
    border-color: var(--tech-gold);
    color: var(--tech-gold);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.3);
}

/* 禁用状态的上传按钮 */
.yuanbao-upload-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

.yuanbao-upload-btn.disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

/* 上传按钮气泡提示 */
.yuanbao-upload-btn::after {
    content: '支持CSV、Excel、JSON、TXT格式';
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 179, 0, 0.3);
}

/* 气泡箭头 */
.yuanbao-upload-btn::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #000000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* 鼠标悬停时显示气泡提示 */
.yuanbao-upload-btn:hover::after,
.yuanbao-upload-btn:hover::before {
    opacity: 1;
    visibility: visible;
    top: -40px;
}

/* 文件上传显示区域 */
.yuanbao-uploaded-files {
    width: 85%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 10px;
    align-items: center;
}

/* 单个上传文件项 */
.yuanbao-uploaded-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 11px;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    min-width: 120px;
}

/* 文件图标 */
.yuanbao-uploaded-file::before {
    content: '';
    width: 16px;
    height: 16px;
    background: rgba(255, 179, 0, 0.2);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: var(--tech-gold);
}

/* 文件类型图标 */
.yuanbao-uploaded-file.txt::before {
    content: 'T';
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.yuanbao-uploaded-file.csv::before {
    content: 'C';
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.yuanbao-uploaded-file.excel::before {
    content: 'X';
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.yuanbao-uploaded-file.json::before {
    content: 'J';
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

/* 文件信息 */
.yuanbao-file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

/* 文件名 */
.yuanbao-file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

/* 文件元信息 */
.yuanbao-file-meta {
    display: flex;
    gap: 6px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3px;
}

/* 上传进度条容器 */
.yuanbao-upload-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1.5px;
    overflow: hidden;
    margin-top: 3px;
}

/* 上传进度条 */
.yuanbao-upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tech-gold), var(--tech-gold-light));
    border-radius: 1.5px;
    transition: width 0.3s ease;
    box-shadow: 0 0 6px rgba(255, 179, 0, 0.5);
}

/* 文件进度文本 */
.yuanbao-file-progress {
    color: var(--tech-gold);
    font-weight: bold;
    font-size: 9px;
}

/* 文件类型 */
.yuanbao-file-type {
    background: rgba(255, 179, 0, 0.2);
    color: var(--tech-gold);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

/* 文件大小 */
.yuanbao-file-size {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
}

/* 删除文件按钮 */
.yuanbao-remove-file {
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.yuanbao-remove-file:hover {
    background: rgba(255, 0, 0, 0.5);
    transform: scale(1.1);
}

/* 继续添加文件按钮 */
.yuanbao-add-more-files {
    width: 30px;
    height: 30px;
    border: 2px dashed var(--glass-border);
    background: rgba(255, 255, 255, 0.1);
    color: var(--tech-gold);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.yuanbao-add-more-files:hover {
    background: rgba(255, 179, 0, 0.1);
    border-color: var(--tech-gold);
    transform: scale(1.1);
}

.yuanbao-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--tech-gold), var(--tech-gold-light));
    border: none;
    color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.4);
    opacity: 0.7;
}

.yuanbao-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 179, 0, 0.5);
    opacity: 1;
}

/* 最小化按钮 */
.yuanbao-minimize-btn {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 179, 0, 0.3);
    color: rgba(0, 0, 0, 0.7);
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.2);
    opacity: 0.7;
}

.yuanbao-minimize-btn:hover {
    background: rgba(255, 179, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: var(--tech-gold);
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.4);
    opacity: 1;
}

/* 消息区域 */
.yuanbao-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
    order: -1;
    position: relative;
    border-radius: 20px;
    min-height: 0;
}

/* 有消息时的消息区域 */
.yuanbao-ai-container.has-messages .yuanbao-messages {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* 快速到达底部按钮 */
.scroll-to-bottom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(0, 0, 0, 0.6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.scroll-to-bottom-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-bottom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.8);
}

/* 手机端快速到底部按钮样式 */
@media (max-width: 768px) {
    .scroll-to-bottom-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
        background: var(--tech-gold);
        color: #000;
        box-shadow: 0 3px 8px rgba(255, 179, 0, 0.4);
    }
    
    .scroll-to-bottom-btn:hover {
        background: var(--tech-gold-dark);
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 179, 0, 0.6);
        color: #000;
    }
}

/* 消息样式 */
.yuanbao-message {
    max-width: 80%;
    padding: 0;
    position: relative;
    word-wrap: break-word;
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.yuanbao-message > .yuanbao-message-content {
    padding: 8px 12px !important;
    border-radius: 18px !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
    border: 1px solid rgba(255, 179, 0, 0.3) !important;
    display: inline-block !important;
    max-width: 100% !important;
}

.yuanbao-message.user {
    align-self: flex-end;
}

.yuanbao-message.ai {
    align-self: flex-start;
}

.yuanbao-message.ai > .yuanbao-message-content {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom-left-radius: 4px !important;
    padding: 8px 12px !important;
    line-height: 1.4 !important;
    border: 1px solid rgba(255, 179, 0, 0.3) !important;
    display: inline-block !important;
    max-width: 100% !important;
}

/* 机器人转动动画 */
@keyframes robotRotate {
    0% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(10deg);
    }
    20% {
        transform: rotate(-10deg);
    }
    30% {
        transform: rotate(5deg);
    }
    40% {
        transform: rotate(-5deg);
    }
    50%, 100% {
        transform: rotate(0deg);
    }
}

/* 彩虹边框呼吸动画 */
@keyframes rainbowBorder {
    0% {
        background-position: 0% 0%, 0% 0%;
    }
    100% {
        background-position: 0% 0%, 100% 0%;
    }
}

/* 机器人图标 */
.yuanbao-message.ai::before {
    content: '';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: url('images/markov-intro.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #000;
    flex-shrink: 0;
    margin-top: -1px;
    box-shadow: 0 2px 6px rgba(255, 179, 0, 0.3);
    animation: robotRotate 3s ease-in-out infinite;
    animation-delay: 2s;
    border: 2px solid var(--tech-gold);
}

/* 用户头像 */
.yuanbao-message.user::before {
    content: '👤';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    margin-top: -1px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    order: 1;
}

/* 确保用户消息气泡样式正确应用 */
.yuanbao-message.user {
    align-self: flex-end !important;
}

/* 强制应用用户消息气泡样式 */
.yuanbao-ai-container .yuanbao-message.user > .yuanbao-message-content {
    padding: 8px 12px !important;
    border-radius: 18px !important;
    background: rgba(255, 179, 0, 0.6) !important;
    color: #000 !important;
    border-bottom-right-radius: 4px !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    line-height: 1.3 !important;
    border: 1px solid rgba(255, 179, 0, 0.4) !important;
    display: inline-block !important;
    max-width: 100% !important;
    box-shadow: 0 2px 4px rgba(255, 179, 0, 0.2) !important;
}

/* 确保用户消息内容p标签样式正确应用 */
.yuanbao-message.user > .yuanbao-message-content p {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

/* 确保用户消息时间样式正确应用 */
.yuanbao-message.user > .yuanbao-message-content .yuanbao-message-time {
    font-size: 9px !important;
    opacity: 0.7 !important;
    margin-top: 1px !important;
    text-align: right !important;
}

/* 消息时间 */
.yuanbao-message-time {
    font-size: 9px;
    opacity: 0.7;
    margin-top: 1px;
    text-align: right;
}

/* 消息内容p标签 */
.yuanbao-message-content p {
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.4;
}

/* 打字指示器 */
.yuanbao-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    border: 1px solid rgba(255, 179, 0, 0.3);
    display: inline-block;
}

.yuanbao-typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--tech-gold);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

/* 思考中文字样式 */
.yuanbao-typing-indicator span {
    margin-left: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    display: inline-block;
}

.yuanbao-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.yuanbao-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .yuanbao-ai-container {
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        border-radius: 15px 15px 0 0;
        min-height: 120px;
        max-height: 80vh;
    }
    
    .yuanbao-message {
        max-width: 90%;
    }
    
    .yuanbao-messages {
        max-height: 50vh;
    }
    
    .yuanbao-function-buttons {
        display: flex;
    }
    
    .yuanbao-shortcuts {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .shortcut-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .yuanbao-input-area {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .yuanbao-input-area-bottom {
        width: 100%;
        gap: 5px;
    }
    
    .yuanbao-input {
        font-size: 13px;
        min-height: 40px;
        padding: 10px 14px;
    }
    
    .yuanbao-input::placeholder {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .yuanbao-send-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

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

.yuanbao-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.yuanbao-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 179, 0, 0.5);
    border-radius: 3px;
}

.yuanbao-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 179, 0, 0.7);
}

/* 最小化状态 */
.yuanbao-ai-container.minimized {
    height: auto;
    min-height: 120px;
    overflow: hidden;
}

.yuanbao-ai-container.minimized .yuanbao-messages {
    display: none;
}

.yuanbao-ai-container.minimized .yuanbao-shortcuts {
    display: flex;
}

/* 最小化按钮 */
.yuanbao-minimize-btn {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 179, 0, 0.3);
    color: rgba(0, 0, 0, 0.7);
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    opacity: 0.7;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.2);
    font-weight: bold;
    display: none;
}

/* 只有当有消息时才显示最小化按钮 */
.yuanbao-ai-container.has-messages .yuanbao-minimize-btn {
    display: flex;
}

.yuanbao-minimize-btn:hover {
    background: rgba(255, 179, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: var(--tech-gold);
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.4);
    opacity: 1;
}

/* 手机端样式调整 */
@media (max-width: 768px) {
    .yuanbao-minimize-btn {
        top: 15px;
        font-size: 20px;
        width: 32px;
        height: 32px;
    }
    
    .yuanbao-minimize-btn:hover {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 2px 6px rgba(255, 179, 0, 0.2);
    }
}

/* 最小化状态下的样式调整 */
.yuanbao-ai-container.minimized .yuanbao-minimize-btn {
    top: 10px;
}

/* 确保功能导航不被内容滚动影响 */
.yuanbao-input-area {
    position: relative;
    z-index: 100;
}