/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: '微软雅黑', sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #e0f7e9 0%, #ffe4e1 100%);
  color: #2e2e2e;
  padding: 0;
  margin: 0;
}
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(34, 139, 34, 0.9);
  color: #fff;
  padding: 20px 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
header .container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .logo {
  font-size: 1.5em;
  font-weight: bold;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}
nav ul li a:hover {
  background: #fff;
  color: #228B22;
}
section {
  padding: 100px 20px 60px 20px;
  min-height: 100vh;
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
section:nth-child(even) {
  background: rgba(255, 228, 225, 0.1);
}
h2, h3, h4 {
  color: #228B22;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
h2::after, h3::after, h4::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #FF69B4;
  margin-top: 5px;
  border-radius: 2px;
}
p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #2e2e2e;
  text-shadow: 0.5px 0.5px 0 #fff;
}
img {
  display: block;
  max-width: 90%;
  min-width: 500px;
  width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}
.article-navigation {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(34, 139, 34, 0.8);
  padding: 15px;
  border-radius: 8px;
  max-height: 80vh;
  overflow-y: auto;
}
.article-navigation ul {
  list-style: none;
}
.article-navigation ul li {
  margin-bottom: 10px;
}
.article-navigation ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.article-navigation ul li a:hover {
  color: #FF69B4;
}
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  .article-navigation {
    position: static;
    margin-top: 20px;
    width: 100%;
  }
  img {
    min-width: 100%;
  }
}
.footer {
  background: rgba(34, 139, 34, 0.9);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}
.footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}
.footer a:hover {
  text-decoration: underline;
}
@media (max-width: 480px) {
  header .logo {
    font-size: 1.2em;
  }
  nav ul li a {
    padding: 6px 10px;
    font-size: 12px;
  }
  .article-navigation {
    display: none;
  }
}
