407 lines
6.2 KiB
CSS
407 lines
6.2 KiB
CSS
body {
|
|
font-family: "Microsoft YaHei", sans-serif;
|
|
width: 600px;
|
|
padding: 20px;
|
|
background-color: #fefefe;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.logo {
|
|
width: 32px;
|
|
height: 32px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.title-box {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 18px;
|
|
color: #2c3e50;
|
|
margin: 0;
|
|
}
|
|
|
|
.oa-link {
|
|
font-size: 13px;
|
|
text-decoration: none;
|
|
color: #007bff;
|
|
background-color: #f2f2f2;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.oa-link:hover {
|
|
background-color: #e0e0e0;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.search-bar {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.search-bar input {
|
|
flex: 1;
|
|
padding: 8px;
|
|
font-size: 14px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.search-bar button {
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
background-color: #007bff;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.search-bar button:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
.tag-history {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.tag-history .tag {
|
|
background-color: #f0f0f0;
|
|
color: #333;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tag-history .tag:hover {
|
|
background-color: #dcdcdc;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
#results {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
#results li {
|
|
margin-bottom: 14px;
|
|
border-bottom: 1px solid #ddd;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
#results a {
|
|
font-weight: bold;
|
|
color: #007bff;
|
|
text-decoration: none;
|
|
font-size: 15px;
|
|
}
|
|
|
|
#results a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
#results .summary {
|
|
font-size: 13px;
|
|
color: #444;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.pagination {
|
|
margin-top: 15px;
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.pagination button {
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
background-color: #eee;
|
|
border: 1px solid #ccc;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.pagination button:hover {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
/* 基础结构样式保持不变,新增按钮样式 */
|
|
|
|
#clearHistoryBtn {
|
|
background: #f8f8f8;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
padding: 0 10px;
|
|
cursor: pointer;
|
|
line-height: 28px;
|
|
height: 32px;
|
|
}
|
|
|
|
#clearHistoryBtn:hover {
|
|
background-color: #eee;
|
|
}
|
|
|
|
/* 原样式基础上追加 */
|
|
.history-wrapper {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.history-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 13px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
#clearHistoryBtn {
|
|
background: #f8f8f8;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
padding: 2px 8px;
|
|
cursor: pointer;
|
|
line-height: 20px;
|
|
}
|
|
|
|
#clearHistoryBtn:hover {
|
|
background-color: #eee;
|
|
}
|
|
|
|
.delete-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
max-width: 100%;
|
|
object-fit: contain;
|
|
cursor: pointer;
|
|
opacity: 0.6;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.delete-icon:hover {
|
|
opacity: 1;
|
|
background-color: #f0f0f0;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.user-info {
|
|
font-size: 13px;
|
|
color: #333;
|
|
margin-left: 10px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.logout-btn {
|
|
margin-left: 10px;
|
|
padding: 4px 10px;
|
|
font-size: 12px;
|
|
border: 1px solid #ccc;
|
|
background: #f9f9f9;
|
|
color: #333;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.logout-btn:hover {
|
|
background-color: #f0f0f0;
|
|
color: #d00;
|
|
}
|
|
|
|
.user-menu {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 16px;
|
|
}
|
|
|
|
.user-avatar {
|
|
cursor: pointer;
|
|
font-size: 18px;
|
|
padding: 4px;
|
|
}
|
|
|
|
.user-dropdown {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 30px;
|
|
background: white;
|
|
border: 1px solid #ccc;
|
|
box-shadow: 0 0 4px rgba(0,0,0,0.1);
|
|
padding: 6px 10px;
|
|
font-size: 13px;
|
|
width: 120px;
|
|
z-index: 99;
|
|
}
|
|
|
|
.user-dropdown div {
|
|
padding: 6px 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.user-dropdown div:hover {
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.llm-result-container {
|
|
margin-bottom: 14px;
|
|
max-height: 140px;
|
|
overflow-y: auto;
|
|
border: 1px solid #e0e9f4;
|
|
border-radius: 7px;
|
|
padding: 8px 12px;
|
|
background: #f8fbff;
|
|
}
|
|
|
|
.llm-title {
|
|
background: linear-gradient(90deg, #2560de 90%, #418cfb 100%);
|
|
color: #fff;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
padding: 12px 12px 10px 12px;
|
|
margin: 0 -10px 6px -10px;
|
|
border-bottom: 1px solid #b3cdfb;
|
|
border-radius: 8px 8px 0 0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 2;
|
|
letter-spacing: 1px;
|
|
box-shadow: 0 2px 6px #2764bb11;
|
|
}
|
|
|
|
|
|
#llmResult {
|
|
font-size: 14px;
|
|
color: #233;
|
|
line-height: 1.7;
|
|
word-break: break-all;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.llm-result-container {
|
|
margin-bottom: 14px;
|
|
max-height: 300px;
|
|
min-height: 60px;
|
|
overflow: auto;
|
|
border: 1px solid #e0e9f4;
|
|
border-radius: 7px;
|
|
padding: 0 12px 8px 12px;
|
|
background: #f8fbff;
|
|
display: flex;
|
|
flex-direction: column;
|
|
resize: vertical;
|
|
}
|
|
|
|
.llm-title {
|
|
position: sticky;
|
|
top: 0;
|
|
background: #f8fbff;
|
|
font-weight: bold;
|
|
color: #2453b5;
|
|
margin: 0 -12px 8px -12px;
|
|
padding: 8px 12px 6px 12px;
|
|
font-size: 14px;
|
|
border-bottom: 1px solid #e0e9f4;
|
|
z-index: 2;
|
|
}
|
|
|
|
.llm-result-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
min-height: 44px;
|
|
font-size: 14px;
|
|
color: #233;
|
|
line-height: 1.7;
|
|
word-break: break-all;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.llm-input-bar {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
padding-bottom: 2px;
|
|
align-items: center;
|
|
}
|
|
|
|
#llmInput {
|
|
flex: 1;
|
|
padding: 6px 10px;
|
|
border: 1px solid #c9dafc;
|
|
border-radius: 5px;
|
|
font-size: 14px;
|
|
outline: none;
|
|
}
|
|
|
|
#llmSendBtn {
|
|
padding: 6px 14px;
|
|
background: #4179f6;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
#llmSendBtn:hover {
|
|
background: #2350b8;
|
|
}
|
|
|
|
.llm-msg-item.llm-assistant {
|
|
color: #233; /* 回答文本深灰色 */
|
|
background: #e7eefb;
|
|
border-radius: 5px;
|
|
margin: 3px 0 9px 0;
|
|
padding: 7px 8px;
|
|
word-break: break-all;
|
|
font-weight: 500;
|
|
border: 1px solid #b3cdfb;
|
|
}
|
|
/* 只让“智能助手:”四字蓝色,其它不变 */
|
|
.assistant-label {
|
|
color: #2560de;
|
|
font-weight: bold;
|
|
margin-right: 3px;
|
|
}
|
|
|
|
.llm-think {
|
|
background: #fffbe6;
|
|
color: #8d7a24;
|
|
font-size: 13px;
|
|
font-style: italic;
|
|
border-left: 3px solid #ffe16a;
|
|
border-radius: 5px;
|
|
margin-bottom: 6px;
|
|
padding: 7px 10px 7px 12px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
|