/* 骏邦数智博客前台样式（对齐官网冰蓝科技风） */
:root {
  --ice-bg: #EFF6FF;
  --ice-bg-alt: #DBEAFE;
  --primary: #3B82F6;
  --primary-dark: #1D4ED8;
  --primary-light: #60A5FA;
  --ink: #0F172A;
  --ink2: #1E3A8A;
  --muted: #1E40AF;
  --rule: rgba(59, 130, 246, 0.14);
  --navy: #1E3A8A;
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(59,130,246,0.08);
  --shadow: 0 4px 16px rgba(59,130,246,0.10);
  --shadow-lg: 0 16px 48px rgba(59,130,246,0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--ice-bg);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ 阅读进度条 ============ */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #1E3A8A, #3B82F6, #60A5FA);
  z-index: 2000; transition: width 0.1s linear;
}

/* ============ 导航栏 ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 10px 0;
  background: rgba(30,58,138,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(59,130,246,0.2);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; color: #fff;
  font-family: var(--font-display); white-space: nowrap;
}
.logo-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(37,99,235,0.15), rgba(30,58,138,0.1));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
  overflow: hidden;
}
.logo-icon img { width: 80%; height: 80%; object-fit: contain; border-radius: 50%; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #60A5FA; }
.nav-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 22px; cursor: pointer; padding: 6px 10px;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; font-size: 15px; font-weight: 600;
  border-radius: 10px; border: none; cursor: pointer;
  transition: all 0.25s ease; font-family: inherit;
}
.btn-sm { padding: 7px 16px; font-size: 14px; }
.btn-register {
  background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
  color: #fff; box-shadow: 0 4px 16px rgba(29,78,216,0.35);
}
.btn-register:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 8px 28px rgba(29,78,216,0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.7); color: var(--ink);
  border: 1px solid rgba(15,23,42,0.15);
}
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: rgba(15,23,42,0.3); }

/* ============ 主区域 ============ */
.main-wrap { padding-top: 76px; min-height: 60vh; }

.blog-hero {
  background: linear-gradient(160deg, #EFF6FF 0%, #DBEAFE 55%, #BFDBFE 100%);
  padding: 64px 0 56px; text-align: center;
  border-bottom: 1px solid var(--rule);
}
.hero-title {
  font-family: var(--font-display); font-size: 40px; font-weight: 800;
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 55%, #60A5FA 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.hero-sub { color: var(--muted); font-size: 16.5px; max-width: 640px; margin: 0 auto; }

.page-head {
  background: linear-gradient(180deg, var(--ice-bg-alt) 0%, var(--ice-bg) 100%);
  padding: 44px 0 36px; border-bottom: 1px solid var(--rule);
}
.page-title { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--ink); margin-top: 12px; }
.page-sub { color: var(--muted); margin-top: 8px; font-size: 15px; }

.breadcrumb { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--primary-dark); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: #93B4F5; }

/* ============ 双栏布局 ============ */
.blog-main { padding: 40px 0 72px; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }

/* ============ 文章卡片 ============ */
.post-list { display: flex; flex-direction: column; gap: 26px; }
.post-card {
  background: #fff; border: 1px solid var(--rule); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-cover { display: block; aspect-ratio: 16/7; overflow: hidden; background: var(--ice-bg-alt); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .card-cover img { transform: scale(1.04); }
.cover-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #DBEAFE, #93C5FD, #1E40AF);
  color: #fff; font-size: 26px; font-weight: 700; letter-spacing: 0.3em;
  font-family: var(--font-display);
}
.cover-ph.sm { font-size: 15px; letter-spacing: 0.15em; aspect-ratio: 16/9; }
.card-body { padding: 22px 26px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.card-cat {
  background: rgba(59,130,246,0.12); color: var(--primary-dark);
  padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
.card-cat:hover { background: rgba(59,130,246,0.2); }
.card-title { font-size: 19.5px; font-weight: 700; line-height: 1.45; font-family: var(--font-display); }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--primary-dark); }
.card-summary { color: #47598F; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: auto; padding-top: 6px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-stats { display: flex; gap: 12px; font-size: 12.5px; color: #7A93C9; white-space: nowrap; }

.tag {
  display: inline-block; padding: 2px 11px; border-radius: 999px;
  background: rgba(59,130,246,0.09); color: var(--ink2);
  font-size: 12.5px; border: 1px solid var(--rule);
  transition: all 0.2s;
}
.tag:hover { background: rgba(59,130,246,0.18); color: var(--primary-dark); }

.empty-box {
  background: #fff; border: 1px dashed var(--rule); border-radius: 14px;
  padding: 60px 24px; text-align: center; color: var(--muted); font-size: 15px;
}
.empty-box.sm { padding: 28px 16px; font-size: 14px; }

/* ============ 侧边栏 ============ */
.sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 92px; }
.widget {
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 15.5px; font-weight: 700; color: var(--ink);
  padding-left: 10px; border-left: 3px solid var(--primary);
  margin-bottom: 14px; font-family: var(--font-display);
}
.search-form { position: relative; display: flex; gap: 8px; }
.search-form input {
  flex: 1; min-width: 0; padding: 9px 12px; font-size: 14px;
  border: 1px solid var(--rule); border-radius: 9px; background: var(--ice-bg);
  font-family: inherit; outline: none; transition: border 0.2s;
}
.search-form input:focus { border-color: var(--primary-light); background: #fff; }
.search-form button {
  background: linear-gradient(135deg, #1D4ED8, #3B82F6); color: #fff;
  border: none; border-radius: 9px; padding: 0 14px; cursor: pointer; font-size: 15px;
}
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: var(--shadow); z-index: 50; overflow: hidden; display: none;
}
.search-suggest.show { display: block; }
.search-suggest a {
  display: block; padding: 9px 14px; font-size: 13.5px; color: var(--ink);
  border-bottom: 1px solid var(--ice-bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-suggest a:last-child { border-bottom: none; }
.search-suggest a:hover { background: var(--ice-bg); color: var(--primary-dark); }

.cat-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.cat-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: 8px; font-size: 14.5px; color: var(--ink);
}
.cat-list a:hover { background: var(--ice-bg); color: var(--primary-dark); }
.cat-count {
  font-size: 12px; background: rgba(59,130,246,0.1); color: var(--primary-dark);
  min-width: 24px; text-align: center; border-radius: 999px; padding: 1px 7px;
}

.hot-list { list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: none; }
.hot-list li { display: flex; gap: 10px; align-items: flex-start; }
.hot-list a {
  font-size: 14px; color: var(--ink); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hot-list a:hover { color: var(--primary-dark); }
.hot-rank {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px;
  background: var(--ice-bg-alt); color: var(--muted);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.hot-rank.r1 { background: linear-gradient(135deg, #F59E0B, #F97316); color: #fff; }
.hot-rank.r2 { background: linear-gradient(135deg, #3B82F6, #60A5FA); color: #fff; }
.hot-rank.r3 { background: linear-gradient(135deg, #8B5CF6, #A78BFA); color: #fff; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.widget-subscribe { background: linear-gradient(160deg, #fff 0%, var(--ice-bg) 100%); }
.sub-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.sub-form { display: flex; flex-direction: column; gap: 10px; }
.sub-form input {
  padding: 10px 12px; font-size: 14px; border: 1px solid var(--rule);
  border-radius: 9px; background: #fff; font-family: inherit; outline: none;
}
.sub-form input:focus { border-color: var(--primary-light); }
.sub-form .btn { width: 100%; }
.sub-tip { font-size: 13px; margin-top: 8px; min-height: 18px; color: #10B981; }
.sub-tip.err { color: #EF4444; }

/* ============ 目录 TOC ============ */
.widget-toc { max-height: 60vh; overflow-y: auto; }
.toc-list { display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
  display: block; padding: 6px 8px; font-size: 13.5px; color: #47598F;
  border-radius: 7px; border-left: 2px solid transparent; line-height: 1.45;
}
.toc-list a.toc-l3 { padding-left: 22px; font-size: 13px; }
.toc-list a:hover { color: var(--primary-dark); background: var(--ice-bg); }
.toc-list a.current { color: var(--primary-dark); background: rgba(59,130,246,0.1); border-left-color: var(--primary); font-weight: 600; }

/* ============ 分页 ============ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.page-item {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--rule); border-radius: 9px;
  font-size: 14px; color: var(--ink); transition: all 0.2s;
}
.page-item:hover { border-color: var(--primary-light); color: var(--primary-dark); }
.page-item.current { background: linear-gradient(135deg, #1D4ED8, #3B82F6); color: #fff; border-color: transparent; font-weight: 600; }
.page-item.disabled { color: #B7CBF2; cursor: not-allowed; background: var(--ice-bg); }
.page-dots { color: #93B4F5; }

/* ============ 文章页 ============ */
.article-head { padding-bottom: 30px; }
.article-title {
  font-family: var(--font-display); font-size: 30px; font-weight: 800;
  line-height: 1.4; color: var(--ink); margin-top: 12px;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); margin-top: 14px; }

.article-body {
  background: #fff; border: 1px solid var(--rule); border-radius: 16px;
  padding: 36px 40px; box-shadow: var(--shadow-sm);
}
.article-cover { border-radius: 12px; overflow: hidden; margin-bottom: 28px; }
.article-cover img { width: 100%; display: block; border-radius: 12px; }

.md-content { font-size: 16.5px; line-height: 1.95; color: #1E2A4A; }
.md-content > *:first-child { margin-top: 0; }
.md-content h2 {
  font-family: var(--font-display); font-size: 23px; font-weight: 800; color: var(--ink);
  margin: 40px 0 16px; padding-left: 14px;
  border-left: 4px solid var(--primary); line-height: 1.4;
}
.md-content h3 { font-size: 19px; font-weight: 700; color: var(--ink2); margin: 30px 0 12px; }
.md-content h4 { font-size: 17px; font-weight: 700; color: var(--ink2); margin: 24px 0 10px; }
.md-content p { margin: 14px 0; }
.md-content a { color: var(--primary-dark); border-bottom: 1px solid rgba(29,78,216,0.25); }
.md-content a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.md-content ul, .md-content ol { padding-left: 26px; margin: 14px 0; }
.md-content li { margin: 7px 0; }
.md-content blockquote {
  margin: 22px 0; padding: 14px 20px;
  background: var(--ice-bg); border-left: 4px solid var(--primary-light);
  border-radius: 0 10px 10px 0; color: var(--ink2); font-size: 15.5px;
}
.md-content blockquote p { margin: 0; }
.md-content code {
  background: rgba(59,130,246,0.1); color: #1D4ED8;
  padding: 2px 7px; border-radius: 6px; font-size: 14px;
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
}
.md-content .md-code {
  background: #0F172A; color: #E2E8F0; border-radius: 12px;
  padding: 18px 20px; overflow-x: auto; margin: 20px 0;
  font-size: 14px; line-height: 1.75;
}
.md-content .md-code code { background: none; color: inherit; padding: 0; }
.md-table-wrap { overflow-x: auto; margin: 20px 0; border-radius: 10px; border: 1px solid var(--rule); }
.md-content table { border-collapse: collapse; width: 100%; font-size: 14.5px; background: #fff; }
.md-content th { background: var(--ice-bg-alt); color: var(--ink2); font-weight: 700; }
.md-content th, .md-content td { padding: 10px 14px; border-bottom: 1px solid var(--ice-bg-alt); }
.md-content tr:last-child td { border-bottom: none; }
.md-content hr { border: none; border-top: 1px solid var(--rule); margin: 30px 0; }
.md-content strong { color: var(--ink); }

/* FAQ */
.faq-section { margin-top: 40px; padding-top: 8px; border-top: 1px dashed var(--rule); }
.md-h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink);
  margin: 20px 0 16px; padding-left: 14px; border-left: 4px solid var(--primary);
}
.faq-item {
  background: var(--ice-bg); border: 1px solid var(--rule); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 15.5px;
  color: var(--ink2); list-style: none; position: relative; padding-right: 40px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%); font-size: 20px; color: var(--primary); font-weight: 700;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 18px 14px; font-size: 15px; color: #47598F; }
.faq-answer p { margin: 0; }

/* 标签 / 分享 */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--rule); }
.article-share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--rule);
}
.share-label { font-size: 14px; color: var(--muted); }
.share-btn {
  padding: 6px 16px; border-radius: 999px; border: 1px solid var(--rule);
  background: #fff; color: var(--ink2); font-size: 13.5px; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.share-btn:hover { background: rgba(59,130,246,0.1); color: var(--primary-dark); border-color: var(--primary-light); }

/* CTA */
.cta-box {
  margin-top: 30px; text-align: center;
  background: linear-gradient(135deg, rgba(30,58,138,0.05), rgba(59,130,246,0.1));
  border: 1px solid rgba(59,130,246,0.25); border-radius: 16px;
  padding: 30px 28px;
}
.cta-box.cta-compact { margin: 26px 0; padding: 20px 22px; }
.cta-title { font-size: 18px; font-weight: 800; color: var(--ink); font-family: var(--font-display); margin-bottom: 8px; }
.cta-text { font-size: 15px; color: var(--muted); margin-bottom: 16px; }

/* 上一篇下一篇 */
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.pn-link {
  display: flex; flex-direction: column; gap: 5px; padding: 15px 18px;
  background: var(--ice-bg); border: 1px solid var(--rule); border-radius: 12px;
  min-width: 0;
}
.pn-link:hover { border-color: var(--primary-light); background: #fff; }
.pn-next { text-align: right; }
.pn-empty { background: none; border: none; }
.pn-label { font-size: 12.5px; color: #7A93C9; }
.pn-title {
  font-size: 14.5px; font-weight: 600; color: var(--ink2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 作者卡片 */
.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  margin-top: 30px; padding: 22px 24px;
  background: linear-gradient(135deg, rgba(30,58,138,0.04), rgba(59,130,246,0.08));
  border: 1px solid var(--rule); border-radius: 14px;
}
.author-avatar, .comment-avatar {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #1E3A8A, #3B82F6);
  color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
}
.author-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.author-bio { font-size: 14px; color: var(--muted); margin: 6px 0 8px; }
.author-link { font-size: 14px; color: var(--primary-dark); font-weight: 600; }

/* 相关文章 */
.related-section { margin-top: 44px; }
.section-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--ink);
  margin-bottom: 18px; padding-left: 12px; border-left: 4px solid var(--primary);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  background: var(--ice-bg); border: 1px solid var(--rule); border-radius: 12px;
  overflow: hidden; transition: all 0.25s; display: flex; flex-direction: column;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.related-cover { aspect-ratio: 16/8; overflow: hidden; background: var(--ice-bg-alt); }
.related-cover img { width: 100%; height: 100%; object-fit: cover; }
.related-cover .cover-ph { aspect-ratio: auto; height: 100%; }
.related-title {
  font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.5;
  padding: 12px 14px 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-meta { font-size: 12.5px; color: #7A93C9; padding: 0 14px 14px; }

/* 评论区 */
.comments-section { margin-top: 44px; }
.comment-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.comment-item {
  display: flex; gap: 14px; padding: 16px 18px;
  background: var(--ice-bg); border: 1px solid var(--rule); border-radius: 12px;
}
.comment-avatar { width: 40px; height: 40px; font-size: 16px; }
.comment-head { display: flex; align-items: baseline; gap: 12px; }
.comment-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.comment-time { font-size: 12.5px; color: #93B4F5; }
.comment-content { font-size: 14.5px; color: #2A3B66; margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.comment-form {
  background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 20px 22px;
}
.comment-form-row { margin-bottom: 10px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 14px; font-size: 14.5px; font-family: inherit;
  border: 1px solid var(--rule); border-radius: 9px; background: var(--ice-bg); outline: none;
  transition: border 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary-light); background: #fff; }
.comment-form textarea { min-height: 96px; resize: vertical; }
.comment-form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; }
.comment-tip { font-size: 13.5px; color: #10B981; }
.comment-tip.err { color: #EF4444; }

/* ============ 站点地图页 / 404 ============ */
.sitemap-wrap { display: flex; flex-direction: column; gap: 26px; max-width: 860px; margin: 0 auto; }
.sitemap-block {
  background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 24px 28px;
}
.sitemap-block h2 {
  font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 14px;
  padding-left: 10px; border-left: 3px solid var(--primary); font-family: var(--font-display);
}
.sitemap-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.sitemap-list li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sitemap-list a { font-size: 14.5px; color: var(--ink); }
.sitemap-list a:hover { color: var(--primary-dark); }
.sitemap-date { font-size: 12.5px; color: #93B4F5; white-space: nowrap; }

.notfound { padding: 100px 0 120px; text-align: center; }
.nf-code {
  font-family: var(--font-display); font-size: 96px; font-weight: 800;
  background: linear-gradient(135deg, #1E3A8A, #3B82F6, #60A5FA);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nf-text { color: var(--muted); font-size: 16px; margin: 14px 0 30px; }
.nf-actions { display: flex; gap: 14px; justify-content: center; }

/* ============ 页脚 ============ */
.footer {
  background: rgba(30,58,138,0.96);
  color: rgba(255,255,255,0.72);
  padding: 56px 0 0;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #1E3A8A, #3B82F6, #60A5FA) 1;
}
.footer .logo { color: #fff; font-size: 15px; }
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-desc { font-size: 13.5px; line-height: 1.8; margin: 14px 0; color: rgba(255,255,255,0.6); }
.footer-contact-item { font-size: 13.5px; margin-top: 6px; color: rgba(255,255,255,0.75); }
.footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 14px; font-family: var(--font-display); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: rgba(255,255,255,0.66); font-size: 13.5px; transition: color 0.2s; }
.footer-col a:hover { color: #60A5FA; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 20px 0 26px; font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-legal a { color: rgba(255,255,255,0.55); }
.footer-legal .sep { margin: 0 8px; color: rgba(255,255,255,0.25); }
.footer-icp a { color: rgba(255,255,255,0.45); }

/* ============ 返回顶部 ============ */
.back-to-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 900;
  width: 44px; height: 44px; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #1D4ED8, #3B82F6); color: #fff; font-size: 18px;
  box-shadow: 0 6px 20px rgba(29,78,216,0.35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all 0.3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(30,58,138,0.98); flex-direction: column; gap: 0;
    padding: 8px 0; border-bottom: 1px solid rgba(59,130,246,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 26px; font-size: 15px; }
  .nav-cta { display: none; }
  .blog-hero { padding: 44px 0 40px; }
  .hero-title { font-size: 30px; }
  .page-title, .article-title { font-size: 24px; }
  .blog-main { padding: 28px 0 56px; }
  .article-body { padding: 24px 20px; }
  .md-content { font-size: 16px; }
  .md-content h2 { font-size: 20px; }
  .prev-next { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sitemap-list { grid-template-columns: 1fr; }
  .card-body { padding: 18px 18px 16px; }
  .card-title { font-size: 17.5px; }
  .author-box { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 15px; }
  .card-stats { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nf-code { font-size: 72px; }
}
