/* ==========================================================================
   custom.css — Icarus 主题自定义风格覆写层
   --------------------------------------------------------------------------
   设计基调：
     · 留白优先，弱化装饰，只保留必要的 1px 细线与极轻的墨色层次
     · 纸色（生成り）底 + 墨色字 + 朱色点睛
     · 标题用宋/明朝体，正文用黑体；小字标签用大写 + 宽字距
     · 直角或极小圆角，去掉浮夸阴影
   说明：本文件通过 scripts/custom-style.js 注入，加载顺序在主题
        /css/default.css 之后，改动仅影响本文件的样式，不动 node_modules。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量
   -------------------------------------------------------------------------- */
:root {
    --paper: #faf9f5;
    --paper-deep: #f4f2ec;
    --surface: #ffffff;
    --ink: #1c1b19;
    --ink-soft: #4a4741;
    --ink-mute: #9a948a;
    --hairline: rgba(28, 27, 25, 0.09);
    --hairline-strong: rgba(28, 27, 25, 0.16);
    --accent: #b0442f;
    --accent-soft: rgba(176, 68, 47, 0.07);

    --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "Source Han Serif",
        "Hiragino Mincho ProN", "Yu Mincho", "SimSun", serif;
    --font-sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
        "Source Han Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", "Source Code Pro", "SFMono-Regular", Consolas,
        "Liberation Mono", monospace;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. 基础层
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--paper);
    background-image:
        radial-gradient(58rem 38rem at 10% -12%, rgba(176, 68, 47, 0.05), transparent 62%),
        radial-gradient(48rem 32rem at 92% -4%, rgba(58, 79, 105, 0.045), transparent 58%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--ink-soft);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.012em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(176, 68, 47, 0.14);
    color: var(--ink);
}

@media screen and (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 7px;
        height: 7px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(28, 27, 25, 0.14);
        border-radius: 999px;
        box-shadow: none;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(28, 27, 25, 0.26);
    }
}

body > .section {
    padding: 3.25rem 1.5rem 4.5rem;
}

a {
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.link-muted:hover,
a.link-muted:hover {
    color: var(--accent) !important;
}

/* 细线分隔的小标签（日期、分类等通用大写样式） */
.is-size-7.is-uppercase {
    letter-spacing: 0.16em;
}

/* --------------------------------------------------------------------------
   3. 顶部导航
   -------------------------------------------------------------------------- */
.navbar-main {
    position: sticky;
    top: 0;
    z-index: 38;
    background: rgba(250, 249, 245, 0.86);
    -webkit-backdrop-filter: saturate(170%) blur(14px);
    backdrop-filter: saturate(170%) blur(14px);
    box-shadow: none;
    border-bottom: 1px solid var(--hairline);
}

.navbar-main .navbar-container {
    min-height: 3.5rem;
}

.navbar-main .navbar-item {
    color: var(--ink-soft);
    font-size: 12.5px;
    letter-spacing: 0.2em;
    padding: 1.1rem 0.85rem;
    transition: color 0.25s var(--ease);
}

.navbar-main .navbar-item:hover {
    color: var(--ink);
    background: transparent;
}

.navbar-main .navbar-start .navbar-item {
    position: relative;
}

.navbar-main .navbar-start .navbar-item::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.62rem;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s var(--ease);
}

.navbar-main .navbar-start .navbar-item:hover::after,
.navbar-main .navbar-start .navbar-item.is-active::after {
    transform: scaleX(1);
}

.navbar-main .navbar-start .navbar-item.is-active {
    color: var(--ink);
    font-weight: 600;
    background: transparent;
}

.navbar-logo {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    color: var(--ink);
    text-transform: uppercase;
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
}

.navbar-logo img {
    max-height: 24px;
    border-radius: 2px;
}

.navbar-main .navbar-end .navbar-item {
    color: var(--ink-mute);
    font-size: 13px;
    letter-spacing: 0;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
}

.navbar-main .navbar-end .navbar-item:hover {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   4. 卡片与文章
   -------------------------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 2px;
    box-shadow: none;
}

.card + .card,
.card + .column-right-shadow {
    margin-top: 1.6rem;
}

.card .card-content {
    padding: 2.1rem 2.4rem;
}

.column-main > .card {
    transition: border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.column-main > .card:hover {
    border-color: var(--hairline-strong);
    box-shadow: 0 1px 2px rgba(28, 27, 25, 0.03);
}

.card .card-image img {
    transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.card:hover .card-image img {
    transform: scale(1.015);
}

/* 文章元信息：大写字距标签 */
.article .article-meta {
    font-size: 11px !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 1.15rem;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 0.9rem;
    overflow-x: visible;
}

.article .article-meta .level-left {
    flex-wrap: wrap;
    overflow: visible;
}

.article .article-meta .level-item {
    margin-right: 1.15rem;
    margin-bottom: 0.15rem;
    font-variant-numeric: tabular-nums;
    white-space: normal;
}

.article .article-meta .level-item:last-child {
    margin-right: 0;
}

.article-meta a {
    color: var(--ink-mute);
}

.article-meta a:hover {
    color: var(--accent) !important;
}

/* 标题：明朝体 */
.article .title {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.62;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 1.4rem;
    font-feature-settings: "palt" 1;
}

.article .title.is-3 {
    font-size: 23px;
}

/* 文章详情页大标题略大于列表页 */
.card-content.article > h1.title.is-3 {
    font-size: 27px;
}

.card-content.article > h1.title::before,
.column-main p.title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.62em;
    background: var(--accent);
    vertical-align: 0.2em;
}

.article .title a {
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.article .title a:hover {
    color: var(--accent) !important;
    border-bottom-color: var(--accent-soft);
}

.article-tags {
    color: var(--ink-mute);
    letter-spacing: 0.08em;
    margin-top: 1.2rem;
}

.article-more.button {
    margin-top: 1.6rem;
    border: 1px solid var(--hairline-strong);
    border-radius: 2px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.55em 1.3em;
    height: auto;
    transition: all 0.3s var(--ease);
}

.article-more.button:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

/* 上一篇 / 下一篇 */
.post-navigation {
    border-top: 1px solid var(--hairline);
    padding-top: 1.3rem;
    font-size: 13px;
}

.post-navigation a {
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   5. 正文排版
   -------------------------------------------------------------------------- */
.content {
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.95;
    letter-spacing: 0.012em;
}

.content p,
.content ul,
.content ol,
.content dl,
.content table,
.content pre,
.content blockquote {
    margin-bottom: 1.5em;
}

.content li + li {
    margin-top: 0.45em;
}

.content ul li::marker {
    color: var(--accent);
}

.content ol li::marker {
    color: var(--ink-mute);
    font-variant-numeric: tabular-nums;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    font-family: var(--font-serif);
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0.015em;
    font-feature-settings: "palt" 1;
}

.content h1 {
    font-size: 1.6rem;
}

.content h2 {
    position: relative;
    font-size: 1.3rem;
    margin: 2.8em 0 1em;
    padding-bottom: 0.55em;
    border-bottom: 1px solid var(--hairline);
}

.content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 2rem;
    height: 1px;
    background: var(--accent);
}

.content h3 {
    font-size: 1.12rem;
    margin: 2.2em 0 0.8em;
}

.content h4 {
    font-size: 1rem;
    margin: 1.8em 0 0.6em;
    color: var(--ink-soft);
}

.content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(176, 68, 47, 0.28);
    padding-bottom: 0.5px;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.content strong {
    color: var(--ink);
    font-weight: 600;
}

.content em {
    font-family: var(--font-serif);
}

.content blockquote {
    border-left: 2px solid var(--accent);
    background: var(--paper-deep);
    color: var(--ink-soft);
    padding: 1.05em 1.4em;
    font-family: var(--font-serif);
    font-size: 0.98em;
    border-radius: 0;
}

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

.content hr {
    height: 1px;
    background: var(--hairline);
    border: none;
    margin: 3em 0;
}

.content img {
    border-radius: 2px;
}

.content figure figcaption {
    color: var(--ink-mute);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    margin-top: 0.7em;
}

.content table {
    font-size: 14px;
    border: 1px solid var(--hairline);
}

.content table th {
    background: var(--paper-deep);
    color: var(--ink);
    border-color: var(--hairline);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.content table td {
    border-color: var(--hairline);
}

.content table tr:hover {
    background: rgba(28, 27, 25, 0.018);
}

/* 行内代码 / 代码块 */
.content code {
    background: var(--paper-deep);
    color: #8d4535;
    border: none;
    border-radius: 2px;
    padding: 0.16em 0.4em;
    font-family: var(--font-mono);
    font-size: 0.86em;
    letter-spacing: 0;
}

.content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* ---------- 代码块：整块视为一张浅纸，工具条悬浮出现 ---------- */
figure.highlight,
.content pre {
    background: #f5f2e9 !important;
    border: 1px solid rgba(28, 27, 25, 0.1);
    border-radius: 2px;
    color: #3a3733;
    font-family: var(--font-mono);
    font-size: 13px;
    box-shadow: none;
}

figure.highlight {
    position: relative;
    margin: 1.5em 0 1.7em !important;
    padding: 0 !important;
    overflow: hidden;
}

figure.highlight .hljs,
figure.highlight pre,
figure.highlight code {
    background: transparent !important;
    color: inherit;
    font-family: var(--font-mono);
    letter-spacing: 0;
}

/* 行内代码的底色与内边距不能落到代码块里 */
figure.highlight code {
    border: none !important;
    border-radius: 0;
    padding: 0 !important;
    font-size: 13px;
}

figure.highlight .highlight-body {
    overflow: auto;
}

/* 折叠 / 复制工具条：留在文档流内，常驻可点，只做轻量处理 */
figure.highlight figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    margin: 0 !important;
    padding: 0.25em 0.6em;
    background: transparent;
    border: none;
    color: #a8a29a;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1;
}

figure.highlight figcaption * {
    color: inherit !important;
}

figure.highlight figcaption .level-left,
figure.highlight figcaption .level-right {
    display: flex;
    align-items: center;
}

figure.highlight figcaption .fold,
figure.highlight figcaption .copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 20px;
    border-radius: 2px;
    cursor: pointer;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

figure.highlight figcaption .fold i,
figure.highlight figcaption .copy i {
    font-size: 11px;
    line-height: 1;
}

figure.highlight figcaption .fold:hover,
figure.highlight figcaption .copy:hover {
    color: var(--accent) !important;
    background: rgba(28, 27, 25, 0.05);
}

/* 复制成功后的对勾图标 */
figure.highlight figcaption .copy .fa-check,
figure.highlight figcaption .copy .fa-check-circle {
    color: #5c7152 !important;
}

/* 代码主体：去掉表格描边，行号压到极淡 */
figure.highlight table {
    margin: 0 !important;
    width: auto;
    border: none !important;
    background: transparent !important;
}

figure.highlight table tr,
figure.highlight table td {
    border: none !important;
    background: transparent !important;
    vertical-align: top;
}

figure.highlight table tr:hover {
    background: transparent !important;
}

figure.highlight table td {
    padding: 0.15em 0 1.05em !important;
}

figure.highlight .gutter {
    width: 1%;
    padding: 0.15em 0.85em 1.05em 1.15em !important;
    text-align: right;
    white-space: nowrap;
    user-select: none;
}

figure.highlight .code {
    width: 100%;
    padding: 0.15em 1.3em 1.05em 0.2em !important;
}

figure.highlight pre {
    padding: 0 !important;
    overflow: visible;
    border: none !important;
    border-radius: 0;
    background: transparent !important;
}

figure.highlight .gutter pre .line {
    color: #d5cfc1;
    font-size: 11.5px;
}

figure.highlight .line,
figure.highlight code .hljs {
    line-height: 22px !important;
}

/* ---------- 语法配色：墨 · 朱 · 松 · 藍 四色，与纸墨底色同源 ----------
   Hexo 默认输出的类名不带 hljs- 前缀（如 .keyword / .title），
   这里两套写法都覆盖，换渲染器也不会掉色。 */
figure.highlight .comment,
figure.highlight .hljs-comment,
figure.highlight .quote,
figure.highlight .hljs-quote {
    color: #a8a29a;
    font-style: normal;
}

figure.highlight .keyword,
figure.highlight .hljs-keyword,
figure.highlight .selector-tag,
figure.highlight .hljs-selector-tag,
figure.highlight .literal,
figure.highlight .hljs-literal,
figure.highlight .section,
figure.highlight .hljs-section,
figure.highlight .doctag,
figure.highlight .hljs-doctag,
figure.highlight .type,
figure.highlight .hljs-type,
figure.highlight .strong,
figure.highlight .hljs-strong,
figure.highlight .tag,
figure.highlight .hljs-tag {
    color: #b0442f;
    font-weight: 400;
}

figure.highlight .string,
figure.highlight .hljs-string,
figure.highlight .addition,
figure.highlight .hljs-addition,
figure.highlight .attr,
figure.highlight .hljs-attribute,
figure.highlight .symbol,
figure.highlight .hljs-symbol,
figure.highlight .bullet,
figure.highlight .hljs-bullet,
figure.highlight .template-tag,
figure.highlight .hljs-template-tag,
figure.highlight .template-variable,
figure.highlight .hljs-template-variable,
figure.highlight .selector-attr,
figure.highlight .hljs-selector-attr,
figure.highlight .selector-pseudo,
figure.highlight .hljs-selector-pseudo {
    color: #5c7152;
}

figure.highlight .number,
figure.highlight .hljs-number,
figure.highlight .regexp,
figure.highlight .hljs-regexp,
figure.highlight .meta,
figure.highlight .hljs-meta,
figure.highlight .link,
figure.highlight .hljs-link {
    color: #8a6a3b;
}

figure.highlight .title,
figure.highlight .hljs-title,
figure.highlight .built_in,
figure.highlight .hljs-built_in,
figure.highlight .selector-class,
figure.highlight .hljs-selector-class,
figure.highlight .selector-id,
figure.highlight .hljs-selector-id {
    color: #40607a;
}

figure.highlight .variable,
figure.highlight .hljs-variable,
figure.highlight .params,
figure.highlight .hljs-params,
figure.highlight .name,
figure.highlight .hljs-name,
figure.highlight .property,
figure.highlight .hljs-property,
figure.highlight .subst,
figure.highlight .hljs-subst {
    color: #3a3733;
}

figure.highlight .deletion,
figure.highlight .hljs-deletion {
    color: #b0442f;
    background: rgba(176, 68, 47, 0.07);
}

figure.highlight .addition,
figure.highlight .hljs-addition {
    background: rgba(92, 113, 82, 0.07);
}

figure.highlight .emphasis,
figure.highlight .hljs-emphasis {
    font-style: italic;
}

/* 正文样式加权：主题对 article.article .content 有更具体的选择器，这里统一收口 */
.card-content.article .content {
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.012em;
}

.card-content.article .content h1 { font-size: 26px; line-height: 1.55; }
.card-content.article .content h2 { font-size: 22px; line-height: 1.6; }
.card-content.article .content h3 { font-size: 18.5px; line-height: 1.6; }
.card-content.article .content h4 { font-size: 16.5px; line-height: 1.65; }
.card-content.article .content h5 { font-size: 15.5px; line-height: 1.7; }
.card-content.article .content h6 { font-size: 15px; line-height: 1.7; }

.card-content.article .content pre {
    font-size: 13px;
}

.card-content.article .content code {
    background: var(--paper-deep);
    color: #8d4535;
    padding: 0.16em 0.4em;
    font-size: 0.86em;
    border-radius: 2px;
    overflow-wrap: break-word;
}

.card-content.article .content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 1em;
}

/* --------------------------------------------------------------------------
   6. 侧栏组件
   -------------------------------------------------------------------------- */
.widget .card-content {
    padding: 1.5rem 1.6rem;
}

.widget .menu-label {
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 1.05rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--hairline);
}

.widget .menu-list a {
    color: var(--ink-soft);
    font-size: 13.5px;
    padding: 0.42em 0;
    border-radius: 0;
    transition: color 0.25s var(--ease), padding-left 0.3s var(--ease);
}

.widget .menu-list a:hover {
    background: transparent;
    color: var(--accent);
    padding-left: 0.28em;
}

.widget .menu-list a.is-active {
    background: transparent;
    color: var(--ink);
    font-weight: 600;
}

.widget .menu-list li ul {
    border-left: 1px solid var(--hairline);
    margin-left: 0.35em;
    padding-left: 0.7em;
}

.widget .menu-list .level-item.tag,
.widget .tags .tag {
    background: transparent !important;
    border: 1px solid var(--hairline);
    border-radius: 2px;
    color: var(--ink-mute) !important;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    padding: 0.1em 0.5em;
    height: auto;
    font-variant-numeric: tabular-nums;
}

.widget .tags .tag:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
}

/* 个人资料卡 */
.widget[data-type="profile"] .card-content {
    padding: 1.9rem 1.5rem 1.5rem;
    text-align: center;
}

.widget[data-type="profile"] figure.image {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--hairline);
}

.widget[data-type="profile"] .avatar {
    filter: saturate(0.92);
    transition: filter 0.6s var(--ease);
}

.widget[data-type="profile"]:hover .avatar {
    filter: saturate(1);
}

.widget[data-type="profile"] .title {
    font-family: var(--font-serif);
    font-size: 1.05rem !important;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ink);
    margin-bottom: 0.5rem !important;
}

.widget[data-type="profile"] .is-size-6 {
    font-size: 12.5px !important;
    color: var(--ink-mute);
    line-height: 1.7;
}

.widget[data-type="profile"] .heading {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 0.2rem;
}

.widget[data-type="profile"] .level-item a .title {
    font-family: var(--font-serif);
    font-size: 1.15rem !important;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.25s var(--ease);
}

.widget[data-type="profile"] .level-item a:hover .title {
    color: var(--accent);
}

.widget[data-type="profile"] .level.is-mobile {
    border-top: 1px solid var(--hairline);
    margin-top: 1.2rem;
    padding-top: 1.1rem;
}

.widget[data-type="profile"] .button.is-transparent {
    color: var(--ink-mute);
    transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.widget[data-type="profile"] .button.is-transparent:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

/* 目录 */
.widget#toc .menu-list a {
    font-size: 13px;
    line-height: 1.5;
    border-left: 1px solid transparent;
    padding-left: 0.55em;
}

.widget#toc .menu-list a.is-active {
    border-left-color: var(--accent);
    color: var(--ink);
}

/* 链接 / 友链 */
.widget .menu-list .level {
    width: 100%;
}

/* --------------------------------------------------------------------------
   7. 归档时间线、分页
   -------------------------------------------------------------------------- */
.timeline {
    border-left: 1px solid var(--hairline);
    padding-left: 1.6rem;
    margin-left: 0.4rem;
}

.timeline .media:before {
    background: var(--hairline-strong);
    box-shadow: 0 0 0 3px var(--surface);
}

.timeline .media:hover:before {
    background: var(--accent);
}

.timeline .media h3,
.timeline .media .title {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ink-soft);
}

.timeline .media a:hover .title {
    color: var(--accent);
}

.pagination {
    margin-top: 1.8rem;
}

.pagination-link,
.pagination-previous,
.pagination-next {
    border: 1px solid var(--hairline) !important;
    background: var(--surface) !important;
    box-shadow: none !important;
    border-radius: 2px !important;
    color: var(--ink-soft);
    font-size: 12px;
    letter-spacing: 0.12em;
    transition: all 0.3s var(--ease);
}

.pagination-link:hover,
.pagination-previous:hover,
.pagination-next:hover {
    border-color: var(--hairline-strong) !important;
    color: var(--ink);
}

.pagination-link.is-current {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
    color: var(--paper) !important;
}

/* --------------------------------------------------------------------------
   8. 页脚
   -------------------------------------------------------------------------- */
.footer {
    background: transparent;
    border-top: 1px solid var(--hairline);
    padding: 2.6rem 1.5rem 3rem;
    color: var(--ink-mute);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-indent: 0.26em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.9rem;
}

.footer p {
    color: var(--ink-mute);
}

.footer .is-size-7 {
    font-size: 11px !important;
    letter-spacing: 0.1em;
    line-height: 2;
}

.footer a {
    color: var(--ink-soft);
    border-bottom: 1px solid transparent;
}

.footer a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent-soft);
}

.footer .button.is-transparent {
    color: var(--ink-mute) !important;
}

.footer .button.is-transparent:hover {
    color: var(--accent) !important;
}

/* --------------------------------------------------------------------------
   9. 其他细节：回到顶部、搜索、提示框、许可证
   -------------------------------------------------------------------------- */
#back-to-top {
    background: var(--surface);
    border: 1px solid var(--hairline-strong);
    border-radius: 2px;
    box-shadow: none;
    color: var(--ink-mute);
    transition: all 0.35s var(--ease);
}

#back-to-top:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.message {
    border-radius: 2px;
    border: 1px solid var(--hairline);
    box-shadow: none;
    font-size: 13.5px;
}

.article-licensing,
.article-licensing .content {
    border-radius: 2px;
    font-size: 12.5px;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
}

/* 评论区（Twikoo）配色对齐 */
.card + .card .twikoo,
.twikoo {
    font-family: var(--font-sans);
}

#twikoo .tk-send,
#twikoo .tk-preview {
    border-radius: 2px !important;
    border: 1px solid var(--ink) !important;
    background: var(--ink) !important;
    color: var(--paper) !important;
    font-size: 12.5px !important;
    letter-spacing: 0.14em;
    padding: 0 1.35em;
    transition: all 0.3s var(--ease);
}

#twikoo .tk-preview {
    background: transparent !important;
    color: var(--ink-soft) !important;
    border-color: var(--hairline-strong) !important;
}

#twikoo .tk-send:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

#twikoo .tk-preview:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

#twikoo .tk-input,
#twikoo input,
#twikoo textarea {
    border-radius: 2px !important;
    border-color: var(--hairline) !important;
    font-family: var(--font-sans) !important;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#twikoo .tk-input:focus,
#twikoo input:focus,
#twikoo textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 0.125em var(--accent-soft) !important;
    outline: none !important;
}

#twikoo .tk-action-icon,
#twikoo .tk-admin,
#twikoo .tk-footer {
    color: var(--ink-mute) !important;
}

/* --------------------------------------------------------------------------
   10. 组件配色收口（把主题默认的蓝色主色统一替换为墨色 / 朱色）
   -------------------------------------------------------------------------- */
.pace .pace-progress {
    background: var(--accent);
    height: 1px;
}

/* 归档年份标签 */
.card-content > h3.tag.is-primary {
    background: transparent;
    border: 1px solid var(--hairline-strong);
    border-radius: 2px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    height: auto;
    padding: 0.15em 0.75em;
    margin-bottom: 1.4rem;
}

.button.is-primary,
.button.is-link {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
    border-radius: 2px;
}

.button.is-primary:hover,
.button.is-link:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.input:focus,
.textarea:focus,
.select select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.125em var(--accent-soft);
}

/* 搜索弹层 */
.searchbox {
    background: rgba(250, 249, 245, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.searchbox .searchbox-container {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(28, 27, 25, 0.12);
}

.searchbox .searchbox-header,
.searchbox .searchbox-input {
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-sans);
}

.searchbox .searchbox-body {
    border-top-color: var(--hairline);
}

.searchbox .searchbox-result-item.active,
.searchbox .searchbox-result-item:active {
    background: var(--ink);
    color: var(--paper);
}

.searchbox .searchbox-result-item em {
    background: var(--accent-soft);
    color: var(--accent);
    font-style: normal;
}

.searchbox .searchbox-pagination-item.active .searchbox-pagination-link {
    background: var(--ink);
    color: var(--paper);
}

/* Cookie 提示条 */
.cc-window,
.cc-revoke {
    font-family: var(--font-sans) !important;
    font-size: 0.85rem !important;
    border: 1px solid var(--hairline) !important;
    border-radius: 2px !important;
    box-shadow: 0 8px 30px rgba(28, 27, 25, 0.08) !important;
}

.cc-window.cc-floating,
.cc-window.cc-banner {
    background: var(--surface) !important;
    color: var(--ink-soft) !important;
}

.cc-window .cc-message {
    font-size: 12.5px !important;
    line-height: 1.85 !important;
    letter-spacing: 0.02em;
}

.cc-window .cc-link {
    color: var(--accent) !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(176, 68, 47, 0.3);
}

.cc-window .cc-compliance > .cc-btn {
    background: var(--ink) !important;
    border: 1px solid var(--ink) !important;
    border-radius: 2px !important;
    color: var(--paper) !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.18em;
    padding: 0.6em 1.4em !important;
    transition: all 0.3s var(--ease);
}

.cc-window .cc-compliance > .cc-btn:hover,
.cc-window .cc-compliance > .cc-btn:focus {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

.cc-revoke {
    background: var(--ink) !important;
    color: var(--paper) !important;
}

/* --------------------------------------------------------------------------
   11. 响应式收敛
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    body {
        font-size: 14.5px;
    }

    body > .section {
        padding: 1.75rem 1rem 3rem;
    }

    .card .card-content {
        padding: 1.5rem 1.25rem;
    }

    .article .title.is-3,
    .card-content.article > h1.title.is-3 {
        font-size: 20px;
    }

    .card-content.article .content {
        font-size: 15.5px;
        line-height: 1.95;
    }

    .navbar-main .navbar-start .navbar-item {
        letter-spacing: 0.12em;
    }

    .navbar-logo {
        letter-spacing: 0.18em;
        text-indent: 0.18em;
    }
}

/* 尊重用户的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
