/* ============================================================
 * public.css —— 站点公共样式
 * 含：基础重置、HTML5 元素 block 化、1200px 容器、头部样式
 * 目标：兼容 IE11
 * ============================================================ */

/* ---------- 基础重置 ---------- */
* {
    box-sizing: border-box;
}
 .icon {
       width: 1em; height: 1em;
       vertical-align: -0.15em;
       fill: currentColor;
       overflow: hidden;
    }
body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-image: url(../images/cl-bg.png);
    background-repeat: no-repeat;
    background-position: 0px 0px;
    background-size: 100%;
}
header, nav, main, article, section, aside, footer {
    display: block;
}

/* ---------- 1200px 容器（响应式：窄屏自动缩放，桌面锁 1200 居中） ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
}

@media (min-width: 576px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (min-width: 992px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ---------- 头部 ---------- */
.site-header {
    position: relative;
    z-index: 1;
    min-height: 160px;
}

.header-art {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 60px;
    overflow: visible;
    fill: #1A6CBD;
    pointer-events: none;
}

.header-top {
    position: relative;
    z-index: 1;
    height: 40px;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    color: #fff;
    font-size: 14px;
}

.header-date {
    display: block;
    white-space: nowrap;
}

.header-tools {
    display: flex;
    align-items: center;
}

.header-tools > a + a {
    margin-left: 12px;
}

.header-tools a {
    padding: 6px 12px;
    border-radius: 3px;
    background: transparent;
    color: #fff;
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
    text-decoration: none;
}
.header-tools .icon{
   margin-right: 5px;
}

.header-tools a:hover,
.header-tools a:focus {
    background: #fff;
    color: #1A6CBD;
}

.primary-nav {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    margin-top: 20px;
}

.primary-nav > a + a {
    margin-left: 100px;
}

.primary-nav a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 4px 10px;
    color: #000;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease;
    letter-spacing: 2px;
}

.primary-nav a::after {
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 20px;
    height: 13px;
    border-bottom: 3px solid currentColor;
    border-radius: 0 0 50% 50%;
    content: "";
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.primary-nav a.active {
    color: #124f8b;
}

.primary-nav a.active::after {
    opacity: 1;
    animation: smile-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    color: #124f8b;
}

.primary-nav a:hover,
.primary-nav a:focus {
    color: #124f8b;
}

/* logo 包裹 a 标签：仅作 flex 占位，不显示下划线动画 */
.primary-nav > a.nav-logo-wrap {
    padding: 0;
    cursor: default;
}

.primary-nav > a.nav-logo-wrap::after {
    display: none;
}

/* 中部徽标 */
.nav-logo {
    flex: 0 0 auto;
    width: 88px;
    height: auto;
    transform: translateY(-30px);
    pointer-events: none;
    -ms-user-select: none;
    user-select: none;
}
.logo-wrap{
    text-align: center;
}
.logo-title{
    font-size: 32px;
    font-weight: bold;
    color: #05498D;
    letter-spacing: 5px;
}
.logo-subtitle{
    font-size: 20px;
    color: #05498D;
}
.search-wrap {
    margin-top: 20px;
    padding: 0 12px;          /* 窄屏两侧留边，防止 form 贴视口边缘 */
    text-align: center;
}

.search-form {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 500px;
    max-width: 100%;          /* ≤500 时缩到可视区宽度 */
    height: 50px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    vertical-align: top;
    padding-left: 10px;      /* inline-flex 基线对齐修正 */
}

.search-input {
    flex: 1 1 auto;           /* inline-flex 内允许伸缩 */
    min-width: 0;             /* 关键：避免长内容撑炸容器 */
    width: 100%;
    height: 100%;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 20px;
    border: none;
    outline: none;
    letter-spacing: 1px;
}

.search-button {
    flex: 0 0 auto;           /* 不被挤压 */
    margin-right: 5px;
    width: 46px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #1A6CBD;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ---------- 搜索框响应式 ---------- */
@media (max-width: 575.98px) {
    .logo-title{
        font-size: 24px;
    }
    .logo-subtitle{
        font-size: 16px;
    }
    .search-wrap {
        width: 80%;
        margin: 0 auto;
        padding: 0 12px;
    }

    .search-form {
        height: 40px;        /* 50 → 40，更适合单手操作 */
        border-radius: 8px;
    }

    .search-input {
        font-size: 16px;    /* iOS ≤16 不会触发自动缩放 */
        padding: 4px 10px;
    }

    .search-button {
        width: 38px;
        height: 32px;
        font-size: 18px;
        margin-right: 4px;
        border-radius: 6px;
    }
}
@keyframes smile-in {
    from {
        opacity: 0;
        transform: translateX(-50%) scaleX(0);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
}

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
    .header-top-inner {
        font-size: 12px;
    }

    .header-tools > a + a {
        margin-left: 6px;
    }

    .header-tools a {
        padding: 5px 7px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .primary-nav {
        margin-top: 15px;
    }

    .primary-nav > a + a {
        margin-left: 15px;
    }

    .primary-nav a {
        font-size: 14px;
    }

    .nav-logo {
        width: 64px;
    }
    .primary-nav a::after{
        bottom: 15px;
    }
}

@media (max-width: 380px) {
    .header-top-inner {
        font-size: 11px;
    }

    .primary-nav > a + a {
        margin-left: 12px;
    }

    .primary-nav a {
        font-size: 12px;
    }

    .nav-logo {
        width: 52px;
    }
    .primary-nav a::after{
        bottom: 15px;
    }
}

/* 降级：动画偏好（IE11 不支持此媒体查询，忽略） */
@media (prefers-reduced-motion: reduce) {
    .primary-nav a.active::after {
        animation: none;
    }
}

/* ============================================================
 * 吸底布局（sticky footer）
 * body 纵向 flex + main 撑满剩余空间：
 *   - 内容不足一屏（大屏 / 1920×1080）→ 页脚贴住视口底部
 *   - 内容超过一屏（1366×768 等）    → 页脚排在正文之后，自动出现纵向滚动条
 * 不用 fixed，避免小屏时页脚浮在正文上遮挡内容。
 * ============================================================ */
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

/* ============================================================
 * 页脚（全站通用，深蓝底 #1A6CBD）
 * 第一行：5 个友情链接下拉，等宽铺满 1200px 内容区
 * 第二行：会徽 + 版权 / 备案信息 + 无障碍服务标识，整体居中
 * ============================================================ */
.site-footer {
    flex: 0 0 auto;
    margin-top: 40px;
    background: #1A6CBD;
    color: #fff;
    font-size: 15px;
}

/* ---------- 第一行：友情链接下拉 ---------- */
.footer-links {
    padding: 14px 0;
    /* 分隔线通到页面两端，所以加在最外层而不是 .container 上 */
    border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.footer-links-inner {
    min-height: 40px;
}

/* BS5 .row 内子项：col-md 已分配宽度，只需负责箭头定位 */
.footer-select-wrap {
    position: relative;
    display: block;
}

/* 自绘下拉箭头：select 元素不能带伪元素，只能挂在包裹层上 */
.footer-select-wrap::after {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 6px;
    height: 6px;
    margin-top: -4px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    content: "";
    transform: rotate(45deg);
    pointer-events: none;
}

.footer-select {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 36px 0 14px;
    text-align: left;
    line-height: 38px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 2px;
    background: rgba(255, 255, 255, .10);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.footer-select:hover,
.footer-select:focus {
    border-color: rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .18);
}

/* Bootstrap dropdown 菜单（友情链接）：白底、与按钮同宽 */
.footer-links .footer-dropdown {
    --bs-dropdown-min-width: 10rem;
    width: 100%;
    min-width: 100%;
    max-height: 280px;      /* 省政府残工委单位 34 条，超出色口滚动（与老站一致） */
    overflow-y: auto;
    margin-top: 4px;
    border: 1px solid #C9DDF2;
    border-radius: 2px;
    box-shadow: 0 6px 16px rgba(13, 60, 110, .18);
}

.footer-links .footer-dropdown .dropdown-item {
    padding: 9px 14px;
    color: #333;
    font-size: 15px;
    white-space: normal;
}

.footer-links .footer-dropdown .dropdown-item:hover,
.footer-links .footer-dropdown .dropdown-item:focus {
    background: #EFF7FE;
    color: #1A6CBD;
}

/* ---------- 第二行：版权 / 备案 / 无障碍（布局由 BS5 .row + align-items-center 处理） ---------- */
.footer-copy-bar {
    padding: 13px 0;
}

.footer-emblem {
    width: 40px;
    height: 40px;
}

.footer-copy {
    font-size: 15px;
    line-height: 22px;
    white-space: nowrap;
}

.footer-copy > span + span {
    margin-left: 24px;
}

.footer-copy a {
    color: #fff;
    text-decoration: none;
}

.footer-copy a:hover,
.footer-copy a:focus {
    text-decoration: underline;
}

/* 公安网备徽标 */
.footer-police {
    width: 15px;
    height: 16px;
    margin-right: 4px;
    vertical-align: -3px;
}

/* 无障碍服务标识：黑框白底贴片 */
.footer-access {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* ---------- 移动端页脚适配 ---------- */
@media (max-width: 767.98px) {
    .footer-links .row {
        --bs-gutter-y: 0.5rem;
    }

    .footer-copy a {
        white-space: nowrap;
    }

    .footer-copy > span + span {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }
}

@media (max-width: 575.98px) {
    .footer-select {
        font-size: 13px;
        height: 36px;
    }
}

/* 细览页的样式，放在通用样式里面 */
.crumb {
    height: 80px;
    line-height: 80px;
    border-bottom: 1px solid #C3D1F0;
    color: #999;
}

.crumb .icon {
    color: #0080FF;
}

.crumb a {
    text-decoration: none;
    color: rgba(30, 45, 57, 0.5);
    margin: 0px 6px;
}

.article-title {
    font-size: 32px;
    color: #1E2D39;
    text-align: center;
    margin-top: 50px;
    line-height: 48px;
}

.article-mate {
    font-size: 14px;
    color: #B1B1B1;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 30px;
}

/* ---------- 检索联想下拉（GET /api/suggest） ---------- */
.sgg-box {
    position: fixed;
    z-index: 1080;              /* 盖过头部，低于 Modal/详情弹层 */
    display: none;
    background: #fff;
    border: 1px solid #C9DDF2;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 8px 20px rgba(13, 60, 110, .16);
    max-height: 320px;
    overflow-y: auto;
}

.sgg-item {
    padding: 9px 14px;
    color: #333;
    font-size: 15px;
    cursor: pointer;
}

.sgg-item .sgg-word {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;   /* 超出搜索框宽度的文字显示省略号 */
}

.sgg-item:hover,
.sgg-item.active {
    background: #EFF7FE;
    color: #1A6CBD;
}

/* ---------- 文章正文字号切换（大 24 / 中 20 / 小 18；细览页、展示文章的概览） ---------- */
.article-mate .fs-switch {
    margin-left: 8px;
}

.article-mate .fs-opt {
    color: #1A6CBD;
    text-decoration: none;
    margin: 0 3px;
}

.article-mate .fs-opt:hover {
    text-decoration: underline;
}

.article-mate .fs-opt.active {
    color: #E24B4A;
    font-weight: bold;
    cursor: default;
    text-decoration: none;
}

.article-content.fs-24 { font-size: 24px; }
.article-content.fs-20 { font-size: 20px; }
.article-content.fs-18 { font-size: 18px; }

.article-content {
    font-size: 18px;
    color: #1E2D39;
    line-height: 40px;
    /* 两段对齐 */
    text-align: justify;
    text-indent: 2em;
}