update code

This commit is contained in:
lychang
2025-11-14 13:55:19 +08:00
parent f97fb0d2eb
commit 7458fe688f
5 changed files with 1057 additions and 55 deletions

View File

@@ -45,6 +45,155 @@ body {
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* 过滤区域样式 */
.filter-section {
margin-bottom: 20px;
background: #f8f9fa;
border-radius: 8px;
padding: 20px;
border: 1px solid #e9ecef;
}
.filter-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid #dee2e6;
}
.filter-header h3 {
font-size: 18px;
color: #495057;
margin: 0;
font-weight: 600;
}
.filter-actions {
display: flex;
gap: 10px;
}
.filter-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 15px;
}
.filter-item {
display: flex;
flex-direction: column;
}
.filter-item label {
font-weight: 600;
margin-bottom: 8px;
font-size: 14px;
color: #495057;
}
.filter-item input,
.filter-item select {
padding: 10px 12px;
border: 1px solid #ced4da;
border-radius: 6px;
font-size: 14px;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.filter-item input:focus,
.filter-item select:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.action-section {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background: white;
border-radius: 8px;
border: 1px solid #e9ecef;
margin-top: 20px;
}
.stats-section {
flex: 1;
}
.stats-info {
font-size: 15px;
color: #6c757d;
font-weight: 600;
padding: 8px 0;
}
.create-section {
display: flex;
gap: 10px;
}
/* 批量操作区域样式 */
.batch-actions {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 5px;
padding: 15px;
margin-bottom: 20px;
}
.batch-header {
display: flex;
align-items: center;
justify-content: space-between;
}
.batch-select {
display: flex;
align-items: center;
gap: 10px;
}
.batch-select input[type="checkbox"] {
width: 18px;
height: 18px;
}
.batch-select label {
font-weight: bold;
color: #495057;
margin: 0;
}
.batch-info {
font-size: 14px;
color: #6c757d;
font-weight: bold;
}
.batch-buttons {
display: flex;
gap: 10px;
}
/* QA项目选中状态 */
.qa-item.selected {
background-color: #e3f2fd;
border-color: #2196f3;
}
.qa-checkbox {
margin-right: 10px;
}
.qa-checkbox input[type="checkbox"] {
width: 16px;
height: 16px;
}
.search-box {
display: flex;
gap: 10px;
@@ -96,6 +245,17 @@ body {
background: #c82333;
}
.btn-outline {
background: transparent;
color: #6c757d;
border: 1px solid #6c757d;
}
.btn-outline:hover {
background: #6c757d;
color: white;
}
.qa-list {
background: white;
border-radius: 10px;
@@ -104,24 +264,51 @@ body {
}
.qa-item {
background: white;
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
border-bottom: 1px solid #eee;
transition: background-color 0.3s ease;
margin-bottom: 15px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
display: flex;
flex-direction: column;
}
.qa-item:hover {
background-color: #f8f9fa;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
transform: translateY(-2px);
}
.qa-item:last-child {
border-bottom: none;
.qa-item.selected {
background-color: #e3f2fd;
border-color: #2196f3;
box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}
.qa-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
gap: 15px;
}
.qa-checkbox {
flex-shrink: 0;
}
.qa-id {
font-weight: bold;
color: #667eea;
font-size: 16px;
}
.qa-group {
background: #f0f0f0;
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
color: #666;
}
.qa-id {
@@ -316,6 +503,160 @@ body {
opacity: 0.5;
}
/* 搜索相关样式 */
.search-container {
position: relative;
}
.search-input-wrapper {
position: relative;
}
.search-suggestions {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: white;
border: 1px solid #ddd;
border-top: none;
border-radius: 0 0 5px 5px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
z-index: 1000;
display: none;
}
.search-suggestion-item {
padding: 10px 15px;
cursor: pointer;
border-bottom: 1px solid #f0f0f0;
transition: background-color 0.2s;
}
.search-suggestion-item:hover {
background-color: #f8f9fa;
}
.search-suggestion-item:last-child {
border-bottom: none;
}
.search-history {
margin-top: 10px;
border: 1px solid #ddd;
border-radius: 5px;
background: white;
display: none;
}
.search-history-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 15px;
border-bottom: 1px solid #eee;
background: #f8f9fa;
}
.search-history-header span {
font-weight: bold;
color: #495057;
}
.btn-clear-history {
background: none;
border: none;
color: #6c757d;
cursor: pointer;
font-size: 12px;
text-decoration: underline;
}
.btn-clear-history:hover {
color: #495057;
}
.search-history-items {
max-height: 200px;
overflow-y: auto;
}
.search-history-item {
padding: 8px 15px;
cursor: pointer;
border-bottom: 1px solid #f8f9fa;
transition: background-color 0.2s;
}
.search-history-item:hover {
background-color: #f8f9fa;
}
.search-history-item:last-child {
border-bottom: none;
}
/* 按钮样式增强 */
.btn-secondary {
background-color: #6c757d;
border-color: #6c757d;
}
.btn-secondary:hover {
background-color: #5a6268;
border-color: #545b62;
}
.btn-info {
background-color: #17a2b8;
border-color: #17a2b8;
}
.btn-info:hover {
background-color: #138496;
border-color: #117a8b;
}
/* 搜索结果样式 */
.search-results-header {
background: #f8f9fa;
padding: 15px 20px;
border-radius: 5px;
margin-bottom: 15px;
border-left: 4px solid #667eea;
}
.search-results-header h3 {
margin: 0 0 5px 0;
color: #495057;
}
.search-summary {
color: #6c757d;
font-size: 0.9em;
}
.search-result-item {
border-left: 3px solid #28a745;
background: #f8fff9;
}
.message-content {
background: white;
padding: 10px;
border-radius: 3px;
border: 1px solid #e9ecef;
margin-top: 5px;
line-height: 1.5;
}
.message-content mark {
background-color: #fff3cd;
padding: 2px 4px;
border-radius: 2px;
font-weight: bold;
}
/* 聊天记录预览样式 */
.chat-preview {
background: white;