/*
 * Copyright: YC-2025Copyright
 * Created: 2026-06-16
 * Description: 新知AI平台招聘H5页面样式
 */

:root {
    --recruit-bg: #f6f8fb;
    --recruit-surface: #ffffff;
    --recruit-ink: #13211f;
    --recruit-muted: #5f6f6b;
    --recruit-soft: #e8efed;
    --recruit-line: #dfe7e4;
    --recruit-green: #0f9f78;
    --recruit-green-dark: #08745a;
    --recruit-blue: #2563eb;
    --recruit-blue-soft: #eaf1ff;
    --recruit-shadow: 0 18px 48px rgba(18, 33, 31, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.recruitment-page {
    margin: 0;
    background: var(--recruit-bg);
    color: var(--recruit-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

.recruitment-page a {
    color: inherit;
    text-decoration: none;
}

.recruitment-shell {
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 0 16px 108px;
}

.recruitment-hero {
    padding: max(18px, env(safe-area-inset-top)) 0 22px;
}

.recruitment-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.brand-link img {
    display: block;
    width: 132px;
    height: auto;
}

.topbar-link {
    flex: 0 0 auto;
    color: var(--recruit-green-dark);
    font-size: 13px;
    font-weight: 700;
}

.hero-copy {
    padding: 28px 0 18px;
}

.hero-copy h1 {
    margin: 0;
    max-width: 8em;
    color: var(--recruit-ink);
    font-size: 42px;
    font-weight: 850;
    line-height: 1.02;
}

.hero-copy p {
    margin: 16px 0 0;
    color: var(--recruit-muted);
    font-size: 16px;
    line-height: 1.75;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 2px 0 18px;
}

.hero-points div {
    min-width: 0;
}

.hero-points strong,
.hero-points small {
    display: block;
}

.hero-points strong {
    margin-top: 8px;
    color: var(--recruit-ink);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
}

.hero-points small {
    margin-top: 3px;
    color: var(--recruit-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.point-icon {
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
    color: var(--recruit-green);
}

.point-people::before,
.point-people::after {
    position: absolute;
    content: "";
    border: 2px solid currentColor;
}

.point-people::before {
    top: 4px;
    left: 9px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.point-people::after {
    right: 3px;
    bottom: 3px;
    left: 3px;
    height: 13px;
    border-radius: 11px 11px 6px 6px;
}

.point-rocket::before {
    position: absolute;
    top: 4px;
    left: 9px;
    width: 16px;
    height: 24px;
    border: 2px solid currentColor;
    border-radius: 16px 16px 5px 5px;
    content: "";
    transform: rotate(35deg);
}

.point-rocket::after {
    position: absolute;
    top: 13px;
    left: 14px;
    width: 5px;
    height: 5px;
    border: 2px solid currentColor;
    border-radius: 50%;
    content: "";
}

.point-growth::before {
    position: absolute;
    right: 4px;
    bottom: 6px;
    left: 4px;
    height: 20px;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    content: "";
}

.point-growth::after {
    position: absolute;
    right: 3px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    content: "";
    transform: rotate(-12deg);
}

.hero-actions,
.sticky-apply {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.primary-action,
.secondary-action,
.sticky-apply a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
}

.primary-action,
.sticky-apply a:last-child {
    background: var(--recruit-green);
    color: #ffffff;
}

.secondary-action,
.sticky-apply a:first-child {
    border: 1px solid var(--recruit-line);
    background: var(--recruit-surface);
    color: var(--recruit-ink);
}

.hero-summary {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.hero-summary a {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--recruit-line);
    border-radius: 8px;
    background: var(--recruit-surface);
    box-shadow: 0 10px 28px rgba(18, 33, 31, 0.05);
}

.hero-summary strong {
    font-size: 16px;
    line-height: 1.35;
}

.hero-summary span {
    color: var(--recruit-muted);
    font-size: 13px;
    line-height: 1.6;
}

.section-block,
.office-card,
.apply-card {
    margin-top: 18px;
}

.section-head {
    padding: 14px 2px 4px;
}

.section-head h2,
.office-card h2,
.apply-card h2 {
    margin: 0;
    color: var(--recruit-ink);
    font-size: 24px;
    font-weight: 850;
    line-height: 1.18;
}

.section-head p,
.apply-card p {
    margin: 10px 0 0;
    color: var(--recruit-muted);
    font-size: 14px;
    line-height: 1.75;
}

.job-list {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.job-card {
    overflow: hidden;
    border: 1px solid var(--recruit-line);
    border-radius: 8px;
    background: var(--recruit-surface);
    box-shadow: var(--recruit-shadow);
}

.job-card-head {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 18px 16px 14px;
}

.job-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--recruit-blue-soft);
    color: var(--recruit-blue);
    font-size: 14px;
    font-weight: 850;
}

.job-card h3 {
    margin: 0;
    color: var(--recruit-ink);
    font-size: 22px;
    font-weight: 850;
    line-height: 1.2;
}

.job-card-head p {
    margin: 8px 0 0;
    color: var(--recruit-muted);
    font-size: 14px;
    line-height: 1.7;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 16px;
}

.tag-row span,
.apply-points span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(15, 159, 120, 0.2);
    border-radius: 8px;
    background: rgba(15, 159, 120, 0.08);
    color: var(--recruit-green-dark);
    font-size: 12px;
    font-weight: 750;
}

.job-content {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--recruit-line);
}

.job-content section {
    padding: 16px;
    border-top: 1px solid var(--recruit-soft);
}

.job-content section:first-child {
    border-top: 0;
}

.job-content h4 {
    margin: 0 0 10px;
    color: var(--recruit-ink);
    font-size: 16px;
    font-weight: 850;
}

.job-content ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 1.25em;
}

.job-content li {
    padding-left: 2px;
    color: #33423f;
    font-size: 14px;
    line-height: 1.72;
}

.office-card,
.apply-card {
    border: 1px solid var(--recruit-line);
    border-radius: 8px;
    background: var(--recruit-surface);
    box-shadow: var(--recruit-shadow);
}

.office-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 18px 16px;
}

.office-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.office-icon span {
    position: relative;
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--recruit-green);
}

.office-icon span::before,
.office-icon span::after {
    position: absolute;
    content: "";
    background: #ffffff;
}

.office-icon span::before {
    top: 8px;
    left: 10px;
    width: 16px;
    height: 20px;
    border-radius: 7px 7px 8px 8px;
}

.office-icon span::after {
    top: 13px;
    left: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.office-card p {
    margin: 10px 0 8px;
    color: var(--recruit-ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.55;
}

.office-card strong {
    color: var(--recruit-muted);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.65;
}

.apply-card {
    padding: 18px 16px;
}

.apply-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sticky-apply {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--recruit-line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -12px 28px rgba(18, 33, 31, 0.08);
    backdrop-filter: blur(16px);
}

@media (min-width: 720px) {
    body.recruitment-page {
        background:
            linear-gradient(90deg, rgba(15, 159, 120, 0.08), transparent 24%),
            linear-gradient(270deg, rgba(37, 99, 235, 0.08), transparent 24%),
            var(--recruit-bg);
    }

    .recruitment-shell {
        padding-top: 12px;
    }
}

/* H5 移动端：标题与间距收敛，保持单列大气排版 */
@media (max-width: 767.98px) {
    .hero-copy h1 {
        font-size: 30px;
        line-height: 1.15;
    }

    .hero-copy p {
        font-size: 15px;
        margin-top: 12px;
    }

    .hero-points strong {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .recruitment-shell {
        padding-right: 12px;
        padding-left: 12px;
    }

    .brand-link img {
        width: 118px;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-points {
        gap: 7px;
    }

    .hero-points strong {
        font-size: 12px;
    }

    .job-card-head {
        grid-template-columns: 36px 1fr;
        gap: 10px;
    }

    .job-number {
        width: 36px;
        height: 36px;
    }
}
