@charset "utf-8";
/* ============================================
   沛杰集团官网 - 响应式适配样式
   架构说明（移动端 / 网页端 隔离原则）：
   1. 桌面端专用规则一律放在 @media (min-width: 769px) 内，
      移动端永远不会命中，避免桌面样式泄漏；
   2. 移动端专用规则一律放在 @media (max-width: 768px) 内，
      桌面端永远不会命中，避免移动样式泄漏；
   3. 下拉菜单的桌面端定位（宽度/偏移）改用专用类 dd-w* ，
      仅随桌面媒体查询生效，不再使用内联样式注入；
   4. 移动端交互仅通过 .open / .active 等 class 驱动，
      JS 不再注入内联 !important 样式（消除运行时污染）。
   ============================================ */

/* 移动端菜单按钮 - 默认隐藏（仅移动端显示） */
.mobile-menu-btn {
    display: none;
    float: right;
    width: 44px;
    height: 44px;
    margin-top: 13px;
    margin-right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10001;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 5px auto;
    transition: all 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端遮罩层 - 桌面端默认隐藏 */
.mobile-overlay {
    display: none;
}

/* ============================================
   长语言导航自动收紧（俄语/缅甸语标签较长，避免换行）
   html[lang=ru]/[lang=my] 时缩小 logo 宽度、间距和字号；
   中文/英文保持原间距，移动端(≤768)不受影响
   ============================================ */
@media screen and (min-width: 1201px) {
    html[lang="ru"] .header .logo { width: 17%; }
    html[lang="ru"] .header .menu { margin-left: 35px; }
    html[lang="ru"] .header .menu ul { column-gap: 32px; }
    html[lang="ru"] .header .menu ul li { font-size: 14.5px; }
    html[lang="my"] .header .logo { width: 15%; }
    html[lang="my"] .header .menu { margin-left: 20px; }
    html[lang="my"] .header .menu ul { column-gap: 20px; }
    html[lang="my"] .header .menu ul li { font-size: 13px; }
    html[lang="id"] .header .logo { width: 18%; }
    html[lang="id"] .header .menu { margin-left: 40px; }
    html[lang="id"] .header .menu ul { column-gap: 32px; }
    html[lang="id"] .header .menu ul li { font-size: 14px; }
    /* 英语 6 标签总宽偏大（>1200 宽屏）：收紧间距，确保 1200~1300px 窗口导航一行、
       语言按钮不掉行；中文保持原大间距 */
    html[lang="en"] .header .logo { width: 18%; }
    html[lang="en"] .header .menu { margin-left: 40px; }
    html[lang="en"] .header .menu ul { column-gap: 35px; }
    html[lang="en"] .header .menu ul li { font-size: 14px; }
}

/* ============================================
   桌面端专用规则 (≥ 769px)
   仅在此区间生效，移动端/平板不命中
   ============================================ */
@media screen and (min-width: 769px) {
    /* 桌面端最小宽度降到 769px：窗口 769~980px 时页面跟随窗口收缩，
       右侧内容（毛玻璃卡片等）不再超出视口（W3C 响应式） */
    body {
        min-width: 769px;
    }

    /* 下拉菜单桌面端定位（原为 HTML 内联样式，现统一定义于此，
       移动端媒体查询内不命中，杜绝桌面定位泄漏到手机端） */
    .dropdown-menu.dd-w200-l50 {
        width: 200%;
        left: -50%;
    }
    .dropdown-menu.dd-w200-l70 {
        width: 200%;
        left: -70%;
    }
    .dropdown-menu.dd-w240-l70 {
        width: 240%;
        left: -70%;
    }
    .dropdown-menu.dd-w260-l80 {
        width: 260%;
        left: -80%;
    }
}

/* ============================================
   中小屏适配 (≤ 1200px) - 修复原1200px固定宽度溢出
   ============================================ */
@media screen and (max-width: 1200px) {
    .header {
        width: 100%;
        padding: 0 15px;
    }
    .header .logo {
        width: 22%;
    }
    .header .menu {
        width: auto;
        margin-left: 140px;
    }
    .header .menu ul {
        column-gap: 50px;
    }
    .header .menu ul li {
        margin-right: 0;
        font-size: 14px;
        min-width: auto;
    }
    .header .search {
        display: none;
    }

    /* 长语言（≤1200 窄桌面）：进一步收紧避免换行 */
    html[lang="ru"] .header .logo { width: 18%; }
    html[lang="ru"] .header .menu { margin-left: 40px; }
    html[lang="ru"] .header .menu ul { column-gap: 25px; }
    html[lang="ru"] .header .menu ul li { font-size: 13px; }
    html[lang="my"] .header .logo { width: 16%; }
    html[lang="my"] .header .menu { margin-left: 20px; }
    html[lang="my"] .header .menu ul { column-gap: 16px; }
    html[lang="my"] .header .menu ul li { font-size: 12px; }
    html[lang="id"] .header .logo { width: 20%; }
    html[lang="id"] .header .menu { margin-left: 40px; }
    html[lang="id"] .header .menu ul { column-gap: 30px; }
    html[lang="id"] .header .menu ul li { font-size: 13.5px; }
    /* 英语 ≤1200 窄桌面：margin 140 过大导致换行，单独收紧 */
    html[lang="en"] .header .logo { width: 20%; }
    html[lang="en"] .header .menu { margin-left: 40px; }
    html[lang="en"] .header .menu ul { column-gap: 35px; }
    html[lang="en"] .header .menu ul li { font-size: 14px; }

    .footer > div {
        width: 100%;
        padding: 0 15px;
    }
    .foot_nav > div {
        min-height: auto;
    }

    /* 首页内容区 */
    .news-top, .news-wrap {
        width: 100%;
        padding: 0 15px;
    }
    .business-box {
        width: 38%;
        padding: 1.4rem;
        /* 窄桌面（≤1200）：右侧定位随窗口自适应，卡片不溢出视口（W3C） */
        right: 6%;
    }
    .business-title span {
        font-size: 32px;
        line-height: 60px;
    }
    .business-content {
        /* 窄桌面字号/行距：卡片高度不超过图片高度，避免上下溢出与相邻卡片重叠（W3C） */
        font-size: 16px;
        line-height: 26px;
    }

    /* 子页面内容 */
    .page-content {
        padding: 40px 15px;
    }
    .page-banner h1 {
        font-size: 36px;
    }
    .page-banner p {
        font-size: 16px;
    }

    /* 配界全球页 */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .client-logos {
        grid-template-columns: repeat(4, 1fr);
    }

    /* 语言/STEAM页 */
    .lang-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .steam-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
    .step-row {
        flex-wrap: wrap;
    }
    .step-item {
        flex: 0 0 33.33%;
        margin-bottom: 20px;
    }
}

/* ============================================
   平板适配 (≤ 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
    /* 中间断点（769-1024px）防横向溢出：避免 body 被内容撑宽导致
       固定导航背景超出视口（左右出现异常间隙/滚动） */
    body {
        overflow-x: hidden;
    }
    .header .logo {
        width: 20%;
    }
    .header .menu {
        width: auto;
        margin-left: 20px;
    }
    .header .menu ul {
        column-gap: 20px;
    }
    .header .menu ul li {
        margin-right: 0;
        font-size: 12px;
    }
    .business-box {
        width: 42%;
        padding: 1.2rem;
        /* 更窄桌面（≤1024）：右侧定位再收紧，卡片始终在视口内（W3C） */
        right: 4%;
    }
    .business-title span {
        font-size: 28px;
        line-height: 52px;
    }
    .business-content {
        /* 更窄桌面字号/行距：卡片高度始终不超过图片（W3C） */
        font-size: 15px;
        line-height: 24px;
    }
    .lang-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steam-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 长语言（≤1024 窄桌面）：俄语/缅甸语标签长，再收紧一档，
       保证全部标签在视口内不溢出、不贴边，下拉菜单与标题正常居中对齐（W3C） */
    html[lang="ru"] .header .logo { width: 15%; }
    html[lang="ru"] .header .menu { margin-left: 12px; }
    html[lang="ru"] .header .menu ul { column-gap: 16px; }
    html[lang="ru"] .header .menu ul li { font-size: 11.5px; }
    html[lang="my"] .header .logo { width: 15%; }
    html[lang="my"] .header .menu { margin-left: 16px; }
    html[lang="my"] .header .menu ul { column-gap: 14px; }
    html[lang="my"] .header .menu ul li { font-size: 11.5px; }
}

/* ============================================
   手机适配 (≤ 768px)
   以下规则仅在移动端命中，桌面端不受影响
   ============================================ */
@media screen and (max-width: 768px) {
    /* 移动端隐藏横向溢出（html 与 body 双保险，阻止侧滑菜单撑大滚动宽度）。
       注意：
       ① 不能只用 overflow-x: hidden —— 实测会让 position: sticky 导航失效；
       ② overflow-x: clip 单用时，overflow-y 的 visible 会被规范计算为 clip，
          新版 Edge/Chrome 会把纵向滚动裁掉（缩小窗口后滚不到底部）；
       ③ 最终方案：移动端完全不限制 html/body 的 overflow（默认 visible）——
          浏览器原生滚动 100% 正常，彻底规避 overflow 组合（visible↔clip/hidden
          相互覆盖）在部分浏览器上导致的滚动范围/滚动条异常；
          横向溢出已通过语言切换字号调整（html[lang] 规则）与内容治理消除，
          实测无横向溢出；body 显式 visible 覆盖平板断点(1024)的 overflow-x:hidden；
          sticky 导航：html/body 均 visible 时相对视口保持固定，浏览器实测通过。 */
    html {
        overflow-x: visible;
        overflow-y: visible;
    }
    body {
        overflow-x: visible;
        overflow-y: visible;
    }

    /* 移动端菜单打开时锁定滚动（由 mobile.js 仅切换 class） */
    body.mobile-menu-locked {
        overflow: hidden;
    }

    /* 头部 */
    .header {
        width: 100%;
        height: 60px;
        padding: 0 10px;
        position: sticky;
        top: 0;
        /* 显式层级：保证 sticky 固定后高于页面其它内容，
           且不依赖 common.css 的桌面端 z-index（移动端独立声明，互不污染） */
        z-index: 10000;
        /* 裁剪内部滑出菜单带来的 8px 横向溢出，避免页面横向滚动/错位 */
        overflow-x: clip;
    }
    .header .logo {
        width: auto;
        padding-top: 8px;
    }
    .header .logo img {
        height: 36px;
        width: auto;
    }

    /* 显示汉堡按钮 */
    .mobile-menu-btn {
        display: block;
        /* 层级高于右侧滑出菜单(.header .menu, z-index:10000)，
           确保菜单打开后汉堡按钮仍在最上层可点击（菜单会从右覆盖按钮区域） */
        position: relative;
        z-index: 10001;
    }

    /* 导航菜单 - 移动端滑出 */
    .header .menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: #fff;
        float: none;
        margin-left: 0;
        z-index: 10000;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        padding-top: 60px;
    }
    .header .menu.open {
        right: 0;
    }
    .header .menu ul {
        display: block;
        padding: 0;
    }
    .header .menu ul li {
        float: none;
        display: block;
        width: 100%;
        text-align: left;
        line-height: 50px;
        font-size: 15px;
        margin-right: 0;
        border-bottom: 1px solid #eee;
        padding: 0 20px;
    }
    .header .menu ul li a {
        display: block;
        padding: 0;
    }
    .header .menu ul li .dropdown-toggle {
        border-bottom: none;
    }
    .header .menu ul li .showline {
        border-bottom: none;
        color: #ff3333;
    }

    /* 移动端语言切换项（i18n.js 注入） */
    .header .menu .m-lang-switch {
        float: none;
        display: block;
        width: 100%;
        text-align: left;
        line-height: 50px;
        font-size: 15px;
        margin-right: 0;
        border-bottom: none;
        padding: 0 20px;
    }
    .header .menu .m-lang-switch a {
        display: block;
        padding: 0;
        color: #ff3333;
        font-weight: 600;
    }

    /* 下拉菜单 - 移动端展开（桌面定位类在此区间不生效，
       由下列选择器覆盖为静态全宽列表） */
    .header .menu .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        left: 0;
        top: auto;
        padding: 0;
        margin: 0;
        box-shadow: none;
        background: #f5f5f5;
        float: none;
        transform: none;
    }
    .header .menu .dropdown-menu.open {
        display: block;
    }

    /* 重置下拉菜单内部布局 - 取消桌面端浮动和分栏 */
    .header .menu .childNavBox,
    .header .menu .childNav01 {
        width: 100%;
        float: none;
        display: block;
        padding: 0;
        margin: 0;
    }
    .header .menu .childNav01 .left,
    .header .menu .childNav01 .right {
        width: 100%;
        float: none;
        display: block;
        padding: 0;
        border: none;
    }
    .header .menu .childNav01 .left dl {
        width: 100%;
        float: none;
        padding: 0;
        margin: 0;
    }
    .header .menu .childNav01 .left dl dd {
        height: auto;
        line-height: 1.6;
        font-size: 14px;
        float: none;
        width: 100%;
        padding: 12px 20px 12px 35px;
        border-bottom: 1px solid #e8e8e8;
        border-left: none;
        margin: 0;
        background: none;
        text-align: left;
    }
    .header .menu .childNav01 .left dl dd a {
        display: block;
        width: 100%;
        height: auto;
        line-height: 1.6;
        padding: 0;
        color: #333;
        font-size: 14px;
        white-space: normal;
    }
    /* 下拉菜单中的嵌套子列表（如语言教育下的英语/中文/多语言）- 移动端隐藏 */
    .header .menu .childNav01 .left dl dd ul {
        display: none;
    }

    /* 遮罩层 */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
    }
    .mobile-overlay.show {
        display: block;
    }

    /* 搜索/语言切换隐藏 */
    .header .search {
        display: none;
    }

    /* 轮播图 */
    .swiper-kv {
        max-height: 300px;
    }
    .swiper-kv .swiper-pagination-bullet {
        width: 40px;
    }

    /* 新闻区 */
    .news {
        padding: 30px 0;
    }
    .news-top {
        width: 100%;
        padding: 0 15px 25px;
        font-size: 18px;
    }
    .news-wrap {
        width: 100%;
        padding: 0 15px;
    }
    .news-wrap .col-sm-4 {
        width: 100%;
        margin-bottom: 20px;
    }
    .news-title {
        font-size: 17px;
        min-height: auto;
    }
    .news-content {
        font-size: 14px;
        min-height: auto;
        margin: 15px 0 20px;
    }

    /* 业务板块 */
    .business-box {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin-left: 0;
        width: 100%;
        padding: 20px;
        transform: none;
    }
    .business-title span {
        font-size: 22px;
        line-height: 44px;
    }
    .business-content {
        font-size: 14px;
        line-height: 24px;
        margin: 15px 0 20px;
    }
    .business-more {
        width: auto;
        padding: 0 18px;
        white-space: nowrap;
        line-height: 38px;
        font-size: 12px;
    }
    .business-bg {
        min-height: 180px;
        object-fit: cover;
    }

    /* 页脚 */
    .footer {
        margin-top: 0;
        padding: 35px 15px 35px;
    }
    .footer > div {
        width: 100%;
    }
    .foot_nav > div {
        width: 50%;
        min-height: auto;
        margin-bottom: 20px;
        border-left: none;
    }
    .footer h5 {
        font-size: 14px;
    }
    .foot_nav .list li {
        padding: 3px 0;
        font-size: 12px;
    }
    .footer_news_title {
        width: 100%;
    }
    .other_info .info {
        font-size: 12px;
        text-align: center;
    }
    .other_info .info span {
        display: block;
        margin: 3px 0;
    }

    /* 子页面通用 */
    .page-banner {
        height: 200px;
    }
    .page-banner h1 {
        font-size: 26px;
    }
    .page-banner p {
        font-size: 14px;
        margin-top: 8px;
    }
    .page-content {
        padding: 25px 15px;
    }

    /* 集团简介页 */
    .about-intro {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 30px;
    }
    .biz-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .biz-card {
        padding: 20px 15px;
    }
    .biz-card h4 {
        font-size: 18px;
    }
    .milestone {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .milestone-item {
        padding: 15px 10px;
    }
    .milestone-item .year {
        font-size: 22px;
    }
    .milestone-item h5 {
        font-size: 13px;
    }
    .milestone-item p {
        font-size: 11px;
    }
    .contact-box {
        padding: 25px 20px 30px;
    }
    .contact-box h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .contact-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .contact-item .value {
        font-size: 16px;
    }
    .contact-address {
        font-size: 13px;
    }

    /* 配界全球页 */
    .section-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    .section-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .feature-card {
        padding: 20px 15px;
    }
    .feature-card h4 {
        font-size: 16px;
    }
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .course-item {
        padding: 15px 10px;
    }
    .course-item h5 {
        font-size: 14px;
    }
    .advantage-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .adv-item {
        padding: 18px;
    }
    .client-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 15px;
    }
    .client-logo {
        padding: 12px 8px;
        font-size: 12px;
    }
    .cta-section {
        padding: 30px 15px;
    }
    .cta-section h3 {
        font-size: 20px;
    }
    .cta-section p {
        font-size: 14px;
    }
    .cta-btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    /* 东南亚页 */
    .three-col {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .col-card-header h4 {
        font-size: 18px;
    }
    .col-card-body {
        padding: 18px;
    }
    .col-card-body li {
        font-size: 13px;
    }
    /* 东南亚三大业务模块：移动端列表项改 2 列卡片（一行 2 个） */
    .svc-grid .col-card-body ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .svc-grid .col-card-body li {
        padding: 12px 10px;
        border: 1px solid #eee;
        border-bottom: 1px solid #eee;
        border-radius: 8px;
        background: #fafafa;
        font-size: 13px;
        min-width: 0;
    }
    .svc-grid .col-card-body li::before {
        margin-right: 6px;
        flex-shrink: 0;
    }
    .case-box {
        padding: 20px 15px;
    }
    .case-box h3 {
        font-size: 20px;
    }
    .case-flow {
        flex-direction: column;
    }
    .case-arrow {
        transform: rotate(90deg);
    }
    .case-step {
        min-width: 100%;
    }

    /* 语言教育页 */
    .lang-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    /* steam 分层教学体系：移动端一行一个（1 列） */
    .stage-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    /* 移动端板块内：标题在左、目标/进阶/配比在右、左右垂直居中 */
    .stage-grid .content-block {
        display: grid;
        grid-template-columns: 36% 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px 22px;
        align-items: center;
    }
    .stage-grid .content-block h3 {
        grid-row: 1 / 4;
        grid-column: 1;
        align-self: center;
        margin: 0;
        font-size: 18px;
        text-align: center;
        line-height: 1.5;
    }
    .stage-grid .content-block p {
        grid-column: 2;
        margin: 0;
        font-size: 15px;
    }
    /* steam 核心定位卡片：移动端一行一个、图标在左、内容在右、垂直居中 */
    .core-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .core-grid .card {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    .core-grid .card-icon {
        width: 110px;
        height: auto;
        align-self: stretch;
        flex-shrink: 0;
        font-size: 30px;
    }
    .core-grid .card-body {
        flex: 1;
        padding: 14px 20px 14px 0;
    }
    .core-grid .card-body h4 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    .core-grid .card-body p {
        font-size: 13px;
        line-height: 1.5;
    }
    .compare-table {
        table-layout: fixed;
        width: 100%;
    }
    .compare-table th,
    .compare-table td {
        padding: 10px 6px;
        font-size: 13px;
        word-break: break-all;
    }    .lang-card-img {
        height: 150px;
    }
    .lang-card-body {
        padding: 20px;
    }
    .lang-card-body h4 {
        font-size: 18px;
    }
    .feature-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .feature-item {
        padding: 15px 10px;
    }
    .feature-item .icon {
        font-size: 44px;
        margin-bottom: 8px;
    }
    .feature-item .num {
        font-size: 24px;
    }
    .feature-item h5 {
        font-size: 16px;
    }
    .feature-item p {
        font-size: 14px;
    }

    /* STEAM教育页 */
    .steam-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .steam-item {
        padding: 20px 10px;
    }
    .steam-item .letter {
        font-size: 32px;
    }
    .steam-item h5 {
        font-size: 13px;
    }
    .steam-item p {
        font-size: 11px;
    }

    /* 来华留学页 */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .service-card {
        padding: 20px;
    }
    .service-card .icon {
        font-size: 36px;
    }
    .service-card h4 {
        font-size: 17px;
    }
    .step-item {
        flex: 0 0 50%;
    }
    .step-item .num {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* 招聘/数字化HR页 */
    .page-content ul {
        font-size: 14px;
        line-height: 2;
    }
    .back-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    /* 数据指标卡片：4 列改 2 列，避免窄屏挤爆/裁切 */
    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
        margin: 20px 0;
    }
    .stat-item {
        padding: 16px 8px;
        min-width: 0;
    }
    .stat-item .num {
        font-size: 26px;
    }
    .stat-item .label {
        word-break: break-all;
    }

    /* 集团研发能力卡片：3 列改 1 列，文字舒展不竖排 */
    .capability-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        margin: 20px 0;
    }
    .cap-card {
        padding: 20px 18px;
    }
}

/* ============================================
   小屏手机 (≤ 480px)
   ============================================ */
@media screen and (max-width: 480px) {
    .foot_nav > div {
        width: 100%;
    }
    .milestone {
        grid-template-columns: 1fr;
    }
    .course-grid {
        grid-template-columns: 1fr;
    }
    .steam-grid {
        grid-template-columns: 1fr;
    }
    .client-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-row {
        grid-template-columns: 1fr;
    }
    .step-item {
        flex: 0 0 100%;
    }
    .swiper-kv {
        max-height: 220px;
    }
}

/* ============================================
   桌面端导航：六个标题均匀分布（间距拉大且一致）
   置于所有断点之后，覆盖前面对 .header .menu ul li 的 margin 设置；
   仅 min-width:769 命中，移动端(<=768)滑出菜单不受影响。
   ============================================ */
@media screen and (min-width: 769px) {
    .header .menu > ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header .menu > ul > li {
        float: none;
        margin-right: 0;
        min-width: auto;
        flex: 1;
        text-align: center;
    }
    /* 下拉框固定宽度（按子项数量分档），避免随 flex 导航项变宽而过度拉伸
       left 会被 site-nav.js 动态覆盖为居中定位，这里只约束宽度 */
    .dropdown-menu.dd-w200-l50,
    .dropdown-menu.dd-w200-l70 {
        width: 180px;
    }
    .dropdown-menu.dd-w240-l70 {
        width: 200px;
    }
    .dropdown-menu.dd-w260-l80 {
        width: 240px;
    }
}

/* ===== 三大语言教学方向（移动端一行一个文本框，桌面端不受影响） ===== */
@media screen and (max-width: 768px) {
    .lang-dir-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 40px;
    }
    .lang-dir-grid .card-icon {
        height: 100px;
        font-size: 40px;
    }
    .lang-dir-grid .card-body h4 {
        font-size: 18px;
    }
    .lang-dir-grid .card-body p {
        font-size: 14px;
    }
}

/* ===== 移动端 grid 优化：避免多列过窄导致文字逐字竖排（仅移动端，桌面端不受影响） ===== */
@media screen and (max-width: 768px) {
    .contact-grid,
    .lang-course-grid,
    .steam-team-grid,
    .steam-ai-grid,
    .steam-coop-grid,
    .steam-value-grid,
    .country-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .steam-team-grid .content-block,
    .steam-ai-grid .content-block,
    .steam-coop-grid .content-block {
        padding: 18px;
    }
    .steam-value-grid .feature-item {
        padding: 18px;
    }
    .country-card {
        padding: 16px;
    }
    .country-vertical .country-card {
        padding-top: 15px;
    }
    .country-vertical .country-card .type {
        margin-bottom: 25px;
    }
}

/* ===== 移动端统一字号与边距：标题16px / 内容14px / 边距18px（仅移动端，桌面端不受影响） ===== */
@media screen and (max-width: 768px) {
    /* 内容区块标题统一 16px（含首页动态文章/业务板块标题） */
    .page-content h2,
    .page-content h3,
    .page-content h4,
    .page-content h5,
    .section-title,
    .news-title,
    .business-title {
        font-size: 16px !important;
    }
    /* 业务板块标题实际渲染在 .business-title > span 上，
       必须直接作用于 span（子元素有更高 specificity 的 22px 规则，覆盖了继承值） */
    .business-title span {
        font-size: 16px !important;
    }
    /* 首页动态区块标题、动态/党建切换按钮、CTA 标题：统一 16px */
    .news-top {
        font-size: 16px !important;
    }
    .region-tab {
        font-size: 16px !important;
    }
    .cta-section h3 {
        font-size: 16px !important;
    }
    /* 动态列表卡片标题：移动端缩小（桌面端保持 17px，仅移动端命中） */
    .article-item h3 {
        font-size: 15px !important;
        -webkit-line-clamp: 2 !important;
    }
    /* 内容区块正文统一 14px（含副标题、首页动态/业务内容） */
    .page-content p,
    .page-content li,
    .section-subtitle,
    .news-content,
    .business-content {
        font-size: 14px !important;
    }
    /* 内容页两边边距统一 18px */
    .page-content {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}

/* ===== 移动端：东南亚8步标准 8个模块一行一个、标题左/内容右、标题红底/内容白底（仅移动端） ===== */
@media screen and (max-width: 768px) {
    .step8-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .step8-grid .col-card {
        display: flex;
        align-items: stretch;
        overflow: hidden;
    }
    .step8-grid .col-card-header {
        flex: 0 0 auto;
        width: auto;
        min-width: 88px;
        padding: 10px 8px !important;
        background: linear-gradient(135deg, #c41e3a, #8b0000);
        color: #fff;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .step8-grid .col-card-header h4 {
        font-size: 13px !important;
        font-weight: 700;
        margin: 0;
        color: #fff;
        white-space: nowrap;
    }
    .step8-grid .col-card-body {
        flex: 1;
        padding: 10px 8px;
        background: #ffffff;
        display: flex;
        align-items: center;
    }
    .step8-grid .col-card-body p {
        font-size: 12px !important;
        color: #888;
        margin: 0;
        line-height: 1.4;
    }
    /* 合作愿景灰色圆角框：移动端压缩内边距，降低框高（仅移动端，桌面端不受影响） */
    .vision-box {
        padding: 22px 16px !important;
    }
    .vision-box h3 {
        margin-bottom: 12px !important;
        font-weight: 700 !important;
    }
    /* 联系我们：移动端内容字体改小（与全站移动端内容14px 体系一致，仅移动端） */
    .contact-card {
        padding: 20px 14px !important;
    }
    .contact-card .label {
        font-size: 13px !important;
    }
    .contact-card .value {
        font-size: 16px !important;
    }
    .address-box {
        font-size: 14px !important;
        line-height: 1.8 !important;
        padding: 20px 14px !important;
    }
}
