/* ============================================================
   云竹涧 · 全局响应式导航栏（深色玻璃拟态）
   命名空间：.site-header / .brand / .site-nav / .site-actions / .btn / .nav-toggle
   全局加载（functions.php 内 enqueue），与首页 .yzg-* 样式互不冲突。
   ============================================================ */
.site-header{
	--nav-bg: rgba(10, 14, 20, .82);
	--nav-border: rgba(255, 255, 255, .07);
	--nav-ink: #e8edf5;
	--nav-muted: #98a3b3;
	--nav-accent: #4bc0a5;
	--nav-accent-2: #2d8f7a;
	position: sticky; top: 0; z-index: 1000;
	background: var(--nav-bg);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--nav-border);
}
.site-header *{ box-sizing: border-box; }
.site-header a{ text-decoration: none; color: inherit; }

.site-header__bar{
	max-width: 1280px; margin: 0 auto;
	padding: 0 24px; height: 64px;
	display: flex; align-items: center; gap: 24px;
}

/* 品牌（Logo 图标 + 标题） */
.brand{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark{
	width: 34px; height: 34px; border-radius: 9px;
	display: grid; place-items: center; font-size: 18px; line-height: 1;
	background: linear-gradient(135deg, #4bc0a5, #2d8f7a);
	box-shadow: 0 4px 14px rgba(45, 143, 122, .35);
}
.brand__text{ font-size: 17px; font-weight: 700; letter-spacing: .5px; color: var(--nav-ink); }

/* 中间菜单（水平居中） */
.site-nav{ display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.site-nav__link{
	position: relative; padding: 8px 14px; border-radius: 8px;
	font-size: 15px; color: var(--nav-muted); white-space: nowrap;
	transition: color .15s, background .15s;
}
.site-nav__link:hover{ color: var(--nav-ink); background: rgba(255, 255, 255, .04); }
.site-nav__link.is-active{ color: var(--nav-accent); background: rgba(75, 192, 165, .10); }

/* 右侧操作区 */
.site-actions{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-actions__user{ display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--nav-ink); }
.site-actions__avatar{
	width: 28px; height: 28px; border-radius: 50%;
	display: grid; place-items: center; font-size: 13px; font-weight: 700;
	background: linear-gradient(135deg, #4bc0a5, #2d8f7a); color: #04121a;
}

/* 按钮（登录 = 幽灵 / 免费试用 = 高亮） */
.btn{
	font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
	padding: 10px 18px; border-radius: 9px; cursor: pointer;
	border: 1px solid transparent; white-space: nowrap;
	transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
.btn--ghost{ background: transparent; border-color: rgba(255, 255, 255, .16); color: var(--nav-ink); }
.btn--ghost:hover{ border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .05); }
.btn--primary{
	background: linear-gradient(135deg, #4bc0a5, #2d8f7a); color: #04121a;
	box-shadow: 0 4px 16px rgba(45, 143, 122, .35);
}
.btn--primary:hover{ transform: translateY(-1px); box-shadow: 0 6px 22px rgba(45, 143, 122, .5); }
.btn--primary:active{ transform: translateY(0); }

/* 汉堡按钮（移动端） */
.nav-toggle{
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 40px; height: 40px; padding: 10px; border-radius: 9px;
	background: transparent; border: 1px solid rgba(255, 255, 255, .14); cursor: pointer;
}
.nav-toggle span{
	display: block; height: 2px; width: 100%; border-radius: 2px;
	background: var(--nav-ink); transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ===== 移动端 ===== */
@media (max-width: 900px){
	.site-header__bar{ height: 60px; gap: 12px; padding: 0 16px; }
	.nav-toggle{ display: flex; }
	.site-nav{
		position: absolute; top: 60px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 2px;
		background: rgba(10, 14, 20, .98);
		border-bottom: 1px solid var(--nav-border);
		padding: 8px 16px 16px;
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: transform .2s, opacity .2s, visibility .2s;
	}
	.site-nav.is-open{ transform: translateY(0); opacity: 1; visibility: visible; }
	.site-nav__link{ padding: 12px 12px; font-size: 15px; border-radius: 8px; }
	.site-actions{ margin-left: auto; }
	.btn{ padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 480px){
	.brand__mark{ width: 30px; height: 30px; font-size: 16px; }
	.brand__text{ font-size: 16px; }
	.btn{ padding: 8px 10px; }
}

/* ===== BuddyPress 私信入口 ===== */
.site-actions__msg{
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--nav-muted); font-size: 14px;
	padding: 6px 10px; border-radius: 8px;
	transition: color .15s, background .15s;
}
.site-actions__msg:hover{ color: var(--nav-ink); background: rgba(255,255,255,.06); }
.site-actions__msg-badge{
	min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: #e5484d; color: #fff;
	font-size: 11px; line-height: 18px; text-align: center; font-weight: 600;
}
