body { font-family: '微软雅黑', sans-serif; background: #6a82fb; margin: 0; }
header { display: flex; justify-content: space-between; align-items: center; padding: 20px; color: #fff; }
#addBtn, .card-actions button {
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(90deg, #6a82fb 0%, #fc5c7d 100%);
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(106,130,251,0.15);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  outline: none;
}
#addBtn:hover, .card-actions button:hover {
  background: linear-gradient(90deg, #fc5c7d 0%, #6a82fb 100%);
  box-shadow: 0 4px 16px rgba(252,92,125,0.18);
  transform: translateY(-2px) scale(1.04);
}
.card-actions button {
  margin-left: 6px;
  margin-right: 0;
  min-width: 60px;
}
#timeline { margin: 30px auto; max-width: 400px; position: relative; }
.timeline-item {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 10px;
  min-height: 60px;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  background: #6a82fb;
  border-radius: 50%;
  margin-right: 8px;
  z-index: 1;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #6a82fb;
  position: relative;
  margin-top: 0;
}
.timeline-line {
  position: absolute;
  left: 6px;
  top: 0;
  width: 2px;
  height: 100%;
  background: #b3b3f7;
  z-index: 0;
}
.timeline-date {
  min-width: 80px;
  color: #6a82fb;
  font-size: 13px;
  margin-right: 12px;
  margin-top: 0;
  text-align: right;
  display: flex;
  align-items: center;
  position: static;
  background: rgba(255,255,255,0.8);
  padding: 2px 10px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(106,130,251,0.08);
  height: 28px;
}
.card { flex: 1; background: #fff; border-radius: 10px; margin-bottom: 20px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); cursor: pointer; transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.card .date { color: #888; font-size: 12px; margin-bottom: 8px; }
.card img { max-width: 100%; border-radius: 8px; margin-top: 8px; }
.modal { display: none; position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.3); justify-content: center; align-items: center; }
.modal-content { background: #fff; padding: 24px; border-radius: 10px; width: 300px; display: flex; flex-direction: column; gap: 10px; }
.modal input, .modal textarea { width: 100%; padding: 8px; border-radius: 5px; border: 1px solid #ddd; }
.timeline-item { min-height: 60px; }
.memory-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(106,130,251,0.10);
  max-width: 500px;
  margin: 24px auto 18px auto;
  padding: 18px 20px 16px 20px;
}
.memory-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
#randomMemoryBtn, #yearBestBtn, #tagSearchBtn {
  padding: 7px 18px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(90deg, #6a82fb 0%, #fc5c7d 100%);
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(106,130,251,0.10);
}
#tagSearchInput {
  padding: 7px 12px;
  border-radius: 14px;
  border: 1px solid #e0e0e0;
  font-size: 15px;
  outline: none;
}
#memoryCards {
  margin-top: 10px;
}
.memory-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(106,130,251,0.10);
  padding: 16px 16px 10px 16px;
  margin-bottom: 18px;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.memory-card .memory-title {
  font-weight: bold;
  font-size: 17px;
  margin-bottom: 4px;
  color: #333;
}
.memory-card .memory-meta {
  color: #888;
  font-size: 13px;
  margin-bottom: 6px;
}
.memory-card .memory-content {
  font-size: 15px;
  color: #444;
  margin-bottom: 8px;
  white-space: pre-line;
}
.memory-card .memory-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.memory-card .memory-images img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 7px;
  background: #f5f5f5;
}
.memory-card .memory-tags {
  margin-bottom: 4px;
}
.memory-card .tag {
  display: inline-block;
  background: #e6eaff;
  color: #6a82fb;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 13px;
  margin-right: 5px;
  margin-bottom: 2px;
}
#photoWallBtn {
  padding: 7px 18px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(90deg, #6a82fb 0%, #fc5c7d 100%);
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(106,130,251,0.10);
} 