﻿/**
 * 招聘列表样式文件
 * 功能：可展开/关闭的招聘列表
 * 包含：职务、经验、学历、薪资信息展示
 */

/* 扩展父容器宽度 */
@media screen and (min-width: 769px) {
    #c_grid-1688528771113>.p_gridbox>.p_gridCell:nth-child(1) {
        width: 100%;
    }
}

/* 扩展外层容器宽度 */
#c_grid-1688528391769 .p_gridCell,
#c_grid-1688528771113 .p_gridCell {
    max-width: 100% !important;
    width: 100% !important;
}

/* ==================== 招聘列表容器 ==================== */
.job-list-container {
    width: 100%;
    /* max-width: 1400px; */
    margin: 0 auto;
    /* padding: 40px 60px; */
}

/* ==================== 招聘列表项 ==================== */
.job-list-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.job-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.job-list-item.active {
    border-color: #2273dd;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
}

/* ==================== 招聘列表头部（可点击区域） ==================== */
.job-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.3s ease;
}

.job-item-header:hover {
    background: #f0f0f0;
}

.job-list-item.active .job-item-header {
    background: #e6f7ff;
}

/* ==================== 招聘信息网格布局 ==================== */
.job-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 20px;
    align-items: center;
    flex: 1;
}

/* ==================== 单个信息项 ==================== */
.job-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-info-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 职务标题特殊样式 */
.job-info-item.job-title .job-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

/* 薪资特殊样式 */
.job-info-item.job-salary .job-info-value {
    color: #f5222d;
    font-weight: 600;
}

/* ==================== 展开/关闭图标 ==================== */
.job-toggle-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    transition: transform 0.3s ease;
}

.job-toggle-icon::before {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.job-list-item.active .job-toggle-icon {
    transform: rotate(180deg);
}

.job-list-item.active .job-toggle-icon::before {
    border-color: #2273dd;
}

/* ==================== 招聘详情内容区域 ==================== */
.job-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #ffffff;
}

.job-list-item.active .job-item-content {
    max-height: 1000px;
    padding: 24px;
    border-top: 1px solid #e8e8e8;
}

/* ==================== 详情内容样式 ==================== */
.job-detail-section {
    margin-bottom: 20px;
}

.job-detail-section:last-child {
    margin-bottom: 0;
}

.job-detail-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid #2273dd;
}

.job-detail-content {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    padding-left: 15px;
}

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

.job-detail-content ul {
    list-style: disc;
    padding-left: 20px;
}

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

/* ==================== 申请按钮 ==================== */
.job-apply-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed #e8e8e8;
    text-align: right;
}

.job-apply-btn {
    display: inline-block;
    padding: 10px 32px;
    background: #2273dd;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.job-apply-btn:hover {
    background: #40a9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

/* ==================== 响应式设计 ==================== */
@media screen and (max-width: 768px) {
    .job-list-container {
        padding: 20px 15px;
    }

    .job-item-header {
        padding: 16px;
    }

    .job-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .job-info-item.job-title {
        grid-column: 1 / -1;
    }

    .job-info-item.job-salary {
        grid-column: 1 / -1;
    }

    .job-toggle-icon {
        margin-left: 8px;
    }

    .job-list-item.active .job-item-content {
        padding: 16px;
    }
}

@media screen and (max-width: 480px) {
    .job-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .job-info-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .job-info-label {
        min-width: 60px;
    }

    .job-apply-section {
        text-align: center;
    }

    .job-apply-btn {
        width: 100%;
    }
}
