/* 通用重置 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 去除链接下划线 */
a {
  text-decoration: none;
}

/* 去除按钮和输入框的默认样式 */
button,
input {
  border: none;
  background: none;
  outline: none;
  padding: 0;
  font: inherit;
}

/* 去除列表项的默认样式 */
ul,
ol {
  list-style: none;
}

/* 去除图片的默认边框 */
img {
  border: 0;
  max-width: 100%;
  height: auto;
}

/* 去除表格的默认样式 */
table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  padding: 0;
  text-align: left;
}

html,
body {
  font-family: "JiangChengYuanTi", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header {
  position: relative;
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: url('../assets/index/head-bg.png') no-repeat;
  background-size: cover;
  padding: 0 120px;
  
  transition: background-color 0.3s ease;
}

header img {
  width: 267px;
  height: 31px;
}

header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0.8;
  z-index: 1000;
}

nav ul {
  list-style-type: none;
  padding: 0;
}

nav ul li {
  padding: 6px 26px;
  display: inline-block;
}

nav ul li a {
  font-size: 20px;
  transition: color 0.3s;
  color: #1A1A1A;
}

nav ul .li-active {
  background-color: #ffffff;
  border-radius: 30px;
  color: #6760CC;
}

nav ul .li-active a {
  color: #6760CC;
}

nav ul li a:hover {
  color: #6760CC;
  text-decoration: none;
}

.hidden {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 不同方向的动画 */
.hidden-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease;
}

.hidden-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease;
}

/* 移动端侧边导航样式 */
.mobile-nav-toggle {
  display: none;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  /* 修改为左侧 */
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav {
  position: fixed;
  top: 60px;
  left: -100%;
  /* 初始隐藏在左侧 */
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  padding: 20px;
  z-index: 1000;
  transform: translateX(-100%);
  /* 初始完全隐藏在左侧 */
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  /* 新的动画曲线，增加回弹效果 */
}

.mobile-nav ul {
  list-style-type: none;
  padding: 0;
}

.mobile-nav ul li {
  margin-bottom: 38px;
}

.mobile-nav ul li a {
  color: #1A1A1A;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav ul li a img {
  width: 20px;
  height: 20px;
}

.mobile-nav ul li a:hover {
  color: #6760CC;
  text-decoration: none;
}

.mobile-nav ul .active a {
  color: #6760CC;
  text-decoration: none;
}

/* 弹窗背景（透明） */
.modal-background {
  display: none; /* 默认隐藏 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
  justify-content: center;
  align-items: center;
}

/* 弹窗内容 */
.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  font-size: 18px;
  color: #1A1A1A;
}

.modal-content img {
  width: 80%;
  height: 80%;
}

.modal-content #closeModalBtn {
  position: absolute;
  top: 18px;
  right: 18px;
  cursor: pointer;
  width: 20px;
  height: 20px;
}

/* 按钮样式 */
button {
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
}

.footer-box {
  background-color: #B6B1F0;
  padding: 40px 120px;
  font-size: 30px;
  color: #1A1A1A;
  line-height: 60px;
}

.footer-content {
  width: 100%;
  padding: 60px 0;
  background-color: rgba(36, 36, 36);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  font-size: 16px;
  color: #ffffff;
}

.footer-content .line {
  margin: 0 20px;
}

.footer-content .link {
  font-size: 16px;
  color: #ffffff;
}

.footer-contents {
  display: none;
}

/* 适配 */
@media(max-width: 1440px) {

  header {
    padding-right: 100px;
  }

  .footer-box {
    font-size: 26px;
  }
}

@media(max-width: 1288px) {

  header {
    padding: 0 98px;
  }

  header img {
    width: 200px;
    height: 23px;
  }

  nav ul li {
    padding: 4px 20px;
    display: inline-block;
  }

  nav ul li a {
    font-size: 18px;
  }
}

@media(max-width: 1160px) {

  header {
    height: 60px;
    padding: 0 72px;
  }

  header img {
    width: 200px;
    height: 23px;
  }

  nav ul li {
    padding: 4px 20px;
    display: inline-block;
  }

  nav ul li a {
    font-size: 16px;
    transition: color 0.3s;
    color: #1A1A1A;
  }

  .footer-box {
    font-size: 22px;
  }

}

@media (max-width: 960px) {

  header img {
    width: 168px;
    height: 19px;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .mobile-nav.show {
    display: block;
    transform: translateX(100%);
    /* 完全滑入可见位置 */
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* 新的动画曲线，增加回弹效果 */
  }

  header nav {
    display: none;
  }
}

@media (max-width: 820px) {

  header img {
    width: 168px;
    height: 19px;
  }
}

@media (max-width: 750px) {
  header {
    height: 50px;
    background: url('../assets/index/head-bg-750.png') no-repeat;
    background-size: cover;
    padding: 0 30px;
  }
  .mobile-nav {
    top: 50px;
  }
  .modal-content {
    width: 72%;
  }
  .modal-content img {
    width: 80%;
    height: 80%;
  }
  .footer-content {
    display: none;
  }
  .footer-contents {
    width: 100%;
    padding: 20px 0;
    background-color: rgba(36, 36, 36);
    display: block;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    line-height: 28px;
  }
  .footer-contents .link {
    color: #ffffff;
    display: block;
    line-height: 28px;
  }
  .footer-box {
    font-size: 18px;
    padding: 20px 40px;
  }
}

@media (max-width: 640px) {
  .footer-box {
    font-size: 16px;
    padding: 16px 32px;
  }
}

@media(max-width: 498px) {
  .footer-box {
    font-size: 14px;
    padding: 14px 28px;
  }
}

@media (max-width: 375px) {
  header img {
    width: 134px;
    height: 16px;
  }
  .modal-content {
    width: 88%;
  }
  .modal-content #closeModalBtn {
    width: 16px;
    height: 16px;
  }
}