/* ================= 页面主骨架 ================= */
.hire_main_page {
    position: relative;
    width: 100%;
    padding-top: 24vh;
    padding-bottom: 9.2vw;
    overflow: hidden;
    background: linear-gradient(to bottom , #E8F3FE ,#F6F9FB);
}

.hire_width_limit {
    position: relative;
    width: 90%;
    margin: 0 auto;
}

/* ================= 1. 顶部 Hero Banner ================= */
.hire_hero_section {
    position: relative;
    width: 100%;
    margin-bottom: 12vw;
}

.hero_text_box {
    text-align: center;
    margin-bottom: 3.4vw;
}

.hero_title {
    font-weight: bold;
    font-size: 3.125vw;
    color: #000;
    line-height: 1;
}

.hero_sub_title {
    font-size: 1.25vw;
    color: #000;
    margin-top: 1.667vw;
    line-height: 1;
}

.hero_banner_box {
    position: relative;
    width: 100%;
    height: 34.9vw;
    border-radius: 1.25vw;
    overflow: hidden;
    background-color: #E6E6E6;
}

.hero_banner_img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    will-change: transform;
}

/* ================= 2. 2x3 网格区域修复 ================= */
.hire_grid_section {
    position: relative;
    width: 100%;
    margin-bottom: 11.6vw;
}
.hire_grid_section .hire_width_limit {
    width: 80%;
}
.section_title_box {
    text-align: center;
    margin-bottom: 5.729vw;
}

.grid_main_title {
    font-weight: bold;
    font-size: 2.5vw;
    color: #313131;
    margin: 0;
}

/* 采用 minmax 保证大屏等高、中屏不被长文本撑爆变形 */
.cards_grid_wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(18.5vw, 1fr);
    gap: 0.94vw;
    align-items: stretch;
    perspective: 1200px;
}

/* 卡片基础容器 */
.grid_card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1.04vw;
    overflow: hidden;
    box-sizing: border-box;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* 文字卡片：仅过渡阴影；3D 倾斜由 hire.js quickTo 驱动 */
.grid_card.text_card {
    background-color: #FFFFFF;
    padding: 2.8vw 3.4vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    box-shadow: 0 0.4vw 1.5vw rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.grid_card.text_card:hover {
    box-shadow: 0 0.8vw 2.0vw rgba(0, 0, 0, 0.08);
}

.card_icon {
    margin-bottom: 1.51vw;
    color: #406FB5;
    flex-shrink: 0;
}

.card_icon .iconfont {
    font-size: 2.1vw;
    display: block;
}

.grid_card .card_title {
    font-weight: bold;
    font-size: 1.667vw;
    color: #313131;
    margin: 0 0 1.65vw 0;
    line-height: 1;
    will-change: transform, opacity;
}

.grid_card .card_desc {
    font-size: 0.83vw;
    color: #707070;
    line-height: 1.77;
    text-align: justify;
    margin: 0;
    will-change: transform, opacity;
}

/* 图片卡片 (视差容器) */
.grid_card.img_card {
    background-color: #E6E6E6;
}

.grid_img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    will-change: transform;
    backface-visibility: hidden;
}

.hire_main_page .card_img_wrapper {
    will-change: transform;
    backface-visibility: hidden;
}

/* ================= 3. 底部招聘联系胶囊 ================= */
.hire_contact_section {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 25.625vw;
    justify-content: center;
    padding: 2.2vw 1.2vw;
    margin: 0 2vw;
    background-color: #EAF2FB;
    border-radius: 1.04vw;
    text-decoration: none;
    transition: all 0.35s ease;
}

.contact_item:hover {
    background-color: #DFEDFA;
    transform: translateY(-0.25vw);
}

.contact_tag {
    display: flex;
    align-items: center;
    color: #193F87;
    margin-bottom: 0.6vw;
}

.contact_tag .iconfont {
    font-size: 1.72vw;
    margin-right: 1.1vw;
}
.contact_tag .text {
    font-size: 1.25vw;
}

.contact_info {
    font-weight: bold;
    font-size: 1.25vw;
    color: #737373;
    font-style: normal;
}

/* ============================================================
 * 📱 人才招聘页面主体内容移动端与平板端适配
 * ============================================================ */

/* 平板端适配 (769px ~ 1024px) */
@media (max-width: 1024px) {
    .hire_main_page {
        padding-top: 15vh;
        padding-bottom: 8vw;
    }
    .hire_hero_section {
        margin-bottom: 8vw;
    }
    .hero_title {
        font-size: 4.8vw;
    }
    .hero_sub_title {
        font-size: 2vw;
        margin-top: 2vw;
    }
    .hero_banner_box {
        height: 42vw;
        border-radius: 2vw;
    }
    .hire_grid_section .hire_width_limit {
        width: 90%;
    }
    .grid_main_title {
        font-size: 3.8vw;
    }
    /* 平板端转为稳健的 2 列网格 */
    .cards_grid_wrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(28vw, auto);
        gap: 2vw;
    }
    .grid_card.text_card {
        padding: 4vw 4vw;
        border-radius: 2vw;
    }
    .card_icon .iconfont {
        font-size: 4.5vw;
    }
    .grid_card .card_title {
        font-size: 2.6vw;
        margin-bottom: 2vw;
    }
    .grid_card .card_desc {
        font-size: 1.6vw;
    }
    .grid_card.img_card {
        border-radius: 2vw;
        min-height: 28vw;
    }
    .contact_item {
        min-width: 38vw;
        padding: 3vw 2vw;
    }
    .contact_tag .iconfont {
        font-size: 2.8vw;
    }
    .contact_tag .text,
    .contact_info {
        font-size: 2vw;
    }
}

/* 手机端适配 (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. 顶部预留高度 */
    .hire_main_page {
        padding-top: 11vh;
        padding-bottom: 12vw;
    }
    .hire_hero_section {
        margin-bottom: 23vw;
    }
    .hero_text_box {
        margin-bottom: 5vw;
    }
    .hero_title {
        font-size: 6.8vw;
        line-height: 1.25;
    }
    .hero_sub_title {
        font-size: 3.6vw;
        margin-top: 2.5vw;
        line-height: 1.5;
        color: #444444;
    }
    .hero_banner_box {
        height: 52vw;
        border-radius: 3.5vw;
    }

    /* 2. 核心网格：单列纵向 + order 重排 + 效果图同款图文排版 */
    .hire_grid_section {
        margin-bottom: 12vw;
    }
    .hire_grid_section .hire_width_limit {
        width: 90%;
    }
    .section_title_box {
        margin-bottom: 13.6vw;
    }
    .grid_main_title {
        font-size: 5.6vw;
        line-height: 1.3;
        text-align: center;
    }

    .cards_grid_wrapper {
        display: flex;
        flex-direction: column;
        gap: 0;
        perspective: none;
    }

    /* 利用 order 将对应的 img_card 精准排在 text_card 上方 */
    .cards_grid_wrapper .grid_card:nth-child(4) { order: 1; } /* img_2 安全生产车间图 */
    .cards_grid_wrapper .grid_card:nth-child(1) { order: 2; } /* 安全与保障 文字 */

    .cards_grid_wrapper .grid_card:nth-child(2) { order: 3; } /* img_1 印刷实训图 */
    .cards_grid_wrapper .grid_card:nth-child(5) { order: 4; } /* 培训与发展 文字 */

    .cards_grid_wrapper .grid_card:nth-child(6) { order: 5; } /* img_3 节日团建图 */
    .cards_grid_wrapper .grid_card:nth-child(3) { order: 6; } /* 人文关怀 文字 */

    /* 图片卡片样式（上图） */
    .grid_card.img_card {
        height: 54vw;
        border-radius: 3.5vw;
        margin-bottom: 11vw; /* 距离下方对应文字的间距 */
    }

    /* 文字卡片样式（下图）：去掉背景色、阴影，左右分栏排版，间距设为 25vw */
    .grid_card.text_card {
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 25vw; /* 🌟 每一组图文之间的留白间距 */
        
        display: grid !important;
        grid-template-columns: 88px 1fr;
        column-gap: 16px;
        row-gap: 4px;
        align-items: center;
    }

    /* 左上：图标居中 */
    .grid_card.text_card .card_icon {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 0;
    }
    .grid_card.text_card .card_icon .iconfont {
        font-size: 8.2vw;
        color: #193F87;
    }

    /* 左下：标题居中，跟在图标下方 */
    .grid_card.text_card .card_title {
        grid-column: 1;
        grid-row: 2;
        text-align: center;
        font-size: 4.6vw;
        font-weight: normal;
        color: #313131;
        margin: 0;
        line-height: 1;
        white-space: nowrap;
    }

    /* 右侧：描述跨越两行，垂直居中对齐左侧整体 */
    .grid_card.text_card .card_desc {
        grid-column: 4;
        grid-row: 1 / span 2;
        font-size: 3.6vw;
        line-height: 1.65;
        color: #4D4D4D;
        text-align: justify;
        margin: 0;
        align-self: center;
    }

    /* 3. 底部招聘联系胶囊 */
    .hire_contact_section {
        flex-direction: column;
        width: 90%;
        margin: 0 auto;
        gap: 3.5vw;
    }
    .contact_item {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 5vw 4vw;
        border-radius: 3.5vw;
        box-sizing: border-box;
    }
    .contact_tag {
        margin-bottom: 1.2vw;
    }
    .contact_tag .iconfont {
        font-size: 5.5vw;
        margin-right: 2vw;
    }
    .contact_tag .text {
        font-size: 4vw;
        font-weight: 600;
    }
    .contact_info {
        font-size: 4.2vw;
        font-weight: 700;
        color: #333333;
    }
}