/* ===== 职位详情页 ===== */
.job-detail-wrap {
    background: #f5f5f5;
    padding: 60px 0 80px;
    min-height: 60vh;
}

.job-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* ===== 主内容卡片 ===== */
.job-detail-main {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

.job-detail-header {
    padding: 40px 48px 32px;
    border-bottom: 1px solid #f0ece4;
    position: relative;
}
.job-detail-header::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--c-gold);
}

.job-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: 1px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.job-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #666;
}
.job-detail-meta .meta-item i {
    color: var(--c-gold);
    font-size: 13px;
    width: 16px;
    text-align: center;
}
.job-detail-salary {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-gold);
    margin-left: auto;
}

.job-detail-body {
    padding: 40px 48px 48px;
}

.job-section {
    margin-bottom: 36px;
}
.job-section:last-child { margin-bottom: 0; }

.job-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0ece4;
    display: flex;
    align-items: center;
    gap: 10px;
}
.job-section-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--c-gold);
    border-radius: 2px;
    flex-shrink: 0;
}

.job-section-content {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
}

.job-apply-bar {
    padding: 28px 48px;
    background: #fafaf8;
    border-top: 1px solid #f0ece4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.job-apply-bar .apply-hint {
    font-size: 13px;
    color: #999;
}
.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--c-primary);
    color: #fff;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
    border: none;
    cursor: pointer;
}
.btn-apply:hover {
    background: var(--c-gold);
    color: #fff;
    transform: translateY(-1px);
}

/* ===== 侧边栏 ===== */
.job-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
    padding: 28px 28px 24px;
}
.sidebar-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0ece4;
}

/* 快速投递 */
.sidebar-apply-btn {
    display: block;
    width: 100%;
    background: var(--c-gold);
    color: #fff;
    text-align: center;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    transition: background 0.25s;
    margin-bottom: 12px;
    border: none;
    cursor: pointer;
}
.sidebar-apply-btn:hover { background: var(--c-primary); color: #fff; }

.sidebar-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
}
.sidebar-contact-item i {
    color: var(--c-gold);
    margin-top: 2px;
    width: 14px;
    flex-shrink: 0;
}

/* 相关职位 */
.related-job-item {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: color 0.2s;
}
.related-job-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-job-item:hover .rj-title { color: var(--c-gold); }
.rj-title {
    font-size: 14px;
    color: var(--c-primary);
    font-weight: 600;
    margin-bottom: 4px;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rj-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 12px;
}

/* 返回按钮 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s;
}
.back-link:hover { color: var(--c-gold); }
.back-link i { font-size: 11px; }

/* 投递弹窗 */
.apply-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.apply-modal-overlay.show { display: flex; }
.apply-modal {
    background: #fff;
    width: 90%;
    max-width: 460px;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0,0,0,0.2);
}
.apply-modal-close {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 20px;
    color: #bbb;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.2s;
}
.apply-modal-close:hover { color: var(--c-primary); }
.apply-modal h3 {
    font-size: 18px;
    color: var(--c-primary);
    margin-bottom: 6px;
    font-weight: 700;
}
.apply-modal .modal-job-name {
    font-size: 13px;
    color: var(--c-gold);
    margin-bottom: 24px;
}
.apply-modal .form-group {
    margin-bottom: 16px;
}
.apply-modal label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.apply-modal input,
.apply-modal textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.apply-modal input:focus,
.apply-modal textarea:focus { border-color: var(--c-gold); }
.apply-modal textarea { height: 90px; resize: vertical; }
.apply-modal .btn-submit {
    width: 100%;
    background: var(--c-primary);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.25s;
    margin-top: 8px;
}
.apply-modal .btn-submit:hover { background: var(--c-gold); }

@media (max-width: 900px) {
    .job-detail-layout { grid-template-columns: 1fr; }
    .job-detail-sidebar { order: -1; }
    .job-detail-header,
    .job-detail-body,
    .job-apply-bar { padding-left: 24px; padding-right: 24px; }
    .job-detail-title { font-size: 22px; }
    .job-detail-salary { margin-left: 0; }
}
@media (max-width: 600px) {
    .job-detail-wrap { padding: 40px 0 60px; }
    .job-detail-header { padding: 28px 20px 24px; }
    .job-detail-body { padding: 28px 20px 36px; }
    .job-apply-bar { padding: 20px; flex-direction: column; align-items: stretch; }
    .btn-apply { text-align: center; justify-content: center; }
}
