/* ============================================================
   英文站公共头部 eh-header.css
   金色字标 + 圆形描边汉堡（参照 jetmixer.cn 的 menu-trigger）
   + 左侧抽屉菜单（一级面板 / 二级面板）
   index.html（首页）与 public/header.html（内页）共用此文件
   ============================================================ */

:root {
    --eh-gold: #c0a06a;
    --eh-gold-2: #c9a163;
    --eh-ink: #2b2b2b;
    --eh-gray: #6d6d6d;
}

/* ---------- 头部 ---------- */
.eh-head {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(15px, 2.5vw, 33px) clamp(20px, 4vw, 76px);
    box-sizing: border-box;
    pointer-events: none;
    transition: background .3s, padding .3s, box-shadow .3s;
}
.eh-head > * { pointer-events: auto; }

/* 内页：透明头部压在大图上时，需要盖住正文里所有定位元素
   （图片灯箱 z-index 9998/9999 仍在头部之上，打开时照常覆盖） */
body.page-inner .eh-head { z-index: 900; }

.eh-logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(15px, 1.2vw, 22px);
    letter-spacing: normal;
    color: var(--eh-gold);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
    display: block;
}
.eh-logo img {
    display: block;
    height: clamp(19px, 1.2vw, 23px);
    width: auto;
}

/* ---------- 汉堡：3.5rem 圆形描边 + 18×2 三条短横（照 jetmixer menu-trigger） ---------- */
.eh-burger {
    width: 3.5rem;                /* 56px */
    height: 3.5rem;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;                 /* 4px */
    transition: border-color .3s, background .3s;
}
.eh-burger:hover { border-color: rgba(255, 255, 255, .45); }

.eh-burger .bar {
    display: block;
    width: 1.125rem;             /* 18px */
    height: .125rem;             /* 2px */
    border-radius: 1px;
    background: #fff;
    transition: transform .3s cubic-bezier(.22, .61, .36, 1), opacity .3s, background .3s;
}

/* hover（未打开）：上下两条放大 1.2、中间隐去 —— 与参照站一致 */
.eh-head:not(.is-open) .eh-burger:hover .bar:nth-child(1) { transform: scale(1.2); }
.eh-head:not(.is-open) .eh-burger:hover .bar:nth-child(2) { opacity: 0; }
.eh-head:not(.is-open) .eh-burger:hover .bar:nth-child(3) { transform: scale(1.2); }

/* 打开：转成 X（6px = 条高 2 + 间距 4） */
.eh-head.is-open .eh-burger .bar:nth-child(1) { transform: translateY(.375rem) rotate(45deg); }
.eh-head.is-open .eh-burger .bar:nth-child(2) { opacity: 0; }
.eh-head.is-open .eh-burger .bar:nth-child(3) { transform: translateY(-.375rem) rotate(-45deg); }

/* 浅色屏：描边与横线转深色 */
.eh-head.on-light .eh-burger { border-color: rgba(43, 43, 43, .55); }
.eh-head.on-light .eh-burger:hover { border-color: rgba(43, 43, 43, .28); }
.eh-head.on-light .eh-burger .bar { background: #2b2b2b; }
.eh-head.on-light .eh-logo { text-shadow: none; }

/* 内页滚动出 banner 后：白底 + 细描边（深色汉堡/金色字标都清晰） */
.eh-head.is-solid {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
.eh-head.is-solid.is-open { background: transparent; box-shadow: none; }

/* ---------- 抽屉菜单（左侧滑入 + 遮罩 + 右边缘圆形关闭按钮） ---------- */
.eh-veil {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 920;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
}
.eh-veil.on { opacity: 1; visibility: visible; }

.eh-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 36rem;
    height: 100vh;
    z-index: 930;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}
.eh-menu.on { transform: translateX(0); }

/* 关闭按钮：贴在抽屉右边缘中间 */
.eh-close {
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 4rem;
    height: 4rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ededed;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    opacity: 0;
    transform: translateY(-50%);
    transition: color .3s, transform .3s, opacity .3s;
}
.eh-close.on { opacity: 1; }
.eh-close:hover { transform: translateY(-50%) rotate(90deg); }
.eh-close i {
    position: absolute;
    display: block;
    width: 1.35rem;
    height: 2px;
    background: var(--eh-ink);
    border-radius: 1px;
}
.eh-close i:nth-child(1) { transform: rotate(45deg); }
.eh-close i:nth-child(2) { transform: rotate(-45deg); }

/* ---------- 抽屉内容：一级面板 / 二级面板 ---------- */
.eh-menu-body {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.eh-panel {
    position: absolute;
    inset: 0;
    padding: 4.5rem 3rem 2rem;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", "Helvetica Neue", Arial, Helvetica, "microsoft yahei", sans-serif;
    transition: transform .4s cubic-bezier(.22, .61, .36, 1), opacity .35s, visibility .35s;
}

/* 一级面板默认可见；切二级时向左淡出 */
.eh-panel-main { transform: translateX(0); opacity: 1; visibility: visible; }
.eh-panel-main.is-slid { transform: translateX(-40%); opacity: 0; visibility: hidden; }

/* 二级面板默认藏在右侧；进入时滑到 0 */
.eh-panel-sub { transform: translateX(100%); opacity: 0; visibility: hidden; }
.eh-panel-sub.is-active { transform: translateX(0); opacity: 1; visibility: visible; }

/* 一级菜单项 */
.eh-menu-main {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
}
.eh-menu-main li { margin-bottom: clamp(4px, .9vh, 10px); }
.eh-menu-main .eh-link {
    color: var(--eh-ink);
    text-decoration: none;
    font-size: clamp(21px, 1.9vw, 28px);
    font-weight: 600;
    letter-spacing: normal;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: color .25s, padding-left .25s;
}
.eh-menu-main .eh-link em {
    font-style: normal;
    font-family: Arial, sans-serif;
    font-size: .55em;
    color: var(--eh-gold);
    margin-right: 12px;
    font-weight: 400;
    width: 1.9em;
    flex: 0 0 auto;
}
.eh-menu-main .eh-link:hover { color: var(--eh-gold); padding-left: .4rem; }

/* 右侧小箭头（有子栏目的项才出现） */
.eh-arrow {
    width: .5rem;
    height: .5rem;
    margin-left: auto;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
    opacity: .4;
    transition: transform .25s, opacity .25s;
    flex: 0 0 auto;
}
.eh-menu-main .eh-link:hover .eh-arrow { opacity: 1; transform: translateX(3px) rotate(45deg); }

/* 二级面板：返回 */
.eh-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    align-self: flex-start;
    padding: 0 0 .8rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: uppercase;
    color: var(--eh-ink);
    transition: color .25s;
}
.eh-back:hover { color: var(--eh-gold); }
.eh-back-arrow {
    display: block;
    width: .55rem;
    height: .55rem;
    border-left: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}

/* 二级面板：标题 + 列表 */
.eh-sub-h {
    margin: 0;
    padding-bottom: clamp(10px, 1.6vh, 18px);
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    font-size: clamp(12px, .9vw, 14px);
    font-weight: 400;
    letter-spacing: normal;
    text-transform: uppercase;
    color: rgba(43, 43, 43, .5);
}
.eh-sub-list {
    list-style: none;
    margin: 0;
    padding: clamp(10px, 1.6vh, 18px) 0 0;
}
.eh-sub-list li + li { margin-top: 1px; }
.eh-sub-list a {
    display: block;
    padding: .56rem 0;
    color: var(--eh-ink);
    text-decoration: none;
    font-size: clamp(14px, 1vw, 17px);
    letter-spacing: normal;
    transition: color .25s, padding-left .25s;
}
.eh-sub-list a:hover { color: var(--eh-gold); padding-left: .6rem; }

/* 抽屉底部：语言 + 电话 */
.eh-menu-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, .12);
    margin-top: auto;
    padding-top: 16px;
    font-size: 13px;
    letter-spacing: normal;
}
.eh-menu-lang, .eh-menu-tel { color: rgba(43, 43, 43, .78); text-decoration: none; }
.eh-menu-lang:hover, .eh-menu-tel:hover { color: var(--eh-gold); }

/* 菜单打开时锁住页面滚动 */
body.eh-lock { overflow: hidden; }

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
    .eh-menu { max-width: 26.25rem; }
    .eh-panel { padding: 4rem 1.75rem 2rem 2.25rem; }
    .eh-burger { width: 2.5rem; height: 2.5rem; }        /* 40px */
    .eh-burger .bar { width: 1rem; }
    .eh-close {
        width: 3rem;
        height: 3rem;
        top: 1.6rem;
        right: .5rem;
        transform: none;
    }
    .eh-close:hover { transform: rotate(90deg); }
    .eh-close i { width: 1.1rem; }
}
@media (max-width: 767px) {
    .eh-menu { max-width: 100%; }
    .eh-panel { padding: 4rem 1.5rem 1.75rem; }
    .eh-burger { width: 2.75rem; height: 2.75rem; }      /* 44px，触控友好 */
    .eh-menu-main .eh-link { font-size: 19px; }
    .eh-menu-main .eh-link em { margin-right: 8px; }
}
