/* ==========================================================================
   久福精舍 · 简约版设计系统  guofeng-lite.css
   思路：留白为主，去掉一切装饰性元素，只保留一个克制的朱砂色作点缀。
        变量名与 guofeng.css 完全一致，页面内的行内样式无需改动。
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
    /* 底色：纯白为主，只留极淡的分区灰 */
    --paper:        #ffffff;
    --paper-2:      #ffffff;
    --paper-3:      #f7f7f5;
    --ink:          #1c1c1c;
    --ink-2:        #4a4a4a;
    --ink-3:        #8e8e8e;

    /* 唯一强调色：朱砂（只在按钮、当前项、重点处出现） */
    --cinnabar:     #b0392e;
    --cinnabar-2:   #c2483c;
    --cinnabar-bg:  #fbf1ef;

    /* 辅助色：降到几乎不出现 */
    --daiqing:      #3d5a52;
    --daiqing-bg:   #f1f4f3;
    --zheshi:       #9a8a72;
    --tenghuang:    #c9a227;

    /* 线条与阴影：极轻 */
    --line:         #e9e7e3;
    --line-2:       #f3f1ee;
    --shadow-sm:    0 0 0 rgba(0, 0, 0, 0);
    --shadow:       0 1px 3px rgba(0, 0, 0, .05);
    --shadow-lg:    0 10px 30px rgba(0, 0, 0, .08);

    /* 字体：界面用无衬线，标题用宋体（收敛），书法只在主视觉出现 */
    --font-kai:  "STKaiti", "KaiTi", "楷体", "Kaiti SC", serif;
    --font-song: "Songti SC", "STSong", "SimSun", "宋体", "Noto Serif SC", serif;
    --font-hei:  "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, sans-serif;

    --page:      1120px;
    --radius:    8px;
    --radius-lg: 14px;
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-hei);
    font-size: 16px;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* 装饰全部移除：不再有纸纹、水墨晕染、彩色顶条 */
body::before, body::after { content: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-song);
    font-weight: 600;
    margin: 0;
    letter-spacing: .02em;
    line-height: 1.45;
}
p { margin: 0 0 .9em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
::selection { background: var(--cinnabar-bg); color: var(--cinnabar); }

/* ---------- 3. 版心 ---------- */
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 800px; }
main { flex: 1 0 auto; }
.hide-sm { display: inline; }

/* ---------- 4. 顶栏 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header .bar {
    max-width: var(--page); margin: 0 auto; padding: 0 24px;
    height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-seal {
    width: 36px; height: 36px; flex-shrink: 0;
    background: var(--cinnabar); color: #fff;
    font-family: var(--font-song); font-size: 19px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-song); font-size: 19px; font-weight: 600; letter-spacing: .1em; }
.brand-sub { font-size: 10px; letter-spacing: .18em; color: var(--ink-3); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
    padding: 8px 14px; font-size: 15px; color: var(--ink-2);
    border-radius: 6px; transition: background .18s, color .18s;
    white-space: nowrap; position: relative;
}
.site-nav a:hover { color: var(--ink); background: var(--paper-3); }
.site-nav a.active { color: var(--cinnabar); font-weight: 600; }
.site-nav a.active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px;
    height: 2px; background: var(--cinnabar); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
    display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }

/* ---------- 5. 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 22px; font-size: 15px; font-weight: 500;
    border: 1px solid var(--cinnabar); border-radius: 8px;
    background: var(--cinnabar); color: #fff;
    transition: background .18s, border-color .18s, color .18s, transform .12s;
}
.btn:hover { background: var(--cinnabar-2); border-color: var(--cinnabar-2); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--cinnabar); }
.btn-ghost:hover { background: var(--cinnabar-bg); color: var(--cinnabar); }
.btn-ink { background: var(--ink); border-color: var(--ink); }
.btn-ink:hover { background: #333; border-color: #333; }
.btn-sm { padding: 7px 14px; font-size: 14px; border-radius: 7px; }
.btn-lg { padding: 12px 30px; font-size: 16px; }

.ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico svg { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 6. 标题区块（去掉菱形分隔线，只留一条短线） ---------- */
.seal-tag {
    display: inline-block; font-size: 13px; letter-spacing: .14em;
    color: var(--cinnabar); font-weight: 500;
}

.section-head { text-align: center; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); color: var(--ink); }
.section-head .sub { color: var(--ink-3); font-size: 15px; margin-top: 10px; }
.section-head .rule { width: 32px; height: 2px; margin: 20px auto 0; background: var(--cinnabar); border-radius: 2px; }
.section-head .rule::before, .section-head .rule::after { content: none; }

/* ---------- 7. 区块与卡片（纯白卡 + 发丝边框，无角标无回纹） ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper-3); }

.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card::before, .card::after { content: none; }
.card:hover { border-color: #d8d5cf; box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-link { display: block; cursor: pointer; }
.card-icon {
    width: 44px; height: 44px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
    background: var(--cinnabar-bg); color: var(--cinnabar);
    border-radius: 10px; font-size: 22px;
    transition: background .2s, color .2s;
}
.card:hover .card-icon { background: var(--cinnabar); color: #fff; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card .desc { color: var(--ink-3); font-size: 14.5px; line-height: 1.75; margin: 0; }
.card .more {
    margin-top: 18px; font-size: 14px; color: var(--cinnabar);
    display: inline-flex; align-items: center; gap: 5px;
}

.card-num {
    position: absolute; top: 20px; right: 22px;
    font-size: 13px; color: var(--ink-3); letter-spacing: .08em;
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid > *, .split > *, .footer-grid > * { min-width: 0; }

/* 引用块：只留一条竖线 */
.quote-block {
    padding: 4px 0 4px 20px;
    border-left: 2px solid var(--cinnabar);
    font-family: var(--font-song); font-size: 17px; line-height: 1.95; color: var(--ink);
}
.quote-block cite { display: block; margin-top: 8px; font-family: var(--font-hei); font-size: 13px; font-style: normal; color: var(--ink-3); }

/* 提示条：浅灰底，无虚线 */
.notice {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 18px 22px; border-radius: var(--radius);
    background: var(--paper-3); font-size: 14.5px; color: var(--ink-2);
    border: none;
}
.notice strong { color: var(--ink); }
.notice .ico { font-size: 18px; color: var(--ink-3); margin-top: 3px; }

/* ---------- 8. 首页主视觉（去掉光晕与印章） ---------- */
.hero { padding: 96px 0 80px; }
.hero-inner { display: flex; align-items: center; gap: 64px; }
.hero-portrait { flex-shrink: 0; position: relative; }
.hero-portrait .frame {
    width: 280px; max-width: 100%; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--line); background: var(--paper-3);
}
.hero-portrait .frame img { width: 100%; height: auto; display: block; }
.hero-portrait .halo { display: none; }

.hero-text { flex: 1; min-width: 0; }
.hero-calligraphy {
    font-family: var(--font-kai);
    font-size: clamp(36px, 5.6vw, 64px);
    line-height: 1.35; color: var(--ink);
    margin: 0; font-weight: 500;
}
.hero-calligraphy span { display: block; }
.hero-calligraphy span:nth-child(2) { padding-left: .7em; }
.hero-sign { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-left: 1.4em; }
.hero-sign .bar { width: 40px; height: 1px; background: var(--ink-3); }
.hero-sign .name { font-family: var(--font-song); font-size: 19px; color: var(--ink-2); letter-spacing: .18em; }
.hero-lead { margin-top: 26px; color: var(--ink-3); font-size: 15.5px; line-height: 1.95; max-width: 30em; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.vseal { display: none; }

/* ---------- 9. 数据条（去掉外框，只留数字） ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 32px 0; border: none; background: none; border-radius: 0; }
.stat { flex: 1 1 150px; padding: 0 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-family: var(--font-song); font-size: 30px; font-weight: 600; color: var(--cinnabar); line-height: 1.3; }
.stat span { font-size: 13.5px; color: var(--ink-3); }

/* ---------- 10. 列表 / 步骤 / 表格 ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    background: #fff; border: 1px solid var(--line); color: var(--ink-2);
    font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.steps h4 { font-size: 16px; margin-bottom: 3px; }
.steps p { color: var(--ink-3); font-size: 14.5px; margin: 0; }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { position: relative; padding-left: 18px; margin-bottom: 9px; color: var(--ink-2); font-size: 15px; }
.plain-list li::before {
    content: ""; position: absolute; left: 0; top: .72em;
    width: 5px; height: 5px; border-radius: 50%; background: var(--cinnabar);
}

.table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; max-width: 100%;
}
table.gf { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
table.gf th, table.gf td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
table.gf thead th { background: var(--paper-3); font-weight: 600; font-size: 14.5px; color: var(--ink); border-bottom: 1px solid var(--line); }
table.gf tbody tr:last-child td { border-bottom: none; }
table.gf tbody tr:hover { background: #fbfbfa; }
table.gf td.k { color: var(--ink); font-weight: 600; white-space: nowrap; }

.tag {
    display: inline-block; padding: 3px 10px; margin: 0 6px 6px 0;
    font-size: 12.5px; border-radius: 20px;
    background: var(--paper-3); color: var(--ink-2);
}
.tag-red { background: var(--cinnabar-bg); color: var(--cinnabar); }

/* ---------- 11. 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 13px; font: inherit; font-size: 15px;
    color: var(--ink); background: #fff;
    border: 1px solid var(--line); border-radius: 8px;
    transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--cinnabar);
    box-shadow: 0 0 0 3px rgba(176, 57, 46, .1);
}
.field textarea { min-height: 110px; resize: vertical; }

/* ---------- 12. 分栏 ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.side-panel { background: var(--paper-3); border: none; border-radius: var(--radius-lg); padding: 26px; }
.side-panel h4 { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.side-panel.sticky { position: sticky; top: 92px; }

/* ---------- 13. 页脚（改浅色，收掉深色大块） ---------- */
.site-footer {
    flex-shrink: 0; background: var(--paper-3); color: var(--ink-3);
    padding: 56px 0 28px; font-size: 14px; border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: var(--ink); font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: var(--ink-3); transition: color .18s; }
.site-footer a:hover { color: var(--cinnabar); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-name { color: var(--ink); }
.footer-bottom {
    margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px;
    font-size: 13.5px;
}
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom img { width: 14px; height: 14px; object-fit: contain; }

/* ---------- 14. 微信浮窗（更轻） ---------- */
.qr-float {
    position: fixed; z-index: 55; right: 22px; bottom: 24px;
    width: 168px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 14px;
    touch-action: none;
}
.qr-float .qr-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 14px; font-weight: 500; margin-bottom: 8px; cursor: grab;
}
.qr-float .qr-head:active { cursor: grabbing; }
.qr-float .qr-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s; }
.qr-float.collapsed .qr-body { grid-template-rows: 0fr; }
.qr-float .qr-body > div { overflow: hidden; }
.qr-float img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; padding: 4px; }
.qr-float .qr-tip { font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.6; margin-top: 8px; }
.qr-float .qr-min {
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 6px; color: var(--ink-3); font-size: 14px; line-height: 1;
}
.qr-float .qr-min:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

/* ---------- 15. 阅读页 ---------- */
body.reader { height: 100vh; overflow: hidden; }
.reader-header {
    flex-shrink: 0; background: #fff; border-bottom: 1px solid var(--line);
}
.reader-header .bar { max-width: none; padding: 0 20px; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reader-title { font-family: var(--font-song); font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.reader-layout { flex: 1 1 auto; display: flex; overflow: hidden; }

.reader-aside {
    flex-shrink: 0; width: 288px; display: flex;
    background: #fff; border-right: 1px solid var(--line);
    transition: width .28s ease, transform .28s ease;
}
body.toc-collapsed .reader-aside { width: 0; }
.reader-aside .inner { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.toc-head { padding: 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.toc-head h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.toc-body { flex: 1; overflow-y: auto; padding: 10px; }
.toc-body::-webkit-scrollbar { width: 6px; }
.toc-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.toc-group { margin-bottom: 2px; }
.toc-l1 { display: flex; align-items: center; gap: 2px; }
.toc-l1 > a {
    flex: 1; padding: 7px 9px; font-size: 14.5px; font-weight: 600;
    color: var(--ink); border-radius: 6px; line-height: 1.5; word-break: break-word;
    transition: background .18s, color .18s;
}
.toc-l1 > a:hover { background: var(--paper-3); color: var(--cinnabar); }
.toc-fold { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); border-radius: 6px; transition: transform .2s, color .2s; }
.toc-fold:hover { color: var(--cinnabar); background: var(--paper-3); }
.toc-fold.closed { transform: rotate(-90deg); }
.toc-children { overflow: hidden; max-height: 3000px; transition: max-height .3s ease; }
.toc-children.closed { max-height: 0; }
.toc-l2, .toc-l3 {
    display: block; padding: 6px 9px; font-size: 13.5px; color: var(--ink-2); border-radius: 6px;
    line-height: 1.55; word-break: break-word; transition: background .18s, color .18s;
}
.toc-l2 { margin-left: 12px; }
.toc-l3 { margin-left: 26px; font-size: 13px; color: var(--ink-3); }
.toc-l2:hover, .toc-l3:hover { background: var(--paper-3); color: var(--cinnabar); }
.toc-active { color: var(--cinnabar) !important; background: var(--cinnabar-bg) !important; font-weight: 600; }

.reader-resizer { width: 5px; cursor: col-resize; background: transparent; flex-shrink: 0; position: relative; }
.reader-resizer::after { content: ""; position: absolute; inset: 0 2px; background: var(--line-2); transition: background .2s; }
.reader-resizer:hover::after { background: var(--cinnabar); opacity: .4; }

.reader-main { flex: 1; overflow-y: auto; scroll-behavior: smooth; padding: 32px 22px 96px; }
.reader-paper { max-width: 780px; margin: 0 auto; }
.reader-paper .doc-head { text-align: center; padding-bottom: 24px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.reader-paper .doc-head h1 { font-size: clamp(22px, 3vw, 30px); color: var(--ink); }
.reader-paper .doc-head .meta { color: var(--ink-3); font-size: 13px; margin-top: 10px; }

.doc-body { font-size: 16.5px; line-height: 2; color: var(--ink-2); }
.doc-body p { margin: 0 0 1.05em; text-align: justify; }
.doc-body h1 {
    font-size: 22px; color: var(--ink); margin: 2.2em 0 .9em; padding-bottom: .4em;
    border-bottom: 1px solid var(--line); font-weight: 600;
}
.doc-body h1:first-child { margin-top: 0; }
.doc-body h2 { font-size: 19px; color: var(--ink); margin: 1.8em 0 .7em; padding-left: 12px; border-left: 2px solid var(--cinnabar); }
.doc-body h3 { font-size: 17px; color: var(--ink); margin: 1.4em 0 .6em; font-weight: 600; }
.doc-body mark { background: var(--cinnabar-bg); color: var(--cinnabar); font-weight: 600; padding: 0 3px; border-radius: 3px; }
.doc-body strong { color: var(--ink); }
.doc-body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
.doc-body th { background: var(--paper-3); font-weight: 600; }
.doc-body tr:nth-child(even) td { background: #fcfcfb; }
.doc-body blockquote { margin: 1.4em 0; padding: 12px 18px; background: var(--paper-3); border-left: 2px solid var(--cinnabar); border-radius: 0 8px 8px 0; }
.doc-body img { margin: 1.4em auto; border-radius: 8px; }

/* ---------- 16. 工具类 ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.fade-in { animation: liteFade .4s ease-out both; }
@keyframes liteFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.vtitle { writing-mode: vertical-rl; font-family: var(--font-song); letter-spacing: .2em; color: var(--ink-3); }
.divider { height: 1px; background: var(--line); margin: 48px 0; }
.divider::after { content: none; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .split { grid-template-columns: 1fr; }
    .side-panel.sticky { position: static; }
    .hero-inner { gap: 40px; }
    .hero-portrait .frame { width: 220px; }
}

@media (max-width: 860px) {
    .site-nav { display: none; }
    .site-nav.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; left: 0; right: 0; top: 68px;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 10px 14px 16px; box-shadow: var(--shadow-lg);
    }
    .site-nav.open a { padding: 12px 10px; font-size: 16px; }
    .site-nav.open a.active::after { left: 10px; right: auto; width: 24px; }
    .nav-toggle { display: flex; }
    .header-actions .btn { display: none; }

    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-calligraphy span:nth-child(2) { padding-left: 0; }
    .hero-sign { justify-content: center; padding-left: 0; }
    .hero-actions { justify-content: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .section { padding: 64px 0; }
}

@media (max-width: 620px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 48px; }
    .hero-portrait .frame { width: 180px; }
    .qr-float { width: 142px; right: 12px; bottom: 12px; padding: 10px; }
    .stats { gap: 20px 0; }
    .stat { flex: 1 1 40%; padding: 0 8px; }
    .stat:nth-child(2) { border-right: none; }
    .hide-sm { display: none; }

    .reader-aside { position: absolute; left: 0; top: 0; bottom: 0; z-index: 45; box-shadow: var(--shadow-lg); }
    body.toc-collapsed .reader-aside { transform: translateX(-100%); width: 288px; }
    .reader-resizer { display: none; }
    .reader-main { padding: 20px 14px 80px; }
    .doc-body { font-size: 16px; }
}

@media print {
    .site-header, .site-footer, .qr-float, .reader-aside, .reader-resizer { display: none !important; }
    body, body.reader { height: auto; overflow: visible; background: #fff; }
    .reader-main { overflow: visible; padding: 0; }
    .reader-paper { box-shadow: none; max-width: none; }
}
