feat: 集成Hermes智能体系统,增强聊天和差旅报销功能

This commit is contained in:
caoxiaozhu
2026-05-16 06:14:08 +00:00
parent 763afa0ee2
commit 212c935308
46 changed files with 8802 additions and 5372 deletions

View File

@@ -37,10 +37,26 @@
.answer-card footer button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #64748b; }
.answer-card footer button:hover { background: #f1f5f9; color: #0f9f78; }
.agent-answer { margin: 0; padding: 12px 16px; font-size: 14px; line-height: 1.65; }
.agent-answer-content { max-width: 760px; display: grid; gap: 10px; }
.agent-answer-table-wrap { overflow-x: auto; border: 1px solid #dce5ef; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); }
.agent-answer-table { width: 100%; min-width: 360px; border-collapse: collapse; font-size: 13px; }
.agent-answer-table th, .agent-answer-table td { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.agent-answer-table th { background: #eef7f2; color: #0f172a; font-weight: 800; }
.agent-answer-table td { color: #334155; font-weight: 650; }
.agent-answer-table tbody tr:last-child td { border-bottom: 0; }
.agent-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; max-width: 760px; }
.agent-meta-chip { min-height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: #eef7f2; color: #0f766e; font-size: 12px; font-weight: 760; }
.agent-detail-block { max-width: 760px; margin-top: 10px; display: grid; gap: 8px; }
.agent-detail-block > strong { color: #0f172a; font-size: 12px; font-weight: 820; }
.agent-citation-disclosure { overflow: hidden; border: 1px solid #dce5ef; border-radius: 10px; background: #fff; }
.agent-citation-disclosure summary { min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #0f172a; cursor: pointer; list-style: none; }
.agent-citation-disclosure summary::-webkit-details-marker { display: none; }
.agent-citation-disclosure summary strong { font-size: 12px; font-weight: 820; }
.agent-citation-disclosure summary span { color: #64748b; font-size: 12px; font-weight: 720; }
.agent-citation-disclosure summary i { margin-left: auto; color: #64748b; transition: transform .18s ease; }
.agent-citation-disclosure[open] summary { border-bottom: 1px solid #eef2f7; }
.agent-citation-disclosure[open] summary i { transform: rotate(180deg); }
.agent-citation-disclosure .agent-citation-list { padding: 10px; }
.agent-detail-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-risk-chip, .agent-action-chip { min-height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 760; }
.agent-risk-chip { background: #fff1f2; color: #be123c; }

View File

@@ -379,6 +379,52 @@
font-size: 14px;
}
.message-answer-content {
display: grid;
gap: 12px;
}
.message-answer-content p {
margin: 0;
}
.message-answer-table-wrap {
overflow-x: auto;
border: 1px solid #dbe4ee;
border-radius: 16px;
background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.message-answer-table {
width: 100%;
min-width: 360px;
border-collapse: collapse;
overflow: hidden;
font-size: 13px;
}
.message-answer-table th,
.message-answer-table td {
padding: 10px 12px;
border-bottom: 1px solid #e2e8f0;
text-align: left;
}
.message-answer-table th {
background: #eff6ff;
color: #0f172a;
font-weight: 850;
}
.message-answer-table td {
color: #334155;
font-weight: 650;
}
.message-answer-table tbody tr:last-child td {
border-bottom: 0;
}
.message-meta-row {
display: flex;
flex-wrap: wrap;
@@ -429,6 +475,58 @@
font-weight: 850;
}
.message-citation-disclosure {
overflow: hidden;
border: 1px solid #dbe4ee;
border-radius: 16px;
background: #fbfdff;
}
.message-citation-disclosure summary {
min-height: 42px;
display: flex;
align-items: center;
gap: 8px;
padding: 0 14px;
color: #0f172a;
cursor: pointer;
list-style: none;
}
.message-citation-disclosure summary::-webkit-details-marker {
display: none;
}
.message-citation-disclosure summary strong {
font-size: 12px;
font-weight: 850;
}
.message-citation-disclosure summary span {
color: #64748b;
font-size: 12px;
font-weight: 750;
}
.message-citation-disclosure summary i {
margin-left: auto;
color: #64748b;
font-size: 16px;
transition: transform 0.18s ease;
}
.message-citation-disclosure[open] summary {
border-bottom: 1px solid #e2e8f0;
}
.message-citation-disclosure[open] summary i {
transform: rotate(180deg);
}
.message-citation-disclosure .message-citation-list {
padding: 12px;
}
.expense-query-block {
gap: 10px;
}