/* 分组导航：与正文同宽；展开内容保留在 SSR 中，details 无 JS 可用。 */
body > header .site-navigation { position: relative; height: 72px; gap: 28px; }
body > header .site-navigation .logo { flex: none; }
body > header .site-navigation .logo img { width: 210px; height: auto; }
body > header .site-navigation .nav-links { align-items: center; gap: 26px; margin-left: auto; overflow: visible; }
body > header .site-navigation .nav-links > li { flex: none; }
body > header .site-navigation .nav-links > li > a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
body > header .nav-actions { display: flex; flex: none; align-items: center; gap: 20px; list-style: none; padding-left: 22px; border-left: 1px solid #ecebea; }
body > header .nav-actions > li > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 15px; color: #666; white-space: nowrap; }
body > header .nav-actions a:hover { color: var(--color-accent); }
body > header .nav-search { width: 28px; }
.nav-icon { display: inline-block; flex: none; width: 18px; height: 18px; background: currentColor; mask-size: contain; mask-position: center; mask-repeat: no-repeat; }
.nav-icon-search { mask-image: url('/images/ui/search.svg'); }
.nav-icon-chevron { width: 12px; height: 12px; mask-image: url('/images/ui/chevron-down.svg'); transition: transform .2s ease; }
.nav-icon-menu { display: none; width: 20px; height: 20px; mask-image: url('/images/ui/menu.svg'); }
.nav-entry-recommend { mask-image: url('/images/ui/lucide-nav-recommend.svg'); }
.nav-entry-poems { mask-image: url('/images/ui/lucide-nav-poems.svg'); }
.nav-entry-quotes { mask-image: url('/images/ui/lucide-nav-quotes.svg'); }
.nav-entry-authors { mask-image: url('/images/ui/lucide-nav-authors.svg'); }
.nav-entry-collections { mask-image: url('/images/ui/lucide-nav-collections.svg'); }
.nav-entry-books { mask-image: url('/images/ui/lucide-nav-books.svg'); }
body > header .nav-mobile-primary { display: none; }
body > header .nav-explore-trigger { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 6px; font-size: 15px; letter-spacing: .04em; color: #666; cursor: pointer; list-style: none; }
.nav-explore-trigger::-webkit-details-marker { display: none; }
body > header .nav-explore { flex: none; padding: 14px 0; }
body > header .nav-explore-trigger:hover, body > header .nav-explore-trigger.active, body > header details[open] > .nav-explore-trigger { color: var(--color-accent); background: #faf1f2; }
body > header details[open] .nav-icon-chevron { transform: rotate(180deg); }
body > header .nav-explore-panel { position: absolute; top: calc(100% - 1px); right: 24px; width: 600px; max-width: calc(100% - 48px); padding: 26px 28px 14px; display: grid; grid-template-columns: .9fr 1.1fr 1.1fr; background: #fff; border: 1px solid #f2f0ee; border-radius: 10px; box-shadow: 0 14px 36px rgba(44, 38, 32, .1); }
body > header details:not([open]) > .nav-explore-panel { display: none; }
body > header .nav-explore-group { min-width: 0; padding: 0 24px; border-left: 1px solid #eeece9; }
body > header .nav-mobile-primary + .nav-explore-group { padding-left: 0; border-left: 0; }
body > header .nav-explore-group:last-child { padding-right: 0; }
body > header .nav-explore-heading { color: #94918c; font-size: 12px; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid #eeece9; }
body > header .nav-explore-panel a { display: block; padding: 6px 0; letter-spacing: 0; border-radius: 4px; }
body > header .nav-explore-panel a::after { content: none; }
body > header .nav-explore-panel a > span { display: block; color: #2c2c2c; font-family: var(--font-serif); font-size: 16px; font-weight: 600; line-height: 1.6; }
body > header .nav-explore-panel small { display: block; margin-top: 3px; font-size: 12px; color: #8b8781; line-height: 1.6; }
body > header .nav-explore-panel a:hover > span, body > header .nav-explore-panel a[aria-current] > span { color: var(--color-accent); }
body > header .site-navigation :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
@media (max-width: 1050px) and (min-width: 769px) {
    body > header .site-navigation { gap: 18px; }
    body > header .site-navigation .logo img { width: 170px; }
    body > header .site-navigation .nav-links { gap: 18px; }
    body > header .nav-actions { gap: 12px; padding-left: 16px; }
}
@media (max-width: 1050px) { body > header .nav-actions .member-user-name { display: none; } }
@media (max-width: 768px) {
    body > header .site-navigation { height: 64px; padding: 0 16px; flex-wrap: nowrap; gap: 4px; }
    body > header .site-navigation .logo img { width: 150px; height: auto; }
    body > header .nav-actions { order: 2; margin-left: auto; padding-left: 0; border-left: 0; gap: 4px; }
    body > header .nav-search-item { display: none; }
    body > header .nav-actions > li > a { min-width: 40px; font-size: 14px; }
    body > header #memberAuthNav > a[href="/login.html"] { gap: 6px; padding: 0 6px; }
    body > header #memberAuthNav > a[href="/login.html"]::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; mask: url('/images/ui/lucide-user-round.svg') center / contain no-repeat; }
    body > header .site-navigation .nav-links { display: none; }
    body > header .nav-explore { order: 3; padding: 0; }
    body > header .nav-explore-trigger { width: 40px; min-height: 44px; padding: 0; gap: 0; }
    body > header .nav-explore-label, body > header .nav-explore-trigger .nav-icon-chevron { display: none; }
    body > header .nav-icon-menu { display: inline-block; }
    body > header details[open] .nav-icon-menu { mask-image: url('/images/ui/x.svg'); }
    body > header .nav-explore-panel { right: 12px; width: calc(100% - 24px); max-width: none; padding: 12px 20px; grid-template-columns: 1fr; max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
    body > header .nav-mobile-primary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid #eeece9; }
    body > header .site-navigation .nav-mobile-primary a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 4px; font-family: var(--font-serif); font-size: 15px; color: #555; white-space: nowrap; }
    body > header .site-navigation .nav-mobile-primary .nav-entry-icon { display: inline-block; width: 18px; height: 18px; color: inherit; }
    body > header .site-navigation .nav-mobile-primary a:hover, body > header .site-navigation .nav-mobile-primary a[aria-current] { color: var(--color-accent); background: #faf1f2; }
    body > header .nav-explore-group, body > header .nav-explore-group:first-child, body > header .nav-explore-group:last-child { padding: 10px 0; border-left: 0; }
    body > header .nav-explore-group + .nav-explore-group { border-top: 1px solid #eeece9; }
    body > header .nav-explore-heading { border: 0; padding: 0; margin-bottom: 4px; font-size: 12px; }
    body > header .nav-explore-panel a { padding: 8px 0; min-height: 44px; }
    body > header .nav-explore-panel a > span { font-size: 16px; }
}
@media (max-width: 360px) {
    body > header .site-navigation { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .nav-icon-chevron { transition: none; } }
