/* ================= 页面主骨架 ================= */
.hire_main_page {
    position: relative;
    width: 100%;
    padding-top: 24vh;
    overflow: hidden;
    background-color: #F8F8F8;
}

.hire_width_limit {
    position: relative;
    width: 90%;
    margin: 0 auto;
}

/* ================= 1. 顶部 Hero Banner ================= */
.hire_hero_section {
    position: relative;
    width: 100%;
    margin-bottom: 7.45vw;
}

.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.1vw;
    color: #404040;
    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. 定制化表格与说明交互模块 ================= */
.custom_form_section {
    position: relative;
    width: 100%;
    margin-bottom: 8.28vw;
}

/* 左右两栏网格布局 */
.custom_grid_container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.46vw;
}

/* 统一白色大圆角卡片基底 & Hover 微调 */
.custom_card {
    background: #FFFFFF;
    border-radius: 1.4vw;
    padding: 3.1vw 5.1vw 5.6vw 5.1vw;
    box-shadow: 0 0.5vw 2.5vw rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom_card:hover {
    box-shadow: 0 0.8vw 3vw rgba(14, 56, 133, 0.06);
}

.custom_form_card {
    flex: 1.97;
}

.custom_explain_card {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.custom_explain_card.custom_card{
    padding: 3.1vw 1.8vw 3.6vw 1.8vw;
}

/* 移动端专属遮罩与关闭按钮（PC端完全隐藏） */
.custom_modal_mask {
    display: none;
}
.modal_close_btn {
    display: none;
}

/* 标题 */
.card_main_title {
    font-size: 1.56vw;
    font-weight: 700;
    color: #0E3885;
    line-height: 1.2;
    margin-bottom: 2.6vw;
}
.custom_explain_card .card_main_title{
    margin-bottom: 1.97vw;
}

/* 表单行结构 */
.form_row {
    display: flex;
    align-items: center;
    margin-bottom: 1.72vw;
}

.form_row.align_top {
    align-items: flex-start;
}

/* 左侧浅灰标签胶囊 & Hover 动画 */
.row_label {
    flex-shrink: 0;
    width: 9.2vw;
    line-height: 1;
    padding: 0.73vw 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #E2E4E8;
    color: #262626;
    font-size: 1.09vw;
    border-radius: 0.3vw;
    margin-right: 3.95vw;
    user-select: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.form_row:hover .row_label {
    background-color: #D6DCE5;
    color: #0E3885;
}

/* 选项区域 */
.row_options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.8vw;
}

/* 自定义复选/单选框条目 & Hover 交互 */
.custom_check_item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.94vw;
    color: #2A2A2A;
    position: relative;
    user-select: none;
    transition: color 0.2s ease;
}

.custom_check_item:hover {
    color: #0E3885;
}

.custom_check_item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.custom_check_item .check_box {
    position: relative;
    display: inline-block;
    width: 1.04vw;
    height: 1.04vw;
    border: 1px solid #BFBFBF;
    border-radius: 0.2vw;
    background: #FFFFFF;
    margin-right: 0.45vw;
    transition: all 0.2s ease;
}

.custom_check_item:hover .check_box {
    border-color: #0E3885;
    box-shadow: 0 0 0 0.2vw rgba(14, 56, 133, 0.1);
    transform: scale(1.05);
}

/* 选中态：深蓝底 + 白色勾 */
.custom_check_item input:checked ~ .check_box {
    background-color: #0E3885;
    border-color: #0E3885;
}

.custom_check_item input:checked ~ .check_box::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    width: 0.28vw;
    height: 0.52vw;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.custom_check_item .check_text {
    line-height: 1;
}

/* 问号小图标与 Tooltip 提示 */
.help_tip {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 0.95vw;
    height: 0.95vw;
    border: 1px solid #999999;
    border-radius: 50%;
    font-size: 0.65vw;
    color: #777777;
    margin-left: 0.35vw;
    position: relative;
    transition: all 0.2s ease;
}

.custom_check_item:hover .help_tip {
    border-color: #0E3885;
    color: #0E3885;
}

.help_tip:hover {
    background-color: #0E3885;
    color: #FFFFFF !important;
    border-color: #0E3885 !important;
}

.help_tip::before {
    content: attr(data-tip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background-color: rgba(20, 25, 35, 0.92);
    color: #FFFFFF;
    font-size: 0.73vw;
    line-height: 1.4;
    padding: 0.35vw 0.7vw;
    border-radius: 0.3vw;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.help_tip:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 文本域：严格固定高度，禁止拖拽拉伸 */
.row_field {
    flex: 1;
}

.custom_textarea {
    display: block;
    width: 100%;
    height: 6.2vw;
    min-height: 6.2vw;
    max-height: 6.2vw;
    resize: none;
    overflow-y: auto;
    border: 1px solid #D8DCE2;
    border-radius: 0.35vw;
    padding: 0.8vw 1vw;
    box-sizing: border-box;
    font-size: 0.88vw;
    color: #333333;
    background: #FFFFFF;
    outline: none;
    font-family: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.custom_textarea:hover {
    border-color: #A3B8DC;
    background-color: #FAFAFC;
}

.custom_textarea:focus {
    border-color: #0E3885;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 2px rgba(14, 56, 133, 0.1);
}

/* 立即定制按钮 */
.form_submit_box {
    margin-top: 4.16vw;
}

.btn_submit_custom {
    display: inline-block;
    width: 21.3vw;
    line-height: 1;
    padding: 1vw 0;
    background-color: #0E3885;
    color: #FFFFFF;
    font-size: 1.05vw;
    font-weight: 500;
    text-align: center;
    border-radius: 1.6vw;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn_submit_custom:hover {
    background-color: #0b2b68;
    transform: translateY(-2px);
    box-shadow: 0 0.6vw 1.5vw rgba(14, 56, 133, 0.25);
}

.btn_submit_custom:active {
    transform: translateY(0);
}

/* 统一说明内容展示容器（纯动态驱动） */
.craft_panel_display {
    position: relative;
    width: 100%;
}

.craft_sub_title {
    font-size: 1.1vw;
    font-weight: 700;
    color: #111111;
    margin-bottom: 1.3vw;
}

.craft_img_box {
    position: relative;
    width: 100%;
    height: 20.5vw;
    border-radius: 0.6vw;
    overflow: hidden;
    background-color: #F0F2F5;
    margin-bottom: 1.6vw;
}

.craft_img_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.craft_img_box:hover img {
    transform: scale(1.04);
}

/* Q&A 问答交互 */
.craft_qa_box {
    display: flex;
    flex-direction: column;
    gap: 1.3vw;
}

.qa_item {
    font-size: 0.84vw;
    line-height: 1.65;
    padding: 0.4vw 0.6vw;
    border-radius: 0.4vw;
    transition: background-color 0.2s ease;
}

.qa_item:hover {
    background-color: #F4F6F9;
}

.qa_question {
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 0.8vw;
    transition: color 0.2s ease;
}

.qa_item:hover .qa_question {
    color: #0E3885;
}

.qa_answer {
    color: #4A4A4A;
}

/* ================= 移动端适配 (<= 768px) ================= */
@media screen and (max-width: 768px) {
    .hire_main_page {
        padding-top: 100px;
    }

    .hire_hero_section {
        margin-bottom: 36px;
    }

    .hero_text_box {
        margin-bottom: 20px;
    }

    .hero_title {
        font-size: 24px;
        line-height: 1.3;
    }

    .hero_sub_title {
        font-size: 13px;
        line-height: 1.5;
        margin-top: 10px;
    }

    .hero_banner_box {
        height: 190px;
        border-radius: 12px;
    }

    .custom_form_section {
        margin-bottom: 50px;
    }

    .custom_grid_container {
        flex-direction: column;
        gap: 0;
    }

    .custom_card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .card_main_title {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .form_row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 18px;
        width: 100%;
    }

    .row_label {
        width: auto;
        height: auto;
        padding: 4px 12px;
        line-height: 1.4;
        font-size: 3.6vw;
        border-radius: 4px;
        margin-top: 3vw;
        margin-bottom: 1vw;
        margin-right: 0;
        align-self: flex-start;
        background: none;
    }

    /* 一行最多排 2 个，整齐等分 */
    .row_options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .row_field {
        width: 100%;
    }

    /* 移动端隐藏打勾方框，选项按钮胶囊化 */
    .custom_check_item {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        margin: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
    }

    .custom_check_item .check_box {
        display: none !important;
    }

    .custom_check_item .check_text {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 42px;
        padding: 8px 28px 8px 12px;
        background-color: #F2F2F2;
        color: #2A2A2A;
        font-size: 14px;
        font-weight: 500;
        border-radius: 8px;
        text-align: center;
        line-height: 1.25;
        box-sizing: border-box;
        transition: background-color 0.22s ease, color 0.22s ease;
        user-select: none;
    }

    .custom_check_item:not(:has(.help_tip)) .check_text {
        padding-right: 12px;
    }

    /* 移动端选中状态：背景色 #0E3885，文字纯白 */
    .custom_check_item input:checked ~ .check_text {
        background-color: #0E3885;
        color: #FFFFFF;
    }

    /* 移动端问号图标 */
    .help_tip {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 17px;
        height: 17px;
        font-size: 10px;
        font-weight: 700;
        border: 1px solid #999999;
        border-radius: 50%;
        color: #666666;
        background-color: transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 0;
        z-index: 2;
        transition: border-color 0.2s, color 0.2s;
    }

    .custom_check_item input:checked ~ .help_tip {
        border-color: rgba(255, 255, 255, 0.75);
        color: #FFFFFF;
    }

    .help_tip::before {
        display: none !important;
    }

    /* 移动端默认隐藏说明卡片，点击问号以弹窗展示 */
    .custom_explain_card {
        display: none !important;
    }

    body.custom_modal_open {
        overflow: hidden !important;
        touch-action: none;
    }

    .custom_modal_mask {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 15, 26, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.28s ease;
    }

    .custom_modal_mask.active {
        display: block;
        opacity: 1;
    }

    .custom_explain_card.modal_show {
        display: flex !important;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
        width: calc(100% - 36px);
        max-width: 420px;
        max-height: 84vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #FFFFFF;
        border-radius: 18px;
        padding: 24px 18px 24px 18px !important;
        box-shadow: 0 16px 45px rgba(0, 0, 0, 0.32);
        z-index: 999;
        opacity: 1;
        pointer-events: auto;
        animation: customModalFadeIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
    }

    @keyframes customModalFadeIn {
        from {
            opacity: 0;
            transform: translate(-50%, -46%) scale(0.94);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }

    .modal_close_btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-color: #F0F2F5;
        color: #555555;
        font-size: 16px;
        cursor: pointer;
        z-index: 10;
        line-height: 1;
        transition: background-color 0.2s, color 0.2s;
    }

    .modal_close_btn:active {
        background-color: #E2E4E8;
        color: #111111;
    }

    .custom_textarea {
        height: 85px;
        min-height: 85px;
        max-height: 85px;
        resize: none;
        font-size: 13px;
        padding: 10px;
        border-radius: 6px;
    }

    .btn_submit_custom {
        width: 100%;
        height: 46px;
        line-height: 46px;
        padding: 0;
        font-size: 16px;
        border-radius: 23px;
    }

    .craft_sub_title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-right: 30px;
    }

    .craft_img_box {
        height: 175px;
        border-radius: 8px;
        margin-bottom: 14px;
    }

    .craft_qa_box {
        gap: 12px;
    }

    .qa_item {
        font-size: 13px;
    }

    .qa_question {
        margin-bottom: 4px;
        font-size: 13px;
    }

    .qa_answer {
        font-size: 12.5px;
        line-height: 1.6;
    }
}