/* 全局样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; color: #333; } .container { max-width: 1400px; margin: 0 auto; padding: 20px; } /* 头部 */ .header { background: white; padding: 20px 30px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .header h1 { color: #667eea; font-size: 24px; display: flex; align-items: center; gap: 10px; } .header-actions { display: flex; gap: 15px; align-items: center; } .status-badge { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #f0f0f0; border-radius: 20px; } .status-dot { width: 10px; height: 10px; border-radius: 50%; background: #10b981; animation: pulse 2s infinite; } .status-dot.error { background: #ef4444; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* 统计卡片 */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; } .stat-card { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); display: flex; align-items: center; gap: 15px; transition: transform 0.2s; } .stat-card:hover { transform: translateY(-2px); } .stat-icon { width: 50px; height: 50px; border-radius: 50%; background: #667eea; color: white; display: flex; align-items: center; justify-content: center; font-size: 24px; } .stat-icon.processing { background: #f59e0b; } .stat-icon.success { background: #10b981; } .stat-icon.error { background: #ef4444; } .stat-content { flex: 1; } .stat-label { font-size: 14px; color: #666; } .stat-value { font-size: 28px; font-weight: bold; color: #333; } /* 面板 */ .main-content { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; } .panel { background: white; border-radius: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); overflow: hidden; } .panel.full-width { grid-column: 1 / -1; } .panel-header { padding: 20px; background: #f8f9fa; border-bottom: 1px solid #e9ecef; display: flex; justify-content: space-between; align-items: center; } .panel-header h2 { color: #667eea; font-size: 18px; display: flex; align-items: center; gap: 8px; } .panel-actions { display: flex; gap: 10px; align-items: center; } .panel-body { padding: 20px; max-height: 400px; overflow-y: auto; } /* 按钮 */ .btn { padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; } .btn-sm { padding: 6px 12px; font-size: 12px; } .btn-primary { background: #667eea; color: white; } .btn-primary:hover { background: #5568d3; } .btn-secondary { background: #6b7280; color: white; } .btn-secondary:hover { background: #5a6270; } .btn-success { background: #10b981; color: white; } .btn-success:hover { background: #059669; } .btn-danger { background: #ef4444; color: white; } .btn-danger:hover { background: #dc2626; } .btn-warning { background: #f59e0b; color: white; } .btn-warning:hover { background: #d97706; } .btn-icon { padding: 6px; background: transparent; color: #667eea; } .btn-icon:hover { background: #f0f0f0; } /* 输入框 */ .search-input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; width: 200px; } .search-input:focus { outline: none; border-color: #667eea; } /* 数据表格 */ .data-table { width: 100%; border-collapse: collapse; } .data-table th { background: #f8f9fa; padding: 12px; text-align: left; font-size: 14px; color: #666; border-bottom: 2px solid #e9ecef; } .data-table td { padding: 12px; border-bottom: 1px solid #e9ecef; font-size: 14px; } .data-table tr:hover { background: #f8f9fa; } .empty-text { text-align: center; color: #999; padding: 40px; } /* 状态标签 */ .status-badge-inline { padding: 4px 12px; border-radius: 12px; font-size: 12px; display: inline-block; } .status-badge-inline.submitted { background: #d1fae5; color: #065f46; } .status-badge-inline.failed { background: #fee2e2; color: #991b1b; } .status-badge-inline.error { background: #fee2e2; color: #991b1b; } .status-badge-inline.processing { background: #fef3c7; color: #92400e; } /* 文章列表 */ .articles-list { display: flex; flex-direction: column; gap: 10px; } .article-item { padding: 15px; border: 1px solid #e9ecef; border-radius: 8px; cursor: pointer; transition: all 0.2s; } .article-item:hover { border-color: #667eea; background: #f8f9fa; } .article-title { font-size: 16px; color: #333; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; } .article-meta { font-size: 12px; color: #666; display: flex; gap: 15px; } .article-meta span { display: flex; align-items: center; gap: 4px; } /* 配置表单 */ .config-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; } .config-item { display: flex; flex-direction: column; gap: 8px; } .config-item label { font-size: 14px; color: #666; font-weight: 500; } .config-item input, .config-item select { padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; } .config-item input:focus, .config-item select:focus { outline: none; border-color: #667eea; } /* 模态框 */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; } .modal.active { display: flex; } .modal-content { background: white; border-radius: 12px; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; } .modal-content.large { max-width: 800px; } .modal-header { padding: 20px; background: #667eea; color: white; border-radius: 12px 12px 0 0; display: flex; justify-content: space-between; align-items: center; } .modal-header h3 { display: flex; align-items: center; gap: 8px; } .close-btn { background: transparent; border: none; color: white; font-size: 24px; cursor: pointer; } .modal-body { padding: 20px; } .modal-footer { padding: 20px; background: #f8f9fa; border-radius: 0 0 12px 12px; display: flex; justify-content: flex-end; gap: 10px; } /* 表单 */ .form-group { margin-bottom: 15px; } .form-group label { display: block; margin-bottom: 6px; font-size: 14px; color: #666; font-weight: 500; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #667eea; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; } .hint { color: #999; font-size: 12px; margin-top: 4px; } /* 提示消息 */ .toast { position: fixed; bottom: 20px; right: 20px; padding: 15px 20px; background: #333; color: white; border-radius: 8px; display: none; z-index: 1001; animation: slideIn 0.3s ease; } .toast.success { background: #10b981; } .toast.error { background: #ef4444; } .toast.active { display: block; } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* 详情内容 */ .detail-section { margin-bottom: 20px; } .detail-section h4 { color: #667eea; margin-bottom: 10px; font-size: 16px; } .detail-section p { color: #666; font-size: 14px; line-height: 1.6; } .detail-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; background: #f8f9fa; padding: 15px; border-radius: 8px; } .detail-meta-item { display: flex; flex-direction: column; gap: 4px; } .detail-meta-item label { font-size: 12px; color: #999; } .detail-meta-item span { font-size: 14px; color: #333; } /* 响应式 */ @media (max-width: 768px) { .main-content { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .header { flex-direction: column; gap: 15px; } .form-row { grid-template-columns: 1fr; } .panel-actions { flex-wrap: wrap; } } /* 加载动画 */ .loading { display: inline-block; width: 16px; height: 16px; border: 2px solid #f3f3f3; border-top: 2px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* 优先级指示 */ .priority-high { color: #ef4444; font-weight: bold; } .priority-medium { color: #f59e0b; } .priority-low { color: #10b981; } /* 搜索结果卡片 */ .search-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; } .search-result-card { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 15px; display: flex; gap: 15px; transition: all 0.2s; } .search-result-card:hover { border-color: #667eea; background: white; } .result-number { width: 30px; height: 30px; background: #667eea; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; } .result-content { flex: 1; min-width: 0; } .result-title { font-size: 15px; color: #333; cursor: pointer; margin-bottom: 8px; word-break: break-word; } .result-title:hover { color: #667eea; } .result-url { font-size: 12px; color: #666; margin-bottom: 6px; overflow: hidden; } .result-url a { color: #3b82f6; text-decoration: none; display: flex; align-items: center; gap: 4px; } .result-url a:hover { text-decoration: underline; } .result-source { font-size: 12px; color: #999; } .result-actions { display: flex; flex-direction: column; gap: 8px; } /* 搜索状态 */ #internet-search-status { display: flex; align-items: center; gap: 8px; } #internet-search-status i { font-size: 16px; } /* 搜索入口链接 */ .search-entrance-link { display: inline-flex; flex-direction: column; align-items: center; gap: 15px; padding: 40px 80px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; text-decoration: none; border-radius: 12px; transition: all 0.3s; } .search-entrance-link:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4); } .search-entrance-link i { font-size: 48px; } .search-entrance-link span { font-size: 18px; font-weight: 500; } .search-entrance-link small { font-size: 13px; opacity: 0.8; } /* 内容库入口链接 */ .library-entrance-link { display: inline-flex; flex-direction: column; align-items: center; gap: 15px; padding: 40px 80px; background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; text-decoration: none; border-radius: 12px; transition: all 0.3s; } .library-entrance-link:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4); } .library-entrance-link i { font-size: 48px; } .library-entrance-link span { font-size: 18px; font-weight: 500; } .library-entrance-link small { font-size: 13px; opacity: 0.8; } /* 快速统计卡片 */ .quick-stats { display: flex; gap: 20px; justify-content: center; } .quick-stat-item { text-align: center; } .quick-stat-value { font-size: 24px; font-weight: bold; color: #667eea; display: block; } .quick-stat-label { font-size: 13px; color: #666; } .search-quick-info { text-align: center; margin-top: 10px; color: #999; } .search-quick-info small { font-size: 12px; } /* ===== 大模型配置 ===== */ .llm-tip { background: #f0f7ff; border: 1px solid #cfe4ff; border-radius: 8px; padding: 10px 14px; margin-bottom: 15px; color: #3b6ea5; font-size: 13px; } .active-model-badge { display: inline-flex; align-items: center; gap: 8px; background: #f0f9f0; border: 1px solid #b7e0b7; color: #2d7a2d; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; margin-right: 10px; } .status-dot.green { background: #10b981; animation: pulse 2s infinite; } .status-dot.gray { background: #9ca3af; animation: none; } .badge-active { background: #10b981; color: white; font-size: 11px; padding: 2px 8px; border-radius: 10px; } .action-buttons { display: flex; gap: 6px; flex-wrap: wrap; } .btn-sm { padding: 4px 10px; font-size: 12px; } .btn-success { background: #10b981; color: white; border: none; } .btn-success:hover { background: #0ea371; } .btn-danger { background: #ef4444; color: white; border: none; } .btn-danger:hover { background: #dc2626; } code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 12px; color: #374151; word-break: break-all; }