project-review.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  1. @use '../ios-theme.scss' as *;
  2. .project-review-header {
  3. background-color: $ios-primary;
  4. color: white;
  5. padding: 20px;
  6. text-align: center;
  7. border-radius: $ios-radius-xl;
  8. margin-bottom: 20px;
  9. box-shadow: $ios-shadow-card;
  10. }
  11. .project-review-main {
  12. padding: 20px;
  13. }
  14. .section-header {
  15. margin-bottom: 20px;
  16. h2 {
  17. color: $ios-primary;
  18. font-size: 18px;
  19. font-weight: 600;
  20. }
  21. }
  22. .feasibility-section,
  23. .assignment-section {
  24. background-color: white;
  25. border-radius: $ios-radius-lg;
  26. padding: 20px;
  27. margin-bottom: 20px;
  28. box-shadow: $ios-shadow-card;
  29. }
  30. /* 效果图可行性测试样式 */
  31. .test-form {
  32. .form-group {
  33. margin-bottom: 15px;
  34. label {
  35. display: block;
  36. margin-bottom: 5px;
  37. color: $ios-text-primary;
  38. font-weight: 500;
  39. }
  40. textarea {
  41. width: 100%;
  42. padding: 10px;
  43. border: 1px solid $ios-border;
  44. border-radius: $ios-radius-lg;
  45. font-size: 14px;
  46. resize: vertical;
  47. min-height: 100px;
  48. &:focus {
  49. outline: none;
  50. border-color: $ios-primary;
  51. box-shadow: 0 0 0 2px rgba(0, 71, 171, 0.1);
  52. }
  53. }
  54. }
  55. .file-upload {
  56. position: relative;
  57. .upload-placeholder {
  58. border: 2px dashed $ios-border;
  59. border-radius: $ios-radius-lg;
  60. padding: 30px;
  61. text-align: center;
  62. cursor: pointer;
  63. background-color: $ios-background-secondary;
  64. transition: all 0.3s ease;
  65. &:hover {
  66. border-color: $ios-primary;
  67. background-color: rgba(0, 71, 171, 0.05);
  68. }
  69. .upload-icon {
  70. display: block;
  71. font-size: 40px;
  72. color: $ios-primary;
  73. margin-bottom: 10px;
  74. }
  75. p {
  76. margin: 5px 0;
  77. color: $ios-text-secondary;
  78. }
  79. .upload-hint {
  80. font-size: 12px;
  81. color: $ios-text-tertiary;
  82. }
  83. }
  84. input[type="file"] {
  85. position: absolute;
  86. top: 0;
  87. left: 0;
  88. width: 100%;
  89. height: 100%;
  90. opacity: 0;
  91. cursor: pointer;
  92. }
  93. }
  94. .image-preview {
  95. margin-top: 15px;
  96. position: relative;
  97. img {
  98. max-width: 100%;
  99. max-height: 300px;
  100. border-radius: $ios-radius-lg;
  101. display: block;
  102. margin: 0 auto;
  103. }
  104. .btn-remove {
  105. position: absolute;
  106. top: 10px;
  107. right: 10px;
  108. background-color: red;
  109. color: white;
  110. border: none;
  111. border-radius: 50%;
  112. width: 30px;
  113. height: 30px;
  114. cursor: pointer;
  115. font-size: 16px;
  116. display: flex;
  117. align-items: center;
  118. justify-content: center;
  119. }
  120. }
  121. .btn-run-test {
  122. background-color: $ios-primary;
  123. color: white;
  124. border: none;
  125. border-radius: $ios-radius-lg;
  126. padding: 12px 20px;
  127. font-size: 16px;
  128. font-weight: 500;
  129. cursor: pointer;
  130. width: 100%;
  131. margin-top: 10px;
  132. transition: background-color 0.3s ease;
  133. &:hover:not(:disabled) {
  134. background-color: $ios-primary-light;
  135. }
  136. &:disabled {
  137. background-color: $ios-text-tertiary;
  138. cursor: not-allowed;
  139. }
  140. }
  141. }
  142. /* 测试结果样式 */
  143. .test-result {
  144. margin-top: 20px;
  145. padding: 15px;
  146. background-color: $ios-background-secondary;
  147. border-radius: $ios-radius-lg;
  148. .result-header {
  149. display: flex;
  150. justify-content: space-between;
  151. align-items: center;
  152. margin-bottom: 15px;
  153. h3 {
  154. color: $ios-text-primary;
  155. font-size: 16px;
  156. }
  157. .result-tags {
  158. .tag {
  159. padding: 5px 10px;
  160. border-radius: 15px;
  161. font-size: 12px;
  162. font-weight: 500;
  163. &.pass {
  164. background-color: #d4edda;
  165. color: #155724;
  166. }
  167. &.warning {
  168. background-color: #fff3cd;
  169. color: #856404;
  170. }
  171. &.fail {
  172. background-color: #f8d7da;
  173. color: #721c24;
  174. }
  175. }
  176. }
  177. }
  178. .result-content {
  179. .result-section {
  180. margin-bottom: 15px;
  181. h4 {
  182. color: $ios-text-primary;
  183. font-size: 14px;
  184. margin-bottom: 10px;
  185. font-weight: 600;
  186. }
  187. }
  188. .evaluation-list {
  189. list-style: none;
  190. padding: 0;
  191. li {
  192. display: flex;
  193. align-items: center;
  194. margin-bottom: 8px;
  195. .eval-label {
  196. flex: 1;
  197. color: $ios-text-primary;
  198. font-size: 14px;
  199. }
  200. .eval-value {
  201. margin: 0 10px;
  202. font-weight: 600;
  203. &.high {
  204. color: #28a745;
  205. }
  206. &.medium {
  207. color: #ffc107;
  208. }
  209. &.low {
  210. color: #dc3545;
  211. }
  212. }
  213. .eval-status {
  214. font-size: 12px;
  215. color: $ios-text-secondary;
  216. }
  217. }
  218. }
  219. .requirement-match {
  220. color: $ios-text-primary;
  221. font-size: 14px;
  222. margin-bottom: 10px;
  223. line-height: 1.5;
  224. }
  225. .suggestions {
  226. h5 {
  227. color: $ios-text-primary;
  228. font-size: 13px;
  229. margin-bottom: 5px;
  230. font-weight: 600;
  231. }
  232. ul {
  233. list-style: none;
  234. padding: 0;
  235. li {
  236. color: $ios-text-secondary;
  237. font-size: 13px;
  238. margin-bottom: 5px;
  239. padding-left: 15px;
  240. position: relative;
  241. &::before {
  242. content: "•";
  243. color: $ios-primary;
  244. position: absolute;
  245. left: 0;
  246. font-weight: bold;
  247. }
  248. }
  249. }
  250. }
  251. .reference-images {
  252. h4 {
  253. color: $ios-text-primary;
  254. font-size: 14px;
  255. margin-bottom: 10px;
  256. font-weight: 600;
  257. }
  258. .image-grid {
  259. display: grid;
  260. grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  261. gap: 10px;
  262. .reference-item {
  263. text-align: center;
  264. img {
  265. width: 100%;
  266. height: 80px;
  267. object-fit: cover;
  268. border-radius: $ios-radius-lg;
  269. margin-bottom: 5px;
  270. }
  271. .reference-hint {
  272. font-size: 11px;
  273. color: $ios-text-secondary;
  274. text-align: left;
  275. }
  276. }
  277. }
  278. }
  279. .result-actions {
  280. margin-top: 20px;
  281. .btn-submit {
  282. background-color: $ios-primary;
  283. color: white;
  284. border: none;
  285. border-radius: $ios-radius-lg;
  286. padding: 10px 20px;
  287. font-size: 14px;
  288. cursor: pointer;
  289. transition: background-color 0.3s ease;
  290. &:hover {
  291. background-color: $ios-primary-light;
  292. }
  293. }
  294. }
  295. }
  296. }
  297. /* 项目分配审核与执行样式 */
  298. .assignment-form {
  299. .form-group {
  300. margin-bottom: 15px;
  301. label {
  302. display: block;
  303. margin-bottom: 5px;
  304. color: $ios-text-primary;
  305. font-weight: 500;
  306. }
  307. select {
  308. width: 100%;
  309. padding: 10px;
  310. border: 1px solid $ios-border;
  311. border-radius: $ios-radius-lg;
  312. font-size: 14px;
  313. background-color: white;
  314. &:focus {
  315. outline: none;
  316. border-color: $ios-primary;
  317. box-shadow: 0 0 0 2px rgba(0, 71, 171, 0.1);
  318. }
  319. }
  320. }
  321. .specified-assignment,
  322. .recommended-assignment {
  323. margin-top: 15px;
  324. }
  325. .workload-status {
  326. margin-top: 10px;
  327. .status {
  328. padding: 8px 12px;
  329. border-radius: $ios-radius-lg;
  330. font-size: 14px;
  331. display: inline-block;
  332. &.idle {
  333. background-color: #e3f2fd;
  334. color: $ios-primary;
  335. }
  336. &.medium {
  337. background-color: #fff3cd;
  338. color: #856404;
  339. }
  340. &.busy {
  341. background-color: #ffebee;
  342. color: #c62828;
  343. }
  344. }
  345. .alternative-suggestions {
  346. margin-top: 15px;
  347. p {
  348. color: $ios-text-primary;
  349. font-weight: 500;
  350. margin-bottom: 10px;
  351. font-size: 14px;
  352. }
  353. .designer-suggestions {
  354. display: grid;
  355. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  356. gap: 10px;
  357. .designer-card {
  358. background-color: white;
  359. padding: 12px;
  360. border-radius: $ios-radius-lg;
  361. border: 1px solid $ios-border;
  362. .designer-name {
  363. color: $ios-text-primary;
  364. font-weight: 600;
  365. margin-bottom: 5px;
  366. }
  367. .designer-skill,
  368. .designer-workload {
  369. font-size: 13px;
  370. color: $ios-text-secondary;
  371. margin: 3px 0;
  372. }
  373. .btn-select {
  374. background-color: $ios-primary;
  375. color: white;
  376. border: none;
  377. border-radius: $ios-radius-lg;
  378. padding: 6px 12px;
  379. font-size: 12px;
  380. cursor: pointer;
  381. margin-top: 8px;
  382. &:hover {
  383. background-color: $ios-primary-light;
  384. }
  385. }
  386. }
  387. }
  388. }
  389. }
  390. .designer-recommendations {
  391. p {
  392. color: $ios-text-primary;
  393. font-weight: 500;
  394. margin-bottom: 15px;
  395. font-size: 14px;
  396. }
  397. .designer-cards {
  398. display: grid;
  399. grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  400. gap: 15px;
  401. .designer-card {
  402. background-color: white;
  403. border-radius: $ios-radius-lg;
  404. border: 1px solid $ios-border;
  405. overflow: hidden;
  406. .card-header {
  407. background-color: $ios-background-secondary;
  408. padding: 12px;
  409. display: flex;
  410. justify-content: space-between;
  411. align-items: center;
  412. .designer-name {
  413. color: $ios-text-primary;
  414. font-weight: 600;
  415. margin: 0;
  416. }
  417. .match-score {
  418. color: $ios-primary;
  419. font-weight: 600;
  420. font-size: 13px;
  421. margin: 0;
  422. }
  423. }
  424. .card-body {
  425. padding: 12px;
  426. .designer-skill,
  427. .designer-workload {
  428. font-size: 13px;
  429. color: $ios-text-secondary;
  430. margin: 5px 0;
  431. }
  432. .designer-stats {
  433. display: flex;
  434. margin-top: 10px;
  435. .stat-item {
  436. flex: 1;
  437. .stat-label {
  438. font-size: 12px;
  439. color: $ios-text-tertiary;
  440. }
  441. .stat-value {
  442. font-size: 14px;
  443. font-weight: 600;
  444. color: $ios-text-primary;
  445. }
  446. }
  447. }
  448. }
  449. .card-footer {
  450. padding: 12px;
  451. border-top: 1px solid $ios-border;
  452. .btn-assign {
  453. background-color: $ios-primary;
  454. color: white;
  455. border: none;
  456. border-radius: $ios-radius-lg;
  457. padding: 8px 16px;
  458. font-size: 14px;
  459. cursor: pointer;
  460. width: 100%;
  461. &:hover {
  462. background-color: $ios-primary-light;
  463. }
  464. }
  465. }
  466. }
  467. }
  468. }
  469. .btn-execute {
  470. background-color: $ios-primary;
  471. color: white;
  472. border: none;
  473. border-radius: $ios-radius-lg;
  474. padding: 12px 20px;
  475. font-size: 16px;
  476. font-weight: 500;
  477. cursor: pointer;
  478. width: 100%;
  479. margin-top: 20px;
  480. transition: background-color 0.3s ease;
  481. &:hover:not(:disabled) {
  482. background-color: $ios-primary-light;
  483. }
  484. &:disabled {
  485. background-color: $ios-text-tertiary;
  486. cursor: not-allowed;
  487. }
  488. }
  489. }
  490. /* 分配结果样式 */
  491. .assignment-result {
  492. margin-top: 20px;
  493. background-color: $ios-background-secondary;
  494. border-radius: $ios-radius-lg;
  495. padding: 20px;
  496. text-align: center;
  497. .result-content {
  498. .result-icon {
  499. width: 50px;
  500. height: 50px;
  501. border-radius: 50%;
  502. display: flex;
  503. align-items: center;
  504. justify-content: center;
  505. margin: 0 auto 15px;
  506. font-size: 24px;
  507. font-weight: bold;
  508. &.success {
  509. background-color: #d4edda;
  510. color: #155724;
  511. }
  512. }
  513. h3 {
  514. color: $ios-text-primary;
  515. margin-bottom: 10px;
  516. }
  517. p {
  518. color: $ios-text-secondary;
  519. margin-bottom: 15px;
  520. }
  521. .result-details {
  522. background-color: white;
  523. border-radius: $ios-radius-lg;
  524. padding: 15px;
  525. text-align: left;
  526. p {
  527. margin: 5px 0;
  528. color: $ios-text-primary;
  529. }
  530. }
  531. }
  532. }
  533. /* 响应式设计 */
  534. @media (max-width: 768px) {
  535. .project-review-main {
  536. padding: 10px;
  537. }
  538. .feasibility-section,
  539. .assignment-section {
  540. padding: 15px;
  541. }
  542. .designer-suggestions,
  543. .designer-cards {
  544. grid-template-columns: 1fr !important;
  545. }
  546. }