/* Shared header and footer for tool pages. Matches the group site. */
.site-header, .site-footer {
  --ink: #16202b;
  --ink-2: #48596b;
  --muted: #7d8c9b;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --accent: #1a5f8a;
  --accent-soft: #e8f1f7;
  --wrap: 1080px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  box-sizing: border-box;
}
.site-header *, .site-footer * { box-sizing: border-box; }
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap, .site-footer .wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.site-header .brand:hover { text-decoration: none; }
.site-header .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), #2e8bc0);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.site-header .brand-text strong {
  display: block;
  font-size: 16px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  line-height: 1.3;
  font-weight: 600;
}
.site-header .brand-text small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.site-header nav { display: flex; gap: 4px; }
.site-header nav a {
  padding: 7px 13px;
  border-radius: 7px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--ink-2); }
.site-header nav a.active { background: var(--accent-soft); color: var(--accent); }
.site-header .nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 18px;
  padding: 4px 11px;
  cursor: pointer;
  color: var(--ink);
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 28px 0;
  font-size: 13.5px;
  margin-top: 48px;
}
.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .muted { color: var(--muted); }
.site-footer .foot-right { text-align: right; }
#navbar { display: none !important; }
@media (max-width: 700px) {
  .site-header .nav-toggle { display: block; }
  .site-header nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 14px;
    gap: 2px;
  }
  .site-header nav.open { display: flex; }
  .site-footer .footer-inner { flex-direction: column; }
  .site-footer .foot-right { text-align: left; }
}
