/* 列表卡片标题：覆盖主题的 -0.05em 紧缩值，用更高优先级选择器 */
#article-list article h3 {
    letter-spacing: 0;
}

/* 文章顶部标题区：左对齐 */
#heading {
    text-align: left;
}

/* 文章顶部 h1：使用固定的标题字体 */
#heading h1 {
    font-family: var(--reader-heading-font);
    font-weight: bold;
}

/* 文章内容区各级标题：紧凑间距 + 粗体 */
article h2, article h3, article h4, article h5, article h6 {
    margin-top: 0.7rem;
    margin-bottom: 0.15rem;
    font-weight: bold;
}

pre, code, kbd, samp {
    font-family: var(--reader-code-font);
}

/* ─── Radius scale ─────────────────────────────────────────────────────────── */
:root {
    --rounded-corner:       0.8rem;
    --rounded-corner-small: 0.5rem;
    --rounded-nav:          1rem;
}

/* ─── Nav outer container ───────────────────────────────────────────────────── */
#site-nav,
#site-nav::before {
    border-radius: var(--rounded-nav);
}

/* ─── Nav inner items: links, icon buttons ───────────────────────────────────*/
#site-nav nav a,
#site-nav nav summary,
#site-nav nav button {
    border-radius: var(--rounded-corner);
}

/* Theme-switcher popup row (hardcoded 999px, needs !important to win) */
#site-nav #theme-switcher ul {
    border-radius: var(--rounded-corner) !important;
}

/* Search bar */
#site-nav #search-bar {
    border-radius: var(--rounded-corner);
}

/* ─── Article list: fix right-side asymmetry ─────────────────────────────── */
#article-list article,
#article-list article > a {
    border-start-end-radius: var(--rounded-corner);
    border-end-end-radius:   var(--rounded-corner);
}

/* ─── Bottom floating buttons (TOC, go-to-top, share, issue) ────────────────
   Selector corrected: container is #buttons-container, not .quick-actions  */
#buttons-container summary,
#buttons-container #go-to-top,
#buttons-container #share,
#buttons-container #issue {
    border-radius: var(--rounded-corner);
}

/* ─── Tags: rounded rectangle ───────────────────────────────────────────────*/
.tags a {
    border-radius: var(--rounded-corner-small);
}
.tags a .count {
    border-start-end-radius: var(--rounded-corner);
    border-end-end-radius:   var(--rounded-corner);
}

/* ─── Article list badge (Featured / Hot / Poor …) ─────────────────────────*/
#article-list article .badge {
    border-radius: var(--rounded-corner);
}

/* ─── Article end divider icon: replace ❦ with 卍 ───────────────────────────*/
hr::after {
    content: "卍";
}

/* ─── Footer nav container + inner links ────────────────────────────────────*/
#site-footer nav {
    border-radius: var(--rounded-nav);
}
#site-footer nav a {
    border-radius: var(--rounded-corner);
}

/* ─── Paginator buttons ─────────────────────────────────────────────────────*/
#paginator-first,
#paginator-previous,
#paginator-next,
#paginator-last {
    border-radius: var(--rounded-corner);
}

:root {
    --reader-body-font: "Jost", "Noto Sans SC", system-ui, sans-serif;
    --reader-heading-font: "Jost", "Noto Sans SC", system-ui, sans-serif;
    --reader-code-font: "IntelOne Mono", "Noto Sans SC", ui-monospace, monospace;
}

body { font-family: var(--reader-body-font); }
h1, h2, h3, h4, h5, h6 { font-family: var(--reader-heading-font); }
