/* ============================================
   人才招聘页样式 recruit.css
   风格对齐 about.css / enterprise.css：
   深色系 #0f172a/#1e3a5f、主色 #2563eb、浅底 #f8fafc
   注：.page-banner / .section-title / .subtitle 已由 header.css 全局定义，此处不重复
   ============================================ */

/* ===== 职位列表区 ===== */
.recruit-section {
    padding: 100px 0;
    background: #fff;
}

.recruit-tip {
    max-width: 900px;
    margin: -30px auto 40px;
    padding: 18px 28px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    color: #2563eb;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}

.recruit-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== 职位卡片（details 展开式，零 JS） ===== */
.recruit-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.recruit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}

.recruit-card[open] {
    border-color: rgba(37, 99, 235, 0.25);
}

/* 卡片头（summary） */
.recruit-card summary {
    list-style: none;
    cursor: pointer;
    padding: 26px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    user-select: none;
}

.recruit-card summary::-webkit-details-marker {
    display: none;
}

.rc-head {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.rc-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.rc-title h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.rc-dept {
    padding: 3px 12px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
}

.rc-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.rc-meta-item {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

/* 薪资标签（渐变药丸） */
.rc-salary {
    padding: 8px 18px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* 展开箭头 */
.rc-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.3s, background 0.3s;
}

.recruit-card[open] .rc-arrow {
    transform: rotate(45deg);
    background: #2563eb;
    color: #fff;
}

/* 展开详情区 */
.rc-body {
    padding: 6px 30px 32px;
    border-top: 1px dashed #eef2f7;
}

.rc-block {
    margin-top: 24px;
}

.rc-block h4 {
    position: relative;
    padding-left: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.rc-block h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 16px;
    background: #2563eb;
    border-radius: 2px;
}

.rc-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rc-block ul li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    color: #666;
    line-height: 1.9;
}

.rc-block ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
}

/* 福利标签 chips */
.rc-welfare {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rc-welfare span {
    padding: 5px 16px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 13px;
    border-radius: 50px;
}

/* 联系方式（手机 / 微信） */
.rc-contact {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.rc-contact-item {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
}

.rci-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
}

.rci-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 2px;
}

.rci-phone a {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 1px;
}

.rci-phone a:hover {
    color: #1d4ed8;
}

.rci-qr img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    padding: 6px;
}

.rci-tip {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .recruit-section {
        padding: 70px 0;
    }

    .recruit-card summary {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .rc-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .rc-salary {
        align-self: flex-start;
    }

    .rc-arrow {
        position: absolute;
        right: 18px;
        top: 20px;
    }

    .recruit-card summary {
        position: relative;
    }

    .rc-body {
        padding: 6px 20px 24px;
    }

    .rc-meta {
        gap: 10px 18px;
    }

    .recruit-tip {
        margin: 0 0 30px;
        padding: 14px 18px;
        font-size: 13px;
    }
}
