/* ===== WordPress 适配层（菜单 / 分页 / 后台工具栏 / 辅助类） ===== */

/* 菜单：WordPress 输出的 ul.menu > li.menu-item > a 与原静态导航样式对齐 */
.site-nav ul.menu { display: flex; list-style: none; gap: 28px; margin: 0; padding: 0; }
.site-nav ul.menu li { position: relative; }
.site-nav ul.menu li a { color: #94a3b8; font-size: 14px; font-weight: 500; transition: color .2s; text-decoration: none; display: inline-block; }
.site-nav ul.menu li a:hover { color: #fff; }
.site-nav ul.menu li.current-menu-item > a,
.site-nav ul.menu li.current_page_item > a,
.site-nav ul.menu li.current-menu-ancestor > a { color: #60a5fa; border-bottom: 2px solid #60a5fa; padding-bottom: 4px; }

.mobile-panel ul.menu { list-style: none; margin: 0; padding: 0; }
.mobile-panel ul.menu li a { display: block; padding: 10px 0; color: #94a3b8; border-bottom: 1px solid #1e293b; text-decoration: none; }
.mobile-panel ul.menu li a:hover { color: #fff; }
.mobile-panel ul.menu li.current-menu-item > a { color: #fff; }

/* 页脚菜单列 */
.footer ul.menu { list-style: none; margin: 0; padding: 0; }
.footer ul.menu li { padding: 4px 0; }
.footer ul.menu li a { color: #94a3b8; font-size: 14px; text-decoration: none; }
.footer ul.menu li a:hover { color: #fff; }

/* 跳转链接（视觉隐藏，聚焦显示） */
.skip-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; left: 16px; top: 12px; width: auto; height: auto; margin: 0; padding: 10px 18px; overflow: visible; clip: auto; z-index: 1000; background: #2563eb; color: #fff; border-radius: 6px; }

/* 屏幕阅读器专用 */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; padding: 10px 18px; background: #2563eb; color: #fff; z-index: 1000; }

/* 分页（博客列表 / 分类） */
.pagination { margin: 40px 0 0; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; color: #475569; font-size: 14px; text-decoration: none; }
.pagination .page-numbers.current { background: #2563eb; border-color: #2563eb; color: #fff; }
.pagination .page-numbers:hover { border-color: #2563eb; color: #2563eb; }
.pagination .page-numbers.current:hover { color: #fff; }

/* 文章内容中的常见块级元素（导入内容可能包含） */
.article-body .content img { max-width: 100%; height: auto; border-radius: 8px; }
.article-body .content h2 { font-size: 26px; font-weight: 700; color: #0b1120; margin: 36px 0 14px; }
.article-body .content h3 { font-size: 20px; font-weight: 700; color: #0b1120; margin: 28px 0 10px; }
.article-body .content p { color: #334155; font-size: 16px; line-height: 1.9; margin-bottom: 16px; }
.article-body .content ul, .article-body .content ol { margin: 0 0 18px 24px; color: #334155; }
.article-body .content li { margin-bottom: 8px; line-height: 1.8; }
.article-body .content a { text-decoration: underline; }
.article-body .content pre { background: #0b1120; color: #e2e8f0; padding: 18px 20px; border-radius: 8px; overflow-x: auto; font-size: 14px; line-height: 1.7; }
.article-body .content code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }
.article-body .content pre code { background: transparent; padding: 0; }
.article-body .content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article-body .content th, .article-body .content td { border: 1px solid #e2e8f0; padding: 10px 12px; text-align: left; font-size: 15px; }
.article-body .content th { background: #f8fafc; font-weight: 600; }
.article-body .content blockquote { border-left: 4px solid #2563eb; background: #f1f5f9; padding: 14px 20px; margin: 20px 0; border-radius: 0 8px 8px 0; color: #334155; }
.article-body .content .table-scroll { overflow-x: auto; max-width: 100%; }

/* 后台工具栏存在时，吸附头部下移 */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* 空状态 */
.kl-empty { padding: 60px 20px; text-align: center; color: #64748b; }
.kl-empty p { font-size: 16px; margin-bottom: 18px; }
.kl-empty a { color: #2563eb; text-decoration: underline; }

/* 404 / 无结果页沿用博客页样式 */
.kl-404 { padding: 80px 0; text-align: center; }
.kl-404 h1 { font-size: 64px; font-weight: 800; color: #2563eb; line-height: 1; }
.kl-404 h2 { font-size: 24px; color: #0b1120; margin: 16px 0 8px; }
.kl-404 p { color: #64748b; margin-bottom: 24px; }
.kl-404 .btn-primary { display: inline-block; background: #2563eb; color: #fff; padding: 12px 30px; border-radius: 6px; text-decoration: none; font-weight: 600; }
