/* 人才招聘页样式 */

html, body {
    min-height: 100vh;
    height: auto;
    background-color: #000;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 职位列表部分 - 确保白色背景 */
section.recruitment-content {
    background-color: #fff !important;
    color: #333 !important;
}

.recruitment-content {
    background-color: #fff !important;
    color: #333 !important;
}

/* 主要内容区域 */
.recruitment-main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    overflow: visible;
    position: relative;
}

/* 顶部导航 */
/* 顶导样式统一使用 styles.css 中的全局样式 */

/* 背景图部分 */
.recruitment-hero {
    width: 100%;
    height: 33.33vh; /* 1/3屏幕高度 */
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 80px; /* 导航栏高度，使背景图显示在导航栏下方 */
}

/* PC模式下背景图显示在导航栏下方 */
@media (min-width: 769px) {
    .recruitment-hero {
        margin-top: 80px; /* 导航栏高度 */
    }
}

.recruitment-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://oss-pai-qtn3yq5bgadm2iubd2-cn-shenzhen.oss-cn-shenzhen.aliyuncs.com/index/zhaopin.png');
    background-size: cover;
    background-position: center; /* 从顶部开始显示，保持图片比例 */
    background-repeat: no-repeat;
}

.recruitment-hero-content {
    position: absolute;
    top: 50%; /* 在背景图区域中心 */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 0 33px;
    box-sizing: border-box;
}

.recruitment-hero-title-zh {
    font-size: 36px;
    font-weight: 300;
    font-family: Helvetica, Arial, sans-serif;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
    text-align: center;
}

.recruitment-hero-title-en {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    font-family: Helvetica, Arial, sans-serif;
    text-transform: none;
    letter-spacing: 0.5px;
    line-height: 1.5;
    text-align: center;
}

/* PC模式：显示不带换行符的版本，隐藏带换行符的版本 */
.recruitment-hero-title-pc {
    display: block;
}

.recruitment-hero-title-mobile {
    display: none;
}

/* 职位列表部分（自适应高度） */
.recruitment-content {
    width: 100%;
    min-height: 66.67vh;
    padding: 50px 0 80px 0;
    background-color: #fff !important;
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    overflow: visible;
    box-sizing: border-box;
}

.recruitment-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 职位卡片 */
.job-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: none;
}

.job-card:hover {
    background: #f8f9fa;
    transform: translateY(0);
    box-shadow: none;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.job-card-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-title {
    font-size: 20px;
    font-weight: 320;
    color: #333;
    margin: 0;
}

.job-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.job-card.expanded .job-toggle {
    transform: rotate(180deg);
}

.job-toggle svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

.job-summary {
    color: #666;
    line-height: 1.8;
}

.job-summary p {
    margin: 8px 0;
    font-size: 16px;
}

/* PC模式下的职位卡片样式 */
.job-card-pc {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.job-card-pc .job-title {
    margin-bottom: -10px;
    transition: color 0.3s ease;
}

.job-card-pc:hover .job-title {
    color: #4A90E2;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    font-weight: 350;
    font-family: Helvetica, Arial, sans-serif;
}

.job-meta-item {
    color: rgba(0, 0, 0, 0.6);
}

.job-meta-separator {
    color: rgba(0, 0, 0, 0.3);
}

.job-summary-preview {
    color: #666;
    line-height: 1.5;
    margin-top: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.job-summary-preview p {
    margin: 2px 0;
    font-size: 12px;
    color: #666;
}

/* 职位详情页样式 */
.job-detail {
    max-width: 800px;
    margin: 0 auto;
}

.job-detail-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.job-detail-title {
    font-size: 32px;
    font-weight: 400;
    color: #333;
    margin: 0 0 20px 0;
}

.job-detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    font-weight: 300;
    font-family: Helvetica, Arial, sans-serif;
}

.job-detail-content {
    margin-bottom: 40px;
}

.job-detail-section {
    margin-bottom: 40px;
}

.job-detail-section-title {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    margin: 0 0 20px 0;
}

.job-detail-text {
    color: #666;
    line-height: 1.5;
}

.job-detail-text p {
    margin: 6px 0;
    font-size: 15px;
    white-space: pre-line;
    padding-left: 0;
    text-indent: 0;
    margin-left: 0;
    display: block;
    padding-left: 1em;
    text-indent: -0.75em;
}

.job-detail-apply {
    margin-top: 40px;
    padding: 30px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.job-apply-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.job-apply-text {
    color: rgba(0, 0, 0, 0.6);
    font-size: 15px;
    font-weight: 300;
    white-space: nowrap;
}

.job-apply-email {
    color: #4A90E2;
    text-decoration: underline;
    font-size: 15px;
    font-weight: 300;
    transition: color 0.3s ease;
}

.job-apply-email:hover {
    color: #357ABD;
}

.job-copy-email-btn {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 6px 20px;
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: Helvetica, Arial, sans-serif;
}

.job-copy-email-btn:hover {
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.3);
}

.job-copy-email-btn:active {
    transform: scale(0.98);
}

.job-detail-footer {
    padding-top: 30px;
}

.job-back-link {
    color: #4A90E2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: color 0.3s ease;
}

.job-back-link:hover {
    color: #357ABD;
    text-decoration: underline;
}

/* 更多职位模块（仅PC模式） */
.job-detail-related {
    margin-top: 20px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.job-detail-related-title {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    margin: 0 0 30px 0;
}

.related-jobs-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-job-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-job-card:hover {
    background: #f8f9fa;
    border-color: #4A90E2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-job-title {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    margin: 0 0 12px 0;
    transition: color 0.3s ease;
}

.related-job-card:hover .related-job-title {
    color: #4A90E2;
}

.related-job-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    font-weight: 300;
    font-family: Helvetica, Arial, sans-serif;
    margin-bottom: 12px;
}

.related-job-summary {
    color: #666;
    line-height: 1.6;
}

.related-job-summary p {
    margin: 6px 0;
    font-size: 14px;
    color: #666;
}

/* 移动端隐藏更多职位模块 */
@media (max-width: 768px) {
    .job-detail-related {
        display: none;
    }
}

.job-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: #555;
    line-height: 1.8;
}

.job-card.expanded .job-description {
    max-height: 2000px;
    padding-top: 20px;
}

.job-description p {
    margin: 12px 0;
    font-size: 15px;
    white-space: pre-line;
}

/* 底部信息 */
.site-footer {
    width: 100%;
    position: relative;
    background-color: #000;
    margin-top: 0;
    z-index: 1;
}

.site-footer .footer-overlay {
    position: relative;
    bottom: auto;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .top-overlay {
        height: 60px;
    }

    .recruitment-hero {
        height: 25vh; /* 1/4屏幕高度 */
        min-height: 200px;
        margin-top: 60px; /* 导航栏高度，使背景图显示在导航栏下方 */
    }
    
    .recruitment-hero-bg {
        background-position: center top; /* 移动端也从顶部开始显示 */
    }

    .recruitment-hero-content {
        left: 10px;
        top: 50%; /* 在背景图区域中心 */
        transform: translateY(-50%);
        text-align: left;
        padding-right: 20px;
    }

    /* 手机模式：隐藏不带换行符的版本，显示带换行符的版本 */
    .recruitment-hero-title-pc {
        display: none;
    }

    .recruitment-hero-title-mobile {
        display: block;
    }

    .recruitment-hero-title-zh {
        text-align: left;
        font-size: 24px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .recruitment-hero-title-en {
        text-align: left;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .recruitment-content {
        padding: 40px 0;
        min-height: calc(75vh - 80px); /* 剩余屏幕高度减去顶部导航 */
    }

    .recruitment-content .container {
        padding: 0 20px;
    }

    .job-card {
        padding: 0px;
        margin-top: 0px;
    }

    .job-card-mobile {
        cursor: pointer;
    }

    .job-card-mobile:hover {
        background: #f8f9fa;
    }

    .job-card-mobile .job-title {
        transition: color 0.3s ease;
    }

    .job-card-mobile:hover .job-title {
        color: #4A90E2;
    }

    .job-card-mobile .job-toggle {
        display: none; /* 移动端不显示下拉框 */
    }

    .job-card-mobile .job-description {
        display: none; /* 移动端不显示描述内容 */
    }

    .job-title {
        font-size: 18px;
    }

    .job-card-title-section {
        gap: 8px;
    }

    .job-meta {
        font-size: 12px;
        gap: 6px;
        margin-top: -10px;
    }

    .job-summary {
        display: none; /* 移动端不显示summary */
    }

    .job-description p {
        font-size: 14px;
    }

    .job-detail-apply {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .job-apply-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        width: 100%;
    }

    .job-apply-text {
        white-space: normal;
    }

    .job-copy-email-btn {
        width: 100%;
        text-align: center;
    }
}

