/* ============================================================
   顶部导航 header 必备样式 — 从 header.blade.php 抽出
   引入位置：layouts/home.blade.php + layouts/app.blade.php
   引入时机：在 Tailwind CDN 之后加载（保证选择器覆盖 Tailwind）
   
   ⚠️ 大量使用 !important 是有意为之：
   1) Tailwind CDN 加载失败时仍能保证 header 渲染正确（兜底）
   2) 覆盖老模板 global.css 的 .hidden { visibility:hidden } 污染
   3) 覆盖老模板 global.css 的全局 a/button 默认样式
   
   任何修改前请先阅读 header.blade.php 顶部的"关键样式回退"说明。
   ============================================================ */

/* ---- 核心修复：老模板 global.css 的 .hidden { visibility:hidden } 覆盖所有 Tailwind 响应式元素 ----
   Tailwind hidden 只设 display:none，响应式类（sm:flex, md:flex）只覆盖 display。
   global.css 的 .hidden 额外加了 visibility:hidden，响应式类覆盖 display 后，元素变成
   display:flex + visibility:hidden → 不可见。本规则将 header 内所有 .hidden 的 visibility
   重置为 visible，display:none 仍会正确隐藏（直到响应式类覆盖 display）。 ---- */
#site-header .hidden { visibility: visible !important; }

/* ---- 导航布局（回退 Tailwind utility classes） ---- */
#site-header,
body.has-hero #site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
    width: 100% !important;
    border-bottom: 1px solid #f3f4f6;
}
/* 内层容器 */
#site-header > div > div:first-of-type {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 64px !important;
}
/* Logo容器 */
#site-header .flex.items-center.gap-2.shrink-0,
#site-header a[href="/"] {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}
/* 桌面端 nav（>= 1024px）— 关键：覆盖 global.css 的 visibility:hidden */
@media (min-width: 1024px) {
    #site-header nav:not(#mobile-menu nav) {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        visibility: visible !important;  /* ⭐ 覆盖 global.css .hidden { visibility:hidden } */
    }
    /* nav 链接样式 */
    #site-header nav:not(#mobile-menu nav) a {
        padding: 8px 16px !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        transition: color 0.2s, background-color 0.2s !important;
    }
}
/* 移动端 hamburger 保持隐藏（桌面端）*/
@media (min-width: 1024px) {
    button.lg\:hidden,
    #site-header button[onclick="toggleMobileMenu()"] {
        display: none !important;
    }
}
/* 右侧按钮组 */
#site-header .flex.items-center.gap-3.shrink-0 {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}
/* 登录/注册按钮 */
#header-auth-guest a:last-child {
    display: inline-flex !important;
    padding: 8px 16px !important;
    background: #0052D9 !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
#header-auth-guest a:first-child {
    display: inline-flex !important;
    padding: 8px 16px !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
#header-auth-guest.hidden {
    display: none !important;
}

/* ==========================================================
   ⭐ 隔离旧模板 global.css 对 header 全局污染
   ========================================================== */
/* 全局 a 规则覆盖 */
#site-header a {
    text-decoration: none !important;
}
#site-header a:hover {
    text-decoration: none !important;
}
/* 全局 button 规则覆盖 */
#site-header button {
    border: none !important;
    background: transparent !important;
}

/* 搜索按钮 */
#site-header button[onclick="toggleHeaderSearch()"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    color: #6b7280 !important;
}
#site-header button[onclick="toggleHeaderSearch()"]:hover {
    background: #f3f4f6 !important;
    color: #0052D9 !important;
}

/* 用户区域（已登录状态）— 只有非 hidden 时才 flex 显示 */
#header-auth-user.hidden {
    display: none !important;
}
#header-auth-user:not(.hidden) {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
}

/* 用户头像 */
#header-user-avatar,
#dropdown-user-avatar,
#mobile-user-avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #E8F4FF !important;
    color: #0052D9 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
}

/* 用户名称 */
#header-user-name,
#dropdown-user-name,
#mobile-user-name {
    display: inline !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    max-width: 100px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* 下拉箭头 */
#header-user-arrow {
    transition: transform 0.2s !important;
    color: #9ca3af !important;
    width: 16px !important;
    height: 16px !important;
}

/* 用户下拉框 */
#header-user-dropdown {
    position: absolute !important;
    right: 0 !important;
    top: 100% !important;
    margin-top: 4px !important;
    width: 224px !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05) !important;
    border: 1px solid #f3f4f6 !important;
    padding: 4px !important;
    z-index: 50 !important;
}
#header-user-dropdown:not(.hidden) {
    display: block !important;
}

/* 下拉框 — 用户信息头 */
#header-user-dropdown > div:first-child {
    padding: 12px 16px !important;
    border-bottom: 1px solid #f3f4f6 !important;
}
#header-user-dropdown > div:first-child > div {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
#dropdown-user-name {
    font-weight: 500 !important;
    color: #1f2937 !important;
    font-size: 14px !important;
}
#dropdown-user-role {
    font-size: 12px !important;
    color: #6b7280 !important;
}

/* 下拉框 — 菜单项 */
#header-user-dropdown a[href] {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #374151 !important;
    border-radius: 4px !important;
    transition: background 0.15s !important;
}
#header-user-dropdown a[href]:hover {
    background: #f9fafb !important;
    color: #374151 !important;
}

/* 下拉框 — 退出按钮 */
#header-user-dropdown button[onclick="headerLogout()"] {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #dc2626 !important;
    width: 100% !important;
    text-align: left !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    border-top: 1px solid #f3f4f6 !important;
    margin-top: 4px !important;
    padding-top: 10px !important;
}
#header-user-dropdown button[onclick="headerLogout()"]:hover {
    background: #fef2f2 !important;
}

/* 搜索展开栏 */
#header-search-bar {
    background: #f9fafb !important;
    border-top: 1px solid #f3f4f6 !important;
}
#header-search-bar:not(.hidden) {
    display: block !important;
}
#header-search-bar form {
    display: flex !important;
    gap: 8px !important;
    max-width: 672px !important;
    margin: 0 auto !important;
    padding: 12px 16px !important;
}
#header-search-bar input {
    flex: 1 !important;
    padding: 10px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    outline: none !important;
}
#header-search-bar input:focus {
    border-color: #0052D9 !important;
    box-shadow: 0 0 0 3px rgba(0,82,217,0.1) !important;
}
#header-search-bar button[type="submit"] {
    padding: 10px 24px !important;
    background: #0052D9 !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

/* 移动端菜单 */
#mobile-menu {
    background: #fff !important;
    border-top: 1px solid #f3f4f6 !important;
}
#mobile-menu:not(.hidden) {
    display: block !important;
}
#mobile-menu a {
    display: block !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    color: #374151 !important;
    border-radius: 6px !important;
    transition: background 0.15s, color 0.15s !important;
}
#mobile-menu a:hover {
    background: #f9fafb !important;
    color: #0052D9 !important;
}
#mobile-auth-guest a:first-child,
#mobile-auth-guest a:last-child {
    display: block !important;
    text-align: center !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}
#mobile-auth-guest a:first-child {
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
}
#mobile-auth-guest a:last-child {
    background: #0052D9 !important;
    color: #fff !important;
}
#mobile-auth-user > div:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    background: #f9fafb !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
}

/* body has-hero padding — 防止 JS 尚未执行时内容被覆盖 */
body.has-hero {
    padding-top: 64px !important;
}


/* ============================================================
   滚动状态 hero-header 样式切换（从 header.blade.php line 703 抽出）
   ============================================================ */
.hero-header {
    background: rgba(255,255,255,0.25) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom-color: rgba(255,255,255,0.15) !important;
}
.hero-header.scrolled {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom-color: #f0f0f0 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}


/* ============================================================
   ⭐ nav-dropdown 下拉面板兜底样式（修复 Tailwind utility 未编译的渲染问题）
   替代 partials/_nav-dropdown.blade.php 中失效的 Tailwind 类：
     fixed left-0 right-0 top-16 w-screen bg-white shadow-xl border-t-2 border-transparent invisible z-40
   顶部 border-color: #ecececed（fix9 设计的浅灰横线）
   visibility/opacity/transform 由 header.blade.php 内联 style 控制（保持现有逻辑）
   ============================================================ */
#site-header .nav-dropdown {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 64px !important;                /* h-16 = 64px，紧贴 nav 下方 */
    width: 100vw !important;             /* 全屏宽 */
    background: #fff !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04) !important;
    border-top: 2px solid #ecececed !important;
    z-index: 40 !important;
}


/* ============================================================
   ⭐ nav-item 顶级菜单 hover/active 底部蓝色下划线兜底
   替代 header.blade.php 中失效的 Tailwind 类：
     border-b-2 / border-transparent / hover:border-primary / border-primary
   视觉效果：默认 2px 透明边框；hover/active 时变 #0052D9 蓝
   关键：不依赖 Tailwind CDN 编译，所有状态都正确显示

   2026-07-14 老板反馈：8 个顶级菜单每个太宽（104-135px），希望压缩以便放更多菜单
   改动：
     - #J_mainNavWrapper 用 flex:1 1 auto 占据中间所有剩余空间（logo/右侧操作区不收缩）
     - .nav-item 用 flex:1 1 0 等分剩余空间 + min-width:88px 防变形 + max-width:140px 防撑爆
     - .nav-menu 文字居中 + white-space:nowrap 不换行 + 紧凑 padding
   效果：
     - 8 个菜单 → 每个约 115px（之前 104-135px 混合）
     - 10 个菜单 → 每个约 92px（自动收缩）
     - 12 个菜单 → 每个约 88px（min-width 兜底，文字不被压扁）
   ============================================================ */
#site-header #J_mainNavWrapper {
    /* 2026-07-14 老板反馈：菜单贴着 logo 不雅观，要菜单集合居中
       改前：flex: 1 1 auto（占满中间所有剩余空间）→ 第一个菜单贴 logo ❌
       改后：flex: 0 0 auto（按内容撑开）+ max-width 880px（防止菜单过多撑爆）
              父容器 justify-content: space-between 自动把 ul 推到中间居中 ✅
       效果：
         - 8 个菜单：ul 总宽 ~880px，logo 与 ul 之间留 20px，ul 与右侧操作区之间留 20px
         - 6 个菜单：ul 总宽 ~840px，留 40px（仍居中）
         - 5 个菜单：ul 总宽 ~700px，留 110px（仍居中）
         - 10 个菜单：ul 总宽 ~880px（min-width:88px 兜底），留 20px */
    flex: 0 0 auto !important;
    max-width: 880px !important;
}
#site-header .nav-item {
    /* 2026-07-14 v2 老板反馈：菜单 flex 等分导致"首页"右边空白太多（110px 撑开短文字）
       改前：flex: 1 1 0（强制等分 ul 宽度）+ min/max-width 88/140px → 短文字菜单右边大量空白 ❌
       改后：移除 flex 等分 + 移除 max-width，让菜单宽度 = 文字自然宽度 + padding
              只保留 min-width: 60px 兜底（防止 1-2 字菜单过窄）
       效果：
         - "首页"（2字）：~52px（之前 110px，节省 58px）✅
         - "域名注册"（4字）：~80px ✅
         - "云建站·小程序"（7字）：~110px ✅
         - 菜单集合总宽 ~650px，集合居中，左右各留 ~135px */
    min-width: 60px !important;
    border-bottom: 2px solid transparent !important;
    transition: border-color 0.15s ease-in-out;
}
#site-header .nav-menu {
    text-align: center !important;
    white-space: nowrap !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    justify-content: center !important;
}
#site-header .nav-item:hover,
#site-header .nav-item.border-primary,
#site-header .nav-item.is-active {
    border-bottom-color: #0052D9 !important;
}


/* ============================================================
   ⭐ nav-dropdown 三栏 flex 兜底（最终完美方案 P4：内容驱动紧凑布局）
   替代 partials/_nav-dropdown.blade.php 中失效的 Tailwind 类：
     grid grid-cols-12 + col-span-9 + col-span-3 (失效时整列占满 12 列)
   视觉效果：
     容器 1280px + flex 横向
     左：分类（flex:0 1 auto + grid minmax 内容驱动，列间距紧凑不浪费）
     中：QA（flex:0 1 auto + max-width:220px 内容驱动）
     右：广告图（flex:0 0 244px + margin-left:auto 推到最右，固定 244×123）
   对标：老模板 www.9zsm.com 1190px 容器 + 内容驱动列宽
   关键：不依赖 Tailwind CDN 编译，所有状态都正确显示
   ============================================================ */
#site-header .nav-dropdown-inner {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    gap: 24px !important;
    width: 1280px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 24px !important;
    box-sizing: border-box !important;
}
#site-header .nav-cats {
    flex: 0 1 auto !important;
    min-width: 0 !important;
}
#site-header .nav-cats-grid {
    display: grid !important;
    gap: 24px !important;
}
#site-header .nav-qa {
    flex: 0 1 auto !important;
    min-width: 100px !important;
    max-width: 220px !important;
}
#site-header .nav-advert {
    flex: 0 0 244px !important;
    width: 244px !important;
}
#site-header .nav-advert a {
    display: block !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    line-height: 0 !important;
}
#site-header .nav-advert img,
#site-header .nav-advert .advert-img {
    width: 244px !important;
    height: 123px !important;
    display: block !important;
    border-radius: 6px !important;
    object-fit: cover !important;
}


/* ============================================================
   ⭐ activity-bar 顶部活动通知条兜底
   替代 partials/_activity-bar.blade.php 中失效的 Tailwind 类：
     bg-gray-50 / flex / items-center / w-full / text-sm / text-primary ...
   视觉效果：
     全屏宽浅灰背景 (#f5f5f5)，跟 dropdown 白色区分
     内容区 1280px + 居中 + 横向 flex（图标 + 轮播 + 更多活动）
     多条活动时 JS 5 秒轮播，hover 暂停
   关键：不依赖 Tailwind CDN 编译

   2026-07-14 v3 修正：活动条作为 .nav-dropdown 子元素
     - 由 dropdown 的 opacity:0 / visibility:hidden 控制显示/隐藏（不再自己控制）
     - 取消原本的 hover 触发段、默认隐藏段
     - dropdown 是 position:fixed，活动条作为子元素也脱离文档流 → 不占空间 ✅
   ============================================================ */
.activity-bar {
    width: 100% !important;
    background: #f5f5f5 !important;
    /* 2026-07-14 老板实测调色：原 #e5e5e5 太深，改为更柔和的灰（顶部 eff0f2 / 底部 f2f4f7） */
    border-top: 1px solid #eff0f2 !important;
    border-bottom: 1px solid #f2f4f7 !important;
    z-index: 10 !important;
}
.activity-bar-inner {
    width: 1280px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    /* 2026-07-14 老板要求调整布局：
       - 图标 + 活动内容 → 居左（justify-content: flex-start）
       - 更多活动链接 → 居中（用 .activity-more margin: 0 auto 实现） */
    justify-content: flex-start !important;
}
.activity-icon {
    /* 复用老模板 #header2016 .scroll-msg 图标定位（CSS 参数完整复制）
       2026-07-14 老板实测：height 18→50px 才能完整显示喇叭图标（之前 18 截断） */
    display: inline-block !important;
    vertical-align: middle !important;
    color: #575757 !important;
    font-size: 14px !important;
    padding-left: 32px !important;
    background: url(/template/Tpl_2016/images/icon.png) no-repeat 0 -371px !important;
    width: 20px !important;
    height: 50px !important;
    flex-shrink: 0 !important;
}
.activity-content {
    /* 2026-07-19 老板反馈：上下滚动动画，固定高度 + overflow:hidden，让 inner transform 动画可见 */
    flex: 0 1 auto !important;
    min-width: 0 !important;
    height: 30px !important;
    overflow: hidden !important;
    position: relative !important;
}
.activity-content-inner {
    /* ⭐ 2026-07-19 上下滚动动画核心：所有 item 垂直堆叠，transform 平移切换显示哪一条 */
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.5s ease !important;
    will-change: transform !important;
}
.activity-item {
    color: #575757 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* ⭐ 2026-07-19 固定高度与容器一致，确保 transform 平移 N*30px 正好切到第 N 条 */
    height: 30px !important;
    line-height: 30px !important;
    flex-shrink: 0 !important;
    display: block !important;
}
.activity-item:hover {
    color: #0052D9 !important;
}
.activity-more {
    /* 2026-07-14 老板要求改色：原 #0052D9（蓝色太抢眼）→ #8e9096（中性灰，更柔和） */
    color: #8e9096 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    /* 2026-07-14 居中：用 margin: 0 auto 让左右剩余空间等分，元素自动居中
       配合 .activity-bar-inner 的 flex-start，icon + content 自然贴左 */
    margin-left: auto !important;
    margin-right: auto !important;
}
.activity-more:hover {
    text-decoration: underline !important;
}


/* ============================================================
   ⭐ footer2016 底部页脚兜底（老模板 3 段结构）
   替代 footer.blade.php 中失效的 Tailwind 类
   视觉对标老模板 www.9zsm.com：
     - 顶部 4 图标特性条（bg_footer.png + footer-icon.png sprite 切割 4 个图标）
     - 中部 4 列链接 + 右侧联系方式 + 微信二维码
     - 底部版权栏（ICP/工商注册/网安备案）
   资源：
     - /template/Tpl_2016/images/bg_footer.png       1920x121 顶部纹理背景
     - /template/Tpl_2016/images/footer-icon.png     196x530  4 个 sprite 图标
   关键：不依赖 Tailwind CDN 编译
   ============================================================ */
.footer-2016 {
    background-color: #fff;
    color: #4a4a4a;
    font-size: 12px;
    zoom: 1;
}
.footer-container {
    width: 1280px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ============ 顶部 4 图标特性条 ============ */
.footer-top {
    padding: 26px 0 34px;
    width: 100%;
    background: url(/template/Tpl_2016/images/bg_footer.png) no-repeat center top;
    background-size: cover;
}
.footer-top ul.footer-top-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    justify-content: space-between;
}
.footer-top ul.footer-top-list li {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 24px;
}
.footer-top ul.footer-top-list li:last-child {
    padding-right: 0;
}
.footer-top .section {
    height: 60px;
    background: url(/template/Tpl_2016/images/footer-icon.png) no-repeat;
    background-repeat: no-repeat;
}
.footer-top .section.section-img-1 { background-position: 10px 0; }
.footer-top .section.section-img-2 { background-position: 0 -92px; }
.footer-top .section.section-img-3 { background-position: 0 -203px; }
.footer-top .section.section-img-4 { background-position: 10px -306px; }
.footer-top .section-title {
    padding-left: 70px;
    padding-top: 20px;
    font-size: 18px;
    color: #6d6d6d;
    line-height: 1.2;
}

/* ============ 中部 4 列 + 右侧联系方式 ============ */
.footer-middle {
    background: #f6f6f6;
    padding: 30px 0 40px;
    color: #2f2f2f;
    position: relative;
}
.footer-middle-list {
    display: flex;
    gap: 0;
    margin-right: 340px;
}
.footer-middle-list dl {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 30px;
}
.footer-middle-list dl dt {
    padding: 8px 0 16px;
    color: #2f2f2f;
    font-weight: 700;
    font-size: 14px;
}
.footer-middle-list dl dd {
    margin: 0;
    padding: 0;
    line-height: 28px;
}
.footer-middle-list dl dd a {
    color: #4a4a4a;
    margin-right: 12px;
    font-size: 12px;
    text-decoration: none;
}
.footer-middle-list dl dd a:hover {
    color: #ff7200;
    text-decoration: underline;
}
.contact-list-2016 {
    position: absolute;
    right: 24px;
    top: 30px;
    width: 320px;
}
.footer-middle-tel {
    width: 100%;
    padding-top: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.tel-content {
    padding-right: 12px;
    margin-right: 12px;
    border-right: 1px solid #d2d2d2;
    text-align: right;
    flex: 1 1 auto;
}
.tel-content .tel-tiltle {
    font-size: 16px;
    font-weight: 700;
    color: #8a8a8a;
    line-height: 1.1;
    margin: 0 0 8px;
}
.tel-content .Tel {
    font-size: 24px;
    line-height: 1;
    font-weight: 500;
    color: #ff7800;
    margin: 0;
}
.wx-img {
    display: inline-block;
    height: 110px;
    margin-top: 0;
    flex-shrink: 0;
}
.wx-img img {
    width: 110px;
    height: 110px;
    display: block;
}
.wx-img.placeholder {
    width: 110px;
    height: 110px;
    background: #e8e8e8;
    color: #999;
    text-align: center;
    line-height: 110px;
    font-size: 12px;
    border-radius: 4px;
}

/* ============ 底部版权栏 ============ */
.footer-bottom {
    background: #fff;
    padding: 20px 0;
    border-top: 1px solid #ececec;
    text-align: center;
    font-size: 12px;
    color: #666;
    line-height: 28px;
}
.footer-bottom p {
    margin: 0;
    line-height: 28px;
}
.footer-bottom-links a {
    color: #666;
    text-decoration: none;
    margin: 0 8px;
}
.footer-bottom-links a:hover {
    color: #0052D9;
    text-decoration: underline;
}
.footer-bottom-worktime {
    color: #999;
    font-size: 11px;
    margin-top: 4px;
}

/* ============================================================
   ⭐ right-menu-bar 右侧浮动栏兜底（8 个按钮）
   替代 partials/_right-menu-bar.blade.php 中失效的 Tailwind 类
   视觉对标老模板 www.9zsm.com #rightMenuBar2016
   资源：
     - /template/Tpl_2016/images/right-menu-bar-bg.jpg   容器背景
     - /template/Tpl_2016/images/right-menu-icons.png   1055x132 sprite
   关键：不依赖 Tailwind CDN 编译
   ============================================================ */
.right-menu-bar {
    position: fixed;
    _position: absolute;
    right: -40px;  /* 2026-07-14 老板要求"打开网页才丝滑滑出"：默认折叠在 -40px 隐藏，1 秒后 partial JS 设 right:0 触发 transition 滑出 */
    bottom: 0;
    width: 40px;
    height: 100%;
    z-index: 11000;
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
}
#J_rightBarMenuContainer {
    background: url(/template/Tpl_2016/images/right-menu-bar-bg.jpg);
    height: 100%;
    padding-top: 166px;
    z-index: 100;
    position: relative;
}
.right-menu-bar .right-menu {
    color: #fff;
    font-size: 12px;
    padding-top: 36px;
    padding-bottom: 5px;
    display: block;
    text-align: center;
    background-repeat: no-repeat;
    background-image: url(/template/Tpl_2016/images/right-menu-icons.png);
    text-decoration: none;
    /* 2026-07-14 删 min-height:38px（老模板压根没写），按内容自然撑高 = 36+5+16 ≈ 57px，跟老模板按钮同高（不再被拉大到 95px） */
}
.right-menu-bar .right-menu:hover,
.right-menu-bar .right-menu.hover {
    background-color: #fff;
    color: #3085cd;
}

/* 8 个按钮的 sprite 位置（默认值，后台可改 icon_position 覆盖） */
.right-menu-bar .right-menu-shopping-car { background-position: 7px 14px; }
.right-menu-bar .right-menu-shopping-car:hover,
.right-menu-bar .right-menu-shopping-car.hover { background-position: 7px -92px; }
.right-menu-bar .right-menu-user { background-position: -90px 14px; }
.right-menu-bar .right-menu-user:hover,
.right-menu-bar .right-menu-user.hover { background-position: -90px -92px; }
.right-menu-bar .right-menu-kf { background-position: -188px 14px; }
.right-menu-bar .right-menu-kf:hover,
.right-menu-bar .right-menu-kf.hover { background-position: -188px -92px; }
.right-menu-bar .right-menu-qq { background-position: -289px 14px; }
.right-menu-bar .right-menu-qq:hover,
.right-menu-bar .right-menu-qq.hover { background-position: -289px -92px; }
.right-menu-bar .right-menu-phone { background-position: -870px 9px; margin-top: 7px; }
.right-menu-bar .right-menu-phone:hover,
.right-menu-bar .right-menu-phone.hover { background-position: -870px -97px; }
.right-menu-bar .right-menu-charge { background-position: -386px 4px; margin-top: 7px; }
.right-menu-bar .right-menu-charge:hover,
.right-menu-bar .right-menu-charge.hover { background-position: -386px -102px; }
.right-menu-bar .right-menu-gongdan { background-position: -484px 13px; }
.right-menu-bar .right-menu-gongdan:hover,
.right-menu-bar .right-menu-gongdan.hover { background-position: -484px -93px; }

/* ============ Top 按钮（容器外绝对定位，默认隐藏，滚动后显示）============ */
.right-menu-bar .back-top {
    background-position: -579px 11px;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 40px;
    opacity: 0;
    -ms-filter: alpha(opacity=0);
    filter: alpha(opacity=0);
    zoom: 1;
    -webkit-transition: opacity 0.6s, position 0.6s;
    transition: opacity 0.6s, position 0.6s;
    z-index: 100;
    padding-top: 18px;
}
.right-menu-bar .back-top.back-top-visible {
    opacity: 1;
    -ms-filter: alpha(opacity=100);
    filter: alpha(opacity=100);
}
.right-menu-bar .back-top:hover,
.right-menu-bar .back-top.hover {
    background-position: -579px -95px;
}

/* ============ X 折叠按钮（容器外绝对定位，bottom: 40px）============ */
.right-menu-bar .collapse-right-bar,
.right-menu-bar .expand-right-bar {
    position: absolute;
    bottom: 40px;
    right: 0;
    z-index: 100;
    text-align: center;
    display: block;
    padding: 0;
    width: 40px;
    font-size: 16px;
}
.right-menu-bar .collapse-right-bar {
    background-image: url(/template/Tpl_2016/images/right-menu-icons.png);
    background-repeat: no-repeat;
    background-position: -776px 13px;
    height: 40px;
}
.right-menu-bar .collapse-right-bar:hover {
    background-position: -776px -91px;
}

/* ============ > 展开按钮（默认 right: -40px 折叠隐藏）============ */
.right-menu-bar .expand-right-bar {
    right: -40px;
    height: 40px;
    width: 40px;
    background: url(/template/Tpl_2016/images/icon.jpg) no-repeat 0 -762px;
    z-index: 99;
    -webkit-transition: all .6s;
    transition: all .6s;
    cursor: pointer;
}
.right-menu-bar.mini-right-menu-bar .expand-right-bar {
    right: 40px;
}

/* ============ 折叠态：整个 sidebar 隐藏 ============ */
.right-menu-bar.mini-right-menu-bar {
    right: -40px !important;
}

/* ============ 电话浮窗（1:1 抄老模板 #rightMenuBar2016 .concat-phone-container）============ */
/* 关键差异：
   1. 激活 class 用 .active-concat-container（不是 .active）
   2. transition: all .6s（老模板不只过渡 right，过渡所有属性变化）
   3. 无 z-index（老模板不设，由 DOM 顺序决定层级）*/
.concat-phone-container {
    position: absolute;
    right: -500px;
    top: 300px;
    background-color: #fff;
    border: 1px solid #dddcdd;
    border-right: 0;
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
    padding: 20px 30px 20px 25px;
    width: 290px;
    max-width: 290px;
}
/* ⭐ 首页（有 has-hero）用 234px，其他页面用 290px */
body.has-hero .concat-phone-container {
    width: 234px !important;
    max-width: 234px !important;
}
.concat-phone-container.active-concat-container {
    right: 40px;
}
.concat-phone-container .close {
    position: absolute;
    top: 9px;
    right: 0;
    width: 26px;
    height: 26px;
    cursor: pointer;
    background: url(/template/Tpl_2016/images/ie6-icon.jpg) no-repeat center right #fff;
    background-position: 0 -338px;
    display: block;
}
.concat-phone-container .title {
    font-size: 20px;                                                    /* 老模板 20px（我之前写 18px 偏小）*/
    height: 38px;
    vertical-align: bottom;
    line-height: 44px;
    padding-left: 40px;                                                  /* 老模板有：给左上角图标留 40px 空间 */
    background: url(/template/Tpl_2016/images/right-menu-icons.png) no-repeat -978px top;  /* 老模板左上角电话图标 ← 这是 2026-07-14 老板反馈的"图标丢失"根因 */
    margin: 0 0 10px;
    color: #333;                                                         /* 老模板标题是黑色不是橙色（之前错写成 #ff7800）*/
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 大字号橙色电话块（老模板 .phone-num，2026-07-14 之前完全漏掉这个 class）
   渲染顶置主推电话（DB 的所有 phoneNumbers 都按这个样式展示）*/
.concat-phone-container .phone-num {
    color: #ff7800;
    line-height: 26px;
    height: 26px;
    font-size: 18px;
    padding-left: 5px;
    margin: 0;
    font-weight: 700;
}
/* ul.cl：上下分割线 + 内边距（2 列网格的容器）*/
.concat-phone-container ul.cl {
    list-style: none;
    margin: 5px 0 12px;
    padding: 5px;
    border-top: 1px solid #e6e7e8;
    border-bottom: 1px solid #e6e7e8;
    color: #494949;
    overflow: hidden;                                                    /* clearfix for float li */
}
/* li：2 列网格布局（关键！之前所有 li 垂直堆叠，老模板是 2x2 网格）*/
.concat-phone-container ul.cl li {
    float: left;
    width: 48%;
    line-height: 26px;
    font-size: 13px;
}
.concat-phone-container ul.cl li .num {
    font-size: 14px;
    padding-left: 5px;
    color: #1b96ff;
    font-weight: 700;
}
.concat-phone-container .concat-desc {
    line-height: 18px;
    color: #909090;
    padding-left: 5px;
    margin: 0;
}
.concat-phone-container .concat-desc .blue-color {
    color: #378cd2;
}

/* 小屏隐藏 sidebar */
@media (max-width: 1023px) {
    .right-menu-bar {
        display: none !important;
    }
    .footer-top ul.footer-top-list {
        flex-wrap: wrap;
        gap: 16px;
    }
    .footer-top ul.footer-top-list li {
        flex: 0 1 calc(50% - 12px);
    }
}

/* 中等屏 footer 中部 4 列挤 */
@media (max-width: 900px) {
    .footer-middle-list {
        flex-wrap: wrap;
        gap: 16px;
    }
    .footer-middle-list dl {
        flex: 0 1 calc(50% - 8px);
        padding-right: 0;
    }
    .contact-list-2016 {
        position: static;
        width: 100%;
        margin-top: 16px;
    }
    .footer-middle-tel {
        justify-content: flex-start;
    }
}


/* ============================================================
   ⭐ 2026-07-14 紧急修复：sidebar 默认展开
   原因：老模板 /template/Tpl_2016/css/global.css:2691 在 site-header.css 之后加载，
         其 .right-menu-bar { right: -40px } 覆盖了我的 .right-menu-bar { right: 0 }
         虽然两个选择器 specificity 都是 0,1,0（都是单 class），但加载顺序在后者赢
   修复：用高 specificity (1,0,2) 选择器 html body #right-menu-bar-2016.right-menu-bar
         + !important，压过老模板
   选择器拆解：
     - html body : 0,0,2 (2 tag)
     - #right-menu-bar-2016 : 1,0,0 (1 id)
     - .right-menu-bar : 0,1,0 (1 class)
     - 总和 : 1,1,2
   老模板 .right-menu-bar = 0,1,0
   1,1,2 > 0,1,0 必定压过 ✅
   ============================================================ */
html body #right-menu-bar-2016.right-menu-bar {
    right: -40px !important;  /* 2026-07-14 老板要求"丝滑滑入"：初始隐藏在 -40px，1 秒后 partial JS 用 setProperty('right', '0px', 'important') 触发 transition 0.4s 滑入 */
    position: fixed !important;
    z-index: 11000 !important;
    width: 40px !important;
    height: 100% !important;
    bottom: 0 !important;
    -webkit-transition: all 0.4s !important;
    transition: all 0.4s !important;
}
