/* 站点头部 / 页脚公共样式（静态页专用）
   与官网主站视觉保持一致：48px 顶栏 + 浅灰页脚。
   任何静态页只需引入 /site-chrome.css 与 /site-chrome.js，即可自动挂载头尾。 */

:root { --jlu-hd-h: 48px; --jlu-primary: #0a85c2; }

/* ---------- 头部 ---------- */
.jlu-hd {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: hsl(222 20% 99%);
  border-bottom: 1px solid transparent;
  box-sizing: border-box;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.jlu-hd.is-scrolled {
  background: rgba(252, 252, 253, .95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: hsl(222 20% 92%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.jlu-hd-in {
  max-width: 1152px;
  height: var(--jlu-hd-h);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}

.jlu-hd-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: hsl(222 47% 11%);
  white-space: nowrap;
}
.jlu-hd-brand img { height: 32px; width: auto; display: block; }
.jlu-hd-brand span { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

.jlu-hd-nav { display: flex; align-items: center; gap: 4px; }

.jlu-hd-link,
.jlu-hd-group > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: hsl(222 12% 45%);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.jlu-hd-link:hover,
.jlu-hd-group > button:hover { color: hsl(222 47% 11%); background: hsl(222 24% 95%); }
.jlu-hd-link.on,
.jlu-hd-group > button.on { color: var(--jlu-primary); background: rgba(10, 133, 194, .1); }

.jlu-hd-chev { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.jlu-hd-group:hover > button .jlu-hd-chev { transform: rotate(180deg); }

.jlu-hd-group { position: relative; }
.jlu-hd-drop {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: none;
  padding-top: 8px;
}
.jlu-hd-group:hover > .jlu-hd-drop,
.jlu-hd-group.is-open > .jlu-hd-drop { display: block; }
.jlu-hd-panel {
  background: #fff;
  border: 1px solid hsl(222 20% 92%);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
  box-sizing: border-box;
}
/* 面板按内容自适应宽度，避免「数据与智能分析」「细胞与分子研究中心」等长文案折行 */
.jlu-hd-panel--mega {
  display: grid;
  width: max-content;
  min-width: 720px;
  padding: 20px;
  /* 列数跟随一级板块数量，避免固定 4 列时多出空列 */
  grid-auto-flow: column;
  grid-auto-columns: auto;
  gap: 24px;
}
.jlu-hd-panel--sm {
  display: grid;
  min-width: 220px;
  padding: 16px;
  grid-template-columns: 1fr;
}

/* 中等宽度（桌面导航仍显示）时，面板改为相对视口居中，避免按内容变宽后超出屏幕左侧 */
@media (min-width: 901px) and (max-width: 1080px) {
  .jlu-hd-drop--mega {
    position: fixed;
    top: var(--jlu-hd-h);
    left: 50%;
    transform: translateX(-50%);
  }
}

.jlu-hd-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: hsl(222 47% 11%);
  text-decoration: none;
  white-space: nowrap;
}
.jlu-hd-col-title svg { width: 16px; height: 16px; flex: none; }
a.jlu-hd-col-title:hover { color: var(--jlu-primary); }

.jlu-hd-sub {
  display: block;
  padding: 6px 12px 6px 32px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(15, 23, 42, .9);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.jlu-hd-sub2 {
  display: block;
  padding: 6px 12px 6px 48px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: hsl(222 12% 45%);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.jlu-hd-sub:hover { color: var(--jlu-primary); background: hsl(222 24% 95%); }
.jlu-hd-sub2:hover { color: hsl(222 47% 11%); background: hsl(222 24% 95%); }
.jlu-hd-panel--sm .jlu-hd-sub { padding-left: 12px; }

.jlu-hd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--jlu-primary);
  color: hsl(210 40% 98%);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s;
}
.jlu-hd-cta:hover { background: #0977ae; }

.jlu-hd-toggle { display: none; border: 0; background: transparent; color: hsl(222 47% 11%); padding: 8px; cursor: pointer; }

.jlu-hd-mobile { display: none; border-top: 1px solid hsl(222 20% 92%); background: hsl(222 20% 99%); padding: 10px 16px 18px; }
.jlu-hd-mobile.is-open { display: block; }
.jlu-hd-mobile-title { padding: 12px 8px 4px; font-size: 14px; font-weight: 600; color: hsl(222 47% 11%); }
.jlu-hd-mobile a {
  display: block;
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
  color: hsl(222 12% 45%);
  text-decoration: none;
}
.jlu-hd-mobile a.lvl1 { padding-left: 24px; }
.jlu-hd-mobile a.lvl2 { padding-left: 40px; font-size: 13px; }
.jlu-hd-mobile a:hover { color: hsl(222 47% 11%); background: hsl(222 24% 95%); }
.jlu-hd-mobile .jlu-hd-cta { margin: 12px 8px 0; color: hsl(210 40% 98%); }

/* ---------- 页脚 ---------- */
.jlu-ft {
  width: 100%;
  background: #f5f5f4;
  padding: 64px 0;
  box-sizing: border-box;
  font-family: inherit;
}
.jlu-ft-in { max-width: 1152px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.jlu-ft-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}
.jlu-ft-brand strong { display: block; font-size: 18px; font-weight: 600; color: #1c1917; margin-bottom: 16px; }
.jlu-ft-brand p { margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: #78716c; }
.jlu-ft-social { display: flex; gap: 16px; }
.jlu-ft-social a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #e7e5e4;
  color: #57534e;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color .2s;
}
.jlu-ft-social a:hover { background: #d6d3d1; }
.jlu-ft-social svg { width: 16px; height: 16px; }
.jlu-ft-social-txt { font-size: 12px; font-weight: 500; }
.jlu-ft h4 { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: #1c1917; }
.jlu-ft ul { list-style: none; margin: 0; padding: 0; }
.jlu-ft li { margin-bottom: 8px; font-size: 14px; line-height: 1.7; color: #78716c; }
.jlu-ft li a { color: #78716c; text-decoration: none; transition: color .2s; }
.jlu-ft li a:hover { color: #1c1917; }
.jlu-ft-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  padding-top: 32px;
  border-top: 1px solid #e7e5e4;
  font-size: 12px;
  color: #a8a29e;
}
.jlu-ft-bottom-l,
.jlu-ft-bottom-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.jlu-ft-bottom a { color: #a8a29e; text-decoration: none; }
.jlu-ft-bottom a:hover { color: #57534e; }

@media (min-width: 640px) {
  .jlu-hd-in { padding: 0 24px; }
}
@media (min-width: 768px) {
  .jlu-ft { padding: 80px 0; }
}
@media (min-width: 1024px) {
  .jlu-hd-in { padding: 0 32px; }
}
@media (max-width: 900px) {
  .jlu-hd-nav { display: none; }
  .jlu-hd-toggle { display: inline-flex; }
  .jlu-ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (max-width: 560px) {
  .jlu-ft-grid { grid-template-columns: 1fr; gap: 28px; }
  .jlu-ft-in { padding: 0 16px; }
}
