/* 招聘归档页面样式 */
.recruitment-archive-container {
    background-color: #f5f5f5;
    min-height: 100vh;
    padding: 40px 0;
}

.recruitment-archive-layout {
    gap: 24px;
    align-items: flex-start;
}

/* 左侧筛选区域 */
.recruitment-filters {
    width: max(17vw, 280px);
    background: #ffffff;
    border-radius: 8px;
    padding: max(1.6vw, 24px) max(2vw, 24px);
    position: sticky;
    top: 70px;
}

.filter-section {
    margin-bottom: max(2vw, 30px);
}

.filter-section:last-of-type {
    margin-bottom: 24px;
}

.filter-title {
    font-size: var(--widget-title-p-3-fs);
    font-weight: 600;
    color: #000;
    margin-bottom: 24px;
    padding-bottom: 23px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.filter-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 3px;
    background-color: var(--theme-color);
    width: 80px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.filter-option:hover {
    background-color: #f8f9fa;
}

.filter-checkbox {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-checkbox:checked + .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.filter-checkbox:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-text {
    font-size: var(--widget-title-p-4-fs);
    color: #000;
    user-select: none;
    display: flex;
    align-items: center;
    width: 100%;
    line-height: 1;
}

.option-count {
    color: #999;
    font-weight: 500;
    margin-left: 8px;
}


/* 右侧招聘列表区域 */
.recruitment-listings {
    flex: 1;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}


.listings-content {
    display: flex;
    flex-direction: column;
}

/* 招聘岗位卡片 */
.recruitment-card {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: max(1.2vw, 20px);
    transition: all 0.2s ease;
}

.recruitment-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: max(2vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.card-left {
    flex: 1;
    min-width: 0;
}

.card-right {
    flex-shrink: 0;
}

.job-title {
    font-size: var(--widget-title-p-2-fs);
    font-weight: 600;
    color: #000;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.post-date {
    color: #999;
    font-size: var(--widget-title-p-3-fs);
    margin: 0;
}

.learn-more-btn {
    background: transparent;
    color: #1c1c1c;
    border: 1px solid #eeeeee;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: var(--widget-title-p-3-fs);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.learn-more-btn:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}





/* 骨架屏动画 */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: skeleton-loading 4s infinite;
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-button {
    height: 32px;
    width: 80px;
    border-radius: 4px;
}

.skeleton-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.skeleton-card-left {
    flex: 1;
    min-width: 0;
}

.skeleton-card-right {
    flex-shrink: 0;
}

/* 弹窗骨架屏 */
.skeleton-modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.skeleton-modal-header {
    padding: 24px 24px 16px 24px;
    flex-shrink: 0;
}

.skeleton-modal-title {
    height: 28px;
    width: 200px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-modal-meta {
    height: 16px;
    width: 150px;
    border-radius: 4px;
}

.skeleton-modal-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 0 24px;
}

.skeleton-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    max-height: 450px;
}

.skeleton-section {
    margin-bottom: 24px;
}

.skeleton-section-title {
    height: 20px;
    width: 100px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-section-content {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-section-content:last-child {
    margin-bottom: 0;
}

/* 分页样式 */
.recruitment-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.recruitment-pagination .page-numbers {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.recruitment-pagination .page-numbers li {
    margin: 0;
}

.recruitment-pagination .page-numbers a,
.recruitment-pagination .page-numbers span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.recruitment-pagination .page-numbers a:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.recruitment-pagination .page-numbers .current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* 无结果提示 */
.no-recruitment-found {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-recruitment-found p {
    font-size: 16px;
    margin: 0;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* 移动端筛选按钮 */
.mobile-filter-toggle {
    display: none;
    margin-bottom: 20px;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--theme-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.filter-toggle-btn:hover {
    background-color: var(--theme-color-dark);
}

.filter-icon {
    font-size: 18px;
}

.reset-filters-btn-mobile {
    padding: 12px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filters-btn-mobile:hover {
    background-color: #545b62;
}

/* 移动端侧边栏遮罩 */
.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-filter-overlay.active {
    opacity: 1;
}

/* 移动端侧边栏 */
.mobile-filter-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background-color: white;
    z-index: 999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-filter-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.sidebar-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 防止侧边栏打开时body滚动 */
body.mobile-filter-open {
    overflow: hidden;
}

/* 分页样式 */
.recruitment-pagination {
    margin-top: 30px;
    text-align: center;
}

.recruitment-pagination .pagination {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.recruitment-pagination .pagination li {
    margin: 0;
}

.recruitment-pagination .pagination a,
.recruitment-pagination .pagination span {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.recruitment-pagination .pagination a:hover {
    background-color: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
}

.recruitment-pagination .pagination .active a {
    background-color: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
}

.recruitment-pagination .pagination span {
    color: #999;
    border-color: #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: flex;
    }
    
    .recruitment-filters {
        display: none;
    }
    
    .recruitment-archive-layout {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .recruitment-filters {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
    
    .card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .card-right {
        width: 100%;
    }
    
    .learn-more-btn {
        width: 100%;
        text-align: center;
    }
    .listings-content {
        gap: 0;
    }
    
    /* 侧边栏内的筛选样式 */
    .sidebar-content .filter-section {
        margin-bottom: 25px;
    }
    
    .sidebar-content .filter-title {
        font-size: 16px;
        margin-bottom: 15px;
        color: #333;
        font-weight: 600;
    }
    
    .sidebar-content .option-text {
        font-size: 14px;
    }
    
    /* 侧边栏滚动条样式 */
    .sidebar-content::-webkit-scrollbar {
        width: 4px;
    }
    
    .sidebar-content::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .sidebar-content::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 2px;
    }
    
    .sidebar-content::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
}

@media (max-width: 480px) {
    .recruitment-archive-container {
        padding: 20px 0;
    }
    
    .recruitment-card {
        padding: 16px;
    }
    
    .job-title {
        font-size: 18px;
    }
    
    .filter-actions {
        flex-direction: row;
    }
    
    .filter-apply,
    .filter-reset {
        flex: 1;
    }
}

/* 岗位详情弹窗样式 */
.job-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.job-modal-content {
    background: white;
    max-width: 800px;
    width: 100%;
    max-height: 680px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.job-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: max(2vw, 24px) max(2vw, 24px) 24px;
    flex-shrink: 0;
}

.job-title-section {
    flex: 1;
}

.job-modal-header h2 {
    margin: 0 0 16px 0;
    font-size: var(--widget-title-p-1-fs);
    font-weight: 700;
    color: #000;
}

.job-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.job-modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.job-modal-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 0 24px;
}

.job-modal-body {
    padding: 25px max(2vw, 24px);
    flex: 1;
    overflow-y: auto;
    max-height: 450px;
}

.job-meta-info {
    font-size: var(--widget-title-p-4-fs);
    color: #999;
    line-height: 1;
}

.job-meta-info span {
    margin: 0 16px;
}

.job-meta-item {
    display: flex;
    align-items: center;
    font-size: var(--widget-title-p-4-fs);
    color: #999;
}

.job-meta-item .label {
    font-weight: 500;
    margin-right: 8px;
}

.job-meta-item .value {
    color: #333;
    font-weight: 500;
}

.job-description,
.job-responsibilities,
.job-qualifications {
    margin-bottom: 24px;
}

.job-description h3,
.job-responsibilities h3,
.job-qualifications h3 {
    font-size: var(--widget-title-p-3-fs);
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 12px;
}

.job-description div,
.job-responsibilities div,
.job-qualifications div {
    font-size: var(--widget-title-p-4-fs);
    line-height: 1.5;
    color: #1c1c1c;
    white-space: normal;
    word-wrap: break-word;
}
.job-description div li,
.job-responsibilities div li,
.job-qualifications div li {
    list-style: decimal !important;
}
.job-description div p,
.job-responsibilities div p,
.job-qualifications div p {
    margin: 0 0 8px 0;
}

.job-description div ul,
.job-responsibilities div ul,
.job-qualifications div ul {
    margin: 0 0 8px 0;
    padding-left: 20px;
}

.job-description div li,
.job-responsibilities div li,
.job-qualifications div li {
    margin-bottom: 4px;
}

.job-description div br,
.job-responsibilities div br,
.job-qualifications div br {
    line-height: 1.6;
    display: none;
}

.job-responsibilities ul,
.job-qualifications ul {
    margin: 0;
    padding-left: 20px;
}

.job-responsibilities li,
.job-qualifications li {
    margin-bottom: 8px;
    line-height: 1.6;
    white-space: pre-line;
}

.job-modal-footer {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    padding: 20px max(2vw, 24px) 40px max(2vw, 24px);
    flex-shrink: 0;
}

.job-apply-btn {
    font-size: var(--widget-title-p-3-fs);
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--theme-color);
    color: white;
    width: 120px;
    height: 48px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-apply-btn:hover {
    background-color: var(--theme-color-dark);
}

.job-modal-footer .job-modal-close {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    height: auto;
    margin-left: 0;
}

.job-modal-footer .job-modal-close:hover {
    color: var(--theme-color);
    border-color: var(--theme-color);
}

.job-modal-footer .btn-secondary {
    width: 120px;
    height: 48px;
    font-size: var(--widget-title-p-3-fs);
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid #eee;
    background-color: white;
    color: #1c1c1c;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.job-modal-footer .btn-secondary:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

/* 弹窗动画 */
.job-modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 弹窗打开时禁止body滚动 */
body.modal-open {
    overflow: hidden;
}

.job-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.job-modal-content {
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
}

.job-modal-overlay.show .job-modal-content {
    transform: scale(1) translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .job-modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .job-modal-header {
        padding: 16px;
    }
    
    .job-modal-header h2 {
        font-size: 20px;
    }
    
    .job-modal-body {
        padding: 16px;
    }
    
    .job-modal-footer {
        padding: 12px 16px 16px 16px;
        flex-direction: column;
    }
    
    .job-apply-btn,
    .job-modal-footer .btn-secondary {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .job-meta-info {
        flex-direction: column;
        gap: 8px;
    }
}

.email-label {
    font-size: var(--widget-title-p-3-fs);
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
    display: block;
}

.email-display {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: underline;
    color: var(--theme-color);
}

.email-display:hover {
    color: var(--theme-color-dark);
}

.email-address {
    font-size: 16px;
    font-weight: 500;
    color: var(--theme-color);
    word-break: break-all;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s ease;
    line-height: 1;
}

.email-display:hover .email-address {
    text-decoration-color: var(--theme-color);
}

.copy-icon {
    font-size: 16px;
}

.copy-text {
    font-size: 14px;
}

/* ElementUI风格的成功消息 */
.element-ui-message {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.element-ui-message--success {
    background: rgba(240, 249, 255, 0.95) !important;
    border-color: #67c23a !important;
    border-left: 4px solid #67c23a !important;
}

.element-ui-message--success:hover {
    box-shadow: 0 6px 24px rgba(103, 194, 58, 0.25) !important;
    transform: translate(-50%, -50%) scale(1.02) !important;
}

/* 骨架屏邮箱区域样式 */
.skeleton-email-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.skeleton-email-label {
    width: 80px;
    height: 16px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-email-display {
    width: 100%;
    height: 48px;
    background: #e9ecef;
    border-radius: 6px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .email-address {
        font-size: 16px; /* 防止iOS缩放 */
        word-break: break-all;
    }
}