/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #ea580c; /* 默认主题色 */
    --bot-message-bg: #f0f4f8;
    --input-border-focus: #ea580c;
}

body {
    /* background-color: var(--primary-color); */
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden; /* 防止页面出现双重滚动条 */
}

/* 顶部头部区域 */
.top-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    position: relative;
    z-index: 100;
    /* 明确设置头部高度 */
    height: 70px;
}

.header-content {
    display: flex;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    justify-content: flex-start; /* 左对齐logo */
    padding-left: 60px; /* 为侧边栏切换按钮留出空间 */
}

.header-logo {
    height: 40px;
    width: auto;
}

/* 应用容器 */
.app-container {
    display: flex;
    height: calc(100vh - 70px); /* 减去头部高度 */
    width: 100vw;
    margin: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: none;
    overflow: hidden; /* 确保容器不会溢出 */
    position: relative;
    /* 确保子元素能够正确布局 */
    flex-direction: row;
    /* 确保容器能够正确填充空间 */
    align-items: stretch;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    background: white;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    margin-left: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.sidebar.collapsed {
    width: 0;
    overflow: hidden;
    border-right: none;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.new-chat-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* 图标和文字之间的间距 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.new-chat-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.new-chat-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.new-chat-btn img {
    width: 16px;
    height: 16px;
    flex-shrink: 0; /* 防止图标被压缩 */
}

.sidebar.collapsed .new-chat-btn {
    display: none;
}

/* 对话列表分组标题 */
.conversation-group-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    padding: 10px 12px 5px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conversation-group {
    margin-bottom: 10px;
}

.conversation-group:last-child {
    margin-bottom: 0;
}

.conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
    min-height: 0;
    height: auto;
    max-height: 100%;
}

/* 对话列表滚动条样式 */
.conversation-list::-webkit-scrollbar {
    width: 8px;
}

.conversation-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.conversation-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.conversation-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.sidebar.collapsed .conversation-list {
    display: none;
}

.conversation-item {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: none;
    flex-shrink: 0;
}

.conversation-item:hover {
    background: #e9ecef;
}

.conversation-item.active {
    background: color-mix(in srgb, var(--primary-color) 15%, white);
    border: none;
}

.conversation-item.active .conversation-title {
    color: var(--primary-color);
}

.conversation-item.active .close-conversation {
    color: var(--primary-color);
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-title {
    font-weight: 500;
    color: #333;
    flex: 1;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.close-conversation {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    padding: 2px;
    opacity: 0; /* 默认隐藏 */
}

.conversation-item:hover .close-conversation {
    opacity: 1; /* 悬停时显示 */
}

.close-conversation:hover {
    background: #ffdddd;
    color: #ff6b6b;
}

/* 聊天容器 */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    /* 确保子元素能够正确布局 */
    align-items: stretch;
    /* 确保容器能够正确填充可用空间 */
    min-height: 0;
}

/* 消息区域 */
/* 移除了 .chat-messages 的样式，因为现在是动态创建的 */

/* 滚动条样式 */
/* 移除了 .chat-messages 的滚动条样式，因为现在是动态创建的 */

/* 消息气泡通用样式 */
.message {
    display: flex;
    gap: 15px;
    max-width: 80%;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 用户消息 */
.user-message {
    align-self: flex-end;
    position: relative; /* 为编辑图标定位 */
}

.user-message .avatar {
    order: 2;
    background-color: var(--primary-color);
    color: white;
}

.user-message .message-content {
    background-color: var(--primary-color);
    color: white;
    border-radius: 18px 4px 18px 18px;
}

/* AI消息 */
.bot-message {
    align-self: flex-start;
}

.bot-message .avatar {
    background-color: var(--primary-color);
    color: white;
}

.bot-message .message-content {
    background: white; /* 改为白色背景 */
    color: #333;
    border-radius: 4px 18px 18px 18px;
    border: 1px solid #eee;
}

/* 头像样式 */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.message:hover .avatar {
    transform: scale(1.1);
}

/* 消息内容 */
/* .message-content {
    padding: 15px 20px;
    position: relative;
    transition: transform 0.2s ease;
} */

.message-content:hover {
    transform: translateY(-1px);
}

.message-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 16px;
}

/* 优化消息内容中的换行和间距 */
.message-content br {
    line-height: 1.2;
}

.message-content p + p {
    margin-top: 8px; /* 减少段落间的间距 */
}

.message-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 16px;
}

/* 减少消息内容的整体内边距 */
.message-content {
    padding: 12px 15px; /* 减少内边距 */
    line-height: 1.4; /* 调整行高 */
}

/* 优化代码块显示 */
.message-content pre {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 12px;
    overflow-x: auto;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.4;
    position: relative; /* 为复制按钮定位 */
}

.message-content code {
    font-family: 'Consolas', 'Courier New', monospace;
    background: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 14px;
}

.message-content pre code {
    background: none;
    padding: 0;
}

/* 代码块复制按钮 */
.copy-code-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.copy-code-btn:hover {
    background: var(--primary-color); /* 使用主题色 */
    color: white;
    border-color: var(--primary-color); /* 使用主题色 */
}

.copy-code-btn.copied {
    background: var(--primary-color); /* 使用主题色 */
    color: white;
    border-color: var(--primary-color); /* 使用主题色 */
}

/* 优化链接显示 */
.message-content a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px dashed #0066cc;
}

.message-content a:hover {
    color: #004499;
    border-bottom: 1px solid #004499;
}

.timestamp {
    display: none; /* 隐藏时间戳显示 */
    font-size: 0.7rem;
    margin-top: 8px;
    opacity: 0.7;
    text-align: right;
}

/* 正在输入指示器 */
.typing-dots {
    display: flex;
    align-items: center;
    height: 20px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* 输入区域 */
.chat-input-area {
    padding: 20px;
    background: white;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    /* 修复输入区域超出页面的问题 */
    max-height: 300px; /* 限制最大高度 */
    display: flex;
    flex-direction: column;
    /* 使用margin-top: auto将输入区域推到底部 */
    margin-top: auto;
    /* 确保输入区域始终可见 */
    z-index: 10;
}

/* 输入框包装器 */
.input-wrapper {
    border: 1px solid #e1e5eb;
    border-radius: 18px;
    background: white;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-height: 260px; /* 减去padding后的可用空间 */
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

/* 输入容器 */
.input-container {
    margin-bottom: 15px;
}

#userInput {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 15px 15px 0 0;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    resize: none;
    min-height: 44px;
    max-height: 100px; /* 限制文本区域最大高度 */
    background: transparent;
    box-sizing: border-box;
}

#userInput:focus {
    box-shadow: none;
}

/* 输入框底部区域 */
.input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    border-radius: 0 0 18px 18px;
    flex-shrink: 0;
    max-height: 60px; /* 限制底部区域的最大高度 */
}

/* 发送按钮 */
.image-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f4f8;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
}

.image-button:hover {
    background: color-mix(in srgb, var(--primary-color) 20%, white);
    transform: scale(1.05);
}

.image-button:active {
    transform: scale(0.95);
}

.send-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(75, 108, 183, 0.3);
    color: white;
}

.send-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(75, 108, 183, 0.4);
}

.send-button:active {
    transform: scale(0.95);
}

.send-button svg {
    width: 18px;
    height: 18px;
}

/* 版权信息 */
.copyright-info {
    text-align: center;
    padding: 10px 0 5px 0;
    font-size: 0.8rem;
    color: #999;
    margin-top: auto; /* 将版权信息推到底部 */
}

.copyright-info p {
    margin: 0;
}

/* 隐藏旧的输入选项 */
.input-options {
    display: none;
}

/* 自定义下拉选择组件 */
.custom-select {
    position: relative;
    min-width: 120px;
    height: 36px;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.select-trigger:hover {
    background: color-mix(in srgb, var(--primary-color) 10%, white);
}

.custom-select:focus-within .select-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.select-text {
    font-size: 0.85rem;
    color: #333;
    margin-right: 8px;
}

.select-arrow {
    transition: transform 0.3s ease;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
    display: none;
}

.custom-select.dropup .select-dropdown {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 5px;
}

.custom-select.open .select-dropdown {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.custom-select.dropup.open .select-dropdown {
    animation: fadeInUp 0.3s ease;
}

.select-option {
    padding: 10px 15px;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-option:hover {
    background: color-mix(in srgb, var(--primary-color) 10%, white);
}

.select-option.selected {
    background: color-mix(in srgb, var(--primary-color) 20%, white);
    color: var(--primary-color);
    font-weight: 500;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 输入框指示器区域 */
.input-indicators {
    padding: 0 15px 8px 15px;
}

.image-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: color-mix(in srgb, var(--primary-color) 20%, white);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.remove-image {
    cursor: pointer;
    font-weight: bold;
    color: #ff6b6b;
}

.remove-image:hover {
    color: #ff5252;
}

/* 图片按钮和发送按钮容器 */
.input-footer .button-group {
    display: flex;
    align-items: center;
}

/* 模型选择框选中状态 */
.model-selected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: color-mix(in srgb, var(--primary-color) 20%, white);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* 输入框上方工具区域 */
.input-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* 建议按钮 */
.suggestions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.suggestion-btn {
    background: #f0f4f8;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.suggestion-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.suggestion-btn:active {
    transform: translateY(0);
}

.suggestion-btn.clicked {
    transform: scale(0.95);
    background: var(--primary-color);
    color: white;
}

/* 工具按钮 */
.tools {
    display: flex;
    gap: 10px;
}

.tool-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tool-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tool-btn:active {
    transform: translateY(0);
}

/* 图片预览模态框 */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: #000;
    padding: 20px;
    border: none;
    border-radius: 8px;
    width: 90vw;
    height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: #ccc;
}

#previewImage {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    cursor: grab;
    transition: transform 0.2s ease;
    transform-origin: center center;
    transform: scale(1);
}

#previewImage:hover {
    cursor: grab;
}

#previewImage:active {
    cursor: grabbing;
}

/* 响应式设计 - 移动端适配 */
@media screen and (max-width: 768px) {
    .app-container {
        height: 100vh; /* 移动端不需要减去头部高度 */
        /* 确保在移动端也有正确的布局 */
        flex-direction: column;
        /* 确保容器能够正确填充屏幕 */
        align-items: stretch;
    }
    
    /* 在移动端隐藏整个头部 */
    .top-header {
        display: none;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0; /* 移动端顶部对齐 */
        height: 100vh; /* 移动端全高 */
        z-index: 100;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: 280px;
        transform: translateX(-100%);
    }
    
    .chat-input-area {
        padding: 15px;
        max-height: 250px; /* 移动端限制最大高度 */
        /* 使用margin-top: auto将输入区域推到底部 */
        margin-top: auto;
        /* 确保输入区域始终可见 */
        z-index: 10;
    }
    
    .input-wrapper {
        max-height: 200px; /* 移动端限制最大高度 */
    }
    
    .header-content {
        padding-left: 20px; /* 移动端调整logo位置 */
    }
    
    /* 在移动端隐藏头部logo */
    .header-logo {
        display: none;
    }
    
    /* 在移动端隐藏移动端对话列表按钮 */
    .mobile-conversation-btn {
        display: none !important;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* 超小屏幕设备适配 */
@media screen and (max-width: 480px) {
    /* 在超小屏幕上也隐藏整个头部 */
    .top-header {
        display: none;
    }
    
    .header-content {
        padding-left: 10px;
    }
    
    /* 在超小屏幕上也隐藏头部logo */
    .header-logo {
        display: none;
    }
    
    /* 在超小屏幕上也隐藏移动端对话列表按钮 */
    .mobile-conversation-btn {
        display: none !important;
    }
    
    .chat-input-area {
        padding: 10px;
        max-height: 220px; /* 超小屏幕进一步限制最大高度 */
        /* 使用margin-top: auto将输入区域推到底部 */
        margin-top: auto;
        /* 确保输入区域始终可见 */
        z-index: 10;
    }
    
    .input-wrapper {
        max-height: 180px; /* 超小屏幕进一步限制最大高度 */
    }
    
    .chat-messages {
        padding: 10px;
    }
    
    .message-content {
        padding: 12px 15px;
    }
    
    .message-content p {
        font-size: 14px;
    }
}

/* 侧边栏收缩/展开按钮 */
.toggle-sidebar {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 4px 4px 0;
    width: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.toggle-sidebar:hover {
    background: #f0f0f0;
}

.sidebar.collapsed .toggle-sidebar {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.sidebar:not(.collapsed) .toggle-sidebar {
    left: 280px;
    border-radius: 0 4px 4px 0;
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .app-container {
        max-width: 100vw;
        /* 确保在大屏幕上也有正确的布局 */
        flex-direction: row;
    }
    
    .chat-container {
        height: calc(100vh - 70px); /* 与.app-container保持一致 */
    }
    
    .message {
        max-width: 75%;
    }
}

/* 移动端对话列表按钮 */
.mobile-conversation-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-conversation-btn:hover {
    transform: scale(1.1);
}

.mobile-conversation-btn img {
    width: 20px;
    height: 20px;
}

/* 在移动端隐藏侧边栏切换按钮 */
@media (max-width: 768px) {
    .toggle-sidebar {
        display: none;
    }
}

@media (max-width: 480px) {
    .toggle-sidebar {
        display: none;
    }
}

/* 来源信息样式 */
.sources-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.sources-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.sources-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.source-item {
    margin-bottom: 8px;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.source-title {
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

.source-source {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.source-similarity {
    font-size: 11px;
    color: #007acc;
    margin-top: 3px;
    font-weight: 500;
}