/* ========== 全局重置与基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f5f7fa;
    color: #2c3e4f;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 通用模块样式 ========== */
/* 通用标题模块 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    border-bottom: 2px solid #e0e7ed;
    padding-bottom: 12px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #1e4663;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 52px;
    height: 3px;
    background-color: #1e6f9f;
    border-radius: 2px;
}

.section-header .more {
    font-size: 14px;
    color: #1e6f9f;
    font-weight: 500;
}

.section-header .more i {
    margin-left: 6px;
    font-size: 12px;
}

.section-header .more:hover {
    color: #0c4b6e;
}

/* 卡片公用样式 */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #eef2f6;
}

.card-content {
    padding: 20px 18px 22px;
    flex: 1;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1e2f3e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title:hover {
    color: #1e6f9f;
}

.card-date {
    font-size: 13px;
    color: #8c9aa8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-desc {
    font-size: 14px;
    color: #5a6e7c;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 列表样式 (通知公告、安全教育) */
.list-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.list-item:hover {
    transform: translateX(4px);
    border-left-color: #1e6f9f;
    background-color: #fefefe;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.list-title {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e4f;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.list-title a:hover {
    color: #1e6f9f;
}

.list-date {
    font-size: 13px;
    color: #8c9aa8;
    white-space: nowrap;
}

.list-desc {
    font-size: 13px;
    color: #6e889b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 快速入口模块 (服务导航) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 40px 0 20px;
}

.service-item {
    background: #fff;
    padding: 28px 12px;
    text-align: center;
    border-radius: 20px;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2f8;
}

.service-item i {
    font-size: 36px;
    color: #1e6f9f;
    margin-bottom: 12px;
    display: inline-block;
}

.service-item span {
    font-size: 16px;
    font-weight: 500;
    color: #1e3b4f;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: #cbdde9;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.05);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0 8px;
    font-size: 14px;
    color: #8c9aa8;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #1e6f9f;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #4a5e6e;
    font-weight: 500;
}

/* 分页样式(文章列表/图文列表共用) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: #2c4e6e;
    border: 1px solid #dfe5eb;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #eef4fc;
    border-color: #1e6f9f;
    color: #1e6f9f;
}

.pagination .active {
    background: #1e6f9f;
    color: #fff;
    border-color: #1e6f9f;
    pointer-events: none;
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
    background: #f5f5f5;
}

/* ========== 布局样式 ========== */
/* 首页通用布局 */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.two-columns {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
}

.left-col {
    flex: 2;
}

.right-col {
    flex: 1.2;
}

/* 安全教育卡片组 */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ========== 页面特有样式 ========== */
/* 轮播图样式 */
.swiper {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.swiper-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

/* 简介页特有样式 */
.intro-banner {
    background: linear-gradient(135deg, #1e4663 0%, #1e6f9f 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 32px 32px;
}

.intro-banner h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.intro-banner p {
    font-size: 16px;
    opacity: 0.85;
    letter-spacing: 2px;
}

.intro-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.intro-text {
    flex: 2;
    min-width: 300px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    line-height: 1.9;
    font-size: 15px;
    color: #3a4f60;
}

.intro-text h3 {
    font-size: 22px;
    color: #1e4663;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f6;
}

.intro-text p {
    margin-bottom: 14px;
    text-indent: 2em;
}

.intro-sidebar {
    flex: 1;
    min-width: 260px;
}

.intro-sidebar .card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.intro-sidebar .card h4 {
    font-size: 18px;
    color: #1e4663;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f6;
}

.intro-sidebar .card ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eef0f4;
    font-size: 14px;
    color: #5a6e7c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.intro-sidebar .card ul li i {
    color: #1e6f9f;
    width: 20px;
    text-align: center;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.org-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}

.org-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.org-card i {
    font-size: 40px;
    color: #1e6f9f;
    margin-bottom: 12px;
}

.org-card h4 {
    font-size: 17px;
    color: #1e3b4f;
    margin-bottom: 6px;
}

.org-card p {
    font-size: 13px;
    color: #7a8d9b;
}

/* 文章详情页特有样式 */
.detail-layout {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.detail-main {
    flex: 2.5;
    min-width: 300px;
}

.detail-sidebar {
    flex: 1;
    min-width: 280px;
}

.article-detail {
    background: #fff;
    border-radius: 16px;
    padding: 40px 48px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
}

.article-detail h2 {
    font-size: 28px;
    color: #1e2f3e;
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #8c9aa8;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eef2f6;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-body {
    font-size: 16px;
    line-height: 2;
    color: #3a4f60;
}

.article-body p {
    margin-bottom: 18px;
    text-indent: 2em;
}

.article-body h3 {
    font-size: 20px;
    color: #1e4663;
    margin: 28px 0 14px;
    padding-left: 12px;
    border-left: 3px solid #1e6f9f;
}

.article-body img {
    border-radius: 12px;
    margin: 20px auto;
    max-width: 100%;
}

.article-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}

.article-footer a {
    display: inline-block;
    max-width: 20em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: bottom;
    text-decoration: none;
    color: #1e6f9f;
}

.article-footer a:hover {
    text-decoration: underline;
    color: #0d47a1;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 18px;
    color: #1e4663;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f6;
}

.sidebar-card ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #eef0f4;
    font-size: 14px;
}

.sidebar-card ul li a {
    color: #2c4e6e;
    display: block;
    line-height: 1.4;
}

.sidebar-card ul li a:hover {
    color: #1e6f9f;
}

.sidebar-card ul li .side-date {
    font-size: 12px;
    color: #8c9aa8;
    margin-top: 4px;
}

/* ========== 头部与底部样式 ========== */
/* 头部导航区 */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e4663;
}

.logo p {
    font-size: 13px;
    color: #1e6f9f;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 28px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    color: #2c4e6e;
    padding: 8px 0;
}

nav ul li a:hover,
nav ul li a.active {
    color: #1e6f9f;
    border-bottom: 2px solid #1e6f9f;
}

.mobile-menu {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #1e4663;
}

/* 警情热线漂浮快捷 */
.hotline {
    background-color: #eef4fc;
    padding: 12px 0;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid #dfe8f0;
}

.hotline span {
    font-weight: 700;
    color: #d14;
    margin: 0 8px;
}

/* 底部 */
footer {
    background-color: #1e2f3e;
    color: #cbdae6;
    padding: 48px 0 24px;
    margin-top: 60px;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-info p {
    margin-top: 12px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: #7ab3c8;
}

.copyright {
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #2f4455;
    font-size: 13px;
}

/* ========== 响应式样式 ========== */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    nav ul {
        gap: 16px;
    }

    .detail-layout {
        flex-direction: column;
    }

    .article-detail {
        padding: 24px 20px;
    }

    .article-detail h2 {
        font-size: 22px;
    }

    .detail-sidebar {
        min-width: 100%;
    }
}
 .page-header-banner {
            background: linear-gradient(135deg, #1e4663 0%, #1e6f9f 100%);
            color: #fff;
            padding: 40px 0;
            text-align: center;
            margin-bottom: 36px;
            border-radius: 0 0 32px 32px;
        }
        .page-header-banner h2 {
            font-size: 32px;
            font-weight: 700;
        }

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .two-columns {
        flex-direction: column;
    }

    .left-col,
    .right-col {
        width: 100%;
    }

    .service-grid {
        gap: 12px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .swiper-slide img {
        height: 280px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    nav ul.show {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .header-main {
        padding: 12px 20px;
    }
     .page-header-banner {
                padding: 30px 0;
            }
            .page-header-banner h2 {
                font-size: 24px;
            }
}

/* ========== 特殊样式补充 ========== */
/* 卡片内独立链接样式（如有独立a标签，保证点击不触发卡片跳转） */
.news-card a:not(.card-overlay-link) {
    position: relative;
    z-index: 2;
}
/* 确保卡片内的任何可点击元素优先级高于卡片JS跳转 */