* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; color: #333; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20px; } .container { max-width: 1400px; margin: 0 auto; background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); overflow: hidden; } .header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 40px; text-align: center; } .header h1 { font-size: 2.5rem; margin-bottom: 10px; font-weight: 700; } .header .subtitle { font-size: 1.1rem; opacity: 0.9; } .tabs { display: flex; background: #f8f9fa; border-bottom: 2px solid #dee2e6; } .tab { flex: 1; padding: 15px 20px; text-align: center; cursor: pointer; background: #f8f9fa; border: none; font-size: 1.1rem; font-weight: 600; color: #6c757d; transition: all 0.3s; border-bottom: 3px solid transparent; } .tab:hover { background: #e9ecef; color: #495057; } .tab.active { background: white; color: #667eea; border-bottom: 3px solid #667eea; } .content { padding: 40px; } .tab-content { animation: fadeIn 0.5s; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .section { margin-bottom: 30px; padding: 20px; background: #f8f9fa; border-radius: 8px; } .section h3 { font-size: 1.5rem; margin-bottom: 15px; color: #495057; border-left: 4px solid #667eea; padding-left: 12px; } .section h4 { font-size: 1.2rem; margin: 20px 0 10px 0; color: #6c757d; } .topic-theme, .topic-desc, .script-category { margin-bottom: 12px; padding: 12px; background: white; border-radius: 6px; } .point-item { margin-bottom: 15px; padding: 15px; background: white; border-radius: 8px; border-left: 4px solid #667eea; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .inspiration-item { border-left-color: #10b981; } .purpose-item { border-left-color: #3b82f6; } .keypoint-item { border-left-color: #8b5cf6; } .point-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; } .point-number { display: inline-block; background: #667eea; color: white; padding: 3px 10px; border-radius: 4px; font-weight: 600; font-size: 0.85rem; flex-shrink: 0; } .point-text { flex: 1; font-size: 1.05rem; font-weight: 600; color: #1f2937; } .point-description { margin-top: 8px; padding: 10px 12px; background: #f9fafb; border-radius: 4px; font-size: 0.95rem; color: #4b5563; line-height: 1.6; } .point-features, .point-scoring { margin-top: 12px; padding: 10px 12px; background: #f0f9ff; border-radius: 4px; font-size: 0.9rem; } .point-features strong, .point-scoring strong { display: block; margin-bottom: 8px; color: #1e40af; } .feature-tags, .scoring-badges { display: flex; flex-wrap: wrap; gap: 8px; } .feature-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; background: white; border: 1px solid #dbeafe; border-radius: 4px; font-size: 0.85rem; color: #1e40af; } .feature-dimension { font-style: normal; color: #6b7280; font-size: 0.8rem; } .feature-weight { color: #dc2626; font-size: 0.8rem; } .dimension-tags { display: flex; gap: 6px; align-items: center; } .dimension-tag { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; } .dimension-tag.level-1 { background: #dbeafe; color: #1e40af; } .dimension-tag.level-2 { background: #fef3c7; color: #92400e; } .dimension-tag.keypoint-dimension { background: #f3e8ff; color: #6b21a8; } .scoring-badge { display: inline-block; padding: 5px 12px; background: white; border: 1px solid #e5e7eb; border-radius: 4px; font-size: 0.85rem; color: #374151; } .scoring-badge.total-score { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; font-weight: 600; } .paragraph-list { list-style: none; margin-left: 0; } .paragraph-list:not(.level-0) { margin-left: 30px; margin-top: 10px; padding-left: 15px; position: relative; } .paragraph-list:not(.level-0)::before { content: ''; position: absolute; left: 0; top: 0; bottom: 15px; width: 2px; background: #dee2e6; } .paragraph-item { margin-bottom: 15px; padding: 15px; background: white; border-radius: 6px; border-left: 4px solid #667eea; } .paragraph-header { margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; } .paragraph-header-content { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; } .paragraph-item.collapsible .paragraph-header { cursor: pointer; user-select: none; } .paragraph-item.collapsible .paragraph-header:hover { background-color: #f8f9fa; padding: 8px; margin: -8px -8px 2px -8px; border-radius: 4px; } .toggle-icon { font-size: 0.8rem; color: #667eea; transition: transform 0.3s ease; flex-shrink: 0; } .paragraph-item.collapsed .toggle-icon { transform: rotate(-90deg); } .collapsible-content { overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; max-height: 10000px; opacity: 1; } .paragraph-item.collapsed .collapsible-content { max-height: 0; opacity: 0; margin: 0; } .paragraph-index { display: inline-block; background: #667eea; color: white; padding: 4px 12px; border-radius: 4px; font-weight: 600; margin-right: 10px; flex-shrink: 0; } .paragraph-desc { color: #495057; font-weight: 500; } .paragraph-content, .paragraph-reason { margin-top: 8px; padding: 10px 12px; background: #f1f3f5; border-radius: 4px; font-size: 0.9rem; color: #495057; line-height: 1.6; border-left: 3px solid #adb5bd; } .content-range-list { list-style: none; margin: 8px 0 0 0; padding: 0; } .content-range-list li { padding: 6px 12px; margin: 4px 0; background: white; border-radius: 4px; border-left: 3px solid #667eea; } .content-range-list li:before { content: "▪ "; color: #667eea; font-weight: bold; margin-right: 8px; } .details-toggle-btn { padding: 6px 12px; background: #e3f2fd; border-radius: 4px; cursor: pointer; user-select: none; color: #1976d2; font-weight: 500; font-size: 0.85rem; transition: background 0.2s; white-space: nowrap; flex-shrink: 0; } .details-toggle-btn:hover { background: #bbdefb; } .details-icon { display: inline-block; transition: transform 0.3s ease; margin-right: 5px; } .paragraph-details:not(.collapsed) .details-icon { transform: rotate(90deg); } .details-content { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease; } .paragraph-details:not(.collapsed) .details-content { max-height: 5000px; opacity: 1; margin-top: 10px; } .paragraph-details { margin-top: 10px; } .related-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-top: 15px; padding: 15px; background: #f8f9fa; border-radius: 8px; } .image-item { position: relative; background: white; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); transition: transform 0.2s, box-shadow 0.2s; } .image-item:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); } .image-item img { width: 100%; height: auto; display: block; } .image-label { position: absolute; top: 8px; right: 8px; background: rgba(102, 126, 234, 0.9); color: white; padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; backdrop-filter: blur(4px); } .category-list { list-style: none; padding: 0; } .category-item { margin-bottom: 15px; padding: 15px; background: white; border-radius: 6px; border-left: 4px solid #667eea; } .category-name { font-size: 1.1rem; font-weight: 600; color: #495057; margin-bottom: 8px; } .category-definition { font-size: 0.95rem; color: #6c757d; line-height: 1.6; } /* Tab3 元素列表样式 */ .global-controls { display: flex; gap: 10px; margin-bottom: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; } /* 颜色图例样式 */ .color-legend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .legend-title { font-size: 0.9rem; color: #6c757d; font-weight: 500; } .legend-item { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; color: white; } .legend-item::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; } .legend-coverage { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid #10b981; } .legend-coverage::before { background: #10b981; } .legend-frequency { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid #3b82f6; } .legend-frequency::before { background: #3b82f6; } .legend-similarity { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; border: 1px solid #8b5cf6; } .legend-similarity::before { background: #8b5cf6; } .control-btn { padding: 8px 16px; background: #667eea; color: white; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; } .control-btn:hover { background: #5568d3; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .category-group { margin-bottom: 30px; padding: 20px; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .category-group.collapsible .category-header { cursor: pointer; user-select: none; } .category-group.collapsible .category-header:hover { background: #f8f9fa; margin: -10px; padding: 10px; border-radius: 6px; } .category-header { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #e9ecef; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .category-toggle-icon { font-size: 0.8rem; color: #667eea; transition: transform 0.3s ease; flex-shrink: 0; } .category-group.collapsed .category-toggle-icon { transform: rotate(-90deg); } .category-title { font-size: 1.2rem; font-weight: 600; color: #667eea; margin: 0; flex-shrink: 0; } .category-stats { display: flex; gap: 10px; flex-wrap: wrap; } .category-content { overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; max-height: 10000px; opacity: 1; } .category-group.collapsed .category-content { max-height: 0; opacity: 0; } .element-list { list-style: none; padding: 0; margin: 0; } .element-item { margin-bottom: 12px; padding: 12px; background: #f8f9fa; border-radius: 6px; border-left: 3px solid #667eea; transition: all 0.2s; } /* 主导因素边框颜色 - 覆盖率主导(绿色系) */ .element-item.dominant-coverage { border-left: 4px solid #10b981; background: linear-gradient(to right, rgba(16, 185, 129, 0.05), transparent); } /* 主导因素边框颜色 - 频次主导(蓝色系) */ .element-item.dominant-frequency { border-left: 4px solid #3b82f6; background: linear-gradient(to right, rgba(59, 130, 246, 0.05), transparent); } /* 主导因素边框颜色 - 相似度主导(紫色系) */ .element-item.dominant-similarity { border-left: 4px solid #8b5cf6; background: linear-gradient(to right, rgba(139, 92, 246, 0.05), transparent); } .element-item:hover { background: #e9ecef; } .element-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; user-select: none; } .element-toggle-icon { font-size: 0.7rem; color: #667eea; transition: transform 0.3s ease; flex-shrink: 0; } .element-item.expanded .element-toggle-icon { transform: rotate(90deg); } .element-name { font-size: 1rem; font-weight: 600; color: #495057; flex-shrink: 0; } .element-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; } .element-description { margin-top: 8px; font-size: 0.9rem; color: #6c757d; line-height: 1.5; } .element-details { margin-top: 10px; padding: 15px; background: white; border-radius: 6px; border: 1px solid #dee2e6; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; max-height: 5000px; opacity: 1; } .element-details.collapsed { max-height: 0; opacity: 0; padding: 0; margin: 0; border: none; } .detail-section { margin-bottom: 15px; } .detail-section:last-child { margin-bottom: 0; } .detail-section strong { display: block; margin-bottom: 8px; color: #495057; font-size: 0.9rem; } .detail-content { display: flex; flex-wrap: wrap; gap: 6px; } .detail-tag { display: inline-block; padding: 4px 10px; background: #e9ecef; border-radius: 4px; font-size: 0.85rem; color: #495057; } .score-type { font-weight: 600; color: #667eea; margin: 10px 0 5px 0; font-size: 0.9rem; } .score-list { display: flex; flex-direction: column; gap: 8px; } .score-item { padding: 8px 12px; background: #f8f9fa; border-radius: 4px; border-left: 3px solid #667eea; } .score-point { font-size: 0.9rem; color: #495057; margin-bottom: 5px; } .score-values { display: flex; gap: 8px; } .score-badge { display: inline-block; padding: 2px 8px; background: #e3f2fd; border: 1px solid #90caf9; border-radius: 3px; font-size: 0.75rem; color: #1976d2; } .stat-badge { display: inline-block; padding: 3px 10px; background: #667eea; color: white; border-radius: 4px; font-size: 0.75rem; font-weight: 500; white-space: nowrap; } /* 不同类型的统计badge颜色 */ .stat-badge.stat-coverage { background: #6b7280; } .stat-badge.stat-frequency { background: #6b7280; } .stat-badge.stat-similarity { background: #6b7280; } /* 高亮状态 - 主导因素 */ .stat-badge.stat-highlight.stat-coverage { background: #10b981; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3); } .stat-badge.stat-highlight.stat-frequency { background: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3); } .stat-badge.stat-highlight.stat-similarity { background: #8b5cf6; box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3); } .detail-text { padding: 10px 12px; background: #f1f3f5; border-radius: 4px; font-size: 0.9rem; color: #495057; line-height: 1.6; border-left: 3px solid #adb5bd; } .score-reasons { margin-top: 8px; padding: 8px 12px; background: #f9fafb; border-radius: 4px; border-left: 2px solid #dee2e6; } .score-reason { font-size: 0.85rem; color: #6c757d; line-height: 1.5; margin-bottom: 6px; } .score-reason:last-child { margin-bottom: 0; } .score-reason strong { color: #495057; } /* 新增:元素ID样式 */ .element-id { display: inline-block; background: #6c757d; color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; margin-right: 8px; flex-shrink: 0; } /* 维度标签样式 */ .dimension-level1 { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; } .dimension-level2 { background: #f3e5f5; color: #7b1fa2; border: 1px solid #ce93d8; } /* 分类标签样式 */ .category-level1 { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; } .category-level2 { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; } /* 来源标签样式 */ .source-tag { background: #fce4ec; color: #c2185b; border: 1px solid #f48fb1; } /* 段落ID标签样式 */ .para-id-tag { background: #667eea; color: white; font-weight: 600; } /* 出现段落详情列表样式 */ .paragraphs-detail-list { display: flex; flex-direction: column; gap: 10px; } .paragraph-detail-item { padding: 10px 12px; background: #f8f9fa; border-radius: 6px; border-left: 3px solid #667eea; } .para-how { margin-top: 8px; font-size: 0.9rem; color: #495057; line-height: 1.5; padding: 8px 12px; background: white; border-radius: 4px; } .footer { background: #f8f9fa; padding: 20px; text-align: center; color: #6c757d; border-top: 1px solid #dee2e6; } /* 层级结构样式 */ .level1-section { margin-bottom: 30px; } .level1-header { display: flex; align-items: center; gap: 12px; padding: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 8px; cursor: pointer; user-select: none; transition: all 0.3s; } .level1-header:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } .level1-header.collapsed { opacity: 0.8; } .level1-title { color: white; font-size: 1.5rem; font-weight: 700; margin: 0; } .level1-content { padding: 20px 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.4s ease; max-height: 100000px; opacity: 1; } .level1-header.collapsed + .level1-content { max-height: 0; opacity: 0; padding: 0; } .level2-section { margin-bottom: 25px; padding: 0 15px; } .level2-header { display: flex; align-items: center; gap: 10px; padding: 15px 20px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #667eea; cursor: pointer; user-select: none; transition: all 0.2s; } .level2-header:hover { background: #e9ecef; } .level2-header.collapsed { opacity: 0.7; } .level2-title { color: #495057; font-size: 1.2rem; font-weight: 600; margin: 0; } .level2-content { padding: 15px 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; max-height: 100000px; opacity: 1; } .level2-header.collapsed + .level2-content { max-height: 0; opacity: 0; padding: 0; } .level-toggle-icon { font-size: 1rem; color: inherit; transition: transform 0.3s ease; flex-shrink: 0; } .collapsed .level-toggle-icon { transform: rotate(-90deg); } .category-group { margin: 15px 0 15px 20px; } /* 二级分类样式 */ .subcategory-group { margin: 10px 0 10px 20px; padding: 15px; background: #fafafa; border-radius: 6px; border-left: 3px solid #a5b4fc; } .subcategory-group.collapsible .subcategory-header { cursor: pointer; user-select: none; } .subcategory-group.collapsible .subcategory-header:hover { background: #f0f0f0; margin: -8px; padding: 8px; border-radius: 4px; } .subcategory-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; } .subcategory-toggle-icon { font-size: 0.7rem; color: #a5b4fc; transition: transform 0.3s ease; flex-shrink: 0; } .subcategory-group.collapsed .subcategory-toggle-icon { transform: rotate(-90deg); } .subcategory-title { font-size: 1rem; font-weight: 600; color: #6366f1; margin: 0; } .subcategory-stats { display: flex; gap: 6px; flex-wrap: wrap; } .subcategory-content { overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; max-height: 10000px; opacity: 1; } .subcategory-group.collapsed .subcategory-content { max-height: 0; opacity: 0; } .stat-badge-small { display: inline-block; padding: 2px 8px; background: #a5b4fc; color: white; border-radius: 3px; font-size: 0.7rem; font-weight: 500; white-space: nowrap; } /* ===== 新增字段样式 ===== */ /* 类型标签 */ .type-tag { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; font-weight: 600; } /* 推理层次标签 */ .level-tag { background: #fef3c7; color: #d97706; border: 1px solid #fcd34d; font-weight: 600; } /* 依附于标签 */ .depends-tag { background: #fce7f3; color: #be185d; border: 1px solid #f9a8d4; } /* 映射关系容器 */ .mapping-container { padding: 10px 0; } .mapping-group { margin-bottom: 12px; padding: 10px 12px; background: #f9fafb; border-radius: 4px; border-left: 3px solid #9ca3af; } .mapping-group:last-child { margin-bottom: 0; } .mapping-label { display: block; font-weight: 600; color: #374151; margin-bottom: 8px; font-size: 0.85rem; } /* 映射关系标签 */ .mapping-tag { background: #ede9fe; color: #6b21a8; border: 1px solid #c4b5fd; font-weight: 600; } /* ===== 元素锚点系统 - 模态框样式 ===== */ /* 模态框背景遮罩 */ .element-modal-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 2000; animation: fadeIn 0.2s ease; } /* 模态框内容容器 */ .element-modal-content { background: white; border-radius: 12px; padding: 0; max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); animation: slideUp 0.3s ease; } @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } /* 模态框头部 */ .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 2px solid #e9ecef; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px 12px 0 0; } .modal-header h3 { margin: 0; font-size: 1.3rem; font-weight: 700; color: white; } /* 模态框关闭按钮 */ .modal-close { background: rgba(255, 255, 255, 0.2); border: none; color: white; font-size: 1.5rem; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; padding: 0; line-height: 1; } .modal-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); } /* 模态框主体 */ .modal-body { padding: 24px; } .modal-section { margin-bottom: 16px; } .modal-section:last-child { margin-bottom: 0; } .modal-section strong { display: block; margin-bottom: 8px; color: #495057; font-size: 0.9rem; } .modal-section p { margin: 0; color: #6c757d; line-height: 1.6; } /* 模态框底部 */ .modal-footer { padding: 16px 24px; border-top: 1px solid #e9ecef; display: flex; justify-content: flex-end; gap: 12px; } /* 模态框按钮 */ .modal-btn { padding: 10px 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; } .modal-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); } /* 高亮动画(用于跳转后的元素高亮) */ .highlight-pulse { animation: highlightPulse 2s ease; } @keyframes highlightPulse { 0%, 100% { background: #f8f9fa; } 50% { background: rgba(102, 126, 234, 0.2); box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3); } } /* ===== Tab4 关系图样式 ===== */ /* 关系图容器 */ .relationship-container { display: flex; gap: 20px; min-height: 600px; position: relative; background: #f8f9fa; padding: 20px; border-radius: 8px; } /* 左侧实质点列表 */ .substance-column { flex: 0 0 300px; display: flex; flex-direction: column; } /* 中间连线区域 */ .connection-column { flex: 1; min-width: 200px; position: relative; } /* 右侧目标点列表 */ .target-column { flex: 0 0 350px; display: flex; flex-direction: column; gap: 20px; } /* 列标题 */ .column-title { font-size: 1.2rem; font-weight: 600; color: #495057; margin-bottom: 15px; padding: 10px; background: white; border-radius: 6px; text-align: center; border-left: 4px solid #667eea; } .section-title { font-size: 1rem; font-weight: 600; color: #495057; margin-bottom: 10px; padding: 8px 12px; background: white; border-radius: 6px; border-left: 3px solid #667eea; } /* 节点列表 */ .node-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: calc(100vh - 300px); padding-right: 5px; } /* 自定义滚动条 */ .node-list::-webkit-scrollbar { width: 6px; } .node-list::-webkit-scrollbar-track { background: #e9ecef; border-radius: 3px; } .node-list::-webkit-scrollbar-thumb { background: #adb5bd; border-radius: 3px; } .node-list::-webkit-scrollbar-thumb:hover { background: #6c757d; } /* 节点基础样式 */ .node { padding: 12px 15px; background: white; border-radius: 6px; cursor: pointer; transition: all 0.3s; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); position: relative; } .node:hover { transform: translateX(5px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } /* 实质点节点 */ .substance-node { border-left: 4px solid #667eea; } .substance-node:hover { border-left-color: #5568d3; background: linear-gradient(to right, rgba(102, 126, 234, 0.05), white); } .substance-node.highlighted { background: linear-gradient(to right, rgba(102, 126, 234, 0.15), rgba(102, 126, 234, 0.05)); border-left-color: #5568d3; box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3); } /* 目标点节点 */ .target-node { border-left: 4px solid #adb5bd; } /* 灵感点节点 */ .inspiration-node { border-left-color: #10b981; } .inspiration-node.highlighted { background: linear-gradient(to right, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05)); border-left-color: #059669; box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3); } /* 目的点节点 */ .purpose-node { border-left-color: #3b82f6; } .purpose-node.highlighted { background: linear-gradient(to right, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05)); border-left-color: #2563eb; box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3); } /* 关键点节点 */ .keypoint-node { border-left-color: #8b5cf6; } .keypoint-node.highlighted { background: linear-gradient(to right, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05)); border-left-color: #7c3aed; box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3); } /* 节点内容样式 */ .node-id, .node-number { display: inline-block; background: #6c757d; color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; margin-bottom: 6px; } .node-name, .node-text { font-size: 0.9rem; font-weight: 500; color: #495057; line-height: 1.4; } .node-dimension { font-size: 0.8rem; color: #6c757d; margin-top: 4px; } /* SVG 连线样式 */ .relationship-svg { width: 100%; height: 100%; position: absolute; top: 0; left: 0; pointer-events: none; } .connection-line { stroke-width: 2; opacity: 0.3; transition: all 0.3s; } .connection-line.highlighted { stroke-width: 3; opacity: 1; } /* 不同类型连线颜色 */ .connection-line.inspiration { stroke: #10b981; } .connection-line.purpose { stroke: #3b82f6; } .connection-line.keypoint { stroke: #8b5cf6; } /* 连线标签(显示相似度) */ .connection-label { font-size: 0.7rem; fill: #6c757d; opacity: 0; transition: opacity 0.3s; pointer-events: none; } .connection-label.highlighted { opacity: 1; } /* 目标区域 */ .target-section { background: white; border-radius: 8px; padding: 15px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } /* 空状态 */ .empty-state { padding: 60px 40px; text-align: center; color: #6c757d; font-size: 1.1rem; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } /* ===== Tab4 新增交互样式 ===== */ /* 顶部标题和重置按钮 */ .tab4-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 15px 20px; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .tab4-title { font-size: 1.1rem; font-weight: 600; color: #495057; } .reset-btn { padding: 8px 16px; background: #667eea; color: white; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; } .reset-btn:hover { background: #5568d3; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } /* 实质点选中状态 */ .substance-node.selected { background: linear-gradient(to right, rgba(102, 126, 234, 0.2), rgba(102, 126, 234, 0.08)); border-left-color: #5568d3; box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4); transform: scale(1.02); } /* 实质点变暗状态(未选中时) */ .substance-node.dimmed { opacity: 0.4; filter: grayscale(0.5); } .substance-node.dimmed:hover { opacity: 0.6; } /* 右侧节点隐藏状态 */ .target-node.hidden { display: none; } .target-node.visible { display: block; animation: fadeInNode 0.3s ease; } @keyframes fadeInNode { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } } /* Section的隐藏和显示 */ .target-section.all-hidden { display: none; } .target-section.has-visible-nodes { display: block; animation: fadeIn 0.3s ease; } /* 关联实质点节点样式 */ .substance-related-node { border-left-color: #f59e0b; cursor: pointer; } .substance-related-node:hover { border-left-color: #d97706; background: linear-gradient(to right, rgba(245, 158, 11, 0.1), white); } .substance-related-node.visible { background: linear-gradient(to right, rgba(245, 158, 11, 0.08), white); } /* 实质点之间的连线样式 */ .connection-line.substance { stroke: #f59e0b; stroke-dasharray: 5, 5; } .connection-line.substance.highlighted { stroke-width: 3; opacity: 0.8; } /* ===== Tab5 形式点关系图样式 ===== */ /* 顶部标题和重置按钮 */ .tab5-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 15px 20px; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .tab5-title { font-size: 1.1rem; font-weight: 600; color: #495057; } /* 形式点节点样式 */ .form-column { flex: 0 0 300px; display: flex; flex-direction: column; } .form-node { border-left: 4px solid #8b5cf6; } .form-node:hover { border-left-color: #7c3aed; background: linear-gradient(to right, rgba(139, 92, 246, 0.05), white); } .form-node.selected { background: linear-gradient(to right, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.08)); border-left-color: #7c3aed; box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4); transform: scale(1.02); } .form-node.dimmed { opacity: 0.4; filter: grayscale(0.5); } .form-node.dimmed:hover { opacity: 0.6; } /* 关联形式点节点样式 */ .form-related-node { border-left-color: #ec4899; cursor: pointer; } .form-related-node:hover { border-left-color: #db2777; background: linear-gradient(to right, rgba(236, 72, 153, 0.1), white); } .form-related-node.visible { background: linear-gradient(to right, rgba(236, 72, 153, 0.08), white); } /* 形式点之间的连线样式 */ .connection-line.form { stroke: #ec4899; stroke-dasharray: 5, 5; } .connection-line.form.highlighted { stroke-width: 3; opacity: 0.8; } /* ===== Tab4 新版支撑关系图样式 ===== */ /* 顶部说明区域 */ .tab4-description { margin-top: 10px; padding: 15px; background: #f8f9fa; border-radius: 6px; border-left: 4px solid #667eea; } .tab4-description p { margin: 0 0 10px 0; color: #495057; font-size: 0.95rem; } .relationship-rules { list-style: none; padding: 0; margin: 0; } .relationship-rules li { padding: 6px 0; color: #6c757d; font-size: 0.9rem; } .relationship-rules li::before { content: "→"; color: #667eea; margin-right: 8px; font-weight: bold; } /* 支撑关系主容器 */ .support-view-container { display: grid; grid-template-columns: 300px 1fr 350px; gap: 20px; min-height: 700px; background: #f8f9fa; padding: 20px; border-radius: 8px; } /* 左侧实质点面板 */ .substance-panel { display: flex; flex-direction: column; gap: 15px; } .panel-title { font-size: 1.1rem; font-weight: 600; color: #495057; padding: 12px; background: white; border-radius: 6px; text-align: center; border-left: 4px solid #667eea; margin: 0; } /* 实质点分组 */ .substance-group { background: white; border-radius: 8px; padding: 15px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .group-title { font-size: 0.95rem; font-weight: 600; color: #667eea; margin: 0 0 12px 0; padding-bottom: 8px; border-bottom: 2px solid #e9ecef; } .substance-items { display: flex; flex-direction: column; gap: 8px; padding-right: 5px; } /* 实质点卡片 */ .substance-card { padding: 10px 12px; background: #f8f9fa; border-radius: 6px; border-left: 3px solid #adb5bd; cursor: pointer; transition: all 0.2s; } .substance-card:hover { background: #e9ecef; transform: translateX(3px); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); } .substance-card.concrete-element { border-left-color: #10b981; } .substance-card.concrete-concept { border-left-color: #3b82f6; } .substance-card.abstract-concept { border-left-color: #8b5cf6; } .substance-card.selected { background: linear-gradient(to right, rgba(102, 126, 234, 0.15), rgba(102, 126, 234, 0.05)); border-left-color: #667eea; border-left-width: 4px; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } .substance-card.dimmed { opacity: 0.3; filter: grayscale(0.7); } .substance-card.hidden { display: none; } .card-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .card-id { display: inline-block; background: #6c757d; color: white; padding: 2px 6px; border-radius: 3px; font-size: 0.7rem; font-weight: 600; flex-shrink: 0; } .card-name { font-size: 0.85rem; font-weight: 600; color: #495057; flex: 1; line-height: 1.3; } .card-description { margin-top: 6px; font-size: 0.75rem; color: #6c757d; line-height: 1.4; } /* 卡片推理信息样式 */ .card-reasoning { margin-top: 8px; padding: 8px 10px; background: rgba(139, 92, 246, 0.05); border-left: 2px solid #8b5cf6; border-radius: 4px; } .reasoning-label { font-size: 0.7rem; font-weight: 600; color: #8b5cf6; margin-bottom: 4px; } .reasoning-text { font-size: 0.72rem; color: #495057; line-height: 1.5; font-style: italic; } /* 中间可视化面板 */ .support-visualization-panel { position: relative; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .support-canvas { width: 100%; height: 100%; position: relative; min-height: 700px; display: flex; align-items: center; justify-content: center; } .placeholder-text { font-size: 1rem; color: #adb5bd; text-align: center; padding: 40px; } /* 右侧目标点面板 */ .target-panel { display: flex; flex-direction: column; gap: 15px; } /* 目标点分组 */ .target-group { background: white; border-radius: 8px; padding: 15px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .target-items { display: flex; flex-direction: column; gap: 8px; padding-right: 5px; } /* 目标点卡片 */ .target-card { padding: 10px 12px; background: #f8f9fa; border-radius: 6px; border-left: 3px solid #adb5bd; cursor: pointer; transition: all 0.2s; } .target-card:hover { background: #e9ecef; transform: translateX(-3px); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); } .target-card.inspiration-card { border-left-color: #10b981; } .target-card.keypoint-card { border-left-color: #8b5cf6; } .target-card.purpose-card { border-left-color: #3b82f6; } .target-card.selected { background: linear-gradient(to right, rgba(102, 126, 234, 0.15), rgba(102, 126, 234, 0.05)); border-left-color: #667eea; border-left-width: 4px; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } .target-card.dimmed { opacity: 0.3; filter: grayscale(0.7); } .target-card.hidden { display: none; } .card-number { display: inline-block; background: #6c757d; color: white; padding: 2px 6px; border-radius: 3px; font-size: 0.7rem; font-weight: 600; margin-bottom: 4px; } .card-text { font-size: 0.85rem; font-weight: 500; color: #495057; line-height: 1.4; } /* 支撑关系流程图样式 */ .support-flow { padding: 30px; animation: fadeIn 0.5s ease; } .flow-title { font-size: 1.2rem; font-weight: 600; color: #667eea; margin-bottom: 25px; text-align: center; padding: 15px; background: linear-gradient(to right, rgba(102, 126, 234, 0.1), transparent); border-radius: 8px; border-left: 4px solid #667eea; } .flow-source { display: flex; justify-content: center; margin-bottom: 30px; } .flow-node { padding: 20px 30px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); text-align: center; min-width: 200px; } .substance-flow-node { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } .target-flow-node { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; } .flow-node-label { font-size: 0.85rem; font-weight: 500; opacity: 0.9; margin-bottom: 8px; } .flow-node-name { font-size: 1.1rem; font-weight: 700; } .flow-targets { display: flex; flex-direction: column; gap: 20px; } .flow-target-group { padding: 15px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #adb5bd; } .flow-target-label { font-size: 0.95rem; font-weight: 600; color: #495057; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #e9ecef; } .flow-target-item { padding: 12px 15px; margin-bottom: 10px; background: white; border-radius: 6px; border-left: 4px solid #adb5bd; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .flow-target-item:last-child { margin-bottom: 0; } .flow-target-item.inspiration-flow { border-left-color: #10b981; background: linear-gradient(to right, rgba(16, 185, 129, 0.05), white); } .flow-target-item.purpose-flow { border-left-color: #3b82f6; background: linear-gradient(to right, rgba(59, 130, 246, 0.05), white); } .flow-target-item.keypoint-flow { border-left-color: #8b5cf6; background: linear-gradient(to right, rgba(139, 92, 246, 0.05), white); } .flow-target-item.concrete-element-flow { border-left-color: #10b981; background: linear-gradient(to right, rgba(16, 185, 129, 0.05), white); } .flow-target-item.concrete-concept-flow { border-left-color: #3b82f6; background: linear-gradient(to right, rgba(59, 130, 246, 0.05), white); } .flow-target-item.abstract-concept-flow { border-left-color: #8b5cf6; background: linear-gradient(to right, rgba(139, 92, 246, 0.05), white); } .flow-target-text { font-size: 0.9rem; font-weight: 500; color: #495057; margin-bottom: 6px; line-height: 1.4; } .flow-target-score { font-size: 0.8rem; color: #6c757d; font-weight: 600; } /* 目标点卡片高亮状态 */ .target-card.highlighted { background: linear-gradient(to right, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.03)); border-left-width: 4px; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2); } /* 实质点卡片高亮状态 */ .substance-card.highlighted { background: linear-gradient(to right, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.03)); border-left-width: 4px; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2); } /* ===== Tab5 实质与形式双向支撑关系图样式 ===== */ /* Tab5说明区域 */ .tab5-description { margin-top: 10px; padding: 15px; background: #f8f9fa; border-radius: 6px; border-left: 4px solid #8b5cf6; } .tab5-description p { margin: 0 0 10px 0; color: #495057; font-size: 0.95rem; } /* Tab5 4列布局容器 */ .tab5-four-column-container { display: grid; grid-template-columns: 280px 280px 280px 280px; gap: 15px; min-height: 700px; background: #f8f9fa; padding: 20px; border-radius: 8px; } /* Tab5 列样式 */ .tab5-column { display: flex; flex-direction: column; gap: 12px; } .tab5-left-targets { /* 左侧选题点列(实质支撑) */ } .tab5-substances { /* 中左实质点列 */ } .tab5-forms { /* 中右形式点列 */ } .tab5-right-targets { /* 右侧选题点列(形式支撑) */ } /* 形式点面板 */ .form-panel { display: flex; flex-direction: column; gap: 15px; } /* 形式点分组 */ .form-group { background: white; border-radius: 8px; padding: 15px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .form-items { display: flex; flex-direction: column; gap: 8px; padding-right: 5px; } /* 形式点卡片 */ .form-card { padding: 10px 12px; background: #f8f9fa; border-radius: 6px; border-left: 3px solid #adb5bd; cursor: pointer; transition: all 0.2s; } .form-card:hover { background: #e9ecef; transform: translateX(3px); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); } .form-card.concrete-element-form { border-left-color: #f59e0b; } .form-card.concrete-concept-form { border-left-color: #ec4899; } .form-card.overall-form { border-left-color: #8b5cf6; } .form-card.selected { background: linear-gradient(to right, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05)); border-left-color: #8b5cf6; border-left-width: 4px; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); } .form-card.dimmed { opacity: 0.3; filter: grayscale(0.7); } .form-card.hidden { display: none; } .form-card.highlighted { background: linear-gradient(to right, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.03)); border-left-width: 4px; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2); } /* 实质点卡片(在tab5中作为目标) */ .substance-card.concrete-element-card { border-left-color: #10b981; } .substance-card.concrete-concept-card { border-left-color: #3b82f6; } .substance-card.abstract-concept-card { border-left-color: #8b5cf6; } /* 实质点项列表 */ /* 已移除max-height限制,所有元素平铺显示 */ /* 形式点流程节点样式 */ .form-flow-node { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; } /* 形式点流程目标项样式 */ .flow-target-item.concrete-element-form-flow { border-left-color: #f59e0b; background: linear-gradient(to right, rgba(245, 158, 11, 0.05), white); } .flow-target-item.concrete-concept-form-flow { border-left-color: #ec4899; background: linear-gradient(to right, rgba(236, 72, 153, 0.05), white); } .flow-target-item.overall-form-flow { border-left-color: #8b5cf6; background: linear-gradient(to right, rgba(139, 92, 246, 0.05), white); } .flow-target-item.form-flow { border-left-color: #8b5cf6; background: linear-gradient(to right, rgba(139, 92, 246, 0.05), white); } /* ===== Tab5 连线SVG容器样式 ===== */ .tab5-svg-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; } #tab5-connection-svg { width: 100%; height: 100%; overflow: visible; } /* Tab5 4列容器需要relative定位 */ .tab5-four-column-container { position: relative; z-index: 1; } /* Tab5 连线样式 */ .tab5-connection-line { fill: none; stroke-width: 2; opacity: 0.4; transition: all 0.3s ease; pointer-events: stroke; } /* 左侧选题点到实质点的连线 */ .tab5-connection-line.left-target-substance { stroke: #667eea; } /* 实质点到形式点的连线 */ .tab5-connection-line.substance-form { stroke: #f59e0b; stroke-dasharray: 5, 3; } /* 形式点到右侧灵感点的连线 */ .tab5-connection-line.form-inspiration { stroke: #10b981; } /* 形式点到右侧目的点的连线 */ .tab5-connection-line.form-purpose { stroke: #3b82f6; } /* 形式点到右侧关键点的连线 */ .tab5-connection-line.form-keypoint { stroke: #8b5cf6; } /* 连线hover效果(已在JS中定义) */ .tab5-connection-line:hover { opacity: 0.8; stroke-width: 4; filter: drop-shadow(0 0 6px rgba(0,0,0,0.3)); } /* ===== Tab5 连线详情模态框样式 ===== */ .connection-modal-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 3000; animation: fadeIn 0.2s ease; } .connection-modal-content { background: white; border-radius: 12px; padding: 0; max-width: 550px; width: 90%; max-height: 85vh; overflow-y: auto; box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4); animation: slideUp 0.3s ease; } .connection-detail-section { margin-bottom: 18px; padding: 12px 0; border-bottom: 1px solid #e9ecef; } .connection-detail-section:last-child { border-bottom: none; margin-bottom: 0; } .connection-label { font-size: 0.85rem; font-weight: 600; color: #667eea; margin-bottom: 6px; display: block; } .connection-value { font-size: 0.95rem; color: #495057; line-height: 1.6; padding-left: 10px; } .connection-value.score-value { color: #667eea; font-weight: 700; font-size: 1.1rem; } /* ===== Tab5标题区域样式 ===== */ .tab5-header { margin-bottom: 20px; } .tab5-title { font-size: 1.5rem; font-weight: 700; color: #495057; margin: 0 0 10px 0; } .tab5-description p { margin: 8px 0; font-size: 0.95rem; color: #495057; line-height: 1.6; }