| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593 |
- .modal-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 1050; // 🔥 降低到1050,让子弹窗可以显示在上层
- opacity: 0;
- visibility: hidden;
- transition: all 0.3s ease;
- &.visible {
- opacity: 1;
- visibility: visible;
- }
- }
- // === 复用员工详情面板的日历颜色统一覆盖(与组长端一致的绿色方案) ===
- // 说明:员工详情面板在其组件内使用了蓝色系的日历配色;
- // 组长端(dashboard-calendar.scss)对有项目/高负载采用绿色/红色方案。
- // 由于该面板在本弹窗中被复用且启用了样式封装,需要使用 ::ng-deep 做定向覆盖,
- // 仅影响本弹窗内的 app-employee-detail-panel,不改变原组件在组长端的表现。
- :host ::ng-deep app-employee-detail-panel .employee-calendar .calendar-grid .calendar-day.has-projects {
- background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
- border-color: #10b981;
- }
- :host ::ng-deep app-employee-detail-panel .employee-calendar .calendar-grid .calendar-day .day-badge {
- background: #10b981;
- color: #ffffff;
- }
- :host ::ng-deep app-employee-detail-panel .employee-calendar .calendar-grid .calendar-day .day-badge.high-load {
- background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
- color: #dc2626;
- font-weight: 600;
- }
- :host ::ng-deep app-employee-detail-panel .employee-calendar .calendar-legend .legend-dot.project-dot {
- background: #10b981;
- }
- .modal-container {
- background: white;
- border-radius: 12px;
- width: 90vw; // 🔥 桌面端默认90vw,确保足够宽
- min-width: 900px; // 🔥 桌面端最小宽度900px
- max-width: 1200px;
- max-height: 95vh; // 🔥 从92vh增加到95vh,提供更多空间
- display: flex;
- flex-direction: column;
- box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
- transform: scale(0.9);
- transition: transform 0.3s ease;
- .modal-overlay.visible & {
- transform: scale(1);
- }
- }
- .modal-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 24px 32px;
- border-bottom: 1px solid #f0f0f0;
- h2 {
- margin: 0;
- font-size: 20px;
- font-weight: 600;
- color: #262626;
- }
- .close-btn {
- background: none;
- border: none;
- padding: 8px;
- cursor: pointer;
- border-radius: 6px;
- color: #8c8c8c;
- transition: all 0.2s ease;
- &:hover {
- background: #f5f5f5;
- color: #262626;
- }
- }
- }
- .modal-body {
- flex: 1;
- overflow-y: auto;
- overflow-x: hidden; // 🔥 防止横向滚动
- padding: 24px 32px 80px 32px; // 🔥 底部内边距从48px大幅增加到80px
- background: #fafafa; // 浅灰色背景,增强对比度
- min-height: 0; // 🔥 关键:允许flex子元素正确计算高度
- position: relative; // 🔥 为滚动指示器定位
-
- // 🔥 优化滚动体验
- scroll-behavior: smooth;
-
- // 🔥 美化滚动条(始终可见,提示用户可滚动)
- &::-webkit-scrollbar {
- width: 10px; // 🔥 稍微加宽,更显眼
- }
-
- &::-webkit-scrollbar-track {
- background: #e8e8e8; // 🔥 稍微深一点,更容易被注意到
- border-radius: 5px;
- margin: 4px 0; // 🔥 顶部和底部留出间距
- }
-
- &::-webkit-scrollbar-thumb {
- background: #1890ff; // 🔥 使用主色调,更显眼
- border-radius: 5px;
- border: 2px solid #e8e8e8; // 🔥 添加边框,视觉上更突出
-
- &:hover {
- background: #40a9ff; // 🔥 悬停时更亮
- }
-
- &:active {
- background: #096dd9; // 🔥 点击时更深
- }
- }
- }
- .team-selection-section {
- margin-bottom: 32px;
- h3 {
- margin: 0 0 16px 0;
- font-size: 16px;
- font-weight: 600;
- color: #262626;
- }
- }
- .team-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
- gap: 16px;
- }
- .team-card {
- border: 2px solid #f0f0f0;
- border-radius: 8px;
- padding: 20px;
- cursor: pointer;
- transition: all 0.2s ease;
- background: white;
- &:hover {
- border-color: #d9d9d9;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- }
- &.selected {
- border-color: #1890ff;
- background: #f6ffed;
- box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
- }
- .team-header {
- margin-bottom: 12px;
- h4 {
- margin: 0 0 4px 0;
- font-size: 16px;
- font-weight: 600;
- color: #262626;
- }
- .team-leader {
- font-size: 14px;
- color: #8c8c8c;
- }
- }
- .team-description {
- font-size: 14px;
- color: #595959;
- margin-bottom: 16px;
- line-height: 1.5;
- }
- .team-stats {
- display: flex;
- gap: 16px;
- .stat-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- .stat-label {
- font-size: 12px;
- color: #8c8c8c;
- margin-bottom: 4px;
- }
- .stat-value {
- font-size: 14px;
- font-weight: 600;
- color: #262626;
- &.idle {
- color: #52c41a;
- }
- }
- }
- }
- }
- .designer-selection-section {
- .section-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 24px;
- h3 {
- margin: 0;
- font-size: 16px;
- font-weight: 600;
- color: #262626;
- }
- .selection-summary {
- font-size: 14px;
- color: #1890ff;
- font-weight: 500;
- }
- }
- }
- .recommended-section {
- margin-bottom: 32px;
- padding: 20px;
- background: linear-gradient(135deg, #fff7e6 0%, #fff2e8 100%);
- border-radius: 8px;
- border: 1px solid #ffd591;
- h4 {
- margin: 0 0 16px 0;
- font-size: 15px;
- font-weight: 600;
- color: #d46b08;
- display: flex;
- align-items: center;
- gap: 8px;
- .recommend-icon {
- font-size: 16px;
- }
- }
- }
- .all-members-section {
- h4 {
- margin: 0 0 16px 0;
- font-size: 15px;
- font-weight: 600;
- color: #262626;
- }
- }
- .designer-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
- gap: 16px;
- }
- .designer-card {
- border: 3px solid #e8e8e8;
- border-radius: 10px;
- padding: 16px;
- cursor: pointer;
- transition: all 0.3s ease;
- background: white;
- display: flex;
- gap: 12px;
- position: relative;
- overflow: hidden; // ⭐ 修复:防止内部元素溢出
- // 🎨 根据工作量状态添加明显的颜色标识
- // ⭐ 优化:调整长条样式,避免过于明显
- &::before {
- content: '';
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- width: 4px; // 从6px减少到4px,更加精致
- border-radius: 10px 0 0 10px;
- transition: all 0.3s ease;
- opacity: 0.8; // 添加透明度,使其不那么突兀
- }
- // 🟢 空闲(0个项目)- 明显的绿色
- &.status-idle {
- border-color: #52c41a;
- background: linear-gradient(135deg, #f6ffed 0%, #ffffff 100%);
-
- &::before {
- background: linear-gradient(180deg, #73d13d 0%, #52c41a 100%);
- box-shadow: 0 0 10px rgba(82, 196, 26, 0.4);
- }
- &:hover {
- border-color: #73d13d;
- box-shadow: 0 6px 16px rgba(82, 196, 26, 0.25);
- transform: translateY(-2px);
- }
- }
- // 🟠 有项目(1-5个)- 明显的橙色
- &.status-reviewing {
- border-color: #faad14;
- background: linear-gradient(135deg, #fff7e6 0%, #ffffff 100%);
-
- &::before {
- background: linear-gradient(180deg, #ffc53d 0%, #faad14 100%);
- box-shadow: 0 0 10px rgba(250, 173, 20, 0.4);
- }
- &:hover {
- border-color: #ffc53d;
- box-shadow: 0 6px 16px rgba(250, 173, 20, 0.25);
- transform: translateY(-2px);
- }
- }
- // 🔴 繁忙(>5个项目)- 明显的红色
- &.status-stagnant {
- border-color: #ff4d4f;
- background: linear-gradient(135deg, #fff1f0 0%, #ffffff 100%);
-
- &::before {
- background: linear-gradient(180deg, #ff7875 0%, #ff4d4f 100%);
- box-shadow: 0 0 10px rgba(255, 77, 79, 0.4);
- }
- &:hover {
- border-color: #ff7875;
- box-shadow: 0 6px 16px rgba(255, 77, 79, 0.25);
- transform: translateY(-2px);
- }
- }
- &.selected {
- border-color: #1890ff;
- border-width: 3px;
- box-shadow: 0 6px 20px rgba(24, 144, 255, 0.25);
- transform: translateY(-2px);
-
- // 选中状态保留原有颜色标识
- &.status-idle::before {
- background: linear-gradient(180deg, #73d13d 0%, #52c41a 100%);
- }
- &.status-reviewing::before {
- background: linear-gradient(180deg, #ffc53d 0%, #faad14 100%);
- }
- &.status-stagnant::before {
- background: linear-gradient(180deg, #ff7875 0%, #ff4d4f 100%);
- }
- }
- &.recommended {
- border-color: #faad14;
-
- &.selected {
- border-color: #1890ff;
- }
- }
- &.cross-team {
- // 🟢 空闲(0个项目)- 明显的绿色
- &.status-idle {
- border-color: #52c41a;
- background: linear-gradient(135deg, #f6ffed 0%, #ffffff 100%);
-
- &::before {
- background: linear-gradient(180deg, #73d13d 0%, #52c41a 100%);
- box-shadow: 0 0 10px rgba(82, 196, 26, 0.4);
- }
- &:hover {
- border-color: #73d13d;
- box-shadow: 0 6px 16px rgba(82, 196, 26, 0.25);
- transform: translateY(-2px);
- }
- }
- // 🟠 有项目(1-5个)- 明显的橙色
- &.status-reviewing {
- border-color: #faad14;
- background: linear-gradient(135deg, #fff7e6 0%, #ffffff 100%);
-
- &::before {
- background: linear-gradient(180deg, #ffc53d 0%, #faad14 100%);
- box-shadow: 0 0 10px rgba(250, 173, 20, 0.4);
- }
- &:hover {
- border-color: #ffc53d;
- box-shadow: 0 6px 16px rgba(250, 173, 20, 0.25);
- transform: translateY(-2px);
- }
- }
- // 🔴 繁忙(>5个项目)- 明显的红色
- &.status-stagnant {
- border-color: #ff4d4f;
- background: linear-gradient(135deg, #fff1f0 0%, #ffffff 100%);
-
- &::before {
- background: linear-gradient(180deg, #ff7875 0%, #ff4d4f 100%);
- box-shadow: 0 0 10px rgba(255, 77, 79, 0.4);
- }
- &:hover {
- border-color: #ff7875;
- box-shadow: 0 6px 16px rgba(255, 77, 79, 0.25);
- transform: translateY(-2px);
- }
- }
- &.selected {
- border-color: #1890ff;
- border-width: 3px;
- box-shadow: 0 6px 20px rgba(24, 144, 255, 0.25);
- transform: translateY(-2px);
-
- // 选中状态保留原有颜色标识
- &.status-idle::before {
- background: linear-gradient(180deg, #73d13d 0%, #52c41a 100%);
- }
- &.status-reviewing::before {
- background: linear-gradient(180deg, #ffc53d 0%, #faad14 100%);
- }
- &.status-stagnant::before {
- background: linear-gradient(180deg, #ff7875 0%, #ff4d4f 100%);
- }
- }
- }
- .designer-avatar {
- position: relative;
- flex-shrink: 0;
- img, .avatar-placeholder {
- width: 48px;
- height: 48px;
- border-radius: 50%;
- }
- .avatar-placeholder {
- background: #f0f0f0;
- display: flex;
- align-items: center;
- justify-content: center;
- font-weight: 600;
- color: #8c8c8c;
- font-size: 18px;
- }
- .status-dot {
- position: absolute;
- bottom: 2px;
- right: 2px;
- width: 12px;
- height: 12px;
- border-radius: 50%;
- border: 2px solid white;
- }
- }
- .designer-info {
- flex: 1;
- min-width: 0;
- // ⭐ 修复:限制信息区域最大高度,避免卡片过高
- max-height: 160px;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- .designer-name {
- font-size: 15px;
- font-weight: 600;
- color: #262626;
- margin-bottom: 4px;
- display: flex;
- align-items: center;
- gap: 8px;
- flex-shrink: 0; // 名称不收缩
- .leader-badge {
- background: #1890ff;
- color: white;
- font-size: 11px;
- padding: 2px 6px;
- border-radius: 4px;
- font-weight: 500;
- }
- .project-leader-star {
- font-size: 16px;
- margin-right: 4px;
- animation: sparkle 2s ease-in-out infinite;
- }
- .project-leader-badge {
- background: linear-gradient(135deg, #ff6b6b, #ffa500);
- color: white;
- font-size: 11px;
- padding: 2px 6px;
- border-radius: 4px;
- font-weight: 600;
- margin-left: 4px;
- box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
- }
- .team-tag {
- background: #722ed1;
- color: white;
- font-size: 11px;
- padding: 2px 6px;
- border-radius: 4px;
- font-weight: 500;
- }
- }
- .designer-status {
- display: flex;
- align-items: center;
- gap: 12px;
- margin-bottom: 8px;
- .status-text {
- font-size: 13px;
- font-weight: 500;
- }
- // 🔥 新增:项目数量显示样式
- .project-count {
- font-size: 12px;
- padding: 2px 8px;
- border-radius: 12px;
- font-weight: 600;
- background: rgba(0, 0, 0, 0.04);
- border: 1px solid currentColor;
- opacity: 0.9;
- }
- .workload {
- font-size: 12px;
- padding: 2px 6px;
- border-radius: 4px;
- font-weight: 500;
- &.low {
- background: #f6ffed;
- color: #52c41a;
- }
- &.medium {
- background: #fff7e6;
- color: #faad14;
- }
- &.high {
- background: #fff2f0;
- color: #ff4d4f;
- }
- }
- }
- .designer-metrics {
- margin-bottom: 8px;
- flex-shrink: 1; // 允许收缩
- overflow: hidden; // 隐藏溢出内容
- .metric-item {
- margin-bottom: 4px;
- .metric-label {
- font-size: 12px;
- color: #8c8c8c;
- // ⭐ 修复:限制单行显示,避免日期过长导致卡片变形
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- max-width: 100%;
- }
- &.active .metric-label {
- color: #52c41a;
- font-weight: 500;
- }
- &.recent .metric-label {
- color: #faad14;
- font-weight: 500;
- }
- &.moderate .metric-label {
- color: #1890ff;
- font-weight: 500;
- }
- &.long .metric-label {
- color: #ff4d4f;
- font-weight: 500;
- }
- &.review-dates .metric-label {
- color: #722ed1;
- font-weight: 500;
- // ⭐ 修复:对图日期特别处理,最多显示2行
- white-space: normal;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- line-clamp: 2; // 标准属性,放在vendor前缀之后
- line-height: 1.4;
-
- .more-dates {
- display: inline-block;
- margin-left: 4px;
- padding: 2px 6px;
- background: rgba(114, 46, 209, 0.1);
- border-radius: 4px;
- font-size: 11px;
- color: #722ed1;
- font-weight: 600;
- }
- }
- }
- }
- .designer-skills {
- display: flex;
- flex-wrap: wrap;
- gap: 4px;
- .skill-tag {
- background: #f0f0f0;
- color: #595959;
- font-size: 11px;
- padding: 2px 6px;
- border-radius: 4px;
- }
- .skill-more {
- background: #d9d9d9;
- color: #8c8c8c;
- font-size: 11px;
- padding: 2px 6px;
- border-radius: 4px;
- }
- }
- }
- .designer-actions {
- flex-shrink: 0;
- display: flex;
- flex-direction: column; // ⭐ 改为垂直布局,避免横向过宽
- align-items: center;
- gap: 6px; // 按钮之间的间距
- .calendar-btn,
- .space-assign-btn {
- background: white;
- border: 1px solid #e2e8f0;
- padding: 6px 10px;
- cursor: pointer;
- border-radius: 6px;
- font-size: 14px; // 从16px减少到14px
- transition: all 0.2s ease;
- white-space: nowrap; // 防止文字换行
- &:hover {
- background: #f8fafc;
- border-color: #cbd5e1;
- transform: scale(1.05);
- }
- }
- }
- }
- .cross-team-section {
- margin-top: 32px;
- padding-top: 24px;
- border-top: 1px solid #f0f0f0;
- .cross-team-header {
- display: flex;
- align-items: center;
- gap: 12px;
- margin-bottom: 16px;
- .checkbox-label {
- display: flex;
- align-items: center;
- gap: 8px;
- cursor: pointer;
- font-weight: 500;
- color: #262626;
- input[type="checkbox"] {
- width: 16px;
- height: 16px;
- }
- }
- .cross-team-hint {
- font-size: 13px;
- color: #8c8c8c;
- }
- }
- .cross-team-designers {
- h4 {
- margin: 16px 0 12px 0;
- font-size: 14px;
- font-weight: 600;
- color: #722ed1;
- }
- }
- }
- // 移除原来的 modal-footer 样式,因为已经移到内容区域内
- .assignment-summary-section {
- margin-top: 32px; // 🔥 增加顶部间距
- margin-bottom: 60px; // 🔥 底部间距从40px再增加到60px,确保按钮可见
- padding: 24px;
- background: #ffffff; // 🔥 改为白色背景,更显眼
- border-radius: 12px;
- border: 2px solid #1890ff; // 🔥 加粗边框,使用主色调
- box-shadow: 0 4px 12px rgba(24, 144, 255, 0.1); // 🔥 添加阴影
-
- // 🔥 确保在可见区域内
- position: relative;
- z-index: 1;
- .summary-header {
- margin-bottom: 16px;
-
- h4 {
- margin: 0;
- font-size: 16px;
- font-weight: 600;
- color: #262626;
- }
- }
- .selection-summary {
- margin-bottom: 20px;
- .summary-item {
- margin-bottom: 12px;
- font-size: 14px;
- display: flex;
- align-items: center;
- gap: 8px;
- .summary-label {
- color: #8c8c8c;
- font-weight: 500;
- }
- .summary-value {
- color: #262626;
- font-weight: 500;
- &.project-leader {
- color: #ff6b6b;
- font-weight: 600;
- background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 165, 0, 0.1));
- padding: 2px 8px;
- border-radius: 4px;
- border: 1px solid rgba(255, 107, 107, 0.3);
- }
- }
- }
- }
- .modal-actions {
- display: flex;
- gap: 12px;
- justify-content: flex-end;
- margin-top: 20px; // 🔥 增加与摘要内容的间距
- padding: 20px; // 🔥 四周内边距
- margin: 20px -24px -24px -24px; // 🔥 负边距让其延伸到容器边缘
- background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 100%); // 🔥 渐变背景
- border-top: 2px solid #e8e8e8; // 🔥 加粗分隔线
- border-radius: 0 0 12px 12px; // 🔥 底部圆角
- box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05); // 🔥 向上的阴影,增强可见性
- .btn-secondary, .btn-primary {
- padding: 12px 24px; // 🔥 增大按钮
- border-radius: 8px; // 🔥 增加圆角
- font-size: 14px;
- font-weight: 600; // 🔥 加粗字体
- cursor: pointer;
- transition: all 0.2s ease;
- border: none;
- min-width: 100px; // 🔥 最小宽度
- flex-shrink: 0; // 🔥 防止缩小
- }
- .btn-secondary {
- background: #f5f5f5;
- color: #595959;
- border: 1px solid #d9d9d9; // 🔥 添加边框
- &:hover {
- background: #e6e6e6;
- border-color: #bfbfbf;
- }
- }
- .btn-primary {
- background: #1890ff;
- color: white;
- box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2); // 🔥 添加阴影
- &:hover:not(:disabled) {
- background: #40a9ff;
- box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
- transform: translateY(-1px); // 🔥 轻微上移效果
- }
- &:disabled {
- background: #d9d9d9;
- color: #bfbfbf;
- cursor: not-allowed;
- box-shadow: none;
- }
- }
-
- // 🔥 响应式优化:小屏幕下按钮占满宽度
- @media (max-width: 480px) {
- flex-direction: column;
-
- .btn-secondary, .btn-primary {
- width: 100%;
- }
- }
- }
- }
- // 设计师详细日历弹窗样式
- .calendar-modal-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 1150; // 🔥 设置为1150,在主弹窗(1050)之上
- }
- .calendar-modal-container {
- background: white;
- border-radius: 12px;
- width: 80vw;
- max-width: 800px;
- max-height: 80vh;
- display: flex;
- flex-direction: column;
- box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
- }
- .calendar-modal-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 20px 24px;
- border-bottom: 1px solid #f0f0f0;
- h3 {
- margin: 0;
- font-size: 18px;
- font-weight: 600;
- color: #262626;
- }
- .close-btn {
- background: none;
- border: none;
- padding: 6px;
- cursor: pointer;
- border-radius: 4px;
- color: #8c8c8c;
- transition: all 0.2s ease;
- &:hover {
- background: #f5f5f5;
- color: #262626;
- }
- }
- }
- .calendar-modal-body {
- flex: 1;
- overflow-y: auto;
- padding: 24px;
- }
- // 响应式设计
- @media (max-width: 768px) {
- .modal-container {
- width: 95vw;
- max-height: 95vh;
- }
- .modal-header,
- .modal-body,
- .modal-footer {
- padding-left: 16px;
- padding-right: 16px;
- }
- .team-grid {
- grid-template-columns: 1fr;
- }
- .designer-grid {
- grid-template-columns: 1fr;
- }
- .modal-footer {
- flex-direction: column;
- align-items: stretch;
- gap: 16px;
- .modal-actions {
- justify-content: stretch;
- .btn-secondary,
- .btn-primary {
- flex: 1;
- }
- }
- }
- }
- // ===== 空间分配相关样式 =====
- // ⭐ 注意:.designer-actions 已在上面的 .designer-card 中定义,这里移除重复定义
- .designer-spaces-info {
- margin-top: 12px;
- padding: 10px;
- background: #f0f9ff;
- border: 1px solid #bae6fd;
- border-radius: 6px;
- font-size: 13px;
- .spaces-label {
- color: #0369a1;
- font-weight: 500;
- margin-right: 6px;
- }
- .spaces-value {
- color: #075985;
- }
- }
- // 空间分配弹窗
- .space-assignment-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.6);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 1200; // 🔥 设置为1200,在主弹窗(1050)和日历弹窗(1150)之上
- animation: fadeIn 0.2s ease;
- }
- .space-assignment-container {
- background: white;
- border-radius: 12px;
- width: 90%;
- max-width: 600px;
- max-height: 85vh; // 🔥 从80vh增加到85vh,提供更多空间
- display: flex;
- flex-direction: column;
- animation: slideUp 0.3s ease;
- overflow: hidden;
- }
- .space-assignment-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 20px 24px;
- border-bottom: 1px solid #e2e8f0;
- .designer-preview {
- display: flex;
- align-items: center;
- gap: 12px;
- .designer-avatar {
- width: 48px;
- height: 48px;
- border-radius: 50%;
- overflow: hidden;
- position: relative;
- img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- .avatar-placeholder {
- width: 100%;
- height: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- font-size: 20px;
- font-weight: 600;
- }
- }
- .designer-name {
- font-size: 18px;
- font-weight: 600;
- color: #1e293b;
- }
- }
- .close-btn {
- width: 32px;
- height: 32px;
- border: none;
- background: #f8fafc;
- border-radius: 6px;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- color: #64748b;
- transition: all 0.2s ease;
- &:hover {
- background: #f1f5f9;
- color: #0f172a;
- }
- }
- }
- .space-selection-section {
- padding: 24px 24px 32px 24px; // 🔥 增加底部padding从24px到32px
- overflow-y: auto; // 🔥 添加滚动
- flex: 1; // 🔥 允许弹性增长
- // 🔥 滚动条样式
- &::-webkit-scrollbar {
- width: 8px;
- }
- &::-webkit-scrollbar-track {
- background: #f1f5f9;
- border-radius: 4px;
- }
- &::-webkit-scrollbar-thumb {
- background: #cbd5e1;
- border-radius: 4px;
- &:hover {
- background: #94a3b8;
- }
- }
- .form-label {
- font-size: 16px;
- font-weight: 600;
- color: #1e293b;
- margin-bottom: 8px;
- display: block;
- .required {
- color: #dc2626;
- margin-left: 4px;
- }
- }
- .form-help {
- font-size: 13px;
- color: #64748b;
- margin-bottom: 20px;
- }
- .space-checkbox-list {
- display: flex;
- flex-direction: column;
- gap: 12px;
- max-height: 400px;
- overflow-y: auto;
- padding-right: 8px;
- padding-bottom: 16px; // 🔥 列表底部额外空间
- &::-webkit-scrollbar {
- width: 6px;
- }
- &::-webkit-scrollbar-track {
- background: #f1f5f9;
- border-radius: 3px;
- }
- &::-webkit-scrollbar-thumb {
- background: #cbd5e1;
- border-radius: 3px;
- &:hover {
- background: #94a3b8;
- }
- }
- .space-checkbox-item {
- display: flex;
- align-items: flex-start;
- gap: 12px;
- padding: 14px;
- border: 1px solid #e2e8f0;
- border-radius: 8px;
- cursor: pointer;
- transition: all 0.2s ease;
- &:hover {
- border-color: #cbd5e1;
- background: #f8fafc;
- }
- input[type="checkbox"] {
- display: none;
- }
- .checkbox-custom {
- width: 20px;
- height: 20px;
- border: 2px solid #cbd5e1;
- border-radius: 4px;
- flex-shrink: 0;
- position: relative;
- transition: all 0.2s ease;
- &::after {
- content: '';
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%) scale(0);
- width: 10px;
- height: 6px;
- border: 2px solid white;
- border-top: none;
- border-right: none;
- transform: translate(-50%, -60%) rotate(-45deg) scale(0);
- transition: transform 0.2s ease;
- }
- }
- input[type="checkbox"]:checked + .checkbox-custom {
- background: #4f46e5;
- border-color: #4f46e5;
- &::after {
- transform: translate(-50%, -60%) rotate(-45deg) scale(1);
- }
- }
- .space-info {
- flex: 1;
- display: flex;
- flex-direction: column;
- gap: 4px;
- .space-name {
- font-size: 14px;
- font-weight: 500;
- color: #1e293b;
- }
- .space-area {
- font-size: 13px;
- color: #64748b;
- font-weight: 400;
- }
- .space-desc {
- font-size: 12px;
- color: #94a3b8;
- }
- }
- }
- }
- }
- .space-assignment-footer {
- display: flex;
- justify-content: flex-end;
- gap: 12px;
- padding: 20px 24px; // 🔥 增加padding从16px到20px
- border-top: 2px solid #e2e8f0; // 🔥 加粗边框
- background: linear-gradient(to top, #f8fafc 0%, #ffffff 100%); // 🔥 渐变背景
- box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05); // 🔥 向上阴影增强可见性
- flex-shrink: 0; // 🔥 防止缩小
- .btn-secondary,
- .btn-primary {
- padding: 12px 28px; // 🔥 增加padding从10px 24px到12px 28px
- border-radius: 8px; // 🔥 增加圆角
- border: none;
- font-size: 14px;
- font-weight: 600; // 🔥 加粗字体从500到600
- cursor: pointer;
- transition: all 0.2s ease;
- min-width: 100px; // 🔥 最小宽度
- flex-shrink: 0; // 🔥 防止缩小
- }
- .btn-secondary {
- background: white;
- color: #64748b;
- border: 1px solid #e2e8f0;
- &:hover {
- background: #f1f5f9;
- border-color: #cbd5e1;
- transform: translateY(-1px); // 🔥 hover时轻微上移
- }
- &:active {
- transform: translateY(0); // 🔥 点击时回到原位
- }
- }
- .btn-primary {
- background: #4f46e5;
- color: white;
- box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2); // 🔥 添加阴影
- &:hover {
- background: #4338ca;
- box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); // 🔥 hover时增强阴影
- transform: translateY(-1px); // 🔥 hover时轻微上移
- }
- &:active {
- transform: translateY(0); // 🔥 点击时回到原位
- }
- }
- }
- // 空间加载状态
- .space-loading {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 12px;
- padding: 40px 20px;
- color: #64748b;
- font-size: 14px;
- .spinner {
- width: 20px;
- height: 20px;
- border: 2px solid #e2e8f0;
- border-top-color: #4f46e5;
- border-radius: 50%;
- animation: spin 0.8s linear infinite;
- }
- }
- // 空间加载错误
- .space-error {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 16px;
- background: #fef2f2;
- border: 1px solid #fecaca;
- border-radius: 8px;
- color: #dc2626;
- font-size: 14px;
- margin-bottom: 16px;
- .icon-warning {
- width: 20px;
- height: 20px;
- flex-shrink: 0;
- }
- }
- // 🔥 响应式优化:小屏幕下空间分配弹窗
- @media (max-width: 768px) {
- .space-assignment-container {
- width: 95%;
- max-height: 90vh; // 🔥 增加高度
- }
-
- .space-assignment-header {
- padding: 16px 20px;
-
- .designer-name {
- font-size: 16px;
- }
- }
-
- .space-selection-section {
- padding: 20px 20px 40px 20px; // 🔥 增加底部空间
- }
-
- .space-assignment-footer {
- padding: 18px 20px;
-
- .btn-secondary,
- .btn-primary {
- padding: 12px 24px;
- font-size: 14px;
- min-width: 90px;
- }
- }
- }
- @media (max-width: 480px) {
- .space-assignment-container {
- width: 98%;
- max-height: 92vh; // 🔥 进一步增加高度
- border-radius: 8px;
- }
-
- .space-assignment-header {
- padding: 14px 16px;
-
- .designer-avatar {
- width: 40px;
- height: 40px;
- }
-
- .designer-name {
- font-size: 15px;
- }
- }
-
- .space-selection-section {
- padding: 16px 16px 36px 16px; // 🔥 增加底部空间
-
- .form-label {
- font-size: 15px;
- }
-
- .space-checkbox-list {
- max-height: 300px;
- padding-bottom: 20px; // 🔥 增加列表底部空间
- }
- }
-
- .space-assignment-footer {
- padding: 16px;
- gap: 10px;
-
- .btn-secondary,
- .btn-primary {
- padding: 12px 20px;
- font-size: 14px;
- min-width: 85px;
- flex: 1; // 🔥 在小屏幕下平分空间
- }
- }
- }
- // 空间列表为空
- .space-empty {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 60px 20px;
- text-align: center;
- .icon-empty {
- width: 48px;
- height: 48px;
- color: #cbd5e1;
- margin-bottom: 16px;
- }
- p {
- margin: 0 0 8px;
- font-size: 14px;
- font-weight: 500;
- color: #64748b;
- }
- small {
- font-size: 12px;
- color: #94a3b8;
- }
- }
- @keyframes spin {
- to {
- transform: rotate(360deg);
- }
- }
- @keyframes fadeIn {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
- }
- @keyframes slideUp {
- from {
- transform: translateY(20px);
- opacity: 0;
- }
- to {
- transform: translateY(0);
- opacity: 1;
- }
- }
- @keyframes sparkle {
- 0%, 100% {
- transform: scale(1);
- opacity: 1;
- }
- 50% {
- transform: scale(1.2);
- opacity: 0.8;
- }
- }
- // 🔥 响应式优化:大屏幕桌面端
- @media (min-width: 1441px) {
- .modal-container {
- width: 85vw; // 🔥 超大屏幕稍微窄一点
- min-width: 1000px;
- max-width: 1400px; // 🔥 增加最大宽度
- }
- }
- // 🔥 响应式优化:标准桌面端
- @media (min-width: 1025px) and (max-width: 1440px) {
- .modal-container {
- width: 90vw;
- min-width: 900px;
- max-width: 1200px;
- }
- }
- // 🔥 响应式优化:中等屏幕适配
- @media (min-width: 769px) and (max-width: 1024px) {
- .modal-container {
- width: 90vw;
- min-width: 700px; // 🔥 中等屏幕最小宽度700px
- max-width: 1000px;
- }
- }
- // 🔥 响应式优化:小屏幕适配
- @media (max-width: 768px) {
- .modal-container {
- width: 95vw;
- min-width: auto; // 🔥 移除最小宽度限制
- max-height: 96vh; // 🔥 增加到96vh
- }
-
- .modal-header {
- padding: 20px 24px;
-
- h2 {
- font-size: 18px;
- }
- }
-
- .modal-body {
- padding: 20px 24px 80px 24px; // 🔥 底部内边距从60px增加到80px,确保按钮完全可见
- }
-
- .assignment-summary-section {
- margin-top: 24px;
- margin-bottom: 50px; // 🔥 底部间距从32px增加到50px,确保按钮完全可见
- padding: 20px;
-
- .summary-header h4 {
- font-size: 15px;
- }
-
- .selection-summary .summary-item {
- font-size: 13px;
- flex-wrap: wrap;
- }
- .modal-actions {
- margin: 16px -20px -20px -20px; // 🔥 负边距延伸到容器边缘
- padding: 16px 20px; // 🔥 四周内边距
- background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 100%);
- border-top: 2px solid #e8e8e8;
- box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
- border-radius: 0 0 12px 12px;
-
- .btn-secondary, .btn-primary {
- padding: 12px 22px;
- font-size: 14px;
- min-width: 95px;
- font-weight: 600;
- }
- }
- }
- }
- @media (max-width: 480px) {
- .modal-container {
- width: 98vw;
- min-width: auto; // 🔥 移除最小宽度限制
- max-height: 97vh; // 🔥 增加到97vh
- border-radius: 8px;
- }
-
- .modal-header {
- padding: 16px 20px;
-
- h2 {
- font-size: 16px;
- }
- }
-
- .modal-body {
- padding: 16px 20px 70px 20px; // 🔥 底部内边距从50px增加到70px,确保按钮完全可见
- }
-
- .assignment-summary-section {
- margin-top: 20px;
- margin-bottom: 40px; // 🔥 底部间距从24px增加到40px,确保按钮完全可见
- padding: 16px;
- border-radius: 8px;
-
- .summary-header h4 {
- font-size: 14px;
- }
-
- .selection-summary .summary-item {
- font-size: 12px;
- margin-bottom: 8px;
- }
-
- .modal-actions {
- margin: 16px -16px -16px -16px; // 🔥 负边距延伸到容器边缘
- padding: 16px; // 🔥 四周内边距
- gap: 10px; // 🔥 减小按钮间距节省空间
- background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 100%);
- border-top: 2px solid #e8e8e8;
- box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08); // 🔥 增强阴影
- border-radius: 0 0 8px 8px;
-
- .btn-secondary, .btn-primary {
- padding: 12px 20px; // 🔥 增加padding确保易点击
- font-size: 14px; // 🔥 保持字体大小
- min-width: 90px; // 🔥 最小宽度
- font-weight: 600;
- }
- }
- }
- }
|