/* 代办功能样式 */
.todos-section {
  margin-bottom: 60px;
}

.todos-container {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.todo-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.todo-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.todo-input:focus {
  outline: none;
  border-color: #FF6B8B;
}

.add-todo-btn {
  background-color: #FF6B8B;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-todo-btn:hover {
  background-color: #ff5278;
  transform: translateY(-2px);
}

.add-todo-btn:active {
  transform: translateY(0);
}

.todos-list {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #FF6B8B #f5f5f5;
}

.todos-list::-webkit-scrollbar {
  width: 6px;
}

.todos-list::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 10px;
}

.todos-list::-webkit-scrollbar-thumb {
  background-color: #FF6B8B;
  border-radius: 10px;
}

.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.3s ease;
}

.todo-item:last-child {
  border-bottom: none;
}

.todo-item:hover {
  background-color: rgba(255, 107, 139, 0.03);
}

.todo-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.todo-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #FF6B8B;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.todo-checkbox:checked {
  transform: scale(1.1);
}

.todo-text {
  color: #2C3E50;
  transition: all 0.3s ease;
}

.todo-text.completed {
  text-decoration: line-through;
  color: #999;
}

.todo-delete {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: color 0.3s ease, transform 0.2s ease;
}

.todo-delete:hover {
  color: #ff5278;
  transform: rotate(90deg);
}

.no-todos {
  text-align: center;
  padding: 40px 0;
  color: #999;
  transition: color 0.3s ease;
}

.no-todos i {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #ddd;
  transition: color 0.3s ease;
}

/* 夜间模式适配 */
body.dark-mode .todos-container {
  background: #1e1e1e;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .todo-input {
  background-color: #333;
  color: #e0e0e0;
  border-color: #444;
}

body.dark-mode .todo-input:focus {
  border-color: #FF6B8B;
}

body.dark-mode .todos-list {
  scrollbar-color: #FF6B8B #333;
}

body.dark-mode .todos-list::-webkit-scrollbar-track {
  background: #333;
}

body.dark-mode .todo-item {
  border-bottom-color: #333;
}

body.dark-mode .todo-item:hover {
  background-color: rgba(255, 107, 139, 0.1);
}

body.dark-mode .todo-text {
  color: #e0e0e0;
}

body.dark-mode .todo-text.completed {
  color: #666;
}

body.dark-mode .no-todos {
  color: #666;
}

body.dark-mode .no-todos i {
  color: #444;
}

/* 移动端代办适配 */
@media (max-width: 480px) {
  .todo-form {
    flex-direction: column;
  }
  
  .add-todo-btn {
    padding: 12px;
    width: 100%;
  }
  
  .todos-container {
    padding: 15px;
  }
  
  .todo-item {
    padding: 10px 0;
  }
}
