/* Shared NO.006 single-row header and compact vertical language chooser. */
html body.site-shell .site-header{display:grid!important;grid-template-columns:minmax(100px,1fr) auto minmax(100px,1fr)!important;grid-template-rows:auto!important;align-items:center;min-height:78px!important;gap:0 24px!important;padding:18px 4.5vw!important;background:#fff;border-bottom:1px solid #111;}
html body.site-shell .site-header .wordmark{grid-column:1!important;grid-row:1!important;white-space:nowrap;}
html body.site-shell .site-header .primary-nav{grid-column:2!important;grid-row:1!important;display:flex;align-items:center;flex-wrap:nowrap;white-space:nowrap;min-width:0;}
html body.site-shell .site-header .language-switch{grid-column:3!important;grid-row:1!important;}
html body.site-shell .site-header .language-switch.is-enhanced{display:flex!important;align-items:center;position:relative;justify-self:end;align-self:center;width:68px!important;min-width:68px!important;height:34px!important;max-height:34px!important;padding:0!important;border:1px solid #111;background:transparent;}
html body.site-shell .language-switch.is-enhanced>button[data-language],html body.site-shell .language-switch.is-enhanced>.mobile-language{display:none!important;}
html body.site-shell .site-header .language-switch.is-enhanced .mobile-language-trigger{display:flex!important;align-items:center;justify-content:center;gap:5px;width:66px!important;min-width:66px!important;height:32px!important;min-height:32px!important;margin:0!important;padding:0 6px!important;border:0;background:transparent!important;color:#111!important;font:500 12px/1 'Avenir Next','PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:0;text-align:center;cursor:pointer;}
html body.site-shell .site-header .language-switch.is-enhanced:after{content:none!important;}
.mobile-language-trigger>span{white-space:nowrap;font-size:12px;}
.mobile-language-trigger .language-chevron{width:11px;height:11px;flex:0 0 11px;fill:none;stroke:currentColor;stroke-width:1.3;}
.language-menu.language-menu-v61{position:fixed;inset:auto;z-index:1500;margin:0;box-sizing:border-box;padding:3px;border:1px solid #111;border-radius:0;background:#fff;color:#111;box-shadow:0 6px 16px #00000012;max-height:calc(100dvh - var(--header-height,78px) - 24px);overflow:auto;transform:none!important;animation:none!important;}
.language-menu.language-menu-v61:not([hidden]){display:flex;flex-direction:column;gap:0;}
.language-menu-v61[hidden],.language-menu-v61[popover]:not(:popover-open){display:none!important;}
.language-menu.language-menu-v61 button[role=option]{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:38px;height:38px;padding:4px;border:0;border-radius:0;background:#fff;color:#111;font:400 13px/1.3 'Avenir Next','PingFang SC','Microsoft YaHei',sans-serif;white-space:nowrap;cursor:pointer;}
.language-menu.language-menu-v61 [role=option]:after{content:none!important;}
.language-menu.language-menu-v61 button[role=option][aria-selected=true]{background:#ededeb;font-weight:600;text-decoration:none;}
.language-menu.language-menu-v61 [role=option]:focus-visible{outline:1px solid #111;outline-offset:-3px;}
@media(hover:hover)and(pointer:fine){.language-menu.language-menu-v61 button[role=option]:not([aria-selected=true]):hover{background:#f6f6f4;}}
/* Translucent tint works even when the browser cannot composite the blur. */
html body.site-shell .site-header {
 background:linear-gradient(180deg,rgba(255,255,255,.89),rgba(238,238,236,.78));
 box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
 isolation:auto;
 backdrop-filter:none;
 -webkit-backdrop-filter:none;
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
 html body.site-shell .site-header {
  background:linear-gradient(180deg,rgba(255,255,255,.64),rgba(238,238,236,.52));
  backdrop-filter:blur(22px) saturate(125%);
  -webkit-backdrop-filter:blur(22px) saturate(125%);
 }
}
@media(prefers-reduced-transparency:reduce){html body.site-shell .site-header{background:#f4f4f2;backdrop-filter:none;-webkit-backdrop-filter:none;}}
@media(forced-colors:active){html body.site-shell .site-header{background:Canvas;color:CanvasText;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;}}
:root{--language-button-label:"中 / EN";}
html[data-language-chosen=true][data-language=zh]{--language-button-label:"中";}
html[data-language-chosen=true][data-language=en]{--language-button-label:"EN";}
html[data-language-chosen=true][data-language=ja]{--language-button-label:"日";}
html[data-language-chosen=true][data-language=de]{--language-button-label:"DE";}
html[data-language-chosen=true][data-language=fr]{--language-button-label:"FR";}
html[data-language-chosen=true][data-language=qiu]{--language-button-label:"萩";}
.mobile-language-trigger .language-button-label::before{content:var(--language-button-label);}
@media(max-width:760px){
 html body.site-shell .site-header{grid-template-columns:auto minmax(0,1fr) 68px!important;min-height:60px!important;gap:0 12px!important;padding:13px 4.5vw!important;}
 html body.site-shell .site-header .wordmark{font-size:24px!important;line-height:1!important;letter-spacing:-1px;}
 html body.site-shell .site-header .primary-nav{justify-content:center!important;gap:12px!important;overflow-x:auto;scrollbar-width:none;font-size:12px!important;line-height:1.4;}
 html body.site-shell .site-header .primary-nav::-webkit-scrollbar{display:none;}
 html body.site-shell .site-header .primary-nav a{flex:none;padding:6px 0;font-size:inherit!important;}
 html body.site-shell .site-header .primary-nav .nav-section{display:none!important;}
 html body.site-shell .site-header .primary-nav a[data-mobile-label]{font-size:0!important;}
 html body.site-shell .site-header .primary-nav a[data-mobile-label]::after{content:attr(data-mobile-label);font-size:11px;}
}
@media(max-width:380px){
 html body.site-shell .site-header{gap:0 9px!important;padding-inline:4vw!important;}
 html body.site-shell .site-header .wordmark{font-size:22px!important;}
 html body.site-shell .site-header .primary-nav{gap:9px!important;font-size:11px!important;}
 html body.site-shell .site-header .primary-nav a[data-mobile-label]::after{font-size:10px;}
}

@media(max-width:380px){html[data-language=qiu] body.site-shell .site-header .primary-nav{gap:8px!important;}}

html body.site-shell .site-header .primary-nav{gap:23px;}
@media (max-width:1000px) and (min-width:761px){html body.site-shell .site-header .primary-nav{gap:17px;}}
@media(max-width:760px){
 html body.site-shell .site-header .primary-nav{justify-content:safe center!important;gap:7px!important;}
 html[data-language=qiu] body.site-shell .site-header .primary-nav a{max-width:none;white-space:nowrap;}
}
