﻿/* heatypecho main.css */
:root {
    --c-bg: #f5f7fa;
    --c-bg-soft: #ffffff;
    --c-card: #ffffff;
    --c-text: #2c3e50;
    --c-text-soft: #666666;
    --c-border: #f0f0f0;
    --c-primary: #667eea;
    --c-primary-hover: #764ba2;
    --c-primary-soft: rgba(102, 126, 234, 0.12);
    --c-code-bg: #f3f4f6;
    --shadow: 0 2px 8px rgba(0, 0, 0, .06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, .1);
    --radius: 5px;
    --maxw: 1080px;
}
[data-theme="dark"] {
    --c-bg: #0d1117;
    --c-bg-soft: #161b22;
    --c-card: #161b22;
    --c-text: #e6edf3;
    --c-text-soft: #9aa5b1;
    --c-border: #30363d;
    --c-primary: #60a5fa;
    --c-primary-soft: rgba(96, 165, 250, .15);
    --c-code-bg: #1f2630;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--c-text);
    background: var(--c-bg);
    transition: background .25s, color .25s;
}
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-hover); }
img { max-width: 100%; height: auto; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 2rem 0; }
code, pre, kbd {
    font-family: "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: .92em;
}
code { background: var(--c-code-bg); padding: 2px 6px; border-radius: 4px; }
pre {
    background: var(--c-code-bg);
    padding: 14px 16px;
    border-radius: 8px;
    overflow-x: auto;
    line-height: 1.6;
}
pre code { background: transparent; padding: 0; }
blockquote {
    margin: 1rem 0;
    padding: 8px 16px;
    border-left: 4px solid var(--c-primary);
    background: var(--c-primary-soft);
    border-radius: 0 6px 6px 0;
    color: var(--c-text-soft);
}
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { border: 1px solid var(--c-border); padding: 8px 12px; text-align: left; }
th { background: var(--c-bg-soft); }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--c-card);
    border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; max-width: 1080px; margin: 0 auto; padding: 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--c-text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { color: var(--c-text-soft); font-size: 15px; }
.site-nav a:hover { color: var(--c-primary); text-decoration: none; }
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--c-border); background: transparent; color: var(--c-text);
    cursor: pointer;
}
[data-theme="dark"] .icon-sun { display: inline; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: inline; }
.user-avatar-trigger {
    display: block;
    border-radius: 50%;
}
.user-menu {
    position: relative;
    margin-left: 8px;
    display: inline-block;
}
.user-card {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 180px;
    text-align: center;
}
[data-theme="dark"] .user-card {
    background: #2d2d2d;
}
.user-card.active {
    display: block;
}
.user-card-avatar {
    border-radius: 50%;
    margin-bottom: 8px;
}
.user-card-name {
    font-size: 14px;
    color: var(--c-text);
    font-weight: 500;
    margin-bottom: 4px;
}
.user-card-mail {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}
.user-card-logout {
    font-size: 13px;
    color: var(--c-primary);
    text-decoration: none;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-text); margin: 4px 0; border-radius: 2px; }

/* Layout */
.layout { display: flex; gap: 16px; padding-top: 0; padding-bottom: 16px; align-items: flex-start; justify-content: center; }
/* 文章页评论区与页脚间距 16px */
body.single-post .layout { padding-bottom: 16px; }
.left-col {
    flex: 0 0 120px;
    position: sticky;
    top: 76px;
}
.author-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    position: sticky;
    top: 0;
}
}
.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
}
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 4px;
}
.author-bio {
    font-size: 12px;
    color: var(--c-text-soft);
}
.main-col {
    flex: 0 0 728px;
    min-width: 0;
    width: 100%;
}
/* 文章页两栏：左 728px，右 336px，间距 16px，总 1080px */
body.single-post .main-col {
    flex: 0 0 728px;
}
body.single-post .side-col {
    flex: 0 0 336px;
}
.side-col { flex: 0 0 200px; width: 200px; align-self: flex-start; overflow: visible; position: sticky; top: 60px; }
.sidebar-placeholder { display: none; }
#sidebarTopGroup.fixed {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 200px;
    z-index: 100;
}

/* Post list */
.archive-title { font-size: 22px; margin: 0 0 20px; }
.post-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.post-list-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow);
}
.post-list-card .post-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
    padding: 22px 24px 0;
    margin-bottom: 0;
    box-shadow: none;
}
.post-card.single-img {
    display: flex;
    gap: 16px;
    align-items: center;
}
.post-card.single-img .post-main { flex: 1; min-width: 0; }
.post-card.single-img .post-main .post-meta { margin-bottom: 10px; }
.post-card.single-img .post-thumb { margin-bottom: 10px; }
.post-card.single-img .post-thumb img { object-fit: cover; }
.post-card.list-ad-card {
    border-bottom: none;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
}
.post-card.list-ad-card img { display: block; width: 100%; height: auto; border-radius: 0 !important; }
.post-images {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
}
.post-images .post-image-item {
    flex: 1;
    aspect-ratio: 21/9;
    overflow: hidden;
}
.post-images .post-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-images.count-1 .post-image-item {
    flex: 1;
}
.post-images.count-2 .post-image-item {
    flex: 1;
}
.post-images.count-3 .post-image-item {
    flex: 1;
}
.post-list-card .post-card:last-child {
    border-bottom: none;
}
.post-list-card .post-card:hover {
    transform: none;
    box-shadow: none;
    background: var(--c-bg);
}
.post-list-card .post-card:hover .post-title a {
    color: var(--c-primary);
}
.post-list-card .post-card:hover .post-images img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}
.post-images {
    overflow: hidden;
}
.post-images img {
    transition: transform 0.3s ease;
}
.post-title { margin: 0 0 8px; font-size: 20px; line-height: 1.4; }
.post-title a { color: var(--c-text); }
.post-title a:hover { color: var(--c-primary); text-decoration: none; }
.post-meta { color: var(--c-text-soft); font-size: 13px; margin-bottom: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.post-meta .dot { margin: 0 4px; }
.post-meta .meta-actions { margin-left: auto; display: flex; gap: 4px; }
.post-meta .meta-btn {
    width: 26px; height: 26px; border: none; background: transparent; cursor: pointer;
    color: var(--c-text-soft); border-radius: 4px; display: flex; align-items: center; justify-content: center;
}
.post-meta .meta-btn:hover { background: var(--c-border); color: var(--c-primary); }
.post-meta .meta-btn.active { color: var(--c-primary); background: var(--c-primary-bg); }
.post-excerpt {
    color: var(--c-text-soft);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 8px;
}
.post-images {
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
}
.post-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
.post-images.count-1 img {
    aspect-ratio: 21 / 9;
}
.post-images.count-2,
.post-images.count-3 {
    display: flex;
    gap: 4px;
}
.post-images.count-2 .post-image-item {
    flex: 1;
}
.post-images.count-2 .post-image-item img {
    aspect-ratio: 21 / 9;
}
.post-images.count-3 .post-image-item {
    flex: 1;
}
.post-images.count-3 .post-image-item img {
    aspect-ratio: 21 / 9;
}
.post-meta {
    color: var(--c-text-soft);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.post-meta .meta-item svg {
    opacity: 0.7;
}
.readmore { font-size: 14px; }

/* Pagination */
.pagenav { margin: 16px 0; text-align: center; }
.pagenav .page-navigator { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 8px; }
.pagenav .page-navigator a, .pagenav .page-navigator span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; margin: 0;
    border: 1px solid var(--c-border); border-radius: 50px; color: var(--c-text);
    background: transparent;
}
.pagenav .page-navigator .current { background: transparent; border: none; }
.pagenav .page-navigator .current a { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* Single post */
.post-single {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow);
}
.post-single-head { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px dashed var(--c-border); }
.post-single-head .post-title { font-size: 28px; margin: 0 0 10px; line-height: 1.35; }
.post-content { font-size: 16.5px; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 { margin: 1.6em 0 .6em; line-height: 1.35; }
.post-content h2 { border-left: 4px solid var(--c-primary); padding-left: 10px; }
.post-content p { margin: 1em 0; }
.post-content ul, .post-content ol { padding-left: 1.5em; }
.post-content img { cursor: zoom-in; }
.post-single-foot { margin-top: 32px; padding-top: 18px; border-top: 1px dashed var(--c-border); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 14px; }
.post-nav .next { text-align: right; }

/* Widgets / Sidebar */
.widget {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.widget-title { margin: 0 0 10px; font-size: 15px; color: var(--c-text-soft); }
.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li { padding: 5px 0; font-size: 14px; }
.widget-list a { color: var(--c-text); }
.widget-list a:hover { color: var(--c-primary); }

/* 大家喜欢列表 */
.hot-widget {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}
.hot-widget .widget-title {
    color: var(--c-text);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    border: none;
    padding: 0;
}
.hot-posts li { font-size: 12px; padding: 4px 0; }

/* 最新评论列表 */
.recent-comments li { font-size: 12px; padding: 4px 0; }
.recent-comments a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--c-text);
}
.recent-comments a:hover { color: var(--c-primary); }
.recent-comments strong { font-weight: bold; }
.hot-posts a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--c-text); }
.hot-posts a:hover { color: var(--c-primary); }
.search-form { display: flex; gap: 8px; width: 100%; box-sizing: border-box; }
.search-form input {
    flex: 1; padding: 8px 10px; border: 1px solid var(--c-border);
    border-radius: 6px; background: var(--c-bg); color: var(--c-text);
    box-sizing: border-box;
    min-width: 0;
}
.search-form button {
    padding: 8px 14px; border: 0; border-radius: 6px;
    background: var(--c-primary); color: #fff; cursor: pointer;
}
.social-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }

/* Comments */
.comments {
    margin-top: 28px;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
}
.comments-title { margin: 0 0 16px; }
.comment-list { list-style: none; padding: 0; margin: 24px 0 0; }
.comment-list .comment-body {
    margin-bottom: 12px;
}
.comment-list .comment-parent {
    border-top: 1px solid var(--c-bg);
    padding-top: 16px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}
.comment-list .comment-body:last-child { border-bottom: 0; margin-bottom: 0; }
.comment-inner { display: flex; gap: 10px; }
.comment-avatar img { border-radius: 50%; }
.comment-main { flex: 1; min-width: 0; line-height: 1.6; }
.comment-head {
    font-size: 12px; color: #666;
}
.comment-head .comment-author { font-weight: normal; }
.author-badge {
    font-size: 10px;
    color: #ff9800;
    margin-left: 4px;
    vertical-align: middle;
}
.author-liked {
    font-size: 11px;
    color: #f44336;
    margin: 0 8px;
}
.first-badge {
    font-size: 10px;
    color: #4caf50;
    margin-left: 4px;
    vertical-align: middle;
}
.comment-meta {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
}
.comment-meta .vote {
    margin-left: auto;
}
.vote-up, .vote-down {
    cursor: pointer;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: transform 0.2s, color 0.2s;
}
.vote-up:hover, .vote-up.active {
    color: #f44336;
    transform: scale(1.1);
}
.vote-down:hover, .vote-down.active {
    color: var(--c-primary);
    transform: scale(1.1);
}
.vote-up:active, .vote-down:active {
    transform: scale(0.95);
}
.comment-actions {
    margin-left: 8px;
    font-size: 11px;
    color: #999;
}
.comment-actions span {
    cursor: pointer;
    margin-right: 8px;
}
.comment-actions span:hover {
    color: var(--c-primary);
}
.comment-more {
    position: relative;
    margin-left: 4px;
    cursor: pointer;
}
.more-icon {
    color: #999;
}
.comment-more:hover .more-icon {
    color: var(--c-primary);
}
.more-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 0;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 4px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 100px;
}
[data-theme="dark"] .more-menu {
    background: #2d2d2d;
}
.comment-more.active .more-menu {
    display: block;
}
.more-item {
    font-size: 12px;
    color: #666;
    padding: 6px 12px;
    cursor: pointer;
}
.more-item:hover {
    background: var(--c-bg-hover);
    color: var(--c-primary);
}
.comment-head .reply-to { color: #999; margin-left: 4px; }
.comment-content { font-size: 14px; color: var(--c-text); }
.comment-content p { margin: 0; }
.comment-meta {
    margin-top: 6px; font-size: 11px; color: #999;
    display: flex; gap: 12px; align-items: center;
}
.comment-meta a { color: var(--c-primary); }
.comment-loc { color: #94a3b8; font-size: 11px; }
.comment-children {
    list-style: none; padding: 0; margin: 12px 0 0 50px;
}
.comment-children .comment-children {
    margin-left: 0;
}
.collapse-btn {
    font-size: 12px;
    color: var(--c-primary);
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
}
.collapse-btn:hover {
    text-decoration: underline;
}
/* 子评论：head 和 content 同一行 */
.comment-child .comment-head { display: inline; }
.comment-child .comment-content { display: inline; margin-left: 6px; }
.comment-child .comment-content p { display: inline; }
.respond-title { margin: 18px 0 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.comment-form-flex { display: flex; gap: 12px; align-items: flex-start; }
.comment-form-avatar { flex-shrink: 0; }
.comment-form-avatar img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.comment-form-main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; }
.comment-form .comment-form-main textarea { flex: 1; height: 46px; line-height: 46px; padding: 0 12px; border: 1px solid var(--c-border); border-radius: 6px; background: var(--c-bg); resize: none; overflow: hidden; }
.login-prompt { display: flex; align-items: center; justify-content: center; flex: 1; height: 46px; border: 1px solid var(--c-border); border-radius: 6px; background: var(--c-bg); color: #999; font-size: 14px; text-decoration: none; }
.login-prompt:hover { color: var(--c-primary); }
.login-prompt strong { color: var(--c-primary); font-weight: 600; }
.comment-form-main .form-actions { margin-top: 0; }
.comment-form-main .form-actions .btn { white-space: nowrap; }
.comment-form input, .comment-form textarea {
    width: 100%; padding: 9px 12px;
    border: 1px solid var(--c-border); border-radius: 6px;
    background: var(--c-bg); color: var(--c-text);
    font-family: inherit;
}
.comment-form textarea { resize: vertical; }
.form-actions { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.comment-form-main .form-actions { margin-top: 0; flex-shrink: 0; }
.btn {
    display: inline-block; padding: 9px 18px;
    background: var(--c-primary); color: #fff;
    border: 0; border-radius: 6px; cursor: pointer; font-size: 14px;
}
.btn:hover { opacity: .92; text-decoration: none; }
.login-tip { color: var(--c-text-soft); font-size: 14px; }
.closed { color: var(--c-text-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--c-border); padding: 0; color: var(--c-text-soft); font-size: 14px; min-height: 60px; display: flex; align-items: flex-end; background: var(--c-card); padding-bottom: 10px; }
.footer-meta { display: flex; flex-direction: column; gap: 5px; text-align: left; max-width: 1080px; margin: 0 auto; width: 100%; padding: 0; line-height: 1.2; }
/* 版权和附加文字一行 */
.footer-copyright-row { display: flex; justify-content: space-between; align-items: center; }
.footer-copyright-row > div:first-child { font-size: 14px; }
.footer-text { text-align: right; font-size: 14px; color: var(--c-text-soft); }
.footer-poweredby { font-size: 7px; color: #c0c0c0; }
/* 页面加载时间 */
.page-load-time { font-size: 7px; }
.page-load-time .load-label { color: #c0c0c0; }
.page-load-time .load-value { color: #22c55e; font-weight: bold; }
.footer-poweredby a { color: #c0c0c0; }
/* 备案和统计一行 */
.footer-meta .beian-row { display: flex; gap: 15px; font-size: 10px; align-items: flex-end; }
.site-analytics { display: inline-block; }

/* Backtop */
.backtop {
    position: fixed; right: 24px; bottom: 24px;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--c-border); background: var(--c-card);
    color: var(--c-text); cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transition: opacity .2s;
    z-index: 60;
}
.backtop.show { opacity: 1; pointer-events: auto; }

/* Empty */
.empty {
    padding: 60px 20px; text-align: center; color: var(--c-text-soft);
    background: var(--c-card); border: 1px dashed var(--c-border); border-radius: var(--radius);
}
.empty-big .code { font-size: 64px; font-weight: 800; color: var(--c-primary); }

/* TOC */
.toc {
    background: var(--c-bg-soft); border: 1px solid var(--c-border);
    border-radius: 8px; padding: 14px 18px; margin: 18px 0; font-size: 14px;
}
.toc-title { font-weight: 700; margin-bottom: 6px; }
.toc ul { list-style: none; padding-left: 16px; margin: 6px 0; }
.toc a { color: var(--c-text-soft); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,.85);
    display: flex; align-items: center; justify-content: center;
    z-index: 100; cursor: zoom-out; padding: 40px;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; }

/* Responsive */
@media (max-width: 860px) {
    .layout { flex-direction: column; gap: 16px; padding-top: 16px; padding-bottom: 32px; }
    .side-col { flex: none; width: 100%; position: static; }
    .form-row { grid-template-columns: 1fr; }
    .post-single { padding: 18px 16px; }
    .post-single-head .post-title { font-size: 20px; }
    .post-list-card { margin: 0 12px; }
    .post-list-card .post-card { padding: 18px 16px; }
    .main-col { padding: 0; min-width: 0; }
    .site-header { padding: 0 16px; }
    .container { padding: 0; width: 100%; }

    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; top: 60px; left: 0; right: 0;
        background: var(--c-card); border-bottom: 1px solid var(--c-border);
        flex-direction: column; align-items: flex-start; padding: 12px 16px;
        display: none;
    }
    .site-nav.open { display: flex; }
    
    /* 移动端隐藏左侧栏和右侧栏 */
    .left-col { display: none; }
    .side-col { display: none; }
}


/* 三栏顶部对齐 */
main {
    margin-top: 16px !important;
}
.side-col {
    margin-top: 0 !important;
}


@media (max-width: 768px) {
  .post-meta .post-time, .post-meta span:nth-child(3), .post-meta span:nth-child(4) {
    display: none;
  }
}

@media (max-width: 768px) {
  .footer-copyright-row {
    flex-direction: column;
    gap: 4px;
  }
  .footer-copyright-row .footer-text {
    order: -1;
    text-align: center;
  }
  .footer-copyright-row > div:first-child {
    order: 0;
    text-align: center;
  }
  .beian-row {
    flex-direction: column;
    gap: 4px;
    align-items: center !important;
  }
}


@media (max-width: 768px) {
  .beian-row {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .beian-row > div:nth-child(-n+2) {
    flex: 0 0 100%;
    text-align: center;
  }
  .beian-row > div:nth-child(n+3) {
    flex: 0 0 auto;
  }
}


@media (max-width: 768px) {
  .beian-row {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .beian-row > div {
    flex: 0 0 auto !important;
    text-align: center;
  }
}


@media (max-width: 768px) {
  .beian-row {
    gap: 0 !important;
  }
}


@media (max-width: 768px) {
  .beian-row {
    gap: 8px !important;
    row-gap: 4px;
  }
}


@media (max-width: 768px) {
  .beian-row {
    row-gap: 0 !important;
    column-gap: 8px;
  }
}


@media (max-width: 768px) {
  .footer-copyright-row {
    margin-bottom: 8px;
  }
}


@media (max-width: 768px) {
  .footer-copyright-row {
    margin-bottom: 0;
  }
  .footer-text {
    margin-bottom: 8px;
  }
}


@media (max-width: 768px) {
  .footer-text {
    margin-bottom: 0;
    margin-top: 8px;
  }
}


.comments {
  margin-bottom: 0 !important;
}


@media (max-width: 768px) {
  .mobile-break {
    display: block !important;
  }
}


.mobile-sidebar-btn {
  display: none;
  position: fixed;
  left: 16px;
  bottom: 80px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-card);
  color: var(--c-text);
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 99;
  align-items: center;
  justify-content: center;
}
.mobile-sidebar-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 98;
}
@media (max-width: 860px) {
  .mobile-sidebar-btn {
    display: flex;
  }
  .left-col {
    position: fixed !important;
    left: -140px;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 100;
    transition: left 0.3s ease;
    overflow-y: auto;
    background: var(--c-bg);
    padding: 16px;
  }
  .left-col.mobile-open {
    left: 0;
  }
  .mobile-sidebar-mask.mobile-open {
    display: block;
  }
}


.mobile-sidebar-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


.mobile-theme-btn {
  bottom: 136px !important;
}
[data-theme='dark'] .icon-sun { display: inline; }
[data-theme='dark'] .icon-moon { display: none; }
[data-theme='light'] .icon-sun { display: none; }
[data-theme='light'] .icon-moon { display: inline; }


.mobile-sidebar-btn[href] {
  bottom: 136px !important;
}
.mobile-theme-btn {
  bottom: 80px !important;
}


.mobile-sidebar-btn {
  left: -14px !important;
}


.mobile-sidebar-btn {
  left: 0 !important;
}


@media (min-width: 861px) {
  .mobile-sidebar-btn {
    display: none !important;
  }
}


.mobile-sidebar-btn[href] {
  bottom: 140px !important;
}
.mobile-theme-btn {
  bottom: 90px !important;
}
.backtop {
  bottom: 90px !important;
  right: 16px !important;
}


@media (max-width: 860px) {
  .mobile-sidebar-btn {
    display: flex !important;
  }
}


.mobile-only {
  display: none;
}
@media (max-width: 860px) {
  .mobile-only {
    display: flex !important;
  }
}


.mobile-home-btn, .mobile-theme-btn {
  display: none;
}
.mobile-home-btn {
  position: fixed;
  left: 0;
  bottom: 140px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: inherit;
  z-index: 99;
}
.mobile-theme-btn {
  position: fixed;
  left: 0;
  bottom: 90px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  z-index: 99;
}
@media (max-width: 860px) {
  .mobile-home-btn, .mobile-theme-btn {
    display: flex !important;
  }
}
[data-theme='dark'] .icon-sun { display: inline; }
[data-theme='dark'] .icon-moon { display: none; }
[data-theme='light'] .icon-sun { display: none; }
[data-theme='light'] .icon-moon { display: inline; }


.mobile-home-btn, .mobile-theme-btn {
  left: 0 !important;
}


.mobile-home-btn, .mobile-theme-btn {
  width: auto !important;
  padding: 8px !important;
  left: 0 !important;
  justify-content: flex-start !important;
}


@media (max-width: 860px) {
  .post-single {
    margin: 0 12px;
    padding: 18px 16px;
  }
}


@media (max-width: 860px) {
  .post-single, .comments {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
}


.mobile-back-btn {
  display: none;
  position: fixed;
  left: 0;
  bottom: 40px;
  width: auto;
  padding: 8px;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  z-index: 99;
  justify-content: flex-start;
  align-items: center;
}
@media (max-width: 860px) {
  .mobile-back-btn {
    display: flex !important;
  }
}


.mobile-post-btn, .mobile-reply-btn, .mobile-share-btn {
  display: none;
  position: fixed;
  left: 0;
  width: auto;
  padding: 8px;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  z-index: 99;
  justify-content: flex-start;
  align-items: center;
}
.mobile-post-btn { bottom: 180px; }
.mobile-reply-btn { bottom: 140px; }
.mobile-share-btn { bottom: 100px; }
.mobile-theme-btn { bottom: 60px !important; }
.mobile-back-btn { bottom: 20px !important; }
@media (max-width: 860px) {
  .mobile-post-btn, .mobile-reply-btn, .mobile-share-btn {
    display: flex !important;
  }
}


.mobile-home-btn { bottom: 180px !important; }
.mobile-post-btn { bottom: 140px !important; }
.mobile-reply-btn { bottom: 100px !important; }
.mobile-share-btn { bottom: 60px !important; }
.mobile-theme-btn { bottom: 20px !important; }
.mobile-back-btn { bottom: -20px !important; }


.mobile-home-btn, .mobile-post-btn, .mobile-reply-btn, .mobile-share-btn, .mobile-theme-btn, .mobile-back-btn {
  top: auto !important;
}
.mobile-home-btn { top: 180px !important; bottom: auto !important; }
.mobile-post-btn { top: 220px !important; bottom: auto !important; }
.mobile-reply-btn { top: 260px !important; bottom: auto !important; }
.mobile-share-btn { top: 300px !important; bottom: auto !important; }
.mobile-theme-btn { top: 340px !important; bottom: auto !important; }
.mobile-back-btn { top: 380px !important; bottom: auto !important; }


.mobile-home-btn, .mobile-post-btn, .mobile-reply-btn, .mobile-share-btn, .mobile-theme-btn, .mobile-back-btn {
  left: -4px !important;
}


.mobile-badge {
  position: absolute;
  top: 0;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  min-width: 14px;
  height: 14px;
  line-height: 14px;
  border-radius: 50%;
  text-align: center;
  padding: 0 2px;
}
.mobile-post-btn {
  position: relative !important;
}


.mobile-badge {
  position: absolute !important;
  top: -2px !important;
  right: -6px !important;
  background: #ef4444 !important;
  color: white !important;
  font-size: 10px !important;
  min-width: 16px !important;
  height: 16px !important;
  line-height: 16px !important;
  border-radius: 50% !important;
  text-align: center !important;
  padding: 0 2px !important;
  z-index: 100 !important;
  display: block !important;
}


.mobile-post-btn {
  top: 220px !important;
  left: -4px !important;
}


.mobile-post-btn {
  top: 220px !important;
  left: -4px !important;
}
.mobile-home-btn { top: 180px !important; left: -4px !important; }
.mobile-reply-btn { top: 260px !important; left: -4px !important; }
.mobile-share-btn { top: 300px !important; left: -4px !important; }
.mobile-theme-btn { top: 340px !important; left: -4px !important; }
.mobile-back-btn { top: 380px !important; left: -4px !important; }


.mobile-home-btn, .mobile-post-btn, .mobile-reply-btn, .mobile-share-btn, .mobile-theme-btn, .mobile-back-btn {
  bottom: auto !important;
}


.mobile-post-btn {
  bottom: auto !important;
  top: 220px !important;
}


.mobile-post-btn {
  bottom: 0 !important;
  top: 220px !important;
  position: fixed !important;
}


.mobile-post-btn {
  top: 220px !important;
  bottom: auto !important;
  left: -4px !important;
}


.mobile-post-btn {
  top: 230px !important;
}
.mobile-reply-btn { top: 270px !important; }
.mobile-share-btn { top: 310px !important; }
.mobile-theme-btn { top: 350px !important; }
.mobile-back-btn { top: 390px !important; }


.mobile-reply-btn {
  bottom: auto !important;
  top: 270px !important;
  left: -4px !important;
  position: fixed !important;
}


.mobile-share-menu {
  display: none;
  position: fixed;
  left: 0;
  top: 300px;
  background: #fff;
  border-radius: 0 8px 8px 0;
  padding: 8px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.mobile-share-menu.show {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-share-menu button {
  background: none;
  border: none;
  padding: 6px 12px;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
}
.mobile-share-menu button:hover {
  background: #f5f5f5;
}
[data-theme='dark'] .mobile-share-menu {
  background: #1f2937;
  color: #fff;
}
[data-theme='dark'] .mobile-share-menu button:hover {
  background: #374151;
}


.mobile-share-menu {
  left: 36px !important;
  top: 305px !important;
}


@media (max-width: 860px) {
  header {
    position: static !important;
  }
}


.archive-title {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
[data-theme='dark'] .archive-title {
  background: #1f2937;
}


.archive-desc {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}
[data-theme='dark'] .archive-desc {
  color: #9ca3af;
}


.archive-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.archive-desc {
  margin-top: 0 !important;
}

/* 移动端悬浮按钮组 */
.mobile-home-btn, .mobile-post-btn, .mobile-reply-btn, .mobile-share-btn, .mobile-theme-btn, .mobile-back-btn {
  display: none;
  position: fixed;
  left: 0;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  z-index: 999;
  justify-content: center;
  align-items: center;
}
.mobile-home-btn { top: 180px; }
.mobile-post-btn { top: 220px; }
.mobile-reply-btn { top: 270px; }
.mobile-share-btn { top: 310px; }
.mobile-theme-btn { top: 350px; }
.mobile-back-btn { top: 390px; }
@media (max-width: 860px) {
  .mobile-home-btn, .mobile-post-btn, .mobile-reply-btn, .mobile-share-btn, .mobile-theme-btn, .mobile-back-btn {
    display: flex;
  }
}


.archive-title {
  align-items: center !important;
}


footer {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
footer .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}


.footer-powered {
  text-align: right !important;
}


