/**
 * 教务系统RAGFlow智能助手样式文件
 * 提供完整的UI样式和主题支持 (已整合输入区优化)
 * * @author RAGFlow智能助手模块 & Gemini
 * @version 2.0
 * @since 2025-08-05
 */

/* ==================== 基础样式重置 ==================== */
.ia-floating-button *,
.ia-chat-window *,
.ia-history-modal *,
.ia-settings-modal * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==================== 悬浮按钮样式 ==================== */
.ia-floating-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.ia-floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.ia-floating-button svg {
    transition: transform 0.3s ease;
}

.ia-floating-button:hover svg {
    transform: scale(1.1);
}

/* 通知徽章 */
.ia-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: ia-pulse 2s infinite;
}

@keyframes ia-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ==================== 聊天窗口样式 ==================== */
.ia-chat-window {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    animation: ia-slideIn 0.3s ease-out;
}

@keyframes ia-slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 拖拽文件覆盖提示 */
.ia-chat-window.ia-drag-over::after {
    content: '松开即可上传文件';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px dashed #fff;
    box-sizing: border-box;
    z-index: 10;
    pointer-events: none;
}


/* ==================== 聊天头部样式 ==================== */
.ia-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.ia-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ia-header-left h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.ia-status-indicator {
    font-size: 12px;
    color: #4CAF50;
    animation: ia-blink 2s infinite;
}

@keyframes ia-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.ia-header-actions {
    display: flex;
    gap: 8px;
}

.ia-header-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ia-close-btn {
    font-size: 20px;
}

/* ==================== 聊天主体样式 ==================== */
.ia-chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ia-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

.ia-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.ia-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ia-chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.ia-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ==================== 欢迎消息样式 ==================== */
.ia-welcome-message {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    animation: ia-fadeIn 0.5s ease-out;
}

@keyframes ia-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ia-welcome-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.ia-welcome-text h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ia-welcome-text p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.ia-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ia-quick-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ia-quick-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* ==================== 消息样式 ==================== */
.ia-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    animation: ia-messageSlide 0.3s ease-out;
}

@keyframes ia-messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ia-message-user {
    align-items: flex-end;
}

.ia-message-assistant {
    align-items: flex-start;
}

.ia-message-bubble {
    position: relative;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 14px;
}

.ia-message-user .ia-message-bubble {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-bottom-right-radius: 6px;
}

.ia-message-assistant .ia-message-bubble {
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ia-message-error .ia-message-bubble {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.ia-message-streaming .ia-message-bubble {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
}

.ia-message-streaming .ia-message-content::after {
    content: '▋';
    color: #007bff;
    animation: ia-cursor 1s infinite;
}

@keyframes ia-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.ia-message-time {
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
    padding: 0 8px;
}

.ia-message-delete,
.ia-message-regenerate {
    position: absolute;
    top: -8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-message-regenerate {
    background: #28a745;
    right: -8px;
}

.ia-message-delete {
    right: -8px;
}

.ia-message:hover .ia-message-delete,
.ia-message:hover .ia-message-regenerate {
    opacity: 1;
}

/* ==================== 附件样式 ==================== */
.ia-attachment {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 12px;
}

.ia-attachment-icon {
    font-size: 16px;
}

.ia-attachment-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.ia-attachment-size {
    color: #666;
}

.ia-download-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.ia-download-link:hover {
    text-decoration: underline;
}

/* ==================== 输入指示器样式 ==================== */
.ia-typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.ia-typing-dots {
    display: flex;
    gap: 4px;
}

.ia-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #007bff;
    animation: ia-typing 1.4s infinite ease-in-out;
}

.ia-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.ia-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.ia-typing-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes ia-typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.ia-typing-text {
    font-size: 12px;
    color: #666;
}

/* ==================== 输入区域样式 ==================== */
.ia-chat-input-area {
    border-top: 1px solid #e9ecef;
    padding: 15px;
    background: white;
    border-radius: 0 0 12px 12px;
}

.ia-file-upload-area {
    background: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.ia-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ia-file-icon {
    font-size: 16px;
}

.ia-file-name {
    font-weight: 500;
    color: #333;
}

.ia-file-size {
    color: #666;
}

.ia-remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.ia-remove-file:hover {
    background: rgba(220, 53, 69, 0.1);
}

.ia-input-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.ia-message-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    max-height: 100px;
    min-height: 40px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    outline: none;
}

.ia-message-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.ia-message-input:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.ia-input-actions {
    display: flex;
    gap: 4px;
}

.ia-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.ia-attach-btn,
.ia-emoji-btn {
    background: #f8f9fa;
    color: #6c757d;
}

.ia-attach-btn:hover,
.ia-emoji-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.ia-send-btn {
    background: #007bff;
    color: white;
}

.ia-send-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: scale(1.05);
}

.ia-action-btn:disabled {
    background-color: #d5d5d5 !important;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.ia-loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: ia-spin 1s linear infinite;
}

@keyframes ia-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ==================== 表情选择器样式 ==================== */
.ia-emoji-picker {
    position: absolute;
    bottom: 50px;
    right: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.ia-emoji-item {
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    transition: background-color 0.2s ease;
}

.ia-emoji-item:hover {
    background: #f8f9fa;
}

/* ==================== 模态框样式 ==================== */
.ia-history-modal,
.ia-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: ia-modalFadeIn 0.2s ease-out;
}

@keyframes ia-modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ia-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: ia-modalSlideIn 0.3s ease-out;
}

@keyframes ia-modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ia-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ia-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.ia-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.ia-modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.ia-modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.ia-modal-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ==================== 会话列表样式 ==================== */
.ia-session-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ia-session-item {
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ia-session-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.ia-session-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.ia-session-time {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.ia-session-count {
    font-size: 11px;
    color: #007bff;
}

/* ==================== 设置样式 ==================== */
.ia-setting-item {
    margin-bottom: 15px;
}

.ia-setting-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.ia-setting-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.ia-theme-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 10px;
}

/* ==================== 按钮样式 ==================== */
.ia-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ia-btn-primary {
    background: #007bff;
    color: white;
}

.ia-btn-primary:hover {
    background: #0056b3;
}

.ia-btn:not(.ia-btn-primary) {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.ia-btn:not(.ia-btn-primary):hover {
    background: #e9ecef;
}

/* ==================== 提示消息样式 ==================== */
.ia-error-toast,
.ia-success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: ia-toastSlide 0.3s ease-out;
}

@keyframes ia-toastSlide {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ia-error-toast {
    background: #dc3545;
}

.ia-success-toast {
    background: #28a745;
}

/* ==================== 主题样式 ==================== */
/* 深色主题 */
.ia-theme-dark.ia-floating-button {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.ia-theme-dark.ia-chat-window {
    background: #2c3e50;
    color: #ecf0f1;
}

.ia-theme-dark .ia-chat-header {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

.ia-theme-dark .ia-chat-messages {
    background: #34495e;
}

.ia-theme-dark .ia-message-assistant .ia-message-bubble {
    background: #3a4a5c;
    border-color: #4a5a6c;
    color: #ecf0f1;
}

.ia-theme-dark .ia-chat-input-area {
    background: #2c3e50;
    border-color: #4a5a6c;
}

.ia-theme-dark .ia-message-input {
    background: #3a4a5c;
    border-color: #4a5a6c;
    color: #ecf0f1;
}

.ia-theme-dark .ia-message-input::placeholder {
    color: #95a5a6;
}

/* 蓝色主题 */
.ia-theme-blue.ia-floating-button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.ia-theme-blue .ia-chat-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.ia-theme-blue .ia-message-user .ia-message-bubble {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.ia-theme-blue .ia-send-btn {
    background: #3498db;
}

.ia-theme-blue .ia-send-btn:hover {
    background: #2980b9;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .ia-floating-button {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
    }

    .ia-chat-window {
        right: 10px;
        bottom: 80px;
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        border-radius: 8px;
    }

    .ia-chat-header {
        padding: 12px 15px;
        border-radius: 8px 8px 0 0;
    }

    .ia-chat-header h3 {
        font-size: 14px;
    }

    .ia-header-btn {
        font-size: 14px;
        width: 28px;
        height: 28px;
    }

    .ia-chat-messages {
        padding: 12px;
    }

    .ia-welcome-message {
        padding: 15px;
    }

    .ia-welcome-icon {
        font-size: 24px;
    }

    .ia-welcome-text h4 {
        font-size: 14px;
    }

    .ia-welcome-text p {
        font-size: 13px;
    }

    .ia-quick-btn {
        font-size: 11px;
        padding: 4px 8px;
    }

    .ia-message-bubble {
        font-size: 13px;
        padding: 10px 14px;
        max-width: 85%;
    }

    .ia-chat-input-area {
        padding: 12px;
    }

    .ia-input-container {
        gap: 6px;
    }

    .ia-action-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .ia-message-input {
        font-size: 14px;
        padding: 8px 12px;
    }

    .ia-modal-content {
        width: 95%;
        margin: 10px;
    }

    .ia-modal-header,
    .ia-modal-body,
    .ia-modal-footer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .ia-floating-button {
        width: 45px;
        height: 45px;
    }

    .ia-chat-window {
        right: 5px;
        bottom: 65px;
        width: calc(100vw - 10px);
        height: calc(100vh - 80px);
    }

    .ia-welcome-message {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .ia-quick-actions {
        justify-content: center;
    }

    .ia-message-bubble {
        max-width: 90%;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .ia-floating-button,
    .ia-chat-window,
    .ia-history-modal,
    .ia-settings-modal {
        display: none !important;
    }
}

/* ==================== 高对比度模式 ==================== */
@media (prefers-contrast: high) {
    .ia-floating-button {
        border: 2px solid #000;
    }

    .ia-chat-window {
        border: 2px solid #000;
    }

    .ia-message-bubble {
        border-width: 2px;
    }
}

/* ==================== 减少动画模式 ==================== */
@media (prefers-reduced-motion: reduce) {
    .ia-floating-button,
    .ia-chat-window,
    .ia-message,
    .ia-modal-content {
        animation: none;
    }

    .ia-floating-button:hover {
        transform: none;
    }

    .ia-send-btn:hover {
        transform: none;
    }

    .ia-notification-badge {
        animation: none;
    }

    .ia-typing-dots span {
        animation: none;
    }

    .ia-status-indicator {
        animation: none;
    }
}

/* 思考过程折叠样式 */
.ia-think-details {
    background-color: #f7f7f8; /* 浅灰色背景 */
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.ia-think-summary {
    cursor: pointer;
    padding: 6px 10px;
    color: #555;
    font-weight: bold;
    outline: none; /* 移除点击时的轮廓 */
}

/* 展开箭头的美化 */
.ia-think-summary::-webkit-details-marker {
    color: #555;
}

.ia-think-content {
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    white-space: pre-wrap; /* 保持换行和空格 */
    word-break: break-all;
}

/* 当存在思考过程时，为主要回复内容添加一点上边距 */
.ia-speak-content {
    margin-top: 5px;
}

/* ==================== 会话列表样式 (优化) ==================== */
.ia-session-item {
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex; /* 改为flex布局 */
    justify-content: space-between; /* 两端对齐 */
    align-items: center; /* 垂直居中 */
}

.ia-session-info {
    cursor: pointer;
    flex-grow: 1; /* 让信息区域占据大部分空间 */
}

.ia-session-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

/* --- 新增：会话删除按钮样式 --- */
.ia-session-delete-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0; /* 默认隐藏 */
    transition: opacity 0.2s ease;
    padding: 0 10px;
    border-radius: 50%;
}

.ia-session-item:hover .ia-session-delete-btn {
    opacity: 0.6; /* 悬停时显示 */
}

.ia-session-delete-btn:hover {
    opacity: 1;
    background-color: rgba(220, 53, 69, 0.1);
}