/* ==========================================================================
   文章详情页样式 (article-detail.css)
   ========================================================================== */

/* 针对 Fixed 导航的基础修复 */
.header.Fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999 !important; 
    background: #002c57; 
}

/* ==========================================================================
   PC 端专用导航修复 (仅在屏幕宽度 >= 992px 时生效)
   ========================================================================== */
@media (min-width: 992px) {
    .header.Fixed .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header.Fixed .nav {
        display: flex;
        flex-wrap: nowrap; /* 强制不换行，防止被挤出屏幕 */
    }

    .header.Fixed .nav > li > a {
        padding: 0 12px !important; 
        font-size: 15px;
        white-space: nowrap;
    }

    /* 二级菜单样式 */
    .header.Fixed .dropdown-box {
        z-index: 10000 !important;
        background-color: #002c57 !important; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        border-radius: 0 0 6px 6px;
    }

    .header.Fixed .dropdown-box a {
        color: #ffffff !important;
        transition: all 0.2s;
    }

    .header.Fixed .dropdown-box a:hover {
        color: #cfe0f5 !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
}

/* ==========================================================================
   移动端专用导航修复 (仅在屏幕宽度 <= 991px 时生效)
   ========================================================================== */
@media (max-width: 991px) {
    /* 强制隐藏 PC 端的平铺导航 */
    .header.Fixed .nav {
        display: none !important;
    }
    /* 强制显示左上角的汉堡按钮 (对应原 header.html 里的 <a href="#menu">) */
    .header.Fixed .menu-btn {
        display: block !important;
    }
}

/* ==========================================================================
   面包屑导航（深蓝色）
   ========================================================================== */
.breadcrumb-bar {
    background: #002c57 !important;
    border-bottom: none !important;
    padding: 15px 0 !important;
    position: relative;
    z-index: 10; 
    /* 如果固定导航遮挡了面包屑，请取消下面这行的注释 */
    /* margin-top: 80px; */ 
}

.breadcrumb-bar nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* 手机端允许换行 */
}

.breadcrumb-bar,
.breadcrumb-bar a,
.breadcrumb-bar .current,
.breadcrumb-bar .sep {
    color: #ffffff !important;
    font-size: 14px;
}

.breadcrumb-bar a:hover {
    color: #cfe0f5 !important;
}

.breadcrumb-bar .sep {
    opacity: 0.6;
    margin: 0 8px;
}

/* ==========================================================================
   基础布局
   ========================================================================== */
.article-layout {
    display: flex;
    gap: 40px;
    padding: 30px 0 60px;
    align-items: flex-start;
}

.article-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 0 30px;
}

.article-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* ==========================================================================
   文章头部与基础信息
   ========================================================================== */
.article-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #888;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   GEO: 核心摘要区
   ========================================================================== */
.article-summary {
    background: #f0f5ff;
    border-left: 4px solid #002c57;
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
}

.summary-title {
    font-size: 16px;
    font-weight: 700;
    color: #002c57;
    margin-bottom: 10px;
    margin-top: 0;
}

.article-summary p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

/* ==========================================================================
   关键信息卡片
   ========================================================================== */
.article-meta-info {
    margin-bottom: 30px;
}

.meta-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.meta-info-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    color: #999;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* ==========================================================================
   文章目录 (TOC)
   ========================================================================== */
.article-toc {
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.toc-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 2px 0;
}

.toc-list a:hover {
    color: #002c57;
}

.toc-list .toc-h3 {
    padding-left: 20px;
}

.toc-list .toc-h3 a {
    font-size: 13px;
    color: #777;
}

/* ==========================================================================
   正文内容样式
   ========================================================================== */
.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 40px;
    word-wrap: break-word;
}

.article-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 35px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #1a1a1a;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 12px;
    color: #222;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content blockquote {
    border-left: 4px solid #002c57;
    background: #f7f9fc;
    padding: 15px 20px;
    margin: 20px 0;
    color: #555;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    padding-left: 25px;
    margin-bottom: 18px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content a {
    color: #002c57;
    text-decoration: underline;
}

/* ==========================================================================
   标签与底部栏目分类
   ========================================================================== */
.article-tags {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tags-label {
    font-size: 14px;
    color: #888;
}

.tag-item {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f7fa;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-item:hover {
    background: #002c57;
    color: #fff;
}

/* 栏目分类区块 */
.cat-section {
    margin: 40px 0 30px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.cat-section .section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #002c57;
}

.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cat-list li {
    margin: 0;
}

.cat-list a {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f7fa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    color: #444;
    transition: all 0.2s;
    text-decoration: none;
}

.cat-list a:hover {
    background: #002c57;
    border-color: #002c57;
    color: #fff;
}

/* ==========================================================================
   上一篇 / 下一篇
   ========================================================================== */
.article-prev-next {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.prev-next-item {
    flex: 1;
    padding: 15px 20px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pn-label {
    font-size: 12px;
    color: #999;
}

.prev-next-item a {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: color 0.2s;
    text-decoration: none;
}

.prev-next-item a:hover {
    color: #002c57;
}

.pn-disabled {
    font-size: 14px;
    color: #ccc;
}

/* ==========================================================================
   侧边栏组件
   ========================================================================== */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 25px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* 快速咨询 */
.contact-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 18px;
}

.btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 12px;
    text-decoration: none;
}

.btn-primary {
    background: #002c57;
    color: #fff;
    border: 2px solid #002c57;
}

.btn-primary:hover {
    background: #001f3f;
    border-color: #001f3f;
}

.contact-widget .phone-display {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #002c57;
    margin: -5px 0 15px;
    letter-spacing: 1px;
    text-decoration: none;
}

.contact-widget .phone-display:hover {
    color: #1a6dff;
}

.contact-widget .wechat-qrcode {
    display: block;
    max-width: 160px;
    width: 100%;
    height: auto;
    margin: 0 auto 8px;
    border-radius: 6px;
}

.contact-widget .wechat-tip {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* ==========================================================================
   全局响应式适配 (针对文章主体)
   ========================================================================== */
@media (max-width: 992px) {
    .article-layout {
        flex-direction: column;
        gap: 30px;
    }

    .article-sidebar {
        width: 100%;
        position: static;
    }

    .meta-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 0 15px;
    }

    .article-title {
        font-size: 20px;
    }

    .meta-info-grid {
        grid-template-columns: 1fr;
    }

    .article-prev-next {
        flex-direction: column;
        gap: 12px;
    }

    .article-content {
        font-size: 15px;
    }

    .article-content h2 {
        font-size: 19px;
    }

    .article-content h3 {
        font-size: 17px;
    }
}