/* ==========================================================================
   字体导入 (Font Imports - 本地字体)
   ========================================================================== */

/* 正文/UI 字体 */
@font-face {
    font-family: 'FangZhengHeiTi';
    src: url('https://www.gt.ac.cn/assist/theme/font/FangZhengHeiTiJianTi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 代码字体 */
@font-face {
    font-family: 'CascadiaCode';
    src: url('https://www.gt.ac.cn/assist/theme/font/CascadiaCodeRegular2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   基础样式 (Base Styles)
   ========================================================================== */
body {
    background-color: #FFF;
    color: #444;
    font-family: "FangZhengHeiTi", "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
    font-size: 87.5%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* 链接样式 (Link Styles) */
a {
    color: rgb(67, 135, 193);
    text-decoration: none;
}
a:hover,
a:active {
    color: #444;
}

/* ==========================================================================
   代码块样式优化 (Code Block Styling Optimization)
   固定头部 / 独立滚动区 / 代码高亮 / 行号功能
   ========================================================================== */

/* 1. <pre> 容器样式 (边框和整体布局) */
pre {
    position: relative;
    margin: 1.5em 0;
    padding: 0;
    border: 1px solid #e1e5e9;
    background-color: #ffffff;
    overflow: hidden;
}

/* 2. 固定头部栏 (Code Header) */
.code-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    line-height: 40px;
    padding: 0 16px;
    font-size: 0.875em;
    font-weight: 600;
    color: #ffffff;
    background-color: #4387c1;
    z-index: 1;
    border-bottom: 1px solid #3a77ad;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 3. 复制按钮样式 (Copy Button) */
.copy-button {
    position: relative;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 0.75em;
    line-height: 1.4;
    transition: background-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    font-family: "FangZhengHeiTi", "PingFang SC", "Microsoft Yahei", sans-serif;
    font-weight: 500;
}

.copy-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.copy-button.copied {
    background-color: #28a745;
}

.copy-button.copied::after {
    content: "已复制";
    position: absolute;
    top: -30px;
    right: 0;
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    font-size: 0.75em;
    white-space: nowrap;
    animation: fadeOut 1.5s ease-in-out;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

/* 4. 代码内容滚动容器 (Content Scroller) */
.code-content {
    max-height: 500px;
    overflow: auto;
    background-color: inherit;
    counter-reset: line-counter; /* 启用行号计数器 */
}

.code-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-content::-webkit-scrollbar-track {
    background: #f1f3f4;
}

.code-content::-webkit-scrollbar-thumb {
    background: #c1c8cd;
}

.code-content::-webkit-scrollbar-thumb:hover {
    background: #a8b2ba;
}

/* 5. 代码 <code> 样式 (作为行号容器) */
pre code {
    display: block;
    font-family: "CascadiaCode", Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
    font-size: 0.875em;
    padding: 0; /* 取消左右 padding，由行号和行元素提供 */
    color: #24292f;
    background: transparent;
    line-height: 1.5;
    white-space: pre;
    border: none;
    border-radius: 0;
}

/* 6. 单行代码容器 (由 JS 动态创建) */
.code-line {
    padding: 0 16px; /* 行的右侧内边距 */
    padding-left: 60px; /* 行的左侧内边距，为行号腾出空间 */
    position: relative;
    min-height: 1.5em; /* 确保空行也有高度 */
    transition: background-color 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: block; /* 确保为块级元素 */
}

.code-line:hover {
    background-color: rgba(67, 135, 193, 0.05);
}

/* 7. 行号样式 (Line Number) */
.code-line::before {
    counter-increment: line-counter; /* 计数器递增 */
    content: counter(line-counter); /* 显示计数器的值 */
   
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0; /* 延伸到底部，确保填充整行高度 */
   
    color: #6e7781;
    text-align: right;
    width: 48px;
    padding-right: 12px;
    border-right: 1px solid #eaecef;
   
    user-select: none; /* 防止行号被选中 */
    pointer-events: none; /* 允许点击穿透 */
    background-color: #f6f8fa;
    font-size: 0.8125em;
    font-weight: 500;
   
    /* 使用 height: 100% 和 display: flex 确保背景色填充整行 */
    height: 100%;
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    justify-content: flex-end; /* 水平右对齐 */
    line-height: 1.5;
}

/* 8. 代码高亮配色方案 (Syntax Highlighting) */
.h-keyword {
    color: #d73a49;
    font-weight: 600;
}

.h-string {
    color: #032f62;
}

.h-comment {
    color: #6a737d;
    font-style: italic;
}

.h-number {
    color: #005cc5;
}

/* 9. 行内代码 <code> 样式 (Inline Code) */
code {
    font-family: "CascadiaCode", Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
    font-size: .92857em;
    padding: 2px 4px;
    color: #B94A48;
    background: #EEE;
}

/* ==========================================================================
   内容与布局 (Content and Layout Styles)
   ========================================================================== */

/* 引用块 (Blockquote) */
blockquote {
    margin: 1em 0em;
    padding: 10px 15px;
    border-left: 8px solid rgb(67, 135, 193);
    background-color: #F0F8FF;
    color: #444;
    font-style: normal;
}

/* 表单元素 (Form Elements) */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
    padding: 8px 12px;
    border: 1px solid #E9E9E9;
    width: 100%;
    border-radius: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: "FangZhengHeiTi", "PingFang SC", "Microsoft Yahei", sans-serif;
    font-size: 1em;
    transition: border-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: rgb(67, 135, 193);
}
textarea {
    resize: vertical;
}

/* 内容区域链接样式 (Content Area Link Styles) */
.post-meta a,
.post-content a,
.comment-content a {
    border-bottom: 1px solid #EEE;
}
.post-meta a:hover,
.post-content a:hover,
.comment-content a:hover {
    border-bottom-color: transparent;
}
/* 移除 sidebar 中链接的下划线 */
.widget-list li a {
    border-bottom: none;
}

/* 浏览器兼容性提示 (Browse Happy) */
.browsehappy {
    padding: 8px 0;
    background: #FBE3E4;
    color: #8A1F11;
    text-align: center;
}
.browsehappy a {
    color: #8A1F11;
    text-decoration: underline;
    font-weight: bold;
}

/* 头部区域 (Header) */
#header {
    padding-top: 25px;
    border-bottom: 1px solid #EEE;
    background: rgba(93, 150, 199, 0.98);
}
#logo {
    color: #fff;
    font-size: 2.5em;
}
.description {
    margin: .5em 0 0;
    color: rgba(238, 238, 238, 0.55);
    font-style: italic;
}

/* 导航菜单 (Navigation Menu) */
#nav-menu {
    margin: 15px 0 0;
    padding: 0;
}
#nav-menu a {
    display: block;
    margin-right: -1px;
    padding: 0 20px;
    border: 1px solid #EEE;
    border-bottom: none;
    height: 32px;
    line-height: 32px;
    color: #444;
    float: left;
}
#nav-menu a:hover,
#nav-menu .current {
    background: #F6F6F6;
}

/* 搜索框 (Search) */
#search {
    position: relative;
    margin-top: 15px;
}
#search input {
    padding-right: 30px;
}
#search button {
    position: absolute;
    right: 4px;
    top: 2px;
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
    background: transparent;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
#search button:hover {
    color: rgb(93, 150, 199);
}

/* 文章容器 (Post Container) */
.post {
    padding: 20px;
    border: 1px solid #E9E9E9;
    border-left: 3px solid rgba(93, 150, 199, 0.5);
    background: #FFFFFF;
    margin-top: 20px;
}
/* 文章列表卡片动效 (Post Card Hover Effects) */
.post:not(.single) {
    transition: border-left-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                background-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.post:not(.single):hover {
    border-left-color: rgb(93, 150, 199);
    background: rgba(240, 248, 255, 0.3);
}

/* 文章头部 (Post Header) */
.post-header {
    margin-bottom: 20px;
}

/* 文章标题和元数据 (Post Title and Meta) */
.post-title {
    margin: 0 0 12px 0;
    font-size: 1.35em;
    line-height: 1.4;
}
.post-title a {
    color: #333;
    text-decoration: none;
}
/* 文章列表中的标题动效 (Post List Title Hover) */
.post:not(.single) .post-title a {
    transition: color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.post:not(.single) .post-title a:hover {
    color: rgb(93, 150, 199);
}
.post-meta {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #999;
    font-size: 0.875em;
}
.post-meta li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    border: none;
}
.post-meta svg,
.post-meta i {
    flex-shrink: 0;
    opacity: 0.7;
}
/* 文章列表中的图标动效 (Post List Icon Hover) */
.post:not(.single) .post-meta svg,
.post:not(.single) .post-meta i {
    transition: opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.post:not(.single) .post-meta li:hover svg,
.post:not(.single) .post-meta li:hover i {
    opacity: 1;
}
.post-meta a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
                border-bottom-color 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.post-meta a:hover {
    color: rgb(93, 150, 199);
    border-bottom-color: rgb(93, 150, 199);
}

/* 文章内容 (Post Content) */
.post-content {
    margin: 20px 0;
    color: #555;
    line-height: 1.8;
    font-size: 0.95em;
}
.post .tags {
    clear: both;
    margin: 20px 0 0 0;
    padding: 20px 0 0 0;
    border-top: 1px solid #F0F0F0;
    color: #666;
    font-size: 0.9em;
}

/* 文章底部 (Post Footer) */
.post-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #F0F0F0;
    text-align: right;
}

/* 邻近文章 (Post Near) */
.post-near {
    margin: 20px 0;
    padding: 0;
    color: #999;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
}
.post-near-item {
    flex: 1;
    min-width: 220px;
    padding: 20px;
    border: 1px solid #E9E9E9;
    background: #FFFFFF;
    transition: border-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.post-near-item:hover {
    border-color: rgb(67, 135, 193);
    background: rgba(67, 135, 193, 0.05);
}
.post-near-label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    color: rgb(67, 135, 193);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-near-content {
    line-height: 1.6;
}
.post-near-content a {
    color: #444;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.post-near-content a:hover {
    color: rgb(67, 135, 193);
}
.post-near-empty {
    color: #999;
    font-style: italic;
    padding: 5px 0;
}

/* ==========================================================================
   归档页面样式 (Archive Page Styles)
   ========================================================================== */

/* 归档头部区域 (Archive Header) */
.archive-header {
    margin: 20px 0;
    padding: 20px;
    background: rgba(240, 248, 255, 0.4);
    border: 1px solid #E9E9E9;
    border-left: 4px solid rgb(93, 150, 199);
}

/* 归档标题 (Archive Title) */
.archive-title {
    margin: 0 0 10px 0;
    padding: 0;
    color: #333;
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1.3;
}

/* 归档元数据 (Archive Meta) */
.archive-meta {
    color: #666;
    font-size: 0.95em;
    margin-top: 8px;
}

.archive-meta .archive-count {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(93, 150, 199, 0.2);
}

.archive-meta strong {
    color: rgb(93, 150, 199);
    font-weight: 600;
    font-size: 1.1em;
}

/* 归档列表容器 (Archive List) */
.archive-list {
    margin: 0;
}

/* 归档列表项 (Archive Item) */
.archive-item {
    padding: 20px;
    margin-bottom: 20px;
    background: #FFFFFF;
    border: 1px solid #E9E9E9;
    border-left: 3px solid rgba(93, 150, 199, 0.5);
    transition: border-left-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                background-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.archive-item:hover {
    border-left-color: rgb(93, 150, 199);
    background: rgba(240, 248, 255, 0.3);
}

/* 归档项头部 (Archive Item Header) */
.archive-item-header {
    margin-bottom: 20px;
}

.archive-item .post-title {
    margin: 0 0 12px 0;
    font-size: 1.35em;
    line-height: 1.4;
}

.archive-item .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.archive-item .post-title a:hover {
    color: rgb(93, 150, 199);
}

/* 归档项元数据样式优化 (Archive Item Meta) */
.archive-item .post-meta {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #999;
    font-size: 0.875em;
}

.archive-item .post-meta li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    border: none;
}

.archive-item .post-meta svg,
.archive-item .post-meta i {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.archive-item .post-meta li:hover svg,
.archive-item .post-meta li:hover i {
    opacity: 1;
}

.archive-item .post-meta a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
                border-bottom-color 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.archive-item .post-meta a:hover {
    color: rgb(93, 150, 199);
    border-bottom-color: rgb(93, 150, 199);
}

/* 归档项摘要 (Archive Item Excerpt) */
.archive-item-excerpt {
    margin: 20px 0;
    color: #555;
    line-height: 1.8;
    font-size: 0.95em;
}

/* 归档项底部 (Archive Item Footer) */
.archive-item-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #F0F0F0;
    text-align: right;
}

/* 阅读更多按钮 (Read More Button) */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: rgb(93, 150, 199);
    color: #FFFFFF !important;
    border: 1px solid rgb(93, 150, 199);
    font-size: 0.875em;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.read-more-btn:hover {
    background: rgba(93, 150, 199, 0.9);
}



/* 归档空状态 (Archive Empty State) */
.archive-empty {
    text-align: center;
    padding: 80px 30px;
    background: #FFFFFF;
    border: 1px solid #E9E9E9;
    margin: 20px 0;
}

.archive-empty .empty-icon {
    margin-bottom: 20px;
    opacity: 0.3;
}

.archive-empty .empty-icon svg,
.archive-empty .empty-icon i {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #999;
}

.archive-empty .empty-title {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 1.5em;
    font-weight: 600;
}

.archive-empty .empty-desc {
    margin: 0 0 30px 0;
    color: #999;
    font-size: 0.95em;
    line-height: 1.6;
}

/* 返回首页按钮 (Back Home Button) */
.back-home-btn {
    display: inline-block;
    padding: 10px 30px;
    background: rgb(93, 150, 199);
    color: #FFFFFF !important;
    border: 1px solid rgb(93, 150, 199);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.back-home-btn:hover {
    background: rgba(93, 150, 199, 0.9);
}

/* 响应式优化 (Responsive) */
@media (max-width: 768px) {
    .archive-header {
        padding: 20px;
        margin: 20px 0 30px;
    }
    
    .archive-title {
        font-size: 1.4em;
    }
    
    .archive-item {
        padding: 16px;
    }
    
    .archive-item .post-title {
        font-size: 1.2em;
    }
    
    .archive-item .post-meta {
        gap: 12px;
        font-size: 0.85em;
    }
    
    .archive-empty {
        padding: 60px 20px;
    }
}

/* 原有归档标题样式（保留以兼容其它地方使用） */
h3.archive-title {
    margin: 1em 0 -1em;
    padding-top: 20px;
    color: #999;
    font-size: 1em;
}

/* 更多链接 (More Link) */
.more {
    text-align: center;
}
.more a {
    border: none;
}

/* 受保护文章 (Protected Post) */
.protected .text {
    width: 50%;
}

/* 分页导航 (Page Navigator) */
.page-navigator {
    list-style: none;
    margin: 25px 0;
    padding: 0;
    text-align: center;
}
.page-navigator li {
    display: inline-block;
    margin: 0 4px;
}
.page-navigator a {
    display: inline-block;
    padding: 0 10px;
    height: 30px;
    line-height: 30px;
    border: 1px solid #E9E9E9;
    background: #FFFFFF;
    transition: background-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.page-navigator a:hover {
    background: #F8F9FA;
    text-decoration: none;
    border-color: rgb(67, 135, 193);
}
.page-navigator .current a {
    color: #fff;
    background: rgb(67, 135, 193);
    border-color: rgb(67, 135, 193);
}

/* 评论区 (Comments) */
#comments {
    padding-top: 20px;
}

/* 评论列表 (Comment List) */
.comment-list,
.comment-list ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
.comment-list li {
    padding: 14px;
    margin-top: 10px;
    border: 1px solid #E9E9E9;
    background: #FFFFFF;
}
.comment-list li.comment-level-odd {
    background: #F8F9FA;
}
.comment-list li.comment-level-even {
    background: #FFFFFF;
}
.comment-list li.comment-by-author {
    background: #FFF9E8;
}
.comment-list li .comment-reply {
    text-align: right;
    font-size: .92857em;
}

/* 评论元数据与作者 (Comment Meta & Author) */
.comment-meta a {
    color: #999;
    font-size: .92857em;
}
.comment-author {
    display: block;
    margin-bottom: 3px;
    color: #444;
}
.comment-author .avatar {
    float: left;
    margin-right: 10px;
}
.comment-author cite {
    font-weight: bold;
    font-style: normal;
}

/* 评论回复表单 (Comment Reply Form) */
.comment-list .respond {
    margin-top: 15px;
    border-top: 1px solid #EEE;
}
.respond .cancel-comment-reply {
    float: right;
    margin-top: 15px;
    font-size: .92857em;
}

/* 评论表单 (Comment Form) */
#comment-form label {
    display: block;
    margin-bottom: .5em;
    font-weight: bold;
}
#comment-form .required:after {
    content: " *";
    color: #C00;
}

/* 侧边栏 (Secondary/Sidebar) */
#secondary {
    padding-top: 20px;
    word-wrap: break-word;
}

/* 小工具 (Widget) */
.widget {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #E9E9E9;
    background: #FFFFFF;
    transition: border-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.widget:hover {
    border-color: #E9E9E9;
    background: #FFFFFF;
}
.widget-title {
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 3px solid rgba(93,150,199,0.98);
    color: #444;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.widget-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}
.widget-list li {
    margin: 5px 0;
    line-height: 1.6;
}
.widget-list li a {
    display: block;
    padding: 10px 0;
    color: #444;
    transition: color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
                background-color 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.widget-list li a:hover {
    color: rgb(67, 135, 193);
    background: rgba(67, 135, 193, 0.05);
}
.widget-list li ul {
    margin-left: 15px;
}

/* 主体内容区域 (Body) */
#body {
    flex: 1;
}

/* 底部区域 (Footer) */
#footer {
    margin-top: 25px;
    padding: 3em 0;
    line-height: 1.5;
    text-align: center;
    color: #999;
    background: aliceblue;
    width: 100%;
}

@media screen and (max-width: 600px) {
    /* 移动端样式 */
    .footer-container {
        display: block;
        padding: 0 20px;
    }
    .footer-left, 
    .footer-right {
        width: 100%;
        text-align: left;
    }
}

@media screen and (min-width: 601px) {
    /* 桌面端样式 */
    .footer-container {
        display: flex;
        justify-content: space-between;
        padding: 0 24px;
    }
    .footer-left, 
    .footer-right {
        width: calc(50% - 48px);
        text-align: left;
    }
}

/* 错误页面 (Error Page) */
.error-page {
    margin-top: 100px;
    margin-bottom: 100px;
}

/* 内容排版通用样式 (Content Typography Utilities) */
.post-content,
.comment-content {
    line-height: 1.5;
    word-wrap: break-word;
}
.post-content h2,
.comment-content h2 {
    font-size: 1.28571em;
}
.post-content img,
.comment-content img,
.post-content video,
.comment-content video {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}
.post-content a img,
.comment-content a img {
    background: #FFF;
    position: relative;
    bottom: -4px;
}

/* 文章开头图片适配 */
.post-content .post-header-image {
    width: 100%;
    margin-bottom: 20px;
    border: none;
}
.post-content hr,
.comment-content hr {
    margin: 2em auto;
    width: 100px;
    border: 1px solid #E9E9E9;
    border-width: 2px 0 0 0;
}

/* 对齐辅助类 (Alignment Helper Classes) */
.aligncenter,
div.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.alignleft {
    float: left;
}
.alignright {
    float: right;
}
img.alignleft {
    margin: 0 15px 0 0;
}
img.alignright {
    margin: 0 0 0 15px;
}

/* 媒体查询 (Media Queries) */
@media (max-width:767px) {
    body {
        font-size: 81.25%;
    }
    #nav-menu a {
        float: none;
        display: inline-block;
        margin: 0 -2px;
    }
}
@media (max-width:768px) {
    #header,
    .post-title {
        text-align: center;
    }
    
    .post {
        padding: 16px;
    }
    
    .post-meta {
        justify-content: center;
        gap: 12px;
        font-size: 0.85em;
    }
    
    .post-title {
        font-size: 1.2em;
    }
}
@media (min-width:1200px) {
    .container {
        max-width: 952px;
    }
}

/* 辅助类 (Utility Classes) */
.hidden {
    display: none !important;
    visibility: hidden;
}
.sr-only {
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.sr-only.focusable:active,
.sr-only.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}
.invisible {
    visibility: hidden;
}

/* 文章详情页特殊样式 (Single Post Specific Style) */
.single:hover {
    background: rgba(240, 248, 255, .18) !important;
}

/* 表格样式 (Table Styles) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    border: 1px solid #E9E9E9;
}
table th,
table td {
    border: 1px solid #E9E9E9;
    padding: 8px;
    text-align: left;
}
table th {
    background-color: rgba(93, 150, 199, 0.98);
    font-weight: bold;
    color: #ffffff;
}
table td {
    background-color: rgba(240, 248, 255, 0.18);
}

/* 水平分割线 (Horizontal Rule) */
hr {
    margin: 2em auto;
    width: 100px;
    border: 1px solid #E9E9E9;
    border-width: 2px 0 0 0;
}

/* 列表样式 (List Styles) */
ul,
ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}
ul li,
ol li {
    margin-bottom: 0.5em;
}