| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088 |
- @use "sass:color";
- /* 颜色变量 */
- $primary-color: #007aff;
- $primary-dark: #0051a8;
- $success-color: #34c759;
- $warning-color: #ff9500;
- $danger-color: #ff3b30;
- $info-color: #5ac8fa;
- $text-primary-dark: #1c1c1e;
- $text-secondary-dark: #636366;
- $text-tertiary-dark: #8e8e93;
- $border-color: #e5e5ea;
- $background-color: #f2f2f7;
- $card-background: #ffffff;
- $shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
- $shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
- $shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
- $border-radius: 12px;
- $transition: all 0.2s ease;
- /* iOS设计风格颜色变量 */
- $ios-primary: #007aff;
- $ios-primary-dark: #0051a8;
- $ios-secondary: #5856d6;
- $ios-success: #34c759;
- $ios-warning: #ff9500;
- $ios-danger: #ff3b30;
- $ios-background: #f2f2f7;
- $ios-card-background: #ffffff;
- $ios-border: #e5e5ea;
- $ios-text: #1c1c1e;
- $ios-text-secondary: #636366;
- $ios-text-tertiary: #8e8e93;
- $ios-button-background: #f2f2f7;
- /* iOS设计风格圆角变量 */
- $ios-radius-sm: 8px;
- $ios-radius-md: 12px;
- $ios-radius-lg: 16px;
- $ios-radius-xl: 22px;
- /* 企业微信提示动画 */
- @keyframes slideInRight {
- from {
- transform: translateX(100%);
- opacity: 0;
- }
- to {
- transform: translateX(0);
- opacity: 1;
- }
- }
- /* 新增:待跟进尾款项目列表样式 */
- .pending-final-payment-section {
- background: $card-background;
- border-radius: $border-radius;
- padding: 24px;
- margin-bottom: 24px;
- box-shadow: $shadow-sm;
- border: 1px solid $border-color;
- .section-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 20px;
- h3 {
- margin: 0;
- font-size: 18px;
- font-weight: 600;
- color: $text-primary-dark;
- }
- .section-stats {
- display: flex;
- align-items: center;
- gap: 8px;
- .stat-badge {
- background: $danger-color;
- color: white;
- padding: 4px 8px;
- border-radius: 12px;
- font-size: 12px;
- font-weight: 600;
- min-width: 20px;
- text-align: center;
- &.urgent {
- background: $danger-color;
- animation: pulse 2s infinite;
- }
- }
- .stat-label {
- font-size: 14px;
- color: $text-secondary-dark;
- }
- }
- }
- .final-payment-list {
- display: flex;
- flex-direction: column;
- gap: 16px;
- .empty-state {
- text-align: center;
- padding: 40px 20px;
- color: $text-tertiary-dark;
- svg {
- margin-bottom: 16px;
- opacity: 0.5;
- }
- p {
- margin: 0;
- font-size: 14px;
- }
- }
- .final-payment-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 20px;
- border: 2px solid $border-color;
- border-radius: $ios-radius-lg;
- background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- position: relative;
- overflow: hidden;
- &::before {
- content: '';
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- width: 4px;
- background: linear-gradient(180deg, $primary-color 0%, lighten($primary-color, 15%) 100%);
- transition: width 0.3s ease;
- }
- &:hover {
- transform: translateY(-2px);
- box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
- border-color: $primary-color;
- &::before {
- width: 6px;
- }
- }
- &.overdue {
- border-color: rgba($danger-color, 0.3);
- background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
- &::before {
- background: linear-gradient(180deg, $danger-color 0%, lighten($danger-color, 15%) 100%);
- }
- &:hover {
- box-shadow: 0 8px 24px rgba(255, 59, 48, 0.15);
- border-color: $danger-color;
- }
- }
- .project-info {
- flex: 1;
- .project-header {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- margin-bottom: 12px;
- .project-name {
- margin: 0;
- font-size: 17px;
- font-weight: 600;
- color: $text-primary-dark;
- letter-spacing: -0.3px;
- flex: 1;
- }
- .payment-summary {
- display: flex;
- flex-direction: column;
- align-items: flex-end;
- gap: 4px;
- .payment-amount {
- font-size: 22px;
- font-weight: 700;
-
- &.remaining {
- background: linear-gradient(135deg, $danger-color 0%, darken($danger-color, 10%) 100%);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- background-clip: text;
- animation: priceGlow 2s ease-in-out infinite;
- }
- }
- .payment-details {
- display: flex;
- flex-direction: column;
- align-items: flex-end;
- gap: 2px;
- small {
- font-size: 11px;
- color: $text-tertiary-dark;
- font-weight: 500;
- }
- }
- }
- }
- .customer-info {
- .customer-details {
- display: flex;
- align-items: center;
- gap: 12px;
- margin-bottom: 10px;
- flex-wrap: wrap;
- .icon-user, .icon-phone {
- opacity: 0.6;
- flex-shrink: 0;
- }
- .customer-name {
- font-size: 14px;
- font-weight: 500;
- color: $text-primary-dark;
- display: flex;
- align-items: center;
- gap: 6px;
- }
- .customer-phone {
- font-size: 14px;
- color: $text-secondary-dark;
- display: flex;
- align-items: center;
- gap: 6px;
- font-family: 'SF Mono', Monaco, monospace;
- }
- }
- .project-meta {
- display: flex;
- justify-content: space-between;
- align-items: center;
- gap: 12px;
- .due-date {
- font-size: 13px;
- color: $text-tertiary-dark;
- display: flex;
- align-items: center;
- gap: 6px;
- svg {
- opacity: 0.7;
- }
- }
- .status-badge {
- padding: 6px 12px;
- border-radius: 20px;
- font-size: 12px;
- font-weight: 600;
- display: inline-flex;
- align-items: center;
- gap: 4px;
- transition: all 0.3s ease;
- &.pending {
- background: linear-gradient(135deg, rgba($warning-color, 0.15) 0%, rgba($warning-color, 0.08) 100%);
- color: darken($warning-color, 5%);
- border: 1px solid rgba($warning-color, 0.3);
- }
- &.warning {
- background: linear-gradient(135deg, rgba(#ff9500, 0.15) 0%, rgba(#ff9500, 0.08) 100%);
- color: darken(#ff9500, 5%);
- border: 1px solid rgba(#ff9500, 0.3);
- }
- &.overdue {
- background: linear-gradient(135deg, rgba($danger-color, 0.15) 0%, rgba($danger-color, 0.08) 100%);
- color: darken($danger-color, 5%);
- border: 1px solid rgba($danger-color, 0.3);
- animation: badgePulse 2s ease-in-out infinite;
- }
- .overdue-days {
- font-size: 11px;
- opacity: 0.9;
- }
- }
- }
- }
- // 进度条样式
- .payment-progress-bar {
- margin-top: 12px;
- padding-top: 12px;
- border-top: 1px solid rgba($border-color, 0.5);
- .progress-info {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 6px;
- .progress-label {
- font-size: 12px;
- color: $text-tertiary-dark;
- font-weight: 500;
- }
- .progress-percent {
- font-size: 12px;
- font-weight: 600;
- color: $primary-color;
- }
- }
- .progress-track {
- height: 6px;
- background: rgba($border-color, 0.3);
- border-radius: 3px;
- overflow: hidden;
- position: relative;
- .progress-fill {
- height: 100%;
- background: linear-gradient(90deg, $primary-color 0%, lighten($primary-color, 10%) 100%);
- border-radius: 3px;
- transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
- position: relative;
- &::after {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: linear-gradient(90deg,
- transparent 0%,
- rgba(255, 255, 255, 0.3) 50%,
- transparent 100%);
- animation: shimmer 2s infinite;
- }
- }
- }
- }
- }
- // 警告状态样式
- &.warning {
- border-color: rgba(#ff9500, 0.3);
- background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
- &::before {
- background: linear-gradient(180deg, #ff9500 0%, lighten(#ff9500, 15%) 100%);
- }
- &:hover {
- box-shadow: 0 8px 24px rgba(255, 149, 0, 0.15);
- border-color: #ff9500;
- }
- }
- .payment-actions {
- display: flex;
- flex-direction: column;
- gap: 10px;
- margin-left: 20px;
- button {
- &.mini {
- padding: 10px 16px;
- font-size: 13px;
- border-radius: $ios-radius-md;
- white-space: nowrap;
- font-weight: 500;
- display: flex;
- align-items: center;
- gap: 6px;
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- border: none;
- cursor: pointer;
- letter-spacing: -0.2px;
- svg {
- width: 16px;
- height: 16px;
- stroke-width: 2.5;
- }
- }
- }
- .btn-primary {
- background: linear-gradient(135deg, $primary-color 0%, darken($primary-color, 8%) 100%);
- color: white;
- box-shadow: 0 2px 8px rgba($primary-color, 0.3);
- &:hover:not(:disabled) {
- background: linear-gradient(135deg, darken($primary-color, 5%) 0%, darken($primary-color, 13%) 100%);
- box-shadow: 0 4px 12px rgba($primary-color, 0.4);
- transform: translateY(-1px);
- }
- &:active:not(:disabled) {
- transform: translateY(0);
- }
- &:disabled {
- background: $text-tertiary-dark;
- cursor: not-allowed;
- opacity: 0.6;
- box-shadow: none;
- }
- }
- .btn-secondary {
- background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
- color: $text-primary-dark;
- border: 1px solid $border-color;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
- &:hover:not(:disabled) {
- background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
- transform: translateY(-1px);
- border-color: darken($border-color, 10%);
- }
- &:active:not(:disabled) {
- transform: translateY(0);
- }
- }
- }
- }
- }
- }
- // 进度条动画
- @keyframes shimmer {
- 0% {
- transform: translateX(-100%);
- }
- 100% {
- transform: translateX(100%);
- }
- }
- // ==================== 待办任务样式(复用组长端设计) ====================
- .todo-section-customer-service {
- background-color: white;
- border-radius: 12px;
- padding: 24px;
- margin-bottom: 24px;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
-
- .section-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 20px;
-
- h2 {
- font-size: 20px;
- font-weight: 600;
- color: #111827;
- display: flex;
- align-items: center;
- gap: 8px;
- margin: 0;
-
- .task-count {
- font-size: 16px;
- color: #6b7280;
- font-weight: 400;
- }
- }
-
- .btn-refresh {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 8px 16px;
- background: #f3f4f6;
- border: 1px solid #e5e7eb;
- border-radius: 6px;
- font-size: 14px;
- color: #374151;
- cursor: pointer;
- transition: all 0.2s;
-
- &:hover:not(:disabled) {
- background: #e5e7eb;
- border-color: #d1d5db;
- }
-
- &:disabled {
- opacity: 0.6;
- cursor: not-allowed;
- }
-
- svg.rotating {
- animation: rotate 1s linear infinite;
- }
- }
- }
-
- // 加载/错误/空状态
- .loading-state,
- .error-state,
- .empty-state {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 48px 24px;
- text-align: center;
-
- .spinner {
- width: 40px;
- height: 40px;
- border: 4px solid #f3f4f6;
- border-top-color: #667eea;
- border-radius: 50%;
- animation: rotate 1s linear infinite;
- }
-
- p {
- margin-top: 16px;
- font-size: 14px;
- color: #6b7280;
-
- &.hint {
- font-size: 13px;
- color: #9ca3af;
- margin-top: 8px;
- }
- }
-
- .btn-retry {
- margin-top: 16px;
- padding: 8px 20px;
- background: #667eea;
- color: white;
- border: none;
- border-radius: 6px;
- font-size: 14px;
- cursor: pointer;
- transition: background 0.2s;
-
- &:hover {
- background: #5568d3;
- }
- }
- }
-
- // 紧凑列表
- .todo-list-compact {
- display: flex;
- flex-direction: column;
- gap: 12px;
-
- .todo-item-compact {
- position: relative;
- display: flex;
- align-items: stretch;
- background: #fafafa;
- border: 1px solid #e5e7eb;
- border-radius: 8px;
- overflow: hidden;
- transition: all 0.2s;
- cursor: pointer;
-
- &:hover {
- background: #f9fafb;
- border-color: #d1d5db;
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
- transform: translateY(-1px);
- }
-
- // 优先级指示条
- .priority-indicator {
- width: 4px;
- flex-shrink: 0;
- border-radius: 2px 0 0 2px;
-
- &[data-priority="urgent"],
- &[data-priority="critical"] {
- background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
- }
-
- &[data-priority="high"] {
- background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
- }
-
- &[data-priority="medium"] {
- background: linear-gradient(180deg, #eab308 0%, #ca8a04 100%);
- }
-
- &[data-priority="low"] {
- background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
- }
- }
-
- // 主要内容区
- .task-content {
- flex: 1;
- padding: 16px;
- min-width: 0;
-
- .task-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 12px;
- margin-bottom: 10px;
-
- .task-title {
- font-size: 15px;
- font-weight: 500;
- color: #111827;
- flex: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- margin: 0;
- }
-
- .task-badges {
- display: flex;
- align-items: center;
- gap: 6px;
- flex-shrink: 0;
-
- .badge {
- padding: 3px 8px;
- border-radius: 4px;
- font-size: 11px;
- font-weight: 600;
- white-space: nowrap;
-
- &.badge-priority {
- &[data-priority="urgent"],
- &[data-priority="critical"] {
- background: #fef2f2;
- color: #dc2626;
- border: 1px solid #fecaca;
- }
-
- &[data-priority="high"] {
- background: #fff7ed;
- color: #ea580c;
- border: 1px solid #fed7aa;
- }
-
- &[data-priority="medium"] {
- background: #fefce8;
- color: #ca8a04;
- border: 1px solid #fef08a;
- }
-
- &[data-priority="low"] {
- background: #f9fafb;
- color: #6b7280;
- border: 1px solid #e5e7eb;
- }
- }
-
- &.badge-type {
- background: #eff6ff;
- color: #2563eb;
- border: 1px solid #dbeafe;
- }
- }
- }
- }
-
- .task-meta {
- display: flex;
- align-items: center;
- gap: 12px;
- flex-wrap: wrap;
- margin-bottom: 8px;
- font-size: 13px;
- color: #6b7280;
-
- span {
- display: flex;
- align-items: center;
- gap: 4px;
- }
-
- .project-info {
- display: flex;
- align-items: center;
- gap: 4px;
- color: #374151;
- font-weight: 500;
-
- svg {
- flex-shrink: 0;
- color: #9ca3af;
- }
- }
- }
-
- .task-footer {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 12px;
- font-size: 12px;
- color: #9ca3af;
-
- span {
- display: flex;
- align-items: center;
- gap: 4px;
-
- svg {
- flex-shrink: 0;
- }
- }
-
- .time-info {
- cursor: help;
- }
-
- .assignee-info {
- color: #6b7280;
- }
-
- .due-date {
- &.overdue {
- color: #dc2626;
- font-weight: 500;
- }
- }
- }
- }
-
- // 操作按钮区
- .task-actions {
- display: flex;
- flex-direction: column;
- gap: 8px;
- padding: 16px;
- border-left: 1px solid #e5e7eb;
- background: white;
-
- .btn-action {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 6px;
- padding: 8px 12px;
- border: 1px solid #d1d5db;
- border-radius: 4px;
- font-size: 12px;
- cursor: pointer;
- transition: all 0.2s;
- white-space: nowrap;
- background: white;
-
- svg {
- flex-shrink: 0;
- }
-
- &.btn-view {
- background: #667eea;
- color: white;
- border-color: #667eea;
-
- &:hover {
- background: #5568d3;
- border-color: #5568d3;
- }
- }
-
- &.btn-mark-read {
- background: white;
- color: #6b7280;
-
- &:hover {
- background: #f9fafb;
- border-color: #9ca3af;
- color: #374151;
- }
- }
- }
- }
- }
- }
-
- // 响应式布局
- @media (max-width: 768px) {
- padding: 16px;
-
- .section-header {
- flex-direction: column;
- align-items: flex-start;
- gap: 12px;
- }
-
- .todo-list-compact {
- .todo-item-compact {
- flex-direction: column;
-
- .task-actions {
- flex-direction: row;
- border-left: none;
- border-top: 1px solid #e5e7eb;
- padding: 12px;
-
- .btn-action {
- flex: 1;
- }
- }
- }
- }
- }
- }
- @keyframes rotate {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
- }
- @keyframes pulse {
- 0% {
- transform: scale(1);
- }
- 50% {
- transform: scale(1.05);
- }
- 100% {
- transform: scale(1);
- }
- }
- @keyframes priceGlow {
- 0%, 100% {
- filter: brightness(1);
- text-shadow: 0 0 0 transparent;
- }
- 50% {
- filter: brightness(1.2);
- text-shadow: 0 0 8px rgba(255, 59, 48, 0.3);
- }
- }
- @keyframes badgePulse {
- 0%, 100% {
- transform: scale(1);
- box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4);
- }
- 50% {
- transform: scale(1.05);
- box-shadow: 0 0 0 4px rgba(255, 59, 48, 0);
- }
- }
- @keyframes slideOutRight {
- from {
- transform: translateX(0);
- opacity: 1;
- }
- to {
- transform: translateX(100%);
- opacity: 0;
- }
- }
- /* 企业微信提示样式 */
- .wechat-work-tip {
- .tip-content {
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
-
- .tip-icon {
- font-size: 20px;
- text-align: center;
- }
-
- .tip-text {
- font-weight: 600;
- line-height: 1.4;
- }
-
- .tip-subtext {
- font-size: 12px;
- opacity: 0.9;
- line-height: 1.3;
- }
- }
- /* iOS风格的模态框覆盖层 */
- .ios-modal-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 1000;
- animation: fadeIn 0.3s ease;
- }
- /* iOS风格的面板 */
- .ios-panel {
- background-color: $ios-card-background;
- border-radius: $ios-radius-xl;
- width: 90%;
- max-width: 500px;
- max-height: 80vh;
- overflow: hidden;
- box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
- transform: scale(0.95);
- opacity: 0;
- transition: transform 0.3s ease, opacity 0.3s ease;
- }
- .ios-panel.ios-panel-visible {
- transform: scale(1);
- opacity: 1;
- }
- /* iOS面板头部 */
- .ios-panel-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 16px 20px;
- border-bottom: 1px solid $ios-border;
- }
- .ios-panel-header h3 {
- font-size: 18px;
- font-weight: 600;
- color: $ios-text;
- margin: 0;
- }
- .ios-close-button {
- background: none;
- border: none;
- padding: 8px;
- cursor: pointer;
- color: $ios-text-secondary;
- transition: color 0.2s ease;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .ios-close-button:hover {
- color: $ios-text;
- background-color: $ios-button-background;
- }
- /* iOS面板内容 */
- .ios-panel-content {
- padding: 20px;
- overflow-y: auto;
- max-height: 60vh;
- }
- /* 表单样式 */
- .form-group {
- margin-bottom: 20px;
- }
- .form-group label {
- display: block;
- font-size: 14px;
- font-weight: 500;
- color: $ios-text-secondary;
- margin-bottom: 8px;
- }
- /* iOS风格的表单输入框 */
- .ios-input {
- width: 100%;
- padding: 10px 12px;
- border: 1px solid $border-color;
- border-radius: 8px;
- font-size: 16px;
- background-color: white;
- transition: all 0.3s ease;
- outline: none;
- color: $ios-text;
- &:focus {
- border-color: $primary-color;
- box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
- }
- &::placeholder {
- color: $ios-text-secondary;
- }
- }
- /* 截止时间显示区域 */
- .deadline-display {
- position: relative;
- cursor: pointer;
- padding-right: 30px !important;
- .dropdown-arrow {
- position: absolute;
- right: 12px;
- top: 50%;
- transform: translateY(-50%);
- transition: transform 0.3s ease;
- color: $ios-text-secondary;
- }
- .dropdown-arrow.rotate {
- transform: translateY(-50%) rotate(180deg);
- }
- }
- /* 下拉选择框 */
- .deadline-dropdown {
- position: absolute;
- top: 100%;
- left: 0;
- right: 0;
- margin-top: 5px;
- background-color: white;
- border: 1px solid $border-color;
- border-radius: 8px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- z-index: 1000;
- max-height: 300px;
- overflow-y: auto;
- opacity: 0;
- visibility: hidden;
- transition: all 0.3s ease;
- }
- .deadline-dropdown.visible {
- opacity: 1;
- visibility: visible;
- }
- /* 下拉选项 */
- .dropdown-option {
- padding: 12px 16px;
- cursor: pointer;
- transition: background-color 0.2s ease;
- color: $ios-text;
- &:hover {
- background-color: #f2f2f7;
- }
- &.selected {
- background-color: rgba(0, 122, 255, 0.1);
- color: $primary-color;
- font-weight: 500;
- }
- &.custom-option {
- color: $primary-color;
- font-weight: 500;
- }
- }
- /* 分隔线 */
- .dropdown-divider {
- height: 1px;
- background-color: $border-color;
- margin: 4px 0;
- }
- /* 错误提示信息 */
- .error-message {
- color: #ff3b30;
- font-size: 14px;
- margin-top: 5px;
- padding: 4px 0;
- }
- /* 自定义时间弹窗 */
- .custom-time-modal {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 2000;
- display: flex;
- align-items: center;
- justify-content: center;
- opacity: 0;
- visibility: hidden;
- transition: opacity 0.3s ease;
- }
- .custom-time-modal.modal-visible {
- opacity: 1;
- visibility: visible;
- }
- /* 弹窗背景 */
- .modal-backdrop {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, 0.5);
- }
- /* 弹窗内容 */
- .modal-content {
- position: relative;
- background-color: white;
- border-radius: 12px;
- width: 90%;
- max-width: 400px;
- max-height: 80vh;
- overflow-y: auto;
- transform: translateY(20px);
- transition: transform 0.3s ease;
- }
- .custom-time-modal.modal-visible .modal-content {
- transform: translateY(0);
- }
- /* 弹窗头部 */
- .modal-header {
- padding: 16px 20px;
- border-bottom: 1px solid $border-color;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .modal-header h3 {
- margin: 0;
- font-size: 18px;
- font-weight: 600;
- color: $ios-text;
- }
- /* 关闭按钮 */
- .close-button {
- background: none;
- border: none;
- font-size: 24px;
- color: $ios-text-secondary;
- cursor: pointer;
- padding: 0;
- width: 30px;
- height: 30px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 15px;
- transition: all 0.2s ease;
- &:hover {
- background-color: #f2f2f7;
- color: $ios-text;
- }
- }
- /* 弹窗主体 */
- .modal-body {
- padding: 20px;
- }
- /* 日期选择器 */
- .date-picker,
- .time-picker {
- margin-bottom: 16px;
- }
- .date-picker label,
- .time-picker label {
- display: block;
- margin-bottom: 8px;
- font-size: 14px;
- font-weight: 500;
- color: $ios-text;
- }
- /* 弹窗底部 */
- .modal-footer {
- padding: 16px 20px;
- border-top: 1px solid $border-color;
- display: flex;
- justify-content: flex-end;
- gap: 10px;
- }
- /* 按钮样式 */
- .cancel-button,
- .confirm-button {
- padding: 8px 16px;
- border-radius: 8px;
- font-size: 16px;
- font-weight: 500;
- cursor: pointer;
- transition: all 0.2s ease;
- }
- .cancel-button {
- background-color: #f2f2f7;
- color: $ios-text;
- border: none;
- }
- .confirm-button {
- background-color: $primary-color;
- color: white;
- border: none;
- }
- .cancel-button:hover {
- background-color: #e5e5ea;
- }
- .confirm-button:hover {
- background-color: #0066cc;
- }
- /* iOS面板底部 */
- .ios-panel-footer {
- display: flex;
- justify-content: flex-end;
- gap: 12px;
- padding: 16px 20px;
- border-top: 1px solid $ios-border;
- background-color: $ios-background;
- }
- /* iOS风格按钮 */
- .ios-cancel-button,
- .ios-submit-button {
- padding: 10px 20px;
- border: none;
- border-radius: $ios-radius-md;
- font-size: 16px;
- font-weight: 600;
- cursor: pointer;
- transition: all 0.2s ease;
- min-width: 80px;
- }
- .ios-cancel-button {
- background-color: $ios-button-background;
- color: $ios-text;
- }
- .ios-cancel-button:hover {
- background-color: color-mix(in srgb, $ios-button-background 80%, $ios-border 20%);
- }
- .ios-submit-button {
- background-color: $ios-primary;
- color: white;
- }
- .ios-submit-button:hover {
- background-color: $ios-primary-dark;
- }
- /* 动画 */
- @keyframes fadeIn {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
- }
- /* 响应式调整 */
- @media (max-width: 768px) {
- .ios-panel {
- width: 95%;
- margin: 20px;
- }
- }
- /* 数据看板 - iOS风格 */
- .stats-dashboard {
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.95));
- border-radius: 24px;
- padding: 28px;
- box-shadow:
- 0 8px 32px rgba(0, 0, 0, 0.08),
- inset 0 1px 0 rgba(255, 255, 255, 0.6);
- backdrop-filter: blur(10px);
- border: 1px solid rgba(255, 255, 255, 0.2);
- margin-bottom: 24px;
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- }
- .stats-dashboard:hover {
- box-shadow:
- 0 12px 40px rgba(0, 0, 0, 0.12),
- inset 0 1px 0 rgba(255, 255, 255, 0.6);
- transform: translateY(-2px);
- }
- .stats-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 20px;
- }
- .stats-header h3 {
- font-size: 20px;
- font-weight: 600;
- color: $text-primary-dark;
- margin: 0;
- }
- .stats-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
- gap: 16px;
- margin-bottom: 20px;
- }
- /* 统计卡片 - 现代化iOS风格 */
- .stat-card {
- background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
- border: 2px solid transparent;
- border-radius: 18px;
- padding: 20px;
- display: flex;
- align-items: center;
- gap: 16px;
- transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
- cursor: pointer;
- box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
- position: relative;
- overflow: hidden;
- &::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: linear-gradient(135deg, rgba($primary-color, 0.03) 0%, rgba($primary-color, 0.01) 100%);
- opacity: 0;
- transition: opacity 0.4s ease;
- }
- &:hover {
- border-color: rgba($primary-color, 0.2);
- box-shadow:
- 0 8px 32px rgba($primary-color, 0.12),
- 0 0 0 1px rgba($primary-color, 0.05);
- transform: translateY(-3px) scale(1.02);
-
- &::before {
- opacity: 1;
- }
- .stat-icon {
- transform: scale(1.1) rotate(5deg);
- box-shadow: 0 4px 16px rgba($primary-color, 0.25);
- }
- .stat-value {
- transform: scale(1.05);
- }
- }
- &:active {
- transform: translateY(-1px) scale(1.01);
- }
- }
- .stat-icon {
- width: 52px;
- height: 52px;
- background: linear-gradient(135deg, rgba($primary-color, 0.12), rgba($primary-color, 0.08));
- border-radius: 14px;
- display: flex;
- align-items: center;
- justify-content: center;
- color: $primary-color;
- transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
- flex-shrink: 0;
- box-shadow: 0 2px 8px rgba($primary-color, 0.15);
- svg {
- stroke-width: 2.5;
- }
- &.primary {
- background: linear-gradient(135deg, rgba($primary-color, 0.12), rgba($primary-color, 0.08));
- color: $primary-color;
- box-shadow: 0 2px 8px rgba($primary-color, 0.15);
- }
- &.secondary {
- background: linear-gradient(135deg, rgba($success-color, 0.12), rgba($success-color, 0.08));
- color: $success-color;
- box-shadow: 0 2px 8px rgba($success-color, 0.15);
- }
- &.warning {
- background: linear-gradient(135deg, rgba($warning-color, 0.12), rgba($warning-color, 0.08));
- color: $warning-color;
- box-shadow: 0 2px 8px rgba($warning-color, 0.15);
- }
- &.danger {
- background: linear-gradient(135deg, rgba($danger-color, 0.12), rgba($danger-color, 0.08));
- color: $danger-color;
- box-shadow: 0 2px 8px rgba($danger-color, 0.15);
- }
- &.success {
- background: linear-gradient(135deg, rgba($success-color, 0.12), rgba($success-color, 0.08));
- color: $success-color;
- box-shadow: 0 2px 8px rgba($success-color, 0.15);
- }
- }
- .stat-content {
- flex: 1;
- min-width: 0;
- }
- .stat-value {
- font-size: 32px;
- font-weight: 700;
- color: $text-primary-dark;
- margin-bottom: 4px;
- line-height: 1;
- letter-spacing: -1px;
- transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- font-variant-numeric: tabular-nums;
- }
- .stat-label {
- font-size: 14px;
- color: $text-secondary-dark;
- margin: 0;
- font-weight: 500;
- letter-spacing: -0.1px;
- line-height: 1.4;
- }
- /* 内容网格 */
- .content-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 20px;
- margin-top: 16px;
- }
- /* 任务列表区块 - iOS风格 */
- .tasks-section {
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.95));
- border-radius: 24px;
- padding: 28px;
- box-shadow:
- 0 8px 32px rgba(0, 0, 0, 0.08),
- inset 0 1px 0 rgba(255, 255, 255, 0.6);
- backdrop-filter: blur(10px);
- border: 1px solid rgba(255, 255, 255, 0.2);
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- }
- .tasks-section:hover {
- box-shadow:
- 0 12px 40px rgba(0, 0, 0, 0.12),
- inset 0 1px 0 rgba(255, 255, 255, 0.6);
- transform: translateY(-2px);
- }
- /* 通用区块头部 */
- .section-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 20px;
- }
- .section-header h3 {
- font-size: 20px;
- font-weight: 600;
- color: $text-primary-dark;
- margin: 0;
- }
- .section-header .view-all {
- display: flex;
- align-items: center;
- gap: 4px;
- font-size: 14px;
- color: $primary-color;
- text-decoration: none;
- transition: $transition;
- }
- .section-header .view-all:hover {
- color: $primary-dark;
- }
- /* 搜索框样式 */
- .search-box {
- position: relative;
- }
- .search-input {
- padding: 8px 16px;
- border: 1px solid $border-color;
- border-radius: $border-radius;
- font-size: 14px;
- color: $text-primary-dark;
- background-color: $card-background;
- transition: $transition;
- outline: none;
- min-width: 200px;
- }
- .search-input:focus {
- border-color: $primary-color;
- box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
- }
- /* 紧急待办列表 */
- .tasks-list {
- display: flex;
- flex-direction: column;
- gap: 12px;
- }
- .tasks-list.empty {
- text-align: center;
- padding: 40px 20px;
- color: $text-tertiary-dark;
- }
- .tasks-list.empty p {
- font-size: 16px;
- margin: 0;
- }
- /* 任务项目样式 - iOS风格 */
- .task-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 20px 24px;
- border-radius: 16px;
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- margin-bottom: 12px;
- position: relative;
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.9));
- border: 1px solid rgba(0, 0, 0, 0.05);
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
- }
- .task-item.completed {
- background-color: #e8f5e9;
- border: 1px solid #c8e6c9;
- }
- .task-item.overdue {
- background-color: #ffebee;
- border: 1px solid #ffcdd2;
- }
- .task-item:hover {
- transform: translateY(-3px);
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(252, 252, 252, 0.95));
- border-color: rgba(0, 0, 0, 0.1);
- }
- /* 任务复选框样式 */
- .task-checkbox {
- margin-right: 16px;
- }
- .task-checkbox input[type="checkbox"] {
- width: 20px;
- height: 20px;
- accent-color: $primary-color;
- border-radius: 4px;
- cursor: pointer;
- }
- /* 任务状态标记 */
- .task-status {
- position: absolute;
- top: 12px;
- right: 12px;
- padding: 4px 12px;
- border-radius: 16px;
- font-size: 12px;
- font-weight: 600;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- }
- .task-status.completed {
- background-color: color-mix(in srgb, $success-color 15%, transparent);
- color: $success-color;
- }
- .task-status.pending {
- background-color: color-mix(in srgb, $warning-color 15%, transparent);
- color: $warning-color;
- }
- .task-status.overdue {
- background-color: color-mix(in srgb, $danger-color 15%, transparent);
- color: $danger-color;
- }
- /* 任务内容 */
- .task-content {
- flex: 1;
- }
- .task-title {
- font-size: 18px;
- font-weight: 600;
- color: $text-primary-dark;
- margin-bottom: 4px;
- line-height: 1.3;
- }
- .task-project {
- font-size: 14px;
- color: $text-secondary-dark;
- margin-bottom: 8px;
- }
- .task-meta {
- font-size: 14px;
- color: $text-tertiary-dark;
- }
- /* 任务进度 */
- .task-progress {
- width: 100%;
- height: 8px;
- background-color: $background-color;
- border-radius: 4px;
- overflow: hidden;
- margin-top: 12px;
- box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
- }
- .progress-bar {
- height: 100%;
- background: linear-gradient(90deg, $primary-color, #5e9eff);
- transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
- position: relative;
- overflow: hidden;
- border-radius: 4px;
- }
- .progress-bar::after {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
- animation: shimmer 2s infinite;
- }
- @keyframes shimmer {
- 0% {
- transform: translateX(-100%);
- }
- 100% {
- transform: translateX(100%);
- }
- }
- .progress-text {
- font-size: 12px;
- color: $text-tertiary-dark;
- text-align: right;
- margin-top: 4px;
- font-weight: 500;
- }
- /* 任务处理进度条容器 */
- .task-progress-container {
- width: 100%;
- height: 12px;
- background-color: #f5f5f5;
- border-radius: 6px;
- overflow: hidden;
- margin-top: 12px;
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
- }
- .task-progress-bar {
- height: 100%;
- background: linear-gradient(90deg, $primary-color 0%, #5e9eff 100%);
- transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
- position: relative;
- overflow: hidden;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- padding-right: 8px;
- border-radius: 6px;
- }
- .task-progress-bar::after {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
- animation: shimmer 1.5s infinite;
- }
- .task-progress-text {
- font-size: 10px;
- color: white;
- font-weight: 600;
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
- z-index: 1;
- }
- /* 任务操作按钮 */
- .task-actions {
- display: flex;
- align-items: center;
- }
- .task-button {
- padding: 6px 12px;
- border: 1px solid $border-color;
- border-radius: $border-radius;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- transition: $transition;
- background-color: $card-background;
- color: $text-secondary-dark;
- min-width: 60px;
- text-align: center;
- }
- .task-button:hover {
- border-color: $primary-color;
- color: $primary-color;
- }
- .task-button.primary {
- background-color: $primary-color;
- color: white;
- border-color: $primary-color;
- }
- .task-button.primary:hover {
- background-color: $primary-dark;
- border-color: $primary-dark;
- color: white;
- }
- .task-button:disabled {
- opacity: 0.6;
- cursor: not-allowed;
- transform: none;
- }
- /* 搜索框样式 */
- .search-box {
- position: relative;
- }
- .search-input {
- padding: 8px 16px;
- border: 1px solid $border-color;
- border-radius: $border-radius;
- font-size: 14px;
- color: $text-primary-dark;
- background-color: $card-background;
- transition: $transition;
- outline: none;
- min-width: 200px;
- }
- .search-input:focus {
- border-color: $primary-color;
- box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
- }
- /* 项目动态流 - iOS风格 */
- .project-updates-section {
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.95));
- border-radius: 24px;
- padding: 28px;
- box-shadow:
- 0 8px 32px rgba(0, 0, 0, 0.08),
- inset 0 1px 0 rgba(255, 255, 255, 0.6);
- backdrop-filter: blur(10px);
- border: 1px solid rgba(255, 255, 255, 0.2);
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- }
- .project-updates-section:hover {
- box-shadow:
- 0 12px 40px rgba(0, 0, 0, 0.12),
- inset 0 1px 0 rgba(255, 255, 255, 0.6);
- transform: translateY(-2px);
- }
- .project-updates-section.empty {
- text-align: center;
- padding: 60px 20px;
- color: $text-tertiary-dark;
- }
- .project-updates-section.empty p {
- font-size: 16px;
- margin: 0;
- }
- .project-updates-list {
- display: flex;
- flex-direction: column;
- gap: 16px;
- }
- .update-item {
- display: flex;
- gap: 16px;
- padding: 20px;
- border: 1px solid $border-color;
- border-radius: $border-radius;
- transition: $transition;
-
- &:hover {
- border-color: $primary-color;
- box-shadow: 0 4px 12px color-mix(in srgb, $primary-color 10%, transparent);
- transform: translateY(-2px);
- }
-
- .update-icon {
- width: 44px;
- height: 44px;
- background-color: $primary-color;
- border-radius: 12px;
- display: flex;
- align-items: center;
- justify-content: center;
- color: white;
- flex-shrink: 0;
- transition: $transition;
- }
-
- .update-content {
- flex: 1;
-
- .update-title {
- font-size: 18px;
- font-weight: 600;
- color: $text-primary-dark;
- margin-bottom: 6px;
- line-height: 1.3;
- }
-
- .update-text {
- font-size: 16px;
- color: $text-secondary-dark;
- margin-bottom: 12px;
- line-height: 1.4;
- }
-
- .update-meta {
- display: flex;
- align-items: center;
- gap: 20px;
-
- .update-time {
- font-size: 14px;
- color: $text-tertiary-dark;
- }
-
- .update-status {
- padding: 4px 12px;
- border-radius: 16px;
- font-size: 14px;
- font-weight: 600;
- transition: $transition;
-
- &.status-active,
- &.status-info {
- background-color: #e3f2fd;
- color: $primary-color;
- border: 1px solid #bbdefb;
- }
-
- &.status-completed,
- &.status-success {
- background-color: #e8f5e9;
- color: $success-color;
- border: 1px solid #c8e6c9;
- }
-
- &.status-warning {
- background-color: #fff3e0;
- color: $warning-color;
- border: 1px solid #ffe0b2;
- }
-
- &.status-danger {
- background-color: #ffebee;
- color: $danger-color;
- border: 1px solid #ffcdd2;
- }
- }
- }
- }
- }
-
- .stats-dashboard .stats-grid {
- grid-template-columns: repeat(2, 1fr);
- }
- /* 欢迎区域 - iOS风格 */
- .welcome-section {
- background: linear-gradient(135deg, #c7d3d9, #d4c5b9);
- color: #4a5568;
- padding: 28px 36px;
- border-radius: 24px;
- margin-bottom: 24px;
- box-shadow:
- 0 8px 32px rgba(0, 0, 0, 0.1),
- inset 0 1px 0 rgba(255, 255, 255, 0.6);
- backdrop-filter: blur(10px);
- border: 1px solid rgba(255, 255, 255, 0.2);
- }
- .welcome-section h2 {
- font-size: 26px;
- font-weight: 700;
- margin: 0 0 8px 0;
- letter-spacing: -0.5px;
- color: #2d3748;
- }
- .welcome-section p {
- font-size: 15px;
- opacity: 0.8;
- margin: 0;
- font-weight: 500;
- color: #4a5568;
- }
- @media (max-width: 768px) {
- .welcome-section {
- margin-bottom: 16px;
-
- h2 {
- font-size: 20px;
- }
- }
-
- .stats-dashboard {
- margin-bottom: 16px;
-
- .stats-grid {
- grid-template-columns: 1fr;
- gap: 12px;
- }
-
- .stat-card {
- padding: 16px;
- }
-
- .stat-number {
- font-size: 20px;
- }
-
- .stat-icon {
- width: 40px;
- height: 40px;
- }
- }
-
- .tasks-section,
- .project-updates-section {
- padding: 16px;
- margin-bottom: 16px;
- }
-
- .task-item,
- .update-item {
- padding: 16px;
- }
-
- .task-actions {
- flex-wrap: wrap;
- }
-
- .task-button {
- font-size: 12px;
- padding: 4px 8px;
- }
- }
- @media (max-width: 480px) {
- .task-item {
- flex-direction: column;
- align-items: flex-start;
-
- .task-actions {
- margin-top: 12px;
- align-self: flex-end;
- }
- }
-
- .update-item {
- .update-icon {
- width: 32px;
- height: 32px;
- }
- }
- }
- /* ========== iOS风格新增样式 ========== */
- .ios-page-transition {
- overflow: hidden;
-
- .stat-card {
- transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
- transform: translateY(20px);
- opacity: 0;
- }
- }
- .stat-card {
- &:active {
- transform: scale(0.98);
- transition: transform 0.1s ease;
- }
-
- perspective: 1000px;
-
- .stat-content {
- transform-style: preserve-3d;
- transition: transform 0.5s ease;
-
- &:hover {
- transform: translateZ(10px);
- }
- }
- }
- .stat-icon {
- position: relative;
- overflow: hidden;
-
- &::after {
- content: '';
- position: absolute;
- top: -50%;
- left: -50%;
- width: 200%;
- }
- }
- /* 莫兰迪色系变量 */
- $morandi-cream: #f5f1eb;
- $morandi-sage: #a8b5a0;
- $morandi-blush: #e8d5d2;
- $morandi-stone: #d4c5b9;
- $morandi-mist: #c7d3d9;
- $morandi-dust: #b8a99a;
- /* iOS风格卡片 - 莫兰迪色系 */
- .ios-card {
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.9));
- backdrop-filter: blur(10px);
- border: 1px solid rgba(255, 255, 255, 0.2);
- border-radius: 20px;
- box-shadow:
- 0 8px 32px rgba(0, 0, 0, 0.1),
- inset 0 1px 0 rgba(255, 255, 255, 0.6);
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- overflow: hidden;
-
- &:hover {
- transform: translateY(-4px);
- box-shadow:
- 0 12px 40px rgba(0, 0, 0, 0.15),
- inset 0 1px 0 rgba(255, 255, 255, 0.6);
- }
-
- &:active {
- transform: translateY(-1px);
- box-shadow:
- 0 4px 20px rgba(0, 0, 0, 0.1),
- inset 0 1px 0 rgba(255, 255, 255, 0.6);
- }
- }
- /* iOS风格按钮 */
- .ios-btn {
- background: linear-gradient(135deg, $primary-color, $primary-dark);
- border: none;
- border-radius: 16px;
- color: white;
- font-weight: 600;
- font-size: 16px;
- padding: 12px 24px;
- cursor: pointer;
- transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
- box-shadow:
- 0 4px 12px rgba($primary-color, 0.3),
- inset 0 1px 0 rgba(255, 255, 255, 0.2);
- position: relative;
- overflow: hidden;
-
- &:hover {
- transform: translateY(-2px);
- box-shadow:
- 0 6px 20px rgba($primary-color, 0.4),
- inset 0 1px 0 rgba(255, 255, 255, 0.2);
- }
-
- &:active {
- transform: translateY(0);
- box-shadow:
- 0 2px 8px rgba($primary-color, 0.3),
- inset 0 1px 0 rgba(255, 255, 255, 0.2);
- }
-
- &.mini {
- padding: 8px 16px;
- font-size: 14px;
- border-radius: 12px;
- }
-
- &.outline {
- background: transparent;
- border: 2px solid $primary-color;
- color: $primary-color;
- box-shadow: none;
-
- &:hover {
- background: $primary-color;
- color: white;
- box-shadow: 0 4px 12px rgba($primary-color, 0.3);
- }
- }
-
- &.secondary {
- background: linear-gradient(135deg, $morandi-sage, $morandi-dust);
- box-shadow:
- 0 4px 12px rgba($morandi-sage, 0.3),
- inset 0 1px 0 rgba(255, 255, 255, 0.2);
-
- &:hover {
- box-shadow:
- 0 6px 20px rgba($morandi-sage, 0.4),
- inset 0 1px 0 rgba(255, 255, 255, 0.2);
- }
- }
- }
- /* iOS风格面板 - 紧急事项添加 */
- .ios-modal-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 1000;
- animation: iosFadeIn 0.3s ease;
- }
- @keyframes iosFadeIn {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
- }
- .ios-panel {
- width: 90%;
- max-width: 500px;
- background-color: white;
- border-radius: 16px;
- padding: 28px;
- transform: scale(0.95);
- opacity: 0;
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
- margin: 0 auto;
- max-height: 80vh;
- overflow-y: auto;
- }
- .ios-panel.ios-panel-visible {
- transform: scale(1);
- opacity: 1;
- }
- .ios-panel-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 24px;
- padding-bottom: 16px;
- border-bottom: 1px solid #f0f0f0;
- }
- .ios-panel-header h3 {
- font-size: 18px;
- font-weight: 600;
- color: $text-primary-dark;
- margin: 0;
- }
- .ios-close-button {
- background: none;
- border: none;
- padding: 8px;
- cursor: pointer;
- color: $text-secondary-dark;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 8px;
- transition: background-color 0.2s ease;
- }
- .ios-close-button:hover {
- background-color: #f5f5f5;
- }
- .ios-panel-content {
- max-height: 70vh;
- overflow-y: auto;
- }
- .ios-input, .ios-select {
- width: 100%;
- padding: 12px 16px;
- border: 1px solid #e0e0e0;
- border-radius: 12px;
- font-size: 16px;
- transition: border-color 0.2s ease, box-shadow 0.2s ease;
- background-color: white;
- box-sizing: border-box;
- }
- .ios-input:focus, .ios-select:focus {
- outline: none;
- border-color: $primary-color;
- box-shadow: 0 0 0 3px rgba(99, 172, 255, 0.1);
- }
- .ios-input:disabled, .ios-select:disabled {
- background-color: #f9f9f9;
- color: $text-tertiary-dark;
- border-color: #e0e0e0;
- cursor: not-allowed;
- }
- .form-group {
- margin-bottom: 20px;
- }
- .form-group label {
- display: block;
- margin-bottom: 8px;
- font-size: 14px;
- font-weight: 600;
- color: $text-secondary-dark;
- }
- /* 增强版日期时间选择器 */
- .datetime-picker-container {
- display: flex;
- gap: 12px;
- margin-bottom: 20px;
-
- .date-picker, .time-picker {
- flex: 1;
- position: relative;
-
- label {
- display: block;
- margin-bottom: 8px;
- font-size: 14px;
- font-weight: 500;
- color: $text-secondary-dark;
- }
-
- input {
- width: 100%;
- padding: 12px 16px;
- border: 1px solid $border-color;
- border-radius: 10px;
- font-size: 16px;
- background-color: white;
- transition: all 0.2s ease;
- -webkit-appearance: none;
- -moz-appearance: none;
- appearance: none;
-
- &:focus {
- border-color: $primary-color;
- box-shadow: 0 0 0 3px rgba($primary-color, 0.1);
- outline: none;
- }
-
- &::-webkit-calendar-picker-indicator {
- background: transparent;
- bottom: 0;
- color: transparent;
- cursor: pointer;
- height: auto;
- left: 0;
- position: absolute;
- right: 0;
- top: 0;
- width: auto;
- }
- }
-
- &::after {
- content: "";
- position: absolute;
- right: 16px;
- top: 38px;
- width: 20px;
- height: 20px;
- 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");
- background-repeat: no-repeat;
- background-position: center;
- pointer-events: none;
- }
- }
-
- .time-picker {
- input {
- &::-webkit-calendar-picker-indicator {
- background: transparent;
- bottom: 0;
- color: transparent;
- cursor: pointer;
- height: auto;
- left: 0;
- position: absolute;
- right: 0;
- top: 0;
- width: auto;
- }
- }
-
- &::after {
- 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");
- }
- }
- }
- input[type="datetime-local"]:focus {
- outline: none;
- border-color: $primary-color;
- box-shadow: 0 0 0 3px rgba(99, 172, 255, 0.1);
- }
- input[type="datetime-local"]::-webkit-calendar-picker-indicator {
- 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;
- width: 24px;
- height: 24px;
- cursor: pointer;
- opacity: 0.7;
- }
- /* iOS风格文本域 */
- .ios-textarea {
- width: 100%;
- padding: 12px 16px;
- border: 1px solid #e0e0e0;
- border-radius: 12px;
- font-size: 16px;
- font-family: inherit;
- resize: vertical;
- min-height: 80px;
- transition: border-color 0.2s ease, box-shadow 0.2s ease;
- background-color: white;
- box-sizing: border-box;
- }
- .ios-textarea:focus {
- outline: none;
- border-color: $primary-color;
- box-shadow: 0 0 0 3px rgba(99, 172, 255, 0.1);
- }
- /* iOS风格面板底部按钮 */
- .ios-panel-footer {
- display: flex;
- justify-content: flex-end;
- gap: 12px;
- margin-top: 24px;
- padding-top: 16px;
- border-top: 1px solid #f0f0f0;
- }
- .ios-cancel-button, .ios-submit-button {
- padding: 10px 20px;
- border-radius: 12px;
- font-size: 16px;
- font-weight: 500;
- cursor: pointer;
- transition: all 0.2s ease;
- border: none;
- box-sizing: border-box;
- min-width: 80px;
- }
- .ios-cancel-button {
- background-color: #f5f5f5;
- color: $text-secondary-dark;
- }
- .ios-cancel-button:hover {
- background-color: #eeeeee;
- }
- .ios-cancel-button:active {
- background-color: #e0e0e0;
- transform: scale(0.98);
- }
- .ios-submit-button {
- background-color: $primary-color;
- color: white;
- }
- .ios-submit-button:hover {
- background-color: $primary-dark;
- }
- .ios-submit-button:active {
- background-color: #4a89dc;
- transform: scale(0.98);
- }
- .ios-submit-button:disabled {
- background-color: #e0e0e0;
- color: $text-tertiary-dark;
- cursor: not-allowed;
- transform: none;
- }
- /* 核心指标渐变卡片 */
- .core-metrics-grid {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 16px;
- margin-top: 16px;
- }
- .core-metric-card {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 16px;
- border-radius: 14px;
- color: #fff;
- box-shadow: $shadow-md;
- .metric-icon {
- width: 40px;
- height: 40px;
- border-radius: 12px;
- background: rgba(255,255,255,0.2);
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .metric-content {
- .metric-value { font-size: 22px; font-weight: 700; }
- .metric-label { font-size: 13px; opacity: 0.9; }
- }
- &.gradient-green {
- background: linear-gradient(135deg, #34d399, #10b981);
- }
- &.gradient-orange {
- background: linear-gradient(135deg, #f59e0b, #f97316);
- }
- &.gradient-blue {
- background: linear-gradient(135deg, #60a5fa, #3b82f6);
- }
- }
- /* CRM队列 - iOS风格 */
- .crm-queues {
- margin-bottom: 24px;
- }
- .crm-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 20px;
- }
- .crm-card {
- @extend .ios-card;
- padding: 20px;
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.95));
- }
- .crm-header {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- margin-bottom: 16px;
- gap: 16px;
- .crm-title-section {
- flex: 1;
-
- h3 {
- margin: 0 0 8px 0;
- font-size: 16px;
- font-weight: 600;
- color: $ios-text;
- }
- }
- .crm-stats {
- display: flex;
- gap: 16px;
- margin-top: 4px;
-
- .stat-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 2px;
-
- .stat-number {
- font-size: 18px;
- font-weight: 700;
- color: $ios-text;
-
- &.success {
- color: $ios-success;
- }
-
- &.warning {
- color: $ios-warning;
- }
-
- &.danger {
- color: $ios-danger;
- }
- }
-
- .stat-label {
- font-size: 11px;
- color: $ios-text-secondary;
- font-weight: 500;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- }
- }
- }
-
- .view-all-link {
- color: $primary-color;
- font-size: 13px;
- cursor: pointer;
- white-space: nowrap;
- margin-top: 4px;
-
- &:hover {
- color: $ios-primary-dark;
- }
- }
- }
- .crm-list {
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
- /* CRM项目 - iOS风格卡片 */
- .crm-item {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: 12px;
- padding: 12px 16px;
- border-radius: 12px;
- border: 1px solid rgba(0, 0, 0, 0.05);
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.9));
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
- margin-bottom: 8px;
- &:hover {
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(252, 252, 252, 0.95));
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
- transform: translateY(-2px);
- border-color: rgba(0, 0, 0, 0.1);
- }
- .crm-item-main { display: flex; align-items: flex-start; gap: 12px; }
- .avatar.small {
- width: 32px; height: 32px; border-radius: 50%;
- background: linear-gradient(135deg, $primary-color, $primary-dark);
- color: #fff;
- display: flex;
- align-items: center;
- justify-content: center;
- font-weight: 600;
- flex-shrink: 0;
- box-shadow: 0 2px 8px rgba($primary-color, 0.3);
- transition: all 0.2s ease;
-
- &.alt {
- background: linear-gradient(135deg, $morandi-sage, $morandi-dust);
- box-shadow: 0 2px 8px rgba($morandi-sage, 0.3);
- }
-
- &:hover {
- transform: scale(1.05);
- box-shadow: 0 4px 12px rgba($primary-color, 0.4);
-
- &.alt {
- box-shadow: 0 4px 12px rgba($morandi-sage, 0.4);
- }
- }
- }
- .info {
- .name {
- font-weight: 600;
- color: $text-primary-dark;
- font-size: 15px;
- letter-spacing: -0.2px;
- }
- .meta {
- color: $text-tertiary-dark;
- font-size: 12px;
- display: flex;
- gap: 8px;
- margin-bottom: 8px;
- font-weight: 500;
- }
- .tag {
- background: linear-gradient(135deg, rgba(0,0,0,0.03), rgba(0,0,0,0.06));
- padding: 3px 8px;
- border-radius: 8px;
- font-size: 11px;
- font-weight: 600;
- backdrop-filter: blur(4px);
-
- &.value-tag {
- background: linear-gradient(135deg, #f0fdf4, #dcfce7);
- color: #166534;
- border: 1px solid rgba(22, 101, 52, 0.1);
- }
- &.price-tag {
- background: linear-gradient(135deg, #fffbeb, #fef3c7);
- color: #d97706;
- border: 1px solid rgba(217, 119, 6, 0.1);
- }
- }
- .strategy-info {
- font-size: 12px;
- line-height: 1.5;
- margin-top: 6px;
-
- .recommended-phrase {
- color: $morandi-dust;
- margin-bottom: 4px;
- font-style: italic;
- font-weight: 500;
- letter-spacing: -0.1px;
- }
-
- .case-strategy {
- color: $morandi-sage;
- font-size: 11px;
- font-weight: 500;
- background: rgba($morandi-sage, 0.1);
- padding: 2px 6px;
- border-radius: 4px;
- display: inline-block;
- }
- }
- }
- .ios-btn.mini {
- padding: 8px 14px;
- font-size: 13px;
- border-radius: 10px;
- font-weight: 600;
- letter-spacing: -0.2px;
- background: linear-gradient(135deg, $primary-color, $primary-dark);
- box-shadow: 0 2px 8px rgba($primary-color, 0.3);
-
- &:hover {
- transform: translateY(-1px);
- box-shadow: 0 4px 12px rgba($primary-color, 0.4);
- }
-
- &:active {
- transform: translateY(0);
- box-shadow: 0 1px 4px rgba($primary-color, 0.3);
- }
- }
-
- .ios-btn.outline.mini {
- background: transparent;
- border: 2px solid $primary-color;
- color: $primary-color;
- box-shadow: none;
-
- &:hover {
- background: $primary-color;
- color: white;
- box-shadow: 0 2px 8px rgba($primary-color, 0.3);
- }
- }
- }
- .empty-state.small { color: $text-tertiary-dark; font-size: 13px; text-align: center; padding: 8px 0; }
- @media (max-width: 900px) {
- .core-metrics-grid { grid-template-columns: 1fr; }
- .crm-grid { grid-template-columns: 1fr; }
- }
- .core-metric-card:hover {
- border-color: $primary-color;
- box-shadow: 0 4px 12px color-mix(in srgb, $primary-color 10%, transparent);
- transform: translateY(-2px);
- }
- .core-icon {
- width: 48px;
- height: 48px;
- background-color: color-mix(in srgb, $primary-color 15%, transparent);
- border-radius: 12px;
- display: flex;
- align-items: center;
- justify-content: center;
- margin: 0 auto 12px;
- color: $primary-color;
- transition: $transition;
- }
- .core-card:nth-child(2) .core-icon {
- background-color: color-mix(in srgb, $success-color 15%, transparent);
- color: $success-color;
- }
- .core-card:nth-child(3) .core-icon {
- background-color: color-mix(in srgb, $warning-color 15%, transparent);
- color: $warning-color;
- }
- .core-card:nth-child(4) .core-icon {
- background-color: color-mix(in srgb, $danger-color 15%, transparent);
- color: $danger-color;
- }
- .core-number {
- font-size: 24px;
- font-weight: 700;
- color: $text-primary-dark;
- margin-bottom: 6px;
- line-height: 1.2;
- }
- .core-label {
- font-size: 14px;
- color: $text-secondary-dark;
- margin: 0;
- }
- /* 内容网格 */
- .content-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 24px;
- }
- /* 任务列表区块 */
- .tasks-section {
- background-color: $card-background;
- border-radius: $border-radius;
- padding: 24px;
- box-shadow: $shadow-md;
- transition: $transition;
- }
- .tasks-section:hover {
- box-shadow: $shadow-lg;
- }
- /* 通用区块头部 */
- .section-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 20px;
- }
- .section-header h3 {
- font-size: 20px;
- font-weight: 600;
- color: $text-primary-dark;
- margin: 0;
- }
- .section-header .view-all {
- display: flex;
- align-items: center;
- gap: 4px;
- font-size: 14px;
- color: $primary-color;
- text-decoration: none;
- transition: $transition;
- }
- .section-header .view-all:hover {
- color: $primary-dark;
- }
- /* 搜索框样式 */
- .search-box {
- position: relative;
- }
- .search-input {
- padding: 8px 16px;
- border: 1px solid $border-color;
- border-radius: $border-radius;
- font-size: 14px;
- color: $text-primary-dark;
- background-color: $card-background;
- transition: $transition;
- outline: none;
- min-width: 200px;
- }
- .search-input:focus {
- border-color: $primary-color;
- box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
- }
- /* 紧急待办列表 */
- .tasks-list {
- display: flex;
- flex-direction: column;
- gap: 12px;
- }
- .tasks-list.empty {
- text-align: center;
- padding: 40px 20px;
- color: $text-tertiary-dark;
- }
- .tasks-list.empty p {
- font-size: 16px;
- margin: 0;
- }
- /* 任务项目样式 */
- .task-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 16px 20px;
- border-radius: $border-radius;
- transition: $transition;
- margin-bottom: 12px;
- position: relative;
- }
- .task-item.completed {
- background-color: #e8f5e9;
- border: 1px solid #c8e6c9;
- }
- .task-item.overdue {
- background-color: #ffebee;
- border: 1px solid #ffcdd2;
- }
- .task-item:hover {
- transform: translateY(-1px);
- }
- /* 任务复选框样式 */
- .task-checkbox {
- margin-right: 16px;
- }
- .task-checkbox input[type="checkbox"] {
- width: 20px;
- height: 20px;
- accent-color: $primary-color;
- border-radius: 4px;
- cursor: pointer;
- }
- /* 任务状态标记 */
- .task-status {
- position: absolute;
- top: 12px;
- right: 12px;
- padding: 4px 12px;
- border-radius: 16px;
- font-size: 12px;
- font-weight: 600;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- }
- .task-status.completed {
- background-color: color-mix(in srgb, $success-color 15%, transparent);
- color: $success-color;
- }
- .task-status.pending {
- background-color: color-mix(in srgb, $warning-color 15%, transparent);
- color: $warning-color;
- }
- .task-status.overdue {
- background-color: color-mix(in srgb, $danger-color 15%, transparent);
- color: $danger-color;
- }
- /* 任务内容 */
- .task-content {
- flex: 1;
- }
- .task-title {
- font-size: 18px;
- font-weight: 600;
- color: $text-primary-dark;
- margin-bottom: 4px;
- line-height: 1.3;
- }
- .task-project {
- font-size: 14px;
- color: $text-secondary-dark;
- margin-bottom: 8px;
- }
- .task-meta {
- font-size: 14px;
- color: $text-tertiary-dark;
- }
- /* 任务进度 */
- .task-progress {
- width: 100%;
- height: 8px;
- background-color: $background-color;
- border-radius: 4px;
- overflow: hidden;
- margin-top: 12px;
- box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
- }
- .progress-bar {
- height: 100%;
- background: linear-gradient(90deg, $primary-color, #5e9eff);
- transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
- position: relative;
- overflow: hidden;
- border-radius: 4px;
- }
- .progress-bar::after {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
- animation: shimmer 2s infinite;
- }
- @keyframes shimmer {
- 0% {
- transform: translateX(-100%);
- }
- 100% {
- transform: translateX(100%);
- }
- }
- .progress-text {
- font-size: 12px;
- color: $text-tertiary-dark;
- text-align: right;
- margin-top: 4px;
- font-weight: 500;
- }
- /* 任务处理进度条容器 */
- .task-progress-container {
- width: 100%;
- height: 12px;
- background-color: #f5f5f5;
- border-radius: 6px;
- overflow: hidden;
- margin-top: 12px;
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
- }
- .task-progress-bar {
- height: 100%;
- background: linear-gradient(90deg, $primary-color 0%, #5e9eff 100%);
- transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
- position: relative;
- overflow: hidden;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- padding-right: 8px;
- border-radius: 6px;
- }
- .task-progress-bar::after {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
- animation: shimmer 1.5s infinite;
- }
- .task-progress-text {
- font-size: 10px;
- color: white;
- font-weight: 600;
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
- z-index: 1;
- }
- /* 任务操作按钮 */
- .task-actions {
- display: flex;
- align-items: center;
- }
- .task-button {
- padding: 6px 12px;
- border: 1px solid $border-color;
- border-radius: $border-radius;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- transition: $transition;
- background-color: $card-background;
- color: $text-secondary-dark;
- min-width: 60px;
- text-align: center;
- }
- .task-button:hover {
- border-color: $primary-color;
- color: $primary-color;
- }
- .task-button.primary {
- background-color: $primary-color;
- color: white;
- border-color: $primary-color;
- }
- .task-button.primary:hover {
- background-color: $primary-dark;
- border-color: $primary-dark;
- color: white;
- }
- .task-button:disabled {
- opacity: 0.6;
- cursor: not-allowed;
- transform: none;
- }
- /* 搜索框样式 */
- .search-box {
- position: relative;
- }
- .search-input {
- padding: 8px 16px;
- border: 1px solid $border-color;
- border-radius: $border-radius;
- font-size: 14px;
- color: $text-primary-dark;
- background-color: $card-background;
- transition: $transition;
- outline: none;
- min-width: 200px;
- }
- .search-input:focus {
- border-color: $primary-color;
- box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
- }
- /* 项目动态流 */
- .project-updates-section {
- background-color: $card-background;
- border-radius: $border-radius;
- padding: 24px;
- box-shadow: $shadow-md;
- transition: $transition;
- }
- .project-updates-section:hover {
- box-shadow: $shadow-lg;
- }
- .project-updates-section.empty {
- text-align: center;
- padding: 60px 20px;
- color: $text-tertiary-dark;
- }
- .project-updates-section.empty p {
- font-size: 16px;
- margin: 0;
- }
- .project-updates-list {
- display: flex;
- flex-direction: column;
- gap: 16px;
- }
- .update-item {
- display: flex;
- gap: 16px;
- padding: 20px;
- border: 1px solid $border-color;
- border-radius: $border-radius;
- transition: $transition;
-
- &:hover {
- border-color: $primary-color;
- box-shadow: 0 4px 12px color-mix(in srgb, $primary-color 10%, transparent);
- transform: translateY(-2px);
- }
-
- .update-icon {
- width: 44px;
- height: 44px;
- background-color: $primary-color;
- border-radius: 12px;
- display: flex;
- align-items: center;
- justify-content: center;
- color: white;
- flex-shrink: 0;
- transition: $transition;
- }
-
- .update-content {
- flex: 1;
-
- .update-title {
- font-size: 18px;
- font-weight: 600;
- color: $text-primary-dark;
- margin-bottom: 6px;
- line-height: 1.3;
- }
-
- .update-text {
- font-size: 16px;
- color: $text-secondary-dark;
- margin-bottom: 12px;
- line-height: 1.4;
- }
-
- .update-meta {
- display: flex;
- align-items: center;
- gap: 20px;
-
- .update-time {
- font-size: 14px;
- color: $text-tertiary-dark;
- }
-
- .update-status {
- padding: 4px 12px;
- border-radius: 16px;
- font-size: 14px;
- font-weight: 600;
- transition: $transition;
-
- &.status-active,
- &.status-info {
- background-color: #e3f2fd;
- color: $primary-color;
- border: 1px solid #bbdefb;
- }
-
- &.status-completed,
- &.status-success {
- background-color: #e8f5e9;
- color: $success-color;
- border: 1px solid #c8e6c9;
- }
-
- &.status-warning {
- background-color: #fff3e0;
- color: $warning-color;
- border: 1px solid #ffe0b2;
- }
-
- &.status-danger {
- background-color: #ffebee;
- color: $danger-color;
- border: 1px solid #ffcdd2;
- }
- }
- }
- }
- }
- /* 回到顶部按钮 */
- .back-to-top {
- position: fixed;
- bottom: 24px;
- right: 24px;
- width: 48px;
- height: 48px;
- border-radius: 50%;
- background-color: $primary-color;
- color: white;
- border: none;
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- box-shadow: $shadow-md;
- transition: $transition;
- opacity: 0;
- visibility: hidden;
- z-index: 1000;
-
- &.visible {
- opacity: 1;
- visibility: visible;
- }
-
- &:hover {
- background-color: $primary-dark;
- transform: translateY(-2px);
- box-shadow: $shadow-lg;
- }
-
- &:active {
- transform: translateY(0);
- }
- }
- /* 响应式设计 */
- @media (max-width: 1024px) {
- .stats-grid {
- grid-template-columns: repeat(2, 1fr);
- }
-
- .core-metrics-grid {
- grid-template-columns: repeat(2, 1fr);
- }
- }
- @media (max-width: 768px) {
- .welcome-section {
- padding: 16px 20px;
- margin-bottom: 16px;
- }
- .welcome-section h2 {
- font-size: 20px;
- }
- .welcome-section p {
- font-size: 13px;
- }
- .stats-grid {
- grid-template-columns: 1fr;
- gap: 12px;
- }
- .content-grid {
- grid-template-columns: 1fr;
- gap: 16px;
- margin-top: 12px;
- }
- .crm-grid {
- grid-template-columns: 1fr;
- gap: 12px;
- }
- .core-metrics-grid {
- grid-template-columns: 1fr;
- gap: 10px;
- }
- .crm-item {
- padding: 10px 0;
-
- .strategy-info {
- .recommended-phrase {
- font-size: 11px;
- }
-
- .case-strategy {
- font-size: 10px;
- }
- }
- }
- .section-header {
- flex-direction: column;
- align-items: flex-start;
- gap: 12px;
-
- h3 {
- font-size: 18px;
- }
- }
-
- .task-title,
- .update-title {
- font-size: 16px !important;
- }
-
- .task-project,
- .update-text {
- font-size: 14px !important;
- }
- }
- @media (max-width: 768px) {
- // 客服工作台容器
- .customer-service-dashboard {
- padding: 12px;
- }
- // 欢迎区域
- .welcome-section {
- padding: 16px;
- h1 {
- font-size: 22px;
- }
- .welcome-subtitle {
- font-size: 13px;
- }
- }
- // 统计卡片
- .stats-dashboard {
- grid-template-columns: repeat(2, 1fr);
- gap: 12px;
- .stat-card {
- padding: 16px;
- .stat-value {
- font-size: 24px;
- }
- .stat-label {
- font-size: 12px;
- }
- }
- }
- // CRM队列
- .crm-queues {
- .queue-grid {
- grid-template-columns: 1fr;
- gap: 12px;
- }
- .queue-card {
- .card-header h3 {
- font-size: 16px;
- }
- .crm-item {
- padding: 12px;
- .avatar {
- width: 40px;
- height: 40px;
- }
- .info {
- .name {
- font-size: 14px;
- }
- .meta {
- font-size: 12px;
- flex-wrap: wrap;
- }
- }
- }
- }
- }
- // 紧急待办面板
- .tasks-panel,
- .ios-panel {
- width: 100vw;
- max-width: 100vw;
- height: 90vh;
- max-height: 90vh;
- border-radius: 16px 16px 0 0;
- bottom: 0;
- top: auto;
- .panel-header {
- padding: 16px;
- h2 {
- font-size: 18px;
- }
- }
- .panel-body {
- padding: 16px;
- .form-group {
- margin-bottom: 16px;
- label {
- font-size: 14px;
- }
- input,
- select,
- textarea {
- font-size: 16px; // 防止iOS自动缩放
- padding: 12px;
- }
- }
- }
- .panel-footer {
- padding: 16px;
- flex-direction: column;
- gap: 12px;
- button {
- width: 100%;
- }
- }
- }
- // 任务列表
- .tasks-list {
- gap: 12px;
- .task-item,
- .task-item-enhanced {
- padding: 14px;
- .task-header,
- .task-header-row {
- flex-direction: column;
- align-items: flex-start;
- gap: 10px;
- .task-title {
- font-size: 15px;
- }
- .task-priority {
- font-size: 11px;
- padding: 3px 8px;
- }
- }
- .task-info,
- .task-main-content {
- .task-detail {
- font-size: 13px;
- }
- .task-tags {
- flex-wrap: wrap;
- gap: 6px;
- .tag {
- font-size: 11px;
- padding: 3px 8px;
- }
- }
- }
- .task-actions,
- .task-actions-row {
- flex-direction: column;
- gap: 8px;
- margin-top: 12px;
- button {
- width: 100%;
- justify-content: center;
- }
- }
- }
- }
- // 快速操作按钮
- .quick-actions {
- grid-template-columns: repeat(2, 1fr);
- gap: 12px;
- .action-btn {
- padding: 16px;
- .action-icon {
- width: 40px;
- height: 40px;
- }
- .action-label {
- font-size: 13px;
- }
- }
- }
- // 日历视图
- .calendar-view {
- .calendar-header {
- flex-direction: column;
- gap: 12px;
- .month-selector {
- width: 100%;
- justify-content: space-between;
- }
- }
- .calendar-grid {
- .calendar-day {
- min-height: 60px;
- padding: 4px;
- .day-number {
- font-size: 12px;
- }
- .event-dot {
- width: 4px;
- height: 4px;
- }
- }
- }
- }
- }
- @media (max-width: 480px) {
- .customer-service-dashboard {
- padding: 8px;
- }
- .welcome-section {
- padding: 12px 16px;
- h1 {
- font-size: 20px;
- }
- }
- .stats-dashboard {
- grid-template-columns: 1fr;
- margin-bottom: 16px;
- .stat-card {
- padding: 14px;
- .stat-value {
- font-size: 22px;
- }
- }
- }
- .crm-queues {
- margin-bottom: 16px;
- }
- .crm-item {
- .avatar.small {
- width: 24px;
- height: 24px;
- font-size: 11px;
- }
-
- .info .name {
- font-size: 14px;
- }
-
- .info .meta {
- font-size: 11px;
- gap: 6px;
- }
- }
- .quick-actions {
- grid-template-columns: 1fr;
- }
- }
- // 🆕 待办事项双栏布局样式
- .urgent-tasks-section {
- .section-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 16px 20px;
- border-bottom: 1px solid #e5e7eb;
-
- h2 {
- margin: 0;
- font-size: 18px;
- font-weight: 600;
- color: #1c1c1e;
- }
- }
- // 双栏容器
- .todo-dual-columns {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 20px;
- padding: 20px;
-
- @media (max-width: 1200px) {
- grid-template-columns: 1fr;
- gap: 16px;
- }
- }
- // 列样式
- .todo-column {
- display: flex;
- flex-direction: column;
- background: #ffffff;
- border-radius: 12px;
- border: 1px solid #e5e7eb;
- overflow: hidden;
-
- .column-header {
- padding: 16px;
- background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
- color: white;
-
- h3 {
- margin: 0;
- font-size: 16px;
- font-weight: 600;
- display: flex;
- align-items: center;
- gap: 8px;
-
- .task-count {
- margin-left: auto;
- font-size: 14px;
- font-weight: 500;
- background: rgba(255, 255, 255, 0.2);
- padding: 2px 8px;
- border-radius: 12px;
-
- &.urgent {
- background: rgba(239, 68, 68, 0.3);
- }
- }
- }
-
- .column-subtitle {
- font-size: 12px;
- opacity: 0.8;
- margin-top: 4px;
- display: block;
- }
- }
-
- .loading-state,
- .error-state,
- .empty-state {
- padding: 40px 20px;
- text-align: center;
- color: #6b7280;
-
- svg {
- margin-bottom: 12px;
- }
-
- p {
- margin: 8px 0;
- font-size: 14px;
-
- &.hint {
- font-size: 12px;
- color: #9ca3af;
- }
- }
-
- .btn-retry {
- margin-top: 12px;
- padding: 8px 16px;
- background: #007aff;
- color: white;
- border: none;
- border-radius: 6px;
- cursor: pointer;
- font-size: 14px;
-
- &:hover {
- background: #0051a8;
- }
- }
- }
-
- .todo-list-compact {
- flex: 1;
- overflow-y: auto;
- max-height: 600px;
-
- .todo-item-compact {
- display: flex;
- gap: 12px;
- padding: 12px;
- border-bottom: 1px solid #f3f4f6;
- transition: background-color 0.2s ease;
-
- &:hover {
- background-color: #f9fafb;
- }
-
- .priority-indicator {
- width: 4px;
- flex-shrink: 0;
- border-radius: 2px;
-
- &[data-priority="urgent"],
- &[data-priority="critical"] {
- background: #dc2626;
- }
-
- &[data-priority="high"] {
- background: #f97316;
- }
-
- &[data-priority="medium"] {
- background: #f59e0b;
- }
-
- &[data-priority="low"] {
- background: #6b7280;
- }
- }
-
- .task-content {
- flex: 1;
- min-width: 0;
-
- .task-header {
- display: flex;
- align-items: center;
- gap: 8px;
- margin-bottom: 6px;
-
- .task-title {
- font-size: 13px;
- font-weight: 600;
- color: #1c1c1e;
- flex: 1;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .task-badges {
- display: flex;
- gap: 6px;
- flex-shrink: 0;
-
- .badge {
- display: inline-block;
- padding: 2px 8px;
- border-radius: 4px;
- font-size: 11px;
- font-weight: 600;
- white-space: nowrap;
-
- &.badge-priority {
- &[data-priority="urgent"],
- &[data-priority="critical"] {
- background: #fee2e2;
- color: #dc2626;
- }
-
- &[data-priority="high"] {
- background: #ffedd5;
- color: #f97316;
- }
-
- &[data-priority="medium"] {
- background: #fef3c7;
- color: #f59e0b;
- }
-
- &[data-priority="low"] {
- background: #f3f4f6;
- color: #6b7280;
- }
- }
-
- &.badge-type {
- background: #dbeafe;
- color: #1e40af;
- }
- }
- }
- }
-
- .task-meta {
- font-size: 12px;
- color: #6b7280;
- margin-bottom: 6px;
- display: flex;
- gap: 8px;
- flex-wrap: wrap;
-
- .project-info,
- .designer-info {
- display: flex;
- align-items: center;
- gap: 4px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
-
- .task-footer {
- font-size: 11px;
- color: #9ca3af;
- display: flex;
- gap: 12px;
- flex-wrap: wrap;
-
- .time-info,
- .assignee-info {
- display: flex;
- align-items: center;
- gap: 4px;
- white-space: nowrap;
- }
- }
- }
-
- .task-actions {
- display: flex;
- gap: 6px;
- flex-shrink: 0;
-
- .btn-action {
- padding: 6px 10px;
- border: 1px solid #d1d5db;
- background: white;
- color: #6b7280;
- border-radius: 6px;
- cursor: pointer;
- font-size: 12px;
- display: flex;
- align-items: center;
- gap: 4px;
- transition: all 0.2s ease;
- white-space: nowrap;
-
- &:hover {
- background: #f3f4f6;
- color: #1c1c1e;
- border-color: #9ca3af;
- }
-
- &.btn-view {
- color: #007aff;
- border-color: #007aff;
-
- &:hover {
- background: #f0f9ff;
- }
- }
-
- &.btn-mark-read {
- color: #34c759;
- border-color: #34c759;
-
- &:hover {
- background: #f0fdf4;
- }
- }
- }
- }
- }
- }
- }
- // 🆕 紧急事件样式(复用设计师组长端)
- .todo-column-urgent {
- .column-header {
- background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
- }
-
- // 紧急事件特定样式
- .urgent-item {
- background: #fff8f8;
- border-left-width: 4px;
-
- &[data-urgency="critical"] {
- border-left-color: #dc2626;
- background: #fef2f2;
- }
-
- &[data-urgency="high"] {
- border-left-color: #f97316;
- background: #fff7ed;
- }
-
- &[data-urgency="medium"] {
- border-left-color: #f59e0b;
- background: #fffbeb;
- }
- }
-
- .urgency-indicator {
- width: 4px;
-
- &[data-urgency="critical"] {
- background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
- box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
- }
-
- &[data-urgency="high"] {
- background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
- }
-
- &[data-urgency="medium"] {
- background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
- }
- }
-
- .badge-urgency {
- &[data-urgency="critical"] {
- background: #fee2e2;
- color: #dc2626;
- font-weight: 700;
- }
-
- &[data-urgency="high"] {
- background: #ffedd5;
- color: #f97316;
- }
-
- &[data-urgency="medium"] {
- background: #fef3c7;
- color: #f59e0b;
- }
- }
-
- .badge-event-type {
- background: #dbeafe;
- color: #1e40af;
- }
-
- .task-description {
- font-size: 13px;
- color: #6b7280;
- margin: 8px 0;
- line-height: 1.5;
- }
-
- .deadline-info {
- &.overdue {
- color: #dc2626;
- font-weight: 600;
- }
-
- .overdue-label {
- color: #dc2626;
- font-weight: 600;
- }
-
- .upcoming-label {
- color: #f97316;
- }
-
- .today-label {
- color: #f59e0b;
- font-weight: 600;
- }
- }
-
- .completion-info {
- font-weight: 500;
- }
- }
- }
|