* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 
/* 招贤纳士 */
/* 添加在CSS部分 */
.zp {
    margin-left: 14.6vw;
    display: inline-block;
    padding: 8px 20px;
    background-color: #0bb1b1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.zp:hover {
    background-color: #098989;
    /* 更深的颜色 */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 或者添加下划线效果 */
.zp:hover {
    text-decoration: underline;
    background-color: transparent;
    color: #0bb1b1;
    border: 2px solid #0bb1b1;
}

/* 招贤纳士弹窗 */
.zp-modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden; 
}

.zp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2001;
    cursor: pointer;
}

.zp-modal-content {
    position: relative;
    background-color: #ffffff; 
    width: 100vw;
    height: 100vh;
    z-index: 2002;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}
.zp-modal-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #ffffff;
    color: #ffffff;
    border-radius: 10px 10px 0 0;
    z-index: 2003;
}
.zp-close-btn {
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
    transition: color 0.3s;
    background: none;
    border: none;
    position: relative;
    
    z-index: 2004;
}

.zp-close-btn:hover {
    color: #3a3939;
    transform: scale(1.1);
}

.zp-modal-body {
    padding: 20px 30px 40px;
    overflow-y: auto; 
}

/* 确保×符号在任何情况下都可见 */
.zp-close-btn:focus {
    outline: none;
}

/* 添加关闭按钮的悬停动画效果 */
.zp-close-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s;
}

.zp-close-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.zp-activities {
    display: flex;
    flex-direction: column;
    margin-left: 19.5vw;
    margin-top: 50px;

}

.zp-activity {
    width: 90%;
    height: 12vh;
    margin-left: 50px;
    margin-bottom: 10px;
}

.zp-activity:active {
    transform: translateY(0);
}

.zp-date {
    font-weight: 400;
    font-size: 22px;
    color: #000000;
}

.zp-location {
    color: #343434;
    font-size: 18px;
    margin-left: 50px;
}

.zp-content {
    margin-top: 15px;
    font-size: 18px;
    line-height: 1.5;
}

.zp-divider {
    width: 60vw;
    height: 1px;
    background-color: #c1c1c1;
    margin-bottom: 30px;
}

.action-btn {
    width: 55px;
    height: 30px;
    margin-left: 400px;
    background-color: #0bb1b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

 
/* 弹窗基础样式 */
.xz-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(67, 67, 67, 0.55);
    color: white;
    border-radius: 5%;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    /* align-items: center; */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

/* 悬停效果 */
.xz-image-container:hover .xz-popup-overlay {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.xz-image-container:hover img {
    transform: scale(1.05);
}

/* 弹窗文字样式 */


.xz-popup-content {
    text-indent: 2em;
    font-size: 16px;
    line-height: 1.5;
    padding-top: 55px;
    color: #eee;
}

/* 确保图片过渡效果 */
.xz-image-container img {
    transition: all 0.3s ease;
}

/* 确保容器圆角和溢出隐藏 */
.xz-image-container {
    border-radius: 5%;
    overflow: hidden;
}

/* 父容器过渡效果 */
.zp-parent-container {
    transition: gap 0.3s ease;
}

/* 当有图片悬停时，缩小间距 */
.zp-parent-container:hover {
    gap: 1vw;
}

/* 悬停的图片放大并置顶 */
.xz-image-container:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* 未悬停的图片缩小并变暗 */
.zp-parent-container:hover .xz-image-container:not(:hover) {
    transform: scale(0.95);
    opacity: 0.85;
    filter: brightness(0.9);
}

/* 确保所有图片容器有过渡效果 */
.xz-image-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



/* 弹框样式 */
.job-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    max-width: 90%;
    max-height: 80vh;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 3000 !important;
    border-radius: 8px;
    overflow: hidden;
}

.job-modal.active {
    display: block;
}

/* 遮罩层 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    z-index: 2999 !important;
}

.modal-overlay.active {
    display: block;
}

.modal-header {
    background-color: #0bb1b1;
    color: white;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

/* 职位详情样式 */
.job-detail {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.job-detail:last-child {
    border-bottom: none;
}

.job-detail strong {
    color: #0bb1b1;
    margin-right: 10px;
    min-width: 100px;
    display: inline-block;
}



/* 确保弹框在内容上层 */
#careerPage {
    position: relative;
}
.modal-edit{
    width: 100px;
    height: 36px;
    border: 1px solid gray;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}
.modal-edit:hover{ 
    background-color: rgba(255, 255, 255, 0.3);
}
.modal-edit:active{ 
    background-color: rgba(255, 255, 255, 0.5);
}