/* ===== 全局重置 ===== */ body { margin: 0; padding: 0; background: #EEEEEE; font-family: Verdana, Arial, "宋体", "SimSun", sans-serif; font-size: 14px; color: #000000; } /* ===== 主容器 ===== */ #container { width: 800px; margin: 30px auto; background: #FFFFFF; border: 1px solid #003366; padding: 20px 30px; } /* ===== 头部 ===== */ #header { background: #003366; margin: -20px -30px 20px -30px; padding: 12px 30px; } #header h1 { margin: 0; color: white; font-size: 22px; font-weight: normal; letter-spacing: 2px; } /* ===== 导航 ===== */ #nav { border-bottom: 2px solid #003366; padding-bottom: 8px; margin-bottom: 20px; font-size: 13px; } #nav a { color: #003366; text-decoration: none; padding: 0 6px; } #nav a:hover { text-decoration: underline; } /* ===== 双栏布局 ===== */ #main-row::after { content: ""; display: block; clear: both; } #sidebar { float: left; width: 28%; background: #E8E0D0; padding: 12px; box-sizing: border-box; } #content { float: right; width: 72%; padding-left: 20px; box-sizing: border-box; } /* ===== 文章列表样式 ===== */ #article_list h2 { color: #003366; text-decoration: underline; font-size: 18px; font-weight: normal; margin-top: 0; } #article_list a { color: #003366; text-decoration: underline; font-size: 18px; font-weight: normal; margin-top: 0; } #article_list h4 { color: #666; font-size: 13px; font-weight: normal; margin: -5px 0 10px 0; text-indent: 0; } #article_list p { text-indent: 0; line-height: 1.6; margin: 10px 0; } #article_list img { max-width: 100%; height: auto; border: 1px solid #CCCCCC; padding: 4px; background: #FFFFFF; margin: 10px 0; } #article_list p img { display: block; margin-left: auto; margin-right: auto; } /* ===== 生活文章列表样式 ===== */ .life-article { padding: 10px 0; border-bottom: 1px dashed #003366; } .life-article-title { display: flex; justify-content: space-between; align-items: baseline; } .life-article-title a { color: #003366; text-decoration: underline; font-size: 16px; font-weight: normal; } .life-article-title a:hover { color: #002244; } .life-article-time { color: #999; font-size: 12px; font-weight: normal; white-space: nowrap; margin-left: 15px; } /* ===== 技术文章列表样式 ===== */ .tech-article { padding: 10px 0; border-bottom: 1px dashed #003366; } .tech-article-title { display: flex; justify-content: space-between; align-items: baseline; } .tech-article-title a { color: #003366; text-decoration: underline; font-size: 16px; font-weight: normal; } .tech-article-title a:hover { color: #002244; } .tech-article-time { color: #999; font-size: 12px; font-weight: normal; white-space: nowrap; margin-left: 15px; } /* ===== 技术分类列表样式(全部技术分类页面) ===== */ .tech-category-item { padding: 16px 0 14px 0; border-bottom: 1px dashed #CCCCCC; } .tech-category-item:last-child { border-bottom: none; } .tech-category-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; } .tech-category-title a { color: #003366; text-decoration: underline; font-size: 17px; font-weight: normal; } .tech-category-title a:hover { color: #002244; } .tech-category-meta { color: #999; font-size: 12px; font-weight: normal; white-space: nowrap; } .tech-category-desc { color: #888; font-size: 13px; margin-top: 6px; padding-left: 4px; line-height: 1.5; } /* ===== 文章详情页 ===== */ .diary-article { white-space: normal; margin: 0; padding: 5px 0 15px 0; border-bottom: 1px dashed #003366; line-height: 1.6; } .diary-article h2 { color: #003366; text-decoration: underline; font-size: 18px; font-weight: normal; margin: 0 0 4px 0; } .diary-article h4 { color: #666; font-size: 13px; font-weight: normal; margin: 0 0 2px 0; text-indent: 0; } /* ===== 文章内容(Markdown 解析输出) ===== */ .article-content { font-size: 14px; line-height: 1.4; color: #333333; word-wrap: break-word; } .article-content h1, .article-content h2, .article-content h3, .article-content h4, .article-content h5, .article-content h6 { color: #003366; font-weight: bold; margin: 5px 0 5px 0; text-decoration: none; } .article-content h1 { font-size: 24px; } .article-content h2 { font-size: 20px; } .article-content h3 { font-size: 17px; } .article-content h4 { font-size: 15px; } .article-content h5 { font-size: 14px; } .article-content h6 { font-size: 13px; color: #666; } .article-content p { margin: 10px 0; } .article-content ul, .article-content ol { padding-left: 24px; margin: 10px 0; } .article-content li { margin-bottom: 4px; line-height: 1.8; } .article-content blockquote { background: #E8E0D0; padding: 8px 16px; border-left: 4px solid #003366; font-style: italic; margin: 12px 0; } .article-content blockquote p { text-indent: 0; } /* ===== 代码块样式(不换行 + 横向滚动,无纵向滚动) ===== */ .article-content pre { background: #EEEEEE; padding: 12px 16px; border: 1px solid #CCCCCC; overflow-x: auto; /* 只有横向滚动 */ overflow-y: hidden; /* 无纵向滚动 */ font-family: "Courier New", monospace; font-size: 13px; line-height: 1.6; white-space: pre; /* 不自动换行,保留格式 */ margin: 12px 0; -webkit-overflow-scrolling: touch; /* 移动端平滑滚动 */ } .article-content pre code { background: none; padding: 0; border: none; font-size: 13px; white-space: pre; /* 保持不换行 */ } /* ===== 行内代码 ===== */ .article-content code { background: #EEEEEE; padding: 1px 6px; border: 1px solid #DDDDDD; font-family: "Courier New", monospace; font-size: 13px; border-radius: 2px; white-space: normal; /* 行内代码可以换行 */ } /* ===== 横向滚动条样式 ===== */ .article-content pre::-webkit-scrollbar { height: 8px; width: 0; /* 隐藏纵向滚动条 */ } .article-content pre::-webkit-scrollbar-track { background: #EEEEEE; } .article-content pre::-webkit-scrollbar-thumb { background: #CCCCCC; } .article-content pre::-webkit-scrollbar-thumb:hover { background: #AAAAAA; } .article-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; } .article-content th, .article-content td { padding: 6px 10px; border: 1px solid #CCCCCC; text-align: left; } .article-content th { background: #E8E0D0; font-weight: bold; } .article-content hr { border: none; border-top: 1px dashed #CCCCCC; margin: 20px 0; } .article-content a { color: #003366; text-decoration: underline; } .article-content a:hover { color: #002244; } .article-content img { max-width: 100%; height: auto; border: 1px solid #CCCCCC; padding: 4px; background: #FFFFFF; margin: 10px 0; box-sizing: border-box; } .article-content p img { display: block; margin-left: auto; margin-right: auto; } .article-content strong { font-weight: bold; color: #000000; } .article-content em { font-style: italic; } /* ===== 文章分类 ===== */ .article-category { font-size: 13px; color: #666; margin: 0 0 2px 0; } .article-category a { color: #003366; text-decoration: none; } .article-category a:hover { text-decoration: underline; } /* ===== 文章标签 ===== */ .article-tags { font-size: 13px; color: #666; margin: 0 0 10px 0; } .article-tags a { color: #003366; text-decoration: none; margin-right: 4px; } .article-tags a:hover { text-decoration: underline; } /* ===== 文章表格样式 ===== */ .article-content .table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; border: 1px solid #CCCCCC; } .article-content table { width: 100%; min-width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; /* 固定列宽,防止内容撑爆 */ } /* 如果希望表格按内容自适应宽度,但允许横向滚动 */ .article-content table.auto-width { min-width: 100%; width: auto; table-layout: auto; } .article-content th, .article-content td { padding: 6px 10px; border: 1px solid #CCCCCC; text-align: left; vertical-align: middle; word-wrap: break-word; overflow-wrap: break-word; max-width: 300px; /* 限制单列最大宽度 */ } /* 表头 */ .article-content th { background: #E8E0D0; font-weight: bold; } /* 表格行交替颜色(可选) */ .article-content tbody tr:nth-child(even) { background: #F8F6F0; } .article-content tbody tr:hover { background: #EFECE6; } /* ===== 表格容器(自动包裹表格) ===== */ .article-content table { display: table; } /* 确保表格不会溢出容器 */ .article-content .table-wrapper { overflow-x: auto; white-space: nowrap; /* 强制所有内容在一行 */ } /* ===== 文章分隔线 ===== */ hr.article-divider { border: none; border-top: 1px dashed #CCCCCC; margin: 10px 0 12px 0; } /* ===== 返回链接 ===== */ .back-link { margin-top: 6px; font-size: 14px; } .back-link a { color: #003366; text-decoration: none; } .back-link a:hover { text-decoration: underline; } /* ===== 文章跳转导航 ===== */ #article_jump { text-align: center; padding: 15px 0 20px 0; border-bottom: 1px dashed #CCCCCC; margin-bottom: 20px; font-size: 14px; } #article_jump a { color: #999999; text-decoration: none; padding: 4px 12px; margin: 0 3px; font-size: 13px; border: none; } #article_jump a:hover { background: #E0E0E0; color: #666666; text-decoration: none; } #article_jump input { width: auto; min-width: 14px; max-width: 100%; display: inline-block; } #article_jump .page-info { color: #999999; padding: 0 12px; font-size: 13px; } /* ===== 评论区域整体 ===== */ #comment_list { margin: 30px 0 0 0; padding-top: 10px; border-top: 2px solid #003366; line-height: normal; } #comment_list h2 { color: #003366; font-size: 18px; font-weight: normal; border-bottom: 2px solid #003366; padding-bottom: 6px; margin-bottom: 15px; } #comment_list h3 { margin: 0 0 4px 0; padding: 0; font-size: 14px; font-weight: normal; line-height: 1.4; } /* ===== 单个评论 ===== */ #comment_list .diary_comment { background: #F5F0E8; padding: 12px 16px; margin: 10px 0 20px 0; border-left: 3px solid #003366; } /* ===== 评论作者 ===== */ #comment_list .comment-website { color: #003366; text-decoration: none; font-weight: bold; font-size: 15px; } #comment_list .comment-website:hover { text-decoration: underline; } /* ===== 评论时间 ===== */ #comment_list .comment-time { color: #999; font-size: 12px; font-weight: normal; margin-left: 10px; } /* ===== 评论内容 ===== */ #comment_list p { margin: 6px 0 0 0; padding: 0; text-indent: 0; font-size: 14px; line-height: 1.6; color: #333; } /* ===== 评论样式增强 ===== */ .comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .comment-author { color: #003366; font-weight: bold; font-size: 15px; } .comment-reply-info { font-size: 13px; color: #666; margin-bottom: 4px; } .comment-body { font-size: 14px; line-height: 1.6; color: #333; margin-bottom: 4px; } /* ===== 回复链接 ===== */ #comment_list .reply-link { color: #003366; font-size: 12px; text-decoration: none; margin-left: 4px; } #comment_list .reply-link:hover { text-decoration: underline; } /* ===== 回复标签 ===== */ #comment_list .reply-label { color: #666; font-size: 12px; } /* ===== 评论分页 ===== */ #comment_jump { text-align: center; padding: 15px 0 20px 0; border-bottom: 1px dashed #CCCCCC; margin-bottom: 20px; font-size: 14px; } #comment_jump a { color: #999999; text-decoration: none; padding: 4px 12px; margin: 0 3px; font-size: 13px; } #comment_jump a:hover { background: #E0E0E0; color: #666666; text-decoration: none; } #comment_jump input { width: auto; min-width: 14px; max-width: 100%; display: inline-block; } #comment_jump .page-info { color: #999999; padding: 0 12px; font-size: 13px; } /* ===== 评论表单标题 ===== */ #comment_submit h3 { font-weight: normal; font-size: 16px; color: #003366; border-bottom: 1px solid #003366; padding-bottom: 6px; margin-top: 20px; margin-bottom: 12px; } /* ===== 评论表单 ===== */ #comment_submit .input-group { display: flex; gap: 10px; margin-bottom: 10px; max-width: 100%; } #comment_submit .input-group input { flex: 1 1 0%; min-width: 0; padding: 6px 10px; border: 1px solid #CCCCCC; box-sizing: border-box; font-family: inherit; font-size: 14px; } #comment_submit textarea { width: 100%; padding: 6px 10px; border: 1px solid #CCCCCC; box-sizing: border-box; font-family: inherit; font-size: 14px; resize: vertical; min-height: 80px; } #comment_submit .form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; } #comment_submit .form-left { display: flex; align-items: center; gap: 6px; } #comment_submit .form-right input[type="submit"] { background: #003366; color: white; border: none; padding: 6px 20px; font-size: 14px; cursor: pointer; font-family: inherit; } #comment_submit .form-right input[type="submit"]:hover { background: #002244; } /* ===== 评论操作按钮 ===== */ .comment-actions { margin-top: 8px; } .comment-actions .reply-btn { color: #003366; font-size: 13px; text-decoration: none; } .comment-actions .reply-btn:hover { text-decoration: underline; } /* ===== 回复指示器 ===== */ #reply-indicator { background: #E8E0D0; padding: 6px 12px; margin-bottom: 10px; border-left: 3px solid #003366; font-size: 13px; color: #333; } #reply-indicator a { color: #003366; text-decoration: none; } #reply-indicator a:hover { text-decoration: underline; } /* ===== 普通提示信息样式 ===== */ .common_message h2 { text-align: left; font-size: 20px; } .common_message a { text-align: left; color: #003366; font-size: 20px; text-decoration: none; } .common_message a:hover { text-align: left; color: #003366; text-decoration: none; } /* ===== 侧边栏样式 ===== */ #sidebar h3 { color: #003366; font-size: 14px; font-weight: bold; margin: 0 0 8px 0; border-bottom: 1px solid #003366; padding-bottom: 4px; } #sidebar ul { list-style: none; padding: 0; margin: 0 0 15px 0; } #sidebar ul li { padding: 3px 0; border-bottom: 1px dashed #CCCCCC; } #sidebar ul li a { color: #003366; text-decoration: none; } #sidebar ul li a:hover { text-decoration: underline; } /* ===== 归档页面样式 ===== */ #archive-container { font-size: 14px; } .archive-year { margin-bottom: 8px; } .archive-year-title { font-size: 18px; font-weight: bold; color: #003366; cursor: pointer; padding: 6px 0 6px 4px; border-bottom: 1px solid #003366; user-select: none; } .archive-year-title .arrow { display: inline-block; width: 20px; font-size: 14px; } .archive-year-title .archive-count { font-size: 14px; font-weight: normal; color: #666; margin-left: 8px; } .archive-articles { padding-left: 24px; } .archive-article { padding: 4px 0 4px 8px; border-bottom: 1px dashed #EEEEEE; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } .archive-article a { color: #003366; text-decoration: underline; font-size: 12px; } .archive-article a:hover { color: #002244; } .archive-article .archive-meta { font-size: 13px; color: #666; } /* ===== 歌词引用样式 ===== */ .lyric-quote { background: #F5F0E8; padding: 16px 20px; margin: 0 0 20px 0; border-left: 4px solid #003366; font-size: 14px; line-height: 1.4; color: #333333; font-style: italic; } .lyric-quote p { margin: 0; padding: 0; text-indent: 0; } .lyric-quote p:last-child { margin-bottom: 0; } /* ===== 底部 ===== */ #footer { border-top: 1px solid #003366; margin-top: 20px; padding-top: 12px; text-align: center; font-size: 12px; color: #666; }

曾经在幽幽暗暗 反反复复中追问,

才知道平平淡淡 从从容容才是真。

再回首恍然如梦,再回首我心依旧~

只有那无尽的长路伴着我……

最新文章

[日记] php2shell漏洞 2026-10-25
[日记] 又一个小周 2026-10-24
[日记] 无题 2026-10-24
[日记] 服务器故障&周末补记 2026-10-20
[日记] 继续 2026-10-12
[生活] 国庆外培行记 2026-10-10
[日记] 大小周 2026-10-10
[日记] 忙碌 2026-10-09
[生活] 博客三周年 - 我为什么而写博客 2026-09-30
[日记] 考砸 2026-09-29