h1 {
  margin-bottom: 24px;
}

section {
  margin-bottom: 32px;
}

.plan-list {
  list-style: none;
  padding: 0;
}

.plan-list li {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #f7f7f7;
  border-radius: 8px;
}

.time,
.date {
  font-weight: bold;
  color: #555;
  min-width: 80px;
}

.task {
  color: #333;
}
.nav {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav a:hover {
  text-decoration: underline;
}
.add-plan {
  margin-bottom: 32px;
}

.add-plan input {
  margin-right: 8px;
  padding: 6px;
}

.add-plan button {
  padding: 6px 12px;
}
#today-list .plan-item {
  background: #fffbe6;
  border-left: 4px solid #f5c542;
}

.plan-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: #f7f7f7;
}

.plan-item.done span {
  text-decoration: line-through;
  color: #999;
}
.progress {
  height: 10px;
  background: #eee;
  border-radius: 5px;
  margin-bottom: 16px;
}

#progress-bar {
  height: 100%;
  background: #4caf50;
  width: 0%;
  border-radius: 5px;
}
.plan-item {
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.plan-item:hover {
  background: #f5f5f5;
}

.plan-item.done {
  opacity: 0.6;
  text-decoration: line-through;
}
.plan-item {
  border: 2px solid #ddd;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

/* 未完成：高光 */
.plan-item:not(.done) {
  border-color: #ff9800;      /* 橙色提醒 */
  background: #fff7e6;
}

/* 已完成：降噪 */
.plan-item.done {
  border-color: #ccc;
  background: #f3f3f3;
  opacity: 0.6;
  text-decoration: line-through;
}
.delete-btn {
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  margin-left: auto;
  color: #999;
}

.delete-btn:hover {
  color: red;
}
.delete-btn {
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}

.plan-item:hover .delete-btn {
  opacity: 1;
}

.delete-btn:active {
  transform: scale(0.9);
}
.todo-section {
  margin-top: 30px;
}

.todo-section li {
  border: 2px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.todo-section li.done {
  text-decoration: line-through;
  opacity: 0.6;
}
.just-saved {
  animation: flash 0.6s;
}

@keyframes flash {
  from { background: #d4f8d4; }
  to   { background: inherit; }
}





