/* 统一站点导航（所有内容页共用；样式只在这里定义一处） */
/* ===== 统一站点导航（规格与首页 home.html 的顶栏一致，样式只在这里定义一处）===== */
.site-nav {
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline, #e5e8ef);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, calc((100% - 1200px) / 2));
}
.site-nav .logo {
    display: flex;
    align-items: center;
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--ink, #1d2129);
    text-decoration: none;
}
.site-nav .logo::before {
    content: '';
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: url('/assets/logo.png?v=20261009') center/cover no-repeat var(--primary, #5e6ad2);
    margin-right: 10px;
    flex-shrink: 0;
}
.site-nav .links { display: flex; align-items: center; }
.site-nav .links a {
    margin-left: 26px;
    font-size: 14px;
    color: var(--ink-muted, #4e5969);
    text-decoration: none;
    white-space: nowrap;
    padding: 0;
    background: none;
}
.site-nav .links a:hover { color: var(--primary, #5e6ad2); background: none; }
.site-nav .links a.active { color: var(--primary, #5e6ad2); font-weight: 500; background: none; }
@media (max-width: 768px) {
    /* 窄屏：导航保持单行；滚动放在链接容器上，避免破坏导航条的吸顶 */
    .site-nav { height: 56px; min-height: 56px; flex-wrap: nowrap; padding: 0 12px; }
    .site-nav .logo { flex: 0 0 auto; font-size: 15px; white-space: nowrap; }
    .site-nav .logo::before { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; margin-right: 8px; }
    .site-nav .links {
        flex-wrap: nowrap;
        margin-left: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .site-nav .links::-webkit-scrollbar { display: none; }
    .site-nav .links a { margin-left: 16px; font-size: 13px; }
    .site-nav .links a:last-child { margin-right: 4px; }
}