drag-upload-modal.component.scss 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118
  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: flex;
  595. align-items: center;
  596. .file-thumbnail {
  597. width: 50px;
  598. height: 50px;
  599. object-fit: cover;
  600. border-radius: 6px;
  601. border: 2px solid #f0f0f0;
  602. background: #fafafa; // 🔥 添加背景色,避免加载时空白
  603. display: block; // 🔥 确保图片正常显示
  604. // 🔥 企业微信端优化
  605. @media (max-width: 768px) {
  606. width: 44px;
  607. height: 44px;
  608. border-width: 1px;
  609. }
  610. }
  611. .file-icon-placeholder {
  612. width: 50px;
  613. height: 50px;
  614. display: flex;
  615. align-items: center;
  616. justify-content: center;
  617. background: #f5f5f5;
  618. border-radius: 6px;
  619. border: 2px solid #f0f0f0;
  620. flex-shrink: 0; // 🔥 防止被压缩
  621. svg {
  622. color: #8c8c8c;
  623. width: 24px; // 🔥 明确指定图标大小
  624. height: 24px;
  625. }
  626. // 🔥 企业微信端优化
  627. @media (max-width: 768px) {
  628. width: 44px;
  629. height: 44px;
  630. border-width: 1px;
  631. svg {
  632. width: 20px;
  633. height: 20px;
  634. }
  635. }
  636. }
  637. .file-delete-btn {
  638. position: absolute;
  639. top: -8px;
  640. right: -8px;
  641. width: 24px;
  642. height: 24px;
  643. background: #ff4d4f;
  644. border: 2px solid white;
  645. border-radius: 50%;
  646. display: flex;
  647. align-items: center;
  648. justify-content: center;
  649. cursor: pointer;
  650. transition: all 0.2s ease;
  651. &:hover {
  652. background: #ff7875;
  653. transform: scale(1.1);
  654. }
  655. svg {
  656. color: white;
  657. }
  658. }
  659. }
  660. // 文件信息列
  661. .file-info {
  662. .file-name {
  663. font-size: 13px;
  664. font-weight: 600;
  665. color: #262626;
  666. margin-bottom: 4px;
  667. overflow: hidden;
  668. text-overflow: ellipsis;
  669. white-space: nowrap;
  670. }
  671. .file-size {
  672. font-size: 11px;
  673. color: #8c8c8c;
  674. }
  675. }
  676. // 上传状态列
  677. .upload-status {
  678. .status {
  679. padding: 4px 8px;
  680. border-radius: 4px;
  681. font-size: 12px;
  682. font-weight: 600;
  683. &.analyzing {
  684. background: #e6f7ff;
  685. color: #1890ff;
  686. }
  687. &.completed {
  688. background: #f6ffed;
  689. color: #52c41a;
  690. }
  691. &.pending {
  692. background: #fff7e6;
  693. color: #faad14;
  694. }
  695. }
  696. }
  697. // 空间和阶段结果列
  698. .space-result,
  699. .stage-result {
  700. .placeholder {
  701. color: #94a3b8;
  702. font-size: 12px;
  703. font-style: italic;
  704. &.analyzing {
  705. color: #667eea;
  706. font-weight: 600;
  707. animation: pulse 1.5s ease-in-out infinite;
  708. }
  709. }
  710. .ai-result-container {
  711. display: flex;
  712. align-items: center;
  713. justify-content: center;
  714. gap: 8px;
  715. flex-wrap: wrap;
  716. }
  717. .ai-result {
  718. color: #059669;
  719. font-weight: 600;
  720. background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  721. padding: 6px 12px;
  722. border-radius: 12px;
  723. border: 1px solid #6ee7b7;
  724. display: inline-block;
  725. font-size: 13px;
  726. &.stage-tag {
  727. &[data-stage="white_model"] {
  728. background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  729. color: #475569;
  730. border-color: #cbd5e1;
  731. }
  732. &[data-stage="soft_decor"] {
  733. background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  734. color: #92400e;
  735. border-color: #f59e0b;
  736. }
  737. &[data-stage="rendering"] {
  738. background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  739. color: #1e40af;
  740. border-color: #3b82f6;
  741. }
  742. &[data-stage="post_process"] {
  743. background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  744. color: #7c3aed;
  745. border-color: #a855f7;
  746. }
  747. }
  748. }
  749. .confidence-badge,
  750. .quality-badge {
  751. font-size: 11px;
  752. font-weight: 700;
  753. color: white;
  754. padding: 2px 6px;
  755. border-radius: 8px;
  756. display: inline-block;
  757. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  758. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  759. }
  760. }
  761. }
  762. }
  763. }
  764. }
  765. // JSON格式预览区域 (保留但隐藏)
  766. .json-preview-section {
  767. display: none; // 暂时隐藏JSON预览
  768. margin-bottom: 24px;
  769. background: linear-gradient(135deg, #fff7e6 0%, #fffbf0 100%);
  770. border: 2px solid #ffd591;
  771. border-radius: 12px;
  772. overflow: hidden;
  773. animation: slideDown 0.3s ease-out;
  774. .json-preview-header {
  775. display: flex;
  776. align-items: center;
  777. justify-content: space-between;
  778. padding: 16px 20px;
  779. background: linear-gradient(135deg, #faad14 0%, #d48806 100%);
  780. color: white;
  781. .header-left {
  782. display: flex;
  783. align-items: center;
  784. gap: 8px;
  785. font-size: 15px;
  786. font-weight: 600;
  787. svg {
  788. flex-shrink: 0;
  789. }
  790. }
  791. .toggle-json-btn {
  792. background: rgba(255, 255, 255, 0.2);
  793. border: 1px solid rgba(255, 255, 255, 0.3);
  794. color: white;
  795. padding: 6px 12px;
  796. border-radius: 6px;
  797. font-size: 12px;
  798. font-weight: 500;
  799. cursor: pointer;
  800. transition: all 0.2s ease;
  801. &:hover {
  802. background: rgba(255, 255, 255, 0.3);
  803. }
  804. }
  805. }
  806. .json-preview-content {
  807. padding: 20px;
  808. background: white;
  809. .json-grid {
  810. display: grid;
  811. grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  812. gap: 16px;
  813. .json-item {
  814. background: #fafafa;
  815. border: 2px solid #f0f0f0;
  816. border-radius: 8px;
  817. overflow: hidden;
  818. transition: all 0.2s ease;
  819. &.analyzing {
  820. border-color: #91d5ff;
  821. background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
  822. }
  823. &:hover {
  824. border-color: #40a9ff;
  825. box-shadow: 0 4px 12px rgba(64, 169, 255, 0.15);
  826. }
  827. .json-item-header {
  828. display: flex;
  829. align-items: center;
  830. justify-content: space-between;
  831. padding: 12px 16px;
  832. background: white;
  833. border-bottom: 1px solid #f0f0f0;
  834. .file-info {
  835. flex: 1;
  836. min-width: 0;
  837. .file-name {
  838. display: block;
  839. font-size: 13px;
  840. font-weight: 600;
  841. color: #262626;
  842. margin-bottom: 2px;
  843. overflow: hidden;
  844. text-overflow: ellipsis;
  845. white-space: nowrap;
  846. }
  847. .file-size {
  848. font-size: 11px;
  849. color: #8c8c8c;
  850. }
  851. }
  852. .status-badge {
  853. padding: 4px 8px;
  854. background: #faad14;
  855. color: white;
  856. border-radius: 4px;
  857. font-size: 11px;
  858. font-weight: 600;
  859. &.completed {
  860. background: #52c41a;
  861. }
  862. }
  863. }
  864. .json-item-body {
  865. padding: 16px;
  866. .preview-image {
  867. width: 100%;
  868. height: 120px;
  869. border-radius: 6px;
  870. overflow: hidden;
  871. margin-bottom: 12px;
  872. background: #f5f5f5;
  873. img {
  874. width: 100%;
  875. height: 100%;
  876. object-fit: cover;
  877. }
  878. }
  879. .analysis-info {
  880. .info-row {
  881. display: flex;
  882. align-items: center;
  883. justify-content: space-between;
  884. margin-bottom: 8px;
  885. font-size: 12px;
  886. &:last-child {
  887. margin-bottom: 0;
  888. }
  889. .label {
  890. color: #595959;
  891. font-weight: 500;
  892. min-width: 50px;
  893. }
  894. .value {
  895. color: #262626;
  896. font-weight: 600;
  897. text-align: right;
  898. &.confidence {
  899. color: #faad14;
  900. &.high {
  901. color: #52c41a;
  902. }
  903. }
  904. }
  905. }
  906. }
  907. }
  908. }
  909. }
  910. }
  911. }
  912. // 文件区域
  913. .files-section {
  914. .section-header {
  915. display: flex;
  916. align-items: center;
  917. justify-content: space-between;
  918. margin-bottom: 20px;
  919. h4 {
  920. margin: 0;
  921. font-size: 16px;
  922. font-weight: 600;
  923. color: #262626;
  924. }
  925. .file-actions {
  926. .add-files-btn {
  927. display: flex;
  928. align-items: center;
  929. gap: 6px;
  930. padding: 8px 16px;
  931. background: #f8f9fa;
  932. border: 1px solid #e9ecef;
  933. border-radius: 8px;
  934. color: #495057;
  935. font-size: 14px;
  936. cursor: pointer;
  937. transition: all 0.2s ease;
  938. &:hover {
  939. background: #e9ecef;
  940. border-color: #dee2e6;
  941. }
  942. svg {
  943. flex-shrink: 0;
  944. }
  945. }
  946. }
  947. }
  948. }
  949. // 文件列表
  950. .files-list {
  951. border: 1px solid #e9ecef;
  952. border-radius: 12px;
  953. background: #fafbfc;
  954. min-height: 200px;
  955. max-height: 400px;
  956. overflow-y: auto;
  957. .empty-files {
  958. display: flex;
  959. flex-direction: column;
  960. align-items: center;
  961. justify-content: center;
  962. height: 200px;
  963. color: #8c8c8c;
  964. .empty-icon {
  965. font-size: 48px;
  966. margin-bottom: 12px;
  967. opacity: 0.6;
  968. }
  969. p {
  970. margin: 0;
  971. font-size: 14px;
  972. }
  973. }
  974. }
  975. // 文件项
  976. .file-item {
  977. display: flex;
  978. align-items: center;
  979. gap: 16px;
  980. padding: 16px;
  981. border-bottom: 1px solid #f0f0f0;
  982. transition: background-color 0.2s ease;
  983. &:last-child {
  984. border-bottom: none;
  985. }
  986. &:hover {
  987. background: rgba(24, 144, 255, 0.04);
  988. }
  989. &.uploading {
  990. background: rgba(24, 144, 255, 0.08);
  991. }
  992. &.error {
  993. background: rgba(255, 77, 79, 0.08);
  994. }
  995. // 文件预览
  996. .file-preview {
  997. position: relative;
  998. width: 64px;
  999. height: 64px;
  1000. border-radius: 8px;
  1001. overflow: hidden;
  1002. background: #f5f5f5;
  1003. display: flex;
  1004. align-items: center;
  1005. justify-content: center;
  1006. flex-shrink: 0;
  1007. .preview-image {
  1008. width: 100%;
  1009. height: 100%;
  1010. object-fit: cover;
  1011. }
  1012. .file-icon {
  1013. font-size: 24px;
  1014. }
  1015. // 状态覆盖层
  1016. .upload-overlay,
  1017. .success-overlay,
  1018. .error-overlay {
  1019. position: absolute;
  1020. top: 0;
  1021. left: 0;
  1022. right: 0;
  1023. bottom: 0;
  1024. display: flex;
  1025. align-items: center;
  1026. justify-content: center;
  1027. border-radius: 8px;
  1028. }
  1029. .upload-overlay {
  1030. background: rgba(24, 144, 255, 0.9);
  1031. .progress-circle {
  1032. position: relative;
  1033. display: flex;
  1034. align-items: center;
  1035. justify-content: center;
  1036. .progress-text {
  1037. position: absolute;
  1038. color: white;
  1039. font-size: 10px;
  1040. font-weight: 600;
  1041. }
  1042. }
  1043. }
  1044. .success-overlay {
  1045. background: rgba(82, 196, 26, 0.9);
  1046. .success-icon {
  1047. color: white;
  1048. font-size: 20px;
  1049. font-weight: bold;
  1050. }
  1051. }
  1052. .error-overlay {
  1053. background: rgba(255, 77, 79, 0.9);
  1054. .error-icon {
  1055. color: white;
  1056. font-size: 20px;
  1057. font-weight: bold;
  1058. }
  1059. }
  1060. }
  1061. // 文件信息
  1062. .file-info {
  1063. flex: 1;
  1064. min-width: 0;
  1065. .file-name {
  1066. font-size: 14px;
  1067. font-weight: 500;
  1068. color: #262626;
  1069. margin-bottom: 4px;
  1070. overflow: hidden;
  1071. text-overflow: ellipsis;
  1072. white-space: nowrap;
  1073. }
  1074. .file-details {
  1075. display: flex;
  1076. align-items: center;
  1077. gap: 12px;
  1078. font-size: 12px;
  1079. color: #8c8c8c;
  1080. .error-message {
  1081. color: #ff4d4f;
  1082. font-weight: 500;
  1083. }
  1084. .analyzing-message {
  1085. color: #1890ff;
  1086. font-weight: 500;
  1087. animation: pulse 1.5s ease-in-out infinite;
  1088. }
  1089. }
  1090. // 图片分析结果样式(简化版)
  1091. .analysis-result {
  1092. margin-top: 8px;
  1093. padding: 8px 10px;
  1094. background: linear-gradient(135deg, #f6ffed 0%, #f0fff4 100%);
  1095. border: 1px solid #b7eb8f;
  1096. border-radius: 6px;
  1097. font-size: 11px;
  1098. .analysis-row {
  1099. display: flex;
  1100. align-items: center;
  1101. gap: 6px;
  1102. margin-bottom: 4px;
  1103. &:last-child {
  1104. margin-bottom: 0;
  1105. }
  1106. }
  1107. .analysis-label {
  1108. color: #52c41a;
  1109. font-weight: 600;
  1110. min-width: 50px;
  1111. }
  1112. .analysis-value {
  1113. color: #262626;
  1114. font-weight: 500;
  1115. }
  1116. .confidence-badge {
  1117. padding: 2px 6px;
  1118. // 🔥 移除硬编码背景色,使用HTML中动态设置的颜色
  1119. // background: #faad14; // ❌ 错误:会覆盖动态颜色
  1120. color: white;
  1121. border-radius: 3px;
  1122. font-size: 10px;
  1123. font-weight: 600;
  1124. // 🔥 确保移动端字体清晰可读
  1125. @media (max-width: 768px) {
  1126. font-size: 9px;
  1127. padding: 2px 5px;
  1128. }
  1129. }
  1130. .quality-badge {
  1131. // 🔥 不设置背景色,使用HTML中动态设置的颜色
  1132. color: white;
  1133. padding: 2px 6px;
  1134. border-radius: 3px;
  1135. font-size: 10px;
  1136. font-weight: 600;
  1137. text-transform: uppercase;
  1138. // 🔥 确保移动端字体清晰可读
  1139. @media (max-width: 768px) {
  1140. font-size: 9px;
  1141. padding: 2px 5px;
  1142. }
  1143. }
  1144. }
  1145. // 文件分类选择样式
  1146. .file-classification {
  1147. margin-top: 12px;
  1148. padding: 12px;
  1149. background: linear-gradient(135deg, #fff7e6 0%, #fffbf0 100%);
  1150. border: 2px solid #ffd591;
  1151. border-radius: 8px;
  1152. .classification-row {
  1153. display: flex;
  1154. align-items: center;
  1155. gap: 8px;
  1156. margin-bottom: 8px;
  1157. &:last-child {
  1158. margin-bottom: 0;
  1159. }
  1160. }
  1161. .classification-label {
  1162. font-size: 12px;
  1163. font-weight: 600;
  1164. color: #d46b08;
  1165. min-width: 45px;
  1166. }
  1167. .classification-select {
  1168. flex: 1;
  1169. padding: 6px 10px;
  1170. border: 1px solid #d9d9d9;
  1171. border-radius: 6px;
  1172. font-size: 12px;
  1173. color: #262626;
  1174. background: white;
  1175. cursor: pointer;
  1176. transition: all 0.2s ease;
  1177. &:hover {
  1178. border-color: #40a9ff;
  1179. }
  1180. &:focus {
  1181. outline: none;
  1182. border-color: #1890ff;
  1183. box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
  1184. }
  1185. &.ai-suggested {
  1186. border-color: #52c41a;
  1187. background: linear-gradient(135deg, #f6ffed 0%, white 100%);
  1188. }
  1189. option {
  1190. padding: 8px;
  1191. }
  1192. }
  1193. }
  1194. }
  1195. // 文件操作
  1196. .file-actions {
  1197. .remove-btn {
  1198. background: none;
  1199. border: none;
  1200. color: #8c8c8c;
  1201. cursor: pointer;
  1202. padding: 8px;
  1203. border-radius: 6px;
  1204. transition: all 0.2s ease;
  1205. &:hover {
  1206. background: #fff2f0;
  1207. color: #ff4d4f;
  1208. }
  1209. }
  1210. }
  1211. }
  1212. // AI分析进度样式
  1213. .analysis-progress {
  1214. margin-top: 20px;
  1215. padding: 16px;
  1216. background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
  1217. border: 1px solid #91d5ff;
  1218. border-radius: 8px;
  1219. .progress-header {
  1220. display: flex;
  1221. align-items: center;
  1222. gap: 8px;
  1223. margin-bottom: 12px;
  1224. color: #1890ff;
  1225. font-weight: 600;
  1226. font-size: 14px;
  1227. svg {
  1228. flex-shrink: 0;
  1229. animation: rotate 2s linear infinite;
  1230. }
  1231. }
  1232. .progress-text {
  1233. color: #1890ff;
  1234. font-size: 13px;
  1235. margin-bottom: 8px;
  1236. font-weight: 500;
  1237. }
  1238. .progress-bar {
  1239. height: 4px;
  1240. background: #e6f7ff;
  1241. border-radius: 2px;
  1242. overflow: hidden;
  1243. .progress-fill {
  1244. height: 100%;
  1245. background: linear-gradient(90deg, #1890ff, #40a9ff);
  1246. border-radius: 2px;
  1247. animation: progressMove 2s ease-in-out infinite;
  1248. }
  1249. }
  1250. }
  1251. // 上传提示
  1252. .upload-tips {
  1253. margin-top: 24px;
  1254. padding: 16px;
  1255. background: #f6ffed;
  1256. border: 1px solid #b7eb8f;
  1257. border-radius: 8px;
  1258. .tips-header {
  1259. display: flex;
  1260. align-items: center;
  1261. gap: 8px;
  1262. margin-bottom: 12px;
  1263. color: #389e0d;
  1264. font-weight: 500;
  1265. font-size: 14px;
  1266. svg {
  1267. flex-shrink: 0;
  1268. }
  1269. }
  1270. .tips-list {
  1271. margin: 0;
  1272. padding-left: 20px;
  1273. color: #52c41a;
  1274. font-size: 13px;
  1275. line-height: 1.6;
  1276. li {
  1277. margin-bottom: 4px;
  1278. &:last-child {
  1279. margin-bottom: 0;
  1280. }
  1281. }
  1282. }
  1283. }
  1284. // 弹窗底部
  1285. .modal-footer {
  1286. display: flex;
  1287. justify-content: space-between;
  1288. align-items: center;
  1289. padding: 20px 28px;
  1290. background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  1291. border-top: 1px solid #e2e8f0;
  1292. border-radius: 0 0 16px 16px;
  1293. min-height: 80px;
  1294. .analysis-summary {
  1295. flex: 1;
  1296. margin-right: 20px;
  1297. .progress-indicator {
  1298. display: flex;
  1299. align-items: center;
  1300. gap: 12px;
  1301. color: #667eea;
  1302. font-weight: 600;
  1303. .spinner-small {
  1304. width: 20px;
  1305. height: 20px;
  1306. border: 2px solid #e0e7ff;
  1307. border-top-color: #667eea;
  1308. border-radius: 50%;
  1309. animation: spin 1s linear infinite;
  1310. }
  1311. }
  1312. .analysis-stats {
  1313. display: flex;
  1314. gap: 16px;
  1315. flex-wrap: wrap;
  1316. .stats-item {
  1317. font-size: 13px;
  1318. color: #64748b;
  1319. strong {
  1320. color: #475569;
  1321. font-weight: 700;
  1322. }
  1323. }
  1324. }
  1325. }
  1326. // 上传状态显示
  1327. .upload-status {
  1328. display: flex;
  1329. align-items: center;
  1330. gap: 12px;
  1331. padding: 16px;
  1332. margin: 16px 0;
  1333. border-radius: 8px;
  1334. background: #f0f9ff;
  1335. border: 1px solid #bae6fd;
  1336. &.success {
  1337. background: #f0f9f4;
  1338. border-color: #86efac;
  1339. color: #166534;
  1340. .status-icon {
  1341. color: #22c55e;
  1342. font-weight: bold;
  1343. font-size: 18px;
  1344. }
  1345. }
  1346. &.error {
  1347. background: #fef2f2;
  1348. border-color: #fca5a5;
  1349. color: #dc2626;
  1350. .status-icon {
  1351. color: #ef4444;
  1352. font-weight: bold;
  1353. font-size: 18px;
  1354. }
  1355. }
  1356. .status-icon {
  1357. display: flex;
  1358. align-items: center;
  1359. justify-content: center;
  1360. width: 24px;
  1361. height: 24px;
  1362. color: #3b82f6;
  1363. font-size: 16px;
  1364. font-weight: bold;
  1365. }
  1366. .loading-spinner {
  1367. width: 16px;
  1368. height: 16px;
  1369. border: 2px solid #e5e7eb;
  1370. border-top: 2px solid #3b82f6;
  1371. border-radius: 50%;
  1372. animation: spin 1s linear infinite;
  1373. }
  1374. .status-message {
  1375. font-size: 14px;
  1376. font-weight: 500;
  1377. }
  1378. }
  1379. .action-buttons {
  1380. display: flex;
  1381. gap: 12px;
  1382. }
  1383. .cancel-btn,
  1384. .confirm-btn {
  1385. padding: 12px 24px;
  1386. border-radius: 10px;
  1387. font-size: 14px;
  1388. font-weight: 600;
  1389. cursor: pointer;
  1390. transition: all 0.3s ease;
  1391. border: none;
  1392. outline: none;
  1393. }
  1394. .cancel-btn {
  1395. background: #f1f5f9;
  1396. color: #64748b;
  1397. border: 1px solid #cbd5e1;
  1398. &:hover {
  1399. background: #e2e8f0;
  1400. color: #475569;
  1401. }
  1402. }
  1403. .confirm-btn {
  1404. background: linear-gradient(135deg, #059669 0%, #047857 100%);
  1405. color: white;
  1406. box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  1407. &:hover:not(:disabled) {
  1408. transform: translateY(-2px);
  1409. box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
  1410. }
  1411. &:disabled {
  1412. opacity: 0.5;
  1413. cursor: not-allowed;
  1414. transform: none;
  1415. box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
  1416. }
  1417. }
  1418. }
  1419. // 动画
  1420. @keyframes fadeIn {
  1421. from {
  1422. opacity: 0;
  1423. }
  1424. to {
  1425. opacity: 1;
  1426. }
  1427. }
  1428. @keyframes slideUp {
  1429. from {
  1430. transform: translateY(30px);
  1431. opacity: 0;
  1432. }
  1433. to {
  1434. transform: translateY(0);
  1435. opacity: 1;
  1436. }
  1437. }
  1438. @keyframes slideDown {
  1439. from {
  1440. transform: translateY(-20px);
  1441. opacity: 0;
  1442. }
  1443. to {
  1444. transform: translateY(0);
  1445. opacity: 1;
  1446. }
  1447. }
  1448. @keyframes bounce {
  1449. 0%, 20%, 50%, 80%, 100% {
  1450. transform: translateY(0);
  1451. }
  1452. 40% {
  1453. transform: translateY(-8px);
  1454. }
  1455. 60% {
  1456. transform: translateY(-4px);
  1457. }
  1458. }
  1459. // AI分析相关动画
  1460. @keyframes pulse {
  1461. 0% { transform: scale(1); }
  1462. 50% { transform: scale(1.05); }
  1463. 100% { transform: scale(1); }
  1464. }
  1465. @keyframes glow {
  1466. 0% { box-shadow: 0 0 5px rgba(24, 144, 255, 0.5); }
  1467. 50% { box-shadow: 0 0 20px rgba(24, 144, 255, 0.8); }
  1468. 100% { box-shadow: 0 0 5px rgba(24, 144, 255, 0.5); }
  1469. }
  1470. @keyframes spin {
  1471. 0% { transform: rotate(0deg); }
  1472. 100% { transform: rotate(360deg); }
  1473. }
  1474. // 特殊状态动画
  1475. .analyzing {
  1476. animation: pulse 1.5s ease-in-out infinite;
  1477. }
  1478. .completed {
  1479. animation: glow 2s ease-in-out;
  1480. }
  1481. @keyframes rotate {
  1482. from {
  1483. transform: rotate(0deg);
  1484. }
  1485. to {
  1486. transform: rotate(360deg);
  1487. }
  1488. }
  1489. @keyframes spin {
  1490. 0% { transform: rotate(0deg); }
  1491. 100% { transform: rotate(360deg); }
  1492. }
  1493. @keyframes progressMove {
  1494. 0% {
  1495. transform: translateX(-100%);
  1496. }
  1497. 50% {
  1498. transform: translateX(0%);
  1499. }
  1500. 100% {
  1501. transform: translateX(100%);
  1502. }
  1503. }
  1504. // 响应式设计 - 移动端优化(参考图片一的显示效果)
  1505. @media (max-width: 768px) {
  1506. .drag-upload-modal-overlay {
  1507. align-items: flex-start;
  1508. padding: 0;
  1509. }
  1510. .drag-upload-modal-container {
  1511. width: 100vw;
  1512. max-width: 100vw;
  1513. max-height: 100vh;
  1514. height: 100vh;
  1515. margin: 0;
  1516. border-radius: 0;
  1517. position: relative;
  1518. }
  1519. .modal-body {
  1520. padding: 8px;
  1521. max-height: calc(100vh - 140px);
  1522. overflow-y: auto;
  1523. overflow-x: hidden;
  1524. background: #f5f5f5;
  1525. }
  1526. // 表格容器 - 确保表格结构正确显示
  1527. .files-analysis-table {
  1528. overflow-x: auto;
  1529. -webkit-overflow-scrolling: touch;
  1530. background: white;
  1531. border-radius: 8px;
  1532. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  1533. .analysis-table {
  1534. width: 100%;
  1535. min-width: 100%; // 移除最小宽度限制,让表格自适应
  1536. font-size: 11px;
  1537. display: table; // 确保表格显示
  1538. border-collapse: collapse;
  1539. thead {
  1540. display: table-header-group; // 确保表头显示
  1541. background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
  1542. tr {
  1543. display: table-row;
  1544. }
  1545. th {
  1546. display: table-cell; // 确保单元格显示
  1547. padding: 8px 4px;
  1548. font-size: 11px;
  1549. white-space: nowrap;
  1550. text-align: center;
  1551. vertical-align: middle;
  1552. border-bottom: 2px solid #e6f7ff;
  1553. &.col-file {
  1554. width: 50px;
  1555. }
  1556. &.col-name {
  1557. width: auto;
  1558. min-width: 100px;
  1559. }
  1560. &.col-upload {
  1561. width: 50px;
  1562. }
  1563. &.col-space {
  1564. width: 70px;
  1565. }
  1566. &.col-stage {
  1567. width: 70px;
  1568. }
  1569. }
  1570. }
  1571. tbody {
  1572. display: table-row-group; // 确保表体显示
  1573. .file-row {
  1574. display: table-row; // 确保行显示
  1575. border-bottom: 1px solid #f0f0f0;
  1576. td {
  1577. display: table-cell; // 确保单元格显示
  1578. padding: 6px 4px;
  1579. vertical-align: middle;
  1580. }
  1581. // 文件预览缩小
  1582. .file-preview-container {
  1583. display: flex;
  1584. justify-content: center;
  1585. position: relative;
  1586. .file-thumbnail,
  1587. .file-icon-placeholder {
  1588. width: 36px;
  1589. height: 36px;
  1590. border-radius: 4px;
  1591. }
  1592. .file-delete-btn {
  1593. width: 18px;
  1594. height: 18px;
  1595. top: -6px;
  1596. right: -6px;
  1597. svg {
  1598. width: 10px;
  1599. height: 10px;
  1600. }
  1601. }
  1602. }
  1603. // 文件信息
  1604. .file-info {
  1605. .file-name {
  1606. font-size: 10px;
  1607. margin-bottom: 2px;
  1608. line-height: 1.2;
  1609. max-width: 100px;
  1610. overflow: hidden;
  1611. text-overflow: ellipsis;
  1612. white-space: nowrap;
  1613. }
  1614. .file-size {
  1615. font-size: 9px;
  1616. color: #999;
  1617. }
  1618. }
  1619. // 上传状态
  1620. .upload-status {
  1621. text-align: center;
  1622. .status {
  1623. font-size: 9px;
  1624. padding: 2px 4px;
  1625. border-radius: 3px;
  1626. display: inline-block;
  1627. }
  1628. }
  1629. // 空间和阶段结果
  1630. .space-result,
  1631. .stage-result {
  1632. text-align: center;
  1633. .ai-result-container {
  1634. display: flex;
  1635. flex-direction: column;
  1636. gap: 2px;
  1637. align-items: center;
  1638. }
  1639. .ai-result {
  1640. font-size: 9px;
  1641. padding: 2px 4px;
  1642. border-radius: 3px;
  1643. white-space: nowrap;
  1644. max-width: 60px;
  1645. overflow: hidden;
  1646. text-overflow: ellipsis;
  1647. }
  1648. .confidence-badge,
  1649. .quality-badge {
  1650. font-size: 8px;
  1651. padding: 1px 3px;
  1652. border-radius: 2px;
  1653. }
  1654. .placeholder {
  1655. font-size: 9px;
  1656. color: #999;
  1657. }
  1658. }
  1659. }
  1660. }
  1661. }
  1662. }
  1663. // 底部按钮区域优化
  1664. .modal-footer {
  1665. flex-direction: column;
  1666. gap: 8px;
  1667. align-items: stretch;
  1668. padding: 10px 12px;
  1669. min-height: auto;
  1670. background: white;
  1671. border-top: 1px solid #e8e8e8;
  1672. .analysis-summary {
  1673. margin-right: 0;
  1674. margin-bottom: 0;
  1675. .progress-indicator {
  1676. justify-content: center;
  1677. font-size: 11px;
  1678. .spinner-small {
  1679. width: 14px;
  1680. height: 14px;
  1681. }
  1682. }
  1683. .analysis-stats {
  1684. justify-content: center;
  1685. gap: 6px;
  1686. flex-wrap: wrap;
  1687. .stats-item {
  1688. font-size: 10px;
  1689. }
  1690. }
  1691. }
  1692. .upload-status {
  1693. padding: 10px;
  1694. margin: 0;
  1695. .status-message {
  1696. font-size: 11px;
  1697. }
  1698. }
  1699. .action-buttons {
  1700. width: 100%;
  1701. gap: 8px;
  1702. display: flex;
  1703. .cancel-btn,
  1704. .confirm-btn {
  1705. flex: 1;
  1706. padding: 12px 16px;
  1707. font-size: 14px;
  1708. border-radius: 8px;
  1709. }
  1710. }
  1711. }
  1712. // AI分析进度覆盖层优化
  1713. .analysis-progress-overlay {
  1714. .progress-content {
  1715. padding: 20px;
  1716. .ai-brain-icon {
  1717. width: 48px;
  1718. height: 48px;
  1719. margin-bottom: 16px;
  1720. svg {
  1721. width: 24px;
  1722. height: 24px;
  1723. }
  1724. }
  1725. .progress-text {
  1726. font-size: 13px;
  1727. margin-bottom: 12px;
  1728. }
  1729. .progress-bar {
  1730. height: 4px;
  1731. }
  1732. }
  1733. }
  1734. }
  1735. // 图片查看器
  1736. .image-viewer-overlay {
  1737. position: fixed;
  1738. top: 0;
  1739. left: 0;
  1740. right: 0;
  1741. bottom: 0;
  1742. background: rgba(0, 0, 0, 0.95);
  1743. display: flex;
  1744. align-items: center;
  1745. justify-content: center;
  1746. z-index: 3000;
  1747. animation: fadeIn 0.2s ease-out;
  1748. }
  1749. .image-viewer-container {
  1750. position: relative;
  1751. max-width: 95vw;
  1752. max-height: 95vh;
  1753. display: flex;
  1754. flex-direction: column;
  1755. align-items: center;
  1756. gap: 16px;
  1757. .close-viewer-btn {
  1758. position: absolute;
  1759. top: -50px;
  1760. right: 0;
  1761. background: rgba(255, 255, 255, 0.1);
  1762. border: none;
  1763. color: white;
  1764. cursor: pointer;
  1765. padding: 12px;
  1766. border-radius: 50%;
  1767. transition: all 0.2s ease;
  1768. z-index: 10;
  1769. &:hover {
  1770. background: rgba(255, 255, 255, 0.2);
  1771. transform: scale(1.1);
  1772. }
  1773. svg {
  1774. display: block;
  1775. }
  1776. }
  1777. .full-image {
  1778. max-width: 95vw;
  1779. max-height: 80vh;
  1780. object-fit: contain;
  1781. border-radius: 8px;
  1782. box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  1783. }
  1784. .image-info {
  1785. background: rgba(255, 255, 255, 0.1);
  1786. backdrop-filter: blur(10px);
  1787. padding: 12px 20px;
  1788. border-radius: 8px;
  1789. color: white;
  1790. text-align: center;
  1791. .image-name {
  1792. font-size: 14px;
  1793. font-weight: 600;
  1794. margin-bottom: 4px;
  1795. }
  1796. .image-details {
  1797. font-size: 12px;
  1798. opacity: 0.8;
  1799. display: flex;
  1800. align-items: center;
  1801. justify-content: center;
  1802. gap: 8px;
  1803. .separator {
  1804. opacity: 0.5;
  1805. }
  1806. }
  1807. }
  1808. }
  1809. // 缩略图可点击提示
  1810. .file-thumbnail {
  1811. cursor: pointer;
  1812. transition: all 0.2s ease;
  1813. &:hover {
  1814. transform: scale(1.05);
  1815. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  1816. }
  1817. }