body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

#taskInput {
    flex: 1;
    padding: 12px;
    border: 2px solid #3498db;
    border-radius: 6px;
    font-size: 16px;
}

button {
    padding: 12px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #2980b9;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

li:hover {
    transform: translateX(5px);
}

.completed {
    text-decoration: line-through;
    opacity: 0.7;
}

.delete-btn {
    margin-left: auto;
    background: #e74c3c;
    padding: 6px 12px;
    border-radius: 4px;
}

.delete-btn:hover {
    background: #c0392b;
}

/* 时间输入框样式 */
#taskTime {
  flex: 0.5;
  border-color: #2ecc71;
  color: #27ae60;
}

/* 任务时间显示 */
.task-time {
  font-size: 0.9em;
  color: #7f8c8d;
  margin-left: 10px;
}