// 增强版紧急待办样式 // 使用内联变量定义,不依赖外部文件 /* 增强版任务项目样式 */ .task-item-enhanced { display: flex; flex-direction: column; background: white; border-radius: 16px; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); border: 1px solid #e5e7eb; position: relative; &:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); border-color: #d1d5db; } &.completed { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border-color: #bae6fd; opacity: 0.8; .task-title { text-decoration: line-through; color: #64748b; } } &.overdue { background: linear-gradient(135deg, #fff1f2, #ffe4e6); border-color: #fecaca; } } /* 优先级指示器 */ .task-priority-indicator { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; &.high { background: linear-gradient(180deg, #ef4444, #dc2626); } &.medium { background: linear-gradient(180deg, #f59e0b, #d97706); } &.low { background: linear-gradient(180deg, #10b981, #059669); } } /* 任务主要内容 */ .task-main-content { padding: 20px 20px 16px 24px; flex: 1; } /* 任务头部行 */ .task-header-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; } /* 任务复选框 */ .task-item-enhanced .task-checkbox { padding-top: 2px; input[type="checkbox"] { width: 20px; height: 20px; accent-color: #3b82f6; border-radius: 6px; cursor: pointer; transition: all 0.2s; &:hover { transform: scale(1.1); } } } /* 任务信息 */ .task-info { flex: 1; } /* 任务标题 */ .task-item-enhanced .task-title { font-size: 16px; font-weight: 600; color: #1f2937; margin: 0 0 10px 0; line-height: 1.4; } /* 任务标签组 */ .task-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; background: #f3f4f6; color: #4b5563; &.tag-project { background: #dbeafe; color: #1e40af; } &.tag-stage { background: #fef3c7; color: #92400e; } &.tag-assignee { background: #e0e7ff; color: #4338ca; } } /* 任务描述 */ .task-description { margin: 12px 0; padding: 12px; background: #f9fafb; border-radius: 8px; border-left: 3px solid #e5e7eb; p { margin: 0; font-size: 14px; color: #6b7280; line-height: 1.6; } } /* 任务元信息行 */ .task-meta-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f3f4f6; } /* 任务元信息 */ .task-meta-info { display: flex; align-items: center; gap: 6px; color: #6b7280; font-size: 14px; svg { flex-shrink: 0; stroke-width: 2; } } .task-time { font-weight: 500; &.overdue { color: #dc2626; font-weight: 600; } } .overdue-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; background: #fee2e2; color: #dc2626; font-size: 12px; font-weight: 600; border-radius: 4px; } /* 优先级徽章 */ .task-priority-badge { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; &.high { background: #fee2e2; color: #dc2626; } &.medium { background: #fef3c7; color: #d97706; } &.low { background: #d1fae5; color: #059669; } } /* 任务操作行 */ .task-actions-row { display: flex; gap: 8px; padding: 12px 20px 12px 24px; background: #f9fafb; border-top: 1px solid #f3f4f6; } /* 操作按钮 */ .btn-action { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; svg { flex-shrink: 0; stroke-width: 2; } &:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } &:active:not(:disabled) { transform: translateY(0); } &:disabled { opacity: 0.5; cursor: not-allowed; } } .btn-process { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; flex: 1; &:hover:not(:disabled) { background: linear-gradient(135deg, #2563eb, #1d4ed8); } &.processing { background: linear-gradient(135deg, #6b7280, #4b5563); } } .btn-delete { background: white; color: #ef4444; border: 1px solid #fecaca; padding: 8px 12px; &:hover:not(:disabled) { background: #fef2f2; border-color: #fca5a5; } } // 任务进度条 .task-progress-container { margin-top: 12px; background: #e5e7eb; border-radius: 8px; overflow: hidden; height: 28px; position: relative; } .task-progress-bar { height: 100%; background: linear-gradient(90deg, #3b82f6, #2563eb); transition: width 0.3s ease; display: flex; align-items: center; justify-content: center; } .task-progress-text { color: white; font-size: 12px; font-weight: 600; position: absolute; left: 50%; transform: translateX(-50%); }