/* ====== WenModern 主题样式 ====== */

/* 全局基础样式 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #181c20;
    color: #e6e6e6;
    font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Arial', sans-serif;
    font-size: 16px;
    min-height: 100vh;
}

/* 顶部进度条 */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #8ab4f8, #6366f1);
    z-index: 9999;
    transition: none;
    opacity: 0;
    box-shadow: 0 0 8px rgba(138, 180, 248, 0.6);
}

.progress-bar.loading {
    width: 95%;
    opacity: 1;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s ease;
}

.progress-bar.finished {
    width: 100%;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.4s ease 0.2s;
}

/* 顶部导航栏 */
.site-nav {
    width: 100%;
    background: #23272e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 10;
    font-weight: bold;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
}

.nav-inner {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 20px;
    box-sizing: border-box;
}

.site-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 48px;
}

.site-title {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 0 12px 0 0;
    line-height: 48px;
    display: block;
}

.site-title:hover {
    color: #8ab4f8;
}

.site-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 48px;
    flex-wrap: wrap;
}

.site-menu li {
    margin-left: 0;
    display: flex;
    align-items: center;
    height: 48px;
}

.site-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.2s, background 0.2s;
    padding: 0 10px;
    border-radius: 0;
    line-height: 48px;
    display: block;
}

.site-menu a:hover,
.site-menu a:focus {
    background: #4b5563;
    color: #fff;
}

.site-menu a.active,
.site-menu a:active {
    background: none;
    color: #fff;
}

/* 移动端导航 */
.nav-toggle {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    margin-left: 1rem;
    user-select: none;
    padding: 0.2rem;
        transition: all 0.3s ease;
        border-radius: 4px;
        position: relative;
}

.nav-toggle:hover {
    color: #8ab4f8;
        background: rgba(138, 180, 248, 0.1);
        transform: scale(1.1);
    }
    
    .nav-toggle:active {
        transform: scale(0.95);
}

@media (max-width: 700px) {
    .nav-inner {
        flex-wrap: nowrap;
        height: 48px;
        justify-content: space-between;
        padding: 0 16px;
        position: relative;
    }
    
    .nav-toggle {
        display: block;
        order: 3;
        position: relative;
        z-index: 100;
        transition: transform 0.3s ease;
    }
    
    .nav-toggle.active {
        transform: rotate(90deg);
    }
    
    .site-logo {
        order: 1;
        flex: 0 0 auto;
    }
    
    /* 手机版下拉菜单优化 */
    .site-menu {
        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        background: linear-gradient(135deg, #23272e 0%, #2d3748 100%);
        position: absolute;
        left: 0;
        top: 48px;
        z-index: 99;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
        padding: 0;
        border-top: 2px solid #8ab4f8;
        order: 2;
        height: auto !important;
        flex-wrap: nowrap !important;
        border-radius: 0 0 12px 12px;
        overflow: hidden;
        backdrop-filter: blur(10px);
    }
    
    .site-menu.open {
        display: flex !important;
        animation: slideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    .site-menu li {
        margin: 0 !important;
        height: auto !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(138, 180, 248, 0.1);
        display: block !important;
        flex: none !important;
        position: relative;
        overflow: hidden;
    }
    
    .site-menu li:last-child {
        border-bottom: none;
    }
    
    .site-menu li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 100%;
        background: linear-gradient(180deg, #8ab4f8, #6366f1);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }
    
    .site-menu li:hover::before,
    .site-menu li:focus-within::before {
        transform: scaleY(1);
    }
    
    .site-menu a {
        line-height: 1.4 !important;
        font-size: 1rem;
        padding: 1rem 1.5rem !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        border-radius: 0;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        height: auto !important;
        position: relative;
        color: #e6e6e6;
        font-weight: 500;
    }
    
    .site-menu a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, rgba(138, 180, 248, 0.1), rgba(99, 102, 241, 0.1));
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .site-menu a:hover::before,
    .site-menu a:focus::before {
        transform: translateX(0);
    }
    
    .site-menu a:hover,
    .site-menu a:focus,
    .site-menu a.active {
        background: rgba(138, 180, 248, 0.15);
        color: #8ab4f8;
        padding-left: 2rem !important;
        transform: translateX(5px);
    }
    
    .site-menu a.active {
        background: linear-gradient(90deg, rgba(138, 180, 248, 0.2), rgba(99, 102, 241, 0.2));
        color: #fff;
        font-weight: 600;
    }
    
    /* 菜单遮罩层 */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 98;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 菜单项图标效果 */
    .site-menu a::after {
        content: '→';
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        color: #8ab4f8;
        font-size: 0.9rem;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .site-menu a:hover::after,
    .site-menu a:focus::after {
        opacity: 1;
        transform: translateY(-50%) translateX(5px);
    }
}

/* 主体内容区域 */
.content {
    margin: 0.5rem 0 0 0;
    padding: 0 0 5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 博客文章卡片样式已移动到统一位置 */

.blog-title-link {
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
    width: 100%;
}

.blog-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0 0 0.4rem 0;
    line-height: 1.2;
    transition: color 0.2s;
}

.blog-title-link:hover .blog-title {
    color: #8ab4f8;
    text-decoration: none;
}

.blog-excerpt {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.blog-meta {
    color: #8ab4f8;
    font-size: 0.9rem;
    margin-top: 0.1rem;
    letter-spacing: 0.3px;
}

.blog-category {
    color: #8ab4f8;
    font-weight: 500;
}

/* 文章内容样式 */
.content > article, .post, .page-content, .post-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.2s, background 0.2s;
}

.content > article:hover, .post:hover, .page-content:hover, .post-content:hover {
    box-shadow: 0 6px 32px rgba(0,0,0,0.22);
    background: #262b33;
}

.title, .title.is-3, .title.is-4, h1, h2, h3, h4 {
    color: #fff;
    font-weight: bold;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    font-size: 1.6rem;
}

.post-content .title, .page-content .title, .post-content h1, .page-content h1 {
    margin: 0 0 0.1rem 0;
}

.post-date {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
    font-style: normal;
}

.post-content, .page-content {
    line-height: 1.5;
    margin-top: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
}

.post-content h2, .page-content h2 {
    font-size: 1.1rem;
    margin: 0.3rem 0 0.15rem 0;
    padding-top: 0.05rem;
}

.post-content h3, .page-content h3 {
    font-size: 0.95rem;
    margin: 0.2rem 0 0.1rem 0;
}

.post-content p, .page-content p {
    margin-bottom: 0.15rem;
}

/* 行内代码样式 - 整体容器 */
.post-content code, .page-content code {
    background: #4b5563;
    color: #e6e6e6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: auto;
    white-space: pre;
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    min-height: 2rem;
}

/* 特定上下文的行内代码样式 */
.post-content p code, .page-content p code,
.post-content li code, .page-content li code,
.post-content td code, .page-content td code {
    background: #4b5563;
    color: #e6e6e6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: auto;
    white-space: pre;
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    min-height: 2rem;
}

.post-content p code:hover, .page-content p code:hover,
.post-content li code:hover, .page-content li code:hover,
.post-content td code:hover, .page-content td code:hover {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 代码块容器样式 */
.post-content .relative.group, .page-content .relative.group {
    position: relative !important;
    margin: 16px 0 !important;
}

/* 代码块样式 - 与文章内容自适应 */
.post-content pre, .page-content pre,
.post-content pre[class*="language-"], .page-content pre[class*="language-"],
.post-content pre[class*="lang-"], .page-content pre[class*="lang-"],
.post-content pre[class*="highlight"], .page-content pre[class*="highlight"],
.post-content .code-block, .page-content .code-block,
.post-content .highlight, .page-content .highlight,
.post-content .md-fences, .page-content .md-fences {
    background: #23272e !important;
    color: #e6e6e6 !important;
    font-size: 14px !important;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace !important;
    line-height: 1.6 !important;
    padding: 20px !important;
    margin: 16px 0 !important;
    border-radius: 8px !important;
    border: 1px solid #4a5568 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    overflow-x: auto !important;
    white-space: pre !important;
    word-wrap: normal !important;
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 代码行样式 */
.post-content .code-line, .page-content .code-line {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

.post-content .numbered-code-line, .page-content .numbered-code-line {
    position: relative !important;
    padding-left: 0 !important;
    counter-increment: line !important;
}

/* 行号样式 */
.post-content pre[class*="language-"], .page-content pre[class*="language-"],
.post-content pre[class*="lang-"], .page-content pre[class*="lang-"] {
    counter-reset: line !important;
}

.post-content .numbered-code-line::before, .page-content .numbered-code-line::before {
    content: counter(line) !important;
    position: absolute !important;
    left: -3rem !important;
    width: 2.5rem !important;
    text-align: right !important;
    color: #6e7681 !important;
    font-size: 12px !important;
    user-select: none !important;
    padding-right: 1rem !important;
}

/* 代码块内容 */
.post-content pre code, .page-content pre code,
.post-content pre[class*="language-"] code, .page-content pre[class*="language-"] code,
.post-content pre[class*="lang-"] code, .page-content pre[class*="lang-"] code,
.post-content pre[class*="highlight"] code, .page-content pre[class*="highlight"] code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border: none !important;
    font-size: inherit !important;
    font-family: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
    display: block !important;
    white-space: pre !important;
}

/* 代码块复制按钮 - 与整体色调一致 */
.post-content pre:hover .code-copy-btn, .page-content pre:hover .code-copy-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.code-copy-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: rgba(74, 85, 104, 0.8) !important;
    color: #e6e6e6 !important;
    border: 1px solid #4a5568 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transform: translateY(-5px) !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-family: inherit !important;
    outline: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.code-copy-btn:hover {
    background: #4b5563 !important;
    color: #fff !important;
    transform: translateY(0) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25) !important;
}

.code-copy-btn:active {
    transform: translateY(0) scale(0.95) !important;
}

.code-copy-btn svg {
    width: 14px !important;
    height: 14px !important;
}

/* 移除框架装饰元素，保持简洁 */

/* 代码块滚动条样式 - 简洁设计 */
.post-content pre::-webkit-scrollbar, .page-content pre::-webkit-scrollbar {
    height: 6px;
}

.post-content pre::-webkit-scrollbar-track, .page-content pre::-webkit-scrollbar-track {
    background: #3a3f45;
    border-radius: 3px;
}

.post-content pre::-webkit-scrollbar-thumb, .page-content pre::-webkit-scrollbar-thumb {
    background: #8ab4f8;
    border-radius: 3px;
}

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

/* Material主题语法高亮颜色方案 */
.post-content pre .keyword, .page-content pre .keyword,
.post-content pre .cm-keyword, .page-content pre .cm-keyword {
    color: rgba(199, 146, 234, 1);
    font-weight: 600;
}

.post-content pre .string, .page-content pre .string,
.post-content pre .cm-string, .page-content pre .cm-string {
    color: #C3E88D;
}

.post-content pre .comment, .page-content pre .comment,
.post-content pre .cm-comment, .page-content pre .cm-comment {
    color: #546E7A;
    font-style: italic;
}

.post-content pre .number, .page-content pre .number,
.post-content pre .cm-number, .page-content pre .cm-number {
    color: #F77669;
}

.post-content pre .function, .page-content pre .function,
.post-content pre .cm-def, .page-content pre .cm-def {
    color: rgba(233, 237, 237, 1);
    font-weight: 500;
}

.post-content pre .variable, .page-content pre .variable,
.post-content pre .cm-variable, .page-content pre .cm-variable {
    color: #82B1FF;
}

.post-content pre .operator, .page-content pre .operator,
.post-content pre .cm-operator, .page-content pre .cm-operator {
    color: rgba(233, 237, 237, 1);
    font-weight: 500;
}

.post-content pre .punctuation, .page-content pre .punctuation {
    color: rgba(233, 237, 237, 1);
}

.post-content pre .class, .page-content pre .class,
.post-content pre .cm-builtin, .page-content pre .cm-builtin {
    color: #DECB6B;
    font-weight: 600;
}

.post-content pre .attribute, .page-content pre .attribute,
.post-content pre .cm-attribute, .page-content pre .cm-attribute {
    color: #FFCB6B;
}

.post-content pre .tag, .page-content pre .tag,
.post-content pre .cm-tag, .page-content pre .cm-tag {
    color: rgba(255, 83, 112, 1);
    font-weight: 500;
}

.post-content pre .atom, .page-content pre .atom,
.post-content pre .cm-atom, .page-content pre .cm-atom {
    color: #F77669;
}

.post-content pre .property, .page-content pre .property,
.post-content pre .cm-property, .page-content pre .cm-property {
    color: #80CBAE;
}

.post-content pre .meta, .page-content pre .meta,
.post-content pre .cm-meta, .page-content pre .cm-meta {
    color: #80CBC4;
}

.post-content pre .variable-2, .page-content pre .variable-2,
.post-content pre .cm-variable-2, .page-content pre .cm-variable-2 {
    color: #80CBC4;
}

.post-content pre .variable-3, .page-content pre .variable-3,
.post-content pre .cm-variable-3, .page-content pre .cm-variable-3 {
    color: #DECB6B;
}

.post-content pre .string-2, .page-content pre .string-2,
.post-content pre .cm-string-2, .page-content pre .cm-string-2 {
    color: #80CBC4;
}

.post-content pre .qualifier, .page-content pre .qualifier,
.post-content pre .cm-qualifier, .page-content pre .cm-qualifier {
    color: #DECB6B;
}

/* 代码块行号样式（可选） */
.post-content pre.line-numbers, .page-content pre.line-numbers {
    counter-reset: line;
}

.post-content pre.line-numbers code, .page-content pre.line-numbers code {
    counter-increment: line;
    position: relative;
}

.post-content pre.line-numbers code::before, .page-content pre.line-numbers code::before {
    content: counter(line);
    position: absolute;
    left: -3rem;
    width: 2rem;
    text-align: right;
    color: #718096;
    font-size: 0.8rem;
    user-select: none;
}

/* Material主题选中状态 */
.post-content pre::selection, .page-content pre::selection {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(233, 237, 237, 1);
}

.post-content pre code::selection, .page-content pre code::selection {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(233, 237, 237, 1);
}

.post-content pre code::-moz-selection, .page-content pre code::-moz-selection {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(233, 237, 237, 1);
}

/* Material主题悬停效果 */
.post-content pre:hover, .page-content pre:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.post-content a, .page-content a {
    color: #8ab4f8;
    text-decoration: none;
    transition: color 0.2s;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.title a:hover {
    color: #8ab4f8;
    text-decoration: underline;
}

/* 分页导航 */
nav[aria-label="pagination"], nav.pagination, .page-navigator {
    list-style: none;
    margin: 25px auto;
    padding: 0;
    text-align: center;
    width: 85%;
    max-width: 1000px;
}

nav[aria-label="pagination"] li, nav.pagination li, .page-navigator li {
    display: inline-block;
    margin: 0 4px;
}

nav[aria-label="pagination"] a, nav.pagination a, .page-navigator a {
    display: inline-block;
    padding: 0 10px;
    height: 30px;
    line-height: 30px;
    color: #e6e6e6;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

nav[aria-label="pagination"] a:hover, nav.pagination a:hover, .page-navigator a:hover {
    background: #8ab4f8;
    color: #23272e;
    text-decoration: none;
}

nav[aria-label="pagination"] .current a, nav.pagination .current a, .page-navigator .current a {
    color: #23272e;
    background: #8ab4f8;
}

/* 归档相关样式 */
.archive-header {
    border-radius: 8px;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.archive-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-align: left;
    flex-shrink: 0;
    display: inline-block;
}

.archive-count {
    color: #8ab4f8;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: right;
    flex-shrink: 0;
    display: inline-block;
}

.archives-list {
    border-radius: 8px;
    box-shadow: none;
}

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

.archives-ul li {
    margin-bottom: 0.2rem;
    color: #e6e6e6;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.archives-date {
    color: #8ab4f8;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 100px;
    flex-shrink: 0;
    text-align: left;
}

.archives-ul a {
    color: #e6e6e6;
    text-decoration: none;
    transition: color 0.2s;
    flex: 1;
    font-weight: 400;
    line-height: 1.4;
}

.archives-ul a:hover {
    color: #8ab4f8;
    text-decoration: none;
    font-weight: 500;
}

/* 标签云样式 */
.tag-cloud-card {
    text-align: center;
    transition: box-shadow 0.2s, background 0.2s;
    margin-bottom: 1.5rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.6rem;
    margin: 0.5rem 0;
}

.tag-link {
    display: inline-block;
    font-size: 0.92rem;
    color: #8ab4f8;
    background: #2d3035;
    padding: 0.3em 0.8em;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0;
    border: 1px solid #3a3f45;
    font-weight: 500;
    line-height: 1.4;
}

.tag-link.active,
.tag-link:active {
    background: #8ab4f8;
    color: #23272e;
    border-color: #8ab4f8;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(138, 180, 248, 0.3);
}

.tag-link:hover {
    background: #3a3f45;
    color: #fff;
    border-color: #4b5563;
    transform: translateY(-1px);
}

/* 文章列表容器 - 保持向后兼容 */
.posts-container, .blog-list {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* 博客文章卡片样式 - 统一应用到所有页面 */
.blog {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.2s, background 0.2s;
    margin: 0.5rem auto;
    padding: 1.2rem 2.5rem;
    width: 85%;
    max-width: 1000px;
    min-width: 320px;
    background: #23272e;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.blog:hover {
    box-shadow: 0 6px 32px rgba(0,0,0,0.22);
    background: #262b33;
}

/* 博客文章日期样式 */
.blog-date {
    color: #8ab4f8;
    font-size: 0.9rem;
    margin-top: 0.1rem;
    letter-spacing: 0.3px;
}

/* 文章标签（简化版） */
.post-tags {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #8ab4f8;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.post-tags a {
    color: #8ab4f8;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    display: inline-block;
}

.post-tags a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 署名样式 */
.post-copyright {
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.post-copyright p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.post-copyright a {
    color: #8ab4f8;
    text-decoration: none;
}

.post-copyright a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 页脚样式 */
.site-footer {
    background: #23272e;
    color: #b0b0b0;
    text-align: center;
    padding: 1rem 0;
    margin: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
    box-sizing: border-box;
}

.site-footer a {
    color: #8ab4f8;
    text-decoration: none;
    margin: 0 0.3rem;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-inner {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-left, .footer-right {
    flex: 1;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

/* 滚动条美化 */
body::-webkit-scrollbar {
    width: 8px;
    background: #23272e;
}

body::-webkit-scrollbar-thumb {
    background: #181c20;
    border-radius: 8px;
}

/* 统一卡片样式 */
.content > article, .post, .page-content, .post-content, .blog, .no-posts, .tag-cloud-card, .archives-list, .archive-header {
    margin: 0.5rem auto;
    padding: 1.2rem 2.5rem;
    width: 85%;
    max-width: 1000px;
    min-width: 320px;
    background: #23272e;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

/* 统一容器内边距 */
.content, .footer-inner, .nav-inner {
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

/* 通用样式 */
.no-posts {
    text-align: center;
}

.no-posts h2 {
    color: #fff;
    font-size: 1.6rem;
    margin: 0 0 0.8rem 0;
}

.no-posts p {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin: 0;
}

.category-info {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.category-count {
    color: #8ab4f8;
    font-weight: 500;
}

/* 响应式布局 */
@media (max-width: 1000px) {
    .content, .footer-inner, .nav-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .page-navigator {
        width: 95%;
    }
}

@media (max-width: 700px) {
    /* 基础字体大小调整 */
    html, body {
        font-size: 14px;
    }
    
    /* 内容区域调整 */
    .content {
        margin: 0.3rem 0 0 0;
        padding: 0 0 4rem 0;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }
    
    /* 导航栏调整 */
    .nav-inner {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* 卡片样式调整 */
    .content > article, .post, .page-content, .post-content, .blog, .no-posts, .tag-cloud-card, .archives-list, .archive-header {
        margin: 0.3rem 0;
        padding: 0.8rem 1rem;
        width: 100%;
        max-width: 100%;
        min-width: auto;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    /* 标题字体调整 */
    .blog-title, .title, .title.is-3, .title.is-4, h1, h2, h3, h4 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .archive-title {
        font-size: 1.3rem;
    }
    
    /* 文章摘要调整 */
    .blog-excerpt {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* 归档列表调整 */
    .archives-list {
        padding: 0.6rem 0.8rem;
    }
    
    .archives-ul li {
        margin-bottom: 0.1rem;
        padding: 0.25rem 0;
        gap: 0.6rem;
        font-size: 0.9rem;
    }
    
    .archives-date {
        min-width: 70px;
        font-size: 0.8rem;
    }
    
    .archives-ul a {
        font-size: 0.9rem;
    }
    
    /* 归档头部调整 */
    .archive-header {
        flex-direction: column;
        gap: 0.2rem;
        text-align: center;
        padding: 0.6rem 0.8rem;
    }
    
    .archive-title {
        font-size: 1.3rem;
        margin-bottom: 0.1rem;
        text-align: center;
    }
    
    .archive-count {
        text-align: center;
        font-size: 0.8rem;
    }
    
    /* 标签云调整 */
    .tag-link {
        font-size: 0.8rem;
        padding: 0.2em 0.6em;
        border-radius: 6px;
        margin: 0.1rem;
    }
    
    .tag-cloud {
        gap: 0.25rem 0.3rem;
        margin: 0.3rem 0;
    }
    
    /* 博客文章卡片移动端调整 */
    .blog {
        margin: 0.3rem 0;
        padding: 0.8rem 1rem;
        width: 100%;
        max-width: 100%;
        min-width: auto;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    /* 文章标签调整 */
    .post-tags {
        margin-top: 0.8rem;
        margin-bottom: 0.2rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .post-tags a {
        margin-bottom: 0.2rem;
        display: inline-block;
        max-width: 120px;
        font-size: 0.75rem;
    }
    
    /* 分页导航调整 */
    nav[aria-label="pagination"], nav.pagination, .page-navigator {
        width: 100%;
        margin: 15px auto;
    }
    
    nav[aria-label="pagination"] a, nav.pagination a, .page-navigator a {
        padding: 0 6px;
        height: 26px;
        line-height: 26px;
        font-size: 0.8rem;
    }
    
    /* 页脚调整 */
    .footer-inner {
        padding: 0 12px;
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .footer-left, .footer-right {
        text-align: center;
    }
    
    /* 文章内容调整 */
    .post-content, .page-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .post-content h2, .page-content h2 {
        font-size: 1rem;
        margin: 0.25rem 0 0.1rem 0;
    }
    
    .post-content h3, .page-content h3 {
        font-size: 0.9rem;
        margin: 0.2rem 0 0.1rem 0;
    }
    
    .post-content p, .page-content p {
        margin-bottom: 0.1rem;
    }
    
    /* 移动端行内代码样式 - 整体容器 */
    .post-content code, .page-content code {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
        border-radius: 4px;
        display: block;
        width: 100%;
        margin: 0.3rem 0;
        white-space: pre;
        min-height: 1.5rem;
    }
    
    /* 移动端特定上下文的行内代码样式 */
    .post-content p code, .page-content p code,
    .post-content li code, .page-content li code,
    .post-content td code, .page-content td code {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
        border-radius: 4px;
        display: block;
        width: 100%;
        margin: 0.3rem 0;
        white-space: pre;
        min-height: 1.5rem;
    }
    
    .post-content pre, .page-content pre {
        font-size: 12px !important;
        margin: 12px 0 !important;
        padding: 16px !important;
        border-radius: 6px !important;
        background: #23272e !important;
        color: #e6e6e6 !important;
        border: 1px solid #4a5568 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 移动端行号调整 */
    .post-content .numbered-code-line::before, .page-content .numbered-code-line::before {
        left: -2.5rem !important;
        width: 2rem !important;
        font-size: 10px !important;
    }
    
    /* 移动端复制按钮调整 */
    .code-copy-btn {
        top: 8px !important;
        right: 8px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
        background: rgba(74, 85, 104, 0.9) !important;
        color: #e6e6e6 !important;
        border: 1px solid #4a5568 !important;
    }
    
    /* 署名调整 */
    .post-copyright {
        margin-top: 0.8rem;
        padding-top: 0.6rem;
    }
    
    .post-copyright p {
        font-size: 0.8rem;
    }
    
    /* 博客元信息调整 */
    .blog-meta {
        font-size: 0.8rem;
    }
    
    .post-date {
        font-size: 0.8rem;
    }
}

@media (max-width: 500px) {
    /* 更小屏幕的额外调整 */
    .content {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .nav-inner {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .content > article, .post, .page-content, .post-content, .blog, .no-posts, .tag-cloud-card, .archives-list, .archive-header {
        padding: 0.6rem 0.8rem;
        margin: 0.2rem 0;
    }
    
    .blog-title, .title, .title.is-3, .title.is-4, h1, h2, h3, h4 {
        font-size: 1.2rem;
    }
    
    .archive-title {
        font-size: 1.2rem;
    }
    
    .archives-ul li {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .archives-date {
        min-width: 60px;
        font-size: 0.75rem;
    }
    
    .tag-link {
        font-size: 0.75rem;
        padding: 0.15em 0.5em;
    }
    
    /* 博客文章卡片小屏幕调整 */
    .blog {
        padding: 0.6rem 0.8rem;
        margin: 0.2rem 0;
    }
    
    .post-tags a {
        max-width: 100px;
        font-size: 0.7rem;
    }
    
    nav[aria-label="pagination"] a, nav.pagination a, .page-navigator a {
        padding: 0 5px;
        height: 24px;
        line-height: 24px;
        font-size: 0.75rem;
    }
    
    .footer-inner {
        padding: 0 8px;
        font-size: 0.8rem;
    }
    
    .post-content, .page-content {
        font-size: 0.85rem;
    }
    
    .post-copyright p {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    /* 超小屏幕的最终调整 */
    .content {
        padding-left: 6px;
        padding-right: 6px;
    }
    
    .nav-inner {
        padding-left: 6px;
        padding-right: 6px;
    }
    
    .content > article, .post, .page-content, .post-content, .blog, .no-posts, .tag-cloud-card, .archives-list, .archive-header {
        padding: 0.5rem 0.6rem;
        margin: 0.15rem 0;
    }
    
    .blog-title, .title, .title.is-3, .title.is-4, h1, h2, h3, h4 {
        font-size: 1.1rem;
    }
    
    .archive-title {
        font-size: 1.1rem;
    }
    
    .archives-ul li {
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .archives-date {
        min-width: 55px;
        font-size: 0.7rem;
    }
    
    .tag-link {
        font-size: 0.7rem;
        padding: 0.1em 0.4em;
    }
    
    /* 博客文章卡片超小屏幕调整 */
    .blog {
        padding: 0.5rem 0.6rem;
        margin: 0.15rem 0;
    }
    
    .post-tags a {
        max-width: 90px;
        font-size: 0.65rem;
    }
    
    .footer-inner {
        padding: 0 6px;
        font-size: 0.75rem;
    }
}