/**
 * Leo Goldday 参考 + Elementor 三行顶栏
 * 参考：demo1.leotheme.com/leo_goldday_demo（图二：灰顶 / 白腰 / 蓝底菜单 ≈50px 高）
 * 说明：内容在 displayTop 内时用 .header1-h1 / .header2-h1 / .header2-h3；
 * 经典钩子时仍用 .header-nav / .header-top。
 *
 * 蓝底菜单行高度：改 --leo-header-nav-bar-height（与 header-nav-bar-height.js / head 内联变量一致）。
 * 中间白腰（Logo+搜索）节 data-id=b384a46：改 --leo-header-mid-row-height（Leo 重新导出后 id 可能变，需同步选择器）。
 *
 * ---------------------------------------------------------------------------
 * #header DOM（layout-both-columns.tpl + _partials/header.tpl）
 * ---------------------------------------------------------------------------
 * <main id="page">
 *   <header id="header">
 *     <div class="header-container">
 *       [可选] .header-banner
 *       [可选] nav.header-nav（displayNav1/2）
 *       <div class="header-top">
 *         [若全宽关] <div class="container">
 *         <div class="inner">  ← displayTop：Leo Elementor 输出在此
 *           <div class="elementor elementor-… elementor-location-header">
 *             <div class="elementor-inner">（或有）
 *               <div class="elementor-section-wrap">
 *                 <section class="elementor-top-section"> 第1行灰条
 *                 <section class="elementor-top-section"> 第2行白腰
 *                 <section class="elementor-top-section"> 第3行蓝底 + LeoBootstrapmenu
 *                 （可选三列 Goldday：见下方「Elementor 蓝条三列」）
 * ---------------------------------------------------------------------------
 * Elementor 蓝条三列（对齐 leo_goldday_demo：左垂直分类 / 中横向菜单 / 右文案）
 * ---------------------------------------------------------------------------
 * 1. 编辑 Header 模板里「蓝底」那一节 Section → Inner Section 行结构改为 3 列（或 1 行 3 列）。
 * 2. 选中该行（.elementor-row）→ 高级 → CSS 类：leo-header-nav-goldday
 * 3. 左列：Leo Bootstrap Menu，后台菜单组类型选「垂直 / Vertical」；本列高级 → CSS 类：
 *    leo-header-nav-goldday__vertical
 * 4. 中列：再插入一个 Leo Bootstrap Menu，类型「水平 / Horizontal」（主顶栏链接）；本列 CSS 类：
 *    leo-header-nav-goldday__horizontal
 * 5. 右列：HTML 或文本小工具，内容包一层 <div class="ship">Free Shipping on Orders $50+</div>；本列 CSS 类：
 *    leo-header-nav-goldday__promo
 * 未加 leo-header-nav-goldday 时，主题仍按「单列横向菜单」隐藏无菜单小工具的列。
 * ---------------------------------------------------------------------------
 * 注意：若存在 .container，则 .inner 不是 .header-top 的直接子元素，
 * 不要用 `.header-top > .inner` 做关键规则（会匹配失败）。
 */
:root {
  --leo-header-nav-bar-height: 60px;
  --leo-header-mid-row-height: 120px;
  /* JS 拆分三列（.leo-megamenu-split-host）：左 / 中 / 右（右列仍用 outer） */
  --leo-header-nav-split-col1-pct: 20%;
  --leo-header-nav-split-center-pct: 55%;
  --leo-header-nav-split-outer-pct: 25%;
  /* 左格「ALL CATEGORIES」列背景（与主题窄屏/加深蓝一致） */
  --leo-header-nav-split-col1-bg: #2856c4;
  /* 左格首项与列左缘：仅留一丝间隙 */
  --leo-header-nav-split-first-pl: 10px;
  /* 左格图标（.fa / .menu-icon-class）与 .menu-title 间距 */
  --leo-header-nav-split-first-icon-gap: 12px;
  /* 拆分后中列横向菜单距列左缘 */
  --leo-header-nav-split-mid-pl: 22px;
  /* 拆分后中列一级菜单项之间的间距 */
  --leo-header-nav-split-mid-item-gap: 18px;
  /* 无 split-host 量尺时的搜索条最大宽度（有 split 时由 JS 量 .leo-megamenu-split-host 宽再乘以下系数） */
  --leo-header-search-bar-max-width: 480px;
  /* 与 split-host 同宽量尺后，再缩小宽度（0.85～0.95 较自然） */
  --leo-header-search-block-width-factor: 0.88;
  /* 搜索条视觉高度（输入行 + 按钮） */
  --leo-header-search-bar-min-height: 52px;
  /* 与 ul.megamenu.horizontal 左缘对齐后再微移（向右为正，单位 px） */
  --leo-header-search-align-ul-nudge: 10px;
}

/* 仅含 Leo 菜单的顶栏 wrap：竖排 flex，菜单节用 flex-basis 锁高（避免子项 min-height:auto 被撑到 130px+） */
#header .header-top .inner .elementor .elementor-section-wrap:has(.elementor-widget-LeoBootstrapmenu),
#header .header-top .inner .elementor .elementor-section-wrap:has(nav.leo-megamenu),
#header .header-top .inner .elementor .elementor-section-wrap:has(.ApMegamenu),
#header .header-top .inner .elementor-location-header .elementor-section-wrap:has(.elementor-widget-LeoBootstrapmenu),
#header .header-top .inner .elementor-location-header .elementor-section-wrap:has(nav.leo-megamenu) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  row-gap: 0 !important;
}

#header .header-top .inner .elementor .elementor-section-wrap:has(.elementor-widget-LeoBootstrapmenu) > .elementor-top-section:nth-child(-n + 2),
#header .header-top .inner .elementor .elementor-section-wrap:has(nav.leo-megamenu) > .elementor-top-section:nth-child(-n + 2),
#header .header-top .inner .elementor .elementor-section-wrap:has(.ApMegamenu) > .elementor-top-section:nth-child(-n + 2) {
  flex-shrink: 0 !important;
}

#header .header-container {
  position: relative;
  width: 100%;
  border-top: none !important;
  box-shadow: none !important;
}

/* 空 Banner / Nav 由模板条件输出（_partials/header.tpl），此处不再使用 :has() 折叠 */

#header {
  margin-top: 0;
  border-top: none !important;
  box-shadow: none !important;
}

/* ----------------------------------------
   Goldday：顶栏工具区（.header-nav，有输出时）
   ---------------------------------------- */
.header-nav {
  min-height: 50px;
  font-size: 14px;
  background: #fff;
}

.header-nav .container {
  background: transparent;
  color: #888;
}

.header-nav a {
  color: #888;
}

.header-nav a:hover,
.header-nav a:focus {
  color: #4d7df0;
}

body#checkout #header .header-nav {
  max-height: none;
  padding: 0;
}

/* 经典布局：整块 header-top 蓝底（无 Elementor 三节时） */
#header .header-top:not(:has(.elementor)) {
  background: #4d7df0;
}

#header .header-top:not(:has(.elementor)) .container {
  background: transparent;
  color: #000;
}

@media (max-width: 767px) {
  #header .header-top:not(:has(.elementor)) {
    background: #2856c4;
  }
}

/* Elementor 三节：父级不铺色，避免盖住各 section */
#header .header-top:has(.elementor) {
  background: transparent !important;
  color: inherit;
  padding: 0;
}

#header .header-top {
  padding: 0;
}

#header .header-top .inner {
  max-width: 100%;
}

/* -------------------------------------------------------------------------
   图二参考：三行 — 按 Elementor 自定义类（header1-h1 / header2-h1 / header2-h3）
   并带 nth-child 兜底（三节顶栏）
   ------------------------------------------------------------------------- */

/* 第一行：浅灰工具条（图二：更扁 ≈40px，顶边无“黑线”） */
#header .header-top .elementor-section.header1-h1,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) {
  background: #f0f2f5 !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: none !important;
  outline: none !important;
}

#header .header-top .elementor-section.header1-h1.elementor-section,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1).elementor-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 图二顶栏更矮：约 40px，去掉 Elementor 默认留白 */
#header .header-top .elementor-section.header1-h1 > .elementor-container,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) > .elementor-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 40px !important;
  display: flex;
  align-items: center;
}

#header .header-top .elementor-section.header1-h1 .elementor-widget,
#header .header-top .elementor-section.header1-h1 .elementor-widget-wrap,
#header .header-top .elementor-section.header1-h1 .elementor-widget-container,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-widget,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-widget-wrap,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-widget-container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#header .header-top .elementor-section.header1-h1 .elementor-column,
#header .header-top .elementor-section.header1-h1 .elementor-column-wrap,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-column,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-column-wrap {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#header .header-top .elementor-section.header1-h1,
#header .header-top .elementor-section.header1-h1 .elementor-text-editor,
#header .header-top .elementor-section.header1-h1 .elementor-text-editor p,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-text-editor,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-text-editor p {
  color: #5c5c5c !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

#header .header-top .elementor-section.header1-h1 a,
#header .header-top .elementor-section.header1-h1 .btn-unstyle,
#header .header-top .elementor-section.header1-h1 .expand-more,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) a,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) .btn-unstyle,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) .expand-more {
  color: #444 !important;
  font-size: 13px !important;
}

#header .header-top .elementor-section.header1-h1 #currency-selector-label,
#header .header-top .elementor-section.header1-h1 #language-selector-label {
  color: #666 !important;
  font-size: 12px !important;
}

#header .header-top .elementor-section.header1-h1 .elementor-row,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-row {
  align-items: center;
}

#header .header-top .elementor-section.header1-h1 .elementor-row > .elementor-column:last-child .elementor-widget-wrap,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-row > .elementor-column:last-child .elementor-widget-wrap {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
}

/* 顶栏灰条：货币与语言互换（语言在前、货币在后；不依赖列位置） */
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-widget-wrap:has(#_desktop_currency_selector):has(#_desktop_language_selector),
#header .header-top .elementor-section.header1-h1 .elementor-widget-wrap:has(#_desktop_currency_selector):has(#_desktop_language_selector) {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
}

#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-element.elementor-element-6f20266,
#header .header-top .elementor-section.header1-h1 .elementor-element.elementor-element-6f20266 {
  order: 1 !important;
}

#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-element.elementor-element-84e2eb3,
#header .header-top .elementor-section.header1-h1 .elementor-element.elementor-element-84e2eb3 {
  order: 2 !important;
}

/* 桌面语言选择器：国旗在文字左侧（与 img/l/{id_lang}.jpg 对应） */
/* 取消主题 .popup-over .popup-title { text-transform: uppercase }，显示为后台名称自然大小写（如 English） */
#_desktop_language_selector .language-selector .popup-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: none !important;
}

/* 文字：Montserrat 13px / #888（勿写在 button 上，避免子元素 i 继承后破坏 Pe-icon 字体） */
#_desktop_language_selector #language-selector-label,
#_desktop_language_selector .language-selector .popup-title .expand-more,
#_desktop_language_selector .lang-dropdown-item,
#_desktop_language_selector .lang-dropdown-item__label,
#_desktop_language_selector .dropdown-menu.popup-content li.current .lang-dropdown-item,
#_desktop_language_selector .dropdown-menu.popup-content li.current .lang-dropdown-item__label {
  font-family: 'Montserrat', sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  color: #888 !important;
}

/* 顶栏 .expand-more { #444 } 优先级更高，须带 #header 链 */
#header .header-top #_desktop_language_selector .language-selector .popup-title .expand-more {
  font-family: 'Montserrat', sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  color: #888 !important;
}

/* 下拉箭头仍用 Pe-icon-7-stroke */
#_desktop_language_selector .language-selector .popup-title i[class*='pe-7s'] {
  font-family: 'Pe-icon-7-stroke', sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  color: #888 !important;
}

/* 触发按钮与下拉列表内国旗均为 16×11 */
#_desktop_language_selector .language-selector .popup-title .lang-flag,
#_desktop_language_selector .dropdown-menu.popup-content .lang-flag {
  flex: 0 0 auto;
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

#_desktop_language_selector .lang-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

#_desktop_language_selector .lang-dropdown-item__label {
  flex: 1 1 auto;
  min-width: 0;
}

#_desktop_language_selector .language-selector .dropdown-menu > li + li {
  border-top: 1px solid #eceef2;
}

/* 桌面货币选择器：与语言选择器一致（Montserrat 13px #888、取消 uppercase、下拉分隔） */
#_desktop_currency_selector .currency-selector .popup-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: none !important;
}

#_desktop_currency_selector #currency-selector-label,
#_desktop_currency_selector .currency-selector .popup-title .expand-more,
#_desktop_currency_selector .currency-selector .dropdown-menu.popup-content .dropdown-item,
#_desktop_currency_selector .currency-selector .dropdown-menu.popup-content li.current .dropdown-item {
  font-family: 'Montserrat', sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  color: #888 !important;
}

#header .header-top #_desktop_currency_selector #currency-selector-label {
  font-family: 'Montserrat', sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  color: #888 !important;
}

#header .header-top #_desktop_currency_selector .currency-selector .popup-title .expand-more {
  font-family: 'Montserrat', sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  color: #888 !important;
}

#_desktop_currency_selector .currency-selector .popup-title i[class*='pe-7s'] {
  font-family: 'Pe-icon-7-stroke', sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  color: #888 !important;
}

#_desktop_currency_selector .currency-selector .dropdown-menu > li + li {
  border-top: 1px solid #eceef2;
}

/* 顶栏最上方一条线：去掉首节顶边 / 阴影 */
#header .header-top .elementor.elementor-location-header .elementor-section-wrap > .elementor-top-section:first-child,
#header .header-top .elementor-inner > .elementor-section-wrap > .elementor-top-section:first-child {
  border-top: none !important;
}

/* 第二行：白底 Logo / 搜索 / 工具图标 */
#header .header-top .elementor-section.header2-h1,
#header .header-top .elementor-section.header1-h3,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(2) {
  background: #fff !important;
  border-top: none !important;
  border-bottom: 1px solid #eceef2 !important;
  box-shadow: none !important;
}

#header .header-top .elementor-section.header2-h1.elementor-section,
#header .header-top .elementor-section.header1-h3.elementor-section,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(2).elementor-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#header .header-top .elementor-section.header2-h1 > .elementor-container,
#header .header-top .elementor-section.header1-h3 > .elementor-container,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(2) > .elementor-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 第二行白腰加高：当前节 data-id=b384a46（header2-h1 + header1-h3）；导出变更时请改选择器或变量 */
#header .header-top section.elementor-top-section[data-id="b384a46"],
#header .header-top section.elementor-element-b384a46.elementor-top-section {
  min-height: var(--leo-header-mid-row-height) !important;
  box-sizing: border-box !important;
}

#header .header-top section.elementor-top-section[data-id="b384a46"] > .elementor-container,
#header .header-top section.elementor-element-b384a46.elementor-top-section > .elementor-container {
  min-height: var(--leo-header-mid-row-height) !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

#header .header-top section.elementor-top-section[data-id="b384a46"] > .elementor-container > .elementor-row,
#header .header-top section.elementor-element-b384a46.elementor-top-section > .elementor-container > .elementor-row {
  min-height: var(--leo-header-mid-row-height) !important;
  align-items: center !important;
}

#header .header-top .elementor-section.header2-h1 .elementor-widget,
#header .header-top .elementor-section.header2-h1 .elementor-widget-wrap,
#header .header-top .elementor-section.header2-h1 .elementor-widget-container,
#header .header-top .elementor-section.header1-h3 .elementor-widget,
#header .header-top .elementor-section.header1-h3 .elementor-widget-wrap,
#header .header-top .elementor-section.header1-h3 .elementor-widget-container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#header .header-top .elementor-section.header2-h1 .elementor-column,
#header .header-top .elementor-section.header2-h1 .elementor-column-wrap,
#header .header-top .elementor-section.header1-h3 .elementor-column,
#header .header-top .elementor-section.header1-h3 .elementor-column-wrap {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#header .header-top .elementor-section.header2-h1 .elementor-row,
#header .header-top .elementor-section.header1-h3 .elementor-row {
  align-items: center;
}

/* 图二中间行更紧凑（Elementor 内 Logo 区；经典 .header_logo 见文件末尾） */
#header .header-top .elementor-section.header2-h1 .header_logo,
#header .header-top .elementor-section.header1-h3 .header_logo {
  padding-top: 18px;
  padding-bottom: 18px;
}

@media (min-width: 992px) {
  /*
   * 关键：白腰第 1 列（Logo 列）常带 Elementor column-gap 的左 padding，导致 Logo 比蓝条第 1 列更靠右。
   * 这里只移动 Logo（不动蓝条整体间距），实现图二那种“Logo 与 ALL CATEGORIES 同左边线”的效果。
   */
  #header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-row > .elementor-column:first-child .elementor-element-populated,
  #header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-row > .elementor-column:first-child .elementor-widget-wrap {
    padding-inline-start: 0 !important;
  }

  #header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(2) .header_logo {
    text-align: left !important;
  }
}

@media (max-width: 767px) {
  #header .header-top .elementor-section.header2-h1 .header_logo,
  #header .header-top .elementor-section.header1-h3 .header_logo {
    text-align: center;
  }
}

/* 顶栏 Leo 搜索：参考图例（白底、浅灰细边框、仅输入 + 右侧蓝钮、无「分类」列） */
/* JS：存在 .leo-megamenu-split-host 时与第二列菜单拆分区同宽、左右对齐 */
#header .header-top #leo_search_block_top {
  width: var(--leo-header-search-block-width, auto) !important;
  max-width: var(
      --leo-header-search-block-width,
      min(100%, var(--leo-header-search-bar-max-width, 480px))
    ) !important;
  margin-inline-start: var(--leo-header-search-block-margin-start, 0px) !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

/* split-host 首屏体验优化：避免默认 480px 导致刷新时“由小变大” */
#header .header-top .inner:has(.leo-megamenu-split-host) #leo_search_block_top {
  width: 100% !important;
  max-width: 100% !important;
}

#header .header-top #leo_search_block_top .title_block {
  display: none !important;
}

#header .header-top #leo_search_block_top .list-cate-wrapper {
  display: none !important;
}

#header .header-top #leo_search_block_top .leoproductsearch-content {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: var(--leo-header-search-bar-min-height, 52px);
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #dfe3ea;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  /* header-nav-bar-height.js：syncSearchAlignToMenuUl → 与蓝条 ul 左缘对齐 */
  padding-inline-start: var(--leo-header-search-align-pad, 0px) !important;
  margin-inline-start: var(--leo-header-search-align-margin-start, 0px) !important;
  box-sizing: border-box !important;
}

/* 点击/聚焦输入时：边框高亮为 #4D7DF0 */
#header .header-top #leo_search_block_top .leoproductsearch-content:focus-within {
  border-color: #4d7df0 !important;
}

#header .header-top #leo_search_block_top .search_query:focus,
#header .header-top #leo_search_block_top #leo_search_query_top:focus {
  outline: none !important;
}

#header .header-top #leo_search_block_top .leoproductsearch-result {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}

#header .header-top #leo_search_block_top .search_query,
#header .header-top #leo_search_block_top #leo_search_query_top {
  width: 100% !important;
  height: 100% !important;
  min-height: 50px !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 84px 0 16px !important;
  margin: 0 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #333 !important;
  line-height: 1.35 !important;
}

#header .header-top #leo_search_block_top .search_query::placeholder,
#header .header-top #leo_search_block_top #leo_search_query_top::placeholder {
  color: #c5c9ce !important;
  opacity: 1;
}

#header .header-top #leo_search_block_top #leo_search_top_button,
#header .header-top #leo_search_block_top #leo_search_top_button.btn {
  position: absolute !important;
  background: #4d7df0 !important;
  border: none !important;
  bottom: 0.1875rem !important;
  top: 6px !important;
  font-size: 1.1875rem !important;
  width: 65px !important;
  height: 39px !important;
  right: 5px !important;
  left: auto !important;
  border-radius: 3px !important;
  color: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
}

#header .header-top #leo_search_block_top #leo_search_top_button:hover,
#header .header-top #leo_search_block_top #leo_search_top_button:focus {
  background: #3f6fe6 !important;
  color: #fff !important;
}

#header .header-top #leo_search_block_top #leo_search_top_button::before {
  display: inline-block;
  content: "";
  width: 1px;
  height: 50px;
  background: #e9e9e9;
  position: absolute;
  top: -6px;
  left: -5px;
  pointer-events: none;
}

#header .header-top #leo_search_block_top #leo_search_top_button .material-icons {
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

.rtl #header .header-top #leo_search_block_top .leoproductsearch-content {
  flex-direction: row-reverse;
}

.rtl #header .header-top #leo_search_block_top .search_query,
.rtl #header .header-top #leo_search_block_top #leo_search_query_top {
  padding: 0 16px 0 84px !important;
}

.rtl #header .header-top #leo_search_block_top #leo_search_top_button,
.rtl #header .header-top #leo_search_block_top #leo_search_top_button.btn {
  right: auto !important;
  left: 5px !important;
}

.rtl #header .header-top #leo_search_block_top #leo_search_top_button::before {
  left: auto !important;
  right: -5px !important;
}

/*
 * 白腰第二行：加宽中列 + 与蓝条列宽一致（纯 CSS 易因 :has / 结构差异失效；横向对齐由 header-nav-bar-height.js 量尺写入
 * --leo-header-search-align-pad / --leo-header-search-align-margin-start）。
 */
@media (min-width: 992px) {
  /* 搜索模块在列内左对齐，不再占满整列；宽度由外层 #leo_search_block_top 的 max-width 限制 */
  #header .header-top .elementor-column:has(#leo_search_block_top) .elementor-widget-wrap {
    align-items: flex-start !important;
  }

  #header .header-top .elementor-column #leo_search_block_top {
    margin-inline-end: auto !important;
  }

  /* 蓝条存在 leo-megamenu-split-host（或运行后注入）：白腰三列与蓝条 20/55/25 一致，中列搜索区更宽 */
  #header .header-top .inner:has(#leo_search_block_top):has(.leo-megamenu-split-host) .elementor-section-wrap > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-row {
    flex-wrap: nowrap !important;
  }

  #header .header-top .inner:has(#leo_search_block_top):has(.leo-megamenu-split-host) .elementor-section-wrap > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-row > .elementor-column:nth-child(1) {
    flex: 0 0 var(--leo-header-nav-split-col1-pct) !important;
    max-width: var(--leo-header-nav-split-col1-pct) !important;
    width: var(--leo-header-nav-split-col1-pct) !important;
  }

  #header .header-top .inner:has(#leo_search_block_top):has(.leo-megamenu-split-host) .elementor-section-wrap > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-row > .elementor-column:nth-child(2) {
    flex: 0 0 var(--leo-header-nav-split-center-pct) !important;
    max-width: var(--leo-header-nav-split-center-pct) !important;
    width: var(--leo-header-nav-split-center-pct) !important;
  }

  #header .header-top .inner:has(#leo_search_block_top):has(.leo-megamenu-split-host) .elementor-section-wrap > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-row > .elementor-column:nth-child(3) {
    flex: 0 0 var(--leo-header-nav-split-outer-pct) !important;
    max-width: var(--leo-header-nav-split-outer-pct) !important;
    width: var(--leo-header-nav-split-outer-pct) !important;
  }

  /*
   * 三列拆分时：蓝条第 1 列已对 .elementor-element-populated 设 padding-inline-start:0，
   * 白腰第 1 列若仍带 Elementor column-gap 默认左右 padding，Logo 会整体比「ALL CATEGORIES」列右移。
   * 与下行蓝条左列规则对齐策略一致。
   */
  #header .header-top .inner:has(.leo-megamenu-split-host) .elementor-section-wrap > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-row > .elementor-column:nth-child(1) .elementor-widget-wrap,
  #header .header-top .inner:has(.leo-megamenu-split-host) .elementor-section-wrap > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-row > .elementor-column:nth-child(1) .elementor-element-populated {
    padding-inline-start: 0 !important;
  }

  /* Goldday 三列、无 split-host：25 / 50 / 25 */
  #header .header-top .inner:has(#leo_search_block_top):has(.leo-header-nav-goldday):not(:has(.leo-megamenu-split-host)) .elementor-section-wrap > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-row {
    flex-wrap: nowrap !important;
  }

  #header .header-top .inner:has(#leo_search_block_top):has(.leo-header-nav-goldday):not(:has(.leo-megamenu-split-host)) .elementor-section-wrap > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-row > .elementor-column:nth-child(1) {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }

  #header .header-top .inner:has(#leo_search_block_top):has(.leo-header-nav-goldday):not(:has(.leo-megamenu-split-host)) .elementor-section-wrap > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-row > .elementor-column:nth-child(2) {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }

  #header .header-top .inner:has(#leo_search_block_top):has(.leo-header-nav-goldday):not(:has(.leo-megamenu-split-host)) .elementor-section-wrap > .elementor-top-section:nth-child(2) > .elementor-container > .elementor-row > .elementor-column:nth-child(3) {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }

  /* 手动：白腰 Section → 高级 → CSS 类 leo-header-mid-row--cols-split / leo-header-mid-row--cols-goldday（当自动规则仍不生效时） */
  #header .header-top .elementor-top-section.leo-header-mid-row--cols-split > .elementor-container > .elementor-row > .elementor-column:nth-child(1) {
    flex: 0 0 var(--leo-header-nav-split-col1-pct) !important;
    max-width: var(--leo-header-nav-split-col1-pct) !important;
    width: var(--leo-header-nav-split-col1-pct) !important;
  }

  #header .header-top .elementor-top-section.leo-header-mid-row--cols-split > .elementor-container > .elementor-row > .elementor-column:nth-child(2) {
    flex: 0 0 var(--leo-header-nav-split-center-pct) !important;
    max-width: var(--leo-header-nav-split-center-pct) !important;
    width: var(--leo-header-nav-split-center-pct) !important;
  }

  #header .header-top .elementor-top-section.leo-header-mid-row--cols-split > .elementor-container > .elementor-row > .elementor-column:nth-child(3) {
    flex: 0 0 var(--leo-header-nav-split-outer-pct) !important;
    max-width: var(--leo-header-nav-split-outer-pct) !important;
    width: var(--leo-header-nav-split-outer-pct) !important;
  }

  #header .header-top .elementor-top-section.leo-header-mid-row--cols-goldday > .elementor-container > .elementor-row > .elementor-column:nth-child(1) {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }

  #header .header-top .elementor-top-section.leo-header-mid-row--cols-goldday > .elementor-container > .elementor-row > .elementor-column:nth-child(2) {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }

  #header .header-top .elementor-top-section.leo-header-mid-row--cols-goldday > .elementor-container > .elementor-row > .elementor-column:nth-child(3) {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }
}

/* 右侧账户 / 心愿 / 购物车：横向排列 */
#header .header-top .elementor-section.header2-h1 .elementor-column.right .elementor-widget-wrap,
#header .header-top .elementor-section.header1-h3 .elementor-column.right .elementor-widget-wrap {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
}

#header .header-top .elementor-section.header2-h1 .header-button-wishlist a,
#header .header-top .elementor-section.header2-h1 #_desktop_cart .header a,
#header .header-top .elementor-section.header1-h3 .header-button-wishlist a,
#header .header-top .elementor-section.header1-h3 #_desktop_cart .header a {
  color: #1a1a1a !important;
}

/*
 * 第二行右侧：账户 / 心愿 / 购物车图标不显示
 * 1) Quick Login：模板用 material-icons，但主题 Material 字库常缺 woff2；theme 已为 .leo-quicklogin-nav i 配 SVG 背景 → 隐藏 ligature 字形，保留背景图。
 * 2) 心愿：Line Awesome / FA 的 woff2 在环境中常缺失 → 隐藏 ::before，改用内联 SVG 心形（不依赖字体文件）。
 * 3) 购物车：theme 用 SVG 背景 → 补全 background-size/position，并隐藏可能占位的内容字号。
 * 4) 不依赖节区类名 header2-h1：白腰第 2 节无该类时右侧仍 flex 排列。
 */
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(2) .elementor-column.right .elementor-widget-wrap {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
}

/* Quick Login：与 theme.css .leo-quicklogin-nav i 同源 SVG，!important 防 Elementor 清掉背景；#header 下不依赖 .header-top 嵌套 */
#header .leo-quicklogin-nav i.material-icons,
#header .leo-quicklogin-nav i {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  overflow: hidden !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InVzZXIgMSI+CjxnIGlkPSJWZWN0b3IiPgo8cGF0aCBkPSJNMTEuOTk5OSAxMi42OTc3QzguOTQ1MjYgMTIuNjk3NyA2LjQ1OTE3IDEwLjI5NzcgNi40NTkxNyA3LjM0ODg0QzYuNDU5MTcgNC40IDguOTQ1MjYgMiAxMS45OTk5IDJDMTUuMDU0NSAyIDE3LjU0MDYgNC40IDE3LjU0MDYgNy4zNDg4NEMxNy41NDA2IDEwLjI5NzcgMTUuMDU0NSAxMi42OTc3IDExLjk5OTkgMTIuNjk3N1pNMTEuOTk5OSAzLjM5NTM1QzkuNzQ1MDUgMy4zOTUzNSA3LjkwNDU3IDUuMTcyMDkgNy45MDQ1NyA3LjM0ODg0QzcuOTA0NTcgOS41MjU1OCA5Ljc0NTA1IDExLjMwMjMgMTEuOTk5OSAxMS4zMDIzQzE0LjI1NDcgMTEuMzAyMyAxNi4wOTUyIDkuNTI1NTggMTYuMDk1MiA3LjM0ODg0QzE2LjA5NTIgNS4xNzIwOSAxNC4yNTQ3IDMuMzk1MzUgMTEuOTk5OSAzLjM5NTM1WiIgZmlsbD0iIzAwMkI0NCIvPgo8cGF0aCBkPSJNMjAuMjc3MyAyMkMxOS44ODIyIDIyIDE5LjU1NDYgMjEuNjgzNyAxOS41NTQ2IDIxLjMwMjNDMTkuNTU0NiAxOC4wOTMgMTYuMTYyOCAxNS40ODg0IDEyLjAwMDEgMTUuNDg4NEM3LjgzNzI3IDE1LjQ4ODQgNC40NDU0IDE4LjA5MyA0LjQ0NTQgMjEuMzAyM0M0LjQ0NTQgMjEuNjgzNyA0LjExNzc4IDIyIDMuNzIyNyAyMkMzLjMyNzYyIDIyIDMgMjEuNjgzNyAzIDIxLjMwMjNDMyAxNy4zMzAyIDcuMDM3NDggMTQuMDkzIDEyLjAwMDEgMTQuMDkzQzE2Ljk2MjYgMTQuMDkzIDIxIDE3LjMzMDIgMjEgMjEuMzAyM0MyMSAyMS42ODM3IDIwLjY3MjQgMjIgMjAuMjc3MyAyMloiIGZpbGw9IiMwMDJCNDQiLz4KPC9nPgo8L2c+Cjwvc3ZnPgo=") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 24px 24px !important;
}

#header .header-top .header-button-wishlist i.lar.la-heart {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  width: 24px !important;
  height: 24px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill='%231a1a1a' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 24px 24px !important;
}

#header .header-top .header-button-wishlist i.lar.la-heart::before {
  content: none !important;
  display: none !important;
}

/* 购物车图标：与 theme #_desktop_cart .cart-preview .header i 同源 SVG */
#header #_desktop_cart .cart-preview .header i,
#_desktop_cart .cart-preview .header i {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNob3BwaW5nLWJhZyAxIj4KPGcgaWQ9IkxheWVyIDIiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTguNTQ1NSA1LjcxNDI5SDE2LjkwOTFDMTYuOTA5MSA0LjQ2Mzk4IDE2LjM5MTkgMy4yNjQ4OCAxNS40NzEzIDIuMzgwNzhDMTQuNTUwNiAxLjQ5NjY4IDEzLjMwMiAxIDEyIDFDMTAuNjk4IDEgOS40NDkzOCAxLjQ5NjY4IDguNTI4NzUgMi4zODA3OEM3LjYwODEyIDMuMjY0ODggNy4wOTA5MSA0LjQ2Mzk4IDcuMDkwOTEgNS43MTQyOUg1LjQ1NDU1QzQuODAzNTYgNS43MTQyOSA0LjE3OTI0IDUuOTYyNjMgMy43MTg5MiA2LjQwNDY4QzMuMjU4NiA2Ljg0NjczIDMgNy40NDYyOCAzIDguMDcxNDNWMTkuMDcxNEMzLjAwMTMgMjAuMTEzIDMuNDMyNzIgMjEuMTExNSA0LjE5OTYzIDIxLjg0OEM0Ljk2NjU1IDIyLjU4NDQgNi4wMDYzMyAyMi45OTg4IDcuMDkwOTEgMjNIMTYuOTA5MUMxNy45OTM3IDIyLjk5ODggMTkuMDMzNSAyMi41ODQ0IDE5LjgwMDQgMjEuODQ4QzIwLjU2NzMgMjEuMTExNSAyMC45OTg3IDIwLjExMyAyMSAxOS4wNzE0VjguMDcxNDNDMjEgNy40NDYyOCAyMC43NDE0IDYuODQ2NzMgMjAuMjgxMSA2LjQwNDY4QzE5LjgyMDggNS45NjI2MyAxOS4xOTY0IDUuNzE0MjkgMTguNTQ1NSA1LjcxNDI5Wk0xMiAyLjU3MTQzQzEyLjg2OCAyLjU3MTQzIDEzLjcwMDQgMi45MDI1NSAxNC4zMTQyIDMuNDkxOTVDMTQuOTI3OSA0LjA4MTM1IDE1LjI3MjcgNC44ODA3NSAxNS4yNzI3IDUuNzE0MjlIOC43MjcyN0M4LjcyNzI3IDQuODgwNzUgOS4wNzIwOCA0LjA4MTM1IDkuNjg1ODMgMy40OTE5NUMxMC4yOTk2IDIuOTAyNTUgMTEuMTMyIDIuNTcxNDMgMTIgMi41NzE0M1pNMTkuMzYzNiAxOS4wNzE0QzE5LjM2MzYgMTkuNjk2NiAxOS4xMDUgMjAuMjk2MSAxOC42NDQ3IDIwLjczODJDMTguMTg0NCAyMS4xODAyIDE3LjU2MDEgMjEuNDI4NiAxNi45MDkxIDIxLjQyODZINy4wOTA5MUM2LjQzOTkyIDIxLjQyODYgNS44MTU2IDIxLjE4MDIgNS4zNTUyOCAyMC43MzgyQzQuODk0OTcgMjAuMjk2MSA0LjYzNjM2IDE5LjY5NjYgNC42MzYzNiAxOS4wNzE0VjguMDcxNDNDNC42MzYzNiA3Ljg2MzA0IDQuNzIyNTYgNy42NjMxOSA0Ljg3NiA3LjUxNTg0QzUuMDI5NDQgNy4zNjg0OSA1LjIzNzU1IDcuMjg1NzEgNS40NTQ1NSA3LjI4NTcxSDcuMDkwOTFWOC44NTcxNEM3LjA5MDkxIDkuMDY1NTMgNy4xNzcxMSA5LjI2NTM4IDcuMzMwNTUgOS40MTI3M0M3LjQ4Mzk5IDkuNTYwMDggNy42OTIxIDkuNjQyODYgNy45MDkwOSA5LjY0Mjg2QzguMTI2MDkgOS42NDI4NiA4LjMzNDE5IDkuNTYwMDggOC40ODc2MyA5LjQxMjczQzguNjQxMDcgOS4yNjUzOCA4LjcyNzI3IDkuMDY1NTMgOC43MjcyNyA4Ljg1NzE0VjcuMjg1NzFIMTUuMjcyN1Y4Ljg1NzE0QzE1LjI3MjcgOS4wNjU1MyAxNS4zNTg5IDkuMjY1MzggMTUuNTEyNCA5LjQxMjczQzE1LjY2NTggOS41NjAwOCAxNS44NzM5IDkuNjQyODYgMTYuMDkwOSA5LjY0Mjg2QzE2LjMwNzkgOS42NDI4NiAxNi41MTYgOS41NjAwOCAxNi42Njk1IDkuNDEyNzNDMTYuODIyOSA5LjI2NTM4IDE2LjkwOTEgOS4wNjU1MyAxNi45MDkxIDguODU3MTRWNy4yODU3MUgxOC41NDU1QzE4Ljc2MjUgNy4yODU3MSAxOC45NzA2IDcuMzY4NDkgMTkuMTI0IDcuNTE1ODRDMTkuMjc3NCA3LjY2MzE5IDE5LjM2MzYgNy44NjMwNCAxOS4zNjM2IDguMDcxNDNWMTkuMDcxNFoiIGZpbGw9IiMwMDJCNDQiLz4KPC9nPgo8L2c+Cjwvc3ZnPgo=") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 24px 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

/*
 * 不依赖 Elementor 自定义类 header2-h3：只要顶栏 inner 里这一节包含 Leo 菜单，就锁栏高。
 * （类名被改丢、或导出页结构变化时，仅靠 .header2-h3 会全部失效。需支持 :has 的浏览器。）
 */
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu),
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu),
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) {
  background: #4d7df0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: var(--leo-header-nav-bar-height) !important;
  height: var(--leo-header-nav-bar-height) !important;
  min-height: 0 !important;
  max-height: var(--leo-header-nav-bar-height) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

@media (max-width: 767px) {
  #header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu),
  #header .header-top .inner .elementor-top-section:has(nav.leo-megamenu),
  #header .header-top .inner .elementor-top-section:has(.ApMegamenu) {
    background: #2856c4 !important;
  }
}

/* 第三行：蓝底主导航 — 栏高只锁在最外层 section（高度见 :root --leo-header-nav-bar-height） */
#header .header-top .elementor-section.header2-h3,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(3) {
  background: #4d7df0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: var(--leo-header-nav-bar-height) !important;
  height: var(--leo-header-nav-bar-height) !important;
  min-height: 0 !important;
  max-height: var(--leo-header-nav-bar-height) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* 压过页面级 post-*.css：.elementor-N .elementor-element-dd78441 的 padding:12px 0、背景色（常晚于主题 CSS 加载） */
#header .header-top section.elementor-top-section.header2-h3[data-id="dd78441"],
#header .header-top .elementor-element-dd78441.elementor-section.header2-h3 {
  height: var(--leo-header-nav-bar-height) !important;
  max-height: var(--leo-header-nav-bar-height) !important;
  min-height: 0 !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: var(--leo-header-nav-bar-height) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background-color: #4d7df0 !important;
}

/* 必须带 #header + .elementor-9，否则压不住 .elementor-9 .elementor-element-dd78441 { padding:12px 0 } */
#header .header-top .inner .elementor.elementor-9 .elementor-element.elementor-element-dd78441.elementor-section,
#header .header-top .inner .elementor-9 .elementor-element.elementor-element-dd78441.elementor-top-section {
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 767px) {
  #header .header-top section.elementor-top-section.header2-h3[data-id="dd78441"],
  #header .header-top .elementor-element-dd78441.elementor-section.header2-h3 {
    background-color: #2856c4 !important;
  }
}

@media (max-width: 767px) {
  #header .header-top .elementor-section.header2-h3,
  #header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(3) {
    background: #2856c4 !important;
  }
}

#header .header-top .elementor-section.header2-h3 .elementor-container,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(3) .elementor-container,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) .elementor-container,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .elementor-container,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .elementor-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  /* JS：--leo-header-mega-container-pad 仅正值，与上一行 .elementor-container 左缘对齐（脚本不再写负 margin） */
  padding-inline-start: var(--leo-header-mega-container-pad, 0px) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-inline-end: 0 !important;
  margin-inline-start: var(--leo-header-mega-container-margin-start, 0px) !important;
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  min-height: 0 !important;
  height: var(--leo-header-nav-bar-height) !important;
  max-height: var(--leo-header-nav-bar-height) !important;
  display: flex !important;
  /* 勿用 center：唯一子元素 .elementor-row 会变成「内容高度」~27px，整节固定栏高只剩上下空蓝 */
  align-items: stretch !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* 禁止主导航行换行成两行（否则行高叠加，量尺常见 ~130px+） */
#header .header-top .elementor-section.header2-h3 .elementor-row,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(3) .elementor-row,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) .elementor-row,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .elementor-row,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .elementor-row {
  width: 100%;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  flex: 1 1 auto !important;
  align-self: stretch !important;
  flex-wrap: nowrap !important;
  /* 列在竖直方向拉满行高，再由列内 flex 把菜单垂直居中 */
  align-items: stretch !important;
  align-content: stretch;
}

#header .header-top .elementor-section.header2-h3 .elementor-widget,
#header .header-top .elementor-section.header2-h3 .elementor-widget-wrap,
#header .header-top .elementor-section.header2-h3 .elementor-widget-container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) .elementor-widget-LeoBootstrapmenu,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .elementor-widget-LeoBootstrapmenu {
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 压过 .elementor-widget-wrap 默认 align-content:flex-start，避免菜单块贴在栏内上方 */
#header .header-top .elementor-section.header2-h3 .elementor-widget-wrap {
  align-items: center !important;
  align-content: center !important;
}

/* 压过 .elementor-column-gap-default 在列上的 padding:10px（上下各吃掉 20px 可视高度） */
#header .header-top .elementor-section.header2-h3 .elementor-container.elementor-column-gap-default > .elementor-row > .elementor-column > .elementor-element-populated {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#header .header-top .elementor-section.header2-h3 .elementor-column,
#header .header-top .elementor-section.header2-h3 .elementor-column-wrap,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) .elementor-column,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) .elementor-column-wrap,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .elementor-column,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .elementor-column-wrap,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .elementor-column,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .elementor-column-wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  max-height: 100% !important;
  min-height: 0 !important;
  /* 勿用 center：列不拉满行高时 nav 的 height:100% 仍只有 ~27px */
  align-self: stretch !important;
}

#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .elementor-column-wrap,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .elementor-column-wrap,
#header .header-top section.elementor-top-section[data-id="dd78441"] .elementor-column-wrap {
  height: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

/* Leo Elementor：content-middle 在 column-wrap 上设 flex，与栏高对齐 */
#header .header-top .elementor-section.header2-h3.elementor-section-content-middle > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap,
#header .header-top .elementor-section-wrap > .elementor-top-section:nth-child(3).elementor-section-content-middle > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu).elementor-section-content-middle > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu).elementor-section-content-middle > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap {
  display: flex !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  max-height: 100% !important;
  height: 100% !important;
}

#header .header-top .elementor-section.header2-h3 .leo-megamenu.navbar {
  margin: 0 !important;
  padding: 0 !important;
}

#header .header-top .elementor-section.header2-h3 .megamenu-nav-scroll,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .megamenu-nav-scroll,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .megamenu-nav-scroll {
  min-height: 0 !important;
  /* 用 auto：由 nav（height:100%）+ align-items:center 垂直居中，避免滚动壳本身拉满栏高像「下面空蓝」 */
  height: auto !important;
  max-height: 100% !important;
  display: flex !important;
  align-items: center !important;
  width: 100%;
  box-sizing: border-box !important;
}

/* 一级菜单：flex 垂直居中；内边距随矮栏略收紧 */
#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav > li,
#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > li,
#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/*
 * theme.css：.leo-megamenu .navbar-nav > li { padding: 15px 0 } 会单独把行高撑到 ~50px+，
 * 多行/与 Elementor 列间距叠加时量尺常见 ~130px。以下用 :has / data-id 兜底，避免只写了 .header2-h3 时漏覆盖。
 */
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .leo-megamenu .navbar-nav > li,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .leo-megamenu .navbar-nav > li,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) .leo-megamenu .navbar-nav > li,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item,
#header .header-top section.elementor-top-section[data-id="dd78441"] .leo-megamenu .navbar-nav > li,
#header .header-top section.elementor-top-section[data-id="dd78441"] .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item {
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) nav.leo-megamenu.navbar,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) nav.leo-megamenu.navbar,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) nav.leo-megamenu.navbar,
#header .header-top section.elementor-top-section[data-id="dd78441"] nav.leo-megamenu.navbar {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  max-height: 100% !important;
}

#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .elementor-container.elementor-column-gap-default > .elementor-row > .elementor-column > .elementor-element-populated,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .elementor-container.elementor-column-gap-default > .elementor-row > .elementor-column > .elementor-element-populated,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) .elementor-container.elementor-column-gap-default > .elementor-row > .elementor-column > .elementor-element-populated,
#header .header-top section.elementor-top-section[data-id="dd78441"] .elementor-container.elementor-column-gap-default > .elementor-row > .elementor-column > .elementor-element-populated {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) > .elementor-container > .elementor-row,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) > .elementor-container > .elementor-row,
#header .header-top section.elementor-top-section[data-id="dd78441"] > .elementor-container > .elementor-row {
  flex-wrap: nowrap !important;
  height: 100% !important;
  max-height: 100% !important;
  align-items: stretch !important;
  align-self: stretch !important;
}

/*
 * 蓝条：菜单常在「第二列」，左列电话等不含 LeoBootstrapmenu → 整块菜单右移，无法与上一行 Logo 列（如 .logo-h1 / dfedad3）对齐。
 * 不依赖某次导出的 section data-id（dd78441 等）；需支持 :has 的浏览器。
 */
@media (min-width: 992px) {
  #header .header-top section.elementor-top-section:has(nav.leo-megamenu) > .elementor-container > .elementor-row {
    flex-wrap: nowrap !important;
  }

  /*
   * 仅「一行仅一个 LeoBootstrapmenu 列」时隐藏侧列并拉满菜单；2+ 个菜单列时保留 Elementor 列宽（33/33/33 等）。
   */
  #header .header-top section.elementor-top-section:has(nav.leo-megamenu) > .elementor-container > .elementor-row:not(.leo-header-nav-goldday):not(:has(> .elementor-column:has(.elementor-widget-LeoBootstrapmenu) ~ .elementor-column:has(.elementor-widget-LeoBootstrapmenu))) > .elementor-column:not(:has(.elementor-widget-LeoBootstrapmenu)) {
    display: none !important;
  }

  #header .header-top section.elementor-top-section:has(nav.leo-megamenu) > .elementor-container > .elementor-row:not(.leo-header-nav-goldday):not(:has(> .elementor-column:has(.elementor-widget-LeoBootstrapmenu) ~ .elementor-column:has(.elementor-widget-LeoBootstrapmenu))) > .elementor-column:has(.elementor-widget-LeoBootstrapmenu) {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /*
   * Leo Goldday 蓝条三列（ApRow：col-xl-3 + col-xl-6 + col-xl-3）。
   * 行类 leo-header-nav-goldday；列类 __vertical / __horizontal / __promo（见文件头 Elementor 步骤）。
   */
  #header .header-top section.elementor-top-section:has(nav.leo-megamenu) > .elementor-container > .elementor-row.leo-header-nav-goldday {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    column-gap: 0 !important;
  }

  /* 约 25% / 50% / 25%，与 Bootstrap col-xl-3、col-xl-6、col-xl-3 一致 */
  #header .header-top section.elementor-top-section:has(nav.leo-megamenu) > .elementor-container > .elementor-row.leo-header-nav-goldday > .elementor-column.leo-header-nav-goldday__vertical {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  #header .header-top section.elementor-top-section:has(nav.leo-megamenu) > .elementor-container > .elementor-row.leo-header-nav-goldday > .elementor-column.leo-header-nav-goldday__horizontal {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    min-width: 0 !important;
  }

  #header .header-top section.elementor-top-section:has(nav.leo-megamenu) > .elementor-container > .elementor-row.leo-header-nav-goldday > .elementor-column.leo-header-nav-goldday__promo {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
    min-width: 0 !important;
  }

  /* 垂直 mega 下拉不被列裁切 */
  #header .header-top section.elementor-top-section:has(nav.leo-megamenu) > .elementor-container > .elementor-row.leo-header-nav-goldday > .elementor-column.leo-header-nav-goldday__vertical .elementor-element-populated {
    overflow: visible !important;
  }

  /* Goldday 左格：白底「All categories」按钮条（蓝条上的对比块） */
  #header .header-top section.elementor-top-section:has(.leo-header-nav-goldday) .leo-header-nav-goldday__vertical .title_block.verticalmenu-button,
  #header .header-top section.elementor-top-section:has(.leo-header-nav-goldday) .leo-header-nav-goldday__vertical h4.title_block {
    display: flex !important;
    align-items: center !important;
    min-height: calc(var(--leo-header-nav-bar-height) - 8px) !important;
    max-height: var(--leo-header-nav-bar-height) !important;
    margin: 0 !important;
    padding: 0 0.75rem !important;
    line-height: 1.2 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #222 !important;
    background: #fff !important;
    border-radius: 2px !important;
    box-sizing: border-box !important;
  }

  #header .header-top section.elementor-top-section:has(.leo-header-nav-goldday) .leo-header-nav-goldday__vertical .leo-verticalmenu {
    width: 100% !important;
    max-height: var(--leo-header-nav-bar-height) !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
  }

  #header .header-top section.elementor-top-section:has(nav.leo-megamenu) .ship {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 100% !important;
    min-height: var(--leo-header-nav-bar-height) !important;
    margin: 0 !important;
    padding: 0 0.25rem !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    white-space: nowrap !important;
    text-align: right !important;
    box-sizing: border-box !important;
  }
}

/*
 * 蓝条 1+1+1 列：megamenu.tpl 在桌面端把首项留在左列，.megamenu-nav-scroll（箭头+其余 li）迁入中空的中列。
 */
@media (min-width: 992px) {
  /* 覆盖 Elementor 三等分：左略窄、中加宽、右不变（20% / 55% / 25%） */
  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) > .elementor-container > .elementor-row > .elementor-column:nth-child(1) {
    flex: 0 0 var(--leo-header-nav-split-col1-pct) !important;
    max-width: var(--leo-header-nav-split-col1-pct) !important;
    width: var(--leo-header-nav-split-col1-pct) !important;
    min-width: 0 !important;
    background-color: var(--leo-header-nav-split-col1-bg) !important;
    position: relative;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
  }

  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) > .elementor-container > .elementor-row > .elementor-column:nth-child(1) > .elementor-column-wrap,
  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) > .elementor-container > .elementor-row > .elementor-column:nth-child(1) .elementor-element-populated {
    background-color: transparent !important;
  }

  /* 仅蓝条“首项（ALL CATEGORIES）顶层标题”用白字；不要影响下拉里各项的 .menu-title（否则白底白字=看起来空白） */
  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) .leo-megamenu-split-first > ul.navbar-nav.megamenu.horizontal > li.nav-item > a.nav-link,
  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) .leo-megamenu-split-first > ul.navbar-nav.megamenu.horizontal > li.nav-item > a.nav-link .menu-title {
    color: rgba(255, 255, 255, 0.96) !important;
  }

  /* 下拉菜单内恢复深色文字（对齐 theme.css 的默认下拉配色） */
  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) .leo-megamenu-split-first .dropdown-menu,
  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) .leo-megamenu-split-first .dropdown-menu a,
  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) .leo-megamenu-split-first .dropdown-menu .menu-title {
    color: var(--text-color) !important;
  }

  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) .leo-megamenu-split-first a.nav-link:hover,
  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) .leo-megamenu-split-first a.nav-link:focus {
    color: #fff !important;
  }

  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) .leo-megamenu-split-first .fa,
  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) .leo-megamenu-split-first .menu-icon-class {
    color: rgba(255, 255, 255, 0.92) !important;
  }

  /* 左格：图标与「ALL CATEGORIES」标题（menu-title 在 .menu-icon-class 内与 i 并列） */
  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) .leo-megamenu-split-first .menu-icon-class > .menu-title {
    margin-inline-start: var(--leo-header-nav-split-first-icon-gap) !important;
  }

  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) > .elementor-container > .elementor-row > .elementor-column:nth-child(2) {
    flex: 0 0 var(--leo-header-nav-split-center-pct) !important;
    max-width: var(--leo-header-nav-split-center-pct) !important;
    width: var(--leo-header-nav-split-center-pct) !important;
    min-width: 0 !important;
  }

  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) > .elementor-container > .elementor-row > .elementor-column:nth-child(3) {
    flex: 0 0 var(--leo-header-nav-split-outer-pct) !important;
    max-width: var(--leo-header-nav-split-outer-pct) !important;
    width: var(--leo-header-nav-split-outer-pct) !important;
    min-width: 0 !important;
  }

  #header .header-top .leo-megamenu-split-host {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
  }

  #header .header-top .leo-megamenu-split-host > nav.leo-megamenu {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center;
  }

  #header .header-top .leo-megamenu-split-host .megamenu-nav-scroll {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  /* 第二列：与左缘留出间距（压过 megamenu.tpl 内联 padding-left:0） */
  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) .leo-megamenu-split-host .megamenu-nav-scroll .leo-top-menu {
    padding-inline-start: var(--leo-header-nav-split-mid-pl) !important;
  }

  /* 第二列：一级菜单项之间（inline-block 相邻项） */
  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) .leo-megamenu-split-host .megamenu-nav-scroll .leo-top-menu .navbar-nav.megamenu.horizontal > .nav-item + .nav-item {
    margin-inline-start: var(--leo-header-nav-split-mid-item-gap) !important;
  }

  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) nav.leo-megamenu:has(.leo-megamenu-split-first) {
    justify-content: flex-start !important;
  }

  /* 蓝条首列保留 Elementor 列内边距，避免整块贴齐视口；与上一行对齐靠 --leo-header-mega-container-pad */

  #header .header-top nav.leo-megamenu .leo-megamenu-split-first {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex: 0 1 auto;
    height: 100%;
    min-height: 0;
    min-width: 0;
    padding-inline-start: var(--leo-header-nav-split-first-pl) !important;
    padding-inline-end: 0.35rem !important;
    box-sizing: border-box !important;
  }

  #header .header-top .leo-megamenu-split-first ul.navbar-nav.megamenu.horizontal {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    margin: 0 !important;
    padding: 0 !important;
    padding-inline-start: 0 !important;
    white-space: nowrap;
    list-style: none;
  }

  #header .header-top .leo-megamenu-split-first ul.navbar-nav.megamenu.horizontal > .nav-item {
    float: none !important;
  }
}

/* Goldday 三列：平板/手机纵向堆叠（参考 col-md-12） */
@media (max-width: 991px) {
  #header .header-top section.elementor-top-section:has(nav.leo-megamenu) > .elementor-container > .elementor-row.leo-header-nav-goldday {
    flex-wrap: wrap !important;
    row-gap: 0.5rem !important;
  }

  #header .header-top section.elementor-top-section:has(nav.leo-megamenu) > .elementor-container > .elementor-row.leo-header-nav-goldday > .elementor-column.leo-header-nav-goldday__vertical,
  #header .header-top section.elementor-top-section:has(nav.leo-megamenu) > .elementor-container > .elementor-row.leo-header-nav-goldday > .elementor-column.leo-header-nav-goldday__horizontal,
  #header .header-top section.elementor-top-section:has(nav.leo-megamenu) > .elementor-container > .elementor-row.leo-header-nav-goldday > .elementor-column.leo-header-nav-goldday__promo {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #header .header-top section.elementor-top-section:has(nav.leo-megamenu) .ship {
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
  }
}

#header .header-top section.elementor-top-section.elementor-element-dd78441 {
  height: var(--leo-header-nav-bar-height) !important;
  max-height: var(--leo-header-nav-bar-height) !important;
  min-height: 0 !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: var(--leo-header-nav-bar-height) !important;
  box-sizing: border-box !important;
}

#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > li > a,
#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item > .nav-link,
#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav > li > a,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .leo-megamenu .navbar-nav.megamenu.horizontal > li > a,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item > .nav-link,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .leo-megamenu .navbar-nav > li > a,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .leo-megamenu .navbar-nav.megamenu.horizontal > li > a,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item > .nav-link,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .leo-megamenu .navbar-nav > li > a,
#header .header-top section.elementor-top-section[data-id="dd78441"] .leo-megamenu .navbar-nav.megamenu.horizontal > li > a,
#header .header-top section.elementor-top-section[data-id="dd78441"] .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item > .nav-link,
#header .header-top section.elementor-top-section[data-id="dd78441"] .leo-megamenu .navbar-nav > li > a {
  display: inline-flex !important;
  align-items: center !important;
  /* 勿用 min-height: calc(栏高-12px)，会把每个 a 撑到近满栏，看起来像栏异常厚 */
  min-height: 0 !important;
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
  padding-left: 0.35rem !important;
  padding-right: 0.85rem !important;
  line-height: 1.15 !important;
  font-size: 12px !important;
  box-sizing: border-box !important;
}

#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav > li.active > a,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .leo-megamenu .navbar-nav > li.active > a,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .leo-megamenu .navbar-nav > li.active > a,
#header .header-top section.elementor-top-section[data-id="dd78441"] .leo-megamenu .navbar-nav > li.active > a {
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
  padding-left: 0.35rem !important;
  padding-right: 0.85rem !important;
}

#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > li.home > a,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .leo-megamenu .navbar-nav.megamenu.horizontal > li.home > a {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0.85rem !important;
}

/* 首项常是 ALL CATEGORIES：左内边距归零，与 Logo 可视左缘一致（theme 曾用 25px 导致整块右移） */
@media (min-width: 992px) {
  #header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item:first-child > .nav-link,
  #header .header-top section.elementor-top-section[data-id="dd78441"] .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item:first-child > .nav-link,
  #header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item:first-child > .nav-link {
    padding-left: 0 !important;
  }

  .rtl #header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item:first-child > .nav-link,
  .rtl #header .header-top section.elementor-top-section[data-id="dd78441"] .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item:first-child > .nav-link,
  .rtl #header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item:first-child > .nav-link {
    padding-left: 0.85rem !important;
    padding-right: 0 !important;
  }
}

.rtl #header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > li.home > a {
  padding-right: 0 !important;
  padding-left: 0.85rem !important;
}

#header .header-top .elementor-section.header2-h3 .megamenu-nav-scroll .leo-top-menu {
  padding-top: 0.125rem !important;
  padding-bottom: 0.125rem !important;
}

@media (min-width: 992px) {
  /* 与上一行 Logo/.elementor-row 左对齐；箭头在右侧，勿再留 34px 左内边距 */
  html body #header .header-top .megamenu-nav-scroll .leo-top-menu,
  #header .header-top .elementor-section.header2-h3 .megamenu-nav-scroll .leo-top-menu,
  #header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .megamenu-nav-scroll .leo-top-menu,
  #header .header-top section.elementor-top-section[data-id="dd78441"] .megamenu-nav-scroll .leo-top-menu {
    padding-left: 0 !important;
    padding-right: 72px !important;
  }

  #header .header-top .elementor-section.header2-h3 .megamenu-nav-scroll__arrow {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
  }
}

@media (min-width: 992px) {
  .rtl #header .header-top .elementor-section.header2-h3 .megamenu-nav-scroll .leo-top-menu,
  .rtl #header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .megamenu-nav-scroll .leo-top-menu,
  .rtl #header .header-top section.elementor-top-section[data-id="dd78441"] .megamenu-nav-scroll .leo-top-menu {
    padding-right: 0 !important;
    padding-left: 72px !important;
  }
}

#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item > .nav-link,
#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item > .nav-link .menu-title {
  color: rgba(255, 255, 255, 0.95) !important;
}

#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item.active > .nav-link,
#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item.active > .nav-link .menu-title {
  color: #fff !important;
}

/* 去掉当前项底部白线（原 inset box-shadow 不参与增高，但视觉上像加厚栏高） */
#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item.active > .nav-link,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item.active > .nav-link {
  box-shadow: none !important;
  border-bottom: none !important;
  text-decoration: none !important;
  background: transparent !important;
}

#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal li > a .menu-title:before,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .leo-megamenu .navbar-nav.megamenu.horizontal li > a .menu-title:before {
  display: none !important;
  content: none !important;
  text-shadow: none !important;
}

#header .header-top .elementor-section.header2-h3 .megamenu-nav-scroll__arrow {
  color: rgba(255, 255, 255, 0.92) !important;
}

#header .header-top .elementor-section.header2-h3 .megamenu-nav-scroll__arrow.disabled {
  color: rgba(255, 255, 255, 0.45) !important;
}

/* 第三行右侧文案（如 Free shipping / Need help） */
#header .header-top .elementor-section.header2-h3 .elementor-text-editor,
#header .header-top .elementor-section.header2-h3 .elementor-text-editor p {
  color: #fff !important;
}

#header .header-top .elementor-section.header2-h3 .elementor-text-editor a {
  color: #fff !important;
}

/* 竖向 “All categories”：theme.css 里 .leo-verticalmenu .title_block 默认 padding 1.25rem，会把整行撑到 ~150px */
#header .header-top .elementor-section.header2-h3 .title_block.verticalmenu-button,
#header .header-top .elementor-section.header2-h3 .verticalmenu-button,
#header .header-top .inner .leo-verticalmenu .title_block.verticalmenu-button,
#header .header-top .inner .leo-verticalmenu h4.title_block {
  background: rgba(0, 0, 0, 0.18) !important;
  padding: 0.35rem 0.75rem !important;
  line-height: 1.25 !important;
  font-size: 0.8125rem !important;
  margin: 0 !important;
}

/* 竖向分类块在蓝条内不要超过栏高（下拉层 absolute，不占用栏内高度） */
#header .header-top .elementor-section.header2-h3 .leo-verticalmenu,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) .leo-verticalmenu,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .leo-verticalmenu {
  max-height: var(--leo-header-nav-bar-height) !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
}

/* Goldday 经典布局：Logo 略收紧，仍比 Elementor 中间行略高 */
.header_logo {
  padding-top: 28px;
  padding-bottom: 28px;
}

@media (max-width: 767px) {
  .header_logo {
    text-align: center;
  }
}

/* Goldday：.headertop-flex（ApRow 加类名时） */
.headertop-flex > [class*="col-"] {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.headertop-flex .center-headertop {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.headertop-flex .right-headertop {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
}

/* 经典 top-menu（非 megamenu 时） */
#header .header-top .top-menu a[data-depth="0"]:hover,
#header .header-top .top-menu a[data-depth="0"]:focus {
  color: #3387f2;
  text-decoration: none;
}

/* -------------------------------------------------------------------------
   蓝条高度兜底（页尾二次加载本文件 + 下列规则）：
   theme.css 中 .navbar{padding:0.5rem 1rem}、.leo-megamenu .navbar-nav>li{padding:15px 0}
   会把整条栏撑到 ~150px；桌面端 .navbar-header 空行也会占位。
   ------------------------------------------------------------------------- */
#header .header-top > .inner .elementor-section.elementor-top-section.header2-h3,
#header .elementor-location-header .elementor-section.elementor-top-section.header2-h3 {
  height: var(--leo-header-nav-bar-height) !important;
  min-height: 0 !important;
  max-height: var(--leo-header-nav-bar-height) !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: var(--leo-header-nav-bar-height) !important;
  box-sizing: border-box !important;
}

@media (min-width: 992px) {
  #header .header-top .elementor-section.header2-h3 .navbar-header {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }
}

#header .header-top .elementor-section.header2-h3 .ApMegamenu,
#header .header-top .elementor-section.header2-h3 .elementor-widget-LeoBootstrapmenu .elementor-widget-container {
  min-height: 0 !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

#header .header-top .elementor-section.header2-h3 nav.leo-megamenu.navbar,
#header .header-top .elementor-section.header2-h3 nav.leo-megamenu.navbar.navbar-default {
  padding: 0 !important;
  min-height: 0 !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}

#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav > li,
#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav > li.nav-item,
#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > li,
#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav.megamenu.horizontal > .nav-item {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#header .header-top .elementor-section.header2-h3 .leo-megamenu .navbar-nav > li.active > a,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .leo-megamenu .navbar-nav > li.active > a {
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
}

/*
 * Elementor 背景多在 motion-effects-layer，高度随内容 → section 有高度但肉眼可能只有一条细蓝。
 * 给 section 本体底色 + 拉满 overlay / 动效层 / container，保证整块同色。
 */
#header .header-top .inner .elementor-top-section.header2-h3,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu),
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu),
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) {
  position: relative !important;
  background-color: #4d7df0 !important;
}

/*
 * 勿省略 overlay 的 position:absolute：否则 overlay 与 .elementor-container 会在流内上下叠放，
 * 总内容高度 ≈ 2×栏高（量尺常见 130~180px），肉眼像「蓝条突然变很高」。
 */
#header .header-top .inner .elementor-top-section.header2-h3 > .elementor-background-overlay,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) > .elementor-background-overlay,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) > .elementor-background-overlay,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) > .elementor-background-overlay {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  min-height: 100% !important;
  height: 100% !important;
  width: 100% !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

#header .header-top .inner .elementor-top-section.header2-h3 .elementor-motion-effects-container,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) .elementor-motion-effects-container,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .elementor-motion-effects-container,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .elementor-motion-effects-container {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  min-height: 100% !important;
  z-index: 0 !important;
}

#header .header-top .inner .elementor-top-section.header2-h3 .elementor-motion-effects-layer,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) .elementor-motion-effects-layer,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .elementor-motion-effects-layer,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .elementor-motion-effects-layer {
  min-height: 100% !important;
  height: 100% !important;
}

#header .header-top .inner .elementor-top-section.header2-h3 .elementor-container,
#header .header-top .inner .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) .elementor-container,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu) .elementor-container,
#header .header-top .inner .elementor-top-section:has(.ApMegamenu) .elementor-container {
  min-height: 0 !important;
  height: var(--leo-header-nav-bar-height) !important;
  max-height: var(--leo-header-nav-bar-height) !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

/* 顶栏内 Leo 横向菜单：无条件压 theme.css 的 li{padding:15px 0}（不依赖 section 类名 / :has） */
#header .header-top .leo-megamenu.navbar .navbar-nav.megamenu.horizontal > li,
#header .header-top .leo-megamenu.navbar .navbar-nav.megamenu.horizontal > .nav-item,
#header .header-top .leo-megamenu.navbar .navbar-nav > li {
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ========== DOM 兜底：不强制经过 .inner > .elementor，避免钩子/全宽与 boxed 结构差异导致规则全失效 ========== */
#header .header-top .elementor-section-wrap:has(.ApMegamenu),
#header .header-top .elementor-section-wrap:has(nav.leo-megamenu),
#header .header-top .elementor-section-wrap:has(.elementor-widget-LeoBootstrapmenu) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  row-gap: 0 !important;
}

#page #header .header-top .elementor-top-section:has(.ApMegamenu),
#page #header .header-top .elementor-top-section:has(nav.leo-megamenu),
#page #header .header-top .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) {
  height: var(--leo-header-nav-bar-height) !important;
  max-height: var(--leo-header-nav-bar-height) !important;
  min-height: 0 !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: var(--leo-header-nav-bar-height) !important;
  box-sizing: border-box !important;
  /* 勿用 padding:0，否则清掉 Elementor 左右留白，蓝条会比白带更贴边；竖直仍压平 */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#page #header .header-top .elementor-top-section:has(.ApMegamenu) > .elementor-background-overlay,
#page #header .header-top .elementor-top-section:has(nav.leo-megamenu) > .elementor-background-overlay,
#page #header .header-top .elementor-top-section:has(.elementor-widget-LeoBootstrapmenu) > .elementor-background-overlay {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

/*
 * 与你当前 HTML 一致：displayTop → .inner → .elementor.elementor-9（data-elementor-type="post"）
 * → .elementor-inner → .elementor-section-wrap → 三个 .elementor-top-section（灰 / 白 / 蓝 dd78441）。
 * 若 DevTools 里 dd78441 已是目标栏高，但肉眼看像 135px：请确认选中的不是 .header-top 或整段 .inner
 *（三节高度相加）。下拉层为 JS 的 position:fixed，此处 overflow:hidden 不裁切固定层。
 */
#header .header-top .inner .elementor.elementor-9 .elementor-section-wrap {
  gap: 0 !important;
  row-gap: 0 !important;
  column-gap: 0 !important;
}

#header .header-top .inner .elementor.elementor-9 section.elementor-element-dd78441.elementor-top-section,
#header .header-top section.elementor-top-section[data-id="dd78441"] {
  height: var(--leo-header-nav-bar-height) !important;
  max-height: var(--leo-header-nav-bar-height) !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
}

@media (min-width: 992px) {
  #header .header-top section.elementor-top-section[data-id="dd78441"] .navbar-header,
  #header .header-top .inner .elementor.elementor-9 section.elementor-element-dd78441 .navbar-header {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    line-height: 0 !important;
  }
}

/*
 * 压 Elementor 生成的 post-*.css：常见为 .elementor-9 .elementor-element-dd78441 { min-height: 135px; }
 * 用 html body + 双类名提高优先级；并覆盖可能存在的 --min-height 自定义属性。
 */
html body #header .header-top .inner .elementor.elementor-9 .elementor-element.elementor-element-dd78441.elementor-section.elementor-top-section,
html body #header .header-top .inner .elementor.elementor-9 section.elementor-element-dd78441[data-id="dd78441"],
html body #header .header-top section.elementor-top-section.elementor-element-dd78441[data-id="dd78441"] {
  --min-height: 0px !important;
  min-height: 0 !important;
  height: var(--leo-header-nav-bar-height) !important;
  max-height: var(--leo-header-nav-bar-height) !important;
  flex-basis: var(--leo-header-nav-bar-height) !important;
  box-sizing: border-box !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Elementor 可能给列/widget 设 min-height，实际“蓝条”变高；统一压在 section 高度内 */
#header .header-top section.elementor-top-section[data-id="dd78441"] .elementor-column-wrap,
#header .header-top section.elementor-top-section[data-id="dd78441"] .elementor-widget-wrap,
#header .header-top section.elementor-top-section[data-id="dd78441"] .elementor-widget-container,
#header .header-top section.elementor-top-section[data-id="dd78441"] .elementor-widget-LeoBootstrapmenu,
#header .header-top section.elementor-top-section[data-id="dd78441"] .ApMegamenu,
#header .header-top section.elementor-top-section[data-id="dd78441"] .leo-top-menu {
  min-height: 0 !important;
  max-height: 100% !important;
}

/*
 * 内部结构把外框撑高：嵌套 flex/块级子项默认 min-height:auto，会按内容（菜单 li、Bootstrap .navbar 等）
 * 嵌套 flex 子项 min-height:auto 会按内容撑开父级。整条链允许收缩 + 菜单区 flex 居中。
 */
#header .header-top section.elementor-top-section[data-id="dd78441"] .elementor-column,
#header .header-top section.elementor-top-section[data-id="dd78441"] .elementor-element-populated,
#header .header-top section.elementor-top-section[data-id="dd78441"] .elementor-widget,
#header .header-top section.elementor-top-section[data-id="dd78441"] .elementor-widget-container,
#header .header-top section.elementor-top-section[data-id="dd78441"] .ApMegamenu,
#header .header-top section.elementor-top-section[data-id="dd78441"] .elementor-widget-LeoBootstrapmenu,
#header .header-top section.elementor-top-section[data-id="dd78441"] nav.leo-megamenu.navbar,
#header .header-top section.elementor-top-section[data-id="dd78441"] .megamenu-nav-scroll,
#header .header-top section.elementor-top-section[data-id="dd78441"] .leo-top-menu,
#header .header-top section.elementor-top-section[data-id="dd78441"] ul.navbar-nav.megamenu.horizontal,
#header .header-top .elementor-top-section:has(nav.leo-megamenu) .elementor-column,
#header .header-top .elementor-top-section:has(nav.leo-megamenu) .elementor-element-populated,
#header .header-top .elementor-top-section:has(nav.leo-megamenu) .elementor-widget,
#header .header-top .elementor-top-section:has(nav.leo-megamenu) .elementor-widget-container,
#header .header-top .elementor-top-section:has(nav.leo-megamenu) .ApMegamenu,
#header .header-top .elementor-top-section:has(nav.leo-megamenu) .elementor-widget-LeoBootstrapmenu,
#header .header-top .elementor-top-section:has(nav.leo-megamenu) nav.leo-megamenu.navbar,
#header .header-top .elementor-top-section:has(nav.leo-megamenu) .megamenu-nav-scroll,
#header .header-top .elementor-top-section:has(nav.leo-megamenu) .leo-top-menu,
#header .header-top .elementor-top-section:has(nav.leo-megamenu) ul.navbar-nav.megamenu.horizontal {
  min-height: 0 !important;
  max-height: 100% !important;
}

@media (min-width: 992px) {
  #header .header-top section.elementor-top-section[data-id="dd78441"] nav.leo-megamenu.navbar,
  #header .header-top .elementor-top-section:has(nav.leo-megamenu) nav.leo-megamenu.navbar {
    flex-wrap: nowrap !important;
    align-items: center !important;
    align-content: center !important;
  }

  #header .header-top section.elementor-top-section[data-id="dd78441"] .megamenu-nav-scroll,
  #header .header-top .elementor-top-section:has(nav.leo-megamenu) .megamenu-nav-scroll {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    align-self: center !important;
  }

  /* 节高固定、菜单仅一行时：nav 拉满列高并垂直居中（未做三列拆分时） */
  #header .header-top section.elementor-top-section[data-id="dd78441"]:not(:has(.leo-megamenu-split-host)) nav.leo-megamenu[data-megamenu-id],
  #header .header-top .elementor-top-section:has(nav.leo-megamenu):not(:has(.leo-megamenu-split-host)) nav.leo-megamenu[data-megamenu-id] {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    align-content: center !important;
    min-height: 100% !important;
    height: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) nav.leo-megamenu[data-megamenu-id] {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    align-content: flex-start !important;
    justify-content: flex-start !important;
    min-height: 100% !important;
    height: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #header .header-top section.elementor-top-section[data-id="dd78441"] nav.leo-megamenu .navbar-header,
  #header .header-top .elementor-top-section:has(nav.leo-megamenu) nav.leo-megamenu .navbar-header {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }

  #header .header-top .elementor-top-section:has(nav.leo-megamenu):not(:has(.leo-megamenu-split-host)) .elementor-column:has(nav.leo-megamenu) > .elementor-column-wrap,
  #header .header-top section.elementor-top-section[data-id="dd78441"]:not(:has(.leo-megamenu-split-host)) .elementor-column:has(nav.leo-megamenu) > .elementor-column-wrap {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  #header .header-top section.elementor-top-section:has(.leo-megamenu-split-host) > .elementor-container > .elementor-row > .elementor-column:nth-child(1) > .elementor-column-wrap {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    min-height: 0 !important;
    height: 100% !important;
  }
}

/*
 * Layout 里 Height 显示 Default，但保存数据里可能仍带旧类 elementor-section-height-min-height，
 * 或 post-*.css 仍含 > .elementor-container { min-height: 135px }。与界面无关，需硬压掉。
 */
#header .header-top section.elementor-top-section.elementor-section-height-min-height:has(nav.leo-megamenu),
#header .header-top section.elementor-top-section.elementor-section-height-min-height:has(.ApMegamenu),
#header .header-top section.elementor-top-section.elementor-section-height-min-height:has(.elementor-widget-LeoBootstrapmenu),
#header .header-top section.elementor-top-section.elementor-section-height-min-height[data-id="dd78441"],
#header .header-top section.elementor-element-dd78441.elementor-section-height-min-height {
  min-height: 0 !important;
  height: var(--leo-header-nav-bar-height) !important;
  max-height: var(--leo-header-nav-bar-height) !important;
  flex-basis: var(--leo-header-nav-bar-height) !important;
  overflow: hidden !important;
  --min-height: 0px !important;
}

/* Elementor frontend：.elementor-section-items-middle > .elementor-container { align-items:center } */
#header .header-top section.elementor-element-dd78441.elementor-section-items-middle > .elementor-container,
#header .header-top section.elementor-top-section[data-id="dd78441"].elementor-section-items-middle > .elementor-container,
#header .header-top .inner .elementor-top-section:has(nav.leo-megamenu).elementor-section-items-middle > .elementor-container {
  align-items: stretch !important;
  align-content: stretch !important;
}

/* content-middle：列 wrap 拉满高度后再把 widget 垂直居中（无三列拆分时；拆分后左列须顶对齐） */
#header .header-top section.elementor-element-dd78441.elementor-section-content-middle:not(:has(.leo-megamenu-split-host)) > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap,
#header .header-top section.elementor-top-section[data-id="dd78441"].elementor-section-content-middle:not(:has(.leo-megamenu-split-host)) > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
}

#header .header-top section.elementor-top-section:has(.leo-megamenu-split-host).elementor-section-content-middle > .elementor-container > .elementor-row > .elementor-column:nth-child(1) > .elementor-column-wrap {
  justify-content: flex-start !important;
}

#header .header-top section.elementor-top-section.elementor-section-height-min-height:has(nav.leo-megamenu) > .elementor-container,
#header .header-top section.elementor-top-section.elementor-section-height-min-height:has(.ApMegamenu) > .elementor-container,
#header .header-top section.elementor-top-section.elementor-section-height-min-height:has(.elementor-widget-LeoBootstrapmenu) > .elementor-container,
#header .header-top section.elementor-top-section.elementor-section-height-min-height[data-id="dd78441"] > .elementor-container,
#header .header-top section.elementor-element-dd78441.elementor-section-height-min-height > .elementor-container {
  min-height: 0 !important;
  height: var(--leo-header-nav-bar-height) !important;
  max-height: var(--leo-header-nav-bar-height) !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  --min-height: 0px !important;
  align-items: stretch !important;
  align-content: stretch !important;
}

/* Material Symbols Outlined support (menu icons) */
#header .material-symbols-outlined {
  font-family: 'Material Symbols Outlined', 'Material Symbols Rounded', 'Material Symbols Sharp', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Ensure symbols inside menu icon wrapper are visible */
#header .leo-megamenu .menu-icon-class .material-symbols-outlined {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  color: currentColor;
}
