dashboard.scss 83 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088
  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. flex: 1;
  164. }
  165. .payment-summary {
  166. display: flex;
  167. flex-direction: column;
  168. align-items: flex-end;
  169. gap: 4px;
  170. .payment-amount {
  171. font-size: 22px;
  172. font-weight: 700;
  173. &.remaining {
  174. background: linear-gradient(135deg, $danger-color 0%, darken($danger-color, 10%) 100%);
  175. -webkit-background-clip: text;
  176. -webkit-text-fill-color: transparent;
  177. background-clip: text;
  178. animation: priceGlow 2s ease-in-out infinite;
  179. }
  180. }
  181. .payment-details {
  182. display: flex;
  183. flex-direction: column;
  184. align-items: flex-end;
  185. gap: 2px;
  186. small {
  187. font-size: 11px;
  188. color: $text-tertiary-dark;
  189. font-weight: 500;
  190. }
  191. }
  192. }
  193. }
  194. .customer-info {
  195. .customer-details {
  196. display: flex;
  197. align-items: center;
  198. gap: 12px;
  199. margin-bottom: 10px;
  200. flex-wrap: wrap;
  201. .icon-user, .icon-phone {
  202. opacity: 0.6;
  203. flex-shrink: 0;
  204. }
  205. .customer-name {
  206. font-size: 14px;
  207. font-weight: 500;
  208. color: $text-primary-dark;
  209. display: flex;
  210. align-items: center;
  211. gap: 6px;
  212. }
  213. .customer-phone {
  214. font-size: 14px;
  215. color: $text-secondary-dark;
  216. display: flex;
  217. align-items: center;
  218. gap: 6px;
  219. font-family: 'SF Mono', Monaco, monospace;
  220. }
  221. }
  222. .project-meta {
  223. display: flex;
  224. justify-content: space-between;
  225. align-items: center;
  226. gap: 12px;
  227. .due-date {
  228. font-size: 13px;
  229. color: $text-tertiary-dark;
  230. display: flex;
  231. align-items: center;
  232. gap: 6px;
  233. svg {
  234. opacity: 0.7;
  235. }
  236. }
  237. .status-badge {
  238. padding: 6px 12px;
  239. border-radius: 20px;
  240. font-size: 12px;
  241. font-weight: 600;
  242. display: inline-flex;
  243. align-items: center;
  244. gap: 4px;
  245. transition: all 0.3s ease;
  246. &.pending {
  247. background: linear-gradient(135deg, rgba($warning-color, 0.15) 0%, rgba($warning-color, 0.08) 100%);
  248. color: darken($warning-color, 5%);
  249. border: 1px solid rgba($warning-color, 0.3);
  250. }
  251. &.warning {
  252. background: linear-gradient(135deg, rgba(#ff9500, 0.15) 0%, rgba(#ff9500, 0.08) 100%);
  253. color: darken(#ff9500, 5%);
  254. border: 1px solid rgba(#ff9500, 0.3);
  255. }
  256. &.overdue {
  257. background: linear-gradient(135deg, rgba($danger-color, 0.15) 0%, rgba($danger-color, 0.08) 100%);
  258. color: darken($danger-color, 5%);
  259. border: 1px solid rgba($danger-color, 0.3);
  260. animation: badgePulse 2s ease-in-out infinite;
  261. }
  262. .overdue-days {
  263. font-size: 11px;
  264. opacity: 0.9;
  265. }
  266. }
  267. }
  268. }
  269. // 进度条样式
  270. .payment-progress-bar {
  271. margin-top: 12px;
  272. padding-top: 12px;
  273. border-top: 1px solid rgba($border-color, 0.5);
  274. .progress-info {
  275. display: flex;
  276. justify-content: space-between;
  277. align-items: center;
  278. margin-bottom: 6px;
  279. .progress-label {
  280. font-size: 12px;
  281. color: $text-tertiary-dark;
  282. font-weight: 500;
  283. }
  284. .progress-percent {
  285. font-size: 12px;
  286. font-weight: 600;
  287. color: $primary-color;
  288. }
  289. }
  290. .progress-track {
  291. height: 6px;
  292. background: rgba($border-color, 0.3);
  293. border-radius: 3px;
  294. overflow: hidden;
  295. position: relative;
  296. .progress-fill {
  297. height: 100%;
  298. background: linear-gradient(90deg, $primary-color 0%, lighten($primary-color, 10%) 100%);
  299. border-radius: 3px;
  300. transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  301. position: relative;
  302. &::after {
  303. content: '';
  304. position: absolute;
  305. top: 0;
  306. left: 0;
  307. right: 0;
  308. bottom: 0;
  309. background: linear-gradient(90deg,
  310. transparent 0%,
  311. rgba(255, 255, 255, 0.3) 50%,
  312. transparent 100%);
  313. animation: shimmer 2s infinite;
  314. }
  315. }
  316. }
  317. }
  318. }
  319. // 警告状态样式
  320. &.warning {
  321. border-color: rgba(#ff9500, 0.3);
  322. background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
  323. &::before {
  324. background: linear-gradient(180deg, #ff9500 0%, lighten(#ff9500, 15%) 100%);
  325. }
  326. &:hover {
  327. box-shadow: 0 8px 24px rgba(255, 149, 0, 0.15);
  328. border-color: #ff9500;
  329. }
  330. }
  331. .payment-actions {
  332. display: flex;
  333. flex-direction: column;
  334. gap: 10px;
  335. margin-left: 20px;
  336. button {
  337. &.mini {
  338. padding: 10px 16px;
  339. font-size: 13px;
  340. border-radius: $ios-radius-md;
  341. white-space: nowrap;
  342. font-weight: 500;
  343. display: flex;
  344. align-items: center;
  345. gap: 6px;
  346. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  347. border: none;
  348. cursor: pointer;
  349. letter-spacing: -0.2px;
  350. svg {
  351. width: 16px;
  352. height: 16px;
  353. stroke-width: 2.5;
  354. }
  355. }
  356. }
  357. .btn-primary {
  358. background: linear-gradient(135deg, $primary-color 0%, darken($primary-color, 8%) 100%);
  359. color: white;
  360. box-shadow: 0 2px 8px rgba($primary-color, 0.3);
  361. &:hover:not(:disabled) {
  362. background: linear-gradient(135deg, darken($primary-color, 5%) 0%, darken($primary-color, 13%) 100%);
  363. box-shadow: 0 4px 12px rgba($primary-color, 0.4);
  364. transform: translateY(-1px);
  365. }
  366. &:active:not(:disabled) {
  367. transform: translateY(0);
  368. }
  369. &:disabled {
  370. background: $text-tertiary-dark;
  371. cursor: not-allowed;
  372. opacity: 0.6;
  373. box-shadow: none;
  374. }
  375. }
  376. .btn-secondary {
  377. background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  378. color: $text-primary-dark;
  379. border: 1px solid $border-color;
  380. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  381. &:hover:not(:disabled) {
  382. background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  383. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  384. transform: translateY(-1px);
  385. border-color: darken($border-color, 10%);
  386. }
  387. &:active:not(:disabled) {
  388. transform: translateY(0);
  389. }
  390. }
  391. }
  392. }
  393. }
  394. }
  395. // 进度条动画
  396. @keyframes shimmer {
  397. 0% {
  398. transform: translateX(-100%);
  399. }
  400. 100% {
  401. transform: translateX(100%);
  402. }
  403. }
  404. // ==================== 待办任务样式(复用组长端设计) ====================
  405. .todo-section-customer-service {
  406. background-color: white;
  407. border-radius: 12px;
  408. padding: 24px;
  409. margin-bottom: 24px;
  410. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  411. .section-header {
  412. display: flex;
  413. justify-content: space-between;
  414. align-items: center;
  415. margin-bottom: 20px;
  416. h2 {
  417. font-size: 20px;
  418. font-weight: 600;
  419. color: #111827;
  420. display: flex;
  421. align-items: center;
  422. gap: 8px;
  423. margin: 0;
  424. .task-count {
  425. font-size: 16px;
  426. color: #6b7280;
  427. font-weight: 400;
  428. }
  429. }
  430. .btn-refresh {
  431. display: flex;
  432. align-items: center;
  433. gap: 6px;
  434. padding: 8px 16px;
  435. background: #f3f4f6;
  436. border: 1px solid #e5e7eb;
  437. border-radius: 6px;
  438. font-size: 14px;
  439. color: #374151;
  440. cursor: pointer;
  441. transition: all 0.2s;
  442. &:hover:not(:disabled) {
  443. background: #e5e7eb;
  444. border-color: #d1d5db;
  445. }
  446. &:disabled {
  447. opacity: 0.6;
  448. cursor: not-allowed;
  449. }
  450. svg.rotating {
  451. animation: rotate 1s linear infinite;
  452. }
  453. }
  454. }
  455. // 加载/错误/空状态
  456. .loading-state,
  457. .error-state,
  458. .empty-state {
  459. display: flex;
  460. flex-direction: column;
  461. align-items: center;
  462. justify-content: center;
  463. padding: 48px 24px;
  464. text-align: center;
  465. .spinner {
  466. width: 40px;
  467. height: 40px;
  468. border: 4px solid #f3f4f6;
  469. border-top-color: #667eea;
  470. border-radius: 50%;
  471. animation: rotate 1s linear infinite;
  472. }
  473. p {
  474. margin-top: 16px;
  475. font-size: 14px;
  476. color: #6b7280;
  477. &.hint {
  478. font-size: 13px;
  479. color: #9ca3af;
  480. margin-top: 8px;
  481. }
  482. }
  483. .btn-retry {
  484. margin-top: 16px;
  485. padding: 8px 20px;
  486. background: #667eea;
  487. color: white;
  488. border: none;
  489. border-radius: 6px;
  490. font-size: 14px;
  491. cursor: pointer;
  492. transition: background 0.2s;
  493. &:hover {
  494. background: #5568d3;
  495. }
  496. }
  497. }
  498. // 紧凑列表
  499. .todo-list-compact {
  500. display: flex;
  501. flex-direction: column;
  502. gap: 12px;
  503. .todo-item-compact {
  504. position: relative;
  505. display: flex;
  506. align-items: stretch;
  507. background: #fafafa;
  508. border: 1px solid #e5e7eb;
  509. border-radius: 8px;
  510. overflow: hidden;
  511. transition: all 0.2s;
  512. cursor: pointer;
  513. &:hover {
  514. background: #f9fafb;
  515. border-color: #d1d5db;
  516. box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  517. transform: translateY(-1px);
  518. }
  519. // 优先级指示条
  520. .priority-indicator {
  521. width: 4px;
  522. flex-shrink: 0;
  523. border-radius: 2px 0 0 2px;
  524. &[data-priority="urgent"],
  525. &[data-priority="critical"] {
  526. background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  527. }
  528. &[data-priority="high"] {
  529. background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  530. }
  531. &[data-priority="medium"] {
  532. background: linear-gradient(180deg, #eab308 0%, #ca8a04 100%);
  533. }
  534. &[data-priority="low"] {
  535. background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
  536. }
  537. }
  538. // 主要内容区
  539. .task-content {
  540. flex: 1;
  541. padding: 16px;
  542. min-width: 0;
  543. .task-header {
  544. display: flex;
  545. align-items: center;
  546. justify-content: space-between;
  547. gap: 12px;
  548. margin-bottom: 10px;
  549. .task-title {
  550. font-size: 15px;
  551. font-weight: 500;
  552. color: #111827;
  553. flex: 1;
  554. overflow: hidden;
  555. text-overflow: ellipsis;
  556. white-space: nowrap;
  557. margin: 0;
  558. }
  559. .task-badges {
  560. display: flex;
  561. align-items: center;
  562. gap: 6px;
  563. flex-shrink: 0;
  564. .badge {
  565. padding: 3px 8px;
  566. border-radius: 4px;
  567. font-size: 11px;
  568. font-weight: 600;
  569. white-space: nowrap;
  570. &.badge-priority {
  571. &[data-priority="urgent"],
  572. &[data-priority="critical"] {
  573. background: #fef2f2;
  574. color: #dc2626;
  575. border: 1px solid #fecaca;
  576. }
  577. &[data-priority="high"] {
  578. background: #fff7ed;
  579. color: #ea580c;
  580. border: 1px solid #fed7aa;
  581. }
  582. &[data-priority="medium"] {
  583. background: #fefce8;
  584. color: #ca8a04;
  585. border: 1px solid #fef08a;
  586. }
  587. &[data-priority="low"] {
  588. background: #f9fafb;
  589. color: #6b7280;
  590. border: 1px solid #e5e7eb;
  591. }
  592. }
  593. &.badge-type {
  594. background: #eff6ff;
  595. color: #2563eb;
  596. border: 1px solid #dbeafe;
  597. }
  598. }
  599. }
  600. }
  601. .task-meta {
  602. display: flex;
  603. align-items: center;
  604. gap: 12px;
  605. flex-wrap: wrap;
  606. margin-bottom: 8px;
  607. font-size: 13px;
  608. color: #6b7280;
  609. span {
  610. display: flex;
  611. align-items: center;
  612. gap: 4px;
  613. }
  614. .project-info {
  615. display: flex;
  616. align-items: center;
  617. gap: 4px;
  618. color: #374151;
  619. font-weight: 500;
  620. svg {
  621. flex-shrink: 0;
  622. color: #9ca3af;
  623. }
  624. }
  625. }
  626. .task-footer {
  627. display: flex;
  628. align-items: center;
  629. justify-content: space-between;
  630. gap: 12px;
  631. font-size: 12px;
  632. color: #9ca3af;
  633. span {
  634. display: flex;
  635. align-items: center;
  636. gap: 4px;
  637. svg {
  638. flex-shrink: 0;
  639. }
  640. }
  641. .time-info {
  642. cursor: help;
  643. }
  644. .assignee-info {
  645. color: #6b7280;
  646. }
  647. .due-date {
  648. &.overdue {
  649. color: #dc2626;
  650. font-weight: 500;
  651. }
  652. }
  653. }
  654. }
  655. // 操作按钮区
  656. .task-actions {
  657. display: flex;
  658. flex-direction: column;
  659. gap: 8px;
  660. padding: 16px;
  661. border-left: 1px solid #e5e7eb;
  662. background: white;
  663. .btn-action {
  664. display: flex;
  665. align-items: center;
  666. justify-content: center;
  667. gap: 6px;
  668. padding: 8px 12px;
  669. border: 1px solid #d1d5db;
  670. border-radius: 4px;
  671. font-size: 12px;
  672. cursor: pointer;
  673. transition: all 0.2s;
  674. white-space: nowrap;
  675. background: white;
  676. svg {
  677. flex-shrink: 0;
  678. }
  679. &.btn-view {
  680. background: #667eea;
  681. color: white;
  682. border-color: #667eea;
  683. &:hover {
  684. background: #5568d3;
  685. border-color: #5568d3;
  686. }
  687. }
  688. &.btn-mark-read {
  689. background: white;
  690. color: #6b7280;
  691. &:hover {
  692. background: #f9fafb;
  693. border-color: #9ca3af;
  694. color: #374151;
  695. }
  696. }
  697. }
  698. }
  699. }
  700. }
  701. // 响应式布局
  702. @media (max-width: 768px) {
  703. padding: 16px;
  704. .section-header {
  705. flex-direction: column;
  706. align-items: flex-start;
  707. gap: 12px;
  708. }
  709. .todo-list-compact {
  710. .todo-item-compact {
  711. flex-direction: column;
  712. .task-actions {
  713. flex-direction: row;
  714. border-left: none;
  715. border-top: 1px solid #e5e7eb;
  716. padding: 12px;
  717. .btn-action {
  718. flex: 1;
  719. }
  720. }
  721. }
  722. }
  723. }
  724. }
  725. @keyframes rotate {
  726. from {
  727. transform: rotate(0deg);
  728. }
  729. to {
  730. transform: rotate(360deg);
  731. }
  732. }
  733. @keyframes pulse {
  734. 0% {
  735. transform: scale(1);
  736. }
  737. 50% {
  738. transform: scale(1.05);
  739. }
  740. 100% {
  741. transform: scale(1);
  742. }
  743. }
  744. @keyframes priceGlow {
  745. 0%, 100% {
  746. filter: brightness(1);
  747. text-shadow: 0 0 0 transparent;
  748. }
  749. 50% {
  750. filter: brightness(1.2);
  751. text-shadow: 0 0 8px rgba(255, 59, 48, 0.3);
  752. }
  753. }
  754. @keyframes badgePulse {
  755. 0%, 100% {
  756. transform: scale(1);
  757. box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4);
  758. }
  759. 50% {
  760. transform: scale(1.05);
  761. box-shadow: 0 0 0 4px rgba(255, 59, 48, 0);
  762. }
  763. }
  764. @keyframes slideOutRight {
  765. from {
  766. transform: translateX(0);
  767. opacity: 1;
  768. }
  769. to {
  770. transform: translateX(100%);
  771. opacity: 0;
  772. }
  773. }
  774. /* 企业微信提示样式 */
  775. .wechat-work-tip {
  776. .tip-content {
  777. display: flex;
  778. flex-direction: column;
  779. gap: 8px;
  780. }
  781. .tip-icon {
  782. font-size: 20px;
  783. text-align: center;
  784. }
  785. .tip-text {
  786. font-weight: 600;
  787. line-height: 1.4;
  788. }
  789. .tip-subtext {
  790. font-size: 12px;
  791. opacity: 0.9;
  792. line-height: 1.3;
  793. }
  794. }
  795. /* iOS风格的模态框覆盖层 */
  796. .ios-modal-overlay {
  797. position: fixed;
  798. top: 0;
  799. left: 0;
  800. right: 0;
  801. bottom: 0;
  802. background-color: rgba(0, 0, 0, 0.5);
  803. display: flex;
  804. align-items: center;
  805. justify-content: center;
  806. z-index: 1000;
  807. animation: fadeIn 0.3s ease;
  808. }
  809. /* iOS风格的面板 */
  810. .ios-panel {
  811. background-color: $ios-card-background;
  812. border-radius: $ios-radius-xl;
  813. width: 90%;
  814. max-width: 500px;
  815. max-height: 80vh;
  816. overflow: hidden;
  817. box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  818. transform: scale(0.95);
  819. opacity: 0;
  820. transition: transform 0.3s ease, opacity 0.3s ease;
  821. }
  822. .ios-panel.ios-panel-visible {
  823. transform: scale(1);
  824. opacity: 1;
  825. }
  826. /* iOS面板头部 */
  827. .ios-panel-header {
  828. display: flex;
  829. align-items: center;
  830. justify-content: space-between;
  831. padding: 16px 20px;
  832. border-bottom: 1px solid $ios-border;
  833. }
  834. .ios-panel-header h3 {
  835. font-size: 18px;
  836. font-weight: 600;
  837. color: $ios-text;
  838. margin: 0;
  839. }
  840. .ios-close-button {
  841. background: none;
  842. border: none;
  843. padding: 8px;
  844. cursor: pointer;
  845. color: $ios-text-secondary;
  846. transition: color 0.2s ease;
  847. border-radius: 50%;
  848. display: flex;
  849. align-items: center;
  850. justify-content: center;
  851. }
  852. .ios-close-button:hover {
  853. color: $ios-text;
  854. background-color: $ios-button-background;
  855. }
  856. /* iOS面板内容 */
  857. .ios-panel-content {
  858. padding: 20px;
  859. overflow-y: auto;
  860. max-height: 60vh;
  861. }
  862. /* 表单样式 */
  863. .form-group {
  864. margin-bottom: 20px;
  865. }
  866. .form-group label {
  867. display: block;
  868. font-size: 14px;
  869. font-weight: 500;
  870. color: $ios-text-secondary;
  871. margin-bottom: 8px;
  872. }
  873. /* iOS风格的表单输入框 */
  874. .ios-input {
  875. width: 100%;
  876. padding: 10px 12px;
  877. border: 1px solid $border-color;
  878. border-radius: 8px;
  879. font-size: 16px;
  880. background-color: white;
  881. transition: all 0.3s ease;
  882. outline: none;
  883. color: $ios-text;
  884. &:focus {
  885. border-color: $primary-color;
  886. box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
  887. }
  888. &::placeholder {
  889. color: $ios-text-secondary;
  890. }
  891. }
  892. /* 截止时间显示区域 */
  893. .deadline-display {
  894. position: relative;
  895. cursor: pointer;
  896. padding-right: 30px !important;
  897. .dropdown-arrow {
  898. position: absolute;
  899. right: 12px;
  900. top: 50%;
  901. transform: translateY(-50%);
  902. transition: transform 0.3s ease;
  903. color: $ios-text-secondary;
  904. }
  905. .dropdown-arrow.rotate {
  906. transform: translateY(-50%) rotate(180deg);
  907. }
  908. }
  909. /* 下拉选择框 */
  910. .deadline-dropdown {
  911. position: absolute;
  912. top: 100%;
  913. left: 0;
  914. right: 0;
  915. margin-top: 5px;
  916. background-color: white;
  917. border: 1px solid $border-color;
  918. border-radius: 8px;
  919. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  920. z-index: 1000;
  921. max-height: 300px;
  922. overflow-y: auto;
  923. opacity: 0;
  924. visibility: hidden;
  925. transition: all 0.3s ease;
  926. }
  927. .deadline-dropdown.visible {
  928. opacity: 1;
  929. visibility: visible;
  930. }
  931. /* 下拉选项 */
  932. .dropdown-option {
  933. padding: 12px 16px;
  934. cursor: pointer;
  935. transition: background-color 0.2s ease;
  936. color: $ios-text;
  937. &:hover {
  938. background-color: #f2f2f7;
  939. }
  940. &.selected {
  941. background-color: rgba(0, 122, 255, 0.1);
  942. color: $primary-color;
  943. font-weight: 500;
  944. }
  945. &.custom-option {
  946. color: $primary-color;
  947. font-weight: 500;
  948. }
  949. }
  950. /* 分隔线 */
  951. .dropdown-divider {
  952. height: 1px;
  953. background-color: $border-color;
  954. margin: 4px 0;
  955. }
  956. /* 错误提示信息 */
  957. .error-message {
  958. color: #ff3b30;
  959. font-size: 14px;
  960. margin-top: 5px;
  961. padding: 4px 0;
  962. }
  963. /* 自定义时间弹窗 */
  964. .custom-time-modal {
  965. position: fixed;
  966. top: 0;
  967. left: 0;
  968. right: 0;
  969. bottom: 0;
  970. z-index: 2000;
  971. display: flex;
  972. align-items: center;
  973. justify-content: center;
  974. opacity: 0;
  975. visibility: hidden;
  976. transition: opacity 0.3s ease;
  977. }
  978. .custom-time-modal.modal-visible {
  979. opacity: 1;
  980. visibility: visible;
  981. }
  982. /* 弹窗背景 */
  983. .modal-backdrop {
  984. position: absolute;
  985. top: 0;
  986. left: 0;
  987. right: 0;
  988. bottom: 0;
  989. background-color: rgba(0, 0, 0, 0.5);
  990. }
  991. /* 弹窗内容 */
  992. .modal-content {
  993. position: relative;
  994. background-color: white;
  995. border-radius: 12px;
  996. width: 90%;
  997. max-width: 400px;
  998. max-height: 80vh;
  999. overflow-y: auto;
  1000. transform: translateY(20px);
  1001. transition: transform 0.3s ease;
  1002. }
  1003. .custom-time-modal.modal-visible .modal-content {
  1004. transform: translateY(0);
  1005. }
  1006. /* 弹窗头部 */
  1007. .modal-header {
  1008. padding: 16px 20px;
  1009. border-bottom: 1px solid $border-color;
  1010. display: flex;
  1011. justify-content: space-between;
  1012. align-items: center;
  1013. }
  1014. .modal-header h3 {
  1015. margin: 0;
  1016. font-size: 18px;
  1017. font-weight: 600;
  1018. color: $ios-text;
  1019. }
  1020. /* 关闭按钮 */
  1021. .close-button {
  1022. background: none;
  1023. border: none;
  1024. font-size: 24px;
  1025. color: $ios-text-secondary;
  1026. cursor: pointer;
  1027. padding: 0;
  1028. width: 30px;
  1029. height: 30px;
  1030. display: flex;
  1031. align-items: center;
  1032. justify-content: center;
  1033. border-radius: 15px;
  1034. transition: all 0.2s ease;
  1035. &:hover {
  1036. background-color: #f2f2f7;
  1037. color: $ios-text;
  1038. }
  1039. }
  1040. /* 弹窗主体 */
  1041. .modal-body {
  1042. padding: 20px;
  1043. }
  1044. /* 日期选择器 */
  1045. .date-picker,
  1046. .time-picker {
  1047. margin-bottom: 16px;
  1048. }
  1049. .date-picker label,
  1050. .time-picker label {
  1051. display: block;
  1052. margin-bottom: 8px;
  1053. font-size: 14px;
  1054. font-weight: 500;
  1055. color: $ios-text;
  1056. }
  1057. /* 弹窗底部 */
  1058. .modal-footer {
  1059. padding: 16px 20px;
  1060. border-top: 1px solid $border-color;
  1061. display: flex;
  1062. justify-content: flex-end;
  1063. gap: 10px;
  1064. }
  1065. /* 按钮样式 */
  1066. .cancel-button,
  1067. .confirm-button {
  1068. padding: 8px 16px;
  1069. border-radius: 8px;
  1070. font-size: 16px;
  1071. font-weight: 500;
  1072. cursor: pointer;
  1073. transition: all 0.2s ease;
  1074. }
  1075. .cancel-button {
  1076. background-color: #f2f2f7;
  1077. color: $ios-text;
  1078. border: none;
  1079. }
  1080. .confirm-button {
  1081. background-color: $primary-color;
  1082. color: white;
  1083. border: none;
  1084. }
  1085. .cancel-button:hover {
  1086. background-color: #e5e5ea;
  1087. }
  1088. .confirm-button:hover {
  1089. background-color: #0066cc;
  1090. }
  1091. /* iOS面板底部 */
  1092. .ios-panel-footer {
  1093. display: flex;
  1094. justify-content: flex-end;
  1095. gap: 12px;
  1096. padding: 16px 20px;
  1097. border-top: 1px solid $ios-border;
  1098. background-color: $ios-background;
  1099. }
  1100. /* iOS风格按钮 */
  1101. .ios-cancel-button,
  1102. .ios-submit-button {
  1103. padding: 10px 20px;
  1104. border: none;
  1105. border-radius: $ios-radius-md;
  1106. font-size: 16px;
  1107. font-weight: 600;
  1108. cursor: pointer;
  1109. transition: all 0.2s ease;
  1110. min-width: 80px;
  1111. }
  1112. .ios-cancel-button {
  1113. background-color: $ios-button-background;
  1114. color: $ios-text;
  1115. }
  1116. .ios-cancel-button:hover {
  1117. background-color: color-mix(in srgb, $ios-button-background 80%, $ios-border 20%);
  1118. }
  1119. .ios-submit-button {
  1120. background-color: $ios-primary;
  1121. color: white;
  1122. }
  1123. .ios-submit-button:hover {
  1124. background-color: $ios-primary-dark;
  1125. }
  1126. /* 动画 */
  1127. @keyframes fadeIn {
  1128. from {
  1129. opacity: 0;
  1130. }
  1131. to {
  1132. opacity: 1;
  1133. }
  1134. }
  1135. /* 响应式调整 */
  1136. @media (max-width: 768px) {
  1137. .ios-panel {
  1138. width: 95%;
  1139. margin: 20px;
  1140. }
  1141. }
  1142. /* 数据看板 - iOS风格 */
  1143. .stats-dashboard {
  1144. background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.95));
  1145. border-radius: 24px;
  1146. padding: 28px;
  1147. box-shadow:
  1148. 0 8px 32px rgba(0, 0, 0, 0.08),
  1149. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1150. backdrop-filter: blur(10px);
  1151. border: 1px solid rgba(255, 255, 255, 0.2);
  1152. margin-bottom: 24px;
  1153. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  1154. }
  1155. .stats-dashboard:hover {
  1156. box-shadow:
  1157. 0 12px 40px rgba(0, 0, 0, 0.12),
  1158. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1159. transform: translateY(-2px);
  1160. }
  1161. .stats-header {
  1162. display: flex;
  1163. align-items: center;
  1164. justify-content: space-between;
  1165. margin-bottom: 20px;
  1166. }
  1167. .stats-header h3 {
  1168. font-size: 20px;
  1169. font-weight: 600;
  1170. color: $text-primary-dark;
  1171. margin: 0;
  1172. }
  1173. .stats-grid {
  1174. display: grid;
  1175. grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  1176. gap: 16px;
  1177. margin-bottom: 20px;
  1178. }
  1179. /* 统计卡片 - 现代化iOS风格 */
  1180. .stat-card {
  1181. background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  1182. border: 2px solid transparent;
  1183. border-radius: 18px;
  1184. padding: 20px;
  1185. display: flex;
  1186. align-items: center;
  1187. gap: 16px;
  1188. transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  1189. cursor: pointer;
  1190. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  1191. position: relative;
  1192. overflow: hidden;
  1193. &::before {
  1194. content: '';
  1195. position: absolute;
  1196. top: 0;
  1197. left: 0;
  1198. right: 0;
  1199. bottom: 0;
  1200. background: linear-gradient(135deg, rgba($primary-color, 0.03) 0%, rgba($primary-color, 0.01) 100%);
  1201. opacity: 0;
  1202. transition: opacity 0.4s ease;
  1203. }
  1204. &:hover {
  1205. border-color: rgba($primary-color, 0.2);
  1206. box-shadow:
  1207. 0 8px 32px rgba($primary-color, 0.12),
  1208. 0 0 0 1px rgba($primary-color, 0.05);
  1209. transform: translateY(-3px) scale(1.02);
  1210. &::before {
  1211. opacity: 1;
  1212. }
  1213. .stat-icon {
  1214. transform: scale(1.1) rotate(5deg);
  1215. box-shadow: 0 4px 16px rgba($primary-color, 0.25);
  1216. }
  1217. .stat-value {
  1218. transform: scale(1.05);
  1219. }
  1220. }
  1221. &:active {
  1222. transform: translateY(-1px) scale(1.01);
  1223. }
  1224. }
  1225. .stat-icon {
  1226. width: 52px;
  1227. height: 52px;
  1228. background: linear-gradient(135deg, rgba($primary-color, 0.12), rgba($primary-color, 0.08));
  1229. border-radius: 14px;
  1230. display: flex;
  1231. align-items: center;
  1232. justify-content: center;
  1233. color: $primary-color;
  1234. transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  1235. flex-shrink: 0;
  1236. box-shadow: 0 2px 8px rgba($primary-color, 0.15);
  1237. svg {
  1238. stroke-width: 2.5;
  1239. }
  1240. &.primary {
  1241. background: linear-gradient(135deg, rgba($primary-color, 0.12), rgba($primary-color, 0.08));
  1242. color: $primary-color;
  1243. box-shadow: 0 2px 8px rgba($primary-color, 0.15);
  1244. }
  1245. &.secondary {
  1246. background: linear-gradient(135deg, rgba($success-color, 0.12), rgba($success-color, 0.08));
  1247. color: $success-color;
  1248. box-shadow: 0 2px 8px rgba($success-color, 0.15);
  1249. }
  1250. &.warning {
  1251. background: linear-gradient(135deg, rgba($warning-color, 0.12), rgba($warning-color, 0.08));
  1252. color: $warning-color;
  1253. box-shadow: 0 2px 8px rgba($warning-color, 0.15);
  1254. }
  1255. &.danger {
  1256. background: linear-gradient(135deg, rgba($danger-color, 0.12), rgba($danger-color, 0.08));
  1257. color: $danger-color;
  1258. box-shadow: 0 2px 8px rgba($danger-color, 0.15);
  1259. }
  1260. &.success {
  1261. background: linear-gradient(135deg, rgba($success-color, 0.12), rgba($success-color, 0.08));
  1262. color: $success-color;
  1263. box-shadow: 0 2px 8px rgba($success-color, 0.15);
  1264. }
  1265. }
  1266. .stat-content {
  1267. flex: 1;
  1268. min-width: 0;
  1269. }
  1270. .stat-value {
  1271. font-size: 32px;
  1272. font-weight: 700;
  1273. color: $text-primary-dark;
  1274. margin-bottom: 4px;
  1275. line-height: 1;
  1276. letter-spacing: -1px;
  1277. transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  1278. font-variant-numeric: tabular-nums;
  1279. }
  1280. .stat-label {
  1281. font-size: 14px;
  1282. color: $text-secondary-dark;
  1283. margin: 0;
  1284. font-weight: 500;
  1285. letter-spacing: -0.1px;
  1286. line-height: 1.4;
  1287. }
  1288. /* 内容网格 */
  1289. .content-grid {
  1290. display: grid;
  1291. grid-template-columns: 1fr 1fr;
  1292. gap: 20px;
  1293. margin-top: 16px;
  1294. }
  1295. /* 任务列表区块 - iOS风格 */
  1296. .tasks-section {
  1297. background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.95));
  1298. border-radius: 24px;
  1299. padding: 28px;
  1300. box-shadow:
  1301. 0 8px 32px rgba(0, 0, 0, 0.08),
  1302. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1303. backdrop-filter: blur(10px);
  1304. border: 1px solid rgba(255, 255, 255, 0.2);
  1305. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  1306. }
  1307. .tasks-section:hover {
  1308. box-shadow:
  1309. 0 12px 40px rgba(0, 0, 0, 0.12),
  1310. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1311. transform: translateY(-2px);
  1312. }
  1313. /* 通用区块头部 */
  1314. .section-header {
  1315. display: flex;
  1316. align-items: center;
  1317. justify-content: space-between;
  1318. margin-bottom: 20px;
  1319. }
  1320. .section-header h3 {
  1321. font-size: 20px;
  1322. font-weight: 600;
  1323. color: $text-primary-dark;
  1324. margin: 0;
  1325. }
  1326. .section-header .view-all {
  1327. display: flex;
  1328. align-items: center;
  1329. gap: 4px;
  1330. font-size: 14px;
  1331. color: $primary-color;
  1332. text-decoration: none;
  1333. transition: $transition;
  1334. }
  1335. .section-header .view-all:hover {
  1336. color: $primary-dark;
  1337. }
  1338. /* 搜索框样式 */
  1339. .search-box {
  1340. position: relative;
  1341. }
  1342. .search-input {
  1343. padding: 8px 16px;
  1344. border: 1px solid $border-color;
  1345. border-radius: $border-radius;
  1346. font-size: 14px;
  1347. color: $text-primary-dark;
  1348. background-color: $card-background;
  1349. transition: $transition;
  1350. outline: none;
  1351. min-width: 200px;
  1352. }
  1353. .search-input:focus {
  1354. border-color: $primary-color;
  1355. box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
  1356. }
  1357. /* 紧急待办列表 */
  1358. .tasks-list {
  1359. display: flex;
  1360. flex-direction: column;
  1361. gap: 12px;
  1362. }
  1363. .tasks-list.empty {
  1364. text-align: center;
  1365. padding: 40px 20px;
  1366. color: $text-tertiary-dark;
  1367. }
  1368. .tasks-list.empty p {
  1369. font-size: 16px;
  1370. margin: 0;
  1371. }
  1372. /* 任务项目样式 - iOS风格 */
  1373. .task-item {
  1374. display: flex;
  1375. align-items: center;
  1376. justify-content: space-between;
  1377. padding: 20px 24px;
  1378. border-radius: 16px;
  1379. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  1380. margin-bottom: 12px;
  1381. position: relative;
  1382. background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.9));
  1383. border: 1px solid rgba(0, 0, 0, 0.05);
  1384. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  1385. }
  1386. .task-item.completed {
  1387. background-color: #e8f5e9;
  1388. border: 1px solid #c8e6c9;
  1389. }
  1390. .task-item.overdue {
  1391. background-color: #ffebee;
  1392. border: 1px solid #ffcdd2;
  1393. }
  1394. .task-item:hover {
  1395. transform: translateY(-3px);
  1396. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  1397. background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(252, 252, 252, 0.95));
  1398. border-color: rgba(0, 0, 0, 0.1);
  1399. }
  1400. /* 任务复选框样式 */
  1401. .task-checkbox {
  1402. margin-right: 16px;
  1403. }
  1404. .task-checkbox input[type="checkbox"] {
  1405. width: 20px;
  1406. height: 20px;
  1407. accent-color: $primary-color;
  1408. border-radius: 4px;
  1409. cursor: pointer;
  1410. }
  1411. /* 任务状态标记 */
  1412. .task-status {
  1413. position: absolute;
  1414. top: 12px;
  1415. right: 12px;
  1416. padding: 4px 12px;
  1417. border-radius: 16px;
  1418. font-size: 12px;
  1419. font-weight: 600;
  1420. text-transform: uppercase;
  1421. letter-spacing: 0.5px;
  1422. }
  1423. .task-status.completed {
  1424. background-color: color-mix(in srgb, $success-color 15%, transparent);
  1425. color: $success-color;
  1426. }
  1427. .task-status.pending {
  1428. background-color: color-mix(in srgb, $warning-color 15%, transparent);
  1429. color: $warning-color;
  1430. }
  1431. .task-status.overdue {
  1432. background-color: color-mix(in srgb, $danger-color 15%, transparent);
  1433. color: $danger-color;
  1434. }
  1435. /* 任务内容 */
  1436. .task-content {
  1437. flex: 1;
  1438. }
  1439. .task-title {
  1440. font-size: 18px;
  1441. font-weight: 600;
  1442. color: $text-primary-dark;
  1443. margin-bottom: 4px;
  1444. line-height: 1.3;
  1445. }
  1446. .task-project {
  1447. font-size: 14px;
  1448. color: $text-secondary-dark;
  1449. margin-bottom: 8px;
  1450. }
  1451. .task-meta {
  1452. font-size: 14px;
  1453. color: $text-tertiary-dark;
  1454. }
  1455. /* 任务进度 */
  1456. .task-progress {
  1457. width: 100%;
  1458. height: 8px;
  1459. background-color: $background-color;
  1460. border-radius: 4px;
  1461. overflow: hidden;
  1462. margin-top: 12px;
  1463. box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  1464. }
  1465. .progress-bar {
  1466. height: 100%;
  1467. background: linear-gradient(90deg, $primary-color, #5e9eff);
  1468. transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  1469. position: relative;
  1470. overflow: hidden;
  1471. border-radius: 4px;
  1472. }
  1473. .progress-bar::after {
  1474. content: '';
  1475. position: absolute;
  1476. top: 0;
  1477. left: 0;
  1478. right: 0;
  1479. bottom: 0;
  1480. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  1481. animation: shimmer 2s infinite;
  1482. }
  1483. @keyframes shimmer {
  1484. 0% {
  1485. transform: translateX(-100%);
  1486. }
  1487. 100% {
  1488. transform: translateX(100%);
  1489. }
  1490. }
  1491. .progress-text {
  1492. font-size: 12px;
  1493. color: $text-tertiary-dark;
  1494. text-align: right;
  1495. margin-top: 4px;
  1496. font-weight: 500;
  1497. }
  1498. /* 任务处理进度条容器 */
  1499. .task-progress-container {
  1500. width: 100%;
  1501. height: 12px;
  1502. background-color: #f5f5f5;
  1503. border-radius: 6px;
  1504. overflow: hidden;
  1505. margin-top: 12px;
  1506. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  1507. }
  1508. .task-progress-bar {
  1509. height: 100%;
  1510. background: linear-gradient(90deg, $primary-color 0%, #5e9eff 100%);
  1511. transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  1512. position: relative;
  1513. overflow: hidden;
  1514. display: flex;
  1515. align-items: center;
  1516. justify-content: flex-end;
  1517. padding-right: 8px;
  1518. border-radius: 6px;
  1519. }
  1520. .task-progress-bar::after {
  1521. content: '';
  1522. position: absolute;
  1523. top: 0;
  1524. left: 0;
  1525. right: 0;
  1526. bottom: 0;
  1527. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  1528. animation: shimmer 1.5s infinite;
  1529. }
  1530. .task-progress-text {
  1531. font-size: 10px;
  1532. color: white;
  1533. font-weight: 600;
  1534. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  1535. z-index: 1;
  1536. }
  1537. /* 任务操作按钮 */
  1538. .task-actions {
  1539. display: flex;
  1540. align-items: center;
  1541. }
  1542. .task-button {
  1543. padding: 6px 12px;
  1544. border: 1px solid $border-color;
  1545. border-radius: $border-radius;
  1546. font-size: 14px;
  1547. font-weight: 500;
  1548. cursor: pointer;
  1549. transition: $transition;
  1550. background-color: $card-background;
  1551. color: $text-secondary-dark;
  1552. min-width: 60px;
  1553. text-align: center;
  1554. }
  1555. .task-button:hover {
  1556. border-color: $primary-color;
  1557. color: $primary-color;
  1558. }
  1559. .task-button.primary {
  1560. background-color: $primary-color;
  1561. color: white;
  1562. border-color: $primary-color;
  1563. }
  1564. .task-button.primary:hover {
  1565. background-color: $primary-dark;
  1566. border-color: $primary-dark;
  1567. color: white;
  1568. }
  1569. .task-button:disabled {
  1570. opacity: 0.6;
  1571. cursor: not-allowed;
  1572. transform: none;
  1573. }
  1574. /* 搜索框样式 */
  1575. .search-box {
  1576. position: relative;
  1577. }
  1578. .search-input {
  1579. padding: 8px 16px;
  1580. border: 1px solid $border-color;
  1581. border-radius: $border-radius;
  1582. font-size: 14px;
  1583. color: $text-primary-dark;
  1584. background-color: $card-background;
  1585. transition: $transition;
  1586. outline: none;
  1587. min-width: 200px;
  1588. }
  1589. .search-input:focus {
  1590. border-color: $primary-color;
  1591. box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
  1592. }
  1593. /* 项目动态流 - iOS风格 */
  1594. .project-updates-section {
  1595. background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.95));
  1596. border-radius: 24px;
  1597. padding: 28px;
  1598. box-shadow:
  1599. 0 8px 32px rgba(0, 0, 0, 0.08),
  1600. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1601. backdrop-filter: blur(10px);
  1602. border: 1px solid rgba(255, 255, 255, 0.2);
  1603. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  1604. }
  1605. .project-updates-section:hover {
  1606. box-shadow:
  1607. 0 12px 40px rgba(0, 0, 0, 0.12),
  1608. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1609. transform: translateY(-2px);
  1610. }
  1611. .project-updates-section.empty {
  1612. text-align: center;
  1613. padding: 60px 20px;
  1614. color: $text-tertiary-dark;
  1615. }
  1616. .project-updates-section.empty p {
  1617. font-size: 16px;
  1618. margin: 0;
  1619. }
  1620. .project-updates-list {
  1621. display: flex;
  1622. flex-direction: column;
  1623. gap: 16px;
  1624. }
  1625. .update-item {
  1626. display: flex;
  1627. gap: 16px;
  1628. padding: 20px;
  1629. border: 1px solid $border-color;
  1630. border-radius: $border-radius;
  1631. transition: $transition;
  1632. &:hover {
  1633. border-color: $primary-color;
  1634. box-shadow: 0 4px 12px color-mix(in srgb, $primary-color 10%, transparent);
  1635. transform: translateY(-2px);
  1636. }
  1637. .update-icon {
  1638. width: 44px;
  1639. height: 44px;
  1640. background-color: $primary-color;
  1641. border-radius: 12px;
  1642. display: flex;
  1643. align-items: center;
  1644. justify-content: center;
  1645. color: white;
  1646. flex-shrink: 0;
  1647. transition: $transition;
  1648. }
  1649. .update-content {
  1650. flex: 1;
  1651. .update-title {
  1652. font-size: 18px;
  1653. font-weight: 600;
  1654. color: $text-primary-dark;
  1655. margin-bottom: 6px;
  1656. line-height: 1.3;
  1657. }
  1658. .update-text {
  1659. font-size: 16px;
  1660. color: $text-secondary-dark;
  1661. margin-bottom: 12px;
  1662. line-height: 1.4;
  1663. }
  1664. .update-meta {
  1665. display: flex;
  1666. align-items: center;
  1667. gap: 20px;
  1668. .update-time {
  1669. font-size: 14px;
  1670. color: $text-tertiary-dark;
  1671. }
  1672. .update-status {
  1673. padding: 4px 12px;
  1674. border-radius: 16px;
  1675. font-size: 14px;
  1676. font-weight: 600;
  1677. transition: $transition;
  1678. &.status-active,
  1679. &.status-info {
  1680. background-color: #e3f2fd;
  1681. color: $primary-color;
  1682. border: 1px solid #bbdefb;
  1683. }
  1684. &.status-completed,
  1685. &.status-success {
  1686. background-color: #e8f5e9;
  1687. color: $success-color;
  1688. border: 1px solid #c8e6c9;
  1689. }
  1690. &.status-warning {
  1691. background-color: #fff3e0;
  1692. color: $warning-color;
  1693. border: 1px solid #ffe0b2;
  1694. }
  1695. &.status-danger {
  1696. background-color: #ffebee;
  1697. color: $danger-color;
  1698. border: 1px solid #ffcdd2;
  1699. }
  1700. }
  1701. }
  1702. }
  1703. }
  1704. .stats-dashboard .stats-grid {
  1705. grid-template-columns: repeat(2, 1fr);
  1706. }
  1707. /* 欢迎区域 - iOS风格 */
  1708. .welcome-section {
  1709. background: linear-gradient(135deg, #c7d3d9, #d4c5b9);
  1710. color: #4a5568;
  1711. padding: 28px 36px;
  1712. border-radius: 24px;
  1713. margin-bottom: 24px;
  1714. box-shadow:
  1715. 0 8px 32px rgba(0, 0, 0, 0.1),
  1716. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1717. backdrop-filter: blur(10px);
  1718. border: 1px solid rgba(255, 255, 255, 0.2);
  1719. }
  1720. .welcome-section h2 {
  1721. font-size: 26px;
  1722. font-weight: 700;
  1723. margin: 0 0 8px 0;
  1724. letter-spacing: -0.5px;
  1725. color: #2d3748;
  1726. }
  1727. .welcome-section p {
  1728. font-size: 15px;
  1729. opacity: 0.8;
  1730. margin: 0;
  1731. font-weight: 500;
  1732. color: #4a5568;
  1733. }
  1734. @media (max-width: 768px) {
  1735. .welcome-section {
  1736. margin-bottom: 16px;
  1737. h2 {
  1738. font-size: 20px;
  1739. }
  1740. }
  1741. .stats-dashboard {
  1742. margin-bottom: 16px;
  1743. .stats-grid {
  1744. grid-template-columns: 1fr;
  1745. gap: 12px;
  1746. }
  1747. .stat-card {
  1748. padding: 16px;
  1749. }
  1750. .stat-number {
  1751. font-size: 20px;
  1752. }
  1753. .stat-icon {
  1754. width: 40px;
  1755. height: 40px;
  1756. }
  1757. }
  1758. .tasks-section,
  1759. .project-updates-section {
  1760. padding: 16px;
  1761. margin-bottom: 16px;
  1762. }
  1763. .task-item,
  1764. .update-item {
  1765. padding: 16px;
  1766. }
  1767. .task-actions {
  1768. flex-wrap: wrap;
  1769. }
  1770. .task-button {
  1771. font-size: 12px;
  1772. padding: 4px 8px;
  1773. }
  1774. }
  1775. @media (max-width: 480px) {
  1776. .task-item {
  1777. flex-direction: column;
  1778. align-items: flex-start;
  1779. .task-actions {
  1780. margin-top: 12px;
  1781. align-self: flex-end;
  1782. }
  1783. }
  1784. .update-item {
  1785. .update-icon {
  1786. width: 32px;
  1787. height: 32px;
  1788. }
  1789. }
  1790. }
  1791. /* ========== iOS风格新增样式 ========== */
  1792. .ios-page-transition {
  1793. overflow: hidden;
  1794. .stat-card {
  1795. transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  1796. transform: translateY(20px);
  1797. opacity: 0;
  1798. }
  1799. }
  1800. .stat-card {
  1801. &:active {
  1802. transform: scale(0.98);
  1803. transition: transform 0.1s ease;
  1804. }
  1805. perspective: 1000px;
  1806. .stat-content {
  1807. transform-style: preserve-3d;
  1808. transition: transform 0.5s ease;
  1809. &:hover {
  1810. transform: translateZ(10px);
  1811. }
  1812. }
  1813. }
  1814. .stat-icon {
  1815. position: relative;
  1816. overflow: hidden;
  1817. &::after {
  1818. content: '';
  1819. position: absolute;
  1820. top: -50%;
  1821. left: -50%;
  1822. width: 200%;
  1823. }
  1824. }
  1825. /* 莫兰迪色系变量 */
  1826. $morandi-cream: #f5f1eb;
  1827. $morandi-sage: #a8b5a0;
  1828. $morandi-blush: #e8d5d2;
  1829. $morandi-stone: #d4c5b9;
  1830. $morandi-mist: #c7d3d9;
  1831. $morandi-dust: #b8a99a;
  1832. /* iOS风格卡片 - 莫兰迪色系 */
  1833. .ios-card {
  1834. background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.9));
  1835. backdrop-filter: blur(10px);
  1836. border: 1px solid rgba(255, 255, 255, 0.2);
  1837. border-radius: 20px;
  1838. box-shadow:
  1839. 0 8px 32px rgba(0, 0, 0, 0.1),
  1840. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1841. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  1842. overflow: hidden;
  1843. &:hover {
  1844. transform: translateY(-4px);
  1845. box-shadow:
  1846. 0 12px 40px rgba(0, 0, 0, 0.15),
  1847. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1848. }
  1849. &:active {
  1850. transform: translateY(-1px);
  1851. box-shadow:
  1852. 0 4px 20px rgba(0, 0, 0, 0.1),
  1853. inset 0 1px 0 rgba(255, 255, 255, 0.6);
  1854. }
  1855. }
  1856. /* iOS风格按钮 */
  1857. .ios-btn {
  1858. background: linear-gradient(135deg, $primary-color, $primary-dark);
  1859. border: none;
  1860. border-radius: 16px;
  1861. color: white;
  1862. font-weight: 600;
  1863. font-size: 16px;
  1864. padding: 12px 24px;
  1865. cursor: pointer;
  1866. transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  1867. box-shadow:
  1868. 0 4px 12px rgba($primary-color, 0.3),
  1869. inset 0 1px 0 rgba(255, 255, 255, 0.2);
  1870. position: relative;
  1871. overflow: hidden;
  1872. &:hover {
  1873. transform: translateY(-2px);
  1874. box-shadow:
  1875. 0 6px 20px rgba($primary-color, 0.4),
  1876. inset 0 1px 0 rgba(255, 255, 255, 0.2);
  1877. }
  1878. &:active {
  1879. transform: translateY(0);
  1880. box-shadow:
  1881. 0 2px 8px rgba($primary-color, 0.3),
  1882. inset 0 1px 0 rgba(255, 255, 255, 0.2);
  1883. }
  1884. &.mini {
  1885. padding: 8px 16px;
  1886. font-size: 14px;
  1887. border-radius: 12px;
  1888. }
  1889. &.outline {
  1890. background: transparent;
  1891. border: 2px solid $primary-color;
  1892. color: $primary-color;
  1893. box-shadow: none;
  1894. &:hover {
  1895. background: $primary-color;
  1896. color: white;
  1897. box-shadow: 0 4px 12px rgba($primary-color, 0.3);
  1898. }
  1899. }
  1900. &.secondary {
  1901. background: linear-gradient(135deg, $morandi-sage, $morandi-dust);
  1902. box-shadow:
  1903. 0 4px 12px rgba($morandi-sage, 0.3),
  1904. inset 0 1px 0 rgba(255, 255, 255, 0.2);
  1905. &:hover {
  1906. box-shadow:
  1907. 0 6px 20px rgba($morandi-sage, 0.4),
  1908. inset 0 1px 0 rgba(255, 255, 255, 0.2);
  1909. }
  1910. }
  1911. }
  1912. /* iOS风格面板 - 紧急事项添加 */
  1913. .ios-modal-overlay {
  1914. position: fixed;
  1915. top: 0;
  1916. left: 0;
  1917. right: 0;
  1918. bottom: 0;
  1919. background-color: rgba(0, 0, 0, 0.5);
  1920. display: flex;
  1921. align-items: center;
  1922. justify-content: center;
  1923. z-index: 1000;
  1924. animation: iosFadeIn 0.3s ease;
  1925. }
  1926. @keyframes iosFadeIn {
  1927. from {
  1928. opacity: 0;
  1929. }
  1930. to {
  1931. opacity: 1;
  1932. }
  1933. }
  1934. .ios-panel {
  1935. width: 90%;
  1936. max-width: 500px;
  1937. background-color: white;
  1938. border-radius: 16px;
  1939. padding: 28px;
  1940. transform: scale(0.95);
  1941. opacity: 0;
  1942. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  1943. box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  1944. margin: 0 auto;
  1945. max-height: 80vh;
  1946. overflow-y: auto;
  1947. }
  1948. .ios-panel.ios-panel-visible {
  1949. transform: scale(1);
  1950. opacity: 1;
  1951. }
  1952. .ios-panel-header {
  1953. display: flex;
  1954. justify-content: space-between;
  1955. align-items: center;
  1956. margin-bottom: 24px;
  1957. padding-bottom: 16px;
  1958. border-bottom: 1px solid #f0f0f0;
  1959. }
  1960. .ios-panel-header h3 {
  1961. font-size: 18px;
  1962. font-weight: 600;
  1963. color: $text-primary-dark;
  1964. margin: 0;
  1965. }
  1966. .ios-close-button {
  1967. background: none;
  1968. border: none;
  1969. padding: 8px;
  1970. cursor: pointer;
  1971. color: $text-secondary-dark;
  1972. display: flex;
  1973. align-items: center;
  1974. justify-content: center;
  1975. border-radius: 8px;
  1976. transition: background-color 0.2s ease;
  1977. }
  1978. .ios-close-button:hover {
  1979. background-color: #f5f5f5;
  1980. }
  1981. .ios-panel-content {
  1982. max-height: 70vh;
  1983. overflow-y: auto;
  1984. }
  1985. .ios-input, .ios-select {
  1986. width: 100%;
  1987. padding: 12px 16px;
  1988. border: 1px solid #e0e0e0;
  1989. border-radius: 12px;
  1990. font-size: 16px;
  1991. transition: border-color 0.2s ease, box-shadow 0.2s ease;
  1992. background-color: white;
  1993. box-sizing: border-box;
  1994. }
  1995. .ios-input:focus, .ios-select:focus {
  1996. outline: none;
  1997. border-color: $primary-color;
  1998. box-shadow: 0 0 0 3px rgba(99, 172, 255, 0.1);
  1999. }
  2000. .ios-input:disabled, .ios-select:disabled {
  2001. background-color: #f9f9f9;
  2002. color: $text-tertiary-dark;
  2003. border-color: #e0e0e0;
  2004. cursor: not-allowed;
  2005. }
  2006. .form-group {
  2007. margin-bottom: 20px;
  2008. }
  2009. .form-group label {
  2010. display: block;
  2011. margin-bottom: 8px;
  2012. font-size: 14px;
  2013. font-weight: 600;
  2014. color: $text-secondary-dark;
  2015. }
  2016. /* 增强版日期时间选择器 */
  2017. .datetime-picker-container {
  2018. display: flex;
  2019. gap: 12px;
  2020. margin-bottom: 20px;
  2021. .date-picker, .time-picker {
  2022. flex: 1;
  2023. position: relative;
  2024. label {
  2025. display: block;
  2026. margin-bottom: 8px;
  2027. font-size: 14px;
  2028. font-weight: 500;
  2029. color: $text-secondary-dark;
  2030. }
  2031. input {
  2032. width: 100%;
  2033. padding: 12px 16px;
  2034. border: 1px solid $border-color;
  2035. border-radius: 10px;
  2036. font-size: 16px;
  2037. background-color: white;
  2038. transition: all 0.2s ease;
  2039. -webkit-appearance: none;
  2040. -moz-appearance: none;
  2041. appearance: none;
  2042. &:focus {
  2043. border-color: $primary-color;
  2044. box-shadow: 0 0 0 3px rgba($primary-color, 0.1);
  2045. outline: none;
  2046. }
  2047. &::-webkit-calendar-picker-indicator {
  2048. background: transparent;
  2049. bottom: 0;
  2050. color: transparent;
  2051. cursor: pointer;
  2052. height: auto;
  2053. left: 0;
  2054. position: absolute;
  2055. right: 0;
  2056. top: 0;
  2057. width: auto;
  2058. }
  2059. }
  2060. &::after {
  2061. content: "";
  2062. position: absolute;
  2063. right: 16px;
  2064. top: 38px;
  2065. width: 20px;
  2066. height: 20px;
  2067. 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");
  2068. background-repeat: no-repeat;
  2069. background-position: center;
  2070. pointer-events: none;
  2071. }
  2072. }
  2073. .time-picker {
  2074. input {
  2075. &::-webkit-calendar-picker-indicator {
  2076. background: transparent;
  2077. bottom: 0;
  2078. color: transparent;
  2079. cursor: pointer;
  2080. height: auto;
  2081. left: 0;
  2082. position: absolute;
  2083. right: 0;
  2084. top: 0;
  2085. width: auto;
  2086. }
  2087. }
  2088. &::after {
  2089. 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");
  2090. }
  2091. }
  2092. }
  2093. input[type="datetime-local"]:focus {
  2094. outline: none;
  2095. border-color: $primary-color;
  2096. box-shadow: 0 0 0 3px rgba(99, 172, 255, 0.1);
  2097. }
  2098. input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  2099. 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;
  2100. width: 24px;
  2101. height: 24px;
  2102. cursor: pointer;
  2103. opacity: 0.7;
  2104. }
  2105. /* iOS风格文本域 */
  2106. .ios-textarea {
  2107. width: 100%;
  2108. padding: 12px 16px;
  2109. border: 1px solid #e0e0e0;
  2110. border-radius: 12px;
  2111. font-size: 16px;
  2112. font-family: inherit;
  2113. resize: vertical;
  2114. min-height: 80px;
  2115. transition: border-color 0.2s ease, box-shadow 0.2s ease;
  2116. background-color: white;
  2117. box-sizing: border-box;
  2118. }
  2119. .ios-textarea:focus {
  2120. outline: none;
  2121. border-color: $primary-color;
  2122. box-shadow: 0 0 0 3px rgba(99, 172, 255, 0.1);
  2123. }
  2124. /* iOS风格面板底部按钮 */
  2125. .ios-panel-footer {
  2126. display: flex;
  2127. justify-content: flex-end;
  2128. gap: 12px;
  2129. margin-top: 24px;
  2130. padding-top: 16px;
  2131. border-top: 1px solid #f0f0f0;
  2132. }
  2133. .ios-cancel-button, .ios-submit-button {
  2134. padding: 10px 20px;
  2135. border-radius: 12px;
  2136. font-size: 16px;
  2137. font-weight: 500;
  2138. cursor: pointer;
  2139. transition: all 0.2s ease;
  2140. border: none;
  2141. box-sizing: border-box;
  2142. min-width: 80px;
  2143. }
  2144. .ios-cancel-button {
  2145. background-color: #f5f5f5;
  2146. color: $text-secondary-dark;
  2147. }
  2148. .ios-cancel-button:hover {
  2149. background-color: #eeeeee;
  2150. }
  2151. .ios-cancel-button:active {
  2152. background-color: #e0e0e0;
  2153. transform: scale(0.98);
  2154. }
  2155. .ios-submit-button {
  2156. background-color: $primary-color;
  2157. color: white;
  2158. }
  2159. .ios-submit-button:hover {
  2160. background-color: $primary-dark;
  2161. }
  2162. .ios-submit-button:active {
  2163. background-color: #4a89dc;
  2164. transform: scale(0.98);
  2165. }
  2166. .ios-submit-button:disabled {
  2167. background-color: #e0e0e0;
  2168. color: $text-tertiary-dark;
  2169. cursor: not-allowed;
  2170. transform: none;
  2171. }
  2172. /* 核心指标渐变卡片 */
  2173. .core-metrics-grid {
  2174. display: grid;
  2175. grid-template-columns: repeat(3, 1fr);
  2176. gap: 16px;
  2177. margin-top: 16px;
  2178. }
  2179. .core-metric-card {
  2180. display: flex;
  2181. align-items: center;
  2182. gap: 12px;
  2183. padding: 16px;
  2184. border-radius: 14px;
  2185. color: #fff;
  2186. box-shadow: $shadow-md;
  2187. .metric-icon {
  2188. width: 40px;
  2189. height: 40px;
  2190. border-radius: 12px;
  2191. background: rgba(255,255,255,0.2);
  2192. display: flex;
  2193. align-items: center;
  2194. justify-content: center;
  2195. }
  2196. .metric-content {
  2197. .metric-value { font-size: 22px; font-weight: 700; }
  2198. .metric-label { font-size: 13px; opacity: 0.9; }
  2199. }
  2200. &.gradient-green {
  2201. background: linear-gradient(135deg, #34d399, #10b981);
  2202. }
  2203. &.gradient-orange {
  2204. background: linear-gradient(135deg, #f59e0b, #f97316);
  2205. }
  2206. &.gradient-blue {
  2207. background: linear-gradient(135deg, #60a5fa, #3b82f6);
  2208. }
  2209. }
  2210. /* CRM队列 - iOS风格 */
  2211. .crm-queues {
  2212. margin-bottom: 24px;
  2213. }
  2214. .crm-grid {
  2215. display: grid;
  2216. grid-template-columns: 1fr 1fr;
  2217. gap: 20px;
  2218. }
  2219. .crm-card {
  2220. @extend .ios-card;
  2221. padding: 20px;
  2222. background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.95));
  2223. }
  2224. .crm-header {
  2225. display: flex;
  2226. align-items: flex-start;
  2227. justify-content: space-between;
  2228. margin-bottom: 16px;
  2229. gap: 16px;
  2230. .crm-title-section {
  2231. flex: 1;
  2232. h3 {
  2233. margin: 0 0 8px 0;
  2234. font-size: 16px;
  2235. font-weight: 600;
  2236. color: $ios-text;
  2237. }
  2238. }
  2239. .crm-stats {
  2240. display: flex;
  2241. gap: 16px;
  2242. margin-top: 4px;
  2243. .stat-item {
  2244. display: flex;
  2245. flex-direction: column;
  2246. align-items: center;
  2247. gap: 2px;
  2248. .stat-number {
  2249. font-size: 18px;
  2250. font-weight: 700;
  2251. color: $ios-text;
  2252. &.success {
  2253. color: $ios-success;
  2254. }
  2255. &.warning {
  2256. color: $ios-warning;
  2257. }
  2258. &.danger {
  2259. color: $ios-danger;
  2260. }
  2261. }
  2262. .stat-label {
  2263. font-size: 11px;
  2264. color: $ios-text-secondary;
  2265. font-weight: 500;
  2266. text-transform: uppercase;
  2267. letter-spacing: 0.5px;
  2268. }
  2269. }
  2270. }
  2271. .view-all-link {
  2272. color: $primary-color;
  2273. font-size: 13px;
  2274. cursor: pointer;
  2275. white-space: nowrap;
  2276. margin-top: 4px;
  2277. &:hover {
  2278. color: $ios-primary-dark;
  2279. }
  2280. }
  2281. }
  2282. .crm-list {
  2283. display: flex;
  2284. flex-direction: column;
  2285. gap: 10px;
  2286. }
  2287. /* CRM项目 - iOS风格卡片 */
  2288. .crm-item {
  2289. display: flex;
  2290. align-items: flex-start;
  2291. justify-content: space-between;
  2292. gap: 12px;
  2293. padding: 12px 16px;
  2294. border-radius: 12px;
  2295. border: 1px solid rgba(0, 0, 0, 0.05);
  2296. background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.9));
  2297. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  2298. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  2299. margin-bottom: 8px;
  2300. &:hover {
  2301. background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(252, 252, 252, 0.95));
  2302. box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  2303. transform: translateY(-2px);
  2304. border-color: rgba(0, 0, 0, 0.1);
  2305. }
  2306. .crm-item-main { display: flex; align-items: flex-start; gap: 12px; }
  2307. .avatar.small {
  2308. width: 32px; height: 32px; border-radius: 50%;
  2309. background: linear-gradient(135deg, $primary-color, $primary-dark);
  2310. color: #fff;
  2311. display: flex;
  2312. align-items: center;
  2313. justify-content: center;
  2314. font-weight: 600;
  2315. flex-shrink: 0;
  2316. box-shadow: 0 2px 8px rgba($primary-color, 0.3);
  2317. transition: all 0.2s ease;
  2318. &.alt {
  2319. background: linear-gradient(135deg, $morandi-sage, $morandi-dust);
  2320. box-shadow: 0 2px 8px rgba($morandi-sage, 0.3);
  2321. }
  2322. &:hover {
  2323. transform: scale(1.05);
  2324. box-shadow: 0 4px 12px rgba($primary-color, 0.4);
  2325. &.alt {
  2326. box-shadow: 0 4px 12px rgba($morandi-sage, 0.4);
  2327. }
  2328. }
  2329. }
  2330. .info {
  2331. .name {
  2332. font-weight: 600;
  2333. color: $text-primary-dark;
  2334. font-size: 15px;
  2335. letter-spacing: -0.2px;
  2336. }
  2337. .meta {
  2338. color: $text-tertiary-dark;
  2339. font-size: 12px;
  2340. display: flex;
  2341. gap: 8px;
  2342. margin-bottom: 8px;
  2343. font-weight: 500;
  2344. }
  2345. .tag {
  2346. background: linear-gradient(135deg, rgba(0,0,0,0.03), rgba(0,0,0,0.06));
  2347. padding: 3px 8px;
  2348. border-radius: 8px;
  2349. font-size: 11px;
  2350. font-weight: 600;
  2351. backdrop-filter: blur(4px);
  2352. &.value-tag {
  2353. background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  2354. color: #166534;
  2355. border: 1px solid rgba(22, 101, 52, 0.1);
  2356. }
  2357. &.price-tag {
  2358. background: linear-gradient(135deg, #fffbeb, #fef3c7);
  2359. color: #d97706;
  2360. border: 1px solid rgba(217, 119, 6, 0.1);
  2361. }
  2362. }
  2363. .strategy-info {
  2364. font-size: 12px;
  2365. line-height: 1.5;
  2366. margin-top: 6px;
  2367. .recommended-phrase {
  2368. color: $morandi-dust;
  2369. margin-bottom: 4px;
  2370. font-style: italic;
  2371. font-weight: 500;
  2372. letter-spacing: -0.1px;
  2373. }
  2374. .case-strategy {
  2375. color: $morandi-sage;
  2376. font-size: 11px;
  2377. font-weight: 500;
  2378. background: rgba($morandi-sage, 0.1);
  2379. padding: 2px 6px;
  2380. border-radius: 4px;
  2381. display: inline-block;
  2382. }
  2383. }
  2384. }
  2385. .ios-btn.mini {
  2386. padding: 8px 14px;
  2387. font-size: 13px;
  2388. border-radius: 10px;
  2389. font-weight: 600;
  2390. letter-spacing: -0.2px;
  2391. background: linear-gradient(135deg, $primary-color, $primary-dark);
  2392. box-shadow: 0 2px 8px rgba($primary-color, 0.3);
  2393. &:hover {
  2394. transform: translateY(-1px);
  2395. box-shadow: 0 4px 12px rgba($primary-color, 0.4);
  2396. }
  2397. &:active {
  2398. transform: translateY(0);
  2399. box-shadow: 0 1px 4px rgba($primary-color, 0.3);
  2400. }
  2401. }
  2402. .ios-btn.outline.mini {
  2403. background: transparent;
  2404. border: 2px solid $primary-color;
  2405. color: $primary-color;
  2406. box-shadow: none;
  2407. &:hover {
  2408. background: $primary-color;
  2409. color: white;
  2410. box-shadow: 0 2px 8px rgba($primary-color, 0.3);
  2411. }
  2412. }
  2413. }
  2414. .empty-state.small { color: $text-tertiary-dark; font-size: 13px; text-align: center; padding: 8px 0; }
  2415. @media (max-width: 900px) {
  2416. .core-metrics-grid { grid-template-columns: 1fr; }
  2417. .crm-grid { grid-template-columns: 1fr; }
  2418. }
  2419. .core-metric-card:hover {
  2420. border-color: $primary-color;
  2421. box-shadow: 0 4px 12px color-mix(in srgb, $primary-color 10%, transparent);
  2422. transform: translateY(-2px);
  2423. }
  2424. .core-icon {
  2425. width: 48px;
  2426. height: 48px;
  2427. background-color: color-mix(in srgb, $primary-color 15%, transparent);
  2428. border-radius: 12px;
  2429. display: flex;
  2430. align-items: center;
  2431. justify-content: center;
  2432. margin: 0 auto 12px;
  2433. color: $primary-color;
  2434. transition: $transition;
  2435. }
  2436. .core-card:nth-child(2) .core-icon {
  2437. background-color: color-mix(in srgb, $success-color 15%, transparent);
  2438. color: $success-color;
  2439. }
  2440. .core-card:nth-child(3) .core-icon {
  2441. background-color: color-mix(in srgb, $warning-color 15%, transparent);
  2442. color: $warning-color;
  2443. }
  2444. .core-card:nth-child(4) .core-icon {
  2445. background-color: color-mix(in srgb, $danger-color 15%, transparent);
  2446. color: $danger-color;
  2447. }
  2448. .core-number {
  2449. font-size: 24px;
  2450. font-weight: 700;
  2451. color: $text-primary-dark;
  2452. margin-bottom: 6px;
  2453. line-height: 1.2;
  2454. }
  2455. .core-label {
  2456. font-size: 14px;
  2457. color: $text-secondary-dark;
  2458. margin: 0;
  2459. }
  2460. /* 内容网格 */
  2461. .content-grid {
  2462. display: grid;
  2463. grid-template-columns: 1fr 1fr;
  2464. gap: 24px;
  2465. }
  2466. /* 任务列表区块 */
  2467. .tasks-section {
  2468. background-color: $card-background;
  2469. border-radius: $border-radius;
  2470. padding: 24px;
  2471. box-shadow: $shadow-md;
  2472. transition: $transition;
  2473. }
  2474. .tasks-section:hover {
  2475. box-shadow: $shadow-lg;
  2476. }
  2477. /* 通用区块头部 */
  2478. .section-header {
  2479. display: flex;
  2480. align-items: center;
  2481. justify-content: space-between;
  2482. margin-bottom: 20px;
  2483. }
  2484. .section-header h3 {
  2485. font-size: 20px;
  2486. font-weight: 600;
  2487. color: $text-primary-dark;
  2488. margin: 0;
  2489. }
  2490. .section-header .view-all {
  2491. display: flex;
  2492. align-items: center;
  2493. gap: 4px;
  2494. font-size: 14px;
  2495. color: $primary-color;
  2496. text-decoration: none;
  2497. transition: $transition;
  2498. }
  2499. .section-header .view-all:hover {
  2500. color: $primary-dark;
  2501. }
  2502. /* 搜索框样式 */
  2503. .search-box {
  2504. position: relative;
  2505. }
  2506. .search-input {
  2507. padding: 8px 16px;
  2508. border: 1px solid $border-color;
  2509. border-radius: $border-radius;
  2510. font-size: 14px;
  2511. color: $text-primary-dark;
  2512. background-color: $card-background;
  2513. transition: $transition;
  2514. outline: none;
  2515. min-width: 200px;
  2516. }
  2517. .search-input:focus {
  2518. border-color: $primary-color;
  2519. box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
  2520. }
  2521. /* 紧急待办列表 */
  2522. .tasks-list {
  2523. display: flex;
  2524. flex-direction: column;
  2525. gap: 12px;
  2526. }
  2527. .tasks-list.empty {
  2528. text-align: center;
  2529. padding: 40px 20px;
  2530. color: $text-tertiary-dark;
  2531. }
  2532. .tasks-list.empty p {
  2533. font-size: 16px;
  2534. margin: 0;
  2535. }
  2536. /* 任务项目样式 */
  2537. .task-item {
  2538. display: flex;
  2539. align-items: center;
  2540. justify-content: space-between;
  2541. padding: 16px 20px;
  2542. border-radius: $border-radius;
  2543. transition: $transition;
  2544. margin-bottom: 12px;
  2545. position: relative;
  2546. }
  2547. .task-item.completed {
  2548. background-color: #e8f5e9;
  2549. border: 1px solid #c8e6c9;
  2550. }
  2551. .task-item.overdue {
  2552. background-color: #ffebee;
  2553. border: 1px solid #ffcdd2;
  2554. }
  2555. .task-item:hover {
  2556. transform: translateY(-1px);
  2557. }
  2558. /* 任务复选框样式 */
  2559. .task-checkbox {
  2560. margin-right: 16px;
  2561. }
  2562. .task-checkbox input[type="checkbox"] {
  2563. width: 20px;
  2564. height: 20px;
  2565. accent-color: $primary-color;
  2566. border-radius: 4px;
  2567. cursor: pointer;
  2568. }
  2569. /* 任务状态标记 */
  2570. .task-status {
  2571. position: absolute;
  2572. top: 12px;
  2573. right: 12px;
  2574. padding: 4px 12px;
  2575. border-radius: 16px;
  2576. font-size: 12px;
  2577. font-weight: 600;
  2578. text-transform: uppercase;
  2579. letter-spacing: 0.5px;
  2580. }
  2581. .task-status.completed {
  2582. background-color: color-mix(in srgb, $success-color 15%, transparent);
  2583. color: $success-color;
  2584. }
  2585. .task-status.pending {
  2586. background-color: color-mix(in srgb, $warning-color 15%, transparent);
  2587. color: $warning-color;
  2588. }
  2589. .task-status.overdue {
  2590. background-color: color-mix(in srgb, $danger-color 15%, transparent);
  2591. color: $danger-color;
  2592. }
  2593. /* 任务内容 */
  2594. .task-content {
  2595. flex: 1;
  2596. }
  2597. .task-title {
  2598. font-size: 18px;
  2599. font-weight: 600;
  2600. color: $text-primary-dark;
  2601. margin-bottom: 4px;
  2602. line-height: 1.3;
  2603. }
  2604. .task-project {
  2605. font-size: 14px;
  2606. color: $text-secondary-dark;
  2607. margin-bottom: 8px;
  2608. }
  2609. .task-meta {
  2610. font-size: 14px;
  2611. color: $text-tertiary-dark;
  2612. }
  2613. /* 任务进度 */
  2614. .task-progress {
  2615. width: 100%;
  2616. height: 8px;
  2617. background-color: $background-color;
  2618. border-radius: 4px;
  2619. overflow: hidden;
  2620. margin-top: 12px;
  2621. box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  2622. }
  2623. .progress-bar {
  2624. height: 100%;
  2625. background: linear-gradient(90deg, $primary-color, #5e9eff);
  2626. transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  2627. position: relative;
  2628. overflow: hidden;
  2629. border-radius: 4px;
  2630. }
  2631. .progress-bar::after {
  2632. content: '';
  2633. position: absolute;
  2634. top: 0;
  2635. left: 0;
  2636. right: 0;
  2637. bottom: 0;
  2638. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  2639. animation: shimmer 2s infinite;
  2640. }
  2641. @keyframes shimmer {
  2642. 0% {
  2643. transform: translateX(-100%);
  2644. }
  2645. 100% {
  2646. transform: translateX(100%);
  2647. }
  2648. }
  2649. .progress-text {
  2650. font-size: 12px;
  2651. color: $text-tertiary-dark;
  2652. text-align: right;
  2653. margin-top: 4px;
  2654. font-weight: 500;
  2655. }
  2656. /* 任务处理进度条容器 */
  2657. .task-progress-container {
  2658. width: 100%;
  2659. height: 12px;
  2660. background-color: #f5f5f5;
  2661. border-radius: 6px;
  2662. overflow: hidden;
  2663. margin-top: 12px;
  2664. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  2665. }
  2666. .task-progress-bar {
  2667. height: 100%;
  2668. background: linear-gradient(90deg, $primary-color 0%, #5e9eff 100%);
  2669. transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  2670. position: relative;
  2671. overflow: hidden;
  2672. display: flex;
  2673. align-items: center;
  2674. justify-content: flex-end;
  2675. padding-right: 8px;
  2676. border-radius: 6px;
  2677. }
  2678. .task-progress-bar::after {
  2679. content: '';
  2680. position: absolute;
  2681. top: 0;
  2682. left: 0;
  2683. right: 0;
  2684. bottom: 0;
  2685. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  2686. animation: shimmer 1.5s infinite;
  2687. }
  2688. .task-progress-text {
  2689. font-size: 10px;
  2690. color: white;
  2691. font-weight: 600;
  2692. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  2693. z-index: 1;
  2694. }
  2695. /* 任务操作按钮 */
  2696. .task-actions {
  2697. display: flex;
  2698. align-items: center;
  2699. }
  2700. .task-button {
  2701. padding: 6px 12px;
  2702. border: 1px solid $border-color;
  2703. border-radius: $border-radius;
  2704. font-size: 14px;
  2705. font-weight: 500;
  2706. cursor: pointer;
  2707. transition: $transition;
  2708. background-color: $card-background;
  2709. color: $text-secondary-dark;
  2710. min-width: 60px;
  2711. text-align: center;
  2712. }
  2713. .task-button:hover {
  2714. border-color: $primary-color;
  2715. color: $primary-color;
  2716. }
  2717. .task-button.primary {
  2718. background-color: $primary-color;
  2719. color: white;
  2720. border-color: $primary-color;
  2721. }
  2722. .task-button.primary:hover {
  2723. background-color: $primary-dark;
  2724. border-color: $primary-dark;
  2725. color: white;
  2726. }
  2727. .task-button:disabled {
  2728. opacity: 0.6;
  2729. cursor: not-allowed;
  2730. transform: none;
  2731. }
  2732. /* 搜索框样式 */
  2733. .search-box {
  2734. position: relative;
  2735. }
  2736. .search-input {
  2737. padding: 8px 16px;
  2738. border: 1px solid $border-color;
  2739. border-radius: $border-radius;
  2740. font-size: 14px;
  2741. color: $text-primary-dark;
  2742. background-color: $card-background;
  2743. transition: $transition;
  2744. outline: none;
  2745. min-width: 200px;
  2746. }
  2747. .search-input:focus {
  2748. border-color: $primary-color;
  2749. box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
  2750. }
  2751. /* 项目动态流 */
  2752. .project-updates-section {
  2753. background-color: $card-background;
  2754. border-radius: $border-radius;
  2755. padding: 24px;
  2756. box-shadow: $shadow-md;
  2757. transition: $transition;
  2758. }
  2759. .project-updates-section:hover {
  2760. box-shadow: $shadow-lg;
  2761. }
  2762. .project-updates-section.empty {
  2763. text-align: center;
  2764. padding: 60px 20px;
  2765. color: $text-tertiary-dark;
  2766. }
  2767. .project-updates-section.empty p {
  2768. font-size: 16px;
  2769. margin: 0;
  2770. }
  2771. .project-updates-list {
  2772. display: flex;
  2773. flex-direction: column;
  2774. gap: 16px;
  2775. }
  2776. .update-item {
  2777. display: flex;
  2778. gap: 16px;
  2779. padding: 20px;
  2780. border: 1px solid $border-color;
  2781. border-radius: $border-radius;
  2782. transition: $transition;
  2783. &:hover {
  2784. border-color: $primary-color;
  2785. box-shadow: 0 4px 12px color-mix(in srgb, $primary-color 10%, transparent);
  2786. transform: translateY(-2px);
  2787. }
  2788. .update-icon {
  2789. width: 44px;
  2790. height: 44px;
  2791. background-color: $primary-color;
  2792. border-radius: 12px;
  2793. display: flex;
  2794. align-items: center;
  2795. justify-content: center;
  2796. color: white;
  2797. flex-shrink: 0;
  2798. transition: $transition;
  2799. }
  2800. .update-content {
  2801. flex: 1;
  2802. .update-title {
  2803. font-size: 18px;
  2804. font-weight: 600;
  2805. color: $text-primary-dark;
  2806. margin-bottom: 6px;
  2807. line-height: 1.3;
  2808. }
  2809. .update-text {
  2810. font-size: 16px;
  2811. color: $text-secondary-dark;
  2812. margin-bottom: 12px;
  2813. line-height: 1.4;
  2814. }
  2815. .update-meta {
  2816. display: flex;
  2817. align-items: center;
  2818. gap: 20px;
  2819. .update-time {
  2820. font-size: 14px;
  2821. color: $text-tertiary-dark;
  2822. }
  2823. .update-status {
  2824. padding: 4px 12px;
  2825. border-radius: 16px;
  2826. font-size: 14px;
  2827. font-weight: 600;
  2828. transition: $transition;
  2829. &.status-active,
  2830. &.status-info {
  2831. background-color: #e3f2fd;
  2832. color: $primary-color;
  2833. border: 1px solid #bbdefb;
  2834. }
  2835. &.status-completed,
  2836. &.status-success {
  2837. background-color: #e8f5e9;
  2838. color: $success-color;
  2839. border: 1px solid #c8e6c9;
  2840. }
  2841. &.status-warning {
  2842. background-color: #fff3e0;
  2843. color: $warning-color;
  2844. border: 1px solid #ffe0b2;
  2845. }
  2846. &.status-danger {
  2847. background-color: #ffebee;
  2848. color: $danger-color;
  2849. border: 1px solid #ffcdd2;
  2850. }
  2851. }
  2852. }
  2853. }
  2854. }
  2855. /* 回到顶部按钮 */
  2856. .back-to-top {
  2857. position: fixed;
  2858. bottom: 24px;
  2859. right: 24px;
  2860. width: 48px;
  2861. height: 48px;
  2862. border-radius: 50%;
  2863. background-color: $primary-color;
  2864. color: white;
  2865. border: none;
  2866. display: flex;
  2867. align-items: center;
  2868. justify-content: center;
  2869. cursor: pointer;
  2870. box-shadow: $shadow-md;
  2871. transition: $transition;
  2872. opacity: 0;
  2873. visibility: hidden;
  2874. z-index: 1000;
  2875. &.visible {
  2876. opacity: 1;
  2877. visibility: visible;
  2878. }
  2879. &:hover {
  2880. background-color: $primary-dark;
  2881. transform: translateY(-2px);
  2882. box-shadow: $shadow-lg;
  2883. }
  2884. &:active {
  2885. transform: translateY(0);
  2886. }
  2887. }
  2888. /* 响应式设计 */
  2889. @media (max-width: 1024px) {
  2890. .stats-grid {
  2891. grid-template-columns: repeat(2, 1fr);
  2892. }
  2893. .core-metrics-grid {
  2894. grid-template-columns: repeat(2, 1fr);
  2895. }
  2896. }
  2897. @media (max-width: 768px) {
  2898. .welcome-section {
  2899. padding: 16px 20px;
  2900. margin-bottom: 16px;
  2901. }
  2902. .welcome-section h2 {
  2903. font-size: 20px;
  2904. }
  2905. .welcome-section p {
  2906. font-size: 13px;
  2907. }
  2908. .stats-grid {
  2909. grid-template-columns: 1fr;
  2910. gap: 12px;
  2911. }
  2912. .content-grid {
  2913. grid-template-columns: 1fr;
  2914. gap: 16px;
  2915. margin-top: 12px;
  2916. }
  2917. .crm-grid {
  2918. grid-template-columns: 1fr;
  2919. gap: 12px;
  2920. }
  2921. .core-metrics-grid {
  2922. grid-template-columns: 1fr;
  2923. gap: 10px;
  2924. }
  2925. .crm-item {
  2926. padding: 10px 0;
  2927. .strategy-info {
  2928. .recommended-phrase {
  2929. font-size: 11px;
  2930. }
  2931. .case-strategy {
  2932. font-size: 10px;
  2933. }
  2934. }
  2935. }
  2936. .section-header {
  2937. flex-direction: column;
  2938. align-items: flex-start;
  2939. gap: 12px;
  2940. h3 {
  2941. font-size: 18px;
  2942. }
  2943. }
  2944. .task-title,
  2945. .update-title {
  2946. font-size: 16px !important;
  2947. }
  2948. .task-project,
  2949. .update-text {
  2950. font-size: 14px !important;
  2951. }
  2952. }
  2953. @media (max-width: 768px) {
  2954. // 客服工作台容器
  2955. .customer-service-dashboard {
  2956. padding: 12px;
  2957. }
  2958. // 欢迎区域
  2959. .welcome-section {
  2960. padding: 16px;
  2961. h1 {
  2962. font-size: 22px;
  2963. }
  2964. .welcome-subtitle {
  2965. font-size: 13px;
  2966. }
  2967. }
  2968. // 统计卡片
  2969. .stats-dashboard {
  2970. grid-template-columns: repeat(2, 1fr);
  2971. gap: 12px;
  2972. .stat-card {
  2973. padding: 16px;
  2974. .stat-value {
  2975. font-size: 24px;
  2976. }
  2977. .stat-label {
  2978. font-size: 12px;
  2979. }
  2980. }
  2981. }
  2982. // CRM队列
  2983. .crm-queues {
  2984. .queue-grid {
  2985. grid-template-columns: 1fr;
  2986. gap: 12px;
  2987. }
  2988. .queue-card {
  2989. .card-header h3 {
  2990. font-size: 16px;
  2991. }
  2992. .crm-item {
  2993. padding: 12px;
  2994. .avatar {
  2995. width: 40px;
  2996. height: 40px;
  2997. }
  2998. .info {
  2999. .name {
  3000. font-size: 14px;
  3001. }
  3002. .meta {
  3003. font-size: 12px;
  3004. flex-wrap: wrap;
  3005. }
  3006. }
  3007. }
  3008. }
  3009. }
  3010. // 紧急待办面板
  3011. .tasks-panel,
  3012. .ios-panel {
  3013. width: 100vw;
  3014. max-width: 100vw;
  3015. height: 90vh;
  3016. max-height: 90vh;
  3017. border-radius: 16px 16px 0 0;
  3018. bottom: 0;
  3019. top: auto;
  3020. .panel-header {
  3021. padding: 16px;
  3022. h2 {
  3023. font-size: 18px;
  3024. }
  3025. }
  3026. .panel-body {
  3027. padding: 16px;
  3028. .form-group {
  3029. margin-bottom: 16px;
  3030. label {
  3031. font-size: 14px;
  3032. }
  3033. input,
  3034. select,
  3035. textarea {
  3036. font-size: 16px; // 防止iOS自动缩放
  3037. padding: 12px;
  3038. }
  3039. }
  3040. }
  3041. .panel-footer {
  3042. padding: 16px;
  3043. flex-direction: column;
  3044. gap: 12px;
  3045. button {
  3046. width: 100%;
  3047. }
  3048. }
  3049. }
  3050. // 任务列表
  3051. .tasks-list {
  3052. gap: 12px;
  3053. .task-item,
  3054. .task-item-enhanced {
  3055. padding: 14px;
  3056. .task-header,
  3057. .task-header-row {
  3058. flex-direction: column;
  3059. align-items: flex-start;
  3060. gap: 10px;
  3061. .task-title {
  3062. font-size: 15px;
  3063. }
  3064. .task-priority {
  3065. font-size: 11px;
  3066. padding: 3px 8px;
  3067. }
  3068. }
  3069. .task-info,
  3070. .task-main-content {
  3071. .task-detail {
  3072. font-size: 13px;
  3073. }
  3074. .task-tags {
  3075. flex-wrap: wrap;
  3076. gap: 6px;
  3077. .tag {
  3078. font-size: 11px;
  3079. padding: 3px 8px;
  3080. }
  3081. }
  3082. }
  3083. .task-actions,
  3084. .task-actions-row {
  3085. flex-direction: column;
  3086. gap: 8px;
  3087. margin-top: 12px;
  3088. button {
  3089. width: 100%;
  3090. justify-content: center;
  3091. }
  3092. }
  3093. }
  3094. }
  3095. // 快速操作按钮
  3096. .quick-actions {
  3097. grid-template-columns: repeat(2, 1fr);
  3098. gap: 12px;
  3099. .action-btn {
  3100. padding: 16px;
  3101. .action-icon {
  3102. width: 40px;
  3103. height: 40px;
  3104. }
  3105. .action-label {
  3106. font-size: 13px;
  3107. }
  3108. }
  3109. }
  3110. // 日历视图
  3111. .calendar-view {
  3112. .calendar-header {
  3113. flex-direction: column;
  3114. gap: 12px;
  3115. .month-selector {
  3116. width: 100%;
  3117. justify-content: space-between;
  3118. }
  3119. }
  3120. .calendar-grid {
  3121. .calendar-day {
  3122. min-height: 60px;
  3123. padding: 4px;
  3124. .day-number {
  3125. font-size: 12px;
  3126. }
  3127. .event-dot {
  3128. width: 4px;
  3129. height: 4px;
  3130. }
  3131. }
  3132. }
  3133. }
  3134. }
  3135. @media (max-width: 480px) {
  3136. .customer-service-dashboard {
  3137. padding: 8px;
  3138. }
  3139. .welcome-section {
  3140. padding: 12px 16px;
  3141. h1 {
  3142. font-size: 20px;
  3143. }
  3144. }
  3145. .stats-dashboard {
  3146. grid-template-columns: 1fr;
  3147. margin-bottom: 16px;
  3148. .stat-card {
  3149. padding: 14px;
  3150. .stat-value {
  3151. font-size: 22px;
  3152. }
  3153. }
  3154. }
  3155. .crm-queues {
  3156. margin-bottom: 16px;
  3157. }
  3158. .crm-item {
  3159. .avatar.small {
  3160. width: 24px;
  3161. height: 24px;
  3162. font-size: 11px;
  3163. }
  3164. .info .name {
  3165. font-size: 14px;
  3166. }
  3167. .info .meta {
  3168. font-size: 11px;
  3169. gap: 6px;
  3170. }
  3171. }
  3172. .quick-actions {
  3173. grid-template-columns: 1fr;
  3174. }
  3175. }
  3176. // 🆕 待办事项双栏布局样式
  3177. .urgent-tasks-section {
  3178. .section-header {
  3179. display: flex;
  3180. align-items: center;
  3181. justify-content: space-between;
  3182. padding: 16px 20px;
  3183. border-bottom: 1px solid #e5e7eb;
  3184. h2 {
  3185. margin: 0;
  3186. font-size: 18px;
  3187. font-weight: 600;
  3188. color: #1c1c1e;
  3189. }
  3190. }
  3191. // 双栏容器
  3192. .todo-dual-columns {
  3193. display: grid;
  3194. grid-template-columns: 1fr 1fr;
  3195. gap: 20px;
  3196. padding: 20px;
  3197. @media (max-width: 1200px) {
  3198. grid-template-columns: 1fr;
  3199. gap: 16px;
  3200. }
  3201. }
  3202. // 列样式
  3203. .todo-column {
  3204. display: flex;
  3205. flex-direction: column;
  3206. background: #ffffff;
  3207. border-radius: 12px;
  3208. border: 1px solid #e5e7eb;
  3209. overflow: hidden;
  3210. .column-header {
  3211. padding: 16px;
  3212. background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  3213. color: white;
  3214. h3 {
  3215. margin: 0;
  3216. font-size: 16px;
  3217. font-weight: 600;
  3218. display: flex;
  3219. align-items: center;
  3220. gap: 8px;
  3221. .task-count {
  3222. margin-left: auto;
  3223. font-size: 14px;
  3224. font-weight: 500;
  3225. background: rgba(255, 255, 255, 0.2);
  3226. padding: 2px 8px;
  3227. border-radius: 12px;
  3228. &.urgent {
  3229. background: rgba(239, 68, 68, 0.3);
  3230. }
  3231. }
  3232. }
  3233. .column-subtitle {
  3234. font-size: 12px;
  3235. opacity: 0.8;
  3236. margin-top: 4px;
  3237. display: block;
  3238. }
  3239. }
  3240. .loading-state,
  3241. .error-state,
  3242. .empty-state {
  3243. padding: 40px 20px;
  3244. text-align: center;
  3245. color: #6b7280;
  3246. svg {
  3247. margin-bottom: 12px;
  3248. }
  3249. p {
  3250. margin: 8px 0;
  3251. font-size: 14px;
  3252. &.hint {
  3253. font-size: 12px;
  3254. color: #9ca3af;
  3255. }
  3256. }
  3257. .btn-retry {
  3258. margin-top: 12px;
  3259. padding: 8px 16px;
  3260. background: #007aff;
  3261. color: white;
  3262. border: none;
  3263. border-radius: 6px;
  3264. cursor: pointer;
  3265. font-size: 14px;
  3266. &:hover {
  3267. background: #0051a8;
  3268. }
  3269. }
  3270. }
  3271. .todo-list-compact {
  3272. flex: 1;
  3273. overflow-y: auto;
  3274. max-height: 600px;
  3275. .todo-item-compact {
  3276. display: flex;
  3277. gap: 12px;
  3278. padding: 12px;
  3279. border-bottom: 1px solid #f3f4f6;
  3280. transition: background-color 0.2s ease;
  3281. &:hover {
  3282. background-color: #f9fafb;
  3283. }
  3284. .priority-indicator {
  3285. width: 4px;
  3286. flex-shrink: 0;
  3287. border-radius: 2px;
  3288. &[data-priority="urgent"],
  3289. &[data-priority="critical"] {
  3290. background: #dc2626;
  3291. }
  3292. &[data-priority="high"] {
  3293. background: #f97316;
  3294. }
  3295. &[data-priority="medium"] {
  3296. background: #f59e0b;
  3297. }
  3298. &[data-priority="low"] {
  3299. background: #6b7280;
  3300. }
  3301. }
  3302. .task-content {
  3303. flex: 1;
  3304. min-width: 0;
  3305. .task-header {
  3306. display: flex;
  3307. align-items: center;
  3308. gap: 8px;
  3309. margin-bottom: 6px;
  3310. .task-title {
  3311. font-size: 13px;
  3312. font-weight: 600;
  3313. color: #1c1c1e;
  3314. flex: 1;
  3315. white-space: nowrap;
  3316. overflow: hidden;
  3317. text-overflow: ellipsis;
  3318. }
  3319. .task-badges {
  3320. display: flex;
  3321. gap: 6px;
  3322. flex-shrink: 0;
  3323. .badge {
  3324. display: inline-block;
  3325. padding: 2px 8px;
  3326. border-radius: 4px;
  3327. font-size: 11px;
  3328. font-weight: 600;
  3329. white-space: nowrap;
  3330. &.badge-priority {
  3331. &[data-priority="urgent"],
  3332. &[data-priority="critical"] {
  3333. background: #fee2e2;
  3334. color: #dc2626;
  3335. }
  3336. &[data-priority="high"] {
  3337. background: #ffedd5;
  3338. color: #f97316;
  3339. }
  3340. &[data-priority="medium"] {
  3341. background: #fef3c7;
  3342. color: #f59e0b;
  3343. }
  3344. &[data-priority="low"] {
  3345. background: #f3f4f6;
  3346. color: #6b7280;
  3347. }
  3348. }
  3349. &.badge-type {
  3350. background: #dbeafe;
  3351. color: #1e40af;
  3352. }
  3353. }
  3354. }
  3355. }
  3356. .task-meta {
  3357. font-size: 12px;
  3358. color: #6b7280;
  3359. margin-bottom: 6px;
  3360. display: flex;
  3361. gap: 8px;
  3362. flex-wrap: wrap;
  3363. .project-info,
  3364. .designer-info {
  3365. display: flex;
  3366. align-items: center;
  3367. gap: 4px;
  3368. white-space: nowrap;
  3369. overflow: hidden;
  3370. text-overflow: ellipsis;
  3371. }
  3372. }
  3373. .task-footer {
  3374. font-size: 11px;
  3375. color: #9ca3af;
  3376. display: flex;
  3377. gap: 12px;
  3378. flex-wrap: wrap;
  3379. .time-info,
  3380. .assignee-info {
  3381. display: flex;
  3382. align-items: center;
  3383. gap: 4px;
  3384. white-space: nowrap;
  3385. }
  3386. }
  3387. }
  3388. .task-actions {
  3389. display: flex;
  3390. gap: 6px;
  3391. flex-shrink: 0;
  3392. .btn-action {
  3393. padding: 6px 10px;
  3394. border: 1px solid #d1d5db;
  3395. background: white;
  3396. color: #6b7280;
  3397. border-radius: 6px;
  3398. cursor: pointer;
  3399. font-size: 12px;
  3400. display: flex;
  3401. align-items: center;
  3402. gap: 4px;
  3403. transition: all 0.2s ease;
  3404. white-space: nowrap;
  3405. &:hover {
  3406. background: #f3f4f6;
  3407. color: #1c1c1e;
  3408. border-color: #9ca3af;
  3409. }
  3410. &.btn-view {
  3411. color: #007aff;
  3412. border-color: #007aff;
  3413. &:hover {
  3414. background: #f0f9ff;
  3415. }
  3416. }
  3417. &.btn-mark-read {
  3418. color: #34c759;
  3419. border-color: #34c759;
  3420. &:hover {
  3421. background: #f0fdf4;
  3422. }
  3423. }
  3424. }
  3425. }
  3426. }
  3427. }
  3428. }
  3429. // 🆕 紧急事件样式(复用设计师组长端)
  3430. .todo-column-urgent {
  3431. .column-header {
  3432. background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  3433. }
  3434. // 紧急事件特定样式
  3435. .urgent-item {
  3436. background: #fff8f8;
  3437. border-left-width: 4px;
  3438. &[data-urgency="critical"] {
  3439. border-left-color: #dc2626;
  3440. background: #fef2f2;
  3441. }
  3442. &[data-urgency="high"] {
  3443. border-left-color: #f97316;
  3444. background: #fff7ed;
  3445. }
  3446. &[data-urgency="medium"] {
  3447. border-left-color: #f59e0b;
  3448. background: #fffbeb;
  3449. }
  3450. }
  3451. .urgency-indicator {
  3452. width: 4px;
  3453. &[data-urgency="critical"] {
  3454. background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  3455. box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
  3456. }
  3457. &[data-urgency="high"] {
  3458. background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  3459. }
  3460. &[data-urgency="medium"] {
  3461. background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  3462. }
  3463. }
  3464. .badge-urgency {
  3465. &[data-urgency="critical"] {
  3466. background: #fee2e2;
  3467. color: #dc2626;
  3468. font-weight: 700;
  3469. }
  3470. &[data-urgency="high"] {
  3471. background: #ffedd5;
  3472. color: #f97316;
  3473. }
  3474. &[data-urgency="medium"] {
  3475. background: #fef3c7;
  3476. color: #f59e0b;
  3477. }
  3478. }
  3479. .badge-event-type {
  3480. background: #dbeafe;
  3481. color: #1e40af;
  3482. }
  3483. .task-description {
  3484. font-size: 13px;
  3485. color: #6b7280;
  3486. margin: 8px 0;
  3487. line-height: 1.5;
  3488. }
  3489. .deadline-info {
  3490. &.overdue {
  3491. color: #dc2626;
  3492. font-weight: 600;
  3493. }
  3494. .overdue-label {
  3495. color: #dc2626;
  3496. font-weight: 600;
  3497. }
  3498. .upcoming-label {
  3499. color: #f97316;
  3500. }
  3501. .today-label {
  3502. color: #f59e0b;
  3503. font-weight: 600;
  3504. }
  3505. }
  3506. .completion-info {
  3507. font-weight: 500;
  3508. }
  3509. }
  3510. }