/**
 * 顶部导航栏样式。
 */

/* 导航栏：粘性定位在顶部，始终覆盖页面内容 */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    isolation: isolate;
}

/* 通过伪元素承载毛玻璃效果，z-index: -1 使其位于 nav 内容层之后 */
.site-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 导航内容区：水平居中，限制最大宽度，flex 布局排列 logo 与链接 */
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* 站点 logo 链接 */
.nav-logo {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* 导航链接列表容器：作为指示条的定位参照 */
.nav-links-wrapper {
    position: relative;
}

/* 导航链接列表：水平排列，去除列表样式 */
.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

/* 单个导航链接 */
.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    transition: color 0.2s;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* 鼠标悬停时高亮链接颜色 */
.nav-links a:hover {
    color: #54e0b4;
}

/* 当前激活页面链接：文字保持绿色 */
.nav-links a.active {
    color: #54e0b4;
}

/* 导航指示条：绝对定位于 .nav-links-wrapper 底部，随页面切换滑动 */
.nav-indicator {
    position: absolute;
    bottom: -6px;
    height: 3px;
    border-radius: 2px;
    background-color: #54e0b4;
    opacity: 0;
    transition: opacity 0.15s ease;
}
