/* 视觉记录系统样式 */ * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; line-height: 1.6; } .container { max-width: 1400px; margin: 0 auto; padding: 20px; } /* 头部 */ .header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px 30px; border-radius: 10px; margin-bottom: 20px; } .header h1 { font-size: 24px; margin-bottom: 10px; } .status-bar { display: flex; gap: 20px; font-size: 14px; } .status-bar span { background: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 20px; } /* 控制面板 */ .control-panel { background: white; padding: 20px; border-radius: 10px; margin-bottom: 20px; display: flex; gap: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .panel-section { flex: 1; } .panel-section h3 { margin-bottom: 15px; color: #555; font-size: 16px; } .control-buttons { display: flex; gap: 10px; } /* 按钮 */ button { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; transition: all 0.2s; } .btn-primary { background: #4CAF50; color: white; } .btn-primary:hover { background: #45a049; } .btn-danger { background: #f44336; color: white; } .btn-danger:hover { background: #da190b; } .btn-secondary { background: #2196F3; color: white; } .btn-secondary:hover { background: #0b7dda; } .btn-small { padding: 6px 15px; font-size: 13px; background: #9e9e9e; color: white; } .btn-small:hover { background: #757575; } .btn-settings { background: #ff9800; color: white; } .btn-settings:hover { background: #f57c00; } .btn-toggle { min-width: 100px; font-weight: bold; } .btn-toggle.stopped { background: #f44336; } .btn-toggle.running { background: #4CAF50; } /* 统计网格 */ .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; } .stat-item { background: #f9f9f9; padding: 15px; border-radius: 8px; text-align: center; } .stat-label { display: block; color: #888; font-size: 12px; margin-bottom: 5px; } .stat-value { display: block; font-size: 24px; font-weight: bold; color: #333; } /* 主内容区 */ .main-content { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } /* 图片区域 */ .images-section, .events-section { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .images-section h2, .events-section h2 { margin-bottom: 15px; color: #555; } .filter-bar { display: flex; gap: 10px; margin-bottom: 15px; align-items: center; } .filter-bar select { padding: 8px 15px; border: 1px solid #ddd; border-radius: 5px; } /* 图片列表 */ .images-list { max-height: 500px; overflow-y: auto; } .image-item { background: #f9f9f9; padding: 12px 15px; margin-bottom: 8px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 15px; border-left: 4px solid #667eea; } .image-item:hover { background: #f0f0f0; } .image-item.analyzed { border-left-color: #4CAF50; } .image-item.unanalyzed { border-left-color: #f44336; } .image-number { font-size: 18px; font-weight: bold; color: #667eea; min-width: 60px; } .image-time { color: #888; font-size: 13px; min-width: 140px; } .image-status { font-size: 13px; min-width: 80px; } .image-status.analyzed { color: #4CAF50; } .image-status.unanalyzed { color: #f44336; } .image-events-summary { color: #555; font-size: 13px; flex: 1; } .image-person-indices { background: #667eea; color: white; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: bold; margin-right: 10px; } /* 事件列表 */ .events-list { max-height: 500px; overflow-y: auto; } .events-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; margin-bottom: 10px; border-radius: 5px; background: #f0f0f0; } .header-label { font-weight: bold; font-size: 14px; } .header-label.local { color: #2196F3; } .header-label.ai { color: #9C27B0; } .header-count { color: #888; font-size: 12px; } .event-card { background: #f9f9f9; padding: 12px; margin-bottom: 10px; border-radius: 8px; border-left: 4px solid #667eea; cursor: pointer; } .event-card:hover { background: #f0f0f0; } .event-card.source-local { border-left-color: #2196F3; background: #f5faff; } .event-card.source-ai { border-left-color: #9C27B0; background: #f9f5ff; } .event-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; } .event-type { font-weight: bold; color: #333; } .event-source { font-size: 11px; padding: 2px 6px; border-radius: 3px; background: #e0e0e0; } .event-card.source-local .event-source { background: #e3f2fd; color: #2196F3; } .event-card.source-ai .event-source { background: #f3e5f5; color: #9C27B0; } .event-time { font-size: 12px; color: #888; } .event-desc { font-size: 14px; color: #555; } .person-indices { color: #667eea; font-weight: bold; } .event-confidence { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #e0e0e0; } /* Toast 提示 */ .toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: #333; color: white; padding: 12px 24px; border-radius: 8px; z-index: 2000; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); } .toast.fade-out { opacity: 0; } /* 模态框 */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 30px; } .modal.active { display: flex; } .modal-content { background: white; padding: 20px; border-radius: 10px; max-width: 700px; position: relative; margin: 20px auto; } .modal-close { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: #888; } .modal-close:hover { color: #333; } .modal-content img { width: 100%; max-height: 400px; object-fit: contain; border-radius: 8px; margin-bottom: 15px; } .modal-info h3 { margin-bottom: 10px; } .modal-events { margin-top: 15px; } .modal-events-section { margin-bottom: 15px; } .section-title { margin-bottom: 10px; font-size: 14px; font-weight: bold; } .section-title.local { color: #2196F3; border-bottom: 2px solid #2196F3; padding-bottom: 5px; } .section-title.ai { color: #9C27B0; border-bottom: 2px solid #9C27B0; padding-bottom: 5px; } .modal-event { background: #f5f5f5; padding: 10px; margin-bottom: 8px; border-radius: 5px; border-left: 3px solid #ccc; } .modal-event.source-local { background: #f5faff; border-left-color: #2196F3; } .modal-event.source-ai { background: #f9f5ff; border-left-color: #9C27B0; } .modal-event .event-type { font-weight: bold; } .modal-actions { margin-top: 15px; display: flex; gap: 10px; } /* 设置模态框 - 可滚动 */ .settings-modal-content { max-width: 550px; max-height: 85vh; overflow-y: auto; } .settings-modal-content h2 { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #eee; font-size: 18px; } .settings-section { margin-bottom: 15px; padding: 15px; background: #f9f9f9; border-radius: 8px; } .settings-section h4 { margin-bottom: 12px; color: #667eea; font-size: 15px; font-weight: bold; } .setting-item { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .setting-item label { min-width: 140px; color: #333; font-size: 14px; font-weight: 500; } .setting-item input[type="text"], .setting-item input[type="number"], .setting-item input[type="password"] { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; min-width: 180px; } .setting-item input[type="checkbox"] { width: 20px; height: 20px; } .setting-item select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; min-width: 180px; } .setting-desc { color: #888; font-size: 13px; } .setting-note { color: #888; font-size: 13px; margin-top: 5px; padding-left: 140px; } .settings-actions { margin-top: 20px; padding: 15px; background: white; border-radius: 8px; display: flex; gap: 15px; justify-content: center; border-top: 2px solid #eee; } .settings-actions button { padding: 12px 30px; font-size: 15px; } /* 统计图表模态框 */ .stats-modal-content { max-width: 600px; max-height: 85vh; overflow-y: auto; } .stats-controls { display: flex; gap: 10px; margin-bottom: 15px; } .stats-summary-box { margin-bottom: 15px; } .chart-container { margin-bottom: 20px; } .chart-container h4 { margin-bottom: 10px; color: #667eea; font-size: 14px; } .timeline-chart { display: flex; gap: 3px; height: 150px; align-items: flex-end; background: #f5f5f5; padding: 10px; border-radius: 5px; } .timeline-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; } .bar-fill { background: #667eea; width: 80%; min-height: 5px; border-radius: 3px 3px 0 0; } .bar-label { font-size: 10px; color: #888; margin-top: 3px; } .bar-value { font-size: 11px; color: #667eea; font-weight: bold; } .history-chart { display: flex; gap: 5px; height: 120px; align-items: flex-end; background: #f5f5f5; padding: 10px; border-radius: 5px; } .history-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; } .bar-fill.images { background: #4CAF50; } .event-type-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .event-type-label { min-width: 100px; font-size: 13px; color: #555; } .event-type-fill { background: #667eea; height: 24px; border-radius: 4px; display: flex; align-items: center; padding-left: 10px; min-width: 40px; } .event-type-count { font-size: 13px; color: white; font-weight: bold; } /* 人员库模态框 */ .persons-stats { margin-bottom: 15px; } .stats-summary { display: flex; gap: 15px; justify-content: center; padding: 10px; background: #f5f5f5; border-radius: 8px; } .stats-summary span { color: #555; font-size: 12px; } .persons-list { max-height: 350px; overflow-y: auto; } .person-item { background: #f9f9f9; padding: 12px; margin-bottom: 8px; border-radius: 8px; border-left: 4px solid #2196F3; display: flex; gap: 12px; align-items: flex-start; } .person-face { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; background: #e0e0e0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .person-face-img { width: 100%; height: 100%; object-fit: cover; } .person-face-placeholder { color: #888; font-size: 12px; text-align: center; } .person-content { flex: 1; min-width: 0; } .person-info { display: flex; justify-content: space-between; margin-bottom: 6px; } .person-name { font-weight: bold; font-size: 14px; } .person-id { color: #888; font-size: 11px; } .person-stats { display: flex; flex-wrap: wrap; gap: 10px; color: #555; font-size: 12px; margin-bottom: 8px; } .person-actions { display: flex; gap: 8px; } /* 响应式 */ @media (max-width: 768px) { .control-panel { flex-direction: column; } .main-content { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: 1fr; } .image-item { flex-wrap: wrap; } .settings-modal-content, .stats-modal-content { max-width: 95vw; padding: 15px; } .setting-item { flex-wrap: wrap; } .setting-item label { min-width: 100%; } }