/* =============================================================================
   YHZL 基础样式（新首屏专用，自包含，不依赖 Tailwind / Font Awesome）
   版本：YHZL_HOME_V1_BASE
   改动本文件不需要改 HTML。
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
    /* 主色：沿用原站深蓝，保持品牌连续性 */
    --navy:        #1e3a8a;   /* 导航、强调文字 */
    --navy-dark:   #0a1e32;   /* 首屏底色、页脚 */
    --navy-soft:   #2947a3;
    --ink:         #111827;   /* 正文标题 */
    --ink-2:       #374151;   /* 正文 */
    --ink-3:       #6b7280;   /* 次要文字 */

    /* 强调色：只用于主行动按钮，引导视线 */
    --accent:      #f97316;
    --accent-dark: #ea580c;

    --line:        #e5e7eb;
    --bg-soft:     #f8fafc;
    --white:       #ffffff;

    --radius:      10px;
    --radius-sm:   8px;
    --shadow-sm:   0 1px 2px rgba(16, 24, 40, .06);
    --shadow:      0 4px 16px rgba(16, 24, 40, .08);
    --shadow-lg:   0 12px 32px rgba(16, 24, 40, .12);

    --container:   1200px;
    --header-h:    68px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, "Noto Sans", sans-serif;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(28px, 5.2vw, 52px); letter-spacing: -.02em; }
h2 { font-size: clamp(22px, 3.4vw, 34px); letter-spacing: -.01em; }
h3 { font-size: 18px; font-weight: 700; }
p  { margin: 0 0 1em; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; cursor: pointer; }

/* 图标：内联 SVG 统一描边风格 */
.ico {
    width: 20px; height: 20px;
    fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    flex: none;
}
.ico-sm { width: 14px; height: 14px; }
.ico-lg { width: 28px; height: 28px; stroke-width: 1.6; }

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--ink-3); margin: 0; }
.section-title-sm { text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .12em;
                    text-transform: uppercase; color: var(--ink-3); margin-bottom: 24px; }
.section-foot { text-align: center; margin-top: 36px; }
.nowrap { white-space: nowrap; }

/* 无障碍：屏幕阅读器专用 */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px;
    transition: top .15s;
}
.skip-link:focus { top: 0; text-decoration: none; }

:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; border-radius: 4px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 12px 22px;
    border-radius: var(--radius-sm); border: 1px solid transparent;
    font-size: 15px; font-weight: 700; letter-spacing: .01em;
    text-decoration: none; white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-dark); }

.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--navy-dark); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: #fff; color: var(--navy-dark); }

.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn-lg { min-height: 54px; padding: 15px 30px; font-size: 16px; }

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 2px 10px rgba(10, 30, 50, .18);
}
.header-inner { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }

/* 窄屏给 logo 和按钮更多呼吸空间，避免右侧被裁切 */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .header-inner { gap: 10px; }
    .header-right { gap: 6px; }
    .lang-btn { padding: 8px 10px; font-size: 13px; }
}

.brand { display: flex; align-items: center; gap: 9px; color: #fff; flex: none; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: auto; flex: none; }
/* 公司名：窄屏也要显示（用户反馈手机上看不到公司名），字号缩小以腾出空间 */
.brand-text {
    display: inline;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* ==========================================================================
   窄屏头部布局
   （用户反馈：手机上语言按钮和汉堡按钮挤在一起、语言按钮被裁切）
   策略：按空间逐级压缩 —— 先收起公司名后半段，再收起地球图标，
         保证「语言按钮 + 汉堡按钮」两个都完整可见、互不重叠。
   ========================================================================== */
@media (max-width: 560px) {
    .header-inner { gap: 10px; }
    .header-right { gap: 6px; flex: none; }
    .brand img { width: 38px; }
    .brand-text { font-size: 11.5px; letter-spacing: .02em; }
    .brand-text-tail { display: none; }        /* 只留 "YUNHAN ZHILAN" */
    .lang-btn { padding: 8px 10px; gap: 5px; font-size: 13px; }
    .lang-btn .ico { width: 17px; height: 17px; }
    .nav-toggle { width: 42px; height: 42px; }
}
@media (max-width: 400px) {
    .header-inner { gap: 8px; }
    .header-right { gap: 5px; }
    .brand { gap: 7px; }
    .brand img { width: 34px; }
    .brand-text { font-size: 11px; }
    .lang-btn { padding: 7px 9px; }
    .lang-globe { display: none; }             /* 空间最紧时只留 EN + 箭头 */
    .nav-toggle { width: 40px; height: 40px; padding: 0; }
    .nav-toggle-bar { width: 19px; }
}

.desktop-nav { display: none; margin-left: auto; gap: 28px; }
.desktop-nav a {
    color: rgba(255,255,255,.9); font-size: 14px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.desktop-nav a:hover { color: #fff; text-decoration: none; border-bottom-color: rgba(255,255,255,.45); }
.desktop-nav a.is-active { color: #fff; border-bottom-color: var(--accent); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }

/* 语言切换 */
.lang-switch { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 6px;
    background: transparent; border: 1px solid rgba(255,255,255,.35);
    color: #fff; border-radius: var(--radius-sm);
    padding: 8px 12px; font-size: 14px; font-weight: 700;
    min-height: 44px;
}
.lang-btn:hover { background: rgba(255,255,255,.12); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    min-width: 190px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    padding: 6px; display: none; z-index: 120;
}
.lang-menu.is-open { display: block; }
.lang-menu a {
    display: block; padding: 11px 14px; border-radius: 6px;
    color: var(--ink-2); font-size: 14px; font-weight: 600;
}
.lang-menu a:hover { background: #eff6ff; color: var(--navy); text-decoration: none; }
.lang-menu a.is-current { color: var(--navy); background: #eff6ff; font-weight: 800; }

/* 汉堡菜单按钮（<1024px 显示）
   注意：宽度要留足、且不能被右侧裁切 —— 之前 46px + 无右留白，
   在 390px 手机上被挤到屏幕边缘、边框被裁，看起来像个空白框。 */
.nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px;
    width: 44px; height: 44px; padding: 0;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.55);
    border-radius: var(--radius-sm);
    flex: none;
    box-sizing: border-box;
}
.nav-toggle:hover { background: rgba(255,255,255,.18); }
/* 三根线：加长加粗，保证在手机上看得清 */
.nav-toggle-bar {
    display: block; width: 22px; height: 2.5px;
    background: #fff; border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* 移动端抽屉 */
/* 注意：自定义 display 会覆盖浏览器对 [hidden] 的默认 display:none，
   所以必须显式写下面这两条，否则抽屉在静止状态下也会被绘制出来。 */
.mobile-nav[hidden], .mobile-nav-backdrop[hidden] { display: none !important; }

.mobile-nav-backdrop {
    position: fixed; inset: 0; background: rgba(10, 30, 50, .5);
    z-index: 140; backdrop-filter: blur(2px);
}
.mobile-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
    /* 用固定像素上限，避免 vw 在部分移动浏览器（含 iOS 滚动条）下算宽导致内容被挤出 */
    width: 340px; max-width: 88%;
    background: #fff;
    padding: 0 0 calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto; overflow-x: hidden;
    box-shadow: -8px 0 32px rgba(10,30,50,.22);
    display: flex; flex-direction: column;
}
.mobile-nav > * { max-width: 100%; }
.mobile-nav-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--line);
    font-weight: 800; color: var(--ink); letter-spacing: .08em; text-transform: uppercase; font-size: 13px;
}
.mobile-nav-close {
    background: none; border: 0; font-size: 30px; line-height: 1;
    color: var(--ink-3); width: 44px; height: 44px;
}
.mobile-nav > a {
    padding: 16px 20px; border-bottom: 1px solid var(--line);
    color: var(--ink); font-weight: 700; font-size: 16px;
}
.mobile-nav > a:hover { background: var(--bg-soft); text-decoration: none; }
.mobile-nav-lang { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mobile-nav-lang-label {
    display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px;
}
.mobile-nav-lang-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-nav-lang-list a {
    border: 1px solid var(--line); border-radius: 999px;
    padding: 9px 15px; font-size: 14px; font-weight: 600; color: var(--ink-2);
    min-height: 40px; display: inline-flex; align-items: center;
}
.mobile-nav-lang-list a:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.mobile-nav-lang-list a.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.mobile-nav-cta { margin: 20px; }

/* ---------- 页脚 ---------- */
.site-footer {
    background: var(--navy-dark); color: rgba(255,255,255,.72);
    padding: 56px 0 24px; font-size: 14px;
}
.footer-grid {
    display: grid; gap: 32px;
    grid-template-columns: 1fr;
}
.footer-brand strong { color: #fff; display: block; margin-bottom: 10px; font-size: 15px; }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 34ch; }
/* 页脚社交图标：深灰圆底 + 白色图标（复刻旧版 fab fa-linkedin-in / fa-whatsapp / fa-envelope） */
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%;
    background: #1f2937;                 /* 旧版的 bg-gray-800 */
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background-color .25s;
}
.footer-social a:hover { background: #2563eb; text-decoration: none; }  /* 旧版的 hover:bg-blue-600 */
.footer-social .fs-ico { width: 18px; height: 18px; fill: currentColor; display: block; }
.footer-col h3 {
    color: #fff; font-size: 13px; letter-spacing: .12em;
    text-transform: uppercase; margin-bottom: 14px;
}
.footer-col a { display: block; color: rgba(255,255,255,.72); padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: rgba(255,255,255,.6); }
.footer-bottom {
    margin-top: 40px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex; flex-wrap: wrap; gap: 12px 20px;
    align-items: center; justify-content: space-between;
    font-size: 13px; color: rgba(255,255,255,.55);
}
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-langs a {
    border: 1px solid rgba(255,255,255,.2); border-radius: 6px;
    padding: 5px 10px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700;
}
.footer-langs a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }

/* ---------- WhatsApp 悬浮球 ---------- */
.wa-fab {
    position: fixed; right: 18px; z-index: 90;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .42);
}
.wa-fab svg { width: 30px; height: 30px; fill: currentColor; }
.wa-fab:hover { background: #1da851; }

/* ---------- 骨架屏 ---------- */
.skeleton-card, .cat-card--skeleton {
    border-radius: var(--radius); background: #eef2f7;
    min-height: 210px; animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- 响应式 ---------- */
@media (min-width: 768px) {
    .section { padding: 80px 0; }
    .brand-text { display: inline; }
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
}

@media (min-width: 1024px) {
    .desktop-nav { display: flex; }
    .nav-toggle { display: none; }
    .mobile-nav, .mobile-nav-backdrop { display: none !important; }
    .header-right { margin-left: 0; }
    .brand-text { font-size: 16px; }
}

/* 尊重用户的减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =============================================================================
   YHZL_HOME_NAV_ALIGN_V2 —— 首页头部与全站观感对齐（纯样式 · 强化版）
   包名：yhzl-home-align-03   日期：2026-10-11
   v2 加强点：选择器提升 + box-shadow/outline 清零，防止被既有规则覆盖
   ============================================================================= */

/* --- 1) 语言按钮彻底去框（多选择器 + 清零所有边框相关属性） --- */
.lang-switch .lang-btn,
.header-right .lang-btn,
button.lang-btn,
.lang-btn {
    border: 0 none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    background: transparent !important;
    padding: 8px 6px !important;
    min-height: 40px !important;
}
.lang-switch .lang-btn:hover,
.lang-btn:hover { background: rgba(255, 255, 255, .10) !important; }

/* --- 2) 桌面端：隐藏短名，只显长名 --- */
.brand-text > .brand-mob { display: none !important; }
.brand-text > .brand-desk { display: inline !important; }

/* --- 3) 手机端：只显短名 YHZL ELECTRONICS --- */
@media (max-width: 767px) {
    .brand-text > .brand-desk { display: none !important; }
    .brand-text > .brand-mob  { display: inline !important; }
}

/* YHZL_HOME_NAV_ALIGN_V3 —— 头部三处修正（兜底，配合内联样式） */
.lang-switch .lang-btn, button.lang-btn { border: 0 none !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important; outline: 0 !important;
    padding: 8px 6px !important; min-height: 40px !important; }
.nav-toggle, #navToggle { border: 0 none !important; background: transparent !important;
    box-shadow: none !important; outline: 0 !important; }
.lang-btn .lang-globe, .lang-btn svg.ico:first-of-type { display: inline-block !important;
    width: 16px !important; height: 16px !important; }

/* =============================================================================
   YHZL_HOME_NAV_ALIGN_V4 —— 手机端按钮加回「浅色圆角底」（对齐产品页）
   包名：yhzl-home-align-05   日期：2026-10-11
   说明：产品页(site-nav)的 EN 与汉堡按钮带一层浅色圆角底，
        首页原来只有硬边框(丑) → v4 去掉了 → 现在按产品页的样子加回柔和底色。
        仅手机端(<1024px)；桌面端保持无底。
   ============================================================================= */
@media (max-width: 1023px) {
    .lang-switch .lang-btn,
    .header-right .lang-btn,
    button.lang-btn {
        background: rgba(255, 255, 255, .10) !important;
        border: 0 none !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        padding: 8px 10px !important;
        min-height: 40px !important;
    }
    .lang-switch .lang-btn:hover,
    button.lang-btn:hover { background: rgba(255, 255, 255, .18) !important; }

    .nav-toggle,
    #navToggle {
        background: rgba(255, 255, 255, .10) !important;
        border: 0 none !important;
        border-radius: 8px !important;
        box-shadow: none !important;
    }
    .nav-toggle:hover,
    #navToggle:hover { background: rgba(255, 255, 255, .18) !important; }

    /* 地球图标：手机上必须显示（与产品页一致） */
    .lang-btn .lang-globe,
    .lang-btn svg.ico:first-of-type {
        display: inline-block !important;
        width: 16px !important; height: 16px !important;
    }
}

/* =============================================================================
   YHZL_HOME_NAV_SIZE_ALIGN_V1 —— 首页抬头栏尺寸与全站基准页(products.html)对齐
   包名：yhzl-nav-unify-01      日期：2026-10-12

   为什么要这一段
   --------------
   全站 41 个页面（products / category / product / about / contact / 各语言
   index）的抬头栏完全一致；只有首页 /yhzl-xinyouhua/ 用的是 base.css 这套
   独立样式，尺寸和字号都和别页不一样，看上去不像同一个站：

                            首页(改前)        基准页 products.html
     抬头栏总高              68px             72px
     导航容器                1200px / 20px    1280px / 16px
     logo 高                 34px             48px
     公司名字号              16px             20px
     公司名字重              800              700
     公司名字距              .04em            .05em
     导航链接字重            700              500
     导航链接字距            .05em            .025em
     导航项间距              28px             24px
     当前项下划线色          --accent(橙)     #93c5fd(blue-300)
     语言块左侧分隔线        无               有(1px #1d4ed8)
     地球图标                20px 细线描边    16px 实心

   这一段只在 ≥768px 生效；手机端(<768px)首页那套已经调好的窄屏头部不动。

   基准页的原始写法（Tailwind，供核对）：
     <div class="max-w-7xl mx-auto px-4">
       <div class="nav-inner flex justify-between items-center py-3">
         <img class="nav-logo h-9 md:h-12 object-contain">
         <span class="nav-title text-lg md:text-xl font-bold tracking-wider uppercase">
         <div class="hidden md:flex space-x-6 font-medium text-sm uppercase tracking-wide items-center">
           <a class="... pb-1 border-b-2 border-transparent hover:border-blue-300">
           <a class="text-blue-300 transition border-b-2 border-blue-300 pb-1">   ← 当前项
           <div class="pl-6 ml-2 border-l border-blue-700 ... py-2">
   ============================================================================= */

@media (min-width: 768px) {
    /* --- 1) 抬头栏总高 68px -> 72px（py-3 12px×2 + logo 48px） --- */
    :root { --header-h: 72px; }
    .header-inner { min-height: var(--header-h); gap: 16px; }

    /* --- 2) 导航容器：与基准页一致 —— 满宽 + 左右各 16px
       （基准页写的是 max-w-7xl mx-auto px-4，但 site-nav.css 里有一条
         #mainNav .max-w-7xl { max-width: 100% !important }，
         所以实测左右内容起点就是 16px，并没有 1280px 的居中限制） --- */
    .site-header .container { max-width: none; padding-left: 16px; padding-right: 16px; }

    /* --- 3) logo：宽 46px -> 高 48px（与产品页 h-12 一致，按原图比例定宽） --- */
    .brand { gap: 16px; }
    .brand img { width: auto; height: 48px; }

    /* --- 4) 公司名：16px/800/.04em -> 20px/700/.05em --- */
    .brand-text {
        font-size: 20px;
        font-weight: 700;
        letter-spacing: .05em;
    }

    /* --- 5) 语言块地球图标：细线描边 SVG -> 同 blogs 页的实心地球 ---
       首页不引外部图标库，所以用的是内联的 Font Awesome 实心 globe 路径。
       尺寸 16px = 产品页 <i class="fas fa-globe text-base"> 的 1em（base.css 已定死）。 */

    /* 下拉箭头 12px（产品页那个内联 SVG 就是 width="12" height="12"） */
    .lang-btn .lang-chev { width: 12px !important; height: 12px !important; opacity: .7; }
}

/* --- 5b) 地球图标的填充方式：手机、桌面都要，所以不放进媒体查询 ---
   base.css 里 .ico 是 fill:none + stroke:currentColor（描边风格）；
   换成 Font Awesome 的实心 globe 路径之后必须改成填充，否则手机上会
   渲染成一个空心中括号（描边版的轮廓），比原来那个细线地球还难看。
   尺寸沿用 base.css 已有的 16px（.lang-btn .lang-globe），这里不动。 */
.lang-btn .lang-globe,
.lang-btn svg.ico:first-of-type {
    fill: currentColor !important;
    stroke: none !important;
}

@media (min-width: 1024px) {
    /* --- 6) 导航链接：700/.05em -> 500/.025em，间距 28px -> 24px --- */
    .desktop-nav { gap: 24px; }

    .desktop-nav a {
        color: #fff;
        font-weight: 500;
        letter-spacing: .025em;
        padding: 0 0 4px;          /* 产品页 pb-1 */
    }
    .desktop-nav a:hover {
        color: #93c5fd;            /* hover:text-blue-300 */
        border-bottom-color: #93c5fd;
    }
    .desktop-nav a.is-active {
        color: #93c5fd;            /* text-blue-300 */
        border-bottom-color: #93c5fd;
    }

    /* --- 7) 语言块左侧的 1px 分隔线（产品页 pl-6 ml-2 border-l border-blue-700） --- */
    .header-right {
        margin-left: 8px;
        padding-left: 24px;
        border-left: 1px solid #1d4ed8;
    }
}
/* ===== YHZL_HOME_NAV_SIZE_ALIGN_V1_APPLIED ===== */


/* ===== YHZL_HOME_NAV_MOBILE_ALIGN_V1_APPLIED ===== */

/* =============================================================================
   YHZL_HOME_NAV_MOBILE_ALIGN_V1 —— 首页手机端抬头栏的 logo / 公司名对齐全站基准
   包名：yhzl-nav-unify-02        日期：2026-10-12

   问题
   ----
   首页 /yhzl-xinyouhua/ 在手机上的 logo 和「YHZL ELECTRONICS」比别的页面
   小一圈（用户反馈）。

   根因
   ----
   其它 43 个页面的手机端头部由 /assets/mobile/site-nav.css 统一接管，
   里面写死了这两个值：
       #mainNav .nav-logo,
       #mainNav.nav-scrolled .nav-logo { height: 36px }
       #mainNav .nav-inner > div:first-child > span {
           font-size: 0.85rem; letter-spacing: 0 }

   而首页是自包含页面，<head> 里只引了
       assets/base.css  +  assets/home.css
   **根本没有引用 site-nav.css**，所以 base.css 那套「按宽度逐级缩小」的规则
   一路生效到底：
       基础      .brand img { width: 46px }    .brand-text { 12.5px }
       ≤560px    .brand img { width: 38px }    .brand-text { 11.5px }
       ≤400px    .brand img { width: 34px }    .brand-text { 11px }

   实测（手机 380 CSS px 宽截图，两张图同一台手机同一缩放）：
       首页    logo 34px 宽 → 25.4px 高        公司名 11px
       其它页  logo 36px 高（→48.2px 宽）      公司名 0.85rem = 13.6px
       比值    0.69                            0.81

   处理
   ----
   手机端(<768px)把首页这两个值改成与 site-nav.css 里完全相同的数值。
   本段在 base.css 的最后，能盖掉前面那些 width / font-size 阶梯。
   手机端其它已经调好的部分（语言按钮与汉堡按钮的底色、尺寸、间距）
   一个字没动；桌面端(≥768px)不受影响。

   ⚠️ 不要在这里加「≤343px 隐藏公司名」——
      site-nav.css 里那条 #mainNav .nav-inner > div:first-child > span 的
      超窄屏规则，在本页结构下并不生效（实测 320px 时其它页面照样显示公司名）。
      首页这边也跟着显示，才和它们一致。写成 display:none 反而会不一样。
   ============================================================================= */

@media (max-width: 767px) {
    /* logo：其它页面按「高度 36px」定，不是按宽度定 —— 必须写 height，
       否则 base.css 里 width:34px/38px 会继续按宽度锁住它 */
    .brand img { width: auto; height: 36px; }

    /* 公司名：0.85rem + 无字距，与 site-nav.css 的第 430 行一致 */
    .brand-text { font-size: 0.85rem; letter-spacing: 0; }
}
