/*
Theme Name: 工业电路文库
Theme URI: https://blog.a766.com/
Author: YKYH
Author URI: https://blog.a766.com/
Description: 面向电路图、电工、PLC、变频、CAD 技术文库的极简 SEO 主题。纯文字优先排版、零 JavaScript 依赖、语义化结构与结构化数据。
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: a766-tech
Tags: blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* ========== 设计令牌：石墨 + 琥珀 ========== */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #1c1c1c;
  --ink-2: #454545;
  --muted: #767676;
  --line: #e2e2e2;
  --brand: #8a3a0c;
  --brand-2: #b45309;
  --brand-soft: #fdf2e4;
  --accent: #e8890c;
  --header: #ffffff;      /* 导航栏：白色 */
  --header-ink: #2b2b2b;   /* 导航栏文字 */
  --header-muted: #858585;
  --footer: #24211c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28,26,23,.05), 0 10px 26px -18px rgba(28,26,23,.30);
  --max: 1180px;
}

/* ========== 基础 ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.45; letter-spacing: -.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ========== 顶栏 ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(28,26,23,.04), 0 8px 20px -16px rgba(28,26,23,.30);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 16px; height: 54px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--header-ink); font-size: 19px; font-weight: 800; letter-spacing: .02em;
  white-space: nowrap; text-decoration: none;
}
.brand:hover { color: #000; text-decoration: none; }
.brand-logo { display: block; height: 23px; width: auto; max-width: 170px; }
.brand-sub { font-size: 12px; font-weight: 500; color: var(--header-muted); margin-left: 2px; }

.header-search { margin-left: auto; flex: 0 0 auto; }
.search-form { display: flex; align-items: center; }
.search-form input[type="search"] {
  width: 190px; height: 31px; padding: 0 12px;
  border: 1px solid #e4e4e4; border-right: 0;
  border-radius: 6px 0 0 6px; background: #f7f7f7;
  color: var(--ink); font-size: 13.5px; outline: none;
}
.search-form input[type="search"]::placeholder { color: #9e9e9e; }
.search-form input[type="search"]:focus { border-color: var(--accent); }
.search-form button {
  height: 31px; padding: 0 13px; border: 0; border-radius: 0 6px 6px 0;
  background: #2563eb; color: #ffffff; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .14s;
}
.search-form button:hover { background: #1d4ed8; }

/* ========== 导航：6 个大类 + 悬停展开子类 ========== */
.nav-main {
  display: flex; align-items: center; gap: 1px;
  min-width: 0; overflow: visible;   /* 必须是 visible，否则会裁剪绝对定位的下拉面板 */
}
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; color: #575757; padding: 6px 10px; border-radius: 8px;
  white-space: nowrap; transition: background .14s, color .14s;
}
.nav-link.is-active {
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}
.nav-link:hover { background: rgba(60,44,20,.07); color: var(--header-ink); text-decoration: none; }
.nav-item { position: relative; display: inline-block; vertical-align: middle; }
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link { background: rgba(60,44,20,.08); color: var(--header-ink); }
.nav-item .caret { font-size: 9px; opacity: .5; line-height: 1; transition: transform .15s; }
.nav-item:hover .caret,
.nav-item:focus-within .caret { transform: rotate(180deg); }

.nav-drop {
  display: none;
  position: absolute; left: 0; top: 100%; z-index: 80;
  margin-top: 6px; padding: 9px;
  min-width: 254px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 2px 6px rgba(28,26,23,.05), 0 20px 44px -24px rgba(28,26,23,.45);
}
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop { display: grid; }
.nav-drop-all {
  grid-column: 1 / -1;
  margin-bottom: 4px !important;
  padding: 7px 9px !important;
  border-radius: 6px !important;
  background: var(--brand-soft);
  color: var(--brand) !important;
  font-weight: 600;
}
.nav-drop-all:hover { background: #fbe7cf; text-decoration: none; }
.nav-drop a {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 6px 9px; border-radius: 6px;
  font-size: 13px; color: var(--ink-2); white-space: nowrap;
}
.nav-drop a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.nav-drop .n { font-size: 11px; color: #b0b0b0; font-variant-numeric: tabular-nums; }

/* 分类页的子分类标签 */
.subcat-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin: 0 0 16px;
}
.subcat-label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.subcat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; padding: 5px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.subcat:hover { border-color: #e5b98a; background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.subcat .n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ========== 面包屑 ========== *//* ========== 面包屑 ========== */
/* 面包屑：白色圆角框 */
.crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1px;
  width: auto; max-width: none;
  margin: 2px 0 16px;
  padding: 7px 14px;
  font-size: 13px; line-height: 1.6; color: var(--muted);
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(28,26,23,.02);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-2); }
.crumbs .sep { margin: 0 5px; color: #c6c6c6; }
.crumbs > span:last-child { color: var(--ink-2); }

/* ========== 布局 ========== */
.site-main { padding: 18px 0 20px; }
.layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 30px; }
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0,1fr) 312px; }
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ========== 首页 Hero ========== */
.hero {
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-radius: var(--radius);
  padding: 18px 30px 22px;   /* 顶部 26→18，底部 24→22，合计压 10px */
  color: var(--ink);
  margin-bottom: 22px;
  box-shadow:
    0 1px 2px rgba(28,26,23,.05),
    0 6px 14px -8px rgba(28,26,23,.10),
    0 20px 40px -24px rgba(28,26,23,.38);
}
.hero h1 { margin: 0 0 8px; font-size: 25px; letter-spacing: -.02em; color: var(--ink); }
.hero p { margin: 0 0 15px; color: var(--muted); font-size: 14px; max-width: 720px; line-height: 1.6; }
.hero .search-form input[type="search"] {
  width: min(420px, 58vw); height: 38px;
  background: transparent; color: var(--ink);
  border: 1px solid #dedede; border-right: 0;
  border-radius: 8px 0 0 8px; font-size: 15px;
  transition: border-color .15s, background .15s;
}
.hero .search-form input[type="search"]::placeholder { color: #9e9e9e; }
.hero .search-form input[type="search"]:focus {
  border-color: var(--accent);
  background: #fcfcfc;
}
.hero .search-form button { height: 38px; border-radius: 0 8px 8px 0; font-size: 14.5px; padding: 0 20px; }
.hero-stats { margin-top: 12px; font-size: 12.5px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats b { color: var(--brand); font-variant-numeric: tabular-nums; }

/* ========== 首页：按大类聚合 ========== */
.home-sections { display: block; }
.home-block { margin-bottom: 18px; overflow: hidden; }
.home-block-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 22px; border-bottom: 1px solid var(--line);
}
.home-block-head h2 { margin: 0; font-size: 17.5px; }
.home-block-head h2 a { color: var(--ink); }
.home-block-head h2 a:hover { color: var(--brand-2); text-decoration: none; }
.home-block-head .cnt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.home-block-head .more { margin-left: auto; font-size: 13px; color: var(--brand-2); white-space: nowrap; }
.home-list {
  list-style: none; margin: 0; padding: 8px 22px 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px;
}
.home-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 7px 0; border-bottom: 1px dashed #e8e8e8;
}
.home-list li a {
  font-size: 14px; line-height: 1.6; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.home-list li a:hover { color: var(--brand-2); }
.home-list time { flex: 0 0 auto; font-size: 11.5px; color: #b0b0b0; font-variant-numeric: tabular-nums; }
.home-subs { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 22px 18px; }
.home-subs a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; padding: 4px 11px; border-radius: 999px;
  background: #fafafa; border: 1px solid var(--line); color: var(--ink-2);
}
.home-subs a:hover { border-color: #e5b98a; background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.home-subs .n { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ========== 区块标题 ========== */
.section { margin-bottom: 26px; }
.section:last-child { margin-bottom: 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin: 0 0 14px;
}
.section-head h2 {
  margin: 0; font-size: 19px; display: flex; align-items: center; gap: 9px;
}
.section-head h2::before,
.section-head h1.page-title::before {
  content: ""; width: 4px; height: 17px; background: var(--accent); border-radius: 2px;
}
.section-head h1.page-title {
  margin: 0; font-size: 19px; line-height: 1.45; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 9px; color: var(--ink);
}
.section-head .more { font-size: 13.5px; color: var(--muted); }

/* ========== 分类网格 ========== */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 10px;
}
.cat-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 15px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font-size: 14.5px; font-weight: 600;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.cat-card:hover {
  border-color: #e5b98a; background: var(--brand-soft);
  color: var(--brand); text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 8px 20px -14px rgba(138,58,12,.5);
}
.cat-card .count {
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f2f2f2; border-radius: 999px; padding: 2px 8px; flex: 0 0 auto;
}
.cat-card:hover .count { background: #fff; color: var(--brand-2); }

/* ========== 文章列表 ========== */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { padding: 19px 20px; border-bottom: 1px solid var(--line); transition: background .15s; }
.post-item:hover { background: #fcfcfc; }
.post-item:last-child { border-bottom: 0; }
.post-item h2, .post-item h3 { margin: 0 0 7px; font-size: 18.5px; font-weight: 700; letter-spacing: -.01em; }
.post-item h2 a, .post-item h3 a { color: var(--ink); }
.post-item h2 a:hover, .post-item h3 a:hover { color: var(--brand-2); text-decoration: none; }
.post-meta {
  font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap;
  align-items: center; gap: 10px;
}
.post-meta a { color: var(--brand-2); }
.post-meta .dot { color: #cfcfcf; }

/* 同类文章：标题左、时间右，字号与站内其它列表一致 */
.related-list { padding: 4px 20px 10px; }
.related-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px dashed #e8e8e8;
}
.related-list li:last-child { border-bottom: 0; }
.related-list li > a { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.related-list li > a:hover { color: var(--brand-2); }
.related-list li time {
  flex: 0 0 auto; font-size: 12px; color: #b0b0b0;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.post-excerpt {
  margin: 8px 0 0; font-size: 14.5px; line-height: 1.8; color: var(--ink-2);
}

/* ========== 分页 ========== */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 22px 0 4px; }
.pager a, .pager span {
  min-width: 36px; height: 36px; padding: 0 11px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--ink-2); font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: #e5b98a; color: var(--brand-2); text-decoration: none; background: var(--brand-soft); }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pager .dots { border: 0; background: transparent; color: var(--muted); }

/* ========== 文章详情 ========== */
.article-head { padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.article-head h1 { margin: 0 0 12px; font-size: 27px; line-height: 1.42; letter-spacing: -.02em; }
.entry-content { padding: 24px 26px 28px; font-size: 16.5px; line-height: 1.95; color: #2a2a2a; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.05em; }
.entry-content img {
  max-width: 100%; height: auto; display: block; margin: 20px auto;
  padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2 {
  font-size: 20px; margin: 1.7em 0 .7em; padding-left: 12px;
  border-left: 4px solid var(--accent);
}
.entry-content h3 { font-size: 17.5px; margin: 1.5em 0 .6em; color: var(--brand); }
.entry-content h4 { font-size: 16px; margin: 1.3em 0 .5em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.05em; padding-left: 1.5em; }
.entry-content li { margin: .3em 0; }
.entry-content blockquote {
  margin: 1.2em 0; padding: 12px 16px; border-left: 4px solid var(--accent);
  background: #f5f5f5; color: #3a3a3a; border-radius: 0 8px 8px 0;
}
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14.5px;
  display: block; overflow-x: auto;
}
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.entry-content th { background: #f5f5f5; font-weight: 700; }
.entry-content pre {
  background: #1c1a17; color: #e6dfd3; padding: 14px 16px; border-radius: 8px;
  overflow-x: auto; font-size: 13.5px; line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content iframe { max-width: 100%; }

/* 文章底部导航 */
.article-foot { padding: 18px 26px 22px; border-top: 1px solid var(--line); }
.nav-links-post { display: grid; gap: 10px; }
@media (min-width: 720px) { .nav-links-post { grid-template-columns: 1fr 1fr; } }
.nav-links-post a {
  display: block; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 9px; background: #fafafa; font-size: 14px; color: var(--ink-2);
  transition: border-color .15s, background .15s;
}
.nav-links-post a:hover { border-color: #e5b98a; color: var(--brand-2); text-decoration: none; background: var(--brand-soft); }
.nav-links-post .label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.nav-links-post .next { text-align: right; }

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag-list a {
  font-size: 12.5px; padding: 4px 10px; border-radius: 999px;
  background: #f2f2f2; color: var(--ink-2);
}
.tag-list a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }

/* ========== 侧栏 ========== */
.sidebar { min-width: 0; }
@media (min-width: 1000px) { .sidebar-inner { position: sticky; top: 84px; } }
.widget { padding: 16px 18px; margin-bottom: 16px; }
.widget h3 {
  margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px;
}
.widget h3::before { content: ""; width: 3px; height: 14px; background: var(--accent); border-radius: 2px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px dashed #e8e8e8; font-size: 14px; }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.widget li a:hover { color: var(--brand-2); }
.widget li .n { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }

/* 本分类最热：带序号 */
.hot-list { list-style: none; margin: 0 0 10px; padding: 0; counter-reset: hot; }
.hot-list li {
  counter-increment: hot;
  display: flex; gap: 8px; align-items: baseline;
  padding: 6px 0; border-bottom: 1px dashed #e8e8e8; font-size: 13.5px;
}
.hot-list li:last-child { border-bottom: 0; }
.hot-list li::before {
  content: counter(hot);
  flex: 0 0 18px; font-size: 11px; color: #b8b8b8;
  font-variant-numeric: tabular-nums; text-align: right;
}
.hot-list li a { color: var(--ink-2); line-height: 1.55; }
.hot-list li a:hover { color: var(--brand-2); }
.hot-list li:nth-child(-n+3)::before { color: var(--accent); font-weight: 700; }
.widget-more {
  display: block; text-align: center; font-size: 12.5px;
  padding: 8px 0 1px; border-top: 1px solid var(--line);
  color: var(--brand-2);
}
.widget-more:hover { color: var(--brand); text-decoration: none; }

/* ========== 空状态 ========== */
.empty { padding: 40px 24px; text-align: center; color: var(--muted); }

/* ========== 页脚 ========== */
.site-footer {
  background: transparent;   /* 无色，透出页面底色 */
  color: var(--ink-2);
  border-top: 0;
  margin-top: 0; padding: 16px 0 0; font-size: 13.5px;
}
.footer-cats {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 26px;
}
.footer-cats a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-2); font-size: 13px;
  transition: border-color .12s, background .12s, color .12s;
}
.footer-cats a:hover { border-color: #e5b98a; background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.footer-cats .n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.footer-cats a:hover .n { color: var(--brand-2); }
.footer-bottom {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--brand); }
.footer-bottom .sep { margin: 0 8px; color: #c6c6c6; }
.footer-bottom .beian-sep { margin: 0 6px; color: #c6c6c6; }
.footer-bottom .icp { white-space: nowrap; }
.footer-bottom .icp:hover { color: var(--brand-2); }

/* ========== 响应式 ========== */
@media (max-width: 1080px) {
  .nav-link { font-size: 13.5px; padding: 8px 8px; }
}
@media (max-width: 900px) {
  .nav-main {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-main::-webkit-scrollbar { display: none; }
  .nav-link { font-size: 13px; padding: 7px 7px; }
  .nav-drop {
    position: fixed; left: 10px; right: 10px; top: 66px;
    min-width: 0; width: auto; max-height: 64vh; overflow: auto;
  }
}
@media (max-width: 760px) {
  .home-list { grid-template-columns: 1fr; padding: 6px 16px 12px; }
  .home-block-head { padding: 13px 16px; }
  .home-subs { padding: 0 16px 16px; }
}
@media (max-width: 640px) {
  .header-inner { height: 50px; padding: 0 14px; }
  .brand-logo { height: 20px; }
  .brand { font-size: 16.5px; }
  .brand-sub { display: none; }
  .header-search { display: none; }
  .hero { padding: 20px 16px 18px; }
  .hero h1 { font-size: 21px; }
  .hero .search-form input[type="search"] { width: 62vw; }
  .post-item { padding: 16px 15px; }
  .post-item h2, .post-item h3 { font-size: 17px; }
  .article-head { padding: 18px 16px 14px; }
  .article-head h1 { font-size: 21px; }
  .entry-content { padding: 18px 16px 22px; font-size: 16px; line-height: 1.9; }
  .article-foot { padding: 16px; }
  .pager a, .pager span { min-width: 32px; height: 32px; font-size: 13px; }
}

/* ========== 列表项：首图缩略图布局 ========== */
.post-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.post-thumb {
  flex: 0 0 180px; width: 180px; height: 122px;
  display: block; position: relative;
  border-radius: 9px; overflow: hidden;
  background: #f4f4f4;
  border: 1px solid var(--line);
}
.post-thumb img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center top;
  transition: transform .25s ease;
}
.post-item:hover .post-thumb img { transform: scale(1.045); }
.post-thumb--none {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fafafa 0%, #eeeeee 100%);
  color: #b9b9b9;
}
.post-thumb--none svg { width: 34px; height: 34px; }
.post-body { flex: 1 1 auto; min-width: 0; }
.post-body h2 { margin: 0 0 6px; }

@media (max-width: 640px) {
  .post-item { gap: 12px; padding: 14px 15px; }
  .post-thumb { flex: 0 0 104px; width: 104px; height: 76px; border-radius: 8px; }
  .post-thumb--none svg { width: 24px; height: 24px; }
  .post-body h2 { font-size: 15.5px; line-height: 1.5; }
  .post-excerpt { display: none; }
}
