/* 引入本地字体 */
@font-face {
  font-family: 'FaSolid'; /* 定义字体名称 */
  src: url('static/font/fa-solid-900.ttf') format('truetype'); /* 指定字体文件路径和格式 */
}

body {
  padding: 0;
  margin: 0;
}

.container {
  position: relative;
  margin-top: 60px;
}

.container img {
  display: block;
  width: 100%;
}

nav {
  position: fixed; /* 导航栏固定在顶部 */
  z-index: 10;
  left: 0;
  right: 0;
  top: 0;
  font-family: "FaSolid", "sans-serif"; /* 使用本地字体 */
  height: 60px;
  background-color: rgba(0, 0, 0, 1);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* 使导航项和图标分布在两侧 */
}

nav .logo {
  float: left;
  width: 40%;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #fff;
}

nav .logo img {
  width: 100px; /* 图片宽度自适应 */
  height: 55px;
}

nav .links {
  float: left; /* 修改为左浮动，为图标腾出位置 */
  padding: 0;
  margin: 0;
  width: calc(60% - 100px); /* 减去图标区域的宽度 */
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

nav .links li {
  list-style: none;
}

nav .links a {
  display: block;
  padding: 0.2em;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  position: relative;
  font-family: "FaSolid", "sans-serif"; /* 导航文字使用本地字体 */
}

nav .links a:hover,
nav .links a.active { /* 鼠标悬停和活动页面的样式 */
  color: white;
}

nav .links a::before,
nav .links a.active::before { /* 鼠标悬停和活动页面的下划线效果 */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out 0s;
}

nav .links a:hover::before,
nav .links a.active::before { /* 鼠标悬停和活动页面的下划线效果 */
  visibility: visible;
  transform: scaleX(1);
}

nav .icons {
  display: flex;
  align-items: center;
}

nav .icons a {
  margin-left: 15px; /* 图标之间的间距 */
}

nav .icons img {
  width: 30px; /* 图标大小 */
  height: auto;
}

#nav-toggle {
  position: absolute;
  top: -100px;
}

nav .icon-burger {
  display: none;
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
}

nav .icon-burger .line {
  width: 30px;
  height: 5px;
  background-color: #fff;
  margin: 5px;
  border-radius: 3px;
  transition: all 0.5s ease-in-out;
}

@media screen and (max-width: 768px) {
  nav .logo {
    float: left; /* 在移动端将logo改为左侧 */
    width: auto;
    justify-content: flex-start; /* 使logo靠左对齐 */
    padding-left: 1%; /* 添加左侧内边距，可根据需要调整 */
  }

  nav .links {
    float: none;
    position: fixed;
    z-index: 9;
    left: 0;
    right: 0;
    top: 60px;
    bottom: 100%;
    width: auto;
    height: auto;
    flex-direction: column;
    justify-content: space-evenly;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: all 0.5s ease-in-out;
  }

  nav .links a {
    font-size: 30px;
  }

  nav .icons {
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
  }

  nav .icons a {
    margin-left: 15px; /* 移动端图标之间的间距 */
  }

  nav :checked ~ .links {
    bottom: 0;
  }

  nav .icon-burger {
    display: block;
  }

  nav :checked ~ .icon-burger .line:nth-child(1) {
    transform: translateY(10px) rotate(225deg);
  }

  nav :checked ~ .icon-burger .line:nth-child(3) {
    transform: translateY(-10px) rotate(-225deg);
  }

  nav :checked ~ .icon-burger .line:nth-child(2) {
    opacity: 0;
  }
}



/* ************ */
/* footer页脚 */
/* *********** */
body {
            margin: 0;
            font-family: Arial, sans-serif;
        }
        .footer {
            background-color: #000;
            color: #fff;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .footer div {
            margin-bottom: 20px;
            text-align: center;
        }
        .footer h2 {
            margin: 0;
            font-size: 24px;
        }
        .footer ul {
            list-style: none;
            padding: 0;
        }
        .footer ul li {
            margin: 10px 0;
        }
        .footer .icons {
            display: flex;
            align-items: center;
        }
        .footer .icon {
            width: 24px;
            height: 24px;
            margin: 0 15px;
        }
        .footer .icon img {
            width: 100%;
            height: auto;
        }
        .footer a {
            color: #fff;
            text-decoration: none;
        }
       .copyright {
            padding-top: 1rem;
            padding-bottom: 0.5rem;
            background-color: #000;
            text-align: center;
        }

        .copyright p,
        .copyright a {
            color: #dfe5ec;
            text-decoration: none;
        }
        @media (min-width: 768px) {
            .footer {
                flex-direction: row;
                justify-content: space-between;
            }
            .footer div {
                margin-bottom: 0;
            }
            .copyright {
                margin-top: 0;
            }
        }
       }