.designer-assignment-container { padding: 24px; background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); // 移动端优化 @media (max-width: 768px) { padding: 16px; border-radius: 0; box-shadow: none; } } .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; h3 { margin: 0; font-size: 18px; font-weight: 600; color: #262626; } .assignment-summary { display: flex; gap: 16px; font-size: 14px; .team-info { color: #1890ff; font-weight: 500; } .cross-team-info { color: #722ed1; font-weight: 500; } } } // 精美的设计师分配选择框样式 .designer-selection-dropdown { margin-bottom: 24px; .dropdown-header { border: 2px solid #d9d9d9; border-radius: 8px; padding: 16px 20px; cursor: pointer; transition: all 0.3s ease; background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%); display: flex; align-items: center; justify-content: space-between; min-height: 60px; position: relative; overflow: hidden; &::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #1890ff 0%, #722ed1 100%); opacity: 0; transition: opacity 0.3s ease; } &:hover { border-color: #1890ff; box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15); transform: translateY(-1px); &::before { opacity: 1; } } &:active { transform: translateY(0); } .dropdown-content { flex: 1; .selected-team-info { .team-name { font-size: 16px; font-weight: 600; color: #262626; margin-bottom: 4px; } .team-summary { font-size: 14px; color: #8c8c8c; line-height: 1.4; } } .placeholder-text { display: flex; align-items: center; gap: 12px; color: #8c8c8c; font-size: 15px; .placeholder-icon { font-size: 20px; opacity: 0.8; } } } .dropdown-arrow { color: #8c8c8c; transition: all 0.3s ease; margin-left: 16px; svg { transition: transform 0.3s ease; } } &:hover .dropdown-arrow { color: #1890ff; svg { transform: translateY(-1px); } } } } // 日历弹窗样式 .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: 1100; } .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; .designer-calendar-placeholder { text-align: center; padding: 40px 20px; p { font-size: 16px; color: #8c8c8c; margin-bottom: 24px; } .designer-info-summary { background: #f9f9f9; border-radius: 8px; padding: 20px; text-align: left; max-width: 400px; margin: 0 auto; h4 { margin: 0 0 12px 0; font-size: 16px; font-weight: 600; color: #262626; } p { margin: 8px 0; font-size: 14px; color: #595959; } } } } // 自动分配建议样式 .auto-suggestion { background: linear-gradient(135deg, #fff7e6 0%, #fff2e8 100%); border: 1px solid #ffd591; border-radius: 8px; padding: 16px 20px; margin-bottom: 24px; .suggestion-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 600; color: #d46b08; .suggestion-icon { font-size: 16px; } } p { margin: 0; font-size: 14px; color: #8c4a00; line-height: 1.5; } } // 报价项目分配样式 .quotation-assignment-section { margin-bottom: 32px; h4 { margin: 0 0 16px 0; font-size: 16px; font-weight: 600; color: #262626; } } .assignment-grid { display: grid; gap: 16px; } .assignment-card { border: 1px solid #f0f0f0; border-radius: 8px; padding: 20px; background: white; .assignment-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f5f5f5; h5 { margin: 0; font-size: 15px; font-weight: 600; color: #262626; } .assigned-count { font-size: 13px; color: #1890ff; font-weight: 500; } } } .designer-selection { .available-designers { h6 { margin: 0 0 12px 0; font-size: 14px; font-weight: 600; color: #595959; } } } .designer-list { display: grid; gap: 12px; } .designer-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #f0f0f0; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; &:hover { border-color: #d9d9d9; background: #fafafa; } &.assigned { border-color: #1890ff; background: #f6ffed; } .designer-avatar { position: relative; flex-shrink: 0; img, .avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; } .avatar-placeholder { background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #8c8c8c; font-size: 16px; } } .designer-info { flex: 1; min-width: 0; .designer-name { font-size: 14px; font-weight: 600; color: #262626; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; .leader-badge { background: #1890ff; color: white; font-size: 10px; padding: 2px 4px; border-radius: 3px; font-weight: 500; } } .designer-status { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; .status-dot { width: 8px; height: 8px; border-radius: 50%; } .status-text { font-size: 12px; color: #8c8c8c; } .idle-days { font-size: 11px; color: #faad14; font-weight: 500; } } .workload-bar { position: relative; height: 4px; background: #f0f0f0; border-radius: 2px; overflow: hidden; .workload-fill { height: 100%; background: linear-gradient(90deg, #52c41a 0%, #faad14 50%, #ff4d4f 100%); transition: width 0.3s ease; } .workload-text { position: absolute; right: 0; top: -18px; font-size: 11px; color: #8c8c8c; } } } .assignment-actions { flex-shrink: 0; .assign-btn, .remove-btn { padding: 4px 8px; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; transition: all 0.2s ease; } .assign-btn { background: #1890ff; color: white; &:hover { background: #40a9ff; } } .remove-btn { background: #ff4d4f; color: white; &:hover { background: #ff7875; } } } } // 跨组合作样式 .cross-team-section { margin-bottom: 32px; padding-top: 24px; border-top: 1px solid #f0f0f0; .section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; h4 { margin: 0; font-size: 16px; font-weight: 600; color: #262626; } .toggle-btn { background: #1890ff; color: white; border: none; padding: 6px 12px; border-radius: 4px; font-size: 13px; cursor: pointer; transition: background 0.2s ease; &:hover { background: #40a9ff; } } } } .selected-collaborators { margin-bottom: 20px; h5 { margin: 0 0 12px 0; font-size: 14px; font-weight: 600; color: #595959; } } .collaborator-list { display: flex; flex-wrap: wrap; gap: 8px; } .collaborator-item { display: flex; align-items: center; gap: 8px; background: #f0f8ff; border: 1px solid #91d5ff; border-radius: 16px; padding: 6px 12px; .designer-info { .designer-name { font-size: 13px; font-weight: 500; color: #1890ff; } .team-name { font-size: 11px; color: #8c8c8c; } } .remove-collaborator-btn { background: none; border: none; color: #8c8c8c; cursor: pointer; font-size: 14px; padding: 2px; border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; &:hover { background: #ff4d4f; color: white; } } } .cross-team-selection { h5 { margin: 0 0 16px 0; font-size: 14px; font-weight: 600; color: #595959; } } .cross-team-grid { display: grid; gap: 20px; } .cross-team-group { h6 { margin: 0 0 12px 0; font-size: 13px; font-weight: 600; color: #722ed1; } .designer-item { .selection-actions { .add-btn, .remove-btn { padding: 4px 8px; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; transition: all 0.2s ease; } .add-btn { background: #722ed1; color: white; &:hover { background: #9254de; } } .remove-btn { background: #ff4d4f; color: white; &:hover { background: #ff7875; } } } } } // 备注样式 .notes-section { margin-bottom: 24px; label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #262626; } .notes-textarea { width: 100%; padding: 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px; resize: vertical; transition: border-color 0.2s ease; &:focus { outline: none; border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2); } &::placeholder { color: #bfbfbf; } } } // 分配总结样式 .assignment-summary-section { background: #fafafa; border-radius: 8px; padding: 20px; h4 { margin: 0 0 16px 0; font-size: 16px; font-weight: 600; color: #262626; } } .summary-content { .summary-item { margin-bottom: 12px; .label { font-weight: 600; color: #595959; margin-right: 8px; } .value { color: #262626; } } .assignment-list { margin-top: 8px; } .assignment-summary-item { margin-bottom: 8px; padding: 8px 12px; background: white; border-radius: 4px; border-left: 3px solid #1890ff; .project-name { font-weight: 500; color: #262626; margin-right: 12px; } .assigned-designers { display: flex; flex-wrap: wrap; gap: 4px; } .designer-tag { background: #e6f7ff; color: #1890ff; font-size: 12px; padding: 2px 6px; border-radius: 3px; } } .collaborator-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; .collaborator-tag { background: #f9f0ff; color: #722ed1; font-size: 12px; padding: 2px 6px; border-radius: 3px; } } } // 响应式设计 @media (max-width: 768px) { .designer-assignment-container { padding: 16px; } .section-header { flex-direction: column; align-items: flex-start; gap: 12px; } .designer-selection-dropdown .dropdown-header { padding: 12px 16px; min-height: 50px; } .assignment-grid { grid-template-columns: 1fr; } .cross-team-grid { grid-template-columns: 1fr; } }