/* ====== 古朴木质感 + 暖棕色系 ====== */
body {
  margin: 0;
  padding: 0;
  font-family: "SimSun", serif;
  background: #fdebd0;
  color: #4a2c16;
}
.navbar {
  background: #8b4513;
  padding: 10px 20px;
}
.navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: flex-end;
}
.navbar li {
  margin-left: 20px;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
/* 页面主体布局 */
.container {
  display: flex;
  margin: 20px;
  background: #fff8e1;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.sidebar {
  width: 200px;
  padding: 20px;
  border-right: 1px solid #d2b48c;
  background: #f5deb3;
}
.sidebar h2 {
  color: #8b4513;
  margin-top: 0;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar li {
  margin-bottom: 10px;
}
.sidebar a {
  text-decoration: none;
  color: #4a2c16;
  font-weight: bold;
}
.sidebar a:hover {
  color: #8b4513;
}
.content {
  flex-grow: 1;
  padding: 20px;
}
.content h1 {
  color: #8b4513;
  text-align: center;
  margin-top: 0;
}
.content h3 {
  color: #a0522d;
  border-bottom: 1px solid #d2b48c;
  padding-bottom: 5px;
  margin-top: 30px;
}
.content p {
  line-height: 1.8;
  text-indent: 2em;
}
.history-img {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 15px auto;
  border: 1px solid #d2b48c;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.history-img:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* 底部版权 */
.footer {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 20px;
}

/* ====== 响应式设计 ====== */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    align-items: center;
  }
  
  .navbar li {
    margin: 5px 0;
  }
  
  .container {
    flex-direction: column;
    margin: 10px;
  }
  
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #d2b48c;
  }
  
  .content {
    padding: 15px;
  }
  
  .content h1 {
    font-size: 24px;
  }
  
  .content h3 {
    font-size: 18px;
  }
  
  .history-img {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 5px;
  }
  
  .sidebar {
    padding: 15px;
  }
  
  .content {
    padding: 10px;
  }
  
  .content h1 {
    font-size: 20px;
  }
  
  .content h3 {
    font-size: 16px;
  }
  
  .content p {
    font-size: 14px;
    text-indent: 1.5em;
  }
  
  .history-img {
    max-width: 250px;
  }
}