/* 项目管理页面 */
.projects-page .toolbar { gap: 8px; }
.projects-page .toolbar input[data-project-keyword] { min-width: 240px; }

.project-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  background: #eef2ff;
  color: #4f46e5;
  white-space: nowrap;
}
.project-chip.ongoing { background: #eef2ff; color: #4f46e5; }
.project-chip.completed { background: #ecfdf5; color: #059669; }
.project-chip.archived { background: #f1f5f9; color: #64748b; }

.result-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
}
.result-chip.pass { background: #ecfdf5; color: #059669; }
.result-chip.fail { background: #fef2f2; color: #dc2626; }
.result-chip.pending { background: #fefce8; color: #a16207; }

/* 详情头 */
.project-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}
.project-detail-title h3 { font-size: 18px; }
.project-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px 20px;
  margin: 8px 0 4px;
}
.project-info-grid > div { display: flex; flex-direction: column; gap: 2px; }
.project-info-grid span { font-size: 12px; color: #64748b; }
.project-info-grid strong { font-weight: 600; color: #0f172a; }

.project-desc {
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  color: #334155;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* 进度时间线 */
.project-timeline {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  position: relative;
}
.project-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #e2e8f0;
}
.project-timeline li {
  position: relative;
  padding: 0 0 16px 30px;
}
.project-timeline li:last-child { padding-bottom: 4px; }
.timeline-dot {
  position: absolute;
  left: 3px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4f46e5;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #c7d2fe;
}
.timeline-body p { margin: 0; color: #1e293b; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.timeline-body small { color: #94a3b8; font-size: 12px; }

/* 附件 */
.att-list { list-style: none; margin: 8px 0 0; padding: 0; }
.att-list li { padding: 8px 0; border-bottom: 1px dashed #e2e8f0; }
.att-list li:last-child { border-bottom: none; }
.att-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.att-icon { font-size: 14px; }
.upload-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.upload-row input[type="file"] { flex: 1; min-width: 200px; }

/* 阶段 chip */
.phase-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  background: #eff6ff;
  color: #2563eb;
  white-space: nowrap;
}

/* 阶段进度条 */
.phase-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 4px 0 8px;
  padding: 12px 8px 4px;
  background: #f8fafc;
  border-radius: 8px;
  overflow-x: auto;
}
.phase-step {
  flex: 1;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  color: #94a3b8;
}
.phase-step::before {
  content: '';
  position: absolute;
  top: 11px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
}
.phase-step:first-child::before { display: none; }
.phase-dot {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cbd5e1;
  color: #94a3b8;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.phase-label { font-size: 12px; white-space: nowrap; }
.phase-step.done { color: #059669; }
.phase-step.done::before { background: #059669; }
.phase-step.done .phase-dot { background: #059669; border-color: #059669; color: #fff; }
.phase-step.current { color: #2563eb; font-weight: 600; }
.phase-step.current::before { background: #93c5fd; }
.phase-step.current .phase-dot { background: #2563eb; border-color: #2563eb; color: #fff; }
.phase-advance { margin: 0 0 10px; }

/* 里程碑 */
.milestone-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 10px 0 12px;
}
.milestone-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #059669);
  transition: width 0.3s ease;
}
.milestone-list { list-style: none; margin: 0; padding: 0; }
.milestone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.milestone-item:last-child { border-bottom: none; }
.milestone-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #059669;
  cursor: pointer;
  flex-shrink: 0;
}
.milestone-item input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.6; }
.milestone-label { color: #334155; font-size: 14px; }
.milestone-item.done .milestone-label { color: #059669; text-decoration: line-through; }
.milestone-item small { color: #94a3b8; font-size: 12px; }

/* 进度类型 chip */
.type-chip {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  background: #f1f5f9;
  color: #64748b;
  vertical-align: 1px;
}
.type-chip.type-design { background: #eef2ff; color: #4f46e5; }
.type-chip.type-outsourcing { background: #fefce8; color: #a16207; }
.type-chip.type-test { background: #fff7ed; color: #ea580c; }
.type-chip.type-sample { background: #ecfdf5; color: #059669; }
.type-chip.type-other { background: #f1f5f9; color: #64748b; }

/* 送样反馈 */
.feedback-list { list-style: none; margin: 8px 0 0; padding: 0; }
.feedback-row { border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.feedback-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feedback-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; line-height: 18px; }
.feedback-chip.pending { background: #f1f5f9; color: #64748b; }
.feedback-chip.accepted { background: #ecfdf5; color: #059669; }
.feedback-chip.modify { background: #fefce8; color: #a16207; }
.feedback-chip.rejected { background: #fef2f2; color: #dc2626; }
.feedback-date { font-weight: 600; color: #334155; font-size: 13px; }
.feedback-content { margin: 6px 0 4px; color: #334155; font-size: 14px; line-height: 1.6; }
.feedback-att { margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
