/* 字体设置 */
:root {
    /* 英文字体优先保留 Material 原生的 Roboto，中文字体叠加系统字体 */
    --md-text-font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Microsoft YaHei", "WenQuanYi Micro Hei", "Heiti TC",
        sans-serif;
}

/* 强制中文优先使用指定字体（避免英文/数字字体干扰） */
.md-typeset {
    font-family: var(--md-text-font);
}

/* 标题颜色 */
.md-typeset h1 {
    color: var(--md-typeset-color);
}

/* 正文字间距和段落间距 */
.md-typeset p {
    /* 字间距：0.02em 左右（根据内容长度微调），仅微调，避免松散 */
    letter-spacing: 0.02em;
}

/* 标题加粗和改色，增大与正文的对比 */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
    font-weight: 600;
    /* 比默认稍重，适配中文粗体显示 */
}

/* 自定义条例按钮 */
.law-button {
    display: inline-block;
    width: 46.5px;
    margin: 0 0 6px 5px;
    border: 1px solid transparent;
    border-radius: .1rem;
    padding: 0 10px;
    line-height: 22px;
    font-size: 14px;
    text-align: center;
    border-color: var(--md-code-bg-color);
    background-color: var(--md-code-bg-color);
}

.law-button:hover {
    border-color: var(--md-typeset-a-color);
}

/* 自定义居中文本 */
.center-text {
    text-align: center;
}

/* tab样式调整 */
.md-typeset .tabbed-labels {
    justify-content: center;
    /* 标签居中 */
}

/* 自定义PDF预览样式 */
.md-typeset iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* 底部栏内容居中 */
.md-footer-meta__inner {
    justify-content: center;
}

/* 表格宽度调整 */
.md-typeset__table {
    width: -webkit-fill-available;
}