:root {
    --primary-blue: #1a4f85;
    --secondary-blue: #114d7a;
    --light-blue: #e6f0fa;
    --accent-teal: #00a8b0;
    --dark-gray: #333;
    --light-gray: #f8f9fa;
}

/* .position {
    color: #333;
} */
a {
    color: #333;
    text-decoration: none;
}

body {
    /* font-family: 'Microsoft YaHei', Arial, sans-serif; */
    font-family: 'PingFang SC', "XHW-pzh", 'Lantinghei SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', '微软雅黑', STHeitiSC-Light, simsun, '宋体', 'WenQuanYi Zen Hei', 'WenQuanYi Micro Hei', sans-serif;
    color: #333;
    /* background-color: #f5f7fa; */
    /* background: linear-gradient(135deg, #e6f0fa 0%, #c3dbf7 100%); */
    min-height: 100vh;
}

/* 顶部导航样式 */
.top-bar {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.logo-container {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-container .row {
    --bs-gutter-x: 0;
}

.logo-container .col-md-6 {
    padding-right: 0;
    padding-left: 0;
}

.logo-container {
    /* background: url('./img/vbodybg2.png') no-repeat left center; */
    background: url(../img/vbodybg2.png) no-repeat center -30px #fff;
}

.lang-switch-container {
    position: relative;
    /* height: 40px; */
    height: 100px;
    margin-top: 0px;
}

.lang-switch {
    position: absolute;
    bottom: 0;
    right: 0;
}

.lang-btn {
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.lang-btn.active {
    background-color: white;
    color: var(--primary-blue);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lang-btn:not(.active) {
    background-color: var(--accent-color);
    /* 使用强调色增加可见性 */
    /* color: white; */
    /* color:black; */
    color: var(--primary-blue);
    opacity: 0.9;
}

.lang-btn:not(.active):hover {
    background-color: #d86b5f;
    opacity: 1;
}

/* 增加悬停动画效果 */
.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 新增指示器 */
.lang-indicator {
    top: -8px;
    right: 0;
    color: var(--primary-blue);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
}

.main-nav {
    /* background-color: var(--secondary-blue); */
    background: linear-gradient(to right, #5b9dce 0%, #3073aa 5%, #5b9dce 100%);
    padding: 0;
    max-width: 1300px;
    margin: 0 auto;
}

.main-nav .nav-link {
    color: white !important;
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.main-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* 下拉菜单优化 */
.dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: middle;
    border-top: 0.4em solid;
    border-right: 0.4em solid transparent;
    border-left: 0.4em solid transparent;
}

.navbar-nav .dropdown-menu {
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    padding: 8px 0;
}

.dropdown-item {
    padding: 10px 20px !important;
    font-size: 15px;
    color: #2a3a52 !important;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #e9ecef !important;
    color: #1a6fb4 !important;
    border-left: 3px solid #1a6fb4;
}

.dropdown-item::before {
    content: "·";
    margin-right: 10px;
    font-weight: bold;
    color: #1a6fb4;
}

.dropdown-item:hover::before {
    color: #0a4b8f;
}

/* 激活菜单项指示器 */
.dropdown.show .nav-link {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

/* 主体内容样式 */
.main-content {
    padding: 18px 0;
}

.section-title {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    font-size: 20px;
}

.news-list {
    padding: 20px;
}

.news-container {
    background: #f8f9fa;
    /* border-radius: 1px; */
    padding: 0px;
    border-bottom: 1px solid #efefef;
    margin-bottom: 20px;

    border-top: 1px solid #bfbfbf;
}

.news-header {
    font-size: 20px;
    /* margin-top: -5px; */
    font-weight: 700;
    color: #000;
}

.news-title a {
    color: #000;
    text-decoration: none;
}

.news-header a {
    display: inline-block;
    position: relative;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    padding-top: 10px;
}

.news-header a:hover {
    text-decoration: none;
    color: #ff9724 !important
}

.news-header a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: #2b6bd6;
}

.news-list {
    margin-top: -10px;
    padding: 0;
}

.carousel-item img {
    height: 376px;
    object-fit: cover;
}


.news-item {
    padding: 8px 0;
    /* border-bottom: 1px solid #eee; */
    display: flex;
    transition: all 0.3s;
    align-items: center;
    margin-left: 20px;
}

.news-item:hover {
    background-color: var(--light-blue);
    padding-left: 10px;
}

.news-title:before {
    content: "";
    display: inline-block;
    /* 改为行内块元素[6,7](@ref) */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    /* 确保垂直居中[7](@ref) */
    width: 4px;
    height: 4px;
    border-radius: 50%;
    /* 创建完美圆形[6,8](@ref) */
    /* background-color: #027bfb;  */
    border: 2px solid #027bfb;
    /* 蓝色边框 */
    transition: all 1s ease;
    /* 平滑过渡效果 */
    /* 添加微光效果[8](@ref) */
    /* box-shadow: 0 0 5px rgba(2, 123, 251, 0.5);  */
}



.news-title {
    /* font-size: 18px;
    font-weight: 500;
    flex-grow: 1;  */

    position: relative;
    /* 为伪元素定位提供参考 */
    padding-left: 16px;
    /* 为圆点预留空间 */
    font-size: 12px;
    font-weight: 500;
    flex-grow: 1;
    display: flex;
    align-items: center;
    /* 垂直居中 */
}

.news-date {
    color: #777;
    min-width: 90px;
    font-size: 0.85em;
    margin-left: 20px;
}

.live-badge {
    background-color: var(--accent-teal);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
    margin-left: 10px;
}

/* 特色直播样式 */
.featured-live {
    background: linear-gradient(135deg, #2c6fb7 0%, #1a4f85 100%);
    color: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.live-content {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.live-banner {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

.live-topic {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.live-time {
    background-color: white;
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-live {
    background-color: #ff6b6b;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-live:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.world-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 120px;
    opacity: 0.2;
}

/* 或增加链接内边距（更推荐） */
.navbar-nav .nav-link {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .main-nav .nav-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lang-switch {
        margin: 15px 0;
    }

    .live-topic {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .news-date {
        margin-bottom: 5px;
    }

    .world-icon {
        display: none;
    }

    .navbar-nav .nav-link {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .dropdown-menu {
        box-shadow: none !important;
        border: none;
        background-color: rgba(248, 249, 250, 0.95);
    }
}

@media (max-width: 441px) {
    .logo {
        display: none;
    }
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
}

@media (max-width: 441px) {
    .carousel-item img {
        height: 200px;
    }
}


/* footer */
/* 页脚样式 - 核心部分 */
.gov-footer {
    background: linear-gradient(to bottom, #ffffff, #a5dbfe);
    width: 100%;
    padding: 15px 10%;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #d2e7fb;
    z-index: 10;
}

.footer-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-badges {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-right: 50px;
}

.footer-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.badge-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-line {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1px;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    justify-content: center;
}

.info-divider {
    margin: 0 15px;
    color: #ccc;
}

.contact-info {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.copyright {
    text-align: center;
    padding: 15px 0;
    color: #7a95b0;
    font-size: 13px;
    width: 100%;
    margin-top: 15px;
    border-top: 1px dashed #c9dfee;
}

/* 悬浮动画效果 */
.footer-badge {
    transition: transform 0.3s ease;
}

.footer-badge:hover {
    transform: translateY(-3px);
}

.article-list-img {
    width: 120px;
    max-height: 120px;
}

/* page */
.pagination{
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}
/* 添加基本的页码样式 */
.pagebar a {
    display: inline-block; /* 使链接水平排列 */
    padding: 8px 15px; /* 添加内边距 */
    margin: 0 5px; /* 添加外边距 */
    border: 1px solid #ddd; /* 添加边框 */
    border-radius: 5px; /* 圆角边框 */
    text-decoration: none; /* 移除下划线 */
    color: #333; /* 文字颜色 */
    /*font-weight: bold; !* 加粗文字 *!*/
}

/* 为当前页面链接添加特定的样式 */
.pagebar .current {
    background-color: #2c8efc; /* 设置背景颜色 */
    color: white; /* 设置文字颜色 */
    border-color: #2c8efc; /* 设置边框颜色 */
    z-index: 1; /* 确保当前页面链接在视觉上突出 */
}

.pagebar .page_active {
    background-color: #2c8efc; /* 设置背景颜色 */
    color: white; /* 设置文字颜色 */
    border-color: #2c8efc; /* 设置边框颜色 */
    z-index: 1; /* 确保当前页面链接在视觉上突出 */
}
.page_white {
    text-decoration: none; /* 移除下划线 */
    color: inherit; /* 保持与周围文本相同的颜色 */
    cursor: text; /* 设置鼠标悬停时的光标为文本选择器 */
    padding: 0; /* 移除内边距 */
    margin: 0; /* 移除外边距 */
    border: none !important;
}

/* 鼠标悬停时的样式 */
.pagebar a:hover {
    background-color: #e9ecef;
    color: #2c8efc;
}

.pagebar .disabled {
    color: #ccc;          /* 文字颜色变灰 */
    pointer-events: none; /* 防止鼠标点击 */
    text-decoration: none; /* 移除下划线 */
}
/* page end */
@media (max-width: 380px) {
    .article-list-img {
        width: 0px;
    }
}

@media (max-width: 768px) {
    .footer-wrapper {
        flex-direction: column;
    }

    .footer-badges {
        margin-right: 0;
        margin-bottom: 25px;
    }

    .footer-info {
        min-width: 100%;
        text-align: center;
    }

    .info-divider {
        display: none;
    }

    .footer-item {
        width: 100%;
        margin-bottom: 8px;
    }

    .art-body-img{
        width: 100%;
    }
}