upload-success-modal.component.scss 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246
  1. // 上传成功弹窗样式
  2. // @import '../../../styles/_variables';
  3. // 弹窗背景遮罩
  4. // 响应式断点
  5. $mobile-breakpoint: 768px;
  6. $tablet-breakpoint: 1024px;
  7. $desktop-breakpoint: 1200px;
  8. // 动画变量
  9. $animation-duration-fast: 0.2s;
  10. $animation-duration-normal: 0.3s;
  11. $animation-duration-slow: 0.5s;
  12. $animation-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
  13. .modal-backdrop {
  14. position: fixed;
  15. top: 0;
  16. left: 0;
  17. width: 100vw;
  18. height: 100vh;
  19. background: rgba(0, 0, 0, 0.6);
  20. backdrop-filter: blur(4px);
  21. z-index: 10000; // 统一z-index层级管理
  22. display: flex;
  23. align-items: center;
  24. justify-content: center;
  25. padding: 1rem;
  26. // 强制所有设备都使用相同的居中布局
  27. @media (max-width: $mobile-breakpoint) {
  28. padding: 1rem;
  29. }
  30. @media (min-width: $mobile-breakpoint) and (max-width: $tablet-breakpoint) {
  31. padding: 1rem;
  32. }
  33. }
  34. // 弹窗主容器
  35. .modal-container {
  36. background: white;
  37. border-radius: 16px;
  38. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  39. max-width: 600px;
  40. width: 100%;
  41. max-height: 80vh;
  42. overflow: hidden;
  43. position: relative;
  44. transform-origin: center;
  45. display: flex;
  46. flex-direction: column;
  47. margin: 0; // 移除所有边距,完全依赖flex居中
  48. // 响应式调整 - 统一居中显示
  49. @media (max-width: $mobile-breakpoint) {
  50. max-width: calc(100% - 2rem); // 保持左右边距
  51. border-radius: 16px;
  52. max-height: 75vh;
  53. }
  54. @media (min-width: $mobile-breakpoint) and (max-width: $tablet-breakpoint) {
  55. max-width: 90%;
  56. max-height: 78vh;
  57. }
  58. @media (min-width: $tablet-breakpoint) {
  59. max-width: 600px;
  60. max-height: 80vh;
  61. }
  62. // 深色模式适配
  63. @media (prefers-color-scheme: dark) {
  64. background: #1a1a1a;
  65. color: #ffffff;
  66. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  67. }
  68. }
  69. // 弹窗头部
  70. .modal-header {
  71. padding: 32px 32px 24px 32px; // 增加左右内边距,确保对称
  72. border-bottom: 1px solid #f0f0f0;
  73. display: flex;
  74. align-items: flex-start;
  75. justify-content: space-between;
  76. // 响应式调整
  77. @media (max-width: $mobile-breakpoint) {
  78. padding: 24px 20px 20px 20px;
  79. }
  80. @media (min-width: $mobile-breakpoint) and (max-width: $tablet-breakpoint) {
  81. padding: 28px 28px 22px 28px;
  82. }
  83. .header-content {
  84. display: flex;
  85. align-items: flex-start;
  86. gap: 16px;
  87. flex: 1;
  88. min-width: 0; // 防止内容溢出
  89. .success-icon {
  90. width: 48px;
  91. height: 48px;
  92. background: linear-gradient(135deg, #34C759, #30D158);
  93. border-radius: 50%;
  94. display: flex;
  95. align-items: center;
  96. justify-content: center;
  97. flex-shrink: 0;
  98. svg {
  99. color: white;
  100. width: 24px;
  101. height: 24px;
  102. }
  103. }
  104. .header-text {
  105. flex: 1;
  106. min-width: 0; // 防止文本溢出
  107. h2 {
  108. margin: 0 0 8px 0;
  109. font-size: 20px;
  110. font-weight: 600;
  111. color: #1d1d1f;
  112. line-height: 1.2;
  113. // 响应式字体大小
  114. @media (max-width: $mobile-breakpoint) {
  115. font-size: 18px;
  116. }
  117. }
  118. p {
  119. margin: 0;
  120. font-size: 14px;
  121. color: #86868b;
  122. line-height: 1.4;
  123. @media (max-width: $mobile-breakpoint) {
  124. font-size: 13px;
  125. }
  126. }
  127. }
  128. }
  129. .close-button {
  130. width: 36px;
  131. height: 36px;
  132. border: none;
  133. background: #f2f2f7;
  134. border-radius: 50%;
  135. display: flex;
  136. align-items: center;
  137. justify-content: center;
  138. cursor: pointer;
  139. transition: all 0.2s ease;
  140. flex-shrink: 0;
  141. margin-left: 16px; // 确保与内容区域有适当间距
  142. // 响应式调整
  143. @media (max-width: $mobile-breakpoint) {
  144. width: 32px;
  145. height: 32px;
  146. margin-left: 12px;
  147. }
  148. &:hover {
  149. background: #e5e5ea;
  150. transform: scale(1.05);
  151. }
  152. &:active {
  153. transform: scale(0.95);
  154. }
  155. svg {
  156. color: #86868b;
  157. width: 18px;
  158. height: 18px;
  159. @media (max-width: $mobile-breakpoint) {
  160. width: 16px;
  161. height: 16px;
  162. }
  163. }
  164. }
  165. }
  166. // 弹窗内容
  167. .modal-content {
  168. padding: 0 32px 32px 32px; // 与头部保持一致的左右内边距
  169. overflow-y: auto;
  170. flex: 1;
  171. min-height: 0; // 确保flex子元素可以收缩
  172. // 自定义滚动条样式
  173. &::-webkit-scrollbar {
  174. width: 6px;
  175. }
  176. &::-webkit-scrollbar-track {
  177. background: transparent;
  178. }
  179. &::-webkit-scrollbar-thumb {
  180. background: rgba(0, 0, 0, 0.2);
  181. border-radius: 3px;
  182. &:hover {
  183. background: rgba(0, 0, 0, 0.3);
  184. }
  185. }
  186. // 深色模式滚动条
  187. @media (prefers-color-scheme: dark) {
  188. &::-webkit-scrollbar-thumb {
  189. background: rgba(255, 255, 255, 0.3);
  190. &:hover {
  191. background: rgba(255, 255, 255, 0.4);
  192. }
  193. }
  194. }
  195. // 响应式调整
  196. @media (max-width: $mobile-breakpoint) {
  197. padding: 0 20px 24px 20px;
  198. }
  199. @media (min-width: $mobile-breakpoint) and (max-width: $tablet-breakpoint) {
  200. padding: 0 28px 28px 28px;
  201. }
  202. }
  203. // 上传文件列表
  204. .uploaded-files {
  205. margin-bottom: 32px;
  206. h3 {
  207. margin: 0 0 20px 0;
  208. font-size: 18px;
  209. font-weight: 600;
  210. color: #1d1d1f;
  211. // 响应式字体大小
  212. @media (max-width: $mobile-breakpoint) {
  213. font-size: 16px;
  214. margin-bottom: 16px;
  215. }
  216. }
  217. .file-list {
  218. display: flex;
  219. flex-direction: column;
  220. gap: 12px;
  221. }
  222. .file-item {
  223. display: flex;
  224. align-items: center;
  225. gap: 16px;
  226. padding: 16px;
  227. background: #f9f9f9;
  228. border-radius: 12px;
  229. border: 1px solid #e5e5ea;
  230. transition: all 0.2s ease;
  231. // 响应式调整
  232. @media (max-width: $mobile-breakpoint) {
  233. padding: 12px;
  234. gap: 12px;
  235. }
  236. &:hover {
  237. background: #f5f5f7;
  238. border-color: #d1d1d6;
  239. }
  240. .file-icon {
  241. width: 48px;
  242. height: 48px;
  243. background: #007aff;
  244. border-radius: 10px;
  245. display: flex;
  246. align-items: center;
  247. justify-content: center;
  248. flex-shrink: 0;
  249. // 响应式调整
  250. @media (max-width: $mobile-breakpoint) {
  251. width: 40px;
  252. height: 40px;
  253. border-radius: 8px;
  254. }
  255. svg {
  256. color: white;
  257. width: 24px;
  258. height: 24px;
  259. @media (max-width: $mobile-breakpoint) {
  260. width: 20px;
  261. height: 20px;
  262. }
  263. }
  264. }
  265. .file-preview {
  266. width: 48px;
  267. height: 48px;
  268. border-radius: 10px;
  269. overflow: hidden;
  270. flex-shrink: 0;
  271. @media (max-width: $mobile-breakpoint) {
  272. width: 40px;
  273. height: 40px;
  274. border-radius: 8px;
  275. }
  276. img {
  277. width: 100%;
  278. height: 100%;
  279. object-fit: cover;
  280. }
  281. }
  282. .file-info {
  283. flex: 1;
  284. min-width: 0;
  285. display: flex;
  286. flex-direction: column;
  287. gap: 4px;
  288. .file-name {
  289. font-size: 15px;
  290. font-weight: 500;
  291. color: #1d1d1f;
  292. white-space: nowrap;
  293. overflow: hidden;
  294. text-overflow: ellipsis;
  295. line-height: 1.3;
  296. @media (max-width: $mobile-breakpoint) {
  297. font-size: 14px;
  298. }
  299. }
  300. .file-size {
  301. font-size: 13px;
  302. color: #86868b;
  303. line-height: 1.2;
  304. @media (max-width: $mobile-breakpoint) {
  305. font-size: 12px;
  306. }
  307. }
  308. }
  309. .file-status {
  310. width: 24px;
  311. height: 24px;
  312. display: flex;
  313. align-items: center;
  314. justify-content: center;
  315. flex-shrink: 0;
  316. &.success {
  317. svg {
  318. width: 20px;
  319. height: 20px;
  320. @media (max-width: $mobile-breakpoint) {
  321. width: 18px;
  322. height: 18px;
  323. }
  324. }
  325. }
  326. }
  327. }
  328. }
  329. // 颜色分析区域
  330. .color-analysis-section {
  331. border-top: 1px solid #f0f0f0;
  332. padding-top: 24px;
  333. .section-header {
  334. margin-bottom: 24px;
  335. text-align: center;
  336. h4 {
  337. margin: 0 0 8px 0;
  338. font-size: 18px;
  339. font-weight: 600;
  340. color: #1d1d1f;
  341. @media (max-width: $mobile-breakpoint) {
  342. font-size: 16px;
  343. }
  344. }
  345. p {
  346. margin: 0;
  347. font-size: 14px;
  348. color: #86868b;
  349. line-height: 1.5;
  350. max-width: 400px;
  351. margin: 0 auto;
  352. @media (max-width: $mobile-breakpoint) {
  353. font-size: 13px;
  354. }
  355. }
  356. }
  357. // 分析按钮
  358. .analysis-action {
  359. text-align: center;
  360. padding: 20px 0 32px 0;
  361. .analyze-btn {
  362. display: inline-flex;
  363. align-items: center;
  364. justify-content: center;
  365. gap: 10px;
  366. padding: 14px 28px;
  367. background: linear-gradient(135deg, #007aff, #0056cc);
  368. color: white;
  369. border: none;
  370. border-radius: 12px;
  371. font-size: 15px;
  372. font-weight: 600;
  373. cursor: pointer;
  374. transition: all 0.3s ease;
  375. min-width: 160px;
  376. @media (max-width: $mobile-breakpoint) {
  377. padding: 12px 24px;
  378. font-size: 14px;
  379. min-width: 140px;
  380. }
  381. &:hover:not(:disabled) {
  382. transform: translateY(-2px);
  383. box-shadow: 0 12px 24px rgba(0, 122, 255, 0.25);
  384. background: linear-gradient(135deg, #0056cc, #003d99);
  385. }
  386. &:active {
  387. transform: translateY(0);
  388. }
  389. &:disabled {
  390. opacity: 0.6;
  391. cursor: not-allowed;
  392. transform: none;
  393. box-shadow: none;
  394. }
  395. svg {
  396. width: 20px;
  397. height: 20px;
  398. @media (max-width: $mobile-breakpoint) {
  399. width: 18px;
  400. height: 18px;
  401. }
  402. }
  403. }
  404. }
  405. // 分析加载状态
  406. .analysis-loading {
  407. display: flex;
  408. align-items: center;
  409. gap: 16px;
  410. padding: 24px;
  411. background: #f9f9f9;
  412. border-radius: 12px;
  413. .loading-spinner {
  414. width: 32px;
  415. height: 32px;
  416. border: 3px solid #e5e5ea;
  417. border-top: 3px solid #007aff;
  418. border-radius: 50%;
  419. animation: spin 1s linear infinite;
  420. flex-shrink: 0;
  421. }
  422. .loading-text {
  423. h5 {
  424. margin: 0 0 4px 0;
  425. font-size: 14px;
  426. font-weight: 600;
  427. color: #1d1d1f;
  428. }
  429. p {
  430. margin: 0;
  431. font-size: 12px;
  432. color: #86868b;
  433. }
  434. }
  435. }
  436. // 分析结果
  437. .analysis-result {
  438. .result-header {
  439. display: flex;
  440. align-items: center;
  441. justify-content: space-between;
  442. margin-bottom: 20px;
  443. h5 {
  444. margin: 0;
  445. font-size: 16px;
  446. font-weight: 600;
  447. color: #1d1d1f;
  448. @media (max-width: $mobile-breakpoint) {
  449. font-size: 15px;
  450. }
  451. }
  452. .result-badge {
  453. background: #34c759;
  454. color: white;
  455. font-size: 11px;
  456. font-weight: 600;
  457. padding: 4px 10px;
  458. border-radius: 12px;
  459. text-transform: uppercase;
  460. letter-spacing: 0.5px;
  461. }
  462. }
  463. .color-palette {
  464. display: grid;
  465. grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  466. gap: 16px;
  467. margin-bottom: 24px;
  468. @media (max-width: $mobile-breakpoint) {
  469. grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  470. gap: 12px;
  471. }
  472. .color-item {
  473. display: flex;
  474. align-items: center;
  475. gap: 12px;
  476. padding: 12px;
  477. background: white;
  478. border: 1px solid #e5e5ea;
  479. border-radius: 12px;
  480. transition: all 0.2s ease;
  481. @media (max-width: $mobile-breakpoint) {
  482. padding: 10px;
  483. gap: 10px;
  484. }
  485. &:hover {
  486. border-color: #007aff;
  487. box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
  488. }
  489. .color-swatch {
  490. width: 32px;
  491. height: 32px;
  492. border-radius: 8px;
  493. border: 2px solid rgba(255, 255, 255, 0.8);
  494. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  495. flex-shrink: 0;
  496. @media (max-width: $mobile-breakpoint) {
  497. width: 28px;
  498. height: 28px;
  499. border-radius: 6px;
  500. }
  501. }
  502. .color-info {
  503. flex: 1;
  504. min-width: 0;
  505. .color-value {
  506. font-size: 12px;
  507. font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  508. color: #1d1d1f;
  509. margin-bottom: 4px;
  510. white-space: nowrap;
  511. overflow: hidden;
  512. text-overflow: ellipsis;
  513. font-weight: 500;
  514. @media (max-width: $mobile-breakpoint) {
  515. font-size: 11px;
  516. }
  517. }
  518. .color-percentage {
  519. font-size: 11px;
  520. color: #86868b;
  521. font-weight: 600;
  522. @media (max-width: $mobile-breakpoint) {
  523. font-size: 10px;
  524. }
  525. }
  526. }
  527. }
  528. }
  529. .result-actions {
  530. text-align: center;
  531. padding-top: 8px;
  532. .view-report-btn {
  533. display: inline-flex;
  534. align-items: center;
  535. justify-content: center;
  536. gap: 8px;
  537. padding: 12px 20px;
  538. background: #f2f2f7;
  539. color: #007aff;
  540. border: none;
  541. border-radius: 10px;
  542. font-size: 14px;
  543. font-weight: 600;
  544. cursor: pointer;
  545. transition: all 0.2s ease;
  546. min-width: 140px;
  547. @media (max-width: $mobile-breakpoint) {
  548. padding: 10px 16px;
  549. font-size: 13px;
  550. min-width: 120px;
  551. }
  552. &:hover {
  553. background: #e5e5ea;
  554. transform: translateY(-1px);
  555. }
  556. &:active {
  557. transform: translateY(0);
  558. }
  559. svg {
  560. width: 18px;
  561. height: 18px;
  562. @media (max-width: $mobile-breakpoint) {
  563. width: 16px;
  564. height: 16px;
  565. }
  566. }
  567. }
  568. }
  569. // 颜色描述区域
  570. .color-description {
  571. margin-top: 24px;
  572. padding: 24px;
  573. background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  574. border: 1px solid #e5e5ea;
  575. border-radius: 16px;
  576. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  577. .description-header {
  578. margin-bottom: 16px;
  579. h6 {
  580. margin: 0 0 4px 0;
  581. font-size: 18px;
  582. font-weight: 700;
  583. color: #1d1d1f;
  584. display: flex;
  585. align-items: center;
  586. gap: 8px;
  587. &::before {
  588. content: '🎨';
  589. font-size: 20px;
  590. }
  591. }
  592. p {
  593. margin: 0;
  594. font-size: 14px;
  595. color: #8e8e93;
  596. font-weight: 400;
  597. }
  598. }
  599. .description-content {
  600. background: #ffffff;
  601. border: 2px solid #f0f0f0;
  602. border-radius: 12px;
  603. padding: 20px;
  604. margin-bottom: 16px;
  605. font-size: 15px;
  606. line-height: 1.7;
  607. color: #333333;
  608. white-space: pre-line;
  609. word-break: break-word;
  610. max-height: 180px;
  611. overflow-y: auto;
  612. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  613. transition: all 0.2s ease;
  614. &:hover {
  615. border-color: #007aff;
  616. box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
  617. }
  618. &::-webkit-scrollbar {
  619. width: 4px;
  620. }
  621. &::-webkit-scrollbar-track {
  622. background: transparent;
  623. }
  624. &::-webkit-scrollbar-thumb {
  625. background: rgba(0, 122, 255, 0.3);
  626. border-radius: 2px;
  627. &:hover {
  628. background: rgba(0, 122, 255, 0.5);
  629. }
  630. }
  631. &.empty {
  632. color: #8e8e93;
  633. font-style: italic;
  634. text-align: center;
  635. padding: 32px 20px;
  636. background: #fafafa;
  637. border-style: dashed;
  638. }
  639. }
  640. .description-actions {
  641. display: flex;
  642. align-items: center;
  643. justify-content: space-between;
  644. gap: 16px;
  645. @media (max-width: $mobile-breakpoint) {
  646. flex-direction: column;
  647. align-items: stretch;
  648. }
  649. .copy-btn {
  650. display: inline-flex;
  651. align-items: center;
  652. justify-content: center;
  653. gap: 8px;
  654. padding: 12px 20px;
  655. background: linear-gradient(135deg, #007aff 0%, #0056cc 100%);
  656. color: #ffffff;
  657. border: none;
  658. border-radius: 10px;
  659. font-size: 14px;
  660. font-weight: 600;
  661. cursor: pointer;
  662. transition: all 0.3s ease;
  663. min-width: 100px;
  664. box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
  665. &:hover {
  666. transform: translateY(-2px);
  667. box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
  668. background: linear-gradient(135deg, #0056cc 0%, #003d99 100%);
  669. }
  670. &:active {
  671. transform: translateY(0);
  672. box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
  673. }
  674. &.copied {
  675. background: linear-gradient(135deg, #34c759 0%, #28a745 100%);
  676. box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
  677. &:hover {
  678. background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  679. box-shadow: 0 6px 20px rgba(52, 199, 89, 0.4);
  680. }
  681. }
  682. svg {
  683. width: 14px;
  684. height: 14px;
  685. }
  686. }
  687. .description-tip {
  688. font-size: 12px;
  689. color: #8e8e93;
  690. flex: 1;
  691. @media (max-width: $mobile-breakpoint) {
  692. text-align: center;
  693. margin-top: 8px;
  694. }
  695. }
  696. }
  697. }
  698. }
  699. // 分析错误
  700. .analysis-error {
  701. display: flex;
  702. align-items: center;
  703. gap: 12px;
  704. padding: 16px;
  705. background: #fff2f2;
  706. border: 1px solid #fecaca;
  707. border-radius: 8px;
  708. .error-icon {
  709. width: 32px;
  710. height: 32px;
  711. background: #ef4444;
  712. border-radius: 50%;
  713. display: flex;
  714. align-items: center;
  715. justify-content: center;
  716. flex-shrink: 0;
  717. svg {
  718. color: white;
  719. width: 16px;
  720. height: 16px;
  721. }
  722. }
  723. .error-text {
  724. flex: 1;
  725. h5 {
  726. margin: 0 0 4px 0;
  727. font-size: 14px;
  728. font-weight: 600;
  729. color: #dc2626;
  730. }
  731. p {
  732. margin: 0;
  733. font-size: 12px;
  734. color: #991b1b;
  735. }
  736. }
  737. .retry-btn {
  738. padding: 6px 12px;
  739. background: #ef4444;
  740. color: white;
  741. border: none;
  742. border-radius: 4px;
  743. font-size: 12px;
  744. font-weight: 500;
  745. cursor: pointer;
  746. transition: all 0.2s ease;
  747. &:hover {
  748. background: #dc2626;
  749. }
  750. }
  751. }
  752. }
  753. // 弹窗底部操作区域
  754. .modal-footer {
  755. padding: 24px 32px 32px;
  756. border-top: 1px solid #e5e5ea;
  757. background: #fafafa;
  758. border-radius: 0 0 20px 20px;
  759. @media (max-width: $tablet-breakpoint) {
  760. padding: 20px 24px 24px;
  761. }
  762. @media (max-width: $mobile-breakpoint) {
  763. padding: 16px 20px 20px;
  764. }
  765. .footer-actions {
  766. display: flex;
  767. gap: 16px;
  768. justify-content: flex-end;
  769. align-items: center;
  770. @media (max-width: $mobile-breakpoint) {
  771. flex-direction: column-reverse;
  772. gap: 12px;
  773. }
  774. .secondary-btn,
  775. .primary-btn {
  776. display: inline-flex;
  777. align-items: center;
  778. justify-content: center;
  779. gap: 8px;
  780. padding: 12px 24px;
  781. border-radius: 10px;
  782. font-size: 14px;
  783. font-weight: 600;
  784. cursor: pointer;
  785. transition: all 0.2s ease;
  786. border: none;
  787. min-width: 120px;
  788. @media (max-width: $mobile-breakpoint) {
  789. width: 100%;
  790. padding: 14px 24px;
  791. }
  792. svg {
  793. width: 18px;
  794. height: 18px;
  795. }
  796. }
  797. .secondary-btn {
  798. background: #f2f2f7;
  799. color: #1d1d1f;
  800. &:hover {
  801. background: #e5e5ea;
  802. transform: translateY(-1px);
  803. }
  804. &:active {
  805. transform: translateY(0);
  806. }
  807. }
  808. .primary-btn {
  809. background: linear-gradient(135deg, #007aff 0%, #0056cc 100%);
  810. color: white;
  811. box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
  812. &:hover {
  813. background: linear-gradient(135deg, #0056cc 0%, #003d99 100%);
  814. box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
  815. transform: translateY(-1px);
  816. }
  817. &:active {
  818. transform: translateY(0);
  819. box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
  820. }
  821. &:disabled {
  822. background: #c7c7cc;
  823. color: #8e8e93;
  824. cursor: not-allowed;
  825. box-shadow: none;
  826. transform: none;
  827. }
  828. .btn-spinner {
  829. width: 14px;
  830. height: 14px;
  831. border: 2px solid rgba(255, 255, 255, 0.3);
  832. border-top: 2px solid white;
  833. border-radius: 50%;
  834. animation: spin 1s linear infinite;
  835. }
  836. }
  837. }
  838. }
  839. // 动画
  840. @keyframes spin {
  841. 0% { transform: rotate(0deg); }
  842. 100% { transform: rotate(360deg); }
  843. }
  844. // 响应式设计
  845. @media (max-width: 768px) {
  846. .modal-backdrop {
  847. padding: 10px;
  848. }
  849. .modal-header {
  850. padding: 20px 16px 12px;
  851. .header-content {
  852. gap: 12px;
  853. .success-icon {
  854. width: 40px;
  855. height: 40px;
  856. svg {
  857. width: 20px;
  858. height: 20px;
  859. }
  860. }
  861. .header-text {
  862. h3 {
  863. font-size: 18px;
  864. }
  865. p {
  866. font-size: 13px;
  867. }
  868. }
  869. }
  870. }
  871. .modal-body {
  872. padding: 0 16px;
  873. }
  874. .modal-footer {
  875. padding: 12px 16px 20px;
  876. .footer-actions {
  877. flex-direction: column-reverse;
  878. .secondary-btn,
  879. .primary-btn {
  880. width: 100%;
  881. justify-content: center;
  882. }
  883. }
  884. }
  885. .color-analysis-section {
  886. .color-palette {
  887. grid-template-columns: 1fr;
  888. }
  889. }
  890. }
  891. // 深色模式支持
  892. @media (prefers-color-scheme: dark) {
  893. .modal-container {
  894. background: #1c1c1e;
  895. .modal-header {
  896. border-bottom-color: #38383a;
  897. .header-text {
  898. h3 {
  899. color: #f2f2f7;
  900. }
  901. p {
  902. color: #8e8e93;
  903. }
  904. }
  905. .close-btn {
  906. background: #2c2c2e;
  907. &:hover {
  908. background: #3a3a3c;
  909. }
  910. svg {
  911. color: #8e8e93;
  912. }
  913. }
  914. }
  915. .uploaded-files-section {
  916. h4 {
  917. color: #f2f2f7;
  918. }
  919. .file-item {
  920. background: #2c2c2e;
  921. border-color: #48484a;
  922. .file-info {
  923. .file-name {
  924. color: #f2f2f7;
  925. }
  926. .file-size {
  927. color: #8e8e93;
  928. }
  929. }
  930. }
  931. }
  932. .color-analysis-section {
  933. .section-header {
  934. h4 {
  935. color: #f2f2f7;
  936. }
  937. p {
  938. color: #8e8e93;
  939. }
  940. }
  941. .analysis-loading {
  942. background: #2c2c2e;
  943. .loading-text {
  944. h5 {
  945. color: #f2f2f7;
  946. }
  947. p {
  948. color: #8e8e93;
  949. }
  950. }
  951. }
  952. .analysis-result {
  953. .result-header {
  954. h5 {
  955. color: #f2f2f7;
  956. }
  957. .result-count {
  958. background: #2c2c2e;
  959. color: #8e8e93;
  960. }
  961. }
  962. .color-palette {
  963. .color-item {
  964. background: #2c2c2e;
  965. border-color: #48484a;
  966. .color-info {
  967. .color-value {
  968. color: #f2f2f7;
  969. }
  970. .color-percentage {
  971. color: #8e8e93;
  972. }
  973. }
  974. }
  975. }
  976. .result-actions {
  977. .view-report-btn {
  978. background: #2c2c2e;
  979. &:hover {
  980. background: #3a3a3c;
  981. }
  982. }
  983. }
  984. .color-description {
  985. background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%);
  986. border-color: #48484a;
  987. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  988. .description-header {
  989. h6 {
  990. color: #f2f2f7;
  991. }
  992. p {
  993. color: #8e8e93;
  994. }
  995. }
  996. .description-content {
  997. background: #1c1c1e;
  998. border-color: #48484a;
  999. color: #f2f2f7;
  1000. &:hover {
  1001. border-color: #0a84ff;
  1002. box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
  1003. }
  1004. &::-webkit-scrollbar-thumb {
  1005. background: rgba(10, 132, 255, 0.4);
  1006. &:hover {
  1007. background: rgba(10, 132, 255, 0.6);
  1008. }
  1009. }
  1010. &.empty {
  1011. background: #2c2c2e;
  1012. color: #8e8e93;
  1013. border-color: #48484a;
  1014. }
  1015. }
  1016. .description-actions {
  1017. .copy-btn {
  1018. background: linear-gradient(135deg, #0a84ff 0%, #0056cc 100%);
  1019. box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
  1020. &:hover {
  1021. background: linear-gradient(135deg, #0056cc 0%, #003d99 100%);
  1022. box-shadow: 0 6px 20px rgba(10, 132, 255, 0.4);
  1023. }
  1024. &.copied {
  1025. background: linear-gradient(135deg, #30d158 0%, #28a745 100%);
  1026. box-shadow: 0 4px 12px rgba(48, 209, 88, 0.3);
  1027. &:hover {
  1028. background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  1029. box-shadow: 0 6px 20px rgba(48, 209, 88, 0.4);
  1030. }
  1031. }
  1032. }
  1033. }
  1034. }
  1035. }
  1036. }
  1037. .modal-footer {
  1038. border-top-color: #38383a;
  1039. .footer-actions {
  1040. .secondary-btn {
  1041. background: #2c2c2e;
  1042. color: #f2f2f7;
  1043. &:hover {
  1044. background: #3a3a3c;
  1045. }
  1046. }
  1047. }
  1048. }
  1049. }
  1050. }