/* VOOHU 英文站 · Products 下拉菜单 3a「百叶窗 · 横向叶片」
   所有类名以 vhpm- 开头，不影响页面其他样式。数值与设计稿一致，请勿改动。 */
.vhpm-root { display: flex; }
.vhpm-root, .vhpm-panel { font-family: Poppins, "Noto Sans SC", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.vhpm-panel *, .vhpm-root * { box-sizing: border-box; }

/* ---------- 一级导航「Products」 ---------- */
.vhpm-trigger { display: flex; align-items: center; gap: 6px; padding: 12px 8px 8px; border-bottom: 2px solid transparent; font-size: 16px; line-height: 22px; font-weight: 400; color: #595959; text-decoration: none; white-space: nowrap; transition: color .15s ease; }
.vhpm-trigger:hover, .vhpm-trigger.is-open { color: #C30D23; }
.vhpm-trigger.is-current { color: #C30D23; font-weight: 600; border-bottom-color: #C30D23; }
.vhpm-caret { display: inline-block; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.vhpm-trigger.is-open .vhpm-caret { margin-top: 4px; transform: rotate(-135deg); }

/* ---------- 面板：横贯整个页头、紧贴页头下沿 ---------- */
.vhpm-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; display: none; background: #FFFFFF; border-top: 1px solid #E4E4E4; box-shadow: 0 24px 48px rgba(26, 26, 26, .12); text-align: left; white-space: normal; color: #1A1A1A; }
.vhpm-panel.is-open { display: block; }
/* 高度不超过视口（JS 写入 --vhpm-mh），超出时面板内滚动、底栏吸底 */
.vhpm-scroll { max-height: var(--vhpm-mh, 640px); overflow-y: auto; overscroll-behavior: contain; }
.vhpm-panel.is-pinned .vhpm-scroll { max-height: none; overflow: visible; }
.vhpm-wrap { width: 1200px; max-width: 100%; margin: 0 auto; }
.vhpm-list { padding: 8px 0; display: flex; flex-direction: column; gap: 4px; }

/* ---------- 叶片（大类） ---------- */
.vhpm-row { position: relative; overflow: hidden; border: 1px solid #F4F4F4; border-radius: 10px; background: #F4F4F4; box-shadow: 0 0 0 rgba(26, 26, 26, 0); transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.vhpm-row.is-on { background: #FFFFFF; border-color: #E4E4E4; box-shadow: 0 10px 28px rgba(26, 26, 26, .07); }
.vhpm-head { height: 40px; padding: 0 24px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.vhpm-cat { grid-column: 1 / 5; min-width: 0; height: 40px; display: flex; align-items: center; gap: 12px; color: #1A1A1A; text-decoration: none; transition: color .2s ease; }
.vhpm-cat:hover, .vhpm-row.is-on .vhpm-cat { color: #C30D23; }
.vhpm-no { flex: none; width: 24px; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 1px; color: #C30D23; font-variant-numeric: tabular-nums; }
.vhpm-thumb { flex: none; width: 48px; height: 32px; border: 1px solid #E4E4E4; border-radius: 10px; overflow: hidden; background: #FFFFFF; }
.vhpm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vhpm-name { min-width: 0; font-size: 17px; line-height: 24px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vhpm-prevcell { grid-column: 5 / 11; min-width: 0; height: 40px; display: flex; align-items: center; }
.vhpm-prev { min-width: 0; font-size: 14px; line-height: 20px; color: #565B63; white-space: nowrap; overflow: hidden; transition: opacity .25s ease, visibility .25s; }
.vhpm-prev b { font-weight: 600; color: #C30D23; }
.vhpm-row.is-on .vhpm-prev { opacity: 0; visibility: hidden; }
.vhpm-meta { grid-column: 11 / 13; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 13px; line-height: 18px; color: #565B63; white-space: nowrap; }
.vhpm-chev { display: flex; color: #C30D23; transition: transform .3s ease; }
.vhpm-row.is-on .vhpm-chev { transform: rotate(90deg); }

/* ---------- 展开区：0fr → 1fr 平滑展开 ---------- */
.vhpm-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1); }
.vhpm-row.is-on .vhpm-body { grid-template-rows: 1fr; }
.vhpm-clip { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility .45s; }
.vhpm-row.is-on .vhpm-clip { visibility: visible; }
.vhpm-in { padding: 4px 24px 16px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }

/* 左：图片面板（产品图 / FEATURED PARTS / View all），高度由 JS 写入 --vhpm-ch */
.vhpm-photo { grid-column: 1 / 5; position: relative; min-width: 0; height: var(--vhpm-ch, 360px); padding: 20px; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #F4F4F4; opacity: 0; transform: translateX(-12px); transition: opacity .4s ease .08s, transform .5s cubic-bezier(.2, .7, .2, 1) .08s; }
.vhpm-row.is-on .vhpm-photo { opacity: 1; transform: none; }
.vhpm-img { position: relative; flex: 1; min-height: 120px; display: block; overflow: hidden; }
.vhpm-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.vhpm-img:hover img { transform: scale(1.04); }
.vhpm-feat { margin-top: 16px; padding-top: 16px; border-top: 1px solid #E1E4E8; }
.vhpm-feat p { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 1px; color: #565B63; }
.vhpm-chips { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.vhpm-chip { min-width: 0; height: 28px; padding: 0 10px; display: flex; align-items: center; border: 1px solid #E4E4E4; border-radius: 10px; background: #FFFFFF; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #1A1A1A; text-decoration: none; white-space: nowrap; transition: border-color .2s ease, color .2s ease; }
.vhpm-chip:hover { border-color: #C30D23; color: #C30D23; }
.vhpm-allrow { margin-top: 16px; display: flex; align-items: center; }
.vhpm-all { flex: none; height: 40px; padding: 0 14px 0 18px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #C30D23; border-radius: 10px; background: #FFFFFF; font-size: 14px; font-weight: 600; color: #C30D23; text-decoration: none; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.vhpm-all:hover { background: #C30D23; color: #FFFFFF; }
.vhpm-all svg { flex: none; transition: transform .25s ease; }
.vhpm-all:hover svg { transform: translateX(4px); }

/* 右：小类网格（固定 4 列），列跨度 / 标题高度 / 系列行数由 JS 计算 */
.vhpm-grid { grid-column: 5 / 13; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 16px; align-items: start; }
.vhpm-block { min-width: 0; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .4s cubic-bezier(.2, .7, .2, 1); transition-delay: 0s, 0s; }
.vhpm-row.is-on .vhpm-block { opacity: 1; transform: none; transition-delay: var(--vhpm-dl, 0s), var(--vhpm-dl, 0s); }
/* 小类标题：顶部对齐；同一行标题等高，下方 2px 粗线整行对齐 */
.vhpm-sub { height: var(--vhpm-hh, 30px); padding-bottom: 8px; display: flex; align-items: flex-start; border-bottom: 2px solid #1A1A1A; font-size: 14px; line-height: 20px; font-weight: 600; color: #1A1A1A; text-decoration: none; text-wrap: pretty; transition: color .15s ease; }
.vhpm-sub:hover { color: #C30D23; }
.vhpm-series { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--vhpm-k, 1), minmax(0, 1fr)); grid-template-rows: repeat(var(--vhpm-rows, 1), 28px); grid-auto-flow: column; column-gap: 24px; }
.vhpm-series li { min-width: 0; }
.vhpm-series a { --ar: #C9CED6; height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 6px; border-bottom: 1px solid #EEF0F2; font-size: 13px; line-height: 18px; font-weight: 500; color: #1A1A1A; text-decoration: none; white-space: nowrap; transition: color .15s ease; }
.vhpm-series a span { min-width: 0; }
.vhpm-series a svg { flex: none; color: var(--ar); transition: color .15s ease; }
.vhpm-series a:hover { --ar: #C30D23; color: #C30D23; }

/* ---------- 底栏（吸底） ---------- */
.vhpm-foot { position: sticky; bottom: 0; z-index: 2; background: #FFFFFF; border-top: 1px solid #E4E4E4; }
.vhpm-panel.is-pinned .vhpm-foot { position: relative; }
.vhpm-foot .vhpm-wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.vhpm-foot-l { min-width: 0; display: flex; align-items: center; gap: 16px; }
.vhpm-overview { font-size: 14px; line-height: 20px; font-weight: 600; color: #C30D23; text-decoration: none; white-space: nowrap; transition: color .15s ease; }
.vhpm-overview:hover { color: #8A0A18; }
.vhpm-vr { flex: none; width: 1px; height: 16px; background: #E4E4E4; }
.vhpm-tot { font-size: 13px; line-height: 18px; color: #565B63; white-space: nowrap; }
.vhpm-foot-r { flex: none; display: flex; gap: 12px; }
.vhpm-btn { height: 40px; padding: 0 18px; display: inline-flex; align-items: center; border: 1px solid #C30D23; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.vhpm-btn-primary { background: #C30D23; color: #FFFFFF; }
.vhpm-btn-primary:hover { background: #8A0A18; border-color: #8A0A18; color: #FFFFFF; }
.vhpm-btn-ghost { background: #FFFFFF; color: #C30D23; }
.vhpm-btn-ghost:hover { background: #C30D23; color: #FFFFFF; }

.vhpm-panel :focus-visible, .vhpm-trigger:focus-visible { outline: 2px solid #C30D23; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .vhpm-panel *, .vhpm-panel, .vhpm-root * { transition-duration: 0s !important; transition-delay: 0s !important; } }
