/* ============================================================
   智造中国 · 官网统一导航条
   独立命名空间 yj-*，不依赖官网速成美站的 CSS/JS，可安全与本组页面共存。
   ============================================================ */
.yj-topnav,
.yj-topnav *,
.yj-subbar,
.yj-subbar * { box-sizing: border-box; }

.yj-topnav {
  background: #fff;
  border-bottom: 1px solid #e3e9f1;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  position: sticky;
  top: 0;
  z-index: 60;
}
.yj-topnav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 20px;
}
.yj-brand {
  font-size: 15px;
  font-weight: 700;
  color: #0d3b66;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .3px;
}
.yj-brand:hover { color: #2563eb; }
.yj-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  height: 54px;
  flex: 1;
}
.yj-menu > li { list-style: none; margin: 0; padding: 0; position: relative; }
.yj-menu > li > a {
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 14px;
  font-size: 13.5px;
  color: #42536a;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.yj-menu > li > a:hover { color: #2563eb; background: #f8fafc; }
.yj-menu > li.yj-active > a,
.yj-menu > li > a.yj-current {
  color: #2563eb;
  font-weight: 600;
  border-bottom-color: #2563eb;
}
.yj-menu > li.yj-has-sub > a::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .65;
}
.yj-sub {
  display: none;
  position: absolute;
  top: 54px; left: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid #e3e9f1;
  box-shadow: 0 10px 28px rgba(13, 59, 102, .12);
  list-style: none;
  margin: 0; padding: 6px 0;
}
.yj-has-sub:hover .yj-sub,
.yj-sub:hover { display: block; }
.yj-sub li { list-style: none; margin: 0; padding: 0; }
.yj-sub a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: #42536a;
  text-decoration: none;
  white-space: nowrap;
}
.yj-sub a:hover { background: #f1f5f9; color: #2563eb; }
.yj-sub a[aria-current="page"] { color: #2563eb; font-weight: 600; background: #f8fafc; }

/* 二级栏目常显横条 */
.yj-subbar {
  background: #f8fafc;
  border-bottom: 1px solid #e3e9f1;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
.yj-subbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.yj-crumb {
  font-size: 12.5px;
  color: #8b97a7;
  margin-right: 8px;
  white-space: nowrap;
}
.yj-crumb a { color: #0d3b66; text-decoration: none; }
.yj-crumb a:hover { color: #2563eb; }
.yj-crumb b { color: #2563eb; font-weight: 600; }
.yj-subbar-hint { margin-left: auto; font-size: 11.5px; color: #8b97a7; }
.yj-subbar a.yj-sublink {
  font-size: 12.8px;
  color: #42536a;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.yj-subbar a.yj-sublink:hover { background: #eef1f6; color: #2563eb; }
.yj-subbar a.yj-sublink[aria-current="page"] {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}

/* 站点内二级导航（替换原单页锚点导航） */
.site-head .nav a { text-decoration: none; }
.site-head .nav a[aria-current="page"] {
  color: #175d92;
  font-weight: 600;
  border-bottom: 2px solid #175d92;
}

/* 页面主体与导航条的间距 */
body { --yj-nav-offset: 0px; }
.zz-page-note {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: 12px;
  color: #8b97a7;
}
/* ============================================================
   重造页面后的版式：去掉 site.zip 自带 topbar / site-head / 三列页脚
   页面 = 官网一级导航 + 面包屑 + 本板块内容 + 官网首页同款页脚
   页脚样式见同目录 footer.css（#yj-footer）
   ============================================================ */
html { scroll-padding-top: 64px; }

/* 首区块紧贴面包屑，避免原单页为 sticky 头部预留的大片留白 */
.yj-main > .section.alt:first-child {
  margin-top: 0;
  border-top: 0;
}
.yj-main > .section:not(.alt):first-child { padding-top: 40px; }
.yj-main > .hero:first-child { padding-top: 40px; }

/* ============================================================
   官网原生一级菜单的二级下拉：官网原脚本依赖 jQuery，已剥离，
   此处用纯 CSS :hover 兜底，保证「智造中国」下 8 个栏目可点开
   ============================================================ */
.tem_6_9 .w-nav .w-nav-inner { position: relative; }
.tem_6_9 .w-nav .w-nav-inner:hover > .w-subnav {
  display: block !important;
  position: absolute !important;
  top: 44px;
  left: 0;
  z-index: 999;
  width: 194px !important;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e3e9f1;
  box-shadow: 0 10px 28px rgba(13, 59, 102, .14);
}

@media (max-width: 900px) {
  .yj-topnav-inner { gap: 10px; overflow-x: auto; }
  .yj-menu > li > a { padding: 0 9px; font-size: 12.5px; }
  .yj-subbar-inner { padding: 6px 12px; }
}
