* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #f5f7fa; color: #333; line-height: 1.6; } /* 顶部导航栏 */ .navbar { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); color: white; padding: 0 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; top: 0; left: 0; right: 0; z-index: 1000; } .navbar-content { display: flex; align-items: center; justify-content: space-between; height: 60px; max-width: 1200px; margin: 0 auto; } .logo { display: flex; align-items: center; font-size: 20px; font-weight: bold; } .logo i { margin-right: 10px; color: #ffd700; } .nav-menu { display: flex; list-style: none; gap: 30px; } .nav-menu a { color: white; text-decoration: none; padding: 8px 16px; border-radius: 4px; transition: background-color 0.3s; } .nav-menu a:hover { background-color: rgba(255,255,255,0.1); } .user-info { display: flex; align-items: center; gap: 15px; } .notification { position: relative; cursor: pointer; } .notification-badge { position: absolute; top: -5px; right: -5px; background: #ff4757; color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 12px; display: flex; align-items: center; justify-content: center; } /* 主内容区域 */ .main-content { margin-top: 60px; padding: 20px; max-width: 1200px; margin-left: auto; margin-right: auto; } /* 页面标题 */ .page-header { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 20px; } .page-title { font-size: 28px; color: #1e3c72; margin-bottom: 10px; } .page-subtitle { color: #666; font-size: 16px; } /* 统计卡片 */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; } .stat-card { background: white; padding: 25px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; align-items: center; transition: transform 0.3s, box-shadow 0.3s; } .stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.15); } .stat-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 20px; font-size: 24px; color: white; } .stat-icon.primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .stat-icon.success { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); } .stat-icon.warning { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); } .stat-icon.danger { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); } .stat-content h3 { font-size: 32px; font-weight: bold; margin-bottom: 5px; } .stat-content p { color: #666; font-size: 14px; } /* 功能区域 */ .function-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 30px; } .main-panel { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; } .panel-header { background: #f8f9fa; padding: 20px; border-bottom: 1px solid #e9ecef; display: flex; justify-content: space-between; align-items: center; } .panel-title { font-size: 18px; font-weight: 600; color: #1e3c72; } .panel-content { padding: 20px; } /* 代码上传区域 */ .upload-area { border: 2px dashed #ddd; border-radius: 8px; padding: 40px; text-align: center; transition: all 0.3s; cursor: pointer; } .upload-area:hover { border-color: #1e3c72; background-color: #f8f9ff; } .upload-area.dragover { border-color: #1e3c72; background-color: #e8f0ff; } .upload-icon { font-size: 48px; color: #1e3c72; margin-bottom: 20px; } .upload-text { font-size: 16px; color: #666; margin-bottom: 10px; } .upload-hint { font-size: 14px; color: #999; } .file-input { display: none; } /* 多Agent状态面板 */ .agent-status { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; } .agent-list { padding: 20px; } .agent-item { display: flex; align-items: center; padding: 15px; border-radius: 6px; margin-bottom: 10px; background: #f8f9fa; transition: all 0.3s; } .agent-item:hover { background: #e9ecef; } .agent-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; color: white; margin-right: 15px; font-weight: bold; } .agent-info { flex: 1; } .agent-name { font-weight: 600; margin-bottom: 5px; } .agent-status-badge { padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; } .status-idle { background: #e3f2fd; color: #1976d2; } .status-working { background: #fff3e0; color: #f57c00; } .status-completed { background: #e8f5e8; color: #388e3c; } .status-error { background: #ffebee; color: #d32f2f; } /* 检查结果区域 */ .results-section { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 30px; } .results-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #e9ecef; } .results-title { font-size: 18px; font-weight: 600; color: #1e3c72; } .filter-tabs { display: flex; gap: 10px; } .filter-tab { padding: 8px 16px; border: 1px solid #ddd; border-radius: 20px; background: white; color: #666; cursor: pointer; transition: all 0.3s; } .filter-tab.active { background: #1e3c72; color: white; border-color: #1e3c72; } .results-content { padding: 20px; } .result-item { display: flex; align-items: center; padding: 15px; border: 1px solid #e9ecef; border-radius: 6px; margin-bottom: 10px; transition: all 0.3s; } .result-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .result-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; font-size: 18px; } .result-icon.error { background: #ffebee; color: #d32f2f; } .result-icon.warning { background: #fff3e0; color: #f57c00; } .result-icon.info { background: #e3f2fd; color: #1976d2; } .result-content { flex: 1; } .result-title { font-weight: 600; margin-bottom: 5px; } .result-description { color: #666; font-size: 14px; } .result-location { color: #999; font-size: 12px; margin-top: 5px; } .result-actions { display: flex; gap: 10px; } .btn { padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; transition: all 0.3s; } .btn-primary { background: #1e3c72; color: white; } .btn-primary:hover { background: #2a5298; } .btn-secondary { background: #6c757d; color: white; } .btn-secondary:hover { background: #5a6268; } .btn-danger { background: #dc3545; color: white; } .btn-danger:hover { background: #c82333; } /* 进度条 */ .progress-container { margin: 20px 0; } .progress-bar { width: 100%; height: 8px; background: #e9ecef; border-radius: 4px; overflow: hidden; } .progress-fill { height: 100%; background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%); transition: width 0.3s; } .progress-text { text-align: center; margin-top: 10px; color: #666; font-size: 14px; } /* 响应式设计 */ @media (max-width: 768px) { .function-grid { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: 1fr; } .nav-menu { display: none; } } /* 动画效果 */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .fade-in { animation: fadeIn 0.6s ease-out; } /* 加载动画 */ .loading { display: inline-block; width: 20px; height: 20px; border: 3px solid #f3f3f3; border-top: 3px solid #1e3c72; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* 页面内容区域 */ .page-content { display: none; } .page-content.active { display: block; } /* 导航链接激活状态 */ .nav-link.active { background-color: rgba(255,255,255,0.2); } /* 项目管理页面样式 */ .projects-container { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; } .projects-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #e9ecef; background: #f8f9fa; } .projects-actions { display: flex; gap: 10px; } .projects-search { position: relative; display: flex; align-items: center; } .search-input { padding: 8px 35px 8px 12px; border: 1px solid #ddd; border-radius: 20px; width: 250px; font-size: 14px; } .search-input:focus { outline: none; border-color: #1e3c72; } .projects-search i { position: absolute; right: 12px; color: #666; } .projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 20px; } .project-card { background: white; border: 1px solid #e9ecef; border-radius: 8px; padding: 20px; transition: all 0.3s; cursor: pointer; } .project-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); transform: translateY(-2px); } .project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; } .project-title { font-size: 18px; font-weight: 600; color: #1e3c72; margin-bottom: 5px; } .project-status { padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; } .status-active { background: #e8f5e8; color: #388e3c; } .status-pending { background: #fff3e0; color: #f57c00; } .status-completed { background: #e3f2fd; color: #1976d2; } .project-description { color: #666; font-size: 14px; margin-bottom: 15px; line-height: 1.5; } .project-stats { display: flex; justify-content: space-between; margin-bottom: 15px; } .project-stat { text-align: center; } .project-stat-value { font-size: 18px; font-weight: bold; color: #1e3c72; } .project-stat-label { font-size: 12px; color: #666; } .project-actions { display: flex; gap: 6px; flex-wrap: wrap; } .project-actions .btn { flex: 1; padding: 6px 8px; font-size: 11px; min-width: 60px; } .project-actions .btn-danger { flex: 0 0 auto; min-width: 50px; } /* 项目详情页面样式 */ .project-detail-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; } /* 文件浏览器样式 */ .file-browser-panel { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; margin-bottom: 20px; } .file-actions { display: flex; gap: 8px; } .file-actions .btn { padding: 6px 12px; font-size: 12px; } .file-path { background: #f8f9fa; padding: 8px 15px; border-top: 1px solid #e9ecef; font-family: 'Courier New', monospace; font-size: 14px; color: #666; } .file-browser-content { max-height: 400px; overflow-y: auto; } .file-tree { padding: 10px; } .file-item { display: flex; align-items: center; padding: 8px 12px; cursor: pointer; border-radius: 4px; transition: background-color 0.2s; user-select: none; } .file-item:hover { background-color: #f8f9fa; } .file-item.selected { background-color: #e3f2fd; color: #1976d2; } .file-icon { width: 20px; height: 20px; margin-right: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; } .file-icon.folder { color: #ffc107; } .file-icon.file { color: #6c757d; } .file-icon.python { color: #3776ab; } .file-icon.js { color: #f7df1e; } .file-icon.css { color: #1572b6; } .file-icon.html { color: #e34f26; } .file-name { flex: 1; font-size: 14px; } .file-size { font-size: 12px; color: #666; margin-left: 10px; } .file-actions-menu { display: none; position: absolute; background: white; border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 1000; min-width: 120px; } .file-actions-menu.show { display: block; } .file-actions-menu button { display: block; width: 100%; padding: 8px 12px; border: none; background: none; text-align: left; cursor: pointer; font-size: 12px; } .file-actions-menu button:hover { background-color: #f8f9fa; } /* 代码编辑器样式 */ .code-editor-panel { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; margin-bottom: 20px; } .editor-actions { display: flex; gap: 8px; } .editor-actions .btn { padding: 6px 12px; font-size: 12px; } .file-info { background: #f8f9fa; padding: 8px 15px; border-top: 1px solid #e9ecef; font-family: 'Courier New', monospace; font-size: 14px; color: #666; } .editor-content { height: 500px; position: relative; } #codeEditor { width: 100%; height: 100%; border: none; padding: 15px; font-family: 'Courier New', monospace; font-size: 14px; line-height: 1.5; resize: none; outline: none; background: #fafafa; } #codeEditor:focus { background: white; } /* 成功按钮样式 */ .btn-success { background: #28a745; color: white; } .btn-success:hover { background: #218838; } .project-info-panel, .check-history-panel, .check-results-panel { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; } .check-results-panel { grid-column: 1 / -1; } /* 检查报告页面样式 */ .reports-container { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; } .reports-filters { display: flex; gap: 20px; padding: 20px; border-bottom: 1px solid #e9ecef; background: #f8f9fa; } .filter-group { display: flex; align-items: center; gap: 8px; } .filter-group label { font-weight: 500; color: #333; } .filter-select { padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; background: white; font-size: 14px; } .reports-content { padding: 20px; } .reports-summary { margin-bottom: 30px; } .summary-card { background: #f8f9fa; border-radius: 8px; padding: 20px; } .summary-card h3 { margin-bottom: 15px; color: #1e3c72; } .summary-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; } .summary-item { display: flex; flex-direction: column; align-items: center; text-align: center; } .summary-label { font-size: 14px; color: #666; margin-bottom: 5px; } .summary-value { font-size: 24px; font-weight: bold; color: #1e3c72; } .reports-list { display: flex; flex-direction: column; gap: 15px; } .report-item { display: flex; align-items: center; padding: 15px; border: 1px solid #e9ecef; border-radius: 6px; transition: all 0.3s; } .report-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .report-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; font-size: 18px; } .report-icon.success { background: #e8f5e8; color: #388e3c; } .report-icon.warning { background: #fff3e0; color: #f57c00; } .report-icon.error { background: #ffebee; color: #d32f2f; } .report-content { flex: 1; } .report-title { font-weight: 600; margin-bottom: 5px; } .report-meta { color: #666; font-size: 14px; } .report-actions { display: flex; gap: 8px; } /* 系统设置页面样式 */ .settings-container { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; } .settings-tabs { display: flex; border-bottom: 1px solid #e9ecef; background: #f8f9fa; } .settings-tab { padding: 15px 20px; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.3s; font-weight: 500; } .settings-tab:hover { background: #e9ecef; } .settings-tab.active { border-bottom-color: #1e3c72; color: #1e3c72; background: white; } .settings-content { padding: 20px; } .settings-panel { display: none; } .settings-panel.active { display: block; } .settings-section { margin-bottom: 30px; } .settings-section h3 { margin-bottom: 15px; color: #1e3c72; border-bottom: 2px solid #e9ecef; padding-bottom: 8px; } .setting-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f0f0f0; } .setting-item:last-child { border-bottom: none; } .setting-item label { font-weight: 500; color: #333; } .setting-input, .setting-select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; width: 200px; } .setting-input:focus, .setting-select:focus { outline: none; border-color: #1e3c72; } /* Agent配置样式 */ .agent-config-list { display: flex; flex-direction: column; gap: 20px; } .agent-config-item { border: 1px solid #e9ecef; border-radius: 8px; padding: 20px; background: #f8f9fa; } .agent-config-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .agent-config-header h4 { color: #1e3c72; margin: 0; } .agent-config-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; } /* 开关样式 */ .switch { position: relative; display: inline-block; width: 50px; height: 24px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: #1e3c72; } input:checked + .slider:before { transform: translateX(26px); } /* 规则配置样式 */ .rules-list { display: flex; flex-direction: column; gap: 15px; } .rule-item { border: 1px solid #e9ecef; border-radius: 6px; padding: 15px; background: #f8f9fa; } .rule-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .rule-header h4 { margin: 0; color: #333; } .rule-details { display: flex; align-items: center; gap: 10px; } .rule-details label { font-size: 14px; color: #666; } /* 设置操作按钮 */ .settings-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 20px; border-top: 1px solid #e9ecef; background: #f8f9fa; } /* 模态框样式 */ .modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); } .modal-content { background-color: white; margin: 5% auto; padding: 0; border-radius: 8px; width: 90%; max-width: 600px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #e9ecef; background: #f8f9fa; border-radius: 8px 8px 0 0; } .modal-header h2 { margin: 0; color: #1e3c72; } .close { color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; } .close:hover { color: #000; } .modal-body { padding: 20px; } .modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 20px; border-top: 1px solid #e9ecef; background: #f8f9fa; border-radius: 0 0 8px 8px; } /* 表单样式 */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; box-sizing: border-box; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #1e3c72; } .source-type-tabs { display: flex; gap: 20px; margin-top: 10px; } .source-type-tabs input[type="radio"] { width: auto; margin-right: 8px; } .source-type-tabs label { display: flex; align-items: center; cursor: pointer; font-weight: normal; } /* 响应式设计更新 */ @media (max-width: 768px) { .project-detail-container { grid-template-columns: 1fr; } .projects-header { flex-direction: column; gap: 15px; align-items: stretch; } .projects-actions { justify-content: center; } .projects-search { justify-content: center; } .search-input { width: 100%; } .reports-filters { flex-direction: column; gap: 15px; } .filter-group { flex-direction: column; align-items: flex-start; } .settings-tabs { flex-wrap: wrap; } .setting-item { flex-direction: column; align-items: flex-start; gap: 8px; } .setting-input, .setting-select { width: 100%; } .modal-content { width: 95%; margin: 10% auto; } }