/* 全站顶栏 · 56px fixed · 横排导航 */

.gb-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 56px;
  z-index: 999;
  background: transparent;
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 48px);
  font-family: var(--gb-sans, "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif);
  transition: background 220ms ease, box-shadow 220ms ease;
}

/* 其他页面（非首页）进来即触发，显示底色 */
.gb-nav--up {
  background: rgba(242,237,228,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,.07), 0 8px 0 rgba(242,237,228,1);
}

/* 首页首屏透明状态：logo 和链接改白色 */
.gb-nav:not(.gb-nav--up) .gb-nav-brand,
.gb-nav:not(.gb-nav--up) .gb-nav-links a {
  color: rgba(255,255,255,.9);
}
.gb-nav:not(.gb-nav--up) .gb-nav-links a:hover,
.gb-nav:not(.gb-nav--up) .gb-nav-links a[aria-current="page"] {
  color: #fff;
}
.gb-nav:not(.gb-nav--up) .gb-nav-cta {
  background: rgba(255,255,255,.92);
  color: #111110;
}

/* ── Logo ── */
.gb-nav-brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--gb-ink, #111110);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.gb-nav-brand em { font-style: normal; color: inherit; }

/* ── 导航链接 ── */
.gb-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.gb-nav-links a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: rgba(17,17,16,.48);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color 150ms ease;
  white-space: nowrap;
}
.gb-nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gb-accent, #d4f23a);
  transform: translateX(-50%);
  transition: width 200ms ease;
}
.gb-nav-links a:hover,
.gb-nav-links a:focus-visible { color: var(--gb-ink, #111110); }
.gb-nav-links a:hover::after,
.gb-nav-links a[aria-current="page"]::after { width: 100%; }
.gb-nav-links a[aria-current="page"] {
  color: var(--gb-ink, #111110);
  font-weight: 700;
  text-decoration: none;
}

/* ── CTA 胶囊 ── */
.gb-nav-cta {
  margin-left: clamp(12px, 2vw, 24px);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--gb-ink, #111110);
  color: var(--gb-accent, #d4f23a);
  transition: opacity 150ms ease;
}
.gb-nav-cta:hover { opacity: .78; }

/* ── 页面内容留白 ── */
body { padding-top: 56px; }
body.gb-hero-page { padding-top: 0; }
