dashboard.scss 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873
  1. @use "sass:color";
  2. @use '../../../shared/styles/ios-theme' as ios;
  3. @use '../ios-theme.scss' as local;
  4. /* 新增优化样式 */
  5. @import './dashboard-new-styles.scss';
  6. @import './dashboard-calendar.scss';
  7. // 待审批项目卡片样式
  8. .project-card {
  9. &.pending-approval {
  10. border: 2px solid #ff9800 !important;
  11. box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
  12. position: relative;
  13. animation: pulse 2s ease-in-out infinite;
  14. .approval-badge {
  15. position: absolute;
  16. top: 10px;
  17. right: 10px;
  18. background: linear-gradient(135deg, #ff9800, #ff6b00);
  19. color: white;
  20. padding: 4px 12px;
  21. border-radius: 20px;
  22. font-size: 12px;
  23. font-weight: bold;
  24. display: flex;
  25. align-items: center;
  26. gap: 4px;
  27. box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
  28. z-index: 10;
  29. .badge-icon {
  30. font-size: 14px;
  31. }
  32. }
  33. }
  34. }
  35. @keyframes pulse {
  36. 0%, 100% {
  37. transform: scale(1);
  38. }
  39. 50% {
  40. transform: scale(1.02);
  41. }
  42. }
  43. /* 顶部导航栏样式 */
  44. .top-navbar {
  45. position: fixed;
  46. top: 0;
  47. left: 0;
  48. right: 0;
  49. z-index: 1000;
  50. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  51. padding: 0.625rem 2rem; // 从1rem减少到0.625rem,降低高度
  52. display: flex;
  53. justify-content: space-between;
  54. align-items: center;
  55. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  56. .navbar-left {
  57. .navbar-title {
  58. font-size: 1.25rem; // 从1.5rem减小到1.25rem
  59. font-weight: 600;
  60. color: white;
  61. margin: 0;
  62. }
  63. }
  64. .navbar-right {
  65. display: flex;
  66. align-items: center;
  67. gap: 1.5rem; // 从2rem减少到1.5rem
  68. .date-display {
  69. color: rgba(255, 255, 255, 0.9);
  70. font-size: 0.875rem; // 从0.95rem减小到0.875rem
  71. font-weight: 500;
  72. }
  73. .user-profile {
  74. display: flex;
  75. align-items: center;
  76. gap: 0.625rem; // 从0.75rem减少到0.625rem
  77. background: rgba(255, 255, 255, 0.15);
  78. padding: 0.375rem 0.875rem; // 从0.5rem 1rem减少
  79. border-radius: 50px;
  80. backdrop-filter: blur(10px);
  81. transition: background 0.3s ease;
  82. &:hover {
  83. background: rgba(255, 255, 255, 0.25);
  84. }
  85. .user-avatar {
  86. width: 36px; // 从40px减小到36px
  87. height: 36px;
  88. border-radius: 50%;
  89. object-fit: cover;
  90. border: 2px solid white;
  91. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  92. }
  93. .user-name {
  94. color: white;
  95. font-weight: 600;
  96. font-size: 0.9375rem; // 从1rem减小到0.9375rem
  97. }
  98. .user-role {
  99. color: rgba(255, 255, 255, 0.8);
  100. font-size: 0.8125rem; // 从0.875rem减小到0.8125rem
  101. padding: 0.1875rem 0.625rem; // 从0.25rem 0.75rem减少
  102. background: rgba(255, 255, 255, 0.2);
  103. border-radius: 12px;
  104. }
  105. }
  106. }
  107. }
  108. :host {
  109. display: block;
  110. background-color: ios.$ios-background-secondary;
  111. min-height: 100vh;
  112. padding: 0; // 移除默认padding
  113. padding-left: ios.$ios-spacing-lg;
  114. padding-right: ios.$ios-spacing-lg;
  115. padding-top: calc(70px + ios.$ios-spacing-lg); // 70px为导航栏高度,加上额外间距
  116. padding-bottom: ios.$ios-spacing-lg;
  117. overflow-y: auto; /* 确保组件内容可以滚动 */
  118. max-height: 100vh; /* 限制最大高度为视口高度 */
  119. box-sizing: border-box; /* 确保padding计入高度 */
  120. }
  121. .dashboard-header {
  122. margin-bottom: local.$ios-spacing-xxl;
  123. h1 {
  124. font-size: local.$ios-font-size-xl;
  125. font-weight: local.$ios-font-weight-bold;
  126. color: local.$ios-text-primary;
  127. margin: 0 0 local.$ios-spacing-lg 0;
  128. }
  129. // 核心数据指标卡片样式
  130. .dashboard-metrics {
  131. display: grid;
  132. grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  133. gap: local.$ios-spacing-lg;
  134. margin-top: local.$ios-spacing-lg;
  135. .metric-card {
  136. display: flex;
  137. align-items: center;
  138. gap: local.$ios-spacing-md;
  139. background: linear-gradient(135deg, local.$ios-card-background, #f8f9fa);
  140. border-radius: local.$ios-radius-lg;
  141. padding: local.$ios-spacing-lg;
  142. border: 1px solid local.$ios-border;
  143. box-shadow: local.$ios-shadow-sm;
  144. cursor: pointer;
  145. transition: all 0.3s ease;
  146. &:hover {
  147. transform: translateY(-2px);
  148. box-shadow: local.$ios-shadow-card;
  149. }
  150. .metric-icon {
  151. font-size: 2rem;
  152. width: 50px;
  153. height: 50px;
  154. display: flex;
  155. align-items: center;
  156. justify-content: center;
  157. border-radius: local.$ios-radius-full;
  158. background-color: local.$ios-background;
  159. }
  160. .metric-icon.warning { background-color: rgba(255, 149, 0, 0.1); }
  161. .metric-icon.info { background-color: rgba(59, 130, 246, 0.1); }
  162. .metric-icon.primary { background-color: rgba(124, 58, 237, 0.1); }
  163. .metric-icon.danger { background-color: rgba(239, 68, 68, 0.1); }
  164. .metric-icon.success { background-color: rgba(16, 185, 129, 0.1); }
  165. .metric-content { flex: 1; }
  166. .metric-count {
  167. font-size: 2rem;
  168. font-weight: local.$ios-font-weight-bold;
  169. color: local.$ios-text-primary;
  170. line-height: 1.2;
  171. }
  172. .metric-label {
  173. font-size: local.$ios-font-size-sm;
  174. color: local.$ios-text-secondary;
  175. text-transform: uppercase;
  176. letter-spacing: 0.5px;
  177. }
  178. }
  179. }
  180. }
  181. /* 极窄屏样式优化:减小列间距与列宽,保证可视密�?*/
  182. @media (max-width: 640px) {
  183. .project-kanban {
  184. .kanban-header { gap: local.$ios-spacing-sm; }
  185. .kanban-body {
  186. gap: local.$ios-spacing-sm;
  187. .kanban-column {
  188. min-width: 160px;
  189. max-width: 160px;
  190. }
  191. }
  192. }
  193. }
  194. @media (max-width: 480px) {
  195. .project-kanban {
  196. .kanban-body {
  197. .kanban-column {
  198. min-width: 150px;
  199. max-width: 150px;
  200. }
  201. }
  202. }
  203. }
  204. .dashboard-main {
  205. max-width: 1400px;
  206. margin: 0 auto;
  207. }
  208. .section-header {
  209. display: flex;
  210. justify-content: space-between;
  211. align-items: center;
  212. margin-bottom: local.$ios-spacing-lg;
  213. h2 {
  214. font-size: local.$ios-font-size-lg;
  215. font-weight: local.$ios-font-weight-semibold;
  216. color: local.$ios-text-primary;
  217. margin: 0;
  218. }
  219. .section-actions {
  220. display: inline-flex;
  221. align-items: center;
  222. gap: 12px;
  223. .btn-link {
  224. background: transparent;
  225. border: none;
  226. color: #0969da;
  227. cursor: pointer;
  228. padding: 4px 6px;
  229. &:hover { text-decoration: underline; }
  230. }
  231. }
  232. }
  233. .btn-toggle-view {
  234. padding: local.$ios-spacing-sm local.$ios-spacing-md;
  235. border-radius: local.$ios-radius-md;
  236. border: 1px solid local.$ios-border;
  237. background: linear-gradient(180deg, #fff, #f8fafc);
  238. color: local.$ios-text-primary;
  239. font-size: local.$ios-font-size-sm;
  240. cursor: pointer;
  241. box-shadow: local.$ios-shadow-sm;
  242. transition: all .2s ease;
  243. &:hover {
  244. transform: translateY(-1px);
  245. box-shadow: local.$ios-shadow-card;
  246. }
  247. }
  248. .gantt-card {
  249. background: local.$ios-card-background;
  250. border: 1px solid local.$ios-border;
  251. border-radius: local.$ios-radius-lg;
  252. box-shadow: local.$ios-shadow-card;
  253. padding: local.$ios-spacing-lg;
  254. margin-bottom: local.$ios-spacing-xl;
  255. position: relative; // 确保内部绝对定位下拉基于该容�?
  256. .gantt-container {
  257. width: 100%;
  258. height: 600px; // 增加高度以更好地展示项目
  259. min-height: 500px;
  260. }
  261. .gantt-header {
  262. display: flex;
  263. justify-content: space-between;
  264. align-items: center;
  265. margin-bottom: local.$ios-spacing-md;
  266. overflow: visible; // 避免头部区域裁剪下拉
  267. .title {
  268. font-size: local.$ios-font-size-md;
  269. font-weight: local.$ios-font-weight-semibold;
  270. color: local.$ios-text-primary;
  271. }
  272. .hint {
  273. font-size: local.$ios-font-size-xs;
  274. color: local.$ios-text-secondary;
  275. }
  276. // 布局调整:搜索框放在同层级最右边,模式切换在其左�?
  277. .scale-switch { margin-left: 0; }
  278. .mode-switch { order: 3; margin-left: 8px; }
  279. .search-box { order: 4; margin-left: auto; position: relative; }
  280. // 甘特头部中的搜索建议下拉为悬浮层,不占据文档�?
  281. .search-box {
  282. .suggestion-panel {
  283. position: absolute;
  284. top: calc(100% + 6px);
  285. right: 0;
  286. min-width: 260px;
  287. width: max(100%, 360px);
  288. max-width: 520px;
  289. background: #fff;
  290. border: 1px solid #e5e7eb;
  291. border-radius: 10px;
  292. box-shadow: 0 12px 28px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  293. z-index: 20;
  294. padding: 6px;
  295. }
  296. .suggestion-panel ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
  297. .suggestion-panel li {
  298. padding: 8px 10px;
  299. border-radius: 8px;
  300. cursor: pointer;
  301. transition: background .15s ease;
  302. display: flex;
  303. flex-direction: column;
  304. gap: 4px;
  305. }
  306. .suggestion-panel li:hover { background: #f3f4f6; }
  307. .suggestion-panel .line-1 { display: flex; align-items: center; gap: 8px; }
  308. .suggestion-panel .line-1 .name { font-weight: 600; color: #111827; flex: 1; min-width: 0; }
  309. .suggestion-panel .line-1 .badge { font-size: 12px; padding: 2px 6px; border-radius: 999px; background: #eef2ff; color: #4f46e5; }
  310. .suggestion-panel .line-1 .badge.vip { background: #ede9fe; color: #7c3aed; }
  311. .suggestion-panel .line-1 .urgency { font-size: 12px; }
  312. .suggestion-panel .line-2 { display: flex; align-items: center; justify-content: space-between; color: #6b7280; font-size: 12px; }
  313. .suggestion-panel .empty { padding: 10px 12px; color: #6b7280; font-size: 13px; }
  314. }
  315. }
  316. .gantt-chart {
  317. width: 100%;
  318. height: 420px;
  319. }
  320. }
  321. .section-filters {
  322. display: flex;
  323. gap: local.$ios-spacing-md;
  324. flex-wrap: wrap;
  325. align-items: center;
  326. overflow: visible; // 避免看板筛选区搜索建议被裁�?
  327. .custom-select {
  328. padding: local.$ios-spacing-sm local.$ios-spacing-md;
  329. border: 1px solid local.$ios-border;
  330. border-radius: local.$ios-radius-md;
  331. background-color: local.$ios-background;
  332. font-size: local.$ios-font-size-sm;
  333. color: local.$ios-text-primary;
  334. cursor: pointer;
  335. transition: all 0.2s ease;
  336. min-width: 140px;
  337. }
  338. .search-box {
  339. margin-right: 8px;
  340. position: relative; // 作为下拉定位参�?
  341. .input-search {
  342. width: 260px;
  343. padding: 8px 12px;
  344. border: 1px solid #e5e7eb;
  345. border-radius: 8px;
  346. font-size: 14px;
  347. outline: none;
  348. transition: border-color .2s ease, box-shadow .2s ease;
  349. &:focus {
  350. border-color: #3b82f6;
  351. box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  352. }
  353. }
  354. // 看板筛选区域同样使用悬浮层下拉
  355. .suggestion-panel {
  356. position: absolute;
  357. top: calc(100% + 6px);
  358. right: 0;
  359. min-width: 260px;
  360. width: max(100%, 360px);
  361. max-width: 520px;
  362. background: #fff;
  363. border: 1px solid #e5e7eb;
  364. border-radius: 10px;
  365. box-shadow: 0 12px 28px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  366. z-index: 20;
  367. padding: 6px;
  368. }
  369. .suggestion-panel ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
  370. .suggestion-panel li {
  371. padding: 8px 10px;
  372. border-radius: 8px;
  373. cursor: pointer;
  374. transition: background .15s ease;
  375. display: flex;
  376. flex-direction: column;
  377. gap: 4px;
  378. }
  379. .suggestion-panel li:hover { background: #f3f4f6; }
  380. .suggestion-panel .line-1 { display: flex; align-items: center; gap: 8px; }
  381. .suggestion-panel .line-1 .name { font-weight: 600; color: #111827; flex: 1; min-width: 0; }
  382. .suggestion-panel .line-1 .badge { font-size: 12px; padding: 2px 6px; border-radius: 999px; background: #eef2ff; color: #4f46e5; }
  383. .suggestion-panel .line-1 .badge.vip { background: #ede9fe; color: #7c3aed; }
  384. .suggestion-panel .line-1 .urgency { font-size: 12px; }
  385. .suggestion-panel .line-2 { display: flex; align-items: center; justify-content: space-between; color: #6b7280; font-size: 12px; }
  386. .suggestion-panel .empty { padding: 10px 12px; color: #6b7280; font-size: 13px; }
  387. }
  388. }
  389. // 项目卡片与看板样�?
  390. .project-kanban {
  391. position: relative;
  392. z-index: 1;
  393. // 公共横向滚动容器
  394. .kanban-scroll {
  395. overflow-x: auto;
  396. padding-bottom: local.$ios-spacing-md;
  397. -webkit-overflow-scrolling: touch;
  398. &::-webkit-scrollbar { height: 6px; }
  399. &::-webkit-scrollbar-track {
  400. background: local.$ios-background;
  401. border-radius: local.$ios-radius-full;
  402. }
  403. &::-webkit-scrollbar-thumb {
  404. background: local.$ios-border;
  405. border-radius: local.$ios-radius-full;
  406. }
  407. &::-webkit-scrollbar-thumb:hover { background: local.$ios-text-tertiary; }
  408. .kanban-header, .kanban-body { width: max-content; }
  409. }
  410. // 看板标题�?
  411. .kanban-header {
  412. position: sticky;
  413. top: 0;
  414. z-index: 2;
  415. background: local.$ios-card-background;
  416. border-bottom: 1px solid local.$ios-border;
  417. display: flex;
  418. gap: local.$ios-spacing-md;
  419. margin-bottom: local.$ios-spacing-md;
  420. .kanban-column-header {
  421. flex: 0 0 180px;
  422. min-width: 180px;
  423. max-width: 180px;
  424. display: flex;
  425. justify-content: space-between;
  426. align-items: center;
  427. padding: local.$ios-spacing-sm local.$ios-spacing-md;
  428. background-color: local.$ios-background;
  429. border-radius: local.$ios-radius-md;
  430. border: 1px solid local.$ios-border;
  431. h3 {
  432. font-size: local.$ios-font-size-sm;
  433. font-weight: local.$ios-font-weight-medium;
  434. color: local.$ios-text-primary;
  435. margin: 0;
  436. }
  437. .stage-count {
  438. font-size: local.$ios-font-size-xs;
  439. background-color: local.$ios-primary;
  440. color: local.$ios-background;
  441. padding: 2px 8px;
  442. border-radius: local.$ios-radius-full;
  443. font-weight: local.$ios-font-weight-medium;
  444. }
  445. }
  446. }
  447. // 看板主体内容
  448. .kanban-body {
  449. display: flex;
  450. gap: local.$ios-spacing-md;
  451. .kanban-column {
  452. flex: 1;
  453. min-width: 180px;
  454. max-width: 180px;
  455. height: 400px;
  456. background-color: local.$ios-background;
  457. border-radius: local.$ios-radius-md;
  458. border: 1px solid local.$ios-border;
  459. padding: local.$ios-spacing-sm;
  460. overflow-y: auto;
  461. -webkit-overflow-scrolling: touch;
  462. &::-webkit-scrollbar { width: 4px; }
  463. &::-webkit-scrollbar-track { background: transparent; }
  464. &::-webkit-scrollbar-thumb {
  465. background: local.$ios-border;
  466. border-radius: local.$ios-radius-full;
  467. }
  468. .project-card {
  469. background-color: local.$ios-card-background;
  470. border-radius: local.$ios-radius-md;
  471. padding: local.$ios-spacing-md;
  472. margin-bottom: local.$ios-spacing-sm;
  473. border: 1px solid local.$ios-border;
  474. box-shadow: local.$ios-shadow-sm;
  475. transition: all 0.2s ease;
  476. cursor: pointer;
  477. user-select: none;
  478. &:hover {
  479. transform: translateY(-2px);
  480. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  481. }
  482. &:active { transform: translateY(-1px); opacity: 0.98; }
  483. &.overdue { border-left: 4px solid local.$ios-danger; }
  484. &.high-urgency { border-left: 4px solid local.$ios-warning; }
  485. &.due-soon { border-left: 4px solid local.$ios-warning; }
  486. .project-card-header {
  487. display: flex;
  488. justify-content: space-between;
  489. align-items: flex-start;
  490. margin-bottom: local.$ios-spacing-sm;
  491. h4 {
  492. font-size: local.$ios-font-size-sm;
  493. font-weight: local.$ios-font-weight-medium;
  494. color: local.$ios-primary;
  495. margin: 0;
  496. cursor: pointer;
  497. &:hover { text-decoration: underline; }
  498. }
  499. .project-urgency {
  500. font-size: 10px;
  501. padding: 2px 6px;
  502. border-radius: local.$ios-radius-full;
  503. font-weight: local.$ios-font-weight-medium;
  504. }
  505. .urgency-high { background-color: rgba(239, 68, 68, 0.1); color: local.$ios-danger; }
  506. .urgency-medium { background-color: rgba(255, 149, 0, 0.1); color: local.$ios-warning; }
  507. .urgency-low { background-color: rgba(59, 130, 246, 0.1); color: local.$ios-info; }
  508. }
  509. .project-card-content {
  510. margin-bottom: local.$ios-spacing-sm;
  511. p {
  512. font-size: 11px;
  513. color: local.$ios-text-secondary;
  514. margin: 0 0 4px 0;
  515. }
  516. .deadline { font-size: 10px; color: local.$ios-text-tertiary; }
  517. }
  518. .project-card-footer {
  519. display: flex;
  520. gap: 4px;
  521. button {
  522. flex: 1;
  523. font-size: 10px;
  524. padding: 4px 6px;
  525. border: none;
  526. border-radius: local.$ios-radius-sm;
  527. cursor: pointer;
  528. transition: all 0.2s ease;
  529. }
  530. .btn-view { background-color: local.$ios-primary; color: local.$ios-background; }
  531. .btn-assign { background-color: local.$ios-success; color: local.$ios-background; }
  532. button:hover { opacity: 0.9; }
  533. }
  534. .right-badges {
  535. display: flex;
  536. align-items: center;
  537. gap: 6px;
  538. }
  539. .member-badge {
  540. font-size: 10px;
  541. padding: 2px 6px;
  542. border-radius: local.$ios-radius-full;
  543. background-color: rgba(59, 130, 246, 0.08);
  544. color: local.$ios-info;
  545. &.vip {
  546. background-color: rgba(124, 58, 237, 0.12);
  547. color: local.$ios-primary;
  548. font-weight: local.$ios-font-weight-semibold;
  549. }
  550. }
  551. }
  552. .empty-column {
  553. display: flex;
  554. flex-direction: column;
  555. align-items: center;
  556. justify-content: center;
  557. height: 100%;
  558. .empty-icon {
  559. font-size: 2rem;
  560. margin-bottom: local.$ios-spacing-sm;
  561. opacity: 0.3;
  562. }
  563. p {
  564. font-size: local.$ios-font-size-sm;
  565. color: local.$ios-text-tertiary;
  566. margin: 0;
  567. }
  568. }
  569. }
  570. }
  571. }
  572. /* 项目监控大盘样式 */
  573. .monitoring-section {
  574. background-color: local.$ios-card-background;
  575. border-radius: local.$ios-radius-lg;
  576. padding: local.$ios-spacing-xl;
  577. margin-bottom: local.$ios-spacing-xl;
  578. box-shadow: local.$ios-shadow-card;
  579. position: relative;
  580. overflow: visible; // 允许搜索建议下拉面板不被裁剪
  581. &::before {
  582. content: '';
  583. position: absolute;
  584. top: 0;
  585. right: 0;
  586. width: 300px;
  587. height: 300px;
  588. background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), transparent);
  589. border-radius: 50%;
  590. transform: translate(50%, -50%);
  591. z-index: 0;
  592. pointer-events: none;
  593. }
  594. .gantt-card { position: relative; z-index: 1; }
  595. }
  596. /* 快速操作面板样�?*/
  597. .quick-actions-section {
  598. background-color: local.$ios-card-background;
  599. border-radius: local.$ios-radius-lg;
  600. padding: local.$ios-spacing-xl;
  601. margin-bottom: local.$ios-spacing-xl;
  602. box-shadow: local.$ios-shadow-card;
  603. .quick-actions-grid {
  604. display: grid;
  605. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  606. gap: local.$ios-spacing-lg;
  607. .action-card {
  608. background: linear-gradient(135deg, local.$ios-background, #f8f9fa);
  609. border-radius: local.$ios-radius-lg;
  610. padding: local.$ios-spacing-xl;
  611. border: 1px solid local.$ios-border;
  612. text-align: center;
  613. cursor: pointer;
  614. transition: all 0.3s ease;
  615. &:hover {
  616. transform: translateY(-3px);
  617. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  618. border-color: local.$ios-primary-light;
  619. }
  620. .action-icon {
  621. font-size: 2.5rem;
  622. margin-bottom: local.$ios-spacing-md;
  623. opacity: 0.8;
  624. }
  625. h3 {
  626. font-size: local.$ios-font-size-base;
  627. font-weight: local.$ios-font-weight-medium;
  628. color: local.$ios-text-primary;
  629. margin: 0 0 local.$ios-spacing-xs 0;
  630. }
  631. p {
  632. font-size: local.$ios-font-size-sm;
  633. color: local.$ios-text-secondary;
  634. margin: 0;
  635. }
  636. }
  637. }
  638. }
  639. /* 待办任务样式 */
  640. .todo-section {
  641. background-color: local.$ios-card-background;
  642. border-radius: local.$ios-radius-lg;
  643. padding: local.$ios-spacing-xl;
  644. margin-bottom: local.$ios-spacing-xl;
  645. box-shadow: local.$ios-shadow-card;
  646. }
  647. .todo-list {
  648. .todo-item {
  649. padding: local.$ios-spacing-lg;
  650. border-radius: local.$ios-radius-md;
  651. margin-bottom: local.$ios-spacing-md;
  652. background-color: local.$ios-background;
  653. border: 1px solid local.$ios-border;
  654. transition: local.$ios-feedback-hover;
  655. &:last-child { margin-bottom: 0; }
  656. &.priority-high { border-left: 4px solid local.$ios-danger; }
  657. &.priority-medium { border-left: 4px solid local.$ios-warning; }
  658. &.priority-low { border-left: 4px solid local.$ios-info; }
  659. &:hover { transform: translateY(-1px); box-shadow: local.$ios-shadow-sm; }
  660. .todo-header {
  661. display: flex;
  662. justify-content: space-between;
  663. align-items: center;
  664. margin-bottom: local.$ios-spacing-md;
  665. h3 {
  666. font-size: local.$ios-font-size-base;
  667. font-weight: local.$ios-font-weight-medium;
  668. color: local.$ios-text-primary;
  669. margin: 0;
  670. }
  671. .task-priority {
  672. font-size: local.$ios-font-size-xs;
  673. padding: local.$ios-spacing-xs local.$ios-spacing-sm;
  674. border-radius: local.$ios-radius-full;
  675. font-weight: local.$ios-font-weight-medium;
  676. }
  677. }
  678. .todo-info {
  679. margin-bottom: local.$ios-spacing-md;
  680. p {
  681. margin: 0 0 local.$ios-spacing-xs 0;
  682. font-size: local.$ios-font-size-sm;
  683. color: local.$ios-text-secondary;
  684. }
  685. .task-deadline { font-size: local.$ios-font-size-xs; color: local.$ios-text-tertiary; }
  686. }
  687. .todo-actions {
  688. .btn-handle {
  689. background-color: local.$ios-primary;
  690. color: local.$ios-background;
  691. border: none;
  692. border-radius: local.$ios-radius-md;
  693. padding: local.$ios-spacing-sm local.$ios-spacing-lg;
  694. font-size: local.$ios-font-size-sm;
  695. font-weight: local.$ios-font-weight-medium;
  696. cursor: pointer;
  697. transition: local.$ios-feedback-tap;
  698. &:hover { background-color: local.$ios-primary-light; }
  699. }
  700. }
  701. }
  702. }
  703. /* 超期提醒样式 */
  704. .overdue-alert {
  705. position: fixed;
  706. top: 50%;
  707. left: 50%;
  708. transform: translate(-50%, -50%);
  709. background-color: local.$ios-card-background;
  710. border-radius: local.$ios-radius-lg;
  711. padding: local.$ios-spacing-xl;
  712. box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  713. z-index: 1000;
  714. min-width: 400px;
  715. animation: slideIn 0.3s ease-out;
  716. @keyframes slideIn {
  717. from { opacity: 0; transform: translate(-50%, -60%); }
  718. to { opacity: 1; transform: translate(-50%, -50%); }
  719. }
  720. .alert-content {
  721. h3 {
  722. font-size: local.$ios-font-size-lg;
  723. font-weight: local.$ios-font-weight-semibold;
  724. color: local.$ios-danger;
  725. margin: 0 0 local.$ios-spacing-lg 0;
  726. display: flex;
  727. align-items: center;
  728. gap: local.$ios-spacing-sm;
  729. }
  730. ul {
  731. margin: 0 0 local.$ios-spacing-lg 0;
  732. padding-left: local.$ios-spacing-xl;
  733. li {
  734. font-size: local.$ios-font-size-base;
  735. color: local.$ios-text-primary;
  736. margin-bottom: local.$ios-spacing-sm;
  737. &:last-child { margin-bottom: 0; }
  738. }
  739. }
  740. .alert-actions {
  741. display: flex;
  742. gap: local.$ios-spacing-md;
  743. justify-content: flex-end;
  744. .btn-view-all {
  745. background-color: local.$ios-primary;
  746. color: local.$ios-background;
  747. border: none;
  748. border-radius: local.$ios-radius-md;
  749. padding: local.$ios-spacing-sm local.$ios-spacing-lg;
  750. font-size: local.$ios-font-size-sm;
  751. font-weight: local.$ios-font-weight-medium;
  752. cursor: pointer;
  753. transition: local.$ios-feedback-tap;
  754. &:hover { background-color: local.$ios-primary-light; }
  755. }
  756. .btn-close {
  757. background-color: local.$ios-text-tertiary;
  758. color: local.$ios-text-primary;
  759. border: none;
  760. border-radius: local.$ios-radius-md;
  761. padding: local.$ios-spacing-sm local.$ios-spacing-lg;
  762. font-size: local.$ios-font-size-sm;
  763. font-weight: local.$ios-font-weight-medium;
  764. cursor: pointer;
  765. transition: local.$ios-feedback-tap;
  766. &:hover { background-color: local.$ios-text-secondary; color: local.$ios-background; }
  767. }
  768. }
  769. }
  770. }
  771. .time-window-buttons {
  772. display: inline-flex;
  773. gap: 8px;
  774. margin-left: 8px;
  775. button {
  776. padding: 6px 10px;
  777. border: 1px solid #d0d7de;
  778. border-radius: 6px;
  779. background: #fff;
  780. color: #24292f;
  781. cursor: pointer;
  782. transition: all .15s ease;
  783. &:hover { background: #f6f8fa; }
  784. &.active { background: #0969da; color: #fff; border-color: #0969da; }
  785. }
  786. }
  787. .inline-actions {
  788. display: inline-flex;
  789. gap: 6px;
  790. margin-left: 8px;
  791. .btn-secondary {
  792. padding: 4px 8px;
  793. font-size: 12px;
  794. border: 1px solid #d0d7de;
  795. border-radius: 6px;
  796. background: #fff;
  797. color: #24292f;
  798. cursor: pointer;
  799. &:hover { background: #f3f4f6; }
  800. }
  801. }
  802. .urgent-pinned {
  803. margin: 8px 16px 0;
  804. padding: 8px 12px;
  805. background: rgba(255, 241, 241, 0.8);
  806. border: 1px solid #fecaca;
  807. border-radius: 8px;
  808. .pinned-title {
  809. font-size: 12px;
  810. color: #b91c1c;
  811. margin-bottom: 6px;
  812. font-weight: 600;
  813. }
  814. .pinned-list {
  815. display: flex;
  816. align-items: center;
  817. gap: 12px;
  818. flex-wrap: wrap;
  819. }
  820. .pinned-item {
  821. display: inline-flex;
  822. align-items: center;
  823. gap: 6px;
  824. padding: 6px 10px;
  825. border-radius: 6px;
  826. background: #fff;
  827. border: 1px solid #fee2e2;
  828. cursor: pointer;
  829. transition: box-shadow .2s ease;
  830. &:hover { box-shadow: 0 1px 4px rgba(0,0,0,.1); }
  831. .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
  832. .dot-high { background: #ef4444; }
  833. .name { font-weight: 600; color: #111827; }
  834. .meta { color: #6b7280; font-size: 12px; }
  835. }
  836. .btn-view-all {
  837. padding: 6px 10px;
  838. border: none;
  839. background: #ef4444;
  840. color: #fff;
  841. border-radius: 6px;
  842. cursor: pointer;
  843. }
  844. }
  845. /* 全局甘特头部工具条(网格布局,含缩放/搜索/模式切换�?*/
  846. .gantt-header {
  847. position: relative;
  848. z-index: 2;
  849. display: grid;
  850. grid-template-columns: 1fr auto auto auto; // title/hint | scale | search | mode
  851. gap: 12px;
  852. align-items: center;
  853. .search-box {
  854. input[type='search'] {
  855. width: 240px;
  856. padding: 8px 12px;
  857. border: 1px solid #e5e7eb;
  858. border-radius: 8px;
  859. font-size: 14px;
  860. outline: none;
  861. transition: border-color .2s ease, box-shadow .2s ease;
  862. &:focus {
  863. border-color: #3b82f6;
  864. box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  865. }
  866. }
  867. }
  868. .scale-switch {
  869. margin-left: auto;
  870. display: inline-flex;
  871. border: 1px solid local.$ios-border;
  872. border-radius: 8px;
  873. overflow: hidden;
  874. button {
  875. background: #fff;
  876. color: local.$ios-text-secondary;
  877. padding: 6px 10px;
  878. border: none;
  879. outline: none;
  880. cursor: pointer;
  881. font-size: local.$ios-font-size-sm;
  882. &:hover { background: local.$ios-background-secondary; }
  883. &.active {
  884. background: local.$ios-primary-light;
  885. color: #fff;
  886. }
  887. & + button { border-left: 1px solid local.$ios-border; }
  888. }
  889. }
  890. .mode-switch {
  891. position: relative;
  892. display: inline-flex;
  893. align-items: center;
  894. background: local.$ios-background;
  895. border: 1px solid local.$ios-border;
  896. border-radius: 999px;
  897. padding: 2px;
  898. overflow: hidden;
  899. box-shadow: 0 1px 2px rgba(0,0,0,.04);
  900. // 滑块式高亮背�?
  901. &::before {
  902. content: '';
  903. position: absolute;
  904. top: 2px;
  905. left: 2px;
  906. bottom: 2px;
  907. width: calc(50% - 2px);
  908. background: linear-gradient(180deg, local.$ios-primary-light 0%, color.adjust(local.$ios-primary-light, $lightness: -4%) 100%);
  909. border-radius: 999px;
  910. box-shadow: 0 6px 14px rgba(99,102,241,.22);
  911. transform: translateX(0%);
  912. transition: transform .25s cubic-bezier(.2,.8,.2,1);
  913. z-index: 0;
  914. }
  915. &[data-active='designer']::before { transform: translateX(100%); }
  916. button {
  917. position: relative;
  918. z-index: 1;
  919. background: transparent;
  920. border: none;
  921. outline: none;
  922. color: local.$ios-text-secondary;
  923. padding: 10px 16px 10px 14px;
  924. font-size: local.$ios-font-size-sm;
  925. font-weight: local.$ios-font-weight-semibold;
  926. letter-spacing: .2px;
  927. border-radius: 999px;
  928. cursor: pointer;
  929. transition: color .2s ease, transform .05s ease;
  930. display: inline-flex;
  931. align-items: center;
  932. gap: 6px;
  933. &:hover { color: local.$ios-text-primary; }
  934. &:active { transform: translateY(0.5px); }
  935. &:focus-visible { box-shadow: 0 0 0 3px rgba(99,102,241,.25); }
  936. &.active {
  937. color: #fff;
  938. text-shadow: 0 1px 0 rgba(0,0,0,.08);
  939. }
  940. &::before {
  941. content: '';
  942. display: inline-block;
  943. width: 14px; height: 14px;
  944. }
  945. &:first-child::before { content: '📁'; }
  946. &:last-child::before { content: '🎨'; }
  947. }
  948. @media (max-width: 640px) { button { padding: 8px 12px 8px 10px; } }
  949. @media (max-width: 420px) {
  950. button {
  951. padding: 7px 10px 7px 9px;
  952. font-size: 12px;
  953. }
  954. }
  955. @media (prefers-reduced-motion: reduce) {
  956. &::before { transition: none; }
  957. button { transition: none; }
  958. }
  959. }
  960. }
  961. @media (max-width: 1024px) {
  962. .gantt-header {
  963. grid-template-columns: 1fr auto auto; // title/hint | scale | mode; search full row
  964. grid-auto-rows: auto;
  965. .search-box { grid-column: 1 / -1; }
  966. }
  967. .section-filters {
  968. .search-box { width: 100%; }
  969. .input-search { width: min(100%, 520px); }
  970. }
  971. }
  972. @media (max-width: 640px) {
  973. .gantt-header {
  974. gap: 8px;
  975. .search-box input[type='search'] { width: 100%; }
  976. }
  977. .section-filters {
  978. gap: 6px;
  979. .input-search { width: 100%; }
  980. }
  981. }
  982. .workload-summary {
  983. margin: 12px 0 16px;
  984. padding: 12px 14px;
  985. background: local.$ios-background;
  986. border: 1px solid local.$ios-border;
  987. border-radius: local.$ios-radius-lg;
  988. box-shadow: 0 1px 2px rgba(0,0,0,.04);
  989. .summary-header {
  990. display: flex;
  991. align-items: center;
  992. justify-content: space-between;
  993. margin-bottom: 8px;
  994. h3 { font-size: local.$ios-font-size-md; margin: 0; color: local.$ios-text-primary; }
  995. .summary-actions {
  996. display: flex;
  997. align-items: center;
  998. gap: 8px;
  999. .dimension-switch {
  1000. display: inline-flex;
  1001. border: 1px solid local.$ios-border;
  1002. border-radius: 999px;
  1003. overflow: hidden;
  1004. button {
  1005. background: #fff;
  1006. color: local.$ios-text-secondary;
  1007. padding: 6px 10px;
  1008. border: none;
  1009. cursor: pointer;
  1010. font-size: local.$ios-font-size-sm;
  1011. &:hover { background: local.$ios-background-secondary; }
  1012. &.active { background: local.$ios-primary-light; color: #fff; }
  1013. & + button { border-left: 1px solid local.$ios-border; }
  1014. }
  1015. }
  1016. }
  1017. }
  1018. .workload-chart {
  1019. width: 100%;
  1020. height: 240px;
  1021. }
  1022. }
  1023. // 在文件末尾追加覆盖样式:让项目监控大盘四列等分占满卡片内�?
  1024. .project-kanban {
  1025. // 让头部与主体容器使用可用宽度而非max-content,避免不必要的横向滚�?
  1026. .kanban-scroll {
  1027. .kanban-header, .kanban-body { width: 100%; }
  1028. }
  1029. // 使用grid使四列等分,并确保头部与主体列宽对齐
  1030. .kanban-header {
  1031. display: grid;
  1032. grid-template-columns: repeat(4, minmax(0, 1fr));
  1033. gap: local.$ios-spacing-md;
  1034. .kanban-column-header {
  1035. // 取消固定180px,允许自适应
  1036. flex: 1 1 auto;
  1037. min-width: 0;
  1038. max-width: none;
  1039. }
  1040. }
  1041. .kanban-body {
  1042. display: grid;
  1043. grid-template-columns: repeat(4, minmax(0, 1fr));
  1044. gap: local.$ios-spacing-md;
  1045. .kanban-column {
  1046. // 取消固定180px,允许自适应
  1047. min-width: 0;
  1048. max-width: none;
  1049. }
  1050. }
  1051. }
  1052. // 响应式:中屏降为两列,小屏单列,避免过窄
  1053. @media (max-width: 1200px) {
  1054. .project-kanban {
  1055. .kanban-header, .kanban-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  1056. }
  1057. }
  1058. @media (max-width: 640px) {
  1059. .project-kanban {
  1060. .kanban-header, .kanban-body { grid-template-columns: 1fr; }
  1061. }
  1062. }
  1063. /* 员工详情面板样式 */
  1064. .employee-detail-overlay {
  1065. position: fixed;
  1066. top: 0;
  1067. left: 0;
  1068. right: 0;
  1069. bottom: 0;
  1070. background: rgba(0, 0, 0, 0.5);
  1071. backdrop-filter: blur(4px);
  1072. z-index: 1000;
  1073. display: flex;
  1074. align-items: center;
  1075. justify-content: center;
  1076. padding: 20px;
  1077. animation: fadeIn 0.3s ease-out;
  1078. }
  1079. .employee-detail-panel {
  1080. background: #ffffff;
  1081. border-radius: 16px;
  1082. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  1083. max-width: 600px;
  1084. width: 100%;
  1085. max-height: 80vh;
  1086. overflow: hidden;
  1087. animation: slideUp 0.3s ease-out;
  1088. .panel-header {
  1089. display: flex;
  1090. align-items: center;
  1091. justify-content: space-between;
  1092. padding: 24px 24px 16px;
  1093. border-bottom: 1px solid #f1f5f9;
  1094. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1095. color: white;
  1096. .panel-title {
  1097. display: flex;
  1098. align-items: center;
  1099. gap: 12px;
  1100. margin: 0;
  1101. font-size: 20px;
  1102. font-weight: 600;
  1103. .icon-user {
  1104. width: 24px;
  1105. height: 24px;
  1106. stroke-width: 2;
  1107. }
  1108. }
  1109. .btn-close {
  1110. background: rgba(255, 255, 255, 0.2);
  1111. border: none;
  1112. border-radius: 8px;
  1113. width: 36px;
  1114. height: 36px;
  1115. display: flex;
  1116. align-items: center;
  1117. justify-content: center;
  1118. cursor: pointer;
  1119. transition: all 0.2s ease;
  1120. svg {
  1121. width: 18px;
  1122. height: 18px;
  1123. stroke: white;
  1124. }
  1125. &:hover {
  1126. background: rgba(255, 255, 255, 0.3);
  1127. transform: scale(1.05);
  1128. }
  1129. }
  1130. }
  1131. .panel-content {
  1132. padding: 24px;
  1133. max-height: calc(80vh - 100px);
  1134. overflow-y: auto;
  1135. .section {
  1136. margin-bottom: 24px;
  1137. &:last-child {
  1138. margin-bottom: 0;
  1139. }
  1140. .section-header {
  1141. display: flex;
  1142. align-items: center;
  1143. gap: 8px;
  1144. margin-bottom: 16px;
  1145. .section-icon {
  1146. width: 20px;
  1147. height: 20px;
  1148. stroke: #667eea;
  1149. stroke-width: 2;
  1150. }
  1151. h4 {
  1152. margin: 0;
  1153. flex: 1;
  1154. font-size: 16px;
  1155. font-weight: 600;
  1156. color: #1e293b;
  1157. }
  1158. .btn-refresh-survey {
  1159. background: transparent;
  1160. border: none;
  1161. padding: 6px;
  1162. cursor: pointer;
  1163. border-radius: 6px;
  1164. display: flex;
  1165. align-items: center;
  1166. justify-content: center;
  1167. transition: all 0.2s;
  1168. color: #667eea;
  1169. &:hover:not(:disabled) {
  1170. background: #f0f3ff;
  1171. }
  1172. &:disabled {
  1173. opacity: 0.5;
  1174. cursor: not-allowed;
  1175. }
  1176. svg {
  1177. transition: transform 0.3s ease;
  1178. &.rotating {
  1179. animation: rotate 1s linear infinite;
  1180. }
  1181. }
  1182. }
  1183. @keyframes rotate {
  1184. from {
  1185. transform: rotate(0deg);
  1186. }
  1187. to {
  1188. transform: rotate(360deg);
  1189. }
  1190. }
  1191. }
  1192. }
  1193. // 负载概况样式
  1194. .workload-section {
  1195. .workload-info {
  1196. background: #f8fafc;
  1197. border-radius: 12px;
  1198. padding: 20px;
  1199. border: 1px solid #e2e8f0;
  1200. .workload-stat {
  1201. display: flex;
  1202. align-items: center;
  1203. gap: 8px;
  1204. margin-bottom: 16px;
  1205. .stat-label {
  1206. font-size: 14px;
  1207. color: #64748b;
  1208. font-weight: 500;
  1209. }
  1210. .stat-value {
  1211. font-size: 18px;
  1212. font-weight: 700;
  1213. padding: 4px 12px;
  1214. border-radius: 20px;
  1215. &.normal-workload {
  1216. color: #059669;
  1217. background: #d1fae5;
  1218. }
  1219. &.high-workload {
  1220. color: #dc2626;
  1221. background: #fee2e2;
  1222. }
  1223. }
  1224. }
  1225. .project-list {
  1226. .project-label {
  1227. font-size: 14px;
  1228. color: #64748b;
  1229. font-weight: 500;
  1230. margin-bottom: 8px;
  1231. display: block;
  1232. }
  1233. .project-tags {
  1234. display: flex;
  1235. flex-wrap: wrap;
  1236. gap: 8px;
  1237. .project-tag {
  1238. background: #667eea;
  1239. color: white;
  1240. padding: 4px 12px;
  1241. border-radius: 16px;
  1242. font-size: 12px;
  1243. font-weight: 500;
  1244. transition: all 0.2s ease;
  1245. &.clickable {
  1246. cursor: pointer;
  1247. display: inline-flex;
  1248. align-items: center;
  1249. gap: 4px;
  1250. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1251. box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
  1252. .icon-arrow {
  1253. width: 14px;
  1254. height: 14px;
  1255. stroke-width: 2.5;
  1256. opacity: 0;
  1257. transform: translateX(-4px);
  1258. transition: all 0.2s ease;
  1259. }
  1260. &:hover {
  1261. background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  1262. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  1263. transform: translateY(-2px);
  1264. .icon-arrow {
  1265. opacity: 1;
  1266. transform: translateX(0);
  1267. }
  1268. }
  1269. &:active {
  1270. transform: translateY(0);
  1271. box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  1272. }
  1273. }
  1274. &.more {
  1275. background: #94a3b8;
  1276. cursor: default;
  1277. }
  1278. }
  1279. }
  1280. }
  1281. }
  1282. }
  1283. // 请假明细样式
  1284. .leave-section {
  1285. .leave-table {
  1286. background: #ffffff;
  1287. border-radius: 12px;
  1288. border: 1px solid #e2e8f0;
  1289. overflow: hidden;
  1290. table {
  1291. width: 100%;
  1292. border-collapse: collapse;
  1293. thead {
  1294. background: #f8fafc;
  1295. th {
  1296. padding: 12px 16px;
  1297. text-align: left;
  1298. font-size: 14px;
  1299. font-weight: 600;
  1300. color: #374151;
  1301. border-bottom: 1px solid #e5e7eb;
  1302. }
  1303. }
  1304. tbody {
  1305. tr {
  1306. transition: background-color 0.2s ease;
  1307. &:hover {
  1308. background: #f9fafb;
  1309. }
  1310. &.leave-day {
  1311. background: #fef2f2;
  1312. &:hover {
  1313. background: #fee2e2;
  1314. }
  1315. }
  1316. td {
  1317. padding: 12px 16px;
  1318. font-size: 14px;
  1319. color: #374151;
  1320. border-bottom: 1px solid #f1f5f9;
  1321. &:last-child {
  1322. border-bottom: none;
  1323. }
  1324. }
  1325. }
  1326. tr:last-child td {
  1327. border-bottom: none;
  1328. }
  1329. }
  1330. .status-badge {
  1331. padding: 4px 8px;
  1332. border-radius: 12px;
  1333. font-size: 12px;
  1334. font-weight: 500;
  1335. &.work {
  1336. background: #d1fae5;
  1337. color: #059669;
  1338. }
  1339. &.leave {
  1340. background: #fee2e2;
  1341. color: #dc2626;
  1342. }
  1343. }
  1344. }
  1345. .no-leave {
  1346. padding: 40px 20px;
  1347. text-align: center;
  1348. color: #64748b;
  1349. .no-data-icon {
  1350. width: 48px;
  1351. height: 48px;
  1352. margin: 0 auto 16px;
  1353. stroke: #94a3b8;
  1354. stroke-width: 1.5;
  1355. }
  1356. p {
  1357. margin: 0;
  1358. font-size: 14px;
  1359. }
  1360. }
  1361. }
  1362. }
  1363. // 红色标记说明样式
  1364. .explanation-section {
  1365. .explanation-content {
  1366. background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  1367. border: 1px solid #f59e0b;
  1368. border-radius: 12px;
  1369. padding: 16px;
  1370. .explanation-text {
  1371. margin: 0;
  1372. font-size: 14px;
  1373. color: #92400e;
  1374. line-height: 1.5;
  1375. font-weight: 500;
  1376. }
  1377. }
  1378. }
  1379. // 新增:能力问卷样式
  1380. .survey-section {
  1381. .survey-content {
  1382. background: #f8fafc;
  1383. border-radius: 12px;
  1384. padding: 20px;
  1385. border: 1px solid #e2e8f0;
  1386. .survey-status {
  1387. display: flex;
  1388. align-items: center;
  1389. gap: 8px;
  1390. padding: 12px 16px;
  1391. background: white;
  1392. border-radius: 8px;
  1393. margin-bottom: 20px;
  1394. border: 1px solid #d1fae5;
  1395. &.completed {
  1396. background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  1397. }
  1398. span {
  1399. font-size: 14px;
  1400. font-weight: 500;
  1401. color: #065f46;
  1402. &.survey-time {
  1403. margin-left: auto;
  1404. font-size: 12px;
  1405. color: #6b7280;
  1406. }
  1407. }
  1408. }
  1409. .capability-summary {
  1410. h5 {
  1411. margin: 0 0 20px 0;
  1412. font-size: 15px;
  1413. font-weight: 600;
  1414. color: #1e293b;
  1415. }
  1416. .summary-grid {
  1417. display: grid;
  1418. grid-template-columns: 1fr;
  1419. gap: 16px;
  1420. margin-bottom: 20px;
  1421. .summary-item {
  1422. background: white;
  1423. border-radius: 8px;
  1424. padding: 16px;
  1425. border: 1px solid #e2e8f0;
  1426. display: flex;
  1427. flex-direction: column;
  1428. gap: 8px;
  1429. .label {
  1430. font-size: 13px;
  1431. font-weight: 600;
  1432. color: #64748b;
  1433. }
  1434. .value {
  1435. font-size: 14px;
  1436. color: #1e293b;
  1437. line-height: 1.5;
  1438. .limit-hint {
  1439. font-size: 12px;
  1440. color: #94a3b8;
  1441. font-style: italic;
  1442. margin-left: 4px;
  1443. }
  1444. }
  1445. }
  1446. }
  1447. .btn-view-full {
  1448. width: 100%;
  1449. padding: 12px 16px;
  1450. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1451. color: white;
  1452. border: none;
  1453. border-radius: 8px;
  1454. font-size: 14px;
  1455. font-weight: 600;
  1456. cursor: pointer;
  1457. display: flex;
  1458. align-items: center;
  1459. justify-content: center;
  1460. gap: 8px;
  1461. transition: all 0.2s;
  1462. &:hover {
  1463. transform: translateY(-1px);
  1464. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  1465. }
  1466. svg {
  1467. flex-shrink: 0;
  1468. }
  1469. }
  1470. }
  1471. .survey-answers {
  1472. h5 {
  1473. margin: 0 0 16px 0;
  1474. font-size: 15px;
  1475. font-weight: 600;
  1476. color: #1e293b;
  1477. }
  1478. .btn-collapse {
  1479. width: 100%;
  1480. padding: 12px 16px;
  1481. background: #f1f5f9;
  1482. color: #64748b;
  1483. border: 1px solid #e2e8f0;
  1484. border-radius: 8px;
  1485. font-size: 14px;
  1486. font-weight: 600;
  1487. cursor: pointer;
  1488. display: flex;
  1489. align-items: center;
  1490. justify-content: center;
  1491. gap: 8px;
  1492. margin-top: 20px;
  1493. transition: all 0.2s;
  1494. &:hover {
  1495. background: #e2e8f0;
  1496. border-color: #cbd5e1;
  1497. }
  1498. svg {
  1499. flex-shrink: 0;
  1500. }
  1501. }
  1502. .answer-item {
  1503. background: white;
  1504. border-radius: 8px;
  1505. padding: 16px;
  1506. margin-bottom: 12px;
  1507. border: 1px solid #e2e8f0;
  1508. transition: all 0.2s ease;
  1509. &:last-child {
  1510. margin-bottom: 0;
  1511. }
  1512. &:hover {
  1513. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  1514. border-color: #cbd5e1;
  1515. }
  1516. .question-text {
  1517. font-size: 14px;
  1518. color: #374151;
  1519. margin-bottom: 12px;
  1520. line-height: 1.5;
  1521. strong {
  1522. color: #667eea;
  1523. margin-right: 4px;
  1524. }
  1525. }
  1526. .answer-text {
  1527. display: flex;
  1528. flex-wrap: wrap;
  1529. gap: 8px;
  1530. .answer-tag {
  1531. display: inline-block;
  1532. padding: 6px 12px;
  1533. border-radius: 16px;
  1534. font-size: 13px;
  1535. font-weight: 500;
  1536. &.single {
  1537. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1538. color: white;
  1539. }
  1540. &.multiple {
  1541. background: #dbeafe;
  1542. color: #1e40af;
  1543. border: 1px solid #93c5fd;
  1544. }
  1545. &.empty {
  1546. background: #f3f4f6;
  1547. color: #9ca3af;
  1548. border: 1px dashed #d1d5db;
  1549. font-style: italic;
  1550. }
  1551. }
  1552. .answer-scale {
  1553. width: 100%;
  1554. .scale-bar {
  1555. height: 32px;
  1556. background: #f1f5f9;
  1557. border-radius: 16px;
  1558. overflow: hidden;
  1559. position: relative;
  1560. .scale-fill {
  1561. height: 100%;
  1562. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1563. display: flex;
  1564. align-items: center;
  1565. justify-content: flex-end;
  1566. padding: 0 12px;
  1567. transition: width 0.3s ease;
  1568. span {
  1569. font-size: 13px;
  1570. font-weight: 600;
  1571. color: white;
  1572. }
  1573. }
  1574. }
  1575. }
  1576. }
  1577. }
  1578. }
  1579. }
  1580. .survey-empty {
  1581. padding: 60px 20px;
  1582. text-align: center;
  1583. color: #64748b;
  1584. background: #f8fafc;
  1585. border-radius: 12px;
  1586. border: 1px solid #e2e8f0;
  1587. .no-data-icon {
  1588. width: 64px;
  1589. height: 64px;
  1590. margin: 0 auto 16px;
  1591. stroke: #94a3b8;
  1592. stroke-width: 1.5;
  1593. opacity: 0.5;
  1594. }
  1595. p {
  1596. margin: 0;
  1597. font-size: 14px;
  1598. color: #64748b;
  1599. }
  1600. }
  1601. }
  1602. }
  1603. }
  1604. // 动画效果
  1605. @keyframes fadeIn {
  1606. from {
  1607. opacity: 0;
  1608. }
  1609. to {
  1610. opacity: 1;
  1611. }
  1612. }
  1613. @keyframes slideUp {
  1614. from {
  1615. opacity: 0;
  1616. transform: translateY(30px) scale(0.95);
  1617. }
  1618. to {
  1619. opacity: 1;
  1620. transform: translateY(0) scale(1);
  1621. }
  1622. }
  1623. // 响应式设�?
  1624. @media (max-width: 768px) {
  1625. .employee-detail-overlay {
  1626. padding: 10px;
  1627. .employee-detail-panel {
  1628. max-width: 100%;
  1629. max-height: 90vh;
  1630. .panel-header {
  1631. padding: 20px 20px 12px;
  1632. .panel-title {
  1633. font-size: 18px;
  1634. }
  1635. }
  1636. .panel-content {
  1637. padding: 20px;
  1638. .section {
  1639. margin-bottom: 20px;
  1640. }
  1641. .workload-section .workload-info {
  1642. padding: 16px;
  1643. }
  1644. .leave-section .leave-table table {
  1645. font-size: 13px;
  1646. th, td {
  1647. padding: 10px 12px;
  1648. }
  1649. }
  1650. }
  1651. }
  1652. }
  1653. }