@font-face {
    font-family: 'LiSu';
    src: local('LiSu'), local('隶书'), local('SimLi');
}

:root {
    --paper: #f3ecd8;
    --paper-light: #fffaf0;
    --ink: #3b2a1a;
    --ink-soft: #6b4c2a;
    --accent: #8b693c;
    --line: rgba(139, 105, 60, 0.18);
    --panel: rgba(255, 252, 242, 0.52);
    --shadow: 0 18px 50px rgba(82, 56, 26, 0.08);
    --reader-scale: 1;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-size: 16px;
    color: var(--ink);
    overflow-x: hidden;
}

body {
    background-color: var(--paper);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(180, 160, 120, 0.03) 2px, rgba(180, 160, 120, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(160, 140, 100, 0.02) 1px, rgba(160, 140, 100, 0.02) 3px),
        radial-gradient(ellipse at 20% 50%, rgba(200, 180, 140, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(180, 160, 120, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(190, 170, 130, 0.07) 0%, transparent 45%);
    position: relative;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

button:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(107, 76, 42, 0.55);
    outline-offset: 3px;
}

.paper-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 300px 300px;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    z-index: 30;
    background: linear-gradient(90deg, rgba(139, 105, 60, 0.2), rgba(107, 76, 42, 0.85));
    transition: width 0.35s ease;
}

.page {
    display: none;
    position: relative;
    z-index: 1;
}

.page.active {
    display: flex;
}

.home-page,
.error-page {
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 96px 20px 120px;
}

.home-container,
.error-card {
    width: min(720px, 92vw);
    text-align: center;
    padding: clamp(32px, 7vw, 58px) clamp(24px, 6vw, 54px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(243, 236, 216, 0.64);
    backdrop-filter: blur(3px);
    box-shadow: var(--shadow), inset 0 0 80px rgba(139, 105, 60, 0.035);
    position: relative;
}

.home-container::before,
.home-container::after,
.error-card::before,
.error-card::after {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    border-color: rgba(139, 105, 60, 0.28);
    border-style: solid;
}

.home-container::before,
.error-card::before {
    top: -7px;
    left: -7px;
    border-width: 2px 0 0 2px;
}

.home-container::after,
.error-card::after {
    right: -7px;
    bottom: -7px;
    border-width: 0 2px 2px 0;
}

.eyebrow {
    font-family: 'KaiTi', '楷体', 'STKaiti', serif;
    font-size: 14px;
    color: rgba(107, 76, 42, 0.7);
    letter-spacing: 0.28em;
    margin-bottom: 14px;
}

.main-title {
    font-family: 'LiSu', '隶书', 'SimLi', 'STLiti', 'KaiTi', serif;
    font-size: clamp(64px, 12vw, 118px);
    font-weight: normal;
    color: var(--ink);
    letter-spacing: 0.32em;
    text-shadow: 2px 2px 0 rgba(139, 105, 60, 0.1), 4px 4px 8px rgba(139, 105, 60, 0.06);
    line-height: 1.12;
    margin-left: 0.32em;
    user-select: none;
}

.sub-title {
    font-family: 'LiSu', '隶书', 'SimLi', 'STLiti', 'KaiTi', serif;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: normal;
    color: var(--ink-soft);
    letter-spacing: 0.45em;
    margin-top: 10px;
    margin-left: 0.45em;
    user-select: none;
}

.divider,
.footer-divider {
    width: 120px;
    height: 1px;
    margin: 30px auto;
    background: linear-gradient(to right, transparent, rgba(107, 76, 42, 0.42), transparent);
}

.home-actions,
.reader-toolbar,
.catalog-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-start,
.btn-secondary,
.nav-btn,
.tool-btn,
.catalog-card {
    border: 1px solid rgba(107, 76, 42, 0.28);
    background: rgba(255, 252, 242, 0.24);
    color: var(--ink-soft);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn-start:hover,
.btn-secondary:hover,
.nav-btn:hover,
.tool-btn:hover,
.catalog-card:hover {
    color: var(--ink);
    border-color: rgba(107, 76, 42, 0.55);
    background: rgba(255, 252, 242, 0.5);
    box-shadow: 0 8px 24px rgba(82, 56, 26, 0.08);
}

.btn-start:active,
.btn-secondary:active,
.nav-btn:active,
.tool-btn:active,
.catalog-card:active {
    transform: scale(0.98);
}

.btn-start {
    font-family: 'LiSu', '隶书', 'SimLi', 'STLiti', 'KaiTi', serif;
    font-size: 24px;
    letter-spacing: 0.5em;
    padding: 14px 42px 14px 58px;
    border-radius: 999px;
}

.btn-secondary,
.tool-btn {
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    font-family: 'KaiTi', '楷体', 'STKaiti', serif;
    font-size: 15px;
    letter-spacing: 0.08em;
}

.tool-btn.active,
.tool-btn[aria-pressed="true"] {
    color: #fffaf0;
    background: rgba(107, 76, 42, 0.72);
    border-color: rgba(107, 76, 42, 0.72);
}

.home-tip {
    margin-top: 22px;
    font-family: 'KaiTi', '楷体', 'STKaiti', serif;
    color: rgba(107, 76, 42, 0.56);
    letter-spacing: 0.08em;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px clamp(14px, 4vw, 34px);
    background: linear-gradient(to bottom, rgba(243, 236, 216, 0.98) 0%, rgba(243, 236, 216, 0.9) 78%, rgba(243, 236, 216, 0) 100%);
    z-index: 20;
    backdrop-filter: blur(6px);
}

.nav-btn {
    min-width: 104px;
    padding: 8px 16px;
    border-radius: 999px;
    font-family: 'KaiTi', '楷体', 'STKaiti', serif;
    font-size: 16px;
    letter-spacing: 0.08em;
}

.nav-btn:disabled {
    opacity: 0.42;
    cursor: default;
    box-shadow: none;
}

.nav-home {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
}

.nav-home:active {
    transform: translateX(-50%) scale(0.98);
}

.inner-page .top-nav {
    left: 0;
    right: 0;
    width: min(1040px, 92vw);
    margin: 0 auto;
    transform: none;
    gap: 12px;
    padding-left: 0;
    padding-right: 0;
}

.inner-page .nav-home {
    position: static;
    transform: none;
}

.inner-page .nav-home:active {
    transform: scale(0.98);
}

.catalog-page,
.inner-page {
    min-height: 100vh;
    flex-direction: column;
    padding: 86px 0 118px;
}

/* 目录页导航：与内容区域等宽、按钮居中靠拢 */
.catalog-page .top-nav {
    left: 50%;
    width: min(1040px, 92vw);
    transform: translateX(-50%);
    padding-left: 0;
    padding-right: 0;
}

.catalog-nav .nav-home {
    position: static;
    transform: none;
}

.catalog-nav .nav-home:active {
    transform: scale(0.98);
}

.catalog-container,
.content-shell {
    width: min(1040px, 92vw);
    margin: 0 auto;
}

.catalog-header {
    text-align: center;
    margin: 18px auto 26px;
}

.catalog-title {
    font-family: 'LiSu', '隶书', 'SimLi', 'STLiti', 'KaiTi', serif;
    font-size: clamp(38px, 7vw, 72px);
    font-weight: normal;
    letter-spacing: 0.25em;
    margin-left: 0.25em;
    color: var(--ink);
}

.catalog-desc {
    max-width: 680px;
    margin: 16px auto 0;
    color: rgba(59, 42, 26, 0.72);
    font-family: 'KaiTi', '楷体', 'STKaiti', serif;
    line-height: 1.9;
    letter-spacing: 0.05em;
}

.catalog-tools {
    justify-content: flex-start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 252, 242, 0.36);
    box-shadow: 0 8px 28px rgba(82, 56, 26, 0.05);
}

.search-label {
    font-family: 'KaiTi', '楷体', 'STKaiti', serif;
    color: var(--accent);
    letter-spacing: 0.14em;
}

.search-input {
    flex: 1 1 260px;
    min-height: 42px;
    border: 1px solid rgba(107, 76, 42, 0.24);
    border-radius: 999px;
    background: rgba(255, 252, 242, 0.58);
    padding: 0 18px;
    color: var(--ink);
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

.catalog-meta {
    margin: 18px 4px 14px;
    color: rgba(107, 76, 42, 0.68);
    font-family: 'KaiTi', '楷体', 'STKaiti', serif;
    letter-spacing: 0.08em;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.catalog-card {
    display: flex;
    min-height: 184px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 252, 242, 0.38);
    box-shadow: inset 0 0 32px rgba(139, 105, 60, 0.025);
}

.catalog-card:hover {
    transform: translateY(-3px);
}

.catalog-card-index,
.catalog-card-footer {
    font-family: 'KaiTi', '楷体', 'STKaiti', serif;
    color: rgba(107, 76, 42, 0.62);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.catalog-card-title {
    margin: 10px 0;
    font-family: 'LiSu', '隶书', 'SimLi', 'STLiti', 'KaiTi', serif;
    font-size: 32px;
    font-weight: normal;
    color: var(--ink);
    letter-spacing: 0.16em;
}

.catalog-card-preview {
    flex: 1;
    color: rgba(59, 42, 26, 0.74);
    font-family: 'SimSun', '宋体', 'STSong', serif;
    font-size: 15px;
    line-height: 1.8;
}

.catalog-card-footer {
    margin-top: 18px;
}

.empty-state {
    margin-top: 28px;
    padding: 28px;
    text-align: center;
    border: 1px dashed rgba(107, 76, 42, 0.25);
    border-radius: 18px;
    color: rgba(107, 76, 42, 0.7);
    font-family: 'KaiTi', '楷体', 'STKaiti', serif;
}

.reader-toolbar {
    justify-content: flex-end;
    margin-bottom: 14px;
}

.content-area {
    width: 100%;
    margin: 0 auto;
    padding: 12px 0 28px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.reader-title {
    margin: 2px 0 18px;
    text-align: center;
    font-family: 'LiSu', '隶书', 'SimLi', 'STLiti', 'KaiTi', serif;
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: normal;
    color: var(--ink);
    letter-spacing: 0.16em;
}

.section-quote,
.section-explain,
.section-case {
    margin-bottom: 26px;
    padding: clamp(22px, 5vw, 34px);
    position: relative;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid rgba(139, 105, 60, 0.12);
    box-shadow: var(--shadow), inset 0 0 34px rgba(139, 105, 60, 0.025);
}

.section-label {
    font-family: 'LiSu', '隶书', 'SimLi', 'STLiti', serif;
    font-size: 16px;
    color: var(--accent);
    letter-spacing: 0.28em;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px dotted rgba(139, 105, 60, 0.24);
    text-align: center;
}

.quote-text {
    font-family: 'KaiTi', '楷体', 'STKaiti', 'AR PL UKai CN', serif;
    font-size: calc(20px * var(--reader-scale));
    color: #4a3620;
    line-height: 2.05;
    letter-spacing: 0.08em;
    text-align: justify;
    text-indent: 2em;
    margin-bottom: 12px;
}

.quote-source {
    font-family: 'KaiTi', '楷体', 'STKaiti', serif;
    font-size: 14px;
    color: var(--accent);
    text-align: right;
    letter-spacing: 0.1em;
}

.explain-text,
.case-text {
    color: var(--ink);
    line-height: 2.05;
    text-align: justify;
    text-indent: 2em;
}

.explain-text {
    font-family: 'SimSun', '宋体', 'STSong', 'NSimSun', serif;
    font-size: calc(17px * var(--reader-scale));
    letter-spacing: 0.05em;
}

.case-text {
    font-family: 'DengXian', '等线', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    font-size: calc(16px * var(--reader-scale));
    letter-spacing: 0.04em;
}

.page-indicator {
    text-align: center;
    padding: 4px 0 20px;
    font-family: 'KaiTi', '楷体', 'STKaiti', serif;
    font-size: 14px;
    color: rgba(107, 76, 42, 0.56);
    letter-spacing: 0.15em;
}

.error-card h2 {
    font-family: 'LiSu', '隶书', 'SimLi', 'STLiti', 'KaiTi', serif;
    font-size: 42px;
    font-weight: normal;
    letter-spacing: 0.16em;
    margin-bottom: 18px;
}

.error-card p {
    font-family: 'KaiTi', '楷体', 'STKaiti', serif;
    line-height: 1.8;
    color: rgba(59, 42, 26, 0.72);
    margin-bottom: 24px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 104px;
    transform: translate(-50%, 12px);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(59, 42, 26, 0.88);
    color: #fffaf0;
    font-family: 'KaiTi', '楷体', 'STKaiti', serif;
    opacity: 0;
    pointer-events: none;
    z-index: 40;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.public-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 14px 0 18px;
    z-index: 10;
    background: linear-gradient(to top, rgba(243, 236, 216, 0.97) 0%, rgba(243, 236, 216, 0.82) 70%, rgba(243, 236, 216, 0) 100%);
    backdrop-filter: blur(4px);
}

.footer-divider {
    margin: 0 auto 10px;
}

.footer-text {
    font-family: 'LiSu', '隶书', 'SimLi', 'STLiti', serif;
    font-size: 14px;
    color: rgba(59, 42, 26, 0.5);
    letter-spacing: 0.3em;
    margin-bottom: 2px;
}

.footer-sub {
    font-family: 'KaiTi', '楷体', 'STKaiti', serif;
    font-size: 12px;
    color: rgba(107, 76, 42, 0.35);
    letter-spacing: 0.2em;
}

/* ===== 首页整体放大 25% ===== */
html:has(.home-page.active),
body:has(.home-page.active) {
    overflow: hidden;
}

.home-page.active {
    overflow: hidden;
    transform: scale(1.25);
    transform-origin: center center;
}

/* ===== 内容页整体放大 25% ===== */
/* 将 body 作为唯一滚动容器，避免 scale 引发 html/body 双滚动条 */
html:has(.inner-page.active) {
    overflow: hidden;
    height: 100%;
}
body:has(.inner-page.active) {
    overflow-y: auto;
    height: 100%;
}

.inner-page.active {
    transform: scale(1.25);
    transform-origin: top center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-container,
.error-card,
.catalog-container,
.content-shell {
    animation: fadeInUp 0.55s ease-out;
}

/* ========================================
   移动端响应式布局 (屏幕宽度 < 768px)
   单列结构 · 触控优化 · 字号/间距适配
   ======================================== */
@media (max-width: 767px) {
    /* ---- 全局基础 ---- */
    html, body {
        font-size: 16px;
        -webkit-tap-highlight-color: transparent;
    }

    /* ---- 导航栏通用 ---- */
    .top-nav {
        position: relative;
        min-height: 48px;
        padding: 6px 12px;
        gap: 6px;
    }

    .nav-btn {
        min-width: auto;
        min-height: 40px;
        padding: 6px 10px;
        font-size: 13px;
        letter-spacing: 0.04em;
        border-radius: 8px;
    }

    .nav-home {
        position: static;
        transform: none;
    }

    .nav-home:active {
        transform: scale(0.98);
    }

    /* ---- 首页 ---- */
    .home-page,
    .error-page {
        padding: 56px 16px 140px;
    }

    .home-container,
    .error-card {
        width: 94vw;
        padding: 28px 18px;
        border-radius: 14px;
    }

    .home-container::before,
    .home-container::after,
    .error-card::before,
    .error-card::after {
        width: 28px;
        height: 28px;
    }

    .home-container::before,
    .error-card::before {
        top: -5px;
        left: -5px;
    }

    .home-container::after,
    .error-card::after {
        right: -5px;
        bottom: -5px;
    }

    .eyebrow {
        font-size: 12px;
        letter-spacing: 0.18em;
        margin-bottom: 8px;
    }

    .main-title {
        font-size: clamp(44px, 13vw, 68px);
        letter-spacing: 0.18em;
        margin-left: 0.18em;
    }

    .sub-title {
        font-size: clamp(18px, 4.5vw, 28px);
        letter-spacing: 0.28em;
        margin-top: 6px;
    }

    .divider,
    .footer-divider {
        width: 72px;
        margin: 18px auto;
    }

    .home-actions {
        flex-direction: column;
        gap: 10px;
    }

    .home-actions .btn-start,
    .home-actions .btn-secondary {
        width: 100%;
        min-height: 46px;
    }

    .btn-start {
        font-size: 20px;
        padding: 12px 24px 12px 36px;
        letter-spacing: 0.35em;
    }

    .btn-secondary,
    .tool-btn {
        min-height: 42px;
        padding: 8px 14px;
        font-size: 14px;
    }

    .home-tip {
        font-size: 12px;
        margin-top: 14px;
    }

    /* 首页缩放在小屏减弱为 8%，避免溢出 */
    .home-page.active {
        transform: scale(1.08);
        transform-origin: center center;
    }

    /* ---- 目录页 ---- */
    .catalog-page {
        padding: 64px 0 96px;
    }

    /* 目录导航改为静态，跟随内容滚动 */
    .catalog-page .top-nav {
        position: relative;
        left: auto;
        width: 100%;
        transform: none;
        padding: 8px 12px;
        gap: 6px;
        margin: 0 0 10px;
        border-bottom: 1px solid var(--line);
        background: rgba(243, 236, 216, 0.94);
        backdrop-filter: blur(6px);
    }

    .catalog-container {
        width: 94vw;
    }

    .catalog-header {
        margin: 10px auto 16px;
    }

    .catalog-title {
        font-size: clamp(30px, 8vw, 44px);
        letter-spacing: 0.16em;
        margin-left: 0.16em;
    }

    .catalog-desc {
        font-size: 13px;
        line-height: 1.75;
        padding: 0 4px;
        margin-top: 10px;
    }

    /* 搜索工具区：纵向堆叠 */
    .catalog-tools {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 14px;
    }

    .search-label {
        width: 100%;
        font-size: 13px;
    }

    .search-input {
        flex: 1 1 100%;
        min-height: 44px;
        padding: 0 14px;
        font-size: 15px;
    }

    .catalog-tools .tool-btn {
        min-height: 38px;
        flex: 1 1 auto;
        font-size: 13px;
    }

    /* 目录卡片：单列、增大触控区域 */
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .catalog-card {
        min-height: 120px;
        padding: 14px 16px;
        border-radius: 14px;
    }

    .catalog-card-title {
        font-size: 24px;
        margin: 4px 0 6px;
        letter-spacing: 0.1em;
    }

    .catalog-card-preview {
        font-size: 13px;
        line-height: 1.7;
    }

    .catalog-card-footer {
        margin-top: 10px;
        font-size: 12px;
    }

    .empty-state {
        margin-top: 20px;
        padding: 18px;
        font-size: 13px;
        border-radius: 14px;
    }

    /* ---- 内容详情页 ---- */
    .inner-page {
        padding: 0 0 96px;
    }

    /* 内容导航改为静态，不遮挡内容；4按钮单行均分 */
    .inner-page .top-nav {
        position: relative;
        left: auto;
        right: auto;
        width: 100%;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        gap: 4px;
        padding: 6px 6px;
        margin: 0 0 10px;
        transform: none;
        border-bottom: 1px solid var(--line);
        background: rgba(243, 236, 216, 0.94);
        backdrop-filter: blur(6px);
    }

    .inner-page .nav-btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 40px;
        text-align: center;
        font-size: 12px;
        letter-spacing: 0.02em;
        padding: 6px 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .content-shell {
        width: 94vw;
        padding: 0 4px;
    }

    .reader-toolbar {
        justify-content: space-between;
        gap: 6px;
        margin: 12px 0 8px;
    }

    .reader-toolbar .tool-btn {
        flex: 1 1 auto;
        min-height: 38px;
        min-width: auto;
        padding: 6px 8px;
        font-size: 13px;
    }

    .reader-title {
        font-size: clamp(18px, 4.5vw, 26px);
        margin: 4px 0 12px;
        letter-spacing: 0.1em;
    }

    .section-quote,
    .section-explain,
    .section-case {
        margin-bottom: 14px;
        padding: 16px 14px;
        border-radius: 14px;
    }

    .section-label {
        font-size: 14px;
        letter-spacing: 0.18em;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .quote-text {
        font-size: calc(16px * var(--reader-scale));
        line-height: 1.9;
        letter-spacing: 0.05em;
        text-indent: 1.6em;
        margin-bottom: 8px;
    }

    .quote-source {
        font-size: 12px;
    }

    .explain-text {
        font-size: calc(14px * var(--reader-scale));
        line-height: 1.9;
        letter-spacing: 0.06em;
        text-indent: 1.6em;
    }

    .case-text {
        font-size: calc(14px * var(--reader-scale));
        line-height: 1.85;
        letter-spacing: 0.05em;
        text-indent: 1.6em;
    }

    .page-indicator {
        padding: 10px 0 16px;
        font-size: 12px;
    }

    /* 内容页缩放在小屏取消，避免横向溢出 */
    .inner-page.active {
        transform: none;
    }

    /* ---- 错误页 ---- */
    .error-card h2 {
        font-size: 26px;
        letter-spacing: 0.1em;
        margin-bottom: 12px;
    }

    .error-card p {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 18px;
    }

    /* ---- 底部固定元素 ---- */
    .public-footer {
        padding: 8px 0 12px;
    }

    .footer-divider {
        margin: 0 auto 6px;
    }

    .footer-text {
        font-size: 11px;
        letter-spacing: 0.18em;
    }

    .footer-sub {
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    .toast {
        bottom: 80px;
        font-size: 13px;
        padding: 8px 14px;
        max-width: 88vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .reading-progress {
        height: 2px;
    }
}
