/* 官网 Header 独立样式：桌面数值取自参考站，移动端采用参考站 m 站的布局。
   背景态用 CSS 变量区分：默认白底（内容页），--overlay 透明渐变（首页大图区），
   滚动后统一白底固定。图标使用内联 SVG，不依赖图标字体文件。 */
.public-header {
    --header-height: 80px;
    --hdr-bg: #fff;
    --hdr-fg: #323232;
    --hdr-menu-bg: #fff;
    --hdr-menu-fg: #323232;
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    padding-inline: 50px;
    color: var(--hdr-fg);
    background: var(--hdr-bg);
    /* 参考站导航指定 Roboto，head 中按同一字族加载，不可达时回退系统无衬线字体。 */
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: normal;
}
/* 首页大图区：透明渐变覆盖在 Hero 上，文字与下拉使用参考站的半透明黑底白字。 */
.public-header--overlay {
    --hdr-bg: linear-gradient(180deg, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0));
    --hdr-fg: #fff;
    --hdr-menu-bg: rgba(0, 0, 0, .4);
    --hdr-menu-fg: #fff;
}
/* 滚动后统一白底固定，与参考站 .on 状态一致。 */
.public-header.is-scrolled {
    --hdr-bg: #fff;
    --hdr-fg: #323232;
    --hdr-menu-bg: #fff;
    --hdr-menu-fg: #323232;
    background: #fff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .15);
}

.public-header__icon {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.public-header__icon--search, .public-header__icon--globe { width: 21px; height: 21px; }
/* 下拉指示箭头：对齐参考站 ft-down1 字体图标——空心 V 形（两条斜线，非实心三角）。
   实测参考站视觉尺寸 10.75 x 6.00 CSS px、线宽约 1.2px；本站用 16px 图标框 +
   viewBox 24 的 V 形描边复刻（几何 14.4 x 7、stroke 1.8 → 含描边约 10.8 x 6.1px）。
   二级项右向箭头由本 V 形旋转 -90° 得到。 */
.public-header__icon--chevron {
    width: 16px; height: 16px; transition: transform .2s;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: miter; stroke-miterlimit: 4;
}
.public-header__icon--close { width: 18px; height: 18px; }
.public-header__icon--menu { width: 36px; height: 36px; }

.public-header__inner { display: flex; align-items: center; height: var(--header-height); min-width: 0; }
.public-header__brand { display: flex; align-items: center; flex: 0 0 auto; }
.public-header__brand img { display: block; width: auto; height: 50px; max-width: 240px; object-fit: contain; }
.public-header__brand span { font-size: 20px; }
.public-header__desktop-nav { align-self: stretch; margin-inline-start: auto; }
.public-header__nav-list { display: flex; height: 100%; padding: 0; margin: 0; list-style: none; }
.public-header__nav-item { position: relative; display: flex; align-items: center; padding-inline: 9px; margin-inline-end: 6px; height: 80px; }
.public-header__nav-link { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 80px; font-size: 18px; text-transform: capitalize; color: inherit; }
.public-header__nav-item.is-current > .public-header__nav-link,
.public-header__nav-item.is-open > .public-header__nav-link,
.public-header__nav-link:hover { color: var(--site-primary); }
/* 箭头颜色跟随所在菜单项（参考站箭头内嵌于链接内，随链接文字同色）：
   当前项、展开项与悬停项的主题青要同步传到三角的 currentColor。 */
.public-header__nav-item.is-current > .public-header__submenu-toggle,
.public-header__nav-item.is-open > .public-header__submenu-toggle,
.public-header__nav-item:hover > .public-header__submenu-toggle { color: var(--site-primary); }
.public-header__nav-link--group { cursor: default; }
.public-header button { color: inherit; background: transparent; padding: 0; border: 0; cursor: pointer; }
.public-header :focus-visible { outline: 2px solid var(--site-primary); outline-offset: 3px; }
.public-header__submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 40px; margin-inline-start: 2px; flex-shrink: 0; }
.public-header__nav-item.is-open > .public-header__submenu-toggle > .public-header__icon--chevron,
.public-header__nav-item:hover > .public-header__submenu-toggle > .public-header__icon--chevron { transform: rotate(180deg); }

.public-header__submenu {
    display: none; position: absolute; z-index: 10; inset-block-start: 75px; inset-inline-start: 0;
    width: max-content; min-width: 152px; max-width: min(500px, calc(100vw - 32px));
    list-style: none; padding: 8px 0; margin: 0; background: var(--hdr-menu-bg);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, .25);
}
.public-header__nav-item.is-open > .public-header__submenu { display: block; }
.public-header__submenu .public-header__nav-item { height: 35px; padding-inline: 8px; margin: 0; }
.public-header__submenu .public-header__nav-link { max-width: 464px; height: 35px; line-height: 24px; font-size: 16px; font-weight: 300; color: var(--hdr-menu-fg); }
/* 二级项指示下一级：参考站使用右向箭头，由下箭头旋转得到，RTL 下反向。 */
.public-header__submenu .public-header__submenu-toggle { align-self: flex-start; height: 24px; width: 16px; }
.public-header__submenu .public-header__submenu-toggle > .public-header__icon--chevron { transform: rotate(-90deg); }
.public-header--rtl .public-header__submenu .public-header__submenu-toggle > .public-header__icon--chevron { transform: rotate(90deg); }
.public-header__submenu .public-header__nav-item.is-open > .public-header__submenu-toggle > .public-header__icon--chevron { transform: rotate(-90deg); }
.public-header--rtl .public-header__submenu .public-header__nav-item.is-open > .public-header__submenu-toggle > .public-header__icon--chevron { transform: rotate(90deg); }
/* CASCADE 级联：三级及以下从二级项右侧滑出，与参考站 p_child2 一致。 */
.public-header__submenu .public-header__submenu { inset-block-start: -8px; inset-inline-start: 100%; }
/* 下拉项悬停显示左侧圆点，与参考站 p_child_item a:hover::before 一致。 */
.public-header__submenu .public-header__nav-link::before {
    content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--site-primary);
    position: absolute; left: 2px; top: 14px; opacity: 0;
}
.public-header__submenu .public-header__nav-link { position: relative; padding-inline-start: 8px; }
.public-header__submenu .public-header__nav-link:hover { color: var(--site-primary); }
.public-header__submenu .public-header__nav-link:hover::before { opacity: 1; }
.public-header__submenu.is-flipped { inset-inline-start: auto; inset-inline-end: 0; }
.public-header__submenu .public-header__submenu.is-flipped { inset-inline-end: 100%; }

/* 桌面悬停直接展开，与参考站 hover 行为一致；点击仍由脚本处理（键盘与触摸）。 */
@media (hover: hover) and (min-width: 1201px) {
    .public-header__nav-item:hover > .public-header__submenu { display: block; }
    .public-header__submenu .public-header__nav-item:hover > .public-header__submenu { display: block; }
}

/* 多列仍由现有后台 displayMode 控制；普通下拉保持参考站的逐级展开。 */
.public-header__nav-item.display-MEGA_MENU > .public-header__submenu {
    width: min(780px, calc(100vw - 100px)); padding: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px;
}
.public-header__nav-item.display-MEGA_MENU.is-open > .public-header__submenu { display: grid; }
.display-MEGA_MENU > .public-header__submenu > .public-header__nav-item { display: block; height: auto; min-width: 0; padding: 0; }
.display-MEGA_MENU > .public-header__submenu > .public-header__nav-item > .public-header__nav-link { font-weight: 500; }
.display-MEGA_MENU > .public-header__submenu > .public-header__nav-item > .public-header__submenu-toggle { display: none; }
.display-MEGA_MENU > .public-header__submenu > .public-header__nav-item > .public-header__submenu {
    display: block; position: static; width: auto; min-width: 0; padding: 0;
    background: transparent; box-shadow: none;
}
.display-MEGA_MENU > .public-header__submenu > .public-header__nav-item > .public-header__submenu .public-header__nav-link { white-space: normal; overflow-wrap: anywhere; height: auto; }

.public-header__actions { display: flex; align-items: center; height: 100%; flex: 0 0 auto; }
.public-header__quote {
    display: inline-flex; justify-content: center; align-items: center; width: 164px; height: 40px;
    margin-inline: 30px 17px; padding-inline: 8px; border-radius: 20px;
    background: var(--site-primary); color: #fff; font-size: 18px; text-transform: capitalize; white-space: nowrap;
}
.public-header__quote:hover, .public-header__mobile-quote:hover { background: var(--site-primary-hover); }
.public-header__icon-button { display: inline-flex; justify-content: center; align-items: center; height: 80px; width: 49px; }
.public-header__language { position: relative; height: 100%; }
.public-header__language-toggle { width: 52.67px; justify-content: flex-end; gap: 4px; }
/* 语言入口的下拉箭头降低视觉重量：更小、更淡，保留可展开语义；移动端由媒体查询放大。 */
.public-header__language-toggle .public-header__icon--chevron { width: 12px; height: 12px; opacity: .7; }
.public-header__icon-button:hover { color: var(--site-primary); }
.public-header__language-menu {
    position: absolute; z-index: 20; inset-inline-end: 10px; inset-block-start: 68px;
    width: max-content; min-width: 100px; max-width: 202px; max-height: 362px;
    overflow-y: auto; padding: 8px 0; background: var(--hdr-menu-bg);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, .25);
}
.public-header__language-option { display: flex; align-items: center; height: 35px; padding-inline: 16px; font-size: 16px; white-space: nowrap; text-transform: capitalize; color: var(--hdr-menu-fg); }
.public-header__language-option:hover, .public-header__language-option.is-current { color: var(--site-primary); }
/* 搜索容器位于询价按钮之前，左外边距继承询价按钮的 30px，
   展开时输入框正好落在询价按钮原位置，与参考站「向左展开」一致。 */
.public-header__search {
    display: flex; align-items: center; width: 280px; padding-inline: 14px; height: 80px; gap: 9px;
    margin-inline-start: 30px;
    animation: header-search-in .18s ease-out;
}
/* 展开时自左向右轻微淡入，强化「从询价按钮位置展开」的方向感。 */
@keyframes header-search-in {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .public-header__search { animation: none; }
}
.public-header__search-close { display: flex; align-items: center; flex: 0 0 21px; height: 40px; }
.public-header__search form { display: flex; align-items: center; flex: 1; min-width: 0; height: 40px; padding-inline: 12px; border: 1px solid #e0e0e0; border-radius: 31px; }
.public-header__search input { width: 100%; min-width: 0; height: 38px; outline: none; border: 0; padding: 0; color: inherit; background: transparent; font: inherit; font-size: 16px; }
.public-header__search input::placeholder { color: currentColor; opacity: .85; }
.public-header__search button[type="submit"] { display: flex; align-items: center; height: 38px; }
/* 展开时脚本会自动聚焦输入框，浏览器会将其判定为 focus-visible 并画出轮廓方框，
   在 Hero 深色背景上非常突兀。焦点改由输入框自身边框表达，保留键盘可见反馈。 */
.public-header__search input:focus-visible { outline: none; }
.public-header__search form:focus-within { border-color: var(--site-primary); }
.public-header.is-search-open .public-header__quote,
.public-header.is-search-open [data-search-toggle] { display: none; }
.public-header__menu-toggle, .public-header__mobile-panel { display: none; }

/* 移动导航的搜索框与折叠菜单放在白色面板内，语言仍使用栏头左侧入口。 */
.public-header__mobile-inner { width: min(600px, 100%); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; margin-inline-start: auto; padding: 0 16px 16px; background: #fff; color: #323232; }
.public-header__mobile-search { display: flex; align-items: center; height: 40px; padding-inline: 16px; margin-block: 16px; border: 1px solid #c8c8c8; border-radius: 31px; }
.public-header__mobile-search input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; }
.public-header__mobile-search button { display: flex; color: var(--site-primary); }
.public-header__mobile-list, .public-header__mobile-submenu { list-style: none; margin: 0; padding: 0; }
.public-header__mobile-list > .public-header__mobile-item + .public-header__mobile-item { border-top: 1px solid #e6e6e6; }
.public-header__mobile-link-row { display: flex; align-items: center; min-height: 40px; }
.public-header__mobile-link-row > a, .public-header__mobile-link-row > span { flex: 1; min-width: 0; padding-block: 8px; font-size: 16px; line-height: 24px; text-transform: capitalize; overflow-wrap: anywhere; }
.public-header__mobile-link-row > button { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 40px; }
.public-header__mobile-link-row [aria-expanded="true"] .public-header__icon--chevron { transform: rotate(180deg); }
.public-header__mobile-link-row > a[aria-current="page"] { color: var(--site-primary); }
.public-header__mobile-submenu { padding-inline-start: 8px; }
.public-header__mobile-submenu .public-header__mobile-link-row > a { padding-block: 4px; }
.public-header__mobile-quote { display: flex; justify-content: center; align-items: center; height: 40px; margin-block: 32px 48px; border-radius: 48px; color: #fff; background: var(--site-primary); font-size: 18px; text-transform: capitalize; }

@media (min-width: 1201px) and (max-width: 1360px) {
    .public-header { padding-inline: 32px; }
    .public-header__quote { width: 135px; margin-inline: 12px 6px; font-size: 16px; }
    .public-header__nav-link { font-size: 16px; }
}
@media (max-width: 1200px) {
    .public-header { padding-inline: 24px; background: #fff; color: #323232; box-shadow: 0 4px 4px rgba(0, 0, 0, .15); font-family: Arial, Helvetica, sans-serif; }
    .public-header__inner { flex-direction: row-reverse; justify-content: space-between; gap: 16px; }
    .public-header__brand { min-width: 0; }
    .public-header__brand img { height: 50px; max-width: min(240px, 45vw); }
    .public-header__desktop-nav, .public-header__quote, .public-header [data-search-toggle], .public-header__search { display: none; }
    .public-header__menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 44px; }
    .public-header__actions { flex-shrink: 0; }
    .public-header__language-toggle { width: 54px; justify-content: flex-start; }
    .public-header__language-toggle .public-header__icon--globe { width: 30px; height: 30px; }
    .public-header__language-toggle .public-header__icon--chevron { width: 20px; height: 20px; }
    /* 移动端栏头固定白底深字（见上 .public-header），overlay 的「半透明深底白字」语义在移动端不成立。
       若不在此重置，.public-header--overlay 的 --hdr-menu-fg: #fff 会继承到语言菜单，
       与下方硬编码的 background: #fff 撞成白字白底，未滚动（ Hero 区）时选项全部不可见；
       滚动后 is-scrolled 把变量改回深色才会恢复，表现为「往下滚动才显示」。 */
    .public-header--overlay { --hdr-menu-bg: #fff; --hdr-menu-fg: #323232; }
    .public-header__language-menu { inset-block-start: 80px; inset-inline-start: -24px; inset-inline-end: auto; width: 200px; background: #fff; }
    .public-header__mobile-panel { display: block; position: fixed; inset: var(--header-height) 0 0; background: rgba(0, 0, 0, .8); }
    .public-header__mobile-inner { max-height: calc(100vh - var(--header-height)); max-height: calc(100dvh - var(--header-height)); }
    body.mobile-navigation-open { overflow: hidden; }
}
@media (max-width: 600px) {
    .public-header { --header-height: 48px; padding-inline: 16px; }
    .public-header__brand img { height: 30px; max-width: 45vw; }
    .public-header__brand span { font-size: 16px; }
    .public-header__menu-toggle { flex-basis: 30px; }
    .public-header__icon--menu { width: 30px; height: 30px; }
    .public-header__language-toggle { width: 42.67px; height: 48px; }
    .public-header__language-toggle .public-header__icon--globe { width: 21px; height: 21px; }
    .public-header__language-menu { inset-block-start: 48px; inset-inline-start: -16px; width: 176px; }
    .public-header__language-option { padding-inline: 12px; }
    .public-header__mobile-inner { width: 100%; }
}
/* RTL 使用逻辑方向属性整体镜像，不能仅反转文字后强制栏头恢复 ltr。 */
.public-header--rtl .public-header__nav-item.is-open > .public-header__submenu-toggle > .public-header__icon--chevron { transform: rotate(180deg); }
.public-header--rtl .public-header__nav-item:hover > .public-header__submenu-toggle > .public-header__icon--chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
    .public-header * { transition: none !important; }
}
