/* 应用上线进度 Todo 看板 */
.todo-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.todo-hero {
  margin-bottom: 32px;
}

.todo-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.todo-hero > p {
  color: #666;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.todo-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .todo-summary { grid-template-columns: repeat(2, 1fr); }
}

.todo-stat-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.todo-stat-card .num {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
}

.todo-stat-card .num.live { color: #059669; }
.todo-stat-card .num.dev { color: #d97706; }
.todo-stat-card .num.pending { color: #6b7280; }

.todo-stat-card .label {
  font-size: 0.8rem;
  color: #999;
  margin-top: 4px;
}

.todo-user-banner {
  background: linear-gradient(135deg, #eefbff, #f0f4ff);
  border: 1px solid #b8d4ff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.todo-user-banner h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.todo-user-banner p {
  font-size: 0.85rem;
  color: #555;
}

.todo-user-banner .status-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 500;
}

.todo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.todo-filters button {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #555;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.todo-filters button:hover {
  border-color: #00a8c5;
  color: #00a8c5;
}

.todo-filters button.active {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.todo-item {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.todo-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.todo-item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}

.todo-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #fff;
}

.todo-item-info {
  flex: 1;
  min-width: 0;
}

.todo-item-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.todo-item-info h3 a {
  color: inherit;
  text-decoration: none;
}

.todo-item-info h3 a:hover {
  color: #00a8c5;
}

.todo-item-meta {
  font-size: 0.8rem;
  color: #888;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.todo-item-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.todo-progress-ring {
  position: relative;
  width: 52px;
  height: 52px;
}

.todo-progress-ring svg {
  transform: rotate(-90deg);
}

.todo-progress-ring .pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a1a2e;
}

.todo-badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.todo-badge.live {
  background: #d1fae5;
  color: #065f46;
}

.todo-badge.coming-soon {
  background: #f3f4f6;
  color: #6b7280;
}

.todo-badge.dev {
  background: #fef3c7;
  color: #92400e;
}

.todo-expand-icon {
  color: #999;
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.todo-item.expanded .todo-expand-icon {
  transform: rotate(180deg);
}

.todo-item-body {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid #f0f0f0;
}

.todo-item.expanded .todo-item-body {
  display: block;
}

.todo-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .todo-checklist { grid-template-columns: 1fr; }
}

.todo-check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  padding: 6px 0;
}

.todo-check-item.done {
  color: #059669;
}

.todo-check-item.pending {
  color: #888;
}

.todo-check-item .mark {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.todo-pending-tasks {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #92400e;
}

.todo-pending-tasks strong {
  display: block;
  margin-bottom: 6px;
}

.todo-pending-tasks ul {
  margin: 0;
  padding-left: 18px;
}

.todo-pending-tasks li {
  margin: 4px 0;
}

.todo-item-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.todo-item-actions a {
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  color: #555;
  transition: all 0.15s;
}

.todo-item-actions a:hover {
  border-color: #00a8c5;
  color: #00a8c5;
}

.todo-item-actions a.primary {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
}

.todo-item-actions a.primary:hover {
  opacity: 0.9;
  color: #fff;
}
