body {
	  background-image: url(../image/back222.JPG);
	  background-repeat: no-repeat;
	  background-size: cover;
	  background-attachment: fixed;
	  background-position: center center;
	  font-size: 0.8rem;
	  font-family: '微软雅黑',sans-serif;
}
/* 嵌入外部字体样式 */
.zhi-mang-xing-regular {
  font-family: "Zhi Mang Xing", cursive;
  font-weight: 400;
  font-style: normal;
}

nav {
  width: 100%;
  display: flex;
  justify-content: center;
  background: rgba(255,255,255,0); /* 初始透明 */
  box-shadow: 0 2px 12px #0001;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: background 0.3s, transform 0.3s;
}
nav.scrolled {
  background: rgba(255,255,255,0.92); /* 滚动后加深 */
}
nav.hide {
  transform: translateY(-100%);
}
nav.show {
  transform: translateY(0);
}

.nav_bar {
  width: 100%;
  max-width: 1000px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 36px;
}
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-right: 10px;
}
.logo span {
  font-family: 'Dancing Script';
  font-size: 1.2em;
  font-weight: bold;
  color: black;
  letter-spacing: 2px;
}
#nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
#nav > li {
  position: relative;
}
#nav > li > a {
  display: flex;
  align-items: center;
  padding: 0 26px;
  height: 70px;
  color: black;
  font-size: 1.1em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  /* font-family: '微软雅黑', sans-serif; */
}
#nav > li > a i.fa {
  margin-right: 8px;
  font-size: 1.2em;
}
#nav > li:hover > a,
#nav > li.active > a {
  background: #f0f4ff;
  color: #ff759a;
}
.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 70px;
  background: #fff;
  min-width: 100%;
  box-shadow: 0 6px 24px #0002;
  border-radius: 0 0 10px 10px;
  z-index: 99;
  padding: 6px 0;
  list-style: none;
}
.dropdown-menu li a {
  display: block;
  padding: 10px 24px 10px 36px;
  color: black;
  font-size: 1em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu li a:hover {
  background: #f0f4ff;
  color: #ff759a;
}
.dropdown:hover .dropdown-menu {
  display: block;
}


/* 汉堡按钮默认隐藏 */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-left: auto;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 4px;
  margin: 2px 0;
  background: black;
  border-radius: 2px;
  transition: all 0.3s;
}


/* 汉堡按钮动画 */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* 响应式：900px及以下，显示汉堡，隐藏横向菜单 */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  
  /* 竖向弹出菜单 */
  #nav {
    position: fixed;
    top: 70px; /* 与导航栏高度对齐 */
    right: 0;
    background: #fff;
    box-shadow: 0 8px 32px #0002;
    flex-direction: column;
    width: 200px;
    transition: transform 0.25s;
    transform: translateX(100%);
    z-index: 1;
    border-radius: 0 0 0 22px;
    padding: 12px 0;
    height: auto;
  }
  #nav.show-menu {
    transform: translateX(0);
  }
  #nav > li {
    width: 100%;
    text-align: left;
  }
  #nav > li > a {
    height: 56px;
    padding: 0 24px;
    font-size: 1.13em;
    border-radius: 0;
    border-bottom: 1px solid #f0f4ff;
    background: none;
    color: #333;
  }
  #nav > li > a:hover {
    background: #eaf6ff;
    color: #4f8cff;
  }
  /* 隐藏侧边栏 */
  .sidebar {
    display: none !important;
  }
  body {
      background-image: url(../image/移动端背景.JPG) !important;
      background-repeat: no-repeat !important;
      background-size: cover !important;
      background-attachment: fixed !important;
      background-position: center center !important;
    }
	/* #live2dcanvas {
	      display: none !important;
	    } */
	
}
