@charset "UTF-8";

/* ==========================================================================
   Wonham 墨韵中国风 - 东方新中式美学与诗意随笔设计系统
   ========================================================================== */

:root {
    /* 东方传统色彩（素宣日光调） */
    --bg-page: #fbf9f5;
    /* 素宣纸白底色 */
    --bg-card: #ffffff;
    /* 卷轴白 */
    --bg-card-hover: #ffffff;
    --bg-card-secondary: #f4f0e8;
    /* 仿古宣纸微黄 */
    --bg-input: #fbf9f5;

    --text-primary: #212529;
    /* 焦墨黑 */
    --text-secondary: #4a5568;
    /* 浓墨灰 */
    --text-muted: #8c98a4;
    /* 淡墨灰 */

    --chinese-red: #c84b31;
    /* 朱砂红（印章点睛色） */
    --chinese-red-light: rgba(200, 75, 49, 0.08);
    --chinese-red-hover: #a83820;

    --chinese-blue: #2c4f64;
    /* 霁蓝 / 黛青 */
    --chinese-blue-light: rgba(44, 79, 100, 0.08);

    --chinese-green: #3e6b5c;
    /* 竹青色 */
    --chinese-gold: #b38b4d;
    /* 描金黄色 */

    --border-color: #e8e2d5;
    /* 宣纸线装纹边框 */
    --border-light: #f2ece1;

    --glass-bg: rgba(251, 249, 245, 0.9);
    --glass-border: rgba(232, 226, 213, 0.85);

    --shadow-sm: 0 2px 6px rgba(44, 79, 100, 0.04);
    --shadow-md: 0 8px 20px -4px rgba(44, 79, 100, 0.08);
    --shadow-lg: 0 16px 32px -6px rgba(44, 79, 100, 0.12);
    --shadow-hover: 0 20px 35px -8px rgba(200, 75, 49, 0.16);

    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 999px;

    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimHei, serif;
    --font-calligraphy: "Ma Shan Zheng", "ZCOOL XiaoWei", cursive, serif;
    --font-mono: "Fira Code", Monaco, Consolas, monospace;
}

[data-theme="dark"] {
    /* 东方夜墨色调（夜墨夜色） */
    --bg-page: #13161c;
    /* 黛黑底色 */
    --bg-card: #1b1f27;
    /* 浓墨夜卷 */
    --bg-card-hover: #222832;
    --bg-card-secondary: #242a35;
    --bg-input: #181c23;

    --text-primary: #e6e9ee;
    /* 银墨白 */
    --text-secondary: #b0b8c4;
    /* 清墨灰 */
    --text-muted: #6b7787;
    /* 苍墨灰 */

    --chinese-red: #e05d43;
    /* 夜色朱砂 */
    --chinese-red-light: rgba(224, 93, 67, 0.15);
    --chinese-red-hover: #f0745b;

    --chinese-blue: #5b8ba8;
    /* 夜色霁蓝 */
    --chinese-blue-light: rgba(91, 139, 168, 0.15);

    --chinese-green: #5a9481;
    --chinese-gold: #d4a962;

    --border-color: #2c3340;
    --border-light: #222834;

    --glass-bg: rgba(19, 22, 28, 0.9);
    --glass-border: rgba(44, 51, 64, 0.85);

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 20px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 32px -6px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 20px 35px -8px rgba(224, 93, 67, 0.22);
}

/* 基础重置与字体设置 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body.chinese-style-body {
    font-family: var(--font-serif);
    background-color: var(--bg-page);
    color: var(--text-secondary);
    line-height: 1.85;
    letter-spacing: 0.2px;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 背景全屏粒子 Canvas */
.ambient-ink-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--chinese-red);
}

/* 页面阅读进度条 */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--chinese-blue), var(--chinese-red));
    z-index: 1001;
    transition: width 0.1s linear;
}

/* 顶部宣纸毛玻璃导航 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* 朱砂方印 Logo */
.seal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--chinese-red);
    color: #ffffff;
    font-family: var(--font-calligraphy);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(200, 75, 49, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    user-select: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-logo:hover .seal-icon {
    transform: rotate(-6deg) scale(1.08);
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.logo-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-calligraphy);
    padding-left: 0.4rem;
    border-left: 1px solid var(--border-color);
}

/* 导航链接 */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.25s ease;
}

.nav-ink-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.25s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--chinese-red);
}

.nav-link:hover .nav-ink-dot,
.nav-link.active .nav-ink-dot {
    background: var(--chinese-red);
    box-shadow: 0 0 6px var(--chinese-red);
}

/* 动作按钮 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-btn {
    background: var(--bg-card-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn:hover {
    background: var(--chinese-red-light);
    color: var(--chinese-red);
    border-color: var(--chinese-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 75, 49, 0.18);
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: inline-block;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: currentColor;
}

/* 核心两栏容器 */
.main-container {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 2.25rem;
    position: relative;
    z-index: 2;
}

.content-area {
    min-width: 0;
}

/* 文章流与古典画卷卡片 */
.posts-stream {
    display: flex;
    flex-direction: column;
    gap: 1.85rem;
}

.scroll-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.scroll-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--chinese-red);
    background: var(--bg-card-hover);
}

/* 古典卷轴四角祥云回纹装饰 */
.corner-decor {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-color);
    pointer-events: none;
    transition: border-color 0.3s;
}

.scroll-card:hover .corner-decor {
    border-color: var(--chinese-red);
}

.corner-decor.top-left {
    top: 6px;
    left: 6px;
    border-right: none;
    border-bottom: none;
}

.corner-decor.top-right {
    top: 6px;
    right: 6px;
    border-left: none;
    border-bottom: none;
}

.corner-decor.bottom-left {
    bottom: 6px;
    left: 6px;
    border-right: none;
    border-top: none;
}

.corner-decor.bottom-right {
    bottom: 6px;
    right: 6px;
    border-left: none;
    border-top: none;
}

.post-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

/* 雅致非重点色：分类与文签标签 (低调温润的黛青与宣纸质感) */
.seal-tag a,
.seal-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-secondary);
    color: var(--chinese-blue) !important;
    font-family: var(--font-serif);
    padding: 0.15rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    box-shadow: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.seal-tag a:hover,
.seal-mini:hover {
    background: var(--chinese-blue-light);
    border-color: var(--chinese-blue);
    color: var(--chinese-blue) !important;
}

.author-label {
    color: var(--text-muted);
}

/* 重点色：文章标题 (采用沉稳而醒目的朱砂重点色) */
.post-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.post-title a {
    color: var(--chinese-red);
    transition: all 0.25s ease;
}

.post-title a:hover {
    color: var(--chinese-red-hover);
    text-shadow: 0 0 1px rgba(200, 75, 49, 0.3);
}

/* 诗意摘录框 */
.post-excerpt-wrapper {
    position: relative;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card-secondary);
    border-left: 3px solid var(--border-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 1.35rem;
}

.quote-mark-left,
.quote-mark-right {
    font-family: var(--font-calligraphy);
    font-size: 1.8rem;
    color: var(--text-muted);
    opacity: 0.5;
    line-height: 0;
    vertical-align: -0.35em;
}

.post-excerpt-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    display: inline;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

/* 非重点色：真实文章词签标签（清雅素净，统一可点击） */
.post-tags-area a,
.post-tags-list a,
.default-tag-seal a,
.chinese-tag-pill {
    font-size: 0.8rem;
    background: var(--bg-card-secondary);
    color: var(--text-muted) !important;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.post-tags-area a::before,
.post-tags-list a::before,
.chinese-tag-pill::before {
    content: "# ";
    color: var(--chinese-blue);
    margin-right: 2px;
    font-weight: 700;
}

.post-tags-area a:hover,
.post-tags-list a:hover,
.default-tag-seal a:hover,
.chinese-tag-pill:hover {
    background: var(--bg-page);
    color: var(--chinese-blue) !important;
    border-color: var(--chinese-blue);
    transform: translateY(-1px);
}

.post-actions-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.talk-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-scroll-btn {
    font-family: var(--font-calligraphy);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--chinese-red);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.2s;
}

.read-scroll-btn:hover {
    transform: translateX(4px);
}

/* 国风一体化宣纸浮动书笺分页器 (Integrated Floating Scroll Bar) */
.pagination-wrapper {
    margin-top: 3.5rem;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.chinese-page-nav,
.page-nav,
.ink-floating-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 6px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.chinese-page-nav:hover,
.page-nav:hover,
.ink-floating-nav:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 75, 49, 0.3);
}

/* 基础项：通透轻盈，消除零碎边框 */
.chinese-page-nav span,
.chinese-page-nav a,
.page-nav span,
.page-nav a,
.ink-floating-nav span,
.ink-floating-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    text-decoration: none !important;
}

/* 翻页文字胶囊（前卷往文 / 后卷续文 / 上一页 / 下一页） */
.chinese-page-nav a[href*="page"],
.chinese-page-nav a.prev,
.chinese-page-nav a.next,
.page-nav a[href*="page"],
.page-nav a.prev,
.page-nav a.next,
.ink-floating-nav a[href*="page"],
.ink-floating-nav a.prev,
.ink-floating-nav a.next {
    font-family: var(--font-calligraphy);
    font-size: 1.02rem;
    padding: 0 1.15rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

/* 悬停微动效：淡朱砂墨晕滑入 */
.chinese-page-nav a:hover,
.page-nav a:hover,
.ink-floating-nav a:hover {
    color: var(--chinese-red);
    background: var(--chinese-red-light);
    transform: translateY(-1px);
}

/* 当前活动页码：温润朱砂高亮滑块 */
.chinese-page-nav .current,
.page-nav .current,
.ink-floating-nav .current {
    background: var(--chinese-red) !important;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(200, 75, 49, 0.38);
    transform: scale(1.05);
}

/* 鼠标点击水墨涟漪动画 */
.click-ink-ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%) scale(0);
    animation: inkRippleSpread 0.65s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes inkRippleSpread {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.8;
        border: 2px solid var(--chinese-red);
        background: radial-gradient(circle, rgba(200, 75, 49, 0.25) 0%, transparent 70%);
        transform: translate(-50%, -50%) scale(0.2);
    }

    50% {
        opacity: 0.5;
        border-color: var(--chinese-blue);
    }

    100% {
        width: 140px;
        height: 140px;
        opacity: 0;
        border: 1px solid transparent;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 侧边栏 */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.widget-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.65rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

/* 园主档案 Card */
.chinese-profile-card {
    background: var(--bg-card);
    text-align: center;
    padding: 2rem 1.5rem;
}

.profile-seal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.seal-avatar {
    width: 68px;
    height: 68px;
    background: var(--chinese-red);
    border: 2px solid #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(200, 75, 49, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s;
}

.seal-avatar:hover {
    transform: rotate(4deg) scale(1.05);
}

.seal-character {
    font-family: var(--font-calligraphy);
    font-size: 2.5rem;
    color: #ffffff;
    line-height: 1;
}

.master-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.master-epithet {
    font-size: 0.85rem;
    color: var(--chinese-blue);
    font-weight: 600;
}

.master-motto {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    padding: 0.75rem;
    background: var(--bg-card-secondary);
    border-radius: var(--radius-sm);
}

.chinese-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 1rem 0 0.25rem;
    border-top: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--chinese-red);
}

.stat-name {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.widget-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-list {
    list-style: none;
}

.chinese-cat-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: all 0.2s;
}

.chinese-cat-item a:hover {
    background: var(--chinese-red-light);
    color: var(--chinese-red);
    padding-left: 1rem;
}

.cat-pill {
    font-size: 0.75rem;
    background: var(--bg-card-secondary);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.recent-article-item {
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.recent-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.recent-article-item:hover .recent-title {
    color: var(--chinese-red);
}

.recent-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.chinese-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* 文章详情页 */
.post-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.75rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.post-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.post-detail-title {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--chinese-red);
    line-height: 1.4;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.chinese-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-bottom: 1.5rem;
    margin-bottom: 2.25rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-divider {
    color: var(--border-color);
}

/* 正文排版 */
.poetic-typography {
    font-size: 1.08rem;
    color: var(--text-primary);
    line-height: 1.95;
    letter-spacing: 0.3px;
}

.poetic-typography h1,
.poetic-typography h2,
.poetic-typography h3,
.poetic-typography h4 {
    font-family: var(--font-serif);
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.35;
}

.poetic-typography h1 {
    font-size: 1.7rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.poetic-typography h2 {
    font-size: 1.45rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed var(--border-color);
}

.poetic-typography h3 {
    font-size: 1.25rem;
}

.poetic-typography p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* 正文内联超链接：醒目朱红与下划线微交互 */
.poetic-typography a,
.post-content-typography a,
.ink-typography a {
    color: var(--chinese-red) !important;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px solid rgba(200, 75, 49, 0.4);
    padding: 0 3px 1px 3px;
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.poetic-typography a:hover,
.post-content-typography a:hover,
.ink-typography a:hover {
    color: #ffffff !important;
    background: var(--chinese-red);
    border-bottom-color: var(--chinese-red);
    box-shadow: 0 3px 8px rgba(200, 75, 49, 0.3);
    text-decoration: none;
}

.poetic-typography blockquote {
    margin: 1.75rem 0;
    padding: 1.2rem 1.5rem;
    background: var(--bg-card-secondary);
    border-left: 4px solid var(--chinese-red);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.poetic-typography blockquote a {
    border-bottom-color: rgba(200, 75, 49, 0.6);
}

.poetic-typography ul,
.poetic-typography ol {
    margin: 1.4rem 0;
    padding-left: 1.75rem;
}

.poetic-typography li {
    margin-bottom: 0.6rem;
}

.poetic-typography code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--bg-card-secondary);
    color: var(--chinese-red);
    padding: 0.2em 0.5em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.poetic-typography pre {
    font-family: var(--font-mono);
    background: #181d24;
    color: #e6edf3;
    padding: 1.35rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.75rem 0;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.poetic-typography pre code {
    background: transparent;
    color: inherit;
    border: none;
    padding: 0;
}

.poetic-typography table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
}

.poetic-typography th,
.poetic-typography td {
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--border-color);
}

.poetic-typography th {
    background: var(--bg-card-secondary);
    font-weight: 700;
}

/* 宣纸画卷：正文图片排版规范与自适应 */
.poetic-typography img,
.post-content-typography img,
.ink-typography img,
.post-detail-card img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 2.25rem auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: var(--bg-card);
    padding: 6px;
    box-sizing: border-box;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: zoom-in;
}

.poetic-typography img:hover,
.post-content-typography img:hover,
.ink-typography img:hover,
.post-detail-card img:hover {
    transform: translateY(-4px) scale(1.008);
    border-color: var(--chinese-red);
    box-shadow: 0 10px 30px rgba(200, 75, 49, 0.18);
}

.poetic-typography figure,
.post-content-typography figure {
    margin: 2.25rem auto;
    text-align: center;
    max-width: 100%;
}

.poetic-typography figcaption,
.post-content-typography figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-family: var(--font-serif);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* 图片灯箱放大遮罩 (Image Lightbox Modal) */
.ink-image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 16, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ink-image-lightbox.is-active {
    opacity: 1;
    pointer-events: auto;
}

.ink-image-lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ink-image-lightbox.is-active img {
    transform: scale(1);
}

/* 篇末落款 */
.post-end-stamp {
    text-align: right;
    margin: 2.5rem 0 1.5rem;
}

.chinese-seal-end {
    display: inline-block;
    border: 2px solid var(--chinese-red);
    color: var(--chinese-red);
    font-family: var(--font-calligraphy);
    font-size: 1.15rem;
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    letter-spacing: 2px;
    transform: rotate(-3deg);
}

.chinese-copyright-box, .ink-copyright-card {
    margin-top: 1.5rem;
    background: var(--bg-card-secondary);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.chinese-copyright-box a, .ink-copyright-card a, .comment-list a {
    color: var(--chinese-red);
    font-weight: 600;
    border-bottom: 1px dashed rgba(200, 75, 49, 0.4);
    transition: all 0.2s ease;
}

.chinese-copyright-box a:hover, .ink-copyright-card a:hover, .comment-list a:hover {
    color: var(--chinese-red-hover);
    border-bottom-style: solid;
    border-bottom-color: var(--chinese-red);
}

/* 前后篇卷轴导航 (左右双栏并列排版) */
.chinese-post-nav,
.post-nav-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 2.25rem 0;
}

.post-nav-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-nav-prev {
    text-align: left;
    align-items: flex-start;
}

.post-nav-next {
    text-align: right;
    align-items: flex-end;
}

.post-nav-item:hover {
    border-color: var(--chinese-red);
    box-shadow: var(--shadow-md);
    background: var(--bg-card-hover);
}

.post-nav-prev:hover {
    transform: translateX(-4px);
}

.post-nav-next:hover {
    transform: translateX(4px);
}

.nav-direction {
    font-family: var(--font-calligraphy);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--chinese-red);
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
    display: inline-block;
}

.nav-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.nav-title a {
    color: var(--text-primary);
    transition: color 0.2s;
}

.nav-title a:hover {
    color: var(--chinese-red);
}

/* 评论区 */
.comments-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
}

.comments-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.comments-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chinese-respond {
    background: var(--bg-card-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.comment-inputs-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.text-input,
.textarea-input,
.search-modal-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.text-input:focus,
.textarea-input:focus,
.search-modal-input:focus {
    border-color: var(--chinese-red);
    box-shadow: 0 0 0 3px var(--chinese-red-light);
}

.textarea-input {
    min-height: 110px;
    resize: vertical;
}

.chinese-submit-btn,
.search-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    background: var(--chinese-red);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-calligraphy);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 14px rgba(200, 75, 49, 0.3);
}

.chinese-submit-btn:hover,
.search-submit-btn:hover {
    background: var(--chinese-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200, 75, 49, 0.4);
    color: #ffffff;
}

.comment-list {
    list-style: none;
}

.comment-list li {
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--border-light);
}

.comment-list .comment-children {
    padding-left: 2rem;
    border-left: 2px solid var(--chinese-red-light);
    margin-top: 1rem;
}

/* 搜索弹窗 */
.search-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.search-modal-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

.search-modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    width: 90%;
    max-width: 540px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.search-modal-title {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.search-modal-form {
    display: flex;
    gap: 0.75rem;
}

.search-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* 回到顶部 */
.chinese-back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--chinese-red);
    color: var(--chinese-red);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 90;
}

.chinese-back-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-top-text {
    font-family: var(--font-calligraphy);
    font-size: 1rem;
    font-weight: 700;
}

.chinese-back-top:hover {
    background: var(--chinese-red);
    color: #ffffff;
    transform: translateY(-3px) scale(1.08);
}

/* 底部 Footer */
.chinese-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
    margin-top: 4.5rem;
    position: relative;
    z-index: 2;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-meta-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-seal-line {
    margin-bottom: 0.25rem;
}

.chinese-seal-footer {
    display: inline-block;
    background: var(--chinese-red);
    color: #ffffff;
    font-family: var(--font-calligraphy);
    font-size: 1.1rem;
    padding: 0.15rem 0.65rem;
    border-radius: 2px;
    letter-spacing: 2px;
    box-shadow: 0 2px 8px rgba(200, 75, 49, 0.3);
}

.footer-meta-center a {
    color: var(--text-secondary);
}

.footer-meta-center a:hover {
    color: var(--chinese-red);
}

.icp-info {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.82rem;
}

.icp-info .divider {
    color: var(--border-color);
    user-select: none;
}

.theme-name {
    color: var(--chinese-red);
    font-weight: 600;
}

/* 响应式断点 */
@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .comment-inputs-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        display: none;
    }

    .main-nav.is-open {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .post-detail-card,
    .scroll-card,
    .comments-container {
        padding: 1.5rem;
    }

    .post-detail-title {
        font-size: 1.55rem;
    }

    .chinese-post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
        align-items: flex-start;
    }
}