
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: thin;
}

:root {
    --bg-page: #F7F4EE;
    --bg-page-alt: #F2EEE8;
    --bg-card: #FBFAF7;
    --bg-soft: #F2EEE8;
    --bg-float: #FBFAF7;
    --text-primary: #3E3934;
    --text-body: #4B463F;
    --text-secondary: #8C857D;
    --text-muted: #A49D95;
    --line-primary: #DDD6CC;
    --line-secondary: #E7E1D8;
    --line-soft: #EEE9E2;
    --ink-decor: #B8B1A8;
    --accent-brown: #6E4F2F;
    --accent-gold: #A78C63;
    --accent-red: #9A5548;
    --control-bg: #FBFAF7;
    --control-text: #6F685F;
    --control-border: #DDD6CC;
    --control-shadow: 0 4px 12px rgba(62, 57, 52, 0.06);
    --control-hover-bg: #F2EEE8;
    --control-hover-text: #3E3934;
    --control-hover-border: #CFC7BC;
    --control-hover-shadow: 0 6px 16px rgba(62, 57, 52, 0.10);
    --control-active-bg: #3E3934;
    --control-active-text: #F7F4EE;
    --control-active-border: #3E3934;
    --control-active-shadow: 0 8px 18px rgba(62, 57, 52, 0.16);
    --control-disabled-bg: #F7F4EE;
    --control-disabled-text: #B8B1A8;
    --control-disabled-border: #E7E0D7;
    --control-disabled-shadow: none;
    --float-bg: rgba(251, 250, 247, 0.88);
    --float-icon: #6F685F;
    --float-border: rgba(221, 214, 204, 0.9);
    --float-shadow: 0 8px 20px rgba(62, 57, 52, 0.08);
    --float-hover-bg: #F2EEE8;
    --float-hover-icon: #3E3934;
    --float-hover-border: #D2CABE;
    --float-hover-shadow: 0 10px 24px rgba(62, 57, 52, 0.12);
    --float-active-bg: #EAE4DA;
    --float-active-icon: #2F2B27;
    --float-active-border: #C8BFB2;
    --float-active-shadow: 0 6px 16px rgba(62, 57, 52, 0.10);
    --page-width: 800px;
    --font-logo: "user_font", "汉仪尚巍手书", "HYShangWeiShouShuW", "STKaiti", "Kaiti SC", "Songti SC", serif;
    --font-main: "user_font", "LXGW WenKai Screen", "霞鹜文楷 屏幕阅读版", "Noto Serif SC", "Songti SC", "Microsoft YaHei", sans-serif;
    --tp-bg: linear-gradient(135deg, #f7f4ee 0%, #efe9df 55%, #e7ded0 100%);
    --main: var(--text-primary);
    --margin: 1.25rem;
    --hover: var(--accent-brown);
    --radius: 10px;
    --bg-color: var(--accent-brown);
    font-size: 16px;
    background: var(--bg-page);
    color: var(--text-primary);
}

:root[data-theme="dark"] {
    --bg-page: #1E1E1E;
    --bg-page-alt: #252525;
    --bg-card: #2A2A2A;
    --bg-soft: #333333;
    --bg-float: #2A2A2A;
    --text-primary: #EAEAEA;
    --text-body: #CCCCCC;
    --text-secondary: #999999;
    --text-muted: #777777;
    --line-primary: #3A3A3A;
    --line-secondary: #444444;
    --line-soft: #555555;
    --ink-decor: #888888;
    --accent-brown: #D7A46B;
    --accent-gold: #FFC66B;
    --accent-red: #E57C6A;
    --control-bg: #2A2A2A;
    --control-text: #EAEAEA;
    --control-border: #444444;
    --control-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    --control-hover-bg: #333333;
    --control-hover-text: #FFFFFF;
    --control-hover-border: #666666;
    --control-hover-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    --control-active-bg: #555555;
    --control-active-text: #FFFFFF;
    --control-active-border: #777777;
    --control-active-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
    --control-disabled-bg: #2A2A2A;
    --control-disabled-text: #555555;
    --control-disabled-border: #3A3A3A;
    --float-bg: rgba(42, 42, 42, 0.88);
    --float-icon: #CCCCCC;
    --float-border: rgba(60, 60, 60, 0.9);
    --float-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    --float-hover-bg: #333333;
    --float-hover-icon: #FFFFFF;
    --float-hover-border: #555555;
    --float-hover-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
    --float-active-bg: #555555;
    --float-active-icon: #FFFFFF;
    --float-active-border: #666666;
    --float-active-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    --tp-bg: linear-gradient(rgba(24, 24, 24, .92), rgba(24, 24, 24, .92)), linear-gradient(135deg, #2a2723 0%, #35302a 100%);
    --main: var(--text-primary);
    --hover: var(--accent-brown);
    --bg-color: var(--accent-brown);
    color-scheme: dark;
}

::placeholder {
    color: var(--text-muted);
}

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

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    background-color: var(--ink-decor);
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgba(62, 57, 52, .08);
    border-radius: 10px;
    background-color: var(--bg-soft);
    display: none;
}

::-webkit-scrollbar-track-piece {
    display: none;
}

#site-search-container {
    --ink-decor: #B8B1A8;
    --bg-soft: #F2EEE8;
    color-scheme: light;
    scrollbar-color: #B8B1A8 #F2EEE8;
}

::-moz-selection {
    color: #fff;
    background: var(--bg-color);
}

::selection {
    color: #fff;
    background: var(--bg-color);
}

body {
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-width: 0;
    background: var(--bg-page);
    color: var(--text-primary);
}

html,
body {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--main);
}

a:hover {
    color: var(--accent-brown);
    text-shadow: none;
    text-decoration: underline dotted;
    text-underline-offset: 0.3em;
}

.tp-post-article .post_content a:not([class]),
.ztj-about-page .ztj-story a:not([class]),
.ztj-about-page .mx_timeline_content a:not([class]) {
    color: var(--accent-brown);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: background-color .18s ease, color .18s ease;
}

.tp-post-article .post_content a:not([class]):hover,
.ztj-about-page .ztj-story a:not([class]):hover,
.ztj-about-page .mx_timeline_content a:not([class]):hover {
    background: color-mix(in srgb, var(--accent-brown) 16%, transparent);
    color: var(--text-primary);
}

a.card:hover {
}

li {
    list-style: none;
}

input,
textarea,
select {
    font-family: var(--font-main);
    list-style: none;
    font-size: 16px;
    border: unset;
    padding: 0.5rem;
    height: auto;
    line-height: 1.25rem;
    color: var(--main);
    background: unset;
    width: 100%;
}

.title_block_title svg,
.cat_menu svg {
    width: 1.15rem;
}

.ztj-memos-title {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.ztj-leaf {
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    color: var(--accent-gold);
}

.ztj-rss-hero-main {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.ztj-rss-hero-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    color: var(--accent-gold);
}

img {
    max-width: 100%;
    height: auto;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

video,
iframe,
embed,
object {
    max-width: 100%;
}

img.lazyloading {
    -webkit-filter: blur(2rem);
    filter: blur(2rem);
    opacity: 0;
}

img.lazyloaded {
    filter: blur(0);
    -webkit-filter: blur(0);
    opacity: 1;
    display: block;
}

h1 {
    font-size: 1.75rem;
    margin: 2rem 0;
}

.user {
    display: flex;
    align-items: center;
}

.avatar {
    width: 2.75rem;
    height: 2.75rem;
    vertical-align: middle;
    -o-object-fit: cover;
    object-fit: cover;
}

.cat_menu {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 2rem;
    margin-top: 1.75rem;
    box-shadow: 5px 5px 0 -2px var(--ink-decor), 5px 5px var(--ink-decor) !important;
    padding: 0.6em;
}

.cat_menu .left {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.cat_menu .left .description {
    font-size: 14px;
    line-height: 25px;
}

.cat_menu .right {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.1rem;
}

@media (min-width:768px) {
    .cat_menu {
        padding: 1.5em;
    }
}

#search {
    padding: 3rem 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: clamp(0.6rem, 2.4vw, 1rem);
    border-top: 1px solid var(--main);
    border-bottom: 1px solid var(--main);
    margin: 20px 0;
}

@media (max-width: 650px) {
    #search {
        padding: 1.5rem 0;
    }
    #search button {
        flex: 0 0 4.75rem;
        width: 4.75rem;
    }
}

#search input {
    font-size: 1.1rem;
}

#search button {
    width: 6rem;
    background: unset;
    cursor: pointer;
}

#search button:hover {
    background: var(--bg-color);
    color: #fff;
}

#search button svg {
    width: 1.5rem;
    color: black;
}

#search button:hover svg {
    fill: #fff;
}

.footer {
    width: 100%;
    text-align: center;
    padding-top: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled),
button:not(:disabled) {
    cursor: pointer;
}

@media (max-width: 360px) {
    html {
        --margin: 0.875rem;
    }
}

*[cat_title]:hover {
    overflow: visible;
    cursor: pointer;
}

*[cat_title] {
    overflow: hidden;
    position: relative;
}

*[cat_title]:hover:before,
*[cat_title]:hover:after {
    opacity: 1;
    transform: translate3d(-50%, -3px, 0);
}

*[cat_title]:before,
*[cat_title]:after {
    position: absolute;
    z-index: 10;
    opacity: 0;
    transform: translate3d(-50%, 0, 0);
    transition: 300ms ease;
}

*[cat_title]:before {
    content: attr(cat_title);
    top: calc(-1.5em - 6px - 5px);
    left: 50%;
    padding: 3px 6px;
    line-height: 1.5;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 1rem;
    white-space: nowrap;
    box-sizing: content-box;
    pointer-events: none;
    letter-spacing: 0;
}

.float-right {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 1500;
    display: grid;
    gap: 10px;
}

.operator-button {
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--float-border);
    border-radius: 50%;
    background: var(--float-bg);
    box-shadow: var(--float-shadow);
    color: var(--float-icon);
    cursor: pointer;
    transition: opacity .22s ease, transform .22s ease, border-color .22s ease, background-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.operator-button:hover {
    border-color: var(--float-hover-border);
    background: var(--float-hover-bg);
    box-shadow: var(--float-hover-shadow);
    color: var(--float-hover-icon);
    transform: translateY(-2px) scale(1);
}

#themeToggleBtn {
    display: inline-flex;
}

#themeToggleBtn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

#themeToggleBtn .tp-icon-moon {
    fill: currentColor;
    stroke: none;
}

#themeToggleBtn .tp-icon-sun {
    display: none;
}

:root[data-theme="dark"] #themeToggleBtn .tp-icon-moon {
    display: none;
}

:root[data-theme="dark"] #themeToggleBtn .tp-icon-sun {
    display: block;
}

#postTocBtn.is-active {
    border-color: var(--float-active-border);
    background: var(--float-active-bg);
    box-shadow: var(--float-active-shadow);
    color: var(--float-active-icon);
    transform: translateY(-2px) scale(1);
}

.post-toc-panel {
    position: fixed;
    right: max(76px, calc(env(safe-area-inset-right) + 76px));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 1400;
    width: min(250px, calc(100vw - 112px));
    max-height: min(320px, calc(100vh - 72px));
    overflow: hidden;
    border: 1px solid var(--line-primary);
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: 0 18px 42px rgba(62, 57, 52, .14);
    color: var(--text-body);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(.98);
    transform-origin: right bottom;
    transition: opacity .2s ease, transform .2s ease;
}

.post-toc-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.post-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-secondary);
}

.post-toc-head strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.post-toc-title-icon {
    width: 17px;
    height: 17px;
    stroke-width: 1.9;
}

#postTocClose {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-secondary);
    cursor: pointer;
}

.post-toc-list {
    display: grid;
    gap: 1px;
    max-height: 268px;
    overflow-y: auto;
    padding: 7px;
}

.post-toc-link {
    position: relative;
    display: block;
    padding: 6px 9px;
    padding-left: 20px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
}

.post-toc-link::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: .55;
    transform: translateY(-50%);
}

.post-toc-link:hover {
    background: var(--bg-soft);
    color: var(--accent-brown);
    text-decoration: none;
}

.post-toc-link.level-h2 {
    padding-left: 30px;
}

.post-toc-link.level-h2::before {
    left: 19px;
}

.post-toc-link.level-h3 {
    padding-left: 40px;
    color: #8a7d70;
}

.post-toc-link.level-h3::before {
    left: 29px;
}

@media (max-width: 640px) {
    .post-toc-panel {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(184px, calc(env(safe-area-inset-bottom) + 184px));
        width: min(270px, calc(100vw - 32px));
        max-height: min(310px, calc(100vh - 120px));
    }
}
html,body,.main_screen,.cat_menu,.title_block_title,.tp-post-article{font-family:"LXGW WenKai Screen","霞鹜文楷 屏幕阅读版","user_font","Noto Serif SC","Songti SC","Microsoft YaHei",sans-serif}pre,pre *,code,code *{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace}


/* ===== 自定义字体：思源黑体（Zmo Sans，自托管于 /public/fonts） ===== */
:root {
  --font-main: "Zmo Sans", "user_font", "LXGW WenKai Screen", "霞鹜文楷 屏幕阅读版", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html, body, .main_screen, .cat_menu, .title_block_title, .tp-post-article {
  font-family: "Zmo Sans", "user_font", "LXGW WenKai Screen", "霞鹜文楷 屏幕阅读版", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}


/* ===== 页脚：无底块，直接浮在背景图上；与内容区同宽，文字贴底 ===== */
.footer.ink-footer {
  width: var(--page-width, 1000px) !important;
  max-width: 100% !important;
  height: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 18px auto 0 !important;
  box-sizing: border-box;
  padding: 16px 20px 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  color: #6a5e51 !important;
}
.footer.ink-footer::before { display: none !important; }
.footer.ink-footer a,
.footer.ink-footer > div { color: #6a5e51 !important; }
.footer.ink-footer a:hover { color: #3f352c !important; }
#zmoFooterAi {
  opacity: 1 !important;
  color: #7a6d5f !important;
  font-size: 12px !important;
  margin-top: 12px !important;
  padding-bottom: 0;
  text-shadow: none;
}
.main_screen { padding-bottom: 0 !important; }
:root[data-theme="dark"] .footer.ink-footer,
:root[data-theme="dark"] .footer.ink-footer a,
:root[data-theme="dark"] .footer.ink-footer > div { color: #b9ac9c !important; }

/* 备案图标：ICP 国徽 / 公安备案警徽 */
.footer-icp { display: inline-flex; align-items: center; gap: 5px; }
.footer-icp-ico { width: 15px; height: 15px; flex: 0 0 auto; display: inline-flex; opacity: .8; }
.footer-icp-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-slogan-ico { display: inline-flex; width: 15px; height: 15px; margin-right: 5px; vertical-align: -2px; opacity: .8; }
.footer-slogan-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { .footer-slogan-ico { width: 13px; height: 13px; margin-right: 4px; vertical-align: -1.5px; } }
@media (max-width: 480px) { .footer-icp { gap: 4px; } .footer-icp-ico { width: 13px; height: 13px; } }
:root[data-theme="dark"] .footer.ink-footer a:hover { color: #e6dccd !important; }
:root[data-theme="dark"] #zmoFooterAi { color: #9c8f80 !important; }

/* 页脚配色统一：深色下所有文字同一种暖灰（2026-10-24） */
:root[data-theme="dark"] .footer.ink-footer,
:root[data-theme="dark"] .footer.ink-footer span,
:root[data-theme="dark"] .footer.ink-footer a,
:root[data-theme="dark"] .footer.ink-footer > div,
:root[data-theme="dark"] #zmoFooterAi span { color: #b9ac9c !important; }
:root[data-theme="dark"] .footer-content > span:not(:last-child)::after,
:root[data-theme="dark"] #zmoFooterAi span[style*=".35"] { color: rgba(185,172,156,.45) !important; }

/* 第二行分隔点改为独立元素：不再属于链接，悬停/点击不生效 */
.footer-ext a:not(:last-child)::after,
:root[data-theme="dark"] .footer-ext a:not(:last-child)::after { content: none !important; }
.footer-ext-sep { margin: 0 10px; color: #B8AEA2; }
.footer-ext-sep:last-child { display: none; }
:root[data-theme="dark"] .footer.ink-footer .footer-ext-sep { color: rgba(185,172,156,.45) !important; }
:root[data-theme="dark"] #zmoFooterAi span { opacity: .92 !important; }
:root[data-theme="dark"] #zmoFooterAi > span:only-of-type,
:root[data-theme="dark"] #zmoFooterAi span[style*=".35"] { opacity: .35 !important; }
@media (max-width: 800px) {
  .footer.ink-footer { padding: 14px 12px 6px !important; margin-top: 14px !important; }
}

/* ===== 文章列表卡片：统一尺寸 + 半透明 + 摘要前缀 + 元信息贴底 ===== */
.home-posts-template3.home-posts { grid-auto-rows: 164px; }
.home-posts-template3 .home-post-card,
.home-posts-template3 .home-post-card:first-child {
  grid-column: auto !important;
  height: 164px !important;
  overflow: hidden;
  background: rgba(255, 253, 249, .56) !important;
  border-color: rgba(255, 255, 255, .55) !important;
  backdrop-filter: blur(7px) saturate(1.05);
  -webkit-backdrop-filter: blur(7px) saturate(1.05);
}
.home-posts-template3 .home-post-card:hover,
.home-posts-template3 .home-post-card:first-child:hover {
  background: rgba(255, 254, 251, .70) !important;
}
.home-posts-template3 .home-post-card-body {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
  min-width: 0;
}
.home-posts-template3 .home-post-card-title,
.home-posts-template3 .home-post-card:first-child .home-post-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 6px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}
.home-posts-template3 .home-post-card-excerpt,
.home-posts-template3 .home-post-card:first-child .home-post-card-excerpt {
  margin: 0;
  color: #4a4139 !important;
  font-size: 12.5px !important;
  line-height: 1.7 !important;
  -webkit-line-clamp: 2;
}
.home-posts-template3 .home-post-card-excerpt::before {
  content: "AI 摘要：";
  color: #6f6153;
  font-weight: 600;
}
.home-posts-template3 .home-post-card-meta {
  margin-top: auto !important;
  padding-top: 8px;
  color: #6b5f52 !important;
}
:root[data-theme="dark"] .home-posts-template3 .home-post-card,
:root[data-theme="dark"] .home-posts-template3 .home-post-card:first-child {
  background: rgba(32, 30, 28, .56) !important;
  border-color: rgba(255, 255, 255, .09) !important;
}
/* 深色卡片文字对比度（摘要/元信息原来沿用浅色的深棕色，压在暗底上几乎看不见） */
:root[data-theme="dark"] .home-post-card-title,
:root[data-theme="dark"] .home-post-card-title a { color: #ece4d8 !important; }
:root[data-theme="dark"] .home-posts-template3 .home-post-card-excerpt,
:root[data-theme="dark"] .home-posts-template3 .home-post-card:first-child .home-post-card-excerpt { color: #c9bdac !important; }
:root[data-theme="dark"] .home-posts-template3 .home-post-card-excerpt::before { color: rgba(215, 164, 107, .92); }
:root[data-theme="dark"] .home-posts-template3 .home-post-card-meta { color: rgba(230, 220, 205, .52) !important; }
@media (max-width: 800px) {
  .home-posts-template3.home-posts { grid-auto-rows: 152px; }
  .home-posts-template3 .home-post-card,
  .home-posts-template3 .home-post-card:first-child { height: 152px !important; }
}

/* ===== 独立页面：与关于页统一纸底透明度与文字色（仅浅色；深色交给各页自身 dark 规则） ===== */
:root:not([data-theme="dark"]) .links-page,
:root:not([data-theme="dark"]) .status-page,
:root:not([data-theme="dark"]) .guidang-page,
:root:not([data-theme="dark"]) .heart-wrap,
:root:not([data-theme="dark"]) .guestbook-page,
:root:not([data-theme="dark"]) .content-main { color: #625544; }:root:not([data-theme="dark"]) .links-page .ztj-links-sort-nav,
:root:not([data-theme="dark"]) .links-page .ztj-links-rule-card,
:root:not([data-theme="dark"]) .links-page .ztj-links-site-card,
:root:not([data-theme="dark"]) .links-page .ztj-link-card,
:root:not([data-theme="dark"]) .status-page .zst-tabs,
:root:not([data-theme="dark"]) .guidang-page .guidang-hero,
:root:not([data-theme="dark"]) .guidang-page .guidang-tags,
:root:not([data-theme="dark"]) .guidang-page .guidang-panel,
:root:not([data-theme="dark"]) .heart-wrap .heart-stat,
:root:not([data-theme="dark"]) .heart-wrap .heart-card,
:root:not([data-theme="dark"]) .zm-guestbook-intro .post_content,
:root:not([data-theme="dark"]) .comment_part .comment-list-wrapper{
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(255, 253, 249, .88), rgba(255, 248, 239, .72)) !important;
  border-color: rgba(147, 116, 78, .16) !important;
  color: #625544 !important;
}:root:not([data-theme="dark"]) .guidang-page .guidang-hero h1,
:root:not([data-theme="dark"]) .zm-guestbook-intro .post_content h2,
:root:not([data-theme="dark"]) .zm-guestbook-intro .post_content h3{ color: #3f352c !important; }
:root:not([data-theme="dark"]) .links-page p, :root:not([data-theme="dark"]) .status-page p, :root:not([data-theme="dark"]) .guidang-page p, :root:not([data-theme="dark"]) .heart-wrap p,
:root:not([data-theme="dark"]) .links-page li, :root:not([data-theme="dark"]) .heart-wrap .heart-comment, :root:not([data-theme="dark"]) .guidang-page .guidang-intro { color: #625544 !important; }:root[data-theme="dark"] .guidang-page .guidang-hero{
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(42,42,42,.92), rgba(34,34,34,.78)) !important;
  border-color: rgba(85,85,85,.72) !important;
  color: #b9ac9c !important;
}

/* ===== 导航：前置细线图标；桌面端收紧间距，移动端抽屉保持宽松 ===== */
@media (min-width: 801px) {
  .tp-nav { gap: 2px !important; }
  .tp-nav-link { padding: 4px 6px !important; }
  .tp-nav-link.is-active::after { left: 6px !important; right: 6px !important; }
}
.tp-nav-link .nav-ico {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 0px;
  vertical-align: -2.5px;
  opacity: .62;
  transition: opacity .15s ease;
}
.tp-nav-link:hover .nav-ico,
.tp-nav-link.is-active .nav-ico { opacity: .95; }
@media (max-width: 800px) {
  .tp-nav { gap: 2px !important; }
  .tp-nav .tp-nav-link { padding: 12px !important; }
  .tp-nav-link .nav-ico { width: 16px; height: 16px; margin-right: 1px; vertical-align: -3px; }
}

body {
    box-sizing: border-box;
    min-height: 100vh;
    letter-spacing: 0;
    background-image: none;
    padding-top: 18px;
}

body::before {
    content: "";
    position: fixed;
    inset: -4px;
    z-index: 0;
    pointer-events: none;
    background-color: var(--bg-page);
    background-image: var(--tp-bg);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--bg-soft) 50%, transparent);
    opacity: .18;
    background-size: auto, 28px 28px, 34px 34px;
}

.main_screen {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(var(--page-width), calc(100% - 64px));
    max-width: none;
    min-height: calc(100vh - 80px);
    box-sizing: border-box;
    margin: 0 auto;
    padding-bottom: 30px;
}

main {
    width: 100%;
    margin: 0 auto;
    flex: 1 0 auto;
}

a {
    color: var(--text-primary);
    transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

a:hover {
    color: var(--accent-gold);
    text-shadow: none;
    text-decoration: none;
}

.cat_menu.tp-header {
    position: static;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 68px;
    margin: 0 auto;
    padding: 0 0 17px;
    border: 0;
    border-bottom: 1px solid var(--line-primary);
    border-radius: 0;
    box-shadow: none !important;
    background: transparent;
    overflow: visible;
}

.tp-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: fit-content;
    min-width: max-content;
    color: #1F1A17;
    white-space: nowrap;
}

.tp-brand:hover {
    color: #1F1A17;
}

.tp-brand-text {
    color: #1F1A17;
    font-family: var(--font-logo);
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
}

.tp-brand.has-sub {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    white-space: normal;
}

.tp-brand-sub {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .04em;
}

.tp-brand-logo {
    display: block;
    width: 130px;
    height: 36px;
    max-width: 130px;
    object-fit: contain;
}

.tp-brand-logo.tp-brand-logo-dark {
    display: none;
}

:root[data-theme="dark"] .tp-brand-logo.tp-brand-logo-light.has-dark-logo {
    display: none;
}

:root[data-theme="dark"] .tp-brand-logo.tp-brand-logo-dark {
    display: block;
}

.tp-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;
    white-space: nowrap;
}

.tp-nav-item {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.tp-nav-link {
    position: relative;
    color: var(--text-body);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 9px;
    transition: background-color .2s ease, color .2s ease;
}

.tp-nav-link.is-active {
    color: var(--accent-brown);
}

.tp-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 1px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-brown);
}

.tp-nav-caret {
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    transition: transform .22s ease;
}

.tp-subnav {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 30;
    min-width: 132px;
    padding: 8px 9px;
    border: 1px solid var(--line-secondary);
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: 0 14px 30px rgba(62, 57, 52, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity .18s ease, transform .18s ease;
}

.tp-subnav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.tp-subnav-link {
    position: relative;
    display: block;
    margin: 2px 0;
    padding: 8px 13px;
    border-radius: 8px;
    color: var(--text-body);
    font-size: 13px;
    line-height: 20px;
    text-align: left;
}

.tp-subnav-link.is-active {
    color: var(--accent-brown);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-brown) 13%, var(--bg-card)), color-mix(in srgb, var(--accent-gold) 12%, var(--bg-soft)));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-brown) 8%, transparent);
}

.tp-nav-item.has-children:hover .tp-subnav,
.tp-nav-item.has-children:focus-within .tp-subnav,
.tp-nav-item.has-children.is-open .tp-subnav {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.tp-nav-item.has-children:hover .tp-nav-caret,
.tp-nav-item.has-children:focus-within .tp-nav-caret,
.tp-nav-item.has-children.is-open .tp-nav-caret {
    transform: rotate(225deg) translate(-2px, -2px);
}

.site-search {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-width: 32px;
    line-height: 1;
    margin-left: 0;
}

.search-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5F5750;
    border-radius: 50%;
    line-height: 1;
    cursor: pointer;
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.search-toggle svg {
    display: block;
    width: 16px;
    height: 16px;
}

.tp-nav-link:hover,
.tp-nav-link.is-active:hover,
.search-toggle:hover {
    color: var(--accent-brown);
}

:root[data-theme="dark"] .search-toggle {
    color: var(--text-body);
}

:root[data-theme="dark"] .search-toggle:hover {
    color: var(--accent-brown);
    background: rgba(51, 51, 51, .78);
}

.tp-subnav-link:hover {
    background: var(--bg-soft);
    color: var(--accent-brown);
}

.tp-subnav-link.is-active:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-brown) 13%, var(--bg-card)), color-mix(in srgb, var(--accent-gold) 12%, var(--bg-soft)));
}

.tp-nav-more {
    display: inline-flex;
}

.tp-nav-more[hidden] {
    display: none !important;
}

.tp-nav-more-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.tp-nav-more.is-open .tp-subnav {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.tp-menu-toggle {
    display: none;
}
.tp-drawer-head {
    display: none;
}
.tp-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(28, 20, 12, .42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.tp-nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
    }

.content-layout.has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

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

.float-right {
    z-index: 1500;
    right: 28px;
    bottom: 72px;
    display: grid;
    gap: 10px;
}

.operator-button {
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--float-border);
    border-radius: 12px;
    background: var(--float-bg);
    box-shadow: var(--float-shadow);
    color: var(--float-icon);
    transition: all .22s ease;
}

.operator-button:hover {
    border-color: var(--float-hover-border);
    background: var(--float-hover-bg);
    box-shadow: var(--float-hover-shadow);
    color: var(--float-hover-icon);
}

#backToTopBtn,
#postTocBtn,
#goToCommentsBtn {
    display: none;
    border-radius: 50%;
    background: var(--float-bg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(.96);
    transition: opacity .22s ease, transform .22s ease, border-color .22s ease, background-color .22s ease, color .22s ease;
}

#backToTopBtn.is-visible,
#postTocBtn.is-visible,
#goToCommentsBtn.is-visible {
    display: inline-flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

#backToTopBtn:hover,
#postTocBtn:hover,
#goToCommentsBtn:hover {
    transform: translateY(-2px) scale(1);
    cursor: pointer;
}

#postTocBtn.is-active {
    border-color: var(--float-active-border);
    background: var(--float-active-bg);
    box-shadow: var(--float-active-shadow);
    color: var(--float-active-icon);
    transform: translateY(-2px) scale(1);
}

.tp-icon {
    display: block;
    width: 20px;
    height: 20px;
    color: currentColor;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}

.tp-icon-top::before {
    display: none;
    content: none;
}

.tp-icon-top::after {
    display: none;
    content: none;
}

.tp-icon-comment {
    width: 22px;
    height: 22px;
    background-color: currentColor;
    stroke: none;
    -webkit-mask: url("../static/images/comment.svg") center / contain no-repeat;
    mask: url("../static/images/comment.svg") center / contain no-repeat;
}

.footer.ink-footer {
    flex: 0 0 auto;
    padding: 0;
    color: #93887E;
    font-size: 13px;
    line-height: 22px;
}

.footer-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.footer-content>span:not(:last-child)::after {
    content: "|";
    margin: 0 14px;
    color: #B8AEA2;
}

.footer-content>span:last-child {
    color: #8D8176;
    font-weight: 400;
}

.footer-content a {
    color: inherit;
}

.footer-rss-text::after {
    display: none;
    content: none;
}

.footer-rss a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8D8176;
    line-height: 22px;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-rss a:hover {
    color: #6D5641;
}

.footer-rss svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-rss svg circle {
    fill: currentColor;
    stroke: none;
}

.footer-rss-text {
    font-size: 13px;
}

:root[data-theme="dark"] .footer.ink-footer,
:root[data-theme="dark"] .footer-content,
:root[data-theme="dark"] .footer-content>span,
:root[data-theme="dark"] .footer-content a,
:root[data-theme="dark"] .footer-rss a {
    color: var(--text-body);
}

:root[data-theme="dark"] .footer-content a:hover,
:root[data-theme="dark"] .footer-rss a:hover {
    color: var(--accent-brown);
}

:root[data-theme="dark"] .footer-rss svg {
    color: currentColor;
    stroke: currentColor;
}

:root[data-theme="dark"] .footer-rss svg circle {
    fill: currentColor;
}

@media (max-width: 960px) {
    .content-layout.has-sidebar {
        grid-template-columns: 1fr;
    }
    }

@media (max-width: 800px) {
    body::before {
        inset: -8px;
        background-position: center top;
        background-size: cover;
        filter: blur(1.35px);
        opacity: 0.78;
    }
    body::after {
        background: color-mix(in srgb, var(--bg-page) 28%, transparent);
    }
    .cat_menu.tp-header {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px;
        min-height: auto;
        padding: 4px 0 16px;
        z-index: auto;
    }
    .tp-nav-backdrop {
        z-index: 1600;
    }
    html.tp-nav-locked .zmbw {
        display: none !important;
    }
    .tp-brand {
        grid-column: 1;
        grid-row: 1;
    }
    .site-search {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
    .tp-menu-toggle {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 1px solid var(--line-secondary);
        border-radius: 10px;
        background: var(--bg-card);
        color: var(--text-body);
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }
    .tp-menu-toggle:hover {
        color: var(--accent-brown);
        border-color: color-mix(in srgb, var(--accent-brown) 42%, var(--line-secondary));
    }
    .tp-menu-toggle svg {
        display: block;
        width: 20px;
        height: 20px;
    }
    .tp-menu-toggle .tp-menu-close {
        display: none;
    }
    .tp-menu-toggle.is-active .tp-menu-burger {
        display: none;
    }
    .tp-menu-toggle.is-active .tp-menu-close {
        display: block;
    }
    .tp-brand-text {
        font-size: 38px;
    }
    .tp-brand-logo {
        width: 130px;
        height: 36px;
        max-width: 130px;
    }
    .tp-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1601;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        width: min(80vw, 320px);
        height: 100vh;
        height: 100dvh;
        max-width: none;
        margin: 0;
        padding: max(14px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--bg-card);
        border-left: 1px solid var(--line-secondary);
        box-shadow: -18px 0 48px rgba(40, 30, 20, .22);
        white-space: normal;
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .3s;
    }
    .tp-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 0s;
    }
    .tp-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 8px;
        padding: 2px 4px 12px;
        border-bottom: 1px solid var(--line-secondary);
    }
    .tp-drawer-title {
        font-size: 15px;
        font-weight: 600;
        color: var(--text-body);
    }
    .tp-drawer-close {
        width: 32px;
        height: 32px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--text-muted);
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }
    .tp-drawer-close:hover {
        background: var(--bg-soft);
        color: var(--accent-brown);
    }
    .tp-nav .tp-nav-item {
        display: block;
        width: 100%;
    }
    .tp-nav .tp-nav-link {
        display: flex;
        width: 100%;
        border-radius: 10px;
        padding: 12px;
        font-size: 15px;
        line-height: 1.4;
    }
    .tp-nav .tp-nav-link:hover {
        background: var(--bg-soft);
    }
    .tp-nav .tp-nav-link.is-active {
        background: color-mix(in srgb, var(--accent-brown) 10%, transparent);
    }
    .tp-nav .tp-nav-link.is-active::after {
        display: none;
    }
    .tp-nav-more {
        display: none !important;
    }
    html.tp-nav-locked {
        overflow: hidden;
    }
    .tp-subnav {
        position: fixed;
        left: var(--tp-subnav-left, 16px);
        top: var(--tp-subnav-top, 120px);
        right: auto;
        min-width: 140px;
        max-width: calc(100vw - 32px);
        z-index: 100;
        transform: translateY(6px);
    }
    .tp-nav-item.has-children:hover .tp-subnav,
    .tp-nav-item.has-children:focus-within .tp-subnav {
        opacity: 0;
        pointer-events: none;
        transform: translateY(6px);
    }
    .tp-nav-item.has-children.is-open .tp-subnav,
    .tp-subnav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .tp-nav-item.has-children.is-closing .tp-subnav {
        opacity: 0;
        pointer-events: none;
        transform: translateY(6px);
    }
    .float-right {
        right: 16px;
        bottom: 32px;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 0;
        background-position: center top;
    }
    .tp-nav {
        gap: 2px;
        font-size: 14px;
    }
    .footer-content {
        display: grid;
        gap: 4px;
    }
    .footer-content>span::after,
    .footer-rss-text::after {
        content: "" !important;
        margin: 0 !important;
    }
}
.footer-ext {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 4px;
    color: #93887E;
    font-size: 13px;
    line-height: 22px;
}

.footer-ext a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-ext a:not(:last-child)::after {
    content: "·";
    margin: 0 10px;
    color: #B8AEA2;
}

.footer-ext a:hover {
    color: #6D5641;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(109, 86, 65, .45);
}

:root[data-theme="dark"] .footer-ext {
    color: var(--text-body);
}

:root[data-theme="dark"] .footer-ext a:not(:last-child)::after {
    color: #4A4A4A;
}

:root[data-theme="dark"] .footer-ext a:hover {
    color: var(--accent-brown);
    text-decoration-color: rgba(215, 164, 107, .5);
}
.site-search-mobile-btn {
    display: none;
}

/* ===== 紧凑卡片列表（曾墨版，保留原站外观） ===== */
@media (max-width: 800px) {
  }

/* ==========================================================================
   Riven（曾墨版）— 补充样式层
   这一层只放「Riven 原版没有、或需要按 ZMBlog 结构微调」的部分，
   颜色全部走 Riven 的 CSS 变量，所以深色模式自动生效。
   加载顺序：在 main/home/post/comment/liuyan 之后。
   ========================================================================== */

/* ---------- 基础 ---------- */
.zm-html { scroll-behavior: smooth; }
.zm-main { display: block; }
main.zm-main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
.zm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 18px; border-radius: 6px;
  border: 1px solid var(--line-primary); background: var(--bg-card);
  color: var(--text-body); font-size: 14px; line-height: 1; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.zm-btn:hover { background: var(--bg-soft); color: var(--accent-brown); border-color: var(--control-hover-border); text-decoration: none; }
.zm-btn.ghost { background: transparent; }

/* 空状态 */
.zm-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 16px; text-align: center; }
.zm-empty img { width: min(220px, 60%); opacity: .9; }
.zm-empty p { margin: 0; color: var(--text-secondary); font-size: 14px; }

/* 需要非空判定的地方，隐藏空元素 */
.home-notice-viewport .home-notice-track p { margin: 0; }

/* ---------- 顶部：搜索弹层 / 明暗切换 ---------- */
.zm-search {
  position: fixed; inset: 0; z-index: 9997;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 14vh 16px 0;
  background: color-mix(in srgb, var(--bg-page) 72%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.zm-search[hidden] { display: none; }
.zm-search-box {
  display: flex; align-items: center; gap: 10px;
  width: min(560px, 100%); padding: 12px 16px;
  border: 1px solid var(--line-primary); border-radius: 12px;
  background: var(--bg-float); box-shadow: 0 18px 40px rgba(40, 34, 28, .18);
  color: var(--text-secondary);
}
.zm-search-box input {
  flex: 1 1 auto; min-width: 0; height: 34px; border: 0; outline: none;
  background: transparent; color: var(--text-primary);
  font-family: var(--font-main); font-size: 16px;
}
.zm-search-box button {
  flex: 0 0 auto; white-space: nowrap;
  height: 34px; padding: 0 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--control-border); background: var(--control-bg);
  color: var(--control-text); font-size: 14px; line-height: 1;
  font-family: var(--font-main);
}
.zm-search-box button:hover { background: var(--control-hover-bg); color: var(--control-hover-text); }

/* 搜索即时建议 / 搜索历史（对齐原站 SiteSearch 的下拉） */
.zm-search-panel {
  width: min(560px, 100%); margin-top: 10px;
  max-height: min(52vh, 420px); overflow-y: auto;
  border: 1px solid var(--line-primary); border-radius: 12px;
  background: var(--bg-float); box-shadow: 0 18px 40px rgba(40, 34, 28, .18);
  padding: 6px; font-family: var(--font-main);
}
.zm-search-panel[hidden] { display: none; }
.zm-search-head {
  padding: 8px 10px 6px; font-size: 12px; letter-spacing: .04em;
  color: var(--text-secondary); opacity: .85;
}
.zm-search-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  color: var(--text-primary); text-decoration: none;
}
.zm-search-row:hover, .zm-search-row.is-active { background: var(--control-hover-bg); color: var(--control-hover-text); }
.zm-search-row-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.zm-search-row-sub { flex: 0 0 auto; font-size: 12px; color: var(--text-secondary); opacity: .9; }
.zm-search-row:hover .zm-search-row-sub, .zm-search-row.is-active .zm-search-row-sub { color: var(--control-hover-text); opacity: .85; }
.zm-search-more, .zm-search-clear {
  display: block; padding: 9px 10px; margin-top: 2px; border-radius: 8px;
  font-size: 13px; color: var(--accent-brown, #b08d57); text-decoration: none;
  border-top: 1px dashed var(--line-primary);
}
.zm-search-clear { color: var(--text-secondary); text-align: center; }
.zm-search-more:hover, .zm-search-clear:hover { background: var(--control-hover-bg); color: var(--control-hover-text); }
.zm-search-hint { margin: 8px 0 0; font-size: 12px; color: var(--text-secondary); opacity: .8; }
.zm-search-hint[hidden] { display: none; }
:root[data-theme="dark"] .zm-search-panel { box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }

/* 浮动按钮（深浅切换 / 返回顶部 / 目录 / 评论）由主题 main.css 统一定义 */

/* ---------- 分页补充 ---------- */
.home-pagination li a[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.home-pagination li.zm-page-gap > span {
  display: inline-flex; align-items: center; justify-content: center;
  height: 35px; min-width: 24px; color: var(--text-muted); font-size: 13px;
}
.zm-pagination { margin-top: 8px; }

/* ---------- 文章：元信息 / 版权 / 标签 / 附件 ---------- */
.post-title-block .post-title { margin: 0 auto 10px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--text-secondary); font-size: 13px; }
.post-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .post-cat-link { color: var(--accent-brown); }
.post-meta-icon, .post-views-icon { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.post-edit-link { margin-left: auto; color: var(--accent-gold); }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.article-tags a {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border: 1px solid var(--line-secondary); border-radius: 13px;
  background: var(--bg-soft); color: var(--text-secondary); font-size: 13px;
}
.article-tags a:hover { color: var(--accent-brown); border-color: var(--accent-gold); text-decoration: none; }

.post-copyright {
  margin: 26px 0 0; padding: 14px 16px; border: 1px dashed var(--line-primary);
  border-radius: 8px; background: color-mix(in srgb, var(--bg-soft) 60%, transparent);
}
.post-copyright-badge {
  display: inline-block; margin-bottom: 6px; padding: 1px 8px; border-radius: 4px;
  background: var(--accent-brown); color: #F7F4EE; font-size: 12px;
}
.post-copyright p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.8; }

.zm-attachments { margin: 26px 0 0; padding: 16px; border: 1px solid var(--line-secondary); border-radius: 8px; background: var(--bg-card); }
.zm-attachments h3 { margin: 0 0 10px; font-size: 15px; }
.zm-attachments ul { margin: 0; padding: 0; list-style: none; }
.zm-attachments li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line-soft); }
.zm-attachments li:first-child { border-top: 0; }
.zm-attachments .hint { color: var(--text-muted); font-size: 12px; }

/* 目录面板按钮（Riven 有样式，这里补无障碍焦点与当前项） */
.operator-button:focus-visible, .zm-btn:focus-visible, .search-toggle:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.post-toc-link.is-current { background: var(--bg-soft); color: var(--accent-brown); }

/* 代码复制兜底按钮（Prism 工具栏未启用时） */
.zm-copy-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  height: 24px; padding: 0 10px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--control-border); background: var(--control-bg);
  color: var(--control-text); font-size: 12px; line-height: 1;
  opacity: 0; transition: opacity .18s ease;
}
.tp-post-article .post_content pre { position: relative; }
.tp-post-article .post_content pre:hover .zm-copy-btn,
.zm-copy-btn:focus-visible { opacity: 1; }

/* ---------- 归档时间轴 ---------- */
.zm-timeline { margin-top: 12px; }
.zm-timeline-group { margin: 0 0 22px; }
.zm-timeline-month {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
  font-size: 16px; font-weight: 600;
}
.zm-timeline-month a { color: var(--text-primary); }
.zm-timeline-month a:hover { color: var(--accent-brown); text-decoration: none; }
.zm-timeline-month small { color: var(--text-muted); font-size: 12px; font-weight: 400; }
.zm-timeline-list { margin: 0; padding: 0; list-style: none; }
.zm-timeline-list li { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; }
.zm-timeline-list time { flex: 0 0 auto; width: 92px; color: var(--text-muted); font-size: 13px; }
.zm-timeline-list a { color: var(--text-body); }
.zm-timeline-list a:hover { color: var(--accent-brown); }
@media (max-width: 480px) {
  .zm-timeline-list li { flex-direction: column; gap: 2px; }
  .zm-timeline-list time { width: auto; }
}

/* ---------- 友情链接 ---------- */
.zm-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 18px; }
.zm-link-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line-secondary); border-radius: 10px;
  background: var(--bg-card); color: var(--text-primary);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.zm-link-card:hover { transform: translateY(-2px); border-color: var(--accent-gold); box-shadow: var(--control-shadow); text-decoration: none; }
.zm-link-avatar { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.zm-link-body { display: flex; flex-direction: column; min-width: 0; }
.zm-link-body strong { font-size: 14px; font-weight: 600; }
.zm-link-body small { color: var(--text-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 评论区补充 ---------- */
.tp-comment-msg { margin: 8px 0 0; min-height: 18px; font-size: 13px; color: var(--text-secondary); }
.tp-comment-msg.is-ok { color: #3B7A57; }
.tp-comment-msg.is-err { color: #B4483B; }
.tp-reply-tip { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 8px 12px; border-radius: 6px; background: var(--bg-soft); color: var(--text-secondary); font-size: 13px; }
.tp-reply-tip[hidden] { display: none; }
.tp-reply-tip button { height: 24px; padding: 0 10px; border: 1px solid var(--control-border); border-radius: 4px; background: var(--control-bg); color: var(--control-text); cursor: pointer; font-size: 12px; }
.send_anniu_style { cursor: pointer; }
.tp-emoji-picker { user-select: none; }
.comment-list-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 0; }
.comment-list-empty img { width: 180px; opacity: .85; }
.comment-list-empty p { margin: 0; color: var(--text-muted); font-size: 13px; }
.tp-comment-closed { margin: 0; padding: 12px 0; color: var(--text-muted); font-size: 14px; }
.comment-pagination { margin-top: 14px; }
.comment-pagination .home-pagination { margin: 0; }

/* ---------- 密码页 / 404 ---------- */
.zm-password, .zm-404 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 46px 16px; }
.zm-password-image { width: min(220px, 55%); opacity: .9; }
.zm-password p { margin: 0; color: var(--text-secondary); }
.zm-password-form { display: flex; gap: 8px; width: min(380px, 100%); margin-top: 6px; }
.zm-password-form input {
  flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px;
  border: 1px solid var(--control-border); border-radius: 6px;
  background: var(--control-bg); color: var(--text-primary); font-family: var(--font-main);
}
.zm-password-form button {
  height: 38px; padding: 0 18px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--control-active-border); background: var(--control-active-bg); color: var(--control-active-text);
}
.zm-password-msg { min-height: 18px; font-size: 13px; color: var(--accent-red); }
.zm-password-back a { color: var(--accent-brown); }
.zm-404-code { margin: 0; font-size: 76px; font-weight: 700; line-height: 1; color: var(--accent-gold); letter-spacing: 4px; }
.zm-404-title { margin: 0; font-size: 22px; }
.zm-404-desc { margin: 0; color: var(--text-secondary); }
.zm-404-actions { display: flex; gap: 10px; margin-top: 8px; }

/* ---------- 图片放大（lightbox） ---------- */
.zm-lightbox {
  position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(20, 18, 16, .86); cursor: zoom-out;
}
.zm-lightbox[hidden] { display: none; }
.zm-lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.float-right .operator-button { display: inline-flex; align-items: center; justify-content: center; }
.zm-lightbox-close {
  position: absolute; top: 16px; right: 20px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .35); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.zm-zoomable { cursor: zoom-in; }

/* ---------- 深色模式补丁 ---------- */
:root[data-theme="dark"] .zm-search { background: rgba(20, 20, 20, .78); }
:root[data-theme="dark"] .zm-btn { background: var(--bg-card); color: var(--text-body); }
:root[data-theme="dark"] .zm-link-card { background: var(--bg-card); }
:root[data-theme="dark"] .post-copyright { background: rgba(51, 51, 51, .5); }
:root[data-theme="dark"] .zm-attachments { background: var(--bg-card); }
:root[data-theme="dark"] .tp-reply-tip { background: var(--bg-soft); }

/* ---------- 段落缩进（主题设置可开） ---------- */
.tp-para-indent .post_content > p { text-indent: 2em; }
.tp-para-indent .post_content > p:has(img), .tp-para-indent .post_content > p:has(> img) { text-indent: 0; }

/* ---------- 移动端 ---------- */
@media (max-width: 800px) {
  .tp-nav { padding-right: 4px; }
  .zm-links { grid-template-columns: 1fr 1fr; }
  .zm-link-body small { display: none; }
}
@media (max-width: 480px) {
  .zm-links { grid-template-columns: 1fr; }
  .post-meta { gap: 6px 10px; }
}

/* ---------- 评论点赞 ---------- */
#comments .tp-comment-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font: 13px/22px var(--font-main);
}
#comments .tp-comment-like:hover { color: var(--accent-brown); }
#comments .tp-comment-like .tp-like-icon { font-size: 13px; line-height: 1; filter: grayscale(1); opacity: .8; }
#comments .tp-comment-like.is-active .tp-like-icon { filter: none; opacity: 1; }
#comments .tp-comment-like.is-active .tp-like-num { color: var(--accent-brown); }
#comments .tp-comment-foot > .tp-comment-like { margin-left: 10px; }

/* 回复提示条 */
.tp-reply-tip { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 13px; color: var(--text-secondary); }
.tp-reply-tip[hidden] { display: none; }

/* ===== PJAX：顶部加载进度条 + 换页过渡（对齐原站无刷新跳转） ===== */
.is-pjax-loading { cursor: progress; }
.is-pjax-loading::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent-brown, #b08d57), #e6c992 60%, transparent);
  transform-origin: 0 50%;
  animation: tp-pjax-bar 1.1s ease-out infinite;
}
@keyframes tp-pjax-bar {
  0% { transform: scaleX(0); opacity: 1; }
  70% { transform: scaleX(.9); opacity: 1; }
  100% { transform: scaleX(1); opacity: .2; }
}
.is-pjax-loading main.zm-main { opacity: .55; transition: opacity .12s linear; }
html[data-pjax='on'] main.zm-main { transition: opacity .18s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .is-pjax-loading::before { animation: none; }
  html[data-pjax='on'] main.zm-main { transition: none; }
}

/* ---------- 「文章归档」页面（对齐原站 /archives.html） ---------- */
.zm-archive-wrap { display: flex; flex-direction: column; gap: 18px; }
.zm-archive-hero {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 16px 6px; text-align: center;
}
.zm-archive-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--bg-soft); border: 1px solid var(--line-primary);
  color: var(--accent-brown);
}
.zm-archive-icon svg { width: 25px; height: 25px; }
.zm-archive-title { margin: 0; font-size: 26px; line-height: 1.35; color: var(--text-primary); }
.zm-archive-hero-line { display: block; width: 46px; height: 3px; border-radius: 2px; background: var(--accent-gold); opacity: .75; }
.zm-archive-sub { color: var(--text-secondary); font-size: 13.5px; }

.zm-archive-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.zm-archive-stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 8px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--line-primary);
  box-shadow: var(--control-shadow);
}
.zm-archive-stat strong { font-size: 22px; line-height: 1.2; color: var(--accent-brown); font-weight: 600; }
.zm-archive-stat span { font-size: 12.5px; color: var(--text-secondary); }

.zm-archive-box {
  padding: 16px 16px 18px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--line-primary);
}
.zm-archive-box-title {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--text-primary);
}
.zm-archive-box-title svg { width: 17px; height: 17px; color: var(--accent-brown); }
.zm-archive-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.zm-archive-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line-secondary);
  color: var(--text-body); font-size: 13px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.zm-archive-chip em { font-style: normal; font-size: 12px; color: var(--text-muted); }
.zm-archive-chip:hover {
  background: var(--control-hover-bg); color: var(--accent-brown);
  border-color: var(--control-hover-border); text-decoration: none;
}

.zm-archive-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.zm-archive-switch {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border-radius: 999px; font-size: 13px;
  background: var(--bg-soft); border: 1px solid var(--line-secondary); color: var(--text-body);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.zm-archive-switch:hover { border-color: var(--control-hover-border); color: var(--accent-brown); text-decoration: none; }
.zm-archive-switch.active {
  background: var(--control-active-bg); border-color: var(--control-active-border);
  color: var(--control-active-text);
}

.zm-archive-groups { display: flex; flex-direction: column; gap: 10px; }
.zm-archive-group {
  border: 1px solid var(--line-soft); border-radius: 8px; background: var(--bg-page);
  overflow: hidden;
}
.zm-archive-group-head {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 11px 14px; list-style: none; user-select: none;
}
.zm-archive-group-head::-webkit-details-marker { display: none; }
.zm-archive-group-head:hover { background: var(--bg-soft); }
.zm-archive-chevron {
  width: 8px; height: 8px; flex: 0 0 auto; margin-left: 2px;
  border-right: 1.6px solid var(--text-secondary); border-bottom: 1.6px solid var(--text-secondary);
  transform: rotate(-45deg); transition: transform .18s ease;
}
.zm-archive-group[open] .zm-archive-chevron { transform: rotate(45deg); }
.zm-archive-group-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.zm-archive-group-count {
  margin-left: auto; font-size: 12px; color: var(--accent-brown);
  background: var(--bg-soft); border: 1px solid var(--line-secondary);
  border-radius: 999px; padding: 1px 9px;
}
.zm-archive-group-body { display: flex; flex-direction: column; padding: 2px 8px 8px; }
.zm-archive-item {
  display: flex; align-items: baseline; gap: 12px;
  padding: 7px 8px; border-radius: 6px;
}
.zm-archive-item:hover { background: var(--bg-soft); }
.zm-archive-date { flex: 0 0 auto; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.zm-archive-link {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-body); font-size: 14px;
}
.zm-archive-link:hover { color: var(--accent-brown); text-decoration: none; }
:root[data-theme="dark"] .zm-archive-stat strong { color: var(--accent-gold); }
:root[data-theme="dark"] .zm-archive-chip:hover { color: var(--accent-gold); }
:root[data-theme="dark"] .zm-archive-link:hover { color: var(--accent-gold); }
:root[data-theme="dark"] .zm-archive-switch:hover { color: var(--accent-gold); }
@media (max-width: 640px) {
  .zm-archive-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zm-archive-title { font-size: 22px; }
}

/* 状态页：与关于/友链等页面标题卡片的 10px 上内边距对齐（2026-10-19） */
.status-page .content-main{padding-top:10px}

:root[data-theme="dark"] body,
:root[data-theme="dark"] main,
:root[data-theme="dark"] section,
:root[data-theme="dark"] article,
:root[data-theme="dark"] p,
:root[data-theme="dark"] li,
:root[data-theme="dark"] span,
:root[data-theme="dark"] small,
:root[data-theme="dark"] time,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="dark"] label,
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select,
:root[data-theme="dark"] button,
:root[data-theme="dark"] .post_content,
:root[data-theme="dark"] .post_content *:not(pre):not(code):not(kbd):not(samp):not(svg):not(path) {
  color: var(--text-body);
}
:root[data-theme="dark"] a:hover,
:root[data-theme="dark"] button:hover,
:root[data-theme="dark"] [role="button"]:hover,
:root[data-theme="dark"] .tp-nav-link:hover,
:root[data-theme="dark"] .tp-subnav-link:hover,
:root[data-theme="dark"] .home-post:hover .home-post-title,
:root[data-theme="dark"] .home-sticky-content h2 a:hover,
:root[data-theme="dark"] .home-pagination li a[href]:hover {
  color: var(--accent-brown);
}


.es-subscribe{margin:0 0 18px;padding:18px 16px 16px;border:1px solid var(--line-primary);border-radius:12px;background:var(--bg-card);box-shadow:0 10px 28px rgba(62,57,52,.035);text-align:center;}
.es-sub-head{display:flex;flex-direction:column;align-items:center;gap:6px;margin:0 0 14px;}
.es-sub-badge{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;border:1px solid var(--line-secondary);background:var(--bg-soft);color:var(--accent-brown);font-size:17px;}
.es-sub-title{margin:0;font-size:15px;font-weight:600;color:var(--text-primary);}
.es-sub-desc{margin:0;font-size:13px;color:var(--text-secondary);}
.es-hp{position:absolute!important;left:-9999px!important;top:auto!important;width:1px;height:1px;overflow:hidden;opacity:0;}
.es-sub-btn{cursor:pointer;}
.es-sub-cap{display:inline-flex;align-items:center;gap:9px;margin:12px auto 0;padding:6px 8px 6px 12px;border:1px solid var(--line-primary);border-radius:999px;background:var(--bg-soft);font-size:13px;color:var(--text-secondary);}
.es-sub-cap-tag{font-size:11px;line-height:1;color:var(--accent-brown);background:rgba(110,79,47,.10);border-radius:999px;padding:4px 9px;letter-spacing:.5px;}
.es-sub-cap-q{font-weight:600;color:var(--text-primary);font-variant-numeric:tabular-nums;letter-spacing:.5px;white-space:nowrap;}
.es-sub-cap input[type=text]{width:58px;padding:5px 8px;border:1px solid var(--line-primary);border-radius:999px;background:var(--bg-card);color:var(--text-primary);text-align:center;font:inherit;box-sizing:border-box;transition:border-color .15s,box-shadow .15s;}
.es-sub-cap input[type=text]:focus{outline:none;border-color:var(--accent-brown);box-shadow:0 0 0 2px rgba(110,79,47,.15);}
.es-sub-msg{margin:8px 0 0;font-size:13px;color:var(--text-secondary);}
.es-sub-msg:empty{display:none;}

/* ===== 专用订阅页 ===== */
.subscribe-page .subscribe-wrap{width:100%;max-width:var(--page-width,980px);margin:0 auto;padding:10px 0 26px}
.subscribe-page .subscribe-intro{margin:0 2px 18px;color:var(--text-secondary);font-size:13px;line-height:1.8}
.subscribe-page .subscribe-section{margin:0 0 15px;padding:19px 21px 20px;border:1px solid var(--line-primary);border-radius:12px;background:var(--bg-card);box-shadow:0 8px 22px rgba(62,57,52,.035)}
.subscribe-page .subscribe-section-head{display:flex;align-items:center;gap:9px;margin-bottom:14px}
.subscribe-page .subscribe-section-head>svg{width:19px;height:19px;flex:0 0 auto;color:var(--accent-brown)}
.subscribe-page .subscribe-section-head h2{margin:0;color:var(--text-primary);font-size:16px;font-weight:650}
.subscribe-page .subscribe-section-note{margin-left:auto;color:var(--text-secondary);font-size:12px}
.subscribe-page .subscribe-feed-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:10px}
.subscribe-page .subscribe-feed{position:relative;min-width:0;padding:13px 14px 12px;border:1px solid var(--line-secondary);border-radius:8px;background:var(--bg-float)}
.subscribe-page .subscribe-feed-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
.subscribe-page .subscribe-feed h3{margin:0;color:var(--text-primary);font-size:14px;font-weight:650}
.subscribe-page .subscribe-feed-tag{padding:3px 6px;border-radius:4px;background:var(--bg-soft);color:var(--accent-brown);font-size:10px;white-space:nowrap}
.subscribe-page .subscribe-feed p{margin:0 0 7px;color:var(--text-secondary);font-size:12px;line-height:1.6}
.subscribe-page .subscribe-feed-row{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;min-width:0}
.subscribe-page .subscribe-feed-row>a{flex:1 1 auto;min-width:0;color:var(--accent-brown);font:11px/1.55 Arial,sans-serif;overflow-wrap:anywhere;text-decoration:none}
.subscribe-page .subscribe-feed-row>a:hover{text-decoration:underline}
.subscribe-page .subscribe-feed-row>a:focus-visible{outline:2px solid var(--accent-brown);outline-offset:2px;border-radius:3px}
.subscribe-page .subscribe-copy{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:24px;margin:0 0 0 auto;padding:2px 8px;border:1px solid var(--line-secondary);border-radius:6px;background:var(--bg-card);color:var(--accent-brown);font:inherit;font-size:12px;line-height:1.4;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .12s ease,color .12s ease,border-color .12s ease}
.subscribe-page .subscribe-copy:hover{border-color:var(--accent-brown)}
.subscribe-page .subscribe-copy:active{transform:translateY(1px)}
.subscribe-page .subscribe-copy:focus-visible{outline:2px solid var(--accent-brown);outline-offset:2px}
.subscribe-page .subscribe-copy.is-done{border-color:var(--accent-brown);background:var(--accent-brown);color:#fff}
:root[data-theme="dark"] .subscribe-page .subscribe-copy.is-done{color:#241a10}
.subscribe-page .subscribe-copy.is-fail{border-color:#c0392b;color:#c0392b}
.subscribe-page .subscribe-copy-msg.is-fail{color:#c0392b}
.subscribe-page .subscribe-copy-msg{min-height:0;margin:0;text-align:right;color:var(--text-secondary);font-size:12px}
.subscribe-page .subscribe-copy-msg:empty{display:none}
.subscribe-page .subscribe-email-desc{margin:-4px 0 13px;color:var(--text-secondary);font-size:13px;line-height:1.75}
.subscribe-page .subscribe-email-section .es-subscribe{width:100%;max-width:680px;margin:0 auto;padding:9px 11px;border:0;border-radius:8px;background:var(--bg-soft);box-shadow:none;text-align:left}
.subscribe-page .subscribe-email-section #email-subscribe-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;align-items:center}
.subscribe-page .subscribe-email-section .es-sub-head{display:none}
.subscribe-page .subscribe-email-section .es-sub-row{grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;width:100%;max-width:440px;margin:0}
.subscribe-page .subscribe-email-section .es-sub-row .list{min-width:0;border:1px solid var(--line-primary);border-radius:8px;background:var(--bg-card);transition:border-color .18s ease,box-shadow .18s ease}
.subscribe-page .subscribe-email-section .es-sub-row .list:focus-within{border-color:var(--control-hover-border);box-shadow:var(--control-hover-shadow)}
.subscribe-page .subscribe-email-section .es-sub-row input{display:block;width:100%;height:38px;padding:0 12px;border:0;border-radius:8px;outline:0;background:transparent;color:var(--text-primary);font:14px/1.5 var(--font-main)}
.subscribe-page .subscribe-email-section .es-sub-row input::placeholder{color:var(--text-muted)}
.subscribe-page .subscribe-email-section .es-sub-btn{min-width:76px;height:38px;padding:0 14px;border:1px solid var(--accent-brown);border-radius:8px;background:var(--accent-brown);color:#fff;font:600 14px/1 var(--font-main)!important;cursor:pointer;transition:background .18s ease,transform .18s ease}
.subscribe-page .subscribe-email-section .es-sub-btn:hover{transform:translateY(-1px);background:var(--accent-gold);border-color:var(--accent-gold)}
.subscribe-page .subscribe-email-section .es-sub-cap{grid-column:2;grid-row:2;justify-self:end;margin:0}
.subscribe-page .subscribe-email-section .es-sub-msg{grid-column:1/-1;min-height:0;margin:0;text-align:left}
.subscribe-page .subscribe-email-section .es-sub-msg:not(:empty){padding:9px 11px;border:1px solid var(--line-secondary);border-radius:8px;background:var(--bg-card)}
.subscribe-page .subscribe-notes{margin-bottom:0;padding-top:16px;padding-bottom:17px}
.subscribe-page .subscribe-notes .subscribe-section-head{margin-bottom:12px}
.subscribe-page .subscribe-note-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.subscribe-page .subscribe-note{min-width:0;padding:11px 12px 10px;border-left:2px solid var(--accent-brown);background:var(--bg-soft)}
.subscribe-page .subscribe-note h3{margin:0 0 5px;color:var(--text-primary);font-size:13px;font-weight:650}
.subscribe-page .subscribe-note p{margin:0;color:var(--text-secondary);font-size:11px;line-height:1.7}
:root[data-theme="dark"] .subscribe-page .subscribe-feed{background:var(--bg-page-alt)}
@media(max-width:375px){
 .subscribe-page .subscribe-feed-row{display:block}
 .subscribe-page .subscribe-copy{display:flex;width:max-content;margin:6px 0 0 auto}
}

@media(max-width:680px){
 .subscribe-page .subscribe-wrap{width:calc(100% + 40px);margin-left:-20px;margin-right:-20px;padding:10px 0 26px}
 .subscribe-page .subscribe-intro{margin-bottom:13px;font-size:12px}
 .subscribe-page .subscribe-section{margin-bottom:12px;padding:15px 13px 16px}
 .subscribe-page .subscribe-section-head{margin-bottom:11px}
 .subscribe-page .subscribe-section-note{font-size:11px}
 .subscribe-page .subscribe-feed-list{grid-template-columns:minmax(0,1fr);gap:8px}
 .subscribe-page .subscribe-feed{padding:10px 11px}
 .subscribe-page .subscribe-feed-top{margin-bottom:4px}
 .subscribe-page .subscribe-feed p{margin-bottom:3px}
 .subscribe-page .subscribe-feed-row{gap:4px 7px}
.subscribe-page .subscribe-copy{min-height:26px;padding:3px 9px}
 .subscribe-page .subscribe-email-desc{font-size:12px}
 .subscribe-page .subscribe-email-section .es-subscribe{padding:8px}
 .subscribe-page .subscribe-email-section #email-subscribe-form{grid-template-columns:minmax(0,1fr);gap:7px}
 .subscribe-page .subscribe-email-section .es-sub-row{grid-column:1;grid-row:auto;grid-template-columns:minmax(0,1fr) 76px;gap:7px;max-width:none}
 .subscribe-page .subscribe-email-section .es-sub-btn{width:76px;height:36px;padding:0 8px}
 .subscribe-page .subscribe-email-section .es-sub-cap{grid-column:1;grid-row:auto;justify-self:center;gap:7px;padding:4px 8px;font-size:12px}
 .subscribe-page .subscribe-notes{padding-top:14px;padding-bottom:14px}
 .subscribe-page .subscribe-notes .subscribe-section-head{margin-bottom:10px}
 .subscribe-page .subscribe-note-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .subscribe-page .subscribe-note{padding:9px 10px 8px}
 .subscribe-page .subscribe-note h3{margin-bottom:4px;font-size:12px}
 .subscribe-page .subscribe-note p{font-size:11px;line-height:1.6}
}

/* 单页标题栏：与留言榜单标题栏同款（白卡 + 线性图标 + 标题 + 分隔线 + 副标题） */
.page-hero{position:relative;display:flex;align-items:center;gap:12px;min-height:50px;margin:0 0 12px;padding:0 14px;border:1px solid var(--line-primary);border-radius:12px;background:var(--bg-card);box-shadow:0 10px 26px rgba(62,57,52,.036);overflow:hidden}
.page-hero-title{position:relative;z-index:1;display:grid;grid-template-columns:26px auto 1px minmax(0,1fr);grid-template-areas:"icon title line desc";align-items:center;gap:0 11px;min-width:0;width:100%;flex:1 1 auto}
.page-hero-icon{grid-area:icon;width:26px;height:26px;flex:0 0 auto;display:block;color:var(--accent-brown);stroke-width:1.8}
.page-hero-title h1{grid-area:title;margin:0;color:var(--text-primary);font-size:19px;line-height:1.2;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.page-hero-title i{grid-area:line;display:block;width:1px;height:15px;margin:0;background:var(--line-secondary);font-style:normal}
.page-hero-title span{grid-area:desc;min-width:0;margin:0;color:var(--text-secondary);font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.page-hero-title span.page-hero-icon{width:26px;height:26px;min-width:0;font-size:0;line-height:0;overflow:visible;white-space:nowrap}
/* 需要保留右侧按钮的页面（说说）*/
.page-hero > .ztj-publish-btn{flex:0 0 auto}
@media (max-width:680px){
.page-hero{min-height:56px;margin:0 0 10px;padding:8px 12px;border-radius:11px}
.page-hero-title{grid-template-columns:24px minmax(0,1fr);grid-template-areas:"icon title" "icon desc";column-gap:10px;row-gap:2px}
.page-hero-icon,
.page-hero-title span.page-hero-icon{width:24px;height:24px}
.page-hero-title i{display:none}
.page-hero-title span{font-size:11.5px;line-height:1.35;white-space:normal;overflow:visible;text-overflow:clip}
}
/* 手机端统一单页左右边距，与归档/状态/留言页一致（左右各 12px）*/
@media (max-width:680px){
.ztj-about-page .ztj-about-wrap,
.links-page .ztj-links-wrap,
.ztj-memos-main .ztj-memos-wrap,
.heart-comments-page .heart-wrap{width:calc(100% + 40px);max-width:none;margin-left:-20px;margin-right:-20px}
}


/* 统一单页标题条位置（2026-11-02）：归档页与留言榜单页对齐到 71px */
.guidang-page .page-hero{margin-top:2px}
.guestbook-page .rank-page-head{margin-top:0 !important}
@media (max-width:680px){
.guidang-page .page-hero{margin-top:0}
.guestbook-page .rank-title-bar{min-height:58px;padding:3px 12px;margin-bottom:10px}
}

main.guestbook-page {
    padding-top: 10px;
    --gb-text: #4e4439;
    --gb-sub: #8f8172;
    --gb-border: rgba(147, 116, 78, .14);
    --gb-icon: rgba(138, 96, 53, .68);
    --gb-shadow: 0 16px 38px rgba(76, 58, 39, .055);
    width: 100%;
}

:root[data-theme="dark"] main.guestbook-page {
    --gb-text: var(--text-body);
    --gb-sub: var(--text-secondary);
    --gb-border: rgba(85, 85, 85, .72);
    --gb-icon: var(--accent-brown);
}

.zm-gb-hero {
    position: relative;
    min-height: 62px;
    margin: 8px 0 18px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 14px;
    border: 1px solid var(--gb-border);
    background: linear-gradient(180deg, rgba(255, 253, 249, .88), rgba(255, 248, 239, .72));
    box-shadow: 0 12px 30px rgba(83, 62, 38, .045);
    overflow: hidden;
}

:root[data-theme="dark"] .zm-gb-hero {
    background: linear-gradient(135deg, rgba(42, 42, 42, .9), rgba(37, 37, 37, .76));
    box-shadow: var(--gb-shadow);
}

.zm-gb-hero::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, .50);
    pointer-events: none;
}

:root[data-theme="dark"] .zm-gb-hero::before {
    border-color: rgba(255, 255, 255, .08);
}

.zm-gb-hero-title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    width: 100%;
}
.zm-gb-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    background-color: var(--gb-icon);
    -webkit-mask: url("../static/images/comment.svg") center / contain no-repeat;
    mask: url("../static/images/comment.svg") center / contain no-repeat;
}

.zm-gb-hero-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 1;
}

.zm-gb-hero-title h1 {
    margin: 0;
    color: #3f352c;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
}

:root[data-theme="dark"] .zm-gb-hero-title h1 {
    color: var(--text-body);
}

.zm-gb-hero-copy>i {
    width: 1px;
    height: 16px;
    background: rgba(147, 116, 78, .18);
    font-style: normal;
    flex: 0 0 auto;
}

:root[data-theme="dark"] .zm-gb-hero-copy>i {
    background: var(--gb-border);
}

.zm-gb-hero-copy>span {
    color: var(--gb-sub);
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 800px) {
    .zm-gb-hero {
        min-height: 68px;
        margin: 6px 0 16px;
        padding: 12px 15px;
        border-radius: 13px;
    }

    .zm-gb-hero::before {
        border-radius: 12px;
    }

    .zm-gb-hero-title {
        gap: 12px;
    }

    .zm-gb-hero-copy {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        line-height: normal;
    }

    .zm-gb-hero-title h1 {
        font-size: 20px;
        line-height: 1.25;
    }

    .zm-gb-hero-copy>i {
        display: none;
    }

    .zm-gb-hero-copy>span {
        font-size: 12px;
        line-height: 1.45;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .zm-gb-icon {
        width: 28px;
        height: 28px;
    }
}

/* Comment form and list */

#comments,
#comments * {
    box-sizing: border-box;
}

#comments {
    margin-bottom: 40px;
    scroll-margin-top: 110px;
}

/* 评论邮件/回复里的 #comment-N 直达：别贴屏幕顶 */
.cat_comment_body,
.ztj-memo-card {
    scroll-margin-top: 12px;
}

#comments ul,
#comments li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#comments .respond {
    position: relative;
    z-index: 1300;
    display: block;
    margin: 24px 0;
}

#comments .cat_comment_respond_form {
    display: grid;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--line-primary);
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: 0 10px 28px rgba(62, 57, 52, .035);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

#comments .cat_comment_respond_form .card,
#comments .comment-form-btn-wrap .card {
    overflow: visible;
    word-break: normal;
}

#comments .cat_comment_respond_form .head {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

#comments .cat_comment_respond_form .head .list,
#comments .cat_comment_respond_form .body {
    border: 1px solid var(--line-secondary);
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#comments .cat_comment_respond_form .head .list:focus-within,
#comments .cat_comment_respond_form .body:focus-within,
#comments .tp-comment-captcha:focus-within {
    border-color: var(--control-hover-border);
    background: var(--control-bg);
    box-shadow: var(--control-hover-shadow);
}

#comments .cat_comment_respond_form input,
#comments .cat_comment_respond_form textarea {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-body);
    font: 14px/1.7 var(--font-main);
}

#comments .cat_comment_respond_form > * {
    min-width: 0;
}

#comments .cat_comment_respond_form .head input {
    height: 36px;
    padding: 0 12px;
}

#comments .cat_comment_respond_form .body {
    padding: 0;
}

#comments .cat_comment_respond_form .Comment_Textarea {
    display: block;
    min-height: 92px;
    padding: 11px 12px;
    resize: vertical;
}

#comments .cat_comment_respond_form input::placeholder,
#comments .cat_comment_respond_form textarea::placeholder {
    color: var(--text-muted);
}

#comments .comment-form-btn-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#comments .comment-form-btn-wrap .right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#comments .tp-comment-captcha {
    display: inline-flex;
    flex: 1 1 138px;
    align-items: center;
    width: 138px;
    min-width: 0;
    max-width: 138px;
    height: 34px;
    border: 1px solid var(--control-border);
    border-radius: 8px;
    background: var(--control-bg);
    box-shadow: var(--control-shadow);
    overflow: hidden;
}

#comments .tp-comment-captcha-input {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 100%;
    padding: 0 6px;
    font-size: 13px;
    line-height: 32px;
    text-transform: lowercase;
}

#comments .tp-comment-captcha-code {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48%;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 100%;
    padding: 0;
    border-left: 1px solid var(--control-border);
    background: radial-gradient(circle at 10px 8px, color-mix(in srgb, var(--accent-brown) 16%, transparent) 0 1px, transparent 1.4px), radial-gradient(circle at 38px 23px, color-mix(in srgb, var(--accent-brown) 12%, transparent) 0 1px, transparent 1.4px), linear-gradient(180deg, var(--control-bg), var(--control-hover-bg));
    color: var(--control-text);
    cursor: pointer;
    font: italic 700 15px/32px Consolas, "Courier New", monospace;
    letter-spacing: 2.5px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, .8), -1px 0 0 rgba(171, 59, 58, .16);
    user-select: none;
}

#comments .tp-comment-captcha-code:hover {
    background: var(--control-hover-bg);
    color: var(--control-hover-text);
    filter: contrast(1.08) saturate(1.08);
}

#comments .tp-comment-captcha-code img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 520px) {
    #comments .comment-form-btn-wrap {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    #comments .comment-form-btn-wrap .right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }

    #comments .tp-comment-captcha {
        flex: 0 0 auto;
        width: 138px;
        max-width: 138px;
    }

    #comments .tp-comment-captcha-code {
        flex: 0 0 72px;
    }
}

.tp-puzzle-lock {
    overflow: hidden;
}

.tp-puzzle-modal {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.tp-puzzle-modal[hidden] {
    display: none !important;
}

.tp-puzzle-mask {
    position: absolute;
    inset: 0;
    background: rgba(32, 25, 18, .18);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tp-puzzle-dialog {
    position: relative;
    width: min(380px, calc(100vw - 28px));
    padding: 18px 16px 16px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffbf5 0%, #fbf5eb 100%);
    box-shadow: 0 22px 48px rgba(70, 52, 35, .22);
    color: #4f4034;
    overflow: hidden;
}

.tp-puzzle-dialog::before,
.tp-puzzle-dialog::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.tp-puzzle-dialog::before {
    inset: 0;
    background: radial-gradient(circle, rgba(125, 101, 75, .12) 0 1.1px, transparent 1.4px) 40px 42px / 48px 48px, radial-gradient(circle, rgba(125, 101, 75, .08) 0 1px, transparent 1.4px) 18px 10px / 72px 72px;
    opacity: .65;
}

.tp-puzzle-dialog::after {
    display: none;
}

.tp-puzzle-close {
    position: absolute;
    right: 12px;
    top: 8px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #745231;
    cursor: pointer;
    font: 26px/24px Arial, sans-serif;
}

.tp-puzzle-head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 14px;
    text-align: center;
}

.tp-puzzle-head strong {
    margin-top: 8px;
    color: #3f332a;
    font: 800 22px/1.15 var(--font-main);
}

.tp-puzzle-head em {
    margin-top: 8px;
    color: #ad9f91;
    font: 700 14px/1.2 var(--font-main);
    font-style: normal;
}

.tp-puzzle-shield {
    width: 30px;
    height: 30px;
    fill: #6E4F2F;
}

.tp-puzzle-stage {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(205, 190, 172, .72);
    box-shadow: 0 10px 24px rgba(92, 68, 45, .08);
}

.tp-puzzle-bg {
    position: relative;
    aspect-ratio: 332 / 158;
    min-height: 150px;
    background: linear-gradient(rgba(255, 251, 245, .08), rgba(55, 48, 39, .08)), url("../static/images/captcha_bg.png") center / cover no-repeat;
}

.tp-puzzle-hole,
.tp-puzzle-piece {
    --tp-puzzle-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='black' d='M20 20H39C36 8 44 0 54 0S72 8 69 20H80Q92 20 92 32V84Q92 96 80 96H20Q8 96 8 84V70C24 73 36 63 36 54S24 35 8 38V32Q8 20 20 20Z'/%3E%3C/svg%3E");
    position: absolute;
    width: 66px;
    aspect-ratio: 1;
    border-radius: 8px;
    background: rgba(255, 255, 255, .98);
    -webkit-mask: var(--tp-puzzle-shape) center / 100% 100% no-repeat;
    mask: var(--tp-puzzle-shape) center / 100% 100% no-repeat;
}

.tp-puzzle-hole::after,
.tp-puzzle-piece::after {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: 1;
    pointer-events: none;
    background: var(--tp-puzzle-fill);
    border-radius: 6px;
    -webkit-mask: var(--tp-puzzle-shape) center / 100% 100% no-repeat;
    mask: var(--tp-puzzle-shape) center / 100% 100% no-repeat;
}

.tp-puzzle-hole {
    --tp-puzzle-fill: linear-gradient(rgba(52, 48, 41, .82), rgba(52, 48, 41, .82)), url("../static/images/captcha_bg.png") calc(var(--puzzle-x, 0px) * -1) calc(var(--puzzle-y, 0px) * -1) / var(--stage-width, 332px) var(--stage-height, 158px) no-repeat;
    filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 1)) drop-shadow(1px 0 0 rgba(255, 255, 255, 1)) drop-shadow(0 1px 0 rgba(255, 255, 255, 1)) drop-shadow(-1px 0 0 rgba(255, 255, 255, 1)) drop-shadow(0 0 4px rgba(255, 255, 255, .9)) drop-shadow(0 6px 10px rgba(40, 32, 24, .28));
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .9), inset 0 12px 18px rgba(255, 255, 255, .1), inset 0 -12px 18px rgba(28, 24, 20, .18);
}

.tp-puzzle-piece {
    --tp-puzzle-fill: linear-gradient(rgba(226, 217, 201, .88), rgba(194, 181, 160, .88)), url("../static/images/captcha_bg.png") calc(var(--puzzle-x, 0px) * -1) calc(var(--puzzle-y, 0px) * -1) / var(--stage-width, 332px) var(--stage-height, 158px) no-repeat;
    filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 1)) drop-shadow(1px 0 0 rgba(255, 255, 255, 1)) drop-shadow(0 1px 0 rgba(255, 255, 255, 1)) drop-shadow(-1px 0 0 rgba(255, 255, 255, 1)) drop-shadow(0 0 4px rgba(255, 255, 255, .95)) drop-shadow(0 7px 12px rgba(61, 46, 33, .22));
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .96), inset 0 12px 18px rgba(255, 255, 255, .22), inset 0 -14px 20px rgba(111, 91, 65, .16);
    cursor: grab;
    touch-action: none;
}

.tp-puzzle-captcha.is-dragging .tp-puzzle-piece {
    cursor: grabbing;
}

.tp-puzzle-refresh {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 250, 241, .9);
    color: #5d4731;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(76, 55, 36, .13), inset 0 1px 0 rgba(255, 255, 255, .95);
}

.tp-puzzle-refresh svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tp-puzzle-slider {
    position: relative;
    z-index: 1;
    height: 34px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(255, 252, 246, .78);
    box-shadow: inset 0 0 0 1px rgba(221, 207, 190, .82), inset 0 2px 6px rgba(101, 76, 52, .05);
    overflow: hidden;
    user-select: none;
}

.tp-puzzle-slider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: var(--puzzle-error-width, 0);
    height: 100%;
    background: rgba(255, 78, 66, .34);
    opacity: 0;
}

.tp-puzzle-track-text {
    display: block;
    padding-left: 42px;
    color: #b8ab9d;
    font-size: 12px;
    font-weight: 600;
    line-height: 34px;
    text-align: center;
}

.tp-puzzle-handle {
    position: absolute;
    left: 0;
    top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 30px;
    border: 1px solid rgba(225, 214, 199, .86);
    border-radius: 999px;
    background: #fffdf9;
    box-shadow: 0 5px 12px rgba(91, 68, 49, .1);
    cursor: grab;
    touch-action: none;
    transform: translateX(-50%);
}

.tp-puzzle-handle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #7d634c;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.tp-puzzle-handle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    opacity: 0;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, transparent 40%, #fff 41% 59%, transparent 60%), linear-gradient(-45deg, transparent 40%, #fff 41% 59%, transparent 60%);
}

.tp-puzzle-captcha.is-dragging .tp-puzzle-handle {
    cursor: grabbing;
}

.tp-puzzle-captcha.is-error .tp-puzzle-slider {
    background: var(--bg-soft);
    box-shadow: inset 0 0 0 1px rgba(255, 78, 66, .68), 0 0 0 3px rgba(255, 78, 66, .08);
}

.tp-puzzle-captcha.is-error .tp-puzzle-slider::before,
.tp-puzzle-captcha.is-error .tp-puzzle-handle::after {
    opacity: 1;
}

.tp-puzzle-captcha.is-error .tp-puzzle-handle {
    width: 38px;
    border-color: #ff594d;
    background: #ff594d;
    box-shadow: none;
}

.tp-puzzle-captcha.is-error .tp-puzzle-handle svg {
    opacity: 0;
}

.tp-puzzle-captcha.is-verified .tp-puzzle-slider {
    background: var(--bg-soft);
    box-shadow: inset 0 0 0 1px rgba(107, 156, 101, .46);
}

@media (max-width: 380px) {
    .tp-puzzle-dialog {
        width: min(330px, calc(100vw - 20px));
        padding: 16px 12px 14px;
    }
    .tp-puzzle-head strong {
        font-size: 20px;
    }
    .tp-puzzle-head em,
    .tp-puzzle-track-text {
        font-size: 12px;
    }
    .tp-puzzle-bg {
        min-height: 136px;
    }
    .tp-puzzle-slider {
        height: 34px;
        margin-top: 12px;
    }
    .tp-puzzle-track-text {
        padding-left: 42px;
        line-height: 34px;
    }
    .tp-puzzle-handle {
        top: 2px;
        width: 42px;
        height: 30px;
    }
    .tp-puzzle-handle svg {
        width: 16px;
        height: 16px;
    }
    .tp-puzzle-refresh {
        width: 32px;
        height: 32px;
    }
    .tp-puzzle-refresh svg {
        width: 18px;
        height: 18px;
    }
}

#comments .comment-form-btn-wrap .tp-emoji-picker {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-secondary);
    border-radius: 50%;
    background: var(--bg-soft) !important;
    color: var(--accent-brown);
    cursor: pointer;
    font-family: emoji, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 18px;
    line-height: 1;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

#comments .comment-form-btn-wrap .tp-emoji-picker:hover,
#comments .comment-form-btn-wrap .tp-emoji-picker:focus-visible,
#comments .comment-form-btn-wrap .tp-emoji-picker.is-open {
    border-color: var(--accent-brown);
    background: var(--bg-soft) !important;
    color: var(--accent-brown);
    transform: translateY(-1px);
    outline: 0;
}#comments .comment-form-btn-wrap .tp-emoji-picker.is-open .tp-emoji-panel {
    display: grid !important;
}#comments .send_anniu_style,
#comments .comment-form-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--control-border);
    border-radius: 8px;
    background: var(--control-bg);
    box-shadow: var(--control-shadow);
    color: var(--control-text);
    cursor: pointer;
    font-size: 13px;
    line-height: 34px;
    white-space: nowrap;
    overflow: visible;
    transition: all .2s ease;
}
/* 作者样式里的 display 会盖掉 UA 的 [hidden]{display:none}：
   「放弃」按钮平时带 hidden 却照样显示，腾不出位置还误导人 */
#comments .comment-form-cancel[hidden] { display: none !important; }


#comments .comment-form-cancel {
    background: var(--control-bg);
    color: var(--text-secondary);
}

#comments #cancel-comment-reply-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

#comments .send_anniu_style:hover,
#comments .comment-form-cancel:hover {
    border-color: var(--control-hover-border);
    background: var(--control-hover-bg);
    box-shadow: var(--control-hover-shadow);
    color: var(--control-hover-text);
}

:root[data-theme="dark"] #comments .send_anniu_style,
:root[data-theme="dark"] #comments .send_anniu_style:hover {
    color: var(--text-body);
}

.tp-heart-confirm-mask {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: color-mix(in srgb, var(--line-primary) 34%, transparent);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .18s ease;
}

.tp-heart-confirm-mask.is-show {
    opacity: 1;
}

.tp-heart-confirm {
    position: relative;
    width: min(300px, calc(100vw - 48px));
    min-height: 148px;
    padding: 14px 22px 16px;
    border: 1px solid color-mix(in srgb, var(--accent-gold) 38%, transparent);
    border-radius: 12px;
    background: url("../static/images/dialog_bg.png") right bottom / 74px auto no-repeat, linear-gradient(135deg, var(--bg-card), var(--bg-soft));
    box-shadow: 0 12px 30px rgba(84, 55, 30, .18), inset 0 1px 0 rgba(255, 255, 255, .72);
    color: #6D4B32;
    transform: translateY(8px) scale(.98);
    transition: transform .18s ease;
}

.tp-heart-confirm-mask.is-show .tp-heart-confirm {
    transform: translateY(0) scale(1);
}

.tp-heart-confirm-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8A5D37;
    cursor: pointer;
}

.tp-heart-confirm-close::before,
.tp-heart-confirm-close::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 10px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
}

.tp-heart-confirm-close::before {
    transform: rotate(45deg);
}

.tp-heart-confirm-close::after {
    transform: rotate(-45deg);
}

.tp-heart-confirm-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 20px 16px;
    color: #6E4828;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}

.tp-heart-confirm-title span {
    width: 5px;
    height: 5px;
    background: #B47C45;
    transform: rotate(45deg);
}

.tp-heart-confirm-body {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.tp-heart-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid color-mix(in srgb, var(--accent-gold) 36%, transparent);
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: 0 5px 12px rgba(116, 74, 35, .08);
    color: #D06B35;
    font: 700 20px/1 Georgia, serif;
}

.tp-heart-confirm-body p {
    margin: 0;
    color: #6D4B32;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
}

.tp-heart-confirm-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    padding-right: 0;
}

.tp-heart-confirm-btn {
    min-width: 64px;
    height: 24px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--accent-red) 74%, transparent);
    border-radius: 5px;
    background: var(--bg-card);
    color: #9B5A36;
    cursor: pointer;
    font-size: 12px;
    line-height: 22px;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.tp-heart-confirm-btn.is-ok {
    background: #C86135;
    color: #FFF8EC;
    box-shadow: 0 5px 12px rgba(198, 97, 53, .2);
}

.tp-heart-confirm-btn:hover,
.tp-heart-confirm-btn:focus-visible {
    background: #B7532C;
    color: #FFF8EC;
    outline: 0;
}

#comments .tp-comment-panel {
    margin-top: 26px;
    padding: 18px 22px;
    border: 1px solid var(--line-primary);
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: 0 10px 28px rgba(62, 57, 52, .045);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

#comments .tp-comment-head,
#comments .tp-comment-title-wrap,
#comments .tp-comment-meta,
#comments .tp-comment-foot,
#comments .tp-comment-actions,
#comments .tp-comment-from,
#comments .tp-comment-from>span,
#comments .tp-heart-action,
#comments .tp-reply-action {
    display: flex;
    align-items: center;
}

#comments .tp-comment-head {
    gap: 16px;
}

#comments .tp-comment-title-wrap {
    gap: 10px;
    min-width: 0;
}

#comments .tp-comment-title-mark {
    display: inline-block;
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    background-color: var(--accent-brown);
    -webkit-mask: url("../static/images/comment.svg") center / contain no-repeat;
    mask: url("../static/images/comment.svg") center / contain no-repeat;
    opacity: .9;
}

#comments .tp-comment-title-mark::after {
    display: none;
    content: none;
}

#comments .comments-list-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

#comments .tp-comment-count {
    color: var(--text-secondary);
    font-size: 13px;
}

#comments .comment-list {
    display: grid;
    gap: 0;
}

#comments .comment-list>.tp-comment-item {
    padding: 13px 0 15px;
    border-bottom: 0;
}

#comments .tp-comment-card {
    position: relative;
}

#comments .tp-comment-main {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 5px;
    align-items: start;
}

#comments .tp-comment-avatar-wrap .avatar,
#comments .avatar {
    display: block;
    width: 30px !important;
    height: 30px !important;
    border: 1px solid var(--line-secondary);
    border-radius: 50%;
    background: var(--bg-soft);
    object-fit: cover;
}

#comments .tp-comment-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "top top" "text text" "foot actions";
    column-gap: 16px;
    min-width: 0;
}

#comments .tp-comment-top {
    grid-area: top;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

#comments .tp-comment-meta {
    flex-wrap: wrap;
    gap: 4px 8px;
    min-height: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 20px;
}

#comments .tp-comment-author,
#comments .tp-comment-author a {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

#comments .tp-comment-author a:hover {
    color: var(--accent-brown);
}

#comments .tp-comment-level,
#comments .commentapprove {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border: 1px solid color-mix(in srgb, var(--ink-decor) 26%, transparent);
    border-radius: 4px;
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 18px;
}

#comments .commentapprove.tp-comment-level {
    border-color: color-mix(in srgb, var(--accent-brown) 18%, transparent);
    background: var(--accent-brown);
    box-shadow: 0 4px 10px rgba(74, 48, 25, .12);
    color: #FFF8EC;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(50, 32, 16, .2);
}

#comments .commentapprove.comment-level {
    border-color: color-mix(in srgb, var(--accent-brown) 16%, transparent);
    background: var(--accent-brown);
    box-shadow: 0 4px 10px rgba(74, 48, 25, .08);
    color: #FFF8EC;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(50, 32, 16, .16);
}

:root[data-theme="dark"] #comments .commentapprove.comment-level,
:root[data-theme="dark"] #comments .commentapprove.tp-comment-level {
    color: #fff;
}

#comments .tp-pin-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 8px;
    margin-left: 4px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent-brown) 22%, transparent);
    background: color-mix(in srgb, var(--accent-brown) 10%, transparent);
    color: var(--accent-brown);
    font-size: 11px;
    line-height: 18px;
}

#comments .tp-heart-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent-red) 14%, transparent);
    background: color-mix(in srgb, var(--accent-red) 8%, transparent);
    color: #9b4a38;
    font-size: 11px;
    line-height: 18px;
}

#comments .tp-comment-text {
    grid-area: text;
    margin-top: 4px;
    color: #222;
    font-size: 16px;
    line-height: 1.58;
    word-break: break-word;
}

:root[data-theme="dark"] #comments .tp-comment-text,
:root[data-theme="dark"] #comments .tp-comment-text * {
    color: var(--text-body);
}

#comments .tp-comment-text p {
    margin: 0 0 6px;
}

#comments .tp-comment-text p:last-child {
    margin-bottom: 0;
}

#comments .comment-list-item-relation,
#comments .tp-comment-time,
#comments .tp-comment-from {
    color: #B4ACA4;
}

/* @某人 与后面正文之间留一口气 */
#comments .comment-list-item-relation {
    margin-right: .25em;
}

#comments .tp-comment-foot {
    grid-area: foot;
    gap: 0;
    min-height: 22px;
    margin-top: 6px;
    font-size: 13px;
    line-height: 22px;
}

:root[data-theme="dark"] #comments .tp-comment-foot,
:root[data-theme="dark"] #comments .tp-comment-foot * {
    color: #888a8f !important;
}

#comments .tp-comment-from {
    flex-wrap: wrap;
    gap: 0;
    min-width: 0;
    font-size: 13px;
}

#comments .tp-comment-from:empty {
    display: none;
}

#comments .tp-comment-from>span {
    max-width: 100%;
}

#comments .tp-comment-location,
#comments .tp-comment-location * {
    color: inherit !important;
}

#comments .tp-comment-from>span::before {
    content: "\00b7";
    margin: 0 5px;
}

#comments .tp-comment-from img,
#comments .tp-comment-from svg,
#comments .tp-comment-from .icon,
#comments .tp-comment-from i {
    display: inline-block;
    width: 15px !important;
    height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    margin: 0 3px;
    object-fit: contain;
    vertical-align: -2px;
    opacity: .58;
}

#comments .tp-comment-from svg {
    flex: 0 0 15px;
}

#comments .comment-waiting {
    margin-bottom: 6px;
    color: var(--accent-red);
    font-size: 13px;
}

#comments .tp-comment-actions {
    grid-area: actions;
    justify-content: flex-end;
    gap: 13px;
    min-height: 22px;
    margin-top: 6px;
    white-space: nowrap;
}

#comments .tp-heart-action,
#comments .tp-reply-action {
    justify-content: center;
    position: relative;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font: 13px/22px var(--font-main);
    font-weight: 400;
    text-decoration: none;
    text-shadow: none;
    transition: color .2s ease;
}

#comments .tp-heart-action::before {
    content: "\2661";
    margin-right: 4px;
    font-size: 17px;
    line-height: 1;
}

#comments .tp-heart-action.is-active::before {
    content: "\2665";
    color: var(--accent-red);
}

#comments .tp-heart-action.is-active {
    color: var(--accent-red);
}

#comments .tp-reply-action::before {
    content: "";
    width: 14px;
    height: 14px;
    margin-right: 4px;
    background-color: currentColor;
    -webkit-mask: url("../static/images/comment.svg") center / contain no-repeat;
    mask: url("../static/images/comment.svg") center / contain no-repeat;
}

#comments .tp-comment-foot>.tp-reply-action {
    margin-left: 10px;
}

#comments .tp-reply-action span {
    color: inherit;
}

#comments .tp-heart-action:hover,
#comments .tp-reply-action:hover {
    color: var(--accent-brown);
    text-decoration: none;
    text-shadow: none;
}

#comments .comment-list>.tp-comment-item>.tp-comment-children {
    margin: 8px 0 0 20px;
    padding: 10px 14px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    background: transparent;
    overflow: visible;
}

#comments .tp-comment-item .respond,
#comments .tp-comment-item .cat_comment_respond_form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#comments .tp-comment-children .comment-list,
#comments .tp-comment-children .tp-comment-children,
#comments .tp-comment-children .tp-comment-item>.tp-comment-children {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

#comments .tp-comment-children .comment-list {
    margin: 0;
}

#comments .tp-comment-children .tp-comment-item {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

#comments .tp-comment-children .tp-comment-item+.tp-comment-item,
#comments .tp-comment-children .tp-comment-children .tp-comment-item {
    margin-top: 12px;
}

#comments .tp-comment-children .tp-comment-main {
    grid-template-columns: 30px minmax(0, 1fr);
}

#comments .tp-comment-children .avatar {
    width: 24px !important;
    height: 24px !important;
}

#comments .tp-comment-children .tp-comment-author,
#comments .tp-comment-children .tp-comment-author a {
    font-size: 14px;
}

#comments .tp-comment-children .tp-comment-text {
    font-size: 15px;
    line-height: 1.55;
}

#comments .comment-list-empty {
    margin: 20px 0 30px;
    padding: 18px 16px;
    border: 1px dashed var(--line-primary);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-secondary);
    text-align: center;
}

#comments .comment-list-empty-text {
    display: block;
    margin: 0;
}

#comments .comment-list-empty-image {
    display: block;
    width: min(100%, 260px);
    max-height: 150px;
    object-fit: contain;
    margin: 0 auto;
}

#comments .comment-pagination {
    margin: 40px 0 0;
}

/* 评论分页按钮：文章页不加载首页的 home.css，这里按首页那套观感补齐，
   否则 .home-pagination 只剩 ul/li 默认样式，会变成竖排的两行纯文字（2026-11-11） */
#comments .comment-pagination .home-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#comments .comment-pagination .home-pagination>li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#comments .comment-pagination .home-pagination li>a,
#comments .comment-pagination .home-pagination li>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    border: 1px solid var(--line-secondary);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-body);
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

#comments .comment-pagination .home-pagination li>a[href]:hover {
    border-color: var(--control-hover-border);
    background: var(--control-bg);
}

#comments .comment-pagination .home-pagination li.active>a {
    border-color: #8A7054;
    background: linear-gradient(145deg, #8D7254, #6C543B);
    color: #FFF8EC;
}

#comments .comment-pagination .home-pagination li:not(.active)>a:not([href]) {
    opacity: .5;
    cursor: not-allowed;
}

#comments .comment-pagination .home-pagination li.prev>a,
#comments .comment-pagination .home-pagination li.next>a {
    min-width: 64px;
}

#comments .comment-pagination .home-pagination li.zm-page-gap>span {
    min-width: 24px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
}

@media (max-width: 800px) {
    #comments .comment-list>.tp-comment-item>.tp-comment-children {
        margin-left: 0;
    }
    #comments .cat_comment_respond_form .head {
        grid-template-columns: 1fr;
    }
    #comments .tp-comment-head {
        align-items: flex-start;
        flex-direction: column;
    }
    #comments .comment-list-empty {
        margin: 16px 0 30px;
        padding: 12px;
    }
    #comments .comment-list-empty-image {
        width: min(100%, 210px);
        max-height: 116px;
    }
}

@media (max-width: 480px) {
    #comments .comment-list-empty {
        margin: 14px 0 30px;
        padding: 10px;
    }
    #comments .comment-list-empty-image {
        width: min(100%, 178px) !important;
        max-height: 96px !important;
    }}

#comments .comment-form-btn-wrap {
    position: relative;
    z-index: 60;
    overflow: visible;
}

#comments .comment-form-btn-wrap .tp-emoji-picker {
    z-index: 80;
}

#comments .comment-form-btn-wrap .tp-emoji-picker:hover,
#comments .comment-form-btn-wrap .tp-emoji-picker:focus-within,
#comments .comment-form-btn-wrap .tp-emoji-picker.is-open {
    z-index: 10020;
}@media (max-width: 480px) {
    #comments .comment-form-btn-wrap .tp-emoji-picker:hover,
    #comments .comment-form-btn-wrap .tp-emoji-picker:focus-within,
    #comments .comment-form-btn-wrap .tp-emoji-picker.is-open {
        transform: none !important;
    }}

/* 评论为空时主列不拉伸（原为 _comments.html 内联 <style>，2026-10-17 移到此处并加作用域） */
.main_screen:has(.comment-list-empty) > main{flex:0 0 auto!important;}

/* 楼层内回复：表单搬到被回复评论下方 */
#comments .tp-comment-form--inline {
    margin: 12px 0 18px;
    padding: 14px;
    border-radius: 12px;
    background: var(--bg-soft);
}
#comments .tp-comment-form--inline .top .list input { background: var(--bg-card); }
#comments .tp-reply-away {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--text-muted, #8c857c);
    cursor: pointer;
    user-select: none;
}
#comments .tp-reply-away:hover { color: var(--text-primary); }

/* 表情面板改为表单内占位展开（浮层会被后续楼层盖住） */
#comments .tp-comment-form .tp-emoji-panel {
    display: none;
    position: static;
    width: auto;
    max-width: none;
    max-height: 180px;
    margin: 10px 0 0;
    padding: 10px;
    border: 1px solid var(--line-primary);
    border-radius: 10px;
    background: var(--bg-card);
    grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
    gap: 6px;
    overflow-y: auto;
}
#comments .tp-comment-form .tp-emoji-panel.is-open { display: grid; }
#comments .tp-comment-form .tp-emoji-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font: 20px/1 emoji, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
#comments .tp-comment-form .tp-emoji-item:hover,
#comments .tp-comment-form .tp-emoji-item:focus-visible {
    background: var(--bg-soft);
    outline: 0;
}

/* 私人助理徽章（插件 ai-steward）：与博主徽章同尺寸，棕金渐变区分 */
#comments .commentapprove.ai-steward-badge {
    border-color: rgba(140, 108, 70, .42);
    background: linear-gradient(145deg, #8D7254, #6C543B);
    box-shadow: 0 4px 10px rgba(74, 48, 25, .14);
    color: #FFF8EC;
    font-weight: 600;
    letter-spacing: .06em;
    text-shadow: 0 1px 1px rgba(50, 32, 16, .18);
}

/* 手机端评论区排版收敛：脚部信息单行省略、嵌套回复用左边线代替卡片内缩 */
@media (max-width: 800px) {
    #comments .tp-comment-foot {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 2px 10px;
        font-size: 12.5px;
    }

    #comments .tp-comment-time {
        white-space: nowrap;
    }

    #comments .tp-comment-from {
        flex: 1 1 auto;
        min-width: 0;
        display: block;
    }

    #comments .tp-comment-from>span {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #comments .tp-comment-foot>.tp-reply-action {
        margin-left: 0;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    #comments .comment-list>.tp-comment-item>.tp-comment-children {
        margin: 10px 0 0 0;
        padding: 10px 0 0 12px;
        border: 0;
        border-left: 2px solid var(--line-soft);
        border-radius: 0;
    }

    /* 只有第一层画竖线；再往里的子回复不再叠加缩进和线条,
       否则三四层嵌套会排出一排竖线,正文宽度被挤掉一大截 */
    #comments .tp-comment-children .comment-list>.tp-comment-item>.tp-comment-children,
    #comments .tp-comment-children .tp-comment-children {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }

    #comments .tp-comment-children .tp-comment-item+.tp-comment-item {
        margin-top: 10px;
    }

    #comments .tp-comment-main {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 9px;
    }

    #comments .comment-list>.tp-comment-item+.tp-comment-item {
        padding-top: 14px;
        border-top: 1px solid var(--line-soft);
    }
}

/* ===== 我的评论（访客历史评论抽屉） ===== */
.zmo-my-comments{display:inline-flex;align-items:center;gap:6px;padding:0 10px;height:100%;min-height:28px;
  border:1px solid var(--line-primary);border-radius:6px;background:var(--bg-float);color:var(--accent-brown);
  font-size:12.5px;line-height:1.4;cursor:pointer;user-select:none;transition:background .18s ease,border-color .18s ease,color .18s ease}
.zmo-my-comments[hidden]{display:none}
.zmo-my-comments:hover{background:var(--bg-soft);border-color:var(--control-hover-border,var(--line-primary));color:var(--text-primary)}
.zmo-my-comments:focus-visible{outline:2px solid var(--accent-gold);outline-offset:2px}
.zmo-my-comments svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.zmo-mcm{position:fixed;inset:0;z-index:9000;display:flex;justify-content:flex-end}
.zmo-mcm[hidden]{display:none}
.zmo-mcm-backdrop{position:absolute;inset:0;background:rgba(30,27,24,.32);opacity:0;transition:opacity .2s ease}
body.zmo-mcm-open .zmo-mcm-backdrop{opacity:1}
.zmo-mcm-drawer{position:relative;width:430px;max-width:92vw;height:100%;display:flex;flex-direction:column;
  background:var(--bg-card);border-left:1px solid var(--line-secondary);box-shadow:-18px 0 44px rgba(62,57,52,.16);
  transform:translateX(100%);transition:transform .22s ease}
body.zmo-mcm-open .zmo-mcm-drawer{transform:translateX(0)}
.zmo-mcm-head{display:flex;align-items:center;gap:10px;padding:18px 20px 14px;border-bottom:1px solid var(--line-soft)}
.zmo-mcm-head h3{margin:0;font-size:15.5px;font-weight:650;color:var(--text-primary)}
.zmo-mcm-total{font-size:12px;color:var(--text-muted)}
.zmo-mcm-close{margin-left:auto;width:26px;height:26px;flex:0 0 auto;border:1px solid var(--line-primary);border-radius:6px;
  background:var(--bg-float);color:var(--text-secondary);font-size:15px;line-height:1;cursor:pointer}
.zmo-mcm-close:hover{background:var(--bg-soft);color:var(--text-primary)}
.zmo-mcm-list{flex:1 1 auto;min-height:0;overflow:auto;padding:6px 8px 4px;-webkit-overflow-scrolling:touch}
.zmo-mcm-item{display:block;padding:13px 12px;border-radius:8px;text-decoration:none;color:inherit;transition:background .16s ease}
.zmo-mcm-item:hover{background:var(--bg-soft)}
.zmo-mcm-item.is-gone{opacity:.6;cursor:default}
.zmo-mcm-item-title{font-size:13.5px;font-weight:600;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zmo-mcm-item-title::before{content:"";display:inline-block;width:3px;height:12px;margin-right:7px;border-radius:2px;
  background:var(--accent-brown);opacity:.75;vertical-align:-1px}
.zmo-mcm-item-date{margin:5px 0 4px;font-size:11.5px;color:var(--text-muted)}
.zmo-mcm-item-text{font-size:12.5px;line-height:1.7;color:var(--text-secondary);display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.zmo-mcm-empty{padding:26px 16px;text-align:center;font-size:12.5px;line-height:1.8;color:var(--text-muted)}
.zmo-mcm-more-wrap{padding:0 14px}
.zmo-mcm-more{display:block;width:100%;margin:4px 0 12px;padding:8px 0;border:1px solid var(--line-primary);border-radius:8px;
  background:var(--bg-float);color:var(--text-secondary);font-size:12.5px;cursor:pointer}
.zmo-mcm-more:hover{background:var(--bg-soft);color:var(--text-primary)}
.zmo-mcm-more[hidden]{display:none}
.zmo-mcm-foot{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:12px 20px;border-top:1px solid var(--line-soft);
  font-size:12px;color:var(--text-muted)}
.zmo-mcm-hint{margin-left:auto;text-align:right}

@media (max-width:640px){
  /* 手机上按钮行本来就挤（验证码+放弃+提交），这个入口只留图标，免得把「提交」挤到第二行 */
  .zmo-my-comments{padding:0 6px;gap:0;min-width:30px;justify-content:center}
  .zmo-my-comments-label{display:none}
  .zmo-my-comments svg{width:15px;height:15px}
  .zmo-mcm{justify-content:stretch}
  .zmo-mcm-drawer{width:100%;max-width:100%;border-left:0}
  .zmo-mcm-head{padding:14px 16px 12px}
  .zmo-mcm-foot{flex-wrap:wrap}
  .zmo-mcm-hint{margin-left:0;width:100%}
  .zmo-my-comments{font-size:12px;padding:0 8px}
}

/* tp-riven post page */

.post-title {
    font-size: 30px;
    padding-bottom: 15px;
}

.post-title-block {
    position: relative;
    margin: 14px 0 22px;
    padding: 4px 0 18px;
    border: 0;
    border-bottom: 1px solid var(--line-primary);
    text-align: center;
}

.post-title-block h1 {
    max-width: 760px;
    margin: 0 auto 12px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: clamp(22px, 3.4vw, 30px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.02em;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    width: 100%;
    padding: 2px 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 24px;
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.post-meta-item:not(:first-child)::before {
    content: "";
    width: 3px;
    height: 3px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--ink-decor);
}

.post-date-icon {
    position: relative;
    width: 14px;
    height: 14px;
    border: 1px solid var(--accent-brown);
    border-radius: 4px;
    opacity: .9;
}

.post-date-icon::before,
.post-date-icon::after {
    content: "";
    position: absolute;
    top: -3.5px;
    width: 2px;
    height: 5px;
    border-radius: 2px;
    background: var(--accent-brown);
}

.post-date-icon::before {
    left: 3px;
}

.post-date-icon::after {
    right: 3px;
}

.post-date-icon+time {
    color: var(--text-secondary);
    font-size: 13px;
}

.post-views-icon,
.post-meta-icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.post-meta-icon,
.post-meta-icon * {
    fill: none !important;
    stroke: currentColor !important;
}

:root[data-theme="dark"] .post-meta-icon,
:root[data-theme="dark"] .post-views-icon {
    color: var(--accent-brown);
}

.tp-post-article .post_content :not(pre)>code {
    border: 1px solid color-mix(in srgb, var(--accent-brown) 26%, var(--line-primary));
    border-radius: 3px;
    background: color-mix(in srgb, var(--accent-brown) 9%, var(--bg-soft));
    color: var(--accent-brown);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: .9em;
    line-height: 1.45;
    padding: 1px 5px;
}

:root[data-theme="dark"] .tp-post-article .post_content :not(pre)>code {
    border-color: color-mix(in srgb, var(--accent-gold) 36%, var(--line-primary));
    background: color-mix(in srgb, var(--accent-gold) 13%, var(--bg-soft));
    color: var(--accent-gold);
}

.post-edit-link {
    display: inline-flex;
    align-items: center;
    height: 24px;
    margin-left: 0;
    padding: 0 8px;
    border: 1px solid var(--control-border);
    border-radius: 999px;
    background: var(--control-bg);
    box-shadow: var(--control-shadow);
    color: var(--control-text);
    font-size: 12px;
}

.tp-post-article {
    color: var(--text-body);
    font-family: var(--font-main);
    font-size: clamp(15px, 1.8vw, 16px);
    line-height: 1.92;
}

.tp-post-article .post_content {
    width: 100%;
    max-width: none;
    margin: 8px 0 24px;
    padding: clamp(18px, 3vw, 28px) clamp(16px, 4vw, 36px) clamp(22px, 3.4vw, 32px);
    border: 1px solid var(--line-secondary);
    border-radius: clamp(12px, 1.8vw, 16px);
    background: var(--bg-card);
    box-shadow: 0 16px 42px rgba(62, 57, 52, 0.035);
    backdrop-filter: blur(1.2px);
    -webkit-backdrop-filter: blur(1.2px);
    color: var(--text-body);
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

.tp-post-article .post_content *,
.tp-post-article .post_content *::before,
.tp-post-article .post_content *::after {
    box-sizing: border-box;
}

.tp-post-article .post_content p {
    margin: 0 0 18px;
    color: var(--text-body);
    font-size: inherit;
    font-weight: 400;
    line-height: 1.92;
    letter-spacing: 0.01em;
    text-align: justify;
    word-break: normal;
}

body.tp-para-indent .tp-post-article .post_content p,
body.tp-paragraph-indent .tp-post-article .post_content p {
    text-indent: 2em;
}

.tp-post-article .post_content> :first-child {
    margin-top: 0;
}

.tp-post-article .post_content> :last-child {
    margin-bottom: 0;
}

.tp-post-article .post_content h1,
.tp-post-article .post_content h2,
.tp-post-article .post_content h3,
.tp-post-article .post_content h4,
.tp-post-article .post_content h5,
.tp-post-article .post_content h6 {
    clear: both;
    margin: 34px 0 14px;
    position: relative;
    padding: 0 0 9px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
}

.tp-post-article .post_content h1::before,
.tp-post-article .post_content h2::before,
.tp-post-article .post_content h3::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ink-decor), var(--accent-brown));
    transform: scaleX(1);
    transform-origin: left center;
    transition: transform .22s ease;
}

.tp-post-article .post_content h1::before {
    width: 52px;
    height: 3px;
}

.tp-post-article .post_content h2::before {
    width: 40px;
    height: 3px;
}

.tp-post-article .post_content h3::before {
    width: 25px;
    height: 2px;
}

.tp-post-article .post_content h1:hover::before,
.tp-post-article .post_content h2:hover::before,
.tp-post-article .post_content h3:hover::before {
    transform: scaleX(1.3);
}

.tp-post-article .post_content h1 {
    margin-top: 38px;
    font-size: 22px;
}

.tp-post-article .post_content h2 {
    font-size: 20px;
}

.tp-post-article .post_content h3 {
    font-size: 18px;
}

.tp-post-article .post_content h4 {
    font-size: 16px;
}

.tp-post-article .post_content h5 {
    font-size: 14px;
}

.tp-post-article .post_content h6 {
    color: var(--text-secondary);
    font-size: 12px;
}

.tp-post-article .post_content strong,
.tp-post-article .post_content b {
    color: var(--text-primary);
    font-weight: 700;
}

.tp-post-article .post_content em,
.tp-post-article .post_content i {
    color: var(--text-body);
    font-style: italic;
}

.tp-post-article .post_content del,
.tp-post-article .post_content s {
    text-decoration-line: line-through;
    text-decoration-color: color-mix(in srgb, var(--accent-brown) 78%, currentColor);
    text-decoration-thickness: 1.5px;
    text-decoration-skip-ink: none;
}

:root[data-theme="dark"] .tp-post-article .post_content del,
:root[data-theme="dark"] .tp-post-article .post_content s {
    text-decoration-color: color-mix(in srgb, var(--accent-brown) 90%, currentColor);
    text-decoration-thickness: 2px;
}

.tp-post-article .post_content mark {
    padding: 0 5px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--ink-decor) 24%, transparent);
    color: var(--text-primary);
}

.tp-post-article .post_content abbr[title] {
    border-bottom: 1px dotted var(--accent-brown);
    cursor: help;
    text-decoration: none;
}

.tp-post-article .post_content blockquote {
    margin: 22px 0;
    padding: 15px 18px 15px 22px;
    border: 1px solid color-mix(in srgb, var(--accent-brown) 42%, var(--line-primary));
    border-left: 5px solid var(--accent-brown);
    border-radius: 12px 8px 8px 12px;
    background: color-mix(in srgb, var(--accent-gold) 10%, var(--bg-card));
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.42), 0 8px 20px rgba(62, 57, 52, 0.045);
    color: var(--text-body);
    line-height: 1.9;
}

.tp-post-article .post_content blockquote p {
    margin: 0 0 10px;
}

.tp-post-article .post_content blockquote p:last-child {
    margin-bottom: 0;
}

.tp-post-article .post_content ul,
.tp-post-article .post_content ol {
    display: block;
    margin: 16px 0 20px;
    padding: 0 0 0 1.55em;
}

.tp-post-article .post_content ul {
    list-style: none;
}

.tp-post-article .post_content ol {
    counter-reset: tp-post-ol;
    list-style: none;
    padding-left: 1.85em;
}

.tp-post-article .post_content li {
    display: list-item;
    position: relative;
    margin: 7px 0;
    padding: 0 0 0 0.35em;
    color: var(--text-body);
    line-height: 1.86;
    letter-spacing: 0.01em;
    text-align: left;
    word-break: normal;
}

.tp-post-article .post_content ul>li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: -1.08em;
    width: 8px;
    height: 8px;
    border: 1px solid var(--accent-brown);
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-brown) 0 2px, var(--bg-card) 2.5px);
}

.tp-post-article .post_content ol>li {
    counter-increment: tp-post-ol;
}

.tp-post-article .post_content ol>li::before {
    content: counter(tp-post-ol);
    position: absolute;
    top: 0.28em;
    left: -1.95em;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid color-mix(in srgb, var(--accent-brown) 36%, transparent);
    border-radius: 50%;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
    box-shadow: 0 2px 5px rgba(92, 70, 48, .06), inset 0 0 0 1px rgba(255, 255, 255, .48);
    color: var(--accent-brown);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.tp-post-article .post_content li>ul,
.tp-post-article .post_content li>ol {
    margin: 6px 0 8px;
}

.tp-post-article .post_content input[type="checkbox"] {
    flex: 0 0 auto;
    position: relative;
    width: 16px;
    height: 16px;
    margin: 0 9px 0 0;
    border: 1px solid var(--line-secondary);
    border-radius: 4px;
    background: var(--bg-soft);
    appearance: none;
    -webkit-appearance: none;
    vertical-align: -2px;
}

.tp-post-article .post_content input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #4F88B7;
    border-bottom: 2px solid #4F88B7;
    transform: rotate(42deg);
}

.tp-post-article .post_content input[type="checkbox"]:checked {
    border-color: var(--accent-brown);
    background: var(--bg-soft);
}

.tp-post-article .post_content input[type="checkbox"]:checked::after {
    border-color: #6B975C;
}

.tp-post-article .post_content .contains-task-list,
.tp-post-article .post_content ul:has(.task-list-item) {
    padding-left: 0;
}

.tp-post-article .post_content .task-list-item,
.tp-post-article .post_content li:has(> input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding-left: 0;
    list-style: none;
}

.tp-post-article .post_content li:has(input[type="checkbox"])::before {
    display: none;
}

.tp-post-article .post_content .task-list-item-checkbox[disabled],
.tp-post-article .post_content input[type="checkbox"][disabled] {
    cursor: default;
    opacity: 1;
}

.tp-post-article .post_content hr {
    height: 1px;
    margin: 30px 0;
    padding: 0;
    border: 0;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-brown) 35%, transparent), transparent);
}

.tp-post-article .post_content code:not([class]),
.tp-post-article .post_content p code,
.tp-post-article .post_content li code,
.tp-post-article .post_content td code {
    margin: 0 2px;
    padding: 2px 6px;
    border: 1px solid var(--line-secondary);
    border-radius: 5px;
    background: var(--bg-soft);
    color: #7A4B3A;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.88em;
    font-weight: 500;
    letter-spacing: 0;
    vertical-align: baseline;
}

.tp-post-article .post_content div.code-toolbar {
    position: relative;
    margin: 24px 0;
    padding-top: 36px;
    border: 1px solid var(--text-secondary);
    border-radius: 10px;
    background: var(--bg-soft);
    box-shadow: 0 8px 24px rgba(62, 57, 52, 0.05);
    overflow: hidden;
}

.tp-post-article .post_content div.code-toolbar::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #DD5F58;
    box-shadow: 18px 0 #D9A94E, 36px 0 #6E9B73;
}

.tp-post-article .post_content div.code-toolbar>.toolbar {
    position: absolute;
    inset: 7px 10px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 22px;
    padding: 0;
    text-align: center;
    opacity: 1;
    pointer-events: none;
}

.tp-post-article .post_content div.code-toolbar>.toolbar .toolbar-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    color: #80756C;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    pointer-events: auto;
}

.tp-post-article .post_content div.code-toolbar>.toolbar button {
    position: absolute;
    top: 1px;
    right: 0;
    height: 20px;
    padding: 0 8px;
    border: 1px solid color-mix(in srgb, var(--accent-brown) 28%, transparent);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}

.tp-post-article .post_content div.code-toolbar>.toolbar button span {
    display: inline;
    color: inherit;
    font: inherit;
}

.tp-post-article .post_content div.code-toolbar>.toolbar button:hover {
    border-color: color-mix(in srgb, var(--accent-brown) 48%, transparent);
    color: var(--accent-brown);
}

.tp-post-article .post_content pre,
.tp-post-article .post_content pre[class*="language-"] {
    margin: 22px 0;
    padding: 16px 18px;
    border: 1px solid var(--line-secondary);
    border-radius: 10px;
    background: rgba(59, 53, 48, 0.94);
    box-shadow: 0 8px 24px rgba(80, 64, 48, 0.06);
    color: #F8F4ED;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.78;
    letter-spacing: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.tp-post-article .post_content div.code-toolbar>pre,
.tp-post-article .post_content div.code-toolbar>pre[class*="language-"] {
    margin: 0 10px 10px;
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--text-secondary) 36%, transparent);
    border-radius: 0 0 7px 7px;
    box-shadow: none;
}

.tp-post-article .post_content pre[class*="language-"] {
    scrollbar-width: thin;
    scrollbar-color: rgba(248, 244, 237, 0.38) rgba(255, 255, 255, 0.06);
}

.tp-post-article .post_content pre[class*="language-diff"],
.tp-post-article .post_content pre[class*="language-patch"] {
    line-height: 1.35;
}

.tp-post-article .post_content pre[class*="language-"]::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.tp-post-article .post_content pre[class*="language-"]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.tp-post-article .post_content pre[class*="language-"]::-webkit-scrollbar-thumb {
    background: rgba(248, 244, 237, 0.38);
    border-radius: 999px;
}

.tp-post-article .post_content pre code,
.tp-post-article .post_content pre[class*="language-"] code {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.tp-post-article .post_content pre[class*="language-"] .token.deleted,
.tp-post-article .post_content pre[class*="language-"] .token.tag,
.tp-post-article .post_content pre[class*="language-"] .token.attr-name,
.tp-post-article .post_content pre[class*="language-"] .token.keyword,
.tp-post-article .post_content pre[class*="language-"] .token.important,
.tp-post-article .post_content pre[class*="language-"] .token.selector,
.tp-post-article .post_content pre[class*="language-"] .token.function,
.tp-post-article .post_content pre[class*="language-"] .token.class-name,
.tp-post-article .post_content pre[class*="language-"] .token.property,
.tp-post-article .post_content pre[class*="language-"] .token.boolean,
.tp-post-article .post_content pre[class*="language-"] .token.number,
.tp-post-article .post_content pre[class*="language-"] .token.constant,
.tp-post-article .post_content pre[class*="language-"] .token.symbol {
    color: #FF7B72 !important;
}

.tp-post-article .post_content pre[class*="language-"].line-numbers {
    padding-left: 3.8em;
    max-height: 32rem;
}

.tp-post-article .post_content .line-numbers .line-numbers-rows {
    top: 0;
    left: -3.8em;
    border-right: 1px solid color-mix(in srgb, var(--bg-soft) 16%, transparent);
    background: transparent;
}

.tp-post-article .post_content .line-numbers-rows>span::before {
    color: color-mix(in srgb, var(--bg-soft) 45%, transparent);
    transform: translateY(-1px);
}

.tp-post-article .post_content table {
    width: 100%;
    margin: 22px 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    border: 1px solid var(--line-secondary);
    border-radius: 9px;
    background: var(--bg-card);
    overflow: hidden;
}

.tp-post-article .post_content iframe,
.tp-post-article .post_content video,
.tp-post-article .post_content embed,
.tp-post-article .post_content object {
    max-width: 100%;
}

.tp-post-article .post_content thead {
    background: var(--bg-soft);
    color: #3D3128;
}

.tp-post-article .post_content th,
.tp-post-article .post_content td {
    padding: 11px 14px;
    border-right: 1px solid var(--line-secondary);
    border-bottom: 1px solid var(--line-secondary);
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.68;
    text-align: left;
    vertical-align: top;
}

.tp-post-article .post_content th {
    color: #3B3028;
    font-weight: 600;
}

.tp-post-article .post_content th[align="center"],
.tp-post-article .post_content td[align="center"],
.tp-post-article .post_content th[style*="text-align:center"],
.tp-post-article .post_content td[style*="text-align:center"],
.tp-post-article .post_content th[style*="text-align: center"],
.tp-post-article .post_content td[style*="text-align: center"] {
    text-align: center !important;
}

.tp-post-article .post_content th[align="right"],
.tp-post-article .post_content td[align="right"],
.tp-post-article .post_content th[style*="text-align:right"],
.tp-post-article .post_content td[style*="text-align:right"],
.tp-post-article .post_content th[style*="text-align: right"],
.tp-post-article .post_content td[style*="text-align: right"] {
    text-align: right !important;
}

.tp-post-article .post_content tr> :last-child {
    border-right: 0;
}

.tp-post-article .post_content tbody tr:last-child>td {
    border-bottom: 0;
}

.tp-post-article .post_content tbody tr:nth-child(even) {
    background: var(--bg-card);
}

.tp-post-article .post_content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    border-radius: 8px;
}

.tp-post-article .post_content p:has(> img:only-child) {
    margin: 12px 0;
}

.tp-post-article .post_content figure {
    margin: 14px 0;
}

.tp-post-article .post_content figcaption {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.tp-post-article .post_content kbd {
    display: inline-block;
    min-width: 1.6em;
    padding: 1px 6px;
    border: 1px solid #D8C9B5;
    border-bottom-width: 2px;
    border-radius: 5px;
    background: #FCFAF6;
    color: #5B5148;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.82em;
    line-height: 1.5;
    text-align: center;
}

.tp-post-article .post_content sup {
    margin: 0 2px;
    color: var(--accent-brown);
    font-size: 0.75em;
}

.tp-post-article .post_content .footnotes,
.tp-post-article .post_content .footnotes-list {
    margin-top: 30px;
    padding-top: 14px;
    border-top: 1px solid var(--line-primary);
    color: var(--text-secondary);
    font-size: 14px;
}

.tp-post-article .post_content .footnotes ol {
    margin: 0;
}

.tp-post-article .post_content .footnotes>hr {
    display: none;
}

.tp-post-article .post_content details {
    margin: 20px 0;
    padding: 13px 15px;
    border: 1px solid var(--line-secondary);
    border-radius: 9px;
    background: var(--bg-card);
}

.tp-post-article .post_content summary {
    cursor: pointer;
    color: var(--accent-brown);
    font-weight: 500;
}

.tp-post-article .post_content .mx-hide-notice,
.tp-post-article .post_content .mx-hide-content,
.tp-post-article .post_content .card:not(cat_article_video) {
    display: block;
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid var(--line-secondary);
    border-radius: 9px;
    background: var(--bg-card);
    box-shadow: none;
    color: var(--text-body);
    text-align: left;
    text-indent: 0;
}

.tp-post-article .post_content .mx-hide-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.tp-post-article .post_content .mx-hide-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: #6C543B;
}

.tp-post-article .post_content .cat_container {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.tp-post-article .post_content .cat_container.grid2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tp-post-article .post_content .cat_container.grid3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-post-article .post_content .mx-photo-row {
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 12px 0;
    padding: 0;
}

.tp-post-article .post_content .mx-photo-item {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    padding: 0;
    border: 1px solid var(--line-secondary);
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: 0 6px 16px rgba(62, 57, 52, 0.035);
    overflow: hidden;
    transition: all .22s ease;
}

.tp-post-article .post_content .mx-photo-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}

.tp-post-article .post_content .mx-photo-row+.mx-photo-row {
    margin-top: -4px;
}

.tp-post-article .post_content .mx_notice {
    --notice-accent: #5470a6;
    --notice-bg: color-mix(in srgb, var(--notice-accent) 9%, var(--bg-card));
    --notice-border: color-mix(in srgb, var(--notice-accent) 28%, var(--line-secondary));
    align-items: flex-start;
    display: flex;
    gap: 11px;
    margin: 14px 0;
    padding: 12px 15px;
    border: 1px solid var(--notice-border);
    border-radius: 8px;
    background: var(--notice-bg);
    color: color-mix(in srgb, var(--notice-accent) 72%, var(--text-primary));
    font: 500 15px/1.8 var(--font-main);
}

.tp-post-article .post_content .mx_notice_icon {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin-top: 4px;
    color: var(--notice-accent);
    fill: color-mix(in srgb, var(--notice-accent) 16%, var(--bg-card));
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.tp-post-article .post_content .mx_notice_icon circle {
    stroke: currentColor;
    stroke-width: 1.6;
}

.tp-post-article .post_content .mx_notice_content {
    min-width: 0;
}

.tp-post-article .post_content .mx_notice_content> :last-child {
    margin-bottom: 0;
}

.tp-post-article .post_content .mx_notice+.mx_notice {
    margin-top: 10px;
}

.mx_timeline {
    position: relative;
    margin: 18px 0;
    padding-left: 10px;
}

.mx_timeline_card {
    padding: 24px 30px 26px;
}

.mx_timeline_card .mx_timeline {
    margin-top: 22px;
}

.mx_timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 9px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg, rgba(184, 135, 77, .38), rgba(184, 135, 77, .08));
}

.mx_timeline_item {
    position: relative;
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    padding: 0 0 20px;
}

.mx_timeline_item:last-child {
    padding-bottom: 0;
}

.mx_timeline_dot {
    position: absolute;
    left: -8px;
    top: 6px;
    width: 10px;
    height: 10px;
    border: 2px solid #b78c60;
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg-card) 80%, transparent);
}

.mx_timeline_time {
    margin-left: 10px;
    color: #8f7355;
    font: 500 13px/1.9 var(--font-main);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.mx_timeline_content {
    margin: 0;
    color: var(--text-primary);
    font: 400 14px/1.9 var(--font-main);
}

:root[data-theme="dark"] .mx_timeline_time,
:root[data-theme="dark"] .mx_timeline_content {
    color: var(--text-body);
}

.tp-post-article .post_content .mx_post_card {
    display: block;
    position: relative;
    width: 50%;
    margin: 16px auto;
    padding: 12px 12px 8px;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    background: color-mix(in srgb, var(--bg-card) 88%, #f1f1f1);
    color: var(--text-primary);
    text-decoration: none;
}

.tp-post-article .post_content .mx_post_card_badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-brown) 12%, var(--bg-card));
    color: var(--accent-brown);
    font: 600 11px/1.4 var(--font-main);
}

.tp-post-article .post_content .mx_post_card:hover {
    border-color: color-mix(in srgb, var(--accent-brown) 42%, var(--line-secondary));
}

.tp-post-article .post_content .mx_post_card_main {
    align-items: center;
    display: flex;
    gap: 12px;
}

.tp-post-article .post_content .mx_post_card_main>span {
    display: grid;
    flex: 1 1 auto;
    gap: 4px;
    min-width: 0;
    padding-right: 46px;
}

.tp-post-article .post_content .mx_post_card_icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent-brown) 12%, var(--bg-card));
    color: var(--accent-brown);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.tp-post-article .post_content .mx_post_card strong {
    display: block;
    color: var(--text-primary);
    font: 700 15px/1.5 var(--font-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-post-article .post_content .mx_post_card em,
.tp-post-article .post_content .mx_post_card small {
    color: var(--text-secondary);
    font: 500 12px/1.4 var(--font-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-post-article .post_content .mx_post_card em {
    display: block;
    min-width: 0;
}

.tp-post-article .post_content .mx_post_card small {
    display: block;
    margin-top: 10px;
    padding-top: 7px;
    border-top: 1px solid var(--line-soft);
}

.tp-post-article .post_content .mx_post_card small {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.tp-post-article .post_content .mx_post_card b,
.tp-post-article .post_content .mx_post_card time {
    color: inherit;
    font: inherit;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-post-article .post_content .mx_post_card time {
    flex: 0 0 auto;
    margin-left: 8px;
}

:root[data-theme="dark"] .tp-post-article .post_content .mx_post_card {
    background: color-mix(in srgb, var(--bg-card) 88%, var(--bg-soft));
    border-color: var(--line-primary);
}

.tp-post-article .post_content .mx_notice_red {
    --notice-accent: #b85249;
}

.tp-post-article .post_content .mx_notice_green {
    --notice-accent: #4f8a62;
}

.tp-post-article .post_content .mx_notice_orange {
    --notice-accent: #b77a32;
}

.tp-post-article .post_content .mx_notice_blue {
    --notice-accent: #4d78a8;
}

:root[data-theme="dark"] .tp-post-article .post_content .mx_notice {
    --notice-bg: color-mix(in srgb, var(--notice-accent) 18%, var(--bg-card));
    --notice-border: color-mix(in srgb, var(--notice-accent) 42%, var(--line-secondary));
    color: color-mix(in srgb, var(--notice-accent) 58%, var(--text-primary));
}

:root[data-theme="dark"] .tp-post-article .post_content .mx_notice_icon {
    fill: color-mix(in srgb, var(--notice-accent) 14%, var(--bg-card));
    stroke-width: 2.1;
}

:root[data-theme="dark"] .tp-post-article .post_content .mx_notice_red {
    --notice-accent: #e17970;
}

:root[data-theme="dark"] .tp-post-article .post_content .mx_notice_green {
    --notice-accent: #76b889;
}

:root[data-theme="dark"] .tp-post-article .post_content .mx_notice_orange {
    --notice-accent: #dfa052;
}

:root[data-theme="dark"] .tp-post-article .post_content .mx_notice_blue {
    --notice-accent: #78a7d6;
}

.tp-post-article .post_content .mx_download {
    display: block;
    width: 50%;
    margin: 16px auto;
    padding: 16px;
    border: 1px dashed color-mix(in srgb, var(--text-secondary) 55%, var(--line-secondary));
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg-card) 88%, #f2f2f2);
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: none;
    box-sizing: border-box;
}

.tp-post-article .post_content .mx_download_head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
}

.tp-post-article .post_content .mx_download_file {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.tp-post-article .post_content .mx_download_icon {
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--text-muted) 12%, var(--line-soft));
    color: color-mix(in srgb, var(--text-primary) 72%, var(--text-secondary));
    fill: none;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.tp-post-article .post_content .mx_download_name {
    color: inherit;
    font: 600 16px/1.45 var(--font-main);
    min-width: 0;
    overflow-wrap: anywhere;
}

.tp-post-article .post_content .mx_download_attrs {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.tp-post-article .post_content .mx_download_attr {
    align-items: baseline;
    color: var(--text-secondary);
    display: flex;
    font: 500 13px/1.5 var(--font-main);
    gap: 16px;
    justify-content: space-between;
    min-width: 0;
}

.tp-post-article .post_content .mx_download_attr_name,
.tp-post-article .post_content .mx_download_attr_value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tp-post-article .post_content .mx_download_attr_name {
    color: var(--text-secondary);
}

.tp-post-article .post_content .mx_download_attr_value {
    color: var(--text-secondary);
    flex: 0 1 auto;
    font-weight: 500;
    text-align: right;
}

.tp-post-article .post_content .mx_download_action {
    align-self: center;
    align-items: center;
    display: inline-flex;
    gap: 4px;
    justify-content: center;
    min-width: 78px;
    padding: 7px 10px;
    border-radius: 4px;
    background: color-mix(in srgb, #1e90ff 14%, var(--bg-card));
    color: #1e90ff;
    font: 700 13px/1 var(--font-main);
    text-decoration: none;
    white-space: nowrap;
}

.tp-post-article .post_content .mx_download_action:hover {
    background: color-mix(in srgb, #1e90ff 20%, var(--bg-card));
    color: #1e90ff;
}

.tp-post-article .post_content .mx_download_action_icon {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.6;
}

:root[data-theme="dark"] .tp-post-article .post_content .mx_download {
    background: color-mix(in srgb, var(--bg-card) 88%, var(--bg-soft));
    border-color: color-mix(in srgb, var(--text-secondary) 46%, var(--line-secondary));
}

@media (max-width: 560px) {
    .tp-post-article .post_content .mx_post_card {
        width: 100%;
    }
    .tp-post-article .post_content .mx_post_card_main>span {
        padding-right: 42px;
    }
    .mx_timeline {
        padding-left: 8px;
    }
    .mx_timeline_item {
        grid-template-columns: 104px minmax(0, 1fr);
        padding-bottom: 16px;
    }
    .mx_timeline_time {
        font-size: 12px;
    }
    .tp-post-article .post_content .mx_download {
        width: 100%;
        padding: 14px;
    }
    .tp-post-article .post_content .mx_download_head {
        gap: 12px;
    }
    .tp-post-article .post_content .mx_download_icon {
        width: 30px;
        height: 30px;
        padding: 8px;
    }
    .tp-post-article .post_content .mx_download_action {
        min-width: 72px;
        padding: 7px 9px;
    }
    .tp-post-article .post_content .mx_download_attr {
        gap: 12px;
    }
}

.tp-post-article .post_content .cat_collapse {
    margin: 20px 0;
    border: 1px solid color-mix(in srgb, var(--accent-brown) 26%, var(--line-secondary));
    border-radius: 8px;
    background: var(--bg-card);
    overflow: hidden;
}

.tp-post-article .post_content .collapse-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 11px 15px;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-brown) 18%, var(--line-secondary));
    background: color-mix(in srgb, var(--accent-gold) 10%, var(--bg-card));
    color: var(--accent-brown);
    font: 600 15px/22px var(--font-main);
    text-align: left;
    cursor: pointer;
    transition: background-color .2s ease;
}

.tp-post-article .post_content .collapse-btn:after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%221.5%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20color%3D%22%23000000%22%3E%0A%20%20%3Cpath%20d%3D%22M6%2013L12%2019L18%2013%22%20stroke%3D%22%23000000%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C/path%3E%0A%20%20%3Cpath%20d%3D%22M6%205L12%2011L18%205%22%20stroke%3D%22%23000000%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C/path%3E%0A%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform .2s ease;
}

.tp-post-article .post_content .collapse-btn:not(.collapsed):after {
    transform: rotate(-180deg);
}

.tp-post-article .post_content .collapse {
    max-height: 0;
    padding: 0 16px;
    background: transparent;
    opacity: 0;
    overflow: hidden;
    transition: max-height .28s ease, padding .28s ease, opacity .2s ease;
}

.tp-post-article .post_content .collapse.show,
.tp-post-article .post_content .cat_collapse.open .collapse {
    max-height: 1200px;
    padding: 14px 16px;
    opacity: 1;
}

.tp-post-article .post_content .cat_tabs {
    margin: 20px 0;
    border: 1px solid var(--line-secondary);
    border-radius: 10px;
    background: var(--bg-card);
    overflow: hidden;
}

.tp-post-article .post_content .cat_tab_nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 8px 10px 0;
    border-bottom: 1px solid var(--line-secondary);
    background: var(--bg-soft);
}

.tp-post-article .post_content .cat_tab_btn {
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--text-secondary);
    font: 600 14px/22px var(--font-main);
    padding: 7px 14px;
    cursor: pointer;
}

.tp-post-article .post_content .cat_tab_btn.active {
    border-color: var(--line-secondary);
    background: var(--bg-card);
    color: var(--accent-brown);
    transform: translateY(1px);
}

.tp-post-article .post_content .cat_tab_panel {
    display: none;
}

.tp-post-article .post_content .cat_tab_panel.active {
    display: block;
    padding: 18px 20px;
}

.tp-post-article .post_content .cat_tab_panel>p:empty {
    display: none;
}

.tp-post-article .post_content .cat_tab_panel div.code-toolbar {
    margin: 0;
}

.tp-post-article .post_content .cat_tab_panel div.code-toolbar>pre,
.tp-post-article .post_content .cat_tab_panel div.code-toolbar>pre[class*="language-"] {
    margin: 0;
}

.tp-post-article .post_content cat_article_video,
.tp-post-article .post_content .item_image {
    display: block;
    cursor: pointer;
}

.tp-post-article .post_content mx_music {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 22px;
    width: 100%;
    margin: 18px 0;
    padding: 18px 20px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-body);
}

.tp-post-article .post_content .mx-music-cover,
.tp-post-article .post_content .mx-music-play {
    appearance: none;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
}

.tp-post-article .post_content .mx-music-cover {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #2e2d30 0 11%, transparent 12%), radial-gradient(circle at 47% 42%, rgba(255, 255, 255, .38) 0 4%, transparent 5%), radial-gradient(circle at 60% 58%, #6d5f65 0 20%, #2c2b2f 21% 56%, #151518 57% 100%);
    box-shadow: 0 7px 16px rgba(31, 28, 26, .16);
}

.tp-post-article .post_content .mx-music-cover span {
    position: absolute;
    inset: 19px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a6b7c9, #76616e 55%, #292c35);
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22);
}

.tp-post-article .post_content .mx-music-cover span.has-cover {
    inset: 10px;
}

.tp-post-article .post_content mx_music.is-playing .mx-music-cover {
    animation: mx-music-spin 5s linear infinite;
}

.tp-post-article .post_content .mx-music-body {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.tp-post-article .post_content .mx-music-title {
    display: block;
    overflow: hidden;
    color: #2f435a;
    font-size: 14px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-post-article .post_content .mx-music-status {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-post-article .post_content .mx-music-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.tp-post-article .post_content .mx-music-progress {
    width: 100%;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(to right, #9b9b9b var(--mx-progress, 0%), #d5d5d5 0);
    cursor: pointer;
    appearance: none;
}

.tp-post-article .post_content .mx-music-progress::-webkit-slider-thumb {
    width: 0;
    height: 0;
    appearance: none;
}

.tp-post-article .post_content .mx-music-progress::-moz-range-thumb {
    width: 0;
    height: 0;
    border: 0;
}

.tp-post-article .post_content .mx-music-time {
    color: #9b9b9b;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.tp-post-article .post_content .mx-music-play {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #2f435a;
}

.tp-post-article .post_content .mx-music-play svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.tp-post-article .post_content mx_music.is-playing .mx-music-play svg path {
    d: path("M7 5h4v14H7zM13 5h4v14h-4z");
}

.tp-post-article .post_content mx_music audio {
    display: none;
}

.tp-post-article .post_content .mx-music-group {
    display: grid;
    gap: 0;
    margin: 18px 0;
    padding: 8px 18px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--bg-card);
}

.tp-post-article .post_content .mx-music-group-title {
    padding: 8px 0 10px;
    color: #2f435a;
    font-size: 15px;
    font-weight: 700;
}

.tp-post-article .post_content .mx-music-playlist-status {
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.tp-post-article .post_content .mx-music-playlist {
    max-height: 460px;
    overflow: auto;
    overscroll-behavior: contain;
}

.tp-post-article .post_content .mx-music-group mx_music {
    grid-template-columns: 44px minmax(0, 1fr) 30px;
    gap: 14px;
    margin: 0;
    padding: 10px 0;
    border: 0;
    border-top: 1px solid var(--line-soft);
    border-radius: 0;
    background: transparent;
}

.tp-post-article .post_content .mx-music-playlist mx_music:first-of-type {
    border-top: 0;
}

.tp-post-article .post_content .mx-music-group mx_music.is-playing {
    grid-template-columns: 64px minmax(0, 1fr) 34px;
    gap: 18px;
    margin: 8px 0;
    padding: 14px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(47, 67, 90, .045);
}

.tp-post-article .post_content .mx-music-group .mx-music-cover {
    width: 34px;
    height: 34px;
}

.tp-post-article .post_content .mx-music-group mx_music.is-playing .mx-music-cover {
    width: 56px;
    height: 56px;
}

.tp-post-article .post_content .mx-music-group .mx-music-cover span {
    inset: 10px;
}

.tp-post-article .post_content .mx-music-group .mx-music-cover span.has-cover {
    inset: 4px;
}

.tp-post-article .post_content .mx-music-group mx_music.is-playing .mx-music-cover span {
    inset: 15px;
}

.tp-post-article .post_content .mx-music-group mx_music.is-playing .mx-music-cover span.has-cover {
    inset: 7px;
}

.tp-post-article .post_content .mx-music-group .mx-music-body {
    gap: 8px;
}

.tp-post-article .post_content .mx-music-group mx_music.is-playing .mx-music-body {
    gap: 12px;
}

.tp-post-article .post_content .mx-music-group mx_music.is-playing .mx-music-title {
    font-size: 14px;
    font-weight: 700;
}

:root[data-theme="dark"] .tp-post-article .post_content mx_music {
    border-color: var(--line-primary);
    background: var(--bg-card);
}

:root[data-theme="dark"] .tp-post-article .post_content .mx-music-group {
    border-color: var(--line-primary);
    background: var(--bg-card);
}

:root[data-theme="dark"] .tp-post-article .post_content .mx-music-title,
:root[data-theme="dark"] .tp-post-article .post_content .mx-music-play,
:root[data-theme="dark"] .tp-post-article .post_content .mx-music-group-title {
    color: var(--text-primary);
}

@keyframes mx-music-spin {
    to {
        transform: rotate(360deg);
    }
}

.tp-post-article .post_content>.item_image {
    margin: 12px auto;
}

.tp-post-article .post_content .item_image img,
.tp-post-article .post_content .cat_container img {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    object-fit: cover;
    cursor: pointer;
    transition: filter .22s ease, transform .22s ease;
}

.tp-post-article .post_content .item_image:hover img {
    filter: brightness(.98);
    transform: translateY(-1px);
}

.tp-post-article .post_content cat_article_video iframe,
.tp-post-article .post_content cat_article_video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: rgba(47, 42, 38, 0.12);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.article-tags br {
    display: none;
}

.article-tags a {
    margin: 0;
    padding: 4px 12px;
    border: 1px solid var(--control-border);
    border-radius: 999px;
    background: var(--control-bg);
    box-shadow: var(--control-shadow);
    color: var(--control-text);
    font-size: 13px;
    line-height: 20px;
}

.article-tags a:hover {
    border-color: var(--control-hover-border);
    background: var(--control-hover-bg);
    box-shadow: var(--control-hover-shadow);
    color: var(--control-hover-text);
}

.post-near {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 18px;
}

.post-near-card {
    min-width: 0;
    min-height: 64px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--control-border);
    border-radius: 7px;
    background: var(--control-bg);
    box-shadow: var(--control-shadow);
    color: var(--control-text);
    transition: all .22s ease;
}

.post-near-card:hover {
    border-color: var(--control-hover-border);
    background: var(--control-hover-bg);
    box-shadow: var(--control-hover-shadow);
    color: var(--control-hover-text);
}

.post-near-next {
    grid-template-columns: minmax(0, 1fr) 34px;
    text-align: right;
}

.post-near-body {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.post-near-body strong {
    overflow: hidden;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-near-body small {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1;
}

.post-near-arrow {
    position: relative;
    width: 11px;
    height: 11px;
    margin: 0 auto;
    border-left: 2px solid var(--ink-decor);
    border-bottom: 2px solid var(--ink-decor);
    transform: rotate(45deg);
}

.post-near-next .post-near-arrow {
    border: 0;
    border-right: 2px solid var(--ink-decor);
    border-top: 2px solid var(--ink-decor);
    transform: rotate(45deg);
}

.post-near-card:hover .post-near-arrow {
    border-color: var(--accent-brown);
}

.post-near-card.is-disabled {
    opacity: .58;
    cursor: not-allowed;
    border-color: var(--control-disabled-border);
    background: var(--control-disabled-bg);
    box-shadow: var(--control-disabled-shadow);
    color: var(--control-disabled-text);
}

@media (max-width: 800px) {
    .main_screen {
        width: min(100% - 24px, var(--page-width));
    }
    .tp-post-article .post_content {
        max-width: none;
        margin-top: 6px;
    }
    .post-meta {
        gap: 6px 10px;
    }
    .tp-post-article .post_content table {
        display: table;
        width: 100%;
        min-width: 100%;
        table-layout: fixed;
        white-space: normal;
        overflow: hidden;
    }
    .tp-post-article .post_content th,
    .tp-post-article .post_content td {
        min-width: 0;
        padding: 9px 10px;
        white-space: normal;
        word-break: break-word;
    }
    .tp-post-article .post_content table:has(tr> :nth-child(5)) {
        display: block;
        min-width: 0;
        table-layout: auto;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .tp-post-article .post_content table:has(tr> :nth-child(5)) th,
    .tp-post-article .post_content table:has(tr> :nth-child(5)) td {
        min-width: 120px;
        white-space: nowrap;
        word-break: normal;
    }
    .tp-post-article .post_content .cat_container.grid2,
    .tp-post-article .post_content .cat_container.grid3 {
        grid-template-columns: 1fr 1fr;
    }
    .tp-post-article .post_content .mx-photo-row {
        overflow-x: visible;
        gap: 8px;
        flex-wrap: nowrap;
        padding-bottom: 0;
    }
    .tp-post-article .post_content .mx-photo-item {
        min-width: 0;
    }
    .post-near {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tp-post-article .post_content {
        overflow-x: hidden;
    }
    .tp-post-article .post_content div.code-toolbar {
        margin-left: -2px;
        margin-right: -2px;
    }
    .tp-post-article .post_content pre,
    .tp-post-article .post_content pre[class*="language-"] {
        font-size: 12px;
        line-height: 1.7;
    }
    .tp-post-article .post_content pre[class*="language-"].line-numbers {
        padding-left: 3.2em;
    }
    .tp-post-article .post_content blockquote {
        padding: 12px 14px 12px 16px;
        border-left-width: 4px;
        border-radius: 10px 7px 7px 10px;
    }
    .tp-post-article .post_content th,
    .tp-post-article .post_content td {
        padding: 8px;
    }
    .tp-post-article .post_content .cat_container.grid2,
    .tp-post-article .post_content .cat_container.grid3 {
        grid-template-columns: 1fr;
    }
    .tp-post-article .post_content .mx-photo-item {
        min-width: 0;
    }
    .tp-post-article .post_content .mx-photo-row {
        gap: 5px;
        margin: 8px 0;
    }
}

/* ===== 正文底部：发布/编辑 + 旧文提示（2026-10-16 加） ===== */
.post-updated { margin: 26px 0 4px; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--line-secondary); border-left: 3px solid var(--accent-gold); border-right: 3px solid var(--accent-gold); border-radius: 8px; font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.post-updated-main { display: flex; align-items: flex-start; gap: 8px; }
.post-updated-icon { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; fill: none; stroke: var(--accent-gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.post-updated time { color: var(--text-primary); font-weight: 600; }
.post-updated .pu-age { color: var(--accent-brown); font-weight: 600; }
.post-updated .pu-note { color: var(--text-muted); }

main.liuyan-rank-page {
    --rank-ink: var(--text-primary);
    --rank-text: var(--text-body);
    --rank-sub: var(--text-secondary);
    --rank-muted: var(--text-muted);
    --rank-line: var(--line-primary);
    --rank-line-soft: var(--line-secondary);
    --rank-paper: var(--bg-card);
    --rank-paper-soft: var(--bg-soft);
    --rank-accent: var(--accent-brown);
    --rank-gold: var(--accent-gold);
    --rank-red: var(--accent-red);
    --rank-avatar-size: 78px;
    --rank-first-avatar-size: 86px;
    --rank-list-avatar-size: 42px;
    --rank-card-gap: 14px;
    --rank-shadow: 0 16px 36px rgba(62, 57, 52, .055);
    --rank-shadow-hover: 0 22px 46px rgba(62, 57, 52, .10);
    width: 100%;
}

.liuyan-rank-page *,
.liuyan-rank-page *::before,
.liuyan-rank-page *::after {
    box-sizing: border-box;
}

.liuyan-rank-page svg,
.liuyan-rank-page img {
    transition: none;
}

.liuyan-rank-page svg {
    max-width: 100%;
    height: auto;
}

.liuyan-rank-page img.lazyload,
.liuyan-rank-page img.lazyloading,
.liuyan-rank-page img.lazyloaded {
    filter: none;
    opacity: 1;
}

.rank-wrap {
    width: 100%;
    margin: 0 auto;
    color: var(--rank-text);
    font-family: var(--font-main);
    padding-top: 10px;
}

.rank-page-head {
    margin: 8px 0 18px;
}

.rank-title-bar {
    position: relative;
    min-height: 62px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid var(--rank-line);
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: 0 12px 30px rgba(62, 57, 52, .045);
    overflow: hidden;
}

.rank-title-left {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.rank-title-icon {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--rank-accent);
}

.rank-title-icon svg {
    width: 25px;
    height: 25px;
    display: block;
}

.rank-title-left h1 {
    margin: 0;
    color: var(--rank-ink);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.rank-title-sep {
    width: 1px;
    height: 16px;
    margin: 0 1px;
    background: var(--rank-line);
    flex: 0 0 auto;
}

.rank-title-sub {
    min-width: 0;
    color: var(--rank-sub);
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-title-actions,
.rank-title-mini,
.rank-title-arrow {
    display: none;
}

.rank-intro {
    margin: 18px 0;
    color: var(--rank-text);
    font-size: 14px;
    line-height: 2;
}

.rank-intro p {
    margin: 0;
}

.rank-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--rank-card-gap);
    margin: 0 0 20px;
}

.rank-stat {
    position: relative;
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 16px;
    border: 1px solid var(--rank-line);
    border-radius: 11px;
    background: var(--bg-card);
    box-shadow: 0 10px 24px rgba(62, 57, 52, .038);
    overflow: hidden;
}

.rank-stat-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rank-accent);
    background: var(--bg-soft);
    border: 1px solid var(--rank-line);
}

.rank-stat-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.rank-stat-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rank-stat-text span {
    color: var(--rank-sub);
    font-size: 13px;
    white-space: nowrap;
}

.rank-stat-text strong,
.rank-top-count strong,
.rank-list-count,
.rank-list-index,
.rank-crown-badge span {
    font-family: Georgia, "Times New Roman", serif;
}

.rank-stat-text strong {
    color: var(--rank-ink);
    font-size: 27px;
    line-height: 1.05;
    font-weight: 600;
    white-space: nowrap;
}

.rank-top3 {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.08fr) minmax(0, .95fr);
    gap: var(--rank-card-gap);
    align-items: stretch;
    margin: 20px 0 16px;
}

.rank-top-card {
    position: relative;
    min-height: 168px;
    padding: 18px;
    border: 1px solid var(--rank-line);
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: var(--rank-shadow);
    overflow: visible;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.rank-top-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rank-shadow-hover);
}

.rank-top-card.rank-first {
    min-height: 186px;
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    background: var(--bg-card);
}

.rank-top-card.rank-first:hover {
    transform: translateY(-11px);
}

.rank-top-card.rank-second {
    border-color: var(--line-primary);
}

.rank-top-card.rank-third {
    border-color: var(--line-primary);
}

.rank-top-head {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: var(--rank-avatar-size) minmax(0, 1fr);
    gap: var(--rank-card-gap);
    align-items: center;
    padding-top: 18px;
}

.rank-first .rank-top-head {
    grid-template-columns: var(--rank-first-avatar-size) minmax(0, 1fr);
    padding-top: 22px;
}

.rank-avatar-wrap {
    position: relative;
    width: var(--rank-avatar-size);
    height: var(--rank-avatar-size);
    overflow: visible;
    flex: 0 0 auto;
}

.rank-first .rank-avatar-wrap {
    width: var(--rank-first-avatar-size);
    height: var(--rank-first-avatar-size);
}

.rank-top-avatar,
.rank-list-avatar {
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--rank-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rank-accent);
    font-weight: 700;
}

.rank-top-avatar {
    position: relative;
    z-index: 2;
    width: var(--rank-avatar-size);
    height: var(--rank-avatar-size);
    border-width: 3px;
    border-color: var(--bg-card);
    font-size: 28px;
    box-shadow: 0 10px 20px rgba(62, 57, 52, .10), 0 0 0 1px var(--rank-line);
}

.rank-first .rank-top-avatar {
    width: var(--rank-first-avatar-size);
    height: var(--rank-first-avatar-size);
}

.rank-top-avatar img,
.rank-list-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.rank-top-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rank-top-name {
    max-width: 100%;
    color: var(--rank-ink);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-first .rank-top-name {
    font-size: 22px;
}

.rank-top-count {
    margin-top: 6px;
    color: var(--rank-sub);
    font-size: 13px;
    line-height: 1.55;
}

.rank-top-count strong {
    color: var(--rank-accent);
    font-size: 24px;
    font-weight: 600;
    margin: 0 3px;
}

.rank-first .rank-top-count strong {
    font-size: 27px;
}

.rank-top-count .count-label,
.rank-top-count .count-unit {
    white-space: nowrap;
}

.rank-top-quote {
    position: relative;
    z-index: 2;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 12px 28px 10px;
    border: 1px solid var(--rank-line-soft);
    border-radius: 10px;
    background: var(--bg-card);
    text-align: center;
    overflow: hidden;
}

.rank-top-quote::before,
.rank-top-quote::after {
    position: absolute;
    color: var(--rank-muted);
    font: 24px/1 Georgia, "Times New Roman", serif;
}

.rank-top-quote::before {
    content: "\201C";
    left: 10px;
    top: 5px;
}

.rank-top-quote::after {
    content: "\201D";
    right: 10px;
    bottom: 2px;
}

.rank-top-quote-text,
.rank-list-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.rank-top-quote-text {
    width: 100%;
    -webkit-line-clamp: 2;
    color: var(--rank-text);
    font-size: 13px;
    line-height: 1.55;
    max-height: calc(1.55em * 2);
}

.rank-list-panel {
    margin-top: 8px;
}

.rank-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rank-list-card {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--rank-line);
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: 0 10px 24px rgba(62, 57, 52, .034);
    overflow: hidden;
}

.rank-list-index {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    border: 1px solid var(--rank-line);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--rank-accent);
    font-size: 16px;
    font-weight: 700;
}

.rank-list-main {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.rank-list-avatar {
    width: var(--rank-list-avatar-size);
    height: var(--rank-list-avatar-size);
    flex: 0 0 var(--rank-list-avatar-size);
    font-size: 16px;
}

.rank-list-body {
    min-width: 0;
    flex: 1;
}

.rank-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.rank-list-name {
    min-width: 0;
    color: var(--rank-ink);
    font-size: 15px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-list-count {
    color: var(--rank-accent);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    flex: 0 0 auto;
}

.rank-list-text {
    -webkit-line-clamp: 2;
    color: var(--rank-text);
    font-size: 13px;
    line-height: 1.65;
}

.rank-crown-badge {
    position: absolute;
    left: 50%;
    top: -25px;
    z-index: 9;
    width: 42px;
    height: 36px;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    filter: drop-shadow(0 7px 10px rgba(62, 57, 52, .18));
}

.rank-first .rank-crown-badge {
    top: -30px;
}

.rank-crown-badge::before,
.rank-crown-badge::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.rank-crown-badge::before {
    top: 0;
    width: 39px;
    height: 25px;
    clip-path: polygon(0% 100%, 0% 42%, 17% 58%, 28% 8%, 41% 56%, 50% 0%, 59% 56%, 72% 8%, 83% 58%, 100% 42%, 100% 100%);
    border-radius: 8px 8px 4px 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .58), inset 0 -6px 9px rgba(62, 57, 52, .16);
}

.rank-crown-badge::after {
    top: 21px;
    width: 42px;
    height: 12px;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -4px 8px rgba(62, 57, 52, .14);
}

.rank-crown-badge span {
    position: relative;
    z-index: 2;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 6px rgba(62, 57, 52, .15);
}

.rank-crown-1 {
    top: -23px;
    width: 48px;
    height: 42px;
    filter: drop-shadow(0 9px 15px rgba(62, 57, 52, .18));
}

.rank-crown-1::before {
    width: 45px;
    height: 30px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--rank-gold) 42%, var(--rank-accent) 100%);
}

.rank-crown-1::after {
    top: 26px;
    width: 48px;
    height: 13px;
    background: linear-gradient(180deg, var(--rank-gold), var(--rank-accent));
}

.rank-crown-1 span {
    width: 29px;
    height: 29px;
    color: var(--bg-card);
    font-size: 17px;
    background: linear-gradient(135deg, var(--rank-gold), var(--rank-accent));
    border: 1px solid var(--rank-gold);
}

.rank-crown-2::before {
    background: linear-gradient(135deg, #fff, var(--line-primary) 42%, var(--text-secondary) 100%);
}

.rank-crown-2::after {
    background: linear-gradient(180deg, #fff, var(--text-secondary));
}

.rank-crown-2 span {
    color: #fff;
    background: linear-gradient(135deg, var(--line-primary), var(--text-secondary));
    border: 1px solid rgba(255, 255, 255, .72);
}

.rank-crown-3::before {
    background: linear-gradient(135deg, var(--bg-card), var(--rank-red) 48%, var(--rank-accent));
}

.rank-crown-3::after {
    background: linear-gradient(180deg, var(--rank-red), var(--rank-accent));
}

.rank-crown-3 span {
    color: var(--bg-card);
    background: linear-gradient(135deg, var(--rank-red), var(--rank-accent));
    border: 1px solid var(--rank-red);
}

.rank-empty {
    padding: 18px;
    border: 1px solid var(--rank-line);
    border-radius: 12px;
    background: var(--rank-paper);
    color: var(--rank-sub);
    text-align: center;
    font-size: 14px;
}



main.liuyan-rank-page .rank-crown-1::before {
    background: linear-gradient(135deg, #fff2a7 0%, #f4b52d 38%, #c47a12 70%, #ffd56b 100%);
}

main.liuyan-rank-page .rank-crown-1 span {
    text-shadow: 0 1px 1px rgba(99, 52, 0, .55);
    background: linear-gradient(135deg, #efb33f, #a96512);
    border: 1px solid rgba(255, 235, 151, .78);
}

main.liuyan-rank-page .rank-crown-1::after {
    background: linear-gradient(180deg, #ffd975, #c47b16);
}

main.liuyan-rank-page .rank-crown-2::before {
    background: linear-gradient(135deg, #ffffff 0%, #cfd5da 40%, #7f8b95 72%, #f8fbff 100%);
}

main.liuyan-rank-page .rank-crown-2 span {
    color: #fff;
    text-shadow: 0 1px 1px rgba(42, 51, 60, .50);
    background: linear-gradient(135deg, #cfd6dc, #7d8790);
    border: 1px solid rgba(255, 255, 255, .72);
}

main.liuyan-rank-page .rank-crown-2::after {
    background: linear-gradient(180deg, #f7fbff, #9ca7b0);
}

main.liuyan-rank-page .rank-crown-3::before {
    background: linear-gradient(135deg, #ffd3a7 0%, #c8793f 42%, #85421d 76%, #f4b074 100%);
}

main.liuyan-rank-page .rank-crown-3 span {
    color: #fff4e6;
    text-shadow: 0 1px 1px rgba(79, 34, 8, .55);
    background: linear-gradient(135deg, #c4773c, #7f3f1d);
    border: 1px solid rgba(255, 202, 151, .68);
}

main.liuyan-rank-page .rank-crown-3::after {
    background: linear-gradient(180deg, #eaa36b, #944d25);
}

@media (max-width: 980px) {
    .rank-top3,
    .rank-list-grid {
        grid-template-columns: 1fr;
    }
    .rank-top-card.rank-first {
        order: 1;
        transform: none;
    }
    .rank-top-card.rank-second {
        order: 2;
    }
    .rank-top-card.rank-third {
        order: 3;
    }
    .rank-top-card.rank-first:hover,
    .rank-top-card:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 620px) {
    .rank-wrap {
        padding-top: 6px;
    }
    .rank-page-head {
        margin: 6px 0 16px;
    }
    .rank-title-bar {
        min-height: 68px;
        padding: 12px 15px;
        border-radius: 13px;
    }
    .rank-title-left {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        grid-template-rows: auto auto;
    }
    .rank-title-icon {
        grid-column: 1;
        grid-row: 1 / 3;
    }
    .rank-title-sep {
        display: none;
    }
    .rank-title-sub {
        grid-column: 2;
        grid-row: 2;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    .rank-intro {
        margin: 14px 0;
        font-size: 13px;
        line-height: 1.85;
    }
    .rank-stat {
        min-height: auto;
        padding: 10px 9px;
    }
    .rank-stat-text span {
        font-size: 12px;
    }
    .rank-stat-text strong {
        font-size: 22px;
    }
    .rank-top-card {
        min-height: auto;
        padding: 16px 14px 14px;
    }
    .rank-top-card.rank-first {
        min-height: auto;
    }
    .rank-top-name,
    .rank-first .rank-top-name {
        font-size: 17px;
    }
    .rank-top-count {
        font-size: 12px;
    }
    .rank-top-count strong,
    .rank-first .rank-top-count strong {
        font-size: 18px;
    }
    .rank-top-quote {
        min-height: 54px;
        margin-top: 10px;
        padding: 10px 26px 8px;
    }
    .rank-list-card {
        grid-template-columns: 30px minmax(0, 1fr);
        padding: 12px;
    }
    .rank-list-index {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
    .rank-list-name,
    .rank-list-count {
        font-size: 15px;
    }
}

/* 定高紧凑版：尺寸统一、留白收紧、留言最多两行截断 */
.rank-wrap {
  --rank-avatar-size: 62px;
  --rank-first-avatar-size: 70px;
  --rank-list-avatar-size: 36px;
  --rank-card-gap: 10px;
  padding-top: 0;
}

.rank-page-head {
  margin: 0 0 10px;
}

.rank-title-bar {
  min-height: 50px;
  padding: 0 14px;
  border-radius: 12px;
}

.rank-title-left {
  gap: 10px;
}

.rank-title-icon {
  width: 26px;
  height: 26px;
}

.rank-title-icon svg {
  width: 21px;
  height: 21px;
}

.rank-title-left h1 {
  font-size: 19px;
}

.rank-title-sub {
  font-size: 12px;
}

.rank-intro {
  margin: 8px 0 10px;
  font-size: 12.5px;
  line-height: 1.7;
}

.rank-stats {
  gap: 10px;
  margin: 0 0 12px;
}

.rank-stat {
  min-height: 58px;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
}

.rank-stat-icon {
  width: 34px;
  height: 34px;
}

.rank-stat-icon svg {
  width: 17px;
  height: 17px;
}

.rank-stat-text span {
  font-size: 12px;
}

.rank-stat-text strong {
  font-size: 21px;
}

.rank-top3 {
  gap: 10px;
  margin: 10px 0 10px;
}

.rank-top-card {
  height: 176px;
  min-height: 0;
  padding: 12px 14px 10px;
  border-radius: 12px;
}

.rank-top-card.rank-first {
  min-height: 0;
  transform: none;
}

.rank-top-head,
.rank-first .rank-top-head {
  gap: 10px;
  padding-top: 10px;
}

.rank-top-name,
.rank-first .rank-top-name {
  font-size: 16px;
}

.rank-top-count {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.45;
}

.rank-top-count strong,
.rank-first .rank-top-count strong {
  font-size: 19px;
}

.rank-top-quote {
  min-height: 44px;
  margin-top: 8px;
  padding: 7px 22px 6px;
  border-radius: 9px;
}

.rank-top-quote-text,
.rank-list-text {
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.55;
  max-height: calc(1.55em * 2);
}

.rank-list-grid {
  gap: 10px;
}

.rank-list-card {
  height: 82px;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
}

.rank-list-main {
  gap: 8px;
  align-items: center;
}

.rank-list-index {
  width: 26px;
  height: 26px;
  margin-top: 0;
  font-size: 12px;
}

.rank-list-top {
  margin-bottom: 2px;
  gap: 8px;
}

.rank-list-name,
.rank-list-count {
  font-size: 13.5px;
}

.rank-list-count {
  font-weight: 600;
}

.rank-list-text {
  font-size: 12px;
  line-height: 1.5;
  max-height: calc(1.5em * 2);
}

.rank-crown-badge {
  top: -20px;
  width: 36px;
  height: 30px;
}

.rank-crown-badge::before {
  width: 33px;
  height: 21px;
  border-radius: 7px 7px 3px 3px;
}

.rank-crown-badge::after {
  top: 18px;
  width: 36px;
  height: 10px;
}

.rank-crown-badge span {
  width: 21px;
  height: 21px;
  font-size: 13px;
}

.rank-crown-1 {
  top: -19px;
  width: 40px;
  height: 35px;
}

.rank-crown-1::before {
  width: 38px;
  height: 25px;
}

.rank-crown-1::after {
  top: 22px;
  width: 40px;
  height: 11px;
}

.rank-crown-1 span {
  width: 24px;
  height: 24px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .rank-top-card {
    height: 166px;
    padding: 10px 12px 9px;
  }

  .rank-list-card {
    height: 78px;
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 8px 10px;
  }

  .rank-list-index {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
}

/* ===== 单页排版统一（2026-10-31）：列表卡圆角 12，摘要 13 ===== */
.liuyan-rank-page .rank-list-card{border-radius:12px}
.liuyan-rank-page .rank-list-text{font-size:13px}

/* ===== 单页紧凑化（2026-10-31）：卡片内边距 8/10，网格 10 ===== */
.liuyan-rank-page .rank-page-head{margin:6px 0 12px}
.liuyan-rank-page .rank-stats{margin-bottom:12px}
.liuyan-rank-page .rank-top3{gap:10px;margin-bottom:12px}
.liuyan-rank-page .rank-top-card{padding:10px 12px 8px}
.liuyan-rank-page .rank-list-grid{gap:10px}
.liuyan-rank-page .rank-list-card{padding:8px 10px}

