/* ==========================================================================
   墨云阁 · 视觉优化层 v2 (ink.css)
   --------------------------------------------------------------------------
   风格定位：极简科技人文 —— 浅色极简落地页 · 克制理性 · 带有生命感与有机感
             弱化硬核科技冰冷感，偏向"AI 陪伴 / 智能伙伴"的叙事调性

   页面底色：浅米灰 #f5f5f5，低饱和度，无强烈渐变大背景
   画面质感：手绘线稿插图（细黑轮廓、低填充）+ 少量彩色点彩点缀
   光影    ：几乎不用重阴影，靠线条与留白区分层级，轻扁平
   留白    ：大量留白，干净通透，浅色模式为主

   实现方式：仅覆盖设计令牌与装饰样式，不改动任何 PHP 逻辑与 DOM 结构
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
    /* 强调色 —— 朱砂红，只用于引导注意力 */
    --ink-accent: #c0392b;
    --ink-accent-hover: #a13124;
    --ink-accent-soft: rgba(192, 57, 43, 0.06);
    --ink-accent-line: rgba(192, 57, 43, 0.26);

    /* 点彩配色（细节点缀，不做大面积色块） */
    --dot-red: #c0392b;
    --dot-teal: #3f8f8a;
    --dot-amber: #d99a2b;
    --dot-sage: #7a9e6f;

    /* 线稿：细黑轮廓，低填充 */
    --line: rgba(32, 33, 36, 0.82);
    --line-soft: rgba(32, 33, 36, 0.30);
    --line-faint: rgba(32, 33, 36, 0.14);

    /* 覆盖主题原有主色，让残留旧规则自动跟随 */
    --primary-color: var(--ink-accent);
    --primary-hover: var(--ink-accent-hover);
    --primary-light: var(--ink-accent-soft);

    /* 音乐页遗留的整套紫色令牌（style.css 中定义）→ 收敛到朱砂红 / 纸面体系。
       music.css 大量写作 var(--music-primary, #a855f7)，只要在这里改掉变量，
       进度条、音量条、滑块圆点、歌词高亮、结果项悬停等都会自动跟随。 */
    --music-primary: var(--ink-accent);
    --music-primary-deep: var(--ink-accent-hover);
    --music-primary-soft: var(--ink-accent-soft);
    --music-progress-track: var(--paper-3);
    --music-lyric-active: var(--ink-accent);
    --music-lyric-inactive: var(--ink-400);
    --music-result-hover: var(--paper-2);
    --music-result-playing: var(--ink-accent-soft);
    --music-spinner-track: var(--paper-3);
    --music-scrollbar-thumb: var(--ink-300);
    --music-badge-br-bg: var(--paper-2);
    --music-badge-br-text: var(--ink-accent);
    --music-badge-br-border: var(--border-color);
    --music-tip-bg: var(--card-bg);
    --music-tip-border: var(--border-color);

    /* 墨色层级 */
    --ink-900: #202124;
    --ink-800: #2f3134;
    --ink-700: #43464a;
    --ink-600: #5f6368;
    --ink-500: #80848a;
    --ink-400: #a3a7ac;
    --ink-300: #c6c9cd;

    /* 纸面层级 —— 浅米灰基调 #f5f5f5 */
    --paper-0: #ffffff;
    --paper-1: #fafaf9;
    --paper-2: #f5f5f5;
    --paper-3: #eeeeec;

    --text-primary: var(--ink-900);
    --text-secondary: var(--ink-600);
    --text-muted: var(--ink-500);

    --bg-primary: var(--paper-0);
    --bg-secondary: var(--paper-2);
    --bg-tertiary: var(--paper-3);
    --card-bg: var(--paper-0);
    --input-bg: var(--paper-1);

    /* 边框：极淡线条，用于分层而非装饰 */
    --border-color: #e8e8e6;
    --border-dark: #dcdcda;
    --ink-hairline: rgba(32, 33, 36, 0.07);

    /* 圆角：收敛为 3 档 */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;

    /* 轻扁平：几乎不用阴影，层级靠线条与留白 */
    --shadow-sm: 0 1px 2px rgba(32, 33, 36, 0.025);
    --shadow: 0 1px 3px rgba(32, 33, 36, 0.035);
    --shadow-md: 0 2px 8px rgba(32, 33, 36, 0.05);
    --shadow-lg: 0 4px 16px rgba(32, 33, 36, 0.06);

    --max-width: 1140px;

    --ink-leading: 1.85;
    --ink-tracking: 0.01em;
}

/* 暗色模式：同一套语汇的夜间版本 */
[data-theme="dark"] {
    --line: rgba(240, 240, 238, 0.78);
    --line-soft: rgba(240, 240, 238, 0.28);
    --line-faint: rgba(240, 240, 238, 0.13);

    --ink-900: #f0f0ee;
    --ink-800: #dcdcda;
    --ink-700: #c2c2c0;
    --ink-600: #9e9e9c;
    --ink-500: #808080;
    --ink-400: #66666a;
    --ink-300: #4a4a4e;

    --paper-0: #1c1d1f;
    --paper-1: #212224;
    --paper-2: #26272a;
    --paper-3: #2e2f32;

    --text-primary: var(--ink-900);
    --text-secondary: var(--ink-600);
    --text-muted: var(--ink-500);

    --bg-primary: var(--paper-0);
    --bg-secondary: var(--paper-2);
    --bg-tertiary: var(--paper-3);
    --card-bg: var(--paper-0);
    --input-bg: var(--paper-1);

    --border-color: #313234;
    --border-dark: #3d3e41;
    --ink-hairline: rgba(240, 240, 238, 0.08);

    --ink-accent: #d9564a;
    --ink-accent-hover: #e56e62;
    --ink-accent-soft: rgba(217, 86, 74, 0.10);
    --ink-accent-line: rgba(217, 86, 74, 0.30);
    --primary-color: var(--ink-accent);
    --primary-hover: var(--ink-accent-hover);
    --primary-light: var(--ink-accent-soft);

    /* 暗色模式下同样收敛音乐页的紫色令牌 */
    --music-primary: var(--ink-accent);
    --music-primary-deep: var(--ink-accent-hover);
    --music-primary-soft: var(--ink-accent-soft);
    --music-progress-track: var(--paper-3);
    --music-lyric-active: var(--ink-accent);
    --music-lyric-inactive: var(--ink-400);
    --music-result-hover: var(--paper-2);
    --music-result-playing: var(--ink-accent-soft);
    --music-spinner-track: var(--paper-3);
    --music-scrollbar-thumb: var(--ink-300);
    --music-badge-br-bg: var(--paper-2);
    --music-badge-br-text: var(--ink-accent);
    --music-badge-br-border: var(--border-color);
    --music-tip-bg: var(--card-bg);
    --music-tip-border: var(--border-color);

    --dot-red: #d9564a;
    --dot-teal: #4fa39d;
    --dot-amber: #e0ab48;
    --dot-sage: #8fb082;

    --shadow-sm: none;
    --shadow: none;
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 4px 18px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   2. 全局排版 —— 中文优先
   -------------------------------------------------------------------------- */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
                 "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC",
                 sans-serif;
    font-size: 16px;
    line-height: var(--ink-leading);
    letter-spacing: var(--ink-tracking);
    color: var(--text-primary);
    /* 低饱和浅米灰底，无强烈渐变大背景 */
    background-color: var(--bg-secondary);
    background-image: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.post-title, .post-title a, .widget-title {
    letter-spacing: -0.015em;
    color: var(--text-primary);
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
}

/* --------------------------------------------------------------------------
   3. 手绘线稿插图
   -------------------------------------------------------------------------- */
.ink-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0 3rem;
    margin-bottom: 0.5rem;
    /* 靠留白与线条分层，无卡片、无投影 */
    background: none;
    border: none;
}

.ink-illus {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    /* 线稿颜色跟随墨色，细黑轮廓 */
    color: var(--line);
    overflow: visible;
    /* 生命感：极缓慢的呼吸浮动 */
    animation: inkFloat 9s ease-in-out infinite;
}

/* 点彩圆点：轻微错峰脉动，制造有机感 */
.ink-illus .ink-dots circle {
    animation: inkDot 5.5s ease-in-out infinite;
}
.ink-illus .ink-dots circle:nth-child(2n) { animation-delay: -1.4s; }
.ink-illus .ink-dots circle:nth-child(3n) { animation-delay: -2.8s; }
.ink-illus .ink-dots circle:nth-child(5n) { animation-delay: -4.1s; }

@keyframes inkFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes inkDot {
    0%, 100% { opacity: .35; }
    50%      { opacity: .95; }
}

/* 尊重系统的"减少动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
    .ink-illus,
    .ink-illus .ink-dots circle {
        animation: none !important;
    }
}

/* 移动端：插画缩小，留白收紧 */
@media (max-width: 768px) {
    .ink-hero { padding: 0.5rem 0 2rem; }
    .ink-illus { max-width: 340px; }
}

/* --------------------------------------------------------------------------
   4. 点彩点缀 —— 少量彩色圆点
   -------------------------------------------------------------------------- */

/* 区块标题：标题文字后跟三颗点彩圆点（不做大面积色块） */
.widget-title::after,
#comments > h3::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--dot-red);
    margin-left: 0.55rem;
    vertical-align: middle;
    box-shadow: 8px 0 0 var(--dot-teal),
                16px 0 0 var(--dot-amber);
    opacity: .85;
}

/* 文章页主标题下方：一条极细线，右端点一颗朱砂点 */
.post.single-post .post-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 1px;
    background: var(--ink-accent-line);
    margin-top: 0.9rem;
    position: relative;
}

.post.single-post .post-title::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dot-red);
    margin-top: calc(0.9rem + 6px);
    opacity: .9;
}

/* 页脚顶部：点彩序列，替代原来的彩色渐变条 */
.site-footer::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin-bottom: 2.5rem;
}

/* 卡片左上角：一颗极小的点彩，制造手作感 */
.post-card {
    position: relative;
}

.post-card::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--dot-teal);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.post-card:hover::after {
    opacity: .7;
}

/* 标签页前的点彩 */
.tag-cloud a::before,
.post-tags a::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
    margin-right: 0.4rem;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   5. 移除装饰噪音
   -------------------------------------------------------------------------- */
.slider-bubbles,
.sbubble {
    display: none !important;
    animation: none !important;
}

.post::before,
.post:hover::before {
    display: none !important;
    content: none !important;
}

#comments::before {
    background: var(--border-color);
    height: 1px;
}

.post-content pre::before {
    display: none !important;
    content: none !important;
}

.no-posts::before {
    background: none;
}

.reading-progress,
.reading-progress-bar {
    background: var(--ink-accent);
    background-image: none;
}

.slider-dot {
    background: rgba(255, 255, 255, 0.45);
    border: none;
}
.slider-dot.active { background: #fff; }

.slider-area {
    background: var(--paper-3);
    background-image: none;
    border-radius: var(--radius-lg);
}

.slide-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.68) 0%, transparent 100%);
}

/* 主题内联的渐变元素统一压平 */
[style*="gradient"] {
    background-image: none !important;
}

/* --------------------------------------------------------------------------
   6. 页头 —— 通透、无厚重感
   -------------------------------------------------------------------------- */
.site-header {
    background: rgba(245, 245, 245, 0.82);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
}

[data-theme="dark"] .site-header {
    background: rgba(28, 29, 31, 0.82);
}

.site-header.scrolled {
    box-shadow: none;
    border-bottom-color: var(--border-color);
    background: rgba(245, 245, 245, 0.94);
}

[data-theme="dark"] .site-header.scrolled {
    background: rgba(28, 29, 31, 0.94);
}

.site-title-text {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-logo-link:hover .site-title-text {
    color: var(--ink-accent);
}

.site-description {
    color: var(--text-muted);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.nav-menu a,
.nav-item > a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border-radius: var(--radius-sm);
    transition: color 0.18s ease;
}

.nav-menu a:hover,
.nav-item > a:hover {
    color: var(--ink-accent);
    background: none;
}

.nav-menu .current-menu-item > a,
.nav-item.current-menu-item > a {
    color: var(--text-primary);
    font-weight: 600;
    background: none;
    box-shadow: inset 0 -2px 0 var(--ink-accent);
}

/* --------------------------------------------------------------------------
   7. 文章卡片 —— 细线分层、轻扁平
   -------------------------------------------------------------------------- */
/* 文章容器：内页与卡片共用的外观 */
.post,
.post-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: none;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: border-color 0.22s ease;
}

/* 单篇文章／独立页面：内容直接位于 .post 内，需要自身内边距
   （首页卡片是 .post-card > .post-body 结构，内边距由 .post-body 负责） */
.post {
    padding: 2.25rem 2.5rem;
}

/* 卡片本身不加内边距，图片与文字各自撑满 */
.post-card {
    padding: 0;
}

/* 窄屏收紧内边距，避免正文被挤压 */
@media (max-width: 768px) {
    .post {
        padding: 1.5rem 1.25rem;
    }
}

.post:hover,
.post-card:hover {
    border-color: var(--border-dark);
    box-shadow: none;
    transform: none;
}

.post-thumb-link {
    border-right: 1px solid var(--border-color);
}

.post-thumb img,
.post-thumb {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-thumb img {
    transform: scale(1.02);
}

.post-body {
    padding: 1.75rem 1.875rem;
}

.post-title {
    font-size: 1.3125rem;
    font-weight: 650;
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.18s ease;
}

.post-title a:hover {
    color: var(--ink-accent);
    text-decoration: none;
}

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

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.post-meta svg {
    opacity: 0.45;
    width: 12px;
    height: 12px;
}

.post-meta a {
    color: var(--text-muted);
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--ink-accent);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* 阅读全文：文字 + 细箭头，无按钮块 */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    font-weight: 550;
    color: var(--ink-accent);
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    transition: gap 0.18s ease, color 0.18s ease;
}

.read-more::after {
    content: '→';
    transition: transform 0.18s ease;
}

.read-more:hover {
    background: none;
    color: var(--ink-accent-hover);
    gap: 0.55rem;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

/* 标签：极淡胶囊，线框而非实色块 */
.post-tags a,
.tag-item,
.tag-cloud a {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    text-decoration: none;
    transition: all 0.18s ease;
}

.post-tags a:hover,
.tag-item:hover,
.tag-cloud a:hover {
    color: var(--ink-accent);
    background: var(--ink-accent-soft);
    border-color: var(--ink-accent-line);
}

/* --------------------------------------------------------------------------
   8. 侧边栏
   -------------------------------------------------------------------------- */
.widget {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: none;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.widget-title {
    font-size: 0.875rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    background: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 1.25rem;
}

.widget-title svg {
    opacity: 0.4;
}

.widget ul {
    padding: 0.5rem 0;
}

.widget li {
    padding: 0.5rem 1.25rem;
    border-bottom: 1px solid var(--ink-hairline);
    font-size: 0.875rem;
    line-height: 1.7;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.18s ease;
}

.widget a:hover {
    color: var(--ink-accent);
}

/* --------------------------------------------------------------------------
   9. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--paper-1);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 3.5rem;
    box-shadow: none;
}

[data-theme="dark"] .site-footer {
    background: var(--paper-1);
}

.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ink-accent);
}

.footer-section h4,
.footer-section h3 {
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.18s ease;
    /* 原主题给的是 10px，是全站唯一残留的非令牌圆角；
       方形图标按钮统一用 --radius-sm，与页头 .tool-btn 一致 */
    border-radius: var(--radius-sm);
}

.social-links a:hover {
    color: var(--ink-accent);
}

/* 回到顶部：同样是 40px 方形图标按钮，从 10px 收到 4px */
.back-to-top {
    border-radius: var(--radius-sm) !important;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   10. 表单与按钮
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.6rem 0.8rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--ink-accent-line);
    box-shadow: 0 0 0 3px var(--ink-accent-soft);
}

button,
input[type="submit"],
.submit {
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 550;
    color: #fff;
    background: var(--ink-accent);
    background-image: none;
    border: none;
    border-radius: var(--radius);
    padding: 0.6rem 1.4rem;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.18s ease;
}

button:hover,
input[type="submit"]:hover,
.submit:hover {
    background: var(--ink-accent-hover);
    box-shadow: none;
    transform: none;
}

/* --------------------------------------------------------------------------
   10b. 图标按钮：不吃全局按钮的内边距
   --------------------------------------------------------------------------
   根因：上面 button 规则的 padding: 0.6rem 1.4rem（本站根字号 15px，
        即左右各 21px）与「固定宽高 + flex 居中」的图标按钮冲突。
        box-sizing 为 border-box 时，内容盒 = 宽度 − 42px：
          · .video-search-btn  44px → 内容盒  2px（图标 20px）→ 压成小点
          · .music-play-btn    48px → 内容盒  6px（图标 20px）→ 压成小点
          · .ai-send-btn       42px → 内容盒  0px（图标 19px）→ 完全不可见
          · .ai-stop-btn       40px → 内容盒 -2px（图标 15px）→ 完全不可见
        内联 SVG 是 flex 子项，被压缩后宽度归零。
   处理：图标按钮内边距归零，并禁止其内部 SVG 被压缩。
   注意：.ai-send-btn / .ai-stop-btn 里的 <svg> 没有 width/height 属性，
        尺寸完全由 CSS 决定，所以「按 SVG 属性宽度」做的体检扫不到它们，
        必须靠「内容盒 ≤ 0」来发现。
   -------------------------------------------------------------------------- */
.video-search-btn,
.music-play-btn,
.ai-send-btn,
.ai-stop-btn {
    padding: 0;
}

.video-search-btn > svg,
.music-play-btn > svg,
.ai-send-btn > svg,
.ai-stop-btn > svg,
.tool-btn > svg,
.video-modal-close > svg,
.header-search-close > svg {
    flex-shrink: 0;
    max-width: none;
    max-height: none;
}

.tool-btn {
    background: none;
    color: var(--text-secondary);
    border: none;
    box-shadow: none;
    border-radius: var(--radius-sm);
}

.tool-btn:hover {
    background: var(--paper-3);
    color: var(--ink-accent);
}

/* --------------------------------------------------------------------------
   11. 文章内页 —— 长文阅读
   -------------------------------------------------------------------------- */
.post-content {
    font-size: 1.0625rem;
    line-height: var(--ink-leading);
    color: var(--ink-800);
}

.post-content p {
    margin: 0 0 1.5em;
}

.post-content h2 {
    font-size: 1.4375rem;
    font-weight: 650;
    margin: 2.25em 0 0.9em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--border-color);
}

.post-content h3 {
    font-size: 1.1875rem;
    font-weight: 650;
    margin: 1.9em 0 0.75em;
}

.post-content h4 {
    font-size: 1.0625rem;
    font-weight: 650;
    margin: 1.6em 0 0.6em;
}

.post-content a {
    color: var(--ink-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--ink-accent-line);
    transition: border-color 0.18s ease, color 0.18s ease;
}

.post-content a:hover {
    color: var(--ink-accent-hover);
    border-bottom-color: var(--ink-accent-hover);
}

/* 引用块：左侧朱砂细线 + 淡底，去掉衬线 */
.post-content blockquote {
    font-family: inherit;
    font-size: 1rem;
    font-style: normal;
    color: var(--text-secondary);
    background: var(--paper-2);
    border-left: 2px solid var(--ink-accent-line);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.75em 0;
    padding: 1rem 1.25rem;
}

[data-theme="dark"] .post-content blockquote {
    background: var(--paper-3);
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875em;
    color: var(--ink-accent);
    background: var(--ink-accent-soft);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.15em 0.4em;
}

.post-content pre {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    background: var(--paper-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.35rem;
    margin: 1.75em 0;
    overflow-x: auto;
    box-shadow: none;
}

[data-theme="dark"] .post-content pre {
    background: var(--paper-3);
}

.post-content pre code {
    color: inherit;
    background: none;
    padding: 0;
    font-size: inherit;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75em 0;
    font-size: 0.9375rem;
}

.post-content th,
.post-content td {
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.85rem;
    text-align: left;
}

.post-content th {
    background: var(--paper-2);
    font-weight: 650;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 1.5em 0;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2.5em 0;
}

/* --------------------------------------------------------------------------
   12. 评论区
   -------------------------------------------------------------------------- */
#comments {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

#comments h3 {
    font-size: 1.0625rem;
    font-weight: 650;
    margin-bottom: 1.25rem;
}

.comment-body {
    border-bottom: 1px solid var(--ink-hairline);
    padding: 1.25rem 0;
}

.comment-author .avatar {
    border-radius: 999px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
}

.author-name .fn {
    font-style: normal;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.author-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ink-accent);
    background: var(--ink-accent-soft);
    border-radius: var(--radius-sm);
    padding: 0.1rem 0.4rem;
    margin-left: 0.35rem;
}

.comment-meta,
.comment-time a {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
}

.comment-content {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: 0.6rem;
}

.comment-reply a {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
}

.comment-reply a:hover {
    color: var(--ink-accent);
}

.comment-children {
    margin-left: 1.5rem;
    padding-left: 1.25rem;
    border-left: 1px solid var(--border-color);
}

.respond {
    margin-top: 1.5rem;
}

.respond form p {
    margin-bottom: 1rem;
}

.respond label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 550;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

#respond .required {
    color: var(--ink-accent);
}

.login-message {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cancel-comment-reply a {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. 分页
   -------------------------------------------------------------------------- */
.page-navigator,
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    list-style: none;
    margin: 2.5rem 0 1rem;
    padding: 0;
}

.page-navigator li a,
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.7rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.18s ease;
}

.page-navigator li a:hover,
.pagination a:hover {
    color: var(--ink-accent);
    border-color: var(--ink-accent-line);
    background: var(--ink-accent-soft);
}

.page-navigator .current a,
.pagination .current {
    color: #fff;
    background: var(--ink-accent);
    border-color: var(--ink-accent);
}

/* --------------------------------------------------------------------------
   14. 轮播 / 空状态
   -------------------------------------------------------------------------- */
.slider {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink-900);
    border: none;
    border-radius: 999px;
    box-shadow: none;
    backdrop-filter: blur(6px);
}

.slider-btn:hover {
    background: #fff;
    color: var(--ink-accent);
}

.slide-title {
    font-size: 0.9375rem;
    font-weight: 600;
}

.no-posts {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}

.no-posts h2 {
    font-size: 1.1875rem;
    font-weight: 650;
    margin-bottom: 0.6rem;
}

.no-posts p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   14b. 轮播图标题（显示在图片下方，而非图片上的遮罩）
   -------------------------------------------------------------------------- */

/* 旧的主题遮罩标题：如仍存在于 DOM 中则隐藏，避免重复 */
.slide-caption {
    display: none !important;
}

.ink-slider-caption-below {
    display: block;
    padding: 1rem 0 0.25rem;
    text-align: center;
    background: none;
    border: none;
}

.ink-slider-caption-below a {
    text-decoration: none;
    color: inherit;
}

.ink-slider-caption-text {
    display: inline-block;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    transition: color 0.18s ease;
}

.ink-slider-caption-below a:hover .ink-slider-caption-text {
    color: var(--ink-accent);
}

/* 标题下方的点彩短线，与全站点彩语汇一致 */
.ink-slider-caption-below::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    margin: 0.75rem auto 0;
    background: var(--ink-accent-line);
}

@media (max-width: 768px) {
    .ink-slider-caption-below { padding: 0.75rem 0 0.25rem; }
    .ink-slider-caption-text { font-size: 0.9375rem; }
}

/* --------------------------------------------------------------------------
   15. 配套线稿插图
   -------------------------------------------------------------------------- */

/* 通用容器：居中、靠留白分层、无边框无投影 */
.ink-illus-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    box-shadow: none;
}

/* --- 文章内页头部：通栏书卷横幅 --- */
.ink-illus-wrap.ink-post-header {
    margin: 0 0 1.5rem;
    padding: 0 0 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.ink-post-header .ink-illus {
    width: 100%;
    max-width: 560px;
    height: auto;
}

/* --- 侧边栏：顶部小插图 --- */
.ink-illus-wrap.ink-sidebar-illo {
    padding: 0.75rem 0 1rem;
    margin-bottom: 0.25rem;
}

.ink-sidebar-illo .ink-illus {
    width: 100%;
    max-width: 170px;
    height: auto;
    opacity: .78;
}

/* --- 页脚：远山横幅 --- */
.ink-illus-wrap.ink-footer-illo {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1rem 0;
}

.ink-footer-illo .ink-illus {
    width: 100%;
    max-width: 760px;
    height: auto;
    opacity: .55;
}

/* --- 404 页：点彩小径 --- */
.ink-illus-wrap.ink-404-illo {
    padding: 0 0 0.5rem;
    margin-bottom: 0.5rem;
}

.ink-404-illo .ink-illus {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* --- 首页大图（沿用原有类名） --- */
.ink-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0 3rem;
    margin-bottom: 0.5rem;
    background: none;
    border: none;
}

/* 插图通用：呼吸浮动由 .ink-illus 统一提供 */
.ink-hero .ink-illus {
    width: 100%;
    max-width: 520px;
    height: auto;
}

@media (max-width: 768px) {
    .ink-hero { padding: 0.5rem 0 2rem; }
    .ink-hero .ink-illus { max-width: 340px; }
    .ink-sidebar-illo .ink-illus { max-width: 130px; }
    .ink-footer-illo .ink-illus { max-width: 100%; opacity: .45; }
    .ink-404-illo .ink-illus { max-width: 280px; }
    .ink-post-header .ink-illus { max-width: 100%; }
}

/* --------------------------------------------------------------------------
   16. 404 页精修（去掉彩虹渐变标题与光晕动画）
   -------------------------------------------------------------------------- */
.error-404 {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: none;
}

/* 移除装饰性光晕 */
.error-404::before {
    display: none !important;
    content: none !important;
}

/* 404 数字：由彩虹渐变文字改为墨色实心，保留手绘插图作为视觉主体 */
.error-title {
    font-size: 5.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0;
    color: var(--text-primary);
    background: none;
    background-image: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    animation: none;
}

.error-subtitle {
    font-size: 1.3125rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem;
    color: var(--text-primary);
}

.error-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

.error-actions {
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.error-suggestions h3 {
    font-size: 1rem;
    font-weight: 650;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.error-suggestions a {
    color: var(--ink-accent);
    text-decoration: none;
    transition: color 0.18s ease;
}

.error-suggestions a:hover {
    color: var(--ink-accent-hover);
    transform: none;
}

.error-suggestions li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--ink-hairline);
    font-size: 0.9375rem;
}

.error-suggestions li:last-child {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   17. 细节质感
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--paper-2);
}

::-webkit-scrollbar-thumb {
    background: var(--ink-300);
    border: 2px solid var(--paper-2);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ink-400);
}

::selection {
    background: var(--ink-accent-soft);
    color: var(--ink-accent-hover);
}
