/* style.css */
:root {
  --primary: #81c784;
  --primary-dark: #4caf50;
  --secondary: #ffcc80;
  --light: #e8f5e9;
  --dark: #2e7d32;
  --text: #333;
  --white: #fff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 20px 0;
  margin-bottom: 20px;
  position: relative;
}

h1 {
  color: var(--dark);
  font-size: 2.5rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

h2 {
  color: var(--dark);
  margin: 15px 0 10px;
  font-size: 1.5rem;
}

.divider {
  background-color: var(--primary);
  height: 3px;
  margin: 15px 0;
  border-radius: 2px;
}

.nav-section {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.button {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.info-box {
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  font-size: 0.95rem;
}

.author-info {
  background-color: #c8e6c9;
}

.date-info {
  background-color: #ffecb3;
}

.weather-info {
  background-color: #b2ebf2;
}

.diary-section {
  position: relative;
  margin: 30px 0;
}

.diary-header {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: var(--dark);
}

.diary-list {
  list-style: none;
}

.diary-entry {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.diary-entry:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.diary-entry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
}

.entry-date {
  font-weight: bold;
  color: var(--dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.entry-date::before {
  content: "📅";
  margin-right: 8px;
}

.entry-author {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  font-style: italic;
}

.entry-content {
  margin-top: 10px;
  line-height: 1.7;
}

.entry-image {
  max-width: 100%;
  border-radius: 8px;
  margin: 15px 0;
  border: 1px solid #e0e0e0;
  display: block;
}

footer {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  color: #666;
  font-size: 0.9rem;
}

.instructions {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  border: 1px dashed var(--primary);
}

.instructions h3 {
  color: var(--dark);
  margin-bottom: 15px;
  text-align: center;
}

.instructions ol {
  padding-left: 25px;
}

.instructions li {
  margin-bottom: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .button {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .diary-entry {
    padding: 15px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.diary-entry {
  animation: fadeIn 0.5s ease-out forwards;
}