/*
Theme Name: 论文菇AI博客
Theme URI: https://chat.hanpuedu.com/blog
Author: 深圳市瀚谱科技有限公司
Description: 论文菇AI 学术写作博客主题（AI论文 / 本科论文 / 硕士论文 / 毕业论文 / 在职论文 / 职称论文）
Version: 1.0
License: Proprietary
Text Domain: lunwengu
*/
/* ============================================================
   论文菇AI 学术博客 - 全站样式
   结构：基础 -> 导航 -> 页头 -> 布局 -> 文章卡片 -> 翻页 -> 侧栏 -> 页脚 -> 响应式
   ============================================================ */

/* ---------- 基础 ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f7f8fa;
  color: #333;
  margin: 0;
}
a { text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f5f7fa; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }

/* 视觉隐藏（供屏幕阅读器与 SEO 使用，不破坏标题层级） */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

/* ---------- 顶部导航 ---------- */
.site-header {
  background: #fff; border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 40;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo {
  width: 36px; height: 36px; background: #165dff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px;
}
.brand-logo.sm { width: 28px; height: 28px; border-radius: 6px; font-size: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 22px; font-weight: 700; color: #1f2937; letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: #9ca3af; letter-spacing: 1.5px; }

/* 品牌图片 Logo（顶部导航 / 页脚 / 工具卡共用） */
.brand-logo-img {
  width: 52px; height: 52px; display: block;
  border-radius: 12px; object-fit: contain; background: #fff;
  box-shadow: 0 2px 10px rgba(22, 93, 255, 0.16);
}

.main-nav { display: none; }
@media (min-width: 768px) { .main-nav { display: flex; align-items: center; gap: 34px; font-size: 16px; color: #374151; } }
.nav-link { position: relative; color: #374151; transition: color .2s; }
.nav-link:hover { color: #165dff; }
.nav-link.active { color: #165dff; font-weight: 600; }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: #165dff; border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 12px; }

.btn-primary {
  display: none; background: #165dff; color: #fff; border: none;
  font-size: 14px; padding: 8px 16px; border-radius: 8px; transition: background .2s;
  text-decoration: none; white-space: nowrap;
}
@media (min-width: 640px) { .btn-primary { display: inline-flex; align-items: center; gap: 8px; } }
.btn-primary:hover { background: #1d4ed8; }

/* 移动端导航入口按钮：三道灰色横线，点击后变主色调 */
.mobile-menu-btn {
  width: 40px; height: 40px; border: 1px solid #e5e7eb; border-radius: 8px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  transition: all .25s ease;
}
.menu-bars { display: flex; flex-direction: column; gap: 4px; }
.menu-bars .bar {
  width: 18px; height: 2px; background: #9ca3af; border-radius: 2px; transition: all .25s ease;
}
.mobile-menu-btn:hover { border-color: #165dff; }
.mobile-menu-btn:hover .bar { background: #4b5563; }
.mobile-menu-btn.open { background: #165dff; border-color: #165dff; box-shadow: 0 4px 12px rgba(22,93,255,.35); }
.mobile-menu-btn.open .bar { background: #fff; }
.mobile-menu-btn.open .bar:nth-child(2) { width: 14px; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.mobile-nav {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .3s ease;
  border-top: 1px solid #f3f4f6;
}
.mobile-nav.open { max-height: 280px; opacity: 1; }
.mobile-nav a { display: block; padding: 12px 8px; font-size: 15px; color: #374151; border-bottom: 1px solid #f9fafb; }
.mobile-nav a.active { color: #165dff; font-weight: 600; }

/* ---------- 页头（面包屑 + H1） ---------- */
.page-head { background: #fff; border-bottom: 1px solid #f3f4f6; }
.page-head .container { padding-top: 32px; padding-bottom: 32px; }
.breadcrumb { font-size: 12px; color: #9ca3af; margin-bottom: 8px; }
.breadcrumb a { color: #9ca3af; }
.breadcrumb a:hover { color: #165dff; }
.breadcrumb .sep { margin: 0 6px; }
.page-title { font-size: 28px; font-weight: 700; color: #1f2937; margin: 0 0 8px; }
@media (min-width: 768px) { .page-title { font-size: 32px; } }
.page-desc { font-size: 14px; color: #6b7280; margin: 0; }

/* ---------- 主体布局 ---------- */
.main-layout { padding-top: 32px; padding-bottom: 32px; display: grid; gap: 24px; }
@media (min-width: 1024px) { .main-layout { grid-template-columns: 1fr 320px; } }

/* ---------- 文章分类版块 ---------- */
.category-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
}
.cat-tab {
  padding: 9px 18px; border-radius: 12px; border: 1px solid #e5e7eb;
  background: #fff; font-size: 14px; color: #4b5563;
  transition: all .25s ease; will-change: transform;
}
.cat-tab:hover {
  color: #165dff; border-color: #93c5fd; background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(22,93,255,.15);
}
.cat-tab.active {
  background: #165dff; border-color: #165dff; color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(22,93,255,.3);
}

/* ---------- 文章卡片 ---------- */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 20px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (min-width: 640px) { .article-card { padding: 24px; } }
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
  border-color: #bfdbfe;
}
.article-card h2 {
  margin: 0 0 8px; font-size: 17px; line-height: 1.5; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 640px) { .article-card h2 { font-size: 18px; } }
.article-card h2 a { color: #1f2937; transition: color .2s; }
.article-card:hover h2 a, .article-card h2 a:hover { color: #165dff; }
.article-excerpt {
  font-size: 13px; color: #6b7280; line-height: 1.7; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 640px) { .article-excerpt { font-size: 14px; } }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 16px; font-size: 12px; color: #9ca3af;
}
/* 内联 SVG 图标（替代 Font Awesome，无外部依赖，各浏览器一致显示） */
.ico {
  width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.ico-sm { width: 12px; height: 12px; }
.article-meta .ico, .side-meta .ico, .tag-list .ico { margin-right: 6px; }
.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag-pill {
  border: 1px solid #e5e7eb; border-radius: 999px; padding: 2px 10px;
  font-size: 12px; color: #6b7280; transition: all .15s;
}
/* 标签为纯文字（无链接），仅 <a> 保留悬停高亮 */
a.tag-pill { cursor: default; }
a.tag-pill:hover { background: #165dff; color: #fff; border-color: #165dff; }

/* ---------- 翻页 ---------- */
.pagination {
  margin-top: 32px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 8px;
}
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px;
  border: 1px solid #e5e7eb; background: #fff; font-size: 14px; color: #4b5563;
  transition: all .15s;
}
.page-btn:not(:disabled):not(.disabled):not(.page-ellipsis):hover { border-color: #165dff; color: #165dff; }
.page-btn.current { background: #165dff; color: #fff; border-color: #165dff; font-weight: 600; }
.page-btn:disabled, .page-btn.disabled { opacity: .45; cursor: not-allowed; }
.page-ellipsis { border: none; background: transparent; cursor: default; color: #9ca3af; }
.pagination-summary { margin: 12px 0 0; text-align: center; font-size: 12px; color: #9ca3af; }

/* 分类切换时列表的淡入动画（悬停切换的动态效果） */
.article-list.fade-in > * { animation: cardFadeUp .3s ease both; }
.article-list.fade-in > *:nth-child(2) { animation-delay: .03s; }
.article-list.fade-in > *:nth-child(3) { animation-delay: .06s; }
.article-list.fade-in > *:nth-child(4) { animation-delay: .09s; }
.article-list.fade-in > *:nth-child(5) { animation-delay: .12s; }
@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 侧栏 ---------- */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px;
}
.widget-tool { padding: 0; overflow: hidden; }
.widget-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 16px;
  padding-bottom: 12px; border-bottom: 1px solid #f3f4f6;
  font-size: 14px; font-weight: 600; color: #1f2937;
}
.icon-hot { color: #f53f3f; }
.icon-latest { color: #165dff; }

/* 工具推广卡 */
.tool-card {
  background: linear-gradient(135deg, #165dff 0%, #0c2a5e 100%);
  color: #fff; padding: 20px;
}
/* Logo 与右侧「产品名 + 小字描述」整体垂直居中对齐 */
.tool-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.tool-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: #fff; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.tool-logo-img { width: 44px; height: 44px; object-fit: contain; display: block; }
.tool-info { min-width: 0; }
.tool-name {
  margin: 0; font-size: 15px; font-weight: 600; color: #fff; line-height: 1.3;
}
.tool-sub { margin: 3px 0 0; font-size: 11px; color: rgba(255,255,255,.65); line-height: 1.3; }
.tool-desc { font-size: 12px; color: rgba(255,255,255,.78); line-height: 1.7; margin: 0 0 16px; }
.btn-white {
  width: 100%; background: #fff; color: #165dff; border: none;
  font-size: 14px; font-weight: 500; padding: 10px 0; border-radius: 8px; transition: background .2s; display: block; text-decoration: none; text-align: center;
}
.btn-white:hover { background: #eff6ff; }

/* 侧栏文章列表 */
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.side-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px; margin: 0 -4px; border-radius: 6px; transition: background .15s;
}
.side-item:hover { background: #f0f6ff; }
.side-rank { font-style: italic; font-weight: 700; font-size: 14px; width: 16px; text-align: center; flex-shrink: 0; color: #9ca3af; margin-top: 2px; }
.side-item:nth-child(1) .side-rank { color: #f53f3f; }
.side-item:nth-child(2) .side-rank { color: #ff7d00; }
.side-item:nth-child(3) .side-rank { color: #ffb400; }
.side-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; color: #1f2937; line-height: 1.55; transition: color .15s;
}
.side-item:hover .side-title { color: #165dff; }
.side-meta { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.side-meta span { margin-right: 10px; }
.side-meta span { margin-right: 8px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #111827; color: #9ca3af; margin-top: 16px; }

/* 上部：品牌+二维码 | 三个链接版块 */
.footer-top {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  padding-top: 40px; padding-bottom: 36px;
}
/* 品牌列：内容在列内居中（桌面端相当于整体右移，与右侧链接列呼应）；整体下移与右侧版块呼应 */
.footer-brand-col { display: flex; flex-direction: column; align-items: center; padding-top: 14px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
/* 页脚 Logo 放大 */
.footer-brand .footer-logo-img { width: 48px; height: 48px; border-radius: 10px; }
/* 品牌名 + 副标语：两行纵向排列，排版与顶部导航、工具卡一致 */
.footer-brand-text { display: flex; flex-direction: column; gap: 4px; }
.footer-brand-name { color: #fff; font-size: 20px; font-weight: 600; line-height: 1.2; }
.footer-slogan { font-size: 11px; color: #9ca3af; margin: 0; text-align: left; letter-spacing: 1px; }
.footer-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.qr-box {
  width: 112px; height: 112px; background: #fff; border-radius: 8px; padding: 8px;
}
.qr-box svg { display: block; width: 100%; height: 100%; }
.qr-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.qr-label { font-size: 12px; color: #9ca3af; text-align: center; }

.footer-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  /* 紧跟品牌列之后，减小中间留白；宽度适中，不至于过散 */
  max-width: 660px;
  padding-top: 32px;
}
.footer-col h3 {
  margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #fff;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 12px; color: #9ca3af; transition: color .2s; }
.footer-col a:hover { color: #fff; }

/* 最底部：版权所有 + 备案号 */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px;
  padding-top: 16px; padding-bottom: 16px; text-align: center;
  font-size: 11px; color: #6b7280;
}
.footer-beian { color: #6b7280; transition: color .2s; }
.footer-beian:hover { color: #9ca3af; }

@media (max-width: 767px) {
  /* 主导航隐藏时：品牌区（Logo/品牌名/二维码）居中显示 */
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .footer-brand-col { align-items: center; }
  /* 三个链接版块保持占满整行，与页脚两边对齐；移动端为上下堆叠，取消下移与收窄 */
  .footer-cols { gap: 16px; padding-top: 0; max-width: none; margin-left: 0; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  /* 平板下「论文工具」推广卡横跨侧栏整行，与上方列表宽度对齐 */
  .widget-tool { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .sidebar { grid-template-columns: 1fr; }
  .page-title { font-size: 24px; }
  .article-page .main-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   内页样式：常见问题 / 操作手册 / 关于我们 / 文章详情
   ============================================================ */

/* 文章页 H1 居中修饰 */
.page-title.center { text-align: center; }
/* 文章主标题：位于正文卡片顶部，宽度限于正文列 */
.post-title {
  margin: 0 0 18px; text-align: center;
  font-size: 24px; font-weight: 700; color: #111827; line-height: 1.5;
}

/* ---------- 内页通用单栏布局 ---------- */
.narrow-layout { max-width: 900px; margin: 0 auto; }
html { scroll-behavior: smooth; }

/* ---------- 常见问题页 ---------- */
.faq-main { padding: 24px 0 48px; }
.faq-group { margin-bottom: 28px; }
.faq-group-title {
  font-size: 18px; font-weight: 600; color: #1f2937; margin: 0 0 14px;
  padding-left: 12px; border-left: 3px solid #165dff; line-height: 1.4;
}
.faq-item {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  margin-bottom: 10px; overflow: hidden; transition: border-color .2s;
}
.faq-item:hover { border-color: #c7dbff; }
.faq-item[open] { border-color: #165dff; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 15px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 15px; font-weight: 600; color: #1f2937; line-height: 1.5; }
.faq-item summary:hover h3 { color: #165dff; }
.faq-arrow {
  flex-shrink: 0; width: 20px; height: 20px; position: relative; transition: transform .2s;
}
.faq-arrow::before, .faq-arrow::after {
  content: ''; position: absolute; background: #9ca3af; border-radius: 1px; transition: background .2s;
}
.faq-arrow::before { left: 3px; right: 3px; top: 9px; height: 2px; }
.faq-arrow::after { top: 3px; bottom: 3px; left: 9px; width: 2px; }
.faq-item[open] .faq-arrow { transform: rotate(90deg); }
.faq-item[open] .faq-arrow::after { background: #165dff; }
.faq-item[open] .faq-arrow::before { background: #165dff; }
.faq-a { padding: 0 18px 16px; }
.faq-a p { margin: 0; font-size: 14px; color: #4b5563; line-height: 1.85; }
.faq-cta {
  background: linear-gradient(135deg, #165dff 0%, #0c2a5e 100%);
  border-radius: 12px; padding: 32px 28px; text-align: center; color: #fff; margin-top: 8px;
}
.faq-cta h2 { margin: 0 0 8px; font-size: 18px; color: #fff; }
.faq-cta p { margin: 0 0 18px; font-size: 13px; color: rgba(255,255,255,.75); }
.faq-cta .btn-primary { background: #fff; color: #165dff; font-weight: 700; }

/* ---------- 操作手册页 ---------- */
.manual-layout {
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px;
  align-items: start; padding: 24px 0 48px;
}
.manual-toc {
  position: sticky; top: 96px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 14px;
}
.manual-toc-title {
  margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #1f2937;
  padding-left: 10px; border-left: 3px solid #165dff; line-height: 1.4;
}
.manual-toc a {
  display: block; padding: 8px 10px; font-size: 13px; color: #4b5563;
  border-radius: 8px; transition: all .15s; text-decoration: none;
}
.manual-toc a:hover { color: #165dff; background: #f0f6ff; transform: translateX(2px); }
.manual-body {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 30px 34px;
}
.manual-chapter { padding-bottom: 8px; }
.manual-chapter + .manual-chapter { margin-top: 24px; padding-top: 20px; border-top: 1px solid #f3f4f6; }
.manual-body h2 { margin: 0 0 14px; font-size: 20px; color: #1f2937; }
.manual-body h3 { margin: 18px 0 10px; font-size: 16px; color: #374151; }
.manual-body p, .manual-body li { font-size: 14px; color: #4b5563; line-height: 1.9; }
.manual-body ol, .manual-body ul { margin: 0 0 14px; padding-left: 24px; }
.manual-body li { margin-bottom: 6px; }
.manual-body a { color: #165dff; }
.manual-body .tip-box { margin-top: 16px; }

/* ---------- FAQ：每个分组内的问答卡片两栏布局 ---------- */
.container.faq-layout { max-width: 1200px; }
/* 组内问答卡片两列排布（分组本身仍依次纵向排列） */
.faq-group {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-items: start;
}
.faq-group-title { grid-column: 1 / -1; }
.faq-group .faq-item { margin-bottom: 0; }

/* ---------- 提示框（通用） ---------- */
.tip-box {
  background: #f0f6ff; border-left: 3px solid #165dff; border-radius: 0 8px 8px 0;
  padding: 10px 14px; font-size: 13px; color: #0c447c; line-height: 1.7; margin: 14px 0;
}

/* ---------- 关于我们页 ---------- */
.about-main { padding: 24px 0 48px; }
.about-block {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 28px 32px; margin-bottom: 20px;
}
.about-block h2 {
  margin: 0 0 16px; font-size: 19px; color: #1f2937;
  padding-left: 12px; border-left: 3px solid #165dff; line-height: 1.4;
}
.about-block p { margin: 0 0 12px; font-size: 14px; color: #4b5563; line-height: 1.9; }
.about-block p:last-child { margin-bottom: 0; }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 4px; }
.about-card { background: #f9fafb; border-radius: 12px; padding: 18px; transition: all .2s; }
.about-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(22,93,255,.08); }
.about-card h3 { margin: 0 0 8px; font-size: 15px; color: #1f2937; }
.about-card p { margin: 0; font-size: 13px; line-height: 1.8; color: #6b7280; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; font-size: 14px; color: #4b5563; line-height: 1.7;
}
.contact-list .dot {
  flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #165dff;
}
.about-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; }

/* ---------- 文章详情页 ---------- */
.article-main > .post-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 30px 34px;
}
.post-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px;
  font-size: 13px; color: #9ca3af; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid #f3f4f6;
}
.post-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.post-body h2 { margin: 30px 0 14px; font-size: 20px; color: #1f2937; line-height: 1.5; }
.post-body h3 { margin: 20px 0 10px; font-size: 16px; color: #374151; line-height: 1.5; }
.post-body p { margin: 0 0 14px; font-size: 15px; color: #374151; line-height: 1.9; }
.post-body ul, .post-body ol { margin: 0 0 14px; padding-left: 24px; }
.post-body li { font-size: 15px; color: #374151; line-height: 1.9; margin-bottom: 6px; }
.post-body strong { color: #1f2937; }
/* 正文图片自适应：不超容器宽、不变形，超宽自动缩放（对 MD 裸 <img> 同样生效） */
.post-body img { max-width: 100%; height: auto; display: block; margin: 16px auto; }
/* 正文表格：批量发布的裸 <table> 不带 wp-block-table 类，需主题层兜底画全边框 */
.post-body table {
  width: 100%; max-width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 14px; line-height: 1.6; color: #374151;
  background: #fff;
}
.post-body th, .post-body td {
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  text-align: left; vertical-align: top;
  word-break: break-word;
}
.post-body th {
  background: #f3f6fb; color: #1f2937;
  font-weight: 600; white-space: nowrap;
}
.post-body tr:nth-child(even) td { background: #fafbfc; }
/* 代码块兜底：批量发布的裸 <pre><code> 不带 wp-block-code 类 */
.post-body pre {
  margin: 16px 0 20px; padding: 14px 18px;
  background: #f6f8fa; border: 1px solid #e5e7eb; border-radius: 8px;
  overflow-x: auto; font-size: 13px; line-height: 1.7; color: #374151;
}
.post-body pre code {
  background: none; border: 0; padding: 0;
  font-family: Consolas, Monaco, "Courier New", monospace; white-space: pre;
}
.post-body :not(pre) > code {
  padding: 2px 6px; background: #f3f4f6; border: 1px solid #e5e7eb;
  border-radius: 4px; font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.9em; color: #c7254e;
}
.post-body blockquote {
  margin: 16px 0 20px; padding: 14px 18px;
  background: #f0f6ff; border-left: 3px solid #165dff; border-radius: 0 8px 8px 0;
  font-size: 14px; color: #0c447c; line-height: 1.8;
}
.post-notice {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 28px; padding: 13px 16px;
  background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 10px;
}
.post-notice .ico { width: 15px; height: 15px; margin-top: 3px; color: #9ca3af; flex-shrink: 0; }
.post-notice p { margin: 0; font-size: 12px; color: #9ca3af; line-height: 1.8; }
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 12px;
  padding: 16px 20px; margin-top: 26px;
}
.post-nav-item {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.post-nav-item + .post-nav-item {
  padding-left: 16px; border-left: 1px solid #e5e7eb;
}
.post-nav-label {
  font-size: 12px; font-weight: 500; color: #9ca3af; line-height: 1.4;
  letter-spacing: 1px;
}
.post-nav-item a {
  font-size: 14px; color: #1f2937; font-weight: 600; line-height: 1.6;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  transition: color .15s;
}
.post-nav-item a:hover { color: #165dff; }
.related { margin-top: 24px; }
.related > h2 { margin: 0 0 14px; font-size: 18px; color: #111827; }
.related .article-card { background: #fff; }
.related .article-card h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; }
.related .article-card h3 a { color: #111827; }
.related .article-card h3 a:hover { color: #165dff; }

/* ---------- 文章页：主导航隐藏时（<768px）工具卡置于正文上方 ----------
   实现方式：侧栏 display:contents 后其子版块成为布局直接子项，
   用 order 调整顺序（工具卡 order 1 → 正文 order 2 → 热门/最新 order 3） */
/* 文章页：面包屑移入正文版块左上角，缩短主导航与正文间距 */
.article-page .main-layout { padding-top: 14px; }
.article-page .article-main > .breadcrumb { margin: 0 0 12px; }

@media (max-width: 767px) {
  .article-page .sidebar { display: contents; }
  .article-page .main-layout { grid-template-columns: 1fr 1fr; }
  .article-page .widget { order: 3; }
  .article-page .article-main { grid-column: 1 / -1; order: 2; }
  .article-page .widget-tool { order: 1; grid-column: 1 / -1; }
}

/* ---------- 内页响应式 ---------- */
@media (max-width: 767px) {
  .manual-layout { grid-template-columns: 1fr; }
  .manual-toc { position: static; }
  .manual-body, .about-block, .article-main > .post-card { padding: 22px 18px; }
  .post-notice {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 28px; padding: 13px 16px;
  background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 10px;
}
.post-notice .ico { width: 15px; height: 15px; margin-top: 3px; color: #9ca3af; flex-shrink: 0; }
.post-notice p { margin: 0; font-size: 12px; color: #9ca3af; line-height: 1.8; }
.post-nav { grid-template-columns: 1fr; gap: 12px; padding: 14px 16px; }
  .post-nav-item + .post-nav-item { padding-left: 0; border-left: none; padding-top: 12px; border-top: 1px solid #e5e7eb; }
  .about-grid { grid-template-columns: 1fr; }
  .faq-item summary { padding: 13px 14px; }
  .faq-a { padding: 0 14px 14px; }
  .faq-group { grid-template-columns: 1fr; gap: 10px; }
}

/* 工具卡描述内的加粗高亮句 */
.tool-desc strong.tool-desc-strong { color: #ffd66b; font-weight: 700; }
