175 lines
3.6 KiB
CSS
175 lines
3.6 KiB
CSS
/* Agent聊天区域样式 */
|
|
.agent-chat {
|
|
margin-top: 30px;
|
|
padding: 20px;
|
|
background: linear-gradient(145deg, #e6e6e6, #ffffff);
|
|
border-radius: 15px;
|
|
box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1), -10px -10px 20px rgba(255, 255, 255, 0.7);
|
|
width: 100%;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.agent-chat h3 {
|
|
margin-top: 0;
|
|
color: #333;
|
|
text-align: center;
|
|
}
|
|
|
|
/* LLM配置区域 */
|
|
.llm-config {
|
|
margin-bottom: 20px;
|
|
padding: 15px;
|
|
background: #f5f5f5;
|
|
border-radius: 10px;
|
|
box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.1), inset -3px -3px 6px rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.llm-config h4 {
|
|
margin: 0 0 10px 0;
|
|
color: #555;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.config-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.config-row:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.config-row label {
|
|
width: 70px;
|
|
color: #666;
|
|
font-size: 14px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.config-row input {
|
|
flex: 1;
|
|
padding: 8px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: #ffffff;
|
|
box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.1), inset -2px -2px 4px rgba(255, 255, 255, 0.7);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.config-row input:focus {
|
|
outline: none;
|
|
box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.15), inset -3px -3px 6px rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.btn-config {
|
|
background: linear-gradient(145deg, #2196F3, #1976D2);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1), -3px -3px 6px rgba(255, 255, 255, 0.7);
|
|
margin-left: 80px;
|
|
}
|
|
|
|
.btn-config:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.15), -5px -5px 10px rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
/* 聊天输入区域 */
|
|
.chat-input {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.chat-input input {
|
|
padding: 10px;
|
|
border: none;
|
|
border-radius: 10px;
|
|
background: #f5f5f5;
|
|
box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.1), inset -5px -5px 10px rgba(255, 255, 255, 0.7);
|
|
width: 250px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.chat-history {
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
background: #f5f5f5;
|
|
border-radius: 10px;
|
|
padding: 15px;
|
|
box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.1), inset -5px -5px 10px rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.message {
|
|
margin-bottom: 10px;
|
|
padding: 10px;
|
|
border-radius: 10px;
|
|
max-width: 80%;
|
|
}
|
|
|
|
.message.user {
|
|
background: linear-gradient(145deg, #E3F2FD, #BBDEFB);
|
|
margin-left: auto;
|
|
box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1), -3px -3px 6px rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.message.agent {
|
|
background: linear-gradient(145deg, #E8F5E8, #C8E6C9);
|
|
margin-right: auto;
|
|
box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1), -3px -3px 6px rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.message p {
|
|
margin: 0;
|
|
color: #333;
|
|
}
|
|
|
|
/* 响应式设计 - Agent聊天 */
|
|
@media (max-width: 650px) {
|
|
.chat-input {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.chat-input input {
|
|
width: 100%;
|
|
max-width: 300px;
|
|
}
|
|
|
|
.agent-chat {
|
|
padding: 15px;
|
|
}
|
|
|
|
.message {
|
|
max-width: 90%;
|
|
}
|
|
|
|
.config-row {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.config-row label {
|
|
width: auto;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.config-row input {
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-config {
|
|
margin-left: 0;
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
}
|
|
} |