/*
Theme Name: Simple
Theme URI: https://example.com/
Description: A simple three-column WordPress blog theme
Author: Your Name
Author URI: https://example.com/
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simple
*/

/* 思源黑体字体已通过Google Fonts引入 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Iconfont 基础样式 */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

/* 图标大小控制类 */
.icon-xs {
    font-size: 12px;
}

.icon-sm {
    font-size: 14px;
}

.icon-md {
    font-size: 16px;
}

.icon-lg {
    font-size: 18px;
}

.icon-xl {
    font-size: 24px;
}

.icon-zuixin {
    font-size: 26px;
}

/* 最新互动模块图标 */
.interaction-icon {
    font-size: 56px;
    color: #666;
    margin: -15px 0 -5px 0;
    display: block;
    vertical-align: top;
    line-height: 1;
}

.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.5px;
    color: #333;
    background-color: #0024b30f;
}

/* 容器样式 */
.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 三栏布局容器 */
.layout-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

/* 三栏布局 */
.left-sidebar {
    width: 17.39%; /* 0.8/4.6 比例 */
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    /* 隐藏滚动条 */
    -ms-overflow-style: none;
    scrollbar-width: none;
    /* 禁用边栏的默认滚动行为 */
    overscroll-behavior-y: none;
}

/* 隐藏WebKit浏览器的滚动条 */
.left-sidebar::-webkit-scrollbar {
    display: none;
}

.main-content {
    width: 60.87%; /* 2.8/4.6 比例 */
}

.right-sidebar {
    width: 21.74%; /* 1/4.6 比例 */
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    /* 隐藏滚动条 */
    -ms-overflow-style: none;
    scrollbar-width: none;
    /* 禁用边栏的默认滚动行为 */
    overscroll-behavior-y: none;
}

/* 隐藏WebKit浏览器的滚动条 */
.right-sidebar::-webkit-scrollbar {
    display: none;
}

/* 全局平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 顶部导航栏样式 */
.header {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    background-color: transparent;
    z-index: 1000;
    box-sizing: border-box;
}

.header .container {
    margin: 0 auto;
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.site-branding .site-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.site-branding .site-title img {
    height: 50px;
    width: auto;
    vertical-align: middle;
    object-fit: contain;
}

/* 分类图片区块样式 */
.category-image-section {
    width: 100%;
    margin-bottom: 20px;
}

.category-image {
    width: 100%;
    height: 200px;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* 汉堡菜单样式 */
.mobile-menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.menu-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* 汉堡菜单激活状态 */
.mobile-menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-navigation a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s;
    padding: 5px 0;
    display: flex;
    align-items: center;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
}

.main-navigation .icon {
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
}

.main-navigation a:hover {
    color: #007bff;
}

/* 模块通用样式 */
.module {
    background-color: #fffffffa;
    
    border-radius: 10px;
    
    padding: 20px;
    margin-bottom: 20px;
}

.module-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-title svg {
    align-self: center;
    font-size: 34px;
    width: 34px;
    height: 34px;
}

/* 最新文章模块图标 */
.module-title .icon-zuixin1 {
    font-size: 34px;
    width: 34px;
    height: 34px;
}

/* 站点信息模块图标 */
.module-title .icon-huojian2-copy-copy {
    font-size: 34px;
    width: 34px;
    height: 34px;
}

/* 博主信息模块 */
.author-info {
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.author-bio {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    color: #666;
    font-size: 18px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #007bff;
}

/* 分类模块 */
.category-list {
    list-style: none;
}

.category-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #555;
    transition: color 0.3s;
}

.category-list a:hover {
    color: #007bff;
}

.category-list .icon {
    margin-right: 10px;
    font-size: 20px;
    vertical-align: middle;
}

.category-count {
    color: #999;
    font-size: 14px;
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* 其他信息模块 */
.other-info-list {
    list-style: none;
}

.other-info-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px dashed #eee;
}

.other-info-list li:last-child {
    border-bottom: none;
}

/* 其他信息模块中的链接样式 */
.other-info-list a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.other-info-list a:hover {
    text-decoration: none;
    color: #666;
}

/* 幻灯片模块 */
.slider-container {
    margin-bottom: 20px;
}

.slider {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 8px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图文列表模块 */
.article-list .article-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    height: auto;
    align-items: stretch;
}

.article-list .article-item:last-child {
    border-bottom: none;
}

.article-thumbnail {
    width: 30%;
    min-width: 120px;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-thumbnail a {
    display: flex;
    flex: 1;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-thumbnail:hover img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.article-title a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #007bff;
}

.article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
    color: #666;
}

.article-stats {
    display: flex;
    gap: 15px;
}

.article-stats .icon {
    margin-right: 4px;
    font-size: 14px;
    vertical-align: middle;
}

.more-link {
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
}

.more-link:hover {
    color: #0056b3;
}

.more-link .icon {
    font-size: 12px;
    vertical-align: middle;
}

/* 微语模块 */
.micro-talk {
    display: flex;
    gap: 15px;
}

.micro-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.micro-content {
    flex: 1;
}

.micro-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.micro-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.micro-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

/* 每日一言模块 */
.daily-quote {
    position: relative;
    height: 200px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.daily-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://picsum.photos/600/400');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: 0;
}

.quote-content {
    position: relative;
    z-index: 1;
    font-size: 16px;
    line-height: 1.8;
    font-style: italic;
}

/* 最新互动模块 */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 文章详情页评论列表样式 */
#comments .comment-list {
    margin-top: 20px;
}

/* 评论列表结构 */
#comments .comment-list {
    margin-top: 20px;
    list-style: none;
}

/* 主评论项 */
#comments .comment-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    margin-bottom: 0;
    transition: all 0.3s ease;
    background-color: transparent;
    border: none;
}

/* 主评论项（非嵌套评论） */
#comments .comment-item:not(.child-comment) {
    border-top: 1px dashed #e0e0e0;
    padding-top: 8px;
    margin-top: 8px;
}

/* 嵌套评论列表 */
#comments .comment-list ul.children {
    margin: 0;
    padding: 15px;
    margin-left: 60px;
    margin-top: 10px;
    margin-bottom: 10px;
    list-style: none;
    background-color: #f5f7fa;
    border: none;
    border-radius: 8px;
}

/* 深层嵌套评论列表保持相同左对齐 */
#comments .comment-list ul.children ul.children {
    margin-left: 0;
    padding-left: 0px;
    padding-right: 2px;
    background-color: transparent;
    border-radius: 0;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* 嵌套评论项 */
#comments .comment-list ul.children .comment-item {
    background-color: transparent;
    border: none;
    margin-bottom: 15px;
    padding: 0;
    margin-left: 0;
}

/* 嵌套评论最后一项 */
#comments .comment-list ul.children .comment-item:last-child {
    margin-bottom: 0;
}

/* 作者回复样式 */
#comments .comment-item.author-reply {
    background-color: transparent;
    border: none;
}

/* 评论头像样式 */
#comments .comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    overflow: hidden;
}

/* 嵌套评论头像样式 */
#comments .comment-list ul.children .comment-item .comment-avatar {
    width: 35px;
    height: 35px;
}

#comments .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#comments .comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#comments .comment-author {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 作者徽章 */
#comments .author-badge {
    font-size: 10px;
    font-weight: 400;
    color: #fff;
    background-color: #007bff;
    padding: 2px 6px;
    border-radius: 10px;
    vertical-align: middle;
}

/* 回复关系 */
#comments .reply-to {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
    vertical-align: middle;
}

#comments .reply-to .icon {
    margin: 0 4px;
    font-size: 10px;
    color: #ccc;
    width: 12px;
    height: 12px;
    vertical-align: middle;
}

#comments .comment-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    word-break: break-all;
}

#comments .comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

#comments .comment-time {
    color: #999;
}

#comments .comment-reply {
    margin-left: auto;
}

#comments .comment-reply a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

#comments .comment-reply a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 侧边栏最新互动评论样式 */
.right-sidebar .comment-list {
    list-style: none;
}

.right-sidebar .comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.right-sidebar .comment-item:last-child {
    border-bottom: none;
}

.right-sidebar .comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.right-sidebar .comment-content {
    flex: 1;
}

.right-sidebar .comment-author {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.right-sidebar .comment-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}

.right-sidebar .comment-post {
    font-size: 12px;
    color: #999;
}

/* 站点信息模块 */
.site-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 20px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

/* 页脚样式 */
.footer {
    background-color: #fff;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

/* 文章详情页样式 */
.article-container,
.page-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.article-navigation {
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

/* 独立评论区区块样式 */
.comments-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#comments {
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

.single-post .article-header {
    margin-bottom: 30px;
}

.single-post .article-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.single-post .article-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.single-post .article-meta .meta-item {
    margin-right: 15px;
}

.single-post .article-meta .meta-item:last-child {
    margin-right: 0;
}

.single-post .article-content {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
    color: #333;
    letter-spacing: 0.5px;
}

.single-post .article-content p {
    text-indent: 2em;
    margin: 1em 0;
    text-align: justify;
    line-height: 2;
}

.single-post .article-content p:first-child {
    text-indent: 0;
}

.single-post .article-content p img {
    margin: 1em 0;
}

.single-post .article-content h1,
.single-post .article-content h2,
.single-post .article-content h3,
.single-post .article-content h4,
.single-post .article-content h5,
.single-post .article-content h6 {
    margin: 1.5em 0 1em;
    color: #222;
    font-weight: 600;
}

.single-post .article-content ul,
.single-post .article-content ol {
    margin: 1em 0 1em 2em;
    padding-left: 1em;
}

.single-post .article-content li {
    margin: 0.5em 0;
    line-height: 1.8;
}

.single-post .article-content blockquote {
    margin: 1.5em 0;
    padding: 0.5em 1em;
    border-left: 4px solid #ddd;
    background-color: #f9f9f9;
    font-style: italic;
    color: #666;
}

.single-post .article-content img {
    max-width: 100%;
    height: auto;
}

/* 页面内容区域图片样式 */
.page-content img {
    max-width: 100%;
    height: auto;
}

.page-content p img {
    margin: 1em 0;
    margin: 15px 0;
    border-radius: 6px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 作者信息样式 */
.author-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.author-signature {
    font-size: 14px;
    color: #666;
}

.article-link {
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
}

/* 上下篇文章样式 */
.prev-next-post {
    font-size: 14px;
    color: #333;
}

.prev-next-post a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.prev-next-post a:hover {
    text-decoration: underline;
}

/* 文章导航链接样式 */
.article-navigation a,
.single-post .article-meta a,
.single-post .article-tags a {
    text-decoration: none;
    color: inherit;
}

.article-navigation a:hover,
.single-post .article-meta a:hover,
.single-post .article-tags a:hover {
    text-decoration: none;
    color: inherit;
}

/* 评论表单样式 */
.comment-form {
    margin-bottom: 8px;
    padding-bottom: 8px;
    margin-top: 0;
    padding-top: 0;
    border: none;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/* 评论内容输入框与头像布局 */
.comment-text-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-top: 15px;
}

/* 评论内容左侧头像 */
.comment-text-wrapper .comment-form-avatar {
    width: 45px;
    flex-shrink: 0;
    margin-top: 5px;
}

/* 评论内容右侧输入区域 */
.comment-text-content {
    flex: 1;
}

/* 评论表单字段行布局 */
.comment-form-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    margin-left: 60px; /* 与评论内容输入框对齐，45px头像 + 15px间距 */
}

.comment-form-fields input {
    flex: 1;
    width: auto;
    margin-bottom: 0;
}

/* 提交按钮样式调整 */
.comment-form-fields .submit {
    flex: 0 0 auto;
    width: auto;
    padding: 5px 10px; /* 进一步减小内边距，降低按钮高度 */
    font-size: 13px;
    margin-bottom: 0;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    height: auto;
    line-height: normal;
    align-self: center;
}

.comment-form-fields .submit:hover {
    background-color: #0056b3;
}

/* 移除默认的提交按钮 */
#respond .form-submit {
    display: none;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
    word-wrap: break-word;
    word-break: break-all;
}

/* 这个样式已被.comment-form-fields .submit覆盖，保持一致性 */
.comment-form input[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 13px;
    transition: background-color 0.3s;
    height: auto;
    line-height: normal;
}

.comment-form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .left-sidebar,
    .right-sidebar {
        width: 25%;
    }
    
    .main-content {
        width: 50%;
    }
}

@media (max-width: 992px) {
    .right-sidebar {
        display: none;
    }
    
    .left-sidebar {
        width: 30%;
    }
    
    .main-content {
        width: 70%;
    }
    
    .slider {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 60px 20px;
        overflow-y: auto;
    }
    
    /* 手机布局：仅显示中间栏 */
    .left-sidebar {
        display: none;
    }
    
    .main-content {
        width: 100%;
    }
    
    /* 优化移动端屏幕边缘距离，减小左右留白 */
    .container {
        padding: 0 5px;
    }
    
    /* 针对分类21页面，进一步减小边距 */
    .category-21 .container {
        padding: 0 5px;
    }
    
    /* 针对分类21页面的模块，在移动端减小内边距，不影响桌面端 */
    .category-21 .module {
        padding: 10px; /* 比默认的20px小，可根据需要调整 */
    }
    
    .layout-wrapper {
        gap: 10px;
        margin-top: 10px;
        margin-bottom: 20px;
    }
    
    /* 优化图片和头像的自适应大小 */
    .article-thumbnail img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .single-post .article-content img,
    .single-content img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    .category-21-avatar img {
        width: 36px;
        height: 36px;
        object-fit: cover;
    }
    
    .grid-image-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation a {
        font-size: 18px;
        padding: 10px 0;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .slider {
        height: 200px;
    }
    
    /* 评论表单字段在小屏幕上保持水平排列 */
    .comment-form-fields {
        flex-direction: row;
        gap: 8px; /* 减小间距以适应小屏幕 */
        margin-left: 45px; /* 与评论内容输入框对齐，35px头像 + 10px间距 */
    }
    
    .comment-form-fields input {
        margin-bottom: 0;
    }
    
    /* 评论内容输入框与头像在小屏幕上保持横向排列 */
    .comment-text-wrapper {
        flex-direction: row;
        gap: 10px; /* 减小间距以适应小屏幕 */
        align-items: flex-start;
    }
    
    .comment-text-wrapper .comment-form-avatar {
        margin-bottom: 0;
        width: 35px; /* 缩小头像以适应小屏幕 */
    }
    
    .comment-text-wrapper .comment-form-avatar img {
        width: 35px;
        height: 35px;
    }
    
    /* 移动端评论区区块优化 */
    .comments-section {
        margin-top: 20px;
        padding: 15px;
        border-radius: 6px;
    }
    
    /* 移动端评论区优化 */
    #comments {
        padding: 0px;
        margin: 0px;
    }
    
    /* 评论项间距优化 */
    #comments .comment-item {
        gap: 10px;
        padding: 8px 0;
    }
    
    /* 评论者头像缩小 */
    #comments .comment-avatar {
        width: 35px;
        height: 35px;
    }
    
    #comments .comment-avatar img {
        width: 35px;
        height: 35px;
    }
    
    /* 嵌套评论头像进一步缩小 */
    #comments .comment-list ul.children .comment-item .comment-avatar {
        width: 28px;
        height: 28px;
    }
    
    #comments .comment-list ul.children .comment-item .comment-avatar img {
        width: 28px;
        height: 28px;
    }
    
    /* 评论者昵称优化 */
    #comments .comment-author {
        font-size: 13px;
        gap: 0;
    }
    
    /* 移除作者按钮 */
    #comments .author-badge {
        display: none;
    }
    
    
    /* 评论内容间距优化 */
    #comments .comment-content {
        gap: 6px;
    }
    
    #comments .comment-text {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 6px;
    }
    
    #comments .comment-meta {
        font-size: 11px;
    }
    
    /* 嵌套评论区域优化 */
    #comments .comment-list ul.children {
        margin-left: 20px;
        padding: 8px;
    }
    
    /* 评论表单优化 */
    .comment-form {
        margin-bottom: 10px;
    }
    
    .comment-form input,
    .comment-form textarea {
        padding: 8px;
        font-size: 13px;
    }
}

/* 图片懒加载样式 */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* 分类页面样式 */
.category-description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    line-height: 1.6;
}

/* 友情链接页面样式 */
.link-page {
    justify-content: flex-start;
}

.link-page .main-content {
    width: 100%;
    margin: 0;
}

/* 友链公告样式 */
.link-notice {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
}

/* 友链分类标题样式 */
.link-category-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

/* 友情链接卡片样式 */
.link-card {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, #e3f2fda6 0%, #f5f7fa 100%); /* 浅绿渐变浅蓝 */
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px; /* 最小内边距 */
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    min-width: 0; /* 确保卡片内容不会导致溢出 */
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.link-avatar {
    width: 45px; /* 头像大小 45*45 */
    height: 45px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.link-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.link-description {
    font-size: 12px; /* 描述字号 12px */
    color: #666;
    line-height: 1.4;
    white-space: nowrap; /* 只显示一行 */
    overflow: hidden;
    text-overflow: ellipsis; /* 超出截取 */
}

/* 友情链接网格布局 */
.link-list {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.link-card {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .link-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .link-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .link-card {
        flex-direction: row;
        text-align: left;
        padding: 6px;
    }
    
    .link-avatar {
        width: 35px;
        height: 35px;
        margin-right: 8px;
        margin-bottom: 0;
    }
    
    .link-title {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .link-description {
        font-size: 11px;
    }
}

/* 桃心点赞按钮样式 */
.action-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
}

.action-btn .heart-icon {
    font-size: 14px;
    color: #ccc;
    transition: all 0.3s ease;
    margin-right: 2px;
}

.action-btn .heart-icon.liked {
    color: #ff4d4f;
    transform: scale(1.1);
}

.action-btn .like-count {
    font-size: 12px;
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.back-to-top:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* 分类21作者昵称样式 */
.category-21-content .category-21-author {
    font-size: 16px;
    font-weight: bold;
    color: #0f2ad79d;
    margin-bottom: -12px;
}

/* 分类21发布时间样式 */
.category-21-content .category-21-pubtime {
    font-size: 12px;
    color: #999;
    margin-bottom: -6px;
}

/* 分类21评论区块样式 */
.category-21-comments {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
}

.category-21-comment-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
    padding: 0;
    line-height: 1.2;
}

/* 分类21评论表单样式 */
.category-21-comment-form {
    margin-bottom: 25px;
}

.category-21-comment-form #category-21-comment-form {
    margin: 0;
    padding: 0;
    border: none;
}

.category-21-comment-form-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.category-21-comment-field {
    flex: 1;
}

.category-21-comment-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.category-21-comment-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.category-21-comment-textarea {
    margin-bottom: 15px;
}

.category-21-comment-textarea textarea {
    resize: vertical;
    min-height: 100px;
    word-wrap: break-word;
    word-break: break-all;
}

#category-21-comment-submit {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#category-21-comment-submit:hover {
    background-color: #0056b3;
}

/* 分类21评论列表样式 */
.category-21-comment-list {
    margin-bottom: 20px;
}

.category-21-comment-list ol,
.category-21-comment-list ul {
    list-style: none !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* 分类21嵌套评论列表 - 简化选择器，确保所有子评论右移30px */
.category-21-comment-list .children {
    margin-right: 0 !important;
    padding: 0 !important;
    margin-left: 30px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    list-style: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

/* 确保所有嵌套子评论保持相同的缩进，不再增加 */
.category-21-comment-list .children li {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* 确保嵌套在子评论下的子评论列表保持相同缩进 */
.category-21-comment-list .children .children {
    margin: 0 !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding: 0 !important;
}

/* 分类21嵌套评论项 - 同时支持ul和ol结构 */
.category-21-comment-list .children > li,
.category-21-comment-list ul.children > li,
.category-21-comment-list ol.children > li {
    margin-left: 0 !important;
    list-style: none !important;
}

/* 分类21嵌套评论项内容 - 同时支持ul和ol结构 */
.category-21-comment-list .children .category-21-comment-item,
.category-21-comment-list ul.children .category-21-comment-item,
.category-21-comment-list ol.children .category-21-comment-item {
    margin-left: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
    border: none !important;
    margin-bottom: 15px !important;
    display: flex !important;
    gap: 12px !important;
}

/* 分类21嵌套评论头像 - 同时支持ul和ol结构 */
.category-21-comment-list .children .category-21-comment-item .category-21-comment-avatar,
.category-21-comment-list ul.children .category-21-comment-item .category-21-comment-avatar,
.category-21-comment-list ol.children .category-21-comment-item .category-21-comment-avatar {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
}

/* 分类21嵌套评论头像图片 */
.category-21-comment-list .children .category-21-comment-item .category-21-comment-avatar img,
.category-21-comment-list ul.children .category-21-comment-item .category-21-comment-avatar img,
.category-21-comment-list ol.children .category-21-comment-item .category-21-comment-avatar img {
    width: 28px !important;
    height: 28px !important;
}

.category-21-comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    transition: none;
}

.category-21-comment-item:hover {
    background-color: transparent;
}

.category-21-comment-avatar {
    flex-shrink: 0;
}

.category-21-comment-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.category-21-comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0px;
    text-align: left;
}

.category-21-comment-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 12px;
    margin-bottom: 0;
    text-align: left;
}

.category-21-comment-header > span {
    margin-right: 10px;
    text-align: left;
}

.category-21-comment-actions {
    margin-left: 0;
    font-size: 12px;
    text-align: left;
}

.category-21-comment-author {
    font-weight: 500;
    color: #333;
    line-height: 1.2;
    margin-bottom: 0;
    font-size: 14px;
    text-align: left;
}

.category-21-comment-date {
    color: #999;
    margin-right: 10px;
    text-align: left;
}

.category-21-comment-text {
    font-size: 14px;
    color: #555;
    line-height: 1.3;
    word-wrap: break-word;
    word-break: break-all;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: left;
}

/* 评论底部区域：时间+回复按钮 */
.category-21-comment-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    text-align: left;
}

.category-21-comment-actions {
    font-size: 12px;
}

.category-21-comment-actions a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.category-21-comment-actions a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.category-21-no-comments {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-21-comment-form-fields {
        flex-direction: column;
    }
    
    .category-21-comment-field {
        margin-bottom: 10px;
    }
}

/* 灯箱功能样式 */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    opacity: 0.8;
}

/* 添加点击图片的指针样式 */
.category-21-image-grid img,
.single-content img {
    cursor: pointer;
}

.action-btn.comment-btn {
    padding: 0;
}

.action-btn.comment-btn svg {
    margin-right: 2px;
}

/* 分类21特殊样式 */
.category-21-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.category-21-avatar {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 5px;
}

.category-21-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-21-content {
    flex: 1;
    background-color: #f5f7fa;
    border-radius: 12px;
    padding: 15px;
    position: relative;
}

/* 气泡连接三角 */
.category-21-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    z-index: 2;
}



.category-21-text {
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}



.category-21-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.category-21-actions {
    display: flex;
    gap: 15px;
}



/* 响应式：移动端隐藏气泡三角 */
@media (max-width: 768px) {
    .category-21-content::before,
    .category-21-content::after {
        display: none;
    }
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination .page-numbers:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

/* 分类ID为21的特殊布局样式 */
.category-21-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.category-21-item:last-child {
    border-bottom: none;
}

/* 左侧头像 */
.category-21-avatar {
    flex-shrink: 0;
}

.category-21-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}

/* 右侧内容区 */
.category-21-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2px 20px 0px 0px;
    position: relative;
}





/* 第一行：昵称 */
.category-21-nickname {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 第二行：过滤掉图片的文章内容 */
.category-21-text {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 第三行：九宫格图片展示 */
.category-21-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 340px;
}

/* 1张图片：自适应高度 */
.category-21-image-grid.image-count-1 {
    grid-template-columns: 1fr;
    border-radius: 10px;
    overflow: hidden;
}
.category-21-image-grid.image-count-1 .grid-image-item {
    aspect-ratio: auto;
    border-radius: 10px;
}
.category-21-image-grid.image-count-1 img {
    height: auto;
    border-radius: 10px;
}

/* 2张图片：左右各半 */
.category-21-image-grid.image-count-2 {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 10px;
    overflow: hidden;
}

/* 3张图片：左大右两小 */
.category-21-image-grid.image-count-3 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
.category-21-image-grid.image-count-3 .item-1 {
    grid-column: span 2;
    grid-row: span 2;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.category-21-image-grid.image-count-3 .item-2 {
    border-top-right-radius: 10px;
}
.category-21-image-grid.image-count-3 .item-3 {
    border-bottom-right-radius: 10px;
}

/* 4张图片：两行两列 */
.category-21-image-grid.image-count-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
.category-21-image-grid.image-count-4 .item-1 {
    border-top-left-radius: 10px;
}
.category-21-image-grid.image-count-4 .item-2 {
    border-top-right-radius: 10px;
}
.category-21-image-grid.image-count-4 .item-3 {
    border-bottom-left-radius: 10px;
}
.category-21-image-grid.image-count-4 .item-4 {
    border-bottom-right-radius: 10px;
}

/* 5张图片：上行两大，下行三小 */
.category-21-image-grid.image-count-5 {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
}
.category-21-image-grid.image-count-5 .item-1,
.category-21-image-grid.image-count-5 .item-2 {
    grid-column: span 6;
}
.category-21-image-grid.image-count-5 .item-3,
.category-21-image-grid.image-count-5 .item-4,
.category-21-image-grid.image-count-5 .item-5 {
    grid-column: span 4;
}
.category-21-image-grid.image-count-5 .item-1 {
    border-top-left-radius: 10px;
}
.category-21-image-grid.image-count-5 .item-2 {
    border-top-right-radius: 10px;
}
.category-21-image-grid.image-count-5 .item-4 {
    border-bottom-left-radius: 10px;
}
.category-21-image-grid.image-count-5 .item-5 {
    border-bottom-right-radius: 10px;
}

/* 6张图片：不规则布局 */
.category-21-image-grid.image-count-6 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    max-width: 340px;
    aspect-ratio: 1;
}
.category-21-image-grid.image-count-6 .item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
.category-21-image-grid.image-count-6 .item-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}
.category-21-image-grid.image-count-6 .item-3 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}
.category-21-image-grid.image-count-6 .item-4 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}
.category-21-image-grid.image-count-6 .item-5 {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}
.category-21-image-grid.image-count-6 .item-6 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}
.category-21-image-grid.image-count-6 .item-1 {
    border-top-left-radius: 10px;
}
.category-21-image-grid.image-count-6 .item-2 {
    border-top-right-radius: 10px;
}
.category-21-image-grid.image-count-6 .item-5 {
    border-bottom-right-radius: 10px;
}
.category-21-image-grid.image-count-6 .item-6 {
    border-bottom-left-radius: 10px;
}

/* 7张图片：上行三大，下行四小 */
.category-21-image-grid.image-count-7 {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
}
.category-21-image-grid.image-count-7 .item-1,
.category-21-image-grid.image-count-7 .item-2,
.category-21-image-grid.image-count-7 .item-3 {
    grid-column: span 4;
}
.category-21-image-grid.image-count-7 .item-4,
.category-21-image-grid.image-count-7 .item-5,
.category-21-image-grid.image-count-7 .item-6,
.category-21-image-grid.image-count-7 .item-7 {
    grid-column: span 3;
}
.category-21-image-grid.image-count-7 .item-1 {
    border-top-left-radius: 10px;
}
.category-21-image-grid.image-count-7 .item-3 {
    border-top-right-radius: 10px;
}
.category-21-image-grid.image-count-7 .item-4 {
    border-bottom-left-radius: 10px;
}
.category-21-image-grid.image-count-7 .item-7 {
    border-bottom-right-radius: 10px;
}

/* 8张图片：三行，第一行两大，第二行和第三行三张小 */
.category-21-image-grid.image-count-8 {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto;
}
.category-21-image-grid.image-count-8 .item-1,
.category-21-image-grid.image-count-8 .item-2 {
    grid-column: span 6;
}
.category-21-image-grid.image-count-8 .item-3,
.category-21-image-grid.image-count-8 .item-4,
.category-21-image-grid.image-count-8 .item-5 {
    grid-column: span 4;
}
.category-21-image-grid.image-count-8 .item-6,
.category-21-image-grid.image-count-8 .item-7,
.category-21-image-grid.image-count-8 .item-8 {
    grid-column: span 4;
}
.category-21-image-grid.image-count-8 .item-1 {
    border-top-left-radius: 10px;
}
.category-21-image-grid.image-count-8 .item-2 {
    border-top-right-radius: 10px;
}
.category-21-image-grid.image-count-8 .item-4 {
    border-bottom-left-radius: 10px;
}
.category-21-image-grid.image-count-8 .item-8 {
    border-bottom-right-radius: 10px;
}

/* 9张图片：九宫格 */
.category-21-image-grid.image-count-9 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}
.category-21-image-grid.image-count-9 .item-1 {
    border-top-left-radius: 10px;
}
.category-21-image-grid.image-count-9 .item-3 {
    border-top-right-radius: 10px;
}
.category-21-image-grid.image-count-9 .item-7 {
    border-bottom-left-radius: 10px;
}
.category-21-image-grid.image-count-9 .item-9 {
    border-bottom-right-radius: 10px;
}

.grid-image-item {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.grid-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.grid-image-item:hover img {
    transform: scale(1.05);
}

/* 第四行：发布时间和交互按钮 */
.category-21-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.category-21-date {
    font-size: 12px;
    color: #999;
}

.category-21-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    font-size: 12px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    color: #333;
}

.action-btn .icon {
    font-size: 14px;
}

/* 桃心点赞样式 */
.heart-icon {
    font-size: 14px;
    color: #ccc;
    transition: all 0.3s ease;
    margin-right: 2px;
}

.heart-icon.liked {
    color: #ff4d4f;
    transform: scale(1.1);
}

.like-count {
    font-size: 12px;
    color: #666;
}

/* 响应式设计：分类21布局 */
@media (max-width: 768px) {
    .category-21-item {
        flex-direction: row; /* 保持左头像右内容的布局 */
        align-items: flex-start;
        gap: 4px; /* 进一步减小头像与内容区之间的间距 */
        padding: 2px 0px 10px 0px;
    }
    
    /* 缩小头像大小并修复垂直对齐 */
    .category-21-avatar {
        margin-bottom: 0;
        margin-top: 7px; /* 移除顶部外边距，修复垂直对齐 */
        margin-left: 0;
        margin-right: 0;
        width: auto; /* 移除固定宽度，避免额外留白 */
        height: auto; /* 移除固定高度，避免额外留白 */
        padding: 0; /* 移除内边距，确保头像紧贴边缘 */
    }
    
    .category-21-avatar img {
        width: 32px;
        height: 32px;
        margin: 0;
    }
    
    /* 减小卡片内外边距，增大内容区域 */
    .category-21-content {
        padding: 0px 8px; /* 进一步减小卡片内边距，让内容更紧凑 */
        flex-shrink: 1;
        min-width: 0; /* 防止内容溢出 */
        position: static; /* 移除相对定位，避免潜在的布局问题 */
    }
    
    /* 在移动设备上隐藏气泡三角形 */
    .category-21-content::before,
    .category-21-content::after {
        display: none;
    }
    
    /* 优化内容文本 */
    .category-21-text {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* 优化图片网格 */
    .category-21-image-grid {
        gap: 6px;
        max-width: 100%;
    }
    
    .category-21-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .category-21-actions {
        margin-top: 0;
        gap: 10px;
    }
}

.pagination .current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .prev,
.pagination .next {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination .prev:hover,
.pagination .next:hover {
    background-color: #e9ecef;
    color: #007bff;
}

.no-posts {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 14px;
}

/* 分类21评论区块样式 */
.category-21-comments {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
}

.category-21-comment-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
}

.category-21-comment-form {
    margin-bottom: 30px;
}

.category-21-comment-textarea {
    margin-bottom: 15px;
}

.category-21-comment-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.category-21-comment-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.category-21-comment-form-fields {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.category-21-comment-field {
    flex: 1;
}

#category-21-comment-submit {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#category-21-comment-submit:hover {
    background-color: #0056b3;
}

.category-21-comment-list {
    margin-top: 20px;
}

.category-21-comment-list ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-21-comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    transition: none;
}

.category-21-comment-item:hover {
    background-color: transparent;
}

.category-21-comment-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.category-21-comment-content {
    flex: 1;
}

.category-21-comment-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 5px;
    text-align: left;
}

.category-21-comment-author {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    line-height: 1.2;
    margin-bottom: 3px;
}

.category-21-comment-reply-text {
    font-size: 12px;
    color: #999;
    margin: 0 4px;
}

.category-21-comment-date {
    font-size: 12px;
    color: #999;
    line-height: 1.2;
}

.category-21-comment-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* 评论底部区域：时间+回复按钮 */
.category-21-comment-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    text-align: left;
}

.category-21-comment-actions {
    font-size: 12px;
}

.category-21-comment-actions a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.category-21-comment-actions a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.category-21-no-comments {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-21-comment-form-fields {
        flex-direction: column;
    }
    
    .category-21-comment-field {
        margin-bottom: 10px;
    }
}