/* 引入Josefin Sans字体（常规样式），用于网站主要文本显示 */
@font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: normal;
    /* 字体资源多格式适配，兼容不同浏览器 */
    src: url('//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.eot'); /* IE9兼容模式 */
    src: local('Josefin Sans'), local('JosefinSans-Normal'), 
         url('//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.woff2') format('woff2'), /* 现代浏览器 */
         url('//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.woff') format('woff'), 
         url('//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.ttf') format('truetype'), /* 移动设备 */
         url('//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.svg#JosefinSans') format('svg'); /* 旧版iOS */
}

/* 引入PT Sans字体（常规样式），主要用于引用块等特殊元素 */
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: normal;
    /* 字体资源多格式适配 */
    src: url('//lib.baomitu.com/fonts/pt-sans/pt-sans-regular.eot'); /* IE9兼容 */
    src: local('PT Sans'), local('PTSans-Normal'), 
         url('//lib.baomitu.com/fonts/pt-sans/pt-sans-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('//lib.baomitu.com/fonts/pt-sans/pt-sans-regular.woff2') format('woff2'), 
         url('//lib.baomitu.com/fonts/pt-sans/pt-sans-regular.woff') format('woff'), 
         url('//lib.baomitu.com/fonts/pt-sans/pt-sans-regular.ttf') format('truetype'), 
         url('//lib.baomitu.com/fonts/pt-sans/pt-sans-regular.svg#PTSans') format('svg');
}

/* 自定义滚动条样式（仅WebKit内核浏览器） */
html::-webkit-scrollbar {
    width: 8px;  /* 垂直滚动条宽度 */
    height: 8px; /* 水平滚动条高度 */
}
html::-webkit-scrollbar-thumb {
    height: 40px; /* 滚动条滑块最小高度 */
    background-color: #ddd; /* 滑块颜色 */
    border-radius: 16px; /* 滑块圆角 */
}

/* 选中文本样式 */
::selection {
    background: rgba(0, 149, 255, 0.1); /* 浅蓝色半透明背景 */
}

/* 全局样式重置：清除默认margin、padding和边框，统一基线 */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* 全局字体设置：优先使用Josefin Sans， fallback到系统字体 */
html {
    font-family: 'Josefin Sans', -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", STHeiti, "Microsoft Yahei", "WenQuanYi Micro Hei", Arial, Verdana, sans-serif !important;
}

/* 基础文本样式：设置默认字体大小、行高 */
body, footer {
    font-size: 13pt;
    font-weight: 400;
    line-height: 2em; /* 行高为字体大小的2倍，提升可读性 */
}

/* 响应式字体大小：根据屏幕宽度调整字体大小 */
@media screen and (min-width: 1681px) { /* 超大屏 */
    body p, footer p { font-size: 12pt; }
}
@media screen and (max-width: 1680px) { /* 大屏 */
    body, footer { font-size: 11pt; }
}
@media screen and (max-width: 1280px) { /* 中大屏 */
    body, footer { font-size: 11pt; }
}
@media screen and (max-width: 980px) { /* 平板横屏 */
    body, footer { font-size: 12pt; }
}
@media screen and (max-width: 736px) { /* 平板竖屏 */
    body, footer { font-size: 12pt; }
}
@media screen and (max-width: 480px) { /* 手机屏 */
    body, footer { font-size: 12pt; }
}

/* 页面背景图样式：固定定位、灰度处理、半透明 */
body:before {
    content: '';
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05; /* 透明度5% */
    position: fixed; /* 固定背景不随滚动移动 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 置于内容下方 */
    /* 灰度滤镜：40%灰度 */
    -webkit-filter: grayscale(40%);
    -moz-filter: grayscale(40%);
    -ms-filter: grayscale(40%);
    -o-filter: grayscale(40%);
    filter: grayscale(40%);
    filter: gray;
}

/* 链接样式：默认颜色和hover效果 */
a {
    color: #ff5252cc; /* 浅红色半透明 */
    transition: color .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease; /* 过渡动画 */
}
a:hover {
    color: #ff5252cc;
    background-color: #fce4eca1; /* 浅粉色背景 */
    text-decoration: none;
    transition: all .2s ease; /* 悬停时过渡效果 */
}

/* 强调文本样式 */
strong, b {
    color: #484848; /* 深灰色 */
    font-weight: 700; /* 加粗 */
}
em, i {
    font-style: italic; /* 斜体 */
}

/* 段落样式：间距和颜色 */
p {
    font-size: 1em;
    color: #333; /* 深灰色文本 */
    margin: 1.65em 0; /* 上下间距 */
}

/* 水平分隔线样式 */
hr {
    margin: 2em 0; /* 上下间距 */
}

/* 标题样式：颜色、权重和间距 */
h1, h2, h3, h4, h5, h6 {
    color: #71c3ff; /* 浅蓝色 */
    font-weight: 700;
    display: block;
    margin: 1.7em 0; /* 上下间距 */
    line-height: 1.3em; /* 紧凑行高 */
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit; /* 继承标题颜色 */
    text-decoration: none;
}
/* 标题字体大小层级 */
h1 { font-size: 2.5em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.35em; }
h4 { font-size: 1.1em; }
h5 { font-size: 1.05em; }
h6 { font-size: 1em; }

/* 代码块样式 */
code, p code {
    padding: 3px 5px; /* 内边距 */
    margin: 0;
    font-size: 85%; /* 比正文小 */
    background-color: rgba(0, 0, 0, 0.04); /* 浅灰色背景 */
    border-radius: 3px; /* 圆角 */
}
code, pre {
    font-family: Consolas, Menlo, Monaco, "Courier New", monospace; /* 等宽字体 */
    color: #444; /* 中灰色 */
}

/* 图片样式：自适应、圆角和阴影 */
img {
    max-width: 100%; /* 自适应容器宽度 */
    height: auto; /* 保持比例 */
    border-radius: 6px; /* 圆角 */
    box-shadow: 0 2px 15px 0px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
}

/* 引用块样式：边框、图标和布局 */
blockquote {
    font-size: 0.8em;
    display: block;
    border-width: 1px 0; /* 上下边框 */
    border-style: solid;
    border-color: #eee; /* 浅灰色边框 */
    padding: 1.5em 1.2em 0.5em 1.2em; /* 内边距 */
    margin: 2em 0; /* 上下间距 */
    position: relative;
}
blockquote:before {
    content: '\201C'; /* 左双引号 */
    position: absolute;
    top: 0em;
    left: 50%;
    transform: translate(-50%, -50%); /* 居中 */
    background: #fff; /* 白色背景覆盖边框 */
    width: 3rem;
    height: 2rem;
    font: 6em/1.08em 'PT Sans', sans-serif; /* 大字体 */
    color: #e74c3ce0; /* 红色半透明 */
    text-align: center;
}
blockquote:after {
    content: "#blockquote" attr(cite); /* 引用来源标识 */
    display: block;
    text-align: right;
    font-size: 0.875em;
    color: #e74c3c; /* 红色 */
}
blockquote p {
    font-size: 0.8em; /* 引用文本较小 */
}
blockquote p, blockquote pre {
    margin: 0 !important; /* 清除默认间距 */
}
blockquote ul, blockquote ol {
    margin: 0 0 0 2em !important; /* 列表缩进 */
}

/* 表格样式 */
table {
    width: 100%; /* 占满容器 */
    border-collapse: collapse; /* 合并边框 */
}
table, th, td {
    border: 2px solid;
    border-color: #2f2f2f; /* 深灰色边框 */
}
th, td {
    padding: .2em .3em .1em .3em; /* 内边距 */
}

/* 主内容区样式 */
#main {
    width: 100%;
    margin: 0 auto; /* 居中 */
}

/* 页脚样式 */
#footer {
    text-align: center; /* 文字居中 */
    padding: 1.5em; /* 内边距 */
    background-color: transparent; /* 透明背景 */
}

/* Logo样式 */
.logo {
    margin: 2em 0 2em 2em; /* 外边距 */
}
.header-logo {
    font-weight: 300; /* 轻量字体 */
}
.header-logo span {
    display: block;
    float: left;
    width: 28px;
    height: 26px;
    line-height: 30px; /* 垂直居中 */
    vertical-align: middle;
    text-align: center;
    transition: all .24s; /* 过渡动画 */
}
.header-logo span.b { /* 深色块 */
    background: #414141;
    color: #fff;
}
.header-logo span.b:hover {
    background: #555; /* 悬停加深 */
}
.header-logo span.bf { /* 隐藏的深色块 */
    display: none;
    background: #414141;
    color: #fff;
}
.header-logo span.bf:hover {
    background: #555;
}
.header-logo span.w { /* 浅色块 */
    background: #fff;
    color: #414141;
}
.header-logo span.w:hover {
    background: #414141; /* 悬停反转颜色 */
    color: #fff;
}

/* 文章列表样式：网格布局 */
.post-list {
    position: relative;
    list-style: none; /* 清除列表样式 */
    margin: 0 auto;
    width: 1280px; /* 默认宽度 */
}
.post-list h1, .post-list h2, .post-list h3, .post-list h4, .post-list h5, .post-list h6 {
    margin: 0.5em 0 0.3em 0; /* 紧凑间距 */
}
.post-list a {
    transition: all .24s ease; /* 过渡动画 */
}
.post-list a:hover {
    background-color: transparent; /* 悬停无背景 */
}
/* 文章卡片 */
.post-list>li {
    position: relative;
    float: left; /* 横向排列 */
    width: 300px;
    height: 300px;
    margin: 0 10px 20px 10px; /* 间距 */
}
.post-list>li .post-link {
    position: relative;
    display: block;
    word-break: break-word; /* 自动换行 */
    overflow: hidden; /* 隐藏溢出 */
    width: 100%;
    height: 100%;
    border: 4px solid #414141; /* 边框 */
    padding: 20px; /* 内边距 */
}
.post-list>li .post-link:hover {
    border-color: #ff5252cc; /* 悬停边框变红 */
}
/* 文章标题 */
.post-list>li .post-title {
    position: absolute;
    bottom: 15px;
    right: 20px;
    padding-left: 50px;
    text-align: right;
    font-size: 20px;
    font-weight: 500;
    transition: all .24s;
}
.post-list>li .post-link:hover .post-title {
    color: #ff5252cc; /* 悬停标题变红 */
}
/* 文章元数据（分类等） */
.post-list>li .post-meta {
    position: absolute;
    top: 0;
    left: 0;
    background: #414141; /* 深色背景 */
    padding: 2px 14px 2px 10px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff; /* 白色文字 */
    transition: all .24s;
}
.post-list>li .post-link:hover .post-meta {
    background: #ff5252cc; /* 悬停背景变红 */
}
/* 文章封面图 */
.post-list>li .cover {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    /* 60%灰度 */
    -webkit-filter: grayscale(60%);
    -moz-filter: grayscale(60%);
    -ms-filter: grayscale(60%);
    -o-filter: grayscale(60%);
    filter: grayscale(60%);
    filter: gray;
    opacity: 1;
}

/* 文章详情页样式 */
.posti {
    position: relative;
    width: 100%;
    max-width: 728px; /* 最大宽度限制 */
    margin: 0 auto; /* 居中 */
    margin-bottom: 20px;
}
.posti .post-title {
    margin: 0; /* 清除默认间距 */
}
.posti .post-meta p {
    color: #55555587 !important; /* 浅灰色元数据 */
    margin-top: 1em;
    margin-bottom: 2em;
}
/* 三级标题前缀 */
.posti h3:before {
    position: absolute;
    left: -20px;
    content: "#"; /* 井号标识 */
    color: #4caf50; /* 绿色 */
    font-weight: 400;
}
.posti h4 {
    color: #546e7a; /* 深蓝色 */
}
/* 四级标题前缀 */
.posti h4:before {
    position: absolute;
    margin-top: 1px;
    left: -15px;
    content: "&"; /* &符号标识 */
    color: #546e7a;
    font-weight: 400;
}
.posti p, .posti ul, .posti ol {
    word-spacing: .05rem; /* 字间距 */
}
.posti ul p, .posti ol p {
    margin: 0; /* 列表内段落无间距 */
}
.posti ul ul, .posti ol ol {
    padding-left: 1.3em; /* 嵌套列表缩进 */
}
.posti ul, .posti ol {
    padding-left: 2em; /* 列表缩进 */
}
.posti ul li {
    list-style: square; /* 方块列表符号 */
}
.posti .a_tag {
    display: flow-root; /* 流式布局 */
}
.posti .a_tag li {
    width: 50%; /* 两列布局 */
    float: left;
}
.posti img {
    max-width: 90%; /* 图片占90%宽度 */
    height: auto;
    margin: 0 5%; /* 居中 */
}
.posti pre {
    margin: 2em 0; /* 代码块间距 */
}
.posti pre code {
    padding: 0; /* 清除代码块内边距 */
}

/* 分页导航样式 */
.nav-page {
    margin: 3em auto 2em auto; /* 上下间距 */
}
.nav-page a {
    float: left;
    background-color: transparent;
    width: 25px;
    height: 30px;
    color: #414141;
    margin: 0 2px; /* 间距 */
}
.nav-page a:hover {
    color: #414141;
    background-color: #f5f5f5; /* 悬停浅灰背景 */
}
.nav-page ol {
    list-style: none; /* 清除列表样式 */
}
.nav-page ol li {
    text-align: center;
    float: left; /* 横向排列 */
}
.nav-page ol .current a {
    border-bottom: 1px solid #414141; /* 当前页下划线 */
}

/* 首页时间样式 */
.index-time {
    font-size: 0.8em; /* 小字体 */
}

/* 文章操作区（评论、返回等） */
#postFun {
    margin: 2em 0; /* 上下间距 */
}

/* 评论表单样式 */
#comment-form {
    display: block;
    margin: 2em 0; /* 上下间距 */
    background: #fff;
    border-radius: 4px; /* 圆角 */
    overflow: hidden;
    border: 1px solid #E1E1E1; /* 边框 */
}
#comment-form .comment-inputs {
    height: 50px;
    border-bottom: 1px solid #E1E1E1; /* 底部边框 */
    display: -webkit-box; /* 弹性布局 */
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    transition: all .3s ease; /* 过渡动画 */
    overflow: hidden;
}
#comment-form .comment-inputs input:not(:last-child) {
    border-right: 1px solid #E1E1E1; /* 输入框间分隔线 */
}
#comment-form .comment-inputs input {
    outline: none; /* 无焦点轮廓 */
    height: 50px;
    background: transparent;
    flex: 1 !important; /* 平均分配宽度 */
    border: 0;
    padding: 0 15px; /* 内边距 */
    border-radius: 0;
    line-height: normal;
}
#comment-form .comment-editor {
    min-height: 120px; /* 最小高度 */
    position: relative;
}
#comment-form textarea {
    outline: none;
    border: 0;
    border-radius: 0;
    width: 100%;
    padding: 15px 20px; /* 内边距 */
    min-height: 120px;
    line-height: 1.825; /* 行高 */
    display: block;
    background: #ecf0f1; /* 浅灰背景 */
    overflow: auto;
}
#comment-form .comment-buttons {
    height: 50px;
    padding: 8px 16px;
    display: -webkit-box; /* 弹性布局 */
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
}
#comment-form .comment-buttons #submitComment {
    border: 0;
    background: #e74c3c; /* 红色背景 */
    padding: 0 16px;
    border-radius: 4px;
    color: #fff; /* 白色文字 */
    transition: all .3s ease;
}
#comment-form .comment-buttons #submitComment:hover {
    background: #BF360C; /* 悬停加深 */
}
#comment-form .comment-buttons button {
    cursor: pointer; /* 手型光标 */
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    background: transparent;
    border: 0;
}
#comment-form .comment-buttons .left, #comment-form .comment-buttons .right {
    flex: 1; /* 各占一半 */
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
}
#comment-form .comment-buttons span {
    font-size: 1em;
    margin-top: 4px;
}
#comment-form .comment-buttons .right {
    justify-content: flex-end; /* 右对齐 */
}

/* 评论区默认隐藏 */
#comments {
    display: none;
}
#comments ol {
    list-style: none; /* 清除列表样式 */
    margin: 0;
}
#comments p {
    margin: 0;
}

/* 通用生成内容样式 */
.gen {
    margin: 1rem 0 0 0; /* 上间距 */
}
.hide {
    display: none; /* 隐藏元素 */
}
.gen .page-navigator {
    margin: 3.75rem 0 3rem 0; /* 分页间距 */
}
.response {
    margin: 2rem 0; /* 响应区间距 */
    padding-top: 1em;
}
.hinfo {
    display: none; /* 隐藏信息 */
}
.gen h2 {
    margin-bottom: 0.8em; /* 标题下间距 */
}
.gen a {
    color: #aaa; /* 浅灰链接 */
}

/* 评论列表样式 */
.comment-list {
    padding-left: 0 !important; /* 无左内边距 */
    list-style-type: none;
    margin: 0;
}
.avatar {
    display: block;
    float: left; /* 左浮动 */
    width: 40px;
    height: 40px;
    margin: 1.4rem 1rem 0 0 !important; /* 右间距 */
    border-radius: 50%; /* 圆形头像 */
}
.comment_main {
    overflow: hidden; /* 清除浮动 */
    padding: 1rem 0; /* 上下内边距 */
    border-bottom: 1px dotted #e0e0e0; /* 底部虚线 */
}
.comment_main p {
    margin: 0;
    font-size: 13px; /* 小字体 */
}
.comment_reply, .comment_meta {
    font-size: .766rem; /* 小字体 */
    color: #aaa; /* 浅灰色 */
}
.comment_reply {
    float: right; /* 右浮动 */
    display: none; /* 默认隐藏回复按钮 */
}
.comment_main:hover .comment_reply {
    display: block /* 悬停显示回复按钮 */
}
.comment_author {
    padding: .1rem .25rem;
    border-radius: .25rem; /* 圆角 */
    background: #eee; /* 浅灰背景 */
    font-size: 10px; /* 极小字体 */
}
.ccomment_reply {
    text-align: right; /* 回复区右对齐 */
}
.comment_reply a:before, .comment_time:before {
    margin: 0 .5rem /* 前后间距 */
}
.comment-parent .comment-children {
    margin-left: 1.2em; /* 子评论左缩进 */
}
.comment-child .comment-children {
    margin-left: 1.2em; /* 嵌套评论进一步缩进 */
}
.cancel-comment-reply {
    text-align: right; /* 取消回复右对齐 */
}

/* 文本框样式 */
.tbox {
    padding: 0 0 15px 0px; /* 下内边距 */
}

/* 归档页标题样式 */
.archive-header {
    margin: 0 auto 2em auto; /* 下间距 */
}
.archive-header span {
    font-size: 1.2em; /* 稍大字体 */
}

/* 菜单页面样式 */
#menu-page {
    display: none; /* 默认隐藏 */
    position: absolute; /* 绝对定位 */
    z-index: 100; /* 高层级 */
    margin: 26px 0 0 168px; /* 定位偏移 */
}
#menu-page li {
    transition: all .24s;
    list-style: none;
    color: #fff; /* 白色文字 */
    background-color: #414141; /* 深色背景 */
    width: 84px;
    height: 36px;
    line-height: 40px; /* 垂直居中 */
    padding: 0 12px;
    overflow: hidden;
}
#menu-page li:hover {
    background-color: #555; /* 悬停加深 */
}

/* 搜索框样式 */
#search-box {
    display: none; /* 默认隐藏 */
    position: absolute; /* 绝对定位 */
    margin-left: 252px; /* 定位偏移 */
    overflow: hidden;
}
#search-box input {
    float: left;
    outline: none;
    height: 26px;
    width: 140px;
    border: 0;
    background-color: #414141; /* 深色背景 */
    padding-left: 5px;
    color: #fff; /* 白色文字 */
}

/* 文章导航树样式 */
#postTorTree {
    position: relative;
    z-index: 0;
    width: 100%;
    margin-right: auto!important;
    margin-left: auto!important;
    text-align: right; /* 右对齐 */
}
#torTree {
    line-height: 1.5em;
    margin-left: 6px;
    border-left: 1px solid rgba(221, 221, 221, 0.32); /* 左边界线 */
    font-size: 12px; /* 小字体 */
    position: fixed; /* 固定定位 */
    z-index: 0;
    top: 100px; /* 顶部偏移 */
    display: inline-block;
    text-align: left;
}
.torArcT {
    width: 160px;
    float: left;
    position: relative;
    min-height: 1px;
}
.torArcTile {
    overflow: hidden;
    white-space: nowrap; /* 不换行 */
    text-overflow: ellipsis; /* 溢出省略 */
    position: relative;
    padding: 6px;
}
#torTree .on {
    color: #dc3545; /* 当前项红色 */
}
#torTree a {
    color: #333; /* 深灰色链接 */
}
#torTree a:hover {
    color: #555;
    background-color: #fff0; /* 透明背景 */
}
#torTree .tori {
    font-weight: 600; /* 三级标题加粗 */
}
#torTree .tori:before {
    content: '# '; /* 前缀 */
    color: #4caf50; /* 绿色 */
}
#torTree .torii {
    margin-left: 0.5em; /* 四级标题缩进 */
}
#torTree .torii:before {
    content: '& '; /* 前缀 */
    color: #546e7a; /* 深蓝色 */
}

/* 首页二级导航样式 */
#indexIITor {
    line-height: 1.5em;
    max-width: 200px;
    font-size: 16px;
    position: fixed;
    z-index: 0;
    top: 100px;
    display: inline-block;
    text-align: left;
    word-break: break-word;
}
#indexIITor a {
    color: #6c757d; /* 灰蓝色 */
}
#indexIITor a::before {
    content: "#";
    color: #ff5252cc; /* 浅红色 */
}
#indexIIList h4::before {
    content: none; /* 清除前缀 */
}
#indexIIList a {
    color: #484848; /* 深灰色 */
    font-weight: 400;
    font-size: 18px;
}
#indexIIList li {
    list-style: none;
    font-size: 16px;
    line-height: 1.5em;
    margin: 1.5em 0; /* 上下间距 */
}
#indexIIList span {
    display: block;
    font-size: 14px;
    color: #ced4da; /* 浅灰 */
}
#indexIIList span a {
    font-size: 14px;
    color: #6c757d; /* 灰蓝色 */
}

/* 播放器图片样式 */
.cPlayer img {
    max-width: 100%;
}

/* 固定底部样式 */
.fixed-bottom {
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* 响应式适配：小屏设备（≤767px） */
@media only screen and (max-width: 767px) {
    .comment-parent .comment-children {
        margin-left: 0.6em; /* 减小子评论缩进 */
        padding-left: 0;
    }
}

/* 响应式适配：中大屏（≤1300px） */
@media (max-width: 1300px) {
    .post-list {
        width: 960px; /* 缩小列表宽度 */
    }
}

/* 响应式适配：平板横屏（≤1024px） */
@media (max-width: 1024px) {
    #postTorTree {
        display: none; /* 隐藏导航树 */
        z-index: -999;
    }
}

/* 响应式适配：中屏（≤970px） */
@media (max-width: 970px) {
    .post-list {
        width: 640px; /* 进一步缩小列表宽度 */
    }
}

/* 响应式适配：平板竖屏（≤780px） */
@media (max-width: 780px) {
    .posti h3:before, .posti h4:before {
        position: inherit; /* 标题前缀不绝对定位 */
        margin-right: 5px; /* 右侧间距 */
    }
    .comment_reply {
        display: block; /* 始终显示回复按钮 */
    }
}

/* 响应式适配：小屏（≤700px） */
@media (max-width: 700px) {
    .logo {
        margin: 2em 0 2em 1em; /* 减小左 margin */
    }
}

/* 响应式适配：手机横屏（≤650px） */
@media (max-width: 650px) {
    .post-list {
        width: 100%; /* 占满宽度 */
    }
    .post-list>li {
        width: 100%; /* 文章卡片占满宽度 */
        margin: 0 0 20px 0;
        padding: 0 20px; /* 左右内边距 */
    }
    #indexIIList ul {
        padding-left: .5em; /* 减小列表缩进 */
    }
}

/* 响应式适配：手机竖屏（≤570px） */
@media (max-width: 570px) {
    #comment-form .comment-inputs input:not(:last-child) {
        border-right: none; /* 移除输入框分隔线 */
    }
    #comment-form .comment-inputs {
        height: auto; /* 自适应高度 */
        display: block; /* 块级布局 */
    }
    #comment-form .comment-inputs input {
        width: 100%; /* 输入框占满宽度 */
    }
}

/* 响应式适配：超小屏（≤460px） */
@media (max-width: 460px) {
    #search-box {
        margin-left: 0 !important; /* 搜索框左对齐 */
        margin-top: 22px; /* 上偏移 */
    }
}











