* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f8f8f8;
    height: 100%;
    }
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f0f0f0; /* 浅灰色 */
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out;
}
.logo {
    width: 100px;
}
.nav-toggle {
    width: 40px;
    height: 40px;
    background-color: #dcdcdc;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}
.nav-toggle.open {
    width: 100%;
    height: 100vh;
    border-radius: 20px; /* 加入圆角 */
    background-color: rgba(240, 240, 240, 0.95);
}
.nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    position: absolute;
    top: 60px;
    left: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out 0.2s;
}
.nav-links.active {
    opacity: 1;
    pointer-events: auto;
}
.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.5em;
    transition: color 0.3s ease-in-out;
}
.nav-link:hover {
    color: #666;
}
@media (min-width: 768px) {
    .nav-toggle {
        display: flex; /* 电脑端也显示按钮 */
    }
    .nav-links {
        display: none; /* 电脑端默认隐藏导航链接 */
    }
.nav-toggle.open .nav-links {
    display: flex; /* 电脑端点击按钮后显示导航链接 */
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    position: absolute;
    top: 60px;
    left: 20px;
    opacity: 1;
    pointer-events: auto;
    }
}
/* 主要内容样式 */
main {
  padding-top: 60px; /* 为导航栏留出空间 */
}
.module {
  background-color: #f9f9f9;
  padding: 50px;
  text-align: center;
  border-radius: 20px; /* 20°圆角 */
  margin: 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.module:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15);
}
.module-content h1 {
  font-size: 24px;
  margin-bottom: 10px;
}
.module-content h5 {
  font-size: 16px;
  margin-bottom: 10px;
}
.module-content p {
  font-size: 14px;
  margin-bottom: 20px;
}
.btn {
  display: inline-block;
  background-color: #3498db;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 10px; /* 20°圆角 */
  text-decoration: none;
  transition: background-color 0.3s ease-in-out;
}
.btn:hover {
  background-color: #2980b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .module {
    padding: 30px;
  }
  .module-content h1 {
    font-size: 20px;
  }
  .module-content h5 {
    font-size: 14px;
  }
  .module-content p {
    font-size: 12px;
  }
  .btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* 底部样式 */
footer {
  background-color: #f2f2f2;
  padding: 20px;
}
.footer-content {
  text-align: center;
  color: #000000;
}