@import url("base.css");

.page-shell {
    min-height: 100vh;
}

.hero {
    position: relative;
    min-height: 320px;
    padding: 68px max(24px, calc((100vw - 1180px) / 2)) 72px;
    overflow: hidden;
    color: #fff;
    background: #6e3dff;
}

/* TODO: 后续这里预留给循环播放的视频背景层。 */
.hero::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(108deg, rgba(255, 255, 255, 0.05) 0 36%, transparent 36% 100%),
        linear-gradient(108deg, transparent 0 57%, rgba(255, 255, 255, 0.08) 57% 76%, transparent 76% 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero-kicker,
.section-kicker,
.position-project {
    margin: 0;
    color: #6e3dff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.hero-kicker {
    color: rgba(255, 255, 255, 0.76);
}

.hero h1 {
    margin: 14px 0 16px;
    max-width: 660px;
    font-size: 46px;
    line-height: 1.14;
    letter-spacing: 0;
}

.hero h1 span {
    display: block;
}

.job-workspace {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    max-width: 1180px;
    margin: 28px auto 64px;
    padding: 0 24px;
    align-items: start;
}

.filter-panel {
    position: sticky;
    top: 24px;
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 36, 48, 0.06);
}

.search-box label {
    display: block;
    margin-bottom: 9px;
    color: #5d6472;
    font-size: 13px;
    font-weight: 600;
}

.search-box input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    color: #1f2430;
    border: 1px solid #dfe2ea;
    border-radius: 6px;
    outline: none;
    background: #fafbfe;
}

.search-box input:focus {
    border-color: #6e3dff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(110, 61, 255, 0.12);
}

.filter-block {
    padding: 18px 0;
    border-bottom: 1px solid #eef0f5;
}

.filter-title {
    margin-bottom: 12px;
    color: #1f2430;
    font-size: 15px;
    font-weight: 700;
}

.check-row {
    display: flex;
    align-items: center;
    min-height: 30px;
    gap: 9px;
    color: #5d6472;
    cursor: pointer;
    font-size: 14px;
}

.check-row input {
    width: 15px;
    height: 15px;
    accent-color: #6e3dff;
}

.clear-button {
    width: 100%;
    height: 38px;
    margin-top: 16px;
    color: #6e3dff;
    cursor: pointer;
    border: 1px solid #ded4ff;
    border-radius: 6px;
    background: #f8f6ff;
}

.position-list {
    min-width: 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 5px 0 0;
    font-size: 22px;
    line-height: 1.3;
}

.section-head span {
    color: #6b7280;
    font-size: 14px;
}

.position-card {
    min-height: 170px;
    margin-bottom: 14px;
    padding: 28px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 36, 48, 0.06);
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.position-card:hover,
.position-card:focus {
    border-color: #6e3dff;
    outline: none;
    transform: translateY(-1px);
}

.position-card h3 {
    margin: 8px 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.position-meta,
.position-city,
.position-description,
.position-extra {
    margin: 0;
    color: #5d6472;
    font-size: 14px;
    line-height: 1.7;
}

.position-description {
    max-width: 850px;
    margin: 10px 0;
}

.position-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
}

@media (max-width: 980px) {
    .job-workspace {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .hero {
        min-height: auto;
        padding: 42px 20px 46px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .job-workspace {
        gap: 18px;
        margin-top: 22px;
        padding: 0 16px 32px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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