@font-face {
  font-family: '余思源颜黄体';
  src: url('../字体/余思源颜黄体.ttf') format('truetype');
  /* font-family: '鼎猎珠海体'; */
  /* src: url('../字体/鼎猎珠海体.ttf'); */
  /* font-family: '峄山碑篆体'; */
  /* src: url('../字体/峄山碑篆体.ttf'); */
  /* font-family: 'ChillHuoKai_ConRegular'; */
  /* src: url('../字体/ChillHuoKai_ConRegular.otf'); */
  font-weight: normal;
  /* 字体粗细 */
  font-style: normal;
  /* 字体样式（斜体） */
}



:root {
  --imperial-blue: #d28a39;
  --gold: #4f5f96;
}

@font-face {
  font-family: '鼎猎珠海体';
  src: url('../字体/鼎猎珠海体.ttf') format('truetype');
  font-weight: normal;
  /* 字体粗细 */
  font-style: normal;
  /* 字体样式（斜体） */
}

a {
  font-family: '鼎猎珠海体';
}

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

/* 消除 li 元素的默认样式 */
ul li {
  list-style-type: none;
  /* 如果需要去除列表项的内边距和外边距，可以添加以下两行 */
  margin: 0;
  padding: 0;
}

/* 其他样式保持不变 */

/* 添加固定导航栏的样式 */
.nav-container.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* 确保导航栏在其他元素之上 */
}

@font-face {
  font-family: '峄山碑篆体';
  /* 自定义字体名称 */
  src: url('../字体/峄山碑篆体.ttf') format('truetype');
  /* 兼容旧浏览器 */
  font-weight: normal;
  /* 字体粗细（根据实际文件调整） */
  font-style: normal;
  /* 字体样式（斜体等） */
}

span {
  font-family: '峄山碑篆体';
  font-size: 32px;
  letter-spacing: 5px;
}

body {
  font-family: 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
}

.nav-container {
  background-color: var(--imperial-blue);
  /* padding: 10px 20px; */
  background-color: #77201f;
  background-size: cover;
}

.nav-bar {
  font-family: '鼎猎珠海体';
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}



/* 调整图片样式 */
.brand img {
  width: 70px;
  /* 根据实际情况调整宽度 */
  height: auto;
  /* 保持图片比例 */
}

.nav-menu {
  font-family: '鼎猎珠海体';
  display: flex;
  list-style: none;
  position: relative;
  transition: opacity 0.3s;
}

.nav-item {
  margin-left: 15px;
  position: relative;
}

.nav-link {
  font-family: '鼎猎珠海体';
  color: white;
  text-decoration: none;
  padding: 0px 30px;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 24px;
}

.nav-link:hover {
  background-color: #77201f;
  border-radius: 4px;
}

.dropdown-menu {

  display: none;
  list-style: none;
  position: absolute;
  top: 124%;
  left: 0;
  background-color: #77201f;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(119, 181, 186, 0.2);
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  min-height: 40px;
}

.dropdown-menu.visible {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.dropdown-item {
  padding: 12px 16px;
  transition: 0.2s;
}

.dropdown-item a {
  color: #ffffff;
}

.dropdown-item a:active {
  color: #4f5f96;
}

.dropdown-item:hover {
  background-color: #77201f;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 32px;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--imperial-blue);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: #77201f;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown-menu.visible {
    max-height: 500px;
  }

  .hamburger {
    display: block;
  }
}





@font-face {
  font-family: '鼎猎珠海体';
  src: url('../字体/鼎猎珠海体.ttf') format('truetype');
  font-weight: normal;
  /* 字体粗细 */
  font-style: normal;
  /* 字体样式（斜体） */
}

p {
  font-family: '鼎猎珠海体';
  font-size: 1.5em;
}

h2 {
  font-family: '鼎猎珠海体';
  font-size: 1.5em;
}

* {
  margin: 0;
  padding: 0;
  /* 解决失真 */
  image-rendering: -webkit-optimize-contrast;
  /* 确保所有元素的宽度包含 padding 和 border */
  box-sizing: border-box;
}

/* 消除 li 元素的默认样式 */
ul li {
  list-style-type: none;
  /* 如果需要去除列表项的内边距和外边距，可以添加以下两行 */
  margin: 0;
  padding: 0;
}

body {
  background: url(../img/NO_3_1/背景1.png) top center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  /* 设置最小宽度为视口宽度 */
  min-width: 100vw;
  /* 最大宽度为视口宽度，避免超出 */
  max-width: 100vw;
  /* 隐藏横向滚动条 */
  overflow-x: hidden;
}

body .bj {
  /* background: url(../img/gongtong/科学保护.png) no-repeat; */
  background-size: cover;
  background-position: center;
  width: 100%;
  /* padding-bottom: 49.5%; */
  margin: 0 auto;
  overflow: hidden;
}

.daping {
  background: url(../img/gongtong/科学保护.png) no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
}

.text-with-image-color {
  font-family: '余思源颜黄体';
  font-size: 200px;
  color: #fff;
  /* letter-spacing: 1em; */
  /* font-weight: bold; */
  background-image: url('../img/lishi/baohu.jpg');
  text-align: center;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* 设置背景图片的位置和大小，这里截取图片左上角 100x100 的部分 */
  background-position: 0 0;
  background-size: 150px 100px;
}

body .content {
  display: flex;
  flex-direction: column;
}

.licheng {
  width: 70%;
  display: flex;
  flex-direction: row;
  margin: auto;
  justify-content: center;
  align-items: center;
  text-align: left;
  margin-top: 50px;
  gap: 30px;
  padding: 20px;
  border-radius: 10px;
  background-image: url('../img/gongtong/历史.png');
  background-size: cover;
  /* background-color: #f0f0f0; */
}

.wen {
  flex: 1;
  line-height: 2em;
}


.heading-brush {
  width: -moz-fit-content;
  width: fit-content;
  height: -moz-fit-content;
  height: fit-content;
  margin: 0 auto;
  margin-top: 50px;
  margin-bottom: 50px;
  position: relative;
  cursor: default;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

}

.heading-brush img {
  height: 5rem;
  width: 15rem;
  margin: auto;
  position: relative;
  border-radius: 10px;

}

.heading-brush h2 {
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* font-size: 1rem; */
  font-weight: bold;
}

.sjz {
  width: 70%;
  margin: auto;
  display: flex;
  justify-content: center;
}

.wrap {
  width: 100%;
  position: relative;
  /* margin-top: 100px; */
}

.wrap::after {
  content: '';
  position: absolute;
  top: 100px;
  left: 50%;
  width: 0;
  z-index: -999;
  height: 100%;
  border-left: 5px solid rgba(127, 43, 26);
}

.box {
  position: relative;
  width: 100%;
  min-height: 120px;
  margin-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.left,
.right {
  position: relative;
  width: 45%;
  min-height: 120px;
  border-radius: 15px;
  text-align: center;
  color: #fff
}

.box:nth-child(even) .left {
  background-color: rgba(198, 145, 145, 0.4);
  box-shadow: 0 0 10px rgba(0, 0, 0, .3);
}

.box:nth-child(odd) .right {
  background-color: rgba(198, 145, 145, 0.4);
  box-shadow: 0 0 10px rgba(0, 0, 0, .3);
}

.center {
  width: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.center>span {
  width: 80%;
  border-radius: 10px;
  text-align: center;
  font: 900 1.2rem '';
  line-height: 2.5rem;
  color: #fff;
  background-color: #5a907a;
}

.sjz .wrap .box .left p {
  line-height: 2em;
  text-indent: 2em;
}

.sjz .wrap .box .right p {
  line-height: 2em;
  text-indent: 2em;
}


/* 媒体查询，适应小屏幕 */
@media (max-width: 768px) {
  body {
    align-items: center;
    /* 让 body 内的元素居中 */
  }

  body .bj {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 让 bj 内的元素居中 */
  }

  body .bj .nav ul {
    justify-content: center;
    /* 让导航列表居中 */
  }

  .left,
  .right {
    width: 100%;
    margin-bottom: 20px;
  }

  .center {
    width: 100%;
    order: -1;
    margin-bottom: 20px;
  }

  .wrap::after {
    display: none;
  }
}

.footer {
  background-image: url('../img/yuewu/footer2.png');
  /* 替换为实际的图片路径 */
  background-size: cover;
  /* 使背景图覆盖整个容器，保持比例且不变形 */
  background-position: center;
  /* 背景图居中显示 */
  background-repeat: no-repeat;
  /* 防止背景图重复 */
  color: white;
  text-align: center;
  padding: 20px 0;
}

.footer_box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer_content {
  width: 100%;
}

.footer_title {
  font-family: '鼎猎珠海体';
  margin-bottom: 10px;
}

.footer_data {
  list-style-type: none;
  padding: 0;
}

.footer_data li {
  font-family: '鼎猎珠海体';
  margin-bottom: 5px;
}