dashboard.scss 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320
  1. /* 颜色变量 */
  2. $primary-color: #007aff;
  3. $primary-dark: #0051a8;
  4. $success-color: #34c759;
  5. $warning-color: #ff9500;
  6. $danger-color: #ff3b30;
  7. $info-color: #5ac8fa;
  8. $text-primary-dark: #1c1c1e;
  9. $text-secondary-dark: #636366;
  10. $text-tertiary-dark: #8e8e93;
  11. $border-color: #e5e5ea;
  12. $background-color: #f2f2f7;
  13. $card-background: #ffffff;
  14. $shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  15. $shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  16. $shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  17. $border-radius: 12px;
  18. $transition: all 0.2s ease;
  19. /* iOS设计风格颜色变量 */
  20. $ios-primary: #007aff;
  21. $ios-primary-dark: #0051a8;
  22. $ios-secondary: #5856d6;
  23. $ios-success: #34c759;
  24. $ios-warning: #ff9500;
  25. $ios-danger: #ff3b30;
  26. $ios-background: #f2f2f7;
  27. $ios-card-background: #ffffff;
  28. $ios-border: #e5e5ea;
  29. $ios-text: #1c1c1e;
  30. $ios-text-secondary: #636366;
  31. $ios-text-tertiary: #8e8e93;
  32. $ios-button-background: #f2f2f7;
  33. /* iOS设计风格圆角变量 */
  34. $ios-radius-sm: 8px;
  35. $ios-radius-md: 12px;
  36. $ios-radius-lg: 16px;
  37. $ios-radius-xl: 22px;
  38. /* 企业微信提示动画 */
  39. @keyframes slideInRight {
  40. from {
  41. transform: translateX(100%);
  42. opacity: 0;
  43. }
  44. to {
  45. transform: translateX(0);
  46. opacity: 1;
  47. }
  48. }
  49. @keyframes slideOutRight {
  50. from {
  51. transform: translateX(0);
  52. opacity: 1;
  53. }
  54. to {
  55. transform: translateX(100%);
  56. opacity: 0;
  57. }
  58. }
  59. /* 企业微信提示样式 */
  60. .wechat-work-tip {
  61. .tip-content {
  62. display: flex;
  63. flex-direction: column;
  64. gap: 8px;
  65. }
  66. .tip-icon {
  67. font-size: 20px;
  68. text-align: center;
  69. }
  70. .tip-text {
  71. font-weight: 600;
  72. line-height: 1.4;
  73. }
  74. .tip-subtext {
  75. font-size: 12px;
  76. opacity: 0.9;
  77. line-height: 1.3;
  78. }
  79. }
  80. /* iOS风格的模态框覆盖层 */
  81. .ios-modal-overlay {
  82. position: fixed;
  83. top: 0;
  84. left: 0;
  85. right: 0;
  86. bottom: 0;
  87. background-color: rgba(0, 0, 0, 0.5);
  88. display: flex;
  89. align-items: center;
  90. justify-content: center;
  91. z-index: 1000;
  92. animation: fadeIn 0.3s ease;
  93. }
  94. /* iOS风格的面板 */
  95. .ios-panel {
  96. background-color: $ios-card-background;
  97. border-radius: $ios-radius-xl;
  98. width: 90%;
  99. max-width: 500px;
  100. max-height: 80vh;
  101. overflow: hidden;
  102. box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  103. transform: scale(0.95);
  104. opacity: 0;
  105. transition: transform 0.3s ease, opacity 0.3s ease;
  106. }
  107. .ios-panel.ios-panel-visible {
  108. transform: scale(1);
  109. opacity: 1;
  110. }
  111. /* iOS面板头部 */
  112. .ios-panel-header {
  113. display: flex;
  114. align-items: center;
  115. justify-content: space-between;
  116. padding: 16px 20px;
  117. border-bottom: 1px solid $ios-border;
  118. }
  119. .ios-panel-header h3 {
  120. font-size: 18px;
  121. font-weight: 600;
  122. color: $ios-text;
  123. margin: 0;
  124. }
  125. .ios-close-button {
  126. background: none;
  127. border: none;
  128. padding: 8px;
  129. cursor: pointer;
  130. color: $ios-text-secondary;
  131. transition: color 0.2s ease;
  132. border-radius: 50%;
  133. display: flex;
  134. align-items: center;
  135. justify-content: center;
  136. }
  137. .ios-close-button:hover {
  138. color: $ios-text;
  139. background-color: $ios-button-background;
  140. }
  141. /* iOS面板内容 */
  142. .ios-panel-content {
  143. padding: 20px;
  144. overflow-y: auto;
  145. max-height: 60vh;
  146. }
  147. /* 表单样式 */
  148. .form-group {
  149. margin-bottom: 20px;
  150. }
  151. .form-group label {
  152. display: block;
  153. font-size: 14px;
  154. font-weight: 500;
  155. color: $ios-text-secondary;
  156. margin-bottom: 8px;
  157. }
  158. /* iOS风格的表单输入框 */
  159. .ios-input {
  160. width: 100%;
  161. padding: 10px 12px;
  162. border: 1px solid $border-color;
  163. border-radius: 8px;
  164. font-size: 16px;
  165. background-color: white;
  166. transition: all 0.3s ease;
  167. outline: none;
  168. color: $ios-text;
  169. &:focus {
  170. border-color: $primary-color;
  171. box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
  172. }
  173. &::placeholder {
  174. color: $ios-text-secondary;
  175. }
  176. }
  177. /* 截止时间显示区域 */
  178. .deadline-display {
  179. position: relative;
  180. cursor: pointer;
  181. padding-right: 30px !important;
  182. .dropdown-arrow {
  183. position: absolute;
  184. right: 12px;
  185. top: 50%;
  186. transform: translateY(-50%);
  187. transition: transform 0.3s ease;
  188. color: $ios-text-secondary;
  189. }
  190. .dropdown-arrow.rotate {
  191. transform: translateY(-50%) rotate(180deg);
  192. }
  193. }
  194. /* 下拉选择框 */
  195. .deadline-dropdown {
  196. position: absolute;
  197. top: 100%;
  198. left: 0;
  199. right: 0;
  200. margin-top: 5px;
  201. background-color: white;
  202. border: 1px solid $border-color;
  203. border-radius: 8px;
  204. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  205. z-index: 1000;
  206. max-height: 300px;
  207. overflow-y: auto;
  208. opacity: 0;
  209. visibility: hidden;
  210. transition: all 0.3s ease;
  211. }
  212. .deadline-dropdown.visible {
  213. opacity: 1;
  214. visibility: visible;
  215. }
  216. /* 下拉选项 */
  217. .dropdown-option {
  218. padding: 12px 16px;
  219. cursor: pointer;
  220. transition: background-color 0.2s ease;
  221. color: $ios-text;
  222. &:hover {
  223. background-color: #f2f2f7;
  224. }
  225. &.selected {
  226. background-color: rgba(0, 122, 255, 0.1);
  227. color: $primary-color;
  228. font-weight: 500;
  229. }
  230. &.custom-option {
  231. color: $primary-color;
  232. font-weight: 500;
  233. }
  234. }
  235. /* 分隔线 */
  236. .dropdown-divider {
  237. height: 1px;
  238. background-color: $border-color;
  239. margin: 4px 0;
  240. }
  241. /* 错误提示信息 */
  242. .error-message {
  243. color: #ff3b30;
  244. font-size: 14px;
  245. margin-top: 5px;
  246. padding: 4px 0;
  247. }
  248. /* 自定义时间弹窗 */
  249. .custom-time-modal {
  250. position: fixed;
  251. top: 0;
  252. left: 0;
  253. right: 0;
  254. bottom: 0;
  255. z-index: 2000;
  256. display: flex;
  257. align-items: center;
  258. justify-content: center;
  259. opacity: 0;
  260. visibility: hidden;
  261. transition: opacity 0.3s ease;
  262. }
  263. .custom-time-modal.modal-visible {
  264. opacity: 1;
  265. visibility: visible;
  266. }
  267. /* 弹窗背景 */
  268. .modal-backdrop {
  269. position: absolute;
  270. top: 0;
  271. left: 0;
  272. right: 0;
  273. bottom: 0;
  274. background-color: rgba(0, 0, 0, 0.5);
  275. }
  276. /* 弹窗内容 */
  277. .modal-content {
  278. position: relative;
  279. background-color: white;
  280. border-radius: 12px;
  281. width: 90%;
  282. max-width: 400px;
  283. max-height: 80vh;
  284. overflow-y: auto;
  285. transform: translateY(20px);
  286. transition: transform 0.3s ease;
  287. }
  288. .custom-time-modal.modal-visible .modal-content {
  289. transform: translateY(0);
  290. }
  291. /* 弹窗头部 */
  292. .modal-header {
  293. padding: 16px 20px;
  294. border-bottom: 1px solid $border-color;
  295. display: flex;
  296. justify-content: space-between;
  297. align-items: center;
  298. }
  299. .modal-header h3 {
  300. margin: 0;
  301. font-size: 18px;
  302. font-weight: 600;
  303. color: $ios-text;
  304. }
  305. /* 关闭按钮 */
  306. .close-button {
  307. background: none;
  308. border: none;
  309. font-size: 24px;
  310. color: $ios-text-secondary;
  311. cursor: pointer;
  312. padding: 0;
  313. width: 30px;
  314. height: 30px;
  315. display: flex;
  316. align-items: center;
  317. justify-content: center;
  318. border-radius: 15px;
  319. transition: all 0.2s ease;
  320. &:hover {
  321. background-color: #f2f2f7;
  322. color: $ios-text;
  323. }
  324. }
  325. /* 弹窗主体 */
  326. .modal-body {
  327. padding: 20px;
  328. }
  329. /* 日期选择器 */
  330. .date-picker,
  331. .time-picker {
  332. margin-bottom: 16px;
  333. }
  334. .date-picker label,
  335. .time-picker label {
  336. display: block;
  337. margin-bottom: 8px;
  338. font-size: 14px;
  339. font-weight: 500;
  340. color: $ios-text;
  341. }
  342. /* 弹窗底部 */
  343. .modal-footer {
  344. padding: 16px 20px;
  345. border-top: 1px solid $border-color;
  346. display: flex;
  347. justify-content: flex-end;
  348. gap: 10px;
  349. }
  350. /* 按钮样式 */
  351. .cancel-button,
  352. .confirm-button {
  353. padding: 8px 16px;
  354. border-radius: 8px;
  355. font-size: 16px;
  356. font-weight: 500;
  357. cursor: pointer;
  358. transition: all 0.2s ease;
  359. }
  360. .cancel-button {
  361. background-color: #f2f2f7;
  362. color: $ios-text;
  363. border: none;
  364. }
  365. .confirm-button {
  366. background-color: $primary-color;
  367. color: white;
  368. border: none;
  369. }
  370. .cancel-button:hover {
  371. background-color: #e5e5ea;
  372. }
  373. .confirm-button:hover {
  374. background-color: #0066cc;
  375. }
  376. /* iOS面板底部 */
  377. .ios-panel-footer {
  378. display: flex;
  379. justify-content: flex-end;
  380. gap: 12px;
  381. padding: 16px 20px;
  382. border-top: 1px solid $ios-border;
  383. background-color: $ios-background;
  384. }
  385. /* iOS风格按钮 */
  386. .ios-cancel-button,
  387. .ios-submit-button {
  388. padding: 10px 20px;
  389. border: none;
  390. border-radius: $ios-radius-md;
  391. font-size: 16px;
  392. font-weight: 600;
  393. cursor: pointer;
  394. transition: all 0.2s ease;
  395. min-width: 80px;
  396. }
  397. .ios-cancel-button {
  398. background-color: $ios-button-background;
  399. color: $ios-text;
  400. }
  401. .ios-cancel-button:hover {
  402. background-color: color-mix(in srgb, $ios-button-background 80%, $ios-border 20%);
  403. }
  404. .ios-submit-button {
  405. background-color: $ios-primary;
  406. color: white;
  407. }
  408. .ios-submit-button:hover {
  409. background-color: $ios-primary-dark;
  410. }
  411. /* 动画 */
  412. @keyframes fadeIn {
  413. from {
  414. opacity: 0;
  415. }
  416. to {
  417. opacity: 1;
  418. }
  419. }
  420. /* 响应式调整 */
  421. @media (max-width: 768px) {
  422. .ios-panel {
  423. width: 95%;
  424. margin: 20px;
  425. }
  426. }
  427. /* 数据看板 */
  428. .stats-dashboard {
  429. background-color: $card-background;
  430. border-radius: $border-radius;
  431. padding: 24px;
  432. box-shadow: $shadow-md;
  433. margin-bottom: 24px;
  434. transition: $transition;
  435. }
  436. .stats-dashboard:hover {
  437. box-shadow: $shadow-lg;
  438. }
  439. .stats-header {
  440. display: flex;
  441. align-items: center;
  442. justify-content: space-between;
  443. margin-bottom: 20px;
  444. }
  445. .stats-header h3 {
  446. font-size: 20px;
  447. font-weight: 600;
  448. color: $text-primary-dark;
  449. margin: 0;
  450. }
  451. .stats-grid {
  452. display: grid;
  453. grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  454. gap: 16px;
  455. margin-bottom: 20px;
  456. }
  457. .stat-card {
  458. background-color: $card-background;
  459. border: 1px solid $border-color;
  460. border-radius: $border-radius;
  461. padding: 20px;
  462. text-align: center;
  463. transition: $transition;
  464. cursor: pointer;
  465. }
  466. .stat-card:hover {
  467. border-color: $primary-color;
  468. box-shadow: 0 4px 12px color-mix(in srgb, $primary-color 10%, transparent);
  469. transform: translateY(-2px);
  470. }
  471. .stat-icon {
  472. width: 48px;
  473. height: 48px;
  474. background-color: color-mix(in srgb, $primary-color 15%, transparent);
  475. border-radius: 12px;
  476. display: flex;
  477. align-items: center;
  478. justify-content: center;
  479. margin: 0 auto 12px;
  480. color: $primary-color;
  481. transition: $transition;
  482. }
  483. .stat-card:nth-child(2) .stat-icon {
  484. background-color: color-mix(in srgb, $success-color 15%, transparent);
  485. color: $success-color;
  486. }
  487. .stat-card:nth-child(3) .stat-icon {
  488. background-color: color-mix(in srgb, $warning-color 15%, transparent);
  489. color: $warning-color;
  490. }
  491. .stat-card:nth-child(4) .stat-icon {
  492. background-color: color-mix(in srgb, $danger-color 15%, transparent);
  493. color: $danger-color;
  494. }
  495. .stat-number {
  496. font-size: 24px;
  497. font-weight: 700;
  498. color: $text-primary-dark;
  499. margin-bottom: 6px;
  500. line-height: 1.2;
  501. }
  502. .stat-label {
  503. font-size: 14px;
  504. color: $text-secondary-dark;
  505. margin: 0;
  506. }
  507. /* 内容网格 */
  508. .content-grid {
  509. display: grid;
  510. grid-template-columns: 1fr 1fr;
  511. gap: 20px;
  512. margin-top: 16px;
  513. }
  514. /* 任务列表区块 */
  515. .tasks-section {
  516. background-color: $card-background;
  517. border-radius: $border-radius;
  518. padding: 24px;
  519. box-shadow: $shadow-md;
  520. transition: $transition;
  521. }
  522. .tasks-section:hover {
  523. box-shadow: $shadow-lg;
  524. }
  525. /* 通用区块头部 */
  526. .section-header {
  527. display: flex;
  528. align-items: center;
  529. justify-content: space-between;
  530. margin-bottom: 20px;
  531. }
  532. .section-header h3 {
  533. font-size: 20px;
  534. font-weight: 600;
  535. color: $text-primary-dark;
  536. margin: 0;
  537. }
  538. .section-header .view-all {
  539. display: flex;
  540. align-items: center;
  541. gap: 4px;
  542. font-size: 14px;
  543. color: $primary-color;
  544. text-decoration: none;
  545. transition: $transition;
  546. }
  547. .section-header .view-all:hover {
  548. color: $primary-dark;
  549. }
  550. /* 搜索框样式 */
  551. .search-box {
  552. position: relative;
  553. }
  554. .search-input {
  555. padding: 8px 16px;
  556. border: 1px solid $border-color;
  557. border-radius: $border-radius;
  558. font-size: 14px;
  559. color: $text-primary-dark;
  560. background-color: $card-background;
  561. transition: $transition;
  562. outline: none;
  563. min-width: 200px;
  564. }
  565. .search-input:focus {
  566. border-color: $primary-color;
  567. box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
  568. }
  569. /* 紧急待办列表 */
  570. .tasks-list {
  571. display: flex;
  572. flex-direction: column;
  573. gap: 12px;
  574. }
  575. .tasks-list.empty {
  576. text-align: center;
  577. padding: 40px 20px;
  578. color: $text-tertiary-dark;
  579. }
  580. .tasks-list.empty p {
  581. font-size: 16px;
  582. margin: 0;
  583. }
  584. /* 任务项目样式 */
  585. .task-item {
  586. display: flex;
  587. align-items: center;
  588. justify-content: space-between;
  589. padding: 16px 20px;
  590. border-radius: $border-radius;
  591. transition: $transition;
  592. margin-bottom: 12px;
  593. position: relative;
  594. }
  595. .task-item.completed {
  596. background-color: #e8f5e9;
  597. border: 1px solid #c8e6c9;
  598. }
  599. .task-item.overdue {
  600. background-color: #ffebee;
  601. border: 1px solid #ffcdd2;
  602. }
  603. .task-item:hover {
  604. transform: translateY(-1px);
  605. }
  606. /* 任务复选框样式 */
  607. .task-checkbox {
  608. margin-right: 16px;
  609. }
  610. .task-checkbox input[type="checkbox"] {
  611. width: 20px;
  612. height: 20px;
  613. accent-color: $primary-color;
  614. border-radius: 4px;
  615. cursor: pointer;
  616. }
  617. /* 任务状态标记 */
  618. .task-status {
  619. position: absolute;
  620. top: 12px;
  621. right: 12px;
  622. padding: 4px 12px;
  623. border-radius: 16px;
  624. font-size: 12px;
  625. font-weight: 600;
  626. text-transform: uppercase;
  627. letter-spacing: 0.5px;
  628. }
  629. .task-status.completed {
  630. background-color: color-mix(in srgb, $success-color 15%, transparent);
  631. color: $success-color;
  632. }
  633. .task-status.pending {
  634. background-color: color-mix(in srgb, $warning-color 15%, transparent);
  635. color: $warning-color;
  636. }
  637. .task-status.overdue {
  638. background-color: color-mix(in srgb, $danger-color 15%, transparent);
  639. color: $danger-color;
  640. }
  641. /* 任务内容 */
  642. .task-content {
  643. flex: 1;
  644. }
  645. .task-title {
  646. font-size: 18px;
  647. font-weight: 600;
  648. color: $text-primary-dark;
  649. margin-bottom: 4px;
  650. line-height: 1.3;
  651. }
  652. .task-project {
  653. font-size: 14px;
  654. color: $text-secondary-dark;
  655. margin-bottom: 8px;
  656. }
  657. .task-meta {
  658. font-size: 14px;
  659. color: $text-tertiary-dark;
  660. }
  661. /* 任务进度 */
  662. .task-progress {
  663. width: 100%;
  664. height: 8px;
  665. background-color: $background-color;
  666. border-radius: 4px;
  667. overflow: hidden;
  668. margin-top: 12px;
  669. box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  670. }
  671. .progress-bar {
  672. height: 100%;
  673. background: linear-gradient(90deg, $primary-color, #5e9eff);
  674. transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  675. position: relative;
  676. overflow: hidden;
  677. border-radius: 4px;
  678. }
  679. .progress-bar::after {
  680. content: '';
  681. position: absolute;
  682. top: 0;
  683. left: 0;
  684. right: 0;
  685. bottom: 0;
  686. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  687. animation: shimmer 2s infinite;
  688. }
  689. @keyframes shimmer {
  690. 0% {
  691. transform: translateX(-100%);
  692. }
  693. 100% {
  694. transform: translateX(100%);
  695. }
  696. }
  697. .progress-text {
  698. font-size: 12px;
  699. color: $text-tertiary-dark;
  700. text-align: right;
  701. margin-top: 4px;
  702. font-weight: 500;
  703. }
  704. /* 任务处理进度条容器 */
  705. .task-progress-container {
  706. width: 100%;
  707. height: 12px;
  708. background-color: #f5f5f5;
  709. border-radius: 6px;
  710. overflow: hidden;
  711. margin-top: 12px;
  712. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  713. }
  714. .task-progress-bar {
  715. height: 100%;
  716. background: linear-gradient(90deg, $primary-color 0%, #5e9eff 100%);
  717. transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  718. position: relative;
  719. overflow: hidden;
  720. display: flex;
  721. align-items: center;
  722. justify-content: flex-end;
  723. padding-right: 8px;
  724. border-radius: 6px;
  725. }
  726. .task-progress-bar::after {
  727. content: '';
  728. position: absolute;
  729. top: 0;
  730. left: 0;
  731. right: 0;
  732. bottom: 0;
  733. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  734. animation: shimmer 1.5s infinite;
  735. }
  736. .task-progress-text {
  737. font-size: 10px;
  738. color: white;
  739. font-weight: 600;
  740. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  741. z-index: 1;
  742. }
  743. /* 任务操作按钮 */
  744. .task-actions {
  745. display: flex;
  746. align-items: center;
  747. }
  748. .task-button {
  749. padding: 6px 12px;
  750. border: 1px solid $border-color;
  751. border-radius: $border-radius;
  752. font-size: 14px;
  753. font-weight: 500;
  754. cursor: pointer;
  755. transition: $transition;
  756. background-color: $card-background;
  757. color: $text-secondary-dark;
  758. min-width: 60px;
  759. text-align: center;
  760. }
  761. .task-button:hover {
  762. border-color: $primary-color;
  763. color: $primary-color;
  764. }
  765. .task-button.primary {
  766. background-color: $primary-color;
  767. color: white;
  768. border-color: $primary-color;
  769. }
  770. .task-button.primary:hover {
  771. background-color: $primary-dark;
  772. border-color: $primary-dark;
  773. color: white;
  774. }
  775. .task-button:disabled {
  776. opacity: 0.6;
  777. cursor: not-allowed;
  778. transform: none;
  779. }
  780. /* 搜索框样式 */
  781. .search-box {
  782. position: relative;
  783. }
  784. .search-input {
  785. padding: 8px 16px;
  786. border: 1px solid $border-color;
  787. border-radius: $border-radius;
  788. font-size: 14px;
  789. color: $text-primary-dark;
  790. background-color: $card-background;
  791. transition: $transition;
  792. outline: none;
  793. min-width: 200px;
  794. }
  795. .search-input:focus {
  796. border-color: $primary-color;
  797. box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
  798. }
  799. /* 项目动态流 */
  800. .project-updates-section {
  801. background-color: $card-background;
  802. border-radius: $border-radius;
  803. padding: 24px;
  804. box-shadow: $shadow-md;
  805. transition: $transition;
  806. }
  807. .project-updates-section:hover {
  808. box-shadow: $shadow-lg;
  809. }
  810. .project-updates-section.empty {
  811. text-align: center;
  812. padding: 60px 20px;
  813. color: $text-tertiary-dark;
  814. }
  815. .project-updates-section.empty p {
  816. font-size: 16px;
  817. margin: 0;
  818. }
  819. .project-updates-list {
  820. display: flex;
  821. flex-direction: column;
  822. gap: 16px;
  823. }
  824. .update-item {
  825. display: flex;
  826. gap: 16px;
  827. padding: 20px;
  828. border: 1px solid $border-color;
  829. border-radius: $border-radius;
  830. transition: $transition;
  831. &:hover {
  832. border-color: $primary-color;
  833. box-shadow: 0 4px 12px color-mix(in srgb, $primary-color 10%, transparent);
  834. transform: translateY(-2px);
  835. }
  836. .update-icon {
  837. width: 44px;
  838. height: 44px;
  839. background-color: $primary-color;
  840. border-radius: 12px;
  841. display: flex;
  842. align-items: center;
  843. justify-content: center;
  844. color: white;
  845. flex-shrink: 0;
  846. transition: $transition;
  847. }
  848. .update-content {
  849. flex: 1;
  850. .update-title {
  851. font-size: 18px;
  852. font-weight: 600;
  853. color: $text-primary-dark;
  854. margin-bottom: 6px;
  855. line-height: 1.3;
  856. }
  857. .update-text {
  858. font-size: 16px;
  859. color: $text-secondary-dark;
  860. margin-bottom: 12px;
  861. line-height: 1.4;
  862. }
  863. .update-meta {
  864. display: flex;
  865. align-items: center;
  866. gap: 20px;
  867. .update-time {
  868. font-size: 14px;
  869. color: $text-tertiary-dark;
  870. }
  871. .update-status {
  872. padding: 4px 12px;
  873. border-radius: 16px;
  874. font-size: 14px;
  875. font-weight: 600;
  876. transition: $transition;
  877. &.status-active,
  878. &.status-info {
  879. background-color: #e3f2fd;
  880. color: $primary-color;
  881. border: 1px solid #bbdefb;
  882. }
  883. &.status-completed,
  884. &.status-success {
  885. background-color: #e8f5e9;
  886. color: $success-color;
  887. border: 1px solid #c8e6c9;
  888. }
  889. &.status-warning {
  890. background-color: #fff3e0;
  891. color: $warning-color;
  892. border: 1px solid #ffe0b2;
  893. }
  894. &.status-danger {
  895. background-color: #ffebee;
  896. color: $danger-color;
  897. border: 1px solid #ffcdd2;
  898. }
  899. }
  900. }
  901. }
  902. }
  903. .stats-dashboard .stats-grid {
  904. grid-template-columns: repeat(2, 1fr);
  905. }
  906. /* 欢迎区域 */
  907. .welcome-section {
  908. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  909. color: white;
  910. padding: 24px 32px;
  911. border-radius: $border-radius;
  912. margin-bottom: 24px;
  913. box-shadow: $shadow-lg;
  914. }
  915. .welcome-section h2 {
  916. font-size: 24px;
  917. font-weight: 700;
  918. margin: 0 0 6px 0;
  919. }
  920. .welcome-section p {
  921. font-size: 14px;
  922. opacity: 0.9;
  923. margin: 0;
  924. }
  925. @media (max-width: 768px) {
  926. .welcome-section {
  927. margin-bottom: 16px;
  928. h2 {
  929. font-size: 20px;
  930. }
  931. }
  932. .stats-dashboard {
  933. margin-bottom: 16px;
  934. .stats-grid {
  935. grid-template-columns: 1fr;
  936. gap: 12px;
  937. }
  938. .stat-card {
  939. padding: 16px;
  940. }
  941. .stat-number {
  942. font-size: 20px;
  943. }
  944. .stat-icon {
  945. width: 40px;
  946. height: 40px;
  947. }
  948. }
  949. .tasks-section,
  950. .project-updates-section {
  951. padding: 16px;
  952. margin-bottom: 16px;
  953. }
  954. .task-item,
  955. .update-item {
  956. padding: 16px;
  957. }
  958. .task-actions {
  959. flex-wrap: wrap;
  960. }
  961. .task-button {
  962. font-size: 12px;
  963. padding: 4px 8px;
  964. }
  965. }
  966. @media (max-width: 480px) {
  967. .task-item {
  968. flex-direction: column;
  969. align-items: flex-start;
  970. .task-actions {
  971. margin-top: 12px;
  972. align-self: flex-end;
  973. }
  974. }
  975. .update-item {
  976. .update-icon {
  977. width: 32px;
  978. height: 32px;
  979. }
  980. }
  981. }
  982. /* ========== iOS风格新增样式 ========== */
  983. .ios-page-transition {
  984. overflow: hidden;
  985. .stat-card {
  986. transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  987. transform: translateY(20px);
  988. opacity: 0;
  989. }
  990. }
  991. .stat-card {
  992. &:active {
  993. transform: scale(0.98);
  994. transition: transform 0.1s ease;
  995. }
  996. perspective: 1000px;
  997. .stat-content {
  998. transform-style: preserve-3d;
  999. transition: transform 0.5s ease;
  1000. &:hover {
  1001. transform: translateZ(10px);
  1002. }
  1003. }
  1004. }
  1005. .stat-icon {
  1006. position: relative;
  1007. overflow: hidden;
  1008. &::after {
  1009. content: '';
  1010. position: absolute;
  1011. top: -50%;
  1012. left: -50%;
  1013. width: 200%;
  1014. }
  1015. }
  1016. /* iOS风格面板 - 紧急事项添加 */
  1017. .ios-modal-overlay {
  1018. position: fixed;
  1019. top: 0;
  1020. left: 0;
  1021. right: 0;
  1022. bottom: 0;
  1023. background-color: rgba(0, 0, 0, 0.5);
  1024. display: flex;
  1025. align-items: center;
  1026. justify-content: center;
  1027. z-index: 1000;
  1028. animation: iosFadeIn 0.3s ease;
  1029. }
  1030. @keyframes iosFadeIn {
  1031. from {
  1032. opacity: 0;
  1033. }
  1034. to {
  1035. opacity: 1;
  1036. }
  1037. }
  1038. .ios-panel {
  1039. width: 90%;
  1040. max-width: 500px;
  1041. background-color: white;
  1042. border-radius: 16px;
  1043. padding: 28px;
  1044. transform: scale(0.95);
  1045. opacity: 0;
  1046. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  1047. box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  1048. margin: 0 auto;
  1049. max-height: 80vh;
  1050. overflow-y: auto;
  1051. }
  1052. .ios-panel.ios-panel-visible {
  1053. transform: scale(1);
  1054. opacity: 1;
  1055. }
  1056. .ios-panel-header {
  1057. display: flex;
  1058. justify-content: space-between;
  1059. align-items: center;
  1060. margin-bottom: 24px;
  1061. padding-bottom: 16px;
  1062. border-bottom: 1px solid #f0f0f0;
  1063. }
  1064. .ios-panel-header h3 {
  1065. font-size: 18px;
  1066. font-weight: 600;
  1067. color: $text-primary-dark;
  1068. margin: 0;
  1069. }
  1070. .ios-close-button {
  1071. background: none;
  1072. border: none;
  1073. padding: 8px;
  1074. cursor: pointer;
  1075. color: $text-secondary-dark;
  1076. display: flex;
  1077. align-items: center;
  1078. justify-content: center;
  1079. border-radius: 8px;
  1080. transition: background-color 0.2s ease;
  1081. }
  1082. .ios-close-button:hover {
  1083. background-color: #f5f5f5;
  1084. }
  1085. .ios-panel-content {
  1086. max-height: 70vh;
  1087. overflow-y: auto;
  1088. }
  1089. .ios-input, .ios-select {
  1090. width: 100%;
  1091. padding: 12px 16px;
  1092. border: 1px solid #e0e0e0;
  1093. border-radius: 12px;
  1094. font-size: 16px;
  1095. transition: border-color 0.2s ease, box-shadow 0.2s ease;
  1096. background-color: white;
  1097. box-sizing: border-box;
  1098. }
  1099. .ios-input:focus, .ios-select:focus {
  1100. outline: none;
  1101. border-color: $primary-color;
  1102. box-shadow: 0 0 0 3px rgba(99, 172, 255, 0.1);
  1103. }
  1104. .ios-input:disabled, .ios-select:disabled {
  1105. background-color: #f9f9f9;
  1106. color: $text-tertiary-dark;
  1107. border-color: #e0e0e0;
  1108. cursor: not-allowed;
  1109. }
  1110. .form-group {
  1111. margin-bottom: 20px;
  1112. }
  1113. .form-group label {
  1114. display: block;
  1115. margin-bottom: 8px;
  1116. font-size: 14px;
  1117. font-weight: 600;
  1118. color: $text-secondary-dark;
  1119. }
  1120. /* 增强版日期时间选择器 */
  1121. .datetime-picker-container {
  1122. display: flex;
  1123. gap: 12px;
  1124. margin-bottom: 20px;
  1125. .date-picker, .time-picker {
  1126. flex: 1;
  1127. position: relative;
  1128. label {
  1129. display: block;
  1130. margin-bottom: 8px;
  1131. font-size: 14px;
  1132. font-weight: 500;
  1133. color: $text-secondary-dark;
  1134. }
  1135. input {
  1136. width: 100%;
  1137. padding: 12px 16px;
  1138. border: 1px solid $border-color;
  1139. border-radius: 10px;
  1140. font-size: 16px;
  1141. background-color: white;
  1142. transition: all 0.2s ease;
  1143. -webkit-appearance: none;
  1144. -moz-appearance: none;
  1145. appearance: none;
  1146. &:focus {
  1147. border-color: $primary-color;
  1148. box-shadow: 0 0 0 3px rgba($primary-color, 0.1);
  1149. outline: none;
  1150. }
  1151. &::-webkit-calendar-picker-indicator {
  1152. background: transparent;
  1153. bottom: 0;
  1154. color: transparent;
  1155. cursor: pointer;
  1156. height: auto;
  1157. left: 0;
  1158. position: absolute;
  1159. right: 0;
  1160. top: 0;
  1161. width: auto;
  1162. }
  1163. }
  1164. &::after {
  1165. content: "";
  1166. position: absolute;
  1167. right: 16px;
  1168. top: 38px;
  1169. width: 20px;
  1170. height: 20px;
  1171. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23636366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  1172. background-repeat: no-repeat;
  1173. background-position: center;
  1174. pointer-events: none;
  1175. }
  1176. }
  1177. .time-picker {
  1178. input {
  1179. &::-webkit-calendar-picker-indicator {
  1180. background: transparent;
  1181. bottom: 0;
  1182. color: transparent;
  1183. cursor: pointer;
  1184. height: auto;
  1185. left: 0;
  1186. position: absolute;
  1187. right: 0;
  1188. top: 0;
  1189. width: auto;
  1190. }
  1191. }
  1192. &::after {
  1193. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23636366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
  1194. }
  1195. }
  1196. }
  1197. input[type="datetime-local"]:focus {
  1198. outline: none;
  1199. border-color: $primary-color;
  1200. box-shadow: 0 0 0 3px rgba(99, 172, 255, 0.1);
  1201. }
  1202. input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  1203. background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2363acff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") no-repeat center center;
  1204. width: 24px;
  1205. height: 24px;
  1206. cursor: pointer;
  1207. opacity: 0.7;
  1208. }
  1209. /* iOS风格文本域 */
  1210. .ios-textarea {
  1211. width: 100%;
  1212. padding: 12px 16px;
  1213. border: 1px solid #e0e0e0;
  1214. border-radius: 12px;
  1215. font-size: 16px;
  1216. font-family: inherit;
  1217. resize: vertical;
  1218. min-height: 80px;
  1219. transition: border-color 0.2s ease, box-shadow 0.2s ease;
  1220. background-color: white;
  1221. box-sizing: border-box;
  1222. }
  1223. .ios-textarea:focus {
  1224. outline: none;
  1225. border-color: $primary-color;
  1226. box-shadow: 0 0 0 3px rgba(99, 172, 255, 0.1);
  1227. }
  1228. /* iOS风格面板底部按钮 */
  1229. .ios-panel-footer {
  1230. display: flex;
  1231. justify-content: flex-end;
  1232. gap: 12px;
  1233. margin-top: 24px;
  1234. padding-top: 16px;
  1235. border-top: 1px solid #f0f0f0;
  1236. }
  1237. .ios-cancel-button, .ios-submit-button {
  1238. padding: 10px 20px;
  1239. border-radius: 12px;
  1240. font-size: 16px;
  1241. font-weight: 500;
  1242. cursor: pointer;
  1243. transition: all 0.2s ease;
  1244. border: none;
  1245. box-sizing: border-box;
  1246. min-width: 80px;
  1247. }
  1248. .ios-cancel-button {
  1249. background-color: #f5f5f5;
  1250. color: $text-secondary-dark;
  1251. }
  1252. .ios-cancel-button:hover {
  1253. background-color: #eeeeee;
  1254. }
  1255. .ios-cancel-button:active {
  1256. background-color: #e0e0e0;
  1257. transform: scale(0.98);
  1258. }
  1259. .ios-submit-button {
  1260. background-color: $primary-color;
  1261. color: white;
  1262. }
  1263. .ios-submit-button:hover {
  1264. background-color: $primary-dark;
  1265. }
  1266. .ios-submit-button:active {
  1267. background-color: #4a89dc;
  1268. transform: scale(0.98);
  1269. }
  1270. .ios-submit-button:disabled {
  1271. background-color: #e0e0e0;
  1272. color: $text-tertiary-dark;
  1273. cursor: not-allowed;
  1274. transform: none;
  1275. }
  1276. /* 核心指标渐变卡片 */
  1277. .core-metrics-grid {
  1278. display: grid;
  1279. grid-template-columns: repeat(3, 1fr);
  1280. gap: 16px;
  1281. margin-top: 16px;
  1282. }
  1283. .core-metric-card {
  1284. display: flex;
  1285. align-items: center;
  1286. gap: 12px;
  1287. padding: 16px;
  1288. border-radius: 14px;
  1289. color: #fff;
  1290. box-shadow: $shadow-md;
  1291. .metric-icon {
  1292. width: 40px;
  1293. height: 40px;
  1294. border-radius: 12px;
  1295. background: rgba(255,255,255,0.2);
  1296. display: flex;
  1297. align-items: center;
  1298. justify-content: center;
  1299. }
  1300. .metric-content {
  1301. .metric-value { font-size: 22px; font-weight: 700; }
  1302. .metric-label { font-size: 13px; opacity: 0.9; }
  1303. }
  1304. &.gradient-green {
  1305. background: linear-gradient(135deg, #34d399, #10b981);
  1306. }
  1307. &.gradient-orange {
  1308. background: linear-gradient(135deg, #f59e0b, #f97316);
  1309. }
  1310. &.gradient-blue {
  1311. background: linear-gradient(135deg, #60a5fa, #3b82f6);
  1312. }
  1313. }
  1314. /* CRM队列 */
  1315. .crm-queues {
  1316. margin-bottom: 24px;
  1317. }
  1318. .crm-grid {
  1319. display: grid;
  1320. grid-template-columns: 1fr 1fr;
  1321. gap: 20px;
  1322. }
  1323. .crm-card {
  1324. background: $ios-card-background;
  1325. border: 1px solid $ios-border;
  1326. border-radius: $ios-radius-lg;
  1327. padding: 16px;
  1328. box-shadow: $shadow-sm;
  1329. }
  1330. .crm-header {
  1331. display: flex;
  1332. align-items: flex-start;
  1333. justify-content: space-between;
  1334. margin-bottom: 16px;
  1335. gap: 16px;
  1336. .crm-title-section {
  1337. flex: 1;
  1338. h3 {
  1339. margin: 0 0 8px 0;
  1340. font-size: 16px;
  1341. font-weight: 600;
  1342. color: $ios-text;
  1343. }
  1344. }
  1345. .crm-stats {
  1346. display: flex;
  1347. gap: 16px;
  1348. margin-top: 4px;
  1349. .stat-item {
  1350. display: flex;
  1351. flex-direction: column;
  1352. align-items: center;
  1353. gap: 2px;
  1354. .stat-number {
  1355. font-size: 18px;
  1356. font-weight: 700;
  1357. color: $ios-text;
  1358. &.success {
  1359. color: $ios-success;
  1360. }
  1361. &.warning {
  1362. color: $ios-warning;
  1363. }
  1364. &.danger {
  1365. color: $ios-danger;
  1366. }
  1367. }
  1368. .stat-label {
  1369. font-size: 11px;
  1370. color: $ios-text-secondary;
  1371. font-weight: 500;
  1372. text-transform: uppercase;
  1373. letter-spacing: 0.5px;
  1374. }
  1375. }
  1376. }
  1377. .view-all-link {
  1378. color: $primary-color;
  1379. font-size: 13px;
  1380. cursor: pointer;
  1381. white-space: nowrap;
  1382. margin-top: 4px;
  1383. &:hover {
  1384. color: $ios-primary-dark;
  1385. }
  1386. }
  1387. }
  1388. .crm-list {
  1389. display: flex;
  1390. flex-direction: column;
  1391. gap: 10px;
  1392. }
  1393. .crm-item {
  1394. display: flex;
  1395. align-items: flex-start;
  1396. justify-content: space-between;
  1397. gap: 12px;
  1398. padding: 10px 12px;
  1399. border-radius: 10px;
  1400. border: 1px solid $border-color;
  1401. background: $background-color;
  1402. transition: $transition;
  1403. &:hover { background: #f7f7fb; }
  1404. .crm-item-main { display: flex; align-items: flex-start; gap: 12px; }
  1405. .avatar.small {
  1406. width: 28px; height: 28px; border-radius: 50%;
  1407. background: $primary-color; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
  1408. flex-shrink: 0;
  1409. &.alt { background: $ios-secondary; }
  1410. }
  1411. .info {
  1412. .name { font-weight: 600; color: $text-primary-dark; }
  1413. .meta { color: $text-tertiary-dark; font-size: 12px; display: flex; gap: 8px; margin-bottom: 8px; }
  1414. .tag {
  1415. background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 6px;
  1416. &.value-tag {
  1417. background: #e8f5e8;
  1418. color: #2e7d32;
  1419. }
  1420. &.price-tag {
  1421. background: #fff3e0;
  1422. color: #f57c00;
  1423. }
  1424. }
  1425. .time { }
  1426. .strategy-info {
  1427. font-size: 12px;
  1428. line-height: 1.4;
  1429. .recommended-phrase {
  1430. color: #555;
  1431. margin-bottom: 4px;
  1432. font-style: italic;
  1433. }
  1434. .case-strategy {
  1435. color: #666;
  1436. font-size: 11px;
  1437. }
  1438. }
  1439. }
  1440. .ios-btn.mini { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
  1441. }
  1442. .empty-state.small { color: $text-tertiary-dark; font-size: 13px; text-align: center; padding: 8px 0; }
  1443. @media (max-width: 900px) {
  1444. .core-metrics-grid { grid-template-columns: 1fr; }
  1445. .crm-grid { grid-template-columns: 1fr; }
  1446. }
  1447. .core-metric-card:hover {
  1448. border-color: $primary-color;
  1449. box-shadow: 0 4px 12px color-mix(in srgb, $primary-color 10%, transparent);
  1450. transform: translateY(-2px);
  1451. }
  1452. .core-icon {
  1453. width: 48px;
  1454. height: 48px;
  1455. background-color: color-mix(in srgb, $primary-color 15%, transparent);
  1456. border-radius: 12px;
  1457. display: flex;
  1458. align-items: center;
  1459. justify-content: center;
  1460. margin: 0 auto 12px;
  1461. color: $primary-color;
  1462. transition: $transition;
  1463. }
  1464. .core-card:nth-child(2) .core-icon {
  1465. background-color: color-mix(in srgb, $success-color 15%, transparent);
  1466. color: $success-color;
  1467. }
  1468. .core-card:nth-child(3) .core-icon {
  1469. background-color: color-mix(in srgb, $warning-color 15%, transparent);
  1470. color: $warning-color;
  1471. }
  1472. .core-card:nth-child(4) .core-icon {
  1473. background-color: color-mix(in srgb, $danger-color 15%, transparent);
  1474. color: $danger-color;
  1475. }
  1476. .core-number {
  1477. font-size: 24px;
  1478. font-weight: 700;
  1479. color: $text-primary-dark;
  1480. margin-bottom: 6px;
  1481. line-height: 1.2;
  1482. }
  1483. .core-label {
  1484. font-size: 14px;
  1485. color: $text-secondary-dark;
  1486. margin: 0;
  1487. }
  1488. /* 内容网格 */
  1489. .content-grid {
  1490. display: grid;
  1491. grid-template-columns: 1fr 1fr;
  1492. gap: 24px;
  1493. }
  1494. /* 任务列表区块 */
  1495. .tasks-section {
  1496. background-color: $card-background;
  1497. border-radius: $border-radius;
  1498. padding: 24px;
  1499. box-shadow: $shadow-md;
  1500. transition: $transition;
  1501. }
  1502. .tasks-section:hover {
  1503. box-shadow: $shadow-lg;
  1504. }
  1505. /* 通用区块头部 */
  1506. .section-header {
  1507. display: flex;
  1508. align-items: center;
  1509. justify-content: space-between;
  1510. margin-bottom: 20px;
  1511. }
  1512. .section-header h3 {
  1513. font-size: 20px;
  1514. font-weight: 600;
  1515. color: $text-primary-dark;
  1516. margin: 0;
  1517. }
  1518. .section-header .view-all {
  1519. display: flex;
  1520. align-items: center;
  1521. gap: 4px;
  1522. font-size: 14px;
  1523. color: $primary-color;
  1524. text-decoration: none;
  1525. transition: $transition;
  1526. }
  1527. .section-header .view-all:hover {
  1528. color: $primary-dark;
  1529. }
  1530. /* 搜索框样式 */
  1531. .search-box {
  1532. position: relative;
  1533. }
  1534. .search-input {
  1535. padding: 8px 16px;
  1536. border: 1px solid $border-color;
  1537. border-radius: $border-radius;
  1538. font-size: 14px;
  1539. color: $text-primary-dark;
  1540. background-color: $card-background;
  1541. transition: $transition;
  1542. outline: none;
  1543. min-width: 200px;
  1544. }
  1545. .search-input:focus {
  1546. border-color: $primary-color;
  1547. box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
  1548. }
  1549. /* 紧急待办列表 */
  1550. .tasks-list {
  1551. display: flex;
  1552. flex-direction: column;
  1553. gap: 12px;
  1554. }
  1555. .tasks-list.empty {
  1556. text-align: center;
  1557. padding: 40px 20px;
  1558. color: $text-tertiary-dark;
  1559. }
  1560. .tasks-list.empty p {
  1561. font-size: 16px;
  1562. margin: 0;
  1563. }
  1564. /* 任务项目样式 */
  1565. .task-item {
  1566. display: flex;
  1567. align-items: center;
  1568. justify-content: space-between;
  1569. padding: 16px 20px;
  1570. border-radius: $border-radius;
  1571. transition: $transition;
  1572. margin-bottom: 12px;
  1573. position: relative;
  1574. }
  1575. .task-item.completed {
  1576. background-color: #e8f5e9;
  1577. border: 1px solid #c8e6c9;
  1578. }
  1579. .task-item.overdue {
  1580. background-color: #ffebee;
  1581. border: 1px solid #ffcdd2;
  1582. }
  1583. .task-item:hover {
  1584. transform: translateY(-1px);
  1585. }
  1586. /* 任务复选框样式 */
  1587. .task-checkbox {
  1588. margin-right: 16px;
  1589. }
  1590. .task-checkbox input[type="checkbox"] {
  1591. width: 20px;
  1592. height: 20px;
  1593. accent-color: $primary-color;
  1594. border-radius: 4px;
  1595. cursor: pointer;
  1596. }
  1597. /* 任务状态标记 */
  1598. .task-status {
  1599. position: absolute;
  1600. top: 12px;
  1601. right: 12px;
  1602. padding: 4px 12px;
  1603. border-radius: 16px;
  1604. font-size: 12px;
  1605. font-weight: 600;
  1606. text-transform: uppercase;
  1607. letter-spacing: 0.5px;
  1608. }
  1609. .task-status.completed {
  1610. background-color: color-mix(in srgb, $success-color 15%, transparent);
  1611. color: $success-color;
  1612. }
  1613. .task-status.pending {
  1614. background-color: color-mix(in srgb, $warning-color 15%, transparent);
  1615. color: $warning-color;
  1616. }
  1617. .task-status.overdue {
  1618. background-color: color-mix(in srgb, $danger-color 15%, transparent);
  1619. color: $danger-color;
  1620. }
  1621. /* 任务内容 */
  1622. .task-content {
  1623. flex: 1;
  1624. }
  1625. .task-title {
  1626. font-size: 18px;
  1627. font-weight: 600;
  1628. color: $text-primary-dark;
  1629. margin-bottom: 4px;
  1630. line-height: 1.3;
  1631. }
  1632. .task-project {
  1633. font-size: 14px;
  1634. color: $text-secondary-dark;
  1635. margin-bottom: 8px;
  1636. }
  1637. .task-meta {
  1638. font-size: 14px;
  1639. color: $text-tertiary-dark;
  1640. }
  1641. /* 任务进度 */
  1642. .task-progress {
  1643. width: 100%;
  1644. height: 8px;
  1645. background-color: $background-color;
  1646. border-radius: 4px;
  1647. overflow: hidden;
  1648. margin-top: 12px;
  1649. box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  1650. }
  1651. .progress-bar {
  1652. height: 100%;
  1653. background: linear-gradient(90deg, $primary-color, #5e9eff);
  1654. transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  1655. position: relative;
  1656. overflow: hidden;
  1657. border-radius: 4px;
  1658. }
  1659. .progress-bar::after {
  1660. content: '';
  1661. position: absolute;
  1662. top: 0;
  1663. left: 0;
  1664. right: 0;
  1665. bottom: 0;
  1666. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  1667. animation: shimmer 2s infinite;
  1668. }
  1669. @keyframes shimmer {
  1670. 0% {
  1671. transform: translateX(-100%);
  1672. }
  1673. 100% {
  1674. transform: translateX(100%);
  1675. }
  1676. }
  1677. .progress-text {
  1678. font-size: 12px;
  1679. color: $text-tertiary-dark;
  1680. text-align: right;
  1681. margin-top: 4px;
  1682. font-weight: 500;
  1683. }
  1684. /* 任务处理进度条容器 */
  1685. .task-progress-container {
  1686. width: 100%;
  1687. height: 12px;
  1688. background-color: #f5f5f5;
  1689. border-radius: 6px;
  1690. overflow: hidden;
  1691. margin-top: 12px;
  1692. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  1693. }
  1694. .task-progress-bar {
  1695. height: 100%;
  1696. background: linear-gradient(90deg, $primary-color 0%, #5e9eff 100%);
  1697. transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  1698. position: relative;
  1699. overflow: hidden;
  1700. display: flex;
  1701. align-items: center;
  1702. justify-content: flex-end;
  1703. padding-right: 8px;
  1704. border-radius: 6px;
  1705. }
  1706. .task-progress-bar::after {
  1707. content: '';
  1708. position: absolute;
  1709. top: 0;
  1710. left: 0;
  1711. right: 0;
  1712. bottom: 0;
  1713. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  1714. animation: shimmer 1.5s infinite;
  1715. }
  1716. .task-progress-text {
  1717. font-size: 10px;
  1718. color: white;
  1719. font-weight: 600;
  1720. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  1721. z-index: 1;
  1722. }
  1723. /* 任务操作按钮 */
  1724. .task-actions {
  1725. display: flex;
  1726. align-items: center;
  1727. }
  1728. .task-button {
  1729. padding: 6px 12px;
  1730. border: 1px solid $border-color;
  1731. border-radius: $border-radius;
  1732. font-size: 14px;
  1733. font-weight: 500;
  1734. cursor: pointer;
  1735. transition: $transition;
  1736. background-color: $card-background;
  1737. color: $text-secondary-dark;
  1738. min-width: 60px;
  1739. text-align: center;
  1740. }
  1741. .task-button:hover {
  1742. border-color: $primary-color;
  1743. color: $primary-color;
  1744. }
  1745. .task-button.primary {
  1746. background-color: $primary-color;
  1747. color: white;
  1748. border-color: $primary-color;
  1749. }
  1750. .task-button.primary:hover {
  1751. background-color: $primary-dark;
  1752. border-color: $primary-dark;
  1753. color: white;
  1754. }
  1755. .task-button:disabled {
  1756. opacity: 0.6;
  1757. cursor: not-allowed;
  1758. transform: none;
  1759. }
  1760. /* 搜索框样式 */
  1761. .search-box {
  1762. position: relative;
  1763. }
  1764. .search-input {
  1765. padding: 8px 16px;
  1766. border: 1px solid $border-color;
  1767. border-radius: $border-radius;
  1768. font-size: 14px;
  1769. color: $text-primary-dark;
  1770. background-color: $card-background;
  1771. transition: $transition;
  1772. outline: none;
  1773. min-width: 200px;
  1774. }
  1775. .search-input:focus {
  1776. border-color: $primary-color;
  1777. box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
  1778. }
  1779. /* 项目动态流 */
  1780. .project-updates-section {
  1781. background-color: $card-background;
  1782. border-radius: $border-radius;
  1783. padding: 24px;
  1784. box-shadow: $shadow-md;
  1785. transition: $transition;
  1786. }
  1787. .project-updates-section:hover {
  1788. box-shadow: $shadow-lg;
  1789. }
  1790. .project-updates-section.empty {
  1791. text-align: center;
  1792. padding: 60px 20px;
  1793. color: $text-tertiary-dark;
  1794. }
  1795. .project-updates-section.empty p {
  1796. font-size: 16px;
  1797. margin: 0;
  1798. }
  1799. .project-updates-list {
  1800. display: flex;
  1801. flex-direction: column;
  1802. gap: 16px;
  1803. }
  1804. .update-item {
  1805. display: flex;
  1806. gap: 16px;
  1807. padding: 20px;
  1808. border: 1px solid $border-color;
  1809. border-radius: $border-radius;
  1810. transition: $transition;
  1811. &:hover {
  1812. border-color: $primary-color;
  1813. box-shadow: 0 4px 12px color-mix(in srgb, $primary-color 10%, transparent);
  1814. transform: translateY(-2px);
  1815. }
  1816. .update-icon {
  1817. width: 44px;
  1818. height: 44px;
  1819. background-color: $primary-color;
  1820. border-radius: 12px;
  1821. display: flex;
  1822. align-items: center;
  1823. justify-content: center;
  1824. color: white;
  1825. flex-shrink: 0;
  1826. transition: $transition;
  1827. }
  1828. .update-content {
  1829. flex: 1;
  1830. .update-title {
  1831. font-size: 18px;
  1832. font-weight: 600;
  1833. color: $text-primary-dark;
  1834. margin-bottom: 6px;
  1835. line-height: 1.3;
  1836. }
  1837. .update-text {
  1838. font-size: 16px;
  1839. color: $text-secondary-dark;
  1840. margin-bottom: 12px;
  1841. line-height: 1.4;
  1842. }
  1843. .update-meta {
  1844. display: flex;
  1845. align-items: center;
  1846. gap: 20px;
  1847. .update-time {
  1848. font-size: 14px;
  1849. color: $text-tertiary-dark;
  1850. }
  1851. .update-status {
  1852. padding: 4px 12px;
  1853. border-radius: 16px;
  1854. font-size: 14px;
  1855. font-weight: 600;
  1856. transition: $transition;
  1857. &.status-active,
  1858. &.status-info {
  1859. background-color: #e3f2fd;
  1860. color: $primary-color;
  1861. border: 1px solid #bbdefb;
  1862. }
  1863. &.status-completed,
  1864. &.status-success {
  1865. background-color: #e8f5e9;
  1866. color: $success-color;
  1867. border: 1px solid #c8e6c9;
  1868. }
  1869. &.status-warning {
  1870. background-color: #fff3e0;
  1871. color: $warning-color;
  1872. border: 1px solid #ffe0b2;
  1873. }
  1874. &.status-danger {
  1875. background-color: #ffebee;
  1876. color: $danger-color;
  1877. border: 1px solid #ffcdd2;
  1878. }
  1879. }
  1880. }
  1881. }
  1882. }
  1883. /* 回到顶部按钮 */
  1884. .back-to-top {
  1885. position: fixed;
  1886. bottom: 24px;
  1887. right: 24px;
  1888. width: 48px;
  1889. height: 48px;
  1890. border-radius: 50%;
  1891. background-color: $primary-color;
  1892. color: white;
  1893. border: none;
  1894. display: flex;
  1895. align-items: center;
  1896. justify-content: center;
  1897. cursor: pointer;
  1898. box-shadow: $shadow-md;
  1899. transition: $transition;
  1900. opacity: 0;
  1901. visibility: hidden;
  1902. z-index: 1000;
  1903. &.visible {
  1904. opacity: 1;
  1905. visibility: visible;
  1906. }
  1907. &:hover {
  1908. background-color: $primary-dark;
  1909. transform: translateY(-2px);
  1910. box-shadow: $shadow-lg;
  1911. }
  1912. &:active {
  1913. transform: translateY(0);
  1914. }
  1915. }
  1916. /* 响应式设计 */
  1917. @media (max-width: 1024px) {
  1918. .stats-grid {
  1919. grid-template-columns: repeat(2, 1fr);
  1920. }
  1921. .core-metrics-grid {
  1922. grid-template-columns: repeat(2, 1fr);
  1923. }
  1924. }
  1925. @media (max-width: 768px) {
  1926. .welcome-section {
  1927. padding: 16px 20px;
  1928. margin-bottom: 16px;
  1929. }
  1930. .welcome-section h2 {
  1931. font-size: 20px;
  1932. }
  1933. .welcome-section p {
  1934. font-size: 13px;
  1935. }
  1936. .stats-grid {
  1937. grid-template-columns: 1fr;
  1938. gap: 12px;
  1939. }
  1940. .content-grid {
  1941. grid-template-columns: 1fr;
  1942. gap: 16px;
  1943. margin-top: 12px;
  1944. }
  1945. .crm-grid {
  1946. grid-template-columns: 1fr;
  1947. gap: 12px;
  1948. }
  1949. .core-metrics-grid {
  1950. grid-template-columns: 1fr;
  1951. gap: 10px;
  1952. }
  1953. .crm-item {
  1954. padding: 10px 0;
  1955. .strategy-info {
  1956. .recommended-phrase {
  1957. font-size: 11px;
  1958. }
  1959. .case-strategy {
  1960. font-size: 10px;
  1961. }
  1962. }
  1963. }
  1964. .section-header {
  1965. flex-direction: column;
  1966. align-items: flex-start;
  1967. gap: 12px;
  1968. h3 {
  1969. font-size: 18px;
  1970. }
  1971. }
  1972. .task-title,
  1973. .update-title {
  1974. font-size: 16px !important;
  1975. }
  1976. .task-project,
  1977. .update-text {
  1978. font-size: 14px !important;
  1979. }
  1980. }
  1981. @media (max-width: 480px) {
  1982. .welcome-section {
  1983. padding: 12px 16px;
  1984. }
  1985. .stats-dashboard,
  1986. .crm-queues {
  1987. margin-bottom: 16px;
  1988. }
  1989. .crm-item {
  1990. .avatar.small {
  1991. width: 24px;
  1992. height: 24px;
  1993. font-size: 11px;
  1994. }
  1995. .info .name {
  1996. font-size: 14px;
  1997. }
  1998. .info .meta {
  1999. font-size: 11px;
  2000. gap: 6px;
  2001. }
  2002. }
  2003. }