/* ==================== Hexo 主题自定义样式 ==================== */

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #4a4a4a;
}

/* 行数截断 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 主题色变量 */
:root {
    --hexo-theme-color: #928CEE;
}

/*
 * 固定顶栏 h-16：无 Banner 的页面 main 使用 pt-16 以免主栏/侧栏被挡。
 * 首页整屏 Hero、文章 PostHero 已在 headerSlot 占满首段视觉，主区上内边距恢复为与原 py-8 一致的 2rem。
 */
#layout-header-slot:has(.layout-header-slot-bleed) + #wrapper {
    padding-top: 2rem;
}

/* ==================== Notion 颜色变量（对齐 NotionNext styles/notion.css） ==================== */
:root {
    --notion-red: #e03e3e;
    --notion-pink: #ad1a72;
    --notion-blue: #0b6e99;
    --notion-purple: #6940a5;
    --notion-teal: #4d6461;
    --notion-yellow: #dfab01;
    --notion-orange: #d9730d;
    --notion-brown: #64473a;
    --notion-gray: #9b9a97;
    --notion-default: inherit;

    --notion-red_background: #fbe4e4;
    --notion-pink_background: #f4dfeb;
    --notion-blue_background: #ddebf1;
    --notion-purple_background: #eae4f2;
    --notion-teal_background: #ddedea;
    --notion-yellow_background: #fbf3db;
    --notion-orange_background: #faebdd;
    --notion-brown_background: #e9e5e3;
    --notion-gray_background: #ebeced;
}

/* Notion 文字颜色 */
.notion-gray { color: var(--notion-gray); }
.notion-brown { color: var(--notion-brown); }
.notion-orange { color: var(--notion-orange); }
.notion-yellow { color: var(--notion-yellow); }
.notion-teal { color: var(--notion-teal); }
.notion-purple { color: var(--notion-purple); }
.notion-blue { color: var(--notion-blue); }
.notion-pink { color: var(--notion-pink); }
.notion-red { color: var(--notion-red); }

/* Notion 背景颜色 */
.notion-gray_background { background-color: var(--notion-gray_background); }
.notion-brown_background { background-color: var(--notion-brown_background); }
.notion-orange_background { background-color: var(--notion-orange_background); }
.notion-yellow_background { background-color: var(--notion-yellow_background); }
.notion-teal_background { background-color: var(--notion-teal_background); }
.notion-blue_background { background-color: var(--notion-blue_background); }
.notion-purple_background { background-color: var(--notion-purple_background); }
.notion-pink_background { background-color: var(--notion-pink_background); }
.notion-red_background { background-color: var(--notion-red_background); }

/* 背景色块统一圆角和内边距 */
.notion-gray_background,
.notion-brown_background,
.notion-orange_background,
.notion-yellow_background,
.notion-green_background,
.notion-teal_background,
.notion-blue_background,
.notion-purple_background,
.notion-pink_background,
.notion-red_background {
    padding: 0.1em 0.3em;
    border-radius: 3px;
}

/* 深色模式下有背景色的文字保持可读性 */
.dark .notion-gray_background,
.dark .notion-brown_background,
.dark .notion-orange_background,
.dark .notion-yellow_background,
.dark .notion-green_background,
.dark .notion-teal_background,
.dark .notion-blue_background,
.dark .notion-purple_background,
.dark .notion-pink_background,
.dark .notion-red_background {
    /*color: #1f2937;*/
}

/* ==================== Notion 标签/分类徽章颜色（对齐 Notion select/multi_select 选项样式） ==================== */
.notion-tag-default { background-color: rgba(227, 226, 224, 0.5); color: #55534e; }
.notion-tag-gray    { background-color: rgba(227, 226, 224, 0.5); color: #787774; }
.notion-tag-brown   { background-color: rgba(238, 224, 218, 0.5); color: #64473a; }
.notion-tag-orange  { background-color: rgba(250, 222, 201, 0.5); color: #d9730d; }
.notion-tag-yellow  { background-color: rgba(253, 236, 200, 0.5); color: #cb912f; }
.notion-tag-green   { background-color: rgba(219, 237, 219, 0.5); color: #0f7b6c; }
.notion-tag-teal    { background-color: rgba(219, 237, 219, 0.5); color: #0f7b6c; }
.notion-tag-blue    { background-color: rgba(211, 229, 239, 0.5); color: #0b6e99; }
.notion-tag-purple  { background-color: rgba(232, 222, 238, 0.5); color: #6940a5; }
.notion-tag-pink    { background-color: rgba(245, 224, 233, 0.5); color: #ad1a72; }
.notion-tag-red     { background-color: rgba(255, 226, 221, 0.5); color: #e03e3e; }

.dark .notion-tag-default { background-color: rgba(90, 90, 90, 0.35); color: #b0b0b0; }
.dark .notion-tag-gray    { background-color: rgba(90, 90, 90, 0.35); color: #9b9a97; }
.dark .notion-tag-brown   { background-color: rgba(100, 71, 58, 0.35); color: #c4a389; }
.dark .notion-tag-orange  { background-color: rgba(217, 115, 13, 0.25); color: #e8a56c; }
.dark .notion-tag-yellow  { background-color: rgba(203, 145, 47, 0.25); color: #d4b561; }
.dark .notion-tag-green   { background-color: rgba(15, 123, 108, 0.25); color: #5cbdad; }
.dark .notion-tag-teal    { background-color: rgba(15, 123, 108, 0.25); color: #5cbdad; }
.dark .notion-tag-blue    { background-color: rgba(11, 110, 153, 0.25); color: #6cb6d4; }
.dark .notion-tag-purple  { background-color: rgba(105, 64, 165, 0.25); color: #b0a0d0; }
.dark .notion-tag-pink    { background-color: rgba(173, 26, 114, 0.25); color: #d07eb5; }
.dark .notion-tag-red     { background-color: rgba(224, 62, 62, 0.25); color: #e88888; }

/* 标签/分类徽章通用样式 */
.notion-tag-default, .notion-tag-gray, .notion-tag-brown, .notion-tag-orange,
.notion-tag-yellow, .notion-tag-green, .notion-tag-teal, .notion-tag-blue,
.notion-tag-purple, .notion-tag-pink, .notion-tag-red {
    transition: filter 0.2s, opacity 0.2s;
}
.notion-tag-default:hover, .notion-tag-gray:hover, .notion-tag-brown:hover, .notion-tag-orange:hover,
.notion-tag-yellow:hover, .notion-tag-green:hover, .notion-tag-teal:hover, .notion-tag-blue:hover,
.notion-tag-purple:hover, .notion-tag-pink:hover, .notion-tag-red:hover {
    filter: brightness(0.92);
}
.dark .notion-tag-default:hover, .dark .notion-tag-gray:hover, .dark .notion-tag-brown:hover, .dark .notion-tag-orange:hover,
.dark .notion-tag-yellow:hover, .dark .notion-tag-green:hover, .dark .notion-tag-teal:hover, .dark .notion-tag-blue:hover,
.dark .notion-tag-purple:hover, .dark .notion-tag-pink:hover, .dark .notion-tag-red:hover {
    filter: brightness(1.2);
}

/* ==================== Notion 内容渲染样式 ==================== */

.notion-page {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    word-wrap: break-word;
}
.dark .notion-page {
    color: #d1d5db;
}

.notion-page h1 {
    font-size: 2em;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.3em;
}
.dark .notion-page h1 {
    border-bottom-color: #374151;
}

.notion-page h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

.notion-page h3 {
    font-size: 1.25em;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.notion-page p {
    /*margin-bottom: 0.8em;*/
}

/* ==================== 空行/占位（对齐 NotionNext .notion-blank） ==================== */
.notion-blank {
    width: 100%;
    min-height: 1rem;
    padding: 3px 2px;
    margin-top: 1px;
    margin-bottom: 1px;
}

/* ==================== 列表样式（对齐 NotionNext styles/notion.css） ==================== */
.notion-page .notion-list-numbered {
    list-style-type: decimal;
    padding-inline-start: 1.6em;
    margin-top: 0;
    margin-bottom: 0.8em;
}
.notion-page .notion-list-numbered .notion-list-numbered {
    list-style-type: lower-alpha;
    margin-bottom: 0;
}
.notion-page .notion-list-numbered .notion-list-numbered .notion-list-numbered {
    list-style-type: lower-roman;
}

.notion-page .notion-list-disc {
    list-style-type: disc;
    padding-inline-start: 1.6em;
    margin-top: 0;
    margin-bottom: 0.8em;
}
.notion-page .notion-list-disc .notion-list-disc {
    list-style-type: circle;
    margin-bottom: 0;
}
.notion-page .notion-list-disc .notion-list-disc .notion-list-disc {
    list-style-type: square;
}

.notion-page .notion-list-numbered li,
.notion-page .notion-list-disc li {
    padding-left: 0.2em;
    margin-bottom: 0.3em;
}

/* 兼容旧式列表类 */
.notion-page ul, .notion-page ol {
    padding-left: 1.5em;
    margin-bottom: 0.8em;
}

.notion-page li {
    margin-bottom: 0.3em;
}

/* ==================== 引用块 ==================== */
.notion-page blockquote {
    border-left: 4px solid #928CEE;
    padding: 0.5em 1em;
    margin: 1em 0;
    background: #f9fafb;
    border-radius: 0 4px 4px 0;
}
.dark .notion-page blockquote {
    background: #1f2937;
    border-left-color: #928CEE;
}

/* ==================== 代码块（对齐 NotionNext PrismMac） ==================== */
.notion-code {
    margin: 1em 0;
    border-radius: 8px;
    overflow: hidden;
    background: #1e1e2e;
    color: #cdd6f4;
}
.dark .notion-code {
    background: #111827;
    color: #e5e7eb;
}

.notion-code-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #181825;
    border-bottom: 1px solid #313244;
    font-size: 13px;
    color: #a6adc8;
    user-select: none;
}
.dark .notion-code-header {
    background: #0d1117;
    border-bottom-color: #21262d;
    color: #8b949e;
}

/* Mac 风格三点 */
.notion-code-mac-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
}
.notion-code-mac-dots span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.notion-code-mac-dots span:nth-child(1) { background: #ff5f56; }
.notion-code-mac-dots span:nth-child(2) { background: #ffbd2e; }
.notion-code-mac-dots span:nth-child(3) { background: #27c93f; }

.notion-code-language {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notion-code-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}
.notion-code-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}
.notion-code-copy.copied {
    color: #27c93f;
}

.notion-code-pre {
    margin: 0 !important;
    padding: 1em 1.2em !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.6;
}
.notion-code-pre code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ==================== 行内代码 ==================== */
.notion-page code,
.notion-inline-code {
    background: #f3f4f6;
    color: #ef4444;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}
.dark .notion-page code,
.dark .notion-inline-code {
    background: #374151;
    color: #fbbf24;
}
.notion-code-pre code,
.notion-page pre code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
}

/* ==================== 图片/资源 ==================== */
.notion-asset-wrapper {
    margin: 1em 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.notion-page img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.notion-asset-caption {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.5em;
    padding: 0 1em;
}

/* ==================== 视频嵌入 ==================== */
.notion-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 8px;
    overflow: hidden;
}
.notion-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==================== 文件块（对齐 NotionNext .notion-file） ==================== */
.notion-file {
    width: 100%;
    margin: 0.5em 0;
}

.notion-file-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    color: inherit;
    text-decoration: none !important;
    gap: 10px;
}
.dark .notion-file-link {
    border-color: #374151;
}
.notion-file-link:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}
.dark .notion-file-link:hover {
    background: #1f2937;
    border-color: #3b82f6;
}

.notion-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: #6b7280;
    flex-shrink: 0;
}
.notion-file-link:hover .notion-file-icon {
    color: #3b82f6;
}

.notion-file-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.notion-file-size {
    white-space: nowrap;
    font-size: 12px;
    line-height: 16px;
    color: #9ca3af;
    flex-shrink: 0;
}

/* ==================== 链接 ==================== */
.notion-page a {
    color: #3b82f6;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.notion-page a:hover {
    color: #1d4ed8;
}

.notion-page-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #3b82f6;
}

/* ==================== 书签 ==================== */
.notion-bookmark {
    display: block;
    margin: 0.75em 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.2s;
}
.dark .notion-bookmark {
    border-color: #374151;
}
.notion-bookmark:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
.dark .notion-bookmark:hover {
    background: #1f2937;
    border-color: #4b5563;
}

.notion-bookmark-content {
    padding: 12px 14px;
}

.notion-bookmark-title {
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dark .notion-bookmark-title {
    color: #e5e7eb;
}

.notion-bookmark-description {
    font-size: 0.8em;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.notion-bookmark-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75em;
    color: #9ca3af;
    overflow: hidden;
}
.notion-bookmark-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notion-bookmark-link-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ==================== 表格 ==================== */
.notion-page table,
.notion-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.notion-page th, .notion-page td {
    border: 1px solid #e5e7eb;
    padding: 0.5em 0.75em;
    text-align: left;
}
.dark .notion-page th, .dark .notion-page td {
    border-color: #374151;
}
.notion-page th {
    background: #f9fafb;
    font-weight: 600;
}
.dark .notion-page th {
    background: #1f2937;
}

/* ==================== 分割线 ==================== */
.notion-page hr,
.notion-hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2em 0;
}
.dark .notion-page hr,
.dark .notion-hr {
    border-top-color: #374151;
}

/* ==================== 待办列表 ==================== */
.notion-page .notion-to-do {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    margin-bottom: 0.3em;
}
.notion-page .notion-to-do input[type="checkbox"] {
    margin-top: 0.35em;
}

/* ==================== Callout ==================== */
.notion-page .notion-callout {
    display: flex;
    padding: 1em;
    border-radius: 8px;
    /*background: #f9fafb;*/
    margin: 1em 0;
    gap: 0.75em;
}
.dark .notion-page .notion-callout {
    background: #2d2d2d;
}
.notion-callout-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    line-height: 1;
}
.notion-callout-text {
    flex: 1;
    min-width: 0;
}

/* ==================== Toggle ==================== */
.notion-page .notion-toggle {
    margin: 0.5em 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.5em 1em;
}
.dark .notion-page .notion-toggle {
    border-color: #374151;
}
.notion-page .notion-toggle summary {
    cursor: pointer;
    font-weight: 500;
}
.notion-toggle-content {
    padding-top: 0.5em;
}

/* ==================== 公式 ==================== */
.notion-equation {
    text-align: center;
    margin: 1em 0;
    padding: 0.5em;
}

/* ==================== 列布局（对齐 NotionNext） ==================== */
.notion-column-list {
    display: flex;
    gap: 16px;
    margin: 0.5em 0;
}
.notion-column {
    flex-shrink: 0;
    overflow: hidden;
}
@media (max-width: 768px) {
    .notion-column-list {
        flex-direction: column;
    }
    .notion-column {
        width: 100% !important;
    }
}

/* ==================== Table of Contents ==================== */
.notion-table-of-contents {
    margin: 1em 0;
}

/* ==================== 内联日期/公式 ==================== */
.notion-inline-date {
    color: var(--notion-gray);
    background: var(--notion-gray_background);
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-size: 0.9em;
}
.notion-inline-equation {
    font-family: 'KaTeX_Math', 'Times New Roman', serif;
    padding: 0 0.15em;
}

/* ==================== Toggle Heading ==================== */
.notion-toggle-heading {
    border: none;
    padding: 0;
    margin: 0;
}
.notion-toggle-heading summary {
    cursor: pointer;
    list-style: revert;
}
.notion-toggle-heading .notion-toggle-content {
    padding-left: 1.2em;
}

/* ==================== 通用 Tooltip 组件 ==================== */
.hexo-tooltip {
    position: relative;
}

.hexo-tooltip::before,
.hexo-tooltip::after {
    position: absolute;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 80;
}

.hexo-tooltip::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 10px);
    background: #111827;
    color: #f9fafb;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.24);
}

.hexo-tooltip::after {
    content: "";
    bottom: calc(100% + 4px);
    border-width: 6px 5px 0 5px;
    border-style: solid;
    border-color: #111827 transparent transparent transparent;
}

.hexo-tooltip:hover::before,
.hexo-tooltip:hover::after,
.hexo-tooltip:focus-visible::before,
.hexo-tooltip:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 通过 data-tooltip-placement 控制提示方向 */
.hexo-tooltip[data-tooltip-placement="bottom"]::before {
    top: calc(100% + 10px);
    bottom: auto;
}
.hexo-tooltip[data-tooltip-placement="bottom"]::after {
    top: calc(100% + 4px);
    bottom: auto;
    border-width: 0 5px 6px 5px;
    border-color: transparent transparent #111827 transparent;
}

.hexo-tooltip[data-tooltip-placement="left"]::before {
    left: auto;
    right: calc(100% + 10px);
    bottom: 50%;
    transform: translateX(6px) translateY(50%);
}
.hexo-tooltip[data-tooltip-placement="left"]::after {
    left: auto;
    right: calc(100% + 4px);
    bottom: 50%;
    transform: translateY(50%);
    border-width: 5px 0 5px 6px;
    border-color: transparent transparent transparent #111827;
}
.hexo-tooltip[data-tooltip-placement="left"]:hover::before,
.hexo-tooltip[data-tooltip-placement="left"]:focus-visible::before {
    transform: translateX(0) translateY(50%);
}

.hexo-tooltip[data-tooltip-placement="right"]::before {
    left: calc(100% + 10px);
    bottom: 50%;
    transform: translateX(-6px) translateY(50%);
}
.hexo-tooltip[data-tooltip-placement="right"]::after {
    left: calc(100% + 4px);
    bottom: 50%;
    transform: translateY(50%);
    border-width: 5px 6px 5px 0;
    border-color: transparent #111827 transparent transparent;
}
.hexo-tooltip[data-tooltip-placement="right"]:hover::before,
.hexo-tooltip[data-tooltip-placement="right"]:focus-visible::before {
    transform: translateX(0) translateY(50%);
}

.dark .hexo-tooltip::before {
    background: #f3f4f6;
    color: #111827;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.dark .hexo-tooltip::after {
    border-color: #f3f4f6 transparent transparent transparent;
}
.dark .hexo-tooltip[data-tooltip-placement="bottom"]::after {
    border-color: transparent transparent #f3f4f6 transparent;
}
.dark .hexo-tooltip[data-tooltip-placement="left"]::after {
    border-color: transparent transparent transparent #f3f4f6;
}
.dark .hexo-tooltip[data-tooltip-placement="right"]::after {
    border-color: transparent #f3f4f6 transparent transparent;
}

/* ==================== Twikoo 评论深色模式可读性修复 ==================== */
.dark .tk-comments,
.dark .tk-comments .tk-comments-container,
.dark .tk-comments .tk-submit,
.dark .tk-comments .tk-preview,
.dark .tk-comments .tk-content,
.dark .tk-comments .tk-comment,
.dark .tk-comments .tk-comment * {
    color: #e5e7eb;
}

.dark .tk-comments .tk-input,
.dark .tk-comments .el-textarea__inner,
.dark .tk-comments .el-input__inner,
.dark .tk-comments .tk-meta-input input {
    /*background: #111827;*/
    border-color: #374151;
    color: #f3f4f6;
}

.dark .tk-comments .tk-input::placeholder,
.dark .tk-comments .el-textarea__inner::placeholder,
.dark .tk-comments .el-input__inner::placeholder,
.dark .tk-comments .tk-meta-input input::placeholder {
    color: #9ca3af;
}

.dark .tk-comments .tk-comment,
.dark .tk-comments .tk-preview,
.dark .tk-comments .tk-comments-container > .tk-comment {
    /*background: #111827;*/
    border-color: #374151;
}

.dark .tk-comments .tk-tag,
.dark .tk-comments .tk-extras,
.dark .tk-comments .tk-time,
.dark .tk-comments .tk-nick,
.dark .tk-comments .tk-action-link,
.dark .tk-comments .tk-expand {
    color: #9ca3af;
}

.dark .tk-comments .tk-action-link:hover,
.dark .tk-comments .tk-expand:hover {
    color: #cbd5e1;
}

.dark .tk-comments .tk-submit-action-icon,
.dark .tk-comments .tk-avatar {
    filter: brightness(0.9);
}

.dark .tk-comments .tk-content pre,
.dark .tk-comments .tk-content code {
    background: #1f2937;
    color: #e5e7eb;
}

/* 覆盖 Tailwind 的 dark:bg-gray-800 */
.dark .dark\:bg-gray-800 {
    background-color: #2d2d2d !important;
}

/* ==================== 文章详情导航暗色悬浮态修复 ==================== */
/* 推荐文章卡片：在暗色模式下悬浮时提供更明显的亮度提升 */
.dark .hexo-recommend-link {
    background-color: #2d2d2d !important;
}

.dark .hexo-recommend-link:hover {
    background-color: #3a3a3a !important;
}

/* 上一篇/下一篇：增强暗色模式下的 hover 识别度 */
.dark .hexo-adjacent-link:hover {
    color: #60a5fa !important;
}

.tk-footer {
    opacity: 0;
}