


/* ======================
   1. 全局样式
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ================= 新增CSS变量 ================= */
:root {
  --qwen-color: #e8f5e9;     /* 浅绿色 */
  --qwen-border: #c8e6c9;    
  --deepseek-color: #e3f2fd; /* 浅蓝色 */
  --deepseek-border: #bbdefb;
  --llama-color: #ffebee;    /* 浅红色 */
  --llama-border: #ffcdd2;
  --local-color: #f3e5f5;    /* 新增浅紫色 */
  --local-border: #e1bee7;   
  
  /* 标题色 */
  --model-title-qwen: #2e7d32;
  --model-title-deepseek: #1565c0;
  --model-title-llama: #c62828;
  --model-title-local: #6a1b9a; /* 新增深紫色 */

  --opengvlab-color: #fff3e0;     /* 浅橙色 */
  --opengvlab-border: #ffe0b2;    /* 浅橙色边框 */
  --model-title-opengvlab: #ef6c00; /* 深橙色标题 */
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    line-height: 1.5;
    text-size-adjust: 100%;
}

body {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, 
                Ubuntu, Cantarell, sans-serif;
    background: #f0f0f0;
    color: #333;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ======================
   2. 工具标题区
======================= */
.tool-header {
    background: #2c3e50;
    padding: 12px 20px;
    border-radius: 12px;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    backdrop-filter: blur(5px);
    z-index: 1001;
}

/* ======================
   3. 聊天容器
======================= */
.chat-container {
    /* 初始定义 */
    background: transparent;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    margin: 0;
    bottom: 0;
    
    /* 后续覆盖样式 */
    width: 768px;
    position: static;
    top: 130px;
    left: 872px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.4) !important;
    
    /* 新增工作流相关样式 */
    border: 3px solid rgba(25, 25, 25, 1);
    -webkit-backdrop-filter: none !important;
}

/* ======================
   合并后的聊天历史容器样式
   （最终生效属性以最后定义为准）
======================= */
#chat-history {
    /* 基础样式 */
    height: calc(100vh - 240px);
    min-height: 300px;
    padding: 2px 2px;
    overflow-y: auto;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.8) 0%, 
        rgba(245,245,245,0.6) 100%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    
    /* 后续覆盖样式 */
    padding: 1px 1px;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    padding-bottom: 90px; /* 防止输入区域遮挡 */
    
    /* 工作流相关调整 */
    max-height: calc(100vh - 200px);
    scroll-behavior: smooth;

}

/* 滚动条样式 */
#chat-history::-webkit-scrollbar {
    width: 6px;
    background-color: transparent;
}

#chat-history::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    transition: background 0.3s;
    background-color: transparent;
}

#chat-history::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    #chat-history {
        padding: 1px 1px;
        border: none !important;
        box-shadow: none !important;
        height: calc(100vh - 200px);
        scrollbar-width: none;
    }
    
    #chat-history::-webkit-scrollbar {
        display: none;
    }
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
    #chat-history {
        background: rgba(32, 33, 35, 0.9) !important;
        scrollbar-color: rgba(255,255,255,0.1) transparent;
    }
    
    #chat-history::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
    }
}




/*  移动端优化*/
/* 修改后的 global.css */
/* ====================== 1. 全局样式 ======================= */

/* 新增PC端专属优化 */
@media (min-width: 769px) {
    .tool-header {
        margin: 20px 0;
        transition: transform 0.3s;
    }
    
    .tool-header:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }
    
    #chat-history {
        padding: 15px;
        background: linear-gradient(to bottom, 
            rgba(255,255,255,0.95) 0%, 
            rgba(245,245,245,0.9) 100%);
    }
}

/* 移动端保持原有响应式样式 */
@media (max-width: 768px) {
    body {
        max-width: 100%;
        margin: 0;
        padding: 10px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .chat-container {
        width: 100%;
        border: none !important;
        box-shadow: none !important;
        max-height: none;
    }
}



