.detail-main {
    background-image: url('/images/img-page-bg.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 100%;
    background-attachment: fixed;
    padding: 96px 24px 120px 24px;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    font-size: 16px;
    color: #051243;
}

.breadcrumb a {
    color: #051243;
    opacity: 0.4;
}

.breadcrumb img {
    width: 14px;
}

/* =========================================
   Article Header (Meta & Title)
   ========================================= */

.article-header {
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.article-date {
    font-size: 16px;
    line-height: 24px;
    color: #4A4D56;
}

.article-company {
    font-size: 16px;
    line-height: 24px;
    color: #4A4D56;
}

.article-title {
    font-size: 24px;
    font-weight: 600;
    color: #051243;
    line-height: 32px;
    margin-top: 24px;
    text-align: center;
}

.article-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #051243;
    line-height: 32px;
    margin-top: 12px;
    text-align: center;
}

/* =========================================
   Article Content Blocks (Templates)
   ========================================= */

/* Common Elements */
.block-text {
    margin-bottom: 24px;
}

.block-title {
    color: #051243;
    font-size: 16px;
    font-weight: 600;
    line-height: 28px;
    margin-bottom: 8px;
    text-align: center;
}


.block-text-title {
    background: #0068B6;
    color: #FFF;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    padding: 8px 12px;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    margin-bottom: 24px;
}

.block-list {
    margin-bottom: 24px;
    padding-left: 20px;
    list-style-type: disc;
}

.block-list li {
    color: #4A4D56;
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 8px;
}

.block-list li:last-child {
    margin-bottom: 0;
}

/* 模板5b：<p><span class="block-term-label">标签</span><br>正文</p>（与 .block-list 同源 disc，不用伪元素字符） */
.block-desc p:has(> span.block-term-label:first-child) {
    display: list-item;
    list-style-type: disc;
    list-style-position: outside;
    margin-left: 20px;
    margin-bottom: 16px;
    padding-left: 0;
}

.block-desc p:has(> span.block-term-label:first-child)::marker {
    color: #4A4D56;
}

.block-term-label {
    font-weight: bold;
}

/* 附录、补充说明 (Appendix/Notes) */
.block-notes {
    background: #F2F7FB;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.block-notes-title {
    color: #051243;
    font-size: 16px;
    font-weight: 600;
    line-height: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.block-notes-title::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #0068B6;
}

.block-notes-content {
    color: #4A4D56;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

.block-notes-content p {
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 8px;
}

.block-notes-list {
    padding-left: 20px;
    list-style-type: disc;
}

.block-notes-list li {
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 8px;
}

.block-notes-list li:last-child {
    margin-bottom: 0;
}

.block-notes-content a {
    color: #0032D6;
    text-decoration: underline;
}

/* 富文本内容区域 (Rich Text / Tables) */
.block-richtext {
    margin-bottom: 40px;
    width: 100%;
    overflow-x: auto;
}

.block-richtext table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.block-richtext table td,
.block-richtext table th {
    padding: 8px 16px;
    font-size: 16px;
    line-height: 24px;
    color: #051243;
}

.block-richtext table td p,
.block-richtext table th p {
    margin-bottom: 0;
    font-size: 14px;
}

.block-title {
    color: #051243;
    font-size: 16px;
    font-weight: 600;
    line-height: 28px;
    margin-bottom: 8px;
    text-align: center;
}

/* 通用表格样式 */
.table-vertical,
.table-horizontal {
    border: 5px solid #0068B6;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.table-vertical td,
.table-horizontal th,
.table-horizontal td {
    border: 1px solid #0068B6 !important;
    color: #051243;
}

/* 纵向表格 (table-vertical) */
.table-vertical td {
    padding: 8px 16px;
    text-align: left;
}

.table-vertical td.label {
    background-color: #F2F7FB;
    white-space: nowrap;
    width: 1%; 
}

/* 横向表格 (table-horizontal) */
.table-horizontal th,
.table-horizontal td {
    padding: 8px 16px;
}

.table-horizontal th {
    background-color: #F2F7FB;
}


.block-pic {
    width: 100%;
    box-sizing: border-box;
    display: block;
}
.block-desc {
    margin-top: 24px;
}
.block-desc p {
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #4A4D56;
    margin-bottom: 24px;
}

.block-desc p:last-child {
    margin-bottom: 0;
}

/* 1. 上图下文 (Image Top, Text Bottom) */
.block-pic-top {
    margin-bottom: 40px;
}
.block-pic-top .block-pic-wrap {
    text-align: center;
}
.block-pic-top .block-pic {
    max-width: 720px;
    margin: 0 auto;
}

/* 2. 上文下图 (Text Top, Image Bottom) */
.block-pic-bottom {
    margin-bottom: 40px;
}
.block-pic-bottom .block-pic-wrap {
    text-align: center;
}
.block-pic-bottom .block-pic {
    max-width: 720px;
    margin: 0 auto;
}

/* 3 & 4 左右图文通用容器 */
.block-inner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* 3. 左图右文 (Image Left, Text Right) */
.block-pic-left {
    margin-bottom: 40px;
}
.block-pic-left .block-pic-wrap {
    flex-shrink: 0;
    width: 40%;
    max-width: 320px;
}
.block-pic-left .block-desc {
    flex: 1;
    min-width: 0;
}

/* 4. 左文右图 (Text Left, Image Right) */
.block-pic-right {
    margin-bottom: 40px;
}
.block-pic-right .block-pic-wrap {
    flex-shrink: 0;
    width: 40%;
    max-width: 320px;
    order: 2;
}
.block-pic-right .block-desc {
    flex: 1;
    min-width: 0;
    order: 1;
}

/* ========================================= */

@media screen and (max-width: 768px) {
    .detail-main {
        background-size: cover; /* 手机端保证背景图填满 */
        padding: 60px 16px 80px 16px;
    }
    
    .article-title {
        font-size: 20px;
        line-height: 28px;
    }

    .article-subtitle {
        font-size: 16px;
        line-height: 24px;
    }

    .block-title {
        font-size: 14px;
        line-height: 24px;
        margin-bottom: 16px;
    }

    .block-text-title {
        font-size: 16px;
        padding: 6px 10px;
        margin-bottom: 16px;
    }

    .block-desc p {
        font-size: 14px;
        line-height: 24px;
        margin-bottom: 16px;
    }

    .block-list li {
        font-size: 14px;
        line-height: 24px;
    }

    .block-term-label {
        font-size: 14px;
    }

    .block-pic-top,
    .block-pic-bottom,
    .block-pic-left,
    .block-pic-right,
    .block-text,
    .block-notes,
    .block-richtext {
        margin-bottom: 12px;
    }

    .block-inner {
        flex-direction: column;
        gap: 16px;
    }
    
    .block-pic-left .block-pic-wrap,
    .block-pic-right .block-pic-wrap {
        width: 100%;
        max-width: 100%;
        order: unset; /* 手机端取消强制左右排序，恢复默认上下顺序 */
    }

    .block-notes {
        padding: 12px 16px;
    }

    .block-notes-title {
        font-size: 14px;
    }

    .block-notes-content p,
    .block-notes-list li {
        font-size: 14px;
        line-height: 24px;
    }
    .block-richtext table td,
    .block-richtext table th {
        padding: 6px 10px;
        font-size: 12px;
        line-height: 20px;
    }

    .block-richtext table td p,
    .block-richtext table th p {
        font-size: 12px;
    }
}

/* =========================================
   8. 轮播图 (Swiper Carousel)
   ========================================= */

.block-swiper {
    margin-bottom: 40px;
    width: 100%;
}

.swiper-container-wrap {
    position: relative;
    max-width: 864px; /* 720px + (48px+24px)*2 */
    margin: 0 auto;
    padding: 0 72px; /* 48px按钮 + 24px间距 */
}

.detail-swiper {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background: #FFF;
    overflow: hidden;
    border-radius: 0;
}

.detail-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 导航按钮自定义 */
.swiper-container-wrap .detail-prev,
.swiper-container-wrap .detail-next {
    width: 48px !important;
    height: 48px !important;
    margin-top: -24px;
    transition: all 0.3s;
    object-fit: contain;
}

.detail-prev::after,
.detail-next::after {
    display: none;
}

.detail-prev {
    left: 0;
}

.detail-next {
    right: 0;
}

.detail-prev:hover,
.detail-next:hover {
    opacity: 0.7;
}

/* 分页器自定义 (条形) */
.detail-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.detail-pagination .swiper-pagination-bullet {
    width: 40px;
    height: 8px;
    border-radius: 0;
    background: #F2F7FB;
    opacity: 1;
    margin: 0 !important;
    transition: all 0.3s;
}

.detail-pagination .swiper-pagination-bullet-active {
    width: 80px;
    background: #0068B6;
}

@media screen and (max-width: 768px) {
    .swiper-container-wrap {
        padding: 0; /* 手机端按钮移入内部或隐藏 */
    }
    
    .swiper-container-wrap .detail-prev,
    .swiper-container-wrap .detail-next {
        width: 32px !important;
        height: 32px !important;
        margin-top: -16px;
    }
    
    .detail-pagination {
        margin-top: 16px;
    }
    
    .detail-pagination .swiper-pagination-bullet {
        width: 20px;
        height: 4px;
    }
    
    .detail-pagination .swiper-pagination-bullet-active {
        width: 40px;
    }
}
