/* ============================================
   首页（严格 1920px 1:1）- 语义化分区 + 坐标还原
   ============================================ */

.cnx-banner {
    position: relative;
    width: 100%;
    min-height: 940px;
}

.cnx-banner__bg {
    position: absolute;
    left: 0;
    top: 0;
}

.cnx-banner__slides {
    position: absolute;
    inset: 0;
}

/* 超大屏：PC banner 替换为 *a.jpg（不改 HTML 结构，仅替换资源） */
@media (min-width: 2300px) {
    .cnx-banner__slides > img.cnx-banner__slide--desktop:nth-of-type(1) {
        content: url("../images/banner1a.jpg");
    }
    .cnx-banner__slides > img.cnx-banner__slide--desktop:nth-of-type(2) {
        content: url("../images/banner2a.jpg");
    }
    .cnx-banner__slides > img.cnx-banner__slide--desktop:nth-of-type(3) {
        content: url("../images/banner3a.jpg");
    }
}

.cnx-banner__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 940px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 900ms ease-in-out;
    will-change: opacity;
}

/* PC：banner 全屏展示（不影响 H5 原逻辑） */
@media (min-width: 769px) {
    .cnx-banner {
        height: 100vh;
        height: 100dvh;
    }

    .cnx-banner__slide {
        height: 100%;
        min-height: 0;
    }
}

.cnx-banner__slide.is-active {
    opacity: 1;
}

/* PC：banner 高度跟随图片由 JS 同步（保留淡入淡出效果） */

/* 通用：PC/H5 显隐（不依赖 JS） */
.cnx-only-mobile {
    display: none;
}

/* PC：非工程师 Apply 默认隐藏，hover 渐显（避免常驻打乱布局） */

/* 默认展示 Desktop 轮播 */
.cnx-banner__slide--mobile {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .cnx-banner__slide {
        transition: none;
    }
}

.cnx-hero-tagline {
    position: absolute;
    left: 173px;
    top: 679px;
    width: 544px;
    margin: 0;
    color: #ffffff;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.6;
    letter-spacing: 0;
}

/* Banner 文案：页面加载时执行一次上浮淡入（不依赖 JS / 滚动） */
.cnx-hero-title,
p.cnx-hero-tagline {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    animation: cnx-banner-text-up-pc 1100ms cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes cnx-banner-text-up-pc {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* PC：大屏按 1920 设计稿比例调整 left，避免太靠左 */
@media (min-width: 1921px) {
    .cnx-hero-tagline {
        left: calc(100vw * 173 / 1920);
    }
}

/* PC：英文 tagline 自适应且不换行 */
@media (min-width: 769px) {
    html[lang="en"] p.cnx-hero-tagline {
        width: auto;
        white-space: nowrap;
    }
}

.cnx-hero-title {
    position: absolute;
    left: 163px;
    top: 292px;
    width: 684px;
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 160px;
    line-height: 1;
    letter-spacing: 0;
}

/* PC：大屏按 1920 设计稿比例调整 left，避免太靠左 */
@media (min-width: 1921px) {
    .cnx-hero-title {
        left: calc(100vw * 163 / 1920);
    }
}

/* 超大屏（>2300px）：banner 文案按新规格 */
@media (min-width: 2400px) {
    html[lang="en"] .cnx-banner h1.cnx-hero-title{
        width: 1100px;
    }
    .cnx-hero-title {
        font-size: 220px;
        width: 1100px;
    }

    .cnx-hero-tagline {
        font-size: 45px;
        width: unset;
        top: 840px;
    }
    html[lang="ja"] .cnx-banner .cnx-hero-tagline{
        width: 880px;
    }

    html[lang="zh-CN"] .cnx-hero-title,
    html[lang="zh-TW"] .cnx-hero-title {
        line-height: 1.1;
    }
}

/* PC：英文标题宽度 */
@media (min-width: 769px) {
    html[lang="en"] h1.cnx-hero-title {
        width: 736px;
    }
}

.cnx-hero-mark {
    position: absolute;
    right: 80px;
    bottom: 50px;
    width: 27px;
    height: 24px;
    background: url("../images/banner-right1.png") no-repeat center;
    background-size: contain;
    cursor: pointer;
}

/* 扩大 cnx-hero-mark 的可点击热区（视觉不变，事件不动） */
.cnx-hero-mark::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    background: transparent;
}

.cnx-main-content {
    width: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 全站文字轻上浮出场（排除导航/footer；由 JS 挂载 .cnx-reveal-up-target） */
.cnx-reveal-up-target {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 500ms ease, transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.cnx-reveal-up-target.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .cnx-reveal-up-target,
    .cnx-reveal-up-target.is-revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ====== 通用：区块标题（按 design 的 “- xxx / English” 样式） ====== */
.cnx-section {
    width: 100%;
    padding: 120px 0;
}

.cnx-section__inner {
    width: 1480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.cnx-section__heading {
    width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

/* ====== Responsive (<=1400px): prevent horizontal overflow ====== */
@media (max-width: 1400px) {
    .cnx-section {
        padding-left: 40px;
        padding-right: 40px;
    }

    .cnx-section__inner {
        width: 100%;
        max-width: 1480px;
    }

    .cnx-section__heading {
        width: 100%;
        max-width: 980px;
    }

    /* Careers 内部把 980 的硬宽改为自适应 */
    #careers .cnx-section__inner {
        width: 100%;
        max-width: 980px;
    }

    .cnx-careers-grid {
        width: 100%;
        max-width: 910px;
        justify-content: flex-start;
        gap: 30px;
    }
}

.cnx-section__kicker {
    margin: 0;
    font-family: "M PLUS 1", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    color: #111111;
}

.cnx-section__title-en {
    margin: 0;
    font-family: "M PLUS 1";
    font-weight: 800;
    font-size: 80px;
    line-height: 1;
    color: #111111;
}

.cnx-section__title-en::first-letter {
    color: var(--cnx-green);
}

/* ====== Company ====== */
.cnx-section--company {
    padding-top: 140px;
}

.cnx-company__cards {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;

}

.cnx-card--company{
    position: relative;
    width: 560px;
    height: 630px;
}

.cnx-company__img {
    display: block;
    position: absolute;
    height: auto;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* compony-left1：左上绝对定位 */
.cnx-company__img--1 {
    left: 0;
    top: 0;
    width: 480px;
    transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* compony-left2：在 1 上层，偏右下 */
.cnx-company__img--2 {
    right: 0;
    bottom: 0;
    width: 360px;
    z-index: 2;
    transition: transform 1800ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* AOS-like（phone-web 同款触发方式）：[data-aos] + .aos-animate */
.cnx-card--company [data-aos^="cnx-float-up-"] {
    opacity: 0.8;
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.cnx-card--company [data-aos="cnx-float-up-1"] {
    transform: translate3d(0, 100px, 0);
}

.cnx-card--company [data-aos="cnx-float-up-2"] {
    transform: translate3d(0, 144px, 0);
}

.cnx-card--company [data-aos^="cnx-float-up-"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .cnx-card--company [data-aos^="cnx-float-up-"] {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

.cnx-card--philosophy{
    width: 710px;
}

.cnx-philosophy {
    display: flex;
    flex-direction: column;
}

/* 第 2、3 块都距离上边内容 36px */
.cnx-philosophy__block + .cnx-philosophy__block {
    margin-top: 36px;
}

/* 1) 对应 Group 78 */
.cnx-philosophy__headline {
    margin: 0;
    /* 避免中文/英文混排时部分字形回退导致“有的粗有的细” */
    font-family: "PingFang SC", sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.5;
    color: #111111;
}

.cnx-philosophy__body {
    margin: 0;
    margin-top: 14px;
    font-family: "PingFang SC", system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #111111;
}

/* 2) / 3) 标题样式（加粗 + 颜色） */
.cnx-philosophy__title {
    margin: 0;
    /* 同上：统一字体回退顺序，避免粗细不一致 */
    font-family: "PingFang SC", sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.5;
    color: #111111;
}

/* 业务范围：每项前置绿色箭头（伪元素） */
.cnx-scope-list {
    padding: 0;
    list-style: none;
}

.cnx-scope-list li {
    position: relative;
    padding-left: 28px;
}

.cnx-scope-list li + li {
    margin-top: 10px;
}

.cnx-scope-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 8px;
    background-repeat: no-repeat;
    background-size: 19px 8px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2219%22%20height%3D%228%22%20viewBox%3D%220%200%2019%208%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M0.5%203.18188L4.37114e-08%203.18188L-4.37114e-08%204.18188L0.5%204.18188L0.5%203.68188L0.5%203.18188ZM18.8536%204.03544C19.0488%203.84018%2019.0488%203.5236%2018.8536%203.32833L15.6716%200.146352C15.4763%20-0.04891%2015.1597%20-0.0489101%2014.9645%200.146352C14.7692%200.341614%2014.7692%200.658197%2014.9645%200.853459L17.7929%203.68189L14.9645%206.51031C14.7692%206.70558%2014.7692%207.02216%2014.9645%207.21742C15.1597%207.41268%2015.4763%207.41268%2015.6716%207.21742L18.8536%204.03544ZM0.5%203.68188L0.5%204.18188L18.5%204.18189L18.5%203.68189L18.5%203.18189L0.5%203.18188L0.5%203.68188Z%22%20fill%3D%22%2318D761%22/%3E%3C/svg%3E");
}

.cnx-card {
    color: #111111;
}

.cnx-card__title {
    margin: 0 0 14px;
    font-family: "PingFang SC", system-ui, sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1;
}

.cnx-card__text {
    margin: 0;
    font-family: "PingFang SC", system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
}

/* ====== Services（仅先铺底图与标题，逐块继续补齐） ====== */
.cnx-section--services {
    padding-top: 30px;
    padding-bottom: 0;
}

.cnx-section--services .cnx-section__inner{
    width: 100%;
}

.cnx-services__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #E9E9E9;
}

.cnx-service-row {
    width: 100%;
    height: 194px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #E9E9E9;
    background: #ffffff;
    cursor: pointer;
    padding: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid #E9E9E9;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.cnx-service-row:last-of-type {
    border-bottom: none;
}

.cnx-service-row__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 310px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}

.cnx-service-row__inner {
    width: 980px;
    min-height: 59px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    color: #111111;
    position: relative;
    z-index: 1;
    padding-top: 0;
}

.cnx-service-row:hover,
.cnx-service-row.is-active {
    height: 310px;
}

.cnx-service-row:hover .cnx-service-row__bg,
.cnx-service-row.is-active .cnx-service-row__bg {
    opacity: 1;
}

.cnx-service-row:hover .cnx-service-row__inner,
.cnx-service-row.is-active .cnx-service-row__inner {
    color: #ffffff;
}

.cnx-service-row:hover .cnx-service-row__caret,
.cnx-service-row.is-active .cnx-service-row__caret {
    background: #ffffff;
    width: 12px;
    height: 10px;
}

.cnx-service-row__titles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cnx-service-row__title-pair {
    height: 59px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cnx-service-row__desc {
    display: none;
    font-family: sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    max-width: 520px;
}

.cnx-service-row__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cnx-service-row__list li {
    position: relative;
    padding-left: 18px;
}

.cnx-service-row__list li + li {
    margin-top: 10px;
}

.cnx-service-row__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ffffff;
    opacity: 1;
}

.cnx-service-row:hover .cnx-service-row__desc,
.cnx-service-row.is-active .cnx-service-row__desc {
    display: block;
}

/* PC：Services 展开动效（避免突然出现/消失） */
@media (min-width: 769px) {
    .cnx-service-row {
        transition: height 700ms cubic-bezier(0.22, 1, 0.36, 1);
        will-change: height;
        /* 关键：避免 hover/active 时整体“上下跳动”——让内容从顶部开始布局，只向下增长 */
        align-items: flex-start;
        justify-content: center;
        padding-top: 50px;
    }

    .cnx-service-row__bg {
        transition: opacity 700ms ease;
    }

    /* 描述区：不改变标题位置；只在标题下方渐变出现，向下增长 */
    .cnx-service-row__desc {
        display: block; /* PC 不用 display:none，避免硬切产生跳动 */
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translate3d(0, -8px, 0);
        pointer-events: none;
        transition:
            max-height 700ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 700ms ease,
            transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
        will-change: max-height, opacity, transform;
    }

    .cnx-service-row:hover .cnx-service-row__desc,
    .cnx-service-row.is-active .cnx-service-row__desc {
        max-height: 260px;
        opacity: 1;
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }
}

/* 对应 Figma：en 13/400，cn 26/600，颜色 #111 */
.cnx-service-row__en {
    font-family: auto;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
}

.cnx-service-row__cn {
    font-family: sans-serif , auto;
    font-weight: 600;
    font-size: 26px;
    line-height: 1.5;
}

/* 右侧小三角（10x12） */
.cnx-service-row__caret {
    align-self: flex-start;
    position: relative;
    top: 23.5px;
    width: 10px;
    height: 12px;
    background: #111111;
    clip-path: polygon(0% 0%, 0% 100%, 100% 50%);
    border-radius: 0.5px;
}

/* 高亮时：三角箭头向下 */
.cnx-service-row.is-active .cnx-service-row__caret,
.cnx-service-row:hover .cnx-service-row__caret {
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}


/* ====== Collaboration 背景图 ====== */
.cnx-section--collaboration {
    padding-top: 140px;
    background-image: url("../images/Collaboration.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 610px;
}

/* Collaboration：标题下方说明区（Figma: 160:555） */
.cnx-collaboration-notes {
    width: 980px;
    margin: 0 auto;
    font-family: "PingFang SC", system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #111111;
}

.cnx-collaboration-notes__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cnx-collaboration-notes__list li {
    position: relative;
    padding-left: 28px;
}

.cnx-collaboration-notes__list li + li {
    margin-top: 8px;
}

.cnx-collaboration-notes__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 8px;
    background-repeat: no-repeat;
    background-size: 19px 8px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2219%22%20height%3D%228%22%20viewBox%3D%220%200%2019%208%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M0.5%203.18213L4.37114e-08%203.18213L-4.37114e-08%204.18213L0.5%204.18213L0.5%203.68213L0.5%203.18213ZM18.8536%204.03568C19.0488%203.84042%2019.0488%203.52384%2018.8536%203.32858L15.6716%200.146596C15.4763%20-0.0486659%2015.1597%20-0.0486659%2014.9645%200.146596C14.7692%200.341858%2014.7692%200.658441%2014.9645%200.853703L17.7929%203.68213L14.9645%206.51056C14.7692%206.70582%2014.7692%207.0224%2014.9645%207.21766C15.1597%207.41293%2015.4763%207.41293%2015.6716%207.21766L18.8536%204.03568ZM0.5%203.68213L0.5%204.18213L18.5%204.18213L18.5%203.68213L18.5%203.18213L0.5%203.18213L0.5%203.68213Z%22%20fill%3D%22%2318D761%22/%3E%3C/svg%3E");
}

.cnx-collaboration-notes__extra {
    margin: 14px 0 0;
}

/* ====== Collaboration 下方跑马灯（Figma: 160:562） ====== */
.cnx-marquee {
    width: 100%;
    height: 330px;
    overflow: hidden;
    background: #ffffff;
}

.cnx-marquee__viewport {
    width: 100%;
    height: 330px;
    overflow: hidden;
    position: relative;
    top: -33px;
}

.cnx-marquee__track {
    display: inline-flex;
    align-items: flex-start;
    gap: 120px;
    white-space: nowrap;
    will-change: transform;
    animation: cnx-marquee-left 28s linear infinite;
}

.cnx-marquee__item {
    font-family: "M PLUS 1";
    font-weight: 900;
    font-size: 220px;
    line-height: 1.5;
    color: #18D761;
}

@keyframes cnx-marquee-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cnx-marquee__track {
        animation: none;
    }
}

.cnx-section--careers {
    padding: 0 0 380px;
    
}
#careers .cnx-section__inner{
    width: 980px;
}   

/* Careers：4 块布局（2 列，flex-wrap） */
.cnx-careers-grid {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

/* Block 1: 440x680（info） */
.cnx-career-info {
    width: 440px;
    overflow: hidden;
    background: #F6F6F6;
    padding: 40px;
    display: flex;
    flex-direction: column;
    margin-bottom: 42px;
}

.cnx-career-info__heading {
    margin: 0 0 28px;
}

.cnx-career-info__kicker {
    margin: 0 0 12px;
    font-family: sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    color: #111;
}

.cnx-career-info__title {
    margin: 0;
    font-family: "M PLUS 1";
    font-weight: 900;
    font-size: 80px;
    line-height: 1;
    color: #111111;
}

.cnx-career-info__title::first-letter {
    color: var(--cnx-green);
}

.cnx-career-info__lead {
    margin: 0 0 28px;
    color: #111;
    font-family: "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 2;
}

.cnx-career-info__sub {
    margin: 0;
    color: #111;
    font-family: sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
}

.cnx-career-info__list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    width: 100%; 
}

.cnx-career-info__list li {
    position: relative;
    padding-left: 28px;
    color: #111;
    font-family: "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
}

.cnx-career-info__list li + li {
    margin-top: 8px;
}

.cnx-career-info__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 8px;
    background-repeat: no-repeat;
    background-size: 19px 8px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2219%22%20height%3D%228%22%20viewBox%3D%220%200%2019%208%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M0.5%203.18213L4.37114e-08%203.18213L-4.37114e-08%204.18213L0.5%204.18213L0.5%203.68213L0.5%203.18213ZM18.8536%204.03568C19.0488%203.84042%2019.0488%203.52384%2018.8536%203.32858L15.6716%200.146596C15.4763%20-0.0486659%2015.1597%20-0.0486659%2014.9645%200.146596C14.7692%200.341858%2014.7692%200.658441%2014.9645%200.853703L17.7929%203.68213L14.9645%206.51056C14.7692%206.70582%2014.7692%207.0224%2014.9645%207.21766C15.1597%207.41293%2015.4763%207.41293%2015.6716%207.21766L18.8536%204.03568ZM0.5%203.68213L0.5%204.18213L18.5%204.18213L18.5%203.68213L18.5%203.18213L0.5%203.18213L0.5%203.68213Z%22%20fill%3D%22%2318D761%22/%3E%3C/svg%3E");
}

.cnx-career-info__sub--apply {
    margin-top: 28px;
}

.cnx-career-info__apply {
    margin: 18px 0 0;
    color: #111;
    font-family: "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 2;
}

/* Block 2/3/4: 440x478 */
.cnx-career-card {
    width: 440px;
    height: 478px;
    display: flex;
    flex-direction: column;
    gap: 30px; /* 对齐 Figma */
}
.cnx-careers-grid .cnx-career-card--support{
    position: relative;
    top: 180px;
}

/* PC：英文下 Support 卡片纵向位置微调 */
html[lang="en"] .cnx-careers-grid .cnx-career-card--support{
    top: 370px;
}

/* PC：日语下 Support 卡片纵向位置微调 */
html[lang="ja"] .cnx-careers-grid .cnx-career-card--support{
    top: 260px;
}
.cnx-careers-grid .cnx-career-card--assistant{
    position: relative;
    top: 60px;
}
 .cnx-career-card__media {
    width: 440px;
    height: 320px;
    overflow: hidden;
    background: #C9C9C9;
    position: relative;
}

.cnx-career-card__img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cnx-career-card__body {
    width: 440px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cnx-career-card__head {
    width: 440px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cnx-career-card__titles {
    flex: 1;
    min-width: 0;
}

.cnx-career-card__title-en {
    margin: 0;
    font-family: sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.6;
    color: #111;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.cnx-career-card__title-zh {
    margin: 0;
    font-family: sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.6;
    color: #111111;
}

.cnx-career-card__desc {
    margin: 0;
    font-family: "PingFang SC", system-ui, sans-serif;
    font-weight: 400; /* 默认不加粗：交给 label 单独加粗 */
    font-size: 16px;
    line-height: 1.6;
    color: #111111;
}

.cnx-career-card__desc-label {
    font-weight: 600;
}

.cnx-career-card__desc-text {
    font-weight: 400;
}

/* 仅第 3 块有 Apply 按钮（Figma: padding 16 20 16 60, radius 26） */
.cnx-career-card__apply {
    flex: none;
    height: 46px;
    width: 200px;
    border: 1px solid #111111;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #111111;
    background: transparent;
    position: relative;
}

.cnx-career-card__apply:hover {
    background: #111111;
    color: #ffffff;
}

.cnx-career-card__apply:hover .cnx-career-card__apply-caret {
    background: #ffffff;
}

.cnx-career-card__apply-text {
    font-family: sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
}

.cnx-career-card__apply-caret {
    width: 10px;
    height: 12px;
    background: #111111;
    clip-path: polygon(0% 0%, 0% 100%, 100% 50%);
    border-radius: 0.5px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (min-width: 769px) {
    .cnx-career-card__img {
        transform: scale(1);
        transition: transform 200ms ease;
        will-change: transform;
    }

    .cnx-career-card:hover .cnx-career-card__img {
        transform: scale(1.2);
    }

    .cnx-career-card .cnx-career-card__apply {
        opacity: 0;
        transform: translate3d(0, 6px, 0);
        pointer-events: none;
        transition: opacity 200ms ease, transform 200ms ease, background-color 200ms ease, color 200ms ease;
        will-change: opacity, transform;
    }

    .cnx-career-card:hover .cnx-career-card__apply {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }
}

/* ====== Contact（仅标题） ====== */
.cnx-section--contact {
    padding-top: 140px;
}

/* ============================================
   H5 (<=768px) — 放在文件最底部，确保覆盖 PC
   仅在 <=768px 生效，不影响 PC
   ============================================ */
@media (max-width: 768px) {
    .cnx-only-desktop {
        display: none;
    }

    .cnx-only-mobile {
        display: block;
    }
}

@media (max-width: 768px) {
    /* H5 展示 mobile 轮播，隐藏 desktop */
    .cnx-banner__slide--desktop {
        display: none;
    }

    .cnx-banner__slide--mobile {
        display: block;
    }
}

/* ============================================
   H5 (<=768px) — 1:1 还原（390 画板）
   约束：导航与 footer 先不改；内容不变，仅调整布局/样式
   ============================================ */
@media (max-width: 768px) {
    .cnx-banner {
        height: 660px;
        min-height: auto;
    }

    h1.cnx-hero-title {
        top: 220px;
        width: 100%;
        max-width: 440px;
        font-size: 68px;
        line-height: 1.1;
        white-space: pre-line; /* 允许 \n 换行（多语言） */
    }
    html[lang="en"] h1.cnx-hero-title {
        font-size: 64px;
    }

    p.cnx-hero-tagline {
        left: 50%;
        top: 388px;
        width: 100%;
        padding: 0 40px;
        font-size: 18px;
        line-height: 1.6;
        transform: translateX(-50%);
    }

    /* H5：Banner tagline 的上浮动效，保持水平居中（-50%） */
    p.cnx-hero-tagline {
        opacity: 0;
        animation-name: cnx-banner-text-up-h5-tagline;
        animation-duration: 1100ms;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
        animation-delay: 0.3s;
        animation-fill-mode: forwards;
    }

    @keyframes cnx-banner-text-up-h5-tagline {
        from {
            opacity: 0;
            transform: translate3d(-50%, 40px, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(-50%, 0, 0);
        }
    }

    .cnx-hero-mark {
        right: 41px;
        top: 600px;
    }

    /* 通用内容容器：左右 40，内容宽 310 */
    .cnx-section {
        padding: 80px 0;
    }

    div.cnx-section__inner {
        align-items: center;
        width: 100%;
    }

    .cnx-section__kicker {
        color: #111111;
        font-family: "M PLUS 1", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
        font-weight: 500;
        font-size: 20px;
        line-height: 1;
    }

    h2.cnx-section__title-en {
        font-family: "M PLUS 1";
        font-weight: 800;
        font-size: 40px;
        line-height: 1;
    }
    div.cnx-section__heading{
        margin: 0;
        margin-bottom: 50px;
        gap: 10px;
        padding: 0 40px;
    }
    /* Company：双列改竖排 */
    .cnx-company__cards {
        flex-direction: column;
        align-items: stretch;
        gap: 50px;
        width: calc(100vw - 80px); 
        margin-left: auto;
        margin-right: auto;
    }

    article.cnx-card.cnx-card--company {
        width: 100%;
        height: auto;
        aspect-ratio: 560 / 630; /* 按设计稿比例等比缩放 */
    }

    img.cnx-company__img--1 {
        width: 85.7143%; /* 480 / 560 */
    }

    img.cnx-company__img--2 {
        width: 64.2857%; /* 360 / 560 */
    }

    /* H5：幅度更小（仍按 data-aos 驱动） */
    article.cnx-card.cnx-card--company [data-aos="cnx-float-up-1"] {
        transform: translate3d(0, 30px, 0);
    }

    article.cnx-card.cnx-card--company [data-aos="cnx-float-up-2"] {
        transform: translate3d(0, 54px, 0);
    }

    /* H5：提高权重，确保触发后回到目标位置 */
    article.cnx-card.cnx-card--company [data-aos^="cnx-float-up-"].aos-animate {
        transform: translate3d(0, 0, 0);
    }

    article.cnx-card.cnx-card--philosophy {
        width: 100%;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
    }

    div.cnx-services__content {
        border: 0;
    }

    div.cnx-service-row {
        height: 310px; /* H5：每块固定高度 */
        padding: 0;
        border: none ;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* H5：四块分别用 h5 目录背景图（不使用 img） */
    div.cnx-service-row[data-service-index="0"] {
        background-image: url("../images/h5/service1.png");
    }

    div.cnx-service-row[data-service-index="1"] {
        background-image: url("../images/h5/service2.png");
    }

    div.cnx-service-row[data-service-index="2"] {
        background-image: url("../images/h5/service3.png");
    }

    div.cnx-service-row[data-service-index="3"] {
        background-image: url("../images/h5/service4.png");
    }

    .cnx-service-row__bg {
        height: auto;
        opacity: 0; /* H5：不用 img 背景图，避免干扰 */
    }

    div.cnx-service-row__inner {
        width: 310px;
        color: #ffffff; /* H5：全都高亮效果 */
        padding: 30px 0 40px;
    }

    .cnx-service-row__titles {
        gap: 18px; /* Figma: desc starts at y=77 */
    }

    .cnx-service-row__title-pair {
        height: auto;
    }

    .cnx-service-row__en {
        font-size: 13px;
        font-weight: 400;
        line-height: 1.5;
        text-decoration: underline; /* Figma: UNDERLINE */
        text-underline-offset: 2px;
    }

    .cnx-service-row__cn {
        font-size: 26px; /* Figma: 26/600 */
        font-weight: 600;
        line-height: 1.5;
        margin-top: 4px;
        font-family: sans-serif, auto;
    }

    .cnx-service-row__desc {
        max-width: 310px;
        font-size: 16px; /* Figma: 16/400 */
        line-height: 1.6;
        display: block; /* H5：不做手风琴，直接展示描述 */
        color: #ffffff;
    }

    ul.cnx-service-row__list li {
        padding-left: 18px;
        margin-top: 0;
    }

    .cnx-service-row__list li::before {
        content: "";
        width: 3px;
        height: 3px;
        border-radius: 99px;
        background: #ffffff;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    /* H5：去掉右侧三角箭头 */
    .cnx-service-row__caret {
        display: none;
    }

    /* Collaboration */
    section.cnx-section.cnx-section--collaboration {
        width: 100%;
        height: auto;
        padding: 60px 40px 75px;
        background-image: url("../images/h5/Collaboration.png");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    div.cnx-collaboration-notes {
        width: 100%;
        margin-top: 0;
    }

    ul.cnx-collaboration-notes__list li + li {
        margin-top: 0; /* align with Figma paragraph spacing */
    }

    .cnx-collaboration-notes__extra {
        margin-top: 12px;
    }

    /* Marquee：缩小字号避免溢出 */
    .cnx-marquee {
        height: 120px; 
        margin-top: 10px;
    }

    .cnx-marquee__viewport {
        height: 120px; 
        top: 0;
        display: flex;
        align-items: center;
    }

    .cnx-marquee__item {
        font-size: 120px; 
        line-height: 1; /* 100% */
    }

    .cnx-section--collaboration .cnx-section__inner .cnx-section__heading {
        padding: 0;
    }

    #careers .cnx-section__inner {
        width: 100%;
        max-width: unset;
    }

    .cnx-career-card {
        width: 100%;
        height: auto;
        gap: 30px;
        align-items: center;
    }

    .cnx-section div.cnx-careers-grid article.cnx-career-card--support,
    .cnx-section div.cnx-careers-grid article.cnx-career-card--assistant {
        top: 0;
    }

    /* H5：body/head 左右 40px 留白，自适应宽度 */
    .cnx-career-card__body,
    .cnx-career-card__head {
        width: calc(100vw - 80px);
    }

    .cnx-career-card__media {
        width: 100%;
        height: 294px;
        margin-top: 0;
    }

    .cnx-career-card__apply {
        width: 100px; /* Figma 230:452 */
        height: auto;
        padding: 12px 8px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border: 1px solid #111111;
        border-radius: 26px;
        display: flex;
        text-decoration: none;
        color: #111111;
        background: transparent;
        position: relative;
    }

    .cnx-career-card__apply-text {
        color: #111;
        text-align: center;
        font-family: sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 1;
    }

    .cnx-career-card__apply:active .cnx-career-card__apply-text ,
    .cnx-career-card__apply:hover .cnx-career-card__apply-text {
        color: #fff;
    }

    .cnx-career-card__apply-caret {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        width: 10px;
        height: 12px;
    }
    .cnx-section--careers{
        padding-top: 40px;
    }
    .cnx-section--careers .cnx-section__inner{
        width: 100%;
        max-width: unset;
    }
    .cnx-section--careers .cnx-careers-grid{
        width: 100%;
        justify-content: center;
        gap: 0;
    }
    .cnx-section--careers .cnx-career-info{
        padding: 40px 40px 50px;
        width: 100%;
        align-items: center;
        margin-bottom: 0;
    }
    .cnx-career-card__desc{
        padding-bottom: 40px;
    }

    .cnx-career-info {
        order: 1;
    }

    .cnx-career-card--engineer {
        order: 2;
    }

    .cnx-career-card--support {
        order: 3;
    }

    .cnx-career-card--assistant {
        order: 4;
    }

    /* Careers info（H5 1:1） */
    .cnx-career-info__heading {
        margin: 0;
        width: 100%;
    }

    .cnx-career-info__kicker {
        margin: 0 0 10px;
        color: #111;
        font-size: 20px;
        font-style: normal;
        font-weight: 500;
        line-height: 100%;
    }

    .cnx-career-info__title {
        margin: 0 0 30px;
        color: #111111;
        font-family: "Mplus 1p", sans-serif;
        font-size: 40px;
        font-style: normal;
        font-weight: 800;
        line-height: 100%;
    }

    .cnx-career-info__title::first-letter {
        color: var(--cnx-green);
    }

    .cnx-career-info__lead {
        margin: 0 0 20px;
        color: #111;
        font-family: "PingFang SC", system-ui, sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 160%;
        width: 100%;
    }

    .cnx-career-info__sub {
        width: 100%;
        margin: 0;
        color: #111;
        font-family: sans-serif;
        font-size: 22px;
        font-style: normal;
        font-weight: 600;
        line-height: 150%;
    }

    .cnx-career-info__list {
        margin: 20px 0 0;
    }

    .cnx-career-info__sub--apply {
        margin-top: 20px;
    }

    .cnx-career-info__apply {
        margin: 20px 0 0;
        color: #111;
        font-family: "PingFang SC", system-ui, sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 160%;
        width: 100%;
    }
}

