dashboard.scss 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949
  1. @use "sass:color";
  2. /* 颜色变量 */
  3. $primary-color: #007aff;
  4. $primary-dark: #0051a8;
  5. $success-color: #34c759;
  6. $warning-color: #ff9500;
  7. $danger-color: #ff3b30;
  8. $info-color: #5ac8fa;
  9. $text-primary-dark: #1c1c1e;
  10. $text-secondary-dark: #636366;
  11. $text-tertiary-dark: #8e8e93;
  12. $border-color: #e5e5ea;
  13. $background-color: #f2f2f7;
  14. $card-background: #ffffff;
  15. $shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  16. $shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  17. $shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  18. $border-radius: 12px;
  19. $transition: all 0.2s ease;
  20. /* iOS设计风格颜色变量 */
  21. $ios-primary: #007aff;
  22. $ios-primary-dark: #0051a8;
  23. $ios-secondary: #5856d6;
  24. $ios-success: #34c759;
  25. $ios-warning: #ff9500;
  26. $ios-danger: #ff3b30;
  27. $ios-background: #f2f2f7;
  28. $ios-card-background: #ffffff;
  29. $ios-border: #e5e5ea;
  30. $ios-text: #1c1c1e;
  31. $ios-text-secondary: #636366;
  32. $ios-text-tertiary: #8e8e93;
  33. $ios-button-background: #f2f2f7;
  34. /* iOS设计风格圆角变量 */
  35. $ios-radius-sm: 8px;
  36. $ios-radius-md: 12px;
  37. $ios-radius-lg: 16px;
  38. $ios-radius-xl: 22px;
  39. /* 企业微信提示动画 */
  40. @keyframes slideInRight {
  41. from {
  42. transform: translateX(100%);
  43. opacity: 0;
  44. }
  45. to {
  46. transform: translateX(0);
  47. opacity: 1;
  48. }
  49. }
  50. /* 新增:待跟进尾款项目列表样式 */
  51. .pending-final-payment-section {
  52. background: $card-background;
  53. border-radius: $border-radius;
  54. padding: 24px;
  55. margin-bottom: 24px;
  56. box-shadow: $shadow-sm;
  57. border: 1px solid $border-color;
  58. .section-header {
  59. display: flex;
  60. justify-content: space-between;
  61. align-items: center;
  62. margin-bottom: 20px;
  63. h3 {
  64. margin: 0;
  65. font-size: 18px;
  66. font-weight: 600;
  67. color: $text-primary-dark;
  68. }
  69. .section-stats {
  70. display: flex;
  71. align-items: center;
  72. gap: 8px;
  73. .stat-badge {
  74. background: $danger-color;
  75. color: white;
  76. padding: 4px 8px;
  77. border-radius: 12px;
  78. font-size: 12px;
  79. font-weight: 600;
  80. min-width: 20px;
  81. text-align: center;
  82. &.urgent {
  83. background: $danger-color;
  84. animation: pulse 2s infinite;
  85. }
  86. }
  87. .stat-label {
  88. font-size: 14px;
  89. color: $text-secondary-dark;
  90. }
  91. }
  92. }
  93. .final-payment-list {
  94. display: flex;
  95. flex-direction: column;
  96. gap: 16px;
  97. .empty-state {
  98. text-align: center;
  99. padding: 40px 20px;
  100. color: $text-tertiary-dark;
  101. svg {
  102. margin-bottom: 16px;
  103. opacity: 0.5;
  104. }
  105. p {
  106. margin: 0;
  107. font-size: 14px;
  108. }
  109. }
  110. .final-payment-item {
  111. display: flex;
  112. justify-content: space-between;
  113. align-items: center;
  114. padding: 20px;
  115. border: 2px solid $border-color;
  116. border-radius: $ios-radius-lg;
  117. background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  118. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  119. position: relative;
  120. overflow: hidden;
  121. &::before {
  122. content: '';
  123. position: absolute;
  124. left: 0;
  125. top: 0;
  126. bottom: 0;
  127. width: 4px;
  128. background: linear-gradient(180deg, $primary-color 0%, lighten($primary-color, 15%) 100%);
  129. transition: width 0.3s ease;
  130. }
  131. &:hover {
  132. transform: translateY(-2px);
  133. box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
  134. border-color: $primary-color;
  135. &::before {
  136. width: 6px;
  137. }
  138. }
  139. &.overdue {
  140. border-color: rgba($danger-color, 0.3);
  141. background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  142. &::before {
  143. background: linear-gradient(180deg, $danger-color 0%, lighten($danger-color, 15%) 100%);
  144. }
  145. &:hover {
  146. box-shadow: 0 8px 24px rgba(255, 59, 48, 0.15);
  147. border-color: $danger-color;
  148. }
  149. }
  150. .project-info {
  151. flex: 1;
  152. .project-header {
  153. display: flex;
  154. justify-content: space-between;
  155. align-items: baseline;
  156. margin-bottom: 12px;
  157. .project-name {
  158. margin: 0;
  159. font-size: 17px;
  160. font-weight: 600;
  161. color: $text-primary-dark;
  162. letter-spacing: -0.3px;
  163. }
  164. .payment-amount {
  165. font-size: 22px;
  166. font-weight: 700;
  167. background: linear-gradient(135deg, $danger-color 0%, darken($danger-color, 10%) 100%);
  168. -webkit-background-clip: text;
  169. -webkit-text-fill-color: transparent;
  170. background-clip: text;
  171. &.highlight {
  172. animation: priceGlow 2s ease-in-out infinite;
  173. }
  174. }
  175. }
  176. .customer-info {
  177. .customer-details {
  178. display: flex;
  179. align-items: center;
  180. gap: 12px;
  181. margin-bottom: 10px;
  182. flex-wrap: wrap;
  183. .icon-user, .icon-phone {
  184. opacity: 0.6;
  185. flex-shrink: 0;
  186. }
  187. .customer-name {
  188. font-size: 14px;
  189. font-weight: 500;
  190. color: $text-primary-dark;
  191. display: flex;
  192. align-items: center;
  193. gap: 6px;
  194. }
  195. .customer-phone {
  196. font-size: 14px;
  197. color: $text-secondary-dark;
  198. display: flex;
  199. align-items: center;
  200. gap: 6px;
  201. font-family: 'SF Mono', Monaco, monospace;
  202. }
  203. }
  204. .project-meta {
  205. display: flex;
  206. justify-content: space-between;
  207. align-items: center;
  208. gap: 12px;
  209. .due-date {
  210. font-size: 13px;
  211. color: $text-tertiary-dark;
  212. display: flex;
  213. align-items: center;
  214. gap: 6px;
  215. svg {
  216. opacity: 0.7;
  217. }
  218. }
  219. .status-badge {
  220. padding: 6px 12px;
  221. border-radius: 20px;
  222. font-size: 12px;
  223. font-weight: 600;
  224. display: inline-flex;
  225. align-items: center;
  226. gap: 4px;
  227. transition: all 0.3s ease;
  228. &.pending {
  229. background: linear-gradient(135deg, rgba($warning-color, 0.15) 0%, rgba($warning-color, 0.08) 100%);
  230. color: darken($warning-color, 5%);
  231. border: 1px solid rgba($warning-color, 0.3);
  232. }
  233. &.overdue {
  234. background: linear-gradient(135deg, rgba($danger-color, 0.15) 0%, rgba($danger-color, 0.08) 100%);
  235. color: darken($danger-color, 5%);
  236. border: 1px solid rgba($danger-color, 0.3);
  237. animation: badgePulse 2s ease-in-out infinite;
  238. }
  239. .overdue-days {
  240. font-size: 11px;
  241. opacity: 0.9;
  242. }
  243. }
  244. }
  245. }
  246. }
  247. .payment-actions {
  248. display: flex;
  249. flex-direction: column;
  250. gap: 10px;
  251. margin-left: 20px;
  252. button {
  253. &.mini {
  254. padding: 10px 16px;
  255. font-size: 13px;
  256. border-radius: $ios-radius-md;
  257. white-space: nowrap;
  258. font-weight: 500;
  259. display: flex;
  260. align-items: center;
  261. gap: 6px;
  262. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  263. border: none;
  264. cursor: pointer;
  265. letter-spacing: -0.2px;
  266. svg {
  267. width: 16px;
  268. height: 16px;
  269. stroke-width: 2.5;
  270. }
  271. }
  272. }
  273. .btn-primary {
  274. background: linear-gradient(135deg, $primary-color 0%, darken($primary-color, 8%) 100%);
  275. color: white;
  276. box-shadow: 0 2px 8px rgba($primary-color, 0.3);
  277. &:hover:not(:disabled) {
  278. background: linear-gradient(135deg, darken($primary-color, 5%) 0%, darken($primary-color, 13%) 100%);
  279. box-shadow: 0 4px 12px rgba($primary-color, 0.4);
  280. transform: translateY(-1px);
  281. }
  282. &:active:not(:disabled) {
  283. transform: translateY(0);
  284. }
  285. &:disabled {
  286. background: $text-tertiary-dark;
  287. cursor: not-allowed;
  288. opacity: 0.6;
  289. box-shadow: none;
  290. }
  291. }
  292. .btn-secondary {
  293. background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  294. color: $text-primary-dark;
  295. border: 1px solid $border-color;
  296. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  297. &:hover:not(:disabled) {
  298. background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  299. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  300. transform: translateY(-1px);
  301. border-color: darken($border-color, 10%);
  302. }
  303. &:active:not(:disabled) {
  304. transform: translateY(0);
  305. }
  306. }
  307. }
  308. }
  309. }
  310. }
  311. @keyframes pulse {
  312. 0% {
  313. transform: scale(1);
  314. }
  315. 50% {
  316. transform: scale(1.05);
  317. }
  318. 100% {
  319. transform: scale(1);
  320. }
  321. }
  322. @keyframes priceGlow {
  323. 0%, 100% {
  324. filter: brightness(1);
  325. text-shadow: 0 0 0 transparent;
  326. }
  327. 50% {
  328. filter: brightness(1.2);
  329. text-shadow: 0 0 8px rgba(255, 59, 48, 0.3);
  330. }
  331. }
  332. @keyframes badgePulse {
  333. 0%, 100% {
  334. transform: scale(1);
  335. box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4);
  336. }
  337. 50% {
  338. transform: scale(1.05);
  339. box-shadow: 0 0 0 4px rgba(255, 59, 48, 0);
  340. }
  341. }
  342. @keyframes slideOutRight {
  343. from {
  344. transform: translateX(0);
  345. opacity: 1;
  346. }
  347. to {
  348. transform: translateX(100%);
  349. opacity: 0;
  350. }
  351. }
  352. /* 企业微信提示样式 */
  353. .wechat-work-tip {
  354. .tip-content {
  355. display: flex;
  356. flex-direction: column;
  357. gap: 8px;
  358. }
  359. .tip-icon {
  360. font-size: 20px;
  361. text-align: center;
  362. }
  363. .tip-text {
  364. font-weight: 600;
  365. line-height: 1.4;
  366. }
  367. .tip-subtext {
  368. font-size: 12px;
  369. opacity: 0.9;
  370. line-height: 1.3;
  371. }
  372. }
  373. /* iOS风格的模态框覆盖层 */
  374. .ios-modal-overlay {
  375. position: fixed;
  376. top: 0;
  377. left: 0;
  378. right: 0;
  379. bottom: 0;
  380. background-color: rgba(0, 0, 0, 0.5);
  381. display: flex;
  382. align-items: center;
  383. justify-content: center;
  384. z-index: 1000;
  385. animation: fadeIn 0.3s ease;
  386. }
  387. /* iOS风格的面板 */
  388. .ios-panel {
  389. background-color: $ios-card-background;
  390. border-radius: $ios-radius-xl;
  391. width: 90%;
  392. max-width: 500px;
  393. max-height: 80vh;
  394. overflow: hidden;
  395. box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  396. transform: scale(0.95);
  397. opacity: 0;
  398. transition: transform 0.3s ease, opacity 0.3s ease;
  399. }
  400. .ios-panel.ios-panel-visible {
  401. transform: scale(1);
  402. opacity: 1;
  403. }
  404. /* iOS面板头部 */
  405. .ios-panel-header {
  406. display: flex;
  407. align-items: center;
  408. justify-content: space-between;
  409. padding: 16px 20px;
  410. border-bottom: 1px solid $ios-border;
  411. }
  412. .ios-panel-header h3 {
  413. font-size: 18px;
  414. font-weight: 600;
  415. color: $ios-text;
  416. margin: 0;
  417. }
  418. .ios-close-button {
  419. background: none;
  420. border: none;
  421. padding: 8px;
  422. cursor: pointer;
  423. color: $ios-text-secondary;
  424. transition: color 0.2s ease;
  425. border-radius: 50%;
  426. display: flex;
  427. align-items: center;
  428. justify-content: center;
  429. }
  430. .ios-close-button:hover {
  431. color: $ios-text;
  432. background-color: $ios-button-background;
  433. }
  434. /* iOS面板内容 */
  435. .ios-panel-content {
  436. padding: 20px;
  437. overflow-y: auto;
  438. max-height: 60vh;
  439. }
  440. /* 表单样式 */
  441. .form-group {
  442. margin-bottom: 20px;
  443. }
  444. .form-group label {
  445. display: block;
  446. font-size: 14px;
  447. font-weight: 500;
  448. color: $ios-text-secondary;
  449. margin-bottom: 8px;
  450. }
  451. /* iOS风格的表单输入框 */
  452. .ios-input {
  453. width: 100%;
  454. padding: 10px 12px;
  455. border: 1px solid $border-color;
  456. border-radius: 8px;
  457. font-size: 16px;
  458. background-color: white;
  459. transition: all 0.3s ease;
  460. outline: none;
  461. color: $ios-text;
  462. &:focus {
  463. border-color: $primary-color;
  464. box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
  465. }
  466. &::placeholder {
  467. color: $ios-text-secondary;
  468. }
  469. }
  470. /* 截止时间显示区域 */
  471. .deadline-display {
  472. position: relative;
  473. cursor: pointer;
  474. padding-right: 30px !important;
  475. .dropdown-arrow {
  476. position: absolute;
  477. right: 12px;
  478. top: 50%;
  479. transform: translateY(-50%);
  480. transition: transform 0.3s ease;
  481. color: $ios-text-secondary;
  482. }
  483. .dropdown-arrow.rotate {
  484. transform: translateY(-50%) rotate(180deg);
  485. }
  486. }
  487. /* 下拉选择框 */
  488. .deadline-dropdown {
  489. position: absolute;
  490. top: 100%;
  491. left: 0;
  492. right: 0;
  493. margin-top: 5px;
  494. background-color: white;
  495. border: 1px solid $border-color;
  496. border-radius: 8px;
  497. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  498. z-index: 1000;
  499. max-height: 300px;
  500. overflow-y: auto;
  501. opacity: 0;
  502. visibility: hidden;
  503. transition: all 0.3s ease;
  504. }
  505. .deadline-dropdown.visible {
  506. opacity: 1;
  507. visibility: visible;
  508. }
  509. /* 下拉选项 */
  510. .dropdown-option {
  511. padding: 12px 16px;
  512. cursor: pointer;
  513. transition: background-color 0.2s ease;
  514. color: $ios-text;
  515. &:hover {
  516. background-color: #f2f2f7;
  517. }
  518. &.selected {
  519. background-color: rgba(0, 122, 255, 0.1);
  520. color: $primary-color;
  521. font-weight: 500;
  522. }
  523. &.custom-option {
  524. color: $primary-color;
  525. font-weight: 500;
  526. }
  527. }
  528. /* 分隔线 */
  529. .dropdown-divider {
  530. height: 1px;
  531. background-color: $border-color;
  532. margin: 4px 0;
  533. }
  534. /* 错误提示信息 */
  535. .error-message {
  536. color: #ff3b30;
  537. font-size: 14px;
  538. margin-top: 5px;
  539. padding: 4px 0;
  540. }
  541. /* 自定义时间弹窗 */
  542. .custom-time-modal {
  543. position: fixed;
  544. top: 0;
  545. left: 0;
  546. right: 0;
  547. bottom: 0;
  548. z-index: 2000;
  549. display: flex;
  550. align-items: center;
  551. justify-content: center;
  552. opacity: 0;
  553. visibility: hidden;
  554. transition: opacity 0.3s ease;
  555. }
  556. .custom-time-modal.modal-visible {
  557. opacity: 1;
  558. visibility: visible;
  559. }
  560. /* 弹窗背景 */
  561. .modal-backdrop {
  562. position: absolute;
  563. top: 0;
  564. left: 0;
  565. right: 0;
  566. bottom: 0;
  567. background-color: rgba(0, 0, 0, 0.5);
  568. }
  569. /* 弹窗内容 */
  570. .modal-content {
  571. position: relative;
  572. background-color: white;
  573. border-radius: 12px;
  574. width: 90%;
  575. max-width: 400px;
  576. max-height: 80vh;
  577. overflow-y: auto;
  578. transform: translateY(20px);
  579. transition: transform 0.3s ease;
  580. }
  581. .custom-time-modal.modal-visible .modal-content {
  582. transform: translateY(0);
  583. }
  584. /* 弹窗头部 */
  585. .modal-header {
  586. padding: 16px 20px;
  587. border-bottom: 1px solid $border-color;
  588. display: flex;
  589. justify-content: space-between;
  590. align-items: center;
  591. }
  592. .modal-header h3 {
  593. margin: 0;
  594. font-size: 18px;
  595. font-weight: 600;
  596. color: $ios-text;
  597. }
  598. /* 关闭按钮 */
  599. .close-button {
  600. background: none;
  601. border: none;
  602. font-size: 24px;
  603. color: $ios-text-secondary;
  604. cursor: pointer;
  605. padding: 0;
  606. width: 30px;
  607. height: 30px;
  608. display: flex;
  609. align-items: center;
  610. justify-content: center;
  611. border-radius: 15px;
  612. transition: all 0.2s ease;
  613. &:hover {
  614. background-color: #f2f2f7;
  615. color: $ios-text;
  616. }
  617. }
  618. /* 弹窗主体 */
  619. .modal-body {
  620. padding: 20px;
  621. }
  622. /* 日期选择器 */
  623. .date-picker,
  624. .time-picker {
  625. margin-bottom: 16px;
  626. }
  627. .date-picker label,
  628. .time-picker label {
  629. display: block;
  630. margin-bottom: 8px;
  631. font-size: 14px;
  632. font-weight: 500;
  633. color: $ios-text;
  634. }
  635. /* 弹窗底部 */
  636. .modal-footer {
  637. padding: 16px 20px;
  638. border-top: 1px solid $border-color;
  639. display: flex;
  640. justify-content: flex-end;
  641. gap: 10px;
  642. }
  643. /* 按钮样式 */
  644. .cancel-button,
  645. .confirm-button {
  646. padding: 8px 16px;
  647. border-radius: 8px;
  648. font-size: 16px;
  649. font-weight: 500;
  650. cursor: pointer;
  651. transition: all 0.2s ease;
  652. }
  653. .cancel-button {
  654. background-color: #f2f2f7;
  655. color: $ios-text;
  656. border: none;
  657. }
  658. .confirm-button {
  659. background-color: $primary-color;
  660. color: white;
  661. border: none;
  662. }
  663. .cancel-button:hover {
  664. background-color: #e5e5ea;
  665. }
  666. .confirm-button:hover {
  667. background-color: #0066cc;
  668. }
  669. /* iOS面板底部 */
  670. .ios-panel-footer {
  671. display: flex;
  672. justify-content: flex-end;
  673. gap: 12px;
  674. padding: 16px 20px;
  675. border-top: 1px solid $ios-border;
  676. background-color: $ios-background;
  677. }
  678. /* iOS风格按钮 */
  679. .ios-cancel-button,
  680. .ios-submit-button {
  681. padding: 10px 20px;
  682. border: none;
  683. border-radius: $ios-radius-md;
  684. font-size: 16px;
  685. font-weight: 600;
  686. cursor: pointer;
  687. transition: all 0.2s ease;
  688. min-width: 80px;
  689. }
  690. .ios-cancel-button {
  691. background-color: $ios-button-background;
  692. color: $ios-text;
  693. }
  694. .ios-cancel-button:hover {
  695. background-color: color-mix(in srgb, $ios-button-background 80%, $ios-border 20%);
  696. }
  697. .ios-submit-button {
  698. background-color: $ios-primary;
  699. color: white;
  700. }
  701. .ios-submit-button:hover {
  702. background-color: $ios-primary-dark;
  703. }
  704. /* 动画 */
  705. @keyframes fadeIn {
  706. from {
  707. opacity: 0;
  708. }
  709. to {
  710. opacity: 1;
  711. }
  712. }
  713. /* 响应式调整 */
  714. @media (max-width: 768px) {
  715. .ios-panel {
  716. width: 95%;
  717. margin: 20px;
  718. }
  719. }
  720. /* 数据看板 - iOS风格 */
  721. .stats-dashboard {
  722. background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.95));
  723. border-radius: 24px;
  724. padding: 28px;
  725. box-shadow:
  726. 0 8px 32px rgba(0, 0, 0, 0.08),
  727. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  728. backdrop-filter: blur(10px);
  729. border: 1px solid rgba(255, 255, 255, 0.2);
  730. margin-bottom: 24px;
  731. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  732. }
  733. .stats-dashboard:hover {
  734. box-shadow:
  735. 0 12px 40px rgba(0, 0, 0, 0.12),
  736. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  737. transform: translateY(-2px);
  738. }
  739. .stats-header {
  740. display: flex;
  741. align-items: center;
  742. justify-content: space-between;
  743. margin-bottom: 20px;
  744. }
  745. .stats-header h3 {
  746. font-size: 20px;
  747. font-weight: 600;
  748. color: $text-primary-dark;
  749. margin: 0;
  750. }
  751. .stats-grid {
  752. display: grid;
  753. grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  754. gap: 16px;
  755. margin-bottom: 20px;
  756. }
  757. /* 统计卡片 - 现代化iOS风格 */
  758. .stat-card {
  759. background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  760. border: 2px solid transparent;
  761. border-radius: 18px;
  762. padding: 20px;
  763. display: flex;
  764. align-items: center;
  765. gap: 16px;
  766. transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  767. cursor: pointer;
  768. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  769. position: relative;
  770. overflow: hidden;
  771. &::before {
  772. content: '';
  773. position: absolute;
  774. top: 0;
  775. left: 0;
  776. right: 0;
  777. bottom: 0;
  778. background: linear-gradient(135deg, rgba($primary-color, 0.03) 0%, rgba($primary-color, 0.01) 100%);
  779. opacity: 0;
  780. transition: opacity 0.4s ease;
  781. }
  782. &:hover {
  783. border-color: rgba($primary-color, 0.2);
  784. box-shadow:
  785. 0 8px 32px rgba($primary-color, 0.12),
  786. 0 0 0 1px rgba($primary-color, 0.05);
  787. transform: translateY(-3px) scale(1.02);
  788. &::before {
  789. opacity: 1;
  790. }
  791. .stat-icon {
  792. transform: scale(1.1) rotate(5deg);
  793. box-shadow: 0 4px 16px rgba($primary-color, 0.25);
  794. }
  795. .stat-value {
  796. transform: scale(1.05);
  797. }
  798. }
  799. &:active {
  800. transform: translateY(-1px) scale(1.01);
  801. }
  802. }
  803. .stat-icon {
  804. width: 52px;
  805. height: 52px;
  806. background: linear-gradient(135deg, rgba($primary-color, 0.12), rgba($primary-color, 0.08));
  807. border-radius: 14px;
  808. display: flex;
  809. align-items: center;
  810. justify-content: center;
  811. color: $primary-color;
  812. transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  813. flex-shrink: 0;
  814. box-shadow: 0 2px 8px rgba($primary-color, 0.15);
  815. svg {
  816. stroke-width: 2.5;
  817. }
  818. &.primary {
  819. background: linear-gradient(135deg, rgba($primary-color, 0.12), rgba($primary-color, 0.08));
  820. color: $primary-color;
  821. box-shadow: 0 2px 8px rgba($primary-color, 0.15);
  822. }
  823. &.secondary {
  824. background: linear-gradient(135deg, rgba($success-color, 0.12), rgba($success-color, 0.08));
  825. color: $success-color;
  826. box-shadow: 0 2px 8px rgba($success-color, 0.15);
  827. }
  828. &.warning {
  829. background: linear-gradient(135deg, rgba($warning-color, 0.12), rgba($warning-color, 0.08));
  830. color: $warning-color;
  831. box-shadow: 0 2px 8px rgba($warning-color, 0.15);
  832. }
  833. &.danger {
  834. background: linear-gradient(135deg, rgba($danger-color, 0.12), rgba($danger-color, 0.08));
  835. color: $danger-color;
  836. box-shadow: 0 2px 8px rgba($danger-color, 0.15);
  837. }
  838. &.success {
  839. background: linear-gradient(135deg, rgba($success-color, 0.12), rgba($success-color, 0.08));
  840. color: $success-color;
  841. box-shadow: 0 2px 8px rgba($success-color, 0.15);
  842. }
  843. }
  844. .stat-content {
  845. flex: 1;
  846. min-width: 0;
  847. }
  848. .stat-value {
  849. font-size: 32px;
  850. font-weight: 700;
  851. color: $text-primary-dark;
  852. margin-bottom: 4px;
  853. line-height: 1;
  854. letter-spacing: -1px;
  855. transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  856. font-variant-numeric: tabular-nums;
  857. }
  858. .stat-label {
  859. font-size: 14px;
  860. color: $text-secondary-dark;
  861. margin: 0;
  862. font-weight: 500;
  863. letter-spacing: -0.1px;
  864. line-height: 1.4;
  865. }
  866. /* 内容网格 */
  867. .content-grid {
  868. display: grid;
  869. grid-template-columns: 1fr 1fr;
  870. gap: 20px;
  871. margin-top: 16px;
  872. }
  873. /* 任务列表区块 - iOS风格 */
  874. .tasks-section {
  875. background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.95));
  876. border-radius: 24px;
  877. padding: 28px;
  878. box-shadow:
  879. 0 8px 32px rgba(0, 0, 0, 0.08),
  880. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  881. backdrop-filter: blur(10px);
  882. border: 1px solid rgba(255, 255, 255, 0.2);
  883. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  884. }
  885. .tasks-section:hover {
  886. box-shadow:
  887. 0 12px 40px rgba(0, 0, 0, 0.12),
  888. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  889. transform: translateY(-2px);
  890. }
  891. /* 通用区块头部 */
  892. .section-header {
  893. display: flex;
  894. align-items: center;
  895. justify-content: space-between;
  896. margin-bottom: 20px;
  897. }
  898. .section-header h3 {
  899. font-size: 20px;
  900. font-weight: 600;
  901. color: $text-primary-dark;
  902. margin: 0;
  903. }
  904. .section-header .view-all {
  905. display: flex;
  906. align-items: center;
  907. gap: 4px;
  908. font-size: 14px;
  909. color: $primary-color;
  910. text-decoration: none;
  911. transition: $transition;
  912. }
  913. .section-header .view-all:hover {
  914. color: $primary-dark;
  915. }
  916. /* 搜索框样式 */
  917. .search-box {
  918. position: relative;
  919. }
  920. .search-input {
  921. padding: 8px 16px;
  922. border: 1px solid $border-color;
  923. border-radius: $border-radius;
  924. font-size: 14px;
  925. color: $text-primary-dark;
  926. background-color: $card-background;
  927. transition: $transition;
  928. outline: none;
  929. min-width: 200px;
  930. }
  931. .search-input:focus {
  932. border-color: $primary-color;
  933. box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
  934. }
  935. /* 紧急待办列表 */
  936. .tasks-list {
  937. display: flex;
  938. flex-direction: column;
  939. gap: 12px;
  940. }
  941. .tasks-list.empty {
  942. text-align: center;
  943. padding: 40px 20px;
  944. color: $text-tertiary-dark;
  945. }
  946. .tasks-list.empty p {
  947. font-size: 16px;
  948. margin: 0;
  949. }
  950. /* 任务项目样式 - iOS风格 */
  951. .task-item {
  952. display: flex;
  953. align-items: center;
  954. justify-content: space-between;
  955. padding: 20px 24px;
  956. border-radius: 16px;
  957. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  958. margin-bottom: 12px;
  959. position: relative;
  960. background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.9));
  961. border: 1px solid rgba(0, 0, 0, 0.05);
  962. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  963. }
  964. .task-item.completed {
  965. background-color: #e8f5e9;
  966. border: 1px solid #c8e6c9;
  967. }
  968. .task-item.overdue {
  969. background-color: #ffebee;
  970. border: 1px solid #ffcdd2;
  971. }
  972. .task-item:hover {
  973. transform: translateY(-3px);
  974. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  975. background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(252, 252, 252, 0.95));
  976. border-color: rgba(0, 0, 0, 0.1);
  977. }
  978. /* 任务复选框样式 */
  979. .task-checkbox {
  980. margin-right: 16px;
  981. }
  982. .task-checkbox input[type="checkbox"] {
  983. width: 20px;
  984. height: 20px;
  985. accent-color: $primary-color;
  986. border-radius: 4px;
  987. cursor: pointer;
  988. }
  989. /* 任务状态标记 */
  990. .task-status {
  991. position: absolute;
  992. top: 12px;
  993. right: 12px;
  994. padding: 4px 12px;
  995. border-radius: 16px;
  996. font-size: 12px;
  997. font-weight: 600;
  998. text-transform: uppercase;
  999. letter-spacing: 0.5px;
  1000. }
  1001. .task-status.completed {
  1002. background-color: color-mix(in srgb, $success-color 15%, transparent);
  1003. color: $success-color;
  1004. }
  1005. .task-status.pending {
  1006. background-color: color-mix(in srgb, $warning-color 15%, transparent);
  1007. color: $warning-color;
  1008. }
  1009. .task-status.overdue {
  1010. background-color: color-mix(in srgb, $danger-color 15%, transparent);
  1011. color: $danger-color;
  1012. }
  1013. /* 任务内容 */
  1014. .task-content {
  1015. flex: 1;
  1016. }
  1017. .task-title {
  1018. font-size: 18px;
  1019. font-weight: 600;
  1020. color: $text-primary-dark;
  1021. margin-bottom: 4px;
  1022. line-height: 1.3;
  1023. }
  1024. .task-project {
  1025. font-size: 14px;
  1026. color: $text-secondary-dark;
  1027. margin-bottom: 8px;
  1028. }
  1029. .task-meta {
  1030. font-size: 14px;
  1031. color: $text-tertiary-dark;
  1032. }
  1033. /* 任务进度 */
  1034. .task-progress {
  1035. width: 100%;
  1036. height: 8px;
  1037. background-color: $background-color;
  1038. border-radius: 4px;
  1039. overflow: hidden;
  1040. margin-top: 12px;
  1041. box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  1042. }
  1043. .progress-bar {
  1044. height: 100%;
  1045. background: linear-gradient(90deg, $primary-color, #5e9eff);
  1046. transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  1047. position: relative;
  1048. overflow: hidden;
  1049. border-radius: 4px;
  1050. }
  1051. .progress-bar::after {
  1052. content: '';
  1053. position: absolute;
  1054. top: 0;
  1055. left: 0;
  1056. right: 0;
  1057. bottom: 0;
  1058. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  1059. animation: shimmer 2s infinite;
  1060. }
  1061. @keyframes shimmer {
  1062. 0% {
  1063. transform: translateX(-100%);
  1064. }
  1065. 100% {
  1066. transform: translateX(100%);
  1067. }
  1068. }
  1069. .progress-text {
  1070. font-size: 12px;
  1071. color: $text-tertiary-dark;
  1072. text-align: right;
  1073. margin-top: 4px;
  1074. font-weight: 500;
  1075. }
  1076. /* 任务处理进度条容器 */
  1077. .task-progress-container {
  1078. width: 100%;
  1079. height: 12px;
  1080. background-color: #f5f5f5;
  1081. border-radius: 6px;
  1082. overflow: hidden;
  1083. margin-top: 12px;
  1084. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  1085. }
  1086. .task-progress-bar {
  1087. height: 100%;
  1088. background: linear-gradient(90deg, $primary-color 0%, #5e9eff 100%);
  1089. transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  1090. position: relative;
  1091. overflow: hidden;
  1092. display: flex;
  1093. align-items: center;
  1094. justify-content: flex-end;
  1095. padding-right: 8px;
  1096. border-radius: 6px;
  1097. }
  1098. .task-progress-bar::after {
  1099. content: '';
  1100. position: absolute;
  1101. top: 0;
  1102. left: 0;
  1103. right: 0;
  1104. bottom: 0;
  1105. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  1106. animation: shimmer 1.5s infinite;
  1107. }
  1108. .task-progress-text {
  1109. font-size: 10px;
  1110. color: white;
  1111. font-weight: 600;
  1112. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  1113. z-index: 1;
  1114. }
  1115. /* 任务操作按钮 */
  1116. .task-actions {
  1117. display: flex;
  1118. align-items: center;
  1119. }
  1120. .task-button {
  1121. padding: 6px 12px;
  1122. border: 1px solid $border-color;
  1123. border-radius: $border-radius;
  1124. font-size: 14px;
  1125. font-weight: 500;
  1126. cursor: pointer;
  1127. transition: $transition;
  1128. background-color: $card-background;
  1129. color: $text-secondary-dark;
  1130. min-width: 60px;
  1131. text-align: center;
  1132. }
  1133. .task-button:hover {
  1134. border-color: $primary-color;
  1135. color: $primary-color;
  1136. }
  1137. .task-button.primary {
  1138. background-color: $primary-color;
  1139. color: white;
  1140. border-color: $primary-color;
  1141. }
  1142. .task-button.primary:hover {
  1143. background-color: $primary-dark;
  1144. border-color: $primary-dark;
  1145. color: white;
  1146. }
  1147. .task-button:disabled {
  1148. opacity: 0.6;
  1149. cursor: not-allowed;
  1150. transform: none;
  1151. }
  1152. /* 搜索框样式 */
  1153. .search-box {
  1154. position: relative;
  1155. }
  1156. .search-input {
  1157. padding: 8px 16px;
  1158. border: 1px solid $border-color;
  1159. border-radius: $border-radius;
  1160. font-size: 14px;
  1161. color: $text-primary-dark;
  1162. background-color: $card-background;
  1163. transition: $transition;
  1164. outline: none;
  1165. min-width: 200px;
  1166. }
  1167. .search-input:focus {
  1168. border-color: $primary-color;
  1169. box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
  1170. }
  1171. /* 项目动态流 - iOS风格 */
  1172. .project-updates-section {
  1173. background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.95));
  1174. border-radius: 24px;
  1175. padding: 28px;
  1176. box-shadow:
  1177. 0 8px 32px rgba(0, 0, 0, 0.08),
  1178. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1179. backdrop-filter: blur(10px);
  1180. border: 1px solid rgba(255, 255, 255, 0.2);
  1181. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  1182. }
  1183. .project-updates-section:hover {
  1184. box-shadow:
  1185. 0 12px 40px rgba(0, 0, 0, 0.12),
  1186. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1187. transform: translateY(-2px);
  1188. }
  1189. .project-updates-section.empty {
  1190. text-align: center;
  1191. padding: 60px 20px;
  1192. color: $text-tertiary-dark;
  1193. }
  1194. .project-updates-section.empty p {
  1195. font-size: 16px;
  1196. margin: 0;
  1197. }
  1198. .project-updates-list {
  1199. display: flex;
  1200. flex-direction: column;
  1201. gap: 16px;
  1202. }
  1203. .update-item {
  1204. display: flex;
  1205. gap: 16px;
  1206. padding: 20px;
  1207. border: 1px solid $border-color;
  1208. border-radius: $border-radius;
  1209. transition: $transition;
  1210. &:hover {
  1211. border-color: $primary-color;
  1212. box-shadow: 0 4px 12px color-mix(in srgb, $primary-color 10%, transparent);
  1213. transform: translateY(-2px);
  1214. }
  1215. .update-icon {
  1216. width: 44px;
  1217. height: 44px;
  1218. background-color: $primary-color;
  1219. border-radius: 12px;
  1220. display: flex;
  1221. align-items: center;
  1222. justify-content: center;
  1223. color: white;
  1224. flex-shrink: 0;
  1225. transition: $transition;
  1226. }
  1227. .update-content {
  1228. flex: 1;
  1229. .update-title {
  1230. font-size: 18px;
  1231. font-weight: 600;
  1232. color: $text-primary-dark;
  1233. margin-bottom: 6px;
  1234. line-height: 1.3;
  1235. }
  1236. .update-text {
  1237. font-size: 16px;
  1238. color: $text-secondary-dark;
  1239. margin-bottom: 12px;
  1240. line-height: 1.4;
  1241. }
  1242. .update-meta {
  1243. display: flex;
  1244. align-items: center;
  1245. gap: 20px;
  1246. .update-time {
  1247. font-size: 14px;
  1248. color: $text-tertiary-dark;
  1249. }
  1250. .update-status {
  1251. padding: 4px 12px;
  1252. border-radius: 16px;
  1253. font-size: 14px;
  1254. font-weight: 600;
  1255. transition: $transition;
  1256. &.status-active,
  1257. &.status-info {
  1258. background-color: #e3f2fd;
  1259. color: $primary-color;
  1260. border: 1px solid #bbdefb;
  1261. }
  1262. &.status-completed,
  1263. &.status-success {
  1264. background-color: #e8f5e9;
  1265. color: $success-color;
  1266. border: 1px solid #c8e6c9;
  1267. }
  1268. &.status-warning {
  1269. background-color: #fff3e0;
  1270. color: $warning-color;
  1271. border: 1px solid #ffe0b2;
  1272. }
  1273. &.status-danger {
  1274. background-color: #ffebee;
  1275. color: $danger-color;
  1276. border: 1px solid #ffcdd2;
  1277. }
  1278. }
  1279. }
  1280. }
  1281. }
  1282. .stats-dashboard .stats-grid {
  1283. grid-template-columns: repeat(2, 1fr);
  1284. }
  1285. /* 欢迎区域 - iOS风格 */
  1286. .welcome-section {
  1287. background: linear-gradient(135deg, #c7d3d9, #d4c5b9);
  1288. color: #4a5568;
  1289. padding: 28px 36px;
  1290. border-radius: 24px;
  1291. margin-bottom: 24px;
  1292. box-shadow:
  1293. 0 8px 32px rgba(0, 0, 0, 0.1),
  1294. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1295. backdrop-filter: blur(10px);
  1296. border: 1px solid rgba(255, 255, 255, 0.2);
  1297. }
  1298. .welcome-section h2 {
  1299. font-size: 26px;
  1300. font-weight: 700;
  1301. margin: 0 0 8px 0;
  1302. letter-spacing: -0.5px;
  1303. color: #2d3748;
  1304. }
  1305. .welcome-section p {
  1306. font-size: 15px;
  1307. opacity: 0.8;
  1308. margin: 0;
  1309. font-weight: 500;
  1310. color: #4a5568;
  1311. }
  1312. @media (max-width: 768px) {
  1313. .welcome-section {
  1314. margin-bottom: 16px;
  1315. h2 {
  1316. font-size: 20px;
  1317. }
  1318. }
  1319. .stats-dashboard {
  1320. margin-bottom: 16px;
  1321. .stats-grid {
  1322. grid-template-columns: 1fr;
  1323. gap: 12px;
  1324. }
  1325. .stat-card {
  1326. padding: 16px;
  1327. }
  1328. .stat-number {
  1329. font-size: 20px;
  1330. }
  1331. .stat-icon {
  1332. width: 40px;
  1333. height: 40px;
  1334. }
  1335. }
  1336. .tasks-section,
  1337. .project-updates-section {
  1338. padding: 16px;
  1339. margin-bottom: 16px;
  1340. }
  1341. .task-item,
  1342. .update-item {
  1343. padding: 16px;
  1344. }
  1345. .task-actions {
  1346. flex-wrap: wrap;
  1347. }
  1348. .task-button {
  1349. font-size: 12px;
  1350. padding: 4px 8px;
  1351. }
  1352. }
  1353. @media (max-width: 480px) {
  1354. .task-item {
  1355. flex-direction: column;
  1356. align-items: flex-start;
  1357. .task-actions {
  1358. margin-top: 12px;
  1359. align-self: flex-end;
  1360. }
  1361. }
  1362. .update-item {
  1363. .update-icon {
  1364. width: 32px;
  1365. height: 32px;
  1366. }
  1367. }
  1368. }
  1369. /* ========== iOS风格新增样式 ========== */
  1370. .ios-page-transition {
  1371. overflow: hidden;
  1372. .stat-card {
  1373. transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  1374. transform: translateY(20px);
  1375. opacity: 0;
  1376. }
  1377. }
  1378. .stat-card {
  1379. &:active {
  1380. transform: scale(0.98);
  1381. transition: transform 0.1s ease;
  1382. }
  1383. perspective: 1000px;
  1384. .stat-content {
  1385. transform-style: preserve-3d;
  1386. transition: transform 0.5s ease;
  1387. &:hover {
  1388. transform: translateZ(10px);
  1389. }
  1390. }
  1391. }
  1392. .stat-icon {
  1393. position: relative;
  1394. overflow: hidden;
  1395. &::after {
  1396. content: '';
  1397. position: absolute;
  1398. top: -50%;
  1399. left: -50%;
  1400. width: 200%;
  1401. }
  1402. }
  1403. /* 莫兰迪色系变量 */
  1404. $morandi-cream: #f5f1eb;
  1405. $morandi-sage: #a8b5a0;
  1406. $morandi-blush: #e8d5d2;
  1407. $morandi-stone: #d4c5b9;
  1408. $morandi-mist: #c7d3d9;
  1409. $morandi-dust: #b8a99a;
  1410. /* iOS风格卡片 - 莫兰迪色系 */
  1411. .ios-card {
  1412. background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.9));
  1413. backdrop-filter: blur(10px);
  1414. border: 1px solid rgba(255, 255, 255, 0.2);
  1415. border-radius: 20px;
  1416. box-shadow:
  1417. 0 8px 32px rgba(0, 0, 0, 0.1),
  1418. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1419. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  1420. overflow: hidden;
  1421. &:hover {
  1422. transform: translateY(-4px);
  1423. box-shadow:
  1424. 0 12px 40px rgba(0, 0, 0, 0.15),
  1425. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1426. }
  1427. &:active {
  1428. transform: translateY(-1px);
  1429. box-shadow:
  1430. 0 4px 20px rgba(0, 0, 0, 0.1),
  1431. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1432. }
  1433. }
  1434. /* iOS风格按钮 */
  1435. .ios-btn {
  1436. background: linear-gradient(135deg, $primary-color, $primary-dark);
  1437. border: none;
  1438. border-radius: 16px;
  1439. color: white;
  1440. font-weight: 600;
  1441. font-size: 16px;
  1442. padding: 12px 24px;
  1443. cursor: pointer;
  1444. transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  1445. box-shadow:
  1446. 0 4px 12px rgba($primary-color, 0.3),
  1447. inset 0 1px 0 rgba(255, 255, 255, 0.2);
  1448. position: relative;
  1449. overflow: hidden;
  1450. &:hover {
  1451. transform: translateY(-2px);
  1452. box-shadow:
  1453. 0 6px 20px rgba($primary-color, 0.4),
  1454. inset 0 1px 0 rgba(255, 255, 255, 0.2);
  1455. }
  1456. &:active {
  1457. transform: translateY(0);
  1458. box-shadow:
  1459. 0 2px 8px rgba($primary-color, 0.3),
  1460. inset 0 1px 0 rgba(255, 255, 255, 0.2);
  1461. }
  1462. &.mini {
  1463. padding: 8px 16px;
  1464. font-size: 14px;
  1465. border-radius: 12px;
  1466. }
  1467. &.outline {
  1468. background: transparent;
  1469. border: 2px solid $primary-color;
  1470. color: $primary-color;
  1471. box-shadow: none;
  1472. &:hover {
  1473. background: $primary-color;
  1474. color: white;
  1475. box-shadow: 0 4px 12px rgba($primary-color, 0.3);
  1476. }
  1477. }
  1478. &.secondary {
  1479. background: linear-gradient(135deg, $morandi-sage, $morandi-dust);
  1480. box-shadow:
  1481. 0 4px 12px rgba($morandi-sage, 0.3),
  1482. inset 0 1px 0 rgba(255, 255, 255, 0.2);
  1483. &:hover {
  1484. box-shadow:
  1485. 0 6px 20px rgba($morandi-sage, 0.4),
  1486. inset 0 1px 0 rgba(255, 255, 255, 0.2);
  1487. }
  1488. }
  1489. }
  1490. /* iOS风格面板 - 紧急事项添加 */
  1491. .ios-modal-overlay {
  1492. position: fixed;
  1493. top: 0;
  1494. left: 0;
  1495. right: 0;
  1496. bottom: 0;
  1497. background-color: rgba(0, 0, 0, 0.5);
  1498. display: flex;
  1499. align-items: center;
  1500. justify-content: center;
  1501. z-index: 1000;
  1502. animation: iosFadeIn 0.3s ease;
  1503. }
  1504. @keyframes iosFadeIn {
  1505. from {
  1506. opacity: 0;
  1507. }
  1508. to {
  1509. opacity: 1;
  1510. }
  1511. }
  1512. .ios-panel {
  1513. width: 90%;
  1514. max-width: 500px;
  1515. background-color: white;
  1516. border-radius: 16px;
  1517. padding: 28px;
  1518. transform: scale(0.95);
  1519. opacity: 0;
  1520. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  1521. box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  1522. margin: 0 auto;
  1523. max-height: 80vh;
  1524. overflow-y: auto;
  1525. }
  1526. .ios-panel.ios-panel-visible {
  1527. transform: scale(1);
  1528. opacity: 1;
  1529. }
  1530. .ios-panel-header {
  1531. display: flex;
  1532. justify-content: space-between;
  1533. align-items: center;
  1534. margin-bottom: 24px;
  1535. padding-bottom: 16px;
  1536. border-bottom: 1px solid #f0f0f0;
  1537. }
  1538. .ios-panel-header h3 {
  1539. font-size: 18px;
  1540. font-weight: 600;
  1541. color: $text-primary-dark;
  1542. margin: 0;
  1543. }
  1544. .ios-close-button {
  1545. background: none;
  1546. border: none;
  1547. padding: 8px;
  1548. cursor: pointer;
  1549. color: $text-secondary-dark;
  1550. display: flex;
  1551. align-items: center;
  1552. justify-content: center;
  1553. border-radius: 8px;
  1554. transition: background-color 0.2s ease;
  1555. }
  1556. .ios-close-button:hover {
  1557. background-color: #f5f5f5;
  1558. }
  1559. .ios-panel-content {
  1560. max-height: 70vh;
  1561. overflow-y: auto;
  1562. }
  1563. .ios-input, .ios-select {
  1564. width: 100%;
  1565. padding: 12px 16px;
  1566. border: 1px solid #e0e0e0;
  1567. border-radius: 12px;
  1568. font-size: 16px;
  1569. transition: border-color 0.2s ease, box-shadow 0.2s ease;
  1570. background-color: white;
  1571. box-sizing: border-box;
  1572. }
  1573. .ios-input:focus, .ios-select:focus {
  1574. outline: none;
  1575. border-color: $primary-color;
  1576. box-shadow: 0 0 0 3px rgba(99, 172, 255, 0.1);
  1577. }
  1578. .ios-input:disabled, .ios-select:disabled {
  1579. background-color: #f9f9f9;
  1580. color: $text-tertiary-dark;
  1581. border-color: #e0e0e0;
  1582. cursor: not-allowed;
  1583. }
  1584. .form-group {
  1585. margin-bottom: 20px;
  1586. }
  1587. .form-group label {
  1588. display: block;
  1589. margin-bottom: 8px;
  1590. font-size: 14px;
  1591. font-weight: 600;
  1592. color: $text-secondary-dark;
  1593. }
  1594. /* 增强版日期时间选择器 */
  1595. .datetime-picker-container {
  1596. display: flex;
  1597. gap: 12px;
  1598. margin-bottom: 20px;
  1599. .date-picker, .time-picker {
  1600. flex: 1;
  1601. position: relative;
  1602. label {
  1603. display: block;
  1604. margin-bottom: 8px;
  1605. font-size: 14px;
  1606. font-weight: 500;
  1607. color: $text-secondary-dark;
  1608. }
  1609. input {
  1610. width: 100%;
  1611. padding: 12px 16px;
  1612. border: 1px solid $border-color;
  1613. border-radius: 10px;
  1614. font-size: 16px;
  1615. background-color: white;
  1616. transition: all 0.2s ease;
  1617. -webkit-appearance: none;
  1618. -moz-appearance: none;
  1619. appearance: none;
  1620. &:focus {
  1621. border-color: $primary-color;
  1622. box-shadow: 0 0 0 3px rgba($primary-color, 0.1);
  1623. outline: none;
  1624. }
  1625. &::-webkit-calendar-picker-indicator {
  1626. background: transparent;
  1627. bottom: 0;
  1628. color: transparent;
  1629. cursor: pointer;
  1630. height: auto;
  1631. left: 0;
  1632. position: absolute;
  1633. right: 0;
  1634. top: 0;
  1635. width: auto;
  1636. }
  1637. }
  1638. &::after {
  1639. content: "";
  1640. position: absolute;
  1641. right: 16px;
  1642. top: 38px;
  1643. width: 20px;
  1644. height: 20px;
  1645. 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");
  1646. background-repeat: no-repeat;
  1647. background-position: center;
  1648. pointer-events: none;
  1649. }
  1650. }
  1651. .time-picker {
  1652. input {
  1653. &::-webkit-calendar-picker-indicator {
  1654. background: transparent;
  1655. bottom: 0;
  1656. color: transparent;
  1657. cursor: pointer;
  1658. height: auto;
  1659. left: 0;
  1660. position: absolute;
  1661. right: 0;
  1662. top: 0;
  1663. width: auto;
  1664. }
  1665. }
  1666. &::after {
  1667. 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");
  1668. }
  1669. }
  1670. }
  1671. input[type="datetime-local"]:focus {
  1672. outline: none;
  1673. border-color: $primary-color;
  1674. box-shadow: 0 0 0 3px rgba(99, 172, 255, 0.1);
  1675. }
  1676. input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  1677. 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;
  1678. width: 24px;
  1679. height: 24px;
  1680. cursor: pointer;
  1681. opacity: 0.7;
  1682. }
  1683. /* iOS风格文本域 */
  1684. .ios-textarea {
  1685. width: 100%;
  1686. padding: 12px 16px;
  1687. border: 1px solid #e0e0e0;
  1688. border-radius: 12px;
  1689. font-size: 16px;
  1690. font-family: inherit;
  1691. resize: vertical;
  1692. min-height: 80px;
  1693. transition: border-color 0.2s ease, box-shadow 0.2s ease;
  1694. background-color: white;
  1695. box-sizing: border-box;
  1696. }
  1697. .ios-textarea:focus {
  1698. outline: none;
  1699. border-color: $primary-color;
  1700. box-shadow: 0 0 0 3px rgba(99, 172, 255, 0.1);
  1701. }
  1702. /* iOS风格面板底部按钮 */
  1703. .ios-panel-footer {
  1704. display: flex;
  1705. justify-content: flex-end;
  1706. gap: 12px;
  1707. margin-top: 24px;
  1708. padding-top: 16px;
  1709. border-top: 1px solid #f0f0f0;
  1710. }
  1711. .ios-cancel-button, .ios-submit-button {
  1712. padding: 10px 20px;
  1713. border-radius: 12px;
  1714. font-size: 16px;
  1715. font-weight: 500;
  1716. cursor: pointer;
  1717. transition: all 0.2s ease;
  1718. border: none;
  1719. box-sizing: border-box;
  1720. min-width: 80px;
  1721. }
  1722. .ios-cancel-button {
  1723. background-color: #f5f5f5;
  1724. color: $text-secondary-dark;
  1725. }
  1726. .ios-cancel-button:hover {
  1727. background-color: #eeeeee;
  1728. }
  1729. .ios-cancel-button:active {
  1730. background-color: #e0e0e0;
  1731. transform: scale(0.98);
  1732. }
  1733. .ios-submit-button {
  1734. background-color: $primary-color;
  1735. color: white;
  1736. }
  1737. .ios-submit-button:hover {
  1738. background-color: $primary-dark;
  1739. }
  1740. .ios-submit-button:active {
  1741. background-color: #4a89dc;
  1742. transform: scale(0.98);
  1743. }
  1744. .ios-submit-button:disabled {
  1745. background-color: #e0e0e0;
  1746. color: $text-tertiary-dark;
  1747. cursor: not-allowed;
  1748. transform: none;
  1749. }
  1750. /* 核心指标渐变卡片 */
  1751. .core-metrics-grid {
  1752. display: grid;
  1753. grid-template-columns: repeat(3, 1fr);
  1754. gap: 16px;
  1755. margin-top: 16px;
  1756. }
  1757. .core-metric-card {
  1758. display: flex;
  1759. align-items: center;
  1760. gap: 12px;
  1761. padding: 16px;
  1762. border-radius: 14px;
  1763. color: #fff;
  1764. box-shadow: $shadow-md;
  1765. .metric-icon {
  1766. width: 40px;
  1767. height: 40px;
  1768. border-radius: 12px;
  1769. background: rgba(255,255,255,0.2);
  1770. display: flex;
  1771. align-items: center;
  1772. justify-content: center;
  1773. }
  1774. .metric-content {
  1775. .metric-value { font-size: 22px; font-weight: 700; }
  1776. .metric-label { font-size: 13px; opacity: 0.9; }
  1777. }
  1778. &.gradient-green {
  1779. background: linear-gradient(135deg, #34d399, #10b981);
  1780. }
  1781. &.gradient-orange {
  1782. background: linear-gradient(135deg, #f59e0b, #f97316);
  1783. }
  1784. &.gradient-blue {
  1785. background: linear-gradient(135deg, #60a5fa, #3b82f6);
  1786. }
  1787. }
  1788. /* CRM队列 - iOS风格 */
  1789. .crm-queues {
  1790. margin-bottom: 24px;
  1791. }
  1792. .crm-grid {
  1793. display: grid;
  1794. grid-template-columns: 1fr 1fr;
  1795. gap: 20px;
  1796. }
  1797. .crm-card {
  1798. @extend .ios-card;
  1799. padding: 20px;
  1800. background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.95));
  1801. }
  1802. .crm-header {
  1803. display: flex;
  1804. align-items: flex-start;
  1805. justify-content: space-between;
  1806. margin-bottom: 16px;
  1807. gap: 16px;
  1808. .crm-title-section {
  1809. flex: 1;
  1810. h3 {
  1811. margin: 0 0 8px 0;
  1812. font-size: 16px;
  1813. font-weight: 600;
  1814. color: $ios-text;
  1815. }
  1816. }
  1817. .crm-stats {
  1818. display: flex;
  1819. gap: 16px;
  1820. margin-top: 4px;
  1821. .stat-item {
  1822. display: flex;
  1823. flex-direction: column;
  1824. align-items: center;
  1825. gap: 2px;
  1826. .stat-number {
  1827. font-size: 18px;
  1828. font-weight: 700;
  1829. color: $ios-text;
  1830. &.success {
  1831. color: $ios-success;
  1832. }
  1833. &.warning {
  1834. color: $ios-warning;
  1835. }
  1836. &.danger {
  1837. color: $ios-danger;
  1838. }
  1839. }
  1840. .stat-label {
  1841. font-size: 11px;
  1842. color: $ios-text-secondary;
  1843. font-weight: 500;
  1844. text-transform: uppercase;
  1845. letter-spacing: 0.5px;
  1846. }
  1847. }
  1848. }
  1849. .view-all-link {
  1850. color: $primary-color;
  1851. font-size: 13px;
  1852. cursor: pointer;
  1853. white-space: nowrap;
  1854. margin-top: 4px;
  1855. &:hover {
  1856. color: $ios-primary-dark;
  1857. }
  1858. }
  1859. }
  1860. .crm-list {
  1861. display: flex;
  1862. flex-direction: column;
  1863. gap: 10px;
  1864. }
  1865. /* CRM项目 - iOS风格卡片 */
  1866. .crm-item {
  1867. display: flex;
  1868. align-items: flex-start;
  1869. justify-content: space-between;
  1870. gap: 12px;
  1871. padding: 12px 16px;
  1872. border-radius: 12px;
  1873. border: 1px solid rgba(0, 0, 0, 0.05);
  1874. background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.9));
  1875. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  1876. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  1877. margin-bottom: 8px;
  1878. &:hover {
  1879. background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(252, 252, 252, 0.95));
  1880. box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  1881. transform: translateY(-2px);
  1882. border-color: rgba(0, 0, 0, 0.1);
  1883. }
  1884. .crm-item-main { display: flex; align-items: flex-start; gap: 12px; }
  1885. .avatar.small {
  1886. width: 32px; height: 32px; border-radius: 50%;
  1887. background: linear-gradient(135deg, $primary-color, $primary-dark);
  1888. color: #fff;
  1889. display: flex;
  1890. align-items: center;
  1891. justify-content: center;
  1892. font-weight: 600;
  1893. flex-shrink: 0;
  1894. box-shadow: 0 2px 8px rgba($primary-color, 0.3);
  1895. transition: all 0.2s ease;
  1896. &.alt {
  1897. background: linear-gradient(135deg, $morandi-sage, $morandi-dust);
  1898. box-shadow: 0 2px 8px rgba($morandi-sage, 0.3);
  1899. }
  1900. &:hover {
  1901. transform: scale(1.05);
  1902. box-shadow: 0 4px 12px rgba($primary-color, 0.4);
  1903. &.alt {
  1904. box-shadow: 0 4px 12px rgba($morandi-sage, 0.4);
  1905. }
  1906. }
  1907. }
  1908. .info {
  1909. .name {
  1910. font-weight: 600;
  1911. color: $text-primary-dark;
  1912. font-size: 15px;
  1913. letter-spacing: -0.2px;
  1914. }
  1915. .meta {
  1916. color: $text-tertiary-dark;
  1917. font-size: 12px;
  1918. display: flex;
  1919. gap: 8px;
  1920. margin-bottom: 8px;
  1921. font-weight: 500;
  1922. }
  1923. .tag {
  1924. background: linear-gradient(135deg, rgba(0,0,0,0.03), rgba(0,0,0,0.06));
  1925. padding: 3px 8px;
  1926. border-radius: 8px;
  1927. font-size: 11px;
  1928. font-weight: 600;
  1929. backdrop-filter: blur(4px);
  1930. &.value-tag {
  1931. background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  1932. color: #166534;
  1933. border: 1px solid rgba(22, 101, 52, 0.1);
  1934. }
  1935. &.price-tag {
  1936. background: linear-gradient(135deg, #fffbeb, #fef3c7);
  1937. color: #d97706;
  1938. border: 1px solid rgba(217, 119, 6, 0.1);
  1939. }
  1940. }
  1941. .strategy-info {
  1942. font-size: 12px;
  1943. line-height: 1.5;
  1944. margin-top: 6px;
  1945. .recommended-phrase {
  1946. color: $morandi-dust;
  1947. margin-bottom: 4px;
  1948. font-style: italic;
  1949. font-weight: 500;
  1950. letter-spacing: -0.1px;
  1951. }
  1952. .case-strategy {
  1953. color: $morandi-sage;
  1954. font-size: 11px;
  1955. font-weight: 500;
  1956. background: rgba($morandi-sage, 0.1);
  1957. padding: 2px 6px;
  1958. border-radius: 4px;
  1959. display: inline-block;
  1960. }
  1961. }
  1962. }
  1963. .ios-btn.mini {
  1964. padding: 8px 14px;
  1965. font-size: 13px;
  1966. border-radius: 10px;
  1967. font-weight: 600;
  1968. letter-spacing: -0.2px;
  1969. background: linear-gradient(135deg, $primary-color, $primary-dark);
  1970. box-shadow: 0 2px 8px rgba($primary-color, 0.3);
  1971. &:hover {
  1972. transform: translateY(-1px);
  1973. box-shadow: 0 4px 12px rgba($primary-color, 0.4);
  1974. }
  1975. &:active {
  1976. transform: translateY(0);
  1977. box-shadow: 0 1px 4px rgba($primary-color, 0.3);
  1978. }
  1979. }
  1980. .ios-btn.outline.mini {
  1981. background: transparent;
  1982. border: 2px solid $primary-color;
  1983. color: $primary-color;
  1984. box-shadow: none;
  1985. &:hover {
  1986. background: $primary-color;
  1987. color: white;
  1988. box-shadow: 0 2px 8px rgba($primary-color, 0.3);
  1989. }
  1990. }
  1991. }
  1992. .empty-state.small { color: $text-tertiary-dark; font-size: 13px; text-align: center; padding: 8px 0; }
  1993. @media (max-width: 900px) {
  1994. .core-metrics-grid { grid-template-columns: 1fr; }
  1995. .crm-grid { grid-template-columns: 1fr; }
  1996. }
  1997. .core-metric-card:hover {
  1998. border-color: $primary-color;
  1999. box-shadow: 0 4px 12px color-mix(in srgb, $primary-color 10%, transparent);
  2000. transform: translateY(-2px);
  2001. }
  2002. .core-icon {
  2003. width: 48px;
  2004. height: 48px;
  2005. background-color: color-mix(in srgb, $primary-color 15%, transparent);
  2006. border-radius: 12px;
  2007. display: flex;
  2008. align-items: center;
  2009. justify-content: center;
  2010. margin: 0 auto 12px;
  2011. color: $primary-color;
  2012. transition: $transition;
  2013. }
  2014. .core-card:nth-child(2) .core-icon {
  2015. background-color: color-mix(in srgb, $success-color 15%, transparent);
  2016. color: $success-color;
  2017. }
  2018. .core-card:nth-child(3) .core-icon {
  2019. background-color: color-mix(in srgb, $warning-color 15%, transparent);
  2020. color: $warning-color;
  2021. }
  2022. .core-card:nth-child(4) .core-icon {
  2023. background-color: color-mix(in srgb, $danger-color 15%, transparent);
  2024. color: $danger-color;
  2025. }
  2026. .core-number {
  2027. font-size: 24px;
  2028. font-weight: 700;
  2029. color: $text-primary-dark;
  2030. margin-bottom: 6px;
  2031. line-height: 1.2;
  2032. }
  2033. .core-label {
  2034. font-size: 14px;
  2035. color: $text-secondary-dark;
  2036. margin: 0;
  2037. }
  2038. /* 内容网格 */
  2039. .content-grid {
  2040. display: grid;
  2041. grid-template-columns: 1fr 1fr;
  2042. gap: 24px;
  2043. }
  2044. /* 任务列表区块 */
  2045. .tasks-section {
  2046. background-color: $card-background;
  2047. border-radius: $border-radius;
  2048. padding: 24px;
  2049. box-shadow: $shadow-md;
  2050. transition: $transition;
  2051. }
  2052. .tasks-section:hover {
  2053. box-shadow: $shadow-lg;
  2054. }
  2055. /* 通用区块头部 */
  2056. .section-header {
  2057. display: flex;
  2058. align-items: center;
  2059. justify-content: space-between;
  2060. margin-bottom: 20px;
  2061. }
  2062. .section-header h3 {
  2063. font-size: 20px;
  2064. font-weight: 600;
  2065. color: $text-primary-dark;
  2066. margin: 0;
  2067. }
  2068. .section-header .view-all {
  2069. display: flex;
  2070. align-items: center;
  2071. gap: 4px;
  2072. font-size: 14px;
  2073. color: $primary-color;
  2074. text-decoration: none;
  2075. transition: $transition;
  2076. }
  2077. .section-header .view-all:hover {
  2078. color: $primary-dark;
  2079. }
  2080. /* 搜索框样式 */
  2081. .search-box {
  2082. position: relative;
  2083. }
  2084. .search-input {
  2085. padding: 8px 16px;
  2086. border: 1px solid $border-color;
  2087. border-radius: $border-radius;
  2088. font-size: 14px;
  2089. color: $text-primary-dark;
  2090. background-color: $card-background;
  2091. transition: $transition;
  2092. outline: none;
  2093. min-width: 200px;
  2094. }
  2095. .search-input:focus {
  2096. border-color: $primary-color;
  2097. box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
  2098. }
  2099. /* 紧急待办列表 */
  2100. .tasks-list {
  2101. display: flex;
  2102. flex-direction: column;
  2103. gap: 12px;
  2104. }
  2105. .tasks-list.empty {
  2106. text-align: center;
  2107. padding: 40px 20px;
  2108. color: $text-tertiary-dark;
  2109. }
  2110. .tasks-list.empty p {
  2111. font-size: 16px;
  2112. margin: 0;
  2113. }
  2114. /* 任务项目样式 */
  2115. .task-item {
  2116. display: flex;
  2117. align-items: center;
  2118. justify-content: space-between;
  2119. padding: 16px 20px;
  2120. border-radius: $border-radius;
  2121. transition: $transition;
  2122. margin-bottom: 12px;
  2123. position: relative;
  2124. }
  2125. .task-item.completed {
  2126. background-color: #e8f5e9;
  2127. border: 1px solid #c8e6c9;
  2128. }
  2129. .task-item.overdue {
  2130. background-color: #ffebee;
  2131. border: 1px solid #ffcdd2;
  2132. }
  2133. .task-item:hover {
  2134. transform: translateY(-1px);
  2135. }
  2136. /* 任务复选框样式 */
  2137. .task-checkbox {
  2138. margin-right: 16px;
  2139. }
  2140. .task-checkbox input[type="checkbox"] {
  2141. width: 20px;
  2142. height: 20px;
  2143. accent-color: $primary-color;
  2144. border-radius: 4px;
  2145. cursor: pointer;
  2146. }
  2147. /* 任务状态标记 */
  2148. .task-status {
  2149. position: absolute;
  2150. top: 12px;
  2151. right: 12px;
  2152. padding: 4px 12px;
  2153. border-radius: 16px;
  2154. font-size: 12px;
  2155. font-weight: 600;
  2156. text-transform: uppercase;
  2157. letter-spacing: 0.5px;
  2158. }
  2159. .task-status.completed {
  2160. background-color: color-mix(in srgb, $success-color 15%, transparent);
  2161. color: $success-color;
  2162. }
  2163. .task-status.pending {
  2164. background-color: color-mix(in srgb, $warning-color 15%, transparent);
  2165. color: $warning-color;
  2166. }
  2167. .task-status.overdue {
  2168. background-color: color-mix(in srgb, $danger-color 15%, transparent);
  2169. color: $danger-color;
  2170. }
  2171. /* 任务内容 */
  2172. .task-content {
  2173. flex: 1;
  2174. }
  2175. .task-title {
  2176. font-size: 18px;
  2177. font-weight: 600;
  2178. color: $text-primary-dark;
  2179. margin-bottom: 4px;
  2180. line-height: 1.3;
  2181. }
  2182. .task-project {
  2183. font-size: 14px;
  2184. color: $text-secondary-dark;
  2185. margin-bottom: 8px;
  2186. }
  2187. .task-meta {
  2188. font-size: 14px;
  2189. color: $text-tertiary-dark;
  2190. }
  2191. /* 任务进度 */
  2192. .task-progress {
  2193. width: 100%;
  2194. height: 8px;
  2195. background-color: $background-color;
  2196. border-radius: 4px;
  2197. overflow: hidden;
  2198. margin-top: 12px;
  2199. box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  2200. }
  2201. .progress-bar {
  2202. height: 100%;
  2203. background: linear-gradient(90deg, $primary-color, #5e9eff);
  2204. transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  2205. position: relative;
  2206. overflow: hidden;
  2207. border-radius: 4px;
  2208. }
  2209. .progress-bar::after {
  2210. content: '';
  2211. position: absolute;
  2212. top: 0;
  2213. left: 0;
  2214. right: 0;
  2215. bottom: 0;
  2216. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  2217. animation: shimmer 2s infinite;
  2218. }
  2219. @keyframes shimmer {
  2220. 0% {
  2221. transform: translateX(-100%);
  2222. }
  2223. 100% {
  2224. transform: translateX(100%);
  2225. }
  2226. }
  2227. .progress-text {
  2228. font-size: 12px;
  2229. color: $text-tertiary-dark;
  2230. text-align: right;
  2231. margin-top: 4px;
  2232. font-weight: 500;
  2233. }
  2234. /* 任务处理进度条容器 */
  2235. .task-progress-container {
  2236. width: 100%;
  2237. height: 12px;
  2238. background-color: #f5f5f5;
  2239. border-radius: 6px;
  2240. overflow: hidden;
  2241. margin-top: 12px;
  2242. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  2243. }
  2244. .task-progress-bar {
  2245. height: 100%;
  2246. background: linear-gradient(90deg, $primary-color 0%, #5e9eff 100%);
  2247. transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  2248. position: relative;
  2249. overflow: hidden;
  2250. display: flex;
  2251. align-items: center;
  2252. justify-content: flex-end;
  2253. padding-right: 8px;
  2254. border-radius: 6px;
  2255. }
  2256. .task-progress-bar::after {
  2257. content: '';
  2258. position: absolute;
  2259. top: 0;
  2260. left: 0;
  2261. right: 0;
  2262. bottom: 0;
  2263. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  2264. animation: shimmer 1.5s infinite;
  2265. }
  2266. .task-progress-text {
  2267. font-size: 10px;
  2268. color: white;
  2269. font-weight: 600;
  2270. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  2271. z-index: 1;
  2272. }
  2273. /* 任务操作按钮 */
  2274. .task-actions {
  2275. display: flex;
  2276. align-items: center;
  2277. }
  2278. .task-button {
  2279. padding: 6px 12px;
  2280. border: 1px solid $border-color;
  2281. border-radius: $border-radius;
  2282. font-size: 14px;
  2283. font-weight: 500;
  2284. cursor: pointer;
  2285. transition: $transition;
  2286. background-color: $card-background;
  2287. color: $text-secondary-dark;
  2288. min-width: 60px;
  2289. text-align: center;
  2290. }
  2291. .task-button:hover {
  2292. border-color: $primary-color;
  2293. color: $primary-color;
  2294. }
  2295. .task-button.primary {
  2296. background-color: $primary-color;
  2297. color: white;
  2298. border-color: $primary-color;
  2299. }
  2300. .task-button.primary:hover {
  2301. background-color: $primary-dark;
  2302. border-color: $primary-dark;
  2303. color: white;
  2304. }
  2305. .task-button:disabled {
  2306. opacity: 0.6;
  2307. cursor: not-allowed;
  2308. transform: none;
  2309. }
  2310. /* 搜索框样式 */
  2311. .search-box {
  2312. position: relative;
  2313. }
  2314. .search-input {
  2315. padding: 8px 16px;
  2316. border: 1px solid $border-color;
  2317. border-radius: $border-radius;
  2318. font-size: 14px;
  2319. color: $text-primary-dark;
  2320. background-color: $card-background;
  2321. transition: $transition;
  2322. outline: none;
  2323. min-width: 200px;
  2324. }
  2325. .search-input:focus {
  2326. border-color: $primary-color;
  2327. box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
  2328. }
  2329. /* 项目动态流 */
  2330. .project-updates-section {
  2331. background-color: $card-background;
  2332. border-radius: $border-radius;
  2333. padding: 24px;
  2334. box-shadow: $shadow-md;
  2335. transition: $transition;
  2336. }
  2337. .project-updates-section:hover {
  2338. box-shadow: $shadow-lg;
  2339. }
  2340. .project-updates-section.empty {
  2341. text-align: center;
  2342. padding: 60px 20px;
  2343. color: $text-tertiary-dark;
  2344. }
  2345. .project-updates-section.empty p {
  2346. font-size: 16px;
  2347. margin: 0;
  2348. }
  2349. .project-updates-list {
  2350. display: flex;
  2351. flex-direction: column;
  2352. gap: 16px;
  2353. }
  2354. .update-item {
  2355. display: flex;
  2356. gap: 16px;
  2357. padding: 20px;
  2358. border: 1px solid $border-color;
  2359. border-radius: $border-radius;
  2360. transition: $transition;
  2361. &:hover {
  2362. border-color: $primary-color;
  2363. box-shadow: 0 4px 12px color-mix(in srgb, $primary-color 10%, transparent);
  2364. transform: translateY(-2px);
  2365. }
  2366. .update-icon {
  2367. width: 44px;
  2368. height: 44px;
  2369. background-color: $primary-color;
  2370. border-radius: 12px;
  2371. display: flex;
  2372. align-items: center;
  2373. justify-content: center;
  2374. color: white;
  2375. flex-shrink: 0;
  2376. transition: $transition;
  2377. }
  2378. .update-content {
  2379. flex: 1;
  2380. .update-title {
  2381. font-size: 18px;
  2382. font-weight: 600;
  2383. color: $text-primary-dark;
  2384. margin-bottom: 6px;
  2385. line-height: 1.3;
  2386. }
  2387. .update-text {
  2388. font-size: 16px;
  2389. color: $text-secondary-dark;
  2390. margin-bottom: 12px;
  2391. line-height: 1.4;
  2392. }
  2393. .update-meta {
  2394. display: flex;
  2395. align-items: center;
  2396. gap: 20px;
  2397. .update-time {
  2398. font-size: 14px;
  2399. color: $text-tertiary-dark;
  2400. }
  2401. .update-status {
  2402. padding: 4px 12px;
  2403. border-radius: 16px;
  2404. font-size: 14px;
  2405. font-weight: 600;
  2406. transition: $transition;
  2407. &.status-active,
  2408. &.status-info {
  2409. background-color: #e3f2fd;
  2410. color: $primary-color;
  2411. border: 1px solid #bbdefb;
  2412. }
  2413. &.status-completed,
  2414. &.status-success {
  2415. background-color: #e8f5e9;
  2416. color: $success-color;
  2417. border: 1px solid #c8e6c9;
  2418. }
  2419. &.status-warning {
  2420. background-color: #fff3e0;
  2421. color: $warning-color;
  2422. border: 1px solid #ffe0b2;
  2423. }
  2424. &.status-danger {
  2425. background-color: #ffebee;
  2426. color: $danger-color;
  2427. border: 1px solid #ffcdd2;
  2428. }
  2429. }
  2430. }
  2431. }
  2432. }
  2433. /* 回到顶部按钮 */
  2434. .back-to-top {
  2435. position: fixed;
  2436. bottom: 24px;
  2437. right: 24px;
  2438. width: 48px;
  2439. height: 48px;
  2440. border-radius: 50%;
  2441. background-color: $primary-color;
  2442. color: white;
  2443. border: none;
  2444. display: flex;
  2445. align-items: center;
  2446. justify-content: center;
  2447. cursor: pointer;
  2448. box-shadow: $shadow-md;
  2449. transition: $transition;
  2450. opacity: 0;
  2451. visibility: hidden;
  2452. z-index: 1000;
  2453. &.visible {
  2454. opacity: 1;
  2455. visibility: visible;
  2456. }
  2457. &:hover {
  2458. background-color: $primary-dark;
  2459. transform: translateY(-2px);
  2460. box-shadow: $shadow-lg;
  2461. }
  2462. &:active {
  2463. transform: translateY(0);
  2464. }
  2465. }
  2466. /* 响应式设计 */
  2467. @media (max-width: 1024px) {
  2468. .stats-grid {
  2469. grid-template-columns: repeat(2, 1fr);
  2470. }
  2471. .core-metrics-grid {
  2472. grid-template-columns: repeat(2, 1fr);
  2473. }
  2474. }
  2475. @media (max-width: 768px) {
  2476. .welcome-section {
  2477. padding: 16px 20px;
  2478. margin-bottom: 16px;
  2479. }
  2480. .welcome-section h2 {
  2481. font-size: 20px;
  2482. }
  2483. .welcome-section p {
  2484. font-size: 13px;
  2485. }
  2486. .stats-grid {
  2487. grid-template-columns: 1fr;
  2488. gap: 12px;
  2489. }
  2490. .content-grid {
  2491. grid-template-columns: 1fr;
  2492. gap: 16px;
  2493. margin-top: 12px;
  2494. }
  2495. .crm-grid {
  2496. grid-template-columns: 1fr;
  2497. gap: 12px;
  2498. }
  2499. .core-metrics-grid {
  2500. grid-template-columns: 1fr;
  2501. gap: 10px;
  2502. }
  2503. .crm-item {
  2504. padding: 10px 0;
  2505. .strategy-info {
  2506. .recommended-phrase {
  2507. font-size: 11px;
  2508. }
  2509. .case-strategy {
  2510. font-size: 10px;
  2511. }
  2512. }
  2513. }
  2514. .section-header {
  2515. flex-direction: column;
  2516. align-items: flex-start;
  2517. gap: 12px;
  2518. h3 {
  2519. font-size: 18px;
  2520. }
  2521. }
  2522. .task-title,
  2523. .update-title {
  2524. font-size: 16px !important;
  2525. }
  2526. .task-project,
  2527. .update-text {
  2528. font-size: 14px !important;
  2529. }
  2530. }
  2531. @media (max-width: 480px) {
  2532. .welcome-section {
  2533. padding: 12px 16px;
  2534. }
  2535. .stats-dashboard,
  2536. .crm-queues {
  2537. margin-bottom: 16px;
  2538. }
  2539. .crm-item {
  2540. .avatar.small {
  2541. width: 24px;
  2542. height: 24px;
  2543. font-size: 11px;
  2544. }
  2545. .info .name {
  2546. font-size: 14px;
  2547. }
  2548. .info .meta {
  2549. font-size: 11px;
  2550. gap: 6px;
  2551. }
  2552. }
  2553. }