/* ========== 全局重置与主题色 ========== */
:root {
    --theme-blue: #0C386E;
    --bg-gray: #F5F6F8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, "Microsoft YaHei", sans-serif;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== 顶部导航 (Header) ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header .container {
    height: 100%;
}

.header .logo img {
    height: 50px;
    width: auto;
}

.header .nav-pc {
    display: flex;
    height: 100%;
}

.header .nav-pc > li {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
    cursor: pointer;
}

.header .nav-pc > li > a {
    font-size: 16px;
    color: #333;
}

.header .nav-pc > li:hover > a {
    color: var(--theme-blue);
    font-weight: 800;
}

.header .nav-pc > li.active > a {
    color: white;
    font-weight: 800;
}

.header .nav-pc > li.active {
    /*border-bottom: 3px solid var(--theme-blue);*/
    font-weight: 800;
    background-color: var(--theme-blue);
    /*color: var(--theme-blue);*/
    color: white;
}

.header .nav-pc .dropdown {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    background: #fff;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header .nav-pc > li:hover .dropdown {
    display: block;
}

.header .nav-pc .dropdown a {
    display: block;
    padding: 12px 20px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.header .nav-pc .dropdown a:hover {
    background: #f9f9f9;
    color: var(--theme-blue);
}

/* ========== 移动端菜单 ========== */
.menu-btn {
    display: none;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.menu-btn span {
    display: block;
    height: 2px;
    background: #333;
    width: 100%;
    transition: 0.3s;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    transition: 0.4s;
    overflow-y: auto;
    z-index: 1000;
}

.nav-mobile.open {
    left: 0;
}

.nav-mobile li {
    margin-bottom: 10px;
}

.nav-mobile li a {
    color: #fff;
    font-size: 18px;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile .sub-menu {
    display: none;
    padding-left: 20px;
}

.nav-mobile .sub-menu.open {
    display: block;
}

.nav-mobile .sub-menu a {
    font-size: 15px;
    color: #ccc;
    padding: 8px 0;
}

@media (max-width: 1024px) {
    .header .nav-pc {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .nav-mobile {
        display: block;
    }
}

/* ========== 底部样式优化 (Footer) ========== */
.footer {
    background: #fff;
    border-top: 1px solid #e8ecf1;
    padding: 50px 0 10px;
    /*margin-top: 40px;*/
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px 60px;
    padding-bottom: 35px;
    border-bottom: 1px solid #ebebeb;
}

.footer-brand {
    flex: 1;
    min-width: 260px;
}

.footer-brand p {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    line-height: 1.6;
    margin-bottom: 6px;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-links dl {
    margin: 0;
}

.footer-links dt {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-links dd {
    margin: 0;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.footer-links dd a {
    color: #666;
    transition: color 0.3s;
}

.footer-links dd a:hover {
    color: var(--theme-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social .item {
    position: relative;
    width: 44px;
    height: 44px;
    background: #f4f5f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    transition: 0.3s;
}

.footer-social .item:hover {
    background: var(--theme-blue);
    color: #fff;
    transform: translateY(-2px);
}

.footer-social .qr-popup {
    display: none;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 5px;
    border: 1px solid #eee;
    z-index: 10;
}

.footer-social .item:hover .qr-popup {
    display: block;
}

.footer-social .qr-popup img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-copyright {
    color: #888;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-beian {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px 0 5px;
    border-top: 1px solid #ebebeb;
    font-size: 13px;
    color: #999;
    margin-top: 25px;
}

.footer-beian a {
    color: #999;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-beian a:hover {
    color: var(--theme-blue);
}

.footer-beian img {
    height: 16px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        gap: 30px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .footer-links dl {
        min-width: 100px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-beian {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===== 通用页面 Banner（Layui 轮播） ===== */
.page-banner {
    position: relative;
    margin-top: 70px;
    height: 45vh;
    min-height: 200px;
    overflow: hidden;
    background: var(--bg-gray);
}

.page-banner .layui-carousel,
.page-banner .layui-carousel > [carousel-item] > * {
    width: 100%;
    height: 100%;
}

.page-banner .layui-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== 资讯/媒体报道列表页头 ===== */
.list-header {
    /*margin-top: 70px;*/
    padding: 46px 0 40px;
    background: linear-gradient(135deg, #f5f6f8 0%, #eef2f7 100%);
    border-bottom: 1px solid #e8ebef;
}

.list-header .container2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.list-header__tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--theme-blue);
    background: rgba(12, 56, 110, 0.08);
    border-radius: 4px;
    padding: 4px 10px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.list-header h1 {
    font-size: 34px;
    color: #222;
    margin-bottom: 10px;
    font-weight: 700;
}

.list-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .page-banner {
        min-height: 130px;
    }

    .list-header {
        padding: 28px 0 24px;
    }

    .list-header h1 {
        font-size: 26px;
    }
}

/* ===== 全站检索 ===== */
.header-search {
    position: relative;
    margin-left: 16px;
}

.header-search__btn {
    width: 38px;
    height: 38px;
    border: 1px solid #e5e8ee;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--theme-blue);
    font-size: 18px;
    transition: all 0.3s;
}

.header-search__btn:hover {
    background: var(--theme-blue);
    color: #fff;
    border-color: var(--theme-blue);
}

.header-search__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: 80vw;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    padding: 12px;
    display: none;
    z-index: 1001;
}

.header-search__panel.open {
    display: block;
}

.header-search__panel input {
    width: 100%;
    height: 40px;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.header-search__results {
    max-height: 360px;
    overflow: auto;
    margin-top: 8px;
    display: none;
}

.header-search__results.open {
    display: block;
}

.search-result-item {
    display: block;
    padding: 9px 10px;
    border-radius: 6px;
    text-decoration: none;
}

.search-result-item:hover,
.search-result-item.active {
    background: #f3f6fb;
}

.search-result-item .t {
    color: #1f2d3d;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-item .d {
    color: #8a94a6;
    font-size: 12px;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-item .tag {
    display: inline-block;
    font-size: 11px;
    color: var(--theme-blue);
    background: rgba(12, 56, 110, 0.08);
    border-radius: 3px;
    padding: 1px 6px;
    margin-right: 6px;
}

.header-search__hint {
    color: #9aa3b2;
    font-size: 12px;
    text-align: center;
    padding: 18px 0 10px;
}

.header-search__hint.hidden {
    display: none;
}

.search-result-more {
    display: block;
    text-align: center;
    color: var(--theme-blue);
    font-size: 13px;
    padding: 8px 0 4px;
}

@media (max-width: 1024px) {
    .header-search {
        margin-left: 8px;
    }

    .header-search__btn {
        width: 36px;
        height: 36px;
    }

    .header-search__panel {
        position: fixed;
        top: 64px;
        right: 12px;
        width: calc(100vw - 24px);
    }
}

/* ========== 公共友情链接（由首页迁入公共底部） ========== */
.ui-title-block {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    color: #222;
    margin-bottom: 40px;
    position: relative;
}

.ui-title-block::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--theme-blue);
}

.friend-links {
    padding: 60px 0 70px;
    background: #fff;
    border-top: 1px solid #eef1f5;
}

.friend-links__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 36px;
}

.friend-links__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 10px 14px;
    background: var(--bg-gray);
    border: 1px solid #edf0f4;
    border-radius: 8px;
    transition: all 0.3s;
}

.friend-links__item:hover {
    border-color: var(--theme-blue);
    box-shadow: 0 6px 18px rgba(12, 56, 110, 0.08);
    transform: translateY(-2px);
}

.friend-links__item img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
}

.friend-links__item span {
    font-size: 14px;
    color: #555;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .friend-links__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ui-title-block {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .friend-links {
        padding: 40px 0 48px;
    }

    .friend-links__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 26px;
    }

    .friend-links__item {
        min-height: 56px;
        padding: 8px 10px;
    }
}
