// 拖拽上传弹窗样式 .drag-upload-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 20px; backdrop-filter: blur(4px); // 移动端适配 @media (max-width: 768px) { padding: 10px; align-items: flex-start; padding-top: 10px; // 🔥 减小顶部间距 } // 🔥 企业微信端专用优化 @media (max-width: 480px) { padding: 5px; padding-top: 10px; } } .drag-upload-modal-container { background: white; border-radius: 12px; width: 90%; max-width: 1100px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); animation: modalSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; // 移动端适配 @media (max-width: 768px) { width: 95%; max-width: 100%; max-height: 90vh; border-radius: 8px; } // 🔥 企业微信端专用优化 @media (max-width: 480px) { width: 98%; max-height: 92vh; border-radius: 6px; } } // 弹窗头部 .modal-header { padding: 24px 32px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; .header-info { h3 { margin: 0 0 8px 0; font-size: 20px; font-weight: 600; } .upload-target-info { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: 0.9; .info-text { font-weight: 400; } } } .close-btn { background: none; border: none; color: white; cursor: pointer; padding: 8px; border-radius: 8px; transition: background-color 0.2s ease; &:hover { background: rgba(255, 255, 255, 0.1); } svg { display: block; } } } // 弹窗主体 .modal-body { flex: 1; padding: 24px 32px; overflow-y: auto; max-height: calc(85vh - 200px); background: #f8f9fa; // 🔥 移动端适配 @media (max-width: 768px) { padding: 16px; max-height: calc(90vh - 180px); } // 🔥 企业微信端专用优化 @media (max-width: 480px) { padding: 12px 8px; max-height: calc(92vh - 160px); } } // 表格容器 .files-table-container { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); border: 2px solid #40e0d0; } // 表格样式 .files-table { width: 100%; border-collapse: collapse; font-size: 14px; // 表头 thead { background: linear-gradient(135deg, #40e0d0 0%, #48d1cc 100%); color: white; tr { th { padding: 16px 12px; text-align: left; font-weight: 600; font-size: 15px; border-bottom: 3px solid #36d0c0; &.col-file { width: 120px; text-align: center; } &.col-name { width: 25%; } &.col-upload { width: 20%; text-align: center; } &.col-space { width: 20%; text-align: center; } &.col-stage { width: 20%; text-align: center; } } } } // 表体 tbody { .empty-row { .empty-cell { padding: 60px 20px; text-align: center; .empty-state { display: flex; flex-direction: column; align-items: center; gap: 16px; .empty-icon { opacity: 0.3; } p { margin: 0; color: #999; font-size: 15px; } } } } .file-row { border-bottom: 1px solid #e8e8e8; transition: all 0.2s; &:hover { background: #f5f5f5; } &.uploading { background: #e6f7ff; } &.success { background: #f6ffed; } &.error { background: #fff1f0; } td { padding: 16px 12px; vertical-align: middle; } // 文件列 .col-file { text-align: center; .file-preview-wrapper { position: relative; display: inline-block; .file-preview { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; background: #f5f5f5; display: flex; align-items: center; justify-content: center; border: 2px solid #e8e8e8; img { width: 100%; height: 100%; object-fit: cover; } .file-icon { color: #999; } } .delete-btn { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; background: #ff4d4f; border: 2px solid white; color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 6px rgba(255, 77, 79, 0.4); &:hover:not(:disabled) { background: #ff7875; transform: scale(1.1); } &:disabled { opacity: 0.5; cursor: not-allowed; } } } } // 名称列 .col-name { .file-name-wrapper { .file-name { font-weight: 500; color: #333; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-size { font-size: 12px; color: #999; } } } // 上传列 .col-upload { text-align: center; .upload-status-wrapper { display: flex; flex-direction: column; align-items: center; gap: 4px; .status-text { font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 12px; white-space: nowrap; &.analyzing { color: #1890ff; background: #e6f7ff; } &.success { color: #52c41a; background: #f6ffed; } &.error { color: #ff4d4f; background: #fff1f0; } &.pending { color: #faad14; background: #fff7e6; } } .upload-progress-inline { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; .progress-bar-inline { width: 100%; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; .progress-fill-inline { height: 100%; background: linear-gradient(90deg, #1890ff, #40a9ff); border-radius: 3px; transition: width 0.3s ease; } } .progress-text-inline { font-size: 12px; color: #1890ff; font-weight: 600; } } } } // 空间列和阶段列 .col-space, .col-stage { text-align: center; .table-select { width: 100%; max-width: 150px; padding: 8px 12px; border: 2px solid #d9d9d9; border-radius: 8px; font-size: 13px; color: #333; background: white; cursor: pointer; transition: all 0.2s ease; &:hover:not(:disabled) { border-color: #40a9ff; } &:focus { outline: none; border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1); } &.ai-suggested { border-color: #52c41a; background: linear-gradient(135deg, #f6ffed 0%, white 100%); box-shadow: 0 0 0 2px rgba(82, 196, 26, 0.1); } &:disabled { background: #f5f5f5; color: #bfbfbf; cursor: not-allowed; border-color: #e8e8e8; } option { padding: 8px; } } } } } } // 上传警告 .upload-warning { display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin-top: 16px; background: #fff7e6; border: 2px solid #ffd591; border-radius: 8px; color: #d46b08; font-size: 13px; font-weight: 500; svg { flex-shrink: 0; color: #faad14; } } // 弹窗底部 .modal-footer { padding: 20px 32px; border-top: 2px solid #e8e8e8; display: flex; align-items: center; justify-content: flex-end; gap: 12px; background: white; .cancel-btn, .confirm-btn { padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; border: none; } .cancel-btn { background: #f5f5f5; color: #595959; &:hover { background: #e6e6e6; } } .confirm-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); &:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); } &:disabled { background: #d9d9d9; color: #bfbfbf; cursor: not-allowed; transform: none; box-shadow: none; } } } // AI分析横幅 .analysis-banner { display: flex; align-items: center; gap: 12px; padding: 16px 20px; margin-bottom: 20px; background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%); border: 2px solid #91d5ff; border-radius: 12px; animation: slideDown 0.3s ease-out; &.success { background: linear-gradient(135deg, #f6ffed 0%, #f0fff4 100%); border-color: #b7eb8f; .banner-icon svg { color: #52c41a; } .banner-title { color: #389e0d; } } .banner-icon { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: white; border-radius: 50%; box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15); svg { color: #1890ff; &.rotating { animation: rotate 2s linear infinite; } } } .banner-content { flex: 1; .banner-title { font-size: 15px; font-weight: 600; color: #1890ff; margin-bottom: 4px; } .banner-text { font-size: 13px; color: #595959; line-height: 1.4; } } } // AI分析进度覆盖层 .analysis-progress-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 100; border-radius: 16px; .progress-content { text-align: center; padding: 40px; max-width: 400px; .ai-brain-icon { margin: 0 auto 24px; width: 64px; height: 64px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: pulse 2s ease-in-out infinite; box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3); svg { color: white; width: 32px; height: 32px; } } .progress-text { font-size: 18px; font-weight: 600; color: #475569; line-height: 1.5; margin-bottom: 20px; } .progress-bar { width: 100%; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-top: 16px; .progress-fill { height: 100%; background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); border-radius: 3px; transition: width 0.3s ease; animation: shimmer 2s linear infinite; } } } @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } } } // 简化的文件分析表格 .files-analysis-table { .analysis-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); thead { background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%); th { padding: 16px 12px; text-align: left; font-weight: 600; color: #262626; font-size: 14px; border-bottom: 2px solid #e6f7ff; &.col-file { width: 80px; } &.col-name { width: 200px; } &.col-upload { width: 100px; } &.col-space { width: 120px; } &.col-stage { width: 120px; } } } tbody { .file-row { transition: all 0.2s ease; border-bottom: 1px solid #f0f0f0; &:hover { background: #fafafa; } &.analyzing { background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%); } &.completed { background: linear-gradient(135deg, #f6ffed 0%, #f0fff4 100%); } td { padding: 12px; vertical-align: middle; } // 文件预览列 .file-preview-container { position: relative; display: flex; align-items: center; .file-thumbnail { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; border: 2px solid #f0f0f0; background: #fafafa; // 🔥 添加背景色,避免加载时空白 display: block; // 🔥 确保图片正常显示 // 🔥 企业微信端优化 @media (max-width: 768px) { width: 44px; height: 44px; border-width: 1px; } } .file-icon-placeholder { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; border-radius: 6px; border: 2px solid #f0f0f0; flex-shrink: 0; // 🔥 防止被压缩 svg { color: #8c8c8c; width: 24px; // 🔥 明确指定图标大小 height: 24px; } // 🔥 企业微信端优化 @media (max-width: 768px) { width: 44px; height: 44px; border-width: 1px; svg { width: 20px; height: 20px; } } } .file-delete-btn { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; background: #ff4d4f; border: 2px solid white; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; &:hover { background: #ff7875; transform: scale(1.1); } svg { color: white; } } } // 文件信息列 .file-info { .file-name { font-size: 13px; font-weight: 600; color: #262626; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-size { font-size: 11px; color: #8c8c8c; } } // 上传状态列 .upload-status { .status { padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; &.analyzing { background: #e6f7ff; color: #1890ff; } &.completed { background: #f6ffed; color: #52c41a; } &.pending { background: #fff7e6; color: #faad14; } } } // 空间和阶段结果列 .space-result, .stage-result { .placeholder { color: #94a3b8; font-size: 12px; font-style: italic; &.analyzing { color: #667eea; font-weight: 600; animation: pulse 1.5s ease-in-out infinite; } } .ai-result-container { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; } .ai-result { color: #059669; font-weight: 600; background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); padding: 6px 12px; border-radius: 12px; border: 1px solid #6ee7b7; display: inline-block; font-size: 13px; &.stage-tag { &[data-stage="white_model"] { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); color: #475569; border-color: #cbd5e1; } &[data-stage="soft_decor"] { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e; border-color: #f59e0b; } &[data-stage="rendering"] { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1e40af; border-color: #3b82f6; } &[data-stage="post_process"] { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); color: #7c3aed; border-color: #a855f7; } } } .confidence-badge, .quality-badge { font-size: 11px; font-weight: 700; color: white; padding: 2px 6px; border-radius: 8px; display: inline-block; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); } } } } } } // JSON格式预览区域 (保留但隐藏) .json-preview-section { display: none; // 暂时隐藏JSON预览 margin-bottom: 24px; background: linear-gradient(135deg, #fff7e6 0%, #fffbf0 100%); border: 2px solid #ffd591; border-radius: 12px; overflow: hidden; animation: slideDown 0.3s ease-out; .json-preview-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: linear-gradient(135deg, #faad14 0%, #d48806 100%); color: white; .header-left { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; svg { flex-shrink: 0; } } .toggle-json-btn { background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); color: white; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; &:hover { background: rgba(255, 255, 255, 0.3); } } } .json-preview-content { padding: 20px; background: white; .json-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; .json-item { background: #fafafa; border: 2px solid #f0f0f0; border-radius: 8px; overflow: hidden; transition: all 0.2s ease; &.analyzing { border-color: #91d5ff; background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%); } &:hover { border-color: #40a9ff; box-shadow: 0 4px 12px rgba(64, 169, 255, 0.15); } .json-item-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: white; border-bottom: 1px solid #f0f0f0; .file-info { flex: 1; min-width: 0; .file-name { display: block; font-size: 13px; font-weight: 600; color: #262626; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-size { font-size: 11px; color: #8c8c8c; } } .status-badge { padding: 4px 8px; background: #faad14; color: white; border-radius: 4px; font-size: 11px; font-weight: 600; &.completed { background: #52c41a; } } } .json-item-body { padding: 16px; .preview-image { width: 100%; height: 120px; border-radius: 6px; overflow: hidden; margin-bottom: 12px; background: #f5f5f5; img { width: 100%; height: 100%; object-fit: cover; } } .analysis-info { .info-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; &:last-child { margin-bottom: 0; } .label { color: #595959; font-weight: 500; min-width: 50px; } .value { color: #262626; font-weight: 600; text-align: right; &.confidence { color: #faad14; &.high { color: #52c41a; } } } } } } } } } } // 文件区域 .files-section { .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; h4 { margin: 0; font-size: 16px; font-weight: 600; color: #262626; } .file-actions { .add-files-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; color: #495057; font-size: 14px; cursor: pointer; transition: all 0.2s ease; &:hover { background: #e9ecef; border-color: #dee2e6; } svg { flex-shrink: 0; } } } } } // 文件列表 .files-list { border: 1px solid #e9ecef; border-radius: 12px; background: #fafbfc; min-height: 200px; max-height: 400px; overflow-y: auto; .empty-files { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; color: #8c8c8c; .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.6; } p { margin: 0; font-size: 14px; } } } // 文件项 .file-item { display: flex; align-items: center; gap: 16px; padding: 16px; border-bottom: 1px solid #f0f0f0; transition: background-color 0.2s ease; &:last-child { border-bottom: none; } &:hover { background: rgba(24, 144, 255, 0.04); } &.uploading { background: rgba(24, 144, 255, 0.08); } &.error { background: rgba(255, 77, 79, 0.08); } // 文件预览 .file-preview { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #f5f5f5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; .preview-image { width: 100%; height: 100%; object-fit: cover; } .file-icon { font-size: 24px; } // 状态覆盖层 .upload-overlay, .success-overlay, .error-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; } .upload-overlay { background: rgba(24, 144, 255, 0.9); .progress-circle { position: relative; display: flex; align-items: center; justify-content: center; .progress-text { position: absolute; color: white; font-size: 10px; font-weight: 600; } } } .success-overlay { background: rgba(82, 196, 26, 0.9); .success-icon { color: white; font-size: 20px; font-weight: bold; } } .error-overlay { background: rgba(255, 77, 79, 0.9); .error-icon { color: white; font-size: 20px; font-weight: bold; } } } // 文件信息 .file-info { flex: 1; min-width: 0; .file-name { font-size: 14px; font-weight: 500; color: #262626; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-details { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #8c8c8c; .error-message { color: #ff4d4f; font-weight: 500; } .analyzing-message { color: #1890ff; font-weight: 500; animation: pulse 1.5s ease-in-out infinite; } } // 图片分析结果样式(简化版) .analysis-result { margin-top: 8px; padding: 8px 10px; background: linear-gradient(135deg, #f6ffed 0%, #f0fff4 100%); border: 1px solid #b7eb8f; border-radius: 6px; font-size: 11px; .analysis-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; &:last-child { margin-bottom: 0; } } .analysis-label { color: #52c41a; font-weight: 600; min-width: 50px; } .analysis-value { color: #262626; font-weight: 500; } .confidence-badge { padding: 2px 6px; // 🔥 移除硬编码背景色,使用HTML中动态设置的颜色 // background: #faad14; // ❌ 错误:会覆盖动态颜色 color: white; border-radius: 3px; font-size: 10px; font-weight: 600; // 🔥 确保移动端字体清晰可读 @media (max-width: 768px) { font-size: 9px; padding: 2px 5px; } } .quality-badge { // 🔥 不设置背景色,使用HTML中动态设置的颜色 color: white; padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 600; text-transform: uppercase; // 🔥 确保移动端字体清晰可读 @media (max-width: 768px) { font-size: 9px; padding: 2px 5px; } } } // 文件分类选择样式 .file-classification { margin-top: 12px; padding: 12px; background: linear-gradient(135deg, #fff7e6 0%, #fffbf0 100%); border: 2px solid #ffd591; border-radius: 8px; .classification-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; &:last-child { margin-bottom: 0; } } .classification-label { font-size: 12px; font-weight: 600; color: #d46b08; min-width: 45px; } .classification-select { flex: 1; padding: 6px 10px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 12px; color: #262626; background: white; cursor: pointer; transition: all 0.2s ease; &:hover { border-color: #40a9ff; } &:focus { outline: none; border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1); } &.ai-suggested { border-color: #52c41a; background: linear-gradient(135deg, #f6ffed 0%, white 100%); } option { padding: 8px; } } } } // 文件操作 .file-actions { .remove-btn { background: none; border: none; color: #8c8c8c; cursor: pointer; padding: 8px; border-radius: 6px; transition: all 0.2s ease; &:hover { background: #fff2f0; color: #ff4d4f; } } } } // AI分析进度样式 .analysis-progress { margin-top: 20px; padding: 16px; background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%); border: 1px solid #91d5ff; border-radius: 8px; .progress-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #1890ff; font-weight: 600; font-size: 14px; svg { flex-shrink: 0; animation: rotate 2s linear infinite; } } .progress-text { color: #1890ff; font-size: 13px; margin-bottom: 8px; font-weight: 500; } .progress-bar { height: 4px; background: #e6f7ff; border-radius: 2px; overflow: hidden; .progress-fill { height: 100%; background: linear-gradient(90deg, #1890ff, #40a9ff); border-radius: 2px; animation: progressMove 2s ease-in-out infinite; } } } // 上传提示 .upload-tips { margin-top: 24px; padding: 16px; background: #f6ffed; border: 1px solid #b7eb8f; border-radius: 8px; .tips-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #389e0d; font-weight: 500; font-size: 14px; svg { flex-shrink: 0; } } .tips-list { margin: 0; padding-left: 20px; color: #52c41a; font-size: 13px; line-height: 1.6; li { margin-bottom: 4px; &:last-child { margin-bottom: 0; } } } } // 弹窗底部 .modal-footer { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-top: 1px solid #e2e8f0; border-radius: 0 0 16px 16px; min-height: 80px; .analysis-summary { flex: 1; margin-right: 20px; .progress-indicator { display: flex; align-items: center; gap: 12px; color: #667eea; font-weight: 600; .spinner-small { width: 20px; height: 20px; border: 2px solid #e0e7ff; border-top-color: #667eea; border-radius: 50%; animation: spin 1s linear infinite; } } .analysis-stats { display: flex; gap: 16px; flex-wrap: wrap; .stats-item { font-size: 13px; color: #64748b; strong { color: #475569; font-weight: 700; } } } } // 上传状态显示 .upload-status { display: flex; align-items: center; gap: 12px; padding: 16px; margin: 16px 0; border-radius: 8px; background: #f0f9ff; border: 1px solid #bae6fd; &.success { background: #f0f9f4; border-color: #86efac; color: #166534; .status-icon { color: #22c55e; font-weight: bold; font-size: 18px; } } &.error { background: #fef2f2; border-color: #fca5a5; color: #dc2626; .status-icon { color: #ef4444; font-weight: bold; font-size: 18px; } } .status-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: #3b82f6; font-size: 16px; font-weight: bold; } .loading-spinner { width: 16px; height: 16px; border: 2px solid #e5e7eb; border-top: 2px solid #3b82f6; border-radius: 50%; animation: spin 1s linear infinite; } .status-message { font-size: 14px; font-weight: 500; } } .action-buttons { display: flex; gap: 12px; } .cancel-btn, .confirm-btn { padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border: none; outline: none; } .cancel-btn { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; &:hover { background: #e2e8f0; color: #475569; } } .confirm-btn { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: white; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3); &:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4); } &:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2); } } } // 动画 @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } 60% { transform: translateY(-4px); } } // AI分析相关动画 @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } @keyframes glow { 0% { box-shadow: 0 0 5px rgba(24, 144, 255, 0.5); } 50% { box-shadow: 0 0 20px rgba(24, 144, 255, 0.8); } 100% { box-shadow: 0 0 5px rgba(24, 144, 255, 0.5); } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } // 特殊状态动画 .analyzing { animation: pulse 1.5s ease-in-out infinite; } .completed { animation: glow 2s ease-in-out; } @keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes progressMove { 0% { transform: translateX(-100%); } 50% { transform: translateX(0%); } 100% { transform: translateX(100%); } } // 响应式设计 - 移动端优化(参考图片一的显示效果) @media (max-width: 768px) { .drag-upload-modal-overlay { align-items: flex-start; padding: 0; } .drag-upload-modal-container { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; margin: 0; border-radius: 0; position: relative; } .modal-body { padding: 8px; max-height: calc(100vh - 140px); overflow-y: auto; overflow-x: hidden; background: #f5f5f5; } // 表格容器 - 确保表格结构正确显示 .files-analysis-table { overflow-x: auto; -webkit-overflow-scrolling: touch; background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); .analysis-table { width: 100%; min-width: 100%; // 移除最小宽度限制,让表格自适应 font-size: 11px; display: table; // 确保表格显示 border-collapse: collapse; thead { display: table-header-group; // 确保表头显示 background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%); tr { display: table-row; } th { display: table-cell; // 确保单元格显示 padding: 8px 4px; font-size: 11px; white-space: nowrap; text-align: center; vertical-align: middle; border-bottom: 2px solid #e6f7ff; &.col-file { width: 50px; } &.col-name { width: auto; min-width: 100px; } &.col-upload { width: 50px; } &.col-space { width: 70px; } &.col-stage { width: 70px; } } } tbody { display: table-row-group; // 确保表体显示 .file-row { display: table-row; // 确保行显示 border-bottom: 1px solid #f0f0f0; td { display: table-cell; // 确保单元格显示 padding: 6px 4px; vertical-align: middle; } // 文件预览缩小 .file-preview-container { display: flex; justify-content: center; position: relative; .file-thumbnail, .file-icon-placeholder { width: 36px; height: 36px; border-radius: 4px; } .file-delete-btn { width: 18px; height: 18px; top: -6px; right: -6px; svg { width: 10px; height: 10px; } } } // 文件信息 .file-info { .file-name { font-size: 10px; margin-bottom: 2px; line-height: 1.2; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-size { font-size: 9px; color: #999; } } // 上传状态 .upload-status { text-align: center; .status { font-size: 9px; padding: 2px 4px; border-radius: 3px; display: inline-block; } } // 空间和阶段结果 .space-result, .stage-result { text-align: center; .ai-result-container { display: flex; flex-direction: column; gap: 2px; align-items: center; } .ai-result { font-size: 9px; padding: 2px 4px; border-radius: 3px; white-space: nowrap; max-width: 60px; overflow: hidden; text-overflow: ellipsis; } .confidence-badge, .quality-badge { font-size: 8px; padding: 1px 3px; border-radius: 2px; } .placeholder { font-size: 9px; color: #999; } } } } } } // 底部按钮区域优化 .modal-footer { flex-direction: column; gap: 8px; align-items: stretch; padding: 10px 12px; min-height: auto; background: white; border-top: 1px solid #e8e8e8; .analysis-summary { margin-right: 0; margin-bottom: 0; .progress-indicator { justify-content: center; font-size: 11px; .spinner-small { width: 14px; height: 14px; } } .analysis-stats { justify-content: center; gap: 6px; flex-wrap: wrap; .stats-item { font-size: 10px; } } } .upload-status { padding: 10px; margin: 0; .status-message { font-size: 11px; } } .action-buttons { width: 100%; gap: 8px; display: flex; .cancel-btn, .confirm-btn { flex: 1; padding: 12px 16px; font-size: 14px; border-radius: 8px; } } } // AI分析进度覆盖层优化 .analysis-progress-overlay { .progress-content { padding: 20px; .ai-brain-icon { width: 48px; height: 48px; margin-bottom: 16px; svg { width: 24px; height: 24px; } } .progress-text { font-size: 13px; margin-bottom: 12px; } .progress-bar { height: 4px; } } } } // 图片查看器 .image-viewer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.95); display: flex; align-items: center; justify-content: center; z-index: 3000; animation: fadeIn 0.2s ease-out; } .image-viewer-container { position: relative; max-width: 95vw; max-height: 95vh; display: flex; flex-direction: column; align-items: center; gap: 16px; .close-viewer-btn { position: absolute; top: -50px; right: 0; background: rgba(255, 255, 255, 0.1); border: none; color: white; cursor: pointer; padding: 12px; border-radius: 50%; transition: all 0.2s ease; z-index: 10; &:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); } svg { display: block; } } .full-image { max-width: 95vw; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); } .image-info { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); padding: 12px 20px; border-radius: 8px; color: white; text-align: center; .image-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; } .image-details { font-size: 12px; opacity: 0.8; display: flex; align-items: center; justify-content: center; gap: 8px; .separator { opacity: 0.5; } } } } // 缩略图可点击提示 .file-thumbnail { cursor: pointer; transition: all 0.2s ease; &:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } }