drag-upload-modal.component.scss 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173
  1. // 拖拽上传弹窗样式
  2. .drag-upload-modal-overlay {
  3. position: fixed;
  4. top: 0;
  5. left: 0;
  6. right: 0;
  7. bottom: 0;
  8. background-color: rgba(0, 0, 0, 0.6);
  9. display: flex;
  10. align-items: center;
  11. justify-content: center;
  12. z-index: 10000;
  13. padding: 20px;
  14. backdrop-filter: blur(4px);
  15. // 移动端适配
  16. @media (max-width: 768px) {
  17. padding: 10px;
  18. align-items: flex-start;
  19. padding-top: 10px; // 🔥 减小顶部间距
  20. }
  21. // 🔥 企业微信端专用优化
  22. @media (max-width: 480px) {
  23. padding: 5px;
  24. padding-top: 10px;
  25. }
  26. }
  27. .drag-upload-modal-container {
  28. background: white;
  29. border-radius: 12px;
  30. width: 90%;
  31. max-width: 1100px;
  32. max-height: 85vh;
  33. display: flex;
  34. flex-direction: column;
  35. box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  36. animation: modalSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  37. position: relative;
  38. // 移动端适配
  39. @media (max-width: 768px) {
  40. width: 95%;
  41. max-width: 100%;
  42. max-height: 90vh;
  43. border-radius: 8px;
  44. }
  45. // 🔥 企业微信端专用优化
  46. @media (max-width: 480px) {
  47. width: 98%;
  48. max-height: 92vh;
  49. border-radius: 6px;
  50. }
  51. }
  52. // 弹窗头部
  53. .modal-header {
  54. padding: 24px 32px;
  55. border-bottom: 1px solid #f0f0f0;
  56. display: flex;
  57. align-items: center;
  58. justify-content: space-between;
  59. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  60. color: white;
  61. .header-info {
  62. h3 {
  63. margin: 0 0 8px 0;
  64. font-size: 20px;
  65. font-weight: 600;
  66. }
  67. .upload-target-info {
  68. display: flex;
  69. align-items: center;
  70. gap: 8px;
  71. font-size: 13px;
  72. opacity: 0.9;
  73. .info-text {
  74. font-weight: 400;
  75. }
  76. }
  77. }
  78. .close-btn {
  79. background: none;
  80. border: none;
  81. color: white;
  82. cursor: pointer;
  83. padding: 8px;
  84. border-radius: 8px;
  85. transition: background-color 0.2s ease;
  86. &:hover {
  87. background: rgba(255, 255, 255, 0.1);
  88. }
  89. svg {
  90. display: block;
  91. }
  92. }
  93. }
  94. // 弹窗主体
  95. .modal-body {
  96. flex: 1;
  97. padding: 24px 32px;
  98. overflow-y: auto;
  99. max-height: calc(85vh - 200px);
  100. background: #f8f9fa;
  101. // 🔥 移动端适配
  102. @media (max-width: 768px) {
  103. padding: 16px;
  104. max-height: calc(90vh - 180px);
  105. }
  106. // 🔥 企业微信端专用优化
  107. @media (max-width: 480px) {
  108. padding: 12px 8px;
  109. max-height: calc(92vh - 160px);
  110. }
  111. }
  112. // 表格容器
  113. .files-table-container {
  114. background: white;
  115. border-radius: 12px;
  116. overflow: hidden;
  117. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  118. border: 2px solid #40e0d0;
  119. }
  120. // 表格样式
  121. .files-table {
  122. width: 100%;
  123. border-collapse: collapse;
  124. font-size: 14px;
  125. // 表头
  126. thead {
  127. background: linear-gradient(135deg, #40e0d0 0%, #48d1cc 100%);
  128. color: white;
  129. tr {
  130. th {
  131. padding: 16px 12px;
  132. text-align: left;
  133. font-weight: 600;
  134. font-size: 15px;
  135. border-bottom: 3px solid #36d0c0;
  136. &.col-file {
  137. width: 120px;
  138. text-align: center;
  139. }
  140. &.col-name {
  141. width: 25%;
  142. }
  143. &.col-upload {
  144. width: 20%;
  145. text-align: center;
  146. }
  147. &.col-space {
  148. width: 20%;
  149. text-align: center;
  150. }
  151. &.col-stage {
  152. width: 20%;
  153. text-align: center;
  154. }
  155. }
  156. }
  157. }
  158. // 表体
  159. tbody {
  160. .empty-row {
  161. .empty-cell {
  162. padding: 60px 20px;
  163. text-align: center;
  164. .empty-state {
  165. display: flex;
  166. flex-direction: column;
  167. align-items: center;
  168. gap: 16px;
  169. .empty-icon {
  170. opacity: 0.3;
  171. }
  172. p {
  173. margin: 0;
  174. color: #999;
  175. font-size: 15px;
  176. }
  177. }
  178. }
  179. }
  180. .file-row {
  181. border-bottom: 1px solid #e8e8e8;
  182. transition: all 0.2s;
  183. &:hover {
  184. background: #f5f5f5;
  185. }
  186. &.uploading {
  187. background: #e6f7ff;
  188. }
  189. &.success {
  190. background: #f6ffed;
  191. }
  192. &.error {
  193. background: #fff1f0;
  194. }
  195. td {
  196. padding: 16px 12px;
  197. vertical-align: middle;
  198. }
  199. // 文件列
  200. .col-file {
  201. text-align: center;
  202. .file-preview-wrapper {
  203. position: relative;
  204. display: inline-block;
  205. .file-preview {
  206. width: 80px;
  207. height: 80px;
  208. border-radius: 8px;
  209. overflow: hidden;
  210. background: #f5f5f5;
  211. display: flex;
  212. align-items: center;
  213. justify-content: center;
  214. border: 2px solid #e8e8e8;
  215. img {
  216. width: 100%;
  217. height: 100%;
  218. object-fit: cover;
  219. }
  220. .file-icon {
  221. color: #999;
  222. }
  223. }
  224. .delete-btn {
  225. position: absolute;
  226. top: -8px;
  227. right: -8px;
  228. width: 28px;
  229. height: 28px;
  230. border-radius: 50%;
  231. background: #ff4d4f;
  232. border: 2px solid white;
  233. color: white;
  234. display: flex;
  235. align-items: center;
  236. justify-content: center;
  237. cursor: pointer;
  238. transition: all 0.2s;
  239. box-shadow: 0 2px 6px rgba(255, 77, 79, 0.4);
  240. &:hover:not(:disabled) {
  241. background: #ff7875;
  242. transform: scale(1.1);
  243. }
  244. &:disabled {
  245. opacity: 0.5;
  246. cursor: not-allowed;
  247. }
  248. }
  249. }
  250. }
  251. // 名称列
  252. .col-name {
  253. .file-name-wrapper {
  254. .file-name {
  255. font-weight: 500;
  256. color: #333;
  257. margin-bottom: 6px;
  258. overflow: hidden;
  259. text-overflow: ellipsis;
  260. white-space: nowrap;
  261. }
  262. .file-size {
  263. font-size: 12px;
  264. color: #999;
  265. }
  266. }
  267. }
  268. // 上传列
  269. .col-upload {
  270. text-align: center;
  271. .upload-status-wrapper {
  272. display: flex;
  273. flex-direction: column;
  274. align-items: center;
  275. gap: 4px;
  276. .status-text {
  277. font-size: 13px;
  278. font-weight: 500;
  279. padding: 4px 12px;
  280. border-radius: 12px;
  281. white-space: nowrap;
  282. &.analyzing {
  283. color: #1890ff;
  284. background: #e6f7ff;
  285. }
  286. &.success {
  287. color: #52c41a;
  288. background: #f6ffed;
  289. }
  290. &.error {
  291. color: #ff4d4f;
  292. background: #fff1f0;
  293. }
  294. &.pending {
  295. color: #faad14;
  296. background: #fff7e6;
  297. }
  298. }
  299. .upload-progress-inline {
  300. width: 100%;
  301. display: flex;
  302. flex-direction: column;
  303. align-items: center;
  304. gap: 4px;
  305. .progress-bar-inline {
  306. width: 100%;
  307. height: 6px;
  308. background: #f0f0f0;
  309. border-radius: 3px;
  310. overflow: hidden;
  311. .progress-fill-inline {
  312. height: 100%;
  313. background: linear-gradient(90deg, #1890ff, #40a9ff);
  314. border-radius: 3px;
  315. transition: width 0.3s ease;
  316. }
  317. }
  318. .progress-text-inline {
  319. font-size: 12px;
  320. color: #1890ff;
  321. font-weight: 600;
  322. }
  323. }
  324. }
  325. }
  326. // 空间列和阶段列
  327. .col-space,
  328. .col-stage {
  329. text-align: center;
  330. .table-select {
  331. width: 100%;
  332. max-width: 150px;
  333. padding: 8px 12px;
  334. border: 2px solid #d9d9d9;
  335. border-radius: 8px;
  336. font-size: 13px;
  337. color: #333;
  338. background: white;
  339. cursor: pointer;
  340. transition: all 0.2s ease;
  341. &:hover:not(:disabled) {
  342. border-color: #40a9ff;
  343. }
  344. &:focus {
  345. outline: none;
  346. border-color: #1890ff;
  347. box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
  348. }
  349. &.ai-suggested {
  350. border-color: #52c41a;
  351. background: linear-gradient(135deg, #f6ffed 0%, white 100%);
  352. box-shadow: 0 0 0 2px rgba(82, 196, 26, 0.1);
  353. }
  354. &:disabled {
  355. background: #f5f5f5;
  356. color: #bfbfbf;
  357. cursor: not-allowed;
  358. border-color: #e8e8e8;
  359. }
  360. option {
  361. padding: 8px;
  362. }
  363. }
  364. }
  365. }
  366. }
  367. }
  368. // 上传警告
  369. .upload-warning {
  370. display: flex;
  371. align-items: center;
  372. gap: 8px;
  373. padding: 12px 16px;
  374. margin-top: 16px;
  375. background: #fff7e6;
  376. border: 2px solid #ffd591;
  377. border-radius: 8px;
  378. color: #d46b08;
  379. font-size: 13px;
  380. font-weight: 500;
  381. svg {
  382. flex-shrink: 0;
  383. color: #faad14;
  384. }
  385. }
  386. // 弹窗底部
  387. .modal-footer {
  388. padding: 20px 32px;
  389. border-top: 2px solid #e8e8e8;
  390. display: flex;
  391. align-items: center;
  392. justify-content: flex-end;
  393. gap: 12px;
  394. background: white;
  395. .cancel-btn,
  396. .confirm-btn {
  397. padding: 12px 24px;
  398. border-radius: 8px;
  399. font-size: 14px;
  400. font-weight: 600;
  401. cursor: pointer;
  402. transition: all 0.2s ease;
  403. border: none;
  404. }
  405. .cancel-btn {
  406. background: #f5f5f5;
  407. color: #595959;
  408. &:hover {
  409. background: #e6e6e6;
  410. }
  411. }
  412. .confirm-btn {
  413. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  414. color: white;
  415. box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  416. &:hover:not(:disabled) {
  417. transform: translateY(-1px);
  418. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  419. }
  420. &:disabled {
  421. background: #d9d9d9;
  422. color: #bfbfbf;
  423. cursor: not-allowed;
  424. transform: none;
  425. box-shadow: none;
  426. }
  427. }
  428. }
  429. // AI分析横幅
  430. .analysis-banner {
  431. display: flex;
  432. align-items: center;
  433. gap: 12px;
  434. padding: 16px 20px;
  435. margin-bottom: 20px;
  436. background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
  437. border: 2px solid #91d5ff;
  438. border-radius: 12px;
  439. animation: slideDown 0.3s ease-out;
  440. &.success {
  441. background: linear-gradient(135deg, #f6ffed 0%, #f0fff4 100%);
  442. border-color: #b7eb8f;
  443. .banner-icon svg {
  444. color: #52c41a;
  445. }
  446. .banner-title {
  447. color: #389e0d;
  448. }
  449. }
  450. .banner-icon {
  451. flex-shrink: 0;
  452. width: 40px;
  453. height: 40px;
  454. display: flex;
  455. align-items: center;
  456. justify-content: center;
  457. background: white;
  458. border-radius: 50%;
  459. box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
  460. svg {
  461. color: #1890ff;
  462. &.rotating {
  463. animation: rotate 2s linear infinite;
  464. }
  465. }
  466. }
  467. .banner-content {
  468. flex: 1;
  469. .banner-title {
  470. font-size: 15px;
  471. font-weight: 600;
  472. color: #1890ff;
  473. margin-bottom: 4px;
  474. }
  475. .banner-text {
  476. font-size: 13px;
  477. color: #595959;
  478. line-height: 1.4;
  479. }
  480. }
  481. }
  482. // AI分析进度覆盖层
  483. .analysis-progress-overlay {
  484. position: absolute;
  485. top: 0;
  486. left: 0;
  487. right: 0;
  488. bottom: 0;
  489. background: rgba(255, 255, 255, 0.98);
  490. backdrop-filter: blur(8px);
  491. display: flex;
  492. align-items: center;
  493. justify-content: center;
  494. z-index: 100;
  495. border-radius: 16px;
  496. .progress-content {
  497. text-align: center;
  498. padding: 40px;
  499. max-width: 400px;
  500. .ai-brain-icon {
  501. margin: 0 auto 24px;
  502. width: 64px;
  503. height: 64px;
  504. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  505. border-radius: 50%;
  506. display: flex;
  507. align-items: center;
  508. justify-content: center;
  509. animation: pulse 2s ease-in-out infinite;
  510. box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
  511. svg {
  512. color: white;
  513. width: 32px;
  514. height: 32px;
  515. }
  516. }
  517. .progress-text {
  518. font-size: 18px;
  519. font-weight: 600;
  520. color: #475569;
  521. line-height: 1.5;
  522. margin-bottom: 20px;
  523. }
  524. .progress-bar {
  525. width: 100%;
  526. height: 6px;
  527. background: #e2e8f0;
  528. border-radius: 3px;
  529. overflow: hidden;
  530. margin-top: 16px;
  531. .progress-fill {
  532. height: 100%;
  533. background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  534. border-radius: 3px;
  535. transition: width 0.3s ease;
  536. animation: shimmer 2s linear infinite;
  537. }
  538. }
  539. }
  540. @keyframes shimmer {
  541. 0% {
  542. background-position: -200% 0;
  543. }
  544. 100% {
  545. background-position: 200% 0;
  546. }
  547. }
  548. }
  549. // 简化的文件分析表格
  550. .files-analysis-table {
  551. .analysis-table {
  552. width: 100%;
  553. border-collapse: collapse;
  554. background: white;
  555. border-radius: 8px;
  556. overflow: hidden;
  557. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  558. thead {
  559. background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
  560. th {
  561. padding: 16px 12px;
  562. text-align: left;
  563. font-weight: 600;
  564. color: #262626;
  565. font-size: 14px;
  566. border-bottom: 2px solid #e6f7ff;
  567. &.col-file { width: 80px; }
  568. &.col-name { width: 200px; }
  569. &.col-upload { width: 100px; }
  570. &.col-space { width: 120px; }
  571. &.col-stage { width: 120px; }
  572. }
  573. }
  574. tbody {
  575. .file-row {
  576. transition: all 0.2s ease;
  577. border-bottom: 1px solid #f0f0f0;
  578. &:hover {
  579. background: #fafafa;
  580. }
  581. &.analyzing {
  582. background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
  583. }
  584. &.completed {
  585. background: linear-gradient(135deg, #f6ffed 0%, #f0fff4 100%);
  586. }
  587. td {
  588. padding: 12px;
  589. vertical-align: middle;
  590. }
  591. // 文件预览列
  592. .file-preview-container {
  593. position: relative; // 🔥 相对定位,为删除按钮提供定位参考
  594. display: inline-block; // 🔥 改为inline-block,避免flex影响
  595. width: 50px; // 🔥 固定容器宽度
  596. height: 50px; // 🔥 固定容器高度
  597. flex-shrink: 0; // 🔥 防止容器被压缩
  598. margin: 0 auto; // 🔥 在单元格中居中
  599. .file-thumbnail {
  600. width: 50px;
  601. height: 50px;
  602. object-fit: cover;
  603. border-radius: 6px;
  604. border: 2px solid #f0f0f0;
  605. background: #fafafa; // 🔥 添加背景色,避免加载时空白
  606. display: block; // 🔥 确保图片正常显示
  607. position: relative; // 🔥 相对定位
  608. z-index: 1; // 🔥 确保图片在下层
  609. // 🔥 企业微信端优化
  610. @media (max-width: 768px) {
  611. width: 44px;
  612. height: 44px;
  613. border-width: 1px;
  614. }
  615. }
  616. .file-icon-placeholder {
  617. width: 50px;
  618. height: 50px;
  619. display: flex;
  620. align-items: center;
  621. justify-content: center;
  622. background: #f5f5f5;
  623. border-radius: 6px;
  624. border: 2px solid #f0f0f0;
  625. flex-shrink: 0; // 🔥 防止被压缩
  626. position: relative; // 🔥 相对定位
  627. z-index: 1; // 🔥 确保占位符在下层
  628. svg {
  629. color: #8c8c8c;
  630. width: 24px; // 🔥 明确指定图标大小
  631. height: 24px;
  632. }
  633. // 🔥 企业微信端优化
  634. @media (max-width: 768px) {
  635. width: 44px;
  636. height: 44px;
  637. border-width: 1px;
  638. svg {
  639. width: 20px;
  640. height: 20px;
  641. }
  642. }
  643. }
  644. .file-delete-btn {
  645. position: absolute !important; // 🔥 强制绝对定位
  646. top: -8px !important;
  647. right: -8px !important;
  648. width: 22px !important; // 🔥 稍微减小尺寸
  649. height: 22px !important;
  650. background: #ff4d4f !important;
  651. border: 2px solid white !important;
  652. border-radius: 50% !important;
  653. display: flex !important;
  654. align-items: center !important;
  655. justify-content: center !important;
  656. cursor: pointer !important;
  657. transition: all 0.2s ease !important;
  658. z-index: 10 !important; // 🔥 确保删除按钮在最上层
  659. padding: 0 !important; // 🔥 移除可能的padding
  660. min-width: auto !important; // 🔥 移除最小宽度限制
  661. min-height: auto !important; // 🔥 移除最小高度限制
  662. &:hover {
  663. background: #ff7875 !important;
  664. transform: scale(1.1) !important;
  665. }
  666. svg {
  667. color: white !important;
  668. width: 12px !important; // 🔥 明确指定图标大小
  669. height: 12px !important;
  670. display: block !important;
  671. }
  672. // 🔥 移动端适配
  673. @media (max-width: 768px) {
  674. width: 18px !important;
  675. height: 18px !important;
  676. top: -5px !important;
  677. right: -5px !important;
  678. border-width: 1px !important;
  679. svg {
  680. width: 10px !important;
  681. height: 10px !important;
  682. }
  683. }
  684. }
  685. // 🔥 移动端容器尺寸
  686. @media (max-width: 768px) {
  687. width: 44px;
  688. height: 44px;
  689. }
  690. }
  691. // 文件信息列
  692. .file-info {
  693. .file-name {
  694. font-size: 13px;
  695. font-weight: 600;
  696. color: #262626;
  697. margin-bottom: 4px;
  698. overflow: hidden;
  699. text-overflow: ellipsis;
  700. white-space: nowrap;
  701. }
  702. .file-size {
  703. font-size: 11px;
  704. color: #8c8c8c;
  705. }
  706. }
  707. // 上传状态列
  708. .upload-status {
  709. .status {
  710. padding: 4px 8px;
  711. border-radius: 4px;
  712. font-size: 12px;
  713. font-weight: 600;
  714. &.analyzing {
  715. background: #e6f7ff;
  716. color: #1890ff;
  717. }
  718. &.completed {
  719. background: #f6ffed;
  720. color: #52c41a;
  721. }
  722. &.pending {
  723. background: #fff7e6;
  724. color: #faad14;
  725. }
  726. }
  727. }
  728. // 空间和阶段结果列
  729. .space-result,
  730. .stage-result {
  731. .placeholder {
  732. color: #94a3b8;
  733. font-size: 12px;
  734. font-style: italic;
  735. &.analyzing {
  736. color: #667eea;
  737. font-weight: 600;
  738. animation: pulse 1.5s ease-in-out infinite;
  739. }
  740. }
  741. .ai-result-container {
  742. display: flex;
  743. align-items: center;
  744. justify-content: center;
  745. gap: 8px;
  746. flex-wrap: wrap;
  747. }
  748. .ai-result {
  749. color: #059669;
  750. font-weight: 600;
  751. background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  752. padding: 6px 12px;
  753. border-radius: 12px;
  754. border: 1px solid #6ee7b7;
  755. display: inline-block;
  756. font-size: 13px;
  757. &.stage-tag {
  758. &[data-stage="white_model"] {
  759. background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  760. color: #475569;
  761. border-color: #cbd5e1;
  762. }
  763. &[data-stage="soft_decor"] {
  764. background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  765. color: #92400e;
  766. border-color: #f59e0b;
  767. }
  768. &[data-stage="rendering"] {
  769. background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  770. color: #1e40af;
  771. border-color: #3b82f6;
  772. }
  773. &[data-stage="post_process"] {
  774. background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  775. color: #7c3aed;
  776. border-color: #a855f7;
  777. }
  778. }
  779. }
  780. .confidence-badge,
  781. .quality-badge {
  782. font-size: 11px;
  783. font-weight: 700;
  784. color: white;
  785. padding: 2px 6px;
  786. border-radius: 8px;
  787. display: inline-block;
  788. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  789. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  790. }
  791. }
  792. }
  793. }
  794. }
  795. }
  796. // JSON格式预览区域 (保留但隐藏)
  797. .json-preview-section {
  798. display: none; // 暂时隐藏JSON预览
  799. margin-bottom: 24px;
  800. background: linear-gradient(135deg, #fff7e6 0%, #fffbf0 100%);
  801. border: 2px solid #ffd591;
  802. border-radius: 12px;
  803. overflow: hidden;
  804. animation: slideDown 0.3s ease-out;
  805. .json-preview-header {
  806. display: flex;
  807. align-items: center;
  808. justify-content: space-between;
  809. padding: 16px 20px;
  810. background: linear-gradient(135deg, #faad14 0%, #d48806 100%);
  811. color: white;
  812. .header-left {
  813. display: flex;
  814. align-items: center;
  815. gap: 8px;
  816. font-size: 15px;
  817. font-weight: 600;
  818. svg {
  819. flex-shrink: 0;
  820. }
  821. }
  822. .toggle-json-btn {
  823. background: rgba(255, 255, 255, 0.2);
  824. border: 1px solid rgba(255, 255, 255, 0.3);
  825. color: white;
  826. padding: 6px 12px;
  827. border-radius: 6px;
  828. font-size: 12px;
  829. font-weight: 500;
  830. cursor: pointer;
  831. transition: all 0.2s ease;
  832. &:hover {
  833. background: rgba(255, 255, 255, 0.3);
  834. }
  835. }
  836. }
  837. .json-preview-content {
  838. padding: 20px;
  839. background: white;
  840. .json-grid {
  841. display: grid;
  842. grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  843. gap: 16px;
  844. .json-item {
  845. background: #fafafa;
  846. border: 2px solid #f0f0f0;
  847. border-radius: 8px;
  848. overflow: hidden;
  849. transition: all 0.2s ease;
  850. &.analyzing {
  851. border-color: #91d5ff;
  852. background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
  853. }
  854. &:hover {
  855. border-color: #40a9ff;
  856. box-shadow: 0 4px 12px rgba(64, 169, 255, 0.15);
  857. }
  858. .json-item-header {
  859. display: flex;
  860. align-items: center;
  861. justify-content: space-between;
  862. padding: 12px 16px;
  863. background: white;
  864. border-bottom: 1px solid #f0f0f0;
  865. .file-info {
  866. flex: 1;
  867. min-width: 0;
  868. .file-name {
  869. display: block;
  870. font-size: 13px;
  871. font-weight: 600;
  872. color: #262626;
  873. margin-bottom: 2px;
  874. overflow: hidden;
  875. text-overflow: ellipsis;
  876. white-space: nowrap;
  877. }
  878. .file-size {
  879. font-size: 11px;
  880. color: #8c8c8c;
  881. }
  882. }
  883. .status-badge {
  884. padding: 4px 8px;
  885. background: #faad14;
  886. color: white;
  887. border-radius: 4px;
  888. font-size: 11px;
  889. font-weight: 600;
  890. &.completed {
  891. background: #52c41a;
  892. }
  893. }
  894. }
  895. .json-item-body {
  896. padding: 16px;
  897. .preview-image {
  898. width: 100%;
  899. height: 120px;
  900. border-radius: 6px;
  901. overflow: hidden;
  902. margin-bottom: 12px;
  903. background: #f5f5f5;
  904. img {
  905. width: 100%;
  906. height: 100%;
  907. object-fit: cover;
  908. }
  909. }
  910. .analysis-info {
  911. .info-row {
  912. display: flex;
  913. align-items: center;
  914. justify-content: space-between;
  915. margin-bottom: 8px;
  916. font-size: 12px;
  917. &:last-child {
  918. margin-bottom: 0;
  919. }
  920. .label {
  921. color: #595959;
  922. font-weight: 500;
  923. min-width: 50px;
  924. }
  925. .value {
  926. color: #262626;
  927. font-weight: 600;
  928. text-align: right;
  929. &.confidence {
  930. color: #faad14;
  931. &.high {
  932. color: #52c41a;
  933. }
  934. }
  935. }
  936. }
  937. }
  938. }
  939. }
  940. }
  941. }
  942. }
  943. // 文件区域
  944. .files-section {
  945. .section-header {
  946. display: flex;
  947. align-items: center;
  948. justify-content: space-between;
  949. margin-bottom: 20px;
  950. h4 {
  951. margin: 0;
  952. font-size: 16px;
  953. font-weight: 600;
  954. color: #262626;
  955. }
  956. .file-actions {
  957. .add-files-btn {
  958. display: flex;
  959. align-items: center;
  960. gap: 6px;
  961. padding: 8px 16px;
  962. background: #f8f9fa;
  963. border: 1px solid #e9ecef;
  964. border-radius: 8px;
  965. color: #495057;
  966. font-size: 14px;
  967. cursor: pointer;
  968. transition: all 0.2s ease;
  969. &:hover {
  970. background: #e9ecef;
  971. border-color: #dee2e6;
  972. }
  973. svg {
  974. flex-shrink: 0;
  975. }
  976. }
  977. }
  978. }
  979. }
  980. // 文件列表
  981. .files-list {
  982. border: 1px solid #e9ecef;
  983. border-radius: 12px;
  984. background: #fafbfc;
  985. min-height: 200px;
  986. max-height: 400px;
  987. overflow-y: auto;
  988. .empty-files {
  989. display: flex;
  990. flex-direction: column;
  991. align-items: center;
  992. justify-content: center;
  993. height: 200px;
  994. color: #8c8c8c;
  995. .empty-icon {
  996. font-size: 48px;
  997. margin-bottom: 12px;
  998. opacity: 0.6;
  999. }
  1000. p {
  1001. margin: 0;
  1002. font-size: 14px;
  1003. }
  1004. }
  1005. }
  1006. // 文件项
  1007. .file-item {
  1008. display: flex;
  1009. align-items: center;
  1010. gap: 16px;
  1011. padding: 16px;
  1012. border-bottom: 1px solid #f0f0f0;
  1013. transition: background-color 0.2s ease;
  1014. &:last-child {
  1015. border-bottom: none;
  1016. }
  1017. &:hover {
  1018. background: rgba(24, 144, 255, 0.04);
  1019. }
  1020. &.uploading {
  1021. background: rgba(24, 144, 255, 0.08);
  1022. }
  1023. &.error {
  1024. background: rgba(255, 77, 79, 0.08);
  1025. }
  1026. // 文件预览
  1027. .file-preview {
  1028. position: relative;
  1029. width: 64px;
  1030. height: 64px;
  1031. border-radius: 8px;
  1032. overflow: hidden;
  1033. background: #f5f5f5;
  1034. display: flex;
  1035. align-items: center;
  1036. justify-content: center;
  1037. flex-shrink: 0;
  1038. .preview-image {
  1039. width: 100%;
  1040. height: 100%;
  1041. object-fit: cover;
  1042. }
  1043. .file-icon {
  1044. font-size: 24px;
  1045. }
  1046. // 状态覆盖层
  1047. .upload-overlay,
  1048. .success-overlay,
  1049. .error-overlay {
  1050. position: absolute;
  1051. top: 0;
  1052. left: 0;
  1053. right: 0;
  1054. bottom: 0;
  1055. display: flex;
  1056. align-items: center;
  1057. justify-content: center;
  1058. border-radius: 8px;
  1059. }
  1060. .upload-overlay {
  1061. background: rgba(24, 144, 255, 0.9);
  1062. .progress-circle {
  1063. position: relative;
  1064. display: flex;
  1065. align-items: center;
  1066. justify-content: center;
  1067. .progress-text {
  1068. position: absolute;
  1069. color: white;
  1070. font-size: 10px;
  1071. font-weight: 600;
  1072. }
  1073. }
  1074. }
  1075. .success-overlay {
  1076. background: rgba(82, 196, 26, 0.9);
  1077. .success-icon {
  1078. color: white;
  1079. font-size: 20px;
  1080. font-weight: bold;
  1081. }
  1082. }
  1083. .error-overlay {
  1084. background: rgba(255, 77, 79, 0.9);
  1085. .error-icon {
  1086. color: white;
  1087. font-size: 20px;
  1088. font-weight: bold;
  1089. }
  1090. }
  1091. }
  1092. // 文件信息
  1093. .file-info {
  1094. flex: 1;
  1095. min-width: 0;
  1096. .file-name {
  1097. font-size: 14px;
  1098. font-weight: 500;
  1099. color: #262626;
  1100. margin-bottom: 4px;
  1101. overflow: hidden;
  1102. text-overflow: ellipsis;
  1103. white-space: nowrap;
  1104. }
  1105. .file-details {
  1106. display: flex;
  1107. align-items: center;
  1108. gap: 12px;
  1109. font-size: 12px;
  1110. color: #8c8c8c;
  1111. .error-message {
  1112. color: #ff4d4f;
  1113. font-weight: 500;
  1114. }
  1115. .analyzing-message {
  1116. color: #1890ff;
  1117. font-weight: 500;
  1118. animation: pulse 1.5s ease-in-out infinite;
  1119. }
  1120. }
  1121. // 图片分析结果样式(简化版)
  1122. .analysis-result {
  1123. margin-top: 8px;
  1124. padding: 8px 10px;
  1125. background: linear-gradient(135deg, #f6ffed 0%, #f0fff4 100%);
  1126. border: 1px solid #b7eb8f;
  1127. border-radius: 6px;
  1128. font-size: 11px;
  1129. .analysis-row {
  1130. display: flex;
  1131. align-items: center;
  1132. gap: 6px;
  1133. margin-bottom: 4px;
  1134. &:last-child {
  1135. margin-bottom: 0;
  1136. }
  1137. }
  1138. .analysis-label {
  1139. color: #52c41a;
  1140. font-weight: 600;
  1141. min-width: 50px;
  1142. }
  1143. .analysis-value {
  1144. color: #262626;
  1145. font-weight: 500;
  1146. }
  1147. .confidence-badge {
  1148. padding: 2px 6px;
  1149. // 🔥 移除硬编码背景色,使用HTML中动态设置的颜色
  1150. // background: #faad14; // ❌ 错误:会覆盖动态颜色
  1151. color: white;
  1152. border-radius: 3px;
  1153. font-size: 10px;
  1154. font-weight: 600;
  1155. // 🔥 确保移动端字体清晰可读
  1156. @media (max-width: 768px) {
  1157. font-size: 9px;
  1158. padding: 2px 5px;
  1159. }
  1160. }
  1161. .quality-badge {
  1162. // 🔥 不设置背景色,使用HTML中动态设置的颜色
  1163. color: white;
  1164. padding: 2px 6px;
  1165. border-radius: 3px;
  1166. font-size: 10px;
  1167. font-weight: 600;
  1168. text-transform: uppercase;
  1169. // 🔥 确保移动端字体清晰可读
  1170. @media (max-width: 768px) {
  1171. font-size: 9px;
  1172. padding: 2px 5px;
  1173. }
  1174. }
  1175. }
  1176. // 文件分类选择样式
  1177. .file-classification {
  1178. margin-top: 12px;
  1179. padding: 12px;
  1180. background: linear-gradient(135deg, #fff7e6 0%, #fffbf0 100%);
  1181. border: 2px solid #ffd591;
  1182. border-radius: 8px;
  1183. .classification-row {
  1184. display: flex;
  1185. align-items: center;
  1186. gap: 8px;
  1187. margin-bottom: 8px;
  1188. &:last-child {
  1189. margin-bottom: 0;
  1190. }
  1191. }
  1192. .classification-label {
  1193. font-size: 12px;
  1194. font-weight: 600;
  1195. color: #d46b08;
  1196. min-width: 45px;
  1197. }
  1198. .classification-select {
  1199. flex: 1;
  1200. padding: 6px 10px;
  1201. border: 1px solid #d9d9d9;
  1202. border-radius: 6px;
  1203. font-size: 12px;
  1204. color: #262626;
  1205. background: white;
  1206. cursor: pointer;
  1207. transition: all 0.2s ease;
  1208. &:hover {
  1209. border-color: #40a9ff;
  1210. }
  1211. &:focus {
  1212. outline: none;
  1213. border-color: #1890ff;
  1214. box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
  1215. }
  1216. &.ai-suggested {
  1217. border-color: #52c41a;
  1218. background: linear-gradient(135deg, #f6ffed 0%, white 100%);
  1219. }
  1220. option {
  1221. padding: 8px;
  1222. }
  1223. }
  1224. }
  1225. }
  1226. // 文件操作
  1227. .file-actions {
  1228. .remove-btn {
  1229. background: none;
  1230. border: none;
  1231. color: #8c8c8c;
  1232. cursor: pointer;
  1233. padding: 8px;
  1234. border-radius: 6px;
  1235. transition: all 0.2s ease;
  1236. &:hover {
  1237. background: #fff2f0;
  1238. color: #ff4d4f;
  1239. }
  1240. }
  1241. }
  1242. }
  1243. // AI分析进度样式
  1244. .analysis-progress {
  1245. margin-top: 20px;
  1246. padding: 16px;
  1247. background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
  1248. border: 1px solid #91d5ff;
  1249. border-radius: 8px;
  1250. .progress-header {
  1251. display: flex;
  1252. align-items: center;
  1253. gap: 8px;
  1254. margin-bottom: 12px;
  1255. color: #1890ff;
  1256. font-weight: 600;
  1257. font-size: 14px;
  1258. svg {
  1259. flex-shrink: 0;
  1260. animation: rotate 2s linear infinite;
  1261. }
  1262. }
  1263. .progress-text {
  1264. color: #1890ff;
  1265. font-size: 13px;
  1266. margin-bottom: 8px;
  1267. font-weight: 500;
  1268. }
  1269. .progress-bar {
  1270. height: 4px;
  1271. background: #e6f7ff;
  1272. border-radius: 2px;
  1273. overflow: hidden;
  1274. .progress-fill {
  1275. height: 100%;
  1276. background: linear-gradient(90deg, #1890ff, #40a9ff);
  1277. border-radius: 2px;
  1278. animation: progressMove 2s ease-in-out infinite;
  1279. }
  1280. }
  1281. }
  1282. // 上传提示
  1283. .upload-tips {
  1284. margin-top: 24px;
  1285. padding: 16px;
  1286. background: #f6ffed;
  1287. border: 1px solid #b7eb8f;
  1288. border-radius: 8px;
  1289. .tips-header {
  1290. display: flex;
  1291. align-items: center;
  1292. gap: 8px;
  1293. margin-bottom: 12px;
  1294. color: #389e0d;
  1295. font-weight: 500;
  1296. font-size: 14px;
  1297. svg {
  1298. flex-shrink: 0;
  1299. }
  1300. }
  1301. .tips-list {
  1302. margin: 0;
  1303. padding-left: 20px;
  1304. color: #52c41a;
  1305. font-size: 13px;
  1306. line-height: 1.6;
  1307. li {
  1308. margin-bottom: 4px;
  1309. &:last-child {
  1310. margin-bottom: 0;
  1311. }
  1312. }
  1313. }
  1314. }
  1315. // 弹窗底部
  1316. .modal-footer {
  1317. display: flex;
  1318. justify-content: space-between;
  1319. align-items: center;
  1320. padding: 20px 28px;
  1321. background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  1322. border-top: 1px solid #e2e8f0;
  1323. border-radius: 0 0 16px 16px;
  1324. min-height: 80px;
  1325. .analysis-summary {
  1326. flex: 1;
  1327. margin-right: 20px;
  1328. .progress-indicator {
  1329. display: flex;
  1330. align-items: center;
  1331. gap: 12px;
  1332. color: #667eea;
  1333. font-weight: 600;
  1334. .spinner-small {
  1335. width: 20px;
  1336. height: 20px;
  1337. border: 2px solid #e0e7ff;
  1338. border-top-color: #667eea;
  1339. border-radius: 50%;
  1340. animation: spin 1s linear infinite;
  1341. }
  1342. }
  1343. .analysis-stats {
  1344. display: flex;
  1345. gap: 16px;
  1346. flex-wrap: wrap;
  1347. .stats-item {
  1348. font-size: 13px;
  1349. color: #64748b;
  1350. strong {
  1351. color: #475569;
  1352. font-weight: 700;
  1353. }
  1354. }
  1355. }
  1356. }
  1357. // 上传状态显示
  1358. .upload-status {
  1359. display: flex;
  1360. align-items: center;
  1361. gap: 12px;
  1362. padding: 16px;
  1363. margin: 16px 0;
  1364. border-radius: 8px;
  1365. background: #f0f9ff;
  1366. border: 1px solid #bae6fd;
  1367. &.success {
  1368. background: #f0f9f4;
  1369. border-color: #86efac;
  1370. color: #166534;
  1371. .status-icon {
  1372. color: #22c55e;
  1373. font-weight: bold;
  1374. font-size: 18px;
  1375. }
  1376. }
  1377. &.error {
  1378. background: #fef2f2;
  1379. border-color: #fca5a5;
  1380. color: #dc2626;
  1381. .status-icon {
  1382. color: #ef4444;
  1383. font-weight: bold;
  1384. font-size: 18px;
  1385. }
  1386. }
  1387. .status-icon {
  1388. display: flex;
  1389. align-items: center;
  1390. justify-content: center;
  1391. width: 24px;
  1392. height: 24px;
  1393. color: #3b82f6;
  1394. font-size: 16px;
  1395. font-weight: bold;
  1396. }
  1397. .loading-spinner {
  1398. width: 16px;
  1399. height: 16px;
  1400. border: 2px solid #e5e7eb;
  1401. border-top: 2px solid #3b82f6;
  1402. border-radius: 50%;
  1403. animation: spin 1s linear infinite;
  1404. }
  1405. .status-message {
  1406. font-size: 14px;
  1407. font-weight: 500;
  1408. }
  1409. }
  1410. .action-buttons {
  1411. display: flex;
  1412. gap: 12px;
  1413. }
  1414. .cancel-btn,
  1415. .confirm-btn {
  1416. padding: 12px 24px;
  1417. border-radius: 10px;
  1418. font-size: 14px;
  1419. font-weight: 600;
  1420. cursor: pointer;
  1421. transition: all 0.3s ease;
  1422. border: none;
  1423. outline: none;
  1424. }
  1425. .cancel-btn {
  1426. background: #f1f5f9;
  1427. color: #64748b;
  1428. border: 1px solid #cbd5e1;
  1429. &:hover {
  1430. background: #e2e8f0;
  1431. color: #475569;
  1432. }
  1433. }
  1434. .confirm-btn {
  1435. background: linear-gradient(135deg, #059669 0%, #047857 100%);
  1436. color: white;
  1437. box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  1438. &:hover:not(:disabled) {
  1439. transform: translateY(-2px);
  1440. box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
  1441. }
  1442. &:disabled {
  1443. opacity: 0.5;
  1444. cursor: not-allowed;
  1445. transform: none;
  1446. box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
  1447. }
  1448. }
  1449. }
  1450. // 动画
  1451. @keyframes fadeIn {
  1452. from {
  1453. opacity: 0;
  1454. }
  1455. to {
  1456. opacity: 1;
  1457. }
  1458. }
  1459. @keyframes slideUp {
  1460. from {
  1461. transform: translateY(30px);
  1462. opacity: 0;
  1463. }
  1464. to {
  1465. transform: translateY(0);
  1466. opacity: 1;
  1467. }
  1468. }
  1469. @keyframes slideDown {
  1470. from {
  1471. transform: translateY(-20px);
  1472. opacity: 0;
  1473. }
  1474. to {
  1475. transform: translateY(0);
  1476. opacity: 1;
  1477. }
  1478. }
  1479. @keyframes bounce {
  1480. 0%, 20%, 50%, 80%, 100% {
  1481. transform: translateY(0);
  1482. }
  1483. 40% {
  1484. transform: translateY(-8px);
  1485. }
  1486. 60% {
  1487. transform: translateY(-4px);
  1488. }
  1489. }
  1490. // AI分析相关动画
  1491. @keyframes pulse {
  1492. 0% { transform: scale(1); }
  1493. 50% { transform: scale(1.05); }
  1494. 100% { transform: scale(1); }
  1495. }
  1496. @keyframes glow {
  1497. 0% { box-shadow: 0 0 5px rgba(24, 144, 255, 0.5); }
  1498. 50% { box-shadow: 0 0 20px rgba(24, 144, 255, 0.8); }
  1499. 100% { box-shadow: 0 0 5px rgba(24, 144, 255, 0.5); }
  1500. }
  1501. @keyframes spin {
  1502. 0% { transform: rotate(0deg); }
  1503. 100% { transform: rotate(360deg); }
  1504. }
  1505. // 特殊状态动画
  1506. .analyzing {
  1507. animation: pulse 1.5s ease-in-out infinite;
  1508. }
  1509. .completed {
  1510. animation: glow 2s ease-in-out;
  1511. }
  1512. @keyframes rotate {
  1513. from {
  1514. transform: rotate(0deg);
  1515. }
  1516. to {
  1517. transform: rotate(360deg);
  1518. }
  1519. }
  1520. @keyframes spin {
  1521. 0% { transform: rotate(0deg); }
  1522. 100% { transform: rotate(360deg); }
  1523. }
  1524. @keyframes progressMove {
  1525. 0% {
  1526. transform: translateX(-100%);
  1527. }
  1528. 50% {
  1529. transform: translateX(0%);
  1530. }
  1531. 100% {
  1532. transform: translateX(100%);
  1533. }
  1534. }
  1535. // 响应式设计 - 移动端优化(参考图片一的显示效果)
  1536. @media (max-width: 768px) {
  1537. .drag-upload-modal-overlay {
  1538. align-items: flex-start;
  1539. padding: 0;
  1540. }
  1541. .drag-upload-modal-container {
  1542. width: 100vw;
  1543. max-width: 100vw;
  1544. max-height: 100vh;
  1545. height: 100vh;
  1546. margin: 0;
  1547. border-radius: 0;
  1548. position: relative;
  1549. }
  1550. .modal-body {
  1551. padding: 8px;
  1552. max-height: calc(100vh - 140px);
  1553. overflow-y: auto;
  1554. overflow-x: hidden;
  1555. background: #f5f5f5;
  1556. }
  1557. // 表格容器 - 确保表格结构正确显示
  1558. .files-analysis-table {
  1559. overflow-x: auto;
  1560. -webkit-overflow-scrolling: touch;
  1561. background: white;
  1562. border-radius: 8px;
  1563. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  1564. .analysis-table {
  1565. width: 100%;
  1566. min-width: 100%; // 移除最小宽度限制,让表格自适应
  1567. font-size: 11px;
  1568. display: table; // 确保表格显示
  1569. border-collapse: collapse;
  1570. thead {
  1571. display: table-header-group; // 确保表头显示
  1572. background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
  1573. tr {
  1574. display: table-row;
  1575. }
  1576. th {
  1577. display: table-cell; // 确保单元格显示
  1578. padding: 8px 4px;
  1579. font-size: 11px;
  1580. white-space: nowrap;
  1581. text-align: center;
  1582. vertical-align: middle;
  1583. border-bottom: 2px solid #e6f7ff;
  1584. &.col-file {
  1585. width: 50px;
  1586. }
  1587. &.col-name {
  1588. width: auto;
  1589. min-width: 100px;
  1590. }
  1591. &.col-upload {
  1592. width: 50px;
  1593. }
  1594. &.col-space {
  1595. width: 70px;
  1596. }
  1597. &.col-stage {
  1598. width: 70px;
  1599. }
  1600. }
  1601. }
  1602. tbody {
  1603. display: table-row-group; // 确保表体显示
  1604. .file-row {
  1605. display: table-row; // 确保行显示
  1606. border-bottom: 1px solid #f0f0f0;
  1607. td {
  1608. display: table-cell; // 确保单元格显示
  1609. padding: 6px 4px;
  1610. vertical-align: middle;
  1611. }
  1612. // 文件预览缩小
  1613. .file-preview-container {
  1614. display: inline-block !important; // 🔥 强制inline-block,避免flex影响
  1615. position: relative !important;
  1616. width: 40px !important; // 🔥 固定容器宽度
  1617. height: 40px !important; // 🔥 固定容器高度
  1618. flex-shrink: 0 !important; // 🔥 防止被压缩
  1619. margin: 0 auto !important; // 🔥 在单元格中居中
  1620. .file-thumbnail,
  1621. .file-icon-placeholder {
  1622. width: 40px !important; // 🔥 增大到40px,更清晰
  1623. height: 40px !important;
  1624. border-radius: 4px !important;
  1625. flex-shrink: 0 !important; // 🔥 防止被压缩
  1626. position: relative !important;
  1627. z-index: 1 !important; // 🔥 确保在下层
  1628. display: block !important;
  1629. }
  1630. .file-delete-btn {
  1631. position: absolute !important; // 🔥 强制绝对定位
  1632. width: 16px !important; // 🔥 移动端进一步减小
  1633. height: 16px !important;
  1634. top: -4px !important; // 🔥 调整定位,避免太靠边
  1635. right: -4px !important;
  1636. z-index: 10 !important; // 🔥 确保在上层
  1637. background: #ff4d4f !important;
  1638. border: 1px solid white !important;
  1639. border-radius: 50% !important;
  1640. display: flex !important;
  1641. align-items: center !important;
  1642. justify-content: center !important;
  1643. cursor: pointer !important;
  1644. padding: 0 !important;
  1645. min-width: auto !important;
  1646. min-height: auto !important;
  1647. svg {
  1648. width: 9px !important;
  1649. height: 9px !important;
  1650. color: white !important;
  1651. display: block !important;
  1652. }
  1653. }
  1654. }
  1655. // 文件信息
  1656. .file-info {
  1657. .file-name {
  1658. font-size: 10px;
  1659. margin-bottom: 2px;
  1660. line-height: 1.2;
  1661. max-width: 100px;
  1662. overflow: hidden;
  1663. text-overflow: ellipsis;
  1664. white-space: nowrap;
  1665. }
  1666. .file-size {
  1667. font-size: 9px;
  1668. color: #999;
  1669. }
  1670. }
  1671. // 上传状态
  1672. .upload-status {
  1673. text-align: center;
  1674. .status {
  1675. font-size: 9px;
  1676. padding: 2px 4px;
  1677. border-radius: 3px;
  1678. display: inline-block;
  1679. }
  1680. }
  1681. // 空间和阶段结果
  1682. .space-result,
  1683. .stage-result {
  1684. text-align: center;
  1685. .ai-result-container {
  1686. display: flex;
  1687. flex-direction: column;
  1688. gap: 2px;
  1689. align-items: center;
  1690. }
  1691. .ai-result {
  1692. font-size: 9px;
  1693. padding: 2px 4px;
  1694. border-radius: 3px;
  1695. white-space: nowrap;
  1696. max-width: 60px;
  1697. overflow: hidden;
  1698. text-overflow: ellipsis;
  1699. }
  1700. .confidence-badge,
  1701. .quality-badge {
  1702. font-size: 8px;
  1703. padding: 1px 3px;
  1704. border-radius: 2px;
  1705. }
  1706. .placeholder {
  1707. font-size: 9px;
  1708. color: #999;
  1709. }
  1710. }
  1711. }
  1712. }
  1713. }
  1714. }
  1715. // 底部按钮区域优化
  1716. .modal-footer {
  1717. flex-direction: column;
  1718. gap: 8px;
  1719. align-items: stretch;
  1720. padding: 10px 12px;
  1721. min-height: auto;
  1722. background: white;
  1723. border-top: 1px solid #e8e8e8;
  1724. .analysis-summary {
  1725. margin-right: 0;
  1726. margin-bottom: 0;
  1727. .progress-indicator {
  1728. justify-content: center;
  1729. font-size: 11px;
  1730. .spinner-small {
  1731. width: 14px;
  1732. height: 14px;
  1733. }
  1734. }
  1735. .analysis-stats {
  1736. justify-content: center;
  1737. gap: 6px;
  1738. flex-wrap: wrap;
  1739. .stats-item {
  1740. font-size: 10px;
  1741. }
  1742. }
  1743. }
  1744. .upload-status {
  1745. padding: 10px;
  1746. margin: 0;
  1747. .status-message {
  1748. font-size: 11px;
  1749. }
  1750. }
  1751. .action-buttons {
  1752. width: 100%;
  1753. gap: 8px;
  1754. display: flex;
  1755. .cancel-btn,
  1756. .confirm-btn {
  1757. flex: 1;
  1758. padding: 12px 16px;
  1759. font-size: 14px;
  1760. border-radius: 8px;
  1761. }
  1762. }
  1763. }
  1764. // AI分析进度覆盖层优化
  1765. .analysis-progress-overlay {
  1766. .progress-content {
  1767. padding: 20px;
  1768. .ai-brain-icon {
  1769. width: 48px;
  1770. height: 48px;
  1771. margin-bottom: 16px;
  1772. svg {
  1773. width: 24px;
  1774. height: 24px;
  1775. }
  1776. }
  1777. .progress-text {
  1778. font-size: 13px;
  1779. margin-bottom: 12px;
  1780. }
  1781. .progress-bar {
  1782. height: 4px;
  1783. }
  1784. }
  1785. }
  1786. }
  1787. // 图片查看器
  1788. .image-viewer-overlay {
  1789. position: fixed;
  1790. top: 0;
  1791. left: 0;
  1792. right: 0;
  1793. bottom: 0;
  1794. background: rgba(0, 0, 0, 0.95);
  1795. display: flex;
  1796. align-items: center;
  1797. justify-content: center;
  1798. z-index: 3000;
  1799. animation: fadeIn 0.2s ease-out;
  1800. }
  1801. .image-viewer-container {
  1802. position: relative;
  1803. max-width: 95vw;
  1804. max-height: 95vh;
  1805. display: flex;
  1806. flex-direction: column;
  1807. align-items: center;
  1808. gap: 16px;
  1809. .close-viewer-btn {
  1810. position: absolute;
  1811. top: -50px;
  1812. right: 0;
  1813. background: rgba(255, 255, 255, 0.1);
  1814. border: none;
  1815. color: white;
  1816. cursor: pointer;
  1817. padding: 12px;
  1818. border-radius: 50%;
  1819. transition: all 0.2s ease;
  1820. z-index: 10;
  1821. &:hover {
  1822. background: rgba(255, 255, 255, 0.2);
  1823. transform: scale(1.1);
  1824. }
  1825. svg {
  1826. display: block;
  1827. }
  1828. }
  1829. .full-image {
  1830. max-width: 95vw;
  1831. max-height: 80vh;
  1832. object-fit: contain;
  1833. border-radius: 8px;
  1834. box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  1835. }
  1836. .image-info {
  1837. background: rgba(255, 255, 255, 0.1);
  1838. backdrop-filter: blur(10px);
  1839. padding: 12px 20px;
  1840. border-radius: 8px;
  1841. color: white;
  1842. text-align: center;
  1843. .image-name {
  1844. font-size: 14px;
  1845. font-weight: 600;
  1846. margin-bottom: 4px;
  1847. }
  1848. .image-details {
  1849. font-size: 12px;
  1850. opacity: 0.8;
  1851. display: flex;
  1852. align-items: center;
  1853. justify-content: center;
  1854. gap: 8px;
  1855. .separator {
  1856. opacity: 0.5;
  1857. }
  1858. }
  1859. }
  1860. }
  1861. // 缩略图可点击提示
  1862. .file-thumbnail {
  1863. cursor: pointer;
  1864. transition: all 0.2s ease;
  1865. &:hover {
  1866. transform: scale(1.05);
  1867. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  1868. }
  1869. }