/* 字体设置 */
: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 p,
.md-typeset ul,
.md-typeset ol {
    line-height: 1.65;
}

/* 标题行高（区分层级） */
.md-typeset h1 {
    line-height: 1.3;
    color: var(--md-typeset-color);
}

.md-typeset h2,
.md-typeset h3 {
    line-height: 1.4;
}

.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
    line-height: 1.5;
}

/* 正文字间距和段落间距 */
.md-typeset p {
    /* 字间距：0.02em 左右（根据内容长度微调），仅微调，避免松散 */
    letter-spacing: 0.02em;
    /* 段落间留白，避免拥挤 */
    margin-bottom: 1em;
}

/* 标题可略紧凑，突出层级 */
.md-typeset h1,
.md-typeset h2 {
    letter-spacing: 0;
}

/* 标题加粗和改色，增大与正文的对比 */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
    font-weight: 600;
    /* 比默认稍重，适配中文粗体显示 */
    margin-top: 1.5em;
    /* 增加标题与上文间距，强化分隔 */
    margin-bottom: 0.8em;
}

/* 移动端（屏幕 < 768px）适配 */
@media (max-width: 768px) {
    .md-typeset {
        font-size: 16px;
        /* 比桌面端稍大（默认14-15px），提升可读性 */
    }

    .md-typeset p {
        line-height: 1.7;
        /* 行高略增，避免文字堆叠 */
    }
}

/* 桌面端（屏幕 > 1200px）可略收紧行高 */
@media (min-width: 1200px) {
    .md-typeset p {
        line-height: 1.6;
    }
}

/* 自定义条例按钮 */
.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;
}