/* ==================== 导航栏样式 ==================== */

/* 导航栏外层容器 */
.navbar-wrapper {
    width: 100%;
    background-color: #1B6B7E;
}

/* 覆盖 Bootstrap 默认 navbar 样式 */
.navbar-custom {
    background-color: #1B6B7E;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    width: 100%;
}

.navbar-custom .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* 导航菜单列表 */
.navbar-custom .navbar-nav.navbar-main {
    display: table;
    table-layout: fixed;
    width: 100%;
    margin: 0;
}

.navbar-custom .navbar-nav.navbar-main > li {
    display: table-cell;
    float: none;
    width: auto;
    text-align: center;
    vertical-align: middle;
    position: relative;
}

/* 导航链接基础样式 */
.navbar-custom .navbar-nav > li > a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    padding: 0 8px;
    min-height: 55px;
    background-color: transparent;
    transition: background-color 0.2s ease;
    border-bottom: 3px solid transparent;
    white-space: normal;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.0;
}

/* 鼠标悬停效果 */
.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li > a:focus {
    background-color: #155A6A;
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* 选中/激活状态 */
.navbar-custom .navbar-nav > li.active > a,
.navbar-custom .navbar-nav > li.active > a:hover,
.navbar-custom .navbar-nav > li.active > a:focus {
    background-color: #155A6A;
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* English 菜单项特殊处理 */
.navbar-custom .navbar-nav > li.navbar-english > a {
    font-size: 14px;
    letter-spacing: 1px;
}

/* ==================== 下拉菜单样式（纯 CSS hover 实现） ==================== */

/* 下拉菜单容器 - 默认隐藏，宽度跟随父菜单项 */
.navbar-custom .navbar-nav > li > .dropdown-menu {
    background-color: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 0;
    padding: 0;
    min-width: 0;
    width: 100%;
    text-align: center;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
}

/* 桌面端：鼠标悬停时显示下拉菜单（纯 CSS） */
@media (min-width: 768px) {
    .navbar-custom .navbar-nav > li.dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* 下拉菜单项 */
.navbar-custom .navbar-nav > li > .dropdown-menu > li > a {
    color: #333333;
    font-size: 12px;
    padding: 12px 12px;
    line-height: 1.0;
    white-space: normal;
    word-break: break-all;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

/* 下拉菜单项悬停 */
.navbar-custom .navbar-nav > li > .dropdown-menu > li > a:hover,
.navbar-custom .navbar-nav > li > .dropdown-menu > li > a:focus {
    background-color: #f5f5f5;
    color: #1B6B7E;
    border-left-color: #fb4d4d;
}

/* 下拉菜单分割线 */
.navbar-custom .navbar-nav > li > .dropdown-menu > li + li > a {
    border-top: 1px solid #eeeeee;
}

/* ==================== 移动端适配 ==================== */

/* 折叠按钮样式 */
.navbar-custom .navbar-toggle {
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: 12px;
    margin-bottom: 12px;
}

.navbar-custom .navbar-toggle:hover,
.navbar-custom .navbar-toggle:focus {
    background-color: #155A6A;
}

.navbar-custom .navbar-toggle .icon-bar {
    background-color: #ffffff;
}

/* 移动端展开时的样式 */
@media (max-width: 767px) {
    .navbar-custom .navbar-nav.navbar-main {
        display: block;
        width: 100%;
    }

    .navbar-custom .navbar-nav.navbar-main > li {
        display: block;
        float: none;
        text-align: left;
    }

    .navbar-custom .navbar-nav > li > a {
        line-height: 45px;
        height: 45px;
        padding: 0 20px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .navbar-custom .navbar-nav > li > a:hover,
    .navbar-custom .navbar-nav > li.active > a {
        border-bottom-color: transparent;
        border-left-color: #ffffff;
    }

    /* 移动端下拉菜单使用 Bootstrap 默认显示方式 */
    .navbar-custom .navbar-nav > li.dropdown > .dropdown-menu {
        display: none;
        box-shadow: none;
        position: static;
        float: none;
        width: 100%;
    }

    .navbar-custom .navbar-nav > li.dropdown.open > .dropdown-menu {
        display: block;
    }

    .navbar-custom .navbar-nav > li > .dropdown-menu > li > a {
        padding: 10px 30px;
        text-align: left;
    }
}

/* ==================== 轮播图文字居中 ==================== */

/* 覆盖 Bootstrap 默认的底部定位，改为真正的水平+垂直居中 */
.carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    transform: translateY(-50%);
    text-align: center;
    padding: 0 15px;
}

.carousel .carousel-caption h1 {
    font-size: clamp(80px, 10vw, 150px);
    font-family: "Microsoft YaHei", "SimHei", "SimSun", "FangSong", 
                "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
                Helvetica, Arial, monospace, sans-serif, system-ui;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0 0 15px 0;
}

.carousel .carousel-caption p {
    font-size: clamp(15px, 1.5vw, 30px);
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* 移动端：Bootstrap 默认会隐藏 carousel-caption，这里让文字也能显示 */
@media (max-width: 767px) {
    .carousel .carousel-caption {
        display: block;
    }

    .carousel .carousel-caption h1 {
        font-size: 28px;
    }

    .carousel .carousel-caption p {
        font-size: 14px;
    }
}

/* ==================== 功能板块 ==================== */

.section-block {
    padding: 40px 0 30px 0;
    background-color: #f7f9fb;
}

/* 单个板块容器 */
.section-block .info-block {
    margin-bottom: 25px;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 板块头部 */
.info-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.info-block-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    display: flex;
    align-items: center;
}

/* 标题前的彩色竖条 */
.accent-bar {
    display: inline-block;
    width: 4px;
    height: 18px;
    margin-right: 10px;
    border-radius: 2px;
}

.accent-blue { background-color: #1B6B7E; }
.accent-red { background-color: #d9534f; }
.accent-green { background-color: #5cb85c; }
.accent-orange { background-color: #f0ad4e; }

/* 更多链接 */
.info-more {
    font-size: 13px;
    color: #888888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-more:hover {
    color: #1B6B7E;
    text-decoration: none;
}

/* 列表 */
.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-list li {
    border-bottom: 1px dashed #e0e0e0;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 10px;
}

.info-list li a:hover {
    padding-left: 5px;
}

/* 标题文字 — 单行省略号截断 */
.info-title {
    flex: 1;
    font-size: 14px;
    color: #444444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.info-list li a:hover .info-title {
    color: #1B6B7E;
}

/* 日期 */
.info-date {
    flex-shrink: 0;
    font-size: 13px;
    color: #aaaaaa;
    font-family: "Helvetica Neue", Arial, sans-serif;
    padding-left: 10px;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .section-block .info-block {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .section-block {
        padding: 25px 0 15px 0;
    }

    .section-block .info-block {
        padding: 0 20px;
    }

    .info-block-header h3 {
        font-size: 16px;
    }

    .info-title {
        font-size: 13px;
    }
}

/* ==================== 友情链接 & 下载中心 & 联系我们 ==================== */

.links-section {
    padding: 35px 0 20px 0;
    background-color: #ffffff;
    border-top: 1px solid #e8e8e8;
}

/* 让 row 变成 flex 容器，子列自动等高 */
.links-section .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.links-section .links-col {
    margin-bottom: 25px;
    padding: 0 15px;
    display: flex;
}

/* 卡片 */
.links-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.links-card:hover {
    box-shadow: 0 6px 20px rgba(27, 107, 126, 0.12);
    transform: translateY(-2px);
}

/* 卡片头部 — 固定高度 */
.links-card-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #1B6B7E, #249FB1);
    color: #ffffff;
    min-height: 48px;
}

.links-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* 头部图标（纯 CSS 绘制） */
.links-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    position: relative;
}

/* 链接图标：链条 */
.links-icon-chain::before {
    content: "🔗";
    font-size: 13px;
    line-height: 1;
}

/* 下载图标 */
.links-icon-download::before {
    content: "📥";
    font-size: 13px;
    line-height: 1;
}

/* 邮件图标 */
.links-icon-mail::before {
    content: "✉";
    font-size: 12px;
    line-height: 1;
}

/* 卡片主体 — 自动填充剩余空间 */
.links-card-body {
    flex: 1;
    padding: 12px 18px 16px 18px;
}

/* 链接列表 */
.friend-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.friend-links li {
    height: 38px;
    border-bottom: 1px dashed #eeeeee;
    overflow: hidden;
}

.friend-links li:last-child {
    border-bottom: none;
}

.friend-links li a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 13.5px;
    color: #555555;
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1;
}

.friend-links li a::before {
    content: "›";
    color: #1B6B7E;
    font-weight: bold;
    margin-right: 6px;
}

.friend-links li a:hover {
    color: #1B6B7E;
    padding-left: 4px;
}

/* 联系我们 — 独立样式 */
.contact-info {
    flex: 1;
    padding: 12px 18px 16px 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    height: 38px;
    border-bottom: 1px dashed #eeeeee;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    flex-shrink: 0;
    width: 100px;
    font-size: 13px;
    color: #1B6B7E;
    font-weight: 500;
}

.contact-value {
    flex: 1;
    font-size: 13px;
    color: #555555;
    word-break: break-all;
}

/* ==================== 底部版权 ==================== */

.site-footer {
    background-color: #2c3e50;
    padding: 18px 0;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 13px;
    color: #a8b5c2;
    letter-spacing: 1px;
}

/* ==================== 链接板块响应式 ==================== */

@media (max-width: 991px) {
    .links-section .links-col {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .links-section {
        padding: 25px 0 15px 0;
    }

    .links-card-header h3 {
        font-size: 15px;
    }

    .links-card-body {
        padding: 12px 15px 15px 15px;
    }

    .friend-links li a,
    .contact-label,
    .contact-value {
        font-size: 13px;
    }
}

/* ==================== 顶部 Logo / 导航 / 轮播 三栏全宽对齐 ==================== */

/* 统一 body 基础：清除 Bootstrap 可能加的边距 */
body {
    margin: 0;
    padding: 0;
}

/* 顶部 Logo 区：取消 row 的负 margin 和 col 的 padding，确保全宽 */
.top-logo-bar .row {
    margin-left: 0;
    margin-right: 0;
}

.top-logo-bar [class^="col-"] {
    padding-left: 0;
    padding-right: 0;
}

/* 顶部 Logo 图片：撑满列宽 */
.top-logo-bar img {
    display: block;
    width: 100%;
    height: auto;
}

/* 导航栏：已在之前设置了 .container-fluid padding:0 */
/* 轮播图：carousel-inner 需取消额外边距 */
.carousel {
    margin: 0;
    padding: 0;
}

.carousel .carousel-inner {
    padding: 0;
}

.carousel .item img {
    display: block;
    width: 100%;
    height: auto;
}

/* 导航栏的 row/col 也取消额外边距 */
.navbar-custom .row {
    margin-left: 0;
    margin-right: 0;
}

/* body 变成纵向 flex 容器，main 自动填充剩余空间，footer 永远在最底 */
body.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.site-body .page-main {
    flex: 1;
}

/* ==================== 列表页：主体布局 ==================== */

.page-main {
    padding: 25px 0 30px 0;
    background-color: #f7f9fb;
}

.list-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0;
}

.sidebar-col,
.content-col {
    padding: 0 15px;
}

/* ==================== 左侧分类侧边栏 ==================== */

.sidebar {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1B6B7E, #249FB1);
    color: #ffffff;
}

.sidebar-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-icon {
    margin-right: 8px;
    font-size: 18px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 14px;
    color: #555555;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-menu li a:hover {
    background-color: #f3f8f9;
    color: #1B6B7E;
    border-left-color: #249FB1;
}

.sidebar-menu li.active a {
    background-color: #f3f8f9;
    color: #1B6B7E;
    border-left-color: #1B6B7E;
    font-weight: 500;
}

.menu-arrow {
    color: #cccccc;
    font-size: 16px;
    line-height: 1;
}

.sidebar-menu li.active .menu-arrow,
.sidebar-menu li a:hover .menu-arrow {
    color: #1B6B7E;
}

/* ==================== 右侧内容区 ==================== */

.content-col {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 20px 25px;
}

/* 面包屑 */
.breadcrumb-bar {
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #888;
}

.breadcrumb-label {
    color: #888;
}

.breadcrumb-bar a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-bar a:hover {
    color: #1B6B7E;
    text-decoration: none;
}

.breadcrumb-sep {
    margin: 0 6px;
    color: #bbb;
}

.breadcrumb-current {
    color: #1B6B7E;
}

/* 板块标题 */
.list-title-bar {
    padding-bottom: 12px;
    margin-bottom: 5px;
    border-bottom: 2px solid #1B6B7E;
}

.list-title-bar h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1B6B7E;
}

/* 新闻列表 */
.news-list {
    list-style: none;
    margin: 0;
    padding: 10px 0 0 0;
}

.news-list li {
    border-bottom: 1px dashed #e8e8e8;
}

.news-list li:last-of-type {
    border-bottom: none;
}

.news-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-list li a:hover {
    padding-left: 6px;
}

.news-title {
    flex: 1;
    font-size: 14px;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.news-list li a:hover .news-title {
    color: #1B6B7E;
}

.news-date {
    flex-shrink: 0;
    font-size: 13px;
    color: #aaaaaa;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* 分页 */
.pagination-wrap {
    padding-top: 20px;
    text-align: center;
}

.pagination-wrap .pagination {
    margin: 0;
}

.pagination-wrap .pagination > li > a {
    color: #555;
    border-color: #e5e5e5;
}

.pagination-wrap .pagination > li > a:hover,
.pagination-wrap .pagination > li > a:focus {
    color: #1B6B7E;
    border-color: #1B6B7E;
}

.pagination-wrap .pagination > li.active > a,
.pagination-wrap .pagination > li.active > a:hover {
    background-color: #1B6B7E;
    border-color: #1B6B7E;
    color: #fff;
}

.pagination-wrap .pagination > li.disabled > a {
    color: #ccc;
}

/* ==================== 列表页响应式 ==================== */

@media (max-width: 991px) {
    .list-row {
        margin: 0;
    }

    .content-col {
        padding: 18px 20px;
    }
}

@media (max-width: 767px) {
    .page-main {
        padding: 15px 0 20px 0;
    }

    .content-col {
        padding: 15px;
        border-radius: 4px;
    }

    .list-title-bar h2 {
        font-size: 18px;
    }

    .news-list li a {
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .news-title {
        font-size: 14px;
        flex: 0 0 100%;
    }

    .news-date {
        font-size: 12px;
    }
}
