/* =========================================
   聚创 · 工作机会列表页专属样式
   【修改记录】2026-08-17 v2.0
     - 整体重写，对齐项目列表页设计语言
     - Hero 英雄区 + 分类筛选 + 横向卡片 + 分页
     - 卡片 200x200 正方形封面 + 左侧状态色条 + 引用块描述
   ========================================= */

.works-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(166, 205, 173, .16), transparent 28%),
        radial-gradient(circle at 92% 22%, rgba(183, 213, 178, .12), transparent 26%),
        var(--bg);
}

.works-page .wrap {
    width: min(1180px, calc(100% - 56px));
    max-width: none;
}

/* ---------- Hero ---------- */
.works-hero {
    width: min(1180px, calc(100% - 56px));
    margin: 18px auto 0;
    padding: 46px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(158, 214, 174, .24), transparent 26%),
        radial-gradient(circle at 80% 88%, rgba(255, 255, 255, .08), transparent 22%),
        linear-gradient(135deg, #0e3b5c 0%, #1d6a8a 58%, #2a96b4 100%);
    box-shadow: 0 20px 48px rgba(14, 59, 92, .18);
    color: #fff;
}

.works-hero-left { flex: 1 1 auto; min-width: 0; }

.works-hero .eyebrow {
    display: inline-block;
    color: #bfe2c6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .24em;
}

.works-hero h1 {
    margin: 12px 0 14px;
    color: #fff;
    font: 44px/1.2 Georgia, "STSong", serif;
    letter-spacing: -.03em;
}

.works-hero p {
    max-width: 560px;
    margin: 0;
    color: #d4e8ee;
    font-size: 15px;
    line-height: 1.85;
}

.works-search {
    margin-top: 24px;
    display: flex;
    gap: 10px;
}

.works-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(6px);
    transition: background .18s ease, border-color .18s ease;
}

.works-search input::placeholder { color: rgba(255, 255, 255, .58); }

.works-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .55);
}

.works-search button {
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #0e3b5c;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.works-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

/* 2026-08-20 修改：统计方格调小（padding/字号/宽度/间距） */
/* 2026-08-20 二次修改：3个方格改为横向并列（原1列堆叠 → 1行3列） */
/* 2026-08-20 三次修改：从hero移到筛选条上方，样式改为白底卡片，加间距 */
/* 2026-08-24 修复：文字看不清→加文字颜色深度+对比度，标签改深色加粗，背景加浅绿 */
.works-hero-stats {
    margin-top: 24px;          /* 与上方hero区拉开间距 */
    margin-bottom: 16px;        /* 与下方筛选条拉开间距 */
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 3列横向并列 */
    gap: 8px;
}

.wh-stat {
    padding: 14px 12px;          /* 原10px→14px，略微增高以便视觉清晰 */
    border: 1px solid #b6dcc1;   /* 原#e6efe7→#b6dcc1，深绿色实线边框 */
    border-radius: 14px;
    background: #f4faf5;         /* 原#fff→#f4faf5，浅绿背景提升对比度 */
    text-align: center;
    box-shadow: 0 2px 10px rgba(31, 71, 43, .10);
}

.wh-stat b {
    display: block;
    color: #0d5a37;            /* 原#17372a→#0d5a37，更纯的深绿色数字 */
    font-size: 22px;           /* 原20px→22px，字号略大 */
    font-weight: 900;          /* 原800→900，更粗 */
    letter-spacing: -.02em;
}

.wh-stat span {
    display: block;
    margin-top: 4px;            /* 原2px→4px，数字与标签间距略加大 */
    color: #1d3024;            /* 原#6c757d→#1d3024，深灰黑标签（解决看不清） */
    font-size: 13px;            /* 原11px→13px，标签字号加大 */
    font-weight: 700;           /* 原600→700，标签加粗 */
}

/* ---------- 筛选条 ---------- */
.works-filter {
    /* 2026-08-20 调整：去掉margin-top，由上方.works-hero-stats的margin-bottom控制间距 */
    padding: 18px 22px;
    border-radius: 17px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(31, 71, 43, .05);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wf-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wf-label {
    color: #728778;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wf-chip {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #dbe7dc;
    background: #f4f8f4;
    color: #48644f;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
}

.wf-chip:hover {
    background: #eaf4eb;
    color: #1a6a3f;
    border-color: #b6d3bb;
}

.wf-chip-active {
    background: #0e3b5c;
    color: #fff;
    border-color: #0e3b5c;
    box-shadow: 0 4px 10px rgba(14, 59, 92, .22);
}

/* ---------- 卡片 ---------- */
.works-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.work-card {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(31, 71, 43, .06);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.work-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #0e3b5c, #2a96b4);
    z-index: 3;
}

.work-card:hover {
    transform: translateY(-3px);
    border-color: #b6d3bb;
    box-shadow: 0 14px 32px rgba(31, 71, 43, .12);
}

.work-card-image {
    flex-shrink: 0;
    width: 200px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #dcefd2, #b8dfae);
    position: relative;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.work-card:hover .work-card-image img {
    transform: scale(1.06);
}

.work-card-image::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 70px;
    background: linear-gradient(to top, rgba(0,0,0,.4), transparent);
    pointer-events: none;
}

.work-card-body {
    flex: 1;
    min-width: 0;
    padding: 18px 22px 16px;
    display: flex;
    flex-direction: column;
}

.work-card-badge-stack {
    position: absolute;
    top: 16px;
    left: 18px;
    display: flex;
    gap: 7px;
    z-index: 2;
}

.work-category {
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .25);
}

.work-card-title {
    position: relative;
    margin: 0;
    padding-left: 14px;
    color: #17372a;
    font: 26px/1.26 Georgia, "STSong", serif;
    letter-spacing: -.015em;
}

.work-card-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #0e3b5c, #2a96b4);
}

.work-card-summary {
    position: relative;
    margin: 10px 0 0;
    padding: 10px 14px 10px 22px;
    background: #f0f7f1;
    border-left: 2px solid #b6d3bb;
    border-radius: 0 10px 10px 0;
    color: #4a6453;
    font-size: 13px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-card-summary::before {
    content: '\201C';
    position: absolute;
    left: 6px;
    top: -4px;
    font-size: 30px;
    color: #c3dcc7;
    line-height: 1;
    font-family: Georgia, "STSong", serif;
}

.work-card-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 16px;
}

.wcm-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #597061;
    font-size: 12.5px;
    font-weight: 600;
}

.wcm-item svg { color: #7da387; }

.work-card-foot {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.code { color: #8a9a8d; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; }

.work-card-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0e3b5c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: gap .15s ease, color .15s ease;
}

.work-card-action:hover {
    gap: 7px;
    color: #0a2a41;
}

/* ---------- 分页 ---------- */
.works-pager {
    margin-top: 28px;
    text-align: center;
}

.works-pager .pagination {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(31, 71, 43, .05);
}

.works-pager .pagination a,
.works-pager .pagination span {
    padding: 7px 14px;
    border-radius: 8px;
    color: #48644f;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
}

.works-pager .pagination a:hover {
    background: #eaf4eb;
    color: #0e3b5c;
}

.works-pager .pagination .current {
    background: #0e3b5c;
    color: #fff;
}

/* ---------- 空状态 ---------- */
.works-empty {
    padding: 60px 30px;
    border: 1px dashed #cbdcca;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    margin-top: 20px;
}

.works-empty-icon {
    font-size: 46px;
    margin-bottom: 10px;
}

.works-empty h3 {
    margin: 10px 0 6px;
    color: #17372a;
    font: 20px/1.4 Georgia, "STSong", serif;
}

.works-empty p { color: #68796d; margin: 0 0 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
    .works-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 38px 32px;
        gap: 28px;
    }
    .works-hero h1 { font-size: 34px; }
    /* 2026-08-20 调整：统计方格移出hero后，980px以下保持3列（宽度足够） */
    .works-hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .works-grid { grid-template-columns: 1fr; }
    .work-card { flex-direction: column; }
    .work-card-image { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
    .work-card-body { padding: 14px 18px 12px; }
}

@media (max-width: 680px) {
    .works-page .wrap { width: calc(100% - 28px); }
    .works-hero { width: calc(100% - 28px); margin-top: 10px; padding: 30px 22px; border-radius: 20px; }
    .works-hero h1 { font-size: 28px; }
    .works-hero p { font-size: 13.5px; }
    .works-hero-stats { grid-template-columns: repeat(3, 1fr); }
    .works-filter { padding: 14px 16px; gap: 10px 14px; }
    .wf-chip { padding: 5px 11px; font-size: 12px; }
    .work-card-title { font-size: 18px; }
}
