/* 站点共用:顶部导航 + 页脚 + 响应式 */

/* 顶部导航 */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--blue-dark);
  box-shadow: 0 1px 4px rgba(8, 59, 119, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 80px;
  background: transparent;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 10px 18px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s;
  position: relative;
}
.nav a:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}
.nav a.active {
  color: var(--blue-dark);
  font-weight: 700;
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -2px;
  height: 3px;
  background: var(--blue-dark);
}

/* 移动端汉堡 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  margin-left: auto;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--blue-dark);
  content: "";
  transition: all 0.2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }

/* Footer */
.site-footer {
  background: #0a2544;
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 32px 24px;
  border-top: 3px solid var(--blue-dark);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.footer-brand p,
.footer-tagline {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s;
}
.footer-nav a:hover { color: #ffd24a; }
.footer-meta p {
  margin: 0 0 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
}

/* 响应式 */
@media (max-width: 960px) {
  .header-inner { gap: 24px; padding: 0 20px; }
  .nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 16px 20px; gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; width: 100%; border-bottom: 1px solid var(--border); }
  .nav a.active::after { display: none; }
  .nav a.active { background: var(--blue-soft); }
  .nav-toggle { display: block; }
  .logo-text { letter-spacing: 1px; font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta p { text-align: left; }
}
@media (max-width: 560px) {
  .header-inner { padding: 0 16px; gap: 12px; height: 64px; }
  .nav { top: 64px; }
  .logo-img { height: 36px; }
  .logo-text { font-size: 15px; letter-spacing: 0.5px; }
  .site-footer { padding: 28px 20px 20px; }
}
