1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320 |
- /* 颜色变量 */
- $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;
- }
- }
- @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;
- }
- }
- /* 数据看板 */
- .stats-dashboard {
- background-color: $card-background;
- border-radius: $border-radius;
- padding: 24px;
- box-shadow: $shadow-md;
- margin-bottom: 24px;
- transition: $transition;
- }
- .stats-dashboard:hover {
- box-shadow: $shadow-lg;
- }
- .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;
- }
- .stat-card {
- background-color: $card-background;
- border: 1px solid $border-color;
- border-radius: $border-radius;
- padding: 20px;
- text-align: center;
- transition: $transition;
- cursor: pointer;
- }
- .stat-card:hover {
- border-color: $primary-color;
- box-shadow: 0 4px 12px color-mix(in srgb, $primary-color 10%, transparent);
- transform: translateY(-2px);
- }
- .stat-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;
- }
- .stat-card:nth-child(2) .stat-icon {
- background-color: color-mix(in srgb, $success-color 15%, transparent);
- color: $success-color;
- }
- .stat-card:nth-child(3) .stat-icon {
- background-color: color-mix(in srgb, $warning-color 15%, transparent);
- color: $warning-color;
- }
- .stat-card:nth-child(4) .stat-icon {
- background-color: color-mix(in srgb, $danger-color 15%, transparent);
- color: $danger-color;
- }
- .stat-number {
- font-size: 24px;
- font-weight: 700;
- color: $text-primary-dark;
- margin-bottom: 6px;
- line-height: 1.2;
- }
- .stat-label {
- font-size: 14px;
- color: $text-secondary-dark;
- margin: 0;
- }
- /* 内容网格 */
- .content-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 20px;
- margin-top: 16px;
- }
- /* 任务列表区块 */
- .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;
- }
- }
- }
- }
- }
-
- .stats-dashboard .stats-grid {
- grid-template-columns: repeat(2, 1fr);
- }
- /* 欢迎区域 */
- .welcome-section {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- padding: 24px 32px;
- border-radius: $border-radius;
- margin-bottom: 24px;
- box-shadow: $shadow-lg;
- }
- .welcome-section h2 {
- font-size: 24px;
- font-weight: 700;
- margin: 0 0 6px 0;
- }
- .welcome-section p {
- font-size: 14px;
- opacity: 0.9;
- margin: 0;
- }
- @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%;
- }
- }
- /* 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队列 */
- .crm-queues {
- margin-bottom: 24px;
- }
- .crm-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 20px;
- }
- .crm-card {
- background: $ios-card-background;
- border: 1px solid $ios-border;
- border-radius: $ios-radius-lg;
- padding: 16px;
- box-shadow: $shadow-sm;
- }
- .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-item {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: 12px;
- padding: 10px 12px;
- border-radius: 10px;
- border: 1px solid $border-color;
- background: $background-color;
- transition: $transition;
- &:hover { background: #f7f7fb; }
- .crm-item-main { display: flex; align-items: flex-start; gap: 12px; }
- .avatar.small {
- width: 28px; height: 28px; border-radius: 50%;
- background: $primary-color; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
- flex-shrink: 0;
- &.alt { background: $ios-secondary; }
- }
- .info {
- .name { font-weight: 600; color: $text-primary-dark; }
- .meta { color: $text-tertiary-dark; font-size: 12px; display: flex; gap: 8px; margin-bottom: 8px; }
- .tag {
- background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 6px;
- &.value-tag {
- background: #e8f5e8;
- color: #2e7d32;
- }
- &.price-tag {
- background: #fff3e0;
- color: #f57c00;
- }
- }
- .time { }
- .strategy-info {
- font-size: 12px;
- line-height: 1.4;
- .recommended-phrase {
- color: #555;
- margin-bottom: 4px;
- font-style: italic;
- }
- .case-strategy {
- color: #666;
- font-size: 11px;
- }
- }
- }
- .ios-btn.mini { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
- }
- .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: 480px) {
- .welcome-section {
- padding: 12px 16px;
- }
- .stats-dashboard,
- .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;
- }
- }
- }
|