.container { max-width: 1400px; margin: 0 auto; padding: 2rem; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.page-title-section h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.75rem; }
.page-description { color: #6b7280; margin: 0; }
.nav-tabs { display: flex; justify-content: center; margin-bottom: 2rem; border-bottom: 2px solid #e5e7eb; gap: 1rem; }
.nav-tab { padding: 1rem 2rem; background: none; border: none; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.3s; color: #6b7280; font-weight: 500; }
.nav-tab:hover { color: #6366f1; }
.nav-tab.active { border-bottom-color: #6366f1; color: #6366f1; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.tool-card { background: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 2rem; cursor: pointer; transition: all 0.3s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.1); border-color: #6366f1; }
.tool-card.selected { border-color: #6366f1; background: #f0f4ff; }
.tool-card h3 { margin: 0 0 0.75rem 0; color: #111827; font-size: 1.25rem; }
.tool-card p { margin: 0.5rem 0; color: #6b7280; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.form-section { background: white; border-radius: 12px; padding: 2rem; margin-bottom: 2rem; border: 1px solid #e5e7eb; }
.form-section h2 { margin: 0 0 1.5rem 0; font-size: 1.5rem; color: #111827; }
.btn { background: #6366f1; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 8px; cursor: pointer; font-weight: 500; transition: all 0.3s; }
.btn:hover { background: #4f46e5; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; background: #9ca3af; }
.btn-outline { background: white; color: #6366f1; border: 1px solid #6366f1; }
.btn-outline:hover { background: #f0f4ff; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.message { padding: 1rem 1.25rem; border-radius: 8px; margin: 1rem 0; display: none; font-weight: 500; }
.message.show { display: block; }
.message.error { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.message.success { background: #d1fae5; color: #059669; border: 1px solid #a7f3d0; }

/* 文件选择样式 */
.file-search-box { position: relative; margin-bottom: 1rem; }
.file-search-box .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.file-search-box .search-input { width: 100%; padding: 0.75rem 1rem 0.75rem 3rem; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem; }
.file-search-box .search-input:focus { outline: none; border-color: #6366f1; }
.file-selection-container { max-height: 400px; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0.5rem; background: #fafafa; }
.file-item-selectable { display: flex; align-items: center; padding: 0.75rem 1rem; margin: 0.25rem 0; background: white; border: 1px solid #e5e7eb; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.file-item-selectable:hover { background: #f9fafb; border-color: #6366f1; }
.file-item-selectable.selected { background: #f0f4ff; border-color: #6366f1; }
.file-checkbox-wrapper { display: flex; align-items: center; margin-right: 1rem; }
.file-checkbox-wrapper input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.file-icon-wrapper { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #f3f4f6; border-radius: 8px; margin-right: 1rem; }
.file-icon-wrapper svg { width: 24px; height: 24px; color: #6366f1; }
.file-info-wrapper { flex: 1; min-width: 0; }
.file-name-text { font-weight: 500; color: #111827; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta-text { font-size: 0.875rem; color: #6b7280; }
.batch-selection-controls { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.batch-selection-controls .selected-info { margin-left: auto; color: #6366f1; font-weight: 500; }
.empty-file-state { text-align: center; padding: 3rem 2rem; color: #6b7280; }
.empty-file-state svg { width: 64px; height: 64px; margin: 0 auto 1rem; color: #d1d5db; }
.empty-file-state h3 { font-size: 1.25rem; color: #374151; margin-bottom: 0.5rem; }
.empty-file-state p { margin-bottom: 1rem; }
.empty-file-state a { color: #6366f1; text-decoration: none; font-weight: 500; }
.empty-file-state a:hover { text-decoration: underline; }

/* ============= AIDIG 文档插图样式（已迁移到 aidig.css） ============= */
/* AIDIG结果查看器现在使用独立页面 /aidig?taskId=xxx */

