/* 外层容器 */
.job-list-container {
    width: 100%;
    max-width: 1200px; /* 限制最大宽度，适配大屏幕 */
    margin: 0 auto;
    padding: 40px 20px; /* 增加上下内边距，左右保留少量缓冲 */
    display: flex;
    flex-direction: column;
    gap: 20px; /* 卡片之间的间距 */
    box-sizing: border-box; /* 确保 padding 不会撑大 width */
}

/* 每一个职位卡片 */
.job-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    /* 默认顶部边框透明或与普通边框一致，防止跳动，这里用透明补位 */
    border-top: 3px solid transparent; 
}

/* 激活状态（展开） */
.job-item.active {
    border-top: 3px solid #0056b3; /* 顶部蓝条 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 头部：职位名称 + 标签 + 切换图标 */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 默认垂直居中 */
    padding: 20px 30px;
    cursor: pointer;
    background-color: #fff;
}

/* 头部左侧内容容器 */
.job-header-main {
    display: flex;
    flex-direction: row; /* 默认水平排列 */
    align-items: center;
    flex-wrap: wrap;
}

/* 激活状态下，头部左侧改为垂直排列 (Title 上, Tag 下) */
.job-item.active .job-header-main {
    flex-direction: column;
    align-items: flex-start;
}

/* 职位标题 */
.job-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* 标签样式 (如：遥感方向) */
.job-tag {
    display: inline-block;
    background-color: #e6f7ff; /* 浅蓝背景 */
    color: #1890ff;            /* 蓝色文字 */
    border: 1px solid #91d5ff; /* 蓝色边框 */
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 15px; /* 默认在右侧时的间距 */
    white-space: nowrap;
}

/* 激活状态下，标签在标题下方 */
.job-item.active .job-tag {
    margin-left: 0;
    margin-top: 10px;
}

/* 右侧图标 */
.job-toggle-icon {
    font-size: 16px;
    color: #ccc; /* 默认灰色 */
    margin-left: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* 激活状态图标变蓝并旋转 */
.job-item.active .job-toggle-icon {
    color: #0056b3;
    transform: rotate(180deg);
}

/* 隐藏的内容区域 */
.job-content {
    display: none; /* JS控制显示 */
    padding: 0 30px 30px 30px;
    border-top: 1px solid transparent; /* 占位 */
}

/* 加入我们 Banner */
.join-us-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #f9f9f9;
    text-align: center;
    padding: 60px 0;
    font-size: 30px;
    color: #444;
    letter-spacing: 4px;
    margin-bottom: 0; /* 下方容器有 padding */
    font-style: italic;
    font-family: "Songti SC", "SimSun", "STSong", serif;
}

/* 激活时显示 */
.job-item.active .job-content {
    display: block;
    /* border-top: 1px solid #f0f0f0;  如果需要内部分割线可以加 */
}

/* 内容两列布局 */
.job-details-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    margin-top: 10px;
}

.job-col {
    flex: 1;
    min-width: 300px;
    padding: 0 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* "岗位职责" / "任职资格" 小标题 */
.col-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    margin-top: 0;
}

/* 正文列表 */
.col-text ul, .col-text ol {
    padding-left: 18px;
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}
.col-text li {
    margin-bottom: 5px;
    list-style-type: disc; /* 实心圆点 */
}

/* 底部区域 */
.job-footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* 发送简历按钮 */
.btn-send-resume {
    display: inline-block;
    background-color: #cc0000; /* 深红 */
    color: #fff !important;
    padding: 10px 35px;
    font-size: 14px;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-send-resume:hover {
    background-color: #a00000;
}

/* 发布日期 */
.job-date {
    margin-left: 20px;
    font-size: 13px;
    color: #999;
}

/* 弹窗样式 */
.job-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 9999; /* 确保在最上层 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* 半透明黑色背景 */
}

.job-modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 距顶部15%，水平居中 */
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.job-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.job-modal-close:hover,
.job-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.job-modal-text {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-top: 10px;
}

.job-modal-email {
    color: #0056b3;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-top: 10px;
    font-size: 20px;
}

.job-modal-email:hover {
    text-decoration: underline;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .job-details-grid {
        flex-direction: column;
    }
    .job-col {
        width: 100%;
        margin-bottom: 20px;
    }
    .job-header {
        padding: 15px;
    }
    .job-content {
        padding: 0 15px 20px 15px;
    }
    .job-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .job-date {
        margin-left: 0;
        margin-top: 10px;
    }
    
    /* 移动端标题和标签的排列可能需要调整 */
    .job-header-main {
        flex: 1;
    }
}
