/*    .chat-container {
      max-width: 800px;
      margin: 0 auto;
      padding: 20px;
    }*/
/*    .message {
      padding: 20px;
      border-bottom: 1px solid var(--border-color);
      position: relative;
    }*/
/*    .user { background-color: var(--user-msg); }
    .assistant { background-color: var(--bot-msg); }
*/    
    .typing-cursor {
      display: inline-block;
      width: 10px;
      height: 1em;
      background-color: black;
      animation: blink 1s infinite;
      margin-left: 2px;
      vertical-align: middle;
    }
    @keyframes blink {
      50% { opacity: 0; }
    }


.markdown-content { padding: 10px 0; }


.segment-container {
      margin: 12px 0;
    }
    img { max-width: 100%; border-radius: 5px; }



.markdown-content > * {
    margin: 0; /* 清除默认margin */
}
.markdown-content > * + * {
    margin-top: 10px;
}

.markdown-content li {
    list-style-type: none;
}

/*Code Template*/
.code-container {
    width: 100%;   
}

.code-header {
    background-color: #f0f0f0;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border: none;
}

.code-block {
      background: white;
      border-radius: 5px;
      padding: 15px;
      border: 1px solid #e0e0e0;
/*      margin: 15px 0;
*/     
      overflow-x: auto;
}

.copy-button {
  border: none;
}


/*toolbar*/

        .agent-chat-conv-ai-toolbar {
            display: flex;
            justify-content: flex-start;
            margin-top: 20px;
        }
        
        .agent-chat-toolbar {
            display: flex;
            background-color: white;
            border-radius: 30px;
            padding: 8px;
/*            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            border: 1px solid #e0e0e0;*/
        }
        
        .agent-chat-toolbar-item {
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            margin: 0 5px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .agent-chat-toolbar-item:hover {
            background-color: #f5f7fa;
            transform: translateY(-3px);
        }
        
        .agent-chat-toolbar-item:active {
            transform: translateY(1px);
        }
        
        .agent-chat-toolbar-item svg {
            width: 22px;
            height: 22px;
            transition: all 0.2s ease;
        }
        
        .agent-chat-toolbar-copy:hover svg {
            stroke: #3498db;
        }
        
        .agent-chat-toolbar-like:hover svg {
            stroke: #2ecc71;
        }
        
        .agent-chat-toolbar-dislike:hover svg {
            stroke: #e74c3c;
        }
        
        .agent-chat-toolbar-share:hover svg {
            stroke: #9b59b6;
        }
        
        .tooltip {
            position: absolute;
            top: -35px;
            background-color: #2c3e50;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 0.85rem;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
            pointer-events: none;
            white-space: nowrap;
        }
        
        .tooltip::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 5px;
            border-style: solid;
            border-color: #2c3e50 transparent transparent transparent;
        }
        
        .agent-chat-toolbar-item:hover .tooltip {
            opacity: 1;
            transform: translateY(0);
        }
        

.response_url {
    color: #666;
    transition: all 0.3s ease;
}
        
/* 悬停效果 */
.response_url:hover {
    color: #333; 
    text-decoration: underline;
}
        
.response_url:active {
    color: #000; 
    transform: translateY(1px);
}
        
.response_url:visited {
    color: #888;
}



/*response href styles*/
.segment-container  a[href] {
  /* 基础样式 */
  color: #666;           
  text-decoration: none; 
  
/*  // background-image: url('path/to/your-icon.svg'); 
*/  
/*  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M10 6L8 6v12h2V6zm6 0h-2v12h2V6z"/></svg>');
*/  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 20px; 
  
  /* 交互效果增强 */
  transition: color 0.3s ease;
}

/* 鼠标悬停效果 */
.segment-container  a[href]:hover {
  color: #333;          /* 悬停时加深文字颜色 */
  text-decoration: none; 
}




