
/* 全局样式设置 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #f5e1a4 70%, #a4c6f5 25%, #f54e42 5%);
  color: #333;
}
/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(90deg, #5D4037, #D7CCC8);
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}
.navbar a:hover {
  color: #FF5722;
}
/* 提示信息样式 */
.reference-note {
  text-align: center;
  padding: 100px 20px 50px 20px;
  font-size: 18px;
  color: #fff;
}
.reference-note::before {
  content: "这是一个网页样式设计参考";
  display: block;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 24px;
}
/* 主容器样式 */
.container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  padding: 150px 50px 50px 50px;
}
@media (max-width: 768px) {
  .container {
    grid-template-columns: repeat(6, 1fr);
    padding: 150px 20px 20px 20px;
  }
}
/* 模块卡片样式 */
.module {
  grid-column: span 4;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.module:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}
.module img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.module h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin: 15px 0 10px 0;
}
.module p {
  font-size: 16px;
  line-height: 1.6;
}
.module a {
  display: inline-block;
  margin-top: 10px;
  color: #FF5722;
  text-decoration: none;
  font-weight: bold;
}
.module a:hover {
  text-decoration: underline;
}
/* 文章部分样式 */
article {
  grid-column: span 8;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
article h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-bottom: 20px;
  color: #5D4037;
}
article section {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 25px;
}
article pre {
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
}
article code {
  font-family: 'Courier New', Courier, monospace;
}
article h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: #FF5722;
  margin-top: 10px;
}
/* 图片装饰样式 */
.decorative-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.decorative-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section-content {
  animation: fadeInUp 0.6s ease-out forwards;
}
/* 按钮样式 */
.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FF5722;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.button:hover {
  background-color: #e64a19;
  transform: scale(1.05);
}
/* 底部样式 */
.footer {
  grid-column: span 12;
  background-color: rgba(93, 64, 55, 0.9);
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 16px;
}
.footer a {
  color: #FF5722;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
/* 响应式图片调整 */
@media (max-width: 768px) {
  .module {
    grid-column: span 6;
  }
  article {
    grid-column: span 6;
  }
}

