/* ================================
   职位申请弹窗样式
   ================================ */
.job-apply-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.job-apply-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-apply-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.job-apply-container {
    position: relative;
    background: #FFFFFF;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    animation: slideUp 0.3s;
    margin: 20px;
    border-radius: 8px;
}

/* 移动端全屏 */
@media (max-width: 768px) {
    .job-apply-container {
        max-width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
}

.modal-header {
    position: relative;
    padding: 15px 20px;
    text-align: right;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #DB0D16;
}

.modal-job-info {
    padding: 0 20px 15px;
    border-bottom: 1px solid #E5E5E5;
}

.modal-job-info .job-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.modal-job-info .job-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.modal-job-info .meta-row {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-job-info .meta-icon {
    font-size: 14px;
}

.modal-title-bar {
    background: #DB0D16;
    color: #FFFFFF;
    text-align: center;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
}

.modal-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-label {
    flex-shrink: 0;
    width: 70px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-align: right;
}

.form-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #DDD;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #DB0D16;
}

.form-input::placeholder {
    color: #BBB;
}

.upload-area {
    border: 1px dashed #DDD;
    border-radius: 4px;
    padding: 12px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-btn {
    background: #DB0D16;
    color: #FFFFFF;
    border: none;
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-btn:hover {
    background: #1976D2;
}

.upload-hint {
    font-size: 11px;
    color: #999;
}

.upload-result {
    font-size: 12px;
}

.uploading {
    color: #2196F3;
}

.upload-success {
    color: #4CAF50;
}

.upload-error {
    color: #F44336;
}

.modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #E5E5E5;
}

.modal-buttons .btn {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-submit {
    background: #DB0D16;
    color: #FFFFFF;
}

.btn-submit:hover {
    background: #B50D13;
}

.btn-cancel {
    background: #2C2C2C;
    color: #FFFFFF;
}

.btn-cancel:hover {
    background: #1A1A1A;
}

.modal-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #F3F3F3;
    border-top: 4px solid #DB0D16;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ================================
   成功提示对话框样式
   ================================ */
.success-dialog {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    animation: fadeIn 0.3s;
}

.success-content {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.3s;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #FFFFFF;
    margin: 0 auto 20px;
    animation: checkmarkPop 0.5s ease-in-out 0.2s both;
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.success-message {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.success-btn {
    background: #DB0D16;
    color: #FFFFFF;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    min-width: 120px;
}

.success-btn:hover {
    background: #B50D13;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 13, 22, 0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}