/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

:root {
  --primary-color: #F9E6E6;
  --accent-color: #D24346;
  --text-color: #333;
  --background-color: #F9E6E6;
  --shadow-color: rgba(210, 67, 70, 0.2);
  --timeline-color: rgba(210, 67, 70, 0.3);
  --timeline-dot-color: #D24346;
  --card-border-radius: 12px;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

.timeline-page {
  justify-content: flex-start;
  padding-bottom: 50px;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* 背景装饰 */
.background-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

.decoration-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  background-color: rgba(209, 161, 126, 0.1);
  top: -100px;
  right: -50px;
}

.decoration-circle:nth-child(2) {
  width: 200px;
  height: 200px;
  background-color: rgba(209, 161, 126, 0.15);
  bottom: -50px;
  left: -50px;
}

.decoration-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-color);
  opacity: 0.2;
}

/* 登录页面容器 */
.login-container {
  width: 100%;
  max-width: 1280px;
  padding: 2rem;
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 统一后的页面标题（渐变展开效果） */
.page-title {
  opacity: 0;
  font-family: 'TsangerXWZ', sans-serif;
  margin: 0 auto 2rem auto; /* 保持原有下边距 */
  background: linear-gradient(to right, #D24346, #F9A17B, #D24346);
  background-size: 400% 100%;
  font-weight: 400;
  font-size: 96px;
  width: 0; /* 初始宽度为0，通过动画展开 */
  white-space: nowrap;
  overflow: hidden;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-align: center; /* 确保文本居中 */
  animation: shring-animation 5s steps(60, end) forwards, blink .5s step-end infinite alternate; /* 调整动画时间和steps */
  /* animation-delay: 0s; */ /* 立即开始动画 */
}

/* 展开渐变效果动画 */
@keyframes shring-animation {
  0% {
    background-position: 0 0;
    opacity: 0;
    width: 0;
  }
  1% {
    background-position: 0 0;
    opacity: 1;
    border-right: 2px solid var(--accent-color);
  }
  50% {
    background-position: 150px 0;
    opacity: 1;
    border-right: 2px solid var(--accent-color); /* 保持光标直到最后 */
  }
  100% {
    background-position: 400px 0;
    opacity: 1;
    width: 100%; /* 展开到完整宽度 */
    border-right: none; /* 动画结束时移除光标 */
  }
}

/* 光标闪烁动画 */
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* 用户选择区域 */
.user-selection {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: -20px;
  position: relative;
  z-index: 1;
  margin-top: 70px;
}

.user-selection-label {
  position: absolute;
  left: calc(50% - 222.5px);
  top: -50px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
}

.user-option {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease, transform 0.3s ease;
  position: relative;
}

.user-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.user-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.user-avatar {
  width: auto;
  height: auto;
  object-fit: cover;
  transition: all 0.3s ease, transform 0.3s ease;
  position: relative;
}

.user-option:hover .user-avatar:not(.avatar-selected) {
  transform: scale(1.1);
}

.user-avatar.avatar-selected {
  transform: scale(1.15);
}

#husband-img {
  width: 165px;
  height: 215px;
}

#wife-img {
  width: 229px;
  height: 234px;
  margin-left: -45px;
}

.user-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  display: none;
}

/* 密码输入区域 */
.password-section {
  margin-bottom: 1rem;
  width: 445px;
  position: relative;
  z-index: 2;
}

.password-wrapper {
  position: relative;
  width: 100%;
  background-color: white;
  border-radius: 5px;
}

.password-input {
  width: 100%;
  height: 47px;
  padding: 0.8rem 1rem;
  font-size: 15px;
  border: none;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease;
  background-color: transparent;
}

.password-input::placeholder {
  color: rgba(0, 0, 0, 0.25);
  font-weight: 500;
}

.password-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  cursor: pointer;
}

/* 登录按钮 */
.login-button {
  width: 445px;
  height: 47px;
  padding: 0.8rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-top: 1rem;
}

.login-button:hover {
  opacity: 0.9;
}

.login-button:active {
  transform: translateY(2px);
}

/* 错误消息 */
.error-message {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 1rem;
  display: none;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ==== 时间轴页面样式 ==== */

/* 导航栏 */
.navbar {
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 1rem 0;
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-message {
  font-size: 1.1rem;
  font-weight: 500;
}

#user-identity {
  color: var(--accent-color);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
}

.action-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.add-button {
  background-color: var(--accent-color);
  color: white;
}

.add-button:hover {
  background-color: #c4906c;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(209, 161, 126, 0.3);
}

.logout-button {
  background-color: #f0f0f0;
  color: var(--text-color);
}

.logout-button:hover {
  background-color: #e0e0e0;
}

/* 时间轴容器 */
.timeline-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-title {
  /* opacity: 0; 移除初始不透明度为0的设置 */
  opacity: 1; /* 设置为完全可见 */
  font-family: 'TsangerXWZ', sans-serif;
  margin: 0 auto 2rem auto; /* 保持原有下边距 */
  background: linear-gradient(to right, #D24346, #F9A17B, #D24346);
  background-size: 400% 100%;
  font-weight: 400;
  font-size: 80px; /* 比登录页标题 (96px) 略小 */
  /* width: 0; 移除初始宽度为0的设置 */
  width: auto; /* 让宽度适应内容 */
  white-space: nowrap;
  overflow: hidden;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-align: center; /* 确保文本居中 */
  /* 移除动画效果 */
  /* animation: shring-animation 4s steps(50, end) forwards, blink .5s step-end 4s infinite alternate; */
  background-position: 0 0; /* 设置初始背景位置 */
}

/* .timeline-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 3px;
} */

/* 时间轴 */
.timeline {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem 0;
  padding: 1rem 0;
}

/* 时间轴线 */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: var(--timeline-color);
  transform: translateX(-50%);
}

/* 空时间轴提示 */
.timeline-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  background-color: white;
  border-radius: var(--card-border-radius);
  box-shadow: 0 5px 15px var(--shadow-color);
  width: 80%;
  margin: 0 auto;
}

.empty-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.timeline-empty p {
  font-size: 1.1rem;
  color: #888;
}

/* 时间轴条目 */
.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: 3.5rem; /* 增加垂直间距，为对侧内容留出空间 */
  animation: fadeIn 0.5s ease-in-out;
  display: flex; /* 使用flex布局 */
  align-items: flex-start; /* 顶部对齐 */
  perspective: 1000px; /* Added for 3D effect on child .memory-card */
}

/* 左侧项目（偶数索引） */
.timeline-item.left {
  justify-content: flex-end; /* 内容靠右 */
  padding-right: calc(50% + 20px); /* 右侧留出空间 */
  padding-left: 15px;
}

/* 右侧项目（奇数索引） */
.timeline-item.right {
  justify-content: flex-start; /* 内容靠左 */
  padding-left: calc(50% + 20px); /* 左侧留出空间 */
  padding-right: 15px;
}

/* 内存卡片 */
.memory-card {
  position: relative;
  /* background-color: white; */ /* Will be set by card type */
  border-radius: var(--card-border-radius);
  box-shadow: 0 5px 15px var(--shadow-color);
  /* padding: 1.5rem; */ /* Padding will be on .memory-card-info */
  width: 100%; /* 确保卡片占据分配的空间 */
  z-index: 1;
  margin-top: 20px; /* 添加顶部边距，与时间轴标点对齐 */
  min-height: 300px; /* Minimum height for cards */
  height: 320px; /* Fixed height for visual consistency */
  transform-style: preserve-3d; /* For 3D effects if children are transformed in 3D space */
  transition: transform 0.2s ease-out, box-shadow 0.3s ease-in-out;
  display: flex; /* To help with text card content alignment if needed */
  flex-direction: column; /* Align info content for text cards */
}

.memory-card:hover {
  /* transform: translateY(-5px); */ /* Removed, JS handles transform */
  box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 6px 15px var(--shadow-color); /* Enhanced shadow */
}

/* Specific card types */
.memory-card.text-card {
  background-color: white;
  justify-content: center; /* Center content vertically in text card */
}

.memory-card.photo-card {
  background-color: #333; /* Fallback for image area */
  overflow: hidden; /* Important for bg parallax wrap and rounded corners on image */
  cursor: pointer; /* Indicate photo cards are clickable for viewer */
}

/* Parallax Background for Photo Cards */
.memory-card-bg-parallax-wrap {
   position: absolute;
   top: 0; left: 0;
   width: 100%; height: 100%;
   border-radius: inherit; /* inherit from .memory-card */
   overflow: hidden;
   z-index: 0; /* Behind card-info */
}

/* 卡片对侧内容 - 完全重新定义 */
.memory-side-content {
  position: absolute;
  top: 15px; /* 调整顶部位置，与时间轴标点对齐 */
  width: 40%; /* 宽度调整 */
  z-index: 3; /* 确保内容位于时间轴点之上 */
}

/* 左侧项目的对侧内容（显示在右侧） */
.timeline-item.left .memory-side-content {
  left: calc(50% + 35px); /* 中心线右侧 */
  text-align: left;
}

/* 右侧项目的对侧内容（显示在左侧） */
.timeline-item.right .memory-side-content {
  right: calc(50% + 35px); /* 中心线左侧 */
  text-align: right;
}

.memory-card-bg {
    position: absolute;
    width: calc(100% + 40px); /* Extra width for parallax movement */
    height: calc(100% + 40px); /* Extra height for parallax movement */
    top: -20px; /* Center the oversized image */
    left: -20px;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease-out; /* Smooth return for parallax */
    pointer-events: none; /* Allow clicks to pass to card for photo viewer */
}

/* Card Info (Text content area) */
.memory-card-info {
  position: relative; /* For text cards, normal flow */
  padding: 1.5rem;
  z-index: 1; /* Above parallax bg */
  box-sizing: border-box;
  width: 100%;
}

.memory-card.text-card .memory-card-info {
  color: var(--text-color);
}

.memory-card.photo-card .memory-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  color: #fff;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
  transform: translateY(100%); /* Start fully hidden below */
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.1s, opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
  max-height: 80%; /* Prevent info from taking too much space */
  overflow-y: auto; /* Allow scrolling if content is too long */
  padding-bottom: 2rem; /* 增加底部内边距，避免内容被切断 */
}

.memory-card.photo-card:hover .memory-card-info {
  transform: translateY(0);
  opacity: 1;
}

.memory-card-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.memory-card.photo-card .memory-card-info h3 {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.memory-card-info .memory-description {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0.5rem 0;
  font-weight: 500;
}
.memory-card.photo-card .memory-card-info .memory-description {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.memory-card-info .memory-author {
  font-size: 0.8rem;
  color: #666; /* For text cards */
  margin-top: 0.75rem;
}
.memory-card.photo-card .memory-card-info .memory-author {
  color: #eee;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.memory-card-message-text { /* Class for message inside card info */
    font-size: 0.85rem;
    line-height: 1.3;
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.9;
}
.memory-card.photo-card .memory-card-message-text {
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.memory-card.text-card .memory-card-message-text {
    color: #555;
}

/* 时间样式 */
.memory-date {
  font-size: 1.2rem; /* Keep side date prominent */
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}

/* 添加时间样式 */
.memory-time {
  font-size: 0.9rem;
  font-weight: 500;
  color: #777;
  margin-bottom: 0.75rem;
}

/* 寄语样式 */
.memory-message {
  background-color: rgba(210, 67, 70, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  position: relative;
  max-width: 90%;
  box-shadow: 0 2px 8px rgba(210, 67, 70, 0.1);
  border-left: 3px solid var(--accent-color);
  transition: all 0.3s ease;
}

.memory-message:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(210, 67, 70, 0.15);
}

.memory-message .message-author {
  font-weight: 600;
  color: var(--accent-color);
  margin-right: 0.5rem;
}

/* 左侧项目的寄语靠右对齐 */
.timeline-item.right .memory-message {
  margin-left: auto; /* 靠右对齐 */
}

/* 右侧项目的寄语靠左对齐 */
.timeline-item.left .memory-message {
  margin-right: auto; /* 靠左对齐 */
}

/* 移除引号 */
.memory-message::before {
  display: none;
}

/* 时间点 */
.timeline-dot {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--timeline-dot-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(209, 161, 126, 0.2);
}

/* 模态框 */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: var(--card-border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 500px;
  z-index: 1000;
  display: none;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal-content {
  padding: 1.5rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  font-family: 'TsangerXWZ', sans-serif;
  font-weight: 500;
  font-size: 1.7rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #333;
}

/* 表单样式 */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input[type="date"],
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e6e0da;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input[type="date"]:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
}

.photo-upload-label {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  background-color: var(--primary-color);
  color: var(--text-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 1rem;
}

.photo-upload-label:hover {
  background-color: #e9e1d8;
}

.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.photo-preview {
  width: 100%;
  min-height: 100px;
  background-color: #f5f5f5;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  display: none;
}

.photo-preview img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.submit-button {
  padding: 0.8rem 1.5rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.submit-button:hover {
  background-color: #c4906c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(209, 161, 126, 0.3);
}

/* 照片查看器 */
.photo-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1500;
  display: none;
}

.close-viewer {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.close-viewer:hover {
  color: #ccc;
}

#viewer-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

/* 遮罩层 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  z-index: 500;
  display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex-direction: column; /* 在移动设备上改为列布局 */
    margin-left: 60px; /* 从时间轴线开始的空间 */
  }
  
  .timeline-dot {
    left: 30px;
  }

  /* 调整移动端卡片和对侧内容的布局 */
  .memory-card {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 在移动设备上，将对侧内容放在卡片下方 */
  .memory-side-content {
    position: relative;
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    top: auto;
    margin-top: 15px;
    text-align: left !important; /* 统一左对齐 */
  }

  /* 统一寄语的对齐方式 */
  .timeline-item.left .memory-message,
  .timeline-item.right .memory-message {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  
  .timeline-title {
    font-size: 60px;
  }
  
  /* 登录页面响应式样式 */
  .password-section,
  .login-button {
    width: 90%;
    max-width: 445px;
  }
  
  #husband-img {
    width: 120px;
    height: 156px;
  }
  
  #wife-img {
    width: 166px;
    height: 170px;
    margin-left: -30px;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 1.5rem;
  }
  
  .page-title {
    font-size: 40px;
  }
  
  .user-avatar {
    width: 80px;
    height: 80px;
  }
  
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .memory-date {
    font-size: 1.1rem;
  }
  
  .password-section,
  .login-button {
    width: 90%;
  }
  
  #husband-img {
    width: 100px;
    height: 130px;
  }
  
  #wife-img {
    width: 138px;
    height: 142px;
    margin-left: -25px;
  }
}

/* 导入自定义字体 */
@font-face {
  font-family: 'TsangerXWZ';
  src: url('../fonts/给你的一封情书.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* 记忆详情弹窗样式 */
.memory-detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.memory-detail-photo-container {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(210, 67, 70, 0.15);
  background-color: #f5f5f5;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.memory-detail-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.memory-detail-photo-container:hover img {
  transform: scale(1.02);
}

.memory-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: rgba(249, 230, 230, 0.3);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
}

.detail-message-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(210, 67, 70, 0.1);
  overflow: hidden;
}

.detail-message-header {
  background-color: var(--accent-color);
  color: white;
  padding: 0.6rem 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-message {
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  font-style: italic;
  color: #555;
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.5rem;
  border-top: 1px solid #eee;
  padding-top: 0.75rem;
}

.detail-author {
  font-weight: 500;
}

/* 响应式调整 */
@media (min-width: 768px) {
  .memory-detail-content {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .memory-detail-photo-container {
    flex: 1;
    max-width: 50%;
  }
  
  .memory-detail-info {
    flex: 1;
  }
} 