/* ========= Reset & Base ========= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html::-webkit-scrollbar { display: none; }
html { -ms-overflow-style: none; scrollbar-width: none; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 15px; line-height: 1.7; color: #333; background: #fff;
  min-height: 100vh; display: flex; flex-direction: column;
}
.site-main { flex: 1; }
a { color: #1a5a9e; text-decoration: none; transition: color 0.2s; }
a:hover { color: #00356b; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========= Header ========= */
.site-header {
  background: #002856; border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 60px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 38px; display: block; }
.site-name { font-size: 20px; font-weight: 700; color: #fff; }

/* Navigation */
.nav-list { display: flex; gap: 0; height: 60px; }
.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; height: 60px;
  padding: 0 18px; color: #c8d8e8; font-size: 15px; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-item > a:hover, .nav-item:hover > a { color: #fff; background: rgba(255,255,255,0.1); }
.nav-item.active > a { color: #fff; border-bottom: 3px solid #fff; }

.search-toggle {
  background: none; border: none; font-size: 16px; cursor: pointer;
  color: #c8d8e8; padding: 4px 8px; border-radius: 4px;
  transition: all 0.2s; margin-left: 8px; line-height: 1; flex-shrink: 0;
}
.search-toggle:hover { color: #fff; background: rgba(255,255,255,0.1); }

.main-nav { display: flex; align-items: center; }

/* Dropdown */
.sub-nav {
  display: none; position: absolute; top: 60px; left: 0;
  min-width: 100%; background: #fff; border: 1px solid #e8e8e8;
  border-radius: 0 0 8px 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 200; padding: 6px 0;
}
.nav-item:hover > .sub-nav:not(:empty) { display: block; }
.sub-nav li a {
  display: block; padding: 8px 20px; color: #333; font-size: 14px;
  white-space: nowrap; transition: background 0.15s;
}
.sub-nav li a:hover { background: #e8f0fe; color: #002856; }

.mobile-toggle { display: none; background: none; border: none; font-size: 24px; color: #fff; cursor: pointer; }

/* ========= Hero ========= */
.hero {
  position: relative; min-height: 400px;
  background: linear-gradient(135deg, #001a3e 0%, #00356b 40%, #1a5a9e 100%);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,26,62,0.75) 0%, rgba(0,53,107,0.55) 100%);
}
.hero-content { position: relative; text-align: center; color: #fff; padding: 60px 20px 50px; z-index: 1; }
.hero--with-news .hero-content { transform: translateY(-60px); }
.hero-content h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; letter-spacing: 2px; }
.hero-content p { font-size: 16px; opacity: 0.9; }

/* ========= Section Common ========= */
.section { padding: 56px 0; }
.striped > section:nth-child(odd) { background: #f5f8fc; }
.striped > section:nth-child(even) { background: #fff; }
.section-title {
  font-size: 24px; font-weight: 700; color: #00356b;
  text-align: center; margin-bottom: 36px; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: #00356b; margin: 12px auto 0; border-radius: 2px;
}
.section-title-sub {
  text-align: center; color: #888; font-size: 14px; margin-top: -28px; margin-bottom: 36px;
}

/* ========= Hero News Carousel ========= */
.hero-news-section { padding: 0 0 48px; }
.hero-news-carousel {
  position: relative; z-index: 5; margin: -120px auto 0;
  max-width: 1080px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: #0a2c54; box-shadow: 0 10px 32px rgba(0,53,107,0.2);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.8s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 24px 32px 10px; color: #fff;
}
.hero-slide-overlay h2 {
  font-size: 18px; font-weight: 700; margin: 0; text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-slide-overlay span { font-size: 13px; opacity: 0.8; }
.hero-dots {
  position: absolute; bottom: 18px; right: 32px;
  display: flex; gap: 8px; z-index: 2;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s;
}
.hero-dot.active { background: #fff; transform: scale(1.2); }

/* ========= Achievements ========= */
.achievements-section { position: relative; }
.ach-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.achievement-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,53,107,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.achievement-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,53,107,0.12); }
.achievement-img { aspect-ratio: 16 / 9; background: #e8f0fe; overflow: hidden; }
.achievement-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.achievement-card:hover .achievement-img img { transform: scale(1.05); }
.achievement-icon { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.achievement-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.achievement-tag {
  align-self: flex-start;
  font-size: 12px; line-height: 1.5; padding: 2px 10px;
  border-radius: 999px; color: #1a5a9e; background: #e8f0fe;
}
.achievement-card h3 {
  font-size: 15px; font-weight: 600; color: #333; margin: 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.achievement-meta { font-size: 12px; color: #999; margin-top: auto; }

/* ========= News ========= */
.news-section { }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.news-column .section-title { text-align: center; }
.news-column .section-title::after { margin: 12px auto 0; }
.news-list { margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.news-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1px solid #e8eaef; border-radius: 8px;
  background: #fff; line-height: 1.5; transition: all .2s;
}
.news-list li:hover { border-color: #c8d0db; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.news-list li:first-child { padding-top: 14px; }
.news-list li:last-child { border-bottom: 1px solid #e8eaef; }
.nl-content { flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nl-content a {
  color: #333; font-size: 14px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  transition: color 0.2s;
}
.nl-content a:hover { color: #00356b; }
.nl-time { font-size: 12px; color: #bbb; white-space: nowrap; flex-shrink: 0; }
.news-dot {
  flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  background: #00356b; margin-top: 8px;
}

/* ========= Pagination ========= */
.pagination { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.pagination .page-link {
  padding: 7px 16px; border-radius: 6px; font-size: 14px;
  border: 1px solid #d0d8e0; background: #fff; color: #1a5a9e;
  transition: all 0.2s;
}
.pagination .page-link:hover { background: #e8f0fe; border-color: #1a5a9e; }
.pagination .page-info { font-size: 13px; color: #666; }
.news-dot-orange { background: #e8751a; }
.more-link { color: #1a5a9e; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
.more-link:hover { color: #00356b; gap: 4px; }
.achievements-section .more-link { display: flex; justify-content: center; margin-top: 32px; }

/* ========= Acknowledgment ========= */
.ack-section { }
.ack-box {
  background: #fff; border: 1px solid #e0e8f0;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.ack-box-inner {
  position: relative; padding: 24px 28px;
}
.ack-box p {
  font-size: 14px; line-height: 1.9; color: #444; margin: 0 0 8px;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic; letter-spacing: 0.02em;
}
.ack-box p:last-child { margin-bottom: 0; }
.ack-box p::before { content: '"'; color: #1a5a9e; font-size: 18px; font-weight: 700; }
.ack-box p::after { content: '"'; color: #1a5a9e; font-size: 18px; font-weight: 700; }

/* ========= Quick Links ========= */
.quicklinks-section { }
.quicklinks-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.quicklink-card {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; background: #fff; border: 1px solid #e0e8f0; border-radius: 8px;
  transition: all 0.2s; color: #333;
}
.quicklink-card:hover { background: #00356b; color: #fff; transform: translateY(-2px); }
.ql-icon {
  width: 36px; height: 36px; border-radius: 50%; background: #d6e4f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; line-height: 1;
}
.quicklink-card:hover .ql-icon { background: rgba(255,255,255,0.2); }
.ql-label { font-size: 14px; font-weight: 500; }

/* ========= Services ========= */
.services-section { }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.service-card {
  display: block; text-align: center; padding: 36px 24px 28px;
  background: #f5f8fc; border-radius: 12px; text-decoration: none; color: #333;
  transition: all 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,53,107,0.1); }
.service-icon { width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.service-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-icon .si-emoji { font-size: 40px; line-height: 1; }
.service-title { font-size: 16px; font-weight: 600; color: #00356b; margin-bottom: 8px; }
.service-desc { font-size: 13px; color: #888; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ========= Posts (Articles) ========= */
.post-page { padding: 0 0 60px; }
.post-hero {
  position: relative; background: #001a3e;
  min-height: 320px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.post-hero-bg { position: absolute; inset: 0; opacity: 0.3; }
.post-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.post-hero-content {
  position: relative; z-index: 1; text-align: center; color: #fff;
  padding: 56px 20px; max-width: 860px;
}
.post-hero-title { font-size: 32px; font-weight: 700; line-height: 1.4; margin: 0 0 14px; color: #fff; }
.post-hero-meta {
  font-size: 14px; opacity: 0.92;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
}
.post-hero-meta a { color: #fff; }
.phm-sep { opacity: 0.6; }
.phm-cat { padding: 2px 12px; border: 1px solid rgba(255,255,255,0.45); border-radius: 999px; font-size: 12px; }
.phm-cat:hover { background: rgba(255,255,255,0.15); }
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 20px; padding-top: 24px; }
/* 仅 page 模板的面包屑左右分栏（右侧浏览量）；post/list 的面包屑是纯文本，不能 flex 拆散 */
.page-page .breadcrumb { display: flex; align-items: center; justify-content: space-between; }
.post-meta-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  font-size: 13px; color: #999; margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.pmb-sep { color: #ddd; }
.pmb-tags-line { width: 100%; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.pmb-cat {
  display: inline-block; padding: 2px 10px; background: #eef3f8; color: #1a5a9e;
  border-radius: 4px; font-size: 12px; font-weight: 500;
}
.pmb-tag {
  display: inline-block; padding: 2px 10px; background: #fff; color: #7c3aed;
  border: 1px solid #d8b4fe; border-radius: 12px; font-size: 12px;
  text-decoration: none; transition: all .15s;
}
.pmb-tag:hover { background: #f5f0ff; }
.post-tag {
  padding: 2px 8px; background: #f0f5ff; color: #00356b;
  border-radius: 4px; font-size: 11px; border: 1px solid #d6e4f0;
}
.post-content { font-size: 15px; line-height: 1.85; color: #333; }
.post-content h2, .post-content h3 { color: #00356b; margin: 28px 0 12px; }
.post-content p { margin-bottom: 16px; }
.post-content p:empty { min-height: 1em; }
.post-content img { border-radius: 8px; margin: 20px 0; box-shadow: 0 2px 8px rgba(0,0,0,.06); max-width: 100%; height: auto; }
.post-content img[style*="float: left"] { margin: 4px 20px 12px 0; }
.post-content img[style*="float: right"] { margin: 4px 0 12px 20px; }
.post-content mark { background: #fef08a; padding: 0 2px; border-radius: 2px; }

/* ========= Content Grid (multi-column blocks) ========= */
.post-content .content-grid,
.page-content .content-grid {
  display: flex; margin: 20px 0;
}
.post-content .content-grid-col,
.page-content .content-grid-col {
  flex: 1 1 0; min-width: 0;
}
@media (max-width: 840px) {
  .post-content .content-grid,
  .page-content .content-grid {
    flex-direction: column; gap: 16px !important;
  }
}

.post-content code {
  padding: 2px 7px; background: #f0f4f8; border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85em; color: #e11d48;
}
.post-content pre {
  background: #f6f8fa; color: #1e293b;
  padding: 20px 24px; border-radius: 8px;
  overflow-x: auto; margin: 20px 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13.5px; line-height: 1.65;
  border: 1px solid #e2e8f0;
  position: relative;
}
.post-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.post-content pre :is(.hljs-keyword, .hljs-literal, .hljs-symbol, .hljs-built_in) { color: #d73a49; }
.post-content pre :is(.hljs-string, .hljs-doctag) { color: #0a3069; }
.post-content pre :is(.hljs-title, .hljs-section, .hljs-selector-class) { color: #6f42c1; }
.post-content pre :is(.hljs-comment, .hljs-quote) { color: #6a737d; font-style: italic; }
.post-content pre :is(.hljs-number, .hljs-attr) { color: #005cc5; }
.post-content pre :is(.hljs-type, .hljs-template-tag) { color: #d73a49; }
.post-content pre :is(.hljs-params) { color: #24292e; }
.post-content pre :is(.hljs-meta, .hljs-meta-keyword) { color: #6f42c1; }
.post-content pre :is(.hljs-built_in, .hljs-class .hljs-title) { color: #e36209; }
.post-content table {
  border-collapse: separate; border-spacing: 0;
  width: 100%; margin: 20px 0; font-size: 14px;
  border: 1px solid #d0d5dd; border-radius: 8px; overflow: hidden;
}
.post-content table[data-table-width="auto"] { width: auto; max-width: 100%; }
.post-content th, .post-content td {
  border-bottom: 1px solid #e2e5ea; padding: 10px 14px; text-align: left;
}
.post-content th { background: #f8fafc; font-weight: 600; color: #1e293b; }
.post-content td > p, .post-content th > p { margin: 0 0 4px; }
.post-content td > p:last-child, .post-content th > p:last-child { margin-bottom: 0; }
.post-content td { color: #374151; }
.post-content tr:last-child td { border-bottom: none; }
.post-content tr:hover td { background: #f8fafc; }

/* ========= Page ========= */
.page-page { padding: 30px 0 60px; }
.page-title { font-size: 28px; font-weight: 700; color: #00356b; margin-bottom: 24px; text-align: center; }
.page-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #999;
}
.page-meta:empty { display: none; }
.page-content { font-size: 15px; line-height: 1.85; }
.page-content code {
  padding: 2px 7px; background: #f0f4f8; border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85em; color: #e11d48;
}
.page-content pre {
  background: #f6f8fa; color: #1e293b;
  padding: 20px 24px; border-radius: 8px;
  overflow-x: auto; margin: 20px 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13.5px; line-height: 1.65;
  border: 1px solid #e2e8f0;
}
.page-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.page-content pre :is(.hljs-keyword, .hljs-literal, .hljs-symbol, .hljs-built_in) { color: #d73a49; }
.page-content pre :is(.hljs-string, .hljs-doctag) { color: #0a3069; }
.page-content pre :is(.hljs-title, .hljs-section, .hljs-selector-class) { color: #6f42c1; }
.page-content pre :is(.hljs-comment, .hljs-quote) { color: #6a737d; font-style: italic; }
.page-content pre :is(.hljs-number, .hljs-attr) { color: #005cc5; }
.page-content pre :is(.hljs-type, .hljs-template-tag) { color: #d73a49; }
.page-content pre :is(.hljs-params) { color: #24292e; }
.page-content pre :is(.hljs-meta, .hljs-meta-keyword) { color: #6f42c1; }
.page-content pre :is(.hljs-built_in, .hljs-class .hljs-title) { color: #e36209; }
.page-content table {
  border-collapse: separate; border-spacing: 0;
  width: 100%; margin: 20px 0; font-size: 14px;
  border: 1px solid #d0d5dd; border-radius: 8px; overflow: hidden;
}
.page-content table[data-table-width="auto"] { width: auto; max-width: 100%; }
.page-content th, .page-content td {
  border-bottom: 1px solid #e2e5ea; padding: 10px 14px; text-align: left;
}
.page-content th { background: #f8fafc; font-weight: 600; color: #1e293b; }
.page-content td > p, .page-content th > p { margin: 0 0 4px; }
.page-content td > p:last-child, .page-content th > p:last-child { margin-bottom: 0; }
.page-content td { color: #374151; }
.page-content tr:last-child td { border-bottom: none; }
.page-content tr:hover td { background: #f8fafc; }

/* ========= Doc ========= */
.doc-page { padding: 30px 0 60px; }
.doc-page-title { font-size: 28px; font-weight: 700; color: #00356b; margin-bottom: 24px; }
.post-layout, .page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; }
.post-sidebar, .page-sidebar { position: sticky; top: 80px; height: fit-content; max-height: calc(100vh - 100px); overflow-y: auto; }
.post-nav, .page-nav {
  background: #f5f8fc; border-radius: 8px; padding: 16px;
  border: 1px solid #e8eef4;
}
.post-nav h3, .page-nav h3 { font-size: 14px; font-weight: 600; color: #00356b; margin-bottom: 12px; }
.post-nav ul, .page-nav ul { display: flex; flex-direction: column; gap: 2px; }
.post-nav a, .page-nav a {
  display: block; padding: 6px 10px; border-radius: 4px;
  font-size: 13px; color: #555; transition: all 0.15s;
}
.post-nav a:hover, .page-nav a:hover { background: #e0e8f4; color: #00356b; }
.page-nav a.active { background: #e0e8f4; color: #00356b; font-weight: 600; }
.page-nav-sub { margin: 2px 0 2px 10px; padding-left: 6px; border-left: 1px solid #c9d8e8; }
.page-nav-sub a { font-size: 12px; padding: 4px 8px; }
.post-main, .page-main { min-width: 0; }
.page-layout-single { max-width: 890px; margin: 0 auto; }

.post-toc { list-style: none; padding: 0; margin: 0; }
.post-toc li { margin: 0; }
.post-toc a {
  display: block; padding: 5px 10px; border-radius: 4px;
  font-size: 13px; color: #555; text-decoration: none;
  transition: all 0.15s; border-left: 2px solid transparent;
}
.post-toc a:hover { background: #e0e8f4; color: #00356b; }
.post-toc a.active { color: #00356b; font-weight: 600; border-left-color: #00356b; }
.post-toc .toc-h3 a { padding-left: 24px; font-size: 12px; }

/* ========= Category Tree (docs navigation) ========= */
.category-tree { list-style: none; padding: 0; margin: 0; }
.category-tree .category-tree { padding-left: 14px; }
.ct-item { margin: 0; }
.ct-link {
  display: block; padding: 5px 10px; border-radius: 4px;
  font-size: 13px; color: #555; text-decoration: none;
  transition: all 0.15s; border-left: 2px solid transparent;
}
.ct-link:hover { background: #e0e8f4; color: #00356b; }
.ct-link.active { color: #00356b; font-weight: 600; border-left-color: #00356b; }
.category-children {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.child-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px; background: #f5f8fc; border-radius: 10px;
  color: #333; text-decoration: none; transition: all 0.2s;
}
.child-card:hover { background: #00356b; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,53,107,0.15); }
.child-name { font-size: 14px; font-weight: 600; }
.child-desc { font-size: 12px; color: #999; }
.child-card:hover .child-desc { color: #c8d8e8; }

/* ========= Status ========= */
.status-page { padding: 40px 0 60px; }
/* ========= Search ========= */
.search-page { padding: 40px 0 80px; }
.search-title { text-align: center; font-size: 28px; color: #00356b; margin-bottom: 8px; }
.search-desc { text-align: center; color: #999; margin-bottom: 32px; }
.search-box {
  max-width: 720px; margin: 0 auto;
  background: #fff; border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); padding: 24px;
}
.search-input-group { display: flex; gap: 8px; margin-bottom: 16px; }
.search-input-group input {
  flex: 1; padding: 12px 16px; border: 2px solid #ddd; border-radius: 6px;
  font-size: 15px; outline: none; transition: border-color 0.2s;
}
.search-input-group input:focus { border-color: #1a5a9e; }
.search-input-group button {
  padding: 12px 24px; background: #00356b; color: #fff; border: none;
  border-radius: 6px; font-size: 15px; cursor: pointer; transition: background 0.2s;
}
.search-input-group button:hover { background: #1a5a9e; }
.search-response { min-height: 80px; padding: 16px; background: #f5f8fc; border-radius: 6px; }
.search-sources { margin-top: 12px; }
.search-sources h4 { font-size: 13px; color: #999; margin-bottom: 6px; }
.search-sources a { display: block; font-size: 13px; padding: 3px 0; }

/* ========= Error ========= */
.error-page { padding: 100px 0; text-align: center; }
.error-code { font-size: 80px; font-weight: 700; color: #00356b; margin-bottom: 10px; }
.error-message { font-size: 24px; color: #333; margin-bottom: 8px; }
.error-desc { color: #999; margin-bottom: 24px; }
.error-link {
  display: inline-block; padding: 10px 32px; background: #00356b; color: #fff;
  border-radius: 6px; font-size: 15px; transition: background 0.2s;
}
.error-link:hover { background: #1a5a9e; color: #fff; }

/* ========= Footer ========= */
.site-footer { background: #002856; color: #b0c4d8; font-size: 14px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 40px 20px 0; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li { font-size: 13px; line-height: 1.6; }
.footer-col a { color: #b0c4d8; }
.footer-col a:hover { color: #fff; }
.footer-qr { width: 100px; height: 100px; border-radius: 6px; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0; text-align: center; font-size: 13px; color: #8098b0;
}
.footer-bottom p { margin-bottom: 2px; }

/* ========= Responsive ========= */
@media (max-width: 1024px) {
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .quicklinks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 840px) {
  .mobile-toggle { display: block; }

  .main-nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: #002856; border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2); z-index: 100;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; height: auto; padding: 4px 0; }
  .nav-item > a { height: auto; padding: 10px 20px; }
  .sub-nav { position: static; box-shadow: none; border: none; padding: 0 0 0 20px; background: transparent; }
  .sub-nav li a { color: #a0b8d0; }
  .sub-nav li a:hover { background: rgba(255,255,255,0.08); color: #fff; }

  .hero { min-height: 280px; }
  .hero-content h1 { font-size: 24px; }
  .hero-content p { font-size: 14px; }
  .hero--with-news .hero-content { transform: translateY(-30px); }

  .hero-news-section { padding: 0 0 32px; }
  .hero-news-carousel { border-radius: 8px; margin: -60px auto 0; }
  .hero-slide-overlay { padding: 20px 16px 22px; }
  .hero-slide-overlay h2 { font-size: 17px; }
  .hero-dots { bottom: 10px; right: 16px; }

  .ach-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .news-grid { grid-template-columns: 1fr; gap: 30px; }
  .nl-content { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nl-content a { white-space: normal; }
  .nl-time { font-size: 11px; }
  .section { padding: 30px 0; }

  .quicklinks-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quicklink-card { padding: 14px 16px; }

  .post-layout, .page-layout { grid-template-columns: 1fr; }
  .post-sidebar, .page-sidebar { position: static; max-height: none; }

  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .post-hero { min-height: 240px; }
  .post-hero-content { padding: 36px 16px; }
  .post-hero-title { font-size: 22px; }
}

@media (max-width: 480px) {
  .ach-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr; }
  .quicklinks-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
}

/* ========= File Embed (PDF) ========= */
.file-embed-wrap { margin: 1em 0; }
.post-content .file-embed-wrap iframe { width: 100%; border: none; display: block; height: auto; }

/* ========= General iframe embed (websites, videos) ========= */
.post-content iframe { width: 100%; border: 1px solid #e2e8f0; border-radius: 6px; display: block; }

/* ========= Reading aids (progress bar; back-to-top 由 back-to-top 插件提供) ========= */
.read-progress {
  position: fixed; top: 60px; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #1a5a9e, #4f8fd9);
  z-index: 1000; pointer-events: none;
  transition: width 0.08s linear;
}
