/* 就业与培养页 */

/* ---------- 列表页：材料卡片 ---------- */
.career-grid {
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 760px) {
    .career-grid { grid-template-columns: 1fr !important; }
}

.career-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(15, 40, 60, .09);
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 40, 60, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.career-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 40, 60, .14);
}

.career-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: #eef2f5;
}

.career-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    display: block;
    transition: transform .35s ease;
}

.career-card:hover .career-cover img { transform: scale(1.03); }

.career-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(12, 28, 40, .28), transparent);
    pointer-events: none;
}

.career-tag {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .74rem;
    background: rgba(18, 56, 84, .86);
    color: #fff;
    letter-spacing: .05em;
    backdrop-filter: blur(2px);
}

.career-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.career-body h3 { margin: 0; font-size: 1.16rem; line-height: 1.35; }
.career-body h3 a { color: inherit; text-decoration: none; }
.career-body h3 a:hover { color: #1f6f95; }

.career-body p {
    margin: 0;
    color: #5b6b78;
    font-size: .94rem;
    line-height: 1.65;
    flex: 1;
}

.career-actions { display: flex; gap: 10px; padding-top: 8px; }

/* ---------- 照片墙 ---------- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.photo-item {
    padding: 0;
    border: 0;
    background: #0f1c26;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
    position: relative;
    box-shadow: 0 3px 12px rgba(15, 40, 60, .10);
    transition: transform .2s ease, box-shadow .2s ease;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease, filter .3s ease;
}

.photo-item::after {
    content: "⤢";
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s ease;
}

.photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 40, 60, .22);
}

.photo-item:hover img { transform: scale(1.05); }
.photo-item:hover::after { opacity: 1; }

/* 首图放大占位，避免"一堆缩略图"的列表感 */
@media (min-width: 720px) {
    .photo-item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* ---------- 灯箱 ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(6, 12, 18, .94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox[hidden] { display: none; }

.lightbox img {
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    width: 46px;
    height: 46px;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, .28); }

/* ---------- 说明块 ---------- */
.career-note {
    border-left: 4px solid #2f6f8f;
    background: #f5f9fc;
    padding: 18px 22px;
    border-radius: 0 12px 12px 0;
}

.career-note h3 { margin: 0 0 10px; font-size: 1.05rem; }
.career-note ul { margin: 0; padding-left: 20px; color: #4c5b67; line-height: 1.75; font-size: .93rem; }

/* ---------- 单篇材料（阅读页） ---------- */
.guide-head {
    padding: 46px 0 34px;
    background: linear-gradient(135deg, #0f2f45 0%, #1b4c68 55%, #2a6f92 100%);
    color: #fff;
}

.guide-back {
    display: inline-block;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-size: .88rem;
}

.guide-back:hover { color: #fff; }

.guide-head h1 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    line-height: 1.25;
    color: #ffffff !important;
}

.guide-sub {
    margin: 0 0 12px;
    font-size: 1.02rem;
    color: rgba(255, 255, 255, .88) !important;
    max-width: 720px;
}

.guide-meta {
    margin: 0;
    font-size: .82rem;
    color: rgba(255, 255, 255, .66) !important;
    letter-spacing: .04em;
}

.guide-body {
    max-width: 860px;
    padding: 40px 20px 72px;
}

.guide-sec { margin-bottom: 40px; }

.guide-sec h2 {
    margin: 0 0 16px;
    font-size: 1.28rem;
    line-height: 1.4;
    padding-left: 14px;
    border-left: 4px solid #2f6f8f;
}

.guide-lead {
    font-size: 1.06rem;
    line-height: 1.85;
    color: #23404f;
    background: #f3f8fb;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 0 0 18px;
}

.guide-body p {
    margin: 0 0 14px;
    line-height: 1.9;
    color: #3d4d59;
    font-size: .98rem;
}

.guide-list {
    margin: 0 0 16px;
    padding-left: 22px;
}

.guide-list li {
    line-height: 1.9;
    color: #3d4d59;
    font-size: .98rem;
    margin-bottom: 6px;
}

.guide-table-wrap {
    overflow-x: auto;
    margin: 4px 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(15, 40, 60, .10);
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .93rem;
    background: #fff;
}

.guide-table th {
    text-align: left;
    padding: 12px 14px;
    background: #eef4f8;
    color: #27404f;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid rgba(15, 40, 60, .10);
}

.guide-table td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(15, 40, 60, .06);
    color: #43535f;
    line-height: 1.65;
}

.guide-table tbody tr:nth-child(even) { background: #fafcfd; }
.guide-table tbody tr:last-child td { border-bottom: 0; }

.guide-note {
    margin: 0 0 16px;
    padding: 14px 18px;
    background: #fff8ea;
    border-left: 4px solid #e0a53c;
    border-radius: 0 10px 10px 0;
    color: #6b5327;
    font-size: .93rem;
    line-height: 1.8;
}

.guide-sources { border-top: 1px dashed rgba(15, 40, 60, .18); padding-top: 24px; }
.guide-sources h2 { font-size: 1.02rem; border-left-color: #9bb0bd; color: #5b6b78; }
.guide-sources .guide-list li { font-size: .88rem; color: #6b7a86; }

.guide-sec.is-placeholder {
    border: 2px dashed rgba(47, 111, 143, .35);
    border-radius: 14px;
    padding: 22px 24px;
    background: #fbfdfe;
}

.guide-sec.is-placeholder h2 { border-left-color: #8fb6cc; }

.guide-actions {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 40, 60, .10);
}

/* ---------- 打印（用于生成 PDF） ---------- */
@media print {
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    .site-header, .site-footer, .guide-back, .guide-actions, .skip-link { display: none !important; }
    .guide-head { background: #0f2f45 !important; padding: 26px 0 22px; }
    .guide-head h1,
    .guide-head .guide-sub,
    .guide-head .guide-meta { color: #ffffff !important; }
    .guide-body { max-width: none; padding: 22px 6mm; }
    .guide-sec { break-inside: avoid; }
    .guide-lead { background: #f3f8fb !important; }
    .guide-table th { background: #eef4f8 !important; }
    .guide-note { background: #fff8ea !important; }
    body { font-size: 11pt; }
    @page { margin: 12mm 10mm; }
}

@media (max-width: 640px) {
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .lightbox-nav { display: none; }
    .guide-body { padding: 28px 16px 56px; }
}

/* ---------- 登记入口 ---------- */
.join-cta {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 28px 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f2f45 0%, #1b4c68 60%, #2a6f92 100%);
    color: #fff;
}

.join-cta h2 {
    margin: 0 0 10px;
    font-size: 1.32rem;
    color: #fff;
}

.join-cta p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .86);
    line-height: 1.75;
    max-width: 640px;
    font-size: .95rem;
}

.join-cta-list {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, .72);
    font-size: .88rem;
    line-height: 1.8;
}

.join-cta .btn-primary {
    background: #fff;
    color: #10405c;
    white-space: nowrap;
    font-weight: 600;
    padding: 12px 22px;
}

.join-cta .btn-primary:hover { background: #eaf4fa; }

/* ---------- 登记表单 ---------- */
.join-form { max-width: 860px; }

.join-block {
    border: 1px solid rgba(15, 40, 60, .1);
    border-radius: 14px;
    padding: 18px 22px 22px;
    margin: 0 0 22px;
    background: #fff;
}

.join-block legend {
    padding: 0 8px;
    font-weight: 600;
    color: #1c3a4d;
    font-size: 1rem;
}

.join-block legend b, .join-field b { color: #c0392b; font-weight: 600; }

.join-hint { margin: 0 0 12px; color: #6b7a86; font-size: .88rem; }

.join-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.join-field { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; color: #33444f; }
.join-field > span { font-weight: 500; }
.join-field em { font-style: normal; color: #8a98a3; font-size: .8rem; }
.join-col-2 { grid-column: span 2; }

/* .join-field 是 flex，会把 hidden 属性的 display:none 盖掉，这里补回来 */
.join-field[hidden],
.join-block [hidden] { display: none !important; }

/* 薪资区间：年薪/月薪下拉 + 起止两个数字框 + 固定单位「万」 */
.join-field > .join-salary {
    display: flex;
    align-items: stretch;
    gap: 8px;
    font-weight: 400;
}
.join-field .join-salary input,
.join-field .join-salary select {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}
.join-field .join-salary select { flex: 0 0 auto; width: 96px; padding-right: 6px; }
.join-salary-dash {
    display: flex;
    align-items: center;
    color: #6b7a86;
    font-size: .95rem;
    padding: 0 2px;
}
.join-field .join-salary-unit {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 0 10px;
    white-space: nowrap;
    color: #33444f;
    font-size: .9rem;
    font-weight: 600;
    background: #f2f6f8;
    border: 1px solid rgba(15, 40, 60, .18);
    border-radius: 9px;
}

/* 校验：字段级报错 */
.join-field.has-error > input,
.join-field.has-error > select,
.join-field.has-error > textarea,
.join-field.has-error .join-salary input,
.join-field.has-error .join-salary select {
    border-color: #c0392b;
    background: #fff8f7;
}

.join-field .join-err,
.join-err {
    font-style: normal;
    color: #c0392b;
    font-size: .8rem;
    line-height: 1.45;
}

.join-check.has-error span { color: #c0392b; }
.join-checks.has-error .join-check span { color: #c0392b; }

.req-star { color: #c0392b; font-weight: 600; }

.join-error-count {
    display: block;
    margin-top: 6px;
    font-size: .86rem;
    opacity: .85;
}

.join-field input,
.join-field select,
.join-field textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid rgba(15, 40, 60, .18);
    border-radius: 9px;
    font: inherit;
    color: #1f3038;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.join-field input:focus,
.join-field select:focus,
.join-field textarea:focus {
    outline: 0;
    border-color: #2f6f8f;
    box-shadow: 0 0 0 3px rgba(47, 111, 143, .14);
}

.join-checks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px 14px;
}

.join-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .9rem;
    color: #3d4d59;
    line-height: 1.5;
    cursor: pointer;
}

.join-check input { margin-top: 3px; }

.join-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.join-error {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fdecea;
    border-left: 4px solid #c0392b;
    color: #8e2b21;
    font-size: .92rem;
}

.join-done {
    padding: 26px 28px;
    border-radius: 14px;
    background: #f1f8f4;
    border-left: 4px solid #2e8b57;
}

.join-done h2 { margin: 0 0 10px; font-size: 1.2rem; color: #22613f; }
.join-done p { margin: 0 0 8px; color: #3d5a49; }

.join-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cell-sub { font-style: normal; color: #8494a0; font-size: .8rem; }
.cell-advice { min-width: 200px; color: #5b6b78; }

@media (max-width: 640px) {
    .join-grid { grid-template-columns: 1fr; }
    .join-col-2 { grid-column: auto; }
    .join-cta { padding: 22px; }
}

/* ---------- 届别筛选 + 渠道小图 ---------- */
.year-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.year-chip {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 40, 60, .16);
    background: #fff;
    color: #3d4d59;
    font-size: .88rem;
    text-decoration: none;
    transition: all .16s ease;
}

.year-chip:hover { border-color: #2f6f8f; color: #1f6f95; }

.year-chip.is-active {
    background: #2f6f8f;
    border-color: #2f6f8f;
    color: #fff;
}

/* ---------- 分页器 ---------- */
.career-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 22px 0 8px;
}

.pager-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid rgba(15, 40, 60, .16);
    background: #fff;
    color: #3d4d59;
    font-size: .88rem;
    text-decoration: none;
    transition: all .16s ease;
}

a.pager-btn:hover { border-color: #2f6f8f; color: #1f6f95; }

.pager-btn.is-active {
    background: #2f6f8f;
    border-color: #2f6f8f;
    color: #fff;
    font-weight: 600;
}

.pager-btn.is-disabled {
    color: #b3bfc7;
    background: #f6f8f9;
    cursor: default;
}

.pager-gap {
    color: #9aa8b2;
    padding: 0 2px;
    user-select: none;
}

.pager-info {
    margin: 0 0 20px;
    text-align: center;
    color: #7d8b95;
    font-size: .82rem;
}

.channel-chart {
    margin: 0 0 24px;
    padding: 20px 22px;
    border-radius: 14px;
    background: #f6fafc;
    border: 1px solid rgba(15, 40, 60, .08);
}

.channel-chart-head h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #1c3a4d;
}

.channel-chart-head p { margin: 0 0 16px; }

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

.channel-bars li {
    display: grid;
    grid-template-columns: 170px 1fr 110px;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
    font-size: .88rem;
}

.bar-label { color: #3d4d59; }

.bar-track {
    height: 10px;
    background: #e3ecf2;
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f6f8f, #46a3c9);
}

.bar-value { color: #6b7a86; white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
    .channel-bars li { grid-template-columns: 110px 1fr; }
    .bar-value { grid-column: 2; }
}

@media (max-width: 480px) {
    .join-field .join-salary { gap: 6px; }
    .join-field .join-salary select { width: 78px; padding-left: 6px; }
    .join-field .join-salary-unit { min-width: 38px; padding: 0 7px; }
    /* 小屏只留箭头，整排页码才放得下 */
    .pager-word { display: none; }
    .pager-btn { min-width: 34px; height: 34px; padding: 0 9px; font-size: .84rem; }
}

/* 新登记表格：前几列不换行，建议列可换行 */
.career-table th,
.career-table td { white-space: nowrap; }
.career-table td.cell-advice { white-space: normal; min-width: 220px; }
.career-table-wrap, .guide-table-wrap { -webkit-overflow-scrolling: touch; }

/* ---------- 新登记：卡片列表（不用横向滚动） ---------- */
.career-entries {
    display: grid;
    gap: 14px;
    margin: 0 0 18px;
}

.career-entry {
    border: 1px solid rgba(15, 40, 60, .10);
    border-left: 4px solid #2f6f8f;
    border-radius: 12px;
    padding: 16px 20px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(15, 40, 60, .04);
}

.ce-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.ce-year {
    padding: 2px 10px;
    border-radius: 999px;
    background: #eaf3f8;
    color: #22617f;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.ce-name {
    font-size: 1.02rem;
    color: #1c3a4d;
}

.ce-company {
    color: #33444f;
    font-size: .96rem;
}

.ce-type {
    color: #8a98a3;
    font-size: .82rem;
}

.ce-role {
    color: #3d4d59;
    font-size: .95rem;
    margin-bottom: 10px;
}

.ce-role em {
    font-style: normal;
    margin-left: 8px;
    color: #8a98a3;
    font-size: .82rem;
}

.ce-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ce-chip {
    padding: 4px 10px;
    border-radius: 8px;
    background: #f4f8fa;
    color: #4f6170;
    font-size: .84rem;
    line-height: 1.5;
}

.ce-chip-strong {
    background: #eef7f1;
    color: #2c6b47;
    font-weight: 600;
}

.ce-advice {
    margin: 12px 0 0;
    padding-left: 12px;
    border-left: 3px solid #cfe0ea;
    color: #5b6b78;
    font-size: .9rem;
    line-height: 1.7;
}

.ce-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: -4px 0 10px;
    color: #7c8b96;
    font-size: .84rem;
}
