.enterprise-banner {
    background-image: url('../images/enterprise/enterprise_banner.jpg');
}

.training-ways {
    padding: 60px 0;
}
.training-ways .section-head {
    text-align: center;
    margin-bottom: 48px;
}

.training-ways .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
}

.training-ways .section-subtitle {
    font-size: 16px;
    color: #666;
}
.ways-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ways-item {
    min-width: 0;
}

.way-card {
    height: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    /* box-shadow: 0 4px 16px rgba(1, 100, 255, 0.08); */
    transition: transform .3s, box-shadow .3s;
}

.way-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 12px rgba(1, 100, 255, 0.18);
}
.way-media {
    margin: 0;
    overflow: hidden;
}

.way-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 20 / 10;
    object-fit: cover;
    display: block;
}

.way-title {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    text-align: center;
    padding: 18px 12px 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.way-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    text-align: center;
    padding: 0 16px 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 有副标题时标题下边距交给副标题撑，避免两块空白重叠 */
.way-title:has(+ .way-desc) {
    padding-bottom: 6px;
}
@media (max-width: 1024px) {
    .training-ways {
        padding: 70px 0;
    }

    .ways-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .training-ways .section-title {
        font-size: 28px;
    }
}
@media (max-width: 768px) {
    .training-ways {
        padding: 52px 0;
    }

    .training-ways .section-head {
        margin-bottom: 15px;
    }

    .training-ways .section-title {
        font-size: 24px;
    }

    .training-ways .section-subtitle {
        font-size: 14px;
    }

    .ways-grid {
        gap: 16px;
    }

    .way-title {
        font-size: 16px;
        padding: 14px 10px 16px;
    }

    .way-desc {
        font-size: 13px;
        padding: 0 12px 16px;
    }
}
@media (max-width: 480px) {
    .training-ways {
        padding: 30px 0;
    }

    /* 窄屏同样一行两个；标题是 nowrap 的，用 minmax(0, 1fr) 防止列被内容撑破 */
    .ways-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .way-title {
        font-size: 14px;
        padding: 12px 8px 6px;
    }

    .way-desc {
        font-size: 12px;
        padding: 0 10px 14px;
    }
}

/* ==================== 企业培训课程 ==================== */
.enterprise-courses {
    padding: 60px 0;
    background: #f6f7fa;
}
.enterprise-courses .tab-panel{
    background:none;
    padding:0;
}
.enterprise-courses .section-head {
    text-align: center;
    margin-bottom: 36px;
}

.enterprise-courses .section-title {
    font-size: 34px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
}

.enterprise-courses .section-subtitle {
    font-size: 16px;
    color: #666;
}
.courses-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 42px;
}

.tab-btn {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    background: #f2f6ff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all .3s;
}

.tab-btn:hover,
.tab-btn:focus {
    color: #006aed;
    background: #e6f0ff;
}

.tab-btn.active {
    color: #fff;
    background: #006aed;
}
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.course-cards {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.course-card {
    background: #fff;
    border: 1px solid #eef2fa;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(1, 100, 255, 0.05);
    transition: transform .3s, box-shadow .3s;
}

/* 超出「前三行」的卡片：由 JS 折叠，点击「展开更多」显示 */
.course-card.is-hidden {
    display: none;
}

.course-card article {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto 1fr auto;
    column-gap: 10px;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(1, 100, 255, 0.12);
}
.course-icon {
    grid-column: 1;
    grid-row: 1;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
}

.course-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.course-title {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 22px;
    font-weight: 500;
    color: #000;
    margin-bottom: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.course-desc {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-top: 16px;
    margin-bottom: 22px;
}

.course-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .25s;
}

.btn-primary {
    color: #fff;
    background: #006aed;
}

.btn-primary:hover {
    background: #006aed;
}

.btn-outline {
    color: #006aed;
    background: #fff;
    border: 1px solid #006aed;
}

.btn-outline:hover {
    background: #f2f6ff;
}

.load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    color: #ff6b00;
    background: #fff5eb;
    border: 1px solid #ff6b00;
    border-radius: 24px;
    cursor: pointer;
    transition: all .25s;
}

.load-more svg {
    stroke: #ff6b00;
    transition: transform .25s;
}

/* 折叠按钮：无溢出时 JS 加 hidden，需覆盖 .load-more 的 display:flex */
.load-more[hidden] {
    display: none;
}

.load-more.is-expanded svg {
    transform: rotate(180deg);
}

@media (max-width: 1024px) {
    .enterprise-courses {
        padding: 70px 0;
    }

    .enterprise-courses .section-title {
        font-size: 28px;
    }

    .course-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .course-card {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    .enterprise-courses {
        padding: 30px 0;
    }

    .enterprise-courses .section-head {
        margin-bottom: 26px;
    }

    .enterprise-courses .section-title {
        font-size: 24px;
    }

    .courses-tabs {
        gap: 10px;
        margin-bottom: 28px;
    }

    .tab-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .course-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 22px;
    }

    .course-card {
        padding: 20px;
    }

    .course-title {
        font-size: 17px;
    }

    .course-desc {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .course-actions {
        gap: 8px;
    }

    .load-more {
        font-size: 14px;
        padding: 8px 18px;
    }
}

/* 企业培训案例 */


.enterprise-cases {
    padding: 60px 0;
    background: #006aed url("../images/enterprise/course_bg.jpg") no-repeat center / cover;
}

.enterprise-cases .section-head {
    text-align: center;
    margin-bottom: 34px;
}

.enterprise-cases .section-title {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.enterprise-cases .section-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, .9);
}
.case-panels{
    max-width: 1300px;
    margin: 0 auto;
}
.cases-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    margin-bottom: 36px;
}

.cases-tabs .tab-btn {
    padding: 12px 36px;
    font-size: 16px;
    color: #fff;
    border-radius: 24px;
    background: none;
}

.cases-tabs .tab-btn:hover,
.cases-tabs .tab-btn:focus {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
}

.cases-tabs .tab-btn.active {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
}

.case-panel {
    display: none;
}

.case-panel.active {
    /* 一个栏目下可能有多条案例：纵向排列并留出间距 */
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.case-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
    min-height: 360px;
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}

.case-feature-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.case-feature-title {
    font-size: 24px;
    font-weight: 500;
    color: #000;
    line-height: 1.4;
    margin-bottom: 18px;
}

.case-feature-title a {
    color: inherit;
    text-decoration: none;
    transition: color .25s;
}

.case-feature-title a:hover {
    color: #006aed;
}

/* 案例卡片内两个按钮同一行并靠右 */
.case-feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.case-feature-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.85;
    margin-bottom: 22px;
}

.case-feature-info .btn {
    padding: 13px 34px;
    font-size: 15px;
    border-radius: 26px;
}

.case-feature-media {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #eef3fb;
    height: 100%;
    min-height: 300px;
}

.case-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 多条案例纵向排列时图文左右交替，避免整列图片都在同一侧 */
.case-feature:nth-child(even) .case-feature-media {
    order: -1;
}

/* ========== 案例轮播（一个栏目多条案例时）========== */
/* Swiper 默认 margin:auto 在 grid 子项上会变成 shrink-to-fit，
   叠加 slide 的 width:100% 会循环解析把宽度撑爆，这里显式定宽 */
.case-feature-swiper {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
}

.case-panel.active {
    grid-template-columns: minmax(0, 1fr);
}

.case-feature-swiper .swiper-slide {
    height: auto;
}

.case-feature-swiper .case-feature {
    height: 100%;
}

/* 只有一条案例时不需要分页点与左右箭头 */
.case-feature-swiper.is-single .case-pagination,
.case-feature-swiper.is-single .swiper-button-prev,
.case-feature-swiper.is-single .swiper-button-next {
    display: none;
}

.case-feature-swiper .swiper-button-prev,
.case-feature-swiper .swiper-button-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 14px rgba(1, 100, 255, .18);
    color: #006aed;
    --swiper-navigation-size: 18px;
}

.case-feature-swiper .swiper-button-prev:hover,
.case-feature-swiper .swiper-button-next:hover {
    background: #fff;
}

@media (max-width: 1024px) {
    .enterprise-cases {
        padding: 70px 0;
    }

    .enterprise-cases .section-title {
        font-size: 28px;
    }

    .case-feature {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 24px;
    }

    .case-panel.active {
        gap: 24px;
    }

    .case-feature-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .enterprise-cases {
        padding: 30px 0;
    }

    .enterprise-cases .section-head {
        margin-bottom: 26px;
    }

    .enterprise-cases .section-title {
        font-size: 24px;
    }

    .cases-tabs {
        gap: 10px;
        margin-bottom: 26px;
    }

    .cases-tabs .tab-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .case-feature {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        min-height: 0;
    }

    .case-panel.active {
        gap: 20px;
    }

    .case-feature-media {
        order: -1;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .case-feature-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .case-feature-desc {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .cases-tabs .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .case-feature {
        padding: 15px;
    }

    .case-feature-info .btn {
        padding: 11px 26px;
        font-size: 14px;
    }
}

/* ==================== 企业培训服务流程 ==================== */
.process-flow {
    padding: 90px 0;
    background: #fff;
}

.process-flow .section-head {
    text-align: center;
    margin-bottom: 48px;
}

.process-flow .section-title {
    font-size: 34px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
}

.process-flow .section-subtitle {
    font-size: 16px;
    color: #666;
}

.process-wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
    background-image: url("../images/enterprise/process_left.png"),
        url("../images/enterprise/process_right.png");
    background-repeat: no-repeat, no-repeat;
    background-position: left center, right center;
    background-size: auto 86%, auto 86%;
    background-origin: border-box, border-box;
}

.process-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.process-step {
    position: relative;
    padding: 0 12px 32px;
    text-align: left;
    background: transparent;
    border-radius: 0;
    border-left: none;
}

.process-step::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0164ff;
    box-shadow: 0 0 0 5px rgba(1, 100, 255, .10);
}

.bottom-steps .process-step {
    padding: 32px 12px 0;
}

.bottom-steps .process-step::after {
    top: 0;
    bottom: auto;
}

.step-title {
    font-size: 22px;
    font-weight: 500;
    color: #2154ee;
    margin-bottom: 8px;
    line-height: 1.4;
}

.step-num {
    display: inline-block;
    color: #2154ee;
    margin-right: 8px;
    font-weight: 700;
}

.step-desc {
    font-size: 15px;
    color: #000;
    line-height: 1.7;
}

.process-core {
    display: grid;
    grid-template-columns: 1fr 2.2fr 1fr;
    gap: 24px;
    align-items: center;
}

.process-side {
    text-align: center;
}

.process-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
}

.process-icon svg,
.process-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.side-title {
    font-size: 22px;
    font-weight: 500;
    color: #006aed;
    line-height: 1.5;
}

.process-center {
    margin: 0;
}

.process-center img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1024px) {
    .process-flow {
        padding: 70px 0;
    }

    .process-flow .section-title {
        font-size: 28px;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .process-core {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 18px;
    }

    .process-wrapper {
        background-size: 150px auto, 150px auto;
    }

    .process-icon {
        width: 56px;
        height: 56px;
    }

    .side-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .process-flow {
        padding: 30px 0;
    }

    .process-flow .section-head {
        margin-bottom: 30px;
    }

    .process-flow .section-title {
        font-size: 24px;
    }

    .process-wrapper {
        gap: 18px;
        background-image: none;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* 单列排布后用卡片承载：原来的左/下边缘圆点已隐藏，靠卡片划分每条步骤 */
    .process-step,
    .bottom-steps .process-step {
        padding: 14px 16px;
        background: #fff;
        border: 1px solid #e6efff;
        border-radius: 10px;
    }

    .process-step::after {
        display: none;
    }

    .step-title {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .step-desc {
        font-size: 14px;
    }

    /* 示意图在上独占整行，左右两个节点一行两个 */
    .process-core {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .process-center {
        grid-column: 1 / -1;
        order: -1;
        margin-bottom: 0;
    }

    .process-center img {
        border-radius: 10px;
    }

    .process-side {
        flex-direction: column;
        gap: 8px;
        padding: 14px 10px;
        text-align: center;
        background: #fff;
        border: 1px solid #e6efff;
        border-radius: 10px;
    }

    .process-icon {
        width: 48px;
        height: 48px;
        margin: 0;
        flex-shrink: 0;
    }

    .side-title {
        font-size: 15px;
    }

    /* 左右箭头默认垂直居中（top:50%），移动端会压在卡片的正文上，
       上移到封面图区域中部；尺寸同时收小 */
    .case-feature-swiper .swiper-button-prev,
    .case-feature-swiper .swiper-button-next {
        --swiper-navigation-top-offset: 92px;
        width: 36px;
        height: 36px;
        --swiper-navigation-size: 16px;
    }
}

@media (max-width: 480px) {
    .step-title {
        font-size: 16px;
    }

    .step-desc {
        font-size: 13px;
    }

    .process-side {
        flex-direction: column;
        text-align: center;
    }

    .process-icon {
        margin: 0 auto 10px;
    }
}

