:root {
  --main-color: #8b9d83;
  --bg-color: #f5f1e6;
  --accent-color: #a68b7c;
  --hover-color: #e8dcc4;
}

body {
  font-family: "宋体", serif;
  line-height: 1.8;
  background: linear-gradient(135deg, #f5f1e6, #e8dcc4);
  /* 渐变背景提升层次感 */
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  color: #4a4a4a;
  overflow-x: hidden;
}

.header {
  text-align: center;
  border-bottom: 2px dashed var(--accent-color);
  padding-bottom: 20px;
  margin-bottom: 40px;
  animation: fadeIn 1s ease-in-out;
}

.moon-icon {
  width: 50px;
  opacity: 0.8;
  margin: 20px;
}

.entry-card {
  background: white;
  padding: 30px;
  margin: 30px 0;
  border-radius: 10px;
  /* 使用 3D 变换实现硬件加速 */
  transform: translateZ(0);
  backface-visibility: hidden;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.6s, box-shadow 0.6s;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.entry-card:hover {
  /* 使用 3D 变换并减少动画时间 */
  transform: translate3d(0, -5px, 0);
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.2);
}

h2 {
  color: var(--main-color);
  margin-bottom: 15px;
}

.quote {
  border-left: 3px solid var(--main-color);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--accent-color);
  animation: slideIn 1s ease-in-out;
}

.nature-img {
  width: 30px;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  margin: 20px 0;
  filter: sepia(0.3);
  transition: filter 0.5s;
}

.nature-img:hover {
  filter: sepia(0);
}

.mood-box {
  background: rgba(139, 157, 131, 0.1);
  padding: 15px;
  margin: 15px 0;
  border-radius: 3px;
}

footer {
  text-align: center;
  margin-top: 50px;
  color: var(--accent-color);
  font-size: 0.9em;
  animation: fadeIn 1s ease-in-out;
}

.animation-trigger {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.animation-trigger.active {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* 新增预览样式 */
/* .preview-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.9);
      backdrop-filter: blur(5px);
      display: none;
      z-index: 1000;
      cursor: zoom-out;
    }

    .preview-content {
      max-width: 90%;
      max-height: 90vh;
      margin: 2rem auto;
      padding: 20px;
      background: #f5f5f5;
      border-radius: 10px;
      box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
      animation: fadeScale 0.3s ease;
    }

    @keyframes fadeScale {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    } */
