/* 城市招考脉搏 视觉样式 | 2026-11-05 */

/* ---------- 城市脉搏专有蓝光头图细节 ---------- */
.pulse-subpage-hero {
    padding: 24px 0 54px;
}

.pulse-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.pulse-period-tabs {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, .15);
    padding: 3px;
    border-radius: 999px;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.pulse-period-tab {
    border: none;
    outline: none;
    background: transparent;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    transition: all .15s ease;
}

.pulse-period-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .18);
}

.pulse-period-tab.is-active {
    background: #ffffff;
    color: #1e40af;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pulse-hero-city-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    flex-wrap: wrap;
}

.pulse-hero-city-bar .city-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .78);
    flex-shrink: 0;
}

.pulse-cities {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- 页面主容器 (向上负边距浮动在蓝底头图上) ---------- */
.pulse-main {
    margin-top: -34px;
    position: relative;
    z-index: 10;
    padding: 0 0 56px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pulse-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.pulse-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1e40af;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}

.pulse-eyebrow-badge svg {
    color: #2563eb;
}

.pulse-hero h1 {
    margin: 10px 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -.4px;
}

.pulse-range {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
}

/* 周期切换分段器 (Segmented Switch) */
.pulse-period-tabs {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    gap: 2px;
}

.pulse-period-tab {
    border: none;
    outline: none;
    background: transparent;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: all .15s ease;
}

.pulse-period-tab:hover {
    color: #0f172a;
}

.pulse-period-tab.is-active {
    background: #ffffff;
    color: #1e40af;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* 考区快速切换条 */
.pulse-city-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.pulse-city-bar .city-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}

.pulse-cities {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pulse-cities .chip {
    font-size: 12px;
    font-weight: 500;
    padding: 3.5px 11px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    text-decoration: none;
    transition: all .15s ease;
}

.pulse-cities .chip:hover {
    background: #eef4ff;
    border-color: #bfdbfe;
    color: #1e54c7;
}

.pulse-cities .chip.is-active {
    background: #2b6ef1;
    border-color: #2b6ef1;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(43, 110, 241, 0.25);
}

/* 头部操作按钮组 */
.pulse-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.pulse-actions .btn {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 8px;
    line-height: 34px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all .2s ease;
}

.pulse-actions .btn-primary {
    background: linear-gradient(135deg, #2b6ef1 0%, #1e54c7 100%);
    box-shadow: 0 2px 8px rgba(43, 110, 241, 0.25);
    border: none;
    color: #ffffff;
}

.pulse-actions .btn-primary:hover {
    background: linear-gradient(135deg, #3b7af5 0%, #235cd6 100%);
    box-shadow: 0 4px 12px rgba(43, 110, 241, 0.35);
}

.pulse-actions .btn-secondary {
    background: #ffffff;
    border: 1px solid #c9d9fb;
    color: var(--c-primary-dark);
}

.pulse-actions .btn-secondary:hover {
    background: #f0f6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

/* ---------- 五维核心走势指标 KPI Cards ---------- */
.pulse-kpi {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.pulse-kpi-btn,
.pulse-kpi-static {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1.5px solid #e2e8f0;
}

.pulse-kpi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.pulse-kpi-btn.is-active {
    border-color: #2b6ef1;
    box-shadow: 0 0 0 2px rgba(43, 110, 241, 0.2), 0 6px 18px rgba(43, 110, 241, 0.12);
    background: #f8fbff;
}

.pulse-kpi-btn strong,
.pulse-kpi-static strong {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.5px;
    font-feature-settings: "tnum";
    color: #0f172a;
}

.pulse-kpi-btn strong small,
.pulse-kpi-static strong small {
    font-size: 12px;
    font-weight: 500;
    margin-left: 2px;
    color: #64748b;
}

.pulse-kpi-btn span,
.pulse-kpi-static span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.pulse-kpi-btn em {
    display: inline-block;
    margin-top: 6px;
    font-style: normal;
    font-size: 11px;
    color: #2b6ef1;
    background: #eef4ff;
    padding: 1px 7px;
    border-radius: 4px;
    font-weight: 600;
}

/* 各 KPI 颜色定制 */
.pulse-kpi-btn[data-pulse-bucket="new"] strong {
    color: #1e40af;
}

.pulse-kpi-static strong {
    color: #6d28d9;
}

.pulse-kpi-btn[data-pulse-bucket="open"] strong {
    color: #047857;
}

.pulse-kpi-btn.is-urgent {
    background: linear-gradient(175deg, #fffbf9 0%, #ffffff 100%);
    border-color: #ffd4c9;
}

.pulse-kpi-btn.is-urgent strong {
    color: #dc2626;
}

.pulse-kpi-btn.is-urgent em {
    color: #b91c1c;
    background: #fee2e2;
}

.pulse-kpi-btn[data-pulse-bucket="upcoming"] strong {
    color: #4338ca;
}

/* ---------- 岗位下钻清单面板 Pulse Panel ---------- */
.pulse-panel {
    background: #ffffff;
    border: 1px solid #dbe3ed;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.pulse-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.pulse-panel-kicker {
    margin: 0 0 3px;
    font-size: 12px;
    color: #2563eb;
    font-weight: 600;
    letter-spacing: .4px;
}

.pulse-panel-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.pulse-panel-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pulse-job-list {
    display: grid;
    gap: 12px;
}

.pulse-job-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    background: #ffffff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    border-left: 3.5px solid #2563eb;
}

.pulse-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}

.pulse-job-card.is-open {
    border-left-color: #059669;
}

.pulse-job-card.is-urgent {
    border-left-color: #dc2626;
}

.pulse-job-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.pulse-job-top h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

.pulse-job-status {
    flex: none;
    padding: 2.5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
}

.pulse-job-status.is-open {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.pulse-job-status.is-upcoming {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.pulse-job-status.is-closed {
    background: #f3f4f6;
    color: #6b7280;
}

.pulse-job-dept {
    margin: 6px 0 0;
    color: #475569;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pulse-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 8px;
    font-size: 12.5px;
    color: #334155;
}

.pulse-job-meta .meta-tag {
    background: #f1f5f9;
    padding: 1.5px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.pulse-job-meta .meta-tag.is-headcount {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #f3e8ff;
}

.pulse-job-time {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    font-size: 12.5px;
    color: #64748b;
}

.pulse-job-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #f1f5f9;
}

.pulse-job-notice {
    color: var(--c-primary);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    max-width: min(100%, 540px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pulse-job-notice:hover {
    text-decoration: underline;
    color: var(--c-primary-dark);
}

.pulse-job-notice.is-muted {
    color: #94a3b8;
}

.pulse-empty,
.pulse-loading,
.pulse-panel-more {
    margin: 12px 0 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    text-align: center;
}

.pulse-panel-more a {
    color: #2563eb;
    font-weight: 600;
}

/* ---------- 编制结构与学历分布网格 Pulse Grid ---------- */
.pulse-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
}

.pulse-dist-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.pulse-dist-card h2 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pulse-dist-card h2 small {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.pulse-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.pulse-table th,
.pulse-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.pulse-table th {
    color: #64748b;
    font-weight: 600;
    font-size: 12.5px;
    background: #f8fafc;
}

.pulse-table tr.is-clickable {
    cursor: pointer;
    transition: background .15s ease;
}

.pulse-table tr.is-clickable:hover {
    background: #f0f7ff;
}

.pulse-table tr.is-clickable.is-active {
    background: #e6f0fe;
    font-weight: 600;
}

.pulse-table tr.is-clickable.is-active .pulse-td-action {
    color: #1e40af;
    font-weight: 700;
}

.pulse-td-action {
    color: #2563eb;
    font-size: 12.5px;
    white-space: nowrap;
    text-align: right;
}

/* 进度条样式 */
.pulse-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-bar-bg {
    flex: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    min-width: 50px;
}

.pulse-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 999px;
}

.pulse-bar-val {
    font-weight: 600;
    font-size: 13px;
    font-feature-settings: "tnum";
    color: #0f172a;
    min-width: 32px;
}

.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-cloud .chip.is-active,
.home-pulse-cities .chip.is-active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

button.chip {
    font: inherit;
    cursor: pointer;
    background: #fff;
}

/* 岗位信号标签通用组件 */
.signal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.signal-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    line-height: 1.5;
    background: #eef4ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

.signal-tag.is-ending_soon,
.signal-tag.is-ending-soon {
    background: #fff1f2;
    color: #b91c1c;
    border-color: #fecdd3;
}

.signal-tag.is-starting_soon,
.signal-tag.is-starting-soon {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.signal-legend {
    margin-top: 6px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    line-height: 1.65;
}

.signal-legend summary {
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
}

.signal-legend ul {
    margin: 8px 0 0;
    padding-left: 1.2em;
}

.signal-legend li {
    margin-top: 3px;
}

.pulse-note {
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: #94a3b8;
}

.pulse-loading-card {
    padding: 50px 24px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* ---------- 响应式断点适配 ---------- */
@media (max-width: 991px) {
    .pulse-kpi {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pulse-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .pulse-hero {
        padding: 18px 16px;
    }

    .pulse-hero h1 {
        font-size: 21px;
    }

    .pulse-kpi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pulse-job-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .pulse-job-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pulse-actions {
        flex-direction: column;
        width: 100%;
    }

    .pulse-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .pulse-subpage-hero {
        padding: 16px 0 40px;
    }

    .pulse-main {
        margin-top: -24px;
    }

    .pulse-actions .btn-hero-white,
    .pulse-actions .btn-hero-glass {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ==========================================================================
   首页：考生决策看板与全域脉搏（紧凑双核仪表盘）
   ========================================================================== */

.home-pulse {
    position: relative;
    z-index: 10;
    margin-top: -32px;
    margin-bottom: 6px;
}

.home-pulse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

/* 当专属卡片 hidden 隐藏时，城市脉搏自适应全宽 */
.home-pulse-grid:has(#home-foryou[hidden]) {
    grid-template-columns: 1fr;
}
#home-foryou[hidden] + #home-pulse-card {
    grid-column: 1 / -1;
}

/* 卡片基类：公考紧凑仪表盘 */
.home-pulse-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #dbe3ed;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
    padding: 18px 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.home-pulse-card:hover {
    box-shadow: 0 12px 32px rgba(20, 43, 92, 0.10);
    border-color: #cbd5e1;
}

/* 左侧：今日推荐专属匹配卡片（公考柔光微蓝，突出个人专属） */
.home-foryou-card {
    background: linear-gradient(175deg, #f4f8fe 0%, #ffffff 58%);
    border-color: #cee0f8;
}

.home-foryou-card:hover {
    border-color: #b3d1f8;
}

/* 头部排版 */
.home-pulse-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.home-card-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.home-pulse-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -.2px;
    white-space: nowrap; /* 强制单行不折行 */
    flex-shrink: 0;
}

.home-pulse-head p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

/* 标题精致 ICO 图标 */
.home-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.home-title-icon.is-pulse {
    background: #eef4ff;
    color: #2b6ef1;
    border: 1px solid #dce8fd;
}

.home-title-icon.is-personal {
    background: #eef4ff;
    color: #1e54c7;
    border: 1px solid #d4e5ff;
}

/* 城市选择 Chips 胶囊组（宽屏强制单行不折行，支持平滑横向微滚） */
.home-pulse-cities {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4.5px;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 60%;
    flex-shrink: 1;
}

.home-pulse-cities::-webkit-scrollbar {
    display: none;
}

.home-pulse-cities button.chip {
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    padding: 3.5px 7px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .15s ease;
}

.home-pulse-cities button.chip:hover {
    background: #eef4ff;
    border-color: #c7dbf8;
    color: #1e54c7;
}

.home-pulse-cities button.chip.is-active {
    background: #2b6ef1;
    border-color: #2b6ef1;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(43, 110, 241, 0.28);
}

/* 指标网格 KPI Grid */
.home-pulse-kpi {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

/* 左侧 3 项专属指标：3 列饱满自适应 */
.home-foryou-kpi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 右侧 4 项全域指标：4 列紧凑排布 */
#home-pulse-kpi {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* KPI 单个微卡单元 */
.home-pulse-kpi a,
.home-pulse-kpi div.kpi-cell,
.home-pulse-kpi > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px 6px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.home-pulse-kpi a {
    cursor: pointer;
}

.home-pulse-kpi a:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* KPI 数字 */
.home-pulse-kpi strong {
    display: block;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.15;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "tnum";
    letter-spacing: -.4px;
}

.home-pulse-kpi strong small,
.home-pulse-kpi strong .kpi-unit {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    margin-left: 2px;
    letter-spacing: 0;
    vertical-align: baseline;
    opacity: .85;
}

/* KPI 标签文案 */
.home-pulse-kpi span {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ================== 考生风格配色体系 ================== */

/* 1. 还能报（核心可报考池，公考深蓝） */
.home-foryou-kpi a:nth-child(1),
.home-foryou-kpi a.is-open {
    background: linear-gradient(180deg, #f0f7ff 0%, #e6f0fe 100%);
    border-color: #cbe0fe;
}
.home-foryou-kpi a:nth-child(1) strong,
.home-foryou-kpi a.is-open strong {
    color: #1e54c7;
}
.home-foryou-kpi a:nth-child(1) span,
.home-foryou-kpi a.is-open span {
    color: #3b669e;
}
.home-foryou-kpi a:nth-child(1):hover,
.home-foryou-kpi a.is-open:hover {
    border-color: #9ac2fb;
}

/* 2. 将截止（7日内）- 考生最高紧迫预警（醒目警戒橙红） */
.home-foryou-kpi a:nth-child(2),
.home-foryou-kpi a.is-ending,
#home-pulse-kpi > div:nth-child(4),
#home-pulse-kpi > div.is-ending {
    background: linear-gradient(180deg, #fff7f5 0%, #ffede8 100%);
    border-color: #ffd4c9;
}
.home-foryou-kpi a:nth-child(2) strong,
.home-foryou-kpi a.is-ending strong,
#home-pulse-kpi > div:nth-child(4) strong,
#home-pulse-kpi > div.is-ending strong {
    color: #dc2626;
}
.home-foryou-kpi a:nth-child(2) span,
.home-foryou-kpi a.is-ending span,
#home-pulse-kpi > div:nth-child(4) span,
#home-pulse-kpi > div.is-ending span {
    color: #b91c1c;
    font-weight: 600;
}
.home-foryou-kpi a:nth-child(2):hover,
.home-foryou-kpi a.is-ending:hover {
    border-color: #fca5a5;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
}

/* 3. 本周新匹配（生机青绿，提醒新发机会） */
.home-foryou-kpi a:nth-child(3),
.home-foryou-kpi a.is-fresh {
    background: linear-gradient(180deg, #f2faf6 0%, #e5f6ed 100%);
    border-color: #bbf0d6;
}
.home-foryou-kpi a:nth-child(3) strong,
.home-foryou-kpi a.is-fresh strong {
    color: #059669;
}
.home-foryou-kpi a:nth-child(3) span,
.home-foryou-kpi a.is-fresh span {
    color: #15803d;
}
.home-foryou-kpi a:nth-child(3):hover,
.home-foryou-kpi a.is-fresh:hover {
    border-color: #86efac;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.12);
}

/* 4. 城市招考脉搏各指标 */
/* 本月新发 */
#home-pulse-kpi > div:nth-child(1),
#home-pulse-kpi > div.is-new {
    background: #f8faff;
    border-color: #dbe7f7;
}
#home-pulse-kpi > div:nth-child(1) strong,
#home-pulse-kpi > div.is-new strong {
    color: #1e40af;
}

/* 已知招录人数（名额稳重雅紫） */
#home-pulse-kpi > div:nth-child(2),
#home-pulse-kpi > div.is-headcount {
    background: #faf6fe;
    border-color: #eedeff;
}
#home-pulse-kpi > div:nth-child(2) strong,
#home-pulse-kpi > div.is-headcount strong {
    color: #6d28d9;
}

/* 当前报名中（正在进行翡翠绿） */
#home-pulse-kpi > div:nth-child(3),
#home-pulse-kpi > div.is-open {
    background: #f3fbf7;
    border-color: #ceefe0;
}
#home-pulse-kpi > div:nth-child(3) strong,
#home-pulse-kpi > div.is-open strong {
    color: #047857;
}

/* 底部操作与附注栏 */
.home-pulse-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.home-pulse-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.home-pulse-actions .btn-sm {
    height: 30px;
    padding: 0 12px;
    font-size: 12.5px;
    border-radius: 6px;
    line-height: 28px;
    font-weight: 500;
}

.home-pulse-actions .btn-primary {
    background: linear-gradient(135deg, #2b6ef1 0%, #1e54c7 100%);
    box-shadow: 0 2px 6px rgba(43, 110, 241, 0.25);
    border: none;
    color: #fff;
}

.home-pulse-actions .btn-primary:hover {
    background: linear-gradient(135deg, #3b7af5 0%, #235cd6 100%);
    box-shadow: 0 4px 10px rgba(43, 110, 241, 0.35);
}

.home-pulse-actions .btn-secondary {
    background: #ffffff;
    border: 1px solid #c9d9fb;
    color: var(--c-primary-dark);
}

.home-pulse-actions .btn-secondary:hover {
    background: #f0f6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.home-pulse-actions .btn-ghost {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.home-pulse-actions .btn-ghost:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e54c7;
}

.home-pulse-note {
    margin: 0;
    font-size: 11.5px;
    color: #94a3b8;
    white-space: nowrap;
    text-align: right;
}

/* 未完善报考条件/未登录时的特性导引微卡 */
.home-foryou-empty-guide {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    gap: 8px;
}

.foryou-guide-pill {
    font-size: 12px;
    color: #475569;
    font-weight: 500;
}

/* ================== 响应式适配 ================== */
@media (max-width: 991px) {
    .home-pulse {
        margin-top: -16px;
    }

    .home-pulse-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-pulse-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .home-pulse-cities {
        flex-wrap: wrap;
        max-width: 100%;
        justify-content: flex-start;
    }

    .home-pulse-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .home-pulse-note {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .home-pulse {
        margin-top: 10px;
    }

    .home-pulse-card {
        padding: 14px 14px 16px;
    }

    #home-pulse-kpi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-foryou-empty-guide {
        flex-direction: column;
        align-items: flex-start;
    }
}
