/*
Theme Name: Lared
Theme URI: https://xifeng.net/wordpress-lared-theme.html
Author: 西风
Author URI: https://xifeng.net
Description: A Tailwind CSS v4.1.6 powered WordPress theme.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: lared
*/

@font-face {
    font-family: "PaperMono";
    font-weight: 400;
    font-style: normal;
    src: url("assets/fonts/PaperMono-Regular.woff2") format("woff2");
    font-display: swap;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) #ececec;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #ececec;
}

::-webkit-scrollbar-thumb {
    border: 2px solid #ececec;
    border-radius: 0;
    background: var(--color-accent);
}

:root {
    --font-sans: "Nano Sans SC", "Nano Sans", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: "Geist Mono", monospace;
    --font-code: "PaperMono", "Geist Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --radius-xs: .125rem;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --color-sand-light-12: #21201c;
    --color-white: #fff;
    --border-color: #d9d9d9;
    --accent-width: 3px;

    /* 全局主题色变量 */
    --color-accent: #f53004;   /* 全站主色红 */
    --color-title:  #21201d;   /* 标题颜色   */
    --color-body:   #63635e;   /* 正文颜色   */
}

body.theme-body {
    padding-top: 64px;
    font-family: "Nano Sans SC", "Nano Sans", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
    color: #1f1f1f;
    background: #fff;
}

/* Header */
header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    border-bottom: 1px solid #d9d9d9;
    background: #ffffff;
}

/* Main Shell */
.main-shell {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1280px;
    min-height: calc(100vh - 64px);
    border-left: 1px solid #d9d9d9;
    border-right: 1px solid #d9d9d9;
    background: #fff;
}

code,
pre,
kbd,
samp,
pre[class*="language-"],
code[class*="language-"] {
    font-family: var(--font-code);
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav li {
    margin: 0;
    padding: 0;
}

.nav a {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: #242424;
}

.nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--color-accent);
    opacity: 0;
    content: "";
}

.nav .current-menu-item > a::after,
.nav .current_page_item > a::after,
.nav .current-menu-ancestor > a::after,
.nav .current_page_ancestor > a::after,
.nav a.is-active::after,
.nav a.is-ancestor-active::after {
    opacity: 1;
}

.header-loading {
    visibility: hidden;
    position: absolute;
    right: 24px;
    top: 50%;
    margin-top: -10px;  /* 垂直居中：高度的一半 */
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--color-accent, #f53004);
    border-radius: 50%;
    opacity: 0;
    transition: opacity .18s ease;
    box-sizing: border-box;
}

.header-loading.is-active {
    visibility: visible;
    opacity: 1;
    animation: lared-loading-spin 1s linear infinite;
}

@keyframes lared-loading-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

body.theme-body :where(
    button,
    input[type="submit"],
    input[type="button"],
    input[type="reset"],
    .button,
    .wp-element-button,
    .wp-block-button__link,
    .comment-submit,
    a.site-btn,
    a[role="button"]
) {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    font-family: var(--font-sans);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    color: var(--color-white);
    background-color: var(--color-sand-light-12);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .06), 0 0 1px 0 rgb(0 0 0 / .04);
    cursor: pointer;
    padding-inline: 1rem;
    padding-block: .5rem;
    transition-property: color, background-color, border-color, box-shadow, transform;
    transition-timing-function: var(--default-transition-timing-function);
    transition-duration: .1s;
}

body.theme-body :where(
    button,
    input[type="submit"],
    input[type="button"],
    input[type="reset"],
    .button,
    .wp-element-button,
    .wp-block-button__link,
    .comment-submit,
    a.site-btn,
    a[role="button"]
):hover {
    filter: brightness(1.03);
}

body.theme-body .aplayer button,
body.theme-body #lared-aplayer .aplayer button {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: inherit !important;
    font-family: inherit !important;
    line-height: 1 !important;
}

body.theme-body .aplayer button:hover,
body.theme-body #lared-aplayer .aplayer button:hover {
    filter: none !important;
}

body.theme-body .rss-btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--color-accent) !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    color: var(--color-accent) !important;
    background: #fff !important;
    box-shadow: none !important;
    appearance: none !important;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

body.theme-body .rss-btn.is-copied {
    border-color: var(--color-accent) !important;
    color: #fff !important;
    background: var(--color-accent) !important;
}


.home-article {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.home-main-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    position: relative;
    z-index: 1;
}

.home-main-sidebar {
    position: relative;
    min-height: 100%;
    border-right: 1px solid var(--border-color);
    overflow: visible;
    z-index: 50;
}

.home-main-sidebar::before {
    display: none;
}

.home-main-sidebar-inner {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: visible;
}

.home-main-sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-main-sidebar-block-title {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 12px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.home-main-sidebar-block-body {
    padding: 12px;
    border: 0;
    background: transparent;
}

.home-main-sidebar-block h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #3a3a35;
}

.home-main-sidebar-block-title h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.home-main-sidebar-block-title h3 i {
    font-size: 13px;
    line-height: 1;
}

.home-main-title-note {
    margin-left: 2px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    color: #8f8f88;
}

.home-main-sidebar-block--welcome .home-main-sidebar-block-title h3 {
    color: var(--color-accent);
}

.home-main-sidebar-block p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #73736d;
}

.home-memo-strip {
    border: 0;
}

.home-memo-strip-link {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: stretch;  /* 改为 stretch 让两边等高 */
    gap: 0;
    min-height: 40px;
    padding: 0;
    text-decoration: none;
    color: #3f3f39;
    background: transparent;
}

.home-memo-strip-bird-track {
    position: relative;
    display: block;
    width: 100%;
    min-height: 40px;      /* 改为最小高度 */
    overflow: hidden;
}

.home-memo-strip-icon {
    position: absolute;
    top: 20px;             /* 固定顶部距离，与 min-height 一半对齐 */
    left: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    background: transparent;
    transform: translateY(-50%) scaleX(1);
    animation: home-memo-bird-fly 5.2s linear infinite;
}

.home-memo-strip-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.home-memo-strip-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 40px;      /* 改为最小高度，允许内容撑开 */
    padding: 8px 18px;     /* 增加上下 padding */
}

.home-memo-strip-content {
    display: block;
    flex: 1 1 auto;
    /* 移除截断样式，显示完整内容 */
    overflow: visible;
    text-overflow: clip;
    white-space: normal;   /* 允许换行 */
    word-wrap: break-word; /* 长单词换行 */
    font-size: 14px;
    line-height: 1.6;      /* 增加行高 */
}

.home-memo-strip-time {
    font-size: 12px;
    line-height: 1.2;
    color: #8b8b85;
}

.home-memo-strip-link:hover .home-memo-strip-content {
    color: var(--color-accent);
}

@keyframes home-memo-bird-fly {
    0% {
        left: 8px;
        transform: translateY(-50%) scaleX(1);
    }
    49% {
        left: calc(100% - 32px);
        transform: translateY(-50%) scaleX(1);
    }
    50% {
        left: calc(100% - 32px);
        transform: translateY(-50%) scaleX(-1);
    }
    100% {
        left: 8px;
        transform: translateY(-50%) scaleX(-1);
    }
}

@media (max-width: 900px) {
    .home-memo-strip-link {
        grid-template-columns: 1fr;
    }

    .home-memo-strip-main {
        padding: 8px 24px;     /* 增加上下 padding */
        min-height: auto;      /* 移动端取消固定最小高度 */
    }
    
    .home-memo-strip-bird-track {
        min-height: 32px;      /* 移动端减小高度 */
    }
    
    .home-memo-strip-icon {
        top: 16px;             /* 移动端调整位置 */
    }
}

.home-main-sidebar-block--heatmap .home-main-sidebar-block-body {
    padding: 8px 0 0;
}

.home-main-sidebar-block--no-title {
    gap: 0;
}

.home-mini-heatmap {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px;
}

.home-mini-heatmap-cell {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
}

/* 热力图红色系 - 5级深度 */
.home-mini-heatmap-cell.tone-red.level-0 { background: #f5f5f5; }
.home-mini-heatmap-cell.tone-red.level-1 { background: #ffcccc; }
.home-mini-heatmap-cell.tone-red.level-2 { background: #ff9999; }
.home-mini-heatmap-cell.tone-red.level-3 { background: #ff6666; }
.home-mini-heatmap-cell.tone-red.level-4 { background: #e53935; }
.home-mini-heatmap-cell.tone-red.level-5 { background: #c62828; }

/* 热力图悬浮提示增强 */
.home-mini-heatmap-cell[title] {
    position: relative;
    cursor: pointer;
}

/* 热力图悬停效果 */
.home-mini-heatmap-cell.tone-red:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(198, 40, 40, 0.35);
    z-index: 2;
}

.home-main-sidebar-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-main-sidebar-list li + li {
    margin-top: 8px;
}

.home-main-sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: #3f3f39;
}

.home-main-sidebar-list a:hover {
    color: var(--color-accent);
}

.home-main-sidebar-list a span {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.45;
}

.home-main-sidebar-list a em {
    flex: 0 0 auto;
    font-style: normal;
    font-size: 12px;
    line-height: 1.2;
    color: #a0a09a;
}

.home-main-sidebar-list-popular a {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    min-height: 34px;
    padding: 0 10px;
}

.home-main-popular-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-main-popular-item {
    padding: 0;
    margin-top: 0;
    transition: background-color .16s ease;
}

.home-main-popular-item + .home-main-popular-item {
    margin-top: 0;
    border-top: 1px dashed var(--border-color);
}

.home-main-popular-item:hover {
    background: var(--color-accent);
}

.home-main-popular-item:hover a,
.home-main-popular-item:hover .home-main-popular-title {
    color: #fff;
}

/* 首页侧边栏 Tab 样式 - 高优先级覆盖 Tailwind */
.home-sidebar-tabs {
    display: flex !important;
    gap: 0 !important;
    border-bottom: none !important;
}

/* 默认状态：边框线 + 黑色字 */
.home-sidebar-tab {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 0 !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 中间按钮左边框重叠处理 */
.home-sidebar-tab:nth-child(2) {
    border-left: none !important;
}

.home-sidebar-tab:nth-child(3) {
    border-left: none !important;
}

/* 悬停效果：红色边框 + 红色字 */
.home-sidebar-tab:hover {
    border-color: var(--color-accent, #f53004) !important;
    color: var(--color-accent, #f53004) !important;
    background: #fff !important;
    background-color: #fff !important;
}

/* 激活状态：红色底部边框 + 白色文字 + 红色背景 */
.home-sidebar-tab.is-active {
    border-color: var(--color-accent, #f53004) !important;
    border-bottom-color: var(--color-accent, #f53004) !important;
    background: var(--color-accent, #f53004) !important;
    background-color: var(--color-accent, #f53004) !important;
    color: #fff !important;
    font-weight: 600 !important;
}

/* 激活状态悬停 */
.home-sidebar-tab.is-active:hover {
    background: var(--color-accent, #f53004) !important;
    background-color: var(--color-accent, #f53004) !important;
    color: #fff !important;
    opacity: 0.9;
}

.home-sidebar-tab-content {
    padding: 12px 0 0;
}

.home-sidebar-tab-panel {
    display: none;
}

.home-sidebar-tab-panel.is-active {
    display: block;
}

.home-main-sidebar-block--popular .home-main-sidebar-list {
    margin: 0;
    padding: 0;
}

.home-main-sidebar-list-comments a {
    gap: 0;
}

.home-main-comment-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 1;
    isolation: isolate;
}

.home-main-comment-link::before {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(1.1px) saturate(0.95);
    content: "";
    pointer-events: none;
    transition: opacity .18s ease;
}

.home-main-comment-avatar {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f2f2f2;
    filter: saturate(0.72) brightness(0.94);
    transition: filter .18s ease;
}

.home-main-comment-avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-main-comment-content {
    display: none;
}

.home-main-sidebar-list-comments {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.home-main-sidebar-list-comments li,
.home-main-sidebar-list-comments li + li {
    margin-top: 0;
    aspect-ratio: 1 / 1;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: visible;
}

.home-main-sidebar-block--comments {
    gap: 0;
}

.home-main-sidebar-block--comments .home-main-sidebar-block-body {
    padding: 0;
    overflow: visible;
}

.home-main-sidebar-block--comments .home-main-sidebar-list {
    margin: 0;
    padding: 0;
    overflow: visible;
}

/* ══════════════════════════════════════════════════
   Tooltip 全局统一样式
   ══════════════════════════════════════════════════ */

/* ── 基础：定位 / 隐藏 / 过渡 ── */
.home-main-comment-tooltip,
.single-top-banner__tooltip,
.home-article-time-tooltip,
.home-article-label-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    z-index: 2147483647;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
    transform: translateY(4px);
}

/* ── 显示状态（左对齐） ── */
.home-main-comment-link:hover .home-main-comment-tooltip,
.home-main-comment-link:focus-visible .home-main-comment-tooltip,
.home-article-time:hover .home-article-time-tooltip,
.home-article-time:focus-visible .home-article-time-tooltip,
.home-article-head-label:hover .home-article-label-tooltip,
.home-article-head-label:focus-visible .home-article-label-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* ── 显示状态（水平居中） ── */
.single-top-banner__cat-box:hover .single-top-banner__tooltip,
.single-top-banner__cat-box:focus-visible .single-top-banner__tooltip,
.single-top-banner__stat-box:hover .single-top-banner__tooltip,
.single-top-banner__stat-box:focus-visible .single-top-banner__tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── 变体 A：标签式（accent 色块，单行） ── */
.single-top-banner__tooltip,
.home-article-time-tooltip,
.home-article-label-tooltip {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: #fff;
    background: var(--color-accent);
}

/* 标签式 - 居中定位（文章页横幅） */
.single-top-banner__tooltip {
    left: 50%;
    z-index: 3;
    justify-content: center;
    min-width: 72px;
    transform: translateX(-50%) translateY(4px);
}

/* 标签式 - 左对齐（时间悬停） */
.home-article-time-tooltip {
    width: max-content;
    min-width: max-content;
}

/* 标签式 - 右对齐（分类标签） */
.home-article-label-tooltip {
    left: auto;
    right: 0;
    width: max-content;
    min-width: max-content;
}

/* ── 变体 B：卡片式（白底信息卡） ── */
.home-main-comment-tooltip {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 220px;
    padding: 8px 10px;
    border: 1px solid #dadada;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    color: #3a3a35;
    background: #fff;
}

/* ── 卡片式子元素 ── */
.home-main-comment-tooltip-author {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #595953;
}

.home-main-comment-tooltip-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.home-main-comment-tooltip-content {
    font-size: 12px;
    line-height: 1.45;
    color: #3a3a35;
}

.home-main-comment-tooltip-post {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 12px;
    line-height: 1.3;
    color: var(--color-accent);
}

.home-main-comment-tooltip-time {
    font-size: 11px;
    line-height: 1.2;
    color: #8c8c86;
}

.home-main-comment-link:hover,
.home-main-comment-link:focus-visible {
    z-index: 2147483000;
}

.home-main-comment-link:hover .home-main-comment-avatar,
.home-main-comment-link:focus-visible .home-main-comment-avatar {
    filter: none;
}

.home-main-comment-link:hover::before,
.home-main-comment-link:focus-visible::before {
    opacity: 0;
}

/* 访客卡片样式 */
.home-main-sidebar-block--visitor {
    padding: 0 !important;
}

.visitor-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
}

.visitor-card-header {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.visitor-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visitor-card-body {
    position: relative;
    padding: 0 16px 16px;
    text-align: center;
}

.visitor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin: -32px auto 12px;
    display: block;
    background: #f0f0f0;
    object-fit: cover;
}

.visitor-name {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.visitor-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    background: #e5e7eb;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0;
}

.visitor-badge i {
    font-size: 10px;
}

.visitor-bio {
    margin: 0 0 16px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.visitor-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
}

.visitor-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.visitor-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.visitor-stat-label {
    font-size: 12px;
    color: #999;
}

.visitor-first-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.home-main-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-main-sidebar-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
}

.home-main-sidebar-stats div {
    padding: 8px 9px;
    border: 1px solid #ededed;
    background: #fafafa;
}

.home-main-sidebar-stats dt {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    color: #979791;
}

.home-main-sidebar-stats dd {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
    color: #3a3a35;
}

.home-main-feed {
    position: relative;
    z-index: 1;
    min-width: 0;
    --headline-align-top: 0px;
    --home-article-head-height: 50px;
}

.home-main-feed .home-article::after {
    display: none;
}

.home-article {
    border-bottom: 1px solid var(--border-color);
}

.home-article.is-first {
    border-top: 1px solid var(--border-color);
}

.home-article.is-first {
    padding-top: 0;
}

.home-article-grid {
    position: relative;
    display: grid;
    align-items: start;
    gap: 0;
    grid-template-columns: var(--toc-sidebar-width) minmax(0, 1fr);
    box-sizing: border-box;
    padding-right: 0;
    padding-left: 0;
    --headline-align-top: 0px;
    --toc-sidebar-width: 260px;
    --home-article-head-height: 50px;
}

.home-article-grid::before {
    position: absolute;
    top: calc(var(--headline-align-top) + var(--home-article-head-height));
    right: 0;
    left: 0;
    height: 1px;
    background: var(--border-color);
    pointer-events: none;
    content: "";
}

.home-article-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    box-sizing: border-box;
    width: 260px;
    max-width: 260px;
    height: 100%;
    min-height: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-top: var(--headline-align-top);
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
}

.home-article-sidebar-card {
    position: sticky;
    top: calc(var(--headline-align-top) + 12px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 12px 20px 0 14px;
    padding: 16px 14px;
    border: 1px solid var(--border-color);
    background: #fff;
}

.home-article-sidebar-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 52px;
    height: 52px;
    color: var(--color-accent);
    background: #f7f7f7;
}

.home-article-sidebar-icon .category-icon {
    font-size: 22px;
}

.home-article-sidebar-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
    color: #6b6b67;
}

.home-article-sidebar-meta-label {
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: .04em;
    color: #999;
}

.home-article-sidebar-meta time {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: #3a3a35;
}

.home-article-sidebar-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--color-accent);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    color: var(--color-accent);
    transition: color .16s ease, background-color .16s ease;
}

.home-article-sidebar-link:hover {
    color: #fff;
    background: var(--color-accent);
}

.home-article-sidebar::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: calc(var(--headline-align-top) + var(--home-article-head-height) + 1px);
    background: var(--color-accent);
    content: "";
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-accent);
    background: transparent;
}

.category-icon {
    font-size: 18px;
    line-height: 1;
}



.single-top-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    border-top: 1px solid #d9d9d9;
    border-right: 0;
    border-bottom: 1px solid #d9d9d9;
    border-left: 0;
    border-radius: 0;
    background: transparent;
}

.single-top-banner__image {
    display: block;
    width: 100%;
    aspect-ratio: 1280 / 360;
    object-fit: cover;
    object-position: center;
}

.single-top-banner__meta {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    border-top: 0;
    background: rgba(12, 14, 18, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.single-top-banner__meta-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    min-height: 72px;
    margin: 0 auto;
    padding-right: 36px;
    font-size: 14px;
    color: #e7e7e7;
}

.single-top-banner__meta-main {
    display: flex;
    overflow: visible;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.single-top-banner__meta-main .home-article-time {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    margin-left: 0;
}

.single-content-wrap {
    position: relative;
    --single-meta-row-height: 50px;
    padding-right: 36px;
    padding-left: 36px;
}

.single-side-toc {
    position: fixed;
    top: 90px;
    left: calc(50% + 641px);
    z-index: 20;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .28s ease, visibility .28s ease, transform .28s ease;
}

.single-side-toc.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.single-side-toc__nav {
    position: static;
    padding: 10px 0;
    background: #fff;
}

.single-side-toc__item {
    position: relative;
    display: block;
    padding: 5px 14px;
    border-left: 2px solid transparent;
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
    color: #9a9a9a;
    transition: color .18s ease, border-color .18s ease;
}

.single-side-toc__item.level-3 {
    padding-left: 24px;
    font-size: 12px;
}

.single-side-toc__item:hover {
    color: #333333;
    border-left-color: var(--color-accent);
}

.single-side-toc__item.is-active {
    color: var(--color-accent);
    border-left-color: var(--color-accent);
}

.single-footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 18px;
    margin-top: 24px;
    margin-right: -36px;
    margin-left: -36px;
    padding-top: 10px;
    padding-right: 36px;
    padding-bottom: 10px;
    padding-left: 36px;
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
    min-height: var(--single-meta-row-height);
    font-size: 14px;
    color: #585858;
}

.single-footer-meta__left {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
}

.single-footer-meta__item {
    line-height: 1.45;
    color: #585858;
}

.single-footer-meta__item a {
    text-decoration: none;
}

.single-footer-meta__item strong {
    font-weight: 400;
    color: #585858;
}

.single-footer-meta__author-link {
    margin-right: 4px;
    margin-left: 4px;
    font-weight: 700;
    color: var(--color-accent);
}

.single-footer-meta__author-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-footer-meta__license-link {
    margin-right: 4px;
    margin-left: 4px;
    font-weight: 700;
    color: var(--color-accent);
}

.single-footer-meta__license-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-footer-meta__right {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.single-footer-meta__label {
    font-size: 14px;
    line-height: 1.4;
    color: #666666;
}

.single-footer-meta__keywords {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.single-footer-meta__tag {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    color: #585858;
    background: transparent;
}

.single-footer-meta__tag:hover {
    text-decoration: none;
    color: #202020;
}

.single-footer-meta__tag:hover .single-footer-meta__tag-text {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-footer-meta__tag::before {
    margin-right: 2px;
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    color: var(--color-accent);
    content: "#";
}

.single-footer-meta__tag.is-empty {
    color: #9a9a9a;
}

.single-footer-meta__tag.is-empty::before {
    content: none;
}

.single-post-nav {
    display: grid;
    gap: 8px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
    padding: 0;
    border: 0;
}

.single-post-nav__item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: var(--single-meta-row-height);
}

.single-post-nav__item--next {
    justify-content: flex-end;
}

.single-post-nav__label {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.3;
    color: #5f5f5f;
}

.single-post-nav__link,
.single-post-nav__empty {
    overflow: hidden;
    min-width: 0;
    font-size: 14px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #2f2f2f;
}

.single-post-nav__link {
    text-decoration: none;
}

.single-post-nav__link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: var(--color-accent);
}

.single-post-nav__empty {
    color: #9b9b9b;
}

.single-top-banner__cat-group {
    display: inline-flex;
    flex: 0 0 58px;
    justify-content: center;
    align-items: center;
}

.single-top-banner__cat-box {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    justify-content: center;
    justify-items: center;
    align-items: center;
    grid-template-rows: 2fr 1fr;
    width: 58px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    aspect-ratio: 1 / 1;
}

.single-top-banner__cat-box-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    line-height: 1;
    color: #fff;
}

.single-top-banner__cat-box-name {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 11px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
}

.single-top-banner__title-box {
    display: inline-flex;
    overflow: hidden;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    height: 58px;
    padding: 0 12px;
    border: 0;
    font-size: 17px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    background: transparent;
}

.single-top-banner__meta-side {
    display: flex;
    flex-shrink: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.single-top-banner__meta-side > * {
    flex: 0 0 58px;
    width: 58px;
}

.single-top-banner__stat-box {
    position: relative;
    display: grid;
    justify-items: center;
    align-items: center;
    grid-template-rows: 2fr 1fr;
    width: 58px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    aspect-ratio: 1 / 1;
}

.single-top-banner__stat-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
}

.single-top-banner__stat-label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 11px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.78);
}

.single-page-square {
    width: 1282px !important;
    max-width: 100% !important;
}

.single-page-square,
.single-page-square * {
    border-radius: 0 !important;
}

@media (max-width: 900px) {
    .single-top-banner__image {
        aspect-ratio: 16 / 7;
    }

    .single-top-banner__meta {
        position: static;
    }

    .single-top-banner__meta-inner {
        min-height: 60px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
        padding-top: 8px;
        padding-right: 30px;
        padding-bottom: 8px;
        margin-left: 24px;
        margin-right: 24px;
        width: auto;
    }

    .single-top-banner__meta-side {
        width: auto;
        align-self: flex-end;
    }

    .single-top-banner__meta-side > * {
        width: 52px;
        flex: 0 0 52px;
    }

    .single-top-banner__cat-box {
        width: 52px;
    }

    .single-top-banner__meta-main .home-article-time {
        width: 52px;
        height: 52px;
        margin-left: 0;
    }

    .single-content-wrap {
        --single-meta-row-height: 46px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .single-side-toc {
        display: none;
    }

    .single-footer-meta {
        margin-top: 20px;
        margin-left: -30px;
        margin-right: -30px;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 30px;
        padding-right: 30px;
        gap: 6px 14px;
        font-size: 13px;
    }

    .single-footer-meta__left,
    .single-footer-meta__right {
        gap: 6px 12px;
    }

    .single-footer-meta__label {
        font-size: 13px;
    }

    .single-footer-meta__tag {
        height: 22px;
        font-size: 11px;
    }

    .single-post-nav {
        margin-top: 6px;
        padding: 0;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .single-post-nav__item,
    .single-post-nav__item--next {
        justify-content: flex-start;
    }

    .single-post-nav__label,
    .single-post-nav__link,
    .single-post-nav__empty {
        font-size: 13px;
    }

    .single-top-banner__cat-box-icon {
        font-size: 16px;
    }

    .single-top-banner__cat-box-name {
        font-size: 10px;
    }

    .single-top-banner__title-box {
        height: 52px;
        padding: 0 10px;
        max-width: calc(100vw - 140px);
        font-size: 15px;
    }

    .single-top-banner__stat-box {
        width: 52px;
    }

    .single-top-banner__stat-number {
        font-size: 16px;
    }

    .single-top-banner__stat-label {
        font-size: 10px;
    }
}

/* =========================
   Comments - Layout
   ========================= */
.comments-shell {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 80px;
}

.comments-inner {
    padding: 28px 36px 34px;
    border: 0;
    background: #fff;
}

/* =========================
   Comments - Header
   ========================= */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #d9d9d9;
}

.comments-header__left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.comments-header__title {
    overflow: hidden;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1f1f1f;
}

.comments-header__stats {
    display: inline-flex;
    flex-shrink: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    white-space: nowrap;
    color: #5b5b5b;
}

.comments-header__num {
    font-weight: 700;
    color: var(--color-accent);
}

.comments-header__sep {
    margin: 0 2px;
    color: #8c8c8c;
}

.comments-title,
.comment-reply-title {
    margin: 0 0 18px;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.18;
    color: #1f1f1f;
}

/* 评论表单标题 - 红色背景直角带边框 */
#respond {
    margin-top: 40px;
}

#respond .comment-reply-title {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #1f1f1f !important;
    background: #fff !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 0 !important;
}

/* 标题栏头像 */
.lared-title-avatar {
    width: 24px !important;
    height: 24px !important;
    border-radius: 2px !important;
    object-fit: cover;
    vertical-align: middle;
}

/* 标题栏右侧登录信息/必填提示 */
.lared-title-meta {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.lared-title-meta a {
    color: #999;
    text-decoration: none;
    transition: color 0.15s;
}

.lared-title-meta a:hover {
    color: var(--color-accent, #f53004);
}

.lared-title-meta .required {
    color: var(--color-accent, #f53004);
    font-weight: 600;
}

/* 登录用户：昵称 + 注销 红色 */
.lared-title-meta--logged-in .lared-meta-name {
    color: var(--color-accent, #f53004) !important;
}

.lared-title-meta--logged-in .lared-meta-logout {
    color: var(--color-accent, #f53004) !important;
}

/* 回头访客欢迎文字 */
.lared-title-meta--returning {
    color: #999;
}

.lared-title-meta--returning strong {
    color: var(--color-accent, #f53004);
}

/* 编辑信息链接 */
.lared-edit-info-toggle {
    color: #999 !important;
    text-decoration: none !important;
    font-size: 12px;
    margin-left: 6px;
    transition: color 0.15s;
    cursor: pointer;
}

.lared-edit-info-toggle:hover {
    color: var(--color-accent, #f53004) !important;
}

/* 回头访客：默认隐藏信息字段 */
.comment-form.lared-returning-guest .comment-form-author,
.comment-form.lared-returning-guest .comment-form-email,
.comment-form.lared-returning-guest .comment-form-url,
.comment-form.lared-returning-guest .comment-form-cookies-consent {
    display: none !important;
}

.comment-form.lared-returning-guest.lared-show-fields .comment-form-author,
.comment-form.lared-returning-guest.lared-show-fields .comment-form-email,
.comment-form.lared-returning-guest.lared-show-fields .comment-form-url,
.comment-form.lared-returning-guest.lared-show-fields .comment-form-cookies-consent {
    display: flex !important;
}

#cancel-comment-reply-link {
    color: var(--color-accent, #f53004) !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s;
}

#cancel-comment-reply-link:hover {
    opacity: 0.7;
}

.comments-title {
    margin-bottom: 0;
}

.comments-title-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    line-height: 1;
    color: var(--color-accent);
}

/* =========================
   Comments - List Structure
   ========================= */
.comment-list,
.comment-list .children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list > .comment {
    position: relative;
    margin: 30px 0 0;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    overflow: visible;
}

.comment-list > .comment:last-child {
    margin-bottom: 0;
}

/* Children: inside parent card */
.comment-list .children {
    margin: 0;
}

.comment-list > .comment > .children {
    margin: 0;
    padding: 4px 16px 16px;
    border-top: 1px solid #f0f0f0;
}

.comment-list .children .comment {
    margin: 10px 0 0;
}

.comment-list .children .comment:first-child {
    margin-top: 10px;
}

.comment-list .children .comment:last-child {
    margin-bottom: 0;
}

/* =========================
   Comments - Body (main level)
   ========================= */
.comment-list > .comment > .comment-body {
    position: static;
    box-sizing: border-box;
    padding: 0 16px 14px;
}

/* Body (children level) */
.comment-list .children .comment-body {
    position: relative;
    box-sizing: border-box;
    padding: 12px 12px 12px 48px;
    border: 1px solid #f5e0dc;
    border-left: 3px solid #f53003;
    border-radius: 4px;
    background: #fef5f4;
}

/* =========================
   Comments - Avatar
   ========================= */
/* Main level: square, half-in half-out */
.comment-list > .comment > .comment-body .avatar {
    position: absolute;
    top: -22px;
    left: 16px;
    display: block;
    width: 44px;
    height: 44px;
    border: 2px solid #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    z-index: 1;
    transition: transform 0.25s ease;
}

.comment-list > .comment > .comment-body .avatar:hover {
    transform: scale(1.3);
}

/* Children level: smaller, inside card */
.comment-list .children .avatar {
    position: absolute;
    top: 10px;
    left: 10px;
    display: block;
    width: 28px;
    height: 28px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.comment-list .children .avatar:hover {
    transform: scale(1.3);
}

/* =========================
   Comments - Header (name + time + reply inline)
   ========================= */
.comment-list .comment-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 8px;
}

/* Main level: offset right to clear avatar, align with avatar bottom half */
.comment-list > .comment > .comment-body .comment-header {
    padding-left: 52px;
    min-height: 16px;
}

/* Reply link pushed to far right, hidden until hover */
.comment-list .comment-header .reply {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s;
}

.comment-list .comment-body:hover .comment-header .reply {
    opacity: 1;
}

.comment-list .comment-author-name,
.comment-list .comment-author-name .fn,
.comment-list .comment-author-name .url {
    font-weight: 600 !important;
    font-size: 14px !important;
    font-style: normal !important;
    color: #f53004 !important;
    color: var(--color-accent, #f53004) !important;
}

.comment-list .comment-author-name a,
.comment-list .comment-author-name a:visited {
    color: #f53004 !important;
    color: var(--color-accent, #f53004) !important;
    text-decoration: none !important;
}

.comment-list .comment-author-name a:hover {
    color: #f53003 !important;
}

/* 管理员标识 */
.lared-admin-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    color: var(--color-accent, #f53004);
    font-size: 13px;
    vertical-align: middle;
    line-height: 1;
}

.comment-list .comment-metadata {
    font-size: 13px;
    color: #999;
}

.comment-list .comment-metadata a {
    color: #999;
    text-decoration: none;
}

.comment-list .comment-metadata a:hover {
    color: #f53003;
}

.comment-list .comment-metadata .edit-link a {
    color: #f53003;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Legacy fallback for .fn / .says */
.comment-list .fn {
    font-weight: 600;
    font-style: normal;
    color: #f53004 !important;
    color: var(--color-accent, #f53004) !important;
}

.comment-list .says {
    display: none;
}

/* =========================
   Comments - Content (2-line clamp)
   ========================= */
.comment-list .comment-content {
    min-width: 0;
}

.comment-list .comment-content.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-list .comment-content p {
    margin: 0 0 8px;
    line-height: 1.7;
    color: #4e4e4e;
}

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

.comment-content-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 0;
    border: none;
    background: none;
    font-size: 13px;
    line-height: 1;
    color: #f53003;
    cursor: pointer;
}

.comment-content-toggle:hover {
    opacity: 0.75;
}

/* =========================
   Comments - Footer (moderation only)
   ========================= */
.comment-list .comment-footer {
    margin-top: 8px;
    font-size: 13px;
}

.comment-list .comment-header .reply a {
    display: inline-flex;
    align-items: center;
    font-size: 0;
    color: var(--color-accent, #f53004);
    text-decoration: none;
    transition: opacity 0.15s;
}

.comment-list .comment-header .reply a:hover {
    opacity: 0.7;
}

/* 评论编辑按钮（60s 倒计时） */
.lared-comment-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 0;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--color-accent, #f53004) !important;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.15s;
    vertical-align: middle;
}

.lared-comment-edit-btn:hover {
    opacity: 0.7;
}

.lared-comment-edit-btn i {
    font-size: 11px;
}

.lared-edit-countdown {
    color: var(--color-accent, #f53004) !important;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* 正在编辑的评论高亮 */
.lared-comment-editing > .comment-body {
    border-left: 2px solid var(--color-accent, #f53004);
    padding-left: 12px;
}

/* 取消编辑按钮 */
.lared-comment-cancel-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    height: 42px;
    padding: 0 20px;
    border: 1px solid #d9d9d9 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--color-accent, #f53004) !important;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s, opacity 0.15s;
}

.lared-comment-cancel-edit:hover {
    border-color: var(--color-accent, #f53004) !important;
    opacity: 0.85;
}

.comment-list .comment-awaiting-moderation {
    font-size: 13px;
    font-style: normal;
    color: #c42602;
}

/* =========================
   Comments - Navigation & Form
   ========================= */
.comment-navigation {
    margin-top: 12px;
    font-size: 14px;
}

.comment-navigation .nav-links {
    display: flex;
    gap: 16px;
}

.comment-form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0;
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
}

.comment-form p {
    margin: 0;
}

/* --- Field ordering --- */
.comment-form .logged-in-as,
.comment-form .comment-notes { order: 1; margin-bottom: 12px; }
.comment-form .comment-form-author { order: 2; }
.comment-form .comment-form-email { order: 3; }
.comment-form .comment-form-url { order: 4; }
.comment-form .comment-form-comment { order: 5; }
.comment-form .comment-form-cookies-consent { order: 6; }
.comment-form .form-submit { order: 7; }

/* --- 昵称/邮箱/网站 横向三列 --- */
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
    flex: 0 0 33.333% !important;
    width: 33.333% !important;
    max-width: 33.333% !important;
    min-width: 0;
    margin-bottom: 0;
    box-sizing: border-box !important;
}

/* 左右紧贴：前两个右边框透明 */
.comment-form .lared-comment-field--author input,
.comment-form .lared-comment-field--email input {
    border-right-color: transparent !important;
}

/* textarea 紧贴上方字段 */
.comment-form .comment-form-comment {
    margin-top: 0;
}

/* --- 操作行：cookies + emoji + submit 同行 --- */
.comment-form .lared-comment-action-row,
.comment-form .form-submit {
    margin-top: 0;
}

/* cookies 和 emoji-bar 和 form-submit 放在同一行 */
.comment-form .comment-form-cookies-consent,
.comment-form .lared-emoji-bar,
.comment-form .form-submit {
    display: inline-flex;
    align-items: center;
}

/* flex-wrap 已在主规则中设置 */

/* cookies 紧贴 submit 左侧 */
.comment-form .comment-form-cookies-consent {
    flex: 0 0 auto;
    gap: 8px;
    margin-left: auto;
    margin-right: 12px;
    margin-top: 10px;
    color: #666;
    font-size: 13px;
    overflow: visible;
}

/* emoji toggle 在 textarea 内部左下角 */
.comment-form .lared-emoji-bar {
    position: absolute !important;
    bottom: 6px !important;
    left: 6px !important;
    z-index: 2;
    margin: 0 !important;
}

/* submit 固定右侧 */
.comment-form .form-submit {
    flex: 0 0 auto;
    margin-left: auto;
    margin-top: 10px;
}

/* 提示、textarea 占满宽度 */
.comment-form .logged-in-as,
.comment-form .comment-notes,
.comment-form .comment-form-comment {
    flex: 0 0 100%;
    width: 100%;
}

/* 已登录提示 & 必填项提示 */
.comment-form .logged-in-as,
.comment-form .comment-notes {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

.comment-form .logged-in-as a,
.comment-form .comment-notes a {
    color: var(--color-accent, #f53004);
    text-decoration: none;
    font-weight: 500;
}

.comment-form .logged-in-as a:hover,
.comment-form .comment-notes a:hover {
    text-decoration: underline;
}

.comment-form .comment-notes .required {
    color: var(--color-accent, #f53004);
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    box-sizing: border-box !important;
    width: 100% !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #5f5f5f !important;
    background: #fff !important;
}

.lared-comment-field {
    position: relative;
}

.lared-comment-field__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    color: #9d9d9d;
    font-size: 14px;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.lared-comment-field input[type="text"],
.lared-comment-field input[type="email"],
.lared-comment-field input[type="url"] {
    height: 48px !important;
    padding: 0 14px 0 40px !important;
    font-size: 14px !important;
    line-height: 48px !important;
}

.lared-comment-field--comment .lared-comment-field__icon {
    top: 18px;
    transform: none;
}

.comment-form textarea {
    min-height: 160px !important;
    padding: 14px 14px 40px 40px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    resize: vertical;
}

.lared-comment-field input::placeholder,
.comment-form textarea::placeholder {
    color: #7a7a7a !important;
    font-size: 14px !important;
    opacity: 1 !important;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--color-accent, #f53004) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* form-submit 和 cookies 样式已在上方 flex 布局中定义 */

.comment-form .comment-form-cookies-consent .checkbox-wrapper-12-text {
    margin: 0;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

/* Checkbox-wrapper-12 动画勾选框 - 红色主题 */
.checkbox-wrapper-12 {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.checkbox-wrapper-12 > svg {
    position: absolute;
    top: -130%;
    left: -170%;
    width: 110px;
    pointer-events: none;
}

.checkbox-wrapper-12 * {
    box-sizing: border-box;
}

.checkbox-wrapper-12 input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    margin: 0;
}

.checkbox-wrapper-12 input[type="checkbox"]:focus {
    outline: 0;
}

.checkbox-wrapper-12 .cbx {
    position: relative;
    width: 20px;
    height: 20px;
    display: inline-block;
    filter: url(#goo-12);
}

.checkbox-wrapper-12 .cbx input {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #bfbfc0 !important;
    border-radius: 50% !important;
    background: none !important;
    padding: 0 !important;
}

.checkbox-wrapper-12 .cbx label {
    width: 20px;
    height: 20px;
    background: none;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
}

.checkbox-wrapper-12 .cbx svg {
    position: absolute;
    top: 4px;
    left: 3px;
    z-index: 1;
    pointer-events: none;
}

.checkbox-wrapper-12 .cbx svg path {
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 19;
    stroke-dashoffset: 19;
    transition: stroke-dashoffset 0.3s ease;
    transition-delay: 0.2s;
}

.checkbox-wrapper-12 .cbx input:checked + label {
    animation: splash-12 0.6s ease forwards;
}

.checkbox-wrapper-12 .cbx input:checked + label + svg path {
    stroke-dashoffset: 0;
}

@keyframes splash-12 {
    40% {
        background: var(--color-accent, #f53004);
        box-shadow: 0 -18px 0 -8px var(--color-accent, #f53004),
                    16px -8px 0 -8px var(--color-accent, #f53004),
                    16px 8px 0 -8px var(--color-accent, #f53004),
                    0 18px 0 -8px var(--color-accent, #f53004),
                    -16px 8px 0 -8px var(--color-accent, #f53004),
                    -16px -8px 0 -8px var(--color-accent, #f53004);
    }
    100% {
        background: var(--color-accent, #f53004);
        box-shadow: 0 -36px 0 -10px transparent,
                    32px -16px 0 -10px transparent,
                    32px 16px 0 -10px transparent,
                    0 36px 0 -10px transparent,
                    -32px 16px 0 -10px transparent,
                    -32px -16px 0 -10px transparent;
    }
}

.comment-form .comment-submit {
    position: relative;
    height: 42px;
    padding: 0 20px;
    border: 1px solid var(--color-accent);
    border-radius: 0;
    color: #fff;
    background: var(--color-accent);
    cursor: pointer;
    transition: opacity 0.2s;
}

.comment-form .comment-submit:hover {
    opacity: 0.85;
}

/* 提交按钮 loading 状态 */
.comment-form .comment-submit.is-loading {
    pointer-events: none;
    min-width: 120px;
    color: transparent !important;
}

.comment-form .comment-submit.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lared-loading-spin 0.6s linear infinite;
}

/* =========================
   Toast 提示
   ========================= */
.lared-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 99999;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lared-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.lared-toast.is-hiding {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}

.lared-toast--success {
    color: #fff;
    background: rgba(0, 0, 0, 0.78);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.lared-toast--error {
    color: #fff;
    background: rgba(180, 30, 30, 0.88);
    box-shadow: 0 6px 24px rgba(180, 30, 30, 0.25);
}

/* =========================
   评论表情面板
   ========================= */

/* 评论框容器 */
.lared-comment-field--comment {
    position: relative;
}

/* 表情工具栏 - textarea 下方操作行 */
.lared-emoji-bar {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lared-emoji-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: var(--color-accent, #f53004) !important;
    font-size: 16px !important;
    cursor: pointer;
    transition: color 0.2s, background 0.15s;
    padding: 0 !important;
}

.lared-emoji-toggle i {
    color: inherit !important;
}

.lared-emoji-toggle:hover,
.lared-emoji-toggle.is-active {
    color: var(--color-accent, #f53004);
    background: rgba(245, 48, 4, 0.06) !important;
}

/* 表情面板 */
.lared-emoji-panel {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    z-index: 100;
    width: 320px;
    overflow: hidden;
    padding: 8px;
    border: none !important;
    border-radius: 10px;
    background: rgba(30, 30, 30, 0.75) !important;
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
}

.lared-emoji-panel::-webkit-scrollbar {
    display: none;
}

.lared-emoji-panel::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: #d9d9d9;
}

.lared-emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    cursor: pointer;
    padding: 2px !important;
    transition: transform 0.15s;
}

.lared-emoji-item:hover {
    background: transparent !important;
    transform: scale(1.35);
}

.lared-emoji-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    pointer-events: none;
}

/* 评论内容中渲染的表情 */
.lared-emoji {
    display: inline-block;
    width: 1.6em;
    height: 1.6em;
    vertical-align: text-bottom;
    margin: 0 1px;
}

/* textarea 底部无需额外空间（表情栏已移出） */

/* =========================
   Prism - Base Typography
   ========================= */
pre[class*="language-"],
code[class*="language-"] {
    font-family: var(--font-code) !important;
    font-size: 13px;
    line-height: 1.65;
    background: #09090A !important;  /* 代码块背景色 */
}

/* =========================
   Prism - Container
   ========================= */
.lared-prism-pre {
    position: relative;
    overflow: hidden;
    margin: 1.1rem 0;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    background: #09090A;  /* 代码块背景色 */
}

.lared-prism-pre > code {
    border-radius: 0;
    background: #09090A !important;  /* 代码块背景色 */
}

.lared-prism-pre:not(.lared-prism-pre--single-line)::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #09090A;  /* 标题栏背景色与代码块一致 */
    content: "";
}

.lared-prism-pre:not(.lared-prism-pre--single-line)::after {
    position: absolute;
    top: 12px;
    left: 10px;
    z-index: 2;
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: #ff5f56;
    box-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #27c93f;
    content: "";
}

.lared-prism-pre:not(.lared-prism-pre--single-line) > code[class*="language-"] {
    display: block;
    padding-top: 40px !important;
}

/* =========================
   Prism - States
   ========================= */
.lared-prism-pre--collapsed {
    overflow: hidden !important;
    max-height: calc(40px + (1.65em * 20) + 1.25em);
}

.lared-prism-pre--expanded {
    overflow: hidden !important;
    max-height: none;
}

.lared-prism-pre.lared-prism-pre--single-line {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 44px 0 0;
}

.lared-prism-pre.lared-prism-pre--single-line > code {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 12px !important;
    text-align: left;
}

/* =========================
   Prism - Actions
   ========================= */
.lared-code-copy-btn,
.lared-code-fold-btn {
    z-index: 2;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: 0;
    line-height: 1;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.lared-code-copy-btn {
    border-radius: 0;
    font-size: 15px;
}

.lared-code-fold-btn {
    position: absolute;
    top: auto;
    right: 8px;
    bottom: 8px;
    font-size: 12px;
}

.lared-prism-pre:not(.lared-prism-pre--single-line) .lared-code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
}

.lared-prism-pre.lared-prism-pre--single-line .lared-code-copy-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

body.theme-body .lared-code-copy-btn {
    padding: 0 !important;
    border: 0 !important;
    color: #fff !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.lared-code-copy-btn:hover,
.lared-code-fold-btn:hover {
    color: #f2f2f2;
}

.lared-code-copy-btn.is-copied {
    color: #4ab866 !important;
}

/* =========================
   Prism - Square Mode
   ========================= */
.single-page-square .lared-prism-pre,
.single-page-square .lared-code-copy-btn,
.single-page-square pre[class*="language-"],
.single-page-square code[class*="language-"] {
    border-radius: 0 !important;
}

/* =========================
   Comments & Prism - Responsive
   ========================= */
@media (max-width: 900px) {
    .comments-shell {
        width: auto;
        max-width: none;
        margin: 0 24px 56px;
    }

    .comments-inner {
        padding: 20px 30px 24px;
    }

    .comments-header {
        display: flex;
        align-items: center;
        flex-direction: row;
        gap: 10px;
        margin-bottom: 14px;
        margin-left: -30px;
        margin-right: -30px;
        padding: 12px 0;
        padding-left: 30px;
        padding-right: 30px;
    }

    .comments-header__title,
    .comments-header__stats {
        font-size: 13px;
        line-height: 1.45;
    }

    .comments-header__stats {
        justify-content: flex-end;
    }

    .comments-title,
    .comment-reply-title {
        font-size: 24px;
    }

    .comments-title-icon {
        font-size: 11px;
    }

    .comment-list > .comment {
        margin-top: 26px;
    }

    .comment-list > .comment > .children {
        padding: 4px 12px 12px;
    }

    .comment-list > .comment > .comment-body {
        padding: 12px;
    }

    .comment-list > .comment > .comment-body .comment-header {
        padding-left: 46px;
    }

    .comment-list > .comment > .comment-body .avatar {
        left: 12px;
        top: -18px;
        width: 36px;
        height: 36px;
    }

    .comment-list .children .comment-body {
        padding: 10px 10px 10px 40px;
    }

    .comment-list .children .avatar {
        width: 24px;
        height: 24px;
        top: 8px;
        left: 8px;
    }

    .comment-form {
        gap: 0;
    }

    /* 小屏三列变一列 */
    .comment-form .comment-form-author,
    .comment-form .comment-form-email,
    .comment-form .comment-form-url {
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    .comment-form .lared-comment-field--author input,
    .comment-form .lared-comment-field--email input {
        border-right-color: #e5e5e5 !important;
        border-bottom-color: transparent !important;
    }

    .lared-comment-field input[type="text"],
    .lared-comment-field input[type="email"],
    .lared-comment-field input[type="url"] {
        height: 44px;
        padding: 0 12px 0 36px;
        font-size: 13px;
    }

    .lared-comment-field--comment .lared-comment-field__icon {
        top: 14px;
    }

    .comment-form textarea {
        min-height: 120px;
        padding: 12px 12px 12px 36px;
        font-size: 13px;
    }
}

@media (max-width: 1500px) {
    .single-side-toc {
        display: none;
    }
}

.home-article-content h2 {
    display: flex;
    overflow: hidden;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #3a3a35;
}

.home-article-content h2 a {
    display: block;
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
}

.home-article-content h2 a:hover {
    color: var(--color-accent);
}

.home-article-head {
    position: relative;
    display: grid;
    overflow: visible;
    isolation: isolate;
    align-items: stretch;
    column-gap: 14px;
    grid-template-columns: var(--home-article-head-height) minmax(0, 1fr) auto;
    height: var(--home-article-head-height);
    min-height: var(--home-article-head-height);
    padding-top: 0;
    padding-bottom: 0;
}

.home-article-head::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: var(--color-accent);
    content: "";
}

.home-article-time {
    position: relative;
    z-index: 2147483000;
    display: flex;
    overflow: visible;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    justify-self: start;
    align-items: center;
    align-self: stretch;
    width: var(--home-article-head-height);
    height: 100%;
    line-height: 1.05;
    text-decoration: none;
    color: #fff;
    background: var(--color-accent);
    cursor: default;
}

.home-article-time-month {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: none;
}

.home-article-time-day {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 800;
}

.home-article-head h2 {
    display: flex;
    align-items: center;
    height: 100%;
    grid-column: 2;
    min-width: 0;
    margin: 0;
    text-align: left;
    color: #3a3a35;
}

.home-article-head-label {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    justify-self: end;
    min-height: 100%;
    padding: 0 14px 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    color: var(--color-accent);
    background: transparent;
    text-decoration: none;
}

a.home-article-head-label:hover {
    color: var(--color-accent);
}

.home-article-head-label .category-icon {
    font-size: 14px;
}

.home-article-content {
    display: flex;
    overflow-x: visible;
    overflow-y: visible;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-height: 0;
    max-height: none;
    margin: 0 auto;
    padding-top: var(--headline-align-top);
    padding-right: 0;
    scroll-behavior: smooth;
}

.home-article-head,
.home-article-meta,
.home-article-body-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding-right: 35px;
    padding-left: 35px;
}

.home-article-head {
    padding-left: 0;
}

.home-article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 16px;
    margin-top: 16px;
    font-size: 14px;
    color: #666666;
}

.home-article-meta-left {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.home-article-meta-item {
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    color: #666666;
}

.home-article-meta-right {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.home-article-meta-label {
    font-size: 14px;
    line-height: 1.4;
    color: #666666;
}

.home-article-keywords {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.home-article-keyword {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 0;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    color: #fff;
    background: var(--color-accent);
}

.home-article-keyword::before {
    margin-right: 2px;
    font-size: 12px;
    line-height: 1;
    content: "#";
}

.home-article-keyword.is-empty {
    background: #efb2a2;
}

.home-article-featured {
    overflow: hidden;
    margin-top: 0;
    width: 100%;
    border: 0;
    background: #f3f3f3;
}

.home-article-featured-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
}

.home-article-featured-placeholder {
    width: 100%;
    background: var(--color-accent);
    aspect-ratio: 16 / 6;
}

.home-article-body {
    overflow: visible;
    flex: initial;
    min-height: auto;
    margin-top: 0;
    color: var(--color-body);
    --tw-prose-body: var(--color-body);
    --tw-prose-headings: var(--color-title);
    --tw-prose-bold: var(--color-title);
}

.home-article-body p {
    margin: 0;
}

.home-article-body-wrap {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    min-height: 0;
    margin-top: 0;
    padding-top: 26px;
    padding-bottom: 26px;  /* 补齐摘要底部空隙 */
}

.home-article-body.page-content.prose > *:first-child {
    margin-top: 0 !important;
}

.home-article-scrollbar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--accent-width);
    pointer-events: none;
}

.home-article-scrollbar-thumb {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: var(--accent-width);
    height: 48px;
    background: var(--color-accent);
    transform: translateY(0);
}

.home-article-body h2,
.home-article-body h3 {
    scroll-margin-top: 94px;
}

.page-content {
    min-width: 0;
    color: var(--color-body);
}

.page-content.prose :where(h2) {
    position: relative;
    margin-top: 2.1em;
    margin-bottom: 1em;
    padding-bottom: 12px;
    padding-left: 0;
    border-bottom: 1px solid #d9d9d9;
    font-weight: 500;
}

.page-content.prose :where(h2)::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--color-accent);
    content: "";
}

.single-page-square .single-content-wrap .page-content.prose :where(h2)::after {
    left: -36px;
}

.home-article-body.page-content.prose :where(h2)::after {
    content: none;
}

.page-content.prose :where(h3) {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    padding-left: 10px;
    border-left: 3px solid var(--color-accent);
}

.page-content a {
    text-decoration-color: var(--color-accent);
    color: var(--color-accent);
}

.page-content.prose :where(:not(pre) > code) {
    display: inline;
    padding: 2px 6px;
    border: 1px solid #e7e7e7;
    border-radius: 0;
    font-size: .92em;
    color: #2a2a2a;
    background: #f7f7f7;
}

.page-content.prose :where(pre):not(.lared-prism-pre) {
    overflow-x: auto;
    margin: 1.15rem 0;
    padding: 14px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    color: #f2f2f2;
    background: #09090A;  /* 代码块背景色 */
}

.page-content.prose :where(pre):not(.lared-prism-pre) code {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 13px;
    line-height: 1.65;
    color: inherit;
    background: transparent;
}

.page-content.prose :where(figure.wp-block-table) {
    overflow-x: auto;
    margin: 1.15rem 0;
}

.page-content.prose :where(table) {
    width: 100%;
    margin: 1.15rem 0;
    border: 1px solid #e4c6c6;
    color: #2a2a2a;
    background: #fff7f7;
    border-collapse: separate;
    border-spacing: 0;
}

.page-content.prose :where(table) :where(thead th) {
    padding: 14px 16px;
    border-right: 1px solid #e4c6c6;
    border-bottom: 1px solid #e4c6c6;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    color: #1f1f1f;
    background: #f6e3e3;
}

.page-content.prose :where(table) :where(thead th:last-child) {
    border-right: 0;
}

.page-content.prose :where(table) :where(tbody td) {
    padding: 14px 16px;
    border-right: 1px solid #e8d3d3;
    border-bottom: 1px solid #e8d3d3;
    font-size: 15px;
    line-height: 1.55;
    color: #2d2b2b;
    background: #fffafa;
    vertical-align: top;
}

.page-content.prose :where(table) :where(tbody tr:nth-child(even) td) {
    background: #fff4f4;
}

.page-content.prose :where(table) :where(tbody td:last-child) {
    border-right: 0;
}

.page-content.prose :where(table) :where(tbody tr:last-child td) {
    border-bottom: 0;
}

.page-content.prose :where(blockquote) {
    position: relative;
    margin: 5px 0 15px;
    padding: 8px 48px 8px 12px;
    border: none;
    border-left: 4px solid #4ab866;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4em;
    color: #3c434a;
    background: #eff9f1;
    box-shadow: none;
    quotes: none;
}

.page-content.prose :where(blockquote p) {
    margin: 0;
}

.page-content.prose :where(blockquote p:first-of-type)::before,
.page-content.prose :where(blockquote p:last-of-type)::after {
    content: none !important;
}

.page-content a .lared-inline-link-icon {
    margin-left: 4px;
    font-size: .9em;
    line-height: 1;
    vertical-align: baseline;
}

.listing-head-inner {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 1150px;
    min-height: 108px;
    margin: 0 auto;
    padding: 18px 0 18px 0;
}

.listing-head-accent {
    position: absolute;
    top: 50%;
    left: -66px;
    width: 3px;
    height: 40px;
    background: var(--color-accent);
    transform: translateY(-50%);
}

.listing-head-main {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.listing-head-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: #777777;
}

.listing-head-breadcrumb a {
    text-decoration: none;
    color: #333333;
}

.listing-head-breadcrumb a:hover {
    color: var(--color-accent);
}

.listing-head-title {
    margin: 8px 0 0;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-title);
}

.listing-head-desc,
.listing-head-result-count {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #777777;
}

.listing-head-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    width: 100%;
}

.listing-head-title-row .listing-head-title {
    margin: 8px 0 0;
}

.listing-head-side-stat {
    flex-shrink: 0;
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
    color: #777777;
}

.listing-head-desc > *:first-child {
    margin-top: 0;
}

.listing-head-desc > *:last-child {
    margin-bottom: 0;
}

.listing-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 28px 0 0;
}

.about-main {
    padding-top: 0;
}

.about-hero {
    width: 100%;
    border-bottom: 1px solid #d9d9d9;
}

.about-hero-image {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
}

.about-hero-fallback {
    width: 100%;
    height: 360px;
    background: linear-gradient(135deg, #1f2433, #0c0f17);
}

.about-content {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px 0 0;
}

.about-content-inner {
    display: grid;
    gap: 18px;
}

.about-decade-card {
    display: grid;
    gap: 14px;
    padding: 18px 18px 14px;
    border: 1px solid #d9d9d9;
    background: #fff;
}

.about-decade-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.about-decade-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2d3a;
}

.about-decade-title i {
    color: #2ca772;
}

.about-decade-remaining {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #2ca772;
    background: #edf8f2;
}

.about-decade-progress-wrap {
    position: relative;
}

.about-decade-progress-track {
    position: relative;
    overflow: hidden;
    height: 22px;
    border-radius: 0;
    background: #e7eaee;
}

.about-decade-progress-fill {
    display: block;
    height: 100%;
    background: #2ca772;
}

.about-decade-progress-label {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    transform: translate(-50%, -50%);
    text-shadow: 0 1px 2px rgb(0 0 0 / .22);
    pointer-events: none;
}

.about-decade-dates {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #8a8a8a;
}

.about-article {
    padding: 20px 22px;
    border: 1px solid #e9e2de;
    background: linear-gradient(180deg, #fff 0%, #fff9f4 100%);
}

.about-article.prose > *:first-child {
    margin-top: 0;
}

.about-article.prose > *:last-child {
    margin-bottom: 0;
}

.listing-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #d9d9d9;
    background: #d9d9d9;
}

.listing-card {
    background: #fff;
}

.listing-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.listing-card-image-wrap {
    position: relative;
    overflow: hidden;
    background: #10131b;
    aspect-ratio: 16 / 10;
}

.listing-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform .45s ease;
    object-fit: cover;
}

.listing-card:hover .listing-card-image {
    transform: scale(1.04);
}

.listing-card-image-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #202636, #0c111b);
}

.listing-card-body {
    display: grid;
    gap: 10px;
    padding: 14px 14px 16px;
    border-top: 1px solid #d9d9d9;
}

.listing-card-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #909090;
}

.listing-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.listing-card-category-icon {
    font-size: 12px;
    line-height: 1;
}

.listing-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f1f1f;
}

.listing-card-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
}

.search-result-list {
    border: 1px solid #d9d9d9;
    background: #fff;
}

.search-result-item + .search-result-item {
    border-top: 1px solid #d9d9d9;
}

.search-result-link {
    display: block;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
}

.search-result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #888888;
}

.search-result-type {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 60px;
    height: 22px;
    padding: 0 8px;
    border: 1px solid #f2b2a4;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: #fff4f1;
}

.search-result-title {
    margin: 10px 0 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #21201d;
}

.search-result-excerpt {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #63635e;
}

.friend-links-content {
    display: grid;
    gap: 18px;
}

.friend-links-intro {
    padding: 16px 18px;
    border: 1px solid #d9d9d9;
    background: #fff;
}

.friend-links-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #d9d9d9;
    background: #d9d9d9;
}

.friend-link-card {
    background: #fff;
}

.friend-link-card-link {
    display: grid;
    gap: 10px;
    min-height: 130px;
    user-select: text;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.friend-link-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.friend-link-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: #1f1f1f;
}

.friend-link-card-icon {
    font-size: 13px;
    line-height: 1;
    color: var(--color-accent);
}

.friend-link-card-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
}

.friend-link-card-host {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #969696;
}

.rss-subscribe-content {
    display: grid;
    gap: 18px;
}

.rss-subscribe-hero {
    display: grid;
    gap: 1px;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    border: 1px solid #d9d9d9;
    background: #d9d9d9;
}

.rss-subscribe-hero-main {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    padding: 22px 22px 18px;
    color: #fff;
    background: #10131b;
}

.rss-subscribe-hero-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(16, 19, 27, .66);
    background-image: var(--rss-hero-bg, none);
    background-size: cover;
    background-position: center;
    filter: saturate(.95);
}

.rss-subscribe-hero-main > * {
    position: relative;
    z-index: 1;
}

.rss-subscribe-hero-title {
    margin: 0;
    font-size: 35px;
    font-weight: 600;
    line-height: 1.12;
}

.rss-subscribe-hero-text {
    margin-top: 14px;
    max-width: 720px;
    color: rgba(255, 255, 255, .93);
}

.rss-subscribe-hero-text a {
    color: #fff;
    text-decoration-color: #fff;
}

.rss-subscribe-hero-fallback {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.72;
    color: rgba(255, 255, 255, .9);
}

.rss-subscribe-stats {
    padding: 16px;
    background: #fff;
}

.rss-subscribe-stats-title {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #d9d9d9;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #1f1f1f;
}

.rss-subscribe-stats-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.rss-subscribe-stats-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-bottom: 0;
    font-size: 13px;
    color: #666666;
    background: #fff;
}

.rss-subscribe-stats-list li:last-child {
    border-bottom: 1px solid #d9d9d9;
}

.rss-subscribe-stats-list strong {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    color: #2f2f2f;
}

.rss-feed-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #d9d9d9;
    background: #d9d9d9;
}

.rss-feed-card {
    background: #fff;
}

.rss-feed-card-link {
    user-select: text;
}

.rss-feed-card-link {
    display: grid;
    gap: 12px;
    min-height: 178px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.rss-feed-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.rss-feed-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: #21201d;
}

.rss-feed-card-icon {
    font-size: 13px;
    line-height: 1;
    color: var(--color-accent);
}

.rss-feed-card-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.68;
    color: #63635e;
}

.rss-feed-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    font-size: 12px;
    color: #969696;
}

.rss-feed-card-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.rss-feed-card-site span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rss-feed-card-site-avatar {
    width: 18px;
    height: 18px;
    border-radius: 0;
    object-fit: cover;
    flex: 0 0 18px;
    background: #f1f1f1;
}

/* ===========================================
   友联动态分页加载样式
   =========================================== */

/* Loading 圆圈 */
.feed-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.feed-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--color-accent, #f53004);
    border-radius: 50%;
    animation: feed-spin 1s linear infinite;
}

.feed-spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #fff;
    border-radius: 50%;
    animation: feed-spin 1s linear infinite;
}

@keyframes feed-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 加载更多按钮 */
.feed-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 32px 20px;
}

.feed-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    height: 44px;
    padding: 0 24px;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-load-more-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.feed-load-more-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    background: #f5f5f5;
}

.feed-load-more-btn .feed-spinner-small {
    border-color: #d9d9d9;
    border-top-color: var(--color-accent, #f53004);
}

.feed-load-more-btn i {
    font-size: 12px;
}

/* 没有更多内容提示 */
.feed-no-more {
    text-align: center;
    padding: 32px 20px;
    color: #969696;
    font-size: 14px;
}

.memos-content {
    display: grid;
    gap: 18px;
}

.memos-error {
    padding: 12px 14px;
    border: 1px solid #f1c0b4;
    color: #b4452f;
    background: #fff5f2;
}

.memos-error p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
}

.memos-error p + p {
    margin-top: 6px;
}

.memos-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 1px solid #d9d9d9;
    background: #d9d9d9;
}

.memos-grid .memos-card {
    width: 100%;
}

.memos-card {
    background: #fff;
}

.memos-card-link {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: auto;
    padding: 16px;
    user-select: text;
    text-decoration: none;
    color: inherit;
}

.memos-card-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.memos-card-keyword {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border: 1px solid #e6e6e6;
    font-size: 12px;
    line-height: 24px;
    color: #6f6f6f;
    background: #fbfbfb;
}

.memos-card-keyword-empty {
    color: #8d8d8d;
}

/* 说说卡片头部：关键词 + 日期 */
.memos-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.memos-card-time {
    flex-shrink: 0;
    font-size: 12px;
    color: #969696;
}

.memos-card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: auto;
    overflow: hidden;
    color: #63635e;
    font-size: 14px;
    line-height: 1.72;
}

.memos-card-body p {
    margin: 0 0 8px;
    width: 100%;
    text-align: left;
}

.memos-card-body p:last-child {
    margin-bottom: 0;
}

/* Memos 卡片中的图片 */
.memos-card-body img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin: 8px 0;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.memos-card-body img:hover {
    opacity: 0.9;
}

/* ===========================================
   Memos 页面侧边栏布局
   =========================================== */

.memos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    padding: 24px;
}

.memos-main-content {
    min-width: 0;
}

.memos-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.memos-sidebar-block {
    border: 1px solid #d9d9d9;
    background: #fff;
}

.memos-sidebar-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #d9d9d9;
    background: #fafafa;
}

.memos-sidebar-block-title h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.memos-sidebar-block-title h3 i {
    color: var(--color-accent);
    font-size: 13px;
}

.memos-sidebar-block-body {
    padding: 16px;
}

/* 日历样式 */
.memos-calendar {
    width: 100%;
}

/* 日历区块标题（含导航按钮） */
.memos-sidebar-block-title--calendar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 12px;
}

.memos-sidebar-block-title--calendar h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1;
    white-space: nowrap;
}

.memos-sidebar-block-title--calendar h3 i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

/* 日历导航按钮组 */
.memos-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex: 1;
}

.memos-calendar-title-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    min-width: 70px;
    height: 24px;
    text-align: center;
    font-family: var(--font-mono);
    line-height: 1;
}

.memos-calendar-prev,
.memos-calendar-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 12px;
    box-shadow: none !important;
    outline: none !important;
}

.memos-calendar-prev:hover,
.memos-calendar-next:hover {
    color: var(--color-accent);
    background: transparent !important;
    background-color: transparent !important;
}

.memos-calendar-prev:focus,
.memos-calendar-next:focus {
    outline: none !important;
    box-shadow: none !important;
}

.memos-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.memos-calendar-weekdays span {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 4px;
}

.memos-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.memos-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease;
}

.memos-calendar-day:hover {
    background: #f0f0f0;
}

.memos-calendar-day.is-today {
    border: 2px solid var(--color-accent);
    color: #000;
    font-weight: 600;
}

.memos-calendar-day.has-memos {
    position: relative;
    font-weight: 600;
    color: var(--color-accent);
}

.memos-calendar-day.has-memos::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
}

.memos-calendar-day-empty {
    cursor: default;
}

/* 热力图样式 */
.memos-mini-heatmap {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3px;
}

.memos-mini-heatmap-cell {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.memos-mini-heatmap-cell.tone-red.level-0 { background: #f5f5f5; }
.memos-mini-heatmap-cell.tone-red.level-1 { background: #ffcccc; }
.memos-mini-heatmap-cell.tone-red.level-2 { background: #ff9999; }
.memos-mini-heatmap-cell.tone-red.level-3 { background: #ff6666; }
.memos-mini-heatmap-cell.tone-red.level-4 { background: #e53935; }
.memos-mini-heatmap-cell.tone-red.level-5 { background: #c62828; }

/* 标签样式 */
.memos-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.memos-sidebar-tags a {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
}

.memos-sidebar-tags a:hover {
    transform: translateY(-1px);
}

/* 标签颜色 */
.memos-tag-red    { background: #ffebee; color: #c62828; }
.memos-tag-orange { background: #fff3e0; color: #e65100; }
.memos-tag-yellow { background: #fffde7; color: #f57f17; }
.memos-tag-green  { background: #e8f5e9; color: #2e7d32; }
.memos-tag-cyan   { background: #e0f7fa; color: #00838f; }
.memos-tag-blue   { background: #e3f2fd; color: #1565c0; }
.memos-tag-purple { background: #f3e5f5; color: #6a1b9a; }
.memos-tag-pink   { background: #fce4ec; color: #ad1457; }

/* 响应式 */
@media (max-width: 900px) {
    .memos-layout {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .memos-sidebar {
        order: -1;
    }
}

.lared-pagination {
    margin-top: 0;
    padding-bottom: 4px;
}

.lared-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.lared-pagination--home .nav-links {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    transform: translate(-50%, -50%);
}

.lared-pagination--home {
    position: relative;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 56px;
}

.lared-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    color: #333333;
    background: #fff;
    vertical-align: middle;
}

.lared-pagination .page-numbers.current {
    border-color: var(--color-accent);
    color: #fff;
    background: var(--color-accent);
}

.lared-pagination .page-numbers:hover {
    color: var(--color-accent);
}

.listing-empty {
    padding: 42px 24px;
    border: 1px solid #d9d9d9;
    font-size: 14px;
    text-align: center;
    color: #777777;
    background: #fff;
}

.listing-empty p {
    margin: 0;
}

.listing-empty-note {
    margin-top: 8px !important;
    font-size: 13px;
    color: #999999;
}

.archive-timeline {
    display: grid;
    gap: 22px;
}

.archive-year-group {
    padding: 16px 18px;
    border: 1px solid #d9d9d9;
    background: #fff;
}

.archive-year-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d9d9d9;
}

.archive-year-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-title);
}

.archive-year-count {
    font-size: 13px;
    color: #777777;
}

.archive-month-group + .archive-month-group {
    margin-top: 14px;
}

.archive-month-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.archive-month-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #21201d;
}

.archive-month-count {
    font-size: 12px;
    color: #909090;
}

.archive-post-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.archive-post-item {
    display: grid;
    grid-template-columns: 60px auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: baseline;
    padding: 8px 0;
    border-top: 1px dashed #e3e3e3;
}

.archive-post-list .archive-post-item:first-child {
    border-top: 0;
}

.archive-post-date {
    font-size: 12px;
    line-height: 1.4;
    color: #8f8f8f;
}

.archive-post-cat-icon {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #999;
    line-height: 1;
}

.archive-post-link {
    overflow: hidden;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #2a2a2a;
}

.archive-post-link:hover {
    color: var(--color-accent);
}

.archive-post-stats {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    font-size: 11.5px;
    color: #aaa;
    white-space: nowrap;
}

.archive-post-stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.archive-post-stat i {
    font-size: 11px;
}

/* =========================
   Category Archive Page
   ========================= */
.category-archive-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.category-archive-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--color-accent);
}

.category-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-archive-card-link {
    display: flex;
    flex-direction: column;
}

.category-archive-image-wrap {
    aspect-ratio: 1 / 1;
}

.category-archive-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #d9d9d9;
    font-size: 12px;
    color: #909090;
}

.category-archive-card-body {
    border-top: 0;
}

/* =========================
   Year-Month Archive Page
   ========================= */
.year-month-archive-page .archive-year-group {
    border-left: 1px solid #d9d9d9;
}

.year-month-archive-page .archive-year-group:hover {
    border-left-color: var(--color-accent);
}

.year-month-archive-page .archive-head-stats {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin-left: auto;
    margin-top: 0;
}

.year-month-archive-page .archive-head-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 130px;
    min-height: 32px;
    padding: 6px 8px;
    border: 1px solid #d9d9d9;
    background: #fff;
}

.year-month-archive-page .archive-head-stat b {
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #2f2f2f;
}

.year-month-archive-page .archive-head-stat em {
    font-size: 12px;
    font-style: normal;
    line-height: 1.2;
    color: #777;
}

.archive-heatmap {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #d9d9d9;
    background: #fff;
}

.archive-heatmap-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.archive-heatmap-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f1f1f;
}

.archive-heatmap-subtitle {
    margin: 0;
    font-size: 13px;
    color: #7a7a7a;
}

.archive-heatmap-wrap {
    overflow-x: auto;
    padding-bottom: 2px;
}

.archive-heatmap-months {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(14px, 1fr);
    margin-bottom: 6px;
    padding-left: 2px;
    width: 100%;
    min-width: 760px;
    font-size: 11px;
    color: #8a8a8a;
}

.archive-heatmap-months span {
    white-space: nowrap;
    transform: translateX(-2px);
}

.archive-heatmap-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(14px, 1fr);
    grid-template-rows: repeat(7, minmax(14px, 1fr));
    gap: 3px;
    width: 100%;
    min-width: 760px;
}

.archive-heatmap-cell {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    background: #ebedf0;
}

/* 归档页面热力图 - 红色系 */
.archive-heatmap-cell.level--1 {
    background: transparent;
}

.archive-heatmap-cell.level-0 {
    background: #f5f5f5;
}

.archive-heatmap-cell.level-1 {
    background: #ffcccc;
}

.archive-heatmap-cell.level-2 {
    background: #ff9999;
}

.archive-heatmap-cell.level-3 {
    background: #ff6666;
}

.archive-heatmap-cell.level-4 {
    background: #e53935;
}

.archive-heatmap-cell.level-5 {
    background: #c62828;
}

.archive-heatmap-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: #7a7a7a;
}

.archive-heatmap-legend .archive-heatmap-cell {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    aspect-ratio: auto;
}

/* =========================
   Keyword Archive Page
   ========================= */
.keyword-archive-page .search-result-list {
    border: 1px solid #d9d9d9;
}

.keyword-archive-page .search-result-item + .search-result-item {
    border-top: 1px dashed #d9d9d9;
}

.keyword-archive-page .search-result-link:hover .search-result-title {
    color: var(--color-accent);
}

.keyword-archive-page .search-result-excerpt {
    display: -webkit-box;
    line-clamp: 2;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 900px) {

    .listing-head-inner {
        min-height: 90px;
        padding: 14px 24px;
    }

    .listing-head-accent {
        display: none;
    }

    .listing-head-title {
        font-size: 26px;
    }

    .listing-head-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .listing-head-side-stat {
        margin-top: 0;
        text-align: left;
    }

    .listing-content {
        padding: 18px 24px 0;
        box-sizing: border-box;
    }

    .about-content {
        padding: 16px 24px 0;
        box-sizing: border-box;
    }

    .about-content-inner {
        gap: 14px;
    }

    .about-article {
        padding: 16px;
    }

    .about-hero-image,
    .about-hero-fallback {
        height: 260px;
    }

    .about-decade-card {
        gap: 10px;
        padding: 14px 14px 12px;
    }

    .about-decade-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .about-decade-title {
        font-size: 17px;
    }

    .archive-year-group {
        padding: 14px;
    }

    .archive-year-title {
        font-size: 22px;
    }

    .archive-post-item {
        grid-template-columns: 54px auto minmax(0, 1fr) auto;
        gap: 6px;
    }

    .archive-post-link {
        font-size: 14px;
    }

    .archive-post-stats {
        gap: 8px;
        font-size: 11px;
    }

    .year-month-archive-page .archive-head-stats {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
    }

    .archive-heatmap {
        margin-bottom: 18px;
        padding: 12px;
    }

    .archive-heatmap-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .year-month-archive-page .archive-head-stat {
        flex: 1 1 calc(50% - 8px);
    }

    .category-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .listing-grid,
    .friend-links-grid,
    .rss-feed-grid {
        grid-template-columns: 1fr;
    }

    .rss-subscribe-hero {
        grid-template-columns: 1fr;
    }

    .rss-subscribe-hero-main {
        min-height: 200px;
        padding: 16px 14px;
    }

    .rss-subscribe-hero-title {
        font-size: 28px;
    }

    .rss-subscribe-stats {
        padding: 12px;
    }

    .rss-feed-card-link {
        min-height: 150px;
        padding: 14px;
    }

    .rss-feed-card-title {
        font-size: 19px;
    }

    .search-result-link {
        padding: 14px;
    }

    .search-result-title {
        font-size: 19px;
    }

    .page-content.prose :where(figure.wp-block-table table),
    .page-content.prose :where(table) {
        min-width: 640px;
        font-size: 13px;
    }

    .page-content.prose :where(table) :where(thead th),
    .page-content.prose :where(table) :where(tbody td) {
        padding: 10px 12px;
    }

    .nav {
        display: none;
    }

    .home-article {
        padding: 0 24px;
        box-sizing: border-box;
    }

    .home-main-layout {
        grid-template-columns: 1fr;
    }

    .home-main-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .home-main-sidebar::before {
        display: none;
    }

    .home-main-sidebar-inner {
        position: static;
        gap: 10px;
        padding: 0 0 14px;
    }

    .home-main-sidebar-block {
        gap: 6px;
    }

    .home-main-sidebar-block-title {
        min-height: 50px;
        padding: 0 10px;
    }

    .home-main-sidebar-block-body {
        padding: 10px;
    }

    .home-main-feed {
        --home-article-head-height: 48px;
    }

    .home-article::after {
        display: none;
    }

    .home-article-grid {
        --headline-align-top: 0px;
        --home-article-head-height: 48px;
        grid-template-columns: 1fr;
        gap: 22px;
        padding-left: 0;
    }

    .home-article-grid::before {
        display: none;
    }

    .home-article-sidebar {
        width: auto;
        max-width: none;
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 14px;
    }

    .home-article-sidebar-card {
        position: static;
        gap: 10px;
        margin: 8px 0 0;
        padding: 12px;
    }

    .home-article-sidebar::before {
        left: 0;
        top: 10px;
        width: 3px;
        height: 48px;
    }

    .home-article-sidebar-icon {
        width: 42px;
        height: 42px;
    }

    .home-article-sidebar-icon .category-icon {
        font-size: 18px;
    }

    .home-article-sidebar-meta time {
        font-size: 14px;
    }

    .home-article-sidebar-link {
        min-height: 34px;
        font-size: 13px;
    }

    .home-article-content h2 {
        font-size: 22px;
    }

    .home-article-head {
        grid-template-columns: var(--home-article-head-height) minmax(0, 1fr) auto;
        column-gap: 12px;
    }

    .home-article-head-label {
        min-height: 100%;
        padding: 0 10px 0 0;
        font-size: 12px;
    }

    .home-article-time {
        width: var(--home-article-head-height);
        height: var(--home-article-head-height);
    }

    .home-article-time-month {
        font-size: 12px;
    }

    .home-article-time-day {
        font-size: 16px;
    }

    .home-article-time-tooltip {
        height: 26px;
        font-size: 11px;
    }

    .home-article-content {
        max-height: none;
        min-height: 0;
        overflow: visible;
        display: block;
        padding-right: 0;
    }

    .home-article-body {
        overflow: visible;
        min-height: 0;
    }

    .home-article-body-wrap {
        margin-top: 0;
        padding-top: 26px;
        padding-bottom: 26px;  /* 补齐移动端摘要底部空隙 */
        min-height: 0;
    }

    .home-article-head,
    .home-article-meta,
    .home-article-body-wrap {
        padding-right: 0;
    }

    .home-article-meta {
        align-items: flex-start;
        justify-content: flex-start;
        gap: 8px;
    }

    .home-article-meta-right,
    .home-article-keywords {
        justify-content: flex-start;
    }

    .home-article-featured-image {
        max-height: none;
    }

    .home-article-scrollbar {
        display: none;
    }

    .page-content.prose :where(h2) {
        padding-bottom: 10px;
    }

    .single-page-square .single-content-wrap .page-content.prose :where(h2)::after {
        left: -30px;
    }

    .page-content.prose :where(h3) {
        padding-left: 8px;
    }

}

/* Hero sidebar — active item indicator (left border, no bg color change) */
[data-hero-item] {
    margin: 0;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
    outline: 0;
    background-color: #1f1f1f;
    box-shadow: none;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

/* Hero Section */

.hero-shell {
    display: grid;
    height: 400px;
    grid-template-columns: 260px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 0;
    --hero-item-count: 4;
    --hero-shell-height: 400px;
    --hero-card-height: calc(var(--hero-shell-height) / var(--hero-item-count));
}

@media (max-width: 1024px) {
    .hero-shell {
        height: auto;
        grid-template-columns: 1fr;
    }
}

.hero-sidebar {
    order: 1;
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: #1f1f1f;
}

@media (max-width: 1024px) {
    .hero-sidebar {
        order: 2;
    }
}

.hero-sidebar,
.hero-sidebar [data-hero-item],
.hero-shell > article {
    border-radius: 0 !important;
}

.hero-title-frost {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: var(--hero-card-height);
    padding: 0 18px;
    border: 0;
    background: rgba(8, 12, 22, 0.72);
    box-shadow: none;
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
}

.hero-title-row {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 10px;
}

.hero-title-row .hero-main-title-wrap {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.06;
}

@media (max-width: 900px) {
    .hero-title-row .hero-main-title-wrap {
        font-size: 28px;
    }
}

@media (max-width: 900px) {
    .hero-title-frost {
        height: 64px;
        padding: 0 12px;
    }
}

.hero-type-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 34px;
    height: var(--hero-card-height);
    padding: 6px 5px;
    border: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1px;
    color: #fff;
    background: var(--color-accent);
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.hero-type-badge[data-hero-main-badge-key="latest"] {
    background: #f53004;
}

.hero-type-badge[data-hero-main-badge-key="popular"] {
    background: #ff7a00;
}

.hero-type-badge[data-hero-main-badge-key="comment"] {
    background: #2563eb;
}

.hero-type-badge[data-hero-main-badge-key="random"] {
    background: #16a34a;
}

@media (max-width: 900px) {
    .hero-type-badge {
        height: 64px;
        min-width: 30px;
        font-size: 11px;
        padding: 5px 4px;
    }
}

.hero-sidebar [data-hero-item] {
    position: relative;
    display: flex;
    flex: 1;
    width: 100%;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    padding: 0 20px;
    padding-right: 80px;
    color: #fff;
    background: transparent;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    background-clip: padding-box;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    text-align: left;
}

.hero-sidebar [data-hero-item]::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    content: "";
}

.hero-sidebar [data-hero-item]::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    content: "";
}

.hero-sidebar [data-hero-item]:hover::before {
    opacity: 1;
}

.hero-sidebar [data-hero-item].is-hero-active::before,
.hero-sidebar [data-hero-item][aria-pressed="true"]::before {
    opacity: 0;
}

.hero-sidebar [data-hero-item]:last-child::after {
    display: none;
}

.hero-item-label {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.2);
}

.hero-item-count {
    display: inline;
    margin-left: 2px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.hero-sidebar [data-hero-item].is-hero-active .hero-item-label,
.hero-sidebar [data-hero-item][aria-pressed="true"] .hero-item-label,
.hero-sidebar [data-hero-item].is-hero-active .hero-item-count,
.hero-sidebar [data-hero-item][aria-pressed="true"] .hero-item-count {
    color: #fff;
}

.hero-item-bg-icon {
    position: absolute;
    top: 0;
    right: 8px;
    bottom: 0;
    display: flex;
    overflow: visible;
    justify-content: center;
    align-items: center;
    width: 84px;
    height: 100%;
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    transition: color 0.15s;
}

.is-hero-active .hero-item-bg-icon,
[data-hero-item][aria-pressed="true"] .hero-item-bg-icon {
    color: #fff;
}

.hero-item-bg-icon i {
    display: block;
    font-size: 56px;
    line-height: 1;
}

@media (max-width: 900px) {
    .hero-item-bg-icon {
        width: 68px;
    }

    .hero-item-bg-icon i {
        font-size: 44px;
    }
}

[data-hero-item]:hover {
    background-color: #1f1f1f;
}

.is-hero-active,
[data-hero-item][aria-pressed="true"] {
    background-color: var(--color-accent);
    box-shadow: none;
    border-left-color: transparent;
}

/* Global font-weight normalization: regular 400, bold 500 */
body.theme-body,
body.theme-body p,
body.theme-body li,
body.theme-body span,
body.theme-body a,
body.theme-body small,
body.theme-body input,
body.theme-body textarea,
body.theme-body button,
body.theme-body label,
body.theme-body blockquote,
body.theme-body figcaption,
body.theme-body td,
body.theme-body code,
body.theme-body pre {
    font-weight: 400;
}

body.theme-body strong,
body.theme-body b,
body.theme-body th,
body.theme-body h1,
body.theme-body h2,
body.theme-body h3,
body.theme-body h4,
body.theme-body h5,
body.theme-body h6,
body.theme-body .font-medium,
body.theme-body .font-semibold,
body.theme-body .font-bold,
body.theme-body .font-extrabold,
body.theme-body .font-black {
    font-weight: 500 !important;
}

.site-footer {
    border-top: 1px solid var(--border-color);
    background: #fff;
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    min-height: 66px;
    margin: 0 auto;
    padding: 0;
}

.site-footer-copy {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: #666666;
}

.site-footer-icons {
    display: inline-flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 14px !important;
    vertical-align: middle !important;
}

.site-footer-icon-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    text-decoration: none;
    color: #777777;
    background: #fff;
    transition: transform 1.5s ease, color .2s ease, border-color .2s ease;
}

.site-footer-icon-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: scale(1.12);
}

/* 回到顶部按钮 - 高优先级覆盖 */
.back-to-top {
    position: fixed !important;
    right: 24px !important;
    bottom: 18px !important;
    z-index: 60 !important;
    display: grid !important;
    visibility: hidden !important;
    place-items: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    box-sizing: border-box !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 0 !important;
    color: #777777 !important;
    background: #fff !important;
    background-color: #fff !important;
    opacity: 0 !important;
    cursor: pointer !important;
    pointer-events: none !important;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease, color .2s ease, border-color .2s ease, background .2s ease !important;
    transform: translateY(8px) !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.back-to-top.is-visible {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.back-to-top:hover {
    border-color: var(--color-accent, #f53004) !important;
    color: #fff !important;
    background: var(--color-accent, #f53004) !important;
    background-color: var(--color-accent, #f53004) !important;
}

.back-to-top i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    line-height: 1 !important;
    width: 100% !important;
    height: 100% !important;
}

#lared-aplayer .aplayer.aplayer-fixed {
    right: auto;
    bottom: 0;       /* 紧贴底部 */
    left: 16px;
    margin: 0;
}

@media (max-width: 900px) {
    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 0;
        gap: 8px;
    }

    .back-to-top {
        right: 16px !important;
        bottom: 18px !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }

}

/* ===========================================
   图片加载动画
   =========================================== */

/* 基础状态 - 所有动画图片初始隐藏 */
img[data-img-animation] {
    opacity: 0;
}

/* 淡入效果 */
@keyframes img-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

img[data-img-animation="fade"].img-loaded {
    animation: img-fade-in 1.5s forwards;
}

/* 像素化显现效果 */
@keyframes img-pixelate {
    0% {
        filter: blur(20px) grayscale(100%) brightness(0);
        opacity: 0;
    }
    30% {
        filter: blur(15px) grayscale(80%) brightness(0.3);
        opacity: 0.5;
    }
    60% {
        filter: blur(8px) grayscale(40%) brightness(0.7);
        opacity: 0.8;
    }
    100% {
        filter: blur(0) grayscale(0) brightness(1);
        opacity: 1;
    }
}

img[data-img-animation="pixelate"].img-loaded {
    animation: img-pixelate 2s forwards;
}

/* 加载失败状态 */
img[data-img-animation].img-error {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* Hero 图片切换保持原有效果 */
[data-hero-main-image] {
    transition: opacity 0.3s ease;
}

/* ===========================================
   文章图片 Loading 占位效果
   =========================================== */

/* 图片占位容器 */
.img-loading-wrapper {
    position: relative;
    display: block;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 4px;
    margin: 1.5rem 0;
}

/* 默认 16:9 比例 */
.img-loading-wrapper:not([style*="aspect-ratio"]) {
    aspect-ratio: 16/9;
}

/* Loading 旋转圆圈容器 */
.img-loading-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Loading 旋转圆圈 - Tailwind 风格 */
.spinner-circle,
.img-loading-spinner .spinner-circle {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    border: 4px solid #e5e7eb !important;
    border-top-color: var(--color-accent, #f53004) !important;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
    animation: lared-loading-spin 1s linear infinite !important;
    box-sizing: border-box !important;
}

/* 目标图片 - 加载中使用绝对定位填充占位容器 */
.img-loading-target,
.single-article-content .img-loading-target,
.page-content .img-loading-target,
.home-article-body .img-loading-target,
.entry-content .img-loading-target {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

/* 图片加载完成 - 切换为自然流式布局，消除底部空白 */
.img-loading-wrapper.is-loaded {
    aspect-ratio: unset !important;
    overflow: visible;
}

.img-loading-wrapper.is-loaded .img-loading-target,
.single-article-content .img-loading-wrapper.is-loaded .img-loading-target,
.page-content .img-loading-wrapper.is-loaded .img-loading-target,
.entry-content .img-loading-wrapper.is-loaded .img-loading-target {
    position: relative !important;
    inset: auto;
    width: 100% !important;
    height: auto !important;
    object-fit: initial !important;
    opacity: 1;
}

/* Loading 完成隐藏 */
.img-loading-wrapper.is-loaded .img-loading-spinner {
    opacity: 0;
    visibility: hidden;
}

/* 错误状态 */
.img-loading-wrapper.is-error {
    background: #fee;
}

.img-loading-wrapper.is-error .img-loading-spinner {
    display: none;
}

.img-loading-error-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c00;
    font-size: 24px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .spinner-circle,
    .img-loading-spinner .spinner-circle {
        width: 32px !important;
        height: 32px !important;
        border-width: 3px !important;
        border-radius: 50% !important;
    }
}

/* ===========================================
   文章图片网格布局 lared-grid-2 / 3 / 4
   用法：在 WordPress 编辑器中用 HTML 块包裹图片
   <div class="lared-grid-2"> <img> <img> </div>
   =========================================== */

/* 通用网格容器 */
.lared-grid-2,
.lared-grid-3,
.lared-grid-4 {
    display: grid;
    gap: 8px;
    margin: 1.5rem 0;
    border-radius: 6px;
    overflow: hidden;
}

/* 网格内图片统一样式 */
.lared-grid-2 img,
.lared-grid-3 img,
.lared-grid-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.lared-grid-2 img:hover,
.lared-grid-3 img:hover,
.lared-grid-4 img:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* 网格内 figure 容器清除默认间距 */
.lared-grid-2 figure,
.lared-grid-3 figure,
.lared-grid-4 figure {
    margin: 0;
    padding: 0;
}

/* 网格内 figcaption 样式 */
.lared-grid-2 figcaption,
.lared-grid-3 figcaption,
.lared-grid-4 figcaption {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 4px 0 0;
    line-height: 1.4;
}

/* ── lared-grid-2：两图并排 ── */
.lared-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.lared-grid-2 img {
    aspect-ratio: 3 / 2;
}

/* ── lared-grid-3：三图等宽 ── */
.lared-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.lared-grid-3 img {
    aspect-ratio: 1 / 1;
}

/* ── lared-grid-4：四图方阵 2×2 ── */
.lared-grid-4 {
    grid-template-columns: 1fr 1fr;
}

.lared-grid-4 img {
    aspect-ratio: 1 / 1;
}

/* ── 移动端响应式 ── */
@media (max-width: 640px) {
    .lared-grid-2,
    .lared-grid-4 {
        gap: 4px;
    }

    .lared-grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    /* 三图模式移动端：前两张并排，第三张独占一行 */
    .lared-grid-3 > :nth-child(3),
    .lared-grid-3 > figure:nth-child(3) {
        grid-column: 1 / -1;
    }

    .lared-grid-3 > :nth-child(3) img,
    .lared-grid-3 > figure:nth-child(3) img {
        aspect-ratio: 16 / 9;
    }
}

/* ===========================================
   Header 登录功能样式
   =========================================== */

/* 登录按钮 */
.header-login-btn {
    transition: all 0.2s ease;
}

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

/* 登录下拉框 */
.header-login-wrapper {
    position: relative;
}

.header-login-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    padding: 20px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.header-login-dropdown.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉框箭头 */
.header-login-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #d9d9d9;
    border-top: 1px solid #d9d9d9;
    transform: rotate(45deg);
}

/* 登录表单输入框 */
.header-login-dropdown input[type="text"],
.header-login-dropdown input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    color: #202020;
    background: #fff;
    transition: border-color 0.2s ease;
}

.header-login-dropdown input[type="text"]:focus,
.header-login-dropdown input[type="password"]:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* 登录按钮 */
.header-login-dropdown button[type="submit"] {
    width: 100%;
    padding: 10px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.header-login-dropdown button[type="submit"]:hover {
    opacity: 0.9;
}

/* 用户头像 */
.header-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border: 1px solid var(--color-accent);
    background: #fff;
    transition: opacity 0.2s ease;
}

.header-user-avatar:hover {
    opacity: 0.8;
}

.header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 点击外部关闭下拉框 */
.header-login-wrapper.is-open .header-login-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===========================================
   侧边栏标签多色效果
   =========================================== */

/* 基础标签样式 */
.home-main-sidebar-tags a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* 红色标签 */
.home-main-sidebar-tags a.tag-red {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.2);
}

.home-main-sidebar-tags a.tag-red:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

/* 橙色标签 */
.home-main-sidebar-tags a.tag-orange {
    color: #ea580c;
    background: rgba(234, 88, 12, 0.08);
    border-color: rgba(234, 88, 12, 0.2);
}

.home-main-sidebar-tags a.tag-orange:hover {
    background: #ea580c;
    color: #fff;
    border-color: #ea580c;
}

/* 黄色标签 */
.home-main-sidebar-tags a.tag-yellow {
    color: #ca8a04;
    background: rgba(202, 138, 4, 0.08);
    border-color: rgba(202, 138, 4, 0.2);
}

.home-main-sidebar-tags a.tag-yellow:hover {
    background: #ca8a04;
    color: #fff;
    border-color: #ca8a04;
}

/* 绿色标签 */
.home-main-sidebar-tags a.tag-green {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.2);
}

.home-main-sidebar-tags a.tag-green:hover {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

/* 青色标签 */
.home-main-sidebar-tags a.tag-cyan {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.2);
}

.home-main-sidebar-tags a.tag-cyan:hover {
    background: #0891b2;
    color: #fff;
    border-color: #0891b2;
}

/* 蓝色标签 */
.home-main-sidebar-tags a.tag-blue {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

.home-main-sidebar-tags a.tag-blue:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* 紫色标签 */
.home-main-sidebar-tags a.tag-purple {
    color: #9333ea;
    background: rgba(147, 51, 234, 0.08);
    border-color: rgba(147, 51, 234, 0.2);
}

.home-main-sidebar-tags a.tag-purple:hover {
    background: #9333ea;
    color: #fff;
    border-color: #9333ea;
}

/* 粉色标签 */
.home-main-sidebar-tags a.tag-pink {
    color: #db2777;
    background: rgba(219, 39, 119, 0.08);
    border-color: rgba(219, 39, 119, 0.2);
}

.home-main-sidebar-tags a.tag-pink:hover {
    background: #db2777;
    color: #fff;
    border-color: #db2777;
}

/* ===========================================
   Header 按钮统一样式
   =========================================== */

/* 搜索、RSS、登录按钮统一尺寸和样式 - 40px */
.rss-btn,
.header-login-btn {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* RSS 按钮 - 白色背景红色图标 */
.rss-btn {
    background: #fff !important;
    color: var(--color-accent, #f53004) !important;
    border: 1px solid var(--color-accent, #f53004) !important;
}

.rss-btn:hover {
    background: var(--color-accent, #f53004) !important;
    color: #fff !important;
}

.rss-btn i {
    font-size: 15px;
    line-height: 1;
}

/* 登录按钮 - 白色背景红色图标 */
.header-login-btn {
    background: #fff !important;
    color: var(--color-accent, #f53004) !important;
    border: 1px solid var(--color-accent, #f53004) !important;
    border-radius: 0 !important;
}

.header-login-btn:hover {
    background: var(--color-accent, #f53004) !important;
    color: #fff !important;
}

.header-login-btn i {
    font-size: 15px;
    line-height: 1;
}

/* 用户头像 - 与按钮尺寸一致 40px */
.header-user-avatar {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--color-accent, #f53004) !important;
    background: #fff !important;
    overflow: hidden;
}

.header-user-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* 搜索表单 - 新样式：相对定位容器 */
.header-search-form {
    position: relative;
    display: block;
    width: 240px;
    height: 40px;
}

.header-search-form input[type="search"] {
    width: 100% !important;
    height: 40px !important;
    padding: 0 44px 0 36px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 0 !important;
    background: #fff !important;
    font-size: 14px;
    color: #202020;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.header-search-form input[type="search"]::placeholder {
    color: #8a8a8a !important;
    opacity: 1 !important;
}

.header-search-form input[type="search"]:focus {
    border-color: var(--color-accent, #f53004) !important;
    box-shadow: 0 0 0 2px rgba(245, 48, 4, 0.15);
}

/* 搜索图标 */
.header-search-form .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.header-search-form .search-icon svg {
    width: 16px;
    height: 16px;
    color: #8a8a8a;
}

/* 搜索提交按钮 */
.header-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px !important;
    height: 40px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-left: 1px solid #d9d9d9 !important;
    border-radius: 0 !important;
    background: var(--color-accent, #f53004) !important;
    color: #fff !important;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-appearance: none;
    appearance: none;
    padding: 0 !important;
}

.header-search-submit:hover {
    background: #d92a00 !important;
}

.header-search-submit kbd {
    display: inline;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none !important;
}

/* ===========================================
   搜索触发按钮（已弃用，保留快捷键提示）
   =========================================== */

.header-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--color-accent, #f53004);
    border-radius: 0;
    background: var(--color-accent, #f53004);
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    line-height: 1;
}

.header-search-trigger:hover {
    background: #d92a00;
    border-color: #d92a00;
    box-shadow: 0 0 0 1px rgba(245, 48, 4, 0.15);
}

.header-search-trigger-icon {
    font-size: 13px;
    color: #ffffff;
}

.header-search-trigger-text {
    color: #ffffff;
}

.header-search-trigger-kbd {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 5px;
    border: 1px solid #d4d4d4;
    border-radius: 0;
    background: #f5f5f5;
    color: #8a8a8a;
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
}

/* ===========================================
   搜索模态框
   =========================================== */

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.search-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.search-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.search-modal-container {
    position: relative;
    width: 100%;
    max-width: 580px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 16px 70px rgba(0, 0, 0, 0.15);
    transform: translateY(-12px);
    transition: transform 0.2s;
    overflow: hidden;
}

.search-modal.is-open .search-modal-container {
    transform: translateY(0);
}

.search-modal-header {
    border-bottom: 1px solid #e5e5e5;
}

.search-modal-form {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 54px;
    gap: 10px;
}

.search-modal-icon {
    font-size: 16px;
    color: #8a8a8a;
    flex-shrink: 0;
}

.search-modal-input {
    flex: 1;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: 15px;
    color: #202020;
    outline: none;
}

.search-modal-input::placeholder {
    color: #8a8a8a;
}

.search-modal-esc {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 6px;
    border: 1px solid #d4d4d4;
    border-radius: 0;
    background: #f5f5f5;
    color: #8a8a8a;
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    flex-shrink: 0;
    cursor: pointer;
}

.search-modal-body {
    max-height: 360px;
    overflow-y: auto;
    padding: 12px 16px;
}

.search-modal-hint {
    text-align: center;
    padding: 24px 0;
}

.search-modal-hint p {
    margin: 0;
    color: #8a8a8a;
    font-size: 14px;
}

.search-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    color: #8a8a8a;
    font-size: 14px;
    gap: 8px;
}

.search-modal-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-modal-results li {
    margin: 0;
}

.search-modal-result-item {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #202020;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.search-modal-result-item:hover {
    background: #f5f5f5;
    border-color: #e5e5e5;
}

.search-modal-result-title {
    font-size: 14px;
    font-weight: 500;
    color: #202020;
    margin-bottom: 4px;
    line-height: 1.4;
}

.search-modal-result-title mark {
    background: rgba(245, 48, 4, 0.12);
    color: var(--color-accent, #f53004);
    padding: 0 1px;
}

.search-modal-result-excerpt {
    font-size: 12px;
    color: #8a8a8a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-modal-result-excerpt mark {
    background: rgba(245, 48, 4, 0.12);
    color: var(--color-accent, #f53004);
    padding: 0 1px;
}

.search-modal-empty {
    text-align: center;
    padding: 24px 0;
    color: #8a8a8a;
    font-size: 14px;
}

/* 搜索模态框移动端适配 */
@media (max-width: 640px) {
    .search-modal {
        padding-top: 60px;
    }
    .search-modal-container {
        max-width: calc(100% - 32px);
    }
    .header-search-trigger-text {
        display: none;
    }
    .header-search-trigger-kbd {
        display: none;
    }
}

/* ===========================================
   下载按钮短代码样式
   =========================================== */

.lared-download-box {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.lared-download-box:hover {
    box-shadow: 0 4px 16px rgba(245, 48, 4, 0.08);
}

/* 头部区域 */
.dl-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

/* 图标 */
.dl-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent, #f53004);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dl-icon i {
    font-size: 24px;
    color: #fff;
}

/* 文件信息 */
.dl-info {
    flex: 1;
    min-width: 0;
}

.dl-name {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-title, #21201d);
    line-height: 1.4;
}

/* 标签组 */
.dl-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dl-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.dl-format {
    background: var(--color-accent, #f53004);
    color: #fff;
}

.dl-version {
    background: #e0e7ff;
    color: #4338ca;
}

.dl-size {
    background: #dcfce7;
    color: #166534;
}

/* 备注 */
.dl-note {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 16px;
}

.dl-note i {
    color: #f59e0b;
}

/* 下载按钮 */
.dl-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--color-accent, #f53004);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dl-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 48, 4, 0.25);
}

/* 下载按钮图标 */
.dl-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dl-btn-icon i {
    color: #fff !important;
}

/* 下载按钮文字 */
.dl-btn-text {
    color: #fff !important;
}

/* 错误提示 */
.download-error {
    padding: 12px 16px;
    background: #fee2e2;
    border-left: 3px solid #dc2626;
    color: #991b1b;
    font-size: 14px;
    margin: 16px 0;
    border-radius: 0 4px 4px 0;
}

/* 响应式 */
@media (max-width: 480px) {
    .lared-download-box {
        padding: 16px;
    }
    
    .dl-icon {
        width: 40px;
        height: 40px;
    }
    
    .dl-icon i {
        font-size: 20px;
    }
    
    .dl-name {
        font-size: 15px;
    }
}

/* ===========================================
   内联代码样式 - 淡红背景深红字
   =========================================== */

/* 内联代码：淡红背景 + 深红字 */
.single-article-content code:not(pre code),
.home-article-body code:not(pre code),
.page-content code:not(pre code) {
    color: #c41e3a !important;                    /* 深红色文字 */
    background: rgba(245, 48, 4, 0.08) !important; /* 淡红色背景 */
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-family: var(--font-code) !important;
    font-size: 0.9em !important;
    font-weight: 500 !important;
}

/* pre 代码块中的 code 保持原样 - 排除行号代码块 */
.single-article-content pre:not(.line-numbers) code,
.home-article-body pre:not(.line-numbers) code,
.page-content pre:not(.line-numbers) code,
.lared-prism-pre:not(.line-numbers) code {
    color: inherit !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: inherit !important;
}

/* 有行号的代码块内的 code 标签 */
pre.line-numbers > code,
.lared-prism-pre.line-numbers > code {
    color: inherit !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-size: inherit !important;
    /* 不设置 padding/margin，由行号样式控制 */
}

/* ===========================================
   特殊红色代码样式 - 用于 UUID/密钥等
   =========================================== */

/* 方式1: 使用 class */
.single-article-content code.code-red,
.home-article-body code.code-red,
.page-content code.code-red,
.single-article-content code.red,
.home-article-body code.red,
.page-content code.red {
    color: #fff !important;
    background: var(--color-accent, #f53004) !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-family: var(--font-code) !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

/* 方式2: 短代码生成的红色代码 */
.lared-red-code {
    display: inline-block;
    color: #fff !important;
    background: var(--color-accent, #f53004) !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-family: var(--font-code) !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

/* ===========================================
   代码块行号样式 - 删除分割线，优化间距
   =========================================== */

/* 
 * 代码块行号样式 - 本地实现，不依赖外链
 * ===========================================
 */

/* 代码块容器 - 给行号留出空间 */
body pre.line-numbers,
body .lared-prism-pre.line-numbers {
    position: relative !important;
    padding-left: 3.5em !important;  /* 行号区域宽度 */
    margin-left: 0 !important;
}

/* 代码内容 - 统一行高 */
body pre.line-numbers > code,
body .lared-prism-pre.line-numbers > code {
    display: block !important;
    margin-left: 0 !important;
    padding-left: 0.5em !important;
    line-height: 1.6 !important;  /* 固定行高 */
}

/* 行号容器 - 紧贴左侧 */
body pre.line-numbers .line-numbers-rows,
body .lared-prism-pre.line-numbers .line-numbers-rows {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 3em !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-right: 1px solid rgba(255,255,255,0.1) !important;
    background: rgba(255,255,255,0.02) !important;
    pointer-events: none !important;
    user-select: none !important;
}

/* 有标题栏的代码块行号位置 */
body .lared-prism-pre.line-numbers .line-numbers-rows {
    top: 40px !important;
    height: calc(100% - 40px) !important;
}

/* 行号区域内的每一行 - 与代码行高保持一致 */
body pre.line-numbers .line-numbers-rows > span,
body .lared-prism-pre.line-numbers .line-numbers-rows > span {
    display: block !important;
    counter-increment: linenumber !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 1.6em !important;  /* 与代码行高一致 */
    line-height: 1.6 !important;  /* 与代码行高一致 */
}

/* 行号数字 - 右对齐，与代码行精确对齐 */
body pre.line-numbers .line-numbers-rows > span::before,
body .lared-prism-pre.line-numbers .line-numbers-rows > span::before {
    display: block !important;
    content: counter(linenumber) !important;
    color: #666 !important;
    text-align: right !important;
    padding-right: 0.8em !important;
    padding-left: 0 !important;
    font-size: 0.85em !important;
    line-height: 1.6em !important;  /* 与行高一致 */
    height: 1.6em !important;
}

/* ===========================================
   文章内图片 - 自适应宽度，不超出容器
   =========================================== */
.single-article-content img:not(.img-loading-target),
.page-content img:not(.img-loading-target),
.home-article-body img:not(.img-loading-target),
.entry-content img:not(.img-loading-target) {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================================
   文章内链接样式 - 红色字体+icon，无下划线
   =========================================== */

/* 文章内容链接 - 高优先级覆盖 Tailwind */
.single-article-content a,
.page-content a,
.home-article-body a,
.entry-content a,
.prose a,
[class*="prose"] a {
    color: var(--color-accent, #f53004) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.single-article-content a:hover,
.page-content a:hover,
.home-article-body a:hover,
.entry-content a:hover {
    opacity: 0.85;
}

/* 链接后面的 icon - 高优先级，紧贴文字 */
.single-article-content a .lared-inline-link-icon,
.page-content a .lared-inline-link-icon,
.home-article-body a .lared-inline-link-icon,
.entry-content a .lared-inline-link-icon,
.prose a .lared-inline-link-icon,
[class*="prose"] a .lared-inline-link-icon {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1px !important;
    font-size: 0.75em !important;
    color: var(--color-accent, #f53004) !important;
    vertical-align: middle;
}


/* ===========================================
   隐藏 code 标签内的反引号（备用方案）
   =========================================== */

/* 方案1: 通过 CSS 隐藏 code 标签内的反引号 */
/* 使用 text-shadow 和 clip-path 隐藏第一个和最后一个字符（如果是反引号） */
.single-article-content code:not(pre code),
.page-content code:not(pre code),
.home-article-body code:not(pre code) {
    /* 确保伪元素不会显示任何内容 */
    quotes: none;
}

/* 直接选择以反引号开头或结尾的 code 标签 */
.single-article-content code:not(pre code)::before,
.page-content code:not(pre code)::before,
.home-article-body code:not(pre code)::before,
.single-article-content code:not(pre code)::after,
.page-content code:not(pre code)::after,
.home-article-body code:not(pre code)::after {
    content: none !important;
    display: none !important;
}


/* ===========================================
   Footer RSS 和登录功能样式 - 高优先级覆盖
   =========================================== */

/* Footer 所有图标按钮统一基础样式 */
.site-footer-icons .site-footer-icon-link,
.site-footer-icons .rss-btn,
.site-footer-icons .footer-login-btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    box-sizing: border-box !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 0 !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #777777 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* 图标大小统一 */
.site-footer-icons .site-footer-icon-link i,
.site-footer-icons .rss-btn i,
.site-footer-icons .footer-login-btn i {
    font-size: 14px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 统一悬停效果 */
.site-footer-icons .site-footer-icon-link:hover,
.site-footer-icons .rss-btn:hover,
.site-footer-icons .footer-login-btn:hover {
    border-color: var(--color-accent, #f53004) !important;
    color: var(--color-accent, #f53004) !important;
    background: #fff !important;
    background-color: #fff !important;
    transform: scale(1.12) !important;
}

/* 确保所有图标容器尺寸一致 */
.site-footer-icons a.site-footer-icon-link,
.site-footer-icons button.site-footer-icon-link {
    vertical-align: middle !important;
}

/* Footer 登录下拉框 */
.footer-login-wrapper {
    position: relative;
}

.footer-login-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    width: 280px;
    padding: 20px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.footer-login-dropdown.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉框箭头（向上） */
.footer-login-dropdown::before {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
    transform: rotate(45deg);
}

/* 登录表单输入框 */
.footer-login-dropdown input[type="text"],
.footer-login-dropdown input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    color: #202020;
    background: #fff;
    transition: border-color 0.2s ease;
}

.footer-login-dropdown input[type="text"]:focus,
.footer-login-dropdown input[type="password"]:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* 登录按钮 */
.footer-login-dropdown button[type="submit"] {
    width: 100%;
    padding: 10px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.footer-login-dropdown button[type="submit"]:hover {
    opacity: 0.9;
}

/* Footer 用户头像 - 统一使用灰色边框 */
.footer-user-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    border: 1px solid #d9d9d9 !important;
    background: #fff !important;
    background-color: #fff !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.footer-user-avatar:hover {
    border-color: var(--color-accent, #f53004) !important;
    transform: scale(1.12) !important;
}

.footer-user-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}


/* ===========================================
   Memos 发布框样式
   =========================================== */

.memos-publish-box {
    margin-bottom: 24px;
    border: 1px solid #d9d9d9;
    background: #fff;
}

.memos-publish-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #d9d9d9;
    background: #fafafa;
}

.memos-publish-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.memos-publish-header h3 i {
    color: var(--color-accent);
}

.memos-publish-form {
    padding: 16px;
}

.memos-publish-textarea-wrap {
    margin-bottom: 12px;
}

.memos-publish-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.memos-publish-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(245, 48, 4, 0.1);
}

.memos-publish-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.memos-publish-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.memos-publish-label {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.memos-publish-label i {
    color: var(--color-accent);
}

.memos-publish-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.memos-publish-visibility {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.memos-publish-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 16px;
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: #f53004;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.memos-publish-submit:hover {
    opacity: 0.9;
}

.memos-publish-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.memos-publish-status {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}

.memos-publish-status.is-success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.memos-publish-status.is-error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* ===========================================
   评论者等级徽章样式
   =========================================== */

.comment-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.comment-level-badge i {
    font-size: 11px;
}

.comment-level-badge-simple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 36px;
    height: 20px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.comment-level-badge-simple i {
    font-size: 10px;
}

.comment-author-name {
    font-weight: 600;
    color: #f53004 !important;
    color: var(--color-accent, #f53004) !important;
}

/* 响应式 */
@media (max-width: 600px) {
    .memos-publish-tools {
        flex-direction: column;
        align-items: stretch;
    }
    
    .memos-publish-tags {
        width: 100%;
    }
    
    .memos-publish-actions {
        justify-content: flex-end;
    }
}


/* ===========================================
   Memos 筛选加载样式
   =========================================== */

/* Loading 状态 */
.memos-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    margin-bottom: 20px;
}

.memos-loading-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--color-accent, #f53004);
    border-radius: 50%;
    animation: memos-spin 1s linear infinite;
}

@keyframes memos-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 筛选标题 */
.memos-filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: #f5f5f5;
    border-left: 3px solid var(--color-accent);
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.memos-filter-keyword {
    color: var(--color-accent);
    font-weight: 600;
}

.memos-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s ease;
}

.memos-filter-clear:hover {
    color: var(--color-accent);
}

/* 可点击的关键词 */
.memos-sidebar-tags [data-keyword],
.memos-card-keyword[data-keyword] {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.memos-sidebar-tags [data-keyword]:hover,
.memos-card-keyword[data-keyword]:hover {
    opacity: 0.8;
}

/* 可点击的日历日期 */
.memos-calendar-day.has-memos {
    cursor: pointer;
}

.memos-calendar-day.has-memos:hover {
    background: rgba(245, 48, 4, 0.1);
}

/* 空状态提示 */
.memos-empty-day,
.memos-empty-keyword {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 加载时的遮罩效果 */
.memos-grid.is-loading {
    opacity: 0.5;
    pointer-events: none;
}


/* ===========================================
   Memos 发布框关键词样式（新）
   =========================================== */

.memos-publish-tags {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: nowrap;
    overflow: hidden;
}

.memos-publish-tag-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
}

.memos-publish-tag-list::-webkit-scrollbar {
    display: none;  /* Chrome/Safari */
}

.memos-publish-tag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #555;
    font-size: 13px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.memos-publish-tag-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: #fff5f5;
}

/* 移动端表情面板响应式 */
@media (max-width: 640px) {
    .lared-emoji-panel {
        width: calc(100vw - 40px);
        max-width: 340px;
        grid-template-columns: repeat(7, 1fr);
        max-height: 200px;
        left: -10px;
    }

    .lared-emoji-item img {
        width: 24px;
        height: 24px;
    }
}
