/**
 * 英文站专属样式（`language/en/assets/en.css`）
 *
 * 只写**英文站与国内站不同**的地方，其余版式全部复用 `common/assets/css/site.css`：
 *   1. 页脚只有两栏（品牌 + 业务介绍 + 联系方式 = 三列），国内站是五列；
 *   2. 英文正文的字号 / 行高 / 字间距微调（中文字体栈渲染英文会偏挤）；
 *   3. 导航只有两项，间距比国内站那六个小。
 *
 * ⚠️ 别在这里重写 `.site-header` / `.page-section` 那类基础版式 —— 那些是国内站与英文站共用的，
 *    改了会连带影响中文站。
 */

/* ---------- 1. 字体与正文 ---------- */
body.en-site {
    /* 英文优先用系统无衬线（中文站那套字体栈里英文会落到宋体类的衬线体上） */
    font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.en-site .rich-text {
    line-height: 1.85;
}

/* 英文没有中文字间距的问题，标题略微收紧更好看 */
body.en-site .section-title {
    letter-spacing: -0.01em;
}

/* ---------- 2. 导航 ---------- */
body.en-site .site-nav {
    /* 国内站六项之间是 72px，英文只有两项，间距收小、别把两项甩到屏幕中间 */
    gap: 40px;
}

body.en-site .site-nav__link.is-active {
    color: #224b97;
    font-weight: 600;
}

/* 「Contact Us」胶囊按钮（2026-11-21 用户要求：英文、胶囊型、点了直接到 OEM 页底部填表）
   ⚠️ 它在 `</nav>` 外面，不继承 `.site-nav a { padding: 18px 0 }`；
   高度 = 13px 字号 + 上下 9px = 31px，在 54px 高的页头里居中刚好。 */
body.en-site .en-header-cta {
    flex: none;
    margin-left: 34px;
    padding: 9px 20px;
    border-radius: 999px;
    background: #224b97;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background .2s ease;
}

body.en-site .en-header-cta:hover {
    color: #fff;
    background: #1a3c7c;
}

/* ---------- 3. 页脚三列 ---------- */
body.en-site .site-footer__inner {
    grid-template-columns: 1.2fr 1fr 1.7fr;
}

body.en-site .site-footer a {
    color: #fff;
}

body.en-site .site-footer p {
    margin: 0 0 10px;
    line-height: 1.7;
}

/* ---------- 4. 首页（OEM / ODM 业务介绍） ----------
 * 首屏、合作模式、可定制项、照片墙、六步流程的版式**直接复用国内站 OEM 页的 `.oem-*` 类**
 * （都在 common/assets/css/site.css 里）—— 两个站的这一页长得一样，不必再写一套。
 * 这里只补英文站独有的：顶部轮播与咨询表单。
 */

/* 顶部轮播：1920 × 640（比例 1 : 0.3333）
 *
 * 交互、箭头、圆点全部复用国内站首页的 `.home-slider` / `home_slider.js`
 * （site.css 里那套是按 1920 × 780 写的，宽度上限 1920 与居中都照用），
 * 这里**只改高度**：宽屏 33.3333vw 跟着缩放，最高 640px，窄屏最低 200px。
 * 用户 2026-11-21 定："OEM / ODM Solutions 的顶部加一个轮播图 1920*640"。 */
body.en-site .home-slider {
    height: clamp(200px, 33.3333vw, 640px);
}

/* 咨询表单：两列排布，需求描述占满一行
   ⚠️ 必须 `width:100% + margin:0 auto` —— 只写 max-width 时块级元素默认靠左，
   宽屏下表单会贴在左边、右边空一大片（2026-11-21 用户截图反馈）。
   居中的写法与国内站 `.consultation-form` 一致。 */
.en-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.en-form label {
    display: block;
    font-size: 14px;
    color: #3b4654;
}

.en-form label span {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.en-form input,
.en-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}

.en-form__full {
    grid-column: 1 / -1;
}

.en-form textarea {
    min-height: 120px;
    resize: vertical;
}

.en-form__actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.en-form__actions button {
    padding: 12px 34px;
    border: 0;
    border-radius: 6px;
    background: #224b97;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.en-form__actions button:hover {
    background: #1a3b7a;
}

/* 提交结果提示（GET 带 ok=1 回显）—— 与表单同宽、同样居中 */
.en-form__done {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 22px;
    padding: 18px 22px;
    border-left: 3px solid #224b97;
    background: #f3f6fb;
    color: #224b97;
    font-size: 15px;
    line-height: 1.8;
}

/* 「Our Smart Terminals」一行四个（2026-11-21 用户要求）
 * 版式照国内站方案页的「关联终端」（`.solution-terminal-card`，那份样式只在方案页的
 * 单页 css 里、英文站加载不到，所以在这里重写一份，值保持一致）：
 * 封面 336:220 + 居中名称 + 两行简介 + 悬停微微抬起。
 * 数据来自后台「英文站 → 首页终端」，没挂设备时整段不输出。 */
.en-terminals {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.en-terminal-card {
    display: block;
    overflow: hidden;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .13);
    transition: transform .18s ease, box-shadow .18s ease;
}

.en-terminal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .17);
}

.en-terminal-card__image {
    width: 100%;
    aspect-ratio: 336 / 220;
    overflow: hidden;
    background: #e5e5e5;
}

.en-terminal-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.en-terminal-card h3 {
    margin: 18px 20px 10px;
    color: #333;
    text-align: center;
    /* 国内站是 22px（中文名短）；英文型号名长，17px 才压在两行内 */
    font-size: 17px;
    line-height: 1.45;
}

.en-terminal-card p {
    min-height: 44px;
    margin: 0 20px 22px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.en-terminals__note {
    margin: 22px 0 0;
    color: #777;
    font-size: 13px;
    text-align: center;
}

.en-terminals__note a {
    color: #224b97;
}

/* 首页板块可能被渲染成通栏色块、也可能是无底段（底色按内容交替，见 index.php 的 `$openBlock`）。
   `.page-section` 不带 `scroll-margin-top`，页头「Contact Us」跳到 #consultation、
   或者别处跳到 #process 时会被固定页头压住标题 —— 所以带 id 的板块统一补一份。 */
body.en-site .en-anchor {
    scroll-margin-top: 84px;
}

/* ---------- 5. 关于威尔 ---------- */
.en-article-list {
    display: grid;
    gap: 18px;
    max-width: 1148px;
    margin: 0 auto;
}

.en-article-card {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.en-article-card:hover {
    border-color: #224b97;
}

.en-article-card__cover {
    flex: none;
    width: 240px;
    height: 135px;
    background: #f2f4f7;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b9c0ca;
    font-size: 13px;
}

.en-article-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.en-article-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.5;
}

.en-article-card time {
    font-size: 13px;
    color: #8b95a3;
}

/* 公告 / 治理文件列表 */
.en-notice-item {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #eceff4;
}

.en-notice-item__meta {
    margin: 0 0 8px;
    font-size: 13px;
    color: #8b95a3;
}

.en-notice-item__title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.6;
}

.en-notice-item__summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: #5b6675;
}

.en-notice-item__action {
    flex: none;
}

/* ---------- 6. 窄屏 ---------- */
@media (max-width: 900px) {
    /* 页头是 nowrap 的：窄屏把导航间距、胶囊按钮、工具区间距一起收小，别让四个元素挤到屏幕外 */
    body.en-site .site-nav {
        gap: 20px;
    }

    body.en-site .en-header-cta {
        margin-left: 16px;
        padding: 8px 14px;
        font-size: 12px;
    }

    body.en-site .site-header__tools {
        margin-left: 14px;
    }

    body.en-site .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .en-terminals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .en-form {
        grid-template-columns: 1fr;
    }

    .en-article-card {
        flex-direction: column;
        align-items: stretch;
    }

    .en-article-card__cover {
        width: 100%;
        height: 180px;
    }
}

/* 手机：终端卡片单列（一行四个挤不下，名字会断成一堆） */
@media (max-width: 480px) {
    .en-terminals {
        grid-template-columns: 1fr;
    }
}
