/*
 * 独立页头·头部区域（页头构建器）。自有 <header class="slh-header">，wp_body_open 注入，隐藏主题 #masthead。
 * 头部只含：顶部信息条 + Logo + 搜索 + 操作项 + 迷你购物车（各自可选）。不含导航条（导航条另做）。
 * 布局用 CSS Grid（3 区：logo / search / tools=操作项+购物车）。配色由 --hdr-* 变量承载。
 */

/* 隐藏主题原生页头壳（不动主题导航条/原生购物车） */
body.slh-header-on #masthead,
body.slh-header-on header.site-header { display: none !important; }
/* 主题遗留的导航条（#masthead 之外的 .col-full-nav：含主题菜单/搜索/购物车整条），
   独立页头启用后一并隐藏，避免与我们自己的页头/PC 导航条重复。购物车抽屉触发元素
   .cart-contents 仍在 DOM 里（隐藏也能被 JS 触发），不影响迷你购物车。 */
body.slh-header-on .col-full-nav { display: none !important; }

/* 基础 */
.slh-header-wrap { width: 100%; }
.slh-header { background: var(--hdr-bg, #fff); color: var(--hdr-text, #1d2327); }
body.slh-header-sticky .slh-header { position: sticky; top: 0; z-index: 9999; }
.slh-header-announce { background: var(--hdr-ann-bg, #1f2733); color: var(--hdr-ann-color, #fff); text-align: center; font-size: 14px; line-height: 1.5; padding: 8px 16px; }
.slh-header-announce a { color: inherit; text-decoration: underline; }

/* ===== Grid 默认＝单行：logo(左) 搜索(中) 工具(右) ===== */
.slh-header__grid { max-width: 1280px; margin: 0 auto; padding: 20px 32px; display: grid; align-items: center; column-gap: 28px; grid-template-columns: auto 1fr auto; grid-template-areas: "logo search tools"; }
.slh-header__cell--logo { grid-area: logo; display: flex; align-items: center; gap: 12px; min-width: 0; }
.slh-header__cell--search { grid-area: search; display: flex; justify-content: center; min-width: 0; }
.slh-header__cell--tools { grid-area: tools; display: flex; align-items: center; gap: 24px; justify-self: end; }
/* 用户自定义间距/外边距/最大宽/边框由 HeaderRenderer 内联输出（只输出填了的值，留空＝用此处与各排版默认）。 */
/* 内容宽度＝盒装：整条页头居中收窄（背景/边框只覆盖内容宽），内部 grid 占满该盒。 */
.slh-header.slh-is-boxed { box-sizing: border-box; }
.slh-header.slh-is-boxed .slh-header__grid { max-width: 100%; }

/* logo */
.slh-header__logo { display: inline-flex; align-items: center; text-decoration: none; color: inherit; font-size: 22px; font-weight: 700; }
.slh-header__logo-img, .slh-header__logo img { max-height: 46px; width: auto; height: auto; display: block; }
.slh-header__logo--text { white-space: nowrap; }

/* 搜索 */
.slh-header__search { display: flex; align-items: center; max-width: 100%; }
.slh-header__search form { display: flex; align-items: center; }
.slh-header__search input[type="search"], .slh-header__search .search-field { height: 38px; border: 1px solid #e2e6ee; border-radius: 8px; padding: 0 12px; background: #f6f7f9; min-width: 220px; font-size: 14px; }
.slh-header__search button[type="submit"] { height: 38px; margin-left: 8px; border: 0; border-radius: 8px; background: var(--hdr-sbtn-bg, var(--hdr-accent, #2d6fe0)); color: var(--hdr-sbtn-color, #fff); cursor: pointer; padding: 0 20px; font-size: 14px; font-weight: 600; white-space: nowrap; line-height: 38px; }
.slh-header__search button[type="submit"]:hover { filter: brightness(0.93); }

/* 操作项（图标在上、文字在下，项间竖线分隔） */
.slh-header__actions { display: flex; align-items: center; }
.slh-header__action { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--hdr-link, #1d2327); font-size: 12px; line-height: 1.15; white-space: nowrap; padding: 0 18px; }
.slh-header__action:first-child { padding-left: 4px; }
.slh-header__action:last-child { padding-right: 18px; }
.slh-header__action:not(:last-child) { border-right: 1px solid rgba(0,0,0,.13); }
.slh-header__action:hover { color: var(--hdr-accent, #2d6fe0); }
.slh-header__action-img { height: 24px; width: auto; display: block; }
/* 6.28 内置图标（SVG stroke=currentColor，随页头配色/hover 变色） */
.slh-header__action-ic { display: block; line-height: 0; }
.slh-header__action-ic svg { width: 22px; height: 22px; display: block; }
.slh-header--actions_hero .slh-header__action-ic svg { width: 26px; height: 26px; }
.slh-header--dark .slh-header__action:not(:last-child), .slh-header--accent_bar .slh-header__action:not(:last-child) { border-color: rgba(255,255,255,.22); }

/* 购物车 */
.slh-header__cart { position: relative; display: inline-flex; align-items: center; color: var(--hdr-link, #1d2327); text-decoration: none; }
.slh-header__cart:hover { color: var(--hdr-accent, #2d6fe0); }
.slh-header__cart-count { position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--hdr-accent, #2d6fe0); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }

/* 导航（移动端汉堡 + 抽屉；桌面隐藏——桌面导航条以后单独做） */
.slh-header__burger { display: none; width: 34px; height: 34px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; padding: 0; margin-right: 4px; color: inherit; }
.slh-header__burger-svg { display: block; width: 24px; height: 24px; }
.slh-header__drawer { display: none; }
.slh-header__nav { width: 100%; }
.slh-header__menu { list-style: none; margin: 0; padding: 0; }
.slh-header__mi { position: relative; }
.slh-header__caret { background: none; border: 0; cursor: pointer; color: inherit; }
.slh-header__sub { list-style: none; margin: 0; padding: 0; }

/* ===== PC 导航条（logo 行下方独立一行；仅桌面显示，移动端由汉堡抽屉接管） ===== */
/* 导航条整条 100% 全宽（背景/描边通栏）；内容居中收窄到内容宽度（对齐上方页头内容）。 */
.slh-header__navbar { display: block; width: 100%; background: var(--hdr-nav-bg, transparent); }
.slh-header__navbar .slh-header__nav { max-width: var(--nav-content-w, 1280px); margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.slh-header__navbar .slh-header__menu { display: flex; flex-wrap: wrap; gap: 2px; }
.slh-header__navbar .slh-header__mi { position: relative; }
.slh-header__navbar .slh-header__mi > a { display: block; padding: 12px 16px; color: var(--hdr-l1-color, var(--hdr-text, #1d2327)); font-size: var(--hdr-l1-size, 15px); line-height: 1.2; text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.slh-header__navbar .slh-header__mi:hover > a { color: var(--hdr-accent, #2d6fe0); }
/* 有子菜单：显示内联下拉箭头，hover 时旋转（像官方主题一样直观） */
.slh-header__navbar .slh-header__mi.has-children > a { padding-right: 30px; }
.slh-header__navbar .slh-header__caret { display: inline-flex; align-items: center; justify-content: center; position: absolute; right: 8px; top: 50%; margin-top: -9px; width: 18px; height: 18px; padding: 0; background: none; border: 0; color: var(--hdr-caret-color, inherit); line-height: 1; pointer-events: none; opacity: .75; transition: transform .18s ease, opacity .15s; }
.slh-header__navbar .slh-header__caret-svg { display: block; width: var(--hdr-caret-size, 11px); height: var(--hdr-caret-size, 11px); }
.slh-header__navbar .slh-header__mi.has-children:hover > .slh-header__caret { transform: rotate(180deg); opacity: 1; }
/* 二级下拉（hover 展开卡片） */
.slh-header__navbar .slh-header__sub { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--hdr-l2-bg, #fff); border: 1px solid rgba(18,38,63,.10); border-radius: 12px; box-shadow: 0 16px 40px rgba(18,38,63,.16); padding: 8px; margin-top: 6px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 60; }
/* 悬停缓冲：菜单项与下拉之间留 6px 间隙时不闪断 */
.slh-header__navbar .slh-header__mi.has-children::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.slh-header__navbar .slh-header__mi:hover > .slh-header__sub { opacity: 1; visibility: visible; transform: none; }
.slh-header__navbar .slh-header__subitem > a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--hdr-l2-color, #1d2327); font-size: 14px; line-height: 1.35; text-decoration: none; white-space: nowrap; transition: background .14s, color .14s; }
.slh-header__navbar .slh-header__subitem > a:hover { background: rgba(45,111,224,.10); color: var(--hdr-accent, #2d6fe0); }
/* ===== 二级下拉框风格（8 款；card=默认基础） ===== */
/* 直角描边 */
.slh-navd--square .slh-header__sub { border-radius: 4px; border-color: rgba(18,38,63,.14); box-shadow: 0 8px 22px rgba(18,38,63,.10); }
.slh-navd--square .slh-header__subitem > a { border-radius: 3px; }
/* 无边框 · 柔和阴影 */
.slh-navd--soft .slh-header__sub { border: 0; border-radius: 16px; box-shadow: 0 20px 48px rgba(18,38,63,.20); padding: 10px; }
/* 分隔线列表 */
.slh-navd--line .slh-header__sub { padding: 4px 0; border-radius: 8px; }
.slh-navd--line .slh-header__subitem > a { border-radius: 0; padding: 11px 16px; }
.slh-navd--line .slh-header__subitem + .slh-header__subitem > a { border-top: 1px solid rgba(0,0,0,.06); }
/* 左侧主色条 */
.slh-navd--leftbar .slh-header__subitem > a { border-left: 3px solid transparent; border-radius: 0 8px 8px 0; padding-left: 13px; }
.slh-navd--leftbar .slh-header__subitem > a:hover { border-left-color: var(--hdr-accent, #2d6fe0); background: rgba(45,111,224,.08); }
/* 下划线项 */
.slh-navd--underline .slh-header__subitem > a:hover { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
/* 胶囊高亮项 */
.slh-navd--pill .slh-header__subitem > a { border-radius: 999px; }
/* 深色下拉 */
.slh-navd--dark .slh-header__sub { background: #1f2733; border-color: rgba(255,255,255,.10); box-shadow: 0 18px 40px rgba(0,0,0,.32); }
.slh-navd--dark .slh-header__subitem > a { color: #d7dee8; }
.slh-navd--dark .slh-header__subitem > a:hover { background: rgba(255,255,255,.10); color: #fff; }
/* 对齐 */
.slh-nav--center_line .slh-header__menu, .slh-nav--center_plain .slh-header__menu, .slh-nav--center_underline .slh-header__menu, .slh-nav--center_fill .slh-header__menu, .slh-nav--accent_bar .slh-header__menu { justify-content: center; }
.slh-nav--right_line .slh-header__menu { justify-content: flex-end; }
/* 条样式：细线分隔 */
.slh-nav--left_line, .slh-nav--center_line, .slh-nav--right_line { border-top: 1px solid rgba(0,0,0,.08); }
/* 浅底通栏 */
.slh-nav--left_fill, .slh-nav--center_fill { background: var(--hdr-nav-bg, #f5f7fa); }
/* 下划线悬停 */
.slh-nav--center_underline .slh-header__mi > a { border-bottom: 2px solid transparent; }
.slh-nav--center_underline .slh-header__mi:hover > a { border-bottom-color: var(--hdr-accent, #2d6fe0); }
/* 胶囊高亮 */
.slh-nav--pill .slh-header__mi > a { border-radius: 999px; }
.slh-nav--pill .slh-header__mi:hover > a { background: rgba(45,111,224,.10); }
/* 主色通栏 · 白字 */
.slh-nav--accent_bar { background: var(--hdr-nav-bg, var(--hdr-accent, #2d6fe0)); }
.slh-nav--accent_bar .slh-header__mi > a { color: #fff; }
.slh-nav--accent_bar .slh-header__mi:hover > a { color: #fff; background: rgba(255,255,255,.16); border-radius: 6px; }

/* ===== 版式：logo 居中 · 双翼（搜索左 logo中 工具右） ===== */
.slh-header--center_logo .slh-header__grid,
.slh-header--morandi .slh-header__grid,
.slh-header--sandwich .slh-header__grid { grid-template-columns: 1fr auto 1fr; grid-template-areas: "search logo tools"; }
.slh-header--center_logo .slh-header__cell--search,
.slh-header--morandi .slh-header__cell--search,
.slh-header--sandwich .slh-header__cell--search { justify-content: flex-start; }
.slh-header--center_logo .slh-header__cell--logo,
.slh-header--morandi .slh-header__cell--logo,
.slh-header--sandwich .slh-header__cell--logo { justify-self: center; }

/* ===== 版式：搜索领衔（大搜索框） ===== */
.slh-header--search_hero .slh-header__grid { grid-template-columns: auto 2fr auto; }
.slh-header--search_hero .slh-header__cell--search { justify-content: stretch; }
.slh-header--search_hero .slh-header__search { width: 100%; }
.slh-header--search_hero .slh-header__search form { width: 100%; }
.slh-header--search_hero .slh-header__search input[type="search"], .slh-header--search_hero .slh-header__search .search-field { width: 100%; flex: 1; min-width: 0; }

/* ===== 版式：精品 · logo 居中双行（行1 logo居中；行2 搜索左 + 工具右） ===== */
.slh-header--boutique .slh-header__grid { grid-template-columns: 1fr auto; grid-template-areas: "logo logo" "search tools"; row-gap: 12px; }
.slh-header--boutique .slh-header__cell--logo { justify-self: center; }
.slh-header--boutique .slh-header__cell--search { justify-content: flex-start; }

/* ===== 版式：搜索右置 · 紧凑 ===== */
.slh-header--compact .slh-header__grid,
.slh-header--dashed .slh-header__grid { padding-top: 12px; padding-bottom: 12px; column-gap: 18px; }
.slh-header--compact .slh-header__cell--search,
.slh-header--dashed .slh-header__cell--search { justify-content: flex-end; }
.slh-header--compact .slh-header__search input[type="search"], .slh-header--compact .slh-header__search .search-field,
.slh-header--dashed .slh-header__search input[type="search"], .slh-header--dashed .slh-header__search .search-field { min-width: 180px; }

/* ===== 版式：字标连搜 · 搜索贴左 ===== */
.slh-header--logo_search .slh-header__grid { grid-template-columns: auto auto 1fr; }
.slh-header--logo_search .slh-header__cell--search { justify-content: flex-start; }

/* ===== 极简 · 无框留白 ===== */
.slh-header--minimal .slh-header__grid { padding-top: 22px; padding-bottom: 22px; }

/* ===== 操作项领衔 · 右上突出 ===== */
.slh-header--actions_hero .slh-header__action { font-size: 13px; font-weight: 600; padding: 0 24px; }
.slh-header--actions_hero .slh-header__action-img { height: 28px; }

/* ===== 圆角卡片 · 浮起页头 ===== */
.slh-header--card.slh-header { background: transparent; padding: 14px 0; }
.slh-header--card .slh-header__grid { max-width: 1240px; background: var(--hdr-bg, #fff); border: 1px solid #e2e6ee; border-radius: 16px; box-shadow: 0 8px 24px rgba(18,38,63,.10); }

/* ===== 配色 / 边框 主题 ===== */
.slh-header--dark.slh-header { background: #1f2733; color: #fff; }
.slh-header--dark .slh-header__logo, .slh-header--dark .slh-header__action, .slh-header--dark .slh-header__cart { color: #fff; }
.slh-header--morandi.slh-header { background: #eaeef5; }
.slh-header--grayscale.slh-header { background: #e9eaed; }
.slh-header--accent_bar.slh-header { background: var(--hdr-accent, #2d6fe0); color: #fff; }
.slh-header--accent_bar .slh-header__logo, .slh-header--accent_bar .slh-header__action, .slh-header--accent_bar .slh-header__cart { color: #fff; }
.slh-header--accent_bar .slh-header__search button[type="submit"] { background: #fff; color: var(--hdr-accent, #2d6fe0); }
.slh-header--accent_bar .slh-header__cart-count { background: #fff; color: var(--hdr-accent, #2d6fe0); }
/* 头部任何排版风格都不加上下边框线（去掉 dashed/accent_top/sandwich 原有描边）。 */

/* ===== 移动端（≤880px）：15 款可配置排版（body 头部上 .slh-mh--<key>）；基础＝经典 stack ===== */
@media (max-width: 880px) {
	/* 基础（所有移动版式统一顶部三区）：菜单图标左（汉堡·绝对定位不占列）· logo 居中 · 迷你购物车右。
	   左侧 1fr 留白供汉堡浮放、右侧 1fr 放购物车，logo 居中且左右对称。!important 覆盖所有 PC 版式。 */
	.slh-header__grid { position: relative; grid-template-columns: 1fr auto 1fr !important; grid-template-areas: "gap logo tools" "search search search" !important; padding: 12px 16px !important; column-gap: 12px; row-gap: 10px; max-width: 100% !important; }
	.slh-header.slh-is-boxed { max-width: 100% !important; }
	/* 移动端：菜单/头部上下不留外间距（强制覆盖桌面端 margin 设置） */
	.slh-header-wrap { margin-top: 0 !important; margin-bottom: 0 !important; }
	/* PC 导航条仅桌面显示；移动端由汉堡抽屉接管 */
	.slh-header__navbar { display: none !important; }
	/* 移动端顶部固定搜索框：默认隐藏（抽屉菜单内已含搜索）；仅当开启「移动端固定顶部显示搜索框」(slh-msearch-on) 时显示 */
	.slh-header:not(.slh-msearch-on) .slh-header__cell--search { display: none !important; }
	.slh-header:not(.slh-msearch-on) .slh-header__grid { grid-template-areas: "gap logo tools" !important; row-gap: 0 !important; }
	.slh-header__cell--logo { justify-self: center !important; }
	.slh-header__cell--tools { justify-self: end !important; gap: 14px; }
	.slh-header__cell--search { justify-content: stretch !important; }
	.slh-header__cell--search .slh-header__search, .slh-header__cell--search .slh-header__search form { width: 100%; }
	.slh-header__search input[type="search"], .slh-header__search .search-field { width: 100%; min-width: 0; flex: 1; }
	.slh-header__action { padding: 0 9px; font-size: 11px; }
	.slh-header__action:last-child { padding-right: 9px; }
	.slh-header__action-img { height: 22px; }
	.slh-header__logo-img, .slh-header__logo img { max-height: 36px; }
	.slh-header--card .slh-header__grid { border-radius: 12px; }

	/* 移动端顶部布局固定为三区（汉堡左·logo 居中·购物车右）；以下版式只做样式差异（配色/描边/留白）。 */
	/* 配色主题（移动端独立，!important 覆盖 PC 配色） */
	.slh-mh--dark.slh-header { background: #1f2733 !important; color: #fff; }
	.slh-mh--dark .slh-header__logo, .slh-mh--dark .slh-header__action, .slh-mh--dark .slh-header__cart { color: #fff; }
	.slh-mh--morandi.slh-header { background: #eaeef5 !important; }
	.slh-mh--grayscale.slh-header { background: #e9eaed !important; }
	.slh-mh--accent_bar.slh-header { background: var(--hdr-accent, #2d6fe0) !important; color: #fff; }
	.slh-mh--accent_bar .slh-header__logo, .slh-mh--accent_bar .slh-header__action, .slh-mh--accent_bar .slh-header__cart { color: #fff; }
	.slh-mh--accent_bar .slh-header__search button[type="submit"] { background: #fff; color: var(--hdr-accent, #2d6fe0); }

	/* 底部描边 */
	.slh-mh--bordered.slh-header { border-bottom: 1px solid #e2e8f0; }

	/* 舒朗大留白 */
	.slh-mh--airy .slh-header__grid { padding: 20px 16px !important; row-gap: 14px; }

	/* ===== 移动端导航条：汉堡 + 抽屉（所有版式通用；风格独立，配色随当前头部自动继承） ===== */
	/* 汉堡菜单图标固定在顶部左侧（绝对定位·不占网格列，故 logo 可真正居中、购物车靠右） */
	.slh-header__burger { display: flex; position: absolute; left: 16px; top: 12px; height: 38px; margin: 0; z-index: 6; align-items: center; }
	.slh-header__drawer { display: block; max-height: 0; overflow: hidden; transition: max-height .28s ease; background: inherit; border-top: 1px solid rgba(0,0,0,.08); }
	.slh-header.is-drawer-open .slh-header__drawer { max-height: 84vh; overflow-y: auto; }
	.slh-header__drawer-inner { padding: 8px 16px 16px; }
	.slh-header__drawer .slh-header__nav { width: 100%; }
	.slh-header__drawer .slh-header__menu { display: block; }
	.slh-header__drawer .slh-header__mi { position: relative; border-bottom: 1px solid rgba(0,0,0,.08); }
	.slh-header__drawer .slh-header__mi > a { display: block; padding: 13px 4px; font-size: 16px; text-decoration: none; color: inherit; }
	.slh-header__drawer .slh-header__caret { position: absolute; right: 0; top: 5px; width: 40px; height: 40px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; transition: transform .2s; }
	.slh-header__drawer .slh-header__caret-svg { width: 15px; height: 15px; display: block; }
	.slh-header__drawer .slh-header__mi.is-open .slh-header__caret { transform: rotate(180deg); }
	.slh-header__drawer .slh-header__sub { display: none; padding: 0 0 8px 14px; }
	.slh-header__drawer .slh-header__mi.is-open > .slh-header__sub { display: block; }
	.slh-header__drawer .slh-header__subitem > a { display: block; padding: 9px 4px; text-decoration: none; color: inherit; opacity: .85; font-size: 14px; }
	.slh-header__search--drawer { display: flex; width: 100%; margin: 0 0 6px; }
	.slh-header__search--drawer form, .slh-header__search--drawer .slh-header__searchform { width: 100%; display: flex; }
	.slh-header__search--drawer input[type="search"], .slh-header__search--drawer .search-field { width: 100%; min-width: 0; flex: 1; }
	/* 抽屉顶部关闭按钮（右上角 ×，参照主流商城侧滑面板） */
	.slh-header__drawer-top { display: flex; justify-content: flex-end; margin-bottom: 4px; }
	.slh-header__drawer-close { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; font-size: 26px; line-height: 1; color: inherit; padding: 0; }
	/* 抽屉打开时隐藏汉堡（关闭统一用抽屉右上角 ×，避免汉堡叠在菜单内容上） */
	.slh-header.is-drawer-open .slh-header__burger { opacity: 0; pointer-events: none; }
	/* 主题迷你购物车抽屉打开时（body.drawer-open）也隐藏汉堡——汉堡 z-index 高，否则会浮在购物车抽屉上面 */
	body.drawer-open .slh-header__burger { opacity: 0 !important; pointer-events: none !important; }
	/* 抽屉·菜单下方自定义内容（序号列表） */
	.slh-header__drawer-extra { list-style: decimal; margin: 12px 0 0; padding: 12px 0 0 26px; border-top: 1px solid rgba(0,0,0,.08); }
	.slh-header__drawer-extra > li { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: inherit; opacity: .9; }
	.slh-header__drawer-extra > li > a { color: inherit; text-decoration: none; }
	.slh-header__drawer-extra > li > a:hover { text-decoration: underline; }
	/* 移动端：右上角操作项一律不在顶部显示（顶部空间有限）。
	   仅当勾选「在移动端菜单内显示」(slh-acts-indrawer) 时，操作项出现在抽屉菜单里；
	   未勾选则移动端不显示操作项（桌面端不受影响，仍在右上角）。 */
	.slh-header__cell--tools .slh-header__actions { display: none !important; }
	.slh-header__actions--drawer { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(0,0,0,.08); }
	.slh-header__actions--drawer .slh-header__action { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border: 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 15px; color: inherit; text-decoration: none; }
	.slh-header__actions--drawer .slh-header__action:last-child { border-bottom: 0; }
	.slh-header__actions--drawer .slh-header__action-img { height: 22px; width: auto; }

	/* ===== 菜单打开方式（4 选 1；默认 down 即上方下滑抽屉） ===== */
	/* 侧滑：从左侧滑入的全高面板 */
	.slh-mopen--side .slh-header__drawer { position: fixed; top: 0; left: 0; bottom: 0; height: 100%; width: 82%; max-width: 320px; max-height: none; overflow-y: auto; transform: translateX(-100%); transition: transform .28s ease; z-index: 9990; box-shadow: 2px 0 28px rgba(0,0,0,.20); border-top: 0; }
	.slh-mopen--side.slh-header.is-drawer-open .slh-header__drawer { transform: translateX(0); max-height: none; }
	.slh-mopen--side .slh-header__burger, .slh-mopen--full .slh-header__burger { position: absolute; z-index: 10000; }

	/* 全屏：铺满整屏的覆盖菜单（居中大字） */
	.slh-mopen--full .slh-header__drawer { position: fixed; inset: 0; width: 100%; height: 100%; max-height: none; overflow-y: auto; transform: none; opacity: 0; visibility: hidden; transition: opacity .22s ease; z-index: 9990; border-top: 0; }
	.slh-mopen--full.slh-header.is-drawer-open .slh-header__drawer { opacity: 1; visibility: visible; max-height: none; }
	.slh-mopen--full .slh-header__drawer-inner { padding-top: 64px; }
	.slh-mopen--full .slh-header__menu { text-align: center; }
	.slh-mopen--full .slh-header__mi > a { font-size: 20px; padding: 16px 4px; }
	.slh-mopen--full .slh-header__mi { border-bottom: 0; }
	.slh-mopen--full .slh-header__caret { right: 50%; margin-right: -60px; }

	/* 下拉：紧贴页头下方的卡片面板（不占满整行高度） */
	.slh-mopen--dropdown .slh-header { position: relative; }
	.slh-mopen--dropdown .slh-header__drawer { position: absolute; top: 100%; left: 8px; right: 8px; max-height: 0; overflow: hidden; transition: max-height .25s ease; z-index: 9990; border: 1px solid rgba(0,0,0,.10); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 14px 30px rgba(18,38,63,.16); }
	.slh-mopen--dropdown.slh-header.is-drawer-open .slh-header__drawer { max-height: 80vh; overflow-y: auto; }
}
