/*
Theme Name: X0523 Download Style
Theme URI: https://www.x0523.icu
Author: peiyou
Description: 软件下载站版式主题：缩略图列表、二级分类导航、面包屑、下载区版块。参考通用下载站信息架构的原创实现。
Version: 1.4.5
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: x0523
*/

:root {
    --main: #2f6fb3;
    --main-dark: #255a94;
    --bg: #f5f6f8;
    --card: #ffffff;
    --line: #e3e6ea;
    --txt: #333;
    --dim: #888;
    --link: #3a6ea5;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--txt);
    font: 14px/1.7 -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--main); }
img { max-width: 100%; height: auto; }

/* ---------- 顶部：logo + 导航同一行（同原站） ---------- */
.site-top { background: #00234c; position: relative; z-index: 20; }
.site-top .inner {
    max-width: 1200px; margin: 0 auto; padding: 0 16px;
    display: flex; align-items: center; height: 50px;
}
h1.site-brand, div.site-brand { margin: 0 4px 0 0; font-size: inherit; font-weight: inherit; flex: 0 0 auto; }
.site-brand a { display: flex; align-items: center; gap: 8px; }
.site-brand a, .site-brand a:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; display: block; border-radius: 7px; flex: 0 0 auto; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: 1px; color: #fff; }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.login-link { color: #e8eef5; font-size: 13.5px; white-space: nowrap; }
.login-link:hover { color: #fff; }
.search-form { display: flex; }
.search-form input[type="search"] {
    width: 170px; height: 32px; border: 0; border-radius: 5px 0 0 5px; padding: 0 10px;
    outline: none; font-size: 12.5px; background: #fff; color: #333;
}
.search-form input[type="search"]:focus { box-shadow: 0 0 0 2px rgba(87,169,242,.35); }
.search-form button {
    height: 32px; border: 0; border-radius: 0 5px 5px 0; padding: 0 12px;
    background: #1f5a99; color: #fff; cursor: pointer; font-size: 12.5px;
    display: inline-flex; align-items: center; gap: 4px;
}
.search-form button svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.search-form button:hover { background: #2a6cb5; color: #fff; }

/* ---------- 导航（与 logo 同行，深蓝底白字，纯文字无色块） ---------- */
.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; }
.main-nav li { position: relative; flex: 0 0 auto; }
.main-nav li a {
    display: block; padding: 0 16px; line-height: 50px; color: #e8eef5; font-size: 15px; font-weight: 500;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a { color: #fff; background: none; }
.main-nav .sub-menu {
    display: none; position: absolute; top: 50px; left: 0; min-width: 150px;
    background: #00234c; border: 1px solid #0a3a6e; border-radius: 0 0 4px 4px;
    box-shadow: 0 6px 16px rgba(0,0,0,.25); flex-direction: column; padding: 4px 0;
}
.main-nav li:hover > .sub-menu { display: flex; }
.main-nav .sub-menu li a { line-height: 38px; font-size: 14px; padding: 0 16px; color: #e8eef5; font-weight: 400; }
.main-nav .sub-menu li a:hover { background: rgba(255,255,255,.12); color: #fff; }
.main-nav .sub-menu .sub-menu { top: -5px; left: 100%; border-radius: 0 4px 4px 4px; }

/* ---------- 主体 ---------- */
.wrap { max-width: 1200px; margin: 16px auto 40px; padding: 0 16px; display: flex; gap: 16px; align-items: flex-start; }
.content { flex: 1; min-width: 0; }
.sidebar { width: 260px; flex: 0 0 260px; }

.page-title {
    background: var(--card); border: 1px solid var(--line); border-radius: 6px;
    padding: 10px 16px; margin: 0 0 12px; font-size: 16px;
}
.breadcrumb { color: var(--dim); font-size: 13px; padding: 4px 2px 10px; }
.breadcrumb a { color: var(--dim); }
.breadcrumb a:hover { color: var(--main); }

/* ---------- 列表 ---------- */
.excerpt-list { background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 4px rgba(20,40,70,.05); }
.excerpt-item {
    display: flex; gap: 14px; padding: 14px 16px;
    border-bottom: 1px dashed var(--line);
    transition: background .15s ease;
}
.excerpt-item:hover { background: #fafcfe; }
.excerpt-item:last-child { border-bottom: 0; }
.excerpt-thumb { flex: 0 0 160px; overflow: hidden; border-radius: 6px; }
.excerpt-thumb img { width: 160px; height: 112px; object-fit: cover; border-radius: 6px; background: #eef0f2; display: block; transition: transform .25s ease; }
.excerpt-item:hover .excerpt-thumb img { transform: scale(1.04); }
.excerpt-body { flex: 1; min-width: 0; }
.excerpt-title { margin: 0 0 4px; font-size: 16px; line-height: 1.4; font-weight: 600; }
.excerpt-title a { color: var(--txt); }
.excerpt-title a:hover { color: var(--main); }
.excerpt-meta { color: var(--dim); font-size: 12px; margin-bottom: 6px; }
.excerpt-meta .cat a { margin-right: 8px; }
.excerpt-note {
    color: #666; font-size: 13px; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 分页 ---------- */
.pagination { margin: 14px 0; text-align: center; }
.pagination .nav-links a, .pagination .nav-links span {
    display: inline-block; padding: 6px 12px; margin: 0 3px; background: var(--card);
    border: 1px solid var(--line); border-radius: 3px; color: #555; font-size: 13px;
}
.pagination .nav-links .current { background: var(--main); border-color: var(--main); color: #fff; }
.pagination .nav-links .prev { display: none; }
.pagination .nav-links .t-m { display: none; }

/* ---------- 侧栏 ---------- */
.widget {
    background: var(--card); border: 1px solid var(--line); border-radius: 6px;
    padding: 12px 14px; margin-bottom: 14px; font-size: 13px;
    box-shadow: 0 1px 4px rgba(20,40,70,.05);
}
.widget .widget-title { margin: 0 0 8px; font-size: 14px; border-left: 3px solid var(--main); padding-left: 8px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 4px 0; border-bottom: 1px dashed #f0f1f3; display: flex; justify-content: space-between; }
.widget li:last-child { border-bottom: 0; }
.widget li .count { color: var(--dim); font-size: 12px; }

/* ---------- 文章页 ---------- */
.single-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 20px 24px; box-shadow: 0 1px 4px rgba(20,40,70,.05); }
.single-title { margin: 6px 0 8px; font-size: 22px; line-height: 1.4; }
.single-meta { color: var(--dim); font-size: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.single-meta .sep-dot { color: #d3d8de; }

/* ---------- 上一篇 / 下一篇 ---------- */
.post-nav { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.post-nav .pn { min-width: 0; }
.post-nav .pn a {
    display: block; background: var(--card); border: 1px solid var(--line); border-radius: 6px;
    padding: 10px 14px; font-size: 13.5px; color: #444;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.post-nav .pn a em { display: block; font-style: normal; font-size: 12px; color: var(--dim); margin-bottom: 3px; white-space: normal; }
.post-nav .pn a:hover { border-color: #cfe0f2; color: var(--main); }
.post-nav .next { text-align: right; }
/* ---------- 正文排版（仅样式，不改动内容） ---------- */
.entry-content {
    font-size: 15.5px; line-height: 1.95; color: #333; word-wrap: break-word;
    letter-spacing: .2px;
}
.entry-content p { margin: 1.15em 0; }

/* 小节标题：粗体 + 底部细线，替代原左边框 */
.entry-content h2,
.entry-content h3 {
    font-size: 18px; font-weight: 700; color: #1f2d3d;
    margin: 2.1em 0 .9em; padding-bottom: 9px;
    border-bottom: 1px solid #e8ecf1; line-height: 1.4;
}
.entry-content h4 { font-size: 16px; font-weight: 700; color: #1f2d3d; margin: 1.7em 0 .7em; }
.entry-content h2:first-child,
.entry-content h3:first-child { margin-top: .3em; }

.entry-content strong { color: #16181d; font-weight: 700; }

.entry-content a {
    color: #2f6fb3; text-decoration: none;
    border-bottom: 1px solid rgba(47,111,179,.28);
    transition: border-color .15s ease;
}
.entry-content a:hover { color: #245a96; border-bottom-color: #245a96; }

.entry-content ul, .entry-content ol { margin: 1em 0; padding-left: 26px; }
.entry-content li { margin: 8px 0; }
.entry-content li::marker { color: #2f6fb3; }
.entry-content ul ul, .entry-content ol ol, .entry-content ul ol, .entry-content ol ul { margin: 6px 0; }

.entry-content img {
    max-width: 100%; height: auto; border-radius: 6px;
    display: block; margin: 1.3em auto;
    box-shadow: 0 2px 12px rgba(20,40,70,.08);
}

.entry-content blockquote {
    margin: 1.2em 0; padding: 10px 16px; background: #f7f9fb;
    border-left: 3px solid #b9c8d8; color: #5a6572; border-radius: 0 4px 4px 0;
}
.entry-content blockquote p { margin: .4em 0; }

.entry-content code {
    background: #f1f4f8; border: 1px solid #e3e8ee; border-radius: 3px;
    padding: 1px 6px; font-size: 13.5px; color: #c0392b;
    font-family: Consolas, "Courier New", monospace;
}
.entry-content pre {
    background: #282c34; color: #d8dee9; border-radius: 6px;
    padding: 14px 16px; overflow-x: auto; margin: 1.2em 0; line-height: 1.6;
}
.entry-content pre code { background: none; border: 0; color: inherit; padding: 0; }

.entry-content table {
    width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px;
}
.entry-content th, .entry-content td { border: 1px solid #e3e8ee; padding: 8px 12px; text-align: left; }
.entry-content th { background: #f4f7fa; font-weight: 700; color: #1f2d3d; }
.entry-content tr:nth-child(even) td { background: #fafbfd; }

.entry-content hr { border: 0; border-top: 1px solid #e8ecf1; margin: 2em 0; }
.entry-tags { margin-top: 18px; font-size: 13px; color: var(--dim); }
.entry-tags a { background: #f1f5f9; border-radius: 3px; padding: 2px 8px; margin-right: 6px; }

.dl-box { border: 1px solid #d8e4f0; background: #f4f9ff; border-radius: 6px; padding: 14px 16px; margin: 18px 0; }
.dl-box h3 { margin: 0 0 8px; font-size: 15px; color: var(--main); }

/* ---------- 页脚 ---------- */
.site-footer {
    background: #10243d; color: #8fa5bd; font-size: 13px; margin-top: 34px;
}
.site-footer .inner { max-width: 1200px; margin: 0 auto; padding: 26px 16px 0; }
.f-cols { display: flex; gap: 40px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.f-col h4 { color: #cfe0f2; font-size: 14px; margin: 0 0 10px; font-weight: 600; }
.f-about { flex: 1.4; min-width: 240px; }
.f-brand { display: inline-flex; align-items: center; gap: 8px; }
.f-brand .brand-mark { width: 30px; height: 30px; border-radius: 7px; }
.f-brand .brand-name { font-size: 18px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.f-brand:hover .brand-name { color: #fff; }
.f-desc { margin: 10px 0 0; font-size: 12.5px; line-height: 1.8; color: #7d94ad; }
.f-nav, .f-cats { flex: 1; min-width: 150px; }
.f-nav ul, .f-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.f-nav a, .f-cats a { color: #8fa5bd; font-size: 12.5px; }
.f-nav a:hover, .f-cats a:hover { color: #fff; }
.f-bottom { text-align: center; padding: 14px 0 18px; font-size: 12px; }
.f-bottom p { margin: 0; }
.f-bottom .sep { margin: 0 6px; color: #40587a; }

/* ---------- 404 ---------- */
.notfound {
    background: var(--card); border: 1px solid var(--line); border-radius: 6px;
    padding: 50px 30px; text-align: center; box-shadow: 0 1px 4px rgba(20,40,70,.05);
}
.nf-code { font-size: 64px; font-weight: 800; color: #dfe8f2; line-height: 1; letter-spacing: 4px; }
.nf-title { font-size: 20px; margin: 14px 0 6px; color: #1f2d3d; }
.nf-desc { color: var(--dim); margin: 0 0 20px; }
.nf-search { display: flex; justify-content: center; margin-bottom: 16px; }
.nf-search input {
    width: 260px; height: 36px; border: 1px solid var(--line); border-right: 0;
    border-radius: 6px 0 0 6px; padding: 0 12px; outline: none; font-size: 13px;
}
.nf-search input:focus { border-color: var(--main); }
.nf-search button {
    height: 36px; border: 0; border-radius: 0 6px 6px 0; padding: 0 18px;
    background: var(--main); color: #fff; cursor: pointer; font-size: 13px;
}
.nf-search button:hover { background: var(--main-dark); }
.nf-actions .btn {
    display: inline-block; background: var(--main); color: #fff !important;
    padding: 8px 22px; border-radius: 6px; font-size: 13.5px;
}
.nf-actions .btn:hover { background: var(--main-dark); color: #fff; }
.nf-hot { margin-top: 28px; text-align: left; }
.nf-hot h2 { font-size: 14px; color: #1f2d3d; margin: 0 0 8px; }
.nf-hot ul { list-style: none; margin: 0; padding: 0; }
.nf-hot li { padding: 6px 0; border-bottom: 1px dashed #eef1f5; font-size: 13.5px; }
.nf-hot li:last-child { border-bottom: 0; }
.nf-hot li a { color: #3d4a59; }
.nf-hot li a:hover { color: var(--main); }

.empty-tip { padding: 40px 0; text-align: center; color: var(--dim); }

/* ---------- 移动端专用元素（桌面隐藏） ---------- */
.m-head, .m-nav, .m-mask, .m-search, .m-cat, .m-footer,
.excerpt-meta .time-full, .single-meta .d-full { display: none; }

/* 下载区按钮 */
.dl-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dl-box h3 { flex: 0 0 100%; }
.dl-btn { display: inline-block; padding: 8px 18px; background: var(--main); color: #fff !important;
    border-radius: 3px; font-size: 14px; text-decoration: none; }
.dl-btn:hover { background: var(--main-dark); color: #fff; }
.dl-btn.alt { background: #3a9d5d; }
.dl-btn.alt:hover { background: #2f854c; }

/* ---------- 归档页：子分类导航条 ---------- */
.subcat-nav {
    background: var(--card); border: 1px solid var(--line); border-radius: 6px;
    padding: 10px 14px; margin: 14px 0 16px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 4px;
}
.subcat-nav .sc-label { color: var(--dim); margin-right: 4px; }
.subcat-nav a { color: #4a5768; padding: 3px 10px; border-radius: 3px; }
.subcat-nav a:hover { background: #eef4fb; color: var(--main); }

.page-title { font-size: 19px; margin: 0 0 14px; color: #1f2d3d; }

/* ---------- 相关推荐 ---------- */
.related-posts { margin-top: 26px; }
.related-posts .rp-title {
    font-size: 16px; font-weight: 700; color: #1f2d3d; margin: 0 0 12px;
    padding-bottom: 8px; border-bottom: 1px solid #e8ecf1;
}
.rp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rp-list li { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.rp-list img { border-radius: 3px; flex: 0 0 auto; }
.rp-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.rp-t { font-size: 13.5px; color: #333; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-t:hover { color: var(--main); }
.rp-d { font-size: 12px; color: var(--dim); margin-top: 6px; }

/* ---------- 评论占位 ---------- */
.comment-notice {
    margin-top: 22px; background: #f7f9fb; border: 1px dashed #ccd6e0;
    border-radius: 6px; padding: 14px 16px; color: #5a6572; font-size: 13.5px; text-align: center;
}

/* ---------- 侧栏补充 ---------- */
.hotcats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hotcats a {
    display: block; font-size: 13px; color: #4a5768; background: #f2f5f8;
    padding: 4px 10px; border-radius: 3px;
}
.hotcats a:hover { background: #e3eefa; color: var(--main); }
.recent-list, .hotsoft-list { list-style: none; margin: 0; padding: 0; }
.recent-list li, .hotsoft-list li {
    padding: 7px 0; border-bottom: 1px dashed #edf0f3; font-size: 13.5px;
}
.recent-list li:last-child, .hotsoft-list li:last-child { border-bottom: 0; }
.recent-list a, .hotsoft-list a { color: #3d4a59; }
.recent-list a:hover, .hotsoft-list a:hover { color: var(--main); }

.footer-copy .sep { margin: 0 8px; color: #d3d8de; }

/* ---------- 相关文章（完整缩略图 + 蓝色多行标题） ---------- */
.post-related { margin-top: 26px; }
.post-related h3 {
    font-size: 16px; font-weight: 700; color: #1f2d3d; margin: 0 0 14px;
    padding-bottom: 8px; border-bottom: 1px solid #e8ecf1;
}
.post-related ul {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px 12px;
}
.post-related li { margin: 0; }
.post-related li a { display: block; text-decoration: none; }
.post-related img.rel-thumb {
    display: block; width: 100%; height: 98px; object-fit: contain;   /* 不裁图，整张完整显示 */
    background: #f6f8fa; border: 1px solid #ebedf0; border-radius: 3px;
    padding: 2px; box-sizing: border-box;
    transition: opacity .18s ease;
}
.post-related li a:hover img.rel-thumb { opacity: .85; border-color: #d5e3f2; }
.post-related .rel-tit {
    display: block; margin-top: 7px; font-size: 13px; line-height: 1.5;
    color: #3371b5; max-height: 39px; overflow: hidden;
}
.post-related li a:hover .rel-tit { color: var(--main); text-decoration: underline; }

/* 置顶标记（与原站一致：深蓝底白字小标签） */
.sticky-flag {
    display: inline-block; padding: 0 8px; margin-right: 8px;
    font-size: 13px; line-height: 23px; font-weight: 400; color: #fff;
    background: #00234C; border-radius: 3px; vertical-align: middle;
}

/* ---------- 侧栏：热门文章（原站风格） ---------- */
.widget-hotposts .hotpost-list { list-style: none; margin: 0; padding: 0; }
.widget-hotposts li { display: block; padding: 8px 0; border-bottom: 1px dashed #edf0f3; }
.widget-hotposts li:first-child { padding-top: 0; }
.widget-hotposts h2 {
    font-size: 14px; font-weight: 400; line-height: 1.5; margin: 0 0 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.widget-hotposts h2 a { color: #2b3a4a; }
.widget-hotposts h2 a:hover { color: var(--main); }
.widget-hotposts .info { font-size: 12.5px; color: var(--dim); }
.widget-hotposts .info a { color: #8b96a2; }
.widget-hotposts .info a:hover { color: var(--main); }

/* ---------- 侧栏：最新评论（原站风格：作者行在上，黄色内容块在下） ---------- */
.myrecentcomments { list-style: none; margin: 0; padding: 0; }
.myrecentcomments li.comment {
    display: block; padding: 4px 0 8px; margin: 4px 0 10px;
    background: none; border: 0; border-bottom: 1px dashed #edf0f3;
}
.myrecentcomments li.comment:last-child { border-bottom: 0; margin-bottom: 0; }
.myrecentcomments .comment-author { margin: 0; font-size: 12.5px; line-height: 1.7; }
.myrecentcomments .comment-author strong { font-weight: 700; color: #2f6fb3; }
.myrecentcomments .comment-author .cdate { color: #888; margin-left: 6px; font-weight: 400; }
.myrecentcomments .comment-author .says { color: #666; margin-left: 2px; font-weight: 400; }
.myrecentcomments .comment-author .says a { color: var(--main); }
.myrecentcomments .comment-content {
    overflow: hidden; background: #FFFFEE; margin-top: 5px; padding: 7px 9px;
    font-size: 12.5px; color: #444; line-height: 1.7;
}
.myrecentcomments .comment-content p { margin: 0; }
.widget-recent-comments .no-comment { font-size: 13px; color: var(--dim); margin: 0; }

/* 评论提示（与原站一致的浅灰提示框） */
.comment-notice-wrapper {
    padding: 25px; margin: 20px 0; background: #f8f9fa; border-radius: 6px;
    text-align: center; font-size: 14px; line-height: 1.8; color: #333;
}
.comment-notice-wrapper h4 { margin: 0 0 10px 0; color: #d32f2f; font-size: 16px; }
.comment-notice-wrapper p { margin: 0; }
.comment-notice-wrapper small { display: block; margin-top: 10px; color: #666; }


/* ---------- 移动端（1:1 对齐原站移动主题：深蓝头部/汉堡菜单/缩略图列表/下一页按钮） ----------
   断点 768px：只对真正的手机/窄屏生效，桌面浏览器（含 125%/150% 系统缩放的笔记本）保持桌面版 */
@media (max-width: 768px) {
    body { background: #fff; }
    .sidebar { display: none; }
    .wrap { display: block; max-width: 640px; margin: 0 auto; padding: 0; }

    /* 顶部切换为移动头部 */
    .site-top .inner { display: none; }
    .site-top { box-shadow: 0 1px 2px 1px rgba(0, 0, 0, .06); }
    .m-head { display: flex; align-items: center; height: 46px; padding: 0 10px; position: relative; }
    .m-logo-wrap { margin: 0; font-size: inherit; font-weight: inherit; }
    .m-logo {
        position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
        color: #fff; font-size: 21px; font-weight: 700; font-style: italic;
        letter-spacing: 1px; white-space: nowrap;
    }
    .m-logo:hover { color: #fff; }
    .m-burger { width: 30px; height: 30px; padding: 5px 4px; border: 0; background: none; cursor: pointer; }
    .m-burger span { display: block; width: 20px; height: 2px; background: #999; border-radius: 1px; }
    .m-burger span + span { margin-top: 5px; }
    .m-search-btn { margin-left: auto; width: 30px; height: 30px; border: 0; background: none; cursor: pointer; padding: 3px; }
    .m-search-btn svg { width: 20px; height: 20px; stroke: #999; fill: none; stroke-width: 2; stroke-linecap: round; }

    /* 滑出菜单（左侧，深蓝底白字） */
    .m-nav {
        display: block; position: fixed; z-index: 9999; top: 0; bottom: 0; left: 0;
        width: 80%; max-width: 320px; background: #00234C; padding: 12px 0 20px;
        transform: translateX(-105%); transition: transform .3s ease-out;
        overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    body.m-menu-open .m-nav { transform: translateX(0); }
    .m-nav ul { list-style: none; margin: 0; padding: 0; }
    .m-nav li a {
        display: block; padding: 0 20px; line-height: 42px; color: #fff; font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, .06); text-decoration: none;
    }
    .m-nav li a:active { background: #0D62B3; }
    .m-nav .sub-menu { display: block; list-style: none; margin: 0; padding: 0; background: rgba(0, 0, 0, .06); }
    .m-nav .sub-menu li a { padding: 0 20px 0 36px; line-height: 40px; font-size: 14.5px; }
    .m-mask {
        display: block; position: fixed; inset: 0; z-index: 9998; background: rgba(0, 0, 0, .45);
        opacity: 0; visibility: hidden; transition: opacity .3s ease-out;
    }
    body.m-menu-open .m-mask { opacity: 1; visibility: visible; }

    /* 全屏搜索 */
    body.m-search-open .m-search { display: block; }
    .m-search form {
        display: flex; align-items: center; position: relative;
        padding: 8px 46px 8px 40px; background: #eee; box-shadow: 0 0 1px 0 rgba(0, 0, 0, .2);
    }
    .m-search .s-ico { position: absolute; left: 14px; top: 16px; width: 16px; height: 16px; stroke: #999; fill: none; stroke-width: 2; }
    .m-search .search-input {
        flex: 1; min-width: 0; height: 32px; padding: 0 8px; font-size: 14px;
        background: #fff; border: 1px solid #ddd; border-radius: 3px; outline: 0;
        -webkit-appearance: none;
    }
    .m-search .m-close {
        position: absolute; right: 0; top: 8px; width: 46px; text-align: center;
        font-size: 12px; line-height: 32px; color: #1471CA; text-decoration: none;
    }

    /* 列表：缩略图 + 分类角标 + 蓝色标题 + 右对齐中文日期 */
    .excerpt-list { border: 0; border-radius: 0; box-shadow: none; }
    .excerpt-item { display: block; padding: 10px; border-bottom: 1px solid #EFEFEF; position: relative; overflow: hidden; }
    .excerpt-item:hover { background: none; }
    .excerpt-thumb { float: left; width: 100px; height: 68px; border-radius: 0; }
    .excerpt-thumb img { width: 100%; height: 100%; border-radius: 0; }
    .excerpt-item:hover .excerpt-thumb img { transform: none; }
    .m-cat {
        display: inline-block; position: absolute; left: 10px; top: 10px; z-index: 2;
        padding: 3px 5px; font-size: 10px; line-height: 1; color: #fff;
        background: rgba(0, 0, 0, .6); border-radius: 2px;
    }
    .excerpt-body { margin-left: 110px; }
    .excerpt-title { margin: 0 0 10px; font-weight: 500; }
    .excerpt-title a {
        font-size: 16px; line-height: 20px; color: #0E47A1;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .excerpt-title a:hover { color: #0E47A1; }
    .sticky-flag {
        padding: 0 5px; margin-right: 4px; font-size: 10px; line-height: 18px;
        background: #1471CA; border-radius: 2px; vertical-align: top;
    }
    .excerpt-meta { margin-bottom: 0; text-align: right; }
    .excerpt-meta .time, .excerpt-meta .cat { display: none; }
    .excerpt-meta .time-full { display: inline; }
    .excerpt-note { display: none; }

    /* 面包屑 / 归档标题 / 子分类条 */
    .breadcrumb { padding: 8px 10px 4px; }
    .page-title { margin: 0; padding: 8px 10px; background: none; border: 0; border-radius: 0; box-shadow: none; font-size: 16px; }
    .subcat-nav { margin: 8px 10px 10px; }

    /* 分页：上页 + 5个数字窗口 + 下页（同原站移动主题） */
    .pagination { margin: 10px 0; text-align: center; }
    .pagination .nav-links a, .pagination .nav-links span {
        display: inline-block; padding: 6px 10px; margin: 0 3px; background: none;
        border: 1px solid #eee; border-radius: 0; color: #333; font-size: 13px;
    }
    .pagination .nav-links .current { background: #000635; border-color: #000635; color: #fff; }
    .pagination .nav-links .dots, .pagination .nav-links .edge { display: none; }
    .pagination .nav-links a.prev { display: inline-block; }
    .pagination .nav-links .t-d { display: none; }
    .pagination .nav-links .t-m { display: inline; }

    /* 文章页 */
    .single-card { border: 0; border-radius: 0; box-shadow: none; padding: 12px; }
    .single-title { font-size: 20px; }
    .single-meta { color: #999; font-size: 12px; }
    .single-meta .d-short { display: none; }
    .single-meta .d-full { display: inline; }
    .single-meta .cats-label { display: none; }
    .single-meta .comm { display: none; }
    .entry-content { font-size: 15px; }

    /* 文章底部（同原站移动主题：无上下篇；相关文章改列表式；评论提示居中浅灰块） */
    .post-nav { display: none; }
    .post-related { margin-top: 14px; }
    .post-related h3 { font-size: 15px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid #e8ecf1; }
    .post-related ul { display: block; grid-template-columns: none; gap: 0; }
    .post-related li { display: block; padding: 10px; border-bottom: 1px solid #EFEFEF; background: none; border-radius: 0; }
    .post-related li a { display: block; overflow: hidden; }
    .post-related img.rel-thumb {
        float: left; width: 100px; height: 68px; object-fit: cover; margin: 0 10px 0 0;
        padding: 0; border: 0; border-radius: 0; background: #eee;
    }
    .post-related .rel-tit {
        margin: 0; font-size: 16px; line-height: 20px; color: #0E47A1; max-height: 40px;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .post-related li a:hover .rel-tit { text-decoration: none; }
    .comment-notice-wrapper { margin: 14px 0 0; padding: 18px 14px; font-size: 13px; }

    /* 页脚：单行居中（同原站移动主题）/ 上下篇 */
    .site-footer { display: none; }
    .m-footer {
        display: block; margin-top: 20px; padding: 15px 10px;
        color: #999; font-size: 12px; line-height: 1.4; text-align: center;
        background: #f5f5f5; border-top: 1px solid #eee;
    }
    .m-footer a { color: #666; }
    .m-footer a:hover { color: #666; text-decoration: underline; }
    .post-nav { grid-template-columns: 1fr; }
}
