﻿/* ====================================================
   headfoot_en.css - 英文站 头部 + 页脚
   ----------------------------------------------------
   本文件为英文站专用，与中文站 headfoot.css 分开维护，互不影响。
   共用层只有两个：all.min.css（Font Awesome 图标）、color.css（配色变量）。

   与中文版的两处差异：
     1. 语言修饰类由 .head-cn / .footer-cn 改为 .head-en / .footer-en，
        英文标记里也只挂 .head-en，两套样式彻底不互相命中；
     2. 顶部语言条 .topbar 与中文版保持一致（中英切换入口，两边都要有）。
   英文排版口径（与中文版的关键差异）：
     1. 字间距归零：中文版为汉字可读性设了 letter-spacing 1~6px，拉丁字母被拉开会显得松散、
        单词边界变模糊，本文件一律改为 0；个别大写小标签若确需字距，用 0.02em 级别，不要再用 px。
     2. 首行缩进归零：text-indent 2em 是中文段落习惯，英文段落不缩进。
     3. 两端对齐改左对齐：中文 justify 会均匀分配汉字间隙，英文 justify 会把词间空隙拉大，
        窄栏尤其明显，故统一改 text-align: left。
   ==================================================== */

/* ====================================================
   headfoot.css - 电脑端前台 头部 + 页脚
   ----------------------------------------------------
   加载链：BaseUI 的 PC 分支（color.css -> master.css -> 本文件）
   1. 头部定位 sticky：导航条吸顶；类名沿用框架约定（.head/.headnav/.footer 等）
   2. ⚠ 本文件由中文站与 En 英文站共用：凡只影响中文站的调整，
      一律收进 .head-en / .footer-en 修饰类，基础规则不动
   3. 配色 / 字号 / 行距统一取 color.css 变量，本文件不自行引入
   ==================================================== */

/* #region 顶部语言条 */
/* 中英切换条：导航条上方单独一行，随页面滚动、不吸顶（切完即走，不占视线）。
   中英两站共用本文件，故样式放在基础区、不挂 .head-en 修饰类。 */
.topbar {
    width: 100%;
    background: var(--light-gray);
    border-bottom: 1px solid var(--color-border);
}

.topbar-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 38px;
}

.topbar-langbox {
    display: flex;
    align-items: center;
    line-height: 1;
}

.topbar-lang {
    font-size: 16px;
    color: var(--font-color-normal);
    text-decoration: none;
    padding: 0 8px;
    transition: color 0.2s ease;
}

/* 当前语言：高亮且不可点，让用户一眼看清自己在哪个版本 */
.topbar-lang.is-current {
    color: var(--color-primary);
    font-weight: 600;
    cursor: default;
}

a.topbar-lang:hover {
    color: var(--color-primary);
}

.topbar-lang-sep {
    font-size: 14px;
    color: var(--color-border);
}

@media (max-width: 1200px) {
    .topbar-container {
        height: 34px;
    }

    .topbar-lang {
        font-size: 15px;
        padding: 0 6px;
    }
}
/* #endregion */

/* #region 头部导航条 */
.head {
    width: 100%;
    clear: both;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 999;
    height: 78px;
    background: var(--white);
    border-bottom: 1px solid var(--color-border);
}

.head_height {
    height: 0;
}

.head-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

/* #region logo栏 */
.headlogo {
    flex: 0 0 280px;
    height: 56px;
    display: flex;
    align-items: center;
}

.headlogo img {
    height: 56px;
    width: auto;
}
/* #endregion */

/* #region 导航主菜单 */
.headnav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    height: 56px;
    line-height: 56px;
}

.headnav .nav-item {
    margin-right: 4px;
}

.headnav .nav-item:last-child {
    margin-right: 0;
}

.headnav .nav-item .nav-link {
    display: block;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    padding: 0 16px;
    font-size: var(--fs-body);
    color: var(--font-color);
}

.headnav .nav-item .nav-link:hover {
    color: var(--color-primary);
}

/* 下划线效果（从左侧展开） */
.headnav .nav-item .nav-link::after {
    content: '';
    position: absolute;
    height: 3px;
    bottom: 12px;
    left: 16px;
    width: 0;
    border-radius: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.headnav .nav-item .nav-link:hover::after {
    width: calc(100% - 32px);
}

.headnav .active .nav-link {
    color: var(--color-primary);
    font-weight: 500;
}

.headnav .active .nav-link::after {
    width: calc(100% - 32px);
}
/* #endregion */

/* #region 主菜单下面的下拉二级菜单（纯CSS，hover 展开） */
.headnav .has-dropdown {
    position: relative;
}

.headnav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 16px;
    min-width: 170px;
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.15s ease;
}

.headnav .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.headnav .dropdown-item {
    display: block;
    padding: 11px 16px;
    line-height: var(--lh-tight);
    text-decoration: none;
    color: var(--font-color);
    font-size: var(--fs-small);
    white-space: nowrap;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
}

.headnav .dropdown-item:last-child {
    border-bottom: none;
}

.headnav .dropdown-item:hover {
    background: var(--light-gray);
    color: var(--color-secondary);
}

.headnav .dropdown-item i {
    margin-right: 8px;
    font-size: var(--fs-small);
}
/* #endregion */

/* #region 搜索框和语言切换 */
.headver {
    flex: 0 0 180px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    /* #region 语言下拉菜单 */
    .language-selector {
        position: relative;
        display: inline-block;
    }

    .current-language {
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 7px 12px;
        border: 1px solid var(--color-border);
        border-radius: 4px;
        background-color: var(--white);
        color: var(--font-color);
        font-size: var(--fs-small);
        transition: all 0.2s ease;
    }

    .current-language:hover {
        background-color: var(--light-gray);
        border-color: var(--color-primary-light);
    }

    /* 下拉箭头 */
    .current-language::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 8px;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 4px solid var(--color-primary);
        transition: transform 0.3s ease;
    }

    .language-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 140px;
        background-color: var(--white);
        border: 1px solid var(--color-border);
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .language-option {
        display: block;
        padding: 10px 16px;
        text-decoration: none;
        color: var(--font-color);
        font-size: var(--fs-small);
        transition: background-color 0.2s ease;
        border-bottom: 1px solid var(--light-gray);
    }

    .language-option:last-child {
        border-bottom: none;
    }

    .language-option:hover {
        background-color: var(--light-gray);
        color: var(--color-secondary);
    }

    .language-option.active {
        background-color: var(--color-primary-transparent);
        color: var(--color-primary);
        font-weight: 500;
    }

    .language-selector:focus-within .language-dropdown,
    .language-selector:hover .language-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .language-selector:focus-within .current-language,
    .language-selector:hover .current-language {
        background-color: var(--light-gray);
        border-color: var(--color-primary-light);
    }

    .language-selector:focus-within .current-language::after {
        transform: rotate(180deg);
    }

    .language-selector:focus {
        outline: none;
    }
    /* #endregion */

    /* #region 头部搜索模块 */
    .head-search {
        position: relative;
        display: flex;
        align-items: center;
        height: 56px;
        margin-right: 16px;
    }

    .search-toggle {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--color-primary);
        border-radius: 4px;
        font-size: var(--fs-body);
    }

    .search-toggle:hover {
        background-color: var(--light-gray);
        color: var(--color-secondary);
    }

    .search-box {
        position: absolute;
        top: 100%;
        right: 0;
        width: 280px;
        height: 44px;
        margin-top: 0;
        display: flex;
        align-items: center;
        padding: 0 10px;
        background: var(--white);
        border: 1px solid var(--color-border);
        border-radius: 4px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: all 0.25s ease;
        z-index: 1001;
    }
    .head-search:hover .search-box,
    .head-search:focus-within .search-box {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .search-input {
        flex: 1;
        /* min-width:0 不能省：input 默认 min-width:auto，固有宽度不参与 flex 收缩，
           英文站按钮文案 Search 比「搜索」宽，会把按钮顶出下拉框右侧 5px */
        min-width: 0;
        height: 100%;
        border: none;
        outline: none;
        padding: 0 8px;
        font-size: var(--fs-small);
        background: transparent;
        color: var(--font-color);
    }

    .search-input::placeholder {
        color: var(--font-color-placeholder);
    }

    .search-btn {
        height: 32px;
        padding: 0 12px;
        border: none;
        border-radius: 4px;
        background: var(--color-secondary);
        color: var(--white);
        font-size: var(--fs-small);
        cursor: pointer;
        white-space: nowrap;
    }

    .search-btn:hover {
        background: var(--color-secondary-dark);
    }
    /* #endregion */
/* #endregion */

/* 大屏适配：容器变宽时同步放大菜单间距 */
@media (min-width: 1501px) and (max-width: 1700px) {
    .headnav .nav-item { margin-right: 8px; }
}

@media (min-width: 1701px) {
    .headnav .nav-item { margin-right: 14px; }
}

.head-en .headlogo {
    flex: 0 0 auto;
    margin-right: 16px;
}

/* 客户头部视觉调整（logo-group 已裁掉上下约 36% 空白，原图备份 logo-group.png.orig，按可见字形高度控大小）：
   导航字号、集团标尺寸、导航内边距按下述分档放宽以缓解拥挤；导航条维持基线 justify-content:flex-end 靠右对齐（客户确认）。
   分档依据实测几何预算——1200 容器放不下 20px 导航＋大集团标：
     ≤1500（容器 1200）：导航 18px、集团标 24px、内边距 5px（顺带修复既有约 49px 容器溢出，1280~1330 视口不再出滚动条）
     1501-1700（容器 1400）：导航 20px、集团标 36px、内边距 8px
     ≥1701（容器 1600）：导航 20px、集团标 40px、内边距 12px */

.head-en .headver {
    flex: 0 0 auto;
    margin-left: 8px;
}

.head-en .head-search {
    margin-right: 0;
}

.head-en .headlogo img.logo-cde {
    height: 48px;
}

.head-en .head-group {
    margin-left: 10px;
    line-height: 0;
}

.head-en .head-group img {
    height: 24px;
    width: auto;
    display: block;
}

/* 导航整体靠右（继承 .headnav 的 flex-end），项与项之间靠 nav-link 的左右 padding 撑出间距。
   不用 space-between：那会把余量摊到项间、让首项顶到 logo 旁，客户要求回到右对齐。 */
.head-en .headnav .nav-item {
    margin-right: 0;
}

.head-en .headnav .nav-item .nav-link {
    padding: 0 5px;
    font-size: var(--fs-body);
}

.head-en .headnav .nav-item .nav-link::after {
    left: 5px;
}

.head-en .headnav .nav-item .nav-link:hover::after,
.head-en .headnav .nav-item.active .nav-link::after {
    width: calc(100% - 10px);
}

.head-en .headnav .nav-item.active .nav-link {
    font-weight: 700;
}

/* —— 1501-1700（容器 1400）：导航 20px + 集团标 36px —— */
@media (min-width: 1501px) {
    .head-en .headnav .nav-item .nav-link {
        padding: 0 8px;
        /* 客户指定 20px（22 太挤），介于令牌 18/22 之间，单独备注不进令牌表 */
        font-size: 20px;
    }
    .head-en .headnav .nav-item .nav-link::after {
        left: 8px;
    }
    .head-en .headnav .nav-item .nav-link:hover::after,
    .head-en .headnav .nav-item.active .nav-link::after {
        width: calc(100% - 16px);
    }
    .head-en .head-group img {
        height: 36px;
    }
}

/* —— ≥1701（容器 1600）：导航 20px（继承上档）+ 集团标 40px（比左标 48px 稍小） —— */
@media (min-width: 1701px) {
    .head-en .headnav .nav-item .nav-link {
        padding: 0 12px;
    }
    .head-en .headnav .nav-item .nav-link::after {
        left: 12px;
    }
    .head-en .headnav .nav-item .nav-link:hover::after,
    .head-en .headnav .nav-item.active .nav-link::after {
        width: calc(100% - 24px);
    }
    .head-en .head-group img {
        height: 40px;
    }
}
/* #endregion */

/* #region 页脚 */
.footer {
    padding: 70px 0 0;
    background: var(--color-primary-dark);
    color: var(--white);
}

.footer-wrap {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.2fr 1.8fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: var(--fs-h3);
    font-weight: 500;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-secondary);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 14px;
    font-size: var(--fs-small);
    line-height: var(--lh-loose);
}

.footer-col ul li {
    margin-bottom: 14px;
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.62);
    transition: color 0.3s ease;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.62);
    transition: color 0.3s ease;
}

.footer-col ul li:hover,
.footer-col ul li a:hover {
    color: var(--color-secondary);
}

.footer-col .qrcode {
    display: flex;
    gap: 20px;
}

.footer-col .qrcode-item {
    text-align: center;
}

.footer-col .qrcode-item img {
    width: 100px;
    height: 100px;
    padding: 4px;
    background: var(--white);
    border-radius: 4px;
    margin-bottom: 10px;
}

.footer-col .qrcode-item p {
    font-size: var(--fs-tiny);
    margin-bottom: 0;
}

.footer-bottom {
    text-align: center;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.45);
    font-size: var(--fs-tiny);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a:hover {
    color: var(--color-secondary);
}

.footer-en {
    padding: 56px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--fs-tiny);
}

.footer-en .footer-wrap {    grid-template-columns: 2.8fr 1fr 1.15fr 1.25fr 1.1fr;
    gap: 30px;
}
.footer-en .footer-col h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-en .footer-col h4 a:hover {
    color: var(--color-secondary);
}

.footer-en .footer-col h4 {
    font-size: var(--fs-h4);
    margin-bottom: 18px;
    padding-bottom: 0;
    letter-spacing: 0;
}

/* 效果稿的 h4 没有金色下划线 */
.footer-en .footer-col h4::after {
    content: none;
}
.footer-en .footer-col h4.footer-strong {
    font-weight: 700;
}

.footer-en .footer-col ul li {
    line-height: var(--lh-loose);
    color: rgba(255, 255, 255, 0.65);
}

.footer-en .footer-col ul li a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-en .footer-col .qrcode-item img {
    width: 112px;
    height: 112px;
    padding: 6px;
    margin-bottom: 0;
}

.footer-en .footer-col .qrcode-item p {
    margin: 10px 0 0;
    font-size: var(--fs-tiny);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0;
}

.footer-en .footer-bottom {
    padding: 18px 0;
    font-size: var(--fs-tiny);
    color: rgba(255, 255, 255, 0.4);
}

.footer-en .footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
}
/* #endregion */

/* #region 窄屏头部：手机看 PC 版时让头部和电脑端一致（横排、搜索/集团标都在）
   背景：HasMobile=false，手机也加载本 PC 样式链。手机浏览器在无 viewport meta 时
   布局视口约 980、可用宽 940，而电脑端头部内容总宽约 1167，直接放不下会横向滚动、
   「联系我们」和集团标被裁。
   约束：老板要求只影响手机端、不动 aspx、看起来和电脑端一样。
   做法（只动本文件）：
     · 断点 max-width:1200——桌面主流 1280＋ 不命中，电脑端原样不动；CSS 无法 100% 区分
       手机与桌面小窗口，pointer:coarse 在部分测试环境难复现，故用宽度断点更稳妥；
     · ≤1200：导航字号 18→16px、内边距 5→1px，LOGO 48→36px、集团标 24→16px，
       .headver 取消固定 180px；搜索图标保留（hover/focus 仍可弹搜索框）；
     · 导航加 overflow-x:auto 兜底：940 刚好放下，万一中文字宽多几像素也只是滑动、
       不会把右侧顶出去。 */
@media (max-width: 1200px) {
    .head {
        height: auto;
    }

    .head-container {
        flex-wrap: nowrap;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .head-en .headlogo {
        flex: 0 0 auto;
        margin-right: auto;
    }

    .head-en .headlogo img.logo-cde {
        height: 36px;
    }

    .headver {
        flex: 0 0 auto;
        height: auto;
    }

    .head-en .head-group {
        flex: 0 0 auto;
        margin-left: 8px;
    }

    .head-en .head-group img {
        height: 16px;
        width: auto;
    }

    /* 搜索图标保留；搜索框仍按桌面原 hover/focus-within 弹出，不隐藏 */

    .headnav {
        flex: 1 1 auto;
        min-width: 0;
        height: auto;
        line-height: 40px;
        justify-content: flex-end;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .headnav::-webkit-scrollbar {
        display: none;
    }

    .head-en .headnav .nav-item {
        margin-right: 0;
    }

    .head-en .headnav .nav-item .nav-link {
        padding: 0 3px;
        /* 手机端专属字号：老板批准 18→16px，仅 ≤1200 命中，桌面主流 1280＋ 不受影响 */
        font-size: 15px;
    }

    .head-en .headnav .nav-item .nav-link::after {
        left: 1px;
        bottom: 4px;
    }

    .head-en .headnav .nav-item .nav-link:hover::after,
    .head-en .headnav .nav-item.active .nav-link::after {
        width: calc(100% - 2px);
    }
}
/* #endregion */
