/* ===== css/header.css
   模块组成：menu.css + header.css + site-review.css
   ===== */
/* Shared site overview: Figma 2065:6493, motion reference AutoGyro. */
.site-menu-backdrop{position:fixed;inset:0;z-index:39;background:rgba(0,0,0,.6);opacity:0;touch-action:none}
.site-menu{--menu-top:calc(var(--header-height) + 8px);position:fixed;inset:var(--menu-top) var(--grid-header-gutter,var(--page-gutter)) auto auto;z-index:41;margin:0;width:649px;max-width:calc(100vw - 32px);height:674px;max-height:calc(100dvh - var(--menu-top) - 24px);padding:0;border:0;border-radius:4px;background:#353a3d;color:#fff;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none;font-family:var(--font-body);isolation:isolate}
/* 面板内容在矮屏（如 1280×720）或手机上会超出可视高度，需要可滚动但不要露出滚动条：
   隐藏原生滚动条，滚轮 / 触摸 / 键盘仍可正常滚动。 */
.site-menu::-webkit-scrollbar{width:0;height:0;display:none}
.site-menu:not([open]){display:none}
.site-menu-content{position:relative;padding:42px 42px 42px 47px;display:grid;grid-template-columns:240px 240px;align-items:start;gap:80px;min-height:674px}
/* 面板顶部的 40×2 橙色装饰块已移除（改到每个栏目标题下的分隔线上）。 */
.site-menu-column{display:flex;flex-direction:column;gap:20px;min-width:0}
.site-menu-column:last-child{gap:94px}
.site-menu-section{min-width:0}
.site-menu-section h2{line-height:27px!important;font-weight:700;margin:0!important}
.site-menu-section h2>a{display:inline-block}
/* 栏目标题下的分隔线：白色 1px 线 + 左端 35×2 橙色短块（品牌蓝本里的标题装饰）。
   短块用 bottom 对齐，让它的下沿与白线下沿齐平（2px 高，向上多出 1px）；
   overflow 必须是 visible，否则溢出的那 1px 会被 1px 高的容器裁掉。 */
.site-menu-rule{position:relative;display:block;height:1px;overflow:visible;margin:10px 0}
.site-menu-rule img{max-width:none;height:1px}
.site-menu-rule::after{content:"";position:absolute;left:0;bottom:0;width:35px;height:2px;background:var(--color-brand);pointer-events:none}
.site-menu-links{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.site-menu-links a{display:block;color:rgba(255,255,255,.5);line-height:20.3px;transition:color 250ms;white-space:nowrap;text-decoration:none}
.site-menu-products{display:grid;grid-template-columns:101px 98px;justify-content:space-between}
.site-menu a:hover,.site-menu a:focus-visible,.site-menu a[aria-current]{color:var(--color-brand)}
.site-menu a:focus-visible{outline-offset:3px}
.site-menu-solutions,.site-menu-software,.site-menu-contact{height:136px}
.site-menu-product{height:278px}
.site-menu-about{height:218px}
.site-menu-home{display:none}
.site-header .menu-toggle{pointer-events:auto;position:relative;gap:0;flex:none}
.site-header .menu-toggle span{position:absolute;top:50%;left:50%;width:16px;height:1px;margin-top:-.5px;margin-left:-8px;transition:transform 500ms cubic-bezier(.46,0,.02,1)}
.site-header .menu-toggle span:first-child{transform:translateY(-4.5px)}
.site-header .menu-toggle span:last-child{transform:translateY(4.5px)}
.site-header .menu-toggle[aria-expanded=true] span:first-child{transform:rotate(45deg)}
.site-header .menu-toggle[aria-expanded=true] span:last-child{transform:rotate(-45deg)}
@media(hover:hover) and (pointer:fine){.site-header .menu-toggle:not([aria-expanded=true]):hover span{transform:translateY(0)}}
@media(max-width:767px){.site-menu{inset:var(--menu-top) 16px auto 16px;width:auto;height:auto;max-height:calc(100dvh - var(--menu-top) - 16px)}.site-menu-content{padding:36px 24px 24px;display:flex;flex-direction:column;gap:32px;min-height:0}.site-menu-column,.site-menu-column:last-child{width:100%;gap:32px}.site-menu-section{height:auto}.site-menu-links{gap:0;align-items:stretch}.site-menu-links a{line-height:24px;min-height:44px;padding-block:10px;white-space:normal}.site-menu-section h2{line-height:30px!important}.site-menu-section h2>a{padding-block:4px}.site-menu-rule{margin:10px 0 8px}.site-menu-products{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.site-menu-home{display:block;line-height:28px;font-weight:700}.site-menu-home+div{margin-top:0}}
@media(prefers-reduced-motion:reduce){.site-header .menu-toggle span,.site-menu a{transition:none}}

/* --- 头部工具区：搜索入口 + 语言按钮（还原参考项目） ---
   搜索保持纯图标；语言按钮为白底品牌橙的胶囊按钮，含“语言”文字与地球图标，
   下拉展开或键盘聚焦时切换为品牌橙底白字。 */
.site-header .language-label{font-size:18px;line-height:24px;white-space:nowrap}
.site-header .language-icon{width:16px;height:16px}
.language-label,.language-icon{position:relative;z-index:1}
.search-button{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:48px;height:48px;background:none;color:var(--color-paper);transition:color var(--motion-nav) var(--ease-nav)}
.search-icon{display:block;position:relative;flex:none;width:20px;height:20px;overflow:visible}
/* 图标使用 white / brand 两张 <img> 交叉淡入：语言按钮默认品牌橙图标，反色后为白色；
   搜索按钮默认白色，hover / 聚焦转品牌橙。两张图叠放，切换不影响布局。 */
.language-icon img,.search-icon img{position:absolute;inset:0;display:block;width:100%;height:100%;transition:opacity var(--motion-nav) var(--ease-nav)}
.language-icon .icon-normal,.search-icon .icon-hover{opacity:0}
.language-icon .icon-hover,.search-icon .icon-normal{opacity:1}
.site-header .language.open>.language-button .language-icon .icon-normal,
.site-header .language-button:focus-visible .language-icon .icon-normal,
.search-button:is(:hover,:focus-visible) .search-icon .icon-normal{opacity:1}
.site-header .language.open>.language-button .language-icon .icon-hover,
.site-header .language-button:focus-visible .language-icon .icon-hover,
.search-button:is(:hover,:focus-visible) .search-icon .icon-hover{opacity:0}
/* 搜索入口仍是透明图标按钮，语言按钮保留参考项目的橙底扫入动效。 */
.search-button::before{display:none}
.search-button:hover,.search-button:focus-visible{color:var(--color-brand)}
.site-header .language-button:focus-visible,.search-button:focus-visible{outline:1px solid var(--color-brand);outline-offset:2px}
/* Desktop header is 120px tall with 40px controls; the search icon stays square there. */
@media(min-width:1200px){
 .search-button{width:40px;min-width:40px;height:40px}
}
/* Narrow phones: claw back the slack from the inter-group gap, then the logo. */
@media(max-width:479px){
 .site-header .header-inner{gap:16px}
}
@media(max-width:374px){
 .search-button{width:40px;min-width:40px;height:40px}
 .site-header .brand{width:120px}
}
@media(max-width:359px){
 .site-header .brand{width:104px}
 .site-header .language-button{min-width:64px;padding-inline:6px;gap:4px}
 .site-header .language-label{font-size:16px}
}

/* --- 客户评审改稿：导航尺寸（原 site-review） --- */
@media(min-width:1200px){
 :root{--header-height:120px}
 .site-header .header-inner{height:120px;min-height:120px;gap:50px}
 .site-header .desktop-nav{gap:50px;justify-content:flex-end}
 .site-header .desktop-nav>.nav-item>a{font-weight:400}
 .site-header .language-button{font-weight:400}
}
@media(max-width:767px){ .site-header .language-button{width:48px;min-width:48px;padding:0;gap:0} .site-header .language-label{display:none} }

/* 品牌标识：设计稿把 logo 拆成 25 个碎片，按画板百分比定位（原为内联 style） */
.brand-part{position:absolute}
.brand-part:nth-child(1){left:-0.012505%;top:0.047518%;width:17.518257%;height:99.852693%}
.brand-part:nth-child(2){left:22.955015%;top:0.760294%;width:10.144474%;height:58.742189%}
.brand-part:nth-child(3){left:34.188675%;top:0.784053%;width:10.362895%;height:58.668536%}
.brand-part:nth-child(4){left:47.252234%;top:0.736534%;width:8.154929%;height:58.737437%}
.brand-part:nth-child(5){left:57.110344%;top:0.736534%;width:3.262138%;height:58.737437%}
.brand-part:nth-child(6){left:62.570862%;top:0.665257%;width:9.857693%;height:58.877616%}
.brand-part:nth-child(7){left:51.837402%;top:76.314476%;width:3.824030%;height:23.160446%}
.brand-part:nth-child(8){left:65.221922%;top:76.314476%;width:2.609377%;height:23.160446%}
.brand-part:nth-child(9){left:22.959184%;top:76.528309%;width:27.682740%;height:4.001045%}
.brand-part:nth-child(10){left:61.478758%;top:76.552068%;width:2.437642%;height:22.967996%}
.brand-part:nth-child(11){left:79.323396%;top:76.552068%;width:2.437642%;height:22.967996%}
.brand-part:nth-child(12){left:94.025110%;top:76.552068%;width:2.437642%;height:22.967996%}
.brand-part:nth-child(13){left:54.505135%;top:81.992920%;width:3.161681%;height:17.945306%}
.brand-part:nth-child(14){left:67.372782%;top:81.992920%;width:3.161681%;height:17.945306%}
.brand-part:nth-child(15){left:96.175970%;top:81.992920%;width:3.161681%;height:17.945306%}
.brand-part:nth-child(16){left:71.916267%;top:82.064197%;width:3.353842%;height:17.942930%}
.brand-part:nth-child(17){left:81.499266%;top:82.111716%;width:3.455966%;height:17.902540%}
.brand-part:nth-child(18){left:84.900627%;top:81.945401%;width:5.355059%;height:17.543776%}
.brand-part:nth-child(19){left:90.377818%;top:82.064197%;width:3.353842%;height:17.942930%}
.brand-part:nth-child(20){left:57.314593%;top:82.681936%;width:4.242530%;height:16.802490%}
.brand-part:nth-child(21){left:63.350340%;top:76.314476%;width:2.628968%;height:23.160446%}
.brand-part:nth-child(22){left:75.546885%;top:82.658177%;width:3.697312%;height:17.313312%}
.brand-part:nth-child(23){left:22.959184%;top:86.412127%;width:27.017890%;height:4.001045%}
.brand-part:nth-child(24){left:22.959184%;top:96.010834%;width:26.389723%;height:4.001045%}
.brand-part:nth-child(25){inset:0.41% 0.18% 38.41% 76.19%}
