/* ===== 精校吧 静态版 — 简约蓝色主调，对齐原站 Cute 主题风格 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.7; color: #333; background: #f5f6f8;
}
a { color: #1e73be; text-decoration: none; }
a:hover { color: #0b5cad; text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Header ===== */
.site-header { background: #fff; border-bottom: 3px solid #1e73be; }
.header-inner { display: flex; align-items: baseline; gap: 14px; padding-top: 18px; padding-bottom: 14px; }
.site-name { font-size: 28px; font-weight: 700; color: #1e73be; }
.site-name:hover { text-decoration: none; color: #0b5cad; }
.site-tagline { font-size: 13px; color: #888; }

.main-nav { background: #1e73be; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; position: relative; }
.main-nav > div > ul > li { position: relative; }
.main-nav > div > ul > li > a {
  display: block; color: #fff; padding: 11px 18px; font-size: 15px;
}
.main-nav > div > ul > li > a:hover, .main-nav > div > ul > li > a.active { background: #0b5cad; text-decoration: none; }
.sub-nav {
  display: none; position: absolute; top: 100%; left: 0; background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.12); z-index: 50; min-width: 150px; border: 1px solid #e4e4e4;
}
.sub-nav li { width: 100%; }
.sub-nav a { display: block; padding: 8px 16px; color: #333; font-size: 14px; white-space: nowrap; }
.sub-nav a:hover { background: #f0f6fd; color: #1e73be; text-decoration: none; }
.has-sub:hover .sub-nav { display: block; }

/* ===== Main ===== */
#main { min-height: 60vh; padding-top: 20px; padding-bottom: 30px; }

/* Home intro */
.home-intro { background: #eef4fb; border: 1px solid #d5e3f5; border-radius: 4px; padding: 12px 16px; margin-bottom: 20px; color: #555; font-size: 14px; }

/* Category blocks */
.cat-block { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; margin-bottom: 18px; overflow: hidden; }
.cat-title {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(#f8fafc, #f0f3f7); border-bottom: 1px solid #e8e8e8;
  padding: 10px 16px; font-size: 17px;
}
.cat-title a { color: #1e73be; }
.cat-title a:hover { text-decoration: none; color: #0b5cad; }
.cat-count { font-size: 12px; color: #999; font-weight: 400; }
.cat-more { margin-left: auto; font-size: 13px; font-weight: 400; }
.book-list { list-style: none; padding: 8px 16px 10px; columns: 2; column-gap: 30px; }
.book-list li {
  break-inside: avoid; padding: 6px 0; border-bottom: 1px dashed #f0f0f0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px;
}
.book-list li::before { content: "▪"; color: #1e73be; margin-right: 7px; font-size: 11px; }
@media (max-width: 640px) { .book-list { columns: 1; } }

/* Post list (category / tag / archives) */
.archive-title { font-size: 20px; margin-bottom: 16px; color: #222; }
.archive-title .count { font-size: 13px; color: #999; font-weight: 400; }
.post-list { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; }
.post-item { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.post-item:last-child { border-bottom: none; }
.item-title { font-size: 15px; font-weight: 400; }
.item-title a { color: #333; }
.item-title a:hover { color: #1e73be; }
.item-meta { font-size: 12px; color: #999; margin-top: 3px; }
.item-meta span { margin-right: 12px; }
.item-intro { font-size: 13px; color: #666; margin-top: 6px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-actions { margin-top: 8px; }
.item-actions .btn-download { font-size: 13px; padding: 6px 18px; margin-right: 8px; }
.btn-detail { display: inline-block; background: #1e73be; color: #fff; font-size: 13px; padding: 6px 18px; border-radius: 3px; }
.btn-detail:hover { background: #165b96; color: #fff; text-decoration: none; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.pagination a, .pagination .page-current {
  display: inline-block; min-width: 34px; padding: 6px 10px; text-align: center;
  background: #fff; border: 1px solid #ddd; border-radius: 3px; color: #333; font-size: 13px;
}
.pagination a:hover { border-color: #1e73be; color: #1e73be; text-decoration: none; }
.pagination .page-current { background: #1e73be; border-color: #1e73be; color: #fff; }

/* ===== Post page ===== */
.post { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 20px 22px; }
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 12px; }
.breadcrumb a { color: #1e73be; }
.breadcrumb span { margin: 0 6px; }
.breadcrumb .current { color: #666; }
.post-title { font-size: 22px; line-height: 1.5; margin-bottom: 10px; color: #222; }
.post-meta { font-size: 13px; color: #888; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed #eee; }
.post-meta span { margin-right: 16px; }
.post-cover { text-align: center; margin-bottom: 16px; }
.post-cover img { border: 1px solid #eee; border-radius: 3px; }
.post-content { font-size: 15px; color: #333; }
.post-content p { margin: 10px 0; }
.post-content blockquote {
  margin: 14px 0; padding: 10px 16px; background: #f8f9fb;
  border-left: 4px solid #1e73be; color: #555; font-size: 14px;
}
.post-content img { display: block; margin: 10px auto; }

.download-box { text-align: center; margin: 22px 0; }
.btn-download {
  display: inline-block; background: #e8382f; color: #fff; font-size: 16px;
  padding: 12px 44px; border-radius: 4px;
}
.btn-download:hover { background: #d22a21; color: #fff; text-decoration: none; }

.post-tags { margin-top: 16px; }
.tag { display: inline-block; background: #eef4fb; border: 1px solid #d5e3f5; color: #1e73be; font-size: 12px; padding: 3px 10px; border-radius: 12px; margin: 0 6px 6px 0; }
.tag:hover { background: #1e73be; color: #fff; text-decoration: none; }

.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 14px; border-top: 1px solid #eee; font-size: 14px; }
.post-nav a { max-width: 48%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.related { margin-top: 26px; }
.related h3 { font-size: 16px; margin-bottom: 10px; color: #222; }
.related-list { list-style: none; }
.related-list li { padding: 6px 0; border-bottom: 1px dashed #f0f0f0; font-size: 14px; }

/* ===== Page (声明/联系/归档/标签) ===== */
.page { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 20px 22px; }
.page-title { font-size: 20px; margin-bottom: 16px; color: #222; }
.page-content { font-size: 15px; }
.page-content p { margin: 8px 0; }

/* Archives */
.archive-year { margin-bottom: 22px; }
.archive-year h2 { font-size: 18px; color: #1e73be; border-bottom: 2px solid #1e73be; padding-bottom: 6px; margin-bottom: 10px; }
.archive-year h3 { font-size: 15px; color: #555; margin: 12px 0 6px; }
.archive-list { list-style: none; }
.archive-list li { padding: 5px 0; font-size: 14px; border-bottom: 1px dashed #f4f4f4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.archive-list .date { color: #999; margin-right: 10px; font-size: 12px; }

/* Tag cloud */
.tag-cloud { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 20px; line-height: 2.2; }
.cloud-tag { margin-right: 12px; color: #1e73be; }
.cloud-count { font-size: 11px; color: #bbb; }

/* ===== Footer ===== */
.site-footer { background: #333; color: #aaa; padding: 22px 0 26px; margin-top: 30px; font-size: 13px; }
.footer-nav { margin-bottom: 12px; }
.footer-nav a { color: #ccc; margin-right: 18px; }
.footer-nav a:hover { color: #fff; }
.copyright { color: #888; }
