
:root {
    --brand-blue: #2d9cf5;
    --brand-blue-dark: #1a8bf2;
    --brand-orange: #ff8a00;
}

/* ========== Header ========== */
.page-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f2;
}

.breadcrumb {
    padding: 16px 0 20px;
    font-size: 13px;
    color: #86868b;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb a:hover {
    color: var(--brand-blue);
}

.breadcrumb .sep {
    color: #d2d2d7;
}

.breadcrumb .current {
    color: #1d1d1f;
    font-weight: 500;
}

.header-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding-bottom: 28px;
    flex-wrap: wrap;
}

.title-area h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.2;
}

.sub-title {
    font-size: 15px;
    color: #86868b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sub-title .tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 500;
    background: #f0f7ff;
    color: var(--brand-blue);
    border: 1px solid rgba(45, 156, 245, 0.2);
}

.btn-header.secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 20px;
    border-radius: 40px;
    border: 1px solid #d2d2d7;
    color: #1d1d1f;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s;
}

.btn-header.secondary:hover {
    background: #f5f5f7;
    border-color: #c0c0c5;
}

/* ========== Main Layout ========== */
.main-wrapper {
    padding: 32px 0 80px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* ========== 左侧职位信息卡 ========== */
.job-side-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f0f0f2;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    padding: 28px 24px;
    position: sticky;
    top: 24px;
}

.job-side-card .job-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--brand-blue);
    margin-bottom: 10px;
}

.job-side-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.35;
}

.job-meta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.job-meta-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4a4a4f;
}

.job-meta-list li i {
    color: #a1a1a6;
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.job-divider {
    height: 1px;
    background: #f0f0f2;
    margin: 20px 0;
}

.job-desc-title {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.job-desc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.job-desc-list li {
    position: relative;
    padding-left: 16px;
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.6;
}

.job-desc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand-blue);
}

.job-contact-note {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f0f7ff;
    font-size: 12px;
    color: #4a6b8a;
    line-height: 1.6;
}

.job-contact-note i {
    color: var(--brand-blue);
    margin-right: 4px;
}

/* ========== 右侧表单卡 ========== */
.form-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f0f0f2;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    padding: 36px 40px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.form-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-section-icon i {
    color: var(--brand-blue);
    font-size: 17px;
}

.form-section-head h2 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.form-section-head .section-hint {
    font-size: 12px;
    color: #a1a1a6;
    margin-left: auto;
}

/* 表单行：更细腻的间距与标签对齐 */
.apply-form .layui-form-item {
    margin-bottom: 22px;
}

.apply-form .layui-form-label {
    width: 92px;
    padding: 10px 0;
    text-align: left;
    font-size: 14px;
    color: #4a4a4f;
    font-weight: 500;
}

.apply-form .layui-input-block {
    margin-left: 92px;
}

.apply-form .required {
    color: #ff4d4f;
    margin-left: 2px;
}

.apply-form .layui-input {
    height: 44px;
    line-height: 44px;
    border-radius: 12px;
    border: 1px solid #e8e8ed;
    background: #fbfbfd;
    padding: 0 14px;
    font-size: 14px;
    color: #1d1d1f;
    transition: all 0.2s;
}

.apply-form .layui-input:hover {
    border-color: #d2d2d7;
}

.apply-form .layui-input:focus {
    border-color: var(--brand-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45, 156, 245, 0.1);
}

.apply-form .layui-input::placeholder {
    color: #a1a1a6;
}

/* ========== 上传区 ========== */
.file-input-hidden {
    display: none;
}

.upload-area {
    border: 1.5px dashed #d2d2d7;
    border-radius: 16px;
    padding: 34px 20px;
    text-align: center;
    cursor: pointer;
    background: #fbfbfd;
    transition: all 0.25s ease;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--brand-blue);
    background: #f0f7ff;
}

.upload-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(45, 156, 245, 0.12);
    transition: transform 0.2s;
}

.upload-area:hover .upload-icon-wrap {
    transform: translateY(-2px);
}

.upload-icon-wrap i {
    font-size: 26px;
    color: var(--brand-blue);
}

.upload-text {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.upload-text .browse {
    color: var(--brand-blue);
}

.upload-hint {
    font-size: 12px;
    color: #a1a1a6;
}

.upload-success {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid #e8e8ed;
    border-radius: 14px;
    background: #fff;
    transition: all 0.2s;
}

.upload-success.show {
    display: flex;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.file-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon i {
    font-size: 20px;
    color: var(--brand-blue);
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 12px;
    color: #86868b;
    margin-top: 2px;
}

.btn-remove-file {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid rgba(255, 138, 0, 0.35);
    border-radius: 18px;
    background: #fff;
    color: var(--brand-orange);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-remove-file:hover {
    background: #fff8e7;
    border-color: var(--brand-orange);
}

.upload-error-tip {
    display: none;
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 8px;
}

.upload-error-tip.show {
    display: block;
}

/* ========== 底部操作栏 ========== */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid #f0f0f2;
    margin-top: 8px;
}

.form-actions .privacy-note {
    font-size: 12px;
    color: #a1a1a6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-actions .privacy-note i {
    color: #c0c0c5;
}

.action-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 40px;
    border: 1px solid #d2d2d7;
    background: #fff;
    color: #4a4a4f;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-cancel:hover {
    background: #f5f5f7;
    border-color: #c0c0c5;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 30px;
    border: none;
    border-radius: 40px;
    background: var(--brand-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(45, 156, 245, 0.28);
}

.btn-submit:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .job-side-card {
        position: static;
        order: 2;
    }
}

@media (max-width: 900px) {
    .title-area h1 {
        font-size: 26px;
    }

    .header-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding-bottom: 20px;
    }

    .btn-header.secondary {
        justify-content: center;
    }

    .main-wrapper {
        padding: 20px 0 48px;
    }

    .form-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .job-side-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .apply-form .layui-form-label {
        width: 100%;
        padding: 0 0 8px;
        text-align: left;
    }

    .apply-form .layui-input-block {
        margin-left: 0;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .action-btns {
        flex-direction: column-reverse;
    }

    .btn-cancel, .btn-submit {
        width: 100%;
    }
}
