/*!
 * Ernest Chemical — 定制组件样式
 * ---------------------------------------------------
 * 依赖 theme.css 的 CSS 变量（--color-* / --radius-* / --shadow-*）。
 * 业务样式一律使用 var(--color-*)，禁止硬编码颜色。
 * 绿色为默认主题，切换到 <html data-theme="blue"> 即全站变蓝。
 *
 * 组织：
 *   1. 全局基础（字体、容器、链接按钮）
 *   2. Header 顶栏 CTA + 主题切换
 *   3. Hero Banner
 *   4. 区块通用（section_title 间距、浅灰交替区块）
 *   5. 首页组件（intro / advantages / cat-grid / rd-split / stats / cta）
 *   6. Products（剂型 Badge / 网格）
 *   7. Contact（询盘表单 / 地图）
 *   8. Footer（深色四列）
 *   9. 单页正文排版
 *  10. 响应式
 */

/* =========================================================
   1. 全局基础
   ========================================================= */
body {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}
h1, h2, h3, h4, h5 {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.25;
    color: var(--color-text);
}
p { line-height: 1.7; }

/* 修复 D3：legacy style.css 给导航/区块标题等指定了 tt_xxx / Arial 字体栈且字体文件 404，
   导致导航与标题实际回退为 Arial，与正文 Inter 不一致。此处统一收口到 Inter（设计指南 §3.1）。
   ernest.css 在 style.css 之后加载，同特异性下后写覆盖。 */
.nav > ul > li a,
.section_title > p,
.section_title > p *,
.right_li span,
.service_box h4,
.news_box h4 a,
p.detail_title,
.contact_left p,
.contact_right > p,
ul.category li a,
p.copy {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* 修复 D10：容器宽度对齐设计指南 §4.2（最大 1200px + 左右 24px padding），
   并中和 legacy @media≤1279 把 .w1200 钉死为 960px 造成的两侧大留白。 */
.w1200 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
@media screen and (max-width: 1279px) {
    .w1200 { width: 100%; max-width: 1200px; }
}

/* 修复 D13：swiper 分页圆点点击热区偏小（默认 8×8），放大到 12×12，便于触控 */
.ec-hero .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    opacity: .5;
    background: #fff;
}
.ec-hero .swiper-pagination-bullet-active { opacity: 1; background: var(--color-primary); }

.ec-section-alt { background: var(--color-bg-alt); padding: 1px 0; }   /* 包裹区块，制造交替灰白 */

/* 通用主按钮 */
.ec-btn-cta,
.ec-btn-cta-light {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all .25s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.ec-btn-cta {
    background: var(--color-primary);
    color: #fff;
}
.ec-btn-cta:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}
.ec-btn-cta-light {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}
.ec-btn-cta-light:hover {
    background: var(--color-primary-dark);
    color: #fff;
    border-color: var(--color-primary-dark);
}

/* 文字链接带箭头 */
.ec-link-more {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 12px;
    transition: color .2s;
}
.ec-link-more:hover { color: var(--color-primary-dark); }

/* 区块标题统一上下间距（覆盖模板过紧间距） */
.ec-section-alt .section_1,
.content.w1200 .section_1 { padding: 64px 0; }

/* =========================================================
   2. Header 顶栏
   ========================================================= */
/* 修复 D7：中和 legacy .head_info{line-height:120px} 对 flex 布局的拉伸 */
.head_info.ec-top-cta,
.ec-top-cta {
    line-height: 1;
}
.ec-top-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ec-top-cta .ec-btn-cta {
    padding: 10px 22px;
    font-size: 14px;
}
/* 2026-07-17：主题切换按钮已从顶栏移除（B2B 站点不向客户暴露主题切换器）。
   主题切换改用 URL 参数 ?theme=blue|green（见 theme.css §5 / 设计指南 §2.6）。
   以下规则保留以备未来在 footer/后台恢复可见切换。
.ec-theme-switch {
    display: inline-flex;
    gap: 2px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-btn);
    padding: 2px;
}
.ec-theme-switch button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 4px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.ec-theme-switch button[aria-pressed="true"] { background: var(--color-primary-soft); }
.ec-theme-switch button:hover { background: rgba(0,0,0,.06); }
*/

/* =========================================================
   3. Hero Banner
   ========================================================= */
.ec-hero { position: relative; }
.ec-hero .swiper-slide { position: relative; }
.ec-hero img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
}
.ec-hero-caption {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 100%;
    max-width: 720px;
    box-sizing: border-box;          /* 修复 D2：width:100% + padding 不再加和溢出视口 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    color: #fff;
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,0) 100%);
}
.ec-hero-caption h2 {
    color: #fff;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.ec-hero-caption p {
    color: #fff;
    font-size: 18px;
    margin-bottom: 28px;
    max-width: 520px;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* =========================================================
   4. 通用区块
   ========================================================= */
.section_title { text-align: center; margin-bottom: 48px; }
.section_title span {
    display: inline-block;
    font-size: 14px;
    letter-spacing: .12em;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section_title p {
    font-size: 30px;
    font-weight: 600;
    color: var(--color-text);
}

/* =========================================================
   5. 首页组件
   ========================================================= */

/* 5.1 公司简介 */
.ec-intro-box {
    display: flex;
    align-items: center;
    gap: 48px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 40px;
    box-shadow: var(--shadow-card);
}
.ec-intro-text { flex: 1.4; }
.ec-intro-text p {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}
.ec-intro-img { flex: 1; }
.ec-intro-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-card);
}

/* 5.2 核心优势 4 卡 */
.ec-advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.ec-adv-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 32px 24px;
    text-align: center;
    transition: all .3s ease;
}
.ec-adv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-soft);
}
.ec-adv-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 修复 D9：用线性 SVG 图标替代彩色 emoji（设计指南 §6.3），
   继承 currentColor=var(--color-primary)，统一 2px 描边 */
.ec-adv-icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ec-adv-card h4 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}
.ec-adv-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* 5.3 产品分类入口 */
.ec-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.ec-cat-card {
    display: block;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all .3s ease;
}
.ec-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-soft);
    color: inherit;
}
.ec-cat-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.ec-cat-body { padding: 24px; }
.ec-cat-body h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}
.ec-cat-body p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}
.ec-cat-count {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
}

/* 5.4 R&D / Production 图文 */
.ec-rd-split {
    display: flex;
    align-items: center;
    gap: 48px;
}
.ec-rd-text { flex: 1; }
.ec-rd-text h4 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 16px;
}
.ec-rd-text p {
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}
.ec-rd-gallery {
    flex: 1.2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ec-rd-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-card);
    transition: transform .3s;
}
.ec-rd-gallery img:hover { transform: scale(1.03); }

/* 5.5 全球网络数据带 */
.ec-stats-band {
    background: var(--color-primary-dark);
    color: #fff;
    padding: 56px 0;
}
.ec-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.ec-stat-num {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.ec-stat-label {
    font-size: 15px;
    color: rgba(255,255,255,.85);
    margin-top: 8px;
}

/* 5.6 CTA Band */
.ec-cta-band {
    background: var(--color-primary);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.ec-cta-band h3 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}
.ec-cta-band p {
    color: rgba(255,255,255,.92);
    font-size: 17px;
    margin-bottom: 28px;
}

/* =========================================================
   6. Products
   ========================================================= */
.ec-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 24px;
    width: 100%;
    clear: both;
}
.pic_list .pic_box {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    padding: 0 0 16px;
    position: relative;
    transition: all .3s ease;
    margin: 0;
    /* 强制覆盖模板原有的 float/width，配合 .ec-product-grid 的 grid 布局 */
    float: none;
    width: 100%;
}
.pic_list .pic_box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-soft);
}
.pic_list .pic_box_img {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.pic_list .pic_box_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pic_list .pic_box p {
    padding: 14px 16px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    min-height: 48px;
}
/* 剂型 Badge */
.ec-form-badge {
    display: inline-block;
    margin: 4px 16px 0;
    padding: 3px 10px;
    background: var(--color-tag-bg);
    color: var(--color-tag-text);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}

/* 空状态 */
.ec-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
    grid-column: 1 / -1;
}

/* ---- 分页器（产品列表 / 新闻列表）----
   ThinkPHP $list->render() 输出 <ul class="pagination"><li class="active|disabled">…
   未加载 Bootstrap，需自定义；并覆盖 legacy .page li 的 60×60 方块（选择器不同未命中导致错乱）。
   全部用 var(--color-*)，绿/蓝双主题生效。 */
.pagebar {
    clear: both;
    margin: 40px 0 8px;
    text-align: center;
    overflow: hidden;             /* 清除浮动 */
}
.pagebar .pagination {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pagebar .pagination > li {
    list-style: none;             /* 覆盖默认 list-item 全宽 */
    display: inline-flex;
    margin: 0;
}
.pagebar .pagination > li > a,
.pagebar .pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    background: #fff;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s;
}
.pagebar .pagination > li > a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--color-primary-bg);
}
/* 当前页 */
.pagebar .pagination > li.active > span,
.pagebar .pagination > li.active > a {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
    cursor: default;
}
/* 禁用态（首页的 « / 末页的 »） */
.pagebar .pagination > li.disabled > span,
.pagebar .pagination > li.disabled > a {
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    border-color: var(--color-border);
    cursor: not-allowed;
    opacity: .7;
}
.pagebar .pagination > li.disabled > a:hover {
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    border-color: var(--color-border);
}

/* =========================================================
   7. Contact
   ========================================================= */
.ec-contact-wrap {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    padding: 40px;
}
.ec-contact-h {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-primary);
}
.contact_left p.ec-contact-note {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 16px;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}
.contact_left .ec-addr { white-space: pre-line; }
.contact_right { flex: 1.3; }
.ec-form-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text);
}
.form dl { margin-bottom: 16px; }
.form dt {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}
.form dt small { color: var(--color-error); margin-left: 2px; }
.formText {
    height: 48px;
    width: 100%;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
textarea.formText { height: auto; min-height: 120px; resize: vertical; }
.formBtn { margin-top: 8px; }
.formBtn button {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-btn);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.formBtn button:hover { background: var(--color-primary-dark); }

.ec-map-wrap {
    margin-top: 32px;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* =========================================================
   8. Footer（深色四列）
   ========================================================= */
.ec-footer {
    background: var(--color-footer-bg);
    color: rgba(255,255,255,.85);
}
.ec-footer .foot_extend { padding: 56px 0 32px; }
.ec-footer .foot_box { border: none; }
.ec-footer .foot_box p {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: .04em;
    /* 修复 D6：去掉 legacy 灰色下边框，只保留 :after 的主题色短下划线 */
    border-bottom: none;
    padding-bottom: 0;
    width: 100%;
}
.ec-footer .foot_box a,
.ec-footer .foot_box span {
    display: block;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
    text-decoration: none;
    transition: color .2s;
}
.ec-footer .foot_box a:hover { color: #fff; }
.ec-foot-logo {
    /* 修复 D4：legacy .foot_extend img{max-width:100%} 让大尺寸 PNG 撑满列，需锁定宽度 */
    width: 180px;
    max-width: 180px;
    height: auto;
    margin: 0 0 16px;
    display: block;
}
.ec-foot-about span { max-width: 280px; }
.ec-foot-contact .ec-addr { white-space: pre-line; }
.ec-footer .copy {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 20px 0;
    text-align: center;
    color: rgba(255,255,255,.6);
    font-size: 13px;
    margin: 0;
}

/* =========================================================
   9. 单页正文排版（R&D / Production / About）
   ========================================================= */
.ec-page { font-size: 16px; color: var(--color-text); }
.ec-page h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 32px 0 12px;
    padding-left: 14px;
    border-left: 4px solid var(--color-primary);
}
.ec-page h3:first-child { margin-top: 0; }
.ec-page p { margin-bottom: 16px; color: var(--color-text-secondary); }
.ec-page ul {
    margin: 0 0 16px 20px;
    padding: 0;
}
.ec-page ul li {
    list-style: disc;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}
.ec-capability-list li strong { color: var(--color-text); }

/* =========================================================
   10. 响应式
   ========================================================= */
@media (max-width: 1023px) {
    .ec-advantages { grid-template-columns: repeat(2, 1fr); }
    .ec-cat-grid { grid-template-columns: 1fr; }
    .ec-product-grid { grid-template-columns: repeat(2, 1fr); }
    .ec-stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
    .ec-intro-box, .ec-rd-split, .ec-contact-wrap { flex-direction: column; gap: 24px; padding: 24px; }
    /* 修复 D1：父级 flex 列向折叠后，gallery 作为 flex 项无显式宽度会塌缩成 0，
       需显式给宽度并保留 2 列网格，否则移动端图廊不可见 */
    .ec-rd-gallery { width: 100%; grid-template-columns: 1fr 1fr; }
    .ec-hero img { height: 380px; }
    .ec-hero-caption { max-width: 100%; padding: 0 6%; }
    .ec-hero-caption h2 { font-size: 28px; }
    .ec-hero-caption p { font-size: 15px; }
    .section_title p { font-size: 22px; }
    .ec-stat-num { font-size: 36px; }
    .ec-cta-band h3 { font-size: 24px; }
    .ec-section-alt .section_1,
    .content.w1200 .section_1 { padding: 40px 0; }
    .ec-footer .foot_extend .foot_box { width: 100% !important; margin-bottom: 24px; }
    .ec-footer .foot_extend { flex-wrap: wrap; }
}

/* 修复 D8：≤960px legacy .head_info{display:none} 会连主题切换一起隐藏，
   移动端恢复展示主题切换（隐藏 Get a Quote，该按钮已在抽屉菜单里） */
@media (max-width: 960px) {
    .ec-top-cta {
        display: flex;
        position: absolute;
        top: 0; right: 12px;
        height: 60px;
        width: auto;
        gap: 8px;
    }
    .ec-top-cta .ec-btn-cta { display: none; }
}

@media (max-width: 575px) {
    .ec-advantages { grid-template-columns: 1fr; }
    .ec-product-grid { grid-template-columns: 1fr; }
    .ec-stats { grid-template-columns: 1fr 1fr; }
    .ec-rd-gallery { grid-template-columns: 1fr 1fr; }
    .ec-top-cta { gap: 8px; }
    .ec-top-cta .ec-btn-cta { padding: 8px 14px; font-size: 13px; }
    .ec-hero img { height: 300px; }
    /* 修复 D4 移动端：logo 适度收紧 */
    .ec-foot-logo { width: 160px; max-width: 60%; }
}

/* =========================================================
   11. 首页改版组件（2026-07-17）
   ---------------------------------------------------
   - .ec-masthead        单行 sticky 顶栏（合并 logo+导航+CTA）
   - .ec-trustbar        Hero 下沿信任数据条
   - .ec-intro-grid      公司简介图文双栏
   - .ec-cat-badge       产品分类卡 SKU 徽章
   - .ec-capability-grid R&D/Production 双栏图文卡
   - .ec-global          全球网络深色区
   - .ec-foot-*          Footer 改版（图标列 + 资质条）
   全部使用 var(--color-*)，支持绿/蓝双主题切换。
   ========================================================= */

/* ---------- 11.1 Masthead 单行顶栏 ---------- */
/* 中和 legacy：新 DOM 不再含 .header/.logo_item/.nav，但 legacy 对 body 的
   potential fixed header 等需复位；masthead 自管定位。 */
.ec-masthead {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow .25s ease, background .25s ease;
}
.ec-masthead.is-stuck {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    border-bottom-color: transparent;   /* 滚动后用阴影分隔，去掉 1px 线避免重影 */
}
.ec-masthead-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 76px;
}
/* 品牌：图标徽标 + 文字 */
.ec-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.ec-brand-mark {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
}
.ec-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.ec-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -.01em;
}
.ec-brand-dot { color: var(--color-primary); }
.ec-brand-tag {
    font-size: 11px;
    color: var(--color-text-secondary);
    letter-spacing: .02em;
    margin-top: 3px;
    font-weight: 500;
}
/* 主导航容器：吸收品牌与 CTA 之间的剩余空间，菜单项水平居中 → 视觉平衡（菜单单行）*/
.ec-nav {
    flex: 1 1 auto;
    min-width: 0;
}
.ec-nav > ul {
    display: flex;
    align-items: center;
    justify-content: center;   /* 6 个菜单项在 masthead 水平居中 */
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ec-nav > ul > li {
    position: relative;
}
.ec-nav > ul > li > a {
    display: inline-block;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-btn);
    transition: color .2s, background .2s, box-shadow .2s;
}
.ec-nav > ul > li > a:hover {
    color: var(--color-primary);
    background: var(--color-primary-bg);
    box-shadow: inset 0 -2px 0 var(--color-primary-soft);   /* hover 时浅主色底线 */
}
.ec-nav > ul > li.on > a {
    color: var(--color-primary);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--color-primary);   /* 当前页 2px 主色指示条 */
}
/* 二级下拉 */
.ec-nav .sub {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card-hover);
    padding: 6px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.ec-nav > ul > li.has-sub:hover > .sub,
.ec-nav > ul > li.has-sub:focus-within > .sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ec-nav .sub li a {
    display: block;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 4px;
    transition: background .15s, color .15s;
}
.ec-nav .sub li a:hover {
    background: var(--color-primary-bg);
    color: var(--color-primary);
}
.ec-nav-close { display: none; }

/* 右侧 CTA 区（nav 已吸收中间空间，这里不再 margin-left:auto，紧贴右侧不收缩）*/
.ec-masthead-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

/* ---- Masthead CTA：精致化主按钮（B2B 询盘入口）---- */
/* 修复：作为 flex 子项被 align-items:stretch 拉到 76px 的问题 → 自报高度、垂直居中 */
.ec-masthead-cta .ec-btn-cta.ec-btn-cta--masthead {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: center;          /* 不继承父级 stretch */
    height: 44px;                /* 固定精致高度，留出呼吸 */
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    /* 实色兜底（旧浏览器）+ 主色微妙渐变（顶部混入 12% 白，立体但不花哨），
       绿/蓝双主题都生效，因为基底是 token */
    background: var(--color-primary);
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--color-primary) 88%, #ffffff 12%),
            var(--color-primary) 100%);
    color: #fff;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, .06),
        0 4px 12px color-mix(in srgb, var(--color-primary) 30%, transparent);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ec-masthead-cta .ec-btn-cta.ec-btn-cta--masthead:hover {
    background: var(--color-primary-dark);
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--color-primary-dark) 88%, #ffffff 12%),
            var(--color-primary-dark) 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, .08),
        0 8px 20px color-mix(in srgb, var(--color-primary) 42%, transparent);
}
.ec-masthead-cta .ec-btn-cta.ec-btn-cta--masthead:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.ec-btn-cta__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.ec-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    cursor: pointer;
}
.ec-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: transform .25s, opacity .25s;
}
.ec-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    z-index: 998;
}
.ec-nav-backdrop.is-open { opacity: 1; visibility: visible; }
.ec-masthead-spacer { display: none; }

/* ---------- 11.2 Hero（强化） ---------- */
.ec-hero { position: relative; background: var(--color-bg-alt); }
.ec-hero img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    display: block;
}
.ec-hero-caption {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 100%;
    max-width: 760px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6%;
    color: #fff;
    background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.30) 55%, rgba(0,0,0,0) 100%);
}
.ec-hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    width: fit-content;
    backdrop-filter: blur(4px);
}
.ec-hero-caption h2 {
    color: #fff;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 18px;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
    max-width: 14ch;
}
.ec-hero-caption p {
    color: #fff;
    font-size: 19px;
    margin-bottom: 32px;
    max-width: 46ch;
    text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.ec-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.ec-btn-ghost {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.5);
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background .2s, border-color .2s, transform .2s;
}
.ec-btn-ghost:hover {
    background: rgba(255,255,255,.22);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}
.ec-hero-scroll {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    z-index: 5;
    animation: ecBounce 2s infinite;
}
.ec-hero-scroll svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
@keyframes ecBounce { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,6px);} }

/* ---------- 11.3 信任数据条 ---------- */
.ec-trustbar {
    position: relative;
    margin-top: -48px;
    z-index: 6;
    padding: 0 12px;
}
.ec-trustbar-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card-hover);
    padding: 24px 32px;
}
.ec-trust-item { text-align: center; flex: 1; }
.ec-trust-item strong {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
}
.ec-trust-item span {
    display: block;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 6px;
}
.ec-trust-divider { width: 1px; background: var(--color-border); align-self: center; height: 40px; }

/* ---------- 11.4 通用区块标题（左对齐变体） ---------- */
.ec-title-left { text-align: left; margin-bottom: 24px; }
.ec-title-left span { margin-bottom: 6px; }
.ec-title-light span { color: rgba(255,255,255,.85); }
.ec-title-light p { color: #fff; }

/* ---------- 11.5 公司简介图文双栏 ---------- */
.ec-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.ec-intro-media {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card-hover);
}
.ec-intro-media img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}
.ec-intro-media-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: rgba(255,255,255,.95);
    border-radius: var(--radius-btn);
    padding: 12px 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.ec-intro-media-badge strong { color: var(--color-primary); font-size: 18px; font-weight: 700; }
.ec-intro-media-badge span { color: var(--color-text-secondary); font-size: 12px; margin-top: 2px; }
.ec-intro-lead {
    font-size: 17px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}
.ec-intro-points { list-style: none; margin: 0 0 24px; padding: 0; }
.ec-intro-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text);
    margin-bottom: 12px;
    font-size: 15px;
}
.ec-intro-points svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
    stroke-width: 2.4;
    fill: none;
    margin-top: 1px;
}
.ec-intro-stats {
    display: flex;
    gap: 36px;
    padding: 20px 0;
    margin-bottom: 24px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.ec-intro-stats > div { line-height: 1.2; }
.ec-intro-stats strong { display: block; font-size: 28px; font-weight: 700; color: var(--color-primary); }
.ec-intro-stats span { font-size: 13px; color: var(--color-text-secondary); }

/* ---------- 11.6 产品分类卡徽章 ---------- */
.ec-cat-img { position: relative; }
.ec-cat-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,.95);
    color: var(--color-primary-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 100px;
    box-shadow: var(--shadow-card);
    letter-spacing: .02em;
}

/* ---------- 11.7 R&D / Production 双栏图文卡 ---------- */
.ec-capability-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
.ec-cap-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow .3s, transform .3s;
}
.ec-cap-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}
.ec-cap-media { overflow: hidden; }
.ec-cap-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    transition: transform .5s;
}
.ec-cap-card:hover .ec-cap-media img { transform: scale(1.05); }
.ec-cap-body { padding: 40px; }
.ec-cap-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--color-primary);
    background: var(--color-primary-bg);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.ec-cap-body h4 { font-size: 24px; font-weight: 600; color: var(--color-text); margin-bottom: 12px; }
.ec-cap-body > p { color: var(--color-text-secondary); margin-bottom: 16px; }
.ec-cap-body ul { list-style: none; margin: 0 0 18px; padding: 0; }
.ec-cap-body ul li {
    position: relative;
    padding-left: 22px;
    color: var(--color-text);
    font-size: 14px;
    margin-bottom: 8px;
}
.ec-cap-body ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* ---------- 11.8 全球网络深色区 ---------- */
.ec-global {
    position: relative;
    color: #fff;
    overflow: hidden;
}
.ec-global-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.10), transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(255,255,255,.08), transparent 45%),
        var(--color-primary-dark);
}
.ec-global-inner { position: relative; padding: 80px 0; text-align: center; }
.ec-global .section_title { margin-bottom: 48px; }
.ec-global .ec-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.ec-global .ec-stat-num {
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.ec-global .ec-stat-label {
    font-size: 15px;
    color: rgba(255,255,255,.82);
    margin-top: 10px;
}
.ec-global-note {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    margin-top: 40px;
}

/* ---------- 11.9 Footer 改版（图标列 + 横向品牌 + 资质条） ---------- */
.ec-footer { background: var(--color-footer-bg); color: rgba(255,255,255,.82); }
.ec-footer .foot_extend { padding: 64px 0 36px; }
.ec-foot-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px;
}
.ec-foot-about .ec-foot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 16px;
}
.ec-foot-mark {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255,255,255,.1);
}
.ec-foot-brand-text {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
}
.ec-foot-brand-text span { color: var(--color-primary-light); }
.ec-foot-desc {
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.7;
    max-width: 340px;
    margin: 0;
}
.ec-foot-h {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: .03em;
    border: none;
    padding: 0;
    width: auto;
}
.ec-foot-h::after { display: none; }
.ec-foot-h svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary-light);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}
.ec-foot-col a {
    display: block;
    color: rgba(255,255,255,.74);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 11px;
    text-decoration: none;
    transition: color .2s, transform .2s;
}
.ec-foot-col a:hover { color: #fff; transform: translateX(3px); }
.ec-foot-line {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px !important;
}
.ec-foot-line svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: var(--color-primary-light);
    stroke-width: 2;
    fill: none;
    margin-top: 1px;
}
.ec-foot-contact .ec-addr { white-space: pre-line; }

/* 资质条 */
.ec-foot-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    padding: 24px 0;
    margin-top: 36px;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.ec-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ec-badge svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-primary-light);
    stroke-width: 1.8;
    fill: none;
    flex-shrink: 0;
}
.ec-badge span { display: flex; flex-direction: column; line-height: 1.2; }
.ec-badge strong { color: #fff; font-size: 14px; font-weight: 700; }
.ec-badge em { color: rgba(255,255,255,.6); font-size: 11px; font-style: normal; margin-top: 2px; }

/* 通用 main 容器：复位 legacy .content padding 干扰（改版区块自带间距） */
.ec-masthead + .ec-masthead-spider,
.ec-hero { margin-top: 0; }
/* 让首个内容区块紧贴 hero（信任条用负 margin 悬浮） */

/* ---------- 11.10 改版响应式 ---------- */
@media (max-width: 1023px) {
    .ec-intro-grid { grid-template-columns: 1fr; gap: 32px; }
    .ec-intro-media img { height: 320px; }
    .ec-cap-card { grid-template-columns: 1fr; }
    .ec-cap-media img { min-height: 220px; }
    .ec-cap-body { padding: 28px; }
    .ec-global .ec-stats { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
    .ec-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .ec-hero img { height: 480px; }
    .ec-hero-caption h2 { font-size: 36px; }
    .ec-hero-caption p { font-size: 16px; }
    .ec-trustbar-inner { flex-wrap: wrap; padding: 20px; }
    .ec-trust-divider { display: none; }
    .ec-trust-item { flex: 1 1 40%; }
}

@media (max-width: 1099px) {
    /* 移动端/平板抽屉导航：菜单内容约 1080px，容器需 ≥1100 才单行。
       断点定 1099，保证 ≥1100px 单行、<1100px 走抽屉，杜绝 1024-1099 换行带 */
    .ec-nav-toggle { display: flex; }
    .ec-masthead-cta .ec-btn-cta { display: none; }
    .ec-masthead-inner { height: 64px; gap: 12px; }
    .ec-brand-mark { width: 38px; height: 38px; }
    .ec-brand-name { font-size: 17px; }
    .ec-brand-tag { display: none; }
    .ec-nav {
        position: fixed;
        top: 0; right: 0;
        width: min(320px, 84vw);
        height: 100vh;
        background: #fff;
        box-shadow: -8px 0 32px rgba(0,0,0,.15);
        padding: 80px 20px 24px;
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    .ec-nav.is-open { transform: translateX(0); }
    .ec-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .ec-nav > ul > li > a { display: block; padding: 14px 12px; font-size: 16px; border-radius: var(--radius-btn); }
    .ec-nav > ul > li > a:hover { background: var(--color-primary-bg); }
    .ec-nav .sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 12px;
        margin-top: 2px;
    }
    .ec-nav-close {
        display: flex;
        position: absolute;
        top: 18px; right: 18px;
        width: 40px; height: 40px;
        align-items: center;
        justify-content: center;
        background: var(--color-bg-alt);
        border: none;
        border-radius: 50%;
        cursor: pointer;
    }
    .ec-nav-close svg { width: 22px; height: 22px; stroke: var(--color-text); stroke-width: 2; fill: none; }
}

@media (max-width: 575px) {
    .ec-hero img { height: 420px; }
    .ec-hero-caption { padding: 0 6%; }
    .ec-hero-caption h2 { font-size: 28px; max-width: none; }
    .ec-hero-caption p { font-size: 15px; margin-bottom: 22px; }
    .ec-hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .ec-hero-actions .ec-btn-cta,
    .ec-hero-actions .ec-btn-ghost { text-align: center; }
    .ec-trustbar { margin-top: -32px; }
    .ec-trustbar-inner { flex-direction: column; padding: 16px; gap: 12px; }
    .ec-trust-item { flex: 1 1 auto; }
    .ec-intro-stats { gap: 20px; flex-wrap: wrap; }
    .ec-intro-stats strong { font-size: 22px; }
    .ec-intro-media img { height: 240px; }
    .ec-cap-body { padding: 22px; }
    .ec-global .ec-stats { grid-template-columns: 1fr 1fr; }
    .ec-global .ec-stat-num { font-size: 38px; }
    .ec-foot-grid { grid-template-columns: 1fr; gap: 28px; }
    .ec-foot-badges { gap: 16px; }
    .ec-badge em { display: none; }
    .ec-cta-band h3 { font-size: 22px; }
}

