body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* sticky footer：内容区弹性填充，footer 始终在底部 */
.page-content {
  flex: 1 0 auto;
  width: 100%;
}

.navbar-ref {
  color: #808080;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
}

.navbar-ul {
    background-color: white;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* ID 级锁定：免疫各页组件库（Bootstrap/normalize/Materialize）对布局/行高的重置 */
#navbar-ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 28px;
  line-height: 1;
}

#navbar-ul,
#navbar-ul ul,
#navbar-ul li {
  line-height: 1;
}

.list-inline {
  display: flex;
  list-style: none;
  padding-left: 0;
  text-decoration: none;
  justify-content: flex-end;
  gap: 28px;
  margin:20px 0;
  width: auto;
  min-width: 0;
}

.list-inline li {
  list-style: none;
}

/* ---------- 导航样式隔离 ----------
   各页面可能引入 Materialize / Bootstrap 3 / Bootstrap 4 等组件库，
   它们的全局重置会改变导航渲染。这里用 ID 级选择器统一覆盖，保证
   所有简约页面导航与首页一致。 */
#navbar-list,
#navbar-list ul {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: flex-end;
}

#navbar-list {
  justify-content: flex-end;
  gap: 28px;
  width: auto;
  min-width: 0;
}

#navbar-list li,
#navbar-list ul li {
  margin: 0;
  padding: 0;
  list-style: none;
  display: block;
}

#navbar-list a.navbar-ref,
#navbar-list a {
  margin: 0;
  padding: 0;
  color: #808080;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  border: none;
}

#navbar-list a.navbar-ref:hover {
  color: #333;
}

/* 下拉菜单内部同样隔离 */
#navbar-list .nav-more-menu,
#navbar-list .nav-more-menu ul {
  margin: 8px 0 0;
  padding: 6px 0;
  list-style: none;
  display: none;
}

#navbar-list .nav-more.open .nav-more-menu {
  display: block;
}

#navbar-list .nav-more-menu li,
#navbar-list .nav-more-menu a {
  margin: 0;
  padding: 0;
}

#navbar-list .nav-more-menu a {
  display: block;
  padding: 7px 18px;
  color: #808080;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
}

#navbar-list .nav-more-menu a:hover {
  background: #f5f7fa;
  color: #333;
}

@media only screen and (max-width: 1094px) {
  #navbar-list,
  .list-inline {
    width: 100%;
  }

  .navbar-ref {
    color: #808080;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
  }

}

/* ---------- 导航分类 + "更多"下拉 ---------- */
.nav-more {
  position: relative;
}

.nav-more-toggle {
  cursor: pointer;
  user-select: none;
}

.nav-more-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  margin: 8px 0 0;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 120px;
  white-space: nowrap;
  z-index: 100;
}

.nav-more.open .nav-more-menu {
  display: block;
}

.nav-more-menu li {
  list-style: none;
  margin: 0;
}

.nav-more-menu li a {
  display: block;
  padding: 7px 18px;
  color: #808080;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
}

.nav-more-menu li a:hover {
  background: #f5f7fa;
  color: #333;
}

/* 桌面：直接显示前 5 个分类；移动：只显示前 2 个分类。
   基础规则默认隐藏移动端"更多"，避免媒体查询未生效时出现两个"更多"。 */
.nav-more-mobile {
  display: none;
}

@media only screen and (max-width: 768px) {
  .nav-cat:not(.nav-cat-mobile) {
    display: none;
  }

  .nav-more-mobile {
    display: list-item;
  }

  .nav-more-desktop {
    display: none;
  }
}

@media only screen and (min-width: 769px) {
  .nav-more-desktop {
    display: list-item;
  }
}

a::selection,
span::selection {
  background: #ffb7b7; /* WebKit/Blink Browsers */
}

a::selection,
span::-moz-selection {
  background: #ffb7b7; /* Gecko Browsers */
}

/* 全站页脚 */
.site-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 24px 16px 36px;
  font-size: 12px;
  color: #999;
  line-height: 1.8;
  background: #fff;
  border-top: 1px solid #eee;
  font-family: 'Open Sans', sans-serif;
}

/* 版权信息在左、备案信息在右，一行布局 */
.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer .footer-copyright {
  margin: 0;
  text-align: left;
}

.site-footer .footer-beian {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  align-items: center;
}

.site-footer .footer-link {
  color: #999;
  text-decoration: none;
}

.site-footer .footer-link:hover {
  color: #666;
  text-decoration: underline;
}

.site-footer .footer-beian-ga {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-footer .footer-beian-ga img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}