/* 基础样式 */
:root {
  --primary-color: #8db600; /* 黄绿色 */
  --secondary-color: #f0e68c; /* 浅黄色 */
  --background-color: #f5f5dc; /* 米色背景 */
  --text-color: #333;
}

body {
  font-family: 'Maobi', cursive, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 20px;
}

/* 头部样式 */
header {
  position: relative;
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,160L48,149.3C96,139,192,117,288,128C384,139,480,181,576,192C672,203,768,181,864,154.7C960,128,1056,96,1152,101.3C1248,107,1344,149,1392,170.7L1440,192L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  z-index: 1;
}

header h1 {
  position: relative;
  z-index: 2;
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
}

/* 内容区域样式 */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

section {
  margin-bottom: 30px;
  position: relative;
  padding: 20px;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  z-index: -1;
}

h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
}

/* 列表样式 */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  padding: 8px 0;
  position: relative;
  padding-left: 20px;
}

ul li::before {
  content: "🌱";
  position: absolute;
  left: 0;
}

/* 页脚样式 */
footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  color: #666;
  position: relative;
}

footer::before {
  content: "🌿";
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  main {
    padding: 15px;
  }
}
