/* ===== 内页通用样式（列表页 / 详情页等所有内页共用此文件） ===== */

/*
 * 内容少时撑满浏览器：中间 .main-area 最小高度 = 100vh - 顶栏 - 底栏
 * 这样背景会加高，页脚正好贴在窗口底部；内容多时自动超过此高度正常滚动
 * 仅内页生效（首页不引 inner.css，不受影响）
 */
.main-area {
    min-height: calc(100vh - 240px);
}

@media (max-width: 992px) {
    .main-area {
        min-height: calc(100vh - 170px);
    }
}

/* ---------- 列表通用页 ---------- */

/* 面包屑 */
.crumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.crumb a {
    color: #333;
}

.crumb a:hover {
    color: #2458AA;
}

/* 列表白色卡片 */
.list-card {
    background: #fff;
    border-radius: 8px;
    padding: 28px 40px 40px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

/* 卡片标题：左侧蓝色竖条 + 底部分隔线 */
.list-card-head {
    padding-bottom: 18px;
    border-bottom: 1px solid #ececec;
}

.list-card-title {
    position: relative;
    padding-left: 14px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.list-card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #2458AA;
    border-radius: 2px;
}

/* 列表 */
.list-ul {
    list-style: none;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 4px;
    border-bottom: 1px dashed #e6e6e6;
}

.list-item:last-child {
    border-bottom: 0;
}

.list-title {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 18px;
    font-size: 16px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2458AA;
}

.list-item:hover .list-title {
    color: #2458AA;
}

.list-date {
    flex: 0 0 auto;
    margin-left: 24px;
    font-size: 15px;
    color: #999;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}
.p_pages{
    display: flex;
}
.p_pages span{
    min-width: 42px;
    height: 38px;
    line-height: 36px;
    padding: 0 14px;
    text-align: center;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    color: #606266;
    font-size: 14px;
    margin: 0 4px;
    display: inline-block;
}

.p_pages .p_no_d {
    border-color: #2458AA;
    background: #2458AA;
    color: #fff;
}

.p_pages span:hover {
    background: #2458AA;
    border-color: #2458AA;
    color: #fff;
}

/* ---------- 详情通用页 ---------- */

/* 文章卡片 */
.detail-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px 50px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

/* 文章标题（居中） */
.detail-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
}

/* 元信息：公开日期 / 作者 / 公开部门 */
.detail-meta {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #888;
}

.detail-meta span {
    margin: 0 14px;
}

/* 虚线分隔 */
.detail-divider {
    border-top: 1px dashed #e0e0e0;
    margin: 24px 0;
}

/* 正文 */
.detail-content {
    font-size: 16px;
    color: #333;
    line-height: 2;
}

.detail-content p {
    margin-bottom: 12px;
}

/* 底部：上一篇/下一篇 + 返回上层 */
.detail-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px dashed #e0e0e0;
}

.detail-prevnext {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    color: #555;
}

.detail-prevnext p {
    margin-bottom: 14px;
    line-height: 1.6;
}

.detail-prevnext p:last-child {
    margin-bottom: 0;
}

.detail-prevnext a {
    color: #333;
}

.detail-prevnext a:hover {
    color: #2458AA;
}

/* 返回上层按钮 */
.back-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 15px;
}

.back-btn img {
    width: 18px;
    height: 18px;
    display: block;
}

.back-btn:hover {
    border-color: #2458AA;
    color: #2458AA;
}

/* ---------- 信息公开目录页 ---------- */

/* 两栏：左目录导航 + 右内容（约 3:7，响应式） */
.dir-row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    gap: 30px;
    align-items: stretch;
}

/* 左侧目录卡 */
.dir-side {
    position: relative;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    padding: 24px 24px 150px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.dir-side-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: bold;
    color: #2458AA;
    padding-bottom: 16px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.dir-side-title img {
    width: 22px;
    height: 22px;
    display: block;
}

/* 目录导航 */
.dir-nav {
    list-style: none;
}

.dir-nav li {
    border-bottom: 1px solid #f0f2f5;
}

.dir-nav li:last-child {
    border-bottom: 0;
}

.dir-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 4px;
    font-size: 16px;
    color: #333;
}

.dir-nav a::before {
    content: "›";
    color: #b9c2d0;
    font-size: 18px;
    line-height: 1;
}

.dir-nav a:hover,
.dir-nav li.active a {
    color: #2458AA;
}

.dir-nav li.active a::before {
    color: #2458AA;
}

/* 底部淡色校徽水印（定位在底部最右侧） */
.dir-side-logo {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 150px;
    opacity: 0.9;
    pointer-events: none;
}

/* ===== 响应式：列表 / 详情 / 目录内页 ===== */
@media (max-width: 1200px) {
    .list-card {
        padding: 24px 28px 32px;
    }

    .detail-card {
        padding: 32px 36px;
    }
}

@media (max-width: 992px) {
    .crumb {
        margin-bottom: 14px;
        font-size: 13px;
        line-height: 1.6;
        word-break: break-all;
    }

    .list-card {
        padding: 18px 16px 28px;
    }

    .list-card-title {
        font-size: 16px;
    }

    .list-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 16px 0;
    }

    .list-title {
        white-space: normal;
        font-size: 15px;
        line-height: 1.5;
        padding-right: 4px;
    }

    .list-date {
        margin-left: 18px;
        font-size: 13px;
    }

    .pagination {
        margin-top: 24px;
        gap: 6px;
    }

    .page-btn .p_pages span {
        min-width: 36px;
        height: 34px;
        line-height: 32px;
        padding: 0 10px;
        margin: 2px;
        font-size: 13px;
    }

    .detail-card {
        padding: 22px 16px 28px;
    }

    .detail-title {
        font-size: 20px;
        text-align: left;
    }

    .detail-meta {
        text-align: left;
        line-height: 1.8;
    }

    .detail-meta span {
        display: inline-block;
        margin: 0 12px 0 0;
    }

    .detail-content {
        font-size: 15px;
        line-height: 1.85;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .detail-content img {
        max-width: 100% !important;
        height: auto !important;
    }

    .detail-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .detail-foot {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .detail-prevnext {
        font-size: 14px;
    }

    .back-btn {
        width: 100%;
        justify-content: center;
    }

    .dir-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dir-side {
        padding: 16px 16px 120px;
    }

    .dir-side-title {
        font-size: 17px;
    }

    .dir-nav a {
        padding: 13px 4px;
        font-size: 15px;
    }

    .dir-side-logo {
        width: 110px;
        right: 12px;
        bottom: 12px;
    }
}

@media (max-width: 480px) {
    .detail-title {
        font-size: 18px;
    }

    .list-title {
        font-size: 14px;
    }
}
