.document-list-container { display: flex; flex-direction: column; height: 100%; background: #f8f9fa; } .document-list-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #e0e0e0; background: #ffffff; flex-shrink: 0; .header-icon { color: #1976d2; } .header-title { margin: 0; font-size: 16px; font-weight: 500; color: #333; } } .document-items { flex: 1; overflow-y: auto; padding: 8px; } .document-item { background: #ffffff; border-radius: 8px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); transition: all 0.2s ease; &:hover { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); } &.has-content { border-left: 4px solid #1976d2; } &.loading { opacity: 0.8; } &.empty { opacity: 0.6; border-left: 4px solid #ccc; } } .document-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; user-select: none; min-height: 48px; &:hover { background-color: #f5f5f5; border-radius: 8px 8px 0 0; } } .document-icon-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; .document-icon { color: #666; font-size: 20px; height: 20px; width: 20px; flex-shrink: 0; } .document-title { font-size: 14px; font-weight: 500; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .document-loading-spinner { margin-left: 8px; } } .document-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; .document-updated { font-size: 12px; color: #888; white-space: nowrap; } .expand-icon { color: #999; font-size: 20px; height: 20px; width: 20px; transition: transform 0.2s ease; } } .document-content { padding: 16px; border-top: 1px solid #f0f0f0; background: #ffffff; border-radius: 0 0 8px 8px; max-height: 400px; overflow-y: auto; .document-content-inner { font-size: 13px; line-height: 1.6; color: #444; // Markdown内容样式 :deep(h1), :deep(h2), :deep(h3) { margin-top: 0; margin-bottom: 12px; font-weight: 600; } :deep(h1) { font-size: 16px; } :deep(h2) { font-size: 15px; } :deep(h3) { font-size: 14px; } :deep(p) { margin: 8px 0; } :deep(ul), :deep(ol) { padding-left: 20px; margin: 8px 0; } :deep(li) { margin: 4px 0; } :deep(code) { background: #f5f5f5; padding: 2px 4px; border-radius: 3px; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 12px; } :deep(pre) { background: #f5f5f5; padding: 12px; border-radius: 6px; overflow-x: auto; margin: 12px 0; } } } .document-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; color: #999; text-align: center; mat-icon { font-size: 32px; height: 32px; width: 32px; margin-bottom: 12px; color: #ccc; } p { margin: 4px 0; font-size: 14px; } .loading-text { color: #666; font-size: 12px; } } .document-preview { padding: 8px 16px 12px 16px; border-top: 1px solid #f0f0f0; background: #fafafa; border-radius: 0 0 8px 8px; .preview-text { font-size: 12px; color: #666; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } } .document-status { .status-text { font-size: 12px; color: #999; font-style: italic; } } // 响应式调整 @media (max-height: 700px) { .document-content { max-height: 300px; } } @media (max-height: 600px) { .document-content { max-height: 250px; } }