:root {
    --page-bg: #eee;
    --panel-bg: #fff;
    --text: #555;
    --heading: #222;
    --muted: #999;
    --line: #eee;
    --dark: #222;
    --accent: #ac5252;
    --brand-red: rgba(172, 82, 82, 0.67);
    --brand-red-strong: rgba(172, 82, 82, 0.9);
    --brand-red-soft: #d18a8a;
    --halo-search-widget-primary-color: #ac5252;
    --halo-search-widget-content-color: #3f2b2b;
    --halo-search-widget-muted-color: #8a6b6b;
    --halo-search-widget-base-bg-color: #fffdfd;
    --halo-search-widget-hit-bg-color: #fff6f6;
    --halo-search-widget-modal-bg-color: #fffdfd;
    --halo-search-widget-divider-color: #ecd6d6;
    --halo-search-widget-kbd-border-color: #e3c3c3;
    --halo-search-widget-kbd-shadow: 0px 2px 0px 0px rgba(172, 82, 82, 0.14);
    --halo-cw-primary-1-color: #ac5252;
    --halo-cw-primary-2-color: #934646;
    --halo-cw-primary-3-color: #7a3b3b;
    --halo-cw-emoji-picker-rgb-accent: 172, 82, 82;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: "Lato", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 2;
}

a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out, background 0.2s ease-in-out;
}

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

.container {
    position: relative;
    min-height: 100vh;
}

.headband {
    height: 3px;
    background: var(--dark);
}

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 0;
    height: 3px;
    background: var(--accent);
    pointer-events: none;
}

/* 旧 NexT.Pisces 桌面布局：总宽 960，左侧 240，内容 700。 */
.header,
.container .main-inner {
    position: relative;
    width: 960px;
    margin: 0 auto;
}

.header-inner {
    position: absolute;
    top: 0;
    overflow: hidden;
    width: 240px;
    padding: 0;
    background: var(--panel-bg);
}

.main {
    padding-bottom: 120px;
}

.main-inner::after {
    display: table;
    clear: both;
    content: "";
}

.content-wrap {
    float: right;
    width: 700px;
    min-height: 700px;
    padding: 0;
    background: rgba(245, 247, 249, 0);
}

.sidebar {
    position: static;
    float: left;
    width: 240px;
    margin-top: 300px;
    margin-left: -100%;
    background: #f5f7f9;
}

.sidebar-inner {
    width: 240px;
    padding: 20px 10px;
    color: #555;
    background: var(--panel-bg);
    text-align: left;
}

.sidebar-inner.affix {
    position: fixed;
    top: 12px;
}

/* 顶部红色品牌区和黑底站名，复刻旧站实际覆盖色。 */
.site-brand-wrapper,
.site-meta {
    background: var(--brand-red);
}

.site-meta {
    margin: 0;
    padding: 20px 0 16px;
    text-align: center;
}

.brand {
    position: relative;
    display: inline-block;
    padding: 0 40px;
    color: #fff;
    background: var(--dark);
    border-bottom: none;
}

.brand:hover {
    color: #fff;
    border-bottom: none;
}

.custom-logo-image {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 4px;
}

.site-title {
    display: inline-block;
    color: #fff;
    font-size: 20px;
    font-weight: normal;
    line-height: 36px;
    vertical-align: top;
}

.site-subtitle {
    margin: 10px 0 0;
    color: #ddd;
    font-size: 13px;
}

.site-nav {
    display: block;
    padding-bottom: 18px;
    background: var(--brand-red);
}

.menu {
    margin: 20px 0 0;
    padding-left: 0;
    text-align: center;
}

.menu .menu-item {
    display: inline-block;
    margin: 0 7px;
    list-style: none;
    vertical-align: top;
}

.menu .menu-item a {
    display: block;
    color: #333;
    font-size: 13px;
    line-height: 1.8;
    border-bottom: 1px solid transparent;
}

.menu .menu-item a:hover,
.menu-item-active a {
    color: #222;
    border-bottom-color: #222;
}

.menu .menu-item .fa {
    display: inline-block;
    margin-right: 0;
}

.badge {
    display: inline-block;
    min-width: 16px;
    margin-left: 2px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ccc;
    color: #555;
    font-size: 10px;
    line-height: 16px;
    vertical-align: top;
}

/* 左侧 overview：头像、统计、RSS、社交图标。 */
.site-overview {
    text-align: left;
}

.site-author {
    text-align: center;
}

.site-author-image {
    display: block;
    max-width: 120px;
    height: auto;
    margin: 0 auto;
    padding: 2px;
    border: 1px solid #eee;
}

.site-author-name {
    margin: 8px 0 0;
    color: var(--heading);
    font-weight: 600;
    text-align: center;
}

.site-description {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.site-state {
    overflow: hidden;
    margin: 16px 0 0;
    line-height: 1.4;
    white-space: nowrap;
    text-align: center;
}

.site-state-item {
    display: inline-block;
    padding: 0 12px;
    color: inherit;
    text-align: center;
    border-bottom: none;
}

.site-state-item + .site-state-item {
    border-left: 1px solid #eee;
}

.site-state-count {
    display: block;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
}

.site-state-name {
    color: var(--muted);
    font-size: 13px;
}

.feed-link {
    margin-top: 20px;
    text-align: center;
}

.feed-link a {
    display: inline-block;
    padding: 0 15px;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
}

.feed-link a:hover {
    color: #fff;
    background: var(--accent);
    border-bottom-color: var(--accent);
}

.links-of-author {
    margin-top: 20px;
    text-align: center;
}

.links-of-author-item {
    display: inline-block;
    margin: 0 6px 10px;
}

.links-of-author a {
    color: #555;
    border-bottom: none;
}

.links-of-author a:hover {
    color: var(--accent);
}

.popular-posts-panel {
    margin-top: 16px;
    text-align: center;
}

.popular-posts-panel h3 {
    margin: 0 0 8px;
    color: #555;
    font-size: 14px;
}

.custom-sidebar-html {
    color: #555;
    font-size: 13px;
    line-height: 1.9;
}

.custom-sidebar-html > :first-child {
    margin-top: 0;
}

.custom-sidebar-html > :last-child {
    margin-bottom: 0;
}

.custom-sidebar-html a {
    color: inherit;
}

.custom-sidebar-html p,
.custom-sidebar-html ul,
.custom-sidebar-html ol {
    margin: 0;
}

.custom-sidebar-html ul,
.custom-sidebar-html ol {
    padding-left: 18px;
    text-align: left;
}

@keyframes bliner-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bliner-fade-up {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .posts-expand > .post .post-block,
    .posts-expand > .pagination {
        animation: bliner-fade-up 0.34s ease-out both;
    }

    .posts-expand > .post:nth-child(1) .post-block {
        animation-delay: 0.06s;
    }

    .posts-expand > .post:nth-child(2) .post-block {
        animation-delay: 0.12s;
    }

    .posts-expand > .post:nth-child(3) .post-block {
        animation-delay: 0.18s;
    }

    .posts-expand > .post:nth-child(4) .post-block {
        animation-delay: 0.24s;
    }

    .posts-expand > .post:nth-child(n + 5) .post-block,
    .posts-expand > .pagination {
        animation-delay: 0.3s;
    }

    .sidebar .site-author,
    .sidebar .site-state,
    .sidebar .feed-link,
    .sidebar .links-of-author,
    .sidebar .popular-posts-panel {
        animation: bliner-fade-in 0.28s ease-out both;
    }

    .sidebar .site-state {
        animation-delay: 0.08s;
    }

    .sidebar .feed-link {
        animation-delay: 0.12s;
    }

    .sidebar .links-of-author {
        animation-delay: 0.16s;
    }

    .sidebar .popular-posts-panel {
        animation-delay: 0.2s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .posts-expand > .post .post-block,
    .posts-expand > .pagination,
    .sidebar .site-author,
    .sidebar .site-state,
    .sidebar .feed-link,
    .sidebar .links-of-author,
    .sidebar .popular-posts-panel {
        animation: none;
    }

    .sidebar-nav::after {
        transition: none;
    }
}

.comment-widget .el-button--primary,
.halo-comment-btn,
button.submit-btn {
    background-color: #c07c7b !important;
    border-color: #ff5722 !important;
    color: #ffffff !important;
}

.comment-widget .el-button--primary:hover,
.halo-comment-btn:hover,
button.submit-btn:hover {
    background-color: #ab5150 !important;
    border-color: #e64a19 !important;
}

.site-footer {
    width: 960px;
    margin: 42px auto 0;
    padding: 0 0 46px 260px;
    color: #999;
    font-size: 13px;
    line-height: 1.9;
    text-align: center;
}


.site-footer a {
    color: inherit;
    border-bottom-color: transparent;
}

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

.site-footer .fa-heart {
    color: #d65f3c;
}

/* 首页文章列表恢复旧站 post/post-block 尺寸和阴影。 */
.posts-expand {
    padding-top: 0;
}

#content #posts .post,
.post-list .post {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(202, 203, 204, 0.9);
}

.post-block,
.post-detail,
.archive-page,
.taxonomy-page,
.moment-page,
.not-found {
    padding: 50px 20px;
    background: var(--panel-bg);
    box-shadow: 0 2px 4px rgba(202, 203, 204, 0.9);
}

#comment {
    padding: 10px 20px;
    background: var(--panel-bg);
    box-shadow: 0 2px 4px rgba(202, 203, 204, 0.9);
}

.post + .post,
.post-card + .post-card {
    margin-top: 20px;
}

.post-header {
    text-align: center;
}

.post-title,
.post-detail-header h1,
.archive-page h1,
.taxonomy-page h1,
.moment-page h1,
.not-found h1 {
    margin: 0 0 12px;
    color: var(--heading);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    word-break: break-word;
}

.post-title-link {
    display: inline-block;
    position: relative;
    color: inherit;
    line-height: inherit;
    border-bottom: none;
    vertical-align: top;
}

.post-title-link::before {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
    visibility: hidden;
    transform: scaleX(0);
    transition: transform 0.2s ease-in-out, visibility 0.2s ease-in-out;
    content: "";
}

.post-title-link:hover {
    color: var(--text);
}

.post-title-link:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

.post-meta,
.post-tags,
.post-excerpt,
.empty-text {
    color: var(--muted);
    font-size: 12px;
}

.post-meta {
    margin: 3px 0 60px;
    text-align: center;
}

.post-meta time {
    border-bottom: 1px dashed #999;
    cursor: help;
}

.post-meta-divider {
    margin: 0 0.5em;
}

.post-meta-item-icon {
    margin-right: 3px;
}

.post-body {
    font-size: 14px;
}

.post-cover {
    display: block;
    margin: 0 auto 28px;
    border-bottom: 0;
    text-align: center;
}

.post-cover:hover {
    border-bottom: 0;
}

.post-cover img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: top;
    box-shadow: 0 1px 4px rgba(202, 203, 204, 0.8);
}

.post-detail-cover {
    display: block;
    margin: 0 auto 32px;
    border-bottom: 0;
    text-align: center;
}

.post-detail-cover:hover {
    border-bottom: 0;
}

.post-detail-cover img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: top;
    box-shadow: 0 1px 4px rgba(202, 203, 204, 0.8);
}

.post-body p {
    margin: 0 0 1em;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    padding-top: 10px;
    line-height: 1.35;
}

.post-body img,
.post-content img,
.post-excerpt img {
    display: block;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    margin: 0 auto 25px;
    padding: 3px;
    border: 1px solid #ddd;
}

.post-body figure,
.post-content figure,
.post-excerpt figure {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.post-body blockquote {
    margin: 1.2em 0;
    padding: 0 1em;
    color: #666;
    border-left: 4px solid #ddd;
}

.post-content blockquote {
    margin: 15px 0 15px;
    padding: 1px 15px;
    color: #555;
    border-left: 4px solid rgba(174, 50, 54, 0.67);
    border-right: 1px solid rgba(174, 50, 54, 0.67);
    box-shadow: 0 1px 3px rgba(202, 203, 204, 0.9);
}

.post-content blockquote strong:first-child {
    color: var(--brand-red-strong);
}



.post-content table {
    width: 100%;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
    word-break: normal;
}

.post-content table > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.post-content table > tbody > tr:hover {
    background-color: #f5f5f5;
}

.post-content th,
.post-content td {
    padding: 8px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
    font-weight: normal;
}

.post-content th {
    padding-bottom: 10px;
    border-bottom-width: 3px;
    font-weight: 700;
}

.post-body pre,
.post-content pre {
    overflow: auto;
    margin: 20px 0;
    padding: 10px;
    color: #ccc;
    background: #2d2d2d;
    line-height: 1.6;
}

.post-body code,
.post-content code {
    display: inline-block;
    margin: 0 3px;
    padding: 1px 5px;
    color: var(--brand-red-strong);
    background: #faf7f7;
    border: 1px solid #e3d4d4;
    border-radius: 3px;
    font-family: consolas, Menlo, "PingFang SC", "Microsoft YaHei", monospace;
    font-size: 14px;
    word-wrap: break-word;
}

.post-body pre code,
.post-content pre code {
    padding: 0;
    color: #ccc;
    background: none;
}

.post-body pre code.hljs,
.post-content pre code.hljs {
    display: block;
    overflow-x: auto;
    color: #ccc;
    background: transparent;
}

.post-body .hljs-comment,
.post-content .hljs-comment,
.post-body .hljs-quote,
.post-content .hljs-quote {
    color: #8fbc8f;
}

.post-body .hljs-keyword,
.post-content .hljs-keyword,
.post-body .hljs-selector-tag,
.post-content .hljs-selector-tag,
.post-body .hljs-subst,
.post-content .hljs-subst {
    color: #cc99cd;
}

.post-body .hljs-number,
.post-content .hljs-number,
.post-body .hljs-literal,
.post-content .hljs-literal,
.post-body .hljs-variable,
.post-content .hljs-variable,
.post-body .hljs-template-variable,
.post-content .hljs-template-variable,
.post-body .hljs-tag .hljs-attr,
.post-content .hljs-tag .hljs-attr {
    color: #f99157;
}

.post-body .hljs-string,
.post-content .hljs-string,
.post-body .hljs-doctag,
.post-content .hljs-doctag {
    color: #99cc99;
}

.post-body .hljs-title,
.post-content .hljs-title,
.post-body .hljs-section,
.post-content .hljs-section,
.post-body .hljs-selector-id,
.post-content .hljs-selector-id {
    color: #6699cc;
}

.post-body .hljs-type,
.post-content .hljs-type,
.post-body .hljs-class .hljs-title,
.post-content .hljs-class .hljs-title {
    color: #ffcc66;
}

.post-body .hljs-tag,
.post-content .hljs-tag,
.post-body .hljs-name,
.post-content .hljs-name,
.post-body .hljs-attribute,
.post-content .hljs-attribute {
    color: #f2777a;
}

.post-body .hljs-regexp,
.post-content .hljs-regexp,
.post-body .hljs-link,
.post-content .hljs-link {
    color: #66cccc;
}

.post-body .hljs-symbol,
.post-content .hljs-symbol,
.post-body .hljs-bullet,
.post-content .hljs-bullet {
    color: #f99157;
}

.post-body .hljs-built_in,
.post-content .hljs-built_in,
.post-body .hljs-builtin-name,
.post-content .hljs-builtin-name {
    color: #6699cc;
}

.post-body .hljs-meta,
.post-content .hljs-meta {
    color: #999;
}

.post-body .hljs-deletion,
.post-content .hljs-deletion {
    background: #5f2b2b;
}

.post-body .hljs-addition,
.post-content .hljs-addition {
    background: #2f4f2f;
}

.post-body .hljs-emphasis,
.post-content .hljs-emphasis {
    font-style: italic;
}

.post-body .hljs-strong,
.post-content .hljs-strong {
    font-weight: 700;
}

.post-tags {
    margin-top: 40px;
    text-align: center;
}

.post-tags a {
    display: inline-block;
    margin-right: 10px;
    font-size: 13px;
}

.post-button {
    margin-top: 40px;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0 20px;
    color: var(--brand-red-soft);
    background: transparent;
    border: 1px solid var(--brand-red-soft);
    border-radius: 2px;
    line-height: 2;
}

.btn:hover {
    color: #fff;
    background: var(--brand-red-soft);
    border-color: var(--brand-red-soft);
}

.post-eof {
    display: block;
    width: 8%;
    height: 1px;
    margin: 80px auto 0;
    background: #ccc;
}

.post-content {
    margin-top: 32px;
    font-size: 16px;
}

.post-end-mark {
    margin: 72px 0 64px;
    color: #555;
    font-size: 14px;
    text-align: center;
}

.post-related {
    margin: 56px 0;
}

.post-related h2 {
    margin: 0 0 18px;
    padding-bottom: 6px;
    color: #555;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    border-bottom: 1px solid #eee;
}

.post-related ul {
    margin: 0;
    padding-left: 28px;
}

.post-related li {
    margin: 7px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

.post-related li:nth-child(n + 6) {
    display: none;
}

.post-related a {
    border-bottom-color: #999;
}

.post-copyright-wrap {
    margin: 52px 0 54px;
}

.post-copyright {
    margin: 0;
    padding: 16px 20px;
    color: #555;
    background: #f8f8f8;
    border-left: 3px solid var(--brand-red-strong);
    list-style: none;
    line-height: 1.9;
    box-shadow: 0 1px 3px rgba(202, 203, 204, 0.45);
}

.post-copyright li {
    margin: 2px 0;
}

.post-copyright a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-copyright strong {
    margin-right: 8px;
    color: var(--brand-red-strong);
}

.post-footer {
    margin: 42px 0 0;
}

.post-footer-tags {
    text-align: center;
}

.post-footer-tags a {
    display: inline-block;
    margin: 0 8px 8px;
    color: #555;
    font-size: 13px;
    border-bottom-color: #999;
}

.post-footer-tags .fa {
    margin-right: 4px;
}

.post-neighbor {
    margin: 40px 0 0;
    border-top: 1px solid #eee;
}

.post-nav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 112px;
    gap: 0;
    padding-top: 18px;
}

.post-nav-divider {
    display: none;
}

.post-nav-item {
    flex: 0 1 50%;
    min-width: 0;
}

.post-nav-item a {
    position: relative;
    display: block;
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    border-bottom: none;
    overflow-wrap: break-word;
    word-break: normal;
}

.post-nav-item a:hover {
    color: #222;
    border-bottom: none;
}

.post-nav-item a:active {
    top: 2px;
}

.post-nav-item .fa {
    position: absolute;
    top: 0.55em;
    font-size: 12px;
}

.post-nav-next a {
    padding-right: 24px;
    padding-left: 22px;
}

.post-nav-next .fa {
    left: 0;
}

.post-nav-prev {
    text-align: right;
}

.post-nav-prev a {
    padding-right: 22px;
    padding-left: 24px;
}

.post-nav-prev .fa {
    right: 0;
}


blockquote {
    padding: 20px 15px 1px 15px;
    border-left: 4px solid rgba(174, 50, 54, 0.67);
    border-right: 1px solid rgba(174, 50, 54, 0.67);
    box-shadow: 0 1px 3px rgba(202, 203, 204, 0.9);
    margin-bottom: 15px;
}

.gotoindex {
    width: 90px;
    margin: 2px auto;
}

.gotoindex a {
    text-decoration: none;
    border-bottom: 0px solid #999;
}

.gotoindex a:hover {
    border-bottom: 0px solid #999;
}

.pagination {
    margin: 40px 0 40px;
    text-align: center;
    border-top: 1px solid #eee;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 42px;
    margin: 0;
    padding: 0 24px;
    color: #666;
    font-size: 14px;
    line-height: 1;
    background: #fff;
    border: 1px solid #ead8d8;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(172, 82, 82, 0.08);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.pagination a:hover {
    color: var(--brand-red-soft);
    background: #fff7f7;
    border-color: rgba(172, 82, 82, 0.38);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(172, 82, 82, 0.12);
}

.pagination span {
    color: #b9a5a5;
    background: #fcf8f8;
    border-color: #efe3e3;
    box-shadow: none;
}

.pagination a:focus-visible {
    outline: 2px solid rgba(172, 82, 82, 0.18);
    outline-offset: 2px;
}

.pagination .extend {
    color: var(--brand-red-soft);
    border-color: rgba(172, 82, 82, 0.28);
}

.pagination .page-number {
    min-width: 42px;
    width: 42px;
    padding: 0;
    border-radius: 50%;
}

.pagination .current {
    color: #fff;
    background: var(--brand-red-soft);
    border-color: var(--brand-red-soft);
    box-shadow: 0 12px 24px rgba(172, 82, 82, 0.18);
}

.pagination .space {
    min-width: auto;
    width: auto;
    height: auto;
    padding: 0 4px;
    color: #b7a4a4;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.pagination .disabled {
    cursor: not-allowed;
}

.post-excerpt.post-excerpt-fallback {
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.post-excerpt.post-excerpt-fallback figure,
.post-excerpt.post-excerpt-fallback p {
    margin: 0;
}

.sidebar-nav {
    position: relative;
    --sidebar-tab-left: 0px;
    --sidebar-tab-width: 0px;
    margin: 0 0 20px;
    padding-left: 0;
    text-align: center;
}

.sidebar-nav::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: var(--sidebar-tab-width);
    height: 1px;
    background: var(--brand-red);
    transform: translate3d(var(--sidebar-tab-left), 0, 0);
    transition: transform 0.22s ease-out, width 0.22s ease-out;
    content: "";
}

.sidebar-nav li {
    display: inline-block;
    color: #555;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.18s ease-out;
}

.sidebar-nav li:hover {
    color: var(--brand-red);
}

.sidebar-nav-toc {
    padding: 0 5px;
}

.sidebar-nav-overview {
    margin-left: 10px;
}

.sidebar-nav .sidebar-nav-active,
.sidebar-nav .sidebar-nav-active:hover {
    color: var(--brand-red);
}

.sidebar-panel {
    display: none;
}

.sidebar-panel-active {
    display: block;
}

.post-toc-wrap {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-toc-wrap.sidebar-panel {
    display: none;
}

.post-toc-wrap.sidebar-panel-active {
    display: flex;
}

.post-toc {
    overflow: auto;
    flex: 1 1 auto;
}

.post-toc ol {
    margin: 0;
    padding: 0 2px 5px 10px;
    text-align: left;
    list-style: none;
    font-size: 14px;
}

.post-toc ol > ol {
    padding-left: 0;
}

.post-toc ol a {
    color: #666;
    border-bottom-color: #ccc;
    transition: all 0.2s ease-in-out;
}

.post-toc ol a:hover {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}

.post-toc .nav .active > a {
    color: #555;
    border-bottom-color: var(--brand-red);
}

.post-toc .nav .active-current > a,
.post-toc .nav .active-current > a:hover {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}

.post-toc .nav-item {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.8;
}

.post-toc .nav-level-2 {
    padding-left: 1em;
}

.post-toc .nav-level-3 {
    padding-left: 2em;
}

.post-scrollpercent {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dotted #d9d9d9;
    color: #999;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
}

.post-scrollpercent:hover {
    color: var(--brand-red);
}

.post-scrollpercent .fa {
    margin-right: 4px;
}

.archive-page,
.taxonomy-page,
.not-found {
    margin-bottom: 20px;
}

.archive-year {
    margin-top: 24px;
}

.archive-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e5e5;
}

.archive-item time {
    color: var(--muted);
    font-size: 13px;
}

.taxonomy-header {
    margin-bottom: 28px;
    text-align: center;
}

.taxonomy-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.category-list {
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px dashed #e5e5e5;
}

.category-list span {
    color: var(--muted);
    font-size: 13px;
}

.tag-cloud {
    text-align: center;
    line-height: 2.4;
}

.tag-cloud a {
    display: inline-block;
    margin: 8px 14px;
    border-bottom: none;
}

.tag-cloud a:hover {
    color: var(--accent) !important;
}

.tag-size-xxl {
    color: #111;
    font-size: 30px;
}

.tag-size-xl {
    color: #3b3b3b;
    font-size: 26px;
}

.tag-size-lg {
    color: #646464;
    font-size: 22px;
}

.tag-size-md {
    color: #8e8e8e;
    font-size: 18px;
}

.tag-size-sm {
    color: #b7b7b7;
    font-size: 14px;
}

.tag-size-xs {
    color: #ccc;
    font-size: 12px;
}

.moment-page {
    margin-bottom: 20px;
}

.moment-page-header {
    margin-bottom: 36px;
    text-align: center;
}

.moment-page-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.moment-list {
    position: relative;
    margin: 0;
    padding: 0 0 0 28px;
    list-style: none;
}

/* 时间线竖线只承担结构提示，真正的内容仍然由卡片负责承载。 */
.moment-list::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 7px;
    width: 1px;
    background: #ead8d8;
    content: "";
}

.moment-item {
    position: relative;
    margin: 0 0 26px;
}

.moment-item:last-child {
    margin-bottom: 0;
}

.moment-card {
    position: relative;
    padding: 18px 20px 20px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 1px 4px rgba(202, 203, 204, 0.55);
}

.moment-card-header {
    display: flex;
    align-items: center;
    min-height: 24px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.moment-dot {
    position: absolute;
    top: 20px;
    left: -27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: var(--brand-red-soft);
    background: #fff;
    border: 2px solid #ead8d8;
    border-radius: 50%;
    font-size: 6px;
    line-height: 1;
}

.moment-time {
    color: var(--muted);
}

.moment-content {
    margin-top: 12px;
    color: #555;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: break-word;
}

.moment-content > :first-child {
    margin-top: 0;
}

.moment-content > :last-child {
    margin-bottom: 0;
}

.moment-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.moment-media {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    border: 0;
    box-shadow: 0 1px 3px rgba(202, 203, 204, 0.65);
}

.moment-media:hover {
    border-bottom: 0;
}

.moment-media img,
.moment-media-video {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    border: 0;
    box-shadow: none;
}

.moment-media-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.moment-media-grid-single .moment-media {
    aspect-ratio: 16 / 10;
}

.moment-audio {
    grid-column: 1 / -1;
    width: 100%;
}

.moment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #ead8d8;
}

.moment-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 32px;
    gap: 6px;
    padding: 0 12px;
    color: #777;
    background: #fff;
    border: 1px solid #ead8d8;
    border-radius: 16px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.moment-action:hover,
.moment-action:focus-visible {
    color: var(--brand-red-soft);
    background: #fff7f7;
    border-color: rgba(172, 82, 82, 0.38);
    outline: none;
    box-shadow: 0 6px 14px rgba(172, 82, 82, 0.1);
}

.moment-action:disabled {
    cursor: default;
}

.moment-action .fa {
    font-size: 14px;
}

.moment-like-count {
    min-width: 1em;
    color: inherit;
    font-weight: 700;
    text-align: left;
}

.moment-like-button.is-liked {
    color: #fff;
    background: var(--brand-red-soft);
    border-color: var(--brand-red-soft);
}

.moment-like-button.is-loading {
    opacity: 0.75;
}

.moment-comment-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0e5e5;
}

.moment-comment-panel[hidden] {
    display: none;
}

.moment-empty {
    margin: 80px 0;
    text-align: center;
}

.comment-area {
    margin-top: 40px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.bliner-about-card {
    overflow: hidden;
    width: 90%;
    min-height: 100px;
    margin: 0 auto;
    padding: 20px;
}

.bliner-about-card img {
    float: left;
    width: 100px;
    height: 100px;
    margin: 0;
    padding: 5px;
}

.bliner-about-card div {
    float: right;
    width: 60%;
}

.about-qrcode {
    text-align: center;
}

.about-qrcode img {
    display: inline-block;
    max-width: 220px;
    margin: 0 10px 25px;
}

@media (min-width: 1600px) {
    .header,
    .container .main-inner {
        width: 960px;
    }
}

/* 900px 及以下统一走窄屏布局，避免 770~900px 落入中间态。 */
@media (max-width: 900px) {
    .header,
    .container .main-inner {
        width: auto;
    }

    .header-inner {
        position: relative;
        width: auto;
    }

    .content-wrap {
        float: none;
        width: 100%;
        min-height: auto;
        padding: 20px;
    }

    .sidebar {
        display: none;
    }
}

@media (max-width: 900px) {
    html,
    body {
        overflow-x: hidden;
    }

    body {
        font-size: 14px;
    }

    .container,
    .header,
    .header-inner,
    .site-brand-wrapper,
    .site-nav {
        width: 100vw;
        max-width: 100vw;
    }

    .header {
        left: 0;
        right: 0;
    }

    .site-brand-wrapper {
        background: var(--brand-red);
    }

    .site-meta {
        padding: 18px 16px 16px;
        background: var(--brand-red);
        color: #fff;
    }

    .brand {
        display: inline-block;
        padding: 0;
        background: transparent;
        color: #fff;
    }

    .brand:hover {
        color: #fff;
    }

    .custom-logo-image {
        width: 58px;
        height: 58px;
        margin-bottom: 6px;
    }

    .site-title {
        display: block;
        color: #fff;
        font-size: 20px;
        line-height: 1.25;
    }

    .site-subtitle {
        margin: 12px 0 0;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
    }

    .site-nav {
        padding: 0;
        background: #fff;
    }

    .menu {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0;
        overflow-x: hidden;
        margin: 0;
        padding: 12px 6px;
        white-space: nowrap;
    }

    .menu .menu-item {
        flex: 1 1 0;
        min-width: 0;
        margin: 0;
    }

    .menu .menu-item-search,
    .menu .menu-item-search a[data-search-widget-trigger] {
        display: block !important;
    }

    .menu .menu-item a {
        min-width: 0;
        padding: 0 2px;
        color: #333;
        font-size: 12px;
        line-height: 1.35;
        text-align: center;
        border-bottom: 0;
    }

    .menu .menu-item .fa {
        display: block;
        margin: 0 auto;
        color: #333;
        font-size: 14px;
        line-height: 1;
    }

    .badge {
        display: none;
    }

    .post-block,
    #comment,
    .post-detail,
    .archive-page,
    .taxonomy-page,
    .moment-page,
    .not-found {
        padding: 32px 18px;
    }

    .post-title {
        font-size: 22px;
    }

    .post-meta {
        margin-bottom: 36px;
    }

    .post-body,
    .post-content,
    .post-excerpt,
    .post-copyright {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .post-body iframe,
    .post-body video,
    .post-body canvas,
    .post-content iframe,
    .post-content video,
    .post-content canvas,
    .post-excerpt iframe,
    .post-excerpt video,
    .post-excerpt canvas {
        max-width: 100%;
    }

    .moment-list {
        padding-left: 22px;
    }

    .moment-card {
        padding: 16px;
    }

    .moment-dot {
        left: -23px;
    }

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

    .moment-media-grid-single {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-meta-item-text {
        display: none;
    }

    .pagination {
        margin: 70px 0 25px;
        border-top: 0;
        gap: 12px;
        padding-top: 0;
    }

    .pagination a,
    .pagination span {
        min-width: 104px;
        height: 40px;
        margin: 0 0 8px;
        padding: 0 20px;
    }

    .pagination .page-number {
        min-width: 40px;
        width: 40px;
        padding: 0;
    }

    .pagination .space {
        min-width: auto;
        width: auto;
        height: auto;
        padding: 0 2px;
    }

    .pagination .page-number,
    .pagination .space {
        display: none;
    }

    .site-footer {
        width: auto;
        margin: 34px 18px 0;
        padding: 0 0 34px;
        font-size: 12px;
        line-height: 1.8;
    }

    .bliner-about-card,
    .bliner-about-card div {
        width: 100%;
    }

    .bliner-about-card img,
    .bliner-about-card div {
        float: none;
    }
}

/* 截图目标版：左侧固定整栏 + 右侧大文章面板。
   这组规则放在末尾，覆盖前面从旧 NexT.Pisces 抽取出来但不符合截图的 240px/float 规则。 */
@media (min-width: 901px) {
    :root {
        --layout-width: 964px;
        --sidebar-x: calc((100vw - var(--layout-width)) / 2);
        --sidebar-width: 240px;
        --content-left: calc(var(--sidebar-x) + 260px);
        --content-width: 704px;
        --brand-red-solid: #ac5252;
        --sidebar-offset-top: 450px;
    }

    body {
        overflow-x: hidden;
        background: #f3f6f8;
        color: #555;
        font-size: 14px;
        line-height: 1.8;
    }

    .headband {
        display: none;
    }

    .container,
    .header,
    .container .main-inner,
    .site-footer {
        width: auto;
        min-width: 0;
        margin: 0;
    }

    .container {
        position: relative;
    }

    .container .main-inner {
        position: static;
    }

    .header {
        position: absolute;
        top: 0;
        left: var(--sidebar-x);
        z-index: 20;
        width: var(--sidebar-width);
    }

    .header-inner {
        position: static;
        width: 100%;
        overflow: visible;
        background: transparent;
    }

    .site-brand-wrapper {
        background: transparent;
    }

    .site-meta {
        height: 178px;
        padding: 20px 20px 24px;
        background: var(--brand-red-solid);
        color: #fff;
        text-align: center;
    }

    .brand {
        display: block;
        padding: 0;
        background: transparent;
        color: #fff;
    }

    .custom-logo-image {
        width: 64px;
        height: 64px;
        margin: 0 auto 8px;
    }

    .site-title {
        display: block;
        color: #fff;
        font-size: 20px;
        line-height: 1.25;
    }

    .site-subtitle {
        margin: 16px 0 0;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
    }

    .site-nav {
        padding: 19px 0 22px;
        background: #fff;
    }

    .menu {
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .menu .menu-item {
        display: block;
        margin: 0;
    }

    .menu .menu-item a {
        display: grid;
        grid-template-columns: 38px 1fr auto;
        align-items: center;
        min-height: 37px;
        padding: 0 20px;
        color: #555;
        font-size: 14px;
        line-height: 1;
        border: 0;
    }

    .menu .menu-item a:hover {
        color: var(--brand-red-solid);
        background: #f7f7f7;
    }

    .menu br {
        display: none;
    }

    .menu .menu-item .fa {
        width: 18px;
        color: #555;
        font-size: 13px;
        text-align: center;
    }

    .badge {
        min-width: 18px;
        height: 18px;
        margin-left: 8px;
        padding: 0 5px;
        border-radius: 9px;
        background: #cfcfcf;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        line-height: 18px;
        text-align: center;
    }

    .main {
        margin-left: 0;
        padding: 22px 0 70px var(--content-left);
    }

    .site-footer {
        width: var(--content-width);
        margin: 36px 0 0 var(--content-left);
        padding: 0 0 52px;
    }

    .main-inner,
    .content-wrap {
        float: none;
        width: var(--content-width);
        min-height: 0;
        padding: 0;
    }

    .sidebar {
        position: absolute;
        top: var(--sidebar-offset-top);
        left: var(--sidebar-x);
        width: var(--sidebar-width);
        margin: 0;
        background: transparent;
    }

    .sidebar-inner {
        width: 100%;
        padding: 0;
        background: transparent;
    }

    .sidebar-inner.affix {
        position: fixed;
        top: 12px;
        left: var(--sidebar-x);
        z-index: 20;
        width: var(--sidebar-width);
    }

    .sidebar-inner-post {
        box-sizing: border-box;
        padding: 20px 10px;
        background: #fff;
        color: #555;
    }

    .sidebar-inner-post.affix {
        position: fixed;
        top: 12px;
        left: var(--sidebar-x);
        z-index: 20;
        width: var(--sidebar-width);
    }

    .sidebar-inner-post .site-overview-wrap {
        padding: 0;
        background: transparent;
    }

    .site-overview-wrap {
        padding: 20px 10px 18px;
        background: #fff;
    }

    .site-author-image {
        width: auto;
        max-width: 120px;
        height: auto;
        object-fit: initial;
        border: 1px solid #eee;
    }

    .site-author-name {
        margin-top: 8px;
        font-size: 18px;
        font-weight: 700;
    }

    .site-state {
        margin-top: 18px;
    }

    .site-state-item {
        padding: 0 14px;
    }

    .site-state-count {
        color: #555;
        font-size: 16px;
    }

    .site-state-name {
        color: #999;
        font-size: 13px;
    }

    .feed-link {
        margin: 18px 0 0;
        padding: 8px 0;
        border-top: 1px dotted #bbb;
        border-bottom: 1px dotted #bbb;
    }

    .feed-link a {
        color: var(--brand-red-soft);
        border: 0;
        font-size: 14px;
    }

    .feed-link a:hover {
        color: #fff;
        background: var(--brand-red-soft);
    }

    .links-of-author {
        margin-top: 18px;
        padding-bottom: 18px;
        border-bottom: 1px dotted #bbb;
    }

    .links-of-author a {
        font-size: 16px;
    }

    .popular-posts-panel {
        margin-top: 14px;
        padding-top: 0;
        text-align: center;
    }

    .popular-posts-panel h3 {
        margin: 0 0 6px;
        color: #555;
        font-size: 14px;
        font-weight: 700;
    }

    .custom-sidebar-html {
        font-size: 13px;
    }

    .custom-sidebar-html a {
        border-bottom-color: #555;
    }

    .post,
    #content #posts .post {
        margin: 0 0 20px;
        background: transparent;
        box-shadow: none;
    }

    .post-block,
    .archive-page,
    .taxonomy-page,
    .moment-page,
    .not-found {
        min-height: 850px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(80, 80, 80, 0.22);
    }

    .post-block {
        padding: 50px 20px;
    }

    .archive-page,
    .taxonomy-page,
    .moment-page,
    .not-found {
        padding: 66px 40px 54px;
    }

    .post-title {
        margin-bottom: 12px;
        color: var(--heading);
        font-size: 26px;
        font-weight: 400;
        line-height: 1.35;
    }

    .post-title-link {
        color: inherit;
    }

    .post-meta {
        margin: 0 0 54px;
        color: #999;
        font-size: 12px;
    }

    .post-meta .fa {
        color: #999;
    }

    .post-body {
        color: #555;
        font-size: 16px;
        line-height: 1.9;
    }

    .post-cover {
        margin-bottom: 32px;
    }

    .post-excerpt {
        color: #555;
        font-size: 16px;
        line-height: 1.9;
    }

    .post-excerpt p {
        margin: 0 0 1.15em;
    }



    .post-body h1,
    .post-body h2,
    .post-body h3,
    .post-excerpt h1,
    .post-excerpt h2,
    .post-excerpt h3 {
        margin: 28px 0 16px;
        color: #555;
        font-size: 22px;
        font-weight: 700;
    }

    .post-body blockquote h1,
    .post-body blockquote h2,
    .post-body blockquote h3{
        margin: 16px 0 16px;
    }

    .post-excerpt h1:first-child,
    .post-excerpt h2:first-child,
    .post-excerpt h3:first-child {
        margin-top: 0;
    }

    .post-body .highlight,
    .post-excerpt .highlight {
        overflow: auto;
        margin: 18px 0 22px;
        color: #ccc;
        background: #2d2d2d;
        font-family: consolas, Menlo, "PingFang SC", "Microsoft YaHei", monospace;
        font-size: 14px;
        line-height: 1.55;
    }

    .post-body pre,
    .post-content pre,
    .post-excerpt pre {
        margin: 18px 0 24px;
        padding: 14px 16px;
        background: #242424;
        color: #ccc;
        font-size: 14px;
        line-height: 1.55;
    }

    .post-body .highlight table,
    .post-excerpt .highlight table {
        width: 100%;
        border-collapse: collapse;
    }

    .post-body .highlight td,
    .post-excerpt .highlight td {
        padding: 0;
        border: 0;
    }

    .post-body .highlight .gutter,
    .post-excerpt .highlight .gutter {
        width: 36px;
        color: #999;
        background: #262626;
        text-align: center;
    }

    .post-body .highlight pre,
    .post-excerpt .highlight pre {
        margin: 0;
        padding: 0 10px;
        color: inherit;
        background: transparent;
        border: 0;
    }

    .post-body .highlight .code pre,
    .post-excerpt .highlight .code pre {
        white-space: pre-wrap;
    }

    .post-body ul,
    .post-excerpt ul {
        margin: 1em 0;
        padding-left: 2em;
    }

    .post-body ul li,
    .post-excerpt ul li {
        list-style: square;
    }

    .post-button {
        margin-top: 48px;
    }

    .btn {
        min-width: 110px;
        padding: 2px 18px;
        color: var(--brand-red-soft);
        border: 1px solid var(--brand-red-soft);
        font-size: 14px;
        line-height: 2;
    }

    .btn:hover {
        background: var(--brand-red-soft);
        border-color: var(--brand-red-soft);
    }

    .post-tags {
        display: none;
    }

    .post-eof {
        display: none;
    }
}
