/* 公共导航：教学栏目与账号操作分组，全站保持一致的当前页与触控反馈。 */
.site-header.site-shell{height:84px;gap:24px;position:relative;z-index:30;flex-wrap:nowrap}
/* 十个栏目放不进旧的 1500px 顶栏：宽屏统一放宽到 1800px，导航靠右 */
@media(min-width:1121px){.site-header.site-shell{width:min(1800px,calc(100% - 80px))}}
.site-shell .logo{flex-shrink:0;min-height:44px}
.site-shell .site-navigation{width:auto;display:flex;flex-wrap:nowrap;gap:4px;font-size:15px;font-weight:600}
.site-sections{display:flex;align-items:center;gap:4px;padding:6px;background:transparent}
.site-shell .site-link{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 15px;border:1px solid transparent;border-radius:0;color:#355466;white-space:nowrap;transition:color .16s}
/* 鼠标悬停给栏目加浅色底块，当前页仍以下划线标识 */
.site-shell .site-link{border-radius:10px;transition:color .16s,background-color .16s}
.site-shell .site-link:hover{color:#116e64;background:#e3f3ef}
.site-shell .site-link[aria-current=page]{color:#126d62;background:transparent}
/* 用细线标记当前栏目，不再叠加底色与卡片阴影。 */
.site-link[aria-current=page]::after,.science-mobile-navigation a[aria-current=page]::after{content:"";position:absolute;bottom:0;left:15px;right:15px;height:2px;border-radius:2px;background:#188777}
/* 栏目与账号区靠近（2026-11-05）：分隔线两侧各约 12px，头像与文字间距收小 */
.site-account-area{display:flex;align-items:center;gap:16px;border-left:1px solid #dbe5e9;padding-left:12px}
.site-shell .site-login{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 4px;color:#405e70;white-space:nowrap}
.site-shell .site-register{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:0 17px;border:1px solid #176e62;border-radius:10px;background:#176e62;color:white;white-space:nowrap;box-shadow:0 3px 7px #176e6214}
.site-shell .site-register:hover{background:#10594f;color:#fff}
.site-account-menu{position:relative}
.site-account-menu summary{display:flex;align-items:center;gap:4px;min-height:44px;padding:4px 8px 4px 4px;border:1px solid transparent;border-radius:12px;cursor:pointer;list-style:none;color:#355464;white-space:nowrap}
.site-account-menu summary::-webkit-details-marker{display:none}
.site-account-menu summary:hover,.site-account-menu[open] summary{background:transparent;color:#126d62}
.site-avatar{display:grid;place-items:center;width:30px;height:34px;border-radius:10px;background:transparent;color:#176e62}
.site-chevron{transition:transform .16s}
.site-account-menu[open] .site-chevron{transform:rotate(180deg)}
.site-account-panel{position:absolute;right:0;top:calc(100% + 12px);width:272px;max-width:calc(100vw - 28px);padding:8px;background:#fff;border:1px solid #dce6e9;border-radius:16px;box-shadow:0 16px 48px #173f5926,0 3px 8px #173f590a}
.site-account-identity{display:grid;gap:5px;padding:12px 12px 16px;margin-bottom:6px;border-bottom:1px solid #e8eef0}
.site-account-identity small{font-size:12px;font-weight:500;color:#687f8a}
.site-account-identity b{font-size:15px;font-weight:600;overflow-wrap:anywhere;line-height:1.5;color:#234b5d}
.site-shell .site-account-panel a,.site-shell .site-account-panel button{display:flex;align-items:center;gap:11px;width:100%;min-height:46px;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:#405e6f;font-size:14px;font-weight:500;text-align:left}
.site-shell .site-account-panel a:hover{background:#edf5f2;color:#14685f}
.site-menu-arrow{margin-left:auto;color:#8a9ba4;font-size:21px}
.site-account-panel form{padding-top:6px;margin-top:6px!important;border-top:1px solid #e8eef0}
.site-shell .site-account-panel button:hover{background:#fff1ee;color:#a23c2f}
.site-shell :is(a,summary,button):focus-visible,.science-mobile-navigation a:focus-visible{outline:3px solid #299c8a;outline-offset:3px}
.science-mobile-navigation{display:none}
/* 十个栏目（含首页）：中等宽度逐级收紧间距，窄屏隐藏栏目图标，避免右侧账号区被挤出视口 */
@media(max-width:1720px){.site-shell .site-link{padding:0 11px;gap:6px}.site-link[aria-current=page]::after{left:11px;right:11px}}
@media(max-width:1440px){.site-header.site-shell{gap:16px}.site-shell .site-navigation{gap:4px}.site-sections{gap:0}.site-shell .site-link{padding:0 9px}.site-link[aria-current=page]::after{left:9px;right:9px}.site-account-area{padding-left:10px;gap:12px}}
@media(max-width:1300px){.site-shell .site-navigation{gap:2px}.site-shell .site-link{padding:0 8px}.site-shell .site-link svg{display:none}.site-link[aria-current=page]::after{left:8px;right:8px}.site-account-area{padding-left:8px}}
@media(max-width:1120px){
 .site-header.site-shell{height:72px;min-height:72px;padding:0;gap:12px}
 .site-shell .site-sections{display:none}
 .site-shell .site-navigation{width:auto;gap:0}
 .site-account-area{border:0;padding:0;gap:14px}
 .science-mobile-navigation{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 8px;width:calc(100% - 28px);margin:0 auto;padding:4px 0 12px;border-bottom:1px solid #dbe6ed}
 .science-mobile-navigation a{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 18px;color:#355466;font-size:14px;font-weight:600;white-space:nowrap}
 .science-mobile-navigation a[aria-current=page]{background:transparent;color:#126d62}
 .science-mobile-navigation a:hover{background:transparent;color:#116e64}
}
@media(max-width:600px){
 .site-shell .site-register{display:flex;padding:0 10px;min-height:44px;font-size:13px}
 .site-shell .site-login{padding:0 14px;border:1px solid #c3d8d1;border-radius:9px;color:#176e62;background:transparent}
 .site-account-label{display:none}
 .site-account-menu summary{gap:5px;padding-right:5px}
 .science-mobile-navigation{gap:4px}
 .science-mobile-navigation a{flex:1;flex-direction:column;gap:5px;padding:8px 3px;font-size:13px}
 .science-mobile-navigation svg{width:17px;height:17px;flex-shrink:0}
}
@media(max-width:360px){.science-mobile-navigation a{flex-direction:column;gap:4px;font-size:14px;min-height:60px}}
/* 手机横屏：屏幕矮，页头压成一行，栏目横向滑动，把高度留给内容 */
@media(max-width:1120px) and (max-height:500px) and (orientation:landscape){
 .site-header.site-shell{height:54px;min-height:54px}
 .science-mobile-navigation{flex-wrap:nowrap;justify-content:flex-start;gap:2px;overflow-x:auto;padding:0 0 4px;scrollbar-width:none}
 .science-mobile-navigation::-webkit-scrollbar{display:none}
 .science-mobile-navigation a{flex:0 0 auto;flex-direction:row;min-height:40px;padding:6px 12px;font-size:14px}
}
@media(prefers-reduced-motion:reduce){.site-shell .site-link,.site-chevron{transition:none}}

/* 注册入口直接说明保存收益，窄屏保留主按钮，辅助说明让出空间。 */
@media(max-width:600px){.site-account-area{gap:8px}.site-shell .site-login{padding:0 9px}}
/* 账号菜单里的深色模式开关 */
/* 游客登录 / 注册：一个描边胶囊，左“登录”（带头像图标）右“注册”，无填充底色 */
.site-shell .site-auth{display:inline-flex;align-items:center;height:44px;padding:0 4px;border:1.5px solid #cfe0dc;border-radius:999px;transition:border-color .16s,box-shadow .16s}
.site-shell .site-auth:hover{border-color:#8fc4b8;box-shadow:0 6px 16px -12px #176e62}
.site-shell .site-auth .site-login,.site-shell .site-auth .site-register{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 14px;border:0;border-radius:999px;background:transparent;box-shadow:none;font-size:15px;font-weight:700;white-space:nowrap;transition:color .16s}
.site-shell .site-auth .site-login{color:#355466}
.site-shell .site-auth .site-login svg{width:18px;height:18px}
.site-shell .site-auth .site-register{position:relative;color:#13806f}
.site-shell .site-auth .site-register::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:1.5px;background:#d6e4e0}
.site-shell .site-auth .site-login:hover,.site-shell .site-auth .site-register:hover{background:transparent;color:#0d5f53}
.site-shell .site-auth a:hover span,.site-shell .site-auth .site-register:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px}
html[data-science-theme="dark"] .site-shell .site-auth{border-color:#40515d}
html[data-science-theme="dark"] .site-shell .site-auth .site-login{color:#c2cbd1;border:0;background:transparent}
html[data-science-theme="dark"] .site-shell .site-auth .site-register{color:#78cbbd;border:0;background:transparent}
html[data-science-theme="dark"] .site-shell .site-auth .site-register::before{background:#40515d}
@media(max-width:600px){.site-shell .site-auth .site-login,.site-shell .site-auth .site-register{padding:0 10px}.site-shell .site-auth .site-login svg{display:none}}
/* 管理员菜单的待处理数字与账号按钮红点 */
.site-menu-badge{margin-left:auto;min-width:22px;padding:1px 7px;border-radius:999px;background:#e5531a;color:#fff;font-size:12px;font-weight:800;line-height:1.5;text-align:center}
.site-avatar{position:relative}
.site-avatar-dot{position:absolute;right:3px;top:3px;width:9px;height:9px;border-radius:50%;background:#e5531a;box-shadow:0 0 0 2px #fff}
html[data-science-theme="dark"] .site-avatar-dot{box-shadow:0 0 0 2px #20272f}
