/* 复用首页菜单，基础样式仅作用于导航，保留方案正文排版。 */
#header {
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: normal;
}

:where(#header, #header *, #header ::before, #header ::after) {
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

:where(#header button) {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    background: transparent;
    cursor: pointer;
    text-transform: none;
}

#header .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: #165DFF;
    transition: width 0.3s ease;
}

#header .nav-link:hover::after,
#header .nav-link.active::after {
    width: 100%;
}

#header ~ main { padding-top: 64px; }

@media (min-width: 768px) {
    #header ~ main { padding-top: 80px; }
}
