:root {
    --bg-paper: #F7F6F1;
    --bg-elevated: #FCFBF8;
    --bg-stone: #EFEEE8;
    --bg-stone-hover: #E5E4DC;
    --ink-primary: #1E312B;
    --ink-secondary: #485B54;
    --ink-muted: #7C8B84;
    --ink-faint: #A7B3AD;
    --forest-primary: #2C463E;
    --forest-accent: #3B5C51;
    --ochre-accent: #8C6D46;
    --line-hairline: #E2E4DD;
    --line-subtle: #EAECE6;
    --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif;
    --serif: var(--sans);
    --pali-serif: var(--sans);
    --max-w: 1180px;
    --side-w: 288px;
    --radius-sm: 2px;
    --shadow-card: 0 1px 3px rgba(30, 49, 43, 0.02), 0 8px 28px -6px rgba(30, 49, 43, 0.035);
    --transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1)
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%
}

* {
    box-sizing: border-box
}

/* 隐藏浏览器原生 type="search" 的取消/清空按钮与装饰 */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none
}

input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
    display: none;
    width: 0;
    height: 0
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-paper);
    color: var(--ink-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

body {
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: 0.02em;
    background-image: radial-gradient(rgba(44, 70, 62, 0.03) 1px, transparent 0);
    background-size: 24px 24px
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition)
}

img {
    display: block;
    max-width: 100%
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 74px;
    background: rgba(252, 251, 248, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-hairline)
}

.header-inner {
    max-width: var(--max-w);
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%
}

.brand-img-wrap {
    display: flex;
    align-items: center
}

.brand-img-wrap img {
    height: 40px;
    width: auto;
    object-fit: contain
}

.brand-fallback {
    display: flex;
    align-items: center;
    gap: 13px
}

.brand-seal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.brand-seal svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.15
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25
}

.brand-title {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--ink-primary)
}

.brand-sub {
    font-family: var(--pali-serif);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    text-transform: uppercase;
    margin-top: 2px
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 36px;
    height: 100%
}

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
    height: 100%;
    font-size: 14.5px;
    letter-spacing: 0.08em
}

.nav a {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--ink-secondary);
    font-weight: 400
}

.nav a:hover {
    color: var(--ink-primary)
}

.nav a.active {
    color: var(--ink-primary);
    font-weight: 500
}

.nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--forest-primary)
}

.nav a::before {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 1.5px;
    background: var(--ochre-accent);
    transition: var(--transition);
    opacity: 0
}

.nav a:hover::before {
    left: 0;
    right: 0;
    opacity: 0.6
}

.nav a.active:hover::before {
    display: none
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-paper);
    border: 1px solid var(--line-hairline);
    border-radius: 999px;
    padding: 5px 12px;
    transition: var(--transition);
    width: 185px
}

.search-form:focus-within {
    border-color: var(--forest-accent);
    background: #fff;
    width: 220px;
    box-shadow: 0 2px 10px rgba(44, 70, 62, 0.06)
}

.search-form svg {
    width: 14px;
    height: 14px;
    color: var(--ink-muted);
    flex-shrink: 0
}

.search-form input {
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-primary);
    padding-left: 8px;
    width: 100%
}

.search-form input::placeholder {
    color: var(--ink-faint)
}

.footer {
    position: relative;
    overflow: hidden;
    background: #EAECE5;
    border-top: 1px solid var(--line-hairline);
    padding: 52px 0 28px
}

.footer-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    opacity: 0.35;
    pointer-events: none
}

.footer-art-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.7
}

.footer-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px 38px;
    display: grid;
    grid-template-columns: 2.1fr 1fr 1fr 1.5fr;
    gap: 36px;
    border-bottom: 1px solid rgba(44, 70, 62, 0.1)
}

.footer-brand {
    display: flex;
    gap: 16px;
    align-items: flex-start
}



.footer-name {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--ink-primary)
}

.footer-slogan {
    font-size: 12.5px;
    color: var(--ink-secondary);
    margin-top: 6px;
    line-height: 1.7;
    max-width: 280px
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px
}

.social-link {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(44, 70, 62, 0.25);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ink-secondary);
    transition: var(--transition)
}

.social-link:hover {
    background: var(--forest-primary);
    border-color: var(--forest-primary);
    color: var(--bg-elevated)
}

.social-link svg {
    width: 13px;
    height: 13px
}

.footer-col h4 {
    margin: 0 0 14px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--ink-primary)
}

.footer-col a,
.footer-col p {
    display: block;
    margin: 7px 0;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-secondary);
    line-height: 1.6
}

.footer-col a:hover {
    color: var(--forest-primary);
    transform: translateX(2px)
}

.copyright {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 22px auto 0;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--sans);
    font-size: 11.5px;
    color: var(--ink-muted);
    flex-wrap: wrap;
    gap: 12px
}

.copyright-links {
    display: flex;
    gap: 20px
}

.copyright-links a:hover {
    color: var(--ink-primary)
}

@media (max-width: 760px) {
    body {
        font-size: 15px
    }

    .header {
        top: -56px;
        height: auto
    }

    .header-inner {
        position: relative;
        height: auto;
        padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand search" "nav nav";
        column-gap: 12px
    }

    .nav-group {
        display: contents
    }

    .brand {
        grid-area: brand;
        height: 56px;
        min-width: 0
    }

    .brand-img-wrap {
        min-width: 0
    }

    .brand-img-wrap img {
        height: 34px;
        max-width: 100%
    }

    .brand-fallback {
        gap: 10px;
        min-width: 0
    }

    .brand-seal svg {
        width: 34px;
        height: 34px
    }

    .brand-title {
        font-size: 17px;
        letter-spacing: 0.1em;
        white-space: nowrap
    }

    .brand-sub {
        font-size: 10.5px;
        letter-spacing: 0.05em;
        margin-top: 1px;
        white-space: nowrap
    }

    .search-form {
        grid-area: search;
        align-self: center;
        position: relative;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0
    }

    .search-form svg {
        width: 17px;
        height: 17px
    }

    .search-form input {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        opacity: 0;
        font-size: 16px
    }

    .search-form:focus-within {
        grid-area: auto;
        position: absolute;
        z-index: 2;
        top: 10px;
        right: max(20px, env(safe-area-inset-right));
        left: max(20px, env(safe-area-inset-left));
        width: auto;
        justify-content: flex-start;
        padding: 0 14px
    }

    .search-form:focus-within input {
        position: static;
        opacity: 1;
        padding-left: 10px
    }

    .nav {
        grid-area: nav;
        min-width: 0;
        height: 46px;
        gap: 22px;
        font-size: 14px;
        letter-spacing: 0.04em;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        border-top: 1px solid var(--line-subtle);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch
    }

    .nav::-webkit-scrollbar {
        display: none
    }

    .nav a {
        flex: none;
        white-space: nowrap
    }

    .footer {
        padding: 40px 0 calc(24px + env(safe-area-inset-bottom))
    }

    .footer-inner {
        padding: 0 max(20px, env(safe-area-inset-right)) 28px max(20px, env(safe-area-inset-left));
        grid-template-columns: 1fr 1fr;
        gap: 24px
    }

    .footer-brand {
        grid-column: 1 / -1
    }

    .footer-col:last-child {
        grid-column: 1 / -1
    }

    .footer-col a,
    .footer-col p {
        margin: 0;
        padding: 7px 0;
        overflow-wrap: anywhere
    }

    .social-link {
        width: 36px;
        height: 36px
    }

    .social-link svg {
        width: 15px;
        height: 15px
    }

    .copyright {
        padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
        flex-direction: column;
        align-items: flex-start
    }

    .copyright-links a {
        padding: 6px 0
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important
    }
}

@media (max-width: 360px) {
    .brand-sub {
        font-size: 9.5px;
        letter-spacing: 0.03em
    }

    .brand-title {
        font-size: 16px;
        letter-spacing: 0.08em
    }
}

:root {
    --sticky-top: 98px
}

html {
    scroll-behavior: smooth
}

button {
    font: inherit
}

.page-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px
}

.breadcrumb {
    padding: 24px 0 20px;
    color: var(--ink-muted);
    font-family: var(--sans);
    font-size: 12.5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    letter-spacing: 0.03em
}

.breadcrumb a:hover {
    color: var(--forest-primary)
}

.breadcrumb .current {
    color: var(--ink-secondary);
    font-weight: 500
}

.crumb-sep {
    color: var(--ink-faint);
    font-size: 11px
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 232px;
    gap: 32px;
    align-items: start;
    padding-bottom: 72px
}

.article {
    min-width: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--line-hairline);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    padding: 46px 58px 52px;
    --body-font-size: 16px;
    --body-line-height: 1.6;
    --note-font-size: 14.5px
}

.article[data-font-size="sm"] {
    --body-font-size: 14.5px;
    --body-line-height: 1.75;
    --note-font-size: 13.5px
}

.article[data-font-size="md"] {
    --body-font-size: 16px;
    --body-line-height: 1.6;
    --note-font-size: 14.5px
}

.article[data-font-size="lg"] {
    --body-font-size: 18px;
    --body-line-height: 1.65;
    --note-font-size: 16px
}

.article[data-font-size="xl"] {
    --body-font-size: 20px;
    --body-line-height: 1.7;
    --note-font-size: 17.5px
}

.article-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--pali-serif);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ochre-accent);
    margin-bottom: 12px
}

.article-kicker::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--ochre-accent)
}

h1 {
    font-family: var(--serif);
    font-size: clamp(22px, 2.4vw, 29px);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.04em;
    color: var(--ink-primary);
    margin: 0 0 18px
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line-hairline)
}

.meta-font-ctrl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex: none;
    letter-spacing: 0
}

.meta-font-label {
    margin-right: -5px;
    color: var(--ink-secondary);
    font-weight: 500;
    white-space: nowrap
}

.font-step-btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 4px 1px;
    color: var(--ink-muted);
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none
}

.font-step-btn:hover:not(:disabled) {
    color: var(--forest-primary)
}

.font-step-btn:focus-visible {
    outline: 1px solid var(--forest-accent);
    outline-offset: 3px;
    border-radius: 2px
}

.font-step-btn:disabled {
    color: var(--ink-faint);
    cursor: default
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.meta-icon {
    width: 14px;
    height: 14px;
    color: var(--forest-accent);
    display: inline-flex
}

.meta-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round
}

.meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ink-faint)
}

.audio-card {
    margin: 26px 0 34px;
    padding: 16px 20px;
    background: var(--bg-stone);
    border: 1px solid var(--line-hairline);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition)
}

.audio-card:hover {
    border-color: rgba(44, 70, 62, 0.24)
}

.audio-card:empty,
.audio-card[hidden] {
    display: none
}

.play-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--forest-primary);
    color: var(--bg-elevated);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: none;
    transition: var(--transition)
}

.play-btn:hover {
    background: var(--ochre-accent)
}

.play-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor
}

.audio-main {
    min-width: 0;
    flex: 1
}

.audio-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px
}

.audio-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-primary);
    letter-spacing: 0.04em
}

.audio-track {
    height: 18px;
    display: flex;
    align-items: center;
    position: relative;
    margin: 2px 0 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.audio-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--line-hairline);
    border-radius: 2px;
    transition: height 0.15s ease, background-color 0.15s ease;
}

.audio-track:hover::before,
.audio-track.is-dragging::before {
    height: 5px;
    background-color: #d6d9d1;
}

.audio-progress {
    position: absolute;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--forest-primary);
    border-radius: 2px;
    pointer-events: none;
    transition: height 0.15s ease, width 0.2s linear;
}

.audio-track:hover .audio-progress,
.audio-track.is-dragging .audio-progress {
    height: 5px;
}

.audio-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: var(--forest-primary);
    border: 2px solid var(--bg-elevated);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    box-shadow: 0 1px 4px rgba(30, 49, 43, 0.28);
    transition: transform 0.15s ease;
    pointer-events: none;
    z-index: 2;
}

.audio-track:hover .audio-thumb,
.audio-track.is-dragging .audio-thumb,
.audio-track:focus-visible .audio-thumb {
    transform: translate(-50%, -50%) scale(1);
}

.audio-track:focus-visible {
    outline: none;
}

.audio-track:focus-visible::before {
    box-shadow: 0 0 0 2px rgba(44, 70, 62, 0.25);
}

@media (pointer: coarse) {
    .audio-thumb {
        transform: translate(-50%, -50%) scale(1);
    }
}

.audio-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink-muted);
    font-family: var(--sans);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums
}

.article-body {
    font-family: var(--sans);
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    color: #1f2328;
    word-wrap: break-word;
    margin-top: 32px;
    transition: font-size 0.2s ease, line-height 0.2s ease;
}

.article-meta+.article-body {
    margin-top: 32px;
}

.article-body :is(h1,h2,h3,h4,h5,h6) {
    font-family: var(--sans);
    font-weight: 600;
    color: #1f2328;
    line-height: 1.25;
    text-align: left;
    scroll-margin-top: 112px;
}

.article-body > :is(h1,h2,h3,h4,h5,h6):first-child {
    margin-top: 0;
}

.article-body h1 {
    font-size: 2em;
    margin-top: 24px;
    margin-bottom: 16px;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--line-hairline);
    line-height: 1.25;
}

.article-body h2 {
    font-size: 1.5em;
    margin-top: 24px;
    margin-bottom: 16px;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--line-hairline);
    line-height: 1.25;
}

.article-body h3 {
    font-size: 1.25em;
    margin-top: 24px;
    margin-bottom: 16px;
    line-height: 1.25;
    border-bottom: none;
}

.article-body h4 {
    font-size: 1em;
    margin-top: 20px;
    margin-bottom: 14px;
    line-height: 1.25;
}

.article-body h5 {
    font-size: 0.875em;
    margin-top: 16px;
    margin-bottom: 12px;
    line-height: 1.25;
}

.article-body h6 {
    font-size: 0.85em;
    color: var(--ink-muted);
    margin-top: 16px;
    margin-bottom: 12px;
    line-height: 1.25;
}

.article-body p {
    margin-top: 0;
    margin-bottom: 16px;
    color: #1f2328;
    line-height: 1.6;
    text-align: justify;
}

.article-body p.blank {
    height: 1.6em;
    margin: 0;
}

.article-body a {
    color: var(--forest-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-body a:hover {
    color: var(--ochre-accent);
}

.article-body :is(h1,h2,h3,h4,h5,h6) a {
    color: inherit;
    text-decoration: none;
}

.article-body :is(h1,h2,h3,h4,h5,h6) a:hover {
    text-decoration: underline;
}

.article-body blockquote {
    padding: 0 1em;
    color: var(--ink-muted);
    border-left: 0.25em solid var(--line-hairline);
    background-color: transparent;
    margin: 0 0 16px 0;
}

.article-body blockquote > :first-child {
    margin-top: 0;
}

.article-body blockquote > :last-child {
    margin-bottom: 0;
}

.article-body :not(pre) > code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    white-space: break-spaces;
    background-color: rgba(175, 184, 193, 0.2);
    border-radius: 6px;
    color: #1f2328;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.article-body pre {
    background-color: var(--bg-stone);
    border-radius: 6px;
    font-size: 85%;
    line-height: 1.45;
    padding: 16px;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    margin: 0 0 16px 0;
}

.article-body table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    display: table;
    max-width: 100%;
    overflow: auto;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-secondary);
    font-variant-numeric: tabular-nums;
}

.article-body th,
.article-body td {
    padding: 6px 13px;
    border: 1px solid var(--line-hairline);
    text-align: left;
    vertical-align: top;
}

.article-body th {
    font-weight: 600;
    background-color: var(--bg-stone);
    color: #1f2328;
}

.article-body tr:nth-child(2n) {
    background-color: var(--bg-stone);
}

.article-body tr {
    background-color: transparent;
    border-top: 1px solid var(--line-hairline);
}

.article-body table + p.blank {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
}

.article-body hr {
    height: 0.25em;
    padding: 0;
    margin: 24px 0;
    background-color: var(--line-hairline);
    border: 0;
}

.article-body ul,
.article-body ol {
    padding-left: 2em;
    margin-top: 0;
    margin-bottom: 16px;
}

.article-body li + li {
    margin-top: 0.25em;
}

.article-body .opening {
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

.article-body .soft-note {
    margin: 24px 0;
    padding: 14px 20px;
    background: var(--bg-stone);
    border: 1px solid var(--line-hairline);
    border-left: 2.5px solid var(--forest-accent);
    border-radius: var(--radius-sm);
    color: var(--ink-secondary);
    font-size: var(--note-font-size);
    line-height: 1.8;
}

.article-body h2#qa,
.article-body .qa-heading,
.qa-section {
    margin-top: 46px;
    padding-top: 32px;
    border-top: 1px solid var(--line-hairline);
    scroll-margin-top: 96px;
    font-family: var(--serif);
    font-size: 1.25em;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

.qa-section>h2 {
    margin-top: 0
}

.article-body .qa-q,
.qa-q,
.qa-content .qa-q {
    color: inherit;
    font-weight: inherit
}

.qa-heading + .qa-q,
.qa-heading + p.opening,
.qa-heading + p:first-of-type,
.qa-content .qa-q:first-child {
    margin-top: 0 !important
}

.article-body .qa-q strong,
.qa-q strong,
.qa-content .qa-q strong {
    font-weight: 600;
    color: inherit
}

.article-body .qa-a,
.qa-a,
.qa-content .qa-a {
    color: inherit;
    font-weight: inherit
}

.article-body .qa-a strong,
.qa-a strong,
.qa-content .qa-a strong {
    font-weight: 600;
    color: inherit
}

.article-end {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line-hairline)
}

.continue-heading {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--ink-primary);
    margin-bottom: 14px
}

.continue-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.continue-links a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 18px;
    background: var(--bg-stone);
    border: 1px solid var(--line-hairline);
    border-radius: var(--radius-sm);
    transition: var(--transition)
}

.continue-links a:hover {
    background: var(--bg-elevated);
    border-color: rgba(44, 70, 62, 0.28);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px)
}

.continue-links .pn-label {
    font-family: var(--sans);
    font-size: 11.5px;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em
}

.continue-links .pn-title {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-primary);
    line-height: 1.5;
    transition: color 0.2s ease
}

.continue-links a:hover .pn-title {
    color: var(--forest-primary)
}

.back-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--forest-accent);
    letter-spacing: 0.04em
}

.back-list:hover {
    color: var(--forest-primary);
    transform: translateX(-2px)
}

.side {
    position: sticky;
    top: var(--sticky-top);
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px
}

.toc {
    background: var(--bg-stone);
    border: 1px solid var(--line-hairline);
    border-radius: var(--radius-sm);
    padding: 18px 0 14px
}

.toc-header {
    padding: 0 20px 14px;
    border-bottom: 1px solid var(--line-hairline);
    display: flex;
    align-items: baseline;
    justify-content: space-between
}

.side-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--ink-primary);
    margin: 0
}

.side-subtitle {
    font-family: var(--pali-serif);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    text-transform: uppercase
}

.toc-list {
    padding: 8px 10px 4px;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.toc-list a {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    color: var(--ink-secondary);
    font-size: 14px;
    letter-spacing: 0.06em;
    transition: var(--transition)
}

.toc-list a:hover {
    background: var(--bg-stone-hover);
    color: var(--ink-primary)
}

.toc-list a.active {
    background: var(--forest-primary);
    color: var(--bg-elevated);
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(30, 49, 43, 0.14)
}

.toc-list a .arrow {
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1;
    opacity: 0.85
}

@media (max-width: 980px) {
    .layout {
        grid-template-columns: minmax(0, 1fr) 190px;
        gap: 24px
    }

    .article {
        padding: 36px 36px 42px
    }
}

@media (max-width: 760px) {
    .page-wrap {
        padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left))
    }

    .breadcrumb {
        padding: 16px 0 14px;
        font-size: 12px
    }

    .layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-bottom: 44px
    }

    .side {
        order: -1;
        position: static;
        width: 100%
    }

    .toc {
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px
    }

    .toc-header {
        padding: 0;
        border-bottom: 0
    }

    .side-subtitle {
        display: none
    }

    .toc-list {
        padding: 0;
        flex-direction: row;
        gap: 8px
    }

    .toc-list a {
        height: 34px;
        padding: 0 14px;
        border: 1px solid var(--line-hairline);
        background: var(--bg-elevated)
    }

    .toc-list a .arrow {
        display: none
    }

    .article {
        width: 100%;
        padding: 24px 20px 30px
    }

    h1 {
        font-size: 21px;
        line-height: 1.45
    }

    .audio-card {
        padding: 14px 14px;
        gap: 12px;
        margin: 20px 0 26px
    }

    .article-body {
        font-size: var(--body-font-size);
        line-height: var(--body-line-height);
        margin-top: 24px
    }

    .article-meta+.article-body {
        margin-top: 24px
    }

    .article-body p {
        text-align: left
    }

    .article-body h2 {
        font-size: 1.25em;
        margin-top: 32px
    }

    .meta-font-ctrl {
        margin-left: 0
    }

    .continue-links {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .continue-links a:hover {
        transform: none
    }
}

/* 纯文本讲稿：用统一段距表达段落，不把源码空行叠成额外空白。 */
.article-body>p.opening,
.article-body>p.opening~p:not(.blank) {
    margin: 0 0 1.5em
}

.article-body>p.opening~p.blank {
    display: none;
    height: 0;
    margin: 0
}
