/* 官网文章正文共用表格样式，不影响导航、侧栏及其他布局表格。 */
.official-article-content
{
    min-width: 0;
    max-width: 100%;
}

/* 手机站使用 rem 缩放布局，图注需独立字号，避免继承页面的大字号。 */
.official-article-content figure
{
    max-width: 100%;
    margin: 20px 0;
}

.official-article-content figcaption
{
    margin: 8px 0 20px;
    color: #666;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.6;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.official-article-content table,
.official-article-content .official-article-table-scroll table
{
    width: 100%;
    margin: 20px 0;
    border: 1px solid #dce3eb;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
    background-color: #fff;
    color: #333;
    font-size: 15px;
    line-height: 1.7;
}

/* 旧手机基础样式给 tbody、tr、span 等都设置了 0.30rem，逐层恢复字号继承。 */
.official-article-content table *,
.official-article-content figcaption *
{
    font-size: inherit;
    line-height: inherit;
}

.official-article-content table th,
.official-article-content table td
{
    padding: 12px 16px;
    border: 1px solid #dce3eb;
    text-align: left;
    vertical-align: top;
    font-size: inherit;
    line-height: inherit;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.official-article-content table th,
.official-article-content table thead td
{
    min-width: 5em;
    background-color: #edf3fa;
    color: #263b53;
    font-weight: 600;
}

.official-article-content table tbody tr:nth-child(even) td
{
    background-color: #f8fafc;
}

.official-article-content table caption
{
    padding: 0 0 10px;
    text-align: left;
    font-size: inherit;
    font-weight: 600;
}

.official-article-content table p
{
    margin: 0 0 8px;
    font-size: inherit;
    line-height: inherit;
}

.official-article-content table p:last-child
{
    margin-bottom: 0;
}

/* 独立滚动容器保留原生 table 布局、表头与合并单元格关系。 */
.official-article-content .official-article-table-scroll
{
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.official-article-content .official-article-table-scroll:focus
{
    outline: 2px solid #428bca;
    outline-offset: 2px;
}

.official-article-content .official-article-table-scroll > table
{
    min-width: 560px;
    margin: 0;
}

@media screen and (max-width: 767px)
{
    .official-article-content .official-article-table-scroll:before
    {
        content: "左右滑动查看完整表格";
        display: block;
        margin-bottom: 8px;
        color: #666;
        font-size: 12px;
        line-height: 1.5;
    }

    .official-article-content table,
    .official-article-content .official-article-table-scroll table
    {
        font-size: 14px;
    }

    .official-article-content table th,
    .official-article-content table td
    {
        padding: 10px 12px;
    }
}
