/* ============================================
   反腐通报栏目 - 基础布局样式（骨架）
   仅还原设计图版式，视觉细节可在此基础上继续补充
   ============================================ */

/* ---------- 基础重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #1f5d9a;
}

ul, ol {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ---------- 公共容器 ---------- */
.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   顶部站点导航（白底）
   ============================================ */
.site-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 30px;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-menu li a {
    display: block;
    padding: 0 16px;
    line-height: 60px;
    font-size: 15px;
}

/* 当前栏目：加粗 + 底部蓝色短横线（参考设计图） */
.nav-menu li.active a {
    font-weight: bold;
    color: #000;
    border-bottom: 3px solid #2b6cf5;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.tool-item {
    color: #666;
    font-size: 14px;
}

.tool-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eee;
}

/* ============================================
   主题色 Banner + 区域筛选选项卡
   ============================================ */
.banner1 {
    background: #1f5d9a; /* 主题蓝，可换为 image/banner-bg.jpg 背景图 */
    color: #fff;
    padding: 30px 0 0;
    text-align: center;
}

.banner-title {
    font-size: 60px;
    line-height: 1.4;
    font-weight: bold;
    letter-spacing: 8px;
    font-family: "STXingkai", "华文行楷", "KaiTi", "楷体", serif; /* 书法字体占位 */
    margin-bottom: 30px;
}

/* 区域筛选选项卡 */
.region-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 18px;
}

.region-tabs li a {
    display: block;
    padding: 8px 24px;
    margin: 0 6px;
    color: #fff;
    font-size: 15px;
}

.region-tabs li a:hover {
    color: #cfe0f0;
}

/* 当前选中区域：深蓝底方块 */
.region-tabs li.active a {
    background: #164573;
    font-weight: bold;
}

/* ============================================
   面包屑 / 搜索
   ============================================ */
.topbar1 {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.breadcrumb .separator {
    margin: 0 6px;
    color: #999;
}

.breadcrumb .current {
    color: #999;
}

/* 排序切换条（原面包屑位置） */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sort-bar .sort-item {
    position: relative;
    display: inline-block;
    padding: 4px 2px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
}

.sort-bar .sort-item:hover {
    color: #1f5d9a;
}

/* 当前选中的排序方式：主题色文字 + 底部短横线 */
.sort-bar .sort-item.active {
    color: #1f5d9a;
    font-weight: bold;
}

.sort-bar .sort-item.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #1f5d9a;
    border-radius: 2px;
}

/* 搜索框 */
.search-form {
    display: flex;
    flex: 0 0 300px;
}

.search-input {
    flex: 1;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-right: none;
    outline: none;
}

.search-btn {
    width: 46px;
    height: 38px;
    border: none;
    background: #1f5d9a;
    color: #fff;
    cursor: pointer;
}

/* ============================================
   主体两栏布局
   ============================================ */
.layout {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 20px 0 40px;
}

.content-main {
    flex: 1;
    min-width: 0; /* 防止长标题撑破布局 */
}

.sidebar {
    flex: 0 0 269px;
}

/* ---------- 月份分组：卡片网格布局 ---------- */
.month-group {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 固定每行 5 人 */
    gap: 20px;
}

/* 月份标题横跨整行 */
.month-title {
     font-size: 18px;
    color: #ffffff;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    /* margin-bottom: 15px; */
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    background: #1f5d9a;
    padding: 5px 15px;
    grid-column: 1 / -1;
    margin-bottom: 0;
}

/* 月份标题右侧的通报数量 */
.month-count {
    font-size: 16px;
    font-weight: normal;
}

/* ---------- 通报条目：上图下文卡片 ---------- */
.report-item {
    display: block;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); /* 卡片阴影 */
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.report-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); /* 悬停时阴影加深 */
    transform: translateY(-2px);
}

.report-photo {
    display: block;
    width: 100%;
}

.report-photo img {
    width: 100%;
    height: 160px;
    object-fit: cover; /* 保持证件照比例裁切 */
    background: #eee;
}

.report-body {
    display: flex;
    flex-direction: column;
    padding: 12px 14px 14px;
}

.report-title {
    text-align: center;
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 6px;
    display: block; /* 卡片内：姓名一行，职务在姓名下方 */
}

/* 职务名称：姓名下方，灰色小字 */
.person-position {
    display: block;
    font-size: 13px;
    color: #666;
    font-weight: normal;
    line-height: 1.5;
}

/* 摘要：卡片模式下不显示 */
.report-summary {
    display: none;
}

/* 条目底部信息 */
.report-meta {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #999;
    padding: 10px 0 0 180px; /* 与文字列对齐 */
}

/* .meta-time {
    margin-right: auto;
} */

/* 内容区内的时间：固定在条目右下角（与照片底部对齐） */
.report-body .meta-time {
    display: block;
    margin-top: auto; /* 推开到最底部 */
    align-self: center; /* 靠右 */
    color: #333;
    font-size: 13px;
}

/* ---------- 分页 ---------- */
.pagination {
    text-align: center;
    padding: 20px 0;
}

.page-btn {
    display: inline-block;
    min-width: 34px;
    padding: 6px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
}

.page-btn.active,
.page-btn:hover {
    background: #1f5d9a;
    color: #fff;
    border-color: #1f5d9a;
}

/* ============================================
   侧边栏
   ============================================ */
.side-block {
    margin-bottom: 25px;
    padding: 15px;
}

.media-logo {
    text-align: center;
    margin-bottom: 15px;
}

.media-links li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.media-links a {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 排行榜（灰底模块） */
.side-rank {
    background: #f5f5f5;
}

.side-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
}

.rank-item a {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-num {
    flex: 0 0 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: #bbb;
    color: #fff;
    font-size: 12px;
}

/* 前三名主题色序号 */
.rank-num.top {
    background: #1f5d9a;
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
    border-top: 1px solid #eee;
    padding: 25px 0;
    text-align: center;
    color: #999;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    margin: 0 8px;
}

/* ============================================
   响应式：平板 / 移动端
   ============================================ */
@media (max-width: 992px) {
    /* 导航与工具区换行、区域选项卡可换行 */
    .nav-inner {
        height: auto;
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .nav-menu {
        order: 3;
        flex: 1 1 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .nav-menu li a {
        line-height: 44px;
        padding: 0 10px;
    }

    .banner-title {
        font-size: 40px;
        margin-bottom: 18px;
    }

    .region-tabs li a {
        padding: 6px 14px;
    }

    .layout {
        flex-direction: column;
    }

    .sidebar {
        flex: 1 1 auto;
        width: 100%;
    }

    .search-form {
        flex: 1 1 100%;
    }

    /* 平板：每行 3 人 */
    .month-group {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    /* 小屏：每行 2 人 */
    .month-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .report-photo img {
        height: 160px;
    }

    .report-body {
        padding: 10px;
    }

    .report-title {
        font-size: 16px;
    }

    .month-title {
        font-size: 16px;
    }
}
