/* ============================================================
   站点顶栏（藏青 + 金）· 首页 / 教程 / 真实记录 / 售后答疑 / 留言墙 共用
   独立前缀变量，避免与各页主题变量冲突
   ============================================================ */

:root {
  --nav-h: 68px;
  --nav-bg: rgba(9, 16, 31, .82);
  --nav-gold: #e9c47f;
  --nav-gold-strong: #f7dfae;
  --nav-line: rgba(233, 196, 127, .28);
  --nav-line-soft: rgba(255, 255, 255, .08);
  --nav-ink: #e9eef8;
  --nav-muted: #8b98ae;
}

.nav-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--nav-bg, rgba(9, 16, 31, .82));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-line-soft, rgba(255, 255, 255, .08));
  font-family: var(--nav-font, inherit);
}

.nav-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-top .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--nav-ink, #e9eef8);
  text-decoration: none;
}

.nav-top .brand-star { width: 22px; height: 22px; flex: none; }

.nav-top .brand-star path {
  fill: none;
  stroke: var(--nav-gold, #e9c47f);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
}

.nav-link {
  position: relative;
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--nav-muted, #8b98ae);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}

.nav-link:hover { color: var(--nav-ink, #e9eef8); background: rgba(255, 255, 255, .05); }

.nav-link[aria-current] {
  color: var(--nav-gold-strong, #f7dfae);
  background: rgba(233, 196, 127, .12);
  box-shadow: inset 0 0 0 1px rgba(233, 196, 127, .24);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.nav-pass {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--nav-line, rgba(233, 196, 127, .28));
  background: rgba(233, 196, 127, .06);
  color: var(--nav-gold-strong, #f7dfae);
  font-size: 12.5px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .18s ease;
}

.nav-pass:hover { background: rgba(233, 196, 127, .14); }

.nav-pass svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* 小屏：品牌 + 密令一行，导航整宽第二行可横向滑动 */
@media (max-width: 900px) {
  :root { --nav-h: 88px; }

  .nav-inner {
    height: auto;
    padding: 9px 18px 0;
    flex-wrap: wrap;
    gap: 9px;
  }

  .nav-right { margin-left: auto; }

  .nav-links {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 7px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .nav-link { padding: 6px 11px; font-size: 12.5px; }
}

@media (max-width: 560px) {
  .nav-top .brand { font-size: 14px; }
  .nav-top .brand-star { width: 20px; height: 20px; }
  .nav-pass { height: 32px; padding: 0 12px; font-size: 11.5px; }
}
