project-review-styles.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. /* ==================== 项目复盘模块样式 ==================== */
  2. .project-review-section {
  3. width: 100%;
  4. background: white;
  5. border-radius: 20px;
  6. padding: 32px;
  7. margin-top: 24px;
  8. box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  9. .review-section-header {
  10. display: flex;
  11. justify-content: space-between;
  12. align-items: flex-start;
  13. margin-bottom: 28px;
  14. padding-bottom: 20px;
  15. border-bottom: 2px solid rgba(0, 122, 255, 0.1);
  16. .header-left {
  17. flex: 1;
  18. .section-title {
  19. font-size: 24px;
  20. font-weight: 700;
  21. color: #1a1a1a;
  22. margin: 0 0 8px 0;
  23. display: flex;
  24. align-items: center;
  25. gap: 10px;
  26. }
  27. .section-subtitle {
  28. font-size: 14px;
  29. color: #666;
  30. margin: 0;
  31. line-height: 1.6;
  32. }
  33. }
  34. .header-right {
  35. display: flex;
  36. gap: 12px;
  37. button {
  38. padding: 10px 20px;
  39. border-radius: 10px;
  40. border: none;
  41. font-size: 14px;
  42. font-weight: 600;
  43. cursor: pointer;
  44. transition: all 0.3s ease;
  45. &.generate-review-btn {
  46. background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
  47. color: white;
  48. &:hover:not(:disabled) {
  49. transform: translateY(-2px);
  50. box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
  51. }
  52. &:disabled {
  53. opacity: 0.6;
  54. cursor: not-allowed;
  55. }
  56. }
  57. &.export-review-btn {
  58. background: #f0f0f0;
  59. color: #333;
  60. &:hover {
  61. background: #e0e0e0;
  62. }
  63. }
  64. }
  65. }
  66. }
  67. .review-tabs {
  68. display: flex;
  69. gap: 12px;
  70. margin-bottom: 32px;
  71. border-bottom: 2px solid #f0f0f0;
  72. .review-tab {
  73. display: flex;
  74. align-items: center;
  75. gap: 8px;
  76. padding: 14px 24px;
  77. border: none;
  78. background: transparent;
  79. color: #666;
  80. font-size: 15px;
  81. font-weight: 600;
  82. cursor: pointer;
  83. position: relative;
  84. transition: all 0.3s ease;
  85. border-bottom: 3px solid transparent;
  86. margin-bottom: -2px;
  87. .tab-icon {
  88. font-size: 18px;
  89. }
  90. .tab-label {
  91. font-weight: 500;
  92. }
  93. &:hover {
  94. color: #007aff;
  95. background: rgba(0, 122, 255, 0.05);
  96. }
  97. &.active {
  98. color: #007aff;
  99. border-bottom-color: #007aff;
  100. background: rgba(0, 122, 255, 0.08);
  101. }
  102. }
  103. }
  104. .review-content-area {
  105. min-height: 500px;
  106. max-height: 800px;
  107. overflow-y: auto;
  108. overflow-x: hidden;
  109. padding-right: 8px;
  110. /* 自定义滚动条 */
  111. &::-webkit-scrollbar {
  112. width: 10px;
  113. }
  114. &::-webkit-scrollbar-track {
  115. background: #f5f5f5;
  116. border-radius: 5px;
  117. }
  118. &::-webkit-scrollbar-thumb {
  119. background: #c0c0c0;
  120. border-radius: 5px;
  121. &:hover {
  122. background: #a0a0a0;
  123. }
  124. }
  125. }
  126. }
  127. /* SOP执行数据样式 */
  128. .sop-data-content {
  129. .sop-metrics-grid {
  130. display: grid;
  131. grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  132. gap: 20px;
  133. margin-bottom: 40px;
  134. .metric-card {
  135. background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  136. border: 1px solid #e0e0e0;
  137. border-radius: 16px;
  138. padding: 24px;
  139. transition: all 0.3s ease;
  140. &:hover {
  141. transform: translateY(-4px);
  142. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  143. border-color: #007aff;
  144. }
  145. .metric-header {
  146. display: flex;
  147. align-items: center;
  148. gap: 10px;
  149. margin-bottom: 16px;
  150. .metric-icon {
  151. font-size: 24px;
  152. }
  153. .metric-title {
  154. font-size: 14px;
  155. font-weight: 600;
  156. color: #666;
  157. margin: 0;
  158. }
  159. }
  160. .metric-value-large {
  161. font-size: 36px;
  162. font-weight: 700;
  163. color: #1a1a1a;
  164. margin-bottom: 12px;
  165. .unit {
  166. font-size: 18px;
  167. font-weight: 400;
  168. color: #999;
  169. margin-left: 4px;
  170. }
  171. }
  172. .metric-footer {
  173. display: flex;
  174. align-items: center;
  175. flex-wrap: wrap;
  176. gap: 8px;
  177. font-size: 13px;
  178. .metric-label {
  179. color: #999;
  180. }
  181. .metric-benchmark {
  182. color: #666;
  183. font-weight: 500;
  184. }
  185. .metric-status {
  186. padding: 4px 10px;
  187. border-radius: 6px;
  188. font-weight: 600;
  189. font-size: 12px;
  190. &.good {
  191. background: #e7f4e4;
  192. color: #34c759;
  193. }
  194. &.warning {
  195. background: #fff3cd;
  196. color: #ff9500;
  197. }
  198. }
  199. .satisfaction-stars {
  200. display: flex;
  201. gap: 4px;
  202. .star {
  203. font-size: 16px;
  204. color: #e0e0e0;
  205. &.filled {
  206. color: #ffc107;
  207. }
  208. }
  209. }
  210. }
  211. }
  212. }
  213. .sop-stages-section {
  214. margin-bottom: 40px;
  215. .subsection-title {
  216. font-size: 18px;
  217. font-weight: 700;
  218. color: #1a1a1a;
  219. margin: 0 0 24px 0;
  220. padding-bottom: 12px;
  221. border-bottom: 2px solid #f0f0f0;
  222. }
  223. .stages-timeline {
  224. display: flex;
  225. flex-direction: column;
  226. gap: 0;
  227. .stage-timeline-item {
  228. display: flex;
  229. gap: 20px;
  230. position: relative;
  231. .stage-indicator {
  232. display: flex;
  233. flex-direction: column;
  234. align-items: center;
  235. padding-top: 8px;
  236. .stage-dot {
  237. width: 16px;
  238. height: 16px;
  239. border-radius: 50%;
  240. background: #e0e0e0;
  241. border: 3px solid #fff;
  242. box-shadow: 0 0 0 2px #e0e0e0;
  243. flex-shrink: 0;
  244. z-index: 1;
  245. }
  246. .stage-line {
  247. width: 2px;
  248. flex: 1;
  249. background: #e0e0e0;
  250. min-height: 40px;
  251. }
  252. }
  253. &.completed .stage-indicator .stage-dot {
  254. background: #34c759;
  255. box-shadow: 0 0 0 2px #34c759;
  256. }
  257. &.ongoing .stage-indicator .stage-dot {
  258. background: #007aff;
  259. box-shadow: 0 0 0 2px #007aff;
  260. animation: pulse 2s infinite;
  261. }
  262. &.delayed .stage-indicator .stage-dot {
  263. background: #ff9500;
  264. box-shadow: 0 0 0 2px #ff9500;
  265. }
  266. .stage-content-card {
  267. flex: 1;
  268. background: white;
  269. border: 1px solid #e0e0e0;
  270. border-radius: 12px;
  271. padding: 20px;
  272. margin-bottom: 20px;
  273. transition: all 0.3s ease;
  274. &:hover {
  275. box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  276. border-color: #007aff;
  277. }
  278. .stage-card-header {
  279. display: flex;
  280. justify-content: space-between;
  281. align-items: center;
  282. margin-bottom: 16px;
  283. .stage-name {
  284. font-size: 16px;
  285. font-weight: 700;
  286. color: #1a1a1a;
  287. margin: 0;
  288. }
  289. .stage-status-badge {
  290. padding: 6px 14px;
  291. border-radius: 20px;
  292. font-size: 12px;
  293. font-weight: 600;
  294. &.completed {
  295. background: #e7f4e4;
  296. color: #34c759;
  297. }
  298. &.ongoing {
  299. background: #e3f2fd;
  300. color: #007aff;
  301. }
  302. &.delayed {
  303. background: #fff3cd;
  304. color: #ff9500;
  305. }
  306. }
  307. }
  308. .stage-metrics {
  309. display: grid;
  310. grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  311. gap: 16px;
  312. margin-bottom: 12px;
  313. .stage-metric-item {
  314. display: flex;
  315. flex-direction: column;
  316. .label {
  317. font-size: 13px;
  318. color: #999;
  319. margin-bottom: 4px;
  320. }
  321. .value {
  322. font-size: 16px;
  323. font-weight: 600;
  324. color: #1a1a1a;
  325. &.warning {
  326. color: #ff9500;
  327. }
  328. &.score {
  329. &.excellent {
  330. color: #34c759;
  331. }
  332. &.good {
  333. color: #007aff;
  334. }
  335. &.fair {
  336. color: #ff9500;
  337. }
  338. &.poor {
  339. color: #ff3b30;
  340. }
  341. }
  342. }
  343. }
  344. }
  345. .stage-issues {
  346. background: #fff3cd;
  347. border-left: 4px solid #ff9500;
  348. padding: 12px;
  349. border-radius: 8px;
  350. .issues-label {
  351. font-weight: 600;
  352. color: #ff9500;
  353. margin-right: 8px;
  354. }
  355. .issues-text {
  356. font-size: 14px;
  357. color: #666;
  358. }
  359. }
  360. }
  361. }
  362. }
  363. }
  364. .sop-charts-section {
  365. .charts-grid {
  366. display: grid;
  367. grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  368. gap: 24px;
  369. .chart-card {
  370. background: white;
  371. border: 1px solid #e0e0e0;
  372. border-radius: 16px;
  373. padding: 24px;
  374. .chart-title {
  375. font-size: 16px;
  376. font-weight: 700;
  377. color: #1a1a1a;
  378. margin: 0 0 20px 0;
  379. }
  380. .chart-placeholder {
  381. .bar-chart {
  382. display: flex;
  383. justify-content: space-around;
  384. align-items: flex-end;
  385. gap: 16px;
  386. height: 260px;
  387. padding: 20px 10px 0;
  388. border-left: 2px solid #e0e0e0;
  389. border-bottom: 2px solid #e0e0e0;
  390. position: relative;
  391. .bar-group {
  392. flex: 1;
  393. display: flex;
  394. flex-direction: column-reverse;
  395. align-items: center;
  396. gap: 8px;
  397. height: 100%;
  398. position: relative;
  399. .bar-label {
  400. font-size: 12px;
  401. font-weight: 600;
  402. color: #666;
  403. text-align: center;
  404. word-wrap: break-word;
  405. max-width: 100%;
  406. margin-top: 8px;
  407. }
  408. .bars {
  409. display: flex;
  410. gap: 6px;
  411. align-items: flex-end;
  412. height: calc(100% - 40px);
  413. width: 100%;
  414. justify-content: center;
  415. .bar {
  416. flex: 1;
  417. max-width: 32px;
  418. min-width: 24px;
  419. min-height: 30px;
  420. border-radius: 8px 8px 0 0;
  421. position: relative;
  422. display: flex;
  423. flex-direction: column;
  424. justify-content: flex-start;
  425. align-items: center;
  426. padding-top: 8px;
  427. transition: all 0.3s ease;
  428. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  429. &.planned {
  430. background: linear-gradient(to top, #4caf50 0%, #66bb6a 100%);
  431. }
  432. &.actual {
  433. background: linear-gradient(to top, #2196f3 0%, #42a5f5 100%);
  434. }
  435. .bar-value {
  436. font-size: 12px;
  437. font-weight: 700;
  438. color: white;
  439. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  440. }
  441. &:hover {
  442. transform: scaleY(1.05) scaleX(1.1);
  443. box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  444. z-index: 10;
  445. }
  446. }
  447. }
  448. }
  449. }
  450. .chart-legend {
  451. display: flex;
  452. justify-content: center;
  453. gap: 24px;
  454. margin-top: 20px;
  455. .legend-item {
  456. display: flex;
  457. align-items: center;
  458. gap: 8px;
  459. font-size: 13px;
  460. color: #666;
  461. .legend-color {
  462. width: 16px;
  463. height: 16px;
  464. border-radius: 4px;
  465. &.planned {
  466. background: linear-gradient(to bottom, #4caf50, #81c784);
  467. }
  468. &.actual {
  469. background: linear-gradient(to bottom, #2196f3, #64b5f6);
  470. }
  471. }
  472. }
  473. }
  474. &.radar-chart {
  475. min-height: 260px;
  476. display: flex;
  477. align-items: center;
  478. justify-content: center;
  479. background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  480. border-radius: 12px;
  481. padding: 20px;
  482. .radar-info {
  483. width: 100%;
  484. p {
  485. font-size: 16px;
  486. color: #666;
  487. margin-bottom: 20px;
  488. text-align: center;
  489. strong {
  490. font-size: 24px;
  491. font-weight: 700;
  492. color: #007aff;
  493. display: block;
  494. margin-top: 8px;
  495. }
  496. }
  497. .score-items {
  498. display: flex;
  499. flex-direction: column;
  500. gap: 12px;
  501. background: white;
  502. padding: 16px;
  503. border-radius: 8px;
  504. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  505. .score-item {
  506. display: flex;
  507. justify-content: space-between;
  508. align-items: center;
  509. font-size: 14px;
  510. padding: 8px 12px;
  511. border-radius: 6px;
  512. background: #f8f9fa;
  513. transition: all 0.3s ease;
  514. &:hover {
  515. background: #e9ecef;
  516. transform: translateX(4px);
  517. }
  518. .stage-label {
  519. color: #666;
  520. font-weight: 500;
  521. }
  522. .stage-score {
  523. font-weight: 700;
  524. font-size: 16px;
  525. padding: 6px 14px;
  526. border-radius: 8px;
  527. color: white !important; // 强制白色文字确保可读性
  528. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); // 添加文字阴影增强可读性
  529. &.excellent {
  530. background: linear-gradient(135deg, #34c759 0%, #28a745 100%);
  531. box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
  532. }
  533. &.good {
  534. background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
  535. box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
  536. }
  537. &.average {
  538. background: linear-gradient(135deg, #ff9500 0%, #e68600 100%);
  539. box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
  540. }
  541. &.poor {
  542. background: linear-gradient(135deg, #ff3b30 0%, #d32f2f 100%);
  543. box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
  544. }
  545. }
  546. }
  547. }
  548. }
  549. }
  550. }
  551. }
  552. }
  553. }
  554. }
  555. @keyframes pulse {
  556. 0%, 100% {
  557. transform: scale(1);
  558. opacity: 1;
  559. }
  560. 50% {
  561. transform: scale(1.1);
  562. opacity: 0.8;
  563. }
  564. }