/* ============================================================
   招聘求职中心 —— 设计系统（企业与人才中心 / ?ls_route=jobs）
   文件：assets/css/jobs.css
   说明：桌面双列卡片 + 吸顶侧边栏；移动端 APP 化单列。
        全部使用 lsj- 前缀自定义类，不依赖 Tailwind 任意值，FTP 上传即生效。
        风格：简约 · 自然 · 紧凑，统一单一品牌强调色，去 emoji / 去饱和渐变。
   ============================================================ */

:root {
    --lsj-primary: var(--color-primary, #2f6fed);
    --lsj-primary-dark: #1f57c8;
    --lsj-primary-soft: rgba(47, 111, 237, .08);
    --lsj-primary-line: rgba(47, 111, 237, .20);
    --lsj-bg: #f5f6f8;
    --lsj-card: #ffffff;
    --lsj-text: #1f2329;
    --lsj-sub: #5b6470;
    --lsj-mute: #98a1ad;
    --lsj-border: #ebedf0;
    --lsj-border-strong: #e0e3e8;
    --lsj-tag-bg: #f3f4f6;
    --lsj-tag-text: #5b6470;
    --lsj-radius: 14px;
    --lsj-radius-sm: 10px;
    --lsj-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 6px 18px rgba(17, 24, 39, .04);
    --lsj-shadow-hover: 0 4px 14px rgba(31, 87, 200, .10), 0 14px 34px rgba(17, 24, 39, .07);
}

/* ---------- 容器 ---------- */
.lsj-app {
    background: var(--lsj-bg);
    min-height: 60vh;
    padding: 24px 0 56px;
}
.lsj-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (max-width: 640px) {
    .lsj-app { padding: 16px 0 40px; }
    .lsj-wrap { padding: 0 14px; }
}

/* ---------- 顶部 Hero（轻量、自然，无饱和渐变） ---------- */
.lsj-head {
    background: linear-gradient(135deg, var(--lsj-primary-soft), rgba(47, 111, 237, .02));
    border: 1px solid var(--lsj-border);
    border-radius: var(--lsj-radius);
    padding: 22px 24px 24px;
}
.lsj-head-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.lsj-head h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--lsj-text);
    margin: 0 0 4px;
    letter-spacing: .3px;
}
.lsj-head p {
    font-size: 13px;
    color: var(--lsj-sub);
    margin: 0;
}
.lsj-stats {
    display: flex;
    gap: 26px;
    flex-shrink: 0;
}
.lsj-stat b {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--lsj-primary);
    line-height: 1.15;
}
.lsj-stat span {
    font-size: 12px;
    color: var(--lsj-mute);
}

/* ---------- 搜索栏 ---------- */
.lsj-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--lsj-border-strong);
    border-radius: 999px;
    padding: 6px 6px 6px 16px;
    margin-top: 18px;
    box-shadow: var(--lsj-shadow);
    transition: border-color .18s, box-shadow .18s;
}
.lsj-search:focus-within {
    border-color: var(--lsj-primary);
    box-shadow: 0 0 0 3px var(--lsj-primary-soft);
}
.lsj-search-ico {
    font-size: 15px;
    opacity: .55;
    flex-shrink: 0;
}
.lsj-search input[type="text"] {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: var(--lsj-text);
    padding: 8px 0;
}
.lsj-search input::placeholder { color: var(--lsj-mute); }
.lsj-search button {
    flex-shrink: 0;
    border: 0;
    cursor: pointer;
    background: var(--lsj-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 999px;
    transition: background .18s;
}
.lsj-search button:hover { background: var(--lsj-primary-dark); }

/* ---------- 类型 Tab ---------- */
.lsj-tabs {
    display: flex;
    gap: 4px;
    margin: 18px 0 12px;
    border-bottom: 1px solid var(--lsj-border);
    overflow-x: auto;
    scrollbar-width: none;
}
.lsj-tabs::-webkit-scrollbar { display: none; }
.lsj-tab {
    position: relative;
    flex-shrink: 0;
    padding: 11px 14px 13px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lsj-sub);
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s;
}
.lsj-tab:hover { color: var(--lsj-text); }
.lsj-tab::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: transparent;
    transition: background .15s;
}
.lsj-tab.is-active {
    color: var(--lsj-primary);
}
.lsj-tab.is-active::after { background: var(--lsj-primary); }

/* ---------- 子筛选 chips ---------- */
.lsj-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.lsj-filters::-webkit-scrollbar { display: none; }
.lsj-chip {
    flex-shrink: 0;
    padding: 6px 13px;
    font-size: 13px;
    color: var(--lsj-sub);
    background: #fff;
    border: 1px solid var(--lsj-border);
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s;
}
.lsj-chip:hover {
    color: var(--lsj-text);
    border-color: var(--lsj-border-strong);
}
.lsj-chip.is-active {
    color: #fff;
    background: var(--lsj-primary);
    border-color: var(--lsj-primary);
}

/* ---------- 主体布局 ---------- */
.lsj-body {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}
.lsj-main { flex: 1 1 auto; min-width: 0; }
.lsj-side { width: 296px; flex: 0 0 296px; }

.lsj-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.lsj-count {
    font-size: 13px;
    color: var(--lsj-sub);
}
.lsj-count b { color: var(--lsj-text); font-weight: 700; }

/* ---------- 卡片列表（紧凑、双列） ---------- */
.lsj-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 1180px) {
    .lsj-list { grid-template-columns: 1fr 1fr; gap: 14px; }
}

.lsj-card {
    display: block;
    background: var(--lsj-card);
    border: 1px solid var(--lsj-border);
    border-radius: var(--lsj-radius-sm);
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: border-color .16s, box-shadow .16s, transform .16s;
}
.lsj-card:hover {
    border-color: var(--lsj-primary-line);
    box-shadow: var(--lsj-shadow-hover);
    transform: translateY(-1px);
}

/* 职位卡片 */
.lsj-job { display: flex; gap: 14px; }
.lsj-logo {
    width: 44px; height: 44px;
    border-radius: 11px;
    background: var(--lsj-tag-bg);
    color: var(--lsj-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
    flex-shrink: 0; overflow: hidden;
}
.lsj-logo img { width: 100%; height: 100%; object-fit: cover; }
.lsj-job-main { flex: 1; min-width: 0; }
.lsj-job-top {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.lsj-job-title {
    font-size: 15px; font-weight: 600; color: var(--lsj-text);
    margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lsj-job:hover .lsj-job-title { color: var(--lsj-primary); }
.lsj-job-pay { text-align: right; flex-shrink: 0; }
.lsj-job-salary {
    display: block; font-size: 15px; font-weight: 700; color: var(--lsj-primary);
    line-height: 1.2;
}
.lsj-job-date { display: block; font-size: 11px; color: var(--lsj-mute); margin-top: 2px; }
.lsj-job-meta {
    font-size: 12.5px; color: var(--lsj-sub); margin-top: 5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lsj-job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }

/* 任务卡片 */
.lsj-task .lsj-job-salary { color: #e8730c; }

/* 标签 */
.lsj-tag {
    font-size: 11.5px;
    color: var(--lsj-tag-text);
    background: var(--lsj-tag-bg);
    border-radius: 6px;
    padding: 3px 8px;
    white-space: nowrap;
}
.lsj-tag--primary { color: var(--lsj-primary); background: var(--lsj-primary-soft); }
.lsj-tag--green { color: #0f9d58; background: rgba(15, 157, 88, .10); }
.lsj-tag--blue { color: #2563eb; background: rgba(37, 99, 235, .10); }
.lsj-tag--purple { color: #7c3aed; background: rgba(124, 58, 237, .10); }
.lsj-tag--orange { color: #e8730c; background: rgba(232, 115, 12, .10); }

/* 企业卡片 */
.lsj-company { display: flex; gap: 13px; align-items: flex-start; }
.lsj-company .lsj-logo { width: 46px; height: 46px; border-radius: 12px; }
.lsj-company-name { font-size: 15px; font-weight: 600; color: var(--lsj-text); margin: 0; }
.lsj-company:hover .lsj-company-name { color: var(--lsj-primary); }
.lsj-company-meta { font-size: 12.5px; color: var(--lsj-sub); margin-top: 4px; }
.lsj-verified {
    display: inline-block; font-size: 11px; color: var(--lsj-primary);
    background: var(--lsj-primary-soft); border-radius: 6px; padding: 1px 7px; margin-left: 6px;
    vertical-align: middle;
}
.lsj-company-site { font-size: 12px; color: var(--lsj-primary); text-decoration: none; white-space: nowrap; flex-shrink: 0; }

/* 简历卡片 */
.lsj-resume { display: flex; gap: 13px; align-items: flex-start; }
.lsj-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--lsj-primary-soft); color: var(--lsj-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.lsj-resume-name { font-size: 15px; font-weight: 600; color: var(--lsj-text); margin: 0; }
.lsj-resume:hover .lsj-resume-name { color: var(--lsj-primary); }
.lsj-resume-meta { font-size: 12.5px; color: var(--lsj-sub); margin-top: 4px; }
.lsj-resume-pay { font-size: 14px; font-weight: 700; color: #7c3aed; text-align: right; flex-shrink: 0; }

/* ---------- 侧边栏 ---------- */
.lsj-panel {
    background: var(--lsj-card);
    border: 1px solid var(--lsj-border);
    border-radius: var(--lsj-radius-sm);
    padding: 16px 18px;
    margin-bottom: 16px;
}
.lsj-panel-title {
    font-size: 14px; font-weight: 700; color: var(--lsj-text);
    margin: 0 0 12px; display: flex; align-items: center; gap: 7px;
}
.lsj-panel-title::before {
    content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--lsj-primary);
}
.lsj-side-sticky { position: sticky; top: 90px; }

/* 快捷入口 */
.lsj-quick {
    display: flex; flex-direction: column; gap: 2px;
}
.lsj-quick-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 10px; border-radius: 8px; text-decoration: none;
    color: var(--lsj-sub); font-size: 13.5px; transition: background .15s, color .15s;
}
.lsj-quick-item:hover { background: var(--lsj-bg); color: var(--lsj-text); }
.lsj-quick-item b { color: var(--lsj-mute); font-weight: 600; font-size: 13px; }

/* 合作企业 */
.lsj-co-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 8px; border-radius: 8px; text-decoration: none;
    transition: background .15s;
}
.lsj-co-item:hover { background: var(--lsj-bg); }
.lsj-co-logo {
    width: 34px; height: 34px; border-radius: 9px; background: var(--lsj-tag-bg);
    color: var(--lsj-primary); display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.lsj-co-logo img { width: 100%; height: 100%; object-fit: cover; }
.lsj-co-name {
    flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--lsj-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lsj-co-ind { font-size: 12px; color: var(--lsj-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 发布 CTA */
.lsj-cta {
    background: linear-gradient(135deg, var(--lsj-primary), var(--lsj-primary-dark));
    border-radius: var(--lsj-radius-sm);
    padding: 16px 18px; color: #fff;
}
.lsj-cta h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.lsj-cta p { margin: 0 0 12px; font-size: 12px; opacity: .88; line-height: 1.5; }
.lsj-cta a {
    display: inline-block; background: #fff; color: var(--lsj-primary);
    font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px; text-decoration: none;
}

/* ---------- 分页 ---------- */
.lsj-pager {
    display: flex; justify-content: center; gap: 6px; margin-top: 22px; flex-wrap: wrap;
}
.lsj-page {
    min-width: 34px; height: 34px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--lsj-border); border-radius: 9px;
    font-size: 13px; color: var(--lsj-sub); text-decoration: none;
    transition: all .15s;
}
.lsj-page:hover { border-color: var(--lsj-primary-line); color: var(--lsj-primary); }
.lsj-page.is-active { background: var(--lsj-primary); border-color: var(--lsj-primary); color: #fff; }

/* ---------- 空状态 ---------- */
.lsj-empty {
    text-align: center; padding: 48px 20px; color: var(--lsj-mute);
    background: var(--lsj-card); border: 1px dashed var(--lsj-border-strong); border-radius: var(--lsj-radius-sm);
}
.lsj-empty b { display: block; font-size: 15px; color: var(--lsj-sub); font-weight: 600; margin-bottom: 4px; }

/* ---------- 移动端：APP 化单列 ---------- */
@media (max-width: 1023px) {
    .lsj-body { flex-direction: column; gap: 18px; }
    .lsj-side { width: 100%; flex: 1 1 auto; }
    .lsj-side-sticky { position: static; }
    /* 移动端优先展示列表，侧边栏自然置于下方 */
    .lsj-main { order: 1; }
    .lsj-side { order: 2; }
}
@media (max-width: 640px) {
    .lsj-head { padding: 18px 16px 20px; }
    .lsj-head-top { align-items: flex-start; }
    .lsj-head h1 { font-size: 19px; }
    .lsj-stats { gap: 18px; margin-top: 14px; }
    .lsj-stat b { font-size: 18px; }
    .lsj-search { margin-top: 14px; padding-left: 14px; }
    .lsj-search button { padding: 8px 16px; }
    .lsj-card { padding: 14px; }
    .lsj-logo, .lsj-resume .lsj-avatar { width: 40px; height: 40px; }
    .lsj-job-title, .lsj-company-name, .lsj-resume-name { font-size: 14px; }
    /* 移动端卡片单列更紧凑 */
    .lsj-job-tags { margin-top: 8px; }
}
