/* 知岗即报 招考公告列表样式 2.0 | 2026-11-05 */

/* ---------- 顶部面包屑与导航条 ---------- */
.detail-banner {
    background: #ffffff;
    border-bottom: 1px solid var(--c-border);
    padding: 12px 0;
}

.detail-banner .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.detail-banner .breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color .15s ease;
}

.detail-banner .breadcrumb a:hover {
    color: var(--c-primary);
}

.detail-banner .breadcrumb .current {
    color: #0f172a;
    font-weight: 600;
}

/* 兼容旧版页面使用 .page-banner */
.page-banner {
    background: linear-gradient(120deg, #1b3f8f, #2b6ef1);
    color: #fff;
    padding: 34px 0 40px;
}

.page-banner h1 {
    margin-top: 12px;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -.5px;
}

.page-banner p {
    margin-top: 8px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

/* ---------- 招考公告蓝光头图扩展 ---------- */
.news-subpage-hero {
    padding-bottom: 56px;
}

.news-hero-content {
    margin-top: 4px;
}

/* 嵌入头图的搜索框 (仿首页精质白条) */
.news-hero-search-box {
    display: flex;
    align-items: center;
    max-width: 660px;
    margin-top: 18px;
    background: #ffffff;
    border-radius: 10px;
    padding: 4px 5px 4px 14px;
    box-shadow: 0 10px 30px rgba(10, 28, 70, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.35);
    position: relative;
    box-sizing: border-box;
}

.news-hero-search-icon {
    color: #94a3b8;
    display: flex;
    align-items: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.news-hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14.5px;
    color: #0f172a;
    background: transparent;
    min-width: 0;
    padding: 6px 30px 6px 0;
    font-family: inherit;
}

.news-hero-search-input::placeholder {
    color: #94a3b8;
}

.news-hero-clear-btn {
    position: absolute;
    right: 110px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}

.news-hero-clear-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.news-hero-search-btn {
    border: none;
    background: linear-gradient(135deg, #2b6ef1 0%, #1e54c7 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    padding: 9px 22px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
    box-shadow: 0 2px 8px rgba(43, 110, 241, 0.35);
    font-family: inherit;
}

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

/* 头图热搜词胶囊组 */
.news-hero-hot-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.news-hero-hot-tags .hot-label {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .78);
    font-weight: 500;
    flex-shrink: 0;
}

.news-hero-hot-tags .hot-list-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hero-hot-tag {
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .15);
    color: #ffffff;
    padding: 3.5px 11px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s ease;
    backdrop-filter: blur(4px);
    font-family: inherit;
}

.hero-hot-tag:hover {
    background: rgba(255, 255, 255, .28);
    border-color: rgba(255, 255, 255, .5);
    color: #ffffff;
}

/* ---------- 页面主体布局与卡片上浮微叠 (类似首页) ---------- */
.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
    margin-top: -34px;
    position: relative;
    z-index: 10;
    padding-bottom: 56px;
}

.news-main-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

/* ---------- 筛选区与结果容器卡片 ---------- */
.news-content-card {
    background: #ffffff;
    border: 1px solid #dbe3ed;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.filter-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.filter-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 8px 0;
}

.filter-row + .filter-row {
    border-top: 1px dashed #e2e8f0;
}

.filter-label {
    width: 48px;
    flex-shrink: 0;
    padding-top: 5px;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.filter-options .chip {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    padding: 3.5px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
    line-height: 1.35;
    text-decoration: none;
}

.filter-options .chip:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.filter-options .chip.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.filter-options .chip-muted {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.filter-options .chip-muted:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f8fbff;
}

.filter-options .chip-scheme {
    background: #eef4ff;
    border-color: #bfdbfe;
    color: #1e40af;
    font-weight: 500;
}

.filter-more {
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
}

.filter-more:hover {
    text-decoration: underline;
}

.filter-hint {
    margin: 2px 0 6px 60px;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
}

.filter-hint[hidden] {
    display: none;
}

/* ---------- 结果汇总栏 ---------- */
.result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.result-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
}

.result-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
    flex-shrink: 0;
}

#result-summary strong {
    color: #0f172a;
    font-weight: 700;
}

#result-summary .keyword {
    color: #2563eb;
    font-weight: 600;
}

.section-more {
    color: #64748b;
    font-size: 12.5px;
    text-decoration: none;
    transition: color .15s ease;
    white-space: nowrap;
}

.section-more:hover {
    color: #2563eb;
}

/* ---------- 公告卡片流 News List ---------- */
.news-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-card-wrapper {
    list-style: none;
}

.news-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-left: 3.5px solid #2563eb;
}

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

.news-card-main {
    flex: 1;
    min-width: 0;
}

.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.news-card-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.news-status-pill {
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8.5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
}

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

.news-status-pill.is-open.is-urgent {
    background: #fff1f2;
    color: #b91c1c;
    border-color: #fecdd3;
    font-weight: 700;
}

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

.news-status-pill.is-expired {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.news-cat-pill {
    font-size: 11.5px;
    font-weight: 500;
    padding: 2px 7.5px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #334155;
}

.news-region-pill {
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 7.5px;
    border-radius: 4px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

.news-pos-pill {
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #f3e8ff;
}

.news-pub-date {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}

.news-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.news-card-title a {
    color: #0f172a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s ease;
}

.news-card-title a:hover {
    color: #2563eb;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 12.5px;
    color: #64748b;
}

.news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-meta-heat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #ea580c;
    font-weight: 500;
}

.news-card-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: flex-end;
    flex-shrink: 0;
    min-width: 140px;
}

.news-action-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 13px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 7px;
    background: linear-gradient(135deg, #2b6ef1 0%, #1e54c7 100%);
    color: #ffffff;
    text-decoration: none;
    border: none;
    box-shadow: 0 2px 6px rgba(43, 110, 241, 0.22);
    transition: all .15s ease;
    white-space: nowrap;
}

.news-action-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(43, 110, 241, 0.32);
    color: #ffffff;
}

.news-action-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 13px;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 7px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
}

.news-action-read:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

/* ---------- 骨架屏 Skeleton ---------- */
.news-skeleton-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- 右侧边栏 Sidebar ---------- */
.news-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.side-card {
    background: #ffffff;
    border: 1px solid #dbe3ed;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.side-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.side-title-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.side-title-icon.is-fire {
    background: #fff1f2;
}

.side-title-icon.is-radar {
    background: #eff6ff;
}

.side-title-icon.is-mail {
    background: #ecfdf5;
}

/* 本月热门公告榜 */
.hot-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.hot-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #f1f5f9;
}

.hot-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hot-rank {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #64748b;
}

.hot-list .hot-item:nth-child(1) .hot-rank {
    background: #ef4444;
    color: #ffffff;
}

.hot-list .hot-item:nth-child(2) .hot-rank {
    background: #f97316;
    color: #ffffff;
}

.hot-list .hot-item:nth-child(3) .hot-rank {
    background: #eab308;
    color: #ffffff;
}

.hot-link {
    flex: 1;
    min-width: 0;
    text-decoration: none;
}

.hot-title {
    font-size: 13.5px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s ease;
}

.hot-item:hover .hot-title {
    color: #2563eb;
}

.hot-meta {
    margin-top: 3px;
    font-size: 11.5px;
    color: #94a3b8;
}

.hot-empty {
    padding: 8px 0;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

/* 备考雷达与大盘快捷链接 */
.side-radar-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.side-radar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    text-decoration: none;
    transition: all .18s ease;
}

.side-radar-item:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateX(3px);
}

.radar-item-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.radar-item-info {
    flex: 1;
    min-width: 0;
}

.radar-item-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.radar-item-info p {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: #64748b;
}

.radar-item-arrow {
    color: #94a3b8;
    font-size: 14px;
    transition: transform .15s ease;
}

.side-radar-item:hover .radar-item-arrow {
    color: #2563eb;
    transform: translateX(2px);
}

/* 侧边栏邮件订阅卡片 */
.side-subscribe-card {
    background: linear-gradient(175deg, #f0f7ff 0%, #ffffff 100%);
    border-color: #cee0f8;
}

.side-sub-desc {
    margin: 0 0 12px;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.6;
}

.side-sub-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-sub-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color .15s ease;
}

.side-sub-input:focus {
    border-color: #2563eb;
    outline: none;
}

.side-sub-btn {
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #2b6ef1 0%, #1e54c7 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(43, 110, 241, 0.22);
    transition: all .15s ease;
}

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

.side-sub-tip {
    margin: 6px 0 0;
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
}

/* ---------- 百度广告卡片 ---------- */
.ad-baidu-card {
    margin-top: 18px;
    padding: 12px 16px 6px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    min-height: 90px;
    overflow: hidden;
}

.ad-baidu-card.is-empty {
    display: none;
}

.ad-baidu-card .ad-label {
    display: block;
    margin-bottom: 6px;
    color: #8a94a6;
    font-size: 11px;
    letter-spacing: 1px;
}

.ad-baidu-card > div {
    width: 100%;
    min-height: 56px;
}

/* ---------- 响应式断点适配 ---------- */
@media (max-width: 991px) {
    .news-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 16px 0 40px;
    }

    .news-side {
        order: 2;
    }

    .news-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .news-card-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px dashed #f1f5f9;
    }
}

@media (max-width: 640px) {
    .news-search-card,
    .news-content-card {
        padding: 16px 14px;
    }

    .news-search-title {
        font-size: 20px;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar .btn-primary {
        width: 100%;
    }

    .filter-panel {
        padding: 12px 12px;
    }

    .filter-row {
        flex-direction: column;
        gap: 6px;
    }

    .filter-label {
        width: auto;
        padding-top: 0;
        font-size: 13px;
    }

    .filter-hint {
        margin-left: 0;
    }

    .news-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

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

    .news-action-filter,
    .news-action-read {
        width: 100%;
        text-align: center;
    }
}
