@charset "utf-8";
/*
 * 人才招聘页 · 在招职位列表（wlh_careers）
 * 页面：/careers.html、/en/careers.html
 * 结构：左侧搜索+筛选（类别/地点），右侧职位卡片列表，点击展开职责/要求
 * 对齐 wlh_pages 组件库视觉语言：品牌蓝 #0066F5、圆角卡片、聚焦描边
 */

.wlh_jobs_sec {
    padding-bottom: 90px;
}

/* ---------- 布局：筛选栏 + 列表 ---------- */
.wlh_jobs {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    text-align: left;
}

/* ---------- 侧栏：搜索与筛选 ---------- */
.wlh_jobs_aside {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 16px;
    padding: 20px;
}

.wlh_jobs_search {
    position: relative;
}

.wlh_jobs_input {
    width: 100%;
    height: 42px;
    padding: 0 44px 0 14px;
    border: 1px solid #dfe5f0;
    border-radius: 999px;
    background: #f7f9fc;
    font-size: 14px;
    color: #1f2a3d;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.wlh_jobs_input::placeholder {
    color: #9aa5b8;
}

.wlh_jobs_input:focus {
    border-color: var(--wlh-blue, #0066F5);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 245, .12);
}

.wlh_jobs_searchbtn {
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #7a8699;
    cursor: pointer;
    transition: color .2s;
}

.wlh_jobs_searchbtn:hover {
    color: var(--wlh-blue, #0066F5);
}

.wlh_jobs_searchbtn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.wlh_jobs_group {
    margin-top: 22px;
}

.wlh_jobs_group_tit {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #7a8699;
    margin-bottom: 10px;
}

.wlh_jobs_opts {
    display: grid;
    gap: 2px;
}

.wlh_jobs_opt {
    display: flex;
    align-items: center;
    padding: 7px 8px;
    margin: 0 -8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #3c4657;
    transition: background .15s;
}

.wlh_jobs_opt:hover {
    background: #f2f6fd;
}

.wlh_jobs_opt input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0 8px 0 0;
    accent-color: var(--wlh-blue, #0066F5);
    cursor: pointer;
    flex: none;
}

.wlh_jobs_opt:has(input:focus-visible) {
    outline: 2px solid var(--wlh-blue, #0066F5);
    outline-offset: 1px;
}

.wlh_jobs_opt_txt {
    min-width: 0;
}

.wlh_jobs_opt_num {
    margin-left: auto;
    padding-left: 10px;
    font-size: 12px;
    color: #98a3b6;
    font-variant-numeric: tabular-nums;
}

.wlh_jobs_reset {
    display: block;
    width: 100%;
    margin-top: 22px;
    height: 36px;
    border: 1px solid #dfe5f0;
    border-radius: 999px;
    background: #fff;
    color: #5a667a;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.wlh_jobs_reset:hover {
    border-color: var(--wlh-blue, #0066F5);
    color: var(--wlh-blue, #0066F5);
}

/* ---------- 列表区 ---------- */
.wlh_jobs_count {
    font-size: 14px;
    color: #5a667a;
    margin: 0 0 14px 2px;
}

.wlh_jobs_count b {
    color: var(--wlh-blue, #0066F5);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.wlh_job_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.wlh_job_list > li {
    display: block;
}

.wlh_job[hidden],
.wlh_jobs_empty[hidden] {
    display: none !important;
}

/* 职位卡片 */
.wlh_job {
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.wlh_job:hover {
    border-color: rgba(0, 102, 245, .4);
    box-shadow: 0 10px 26px rgba(12, 67, 168, .08);
}

.wlh_job.open {
    border-color: rgba(0, 102, 245, .55);
    box-shadow: 0 10px 26px rgba(12, 67, 168, .08);
}

.wlh_job_toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 17px 20px;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.wlh_job_toggle:focus-visible {
    outline: 2px solid var(--wlh-blue, #0066F5);
    outline-offset: -2px;
    border-radius: 14px;
}

.wlh_job_base {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.wlh_job_tit {
    font-size: 17px;
    font-weight: 600;
    color: #1f2a3d;
    line-height: 1.4;
}

.wlh_job_hot {
    display: inline-block;
    margin-left: 10px;
    padding: 1px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6a3c, #f5483d);
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.7;
    vertical-align: 2px;
    white-space: nowrap;
}

.wlh_job_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
    color: #6b7688;
}

.wlh_job_cat {
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(0, 102, 245, .08);
    color: var(--wlh-blue, #0066F5);
    font-size: 12px;
}

.wlh_job_meta > span:not(.wlh_job_cat):not(:first-child)::before {
    content: "|";
    margin: 0 10px;
    color: #d5dbe6;
}

/* 展开箭头 */
.wlh_job_arrow {
    flex: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e6f0;
    border-radius: 50%;
    color: #7a8699;
    transition: transform .3s, border-color .2s, color .2s;
}

.wlh_job_arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wlh_job.open .wlh_job_arrow {
    transform: rotate(180deg);
    border-color: var(--wlh-blue, #0066F5);
    color: var(--wlh-blue, #0066F5);
}

/* 展开面板：grid 0fr/1fr 折叠动画 */
.wlh_job_panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .32s ease, visibility .32s;
}

.wlh_job.open .wlh_job_panel {
    grid-template-rows: 1fr;
    visibility: visible;
}

.wlh_job_panel_in {
    min-height: 0;
    overflow: hidden;
    padding: 0 20px;
}

.wlh_job.open .wlh_job_panel_in {
    padding-bottom: 20px;
}

.wlh_job_cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 32px;
    padding-top: 16px;
    border-top: 1px dashed #e8edf5;
}

.wlh_job_col_tit {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #1f2a3d;
    margin-bottom: 10px;
}

.wlh_job_col_tit::before {
    content: "";
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: var(--wlh-blue, #0066F5);
    margin-right: 8px;
}

.wlh_job_lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wlh_job_lines li {
    position: relative;
    padding-left: 16px;
    margin: 5px 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: #56617a;
}

.wlh_job_lines li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .66em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0, 102, 245, .55);
}

.wlh_job_apply {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #e8edf5;
}

/* ---------- 空状态 ---------- */
.wlh_jobs_empty {
    text-align: center;
    padding: 64px 20px;
    border: 1px dashed #dfe5ef;
    border-radius: 14px;
    background: #fafbfd;
}

.wlh_jobs_empty_tit {
    font-size: 18px;
    font-weight: 600;
    color: #1f2a3d;
}

.wlh_jobs_empty_txt {
    font-size: 14px;
    color: #7a8699;
    line-height: 1.8;
    margin: 10px 0 22px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .wlh_jobs_sec {
        padding-bottom: 60px;
    }

    .wlh_jobs {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .wlh_jobs_aside {
        position: static;
    }

    /* 筛选项横向排列为标签 */
    .wlh_jobs_opts {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .wlh_jobs_opt {
        margin: 0;
        padding: 6px 12px;
        border: 1px solid #dfe5f0;
        border-radius: 999px;
    }

    .wlh_jobs_opt:has(input:checked) {
        border-color: var(--wlh-blue, #0066F5);
        background: rgba(0, 102, 245, .06);
        color: var(--wlh-blue, #0066F5);
    }

    .wlh_jobs_opt_num {
        padding-left: 6px;
    }

    .wlh_jobs_reset {
        width: auto;
        padding: 0 18px;
    }
}

@media (max-width: 640px) {
    .wlh_jobs_aside {
        padding: 16px;
    }

    .wlh_job_toggle {
        padding: 14px 16px;
        gap: 12px;
    }

    .wlh_job_tit {
        font-size: 16px;
    }

    .wlh_job_meta {
        font-size: 12.5px;
    }

    .wlh_job_meta > span:not(.wlh_job_cat):not(:first-child)::before {
        margin: 0 7px;
    }

    .wlh_job_cols {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .wlh_job_panel_in,
    .wlh_job.open .wlh_job_panel_in {
        padding-left: 16px;
        padding-right: 16px;
    }

    .wlh_job_apply {
        justify-content: stretch;
    }

    .wlh_job_apply .wlh_btn {
        width: 100%;
        text-align: center;
    }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    .wlh_jobs_input,
    .wlh_jobs_searchbtn,
    .wlh_jobs_opt,
    .wlh_jobs_reset,
    .wlh_job,
    .wlh_job_arrow,
    .wlh_job_panel {
        transition: none;
    }
}
