/* =========================================================
   TheSpaceLaunches · 顶栏 / 页脚 / 页角
   ========================================================= */

/* —— 顶栏 —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(4, 7, 15, 0.78);
  border-bottom: 1px solid rgba(76, 201, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-nav__inner {
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--text-0);
}
.brand__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-blue), var(--accent-blue-deep) 60%, #0a1226);
  box-shadow: 0 0 12px rgba(76, 201, 255, 0.55), inset 0 0 6px rgba(255,255,255,0.2);
  position: relative;
}
.brand__logo::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}
.brand__name b { color: var(--accent-blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-1);
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--text-0); background: rgba(76, 201, 255, 0.08); }
.nav-link.active {
  color: var(--accent-blue);
  background: rgba(76, 201, 255, 0.1);
  box-shadow: inset 0 -2px 0 var(--accent-blue);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: -1px;
  height: 2px;
  background: var(--accent-blue);
  box-shadow: var(--shadow-glow-blue);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 220px;
  padding: 7px 12px;
  background: rgba(15, 28, 61, 0.6);
  border: 1px solid rgba(76, 201, 255, 0.18);
  border-radius: 8px;
}
.nav-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
  color: var(--text-0);
}
.nav-search input::placeholder { color: var(--text-3); }
.nav-search svg { width: 14px; height: 14px; color: var(--text-2); }

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(76, 201, 255, 0.18);
  border-radius: 8px;
  color: var(--text-1);
  transition: color .15s ease, border-color .15s ease;
}
.icon-btn:hover { color: var(--accent-blue); border-color: rgba(76, 201, 255, 0.45); }
.icon-btn svg { width: 16px; height: 16px; }

.nav-lang {
  padding: 7px 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-1);
  border: 1px solid rgba(76, 201, 255, 0.18);
  border-radius: 8px;
  background: rgba(15, 28, 61, 0.6);
}

/* —— 页脚 —— */
.site-footer {
  margin-top: 64px;
  padding: 36px 0 24px;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 15, 0.6) 30%, rgba(8, 16, 42, 0.85));
  border-top: 1px solid rgba(76, 201, 255, 0.18);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 14px;
}
.footer-col a, .footer-col li {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  padding: 4px 0;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--text-0); }
.footer-brand p { font-size: 13px; color: var(--text-2); max-width: 280px; margin-top: 8px; }

.subscribe {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.subscribe input {
  flex: 1;
  padding: 9px 12px;
  background: rgba(15, 28, 61, 0.6);
  border: 1px solid rgba(76, 201, 255, 0.2);
  border-radius: 8px;
  outline: 0;
  font-size: 13px;
}
.subscribe input::placeholder { color: var(--text-3); }
.subscribe button {
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--accent-blue-deep), var(--accent-blue));
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-glow-blue);
}

.copyright {
  padding-top: 18px;
  border-top: 1px solid rgba(76, 201, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}
.copyright__social {
  display: flex;
  gap: 8px;
}
.copyright__social a {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(76, 201, 255, 0.18);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* —— 页角：Developers —— */
.site-corner {
  background: rgba(4, 7, 15, 0.85);
  border-top: 1px solid rgba(76, 201, 255, 0.08);
  border-bottom: 1px solid rgba(76, 201, 255, 0.18);
  padding: 12px 0;
}
.site-corner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-3);
}
.site-corner a {
  color: var(--text-1);
  padding: 4px 10px;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.site-corner a:hover { color: var(--accent-orange); background: rgba(255, 138, 61, 0.08); }

/* —— 响应（仅有桌面，保留最小显示修正） —— */
/* ===== Mobile nav hamburger (CSS-only default; JS toggles .site-nav--open) ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(76, 201, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.nav-hamburger:hover {
  border-color: var(--accent-blue, #4cc9ff);
  background: rgba(76, 201, 255, 0.08);
}
.nav-hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-0, #f0f4ff);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
  transform-origin: center;
}
.site-nav--open .nav-hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav--open .nav-hamburger__bar:nth-child(2) {
  opacity: 0;
}
.site-nav--open .nav-hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-search { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h, 64px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 16, 42, 0.98);
    border-top: 1px solid rgba(76, 201, 255, 0.18);
    border-bottom: 1px solid rgba(76, 201, 255, 0.18);
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
  .site-nav--open .nav-links { display: flex; }
  .nav-link {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(76, 201, 255, 0.08);
    text-align: left;
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-tools { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-col h4 { margin-bottom: 10px; }
  .footer-brand p { font-size: 12px; }
  #site-corner { right: 12px; bottom: 12px; padding: 8px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
  .site-nav__inner { padding: 0 14px; }
  .brand__name { font-size: 15px; }
  .nav-link { padding: 12px 18px; font-size: 13px; }
  .site-footer { padding: 28px 0 18px; }
  .footer-col a, .footer-col li { font-size: 12px; }
}
