| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735 |
- // 拖拽上传弹窗样式
- .drag-upload-modal-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.6);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 2000;
- backdrop-filter: blur(4px);
- animation: fadeIn 0.3s ease-out;
- }
- .drag-upload-modal-container {
- background: white;
- border-radius: 16px;
- width: 90vw;
- max-width: 800px;
- max-height: 85vh;
- display: flex;
- flex-direction: column;
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
- animation: slideUp 0.3s ease-out;
- overflow: hidden;
- }
- // 弹窗头部
- .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;
- }
- // 表格容器
- .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;
- font-weight: 500;
- &: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;
- 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;
- }
- .file-icon-placeholder {
- width: 50px;
- height: 50px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: #f5f5f5;
- border-radius: 6px;
- border: 2px solid #f0f0f0;
- svg {
- color: #8c8c8c;
- }
- }
- .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;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- margin-bottom: 2px;
- }
- .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;
- white-space: nowrap;
- &.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;
- background: #faad14;
- color: white;
- border-radius: 3px;
- font-size: 10px;
- font-weight: 600;
- &.high {
- background: #52c41a;
- }
- }
- .quality-badge {
- color: white;
- padding: 2px 6px;
- border-radius: 3px;
- font-size: 10px;
- font-weight: 600;
- text-transform: uppercase;
- }
- }
- // 🔥 文件分类选择样式
- .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-container {
- width: 95vw;
- height: 90vh;
- margin: 5vh auto;
- }
- .files-analysis-table {
- .analysis-table {
- font-size: 12px;
- .col-file {
- width: 80px;
- }
- .col-name {
- width: auto;
- }
- .col-upload,
- .col-space,
- .col-stage {
- width: 80px;
- }
- .ai-result-container {
- flex-direction: column;
- gap: 4px;
- }
- }
- }
- .modal-footer {
- flex-direction: column;
- gap: 12px;
- align-items: stretch;
- .analysis-summary {
- margin-right: 0;
- margin-bottom: 12px;
- .analysis-stats {
- justify-content: center;
- }
- }
- .action-buttons {
- width: 100%;
-
- .cancel-btn,
- .confirm-btn {
- flex: 1;
- }
- }
- }
- }
|