/*
Theme Name: Concise
Description: A minimal and elegant Typecho theme
Version: 1.0
*/

/* 自定义字体 */
@font-face {
    font-family: 'Love';
    src: url('love.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ddd;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    /* 隐藏滚动条但保持滚动功能 */
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* 隐藏webkit浏览器的滚动条 */
body::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar {
    display: none;
}

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

/* Header Styles */
.site-header {
    background: transparent;
    padding: 20px 0;
    position: relative;
    z-index: 4000; /* 让整个 header（含关闭按钮）始终在覆盖层之上 */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-title {
    font-size: 24px;
    font-weight: 600;
    position: relative;
    font-family: 'Love', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.site-title a {
    text-decoration: none;
    color: #333;
    position: relative;
    z-index: 2;
}

.site-title {
    color: #333;
}

/* Logo 样式 */
.site-logo {
    max-height: 40px;
    width: auto;
    display: block;
    vertical-align: middle;
}

/* Menu Toggle Button - CSS版本 */
.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute; /* 相对 .site-header .container 对齐 */
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 3000; /* 高于覆盖层，确保可见可点 */
    width: 30px;
    height: 22px;
    opacity: 1;
}

/* 菜单图标 - 使用伪元素 */
.menu-toggle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: #333;
    transform: translateY(-50%);
    box-shadow: 0 -8px 0 #333, 0 8px 0 #333; /* 上下两条线 */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* 激活状态 - 变成X */
.menu-toggle.active::before {
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 0 #333; /* 只保留中间线 */
}

.menu-toggle.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: #333;
    transform: translateY(-50%) rotate(-45deg);
    transition: transform 0.25s ease;
}

/* Navigation Menu */
.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-content li {
    margin: 16px 0;
    text-align: center;
}

.nav-content a {
    color: #333;
    text-decoration: none;
    font-size: 30px;
    font-family: 'Love', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.nav-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.nav-column ul {
    list-style: none;
}

.nav-column li {
    margin-bottom: 15px;
}

.nav-column a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-column a:hover {
    color: #666;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 40px 0;
    width: 100%;
    justify-content: center;
    align-items: start;
}

.post-item {
    background: transparent;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    font-family: 'Love', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.post-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.post-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #666;
}

.post-meta {
    font-size: 14px;
    color: #666;
}

.post-meta .post-date {
    margin-right: 0;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 40px 0;
    opacity: 1;
    transition: opacity 0.3s ease;
    font-family: 'Love', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.pagination.loading {
    opacity: 0;
}

.page-nav {
    display: inline-block;
}

.page-nav a,
.page-nav span {
    display: inline-block;
    padding: 6px 8px;
    margin: 0 2px;
    text-decoration: none;
    color: #333;
    background: transparent;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* 强制仅显示上一页/下一页，隐藏数字和省略号 */
/* 只显示上一页/下一页，隐藏数字与省略号 */
.page-nav > span,
.page-nav > a {
    display: none;
}
.page-nav > span.prev,
.page-nav > span.next,
.page-nav > a.prev,
.page-nav > a.next,
.page-nav > span.no-prev,
.page-nav > span.no-next,
.page-nav > span.separator {
    display: inline-block;
}

.page-nav .separator {
    padding: 6px 4px;
    color: #666;
}

.page-nav .no-prev,
.page-nav .no-next {
    color: #999;
}

.page-nav a:hover {
    color: #666;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-content: center;
    }
    
    .nav-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .site-logo {
        max-height: 32px;
    }
    
    .menu-toggle {
        position: absolute; /* 仍然相对 container 对齐 */
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        z-index: 3000;
    }
}

/* Page Transition Effects - 增强版 */
.page-transition {
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.fade-out {
    opacity: 0;
}

/* 页面内容过渡，不包括header */
.main-content {
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.fade-out {
    opacity: 0;
}

/* 页面内容淡入淡出效果 */
.content-transition {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.content-transition.loading {
    opacity: 0;
}

/* 菜单过渡动画增强 */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ddd;
    z-index: 1000; /* 明确低于 header(4000) 和按钮(3000) */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* 默认不拦截点击 */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.main-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* 打开后接管点击 */
}

.nav-content {
    display: grid;
    grid-template-columns: 1fr; /* 单列 */
    gap: 24px;
    max-width: 600px;
    width: 100%;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.main-nav.active .nav-content {
    transform: translateY(0);
    opacity: 1;
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-item {
    animation: fadeIn 0.6s ease;
    animation-fill-mode: both;
}

.post-item:nth-child(1) { animation-delay: 0.1s; }
.post-item:nth-child(2) { animation-delay: 0.2s; }
.post-item:nth-child(3) { animation-delay: 0.3s; }
.post-item:nth-child(4) { animation-delay: 0.4s; }

/* Headings in Content */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 {
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.entry-content h1::after {
    content: "h1";
    margin-left: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    padding: 2px 6px;
    border: 1px solid #999;
    border-radius: 3px;
    vertical-align: middle;
}

.entry-content h2::after {
    content: "h2";
    margin-left: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    padding: 2px 6px;
    border: 1px solid #999;
    border-radius: 3px;
    vertical-align: middle;
}

.entry-content h3::after {
    content: "h3";
    margin-left: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    padding: 2px 6px;
    border: 1px solid #999;
    border-radius: 3px;
    vertical-align: middle;
}

.entry-content h4::after {
    content: "h4";
    margin-left: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    padding: 2px 6px;
    border: 1px solid #999;
    border-radius: 3px;
    vertical-align: middle;
}

.entry-content h5::after {
    content: "h5";
    margin-left: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    padding: 2px 6px;
    border: 1px solid #999;
    border-radius: 3px;
    vertical-align: middle;
}

/* Entry (post/page) */
.entry {
    padding: 30px 0 50px;
}

.entry-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: left;
}

.entry-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.entry-meta .entry-sep {
    margin: 0 8px;
}

.entry-content {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    font-family: 'Love', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Links */
.entry-content a {
    color: #333;
    text-decoration: underline;
    text-decoration-color: #999;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: #666;
    text-decoration-color: #666;
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content ul li,
.entry-content ol li {
    margin: 8px 0;
    line-height: 1.8;
}

.entry-content ul {
    list-style: none;
}

.entry-content ul li::before {
    content: "•";
    color: #333;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.entry-content ol {
    counter-reset: item;
    list-style: none;
}

.entry-content ol li {
    counter-increment: item;
}

.entry-content ol li::before {
    content: counter(item) ".";
    color: #333;
    font-weight: 600;
    display: inline-block;
    width: 1.5em;
    margin-left: -1.5em;
}

/* Nested Lists */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin: 8px 0;
}

/* Blockquote */
.entry-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 3px solid #333;
    background: #eee;
    color: #666;
    font-style: italic;
}

.entry-content blockquote p {
    margin: 0;
}

.entry-content blockquote cite {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #999;
    font-style: normal;
}

/* Code */
.entry-content code {
    background: #eee;
    color: #333;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

.entry-content pre {
    background: #eee;
    color: #333;
    padding: 16px;
    border-radius: 3px;
    overflow-x: auto;
    margin: 20px 0;
    border: 2px double #333;
}

.entry-content pre code {
    background: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Horizontal Rule */
.entry-content hr {
    border: none;
    border-top: 2px double #333;
    margin: 30px 0;
}

/* Table */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 2px double #333;
}

.entry-content table th,
.entry-content table td {
    padding: 10px 12px;
    border: 1px solid #999;
    text-align: left;
}

.entry-content table th {
    background: #eee;
    font-weight: 600;
    color: #333;
}

.entry-content table tr:nth-child(even) {
    background: #f5f5f5;
}

.entry-content table tr:hover {
    background: #eee;
}

/* Strong and Em */
.entry-content strong,
.entry-content b {
    font-weight: 700;
    color: #333;
}

.entry-content em,
.entry-content i {
    font-style: italic;
    color: #666;
}

/* Mark (Highlight) */
.entry-content mark {
    background: #fff3cd;
    color: #333;
    padding: 2px 4px;
}

/* Strikethrough */
.entry-content del,
.entry-content s {
    text-decoration: line-through;
    color: #999;
}

/* Images */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.entry-content img:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

/* Image with caption */
.entry-content figure {
    margin: 20px 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Kbd (Keyboard) */
.entry-content kbd {
    background: #eee;
    color: #333;
    padding: 2px 6px;
    border: 1px solid #999;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

/* Abbreviation */
.entry-content abbr {
    text-decoration: underline dotted;
    cursor: help;
    color: #666;
}

/* Links Page (友情链接页面) */
.links-container {
    margin-top: 40px;
}

.links-notice {
    padding: 24px;
    border: 2px double #333;
    background: #fff3cd;
    margin-bottom: 40px;
    text-align: center;
}

.links-notice p {
    color: #666;
    margin: 8px 0;
    line-height: 1.6;
}

.links-notice strong {
    color: #333;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.link-item {
    padding: 20px;
    border: 2px double #333;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-item:hover {
    background: #eee;
}

.link-item .link-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.link-item .link-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-item .link-name a:hover {
    color: #666;
}

.link-item .link-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.link-item .link-url {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    word-break: break-all;
}

.link-item .link-url:hover {
    color: #666;
}

.links-apply {
    padding: 24px;
    border: 2px double #333;
    background: #eee;
    margin-bottom: 40px;
}

.links-apply h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 16px;
}

.links-apply h3::after {
    content: none;
}

.links-apply p {
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
}

.links-apply ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.links-apply ul li {
    color: #666;
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.links-apply ul li::before {
    content: "•";
    color: #333;
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .link-item {
        padding: 16px;
    }
    
    .links-apply {
        padding: 20px;
    }
}

/* Comments UI - match mockup */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 36px;
    height: 36px;
    border: 2px double #333;
    background: #eee;
    color: #333;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3500;
}

.back-to-top.show { display: flex; }

/* Comments Section */
.comments {
    margin-top: 50px;
    margin-bottom: 40px;
}

.comments-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    text-align: left;
}

.comments-closed {
    text-align: center;
    color: #666;
    padding: 20px;
    font-size: 14px;
}

/* Comment List */
.comment-list {
    margin-bottom: 40px;
}

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

.comment-list .comment-body {
    margin: 20px 0;
    padding: 16px;
    border: 2px double #333;
    background: transparent;
    position: relative;
}

.comment-list .comment-author {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-list .avatar {
    width: 48px;
    height: 48px;
    border-radius: 3px;
    display: block;
    flex-shrink: 0;
}

.comment-list .author-info {
    flex: 1;
    min-width: 0;
}

.comment-list .author-name-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.comment-list .comment-author cite.fn {
    font-style: normal;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.comment-list .comment-author cite.fn a {
    color: #333;
    text-decoration: none;
}

.comment-list .comment-author cite.fn a:hover {
    color: #666;
}

/* Author Badge */
.comment-by-author > .comment-author cite.fn::after {
    content: "博主";
    margin-left: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    padding: 2px 6px;
    border: 1px solid #999;
    border-radius: 3px;
    font-style: normal;
}

.comment-list .comment-meta {
    font-size: 13px;
    color: #999;
    display: block;
}

.comment-list .comment-meta a {
    color: #999;
    text-decoration: none;
}

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

.comment-list .comment-reply a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
}

.comment-list .comment-reply a:hover {
    color: #333;
}

.comment-list .comment-content {
    margin-top: 12px;
    color: #333;
    line-height: 1.6;
}

.comment-list .comment-content p {
    margin: 0;
}

/* Nested Comments */
.comment-children {
    margin-top: 0;
    margin-left: 0;
    padding-left: 0;
}

.comment-children .comment-ol {
    margin-left: 0;
}

.comment-children .comment-body {
    border: none;
    padding: 16px 0;
    background: transparent;
}

/* Comment Form */
.comment-respond {
    margin-top: 30px;
}

.respond-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.login-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.login-info .li-text {
    margin-right: 4px;
}

.login-info .li-user {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.login-info .li-user:hover {
    color: #666;
}

.login-info .li-sep {
    margin: 0 4px;
    color: #999;
}

.login-info .li-logout {
    color: #666;
    text-decoration: none;
}

.login-info .li-logout:hover {
    color: #333;
}

.comment-textarea textarea {
    width: 100%;
    min-height: 120px;
    border: 2px double #333;
    background: #eee;
    padding: 12px;
    resize: vertical;
    outline: none;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 12px;
}

.comment-textarea textarea:focus {
    background: #f5f5f5;
}

.comment-textarea textarea::placeholder {
    color: #999;
}

.comment-fields {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.comment-fields .field {
    border: 2px double #333;
    background: #eee;
    padding: 10px 12px;
    outline: none;
    color: #333;
    font-size: 14px;
    flex: 1;
    min-width: 0;
}

.comment-fields .field:focus {
    background: #f5f5f5;
}

.comment-fields .field::placeholder {
    color: #999;
}

.comment-submit {
    border: 2px double #333;
    background: #eee;
    padding: 10px 12px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.comment-submit:hover {
    background: #e0e0e0;
}


.comment-list #respond .respond-title {
    font-size: 16px;
}

.comment-list #respond .login-info {
    margin-bottom: 12px;
}

.comment-list #respond .comment-textarea textarea {
    background: #fff;
}

.comment-list #respond .comment-fields .field {
    background: #fff;
}

.comment-list #respond .comment-submit {
    background: #fff;
}

.comment-list #respond .comment-submit:hover {
    background: #f0f0f0;
}

/* Comment Pagination */
.comment-list .page-nav {
    margin-top: 30px;
    text-align: center;
}

.comment-list .page-nav a,
.comment-list .page-nav span {
    display: inline-block;
    padding: 6px 8px;
    margin: 0 2px;
    color: #333;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s ease;
    font-size: 14px;
}

.comment-list .page-nav a:hover {
    color: #666;
}

.comment-list .page-nav .current {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .comment-fields {
        gap: 6px;
    }
    
    .comment-fields .field {
        font-size: 12px;
        padding: 8px 6px;
    }
    
    .comment-submit {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .comment-children .comment-ol {
        margin-left: 0;
    }
    
    .comment-list .avatar {
        width: 40px;
        height: 40px;
        border-radius: 3px;
    }
}

@media (max-width: 480px) {
    .comment-fields {
        gap: 4px;
    }
    
    .comment-fields .field {
        font-size: 11px;
        padding: 7px 4px;
    }
    
    .comment-submit {
        font-size: 11px;
        padding: 7px 8px;
    }
}

/* Blog Page (Blog 独立页面) */
.blog-page {
    max-width: 800px;
    margin: 60px auto;
    font-family: 'Love', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.blog-intro {
    margin-bottom: 60px;
    text-align: left;
}

.blog-text-1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.blog-text-2 {
    font-size: 18px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 60px;
}

.blog-post-item {
    padding: 16px 20px;
    border: 2px double #333;
    background: transparent;
    transition: all 0.3s ease;
    text-align: left;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-post-item:hover {
    background: #eee;
}

.blog-post-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.blog-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.blog-post-title a:hover {
    color: #666;
}

.blog-post-date {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Blog Author Intro */
.blog-author-intro {
    display: flex;
    gap: 30px;
    margin: 60px 0 40px;
    padding: 30px;
    border: 2px double #333;
    align-items: center;
}

.author-intro-avatar {
    flex-shrink: 0;
}

.author-intro-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #333;
    display: block;
    object-fit: cover;
}

.author-intro-info {
    flex: 1;
    min-width: 0;
}

.author-intro-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.author-intro-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-intro-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.author-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-meta-item .meta-label {
    font-size: 14px;
    color: #999;
}

.author-meta-item .meta-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.blog-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.blog-btn {
    color: #333;
    text-decoration: underline;
    text-decoration-color: #999;
    text-underline-offset: 3px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.blog-btn:hover {
    color: #666;
    text-decoration-color: #666;
}

@media (max-width: 768px) {
    .blog-page {
        margin: 40px auto;
    }
    
    .blog-intro {
        margin-bottom: 40px;
    }
    
    .blog-text-1 {
        font-size: 24px;
    }
    
    .blog-text-2 {
        font-size: 16px;
    }
    
    .blog-posts {
        gap: 12px;
        margin-bottom: 40px;
    }
    
    .blog-post-item {
        padding: 14px 16px;
        min-height: 70px;
    }
    
    .blog-post-title {
        font-size: 15px;
        margin: 0 0 6px 0;
    }
    
    .blog-post-date {
        font-size: 12px;
    }
    
    .blog-author-intro {
        flex-direction: column;
        gap: 20px;
        margin: 40px 0 30px;
        padding: 20px;
        text-align: center;
    }
    
    .author-intro-avatar img {
        width: 120px;
        height: 120px;
        border-width: 2px;
        margin: 0 auto;
    }
    
    .author-intro-name {
        font-size: 20px;
        margin: 0 0 10px 0;
    }
    
    .author-intro-desc {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .author-intro-meta {
        gap: 20px;
        justify-content: center;
    }
    
    .author-meta-item .meta-label {
        font-size: 13px;
    }
    
    .author-meta-item .meta-value {
        font-size: 14px;
    }
}

/* Viewer.js 灯箱自定义样式 */
.viewer-backdrop {
    background-color: rgba(0, 0, 0, 0.9);
}

.viewer-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.viewer-toolbar > ul > li {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    margin: 0 2px;
}

.viewer-toolbar > ul > li:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.viewer-button {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

.viewer-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.viewer-title {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 3px;
}

.viewer-navbar > ul > li {
    border: 2px solid transparent;
    border-radius: 3px;
}

.viewer-navbar > ul > li.viewer-active {
    border-color: #fff;
}

/* 评论区图片也支持灯箱 */
.comment-content img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.comment-content img:hover {
    opacity: 0.9;
}

/* ==================== 404 页面 ==================== */
.error-page {
    padding: 80px 20px;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.error-code::after {
    content: '404';
    position: absolute;
    top: 4px;
    left: 4px;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    text-stroke: 2px #fff;
    z-index: -1;
}

.error-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #333;
}

.error-message {
    font-size: 1rem;
    color: #666;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.error-btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border: 2px double #333;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.error-btn:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
}

.error-suggestions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border: 2px double #e0e0e0;
    border-radius: 4px;
}

.suggestions-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #333;
}

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

.suggestions-list li {
    padding: 8px 0 8px 24px;
    color: #666;
    position: relative;
    line-height: 1.6;
}

.suggestions-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #333;
    font-weight: bold;
}

/* 404 页面响应式 */
@media (max-width: 768px) {
    .error-page {
        padding: 60px 20px;
    }

    .error-code {
        font-size: 80px;
    }

    .error-code::after {
        top: 3px;
        left: 3px;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-message {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .error-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
    }

    .error-btn {
        width: 100%;
        padding: 12px 24px;
    }

    .error-suggestions {
        padding: 20px;
    }

    .suggestions-title {
        font-size: 0.9rem;
    }

    .suggestions-list li {
        font-size: 0.9rem;
    }
}