* { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.6; background-color: var(--background); color: var(--text-primary); } /* 主容器 */ .app-container { max-width: 1600px; margin: 0 auto; padding: 2rem; display: grid; grid-template-columns: 240px 1fr; gap: 2rem; min-height: 100vh; } /* 导航侧边栏 */ .nav-panel { position: sticky; top: 2rem; height: fit-content; background: var(--surface); border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow); } .nav-title { font-size: 1.25rem; font-weight: 600; color: var(--primary); padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); } /* 主内容区 */ .main-content { display: grid; gap: 1.5rem; align-content: start; } /* 卡片式模块 */ .card { background: var(--surface); border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow); transition: transform 0.2s ease; } .card:hover { transform: translateY(-2px); } .card-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; color: var(--primary); } /* 文件上传区域 */ .file-dropzone { border: 2px dashed var(--border); border-radius: 8px; padding: 2rem; text-align: center; transition: all 0.3s ease; background: rgba(241, 245, 249, 0.5); } .file-dropzone.active { border-color: var(--primary); background: rgba(79, 70, 229, 0.05); } /* 按钮样式 */ .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: none; border-radius: 8px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .btn-primary { background: var(--primary); color: white; } .btn-primary:hover { background: #4338CA; } .btn-secondary { background: var(--secondary); color: white; } .btn-secondary:hover { background: #059669; } /* 输入框样式 */ .input-field { width: 100%; padding: 0.875rem; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; transition: border-color 0.2s ease; } .input-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); } /* 响应式设计 */ @media (max-width: 768px) { .app-container { grid-template-columns: 1fr; padding: 1rem; } .nav-panel { position: static; margin-bottom: 1.5rem; } /* 添加按钮激活状态样式 */ .btn.active { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); transform: translateY(1px); } } .toast { position: fixed; bottom: 20px; right: 20px; padding: 12px 24px; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); z-index: 1000; } .toast.success { background: var(--secondary); color: white; } .toast.error { background: #EF4444; color: white; } .loading { position: relative; opacity: 0.6; } .loading::after { content: "···"; animation: loading 1s infinite; } @keyframes loading { 0% { content: "·"; } 33% { content: "··"; } 66% { content: "···"; } } .text-upload-form { display: grid; gap: 1.5rem; } .form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-primary); font-weight: 500; } .action-bar { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; } .status-indicator { padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.9em; transition: all 0.3s ease; } .status-indicator.success { background: var(--secondary); color: white; } .status-indicator.error { background: #ef4444; color: white; } /* 添加以下CSS样式 */ .status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1rem; } .status-card { background: var(--surface); border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow); } .status-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; } .status-icon { font-size: 1.5rem; color: var(--primary); } .progress-container { margin-top: 1rem; } .progress-labels { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); } .config-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.75rem 1.5rem; margin-top: 1rem; } .config-list dt { font-weight: 500; color: var(--text-secondary); } .config-list dd { margin: 0; color: var(--text-primary); } .directory-list { margin-top: 1rem; } .directory-item { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; } .directory-label { font-weight: 500; color: var(--text-secondary); flex-shrink: 0; } .directory-path { color: var(--text-primary); word-break: break-all; } .status-badge { display: inline-block; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.875rem; font-weight: 500; margin-top: 1rem; } .health-status .status-badge { background: rgba(16, 185, 129, 0.1); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.2); } /* 加载状态 */ .status-badge.loading { background: rgba(79, 70, 229, 0.1); color: var(--primary); } /* 错误状态 */ .status-badge.error { background: rgba(239, 68, 68, 0.1); color: #EF4444; } .label-container { max-height: 60vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 1rem; } .label-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; margin-bottom: 0.5rem; background: var(--surface); border-radius: 6px; box-shadow: var(--shadow); } .label-item:hover { transform: translateX(4px); transition: transform 0.2s ease; } .label-actions { display: flex; gap: 0.5rem; } .toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); padding: 0.75rem 1.5rem; border-radius: 999px; font-size: 0.9rem; z-index: 1000; } .toast-success { background: var(--secondary); color: white; } .toast-info { background: var(--primary); color: white; } .toast-error { background: #EF4444; color: white; }