/**
 * wenzhang.css - 文章内容页样式
 */

/* --- 全局重置 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    color: #333;
    font-size: 14px;
    background-color: #fff;
    line-height: 1.8;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 主容器 */
.container {
    width: 72vw; /* 与面包屑保持一致 */
    margin: 0 auto;
}

/* --- 标题区域 (左对齐) --- */
h1.article-title {
    font-size: 26px;
    color: #222;
    text-align: left; 
    margin-bottom: 20px;
    font-weight: normal; 
    line-height: 1.4;
}

/* --- 信息栏 (左对齐 + 圆角) --- */
.article-meta {
    background-color: #f2f2f2; 
    padding: 10px 20px;       
    text-align: left;         
    color: #444;              
    font-size: 12px;
    margin-bottom: 40px;
    border-radius: 6px;       
}

/* --- 正文区域 --- */
.article-body {
    font-size: 17px;
    color: #333;
    line-height: 2;
}

.article-body p {
    margin-bottom: 25px;
    /* text-indent: 2em;  */
    text-align: justify; 
}

.article-body p[style*="text-align: center"],
.article-body p[style*="text-align:center"] {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    text-align: center;
}

/* 英文模式下取消首行缩进 */
.lang-en .article-body p {
    text-indent: 0 !important;
}

/* 使p标签内的图片居中并添加圆角 */
.article-body p img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* 为相邻图片之间添加额外间隔 */
.article-body p img + img {
    margin-top: 15px;
}

/* 使文章内容中的视频标签响应式显示 */
.article-body video {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    margin-bottom: 25px;
}

.bold-text {
    font-weight: bold;
    text-indent: 0 !important;
    text-align: left !important;
}

/* 图片容器样式 */
.art-figure {
    background-color: #e6e6e6; 
    padding: 25px;
    margin: 40px auto 10px auto; 
    display: table; 
    max-width: 100%;
}

.art-figure img {
    display: block;
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}

.img-caption {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 50px;
    font-family: 'CustomArial', 'SourceHanSansCN', 'CustomArialUnicode';
}

/* --- 分页 Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 60px 0 60px 0;
}

.pagination a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background-color: #f5f5f5;
    color: #666;
    font-size: 13px;
    border-radius: 2px;
}

.pagination a.active {
    background-color: #b62518;
    color: #fff;
}

.pagination a:hover:not(.active) {
    background-color: #e0e0e0;
}

/* --- 相关新闻 --- */
.related-section {
    margin-top: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 20px;
    font-weight: normal;
    color: #333;
    letter-spacing: 1px;
    display: inline-block;
}

/* 针对"新闻"二字的红色下划线 */
.news-underline {
    border-bottom: 3px solid #c84a3a;
    padding-bottom: 6px;
}

/* 长黄线 */
.gold-divider {
    width: 100%;
    height: 10px;
    background-color: #fdf1e1;
    margin-bottom: 40px;
}

.news-grid-container {
    display: flex;
    justify-content: space-between;
}

.news-column {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.news-column.left-col {
    border-right: 1px dashed #ddd;
    padding-right: 40px;
}

.news-column.right-col {
    padding-left: 40px;
}

.news-item {
    margin-bottom: 40px;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
}

.news-date-tag {
    background-color: #f8eed8;
    color: #000;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 10px;
    margin-right: 10px;
}

.news-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* 标准属性 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部社交条 */
.social-bar { 
    text-align: center; 
    padding: 10px 0 50px 0;
}

.social-icons { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 35px; 
    margin-bottom: 0;
}

.social-icon-img { 
    height: 32px; 
    width: auto; 
    cursor: pointer; 
    transition: transform 0.2s;
    display: block;
}
.social-icon-img:hover { 
    transform: scale(1.1); 
}

/* 全屏图片显示 */
.social-full-banner { 
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
}

.social-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================= 手机端适配 ================= */
.mobile-nav {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

@media screen and (max-width: 768px) {
    /* 隐藏 PC 端 Header */
    .header-component-wrapper {
        display: none !important;
    }
    
    /* Banner 适配 */
    .banner {
        display: flex !important;
        height: 230px;
        margin-top: 90px; /* 紧接在 header 下方 */
        background-size: cover;
        position: relative;
    }

    .banner img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover;
    }

    .banner-text-container {
        width: 100%;
        padding: 0 20px;
        justify-content: flex-start;
    }

    .banner-title-group {
        height: 40px;
        transform: translateY(0);
    }

    .banner-red-line {
        height: 80%;
        margin-right: 15px;
        width: 4px;
    }

    .banner-main-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    /* 显示手机端导航 */
    .mobile-nav {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        height: 90px;
        background-color: rgba(174, 31, 3, 0.9); /* #ae1f03 at 90% opacity */
        position: fixed;
        top: 0; left: 0; z-index: 1000;
        padding: 0 15px;
    }

    .mobile-menu-btn, .mobile-search-btn {
        color: #fff;
        font-size: 20px;
        cursor: pointer;
        width: 40px;
        height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-right-tools {
        display: flex;
        height: 90px;
        align-items: center;
    }

    .mobile-lang-btn {
        color: #fff;
        font-size: 12px;
        font-weight: bold;
        cursor: pointer;
        border: 1px solid #fff;
        border-radius: 2px;
        padding: 3px 6px;
        margin-left: 10px;
        height: auto;
        width: auto;
        display: inline-block;
        line-height: 1;
    }

    .mobile-logo-box {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        background-color: transparent;
        height: 90px;
        width: 160px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: none;
        z-index: 1001;
    }

    .mobile-logo-box img {
        max-width: 80%;
        max-height: 80%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    /* 手机端全屏菜单样式 */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 2000;
        display: none;
        flex-direction: column;
        justify-content: flex-start;
    }

    .mobile-menu-content {
        width: 100%;
        background-color: transparent;
        max-height: 80vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-header {
        display: flex;
        height: 90px;
        width: 100%;
    }

    .mobile-menu-close {
        width: 70px;
        height: 90px;
        background-color: #ae1f03; /* 使用指定的红色 */
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .mobile-menu-close i {
        color: #fff;
        font-size: 50px;
    }

    .mobile-menu-logo {
        flex: 1;
        min-width: 0;
        background-color: #000;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0 20px;
    }

    .mobile-menu-logo img {
        height: auto;
        max-height: 100px;
        width: 100%;
    }

    .mobile-menu-list {
        background-color: #000;
        padding-left: 20px;
        display: flex;
        flex-direction: column;
        margin-left: 70px;
    }

    .mm-item {
        width: 100%;
        border-bottom: 1px solid #333;
    }

    .mm-link, .mm-link-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        color: #fff;
        font-size: 18px;
        text-decoration: none;
        cursor: pointer;
        background-color: #000;
        transition: background-color 0.3s;
    }

    .mm-link:hover, .mm-link-wrapper:hover {
        background-color: #1a1a1a;
    }

    .mm-item.active .mm-link-wrapper {
        background-color: #606060;
    }

    .mm-link-text {
        font-weight: normal;
    }

    .mm-arrow-box {
        padding-left: 15px;
        border-left: 1px solid #999;
        display: flex;
        align-items: center;
        height: 14px;
    }

    .mm-item.active .mm-arrow-box {
        border-left-color: #000;
    }

    .mm-arrow {
        font-size: 14px;
        color: #fff;
        transition: transform 0.3s;
    }

    .mm-item.active .mm-arrow {
        transform: rotate(180deg);
        color: #fdb933;
    }

    .mm-submenu {
        display: none;
        background-color: #212121;
        padding: 0;
        border-right: 15px solid #606060;
    }

    .mm-item.active .mm-submenu {
        display: block;
    }

    .mm-sub-link {
        display: block;
        padding: 12px 20px;
        color: #ccc;
        font-size: 16px;
        text-decoration: none;
        border-bottom: 1px solid #444;
    }

    .mm-sub-link:last-child {
        border-bottom: none;
    }

    .mm-sub-link.active {
        color: #fdb933;
    }

    body {
        padding-top: 0;
    }

    /* 面包屑适配 */
    .breadcrumb {
        padding: 16px 15px;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        font-size: 0;
        color: #333;
        width: calc(100% + 30px);
        margin-left: -15px;
        background-color: #fff;
        position: relative;
        z-index: 5;
    }

    .breadcrumb > a:first-child {
        display: inline-block;
        width: 32px;
        height: 32px;
        background: url('../img/icon-27.png') no-repeat center center;
        background-size: contain;
        font-size: 0;
        margin-right: 15px;
        position: relative;
    }

    .breadcrumb > a:first-child::after {
        content: '';
        position: absolute;
        right: -15px;
        top: 3px;
        height: 26px;
        width: 2px;
        background-color: #ddd;
    }

    .breadcrumb span,
    .breadcrumb a {
        font-size: 18px;
        color: #333;
        font-family: 'CustomArial', 'SourceHanSansCN', 'CustomArialUnicode';
    }

    .breadcrumb span {
        margin-left: 0;
        font-weight: normal;
    }

    .breadcrumb span:first-of-type {
        margin-left: 15px;
    }

    .breadcrumb span:not(:last-child)::after {
        content: '>';
        margin-left: 8px;
        margin-right: 8px;
        color: #666;
        font-weight: normal;
        display: inline-block;
        vertical-align: middle;
        width: auto;
        height: auto;
        background-color: transparent;
    }

    /* 容器适配 */
    .container {
        width: 100%;
        padding: 0 15px;
    }

    /* 文章标题适配 */
    h1.article-title {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    /* 文章元数据适配 */
    .article-meta {
        padding: 10px;
        margin-bottom: 20px;
    }

    /* 正文适配 */
    .article-body p {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .article-body p img {
        max-width: 100%;
    }

    .art-figure {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    /* 相关新闻适配 */
    .related-section {
        display: none !important;
    }

    /* 隐藏社交图标和新媒体矩阵 */
    .social-bar,
    .social-full-banner,
    .pagination {
        display: none !important;
    }
    
    /* 搜索栏适配 */
    .header-search-bar {
        position: fixed;
        top: 90px;
        background-color: rgba(31, 31, 31, 0.95);
        height: auto;
        padding: 30px 0;
        z-index: 999;
    }

    .header-search-bar .search-container {
        width: 90%;
        max-width: none;
    }
}
