dashboard.scss 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472
  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: white;
  642. border-radius: 12px;
  643. padding: 24px;
  644. margin-bottom: 24px;
  645. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  646. .section-header {
  647. display: flex;
  648. justify-content: space-between;
  649. align-items: center;
  650. margin-bottom: 20px;
  651. h2 {
  652. font-size: 20px;
  653. font-weight: 600;
  654. color: #111827;
  655. display: flex;
  656. align-items: center;
  657. gap: 8px;
  658. margin: 0;
  659. .task-count {
  660. font-size: 16px;
  661. color: #6b7280;
  662. font-weight: 400;
  663. }
  664. }
  665. .section-actions {
  666. display: flex;
  667. gap: 12px;
  668. .btn-refresh {
  669. display: flex;
  670. align-items: center;
  671. gap: 6px;
  672. padding: 8px 16px;
  673. background: #f3f4f6;
  674. border: 1px solid #e5e7eb;
  675. border-radius: 6px;
  676. font-size: 14px;
  677. color: #374151;
  678. cursor: pointer;
  679. transition: all 0.2s;
  680. &:hover:not(:disabled) {
  681. background: #e5e7eb;
  682. border-color: #d1d5db;
  683. }
  684. &:disabled {
  685. opacity: 0.6;
  686. cursor: not-allowed;
  687. }
  688. svg.rotating {
  689. animation: rotate 1s linear infinite;
  690. }
  691. }
  692. }
  693. }
  694. // 加载/错误/空状态
  695. .loading-state,
  696. .error-state,
  697. .empty-state {
  698. display: flex;
  699. flex-direction: column;
  700. align-items: center;
  701. justify-content: center;
  702. padding: 48px 24px;
  703. text-align: center;
  704. .spinner {
  705. width: 40px;
  706. height: 40px;
  707. border: 4px solid #f3f4f6;
  708. border-top-color: #667eea;
  709. border-radius: 50%;
  710. animation: rotate 1s linear infinite;
  711. }
  712. p {
  713. margin-top: 16px;
  714. font-size: 14px;
  715. color: #6b7280;
  716. &.hint {
  717. font-size: 13px;
  718. color: #9ca3af;
  719. margin-top: 8px;
  720. }
  721. }
  722. .btn-retry {
  723. margin-top: 16px;
  724. padding: 8px 20px;
  725. background: #667eea;
  726. color: white;
  727. border: none;
  728. border-radius: 6px;
  729. font-size: 14px;
  730. cursor: pointer;
  731. transition: background 0.2s;
  732. &:hover {
  733. background: #5568d3;
  734. }
  735. }
  736. }
  737. // 紧凑列表
  738. .todo-list-compact {
  739. display: flex;
  740. flex-direction: column;
  741. gap: 12px;
  742. .todo-item-compact {
  743. position: relative;
  744. display: flex;
  745. align-items: stretch;
  746. background: #fafafa;
  747. border: 1px solid #e5e7eb;
  748. border-radius: 8px;
  749. overflow: hidden;
  750. transition: all 0.2s;
  751. cursor: pointer;
  752. &:hover {
  753. background: #f9fafb;
  754. border-color: #d1d5db;
  755. box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  756. transform: translateY(-1px);
  757. }
  758. // 优先级指示条
  759. .priority-indicator {
  760. width: 4px;
  761. flex-shrink: 0;
  762. border-radius: 2px 0 0 2px;
  763. // 根据优先级设置颜色
  764. &[data-priority="critical"] {
  765. background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  766. }
  767. &[data-priority="high"] {
  768. background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  769. }
  770. &[data-priority="medium"] {
  771. background: linear-gradient(180deg, #eab308 0%, #ca8a04 100%);
  772. }
  773. &[data-priority="low"] {
  774. background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
  775. }
  776. }
  777. // 主要内容区
  778. .task-content {
  779. flex: 1;
  780. padding: 16px;
  781. min-width: 0;
  782. .task-header {
  783. display: flex;
  784. align-items: center;
  785. gap: 8px;
  786. margin-bottom: 8px;
  787. .priority-icon {
  788. font-size: 16px;
  789. flex-shrink: 0;
  790. }
  791. .priority-label {
  792. font-size: 12px;
  793. font-weight: 600;
  794. flex-shrink: 0;
  795. }
  796. .task-title {
  797. font-size: 15px;
  798. font-weight: 500;
  799. color: #111827;
  800. flex: 1;
  801. overflow: hidden;
  802. text-overflow: ellipsis;
  803. white-space: nowrap;
  804. margin: 0;
  805. }
  806. .task-badges {
  807. display: flex;
  808. align-items: center;
  809. gap: 6px;
  810. flex-shrink: 0;
  811. }
  812. .badge {
  813. padding: 3px 8px;
  814. border-radius: 4px;
  815. font-size: 11px;
  816. font-weight: 600;
  817. white-space: nowrap;
  818. &.badge-priority {
  819. // 根据优先级设置颜色
  820. &[data-priority="critical"] {
  821. background: #fee2e2;
  822. color: #dc2626;
  823. }
  824. &[data-priority="high"] {
  825. background: #ffedd5;
  826. color: #f97316;
  827. }
  828. &[data-priority="medium"] {
  829. background: #fef3c7;
  830. color: #ca8a04;
  831. }
  832. &[data-priority="low"] {
  833. background: #f3f4f6;
  834. color: #6b7280;
  835. }
  836. }
  837. &.badge-type {
  838. background: #e0e7ff;
  839. color: #4f46e5;
  840. }
  841. }
  842. .issue-type-badge {
  843. padding: 2px 8px;
  844. background: #e0e7ff;
  845. color: #4f46e5;
  846. border-radius: 4px;
  847. font-size: 11px;
  848. font-weight: 500;
  849. flex-shrink: 0;
  850. }
  851. }
  852. .task-meta {
  853. display: flex;
  854. align-items: center;
  855. gap: 16px;
  856. margin-bottom: 8px;
  857. flex-wrap: wrap;
  858. .meta-item {
  859. display: flex;
  860. align-items: center;
  861. gap: 4px;
  862. font-size: 13px;
  863. color: #6b7280;
  864. svg {
  865. opacity: 0.6;
  866. }
  867. }
  868. }
  869. .task-footer {
  870. display: flex;
  871. align-items: center;
  872. gap: 16px;
  873. flex-wrap: wrap;
  874. .time-info,
  875. .assignee-info {
  876. display: flex;
  877. align-items: center;
  878. gap: 4px;
  879. font-size: 12px;
  880. color: #9ca3af;
  881. svg {
  882. opacity: 0.7;
  883. }
  884. }
  885. // 时间信息的特殊样式(支持 tooltip 显示精确时间)
  886. .time-info {
  887. cursor: help; // 鼠标悬停时显示帮助图标
  888. position: relative;
  889. padding: 2px 4px;
  890. margin: -2px -4px; // 抵消padding,保持原有位置
  891. border-radius: 3px;
  892. transition: all 0.2s ease;
  893. &:hover {
  894. background-color: rgba(102, 126, 234, 0.1);
  895. color: #667eea;
  896. svg {
  897. opacity: 1;
  898. }
  899. }
  900. }
  901. .tags {
  902. display: flex;
  903. align-items: center;
  904. gap: 6px;
  905. .tag {
  906. padding: 2px 6px;
  907. background: #f3f4f6;
  908. color: #6b7280;
  909. border-radius: 3px;
  910. font-size: 11px;
  911. }
  912. .tag-more {
  913. font-size: 11px;
  914. color: #9ca3af;
  915. }
  916. }
  917. }
  918. }
  919. // 操作按钮区
  920. .task-actions {
  921. display: flex;
  922. flex-direction: column;
  923. gap: 8px;
  924. padding: 16px;
  925. border-left: 1px solid #e5e7eb;
  926. background: white;
  927. button {
  928. padding: 6px 12px;
  929. border: 1px solid #d1d5db;
  930. border-radius: 4px;
  931. font-size: 12px;
  932. cursor: pointer;
  933. transition: all 0.2s;
  934. white-space: nowrap;
  935. &.btn-view {
  936. background: #667eea;
  937. color: white;
  938. border-color: #667eea;
  939. &:hover {
  940. background: #5568d3;
  941. border-color: #5568d3;
  942. }
  943. }
  944. &.btn-mark-read {
  945. background: white;
  946. color: #6b7280;
  947. &:hover {
  948. background: #f9fafb;
  949. border-color: #9ca3af;
  950. }
  951. }
  952. }
  953. }
  954. }
  955. }
  956. }
  957. // 🆕 双栏布局样式
  958. .todo-section-dual {
  959. // 双栏容器
  960. .todo-dual-columns {
  961. display: grid;
  962. grid-template-columns: 1fr 1fr;
  963. gap: 24px;
  964. margin-top: 20px;
  965. }
  966. // 单栏样式
  967. .todo-column {
  968. display: flex;
  969. flex-direction: column;
  970. border: 1px solid #e5e7eb;
  971. border-radius: 8px;
  972. background: #fafafa;
  973. overflow: hidden;
  974. .column-header {
  975. padding: 16px;
  976. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  977. border-bottom: 1px solid #e5e7eb;
  978. h3 {
  979. margin: 0 0 4px 0;
  980. font-size: 16px;
  981. font-weight: 600;
  982. color: white;
  983. display: flex;
  984. align-items: center;
  985. gap: 8px;
  986. svg {
  987. flex-shrink: 0;
  988. }
  989. .task-count {
  990. font-size: 13px;
  991. font-weight: 500;
  992. padding: 2px 8px;
  993. background: rgba(255, 255, 255, 0.2);
  994. border-radius: 12px;
  995. &.urgent {
  996. background: rgba(239, 68, 68, 0.9);
  997. animation: pulse-glow 2s infinite;
  998. }
  999. }
  1000. }
  1001. .column-subtitle {
  1002. font-size: 12px;
  1003. color: rgba(255, 255, 255, 0.8);
  1004. margin-left: 26px;
  1005. }
  1006. }
  1007. // 左栏特定样式(待办问题)
  1008. &.todo-column-issues {
  1009. .column-header {
  1010. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1011. }
  1012. }
  1013. // 右栏特定样式(紧急事件)
  1014. &.todo-column-urgent {
  1015. .column-header {
  1016. background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  1017. }
  1018. // 紧急事件特定样式
  1019. .urgent-item {
  1020. background: #fff8f8;
  1021. border-left-width: 4px;
  1022. &[data-urgency="critical"] {
  1023. border-left-color: #dc2626;
  1024. background: #fef2f2;
  1025. }
  1026. &[data-urgency="high"] {
  1027. border-left-color: #f97316;
  1028. background: #fff7ed;
  1029. }
  1030. &[data-urgency="medium"] {
  1031. border-left-color: #f59e0b;
  1032. background: #fffbeb;
  1033. }
  1034. }
  1035. .urgency-indicator {
  1036. width: 4px;
  1037. &[data-urgency="critical"] {
  1038. background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  1039. box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
  1040. }
  1041. &[data-urgency="high"] {
  1042. background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  1043. }
  1044. &[data-urgency="medium"] {
  1045. background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  1046. }
  1047. }
  1048. .badge-urgency {
  1049. &[data-urgency="critical"] {
  1050. background: #fee2e2;
  1051. color: #dc2626;
  1052. font-weight: 700;
  1053. }
  1054. &[data-urgency="high"] {
  1055. background: #ffedd5;
  1056. color: #f97316;
  1057. }
  1058. &[data-urgency="medium"] {
  1059. background: #fef3c7;
  1060. color: #f59e0b;
  1061. }
  1062. }
  1063. .badge-event-type {
  1064. background: #dbeafe;
  1065. color: #1e40af;
  1066. }
  1067. .task-description {
  1068. font-size: 13px;
  1069. color: #6b7280;
  1070. margin: 8px 0;
  1071. line-height: 1.5;
  1072. }
  1073. .deadline-info {
  1074. &.overdue {
  1075. color: #dc2626;
  1076. font-weight: 600;
  1077. }
  1078. .overdue-label {
  1079. color: #dc2626;
  1080. font-weight: 600;
  1081. }
  1082. .upcoming-label {
  1083. color: #f97316;
  1084. }
  1085. .today-label {
  1086. color: #f59e0b;
  1087. font-weight: 600;
  1088. }
  1089. }
  1090. .completion-info {
  1091. font-weight: 500;
  1092. }
  1093. }
  1094. }
  1095. }
  1096. // 🆕 紧急事件脉冲动画
  1097. @keyframes pulse-glow {
  1098. 0%, 100% {
  1099. opacity: 1;
  1100. box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  1101. }
  1102. 50% {
  1103. opacity: 0.9;
  1104. box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  1105. }
  1106. }
  1107. @keyframes rotate {
  1108. from {
  1109. transform: rotate(0deg);
  1110. }
  1111. to {
  1112. transform: rotate(360deg);
  1113. }
  1114. }
  1115. // 响应式布局
  1116. @media (max-width: 768px) {
  1117. .todo-section {
  1118. padding: 16px;
  1119. .section-header {
  1120. flex-direction: column;
  1121. align-items: flex-start;
  1122. gap: 12px;
  1123. }
  1124. .todo-list-compact {
  1125. .todo-item-compact {
  1126. flex-direction: column;
  1127. .task-actions {
  1128. flex-direction: row;
  1129. border-left: none;
  1130. border-top: 1px solid #e5e7eb;
  1131. padding: 12px;
  1132. button {
  1133. flex: 1;
  1134. }
  1135. }
  1136. }
  1137. }
  1138. }
  1139. // 🆕 双栏布局响应式
  1140. .todo-section-dual {
  1141. .todo-dual-columns {
  1142. grid-template-columns: 1fr;
  1143. gap: 16px;
  1144. }
  1145. .todo-column {
  1146. .column-header h3 {
  1147. font-size: 15px;
  1148. }
  1149. }
  1150. }
  1151. }
  1152. /* 超期提醒样式 */
  1153. .overdue-alert {
  1154. position: fixed;
  1155. top: 50%;
  1156. left: 50%;
  1157. transform: translate(-50%, -50%);
  1158. background-color: local.$ios-card-background;
  1159. border-radius: local.$ios-radius-lg;
  1160. padding: local.$ios-spacing-xl;
  1161. box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  1162. z-index: 1000;
  1163. min-width: 400px;
  1164. animation: slideIn 0.3s ease-out;
  1165. @keyframes slideIn {
  1166. from { opacity: 0; transform: translate(-50%, -60%); }
  1167. to { opacity: 1; transform: translate(-50%, -50%); }
  1168. }
  1169. .alert-content {
  1170. h3 {
  1171. font-size: local.$ios-font-size-lg;
  1172. font-weight: local.$ios-font-weight-semibold;
  1173. color: local.$ios-danger;
  1174. margin: 0 0 local.$ios-spacing-lg 0;
  1175. display: flex;
  1176. align-items: center;
  1177. gap: local.$ios-spacing-sm;
  1178. }
  1179. ul {
  1180. margin: 0 0 local.$ios-spacing-lg 0;
  1181. padding-left: local.$ios-spacing-xl;
  1182. li {
  1183. font-size: local.$ios-font-size-base;
  1184. color: local.$ios-text-primary;
  1185. margin-bottom: local.$ios-spacing-sm;
  1186. &:last-child { margin-bottom: 0; }
  1187. }
  1188. }
  1189. .alert-actions {
  1190. display: flex;
  1191. gap: local.$ios-spacing-md;
  1192. justify-content: flex-end;
  1193. .btn-view-all {
  1194. background-color: local.$ios-primary;
  1195. color: local.$ios-background;
  1196. border: none;
  1197. border-radius: local.$ios-radius-md;
  1198. padding: local.$ios-spacing-sm local.$ios-spacing-lg;
  1199. font-size: local.$ios-font-size-sm;
  1200. font-weight: local.$ios-font-weight-medium;
  1201. cursor: pointer;
  1202. transition: local.$ios-feedback-tap;
  1203. &:hover { background-color: local.$ios-primary-light; }
  1204. }
  1205. .btn-close {
  1206. background-color: local.$ios-text-tertiary;
  1207. color: local.$ios-text-primary;
  1208. border: none;
  1209. border-radius: local.$ios-radius-md;
  1210. padding: local.$ios-spacing-sm local.$ios-spacing-lg;
  1211. font-size: local.$ios-font-size-sm;
  1212. font-weight: local.$ios-font-weight-medium;
  1213. cursor: pointer;
  1214. transition: local.$ios-feedback-tap;
  1215. &:hover { background-color: local.$ios-text-secondary; color: local.$ios-background; }
  1216. }
  1217. }
  1218. }
  1219. }
  1220. .time-window-buttons {
  1221. display: inline-flex;
  1222. gap: 8px;
  1223. margin-left: 8px;
  1224. button {
  1225. padding: 6px 10px;
  1226. border: 1px solid #d0d7de;
  1227. border-radius: 6px;
  1228. background: #fff;
  1229. color: #24292f;
  1230. cursor: pointer;
  1231. transition: all .15s ease;
  1232. &:hover { background: #f6f8fa; }
  1233. &.active { background: #0969da; color: #fff; border-color: #0969da; }
  1234. }
  1235. }
  1236. .inline-actions {
  1237. display: inline-flex;
  1238. gap: 6px;
  1239. margin-left: 8px;
  1240. .btn-secondary {
  1241. padding: 4px 8px;
  1242. font-size: 12px;
  1243. border: 1px solid #d0d7de;
  1244. border-radius: 6px;
  1245. background: #fff;
  1246. color: #24292f;
  1247. cursor: pointer;
  1248. &:hover { background: #f3f4f6; }
  1249. }
  1250. }
  1251. .urgent-pinned {
  1252. margin: 8px 16px 0;
  1253. padding: 8px 12px;
  1254. background: rgba(255, 241, 241, 0.8);
  1255. border: 1px solid #fecaca;
  1256. border-radius: 8px;
  1257. .pinned-title {
  1258. font-size: 12px;
  1259. color: #b91c1c;
  1260. margin-bottom: 6px;
  1261. font-weight: 600;
  1262. }
  1263. .pinned-list {
  1264. display: flex;
  1265. align-items: center;
  1266. gap: 12px;
  1267. flex-wrap: wrap;
  1268. }
  1269. .pinned-item {
  1270. display: inline-flex;
  1271. align-items: center;
  1272. gap: 6px;
  1273. padding: 6px 10px;
  1274. border-radius: 6px;
  1275. background: #fff;
  1276. border: 1px solid #fee2e2;
  1277. cursor: pointer;
  1278. transition: box-shadow .2s ease;
  1279. &:hover { box-shadow: 0 1px 4px rgba(0,0,0,.1); }
  1280. .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
  1281. .dot-high { background: #ef4444; }
  1282. .name { font-weight: 600; color: #111827; }
  1283. .meta { color: #6b7280; font-size: 12px; }
  1284. }
  1285. .btn-view-all {
  1286. padding: 6px 10px;
  1287. border: none;
  1288. background: #ef4444;
  1289. color: #fff;
  1290. border-radius: 6px;
  1291. cursor: pointer;
  1292. }
  1293. }
  1294. /* 全局甘特头部工具条(网格布局,含缩放/搜索/模式切换�?*/
  1295. .gantt-header {
  1296. position: relative;
  1297. z-index: 2;
  1298. display: grid;
  1299. grid-template-columns: 1fr auto auto auto; // title/hint | scale | search | mode
  1300. gap: 12px;
  1301. align-items: center;
  1302. .search-box {
  1303. input[type='search'] {
  1304. width: 240px;
  1305. padding: 8px 12px;
  1306. border: 1px solid #e5e7eb;
  1307. border-radius: 8px;
  1308. font-size: 14px;
  1309. outline: none;
  1310. transition: border-color .2s ease, box-shadow .2s ease;
  1311. &:focus {
  1312. border-color: #3b82f6;
  1313. box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  1314. }
  1315. }
  1316. }
  1317. .scale-switch {
  1318. margin-left: auto;
  1319. display: inline-flex;
  1320. border: 1px solid local.$ios-border;
  1321. border-radius: 8px;
  1322. overflow: hidden;
  1323. button {
  1324. background: #fff;
  1325. color: local.$ios-text-secondary;
  1326. padding: 6px 10px;
  1327. border: none;
  1328. outline: none;
  1329. cursor: pointer;
  1330. font-size: local.$ios-font-size-sm;
  1331. &:hover { background: local.$ios-background-secondary; }
  1332. &.active {
  1333. background: local.$ios-primary-light;
  1334. color: #fff;
  1335. }
  1336. & + button { border-left: 1px solid local.$ios-border; }
  1337. }
  1338. }
  1339. .mode-switch {
  1340. position: relative;
  1341. display: inline-flex;
  1342. align-items: center;
  1343. background: local.$ios-background;
  1344. border: 1px solid local.$ios-border;
  1345. border-radius: 999px;
  1346. padding: 2px;
  1347. overflow: hidden;
  1348. box-shadow: 0 1px 2px rgba(0,0,0,.04);
  1349. // 滑块式高亮背�?
  1350. &::before {
  1351. content: '';
  1352. position: absolute;
  1353. top: 2px;
  1354. left: 2px;
  1355. bottom: 2px;
  1356. width: calc(50% - 2px);
  1357. background: linear-gradient(180deg, local.$ios-primary-light 0%, color.adjust(local.$ios-primary-light, $lightness: -4%) 100%);
  1358. border-radius: 999px;
  1359. box-shadow: 0 6px 14px rgba(99,102,241,.22);
  1360. transform: translateX(0%);
  1361. transition: transform .25s cubic-bezier(.2,.8,.2,1);
  1362. z-index: 0;
  1363. }
  1364. &[data-active='designer']::before { transform: translateX(100%); }
  1365. button {
  1366. position: relative;
  1367. z-index: 1;
  1368. background: transparent;
  1369. border: none;
  1370. outline: none;
  1371. color: local.$ios-text-secondary;
  1372. padding: 10px 16px 10px 14px;
  1373. font-size: local.$ios-font-size-sm;
  1374. font-weight: local.$ios-font-weight-semibold;
  1375. letter-spacing: .2px;
  1376. border-radius: 999px;
  1377. cursor: pointer;
  1378. transition: color .2s ease, transform .05s ease;
  1379. display: inline-flex;
  1380. align-items: center;
  1381. gap: 6px;
  1382. &:hover { color: local.$ios-text-primary; }
  1383. &:active { transform: translateY(0.5px); }
  1384. &:focus-visible { box-shadow: 0 0 0 3px rgba(99,102,241,.25); }
  1385. &.active {
  1386. color: #fff;
  1387. text-shadow: 0 1px 0 rgba(0,0,0,.08);
  1388. }
  1389. &::before {
  1390. content: '';
  1391. display: inline-block;
  1392. width: 14px; height: 14px;
  1393. }
  1394. &:first-child::before { content: '📁'; }
  1395. &:last-child::before { content: '🎨'; }
  1396. }
  1397. @media (max-width: 640px) { button { padding: 8px 12px 8px 10px; } }
  1398. @media (max-width: 420px) {
  1399. button {
  1400. padding: 7px 10px 7px 9px;
  1401. font-size: 12px;
  1402. }
  1403. }
  1404. @media (prefers-reduced-motion: reduce) {
  1405. &::before { transition: none; }
  1406. button { transition: none; }
  1407. }
  1408. }
  1409. }
  1410. @media (max-width: 1024px) {
  1411. .gantt-header {
  1412. grid-template-columns: 1fr auto auto; // title/hint | scale | mode; search full row
  1413. grid-auto-rows: auto;
  1414. .search-box { grid-column: 1 / -1; }
  1415. }
  1416. .section-filters {
  1417. .search-box { width: 100%; }
  1418. .input-search { width: min(100%, 520px); }
  1419. }
  1420. }
  1421. @media (max-width: 640px) {
  1422. .gantt-header {
  1423. gap: 8px;
  1424. .search-box input[type='search'] { width: 100%; }
  1425. }
  1426. .section-filters {
  1427. gap: 6px;
  1428. .input-search { width: 100%; }
  1429. }
  1430. }
  1431. .workload-summary {
  1432. margin: 12px 0 16px;
  1433. padding: 12px 14px;
  1434. background: local.$ios-background;
  1435. border: 1px solid local.$ios-border;
  1436. border-radius: local.$ios-radius-lg;
  1437. box-shadow: 0 1px 2px rgba(0,0,0,.04);
  1438. .summary-header {
  1439. display: flex;
  1440. align-items: center;
  1441. justify-content: space-between;
  1442. margin-bottom: 8px;
  1443. h3 { font-size: local.$ios-font-size-md; margin: 0; color: local.$ios-text-primary; }
  1444. .summary-actions {
  1445. display: flex;
  1446. align-items: center;
  1447. gap: 8px;
  1448. .dimension-switch {
  1449. display: inline-flex;
  1450. border: 1px solid local.$ios-border;
  1451. border-radius: 999px;
  1452. overflow: hidden;
  1453. button {
  1454. background: #fff;
  1455. color: local.$ios-text-secondary;
  1456. padding: 6px 10px;
  1457. border: none;
  1458. cursor: pointer;
  1459. font-size: local.$ios-font-size-sm;
  1460. &:hover { background: local.$ios-background-secondary; }
  1461. &.active { background: local.$ios-primary-light; color: #fff; }
  1462. & + button { border-left: 1px solid local.$ios-border; }
  1463. }
  1464. }
  1465. }
  1466. }
  1467. .workload-chart {
  1468. width: 100%;
  1469. height: 240px;
  1470. }
  1471. }
  1472. // 在文件末尾追加覆盖样式:让项目监控大盘四列等分占满卡片内�?
  1473. .project-kanban {
  1474. // 让头部与主体容器使用可用宽度而非max-content,避免不必要的横向滚�?
  1475. .kanban-scroll {
  1476. .kanban-header, .kanban-body { width: 100%; }
  1477. }
  1478. // 使用grid使四列等分,并确保头部与主体列宽对齐
  1479. .kanban-header {
  1480. display: grid;
  1481. grid-template-columns: repeat(4, minmax(0, 1fr));
  1482. gap: local.$ios-spacing-md;
  1483. .kanban-column-header {
  1484. // 取消固定180px,允许自适应
  1485. flex: 1 1 auto;
  1486. min-width: 0;
  1487. max-width: none;
  1488. }
  1489. }
  1490. .kanban-body {
  1491. display: grid;
  1492. grid-template-columns: repeat(4, minmax(0, 1fr));
  1493. gap: local.$ios-spacing-md;
  1494. .kanban-column {
  1495. // 取消固定180px,允许自适应
  1496. min-width: 0;
  1497. max-width: none;
  1498. }
  1499. }
  1500. }
  1501. // 响应式:中屏降为两列,小屏单列,避免过窄
  1502. @media (max-width: 1200px) {
  1503. .project-kanban {
  1504. .kanban-header, .kanban-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  1505. }
  1506. }
  1507. @media (max-width: 640px) {
  1508. .project-kanban {
  1509. .kanban-header, .kanban-body { grid-template-columns: 1fr; }
  1510. }
  1511. }
  1512. /* 员工详情面板样式 */
  1513. .employee-detail-overlay {
  1514. position: fixed;
  1515. top: 0;
  1516. left: 0;
  1517. right: 0;
  1518. bottom: 0;
  1519. background: rgba(0, 0, 0, 0.5);
  1520. backdrop-filter: blur(4px);
  1521. z-index: 1000;
  1522. display: flex;
  1523. align-items: center;
  1524. justify-content: center;
  1525. padding: 20px;
  1526. animation: fadeIn 0.3s ease-out;
  1527. }
  1528. .employee-detail-panel {
  1529. background: #ffffff;
  1530. border-radius: 16px;
  1531. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  1532. max-width: 600px;
  1533. width: 100%;
  1534. max-height: 80vh;
  1535. overflow: hidden;
  1536. animation: slideUp 0.3s ease-out;
  1537. .panel-header {
  1538. display: flex;
  1539. align-items: center;
  1540. justify-content: space-between;
  1541. padding: 24px 24px 16px;
  1542. border-bottom: 1px solid #f1f5f9;
  1543. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1544. color: white;
  1545. .panel-title {
  1546. display: flex;
  1547. align-items: center;
  1548. gap: 12px;
  1549. margin: 0;
  1550. font-size: 20px;
  1551. font-weight: 600;
  1552. .icon-user {
  1553. width: 24px;
  1554. height: 24px;
  1555. stroke-width: 2;
  1556. }
  1557. }
  1558. .btn-close {
  1559. background: rgba(255, 255, 255, 0.2);
  1560. border: none;
  1561. border-radius: 8px;
  1562. width: 36px;
  1563. height: 36px;
  1564. display: flex;
  1565. align-items: center;
  1566. justify-content: center;
  1567. cursor: pointer;
  1568. transition: all 0.2s ease;
  1569. svg {
  1570. width: 18px;
  1571. height: 18px;
  1572. stroke: white;
  1573. }
  1574. &:hover {
  1575. background: rgba(255, 255, 255, 0.3);
  1576. transform: scale(1.05);
  1577. }
  1578. }
  1579. }
  1580. .panel-content {
  1581. padding: 24px;
  1582. max-height: calc(80vh - 100px);
  1583. overflow-y: auto;
  1584. .section {
  1585. margin-bottom: 24px;
  1586. &:last-child {
  1587. margin-bottom: 0;
  1588. }
  1589. .section-header {
  1590. display: flex;
  1591. align-items: center;
  1592. gap: 8px;
  1593. margin-bottom: 16px;
  1594. .section-icon {
  1595. width: 20px;
  1596. height: 20px;
  1597. stroke: #667eea;
  1598. stroke-width: 2;
  1599. }
  1600. h4 {
  1601. margin: 0;
  1602. flex: 1;
  1603. font-size: 16px;
  1604. font-weight: 600;
  1605. color: #1e293b;
  1606. }
  1607. .btn-refresh-survey {
  1608. background: transparent;
  1609. border: none;
  1610. padding: 6px;
  1611. cursor: pointer;
  1612. border-radius: 6px;
  1613. display: flex;
  1614. align-items: center;
  1615. justify-content: center;
  1616. transition: all 0.2s;
  1617. color: #667eea;
  1618. &:hover:not(:disabled) {
  1619. background: #f0f3ff;
  1620. }
  1621. &:disabled {
  1622. opacity: 0.5;
  1623. cursor: not-allowed;
  1624. }
  1625. svg {
  1626. transition: transform 0.3s ease;
  1627. &.rotating {
  1628. animation: rotate 1s linear infinite;
  1629. }
  1630. }
  1631. }
  1632. @keyframes rotate {
  1633. from {
  1634. transform: rotate(0deg);
  1635. }
  1636. to {
  1637. transform: rotate(360deg);
  1638. }
  1639. }
  1640. }
  1641. }
  1642. // 负载概况样式
  1643. .workload-section {
  1644. .workload-info {
  1645. background: #f8fafc;
  1646. border-radius: 12px;
  1647. padding: 20px;
  1648. border: 1px solid #e2e8f0;
  1649. .workload-stat {
  1650. display: flex;
  1651. align-items: center;
  1652. gap: 8px;
  1653. margin-bottom: 16px;
  1654. .stat-label {
  1655. font-size: 14px;
  1656. color: #64748b;
  1657. font-weight: 500;
  1658. }
  1659. .stat-value {
  1660. font-size: 18px;
  1661. font-weight: 700;
  1662. padding: 4px 12px;
  1663. border-radius: 20px;
  1664. &.normal-workload {
  1665. color: #059669;
  1666. background: #d1fae5;
  1667. }
  1668. &.high-workload {
  1669. color: #dc2626;
  1670. background: #fee2e2;
  1671. }
  1672. }
  1673. }
  1674. .project-list {
  1675. .project-label {
  1676. font-size: 14px;
  1677. color: #64748b;
  1678. font-weight: 500;
  1679. margin-bottom: 8px;
  1680. display: block;
  1681. }
  1682. .project-tags {
  1683. display: flex;
  1684. flex-wrap: wrap;
  1685. gap: 8px;
  1686. .project-tag {
  1687. background: #667eea;
  1688. color: white;
  1689. padding: 4px 12px;
  1690. border-radius: 16px;
  1691. font-size: 12px;
  1692. font-weight: 500;
  1693. transition: all 0.2s ease;
  1694. &.clickable {
  1695. cursor: pointer;
  1696. display: inline-flex;
  1697. align-items: center;
  1698. gap: 4px;
  1699. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1700. box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
  1701. .icon-arrow {
  1702. width: 14px;
  1703. height: 14px;
  1704. stroke-width: 2.5;
  1705. opacity: 0;
  1706. transform: translateX(-4px);
  1707. transition: all 0.2s ease;
  1708. }
  1709. &:hover {
  1710. background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  1711. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  1712. transform: translateY(-2px);
  1713. .icon-arrow {
  1714. opacity: 1;
  1715. transform: translateX(0);
  1716. }
  1717. }
  1718. &:active {
  1719. transform: translateY(0);
  1720. box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  1721. }
  1722. }
  1723. &.more {
  1724. background: #94a3b8;
  1725. cursor: default;
  1726. }
  1727. }
  1728. }
  1729. }
  1730. }
  1731. }
  1732. // 请假明细样式
  1733. .leave-section {
  1734. .leave-table {
  1735. background: #ffffff;
  1736. border-radius: 12px;
  1737. border: 1px solid #e2e8f0;
  1738. overflow: hidden;
  1739. table {
  1740. width: 100%;
  1741. border-collapse: collapse;
  1742. thead {
  1743. background: #f8fafc;
  1744. th {
  1745. padding: 12px 16px;
  1746. text-align: left;
  1747. font-size: 14px;
  1748. font-weight: 600;
  1749. color: #374151;
  1750. border-bottom: 1px solid #e5e7eb;
  1751. }
  1752. }
  1753. tbody {
  1754. tr {
  1755. transition: background-color 0.2s ease;
  1756. &:hover {
  1757. background: #f9fafb;
  1758. }
  1759. &.leave-day {
  1760. background: #fef2f2;
  1761. &:hover {
  1762. background: #fee2e2;
  1763. }
  1764. }
  1765. td {
  1766. padding: 12px 16px;
  1767. font-size: 14px;
  1768. color: #374151;
  1769. border-bottom: 1px solid #f1f5f9;
  1770. &:last-child {
  1771. border-bottom: none;
  1772. }
  1773. }
  1774. }
  1775. tr:last-child td {
  1776. border-bottom: none;
  1777. }
  1778. }
  1779. .status-badge {
  1780. padding: 4px 8px;
  1781. border-radius: 12px;
  1782. font-size: 12px;
  1783. font-weight: 500;
  1784. &.work {
  1785. background: #d1fae5;
  1786. color: #059669;
  1787. }
  1788. &.leave {
  1789. background: #fee2e2;
  1790. color: #dc2626;
  1791. }
  1792. }
  1793. }
  1794. .no-leave {
  1795. padding: 40px 20px;
  1796. text-align: center;
  1797. color: #64748b;
  1798. .no-data-icon {
  1799. width: 48px;
  1800. height: 48px;
  1801. margin: 0 auto 16px;
  1802. stroke: #94a3b8;
  1803. stroke-width: 1.5;
  1804. }
  1805. p {
  1806. margin: 0;
  1807. font-size: 14px;
  1808. }
  1809. }
  1810. }
  1811. }
  1812. // 红色标记说明样式
  1813. .explanation-section {
  1814. .explanation-content {
  1815. background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  1816. border: 1px solid #f59e0b;
  1817. border-radius: 12px;
  1818. padding: 16px;
  1819. .explanation-text {
  1820. margin: 0;
  1821. font-size: 14px;
  1822. color: #92400e;
  1823. line-height: 1.5;
  1824. font-weight: 500;
  1825. }
  1826. }
  1827. }
  1828. // 新增:能力问卷样式
  1829. .survey-section {
  1830. .survey-content {
  1831. background: #f8fafc;
  1832. border-radius: 12px;
  1833. padding: 20px;
  1834. border: 1px solid #e2e8f0;
  1835. .survey-status {
  1836. display: flex;
  1837. align-items: center;
  1838. gap: 8px;
  1839. padding: 12px 16px;
  1840. background: white;
  1841. border-radius: 8px;
  1842. margin-bottom: 20px;
  1843. border: 1px solid #d1fae5;
  1844. &.completed {
  1845. background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  1846. }
  1847. span {
  1848. font-size: 14px;
  1849. font-weight: 500;
  1850. color: #065f46;
  1851. &.survey-time {
  1852. margin-left: auto;
  1853. font-size: 12px;
  1854. color: #6b7280;
  1855. }
  1856. }
  1857. }
  1858. .capability-summary {
  1859. h5 {
  1860. margin: 0 0 20px 0;
  1861. font-size: 15px;
  1862. font-weight: 600;
  1863. color: #1e293b;
  1864. }
  1865. .summary-grid {
  1866. display: grid;
  1867. grid-template-columns: 1fr;
  1868. gap: 16px;
  1869. margin-bottom: 20px;
  1870. .summary-item {
  1871. background: white;
  1872. border-radius: 8px;
  1873. padding: 16px;
  1874. border: 1px solid #e2e8f0;
  1875. display: flex;
  1876. flex-direction: column;
  1877. gap: 8px;
  1878. .label {
  1879. font-size: 13px;
  1880. font-weight: 600;
  1881. color: #64748b;
  1882. }
  1883. .value {
  1884. font-size: 14px;
  1885. color: #1e293b;
  1886. line-height: 1.5;
  1887. .limit-hint {
  1888. font-size: 12px;
  1889. color: #94a3b8;
  1890. font-style: italic;
  1891. margin-left: 4px;
  1892. }
  1893. }
  1894. }
  1895. }
  1896. .btn-view-full {
  1897. width: 100%;
  1898. padding: 12px 16px;
  1899. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1900. color: white;
  1901. border: none;
  1902. border-radius: 8px;
  1903. font-size: 14px;
  1904. font-weight: 600;
  1905. cursor: pointer;
  1906. display: flex;
  1907. align-items: center;
  1908. justify-content: center;
  1909. gap: 8px;
  1910. transition: all 0.2s;
  1911. &:hover {
  1912. transform: translateY(-1px);
  1913. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  1914. }
  1915. svg {
  1916. flex-shrink: 0;
  1917. }
  1918. }
  1919. }
  1920. .survey-answers {
  1921. h5 {
  1922. margin: 0 0 16px 0;
  1923. font-size: 15px;
  1924. font-weight: 600;
  1925. color: #1e293b;
  1926. }
  1927. .btn-collapse {
  1928. width: 100%;
  1929. padding: 12px 16px;
  1930. background: #f1f5f9;
  1931. color: #64748b;
  1932. border: 1px solid #e2e8f0;
  1933. border-radius: 8px;
  1934. font-size: 14px;
  1935. font-weight: 600;
  1936. cursor: pointer;
  1937. display: flex;
  1938. align-items: center;
  1939. justify-content: center;
  1940. gap: 8px;
  1941. margin-top: 20px;
  1942. transition: all 0.2s;
  1943. &:hover {
  1944. background: #e2e8f0;
  1945. border-color: #cbd5e1;
  1946. }
  1947. svg {
  1948. flex-shrink: 0;
  1949. }
  1950. }
  1951. .answer-item {
  1952. background: white;
  1953. border-radius: 8px;
  1954. padding: 16px;
  1955. margin-bottom: 12px;
  1956. border: 1px solid #e2e8f0;
  1957. transition: all 0.2s ease;
  1958. &:last-child {
  1959. margin-bottom: 0;
  1960. }
  1961. &:hover {
  1962. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  1963. border-color: #cbd5e1;
  1964. }
  1965. .question-text {
  1966. font-size: 14px;
  1967. color: #374151;
  1968. margin-bottom: 12px;
  1969. line-height: 1.5;
  1970. strong {
  1971. color: #667eea;
  1972. margin-right: 4px;
  1973. }
  1974. }
  1975. .answer-text {
  1976. display: flex;
  1977. flex-wrap: wrap;
  1978. gap: 8px;
  1979. .answer-tag {
  1980. display: inline-block;
  1981. padding: 6px 12px;
  1982. border-radius: 16px;
  1983. font-size: 13px;
  1984. font-weight: 500;
  1985. &.single {
  1986. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1987. color: white;
  1988. }
  1989. &.multiple {
  1990. background: #dbeafe;
  1991. color: #1e40af;
  1992. border: 1px solid #93c5fd;
  1993. }
  1994. &.empty {
  1995. background: #f3f4f6;
  1996. color: #9ca3af;
  1997. border: 1px dashed #d1d5db;
  1998. font-style: italic;
  1999. }
  2000. }
  2001. .answer-scale {
  2002. width: 100%;
  2003. .scale-bar {
  2004. height: 32px;
  2005. background: #f1f5f9;
  2006. border-radius: 16px;
  2007. overflow: hidden;
  2008. position: relative;
  2009. .scale-fill {
  2010. height: 100%;
  2011. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  2012. display: flex;
  2013. align-items: center;
  2014. justify-content: flex-end;
  2015. padding: 0 12px;
  2016. transition: width 0.3s ease;
  2017. span {
  2018. font-size: 13px;
  2019. font-weight: 600;
  2020. color: white;
  2021. }
  2022. }
  2023. }
  2024. }
  2025. }
  2026. }
  2027. }
  2028. }
  2029. .survey-empty {
  2030. padding: 60px 20px;
  2031. text-align: center;
  2032. color: #64748b;
  2033. background: #f8fafc;
  2034. border-radius: 12px;
  2035. border: 1px solid #e2e8f0;
  2036. .no-data-icon {
  2037. width: 64px;
  2038. height: 64px;
  2039. margin: 0 auto 16px;
  2040. stroke: #94a3b8;
  2041. stroke-width: 1.5;
  2042. opacity: 0.5;
  2043. }
  2044. p {
  2045. margin: 0;
  2046. font-size: 14px;
  2047. color: #64748b;
  2048. }
  2049. }
  2050. }
  2051. }
  2052. }
  2053. // 动画效果
  2054. @keyframes fadeIn {
  2055. from {
  2056. opacity: 0;
  2057. }
  2058. to {
  2059. opacity: 1;
  2060. }
  2061. }
  2062. @keyframes slideUp {
  2063. from {
  2064. opacity: 0;
  2065. transform: translateY(30px) scale(0.95);
  2066. }
  2067. to {
  2068. opacity: 1;
  2069. transform: translateY(0) scale(1);
  2070. }
  2071. }
  2072. // 响应式设�?
  2073. @media (max-width: 768px) {
  2074. .employee-detail-overlay {
  2075. padding: 10px;
  2076. .employee-detail-panel {
  2077. max-width: 100%;
  2078. max-height: 90vh;
  2079. .panel-header {
  2080. padding: 20px 20px 12px;
  2081. .panel-title {
  2082. font-size: 18px;
  2083. }
  2084. }
  2085. .panel-content {
  2086. padding: 20px;
  2087. .section {
  2088. margin-bottom: 20px;
  2089. }
  2090. .workload-section .workload-info {
  2091. padding: 16px;
  2092. }
  2093. .leave-section .leave-table table {
  2094. font-size: 13px;
  2095. th, td {
  2096. padding: 10px 12px;
  2097. }
  2098. }
  2099. }
  2100. }
  2101. }
  2102. }
  2103. // 🆕 视图切换按钮栏样式
  2104. .view-toggle-bar {
  2105. position: static;
  2106. top: 50px; // 根据导航栏高度调整
  2107. z-index: 99;
  2108. background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  2109. padding: 16px 20px;
  2110. margin: 20px 0;
  2111. border-radius: 12px;
  2112. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  2113. display: flex;
  2114. justify-content: center;
  2115. align-items: center;
  2116. .btn-toggle-view {
  2117. display: flex;
  2118. align-items: center;
  2119. gap: 10px;
  2120. padding: 12px 32px;
  2121. border: 2px solid transparent;
  2122. border-radius: 8px;
  2123. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  2124. color: white;
  2125. font-size: 15px;
  2126. font-weight: 600;
  2127. cursor: pointer;
  2128. transition: all 0.3s ease;
  2129. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  2130. .toggle-icon {
  2131. font-size: 20px;
  2132. transition: transform 0.3s ease;
  2133. }
  2134. .toggle-text {
  2135. letter-spacing: 0.5px;
  2136. }
  2137. &:hover {
  2138. transform: translateY(-2px);
  2139. box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  2140. .toggle-icon {
  2141. transform: scale(1.2) rotate(5deg);
  2142. }
  2143. }
  2144. &:active {
  2145. transform: translateY(0);
  2146. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  2147. }
  2148. }
  2149. }
  2150. // 响应式适配
  2151. @media (max-width: 768px) {
  2152. .view-toggle-bar {
  2153. top: 45px;
  2154. padding: 12px 16px;
  2155. margin: 16px 0;
  2156. .btn-toggle-view {
  2157. padding: 10px 24px;
  2158. font-size: 14px;
  2159. .toggle-icon {
  2160. font-size: 18px;
  2161. }
  2162. }
  2163. }
  2164. }