.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; } } } }