/**
 * 顶栏语言 / 会员 / 询盘篮 — hoyanginstrument
 * 桌面：语言在蓝条 head_top；会员/篮/搜索在白条 head_layer
 * 手机：对齐 rbl-hardware（黑条翻译+搜索；白条 Logo + 会员 + 汉堡）
 */

:root {
  --xy-member-nav-avatar-bg: #0656ad;
  --xy-member-nav-avatar-color: #fff;
  --xy-member-nav-icon-size: 24px;
  --xy-member-nav-avatar-size: 28px;
  --xy-basket-nav-icon-size: 24px;
  --xy-basket-badge-bg: #eb7619;
  --xy-basket-badge-color: #fff;
  --xy-skin-primary: #eb7619;
}

/* —— 白条 head_layer：会员 / 询盘篮 —— */
.web_head .head_layer .head_right,
.web_head .head_layer_tools {
  display: -webkit-inline-box !important;
  display: -webkit-inline-flex !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  gap: 10px !important;
  vertical-align: middle !important;
  overflow: visible !important;
  background-color: transparent !important;
}

.web_head .head_layer .xy-header-extra-nav {
  display: -webkit-inline-box !important;
  display: -webkit-inline-flex !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow: visible !important;
}

.web_head .head_layer .xy-header-extra-nav > li {
  display: -webkit-inline-box !important;
  display: -webkit-inline-flex !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  line-height: 1 !important;
  overflow: visible !important;
}

.web_head .head_layer .xy-header-extra-nav .xy-member-nav,
.web_head .head_layer .xy-header-extra-nav .xy-basket-nav,
.web_head .head_layer .xy-header-extra-nav .xy-wishlist-nav {
  --xy-member-nav-icon-size: 24px;
  --xy-basket-nav-icon-size: 24px;
  --xy-member-nav-avatar-bg: #0656ad;
  color: #0c1c31 !important;
  opacity: 1 !important;
}

.web_head .head_layer .xy-header-extra-nav a {
  color: #0c1c31 !important;
}

.web_head .head_layer .xy-header-extra-nav .xy-member-nav-login,
.web_head .head_layer .xy-header-extra-nav .xy-basket-nav > a,
.web_head .head_layer .xy-header-extra-nav .xy-basket-nav .icon,
.web_head .head_layer .xy-header-extra-nav .xy-basket-nav .icon > i,
.web_head .head_layer .xy-header-extra-nav .xy-basket-nav .icon > svg,
.web_head .head_layer .xy-header-extra-nav .xy-member-nav-login .icon,
.web_head .head_layer .xy-header-extra-nav .xy-member-nav-login .icon > svg {
  color: #0c1c31 !important;
  fill: currentColor !important;
}

.web_head .head_layer .xy-header-extra-nav .xy-member-nav-login:hover,
.web_head .head_layer .xy-header-extra-nav .xy-basket-nav-toggle:hover {
  color: #eb7619 !important;
}

.web_head .head_layer .xy-member-nav-label,
.web_head .head_layer .xy-member-nav-caret {
  display: none !important;
}

.web_head .head_layer .xy-basket-badge {
  background: #eb7619 !important;
  color: #fff !important;
}

/* 空篮隐藏顶栏购物车图标（恢复系统默认，压过主题其它 display 规则） */
.web_head .xy-basket-nav.is-empty,
.web_head .xy-basket-nav[hidden],
.web_head li.xy-basket-nav.is-empty,
.web_head li.xy-basket-nav[hidden],
.web_head .xy-header-extra-nav > li.xy-basket-nav.is-empty,
.web_head .xy-header-extra-nav > li.xy-basket-nav[hidden],
.web_head .head_right .xy-header-extra-nav > li.xy-basket-nav.is-empty,
.web_head .head_right .xy-header-extra-nav > li.xy-basket-nav[hidden],
.web_head .head_layer .head_right .xy-header-extra-nav > li.xy-basket-nav.is-empty,
.web_head .head_layer .head_right .xy-header-extra-nav > li.xy-basket-nav[hidden],
.web_head .head_right li.xy-basket-nav.is-empty,
.web_head .head_right li.xy-basket-nav[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* 系统若已注入搜索，隐藏样板搜索钮，避免双份 */
.web_head .head_layer .head_right:has(.xy-header-search) > .btn--search {
  display: none !important;
}

.web_head .xy-header-search-btn {
  display: -webkit-inline-box !important;
  display: -webkit-inline-flex !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  -webkit-justify-content: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}
.web_head .xy-header-search-btn .icon {
  display: -webkit-inline-box !important;
  display: -webkit-inline-flex !important;
  display: inline-flex !important;
  width: 24px !important;
  height: 24px !important;
}
.web_head .xy-header-search-btn .icon svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}

/* —— 蓝条 head_top：翻译 —— */
.web_head .head_top .head_top_tools,
.web_head .head_top .head_right {
  display: -webkit-inline-box !important;
  display: -webkit-inline-flex !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  gap: 12px !important;
  overflow: visible !important;
}

.web_head .head_top .head_top_right {
  display: -webkit-inline-box !important;
  display: -webkit-inline-flex !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow: visible !important;
}

.web_head .head_top .head_top_right > li,
.web_head .head_top li.xy-header-lang {
  display: -webkit-inline-box !important;
  display: -webkit-inline-flex !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  line-height: 1 !important;
  overflow: visible !important;
  position: relative;
  z-index: 30;
}

.web_head .head_top .xy-header-lang-switcher {
  line-height: 1 !important;
  overflow: visible !important;
}
.web_head .head_top .xy-header-lang-switcher #gt_float_wrapper {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  height: auto !important;
  z-index: 30 !important;
  display: block !important;
  overflow: visible !important;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher {
  position: relative !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px !important;
  border-radius: 0 !important;
  overflow: visible !important;
  line-height: 1 !important;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt-selected {
  background: transparent !important;
  float: none !important;
  cursor: pointer !important;
}
/* 触发器：旗 + 短码 EN */
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt-selected .gt-current-lang {
  display: -webkit-inline-box !important;
  display: -webkit-inline-flex !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 3px 8px 3px 6px !important;
  min-height: 26px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  line-height: 1 !important;
  opacity: 1;
  -webkit-transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt-selected .gt-current-lang:hover {
  color: #fff !important;
  background: rgba(235, 118, 25, 0.92) !important;
  border-color: #eb7619 !important;
  opacity: 1 !important;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt-selected .gt-current-lang .gt-lang-code {
  position: static !important;
  top: auto !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher img {
  width: 18px !important;
  height: 12px !important;
  max-width: 18px !important;
  max-height: 12px !important;
  margin: 0 !important;
  border-radius: 2px !important;
  vertical-align: middle !important;
  object-fit: cover !important;
  -webkit-flex-shrink: 0 !important;
  flex-shrink: 0 !important;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow {
  height: 12px !important;
  width: 12px !important;
  margin-left: 0 !important;
  background-size: 9px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 285 285'><path d='M282 76.5l-14.2-14.3a9 9 0 0 0-13.1 0L142.5 174.4 30.3 62.2a9 9 0 0 0-13.2 0L3 76.5a9 9 0 0 0 0 13.1l133 133a9 9 0 0 0 13.1 0l133-133a9 9 0 0 0 0-13z' style='fill:%23ffffff'/></svg>") !important;
  opacity: 0.9 !important;
}
/* 下拉：2 列网格 */
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt_options {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  width: 280px !important;
  max-width: min(280px, calc(100vw - 24px)) !important;
  max-height: min(70vh, calc(100vh - 96px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 0 !important;
  padding: 8px !important;
  background: #fff !important;
  border: 1px solid #e6edf5 !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 32px rgba(12, 40, 80, 0.16) !important;
  z-index: 10060 !important;
  float: none !important;
  white-space: normal !important;
  display: none !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: min-content !important;
  align-content: start !important;
  justify-items: stretch !important;
  text-align: left !important;
  box-sizing: border-box !important;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt_options.gt-open {
  display: grid !important;
  opacity: 1 !important;
  -webkit-transform: none !important;
  transform: none !important;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt_options a {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 8px 10px !important;
  margin: 0 !important;
  color: #0c1c31 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  border-radius: 4px !important;
  float: none !important;
  background: transparent !important;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt_options a:hover {
  background: #f4f8fc !important;
  color: #0656ad !important;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt_options a img {
  width: 18px !important;
  height: 12px !important;
  max-width: 18px !important;
  max-height: 12px !important;
  margin: 0 !important;
  border-radius: 2px !important;
  -webkit-flex-shrink: 0 !important;
  flex-shrink: 0 !important;
  object-fit: cover !important;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt_options.gt-expanded {
  width: 320px !important;
  max-width: min(320px, calc(100vw - 24px)) !important;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt_options a.gt-lang-extra {
  display: none !important;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt_options.gt-expanded a.gt-lang-extra {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: flex !important;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt_options a.gt-lang-more {
  grid-column: 1 / -1 !important;
  -webkit-box-pack: center !important;
  -webkit-justify-content: center !important;
  justify-content: center !important;
  color: #eb7619 !important;
  font-weight: 600 !important;
  border-top: 1px solid #eee !important;
  margin-top: 4px !important;
  padding: 10px 8px 4px !important;
  border-radius: 0 !important;
}
.web_head .head_top .xy-header-lang-switcher .gt_float_switcher .gt_options a.gt-lang-more:hover {
  background: transparent !important;
  color: #0656ad !important;
}

.web_head:has(.gt_options.gt-open) {
  z-index: 1001;
  overflow: visible !important;
}

.web_head,
.web_head .layout,
.web_head .head_right {
  overflow: visible !important;
}

/* 手机：白条内语言/搜索与黑条重复，强制隐藏；会员/购物篮/汉堡保留 */
@media only screen and (max-width: 950px) {
  body .web_head .head_right .xy-header-extra-nav > li.xy-header-lang,
  body .web_head .head_right .xy-header-extra-nav > li.xy-header-search,
  body .web_head .head_right > .btn--search,
  body .web_head li.xy-header-lang,
  body .web_head li.xy-header-search,
  body .web_head .btn--search {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
  }
}

/* 手机顶栏翻译侧栏 */
.xy-mobile-lang-panel { padding: 4px 2px 12px; }
.xy-mobile-lang-panel .xy-mobile-lang-hd {
  margin: 0 0 14px;
  padding: 0 4px 10px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.xy-mobile-lang-panel .xy-mobile-lang-empty {
  margin: 12px 4px;
  color: #888;
  font-size: 13px;
}
.xy-mobile-lang-panel .xy-mobile-lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.xy-mobile-lang-panel .xy-mobile-lang-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
}
.xy-mobile-lang-panel .xy-mobile-lang-list a {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 10px;
  padding: 12px 6px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
}
.xy-mobile-lang-panel .xy-mobile-lang-list a:active,
.xy-mobile-lang-panel .xy-mobile-lang-list a:hover {
  background: #f7f7f7;
  color: #0656ad;
}
.xy-mobile-lang-panel .xy-mobile-lang-list img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.xy-mobile-lang-panel .xy-mobile-lang-list span { min-width: 0; }

/* 手机汉堡：白底黑图标触发器（抽屉仍在 .mobile-head-items） */
@media only screen and (max-width: 950px) {
  .mobile-head-items .mobile-head-item.mobile-head-home {
    display: none !important;
  }
  .mobile-head-items .mobile-head-item.mobile-head-nav.xy-mobile-nav-slot {
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    float: none !important;
  }
  .mobile-head-items .xy-mobile-nav-slot > .title {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .web_head .head_right .xy-mobile-nav-trigger {
    display: -webkit-inline-box !important;
    display: -webkit-inline-flex !important;
    display: inline-flex !important;
    -webkit-box-align: center !important;
    -webkit-align-items: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -webkit-justify-content: center !important;
    justify-content: center !important;
    -webkit-align-self: center !important;
    align-self: center !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 0 0 4px !important;
    padding: 0 !important;
    color: #0c1c31 !important;
    cursor: pointer !important;
    font-family: 'fontawesome', FontAwesome !important;
    line-height: 32px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 20 !important;
  }
  .web_head .head_right .xy-mobile-nav-trigger:before {
    content: '\f0c9' !important;
    font-size: 24px !important;
    color: #0c1c31 !important;
    line-height: 32px !important;
  }
}
