* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: 45px; /* 给页面内容留出空间，避免被固定的导航条和新内容区域遮挡 */
}

/* 固定的导航条 */
.navbar-background {
  background-color: white;
  width: 100%;
  position: fixed; /* 固定导航条 */
  top: 0;
  left: 0;
  z-index: 100; /* 确保导航条在最前面 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加底部阴影 */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 45px; /* 设置导航条高度 */
  max-width: 700px; /* 限制导航条宽度为 700px */
  margin: 0 auto; /* 使内容居中 */
  padding: 0 10px;
  background-color: white;
}

/* LOGO区域 */
.logo img {
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center; /* 垂直居中 */
}


.nav-links a {
  text-decoration: none;
  color: green; /* 绿色字体 */
  font-size: 16px;
  font-weight: bold; /* 加粗 */
}


.nav-links a:hover {
  color: red; /* 悬停时链接变为红色 */
}

/* 添加图标 */
.search-icon {
  width: 32px; /* 图标宽度 */
  height: 24px; /* 图标高度 */
  margin-left: 10px; /* 图标与文字之间的间距 */
  align-items: center; /* 垂直居中对齐 */
}

/* 固定的新内容区域 */
.fixed-content {
  width: 700px; /* 设置宽度为 700px */
  margin: 0 auto; /* 水平方向居中 */
  padding: 0px;
  background-color: #f4f4f4;
  position: fixed; /* 固定在导航条下方 */
  top: 45px; /* 紧接在导航条下方 */
  left: 0;
  right: 0;
  z-index: 99; /* 确保它位于其他内容上面 */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* 增加阴影效果 */
}

.fixed-content p {
  margin: 0;
  font-size: 16px;
  text-align: center;
}

/* 页面内容 */
.content-area {
  width: 700px; /* 设置宽度为 700px */
  margin: 0 auto; /* 水平方向居中 */
  padding: 10px;
  background-color: #fff; /* 背景色 */
  z-index: 1; /* 确保它在其他内容下面 */
  text-align: left; /* 内容左对齐 */
}
/* 大标题 */
.content-area h1 {
  font-size: 24px; /* 设置标题的大小 */
  text-align: left; /* 标题左对齐 */
  margin-bottom: 15px;
}
/* 小标题 */
.content-area h2 {
  font-size: 14px; /* 设置小标题的字体大小 */
  text-align: left; /* 小标题左对齐 */
  margin-bottom: 10px; /* 小标题和下面内容之间的间距 */
  line-height: 1.0; /* 设置小标题的行距 */
  display: flex; /* 使用flexbox布局 */
  align-items: center; /* 垂直居中对齐 */
  color: #888; /* 设置小标题颜色为灰色 */
}

/* 小图标样式 */
.subtitle-icon {
  width: 32px; /* 设置图标的宽度 */
  height: 16px; /* 设置图标的高度 */
  margin-right: 8px; /* 图标和文字之间的间距 */
  align-items: center; /* 垂直居中对齐 */
}

.content-area p {
  font-size: 16px;
  color: #333;
  text-align: left; /* 正文左对齐 */
}

/* 页面其他内容的链接样式 */
.content-area a {
  color: green; /* 链接默认颜色为绿色 */
  text-decoration: none; /* 去掉下划线 */
}

/* 鼠标经过时链接变为红色 */
.content-area a:hover {
  color: red; /* 鼠标悬停时变为红色 */
}

/* 点击时链接变为红色 */
.content-area a:active {
  color: red; /* 点击时链接变为红色 */
}
/* 图片盒子 */
.image-box {
  width: 700px; /* 强制宽度为700px */
  margin: 0 auto; /* 水平居中 */
  justify-content: center; /* 水平居中 */
  padding: 0px; /* 可选：设置内边距 */
  border: 0px solid #ddd; /* 可选：设置边框 */
}

/* 图片样式 */
.image-box img {
  max-width: 100%; /* 图片宽度自适应 */
  height: auto; /* 图片高度自动调整 */
  display: block; /* 去除图片下方的空隙 */
}

/* 移动设备上的响应式调整 */

.footer {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 12px; /* 设置字体大小为12px */
}

.footer a.footer-link {
  color: #000; /* 设置链接颜色为灰色 */
  text-decoration: none; /* 去掉下划线 */
}

.footer a.footer-link:hover {
  color: green; /* 鼠标悬停时变为绿色 */
}

.footer p {
  margin-top: 10px;
  color: #333; /* 设置版权文字颜色 */
}
/* 表格样式 */
table {

  border-collapse: collapse; /* 合并表格边框 */
}

/* 去除表格边框 */
table, th, td {
  border: none; /* 去除边框 */
}

/* 表格单元格样式 */
th, td {
  padding: 8px 12px; /* 内边距 */
  text-align: left; /* 左对齐 */
}
/* 内容区 */
.content {
    background-color: #f0f0f0;
    text-align: center;
    padding: 30px 0;
}

/* 结果区 */
#results {
    text-align: center;
    margin-top: 30px;
    padding-bottom: 40px;
}

#results h2 {
    margin: 15px 0 8px;
}

#results ul {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: center;
}

#results button {
    margin: 10px 0 25px;
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    background-color: orange;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

#results button:hover {
    background-color: darkorange;
}


@media (max-width: 768px) {
  .navbar {
    width: 100%;
    padding: 0 5px;
  }

  .logo img {
    height: 30px;
  }

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center; /* 垂直居中 */
}


.nav-links a {
  text-decoration: none;
  color: 00b600; /* 绿色字体 */
  font-size: 16px;
  font-weight: bold; /* 加粗 */
}

  /* 新的固定内容区域在手机上的自适应调整 */
  .fixed-content {
    width: 100%;
    padding: 0px;
  }

  /* 页面其他内容在手机上的自适应调整 */
  .content-area {
    width: 100%;
    padding: 15px;
  }
  
  .content-area h1 {
    font-size: 20px; /* 设置标题的大小 */
    text-align: left; /* 标题左对齐 */
    margin-bottom: 15px;
  }
   .image-box {
     width: 100%; /* 在移动端设置宽度为100% */
     padding: 10px; /* 可选：增加内边距 */
   }
 }
 
  /* 移动设备上的响应式调整 */
  
  .footer {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 12px; /* 设置字体大小为12px */
  }
  
  .footer a.footer-link {
    color: #000; /* 设置链接颜色为灰色 */
    text-decoration: none; /* 去掉下划线 */
  }
  
  .footer a.footer-link:hover {
    color: green; /* 鼠标悬停时变为绿色 */
  }
  
  .footer p {
    margin-top: 10px;
    color: #333; /* 设置版权文字颜色 */
  }
 
 .content {
        padding: 20px 10px; /* Decrease padding for smaller screens */
    }

    #results h2 {
        font-size: 18px; /* Increase heading font size for readability */
        margin: 10px 0;
    }

    #results button {
        font-size: 16px; /* Larger button text for easier tapping */
        padding: 10px 18px; /* Adjust padding for larger buttons */
    }

    #results ul {
        display: block; /* Stack items vertically */
        margin-top: 20px;
    }
}
