﻿/**
 * 简约黑白灰色调设计，主体宽度850px
 */


:root {
    /* ===== 颜色变量 ===== */
    --color-text-primary: #333;
    --color-text-secondary: #666;
    --color-text-tertiary: #999;
    --color-text-highlight: #4e4e4e;
    --color-text-content: #444;
    --color-bg-primary: #fff;
    --color-bg-secondary: #f8f9fa;
    --color-bg-tertiary: #f5f5f5;
    --color-border: #eee;
    --color-border-light: #ddd;
    --color-border-dark: #ccc;
    --color-link: #007bc6;
    --color-black: #000;
    
    /* ===== 边框样式变量 ===== */
    --border-dashed: 2px dashed #909090;
    --border-dashed-light: 2px dashed #ddd;
    --border-dashed-lighter: 2px dashed #d8d8d8;
    --border-dashed-dark: 2px dashed #535353;
    --border-dashed-darker: 2px dashed #000;
    --border-dashed-code: 2px dashed #e1e1e1;
    --border-dashed-gray: 2px dashed #6a6a6a;
    --border-dashed-comment: 2px dashed #cecece;
    --border-dashed-input: 2px dashed #dbdbdb;
    --border-dashed-about: 2px dashed #c2c2c2;
    --border-dashed-search: 2px dashed #626262;
    
    /* ===== 过渡动画变量 ===== */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fade: 0.35s ease-in-out;
}


/*@font-face {*/
/*    font-family: 'maoken';*/
/*    src: url('../fonts/Thin.woff2') format('woff2');*/
/*    font-weight: normal;*/
/*    font-style: normal;*/
/*    font-display: swap;*/
/*}*/
/*@font-face {*/
/*    font-family: 'SM-header';*/
/*    src: url('../fonts/letter.woff2') format('woff2');*/
/*    font-weight: normal;*/
/*    font-style: normal;*/
/*    font-display: swap;*/
/*}*/

ul,li{
  list-style: none; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.post-content hr,.page-content hr {
    display: block;
    border: 0;
    margin: 2.24em auto 2.86em;
}

.post-content hr::after,.page-content hr::after {
    color: #999;
    font-size: 1.1em;
    display: block;
    content: "~ ~ ~ ~";
    text-align: center;
}
html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'HarmonyOS Sans SC Medium', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text-primary);
    font-size: 14px;
    line-height: 1.7;
    background-color: var(--color-bg-secondary);
}


.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

/* ✅ 已删除全局 a 样式（原 94-102 行），改为模块化管理 */


/* ========== 链接样式模块化管理 ========== */

/* 1. 导航和 Header 链接 */
.site-header a,
.logo-area a,
.nav-item a,
.logo-area h1 a ,
.memo-author-name a{
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-header a:hover,
.logo-area a:hover {
    color: var(--color-text-secondary);
}

/* 2. 文章标题链接 */
.post-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 3. 元信息链接（分类、标签、日期） */
.post-meta a,
.article-info-meta a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-meta a:hover,
.article-info-meta a:hover {
    color: #666;
}

/* 4. 文章和页面内容中的链接 */
.post-content a,
.page-content a {
    color: #4e4e4e;
    transition: all 0.3s ease;
}

.post-content a:hover,
.page-content a:hover {
    color: #000;
    text-decoration-color: #666;
}

/* 5. 文章标签链接 */
.post-tags a {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 8px 8px 0;
    font-size: 0.9em;
    color: #666;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    color: #fff;
    background-color: #333;
    transform: translateY(-2px);
}

/* 6. 分页和导航链接 */
.pagination a,
.pagination .pagination-list a {
    display: inline-block;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .pagination-list a:hover {
    background-color: #f0f0f0;
}

.page-navigator a {
    display: inline-block;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-navigator .current a {
    font-weight: 600;
}

/* 7. 评论系统链接 */
.comment-author a,
.comment-user-info a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment-author a:hover,
.comment-user-info a:hover {
    color: var(--color-text-secondary);
    text-decoration: underline;
}

.comment-meta a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-meta a:hover {
    color: #666;
}

.comment-text a {
    color: #4e4e4e;
    text-decoration: underline dotted;
    text-underline-offset: 0.4em;
    word-break: break-word;
    transition: color 0.3s ease;
}

.comment-text a:hover {
    color: #000;
}

/* 8. Footer 链接 */
#footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    text-decoration: underline;
}

/* 9. 搜索结果链接 */
.search-result-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.search-result-title a:hover {
    color: var(--color-text-secondary);
}

.search-result-meta a {
    color: #999;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.search-result-meta a:hover {
    color: #666;
}

/* 10. 通用按钮式链接 */
.unified-button,
.submit,
.emoji-btn {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 11. 友情链接专用样式 */
.link-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333 !important;
    text-decoration: none !important;
    line-height: 1.3;
    transition: color 0.3s ease;
    display: block;
}

.link-title:hover {
    color: #2c3e50 !important;
}

/* ========== 链接样式模块化管理结束 ========== */


del {
    position: relative;
    color: transparent;
    text-decoration: none;
    background: transparent;
}

del::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: 
        linear-gradient(45deg, #aaa 25%, transparent 25%, transparent 75%, #aaa 75%, #aaa),
        linear-gradient(135deg, #aaa 25%, transparent 25%, transparent 75%, #aaa 75%, #aaa);
    background-size: 6px 6px;
    background-position: 0 0, 3px 3px;
    border-radius: 3px;
    z-index: 1;
}


del:hover {
    color: #333;
}

del:hover::before {
    opacity: 0.3;
}




#container {
    max-width: 850px;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    margin: 3.75rem auto;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}


@media (max-width: 900px) {
    #container {
        max-width: 95%;
        margin: 2rem auto;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    #container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
}

@media (min-width: 1200px) {
    #container {
        max-width: 900px;
    }
}

@media (min-width: 1400px) {
    #container {
        max-width: 1000px;
    }
}


#header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.header-bg {
    background-color: #fff;
    background-size: cover;
    background-position: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
}


.header-bg[style*="background-image"] {
    border-bottom: none;
}

.header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}


.header-bg[style*="background-image"]::before {
    opacity: 1;
}

.header-content {
    position: relative;
    z-index: 1;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    transition: color 0.3s ease;
}


.header-bg[style*="background-image"] .header-content {
    color: #fff;
}

.logo-area h1 {
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 10px;
}

.logo-area h1 a {
    color: inherit;
}

.logo-area .description {
    font-size: 1.1em;
    opacity: 0.9;
}

.custom-text {
    text-align: right;
    font-family: sm-header;
}

.custom-text p {
    font-size: 1.2em;
    font-weight: 300;
    opacity: 0.9;
    user-select: none;
}


.site-logo {
    max-height: 45px;
    width: auto;
    vertical-align: middle;
}


#nav-menu {
    background-color: #fff;
    padding: 0 30px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    position: relative;
}


#nav-menu::-webkit-scrollbar {
    height: 0px;
}

#nav-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#nav-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

#nav-menu::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: max-content;
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    position: relative;
}

.nav-list .nav-item {
    margin: 0 20px;
    flex-shrink: 0;
    position: relative;
}

.nav-list .nav-item:first-child {
    margin-left: 0;
}

.nav-list .nav-link {
    display: block;
    padding: 15px 0;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.nav-list .nav-item:hover .nav-link {
    color: #333;
}

.nav-list .nav-item.active .nav-link {
    color: #333;
    font-weight: 600;
}


.nav-indicator {
    position: absolute;
    bottom: 0px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #333 0%, #666 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
    will-change: transform, width;
    z-index: 10;
}


.nav-item.has-children {
    position: relative;
}

.nav-item.has-children .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
}

.submenu-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item.has-children:hover .submenu-icon {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    list-style: none;
}

.nav-item.has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu-item {
    margin: 0;
    padding: 0;
}

.sub-menu-link {
    display: block;
    padding: 10px 20px;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sub-menu-item:hover .sub-menu-link,
.sub-menu-item.active .sub-menu-link {
    color: #333;
    background-color: #f5f5f5;
}

.sub-menu-item.active .sub-menu-link {
    font-weight: 600;
}


.nav-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    margin-left: 20px;
    font-size: 20px;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-btn:hover {
    color: #333;
    transform: scale(1.1);
}

.nav-search-btn .iconfont {
    font-size: 15px;
}



#random-quote,
#article-info {
    background-color: #f8f9fa;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    text-align: center;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}


#random-quote::before,
#article-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}


#random-quote > *,
#article-info > * {
    position: relative;
    z-index: 1;
}

.quote-content {
    text-align: center;
    width: 100%;
}

.quote-text {
    font-size: 1.1em;
    color: #333;
    font-style: italic;
    margin: 0;
}



.article-info-content {
    max-width: 100%;
}

.article-info-title {
    font-size: 1.8em;
    font-weight: 400;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    word-wrap: break-word;
}

.article-info-meta {
    color: #666;
    font-size: 0.9em;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.article-info-meta span {
    display: inline-block;
}

.article-info-meta .meta-separator {
    color: #ddd;
    margin: 0 4px;
}

.info-time,
.info-views,
.info-comments,
.info-author {
    color: #4e4e4e;
    font-weight: 500;
}


#main {
    padding: 0;
    flex: 1; 
}

#content {
    padding: 30px 30px 0 30px;
}


.post-list {
    margin: 0;
}

.post-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}


.post-title,
.page-title {
    font-size: 1.8em;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* ✅ 已删除重复的 .post-title a 样式（原 744-750 行） */

.post-excerpt {
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 3);
}


.post-meta {
    color: #999;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.post-meta .meta-separator {
    color: #ddd;
    margin: 0 6px;
}

/* ✅ 已删除重复的 .post-meta a 样式（原 774-780 行） */

.post-author {
    color: #4E4E4E;
    font-weight: 500;
}

.post-time {
    color: #4E4E4E;
}

.post-views {
    color: #4E4E4E;
}


.post-content,
.page-content {
    line-height: 1.8;
    color: #444;
    word-wrap: break-word;
}
.post-content a,
.page-content a {
  color: #007bc6;
}

.post-content p, .page-content p {
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 2em;
    text-align: justify;
    word-break: break-all;
}

.post-content img,
.page-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}
/* ✅ 分离 strong 和 a 标签样式（原 648-652 行） */
.post-content strong,
.page-content strong {
    font-weight: 600;
    color: var(--color-text-primary);
}

.post-content a,
.page-content a {
    text-decoration: underline dotted;
    text-underline-offset: 0.4em;
    word-break: break-word;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin: 20px 0 15px 0;
    color: #333;
    font-size: 1.4em;
}
.comment-count::after, .post-content h1::after, .post-content h2::after, .post-content h3::after, .post-content h4::after, .post-content h5::after, .post-content h6::after, .page-content h1::after, .page-content h2::after, .page-content h3::after, .page-content h4::after, .page-content h5::after, .page-content h6::after {
    content: ' ';
    display: block;
    border: 1px solid #1d7017;
    border-radius: 5px;
    width: 40px;
    opacity: 0.5;
}
.post-content blockquote,
.page-content blockquote {
    border-left: 4px solid #ddd;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    background-color: #f9f9f9;
    padding: 15px 20px;
    border-radius: 4px;
}

/* ========== 代码块美化样式 ========== */

/* 行内代码 */
.post-content code,
.page-content code {
    background-color: #f5f5f5;
    color: #d73a49;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid #e8e8e8;
}

/* 代码块容器 */
.post-content pre,
.page-content pre {
    background-color: #fafafa;
    border: var(--border-dashed-code);
    margin: 20px 0;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 代码块内的代码 */
.post-content pre code,
.page-content pre code {
    display: block;
    background: none;
    color: #24292e;
    padding: 48px 20px 20px 20px;
    border: none;
    overflow-x: auto;
    line-height: 1.6;
    font-size: 14px;
    tab-size: 4;
    -moz-tab-size: 4;
}

/* 代码块顶部标题栏 */
.post-content pre::before,
.page-content pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background:  #f6f6f6;
    border-bottom: 2px dashed #d8d8d8;
}

/* 代码块左上角装饰点 */
.post-content pre::after, .page-content pre::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4e4e4e;
    box-shadow: 20px 0 0 #0c9800, 40px 0 0 #4e96ff;
}

/* 复制按钮 */
.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 4px 12px;
    font-size: 12px;
    color: #5a5a5a;
    border: none;
    cursor: pointer;
    transition: all 0.2s 
ease;
    z-index: 10;
    line-height: 1.5;
    background: none;
}

.code-copy-btn:hover {
    color: #1c1c1c;
font-weight: 400;
}

.code-copy-btn:active {
    transform: scale(0.95);
}

.code-copy-btn.copied {
    color: #27c93f;
    border-color: #27c93f;
}

/* 代码块滚动条美化 */
.post-content pre code::-webkit-scrollbar,
.page-content pre code::-webkit-scrollbar {
    height: 8px;
}

.post-content pre code::-webkit-scrollbar-track,
.page-content pre code::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.post-content pre code::-webkit-scrollbar-thumb,
.page-content pre code::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.post-content pre code::-webkit-scrollbar-thumb:hover,
.page-content pre code::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
    .post-content pre code,
    .page-content pre code {
        padding: 40px 15px 15px 15px;
        font-size: 13px;
    }
    
    .post-content code,
    .page-content code {
        font-size: 0.875em;
        padding: 2px 5px;
    }
    
    .code-copy-btn {
        padding: 3px 10px;
        font-size: 11px;
        top: 6px;
        right: 8px;
    }
    
    .post-content pre::after,
    .page-content pre::after {
        display: none; /* 移动端隐藏装饰点 */
    }
}


.post-footer {
    /* margin-top: 20px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.post-footer .post-meta {
    flex: 1;
    margin-bottom: 0;
}

.read-more {
    white-space: nowrap;
    margin-left: 15px;
        padding: 2px 10px;
}


.post-tags {
    margin-top: 10px;
}

/* ✅ 已删除重复的 .post-tags a 样式（原 1035-1048 行） */




.movie-pages-container {
    margin-top: 30px;
}

.movie-pages-error {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: var(--border-dashed-light);
    color: #666;
    font-size: 0.9em;
}

.movie-pages-error p {
    margin-bottom: 10px;
}

.movie-pages-error p:last-child {
    margin-bottom: 0;
}


.pagination-wrapper {
    margin-top: 30px;
    text-align: center;
}

.pagination .pagination-list {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.pagination .pagination-list li {
    display: inline-block;
}

.pagination .pagination-list a,
.pagination .pagination-list span {
    display: block;
    padding: 3px 12px;
    color: #333;
    border: var(--border-dashed);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
    background-color: transparent;
}

.pagination .pagination-list a:hover {
    background-color: #f0f0f0;
}

.pagination .pagination-list .active span {
    background-color: #ffffff;
    color: #000000;
    border: var(--border-dashed-darker);
}


.MoviePages_data-output {
    margin: 20px 0;
}

.MoviePages_list-group {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 20px;
    justify-items: center;
}

.MoviePages_list-group-item {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}


@media (max-width: 768px) {
    .MoviePages_list-group {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    
    .movie-pages-error {
        padding: 30px 15px;
        margin: 20px 0;
    }
    
    .pagination .pagination-list {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
}


.unified-button,
.page-navigator a,
.page-navigator span,
.submit,
.emoji-btn,
.respond .submit,
.comment-btn,
.cancel-reply-btn,
.read-more {
    color: #333;
    border: var(--border-dashed);
    padding: 5px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    background-color: transparent;
    text-decoration: none;
    display: inline-block;
    border-radius: 0;
}

.unified-button:hover,
.page-navigator a:hover,
.submit:hover,
.emoji-btn:hover,
.respond .submit:hover,
.comment-btn:hover,
.cancel-reply-btn:hover,
.read-more:hover {
    background-color: #f0f0f0;
    color: #333;
}

.page-navigator .current span {
    background-color: #909090;
    color: #fff;
}


.page-navigator {
    text-align: center;
    margin: 40px 0;
    padding: 0 30px;
}

.page-navigator li {
    display: inline-block;
    margin: 0 5px;
}

.page-navigator a,
.page-navigator span {
    display: block;
}
.page-navigator .current a {
    border: var(--border-dashed-darker);
}

@media (max-width: 768px) {
    .page-navigator {
        padding: 0 15px;
        margin: 30px 0;
    }
    
    
    .page-navigator li:not(.prev):not(.next) {
        display: none;
    }
    
    .page-navigator .prev,
    .page-navigator .next {
        display: inline-block !important;
    }
    
    .page-navigator a,
    .page-navigator span {
        padding: 3px 12px; 
        font-size: 14px; 
    }
    
    
    .page-navigator .current {
        display: inline-block !important;
    }
}


#comments {
    padding: 30px;
}

#comments h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
}






.respond {
    margin-top: 30px;
}

.respond h3 {
    margin-bottom: 20px;
}

.respond p {
    margin-bottom: 15px;
}

.respond label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
}

.respond .required:after {
    content: " *";
    color: red;
}

.respond input[type="text"],
.respond input[type="email"],
.respond input[type="url"],
.respond textarea {
    width: 100%;
    padding: 10px 15px;
    border: var(--border-dashed-light);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.respond input[type="text"]:focus,
.respond input[type="email"]:focus,
.respond input[type="url"]:focus,
.respond textarea:focus {
    outline: none;
    border-color: #333;
}

.respond textarea {
    resize: vertical;
    min-height: 120px;
}

.respond .submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.respond .submit.loading {
    opacity: 0.8;
}


.archive-header {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.archive-title {
    font-size: 1.5em;
    color: #333;
    font-weight: 400;
}


.error-404 {
    text-align: center;
    padding: 60px 30px;
}

.error-title {
    font-size: 6em;
    color: #ddd;
    font-weight: 300;
    margin-bottom: 20px;
}

.error-subtitle {
    font-size: 1.8em;
    color: #666;
    margin-bottom: 15px;
}

.error-message {
    color: #999;
    margin-bottom: 30px;
}

.error-actions {
    margin-bottom: 30px;
}

.btn-home,
.btn-back {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 25px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-home:hover,
.btn-back:hover {
    background-color: #555;
}

.search-form {
    max-width: 400px;
    margin: 0 auto;
}

.search-form input[type="text"] {
    width: 70%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.search-form button {
    width: 30%;
    padding: 10px 15px;
    background-color: #333;
    color: #fff;
    border: 1px solid #333;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}


.no-posts {
    text-align: center;
    padding: 60px 30px;
    color: #666;
}



img.lazy-loading {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    min-height: 200px; 
    opacity: 0.6;
}


@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}


img.lazy-loaded {
    animation: fadeIn 0.4s ease-in;
    opacity: 1;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


img.lazy-error {
    background: linear-gradient(
        135deg,
        #f5f5f5 0%,
        #e8e8e8 50%,
        #f5f5f5 100%
    );
    opacity: 1;
    min-height: 200px;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

img.lazy-error::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M21 15l-5-5L5 21"/></svg>') center/contain no-repeat;
    opacity: 0.5;
    pointer-events: none;
}

img.lazy-error::after {
    content: '图片加载失败';
    position: absolute;
    top: calc(50% + 36px);
    left: 50%;
    transform: translateX(-50%);
    color: #999;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
    text-align: center;
}


.post-content img,
.content img,
article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    transition: opacity 0.4s ease;
}


.photos-grid .photo-item img {
    margin: 0 !important;
    display: block !important;
    border-radius: 0 !important;
}


.comment-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}


.memo-content img:not(.biaoqing):not(.sticker) {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}



.photos-grid .photo-item img.lazy-loading {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    margin: 0 !important;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    min-height: unset !important; 
    opacity: 0.6;
    vertical-align: top;
}


.photos-grid .photo-item img.lazy-loaded {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    animation: fadeIn 0.4s ease-in;
    display: block !important;
    margin: 0 !important;
    vertical-align: top;
}


.photos-grid .photo-item img.lazy-error {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f5f5f5;
    opacity: 1;
    min-height: unset !important;
    display: block !important;
    margin: 0 !important;
    vertical-align: top;
}


.photos-grid .photo-item img.lazy-error::after {
    content: '加载失败';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}


@media screen and (max-width: 768px) {
    img.lazy-loading {
        min-height: 150px;
    }
    
    
    .photos-grid .photo-item img.lazy-loading {
        min-height: unset;
    }
    
    
    .photos-grid .photo-item img.lazy-error::after {
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    img.lazy-loading {
        min-height: 120px;
    }
    
    
    .photos-grid .photo-item img.lazy-loading {
        min-height: unset;
    }
    
    
    .photos-grid .photo-item img.lazy-error::after {
        font-size: 10px;
    }
}


#footer {
    background-color: #333;
    margin-top: auto;
    text-align: center;
    padding: 1.5rem;
    color: white;
    font-size: 0.7rem;
    line-height: 1.8;
    z-index: 10;
  }

.footer-content p {
    margin: 0;
    line-height: 1.5;
}

/* ✅ 已删除重复的 #footer a 样式（原 1622-1628 行） */

@media (max-width: 768px) {
    #container {
        max-width: 100%;
        margin: 0;
        box-shadow: none;
    }
    
    .header-content {
    display: flex;
        justify-content: space-between;
    align-items: center;
        flex-direction: row; 
    text-align: left;
        padding: 20px 15px;
    }
    
    .custom-text {
        text-align: right; 
        margin-top: 0;
    }
    
    .site-logo {
        max-height: 35px;
    }
    
    #nav-menu {
        padding: 0 20px;
    }
    
    
    .nav-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-list .nav-item {
        margin: 0 15px;
        flex-shrink: 0;
    }
    
    .nav-list .nav-link {
        padding: 12px 0;
        font-size: 0.9em;
    }
    
    
    .sub-menu {
        position: relative;
        top: auto;
        left: auto;
        min-width: auto;
        width: 100%;
        margin-top: 0;
        padding: 0;
        box-shadow: none;
        background-color: #f8f8f8;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-item.has-children.mobile-open .sub-menu {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item.has-children .nav-link {
        cursor: pointer;
    }
    
    .sub-menu-link {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    #content {
        padding: 20px;
    }
    
    .post-title,
    .page-title {
        font-size: 1.5em;
    }
    
    .post-footer {
    display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row; 
    gap: 10px;
}

    .post-footer .post-meta {
        flex: 1;
        margin-bottom: 0;
    }
    
    .read-more {
        margin-left: 10px;
        flex-shrink: 0; 
    }
    
    .post-tags {
        margin-top: 15px;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .comment-children {
        margin-left: 0; 
    }
    
    
    #random-quote,
    #article-info {
        padding: 20px 15px;
        min-height: 100px;
    }
    
    .quote-text {
        font-size: 1em;
    }
    
    .article-info-title {
        font-size: 1.4em;
        margin-bottom: 12px;
    }
    
    .article-info-meta {
    display: flex;
        justify-content: center;
    align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        font-size: 0.85em;
    }
    
    .article-info-meta .meta-separator {
        display: inline-block;
        color: #ddd;
        margin: 0 2px;
    }
    
    .search-form input[type="text"] {
        width: 100%;
        border-radius: 4px;
        border-right: 1px solid #ddd;
    margin-bottom: 10px;
}

    .search-form button {
        width: 100%;
        border-radius: 4px;
    }
}


.loading-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

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


#external-link-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.external-link-dialog {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    animation: slideIn 0.3s ease-out forwards;
}

.external-link-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.external-link-body {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.external-link-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-cancel,
.btn-continue {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-cancel {
    background-color: #f0f0f0;
    color: #666;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
}

.btn-continue {
    background-color: #333;
    color: #fff;
}

.btn-continue:hover {
    background-color: #555;
}



@keyframes slideIn {
    to { 
        transform: translateY(0);
    }
}


.turbo-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.turbo-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-message {
    color: #333;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    margin-left: 15px;
    padding: 0;
}

.notification-close:hover {
    color: #666;
}

.turbo-notification-success {
    border-left: 4px solid #10b981;
}

.turbo-notification-error {
    border-left: 4px solid #ef4444;
}

.turbo-notification-warning {
    border-left: 4px solid #f59e0b;
}

.turbo-notification-info {
    border-left: 4px solid #3b82f6;
}


#page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.1);
}

#page-loading .loading-bar {
    height: 100%;
    background: #333;
    width: 0%;
    transition: width 0.3s ease;
}


#turbo-body {
    transition: opacity 0.25s ease;
}


body.turbo-loading #turbo-body {
    opacity: 0.3;
}


.page-navigator {
    transition: opacity 0.2s ease;
}

.page-navigator a,
.page-navigator span {
    transition: opacity 0.2s ease;
}

/* ✅ 已删除重复的 .page-navigator a:hover 样式（原 1841-1843 行） */

.post-list,
.comment-list,
.memos-list,
.comments-list {
    transition: opacity 0.25s ease;
}


#comments {
    transition: opacity 0.25s ease;
}


#comments.transitioning {
    transition: opacity 0.25s ease-out;
}


.comment-container {
    transition: opacity 0.2s ease;
}


body.turbo-loading .post-list,
body.turbo-loading .comment-list,
body.turbo-loading .memos-list,
body.turbo-loading .comments-list,
body.turbo-loading #comments {
    opacity: 0.3;
}


.comments-list .page-navigator {
    transition: opacity 0.25s ease;
}

body.turbo-loading .comments-list .page-navigator {
    opacity: 0.3;
}




.shortcode-todolist {
    margin: 15px 0;
    padding: 12px;
    border: var(--border-dashed);
    background: #fff;
}

.todo-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.todo-item:last-child {
    border-bottom: none;
}

.todo-checkbox {
    margin: 0 8px 0 0;
    width: 16px;
    height: 16px;
    cursor: default;
}

.todo-label {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    cursor: default;
}

.todo-checkbox:checked + .todo-label {
    text-decoration: line-through;
    color: #999;
}


.shortcode-tabs {
    margin: 20px 0;
    border: var(--border-dashed);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    border-bottom: 2px dashed #909090;
    background: #f8f8f8;
    overflow-x: auto;
}

.tab-nav-item {
    flex: 0 0 auto;
    min-width: 80px;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    border-right: 1px solid #e0e0e0;
    white-space: nowrap;
}

.tab-nav-item:last-child {
    border-right: none;
}

.tab-nav-item:hover {
    background: #f0f0f0;
    color: #333;
}

.tab-nav-item.active {
    background: #fff;
    color: #333;
    font-weight: 500;
}

.tabs-content {
    padding: 16px;
}

.tab-content-item {
    display: none;
}

.tab-content-item.active {
    display: block;
}


.shortcode-collapse {
    margin: 20px 0;
    border: var(--border-dashed);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f8f8;
    cursor: pointer;
    transition: background 0.2s ease;
}

.collapse-header:hover {
    background: #f0f0f0;
}

.collapse-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.collapse-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
}

.collapse-header.active .collapse-icon {
    transform: rotate(180deg);
}

.collapse-content {
    border-top: 1px solid #e0e0e0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 500px; 
    opacity: 1;
}

.collapse-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.collapse-content.collapsed .collapse-inner {
    padding-top: 0;
    padding-bottom: 0;
}

.collapse-inner {
    padding: 16px;
    transition: padding 0.3s ease-out;
}


@media (max-width: 768px) {
    .tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-nav-item {
        min-width: 60px;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .tabs-content,
    .collapse-inner {
        padding: 12px;
    }
}


.signature-with-actions {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 15px;
    margin: 35px 0; 
    flex-wrap: nowrap; 
}

.post-support-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0; 
    align-items: center;
}



.support-item:hover {
    color: #333;
}

.animated-signature {
    flex-shrink: 0; 
    margin-left: auto; 
}


@media (max-width: 768px) {
    .signature-with-actions {
        gap: 8px; 
        margin: 25px 0; 
    }
    
    .post-support-actions {
        gap: 8px; 
    }
    
    .support-item {
        font-size: 16px; 
    }
    
    .animated-signature svg {
        max-width: 200px; 
        height: auto;
    }
}


@media (max-width: 480px) {
    .signature-with-actions {
        gap: 5px;
        margin: 20px 0; 
    }
    
    .post-support-actions {
        gap: 5px;
    }
    
    .support-item {
        font-size: 14px;
    }
    
    .animated-signature svg {
        max-width: 150px; 
    }
}


@media (max-width: 900px) {
    .header-content {
        padding: 15px 20px;
    }
    
    #nav-menu {
        padding: 0 15px;
    }
    
    #random-quote,
    #article-info {
        padding: 20px 15px;
    }
}

@media (min-width: 1200px) {
    .header-content {
        padding: 25px 40px;
    }
    
    #nav-menu {
        padding: 0 40px;
    }
    
    #random-quote,
    #article-info {
        padding: 25px 40px;
    }
    
    #content {
        padding: 35px 40px;
    }
}


#article-info {
    transition: all 0.3s ease;
}

.article-info-title {
    transition: color 0.3s ease;
}

/* ✅ 已删除重复的 .article-info-meta 样式（原 2339-2341 行），已合并到主定义 */

.post-content {
    margin-top: 0;
    padding-top: 0;
}


.article-info-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   短代码样式
   ========================================================================== */


.photos-grid {
    display: flex;
    flex-wrap: nowrap; 
    gap: 10px;
    margin: 20px 0;
    justify-content: stretch;
    overflow-x: auto; 
}

.photo-item {
    flex: 1; 
    min-width: 80px; 
    height: 200px; 
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative; 
    background: #f5f5f5; 
    border: 3px dashed #6a6a6a;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease;
    display: block; 
    margin: 0; 
    vertical-align: top; 
}

.photo-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

}

.photo-item:hover img {
    transform: scale(1.05);
}


@media (max-width: 768px) {
    .photos-grid {
        gap: 8px;
        padding-bottom: 5px; 
    }
    
    .photo-item {
        min-width: 60px; 
        height: 150px; 
    }
}

@media (max-width: 480px) {
    .photos-grid {
        gap: 6px;
        margin: 15px 0;
    }
    
    .photo-item {
        min-width: 50px; 
        height: 120px; 
    }
}


.photos-grid[data-count="1"] .photo-item {
    max-width: 300px; 
    margin: 0 auto; 
}

/* .photos-grid[data-count="2"] .photo-item {
    max-width: 400px; 

*/


.photos-grid .photo-item:nth-child(n+7) {
    min-width: 120px; 
}

.photos-grid .photo-item:nth-child(7) ~ .photo-item {
    flex: 0 0 auto; 
}


.photos-grid::-webkit-scrollbar {
    height: 6px;
}

.photos-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.photos-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.photos-grid::-webkit-scrollbar-thumb:hover {
    background: #999;
}


.photos-grid {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}


.post-quote-card {
    background: #ffffff;
    border: var(--border-dashed);
    border-radius: 0;
    padding: 16px;
    margin: 16px 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-quote-card:hover {
    border-color: #333;
    background: #f8f9fa;
}

.post-quote-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.post-quote-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: #666;
}

.post-quote-category {
    color: #333;
    font-weight: 500;
    font-size: 0.85em;
}

.post-quote-divider {
    color: #ccc;
}

.post-quote-time {
    color: #888;
}

.post-quote-body {
    margin-bottom: 12px;
}

.post-quote-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-quote-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-quote-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.post-quote-stats {
    display: flex;
    gap: 12px;
    flex: 1;
    font-size: 0.8em;
    color: #777;
}

.post-quote-stat {
    white-space: nowrap;
}

.post-quote-link-btn {
    background: transparent;
    color: #333;
    text-decoration: none;
    padding: 3px 12px;
    border: var(--border-dashed);
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.post-quote-link-btn:hover {
    background-color: #909090;
    color: #fff;
    text-decoration: none;
}

.post-quote-error {
    color: #666;
    font-size: 0.85em;
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border: var(--border-dashed-light);
}


@media (max-width: 768px) {
    .post-quote-card {
        padding: 12px;
        margin: 12px 0;
    }
    
    .post-quote-header {
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
    
    .post-quote-meta {
        font-size: 0.8em;
        gap: 6px;
    }
    
    .post-quote-title {
        font-size: 1em;
        margin-bottom: 6px;
    }
    
    .post-quote-excerpt {
        font-size: 0.85em;
        -webkit-line-clamp: 3;
    }
    
    .post-quote-footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        padding-top: 6px;
    }
    
    .post-quote-stats {
        justify-content: space-around;
        gap: 8px;
        font-size: 0.75em;
    }
    
    .post-quote-link-btn {
        text-align: center;
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .post-quote-card {
        padding: 10px;
        margin: 10px 0;
    }
    
    .post-quote-stats {
        gap: 6px;
        font-size: 0.7em;
    }
    
    .post-quote-link-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}
.animated-signature path {
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    fill: transparent;
    animation: drawSignature 8s linear infinite both;
    stroke-width: 2px;
    stroke: black;
  }
  .animated-signature {
      width: 100%;
      max-width: 90px;
      display: flex;
      justify-content: flex-end;
      margin: 0px 0px 0px auto;
  }
  @keyframes drawSignature {
    0% {
      stroke-dashoffset: 2400;
    }
    15% {
      fill: transparent;
    }
    35%,
    75% {
      stroke-dashoffset: 0;
      fill: black;
    }
    90%,
    to {
      stroke-dashoffset: 2400;
      fill: transparent;
    }
}



#comment-toggle-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.comment-info {
    flex: 1;
}

.comment-count {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.comment-action {
    flex-shrink: 0;
}

.comment-btn.active {
    background-color: #ffffff;
    color: #000000;
}


/* 评论框遮罩层 */
.comment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.comment-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 电脑端悬浮评论框 */
.respond {
    background: var(--color-bg-primary);
    border: var(--border-dashed-input);
    padding: 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 700px;
    width: calc(100% - 40px);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    will-change: transform, opacity;
}

.respond.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.respond.closing {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 30px)) scale(0.95);
    pointer-events: none;
}

/* 确保评论框内所有子元素一起缩放 */
.respond.closing > * {
    transform: scale(0.98);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 优化回复信息区域的动画 */
.respond.closing .reply-info-wrapper {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* 评论回复工具栏 */
.comment-reply-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

/* 工具栏按钮统一样式 */
.reply-to-name,
.cancel-reply-btn,
.cancel-comment-btn {
    flex: 1;
    height: 1.875rem;
    box-sizing: border-box;
    border: var(--border-dashed-light);
    outline: none;
    line-height: 1.875rem;
    font-size: 0.75rem;
    font-family: inherit;
    transition: var(--transition-normal);
    display: inline-block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    background: #fafafa;
    padding: 0 0.625rem;
    color: #656565;
    margin: 0;
}

.emoji-btn,
.cancel-reply-btn,
.cancel-comment-btn {
    cursor: pointer;
}

.emoji-btn {
    order: 1;
    flex: 1;
}

.reply-to-name {
    order: 2;
    text-align: center;
}

.reply-to-name strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.cancel-reply-btn {
    order: 3;
}

.cancel-comment-btn {
    order: 4;
    display: block;
}

.cancel-reply-btn ~ .cancel-comment-btn {
    display: none;
}

.emoji-btn:hover,
.cancel-reply-btn:hover,
.cancel-comment-btn:hover {
    border-color: #999;
    background: var(--color-bg-primary);
}

/* 评论表单底部区域 */
.comment-form-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.comment-form-fields {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.comment-form-fields .text {
    flex: 1;
    min-width: 0;
    height: 1.875rem;
    box-sizing: border-box;
    border: var(--border-dashed-light);
    outline: none;
    line-height: 1.875rem;
    font-size: 0.75rem;
    font-family: inherit;
    transition: var(--transition-normal);
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    background: #fafafa;
    padding: 0 0.625rem;
    color: #656565;
    margin: 0;
}

.comment-form-fields .text:focus {
    border-color: #666;
    background: var(--color-bg-primary);
}

.comment-form-fields .text::placeholder {
    color: var(--color-text-tertiary);
}

/* 提交按钮统一样式 */
.comment-form-bottom .submit,
.comment-user-info .submit {
    height: 1.875rem;
    box-sizing: border-box;
    border: var(--border-dashed);
    outline: none;
    line-height: 1.875rem;
    font-size: 0.75rem;
    font-family: inherit;
    transition: var(--transition-normal);
    display: inline-block;
    white-space: nowrap;
    padding: 0 0.625rem;
    cursor: pointer;
    margin: 0;
}

.comment-form-bottom .submit {
    flex-shrink: 0;
    text-overflow: ellipsis;
    overflow: hidden;
}

.comment-form-bottom .submit:hover,
.comment-user-info .submit:hover {
    background: #555;
    border-color: #555;
}

/* 登录用户信息区域 */
.comment-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.comment-user-info span {
    font-size: 0.75rem;
    color: #656565;
}

/* ✅ 已删除重复的 .comment-user-info a 样式（原 2927-2934 行） */

.comment-input-container {
    margin-bottom: 15px;
}

.comment-editor {
    min-height: 120px;
    border: var(--border-dashed-light);
    padding: 12px;
    background: var(--color-bg-primary);
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
    max-height: 300px;
    word-wrap: break-word;
}

.comment-editor:empty:before {
    content: attr(data-placeholder);
    color: var(--color-text-tertiary);
    pointer-events: none;
}

.comment-editor:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.1);
}

/* 表情选择器 */
.emoji-picker {
    background: var(--color-bg-primary);
    border: 2px dashed #ababab;
    width: 100%;
    max-width: 100%;
    max-height: 280px;
    z-index: 1000;
    animation: fadeInUp var(--transition-fast);
}

/* ✅ Memos 页面的表情选择器 - 绝对定位避免布局错位 */
#memo-emoji-picker.emoji-picker {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emoji-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    background: #f9f9f9;
}

.emoji-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.emoji-tab:hover {
    background: #f0f0f0;
}

.emoji-tab.active {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-weight: 500;
}

.emoji-container {
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 5px;
}

.emoji-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    border: none;
    background: transparent;
    padding: 2px;
}

.emoji-item:hover {
    background: #f0f0f0;
}

.emoji-item img {
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}


.biaoqing, .sticker {
    max-width: 24px;
    max-height: 24px;
    vertical-align: middle;
    margin: 0 2px;
}


.comments-list {
    margin-top: 20px;
}

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

.comment-container {
    padding: 20px 0;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}


.comment-parent {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}

.comment-parent:last-child {
    border-bottom: none;
}


.comment-child {
    border-bottom: none !important;
}


.comment-children {
    width: 100%;
    margin-top: 15px;
    padding-left: 0;
}

.comment-children .comment-container {
    padding: 15px 0;
    border-bottom: none !important;
}


.avatar-box {
    position: relative;
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

.avatar-box .avatar {
    width: 35px;
    height: 35px;
    border-radius: 0;
    object-fit: cover;
    border: var(--border-dashed-gray);
    display: block;
}


a.comment-reply {
    position: absolute;
    top: 20px;
    right: 0;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition-fast);
    padding: 2px 8px;
    border: 1px solid transparent;
    border-radius: 3px;
}

a.comment-reply:hover {
    color: var(--color-text-primary);
    background: #f5f5f5;
    border-color: #e0e0e0;
}


.comment-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3px 0;
    padding-right: 60px;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ✅ 已删除重复的 .comment-author a 样式（原 3153-3162 行） */

.comment-badge {
    background: #2e8bc0;
    color: #fff;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
    display: inline-block;
}

.comment-badge-icon {
    height: 18px;
    width: auto;
    vertical-align: middle;
    margin-left: 2px;
    display: inline-block;
}

.comment-time {
    color: var(--color-text-tertiary);
    font-size: 12px;
    line-height: 1.4;
    cursor: help;
    transition: color var(--transition-fast);
    width: 100%;
}

.comment-time:hover {
    color: var(--color-text-secondary);
}

.comment-text {
    width: 100%;
    color: var(--color-text-primary);
    line-height: 1.7;
    font-size: 14px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.comment-text p {
    margin: 0 0 10px 0;
    line-height: 1.7;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

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

.comment-text a {
    word-break: break-all;
    overflow-wrap: anywhere;
}

.comment-reply-to {
    color: #0053c2;
    font-weight: 500;
    margin-right: 4px;
    display: inline;
}


/* 回复信息容器 */
.reply-info-wrapper {
    margin-bottom: 12px;
}

.reply-info {
    background: #fafafa;
    border: var(--border-dashed-light);
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
}

.reply-info-content {
    display: block;
}

.reply-content {
    color: var(--color-text-secondary);
    font-size: 12px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.original-comment {
    color: #656565;
    font-weight: 400;
}

.reply-info-content .biaoqing,
.reply-info-content .sticker {
    max-width: 20px;
    max-height: 20px;
    vertical-align: middle;
    margin: 0 2px;
}

.comment-disabled {
    text-align: center;
    padding: 20px;
    color: #666;
}




.site-statistics {
    margin-bottom: 40px;
    padding: 30px 0;
}

.statistics-title {
        text-align: center;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid #333;
    display: inline-block;
}

.statistics-title h2 {
    font-size: 1.8em;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 600;
    text-align: left;
}

.statistics-subtitle {
    font-size: 0.9em;
    color: #666;
    margin: 0;
    font-weight: 400;
    font-family: 'SM', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: left;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    margin-top: 20px;
}

.stat-item {
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 2px solid transparent;
}

.stat-item:hover {
    border-bottom-color: #333;
}

.stat-icon {
    font-size: 2em;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.stat-number {
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    line-height: 1;
    font-family: 'SM', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
    margin: 0;
}


@media (max-width: 768px) {
    .site-statistics {
        margin-bottom: 30px;
        padding: 20px 0;
    }
    
    .statistics-title {
        padding-left: 12px;
    }
    
    .statistics-title h2 {
        font-size: 1.5em;
    }
    
    .statistics-subtitle {
        font-size: 0.8em;
    }
    
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item {
        padding: 16px;
    }
    
    .stat-icon {
        font-size: 1.8em;
        margin-bottom: 10px;
    }
    
    .stat-number {
        font-size: 1.8em;
    }
    
    .stat-label {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .site-statistics {
        padding: 16px 0;
        margin-bottom: 25px;
    }
    
    .statistics-title {
        margin-bottom: 20px;
        padding-left: 10px;
    }
    
    .statistics-title h2 {
        font-size: 1.3em;
    }
    
    .statistics-grid {
        gap: 12px;
    }
    
    .stat-item {
        padding: 14px;
    }
    
    .stat-icon {
        font-size: 1.6em;
        margin-bottom: 8px;
    }
    
    .stat-number {
        font-size: 1.6em;
    }
    
    .stat-label {
        font-size: 0.8em;
    }
}


.links-page {
    margin-top: 30px;
    padding: 0;
}

.links-title-container {
    margin-bottom: 20px;
    text-align: center;
}

.links-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    text-align: start;
}

.links-title-en {
    font-size: 13px;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.link-item {
    background: #fff;
    padding: 0.5em;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: var(--border-dashed-lighter);
}

.link-item:hover {
    transform: translateY(-3px);
    border-color: #ddd;
}

.link-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
}

.link-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.link-item:hover .link-avatar img {
    transform: scale(1.05);
}

.link-avatar-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    font-size: 24px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.link-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ✅ 已删除重复的 .link-title 样式（原 3529-3541 行），已移至模块化链接样式区 */

.link-description {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.links-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    background: #f8f9fa;
    border-radius: 12px;
    border: var(--border-dashed-light);
}

.links-empty p {
    font-size: 1em;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.links-empty p:last-child {
    margin-bottom: 0;
    font-size: 0.9em;
    color: #aaa;
}


@media (max-width: 768px) {
    .links-page {
        margin-top: 20px;
        padding: 0 15px;
    }
    
    .links-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .link-item {
        padding: 16px;
        gap: 12px;
    }
    
    .link-avatar {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }
    
    .link-avatar-default {
        font-size: 20px !important;
    }
    
    .link-title {
        font-size: 1em;
    }
    
    .link-description {
        font-size: 0.85em;
        -webkit-line-clamp: 1;
    }
    
    .links-title-container {
        margin-bottom: 20px;
        padding-left: 12px;
    }
    
    .links-title {
        font-size: 1.5em;
    }
    
    .links-title-en {
        font-size: 0.8em;
    }
    
    .links-empty {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .links-container {
        gap: 12px;
    }
    
    .link-item {
        padding: 14px;
        gap: 10px;
    }
    
    .link-avatar {
        width: 45px;
        height: 45px;
        border-radius: 8px;
    }
    
    .link-avatar-default {
        font-size: 18px !important;
    }
    
    .link-title {
        font-size: 0.95em;
    }
    
    .link-description {
        font-size: 0.8em;
    }
    
    .links-title {
        font-size: 1.3em;
    }
}


/* 手机端评论框悬浮底部 */

@media (max-width: 768px) {
    #comment-toggle-area {
        padding: 15px 0;
    }
    
    .respond {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        padding: 15px;
        margin-bottom: 0;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-height: 70vh;
        max-width: 100%;
        width: 100%;
        overflow-y: auto;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .respond.active {
        transform: translateY(0);
    }
    
    .respond.closing {
        transform: translateY(100%);
        opacity: 0;
    }
    
    /* 手机端评论框内所有子元素跟随下滑 */
    .respond.closing > * {
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* 手机端不需要遮罩层 */
    .comment-overlay {
        display: none;
    }
    
    .comment-container {
        gap: 12px;
    }
    
    .avatar-box {
        width: 32px;
        height: 32px;
    }
    
    .avatar-box .avatar {
        width: 32px;
        height: 32px;
    }
    
    .comment-badge {
        font-size: 9px;
        padding: 1px 5px;
    }
    
    .comment-badge-icon {
        height: 16px;
    }
    
    a.comment-reply {
        font-size: 12px;
        padding: 2px 6px;
    }
    
    .comment-info {
        padding-right: 55px;
    }
    
    .comment-author {
        font-size: 13px;
        gap: 4px;
    }
    
    .comment-time {
        font-size: 11px;
    }
    
    .comment-text {
        font-size: 13px;
        margin-top: 6px;
    }
    
    .comment-children {
        padding-left: 0;
        margin-top: 12px;
    }
    
    .comment-children .comment-container {
        padding: 12px 0;
    }
}



#memo-main-area {
    position: relative;
  
    margin-bottom: 20px;
    min-height: 120px;
    display: flex;
    align-items: flex-end; 
    justify-content: space-between;
}


.memos-background {
    position: relative; 
    left: 0;
    z-index: 1;
    pointer-events: none;
    align-self: flex-end; 
}

.memos-text {
    letter-spacing: -0.05em;
    line-height: 0.9; 
    display: block;
    user-select: none;
    font-size: 5rem;
    font-style: italic;
    font-family: -apple-system, BlinkMacSystemFont, segoe ui, Roboto, sans-serif;
    font-weight: 700;
    margin-bottom: 0; 
    
    /* 🎨 渐变镂空效果 */
    background: linear-gradient(135deg, 
        rgba(70, 123, 150, 0.08) 0%, 
        rgba(70, 123, 150, 0.15) 50%, 
        rgba(70, 123, 150, 0.08) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* 添加细微描边 */
    -webkit-text-stroke: 0.5px rgba(70, 123, 150, 0.2);
    
    /* 文字阴影增加层次感 */
    text-shadow: 
        2px 2px 4px rgba(70, 123, 150, 0.05),
        -1px -1px 2px rgba(255, 255, 255, 0.5);
    
    /* 淡入动画 */
    animation: memos-fade-in 0.8s ease-out;
}

@keyframes memos-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.memos-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin: 8px 0 0 4px; 
    letter-spacing: 0.05em;
    line-height: 1.5;
    max-width: 280px;
    font-weight: 400;
    
    /* ✨ 渐变色文字 */
    background: linear-gradient(90deg, 
        #666 0%, 
        #999 50%, 
        #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* 淡入动画（延迟） */
    animation: memos-subtitle-fade-in 1s ease-out 0.3s both;
}

@keyframes memos-subtitle-fade-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


#memo-toggle-area {
    position: relative;
    z-index: 2;
    margin-left: auto;
    align-self: flex-end; 
}

.memo-action {
    flex-shrink: 0;
}

.memo-btn {
    color: #333;
    border: var(--border-dashed);
    padding: 3px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    background-color: transparent;
    text-decoration: none;
    display: inline-block;
    border-radius: 0;
}

.memo-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.memo-btn.active {
    background-color: #909090;
    color: #fff;
}

.memo-login-btn {
    color: #333;
    border: var(--border-dashed);
    padding: 3px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    background-color: transparent;
    text-decoration: none;
    display: inline-block;
    border-radius: 0;
}

.memo-login-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}


.memo-respond {
    background: #ffffff;
    border: var(--border-dashed-dark);
    padding: 20px;
    margin-bottom: 30px;
    animation: slideDown 0.3s ease-out;
}


.memo-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.memo-author-details {
    flex: 1;
}

.memo-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
    line-height: 1.4;
}

.memo-author-time {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 2px;
}


.memo-input-container {
    margin-bottom: 15px;
}

.memo-editor {
    min-height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
    max-height: 300px;
    word-wrap: break-word;
}

.memo-editor:empty:before {
    content: attr(data-placeholder);
    color: #999;
    pointer-events: none;
}

.memo-editor:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.1);
}


.memo-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-bottom: 10px;
}

.memo-upload-btn,
.memo-actions .emoji-btn,
.memo-submit {
    flex: 1; /* ✅ 均分空间 */
    color: #333;
    border: var(--border-dashed);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: transparent;
    text-decoration: none;
    display: inline-block;
    border-radius: 0;
    text-align: center;
}

.memo-upload-btn:hover,
.memo-actions .emoji-btn:hover,
.memo-submit:hover {
    background-color: #f0f0f0;
    color: #333;
}


.memo-image-preview {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    
    image-rendering: -webkit-optimize-contrast;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    
    transition: opacity 0.3s ease;
}

.remove-image {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.remove-image:hover {
    background: rgba(0, 0, 0, 0.8);
}


.image-preview-item.uploading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: var(--border-dashed-light);
}

.upload-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 12px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}




.memos-list {
    margin: 20px 0;
}

.memo-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.memo-item {
    padding: 20px;
    border: var(--border-dashed-comment);
    margin-bottom: 20px;
    border-radius: 0;
}

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


.memo-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.memo-avatar {
    width: 40px;
    height: 40px;
    border: 1px solid #f3f3f3;
    padding: 2px;
}

.memo-author-info {
    display: flex
;
    flex-direction: column;
    justify-content: center;
}

.memo-author-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    display: block;
}

.memo-time {
    font-size: 13px;
    color: #999;
    line-height: 1.3;
    display: block;
}


.memo-content {
    color: #333;
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.memo-text {
    line-height: 1.7;
}

.memo-short-content,
.memo-full-content {
    white-space: pre-wrap;
    word-break: break-word;
}

.memo-expand-btn {
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    margin-top: 8px;
    padding: 0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.memo-expand-btn:hover {
    color: #333;
}

.memo-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
    display: block;
}

.memo-content p {
    margin-bottom: 12px;
    line-height: 1.7;
}

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


.memo-content p img.sticker,
.memo-content p img.biaoqing {
    display: inline;
    margin: 0 2px;
    vertical-align: middle;
}


.memo-content .emoji-inline {
    display: inline-flex;
    align-items: center; 
    margin: 0 4px 0 0;
}


.memo-content br {
    line-height: 1.7;
}


.memo-content .biaoqing,
.memo-content .sticker {
    max-width: 24px;
    max-height: 24px;
    vertical-align: middle;
    margin: 0 2px;
}


.memo-content > img:not(.biaoqing):not(.sticker),
.memo-content p > img:not(.biaoqing):not(.sticker),
.memo-content div:not(.memo-photos-grid) > img:not(.biaoqing):not(.sticker) {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
    display: block;
}


.memo-photos-grid .memo-photo-item img {
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    display: block !important;
}


.memo-photos-grid {
    display: grid;
    gap: 4px;
    margin: 15px 0;
    max-width: 280px; 
    width: 100%; 
    
    transform: translate3d(0, 0, 0);
    
    contain: layout style paint;
    
    isolation: isolate;
}


.memo-photos-grid[data-count="1"] {
    grid-template-columns: 1fr;
    max-width: 200px;
}

.memo-photos-grid[data-count="1"] .memo-photo-item {
    max-height: 300px;
    overflow: hidden;
}


.memo-photos-grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 200px; 
}

.memo-photos-grid[data-count="3"] {
    grid-template-columns: repeat(3, 1fr);
    max-width: 280px; 
}


.memo-photos-grid[data-count="4"] {
    grid-template-columns: repeat(2, 1fr);
}


.memo-photos-grid[data-count="5"],
.memo-photos-grid[data-count="6"] {
    grid-template-columns: repeat(3, 1fr);
}


.memo-photos-grid[data-count="7"],
.memo-photos-grid[data-count="8"] {
    grid-template-columns: repeat(3, 1fr);
}


.memo-photos-grid[data-count="9"] {
    grid-template-columns: repeat(3, 1fr);
}


.memo-photo-item {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; 
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    min-width: 0; 
    
    transform: translate3d(0, 0, 0);
    
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    will-change: transform;
}


.memo-photo-item:hover {
    transform: translate3d(0, 0, 0) scale(1.02);
}

.memo-photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
}

.memo-photo-item:hover img {
    transform: translate3d(0, 0, 0) scale(1.05);
}


.memo-photos-grid[data-count="1"] .memo-photo-item {
    padding-bottom: 0;
    height: auto;
    max-height: 300px;
}

.memo-photos-grid[data-count="1"] .memo-photo-item img {
    position: static;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain; 
}


@media (max-width: 768px) {
    .memo-photos-grid {
        max-width: 240px; 
        gap: 3px;
    }
    
    
    .memo-photos-grid[data-count="2"] {
        max-width: 160px; 
    }
    
    .memo-photos-grid[data-count="3"] {
        max-width: 240px; 
    }
    
    
    .memo-photos-grid[data-count="1"] {
        max-width: 180px;
    }
    
    .memo-photos-grid[data-count="1"] .memo-photo-item {
        max-height: 240px;
    }
    
    .memo-photos-grid[data-count="1"] .memo-photo-item img {
        max-height: 240px;
    }
}

@media (max-width: 480px) {
    .memo-photos-grid {
        max-width: 200px; 
        gap: 2px;
    }
    
    
    .memo-photos-grid[data-count="2"] {
        max-width: 130px; 
    }
    
    .memo-photos-grid[data-count="3"] {
        max-width: 200px; 
    }
    
    
    .memo-photos-grid[data-count="1"] {
        max-width: 150px;
    }
    
    .memo-photos-grid[data-count="1"] .memo-photo-item {
        max-height: 200px;
    }
    
    .memo-photos-grid[data-count="1"] .memo-photo-item img {
        max-height: 200px;
    }
    
    
    .memo-photo-item:hover {
        transform: scale(1.01);
    }
    
    .memo-photo-item:hover img {
        transform: scale(1.02);
    }
}


.memo-editor .biaoqing,
.memo-editor .sticker,
#memo-editor .biaoqing,
#memo-editor .sticker {
    max-width: 24px;
    max-height: 24px;
    vertical-align: middle;
    margin: 0 2px;
    cursor: default;
}




.memo-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.login-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eee;
}

.login-modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    color: #333;
    font-weight: 600;
}

.login-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.login-modal-close:hover {
    background: #f0f0f0;
    color: #666;
}

.login-modal-body {
    padding: 25px;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.login-field input[type="text"],
.login-field input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: var(--border-dashed-light);
    border-radius: 0;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #fff;
}

.login-field input[type="text"]:focus,
.login-field input[type="password"]:focus {
    outline: none;
    border-color: #999;
}

.remember-field {
    margin-bottom: 25px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.remember-label input[type="checkbox"] {
    margin: 0;
}

.login-actions {
    margin-bottom: 15px;
}

.login-submit-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: var(--border-dashed);
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-submit-btn:hover {
    background: #f0f0f0;
}

.login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-message {
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.login-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.login-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


.no-memos {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    background: #f8f9fa;
    border-radius: 8px;
    border: var(--border-dashed-light);
}

.no-memos p {
    font-size: 16px;
    margin: 0;
}


@media (max-width: 768px) {
    #memo-main-area {
       
        min-height: 100px;
        flex-direction: row; 
        align-items: flex-end; 
        gap: 20px;
    }
    
    .memos-background {
        position: relative; 
        align-self: flex-end; 
        flex: 1;
    }
    
    .memos-text {
        font-size: 3.5rem;
        /* 移动端保持渐变效果 */
        background: linear-gradient(135deg, 
            rgba(70, 123, 150, 0.1) 0%, 
            rgba(70, 123, 150, 0.18) 50%, 
            rgba(70, 123, 150, 0.1) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        -webkit-text-stroke: 0.5px rgba(70, 123, 150, 0.25);
    }
    
    .memos-subtitle {
        font-size: 0.8rem;
        max-width: none;
    }
    
    #memo-toggle-area {
        margin-left: auto; 
        align-self: flex-end; 
        flex-shrink: 0; 
    }
    
    .memo-respond {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .memo-author-info {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .memo-author-avatar {
        width: 35px;
        height: 35px;
    }
    
    .memo-author-name {
        font-size: 13px;
    }
    
    .memo-author-time {
        font-size: 11px;
    }
    
    .memo-editor {
        min-height: 80px;
        padding: 10px;
        font-size: 13px;
    }
    
    .memo-actions {
        flex-direction: row;
        align-items: stretch;
        gap: 8px;
        flex-wrap: nowrap; /* ✅ 不换行，保持三个按钮在同一行 */
    }
    
    /* ✅ 移动端按钮保持 flex: 1 */
    .memo-upload-btn,
    .memo-actions .emoji-btn,
    .memo-submit {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .image-preview-list {
        gap: 8px;
    }
    
    .image-preview-item {
        width: 80px;
        height: 80px;
    }
    
    
    .memo-list {
        gap: 15px;
    }
    
    .memo-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .memo-header {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .memo-avatar {
        width: 50px;
        height: 50px;
    }
    
    .memo-author-name {
        font-size: 15px;
    }
    
    .memo-time {
        font-size: 12px;
    }
    
    .memo-content {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .memo-text {
        line-height: 1.6;
    }
    
    .memo-expand-btn {
        font-size: 12px;
        margin-top: 6px;
    }
    

    
    .no-memos {
        padding: 40px 15px;
    }
    
    .no-memos p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #memo-main-area {
       
        min-height: 80px;
        gap: 15px;
        align-items: flex-end; 
        flex-direction: row; 
    }
    
    .memos-background {
        align-self: flex-end; 
        flex: 1;
    }
    
    .memos-text {
        font-size: 2.8rem;
        /* 小屏幕保持渐变效果 */
        background: linear-gradient(135deg, 
            rgba(70, 123, 150, 0.12) 0%, 
            rgba(70, 123, 150, 0.2) 50%, 
            rgba(70, 123, 150, 0.12) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        -webkit-text-stroke: 0.5px rgba(70, 123, 150, 0.3);
    }
    
    .memos-subtitle {
        font-size: 0.75rem;
        margin-top: 5px;
    }
    
    #memo-toggle-area {
        align-self: flex-end; 
        margin-left: auto; 
        flex-shrink: 0; 
    }
    
    
    .login-modal-content {
        width: 95%;
        max-width: none;
        margin: 0 10px;
    }
    
    .login-modal-header {
        padding: 15px 20px 10px;
    }
    
    .login-modal-body {
        padding: 20px;
    }
    
    .login-field input[type="text"],
    .login-field input[type="password"] {
        padding: 10px 12px;
        font-size: 16px; 
    }
    
    .memo-item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .memo-header {
        gap: 10px;
    }
    
    .memo-avatar {
        width: 45px;
        height: 45px;
    }
    
    .memo-author-name {
        font-size: 14px;
    }
    
    .memo-time {
        font-size: 11px;
    }
    
    .memo-content {
        font-size: 12px;
    }
    
    .memo-expand-btn {
        font-size: 11px;
        margin-top: 4px;
    }
    
    .image-preview-item {
        width: 70px;
        height: 70px;
    }
}

/* ========== 文章签名和互动区域（两行布局） ========== */

/* 外层包装容器 */
.post-signature-wrapper {
    /* margin: 40px 0; */
    width: 100%;
    overflow-x: hidden;  /* 隐藏横向滚动条，防止交互按钮超出时出现滚动条 */
}

/* 第一行：点赞按钮（居中） */
.signature-like-row {
    text-align: center;
    margin-top: 20px;
}

/* 第二行：签名容器（固定高度，避免抖动） */
.signature-bottom-row {
    text-align: right;
    position: relative;
    min-height: 70px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.clickable-signature {
    cursor: pointer;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 2;
}

.clickable-signature:hover {
    opacity: 0.7;
}

/* 支持按钮 - 绝对定位，从左侧展开（不占用文档流） */
.post-support-actions {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
    display: flex;
    gap: 12px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    z-index: 1;
}

.post-support-actions.expanded {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.support-item {
    padding: 6px 12px;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 14px;
    user-select: none;
    white-space: nowrap;
    border: 2px dashed;
    line-height: 1;
    flex-shrink: 0;
}

.support-item:hover {
    color: #467b96;
}


@media (min-width: 1200px) {
    .clickable-signature svg {
        width: 297.7px;
        height: auto;
    }
}


@media (max-width: 1024px) and (min-width: 769px) {
    .signature-bottom-row {
        gap: 15px;
    }
    
    .post-support-actions {
        gap: 10px;
    }
    
    .support-item {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .clickable-signature svg {
        width: 250px;
        height: auto;
    }
}


@media (max-width: 768px) {
    .signature-like-row {
        margin-bottom: 15px;
    }
    
    .signature-bottom-row {
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        min-height: auto;
    }
    
    .post-support-actions {
        position: static;
        transform: none;
        gap: 8px;
        justify-content: center;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .post-support-actions.expanded {
        transform: none;  /* 覆盖桌面端的 translateY 和 translateX */
        max-height: 100px;
        margin-bottom: 10px;
    }
    
    .support-item {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .clickable-signature svg {
        width: 200px;
        height: auto;
    }
}


@media (max-width: 480px) {
    
    .signature-like-row {
        margin-bottom: 12px;
    }
    
    .signature-bottom-row {
        gap: 12px;
    }
    
    .post-support-actions.expanded {
        transform: none;  /* 覆盖桌面端的 translateY 和 translateX */
        max-height: 120px;
    }
    
    .support-item {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .clickable-signature svg {
        width: 180px;
        height: auto;
    }
}


@keyframes signatureShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}


.load-time {
    transition: opacity 0.3s ease;
}

.load-time:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .load-time {
        font-size: 11px;
    }
}


#noscript-warning {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
}


.no-js #container {
    display: none !important;
}


#reply-info .reply-info-content { 
    display: block;
}

#reply-info .reply-content { 
    display: block;
}


#reply-info .original-comment {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


#reply-info .original-comment p,
#reply-info .original-comment div {
    display: inline;
    margin: 0;
    padding: 0;
}

#reply-info .original-comment br { 
    display: none; 
}


#reply-info .original-comment img {
    vertical-align: text-bottom;
    max-height: 1.2em;
}



.post-content table,
article table,
.page-content table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}


.post-content,
article,
.page-content {
    overflow-x: auto;
}


.post-content table thead,
article table thead,
.page-content table thead {
    background-color: #f8f9fa;
}

.post-content table th,
article table th,
.page-content table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border: 1px solid #e5e7eb;
    background-color: #f8f9fa;
}


.post-content table td,
article table td,
.page-content table td {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    color: #333;
    transition: background-color 0.2s ease;
}


.post-content table tbody tr:hover,
article table tbody tr:hover,
.page-content table tbody tr:hover {
    background-color: #fafbfc;
}


/*
.post-content table tbody tr:nth-child(even),
article table tbody tr:nth-child(even),
.page-content table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}
*/


.post-content table tbody tr td:first-child,
article table tbody tr td:first-child,
.page-content table tbody tr td:first-child {
    font-weight: 500;
}


@media screen and (max-width: 768px) {
    .post-content table,
    article table,
    .page-content table {
        font-size: 13px;
    }
    
    .post-content table th,
    article table th,
    .page-content table th,
    .post-content table td,
    article table td,
    .page-content table td {
        padding: 10px 12px;
    }
}


@media screen and (max-width: 480px) {
    .post-content table,
    article table,
    .page-content table {
        font-size: 12px;
    }
    
    .post-content table th,
    article table th,
    .page-content table th,
    .post-content table td,
    article table td,
    .page-content table td {
        padding: 8px 10px;
    }
}

/* ===================================
   关于页面卡片布局样式 - 全设备按比例缩放
   =================================== */

.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(10px, 2vw, 20px);
}

.about-card {
    background: transparent;
    border: var(--border-dashed-about);
    padding: clamp(25px, 4vw, 50px);
    margin-bottom: clamp(20px, 3vw, 40px);
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
}


.about-left {
    flex: 1;
    min-width: 0;
}

.about-intro {
    color: #333;
}

.about-title {
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 clamp(10px, 1.5vw, 20px) 0;
    color: #333;
}

.about-desc {
    font-size: clamp(12px, 1.2vw, 14px);
    line-height: 1.6;
    color: #333;
    margin: 0;
}


.about-right {
    flex-shrink: 0;
    width: clamp(200px, 36vw, 440px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(8px, 1.5vw, 20px);
    width: 100%;
}

.stat-box {
    background: transparent;
    border: var(--border-dashed-about);
    padding: clamp(10px, 2vw, 25px) clamp(8px, 1.5vw, 20px);
    text-align: center;
    transition: all 0.3s ease;
    aspect-ratio: 1.75 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-box:hover {
    border-color: #555;
    transform: translateY(-5px);
}

.stat-value {
    font-size: clamp(20px, 3.8vw, 48px);
    font-weight: 700;
    color: #333;
    margin-bottom: clamp(3px, 0.6vw, 8px);
    line-height: 1;
}

.stat-label {
    font-size: clamp(10px, 1.1vw, 14px);
    color: #666;
    margin: 0;
    white-space: nowrap;
}


@media screen and (max-width: 768px) {
    .about-card {
        flex-direction: column;
        gap: clamp(20px, 4vw, 30px);
    }
    
    .about-right {
        width: 100%;
        max-width: clamp(280px, 80vw, 440px);
    }
    
    .stats-grid {
        margin: 0 auto;
    }
}



/* 搜索弹窗样式 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    opacity: 1;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.search-modal-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 600px;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-modal-box {
    background: #fff;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.search-modal-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-modal-input {
    flex: 1;
    height: 50px;
    padding: 0 20px;
    font-size: 16px;
    border: var(--border-dashed-search);
    color: #000000;
    outline: none;
    transition: all 0.3s 
ease;
    font-family: 'SM', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.search-modal-input:focus {
    border-color: #000000;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(121, 121, 121, 0.1);
}

.search-modal-input::placeholder {
    color: #999;
}

.search-modal-submit {
    width: 50px;
    height: 50px;
    padding: 0;
    border: var(--border-dashed-darker);
    color: #000000;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s 
ease;
    display: flex
;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-modal-submit:hover {
    color: #545454;
}

.search-modal-submit .iconfont {
    font-size: 20px;
    line-height: 1;
}




img.lazy-loaded {
    animation: fadeIn 0.3s ease;
}

img.lazy-error {
    opacity: 0.3;
    background: #f5f5f5 center/contain no-repeat;
}




.search-results {
    width: 100%;
    max-width: 800px;
    margin: 20px auto 0;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f8f8;
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.search-result-meta span {
    margin-right: 15px;
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.search-loading {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.search-loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}


.search-highlight {
    background: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}


/* 搜索弹窗移动端适配 */
@media screen and (max-width: 768px) {
    .search-modal-content {
        width: 95%;
        max-width: 500px;
    }
    
    .search-modal-box {
        padding: 15px;
    }
    
    .search-modal-input {
        height: 46px;
        padding: 0 15px;
        font-size: 15px;
    }
    
    .search-modal-submit {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .search-modal-overlay {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .search-modal-content {
        width: 90%;
    }
    
    .search-modal-box {
        padding: 12px;
        border-radius: 6px;
    }
    
    .search-modal-form {
        gap: 8px;
    }
    
    .search-modal-input {
        height: 44px;
        padding: 0 12px;
        font-size: 14px;
    }
    
    .search-modal-submit {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

/* ========================================
   点赞功能样式
   ======================================== */

/* 文章点赞按钮（只显示图标，hover显示数量） */
.post-like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    user-select: none;
    position: relative;
}

.post-like-btn:hover {
    transform: scale(1.15);
}

.post-like-btn .like-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    transition: all var(--transition-normal);
    background-color: #999;
    -webkit-mask: url('../img/links.png') center/contain no-repeat;
    mask: url('../img/links.png') center/contain no-repeat;
}

.post-like-btn:hover .like-icon {
    background-color: #666;
}

.post-like-btn.liked .like-icon {
    background-color: #ff6b6b;
    animation: likeAnimation 0.5s ease;
}

@keyframes likeAnimation {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3) rotate(-10deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    75% {
        transform: scale(1.3) rotate(-5deg);
    }
}

/* 评论点赞按钮 */
.comment-like-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    user-select: none;
    vertical-align: middle;
}

.comment-like-btn:hover {
    transform: scale(1.1);
}

.comment-like-btn .like-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    transition: all var(--transition-normal);
    background-color: #ebebeb;
    -webkit-mask: url('../img/links.png') center/contain no-repeat;
    mask: url('../img/links.png') center/contain no-repeat;
}

.comment-like-btn:hover .like-icon {
    transform: scale(1.15);
    background-color: #666;
}

.comment-like-btn.liked .like-icon {
    background-color: #ff6b6b;
    animation: likeAnimation 0.5s ease;
}

.comment-like-btn {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
    min-width: 12px;
    text-align: center;
}

/* 移动端适配 - 点赞按钮调整 */
@media screen and (max-width: 768px) {
    .post-like-btn {
        width: 42px;
        height: 42px;
    }
    
    .post-like-btn .like-icon {
        width: 20px;
        height: 20px;
    }
    
    .comment-like-btn {
        padding: 3px 6px;
        margin-left: 6px;
    }
}

/* 加载状态 */
.post-like-btn.loading,
.comment-like-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

.post-like-btn.loading .like-icon,
.comment-like-btn.loading .like-icon {
    animation: rotating 1s linear infinite;
}

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
