body {
  margin: 0;
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #ffe4f2, #e0f7ff);
  overflow-x: hidden;
}

/* 漫画网点背景 */
.bg {
  position: fixed;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#ffffff55 1px, transparent 1px);
  background-size: 10px 10px;
  z-index: -1;
}

/* 主容器 */
.container {
  width: 420px;
  margin: 60px auto;
  background: rgba(255,255,255,0.75);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  backdrop-filter: blur(8px);
}

/* 标题 */
h1 {
  text-align: center;
  color: #ff6fae;
  margin-bottom: 0;
}

.subtitle {
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* 输入区 */
.input-box {
  display: flex;
  margin-top: 20px;
}

input {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #ffd1e8;
  outline: none;
}

button {
  margin-left: 8px;
  padding: 10px 14px;
  background: #ff6fae;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #ff4f97;
}

/* Todo列表 */
ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

li {
  background: white;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 5px solid #ff6fae;
  animation: pop 0.2s ease;
}

/* 完成状态 */
.done {
  text-decoration: line-through;
  opacity: 0.5;
}

/* 动画 */
@keyframes pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}