
/* couple_blog/frontend/css/diary.css */
.diary-card {
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.diary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 138, 161, 0.3);
}

.diary-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff6b81;
  margin-bottom: 0.5rem;
}

.diary-date {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.diary-content {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.diary-mood {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.diary-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.editor-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.editor-toolbar button {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.editor-toolbar button:hover {
  background: #f3f4f6;
}

#editor {
  min-height: 300px;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  padding: 1rem;
  background: white;
}

.comment-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-author {
  font-weight: bold;
  color: #ff6b81;
}

.comment-date {
  color: #6b7280;
  font-size: 0.75rem;
}

.comment-content {
  margin-top: 0.5rem;
  color: #4b5563;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pagination button {
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  background: white;
  cursor: pointer;
}

.pagination button:hover:not(:disabled) {
  background: #ff6b81;
  color: white;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .diary-card {
    padding: 1rem;
  }
  
  .diary-title {
    font-size: 1.25rem;
  }
  
  .editor-toolbar {
    flex-wrap: wrap;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
  
  .pagination button {
    margin: 0.25rem;
    padding: 0.5rem;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.diary-card, .comment-card {
  animation: fadeIn 0.3s ease-out forwards;
}
