smart-match-modal.component.scss 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. @use "sass:color";
  2. // iOS主题变量
  3. $ios-spacing-sm: 8px;
  4. $ios-spacing-md: 12px;
  5. $ios-spacing-lg: 16px;
  6. $ios-spacing-xl: 24px;
  7. $ios-radius-lg: 12px;
  8. $ios-radius-full: 9999px;
  9. $ios-shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  10. $ios-font-weight-medium: 500;
  11. $ios-font-weight-semibold: 600;
  12. $ios-font-weight-bold: 700;
  13. $ios-font-size-sm: 14px;
  14. $ios-font-size-md: 16px;
  15. $ios-font-size-lg: 18px;
  16. $ios-font-size-xl: 20px;
  17. $ios-text-primary: #1f2937;
  18. $ios-text-secondary: #6b7280;
  19. $ios-card-background: #ffffff;
  20. $ios-border: #e5e7eb;
  21. $ios-background: #f9fafb;
  22. $ios-primary: #6366f1;
  23. $ios-primary-light: #818cf8;
  24. $ios-success: #10b981;
  25. $ios-danger: #ef4444;
  26. $ios-warning: #f59e0b;
  27. $ios-info: #3b82f6;
  28. /* ========== 智能推荐弹窗样式 ========== */
  29. .smart-match-modal {
  30. position: fixed;
  31. top: 0;
  32. left: 0;
  33. right: 0;
  34. bottom: 0;
  35. z-index: 9999;
  36. display: flex;
  37. align-items: center;
  38. justify-content: center;
  39. .modal-backdrop {
  40. position: absolute;
  41. top: 0;
  42. left: 0;
  43. right: 0;
  44. bottom: 0;
  45. background: rgba(0, 0, 0, 0.5);
  46. animation: fadeIn 0.2s ease;
  47. }
  48. .modal-content {
  49. position: relative;
  50. width: 90%;
  51. max-width: 900px;
  52. max-height: 90vh;
  53. background: white;
  54. border-radius: 16px;
  55. box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  56. overflow: hidden;
  57. display: flex;
  58. flex-direction: column;
  59. animation: slideUp 0.3s ease;
  60. .modal-header {
  61. display: flex;
  62. align-items: center;
  63. justify-content: space-between;
  64. padding: 20px;
  65. border-bottom: 1px solid $ios-border;
  66. background: linear-gradient(135deg, #f0f9ff, #ffffff);
  67. h3 {
  68. font-size: $ios-font-size-xl;
  69. font-weight: $ios-font-weight-bold;
  70. color: $ios-text-primary;
  71. margin: 0;
  72. }
  73. .btn-close {
  74. width: 36px;
  75. height: 36px;
  76. border: none;
  77. background: #f3f4f6;
  78. border-radius: 50%;
  79. font-size: 24px;
  80. color: $ios-text-secondary;
  81. cursor: pointer;
  82. transition: all 0.2s ease;
  83. &:hover {
  84. background: $ios-border;
  85. color: $ios-text-primary;
  86. }
  87. }
  88. }
  89. .project-info {
  90. padding: 16px 20px;
  91. background: $ios-background;
  92. border-bottom: 1px solid $ios-border;
  93. h4 {
  94. font-size: $ios-font-size-lg;
  95. font-weight: $ios-font-weight-semibold;
  96. color: $ios-text-primary;
  97. margin: 0 0 8px 0;
  98. }
  99. .tags {
  100. display: flex;
  101. gap: 8px;
  102. .tag {
  103. padding: 4px 12px;
  104. border-radius: 8px;
  105. font-size: $ios-font-size-sm;
  106. background: white;
  107. border: 1px solid $ios-border;
  108. &.urgency {
  109. &.u-high { background: #fecaca; color: $ios-danger; border-color: $ios-danger; }
  110. &.u-medium { background: #fed7aa; color: $ios-warning; border-color: $ios-warning; }
  111. &.u-low { background: #d1fae5; color: $ios-success; border-color: $ios-success; }
  112. }
  113. }
  114. }
  115. }
  116. .recommendations-list {
  117. flex: 1;
  118. overflow-y: auto;
  119. padding: 20px;
  120. .rec-card {
  121. display: flex;
  122. gap: 16px;
  123. padding: 16px;
  124. background: white;
  125. border: 1px solid $ios-border;
  126. border-radius: 12px;
  127. margin-bottom: 16px;
  128. transition: all 0.2s ease;
  129. &:hover {
  130. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  131. }
  132. .rank {
  133. width: 40px;
  134. height: 40px;
  135. display: flex;
  136. align-items: center;
  137. justify-content: center;
  138. font-size: $ios-font-size-lg;
  139. font-weight: $ios-font-weight-bold;
  140. border-radius: 50%;
  141. background: #f3f4f6;
  142. color: $ios-text-secondary;
  143. flex-shrink: 0;
  144. &.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: white; }
  145. &.silver { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: white; }
  146. &.bronze { background: linear-gradient(135deg, #f97316, #ea580c); color: white; }
  147. }
  148. .designer-info {
  149. flex: 1;
  150. h4 {
  151. font-size: $ios-font-size-md;
  152. font-weight: $ios-font-weight-semibold;
  153. color: $ios-text-primary;
  154. margin: 0 0 8px 0;
  155. }
  156. .match-score-bar {
  157. position: relative;
  158. height: 20px;
  159. background: #f3f4f6;
  160. border-radius: 12px;
  161. overflow: hidden;
  162. .score-fill {
  163. height: 100%;
  164. background: linear-gradient(90deg, $ios-info, $ios-primary);
  165. display: flex;
  166. align-items: center;
  167. justify-content: flex-end;
  168. padding-right: 8px;
  169. transition: width 0.3s ease;
  170. span {
  171. font-size: 12px;
  172. font-weight: $ios-font-weight-semibold;
  173. color: white;
  174. }
  175. }
  176. }
  177. }
  178. .details {
  179. flex: 1;
  180. font-size: $ios-font-size-sm;
  181. p {
  182. margin: 4px 0;
  183. color: $ios-text-secondary;
  184. strong {
  185. color: $ios-text-primary;
  186. }
  187. &.reason {
  188. color: #2563eb;
  189. font-weight: $ios-font-weight-medium;
  190. }
  191. }
  192. }
  193. .btn-assign {
  194. align-self: center;
  195. padding: 8px 20px;
  196. background: linear-gradient(135deg, $ios-info, $ios-primary);
  197. color: white;
  198. border: none;
  199. border-radius: 8px;
  200. font-size: $ios-font-size-sm;
  201. font-weight: $ios-font-weight-semibold;
  202. cursor: pointer;
  203. transition: all 0.2s ease;
  204. &:hover {
  205. box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  206. transform: translateY(-2px);
  207. }
  208. }
  209. }
  210. .empty {
  211. text-align: center;
  212. padding: 48px;
  213. color: $ios-text-secondary;
  214. p {
  215. margin: 8px 0;
  216. &:first-child {
  217. font-size: $ios-font-size-lg;
  218. font-weight: $ios-font-weight-semibold;
  219. color: $ios-text-primary;
  220. }
  221. }
  222. }
  223. }
  224. }
  225. }
  226. @keyframes fadeIn {
  227. from { opacity: 0; }
  228. to { opacity: 1; }
  229. }
  230. @keyframes slideUp {
  231. from {
  232. opacity: 0;
  233. transform: translateY(30px);
  234. }
  235. to {
  236. opacity: 1;
  237. transform: translateY(0);
  238. }
  239. }