/*
Theme Name: HandsOn GQS
Theme URI: https://example.com/
Author: HandsOn
Author URI: https://example.com/
Description: 由 demo/55 静态 HTML 模板转换的 WordPress 主题。AI 工具 + 内容运营方法论站点：首页 hero 与栏目卡、分类/归档列表页、文章页（含正文 TOC 与相关阅读）、页面模板、侧栏小工具。样式全部外置，图标为内联 Tabler SVG（MIT）。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gqs
Requires PHP: 7.4
Tags: blog, two-columns, responsive-layout, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   上手手册 HandsOn — AI 工具与内容运营方法论
   UI 体系参考 demo/38/g（container-xl / site-nav / section-head / feature /
   f-icon），主色由红改为 indigo，贴合 AI 与内容创作主题。
   ========================================================================== */

/* --- 1. tokens --------------------------------------------------------- */
:root {
  --primary: #4f46e5;
  --primary-d: #4338ca;
  --primary-l: #eef2ff;
  --primary-ll: #f5f7ff;
  --gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%);
  --gradient-soft: linear-gradient(135deg, #eef2ff 0%, #f7f8ff 100%);
  --remind: #f59e0b;
  --remind-l: #fff7ed;
  --ok: #0d9488;
  --ok-l: #ecfdf5;

  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #1a2733;
  --muted: #6b7a90;
  --border: #e6edf5;
  --dark: #1e1b4b;
  --dark-2: #312e81;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(27, 46, 75, .06), 0 1px 3px rgba(27, 46, 75, .08);
  --shadow: 0 4px 14px rgba(27, 46, 75, .08);
  --shadow-lg: 0 12px 32px rgba(27, 46, 75, .14);

  --maxw: 1320px;
  --nav-h: 62px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* --- 2. reset & base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--text); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::selection { background: var(--primary); color: #fff; }

/* --- 3. layout --------------------------------------------------------- */
.container-xl { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.is-hidden { display: none; }

.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-head { margin-bottom: 26px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.section-title .ico { font-size: 23px; color: var(--primary); }
.section-desc { font-size: 14.5px; color: var(--muted); margin-top: 6px; max-width: 46em; }
.section-more { margin-left: auto; font-size: 13.5px; font-weight: 600; }

.layout-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

/* 侧栏固定跟随：主列滚动时侧栏留在视口内（"跟着左侧内容动"）。
   始终 sticky 跟随；仅在「宽屏 + 视口偏矮、侧栏整体高于可视区」时，
   保留内部滚动兜底（侧栏仍然跟随，不改为静态），并把滚动条加宽变明显，
   避免"底部内容被切掉却看不出可滚"。窄屏（≤1000px）单列堆叠时由
   下方媒体查询改回静态、整列完整显示。 */
.layout-2 > aside {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  align-self: start;
}
@media (min-width: 1001px) and (max-height: 800px) {
  .layout-2 > aside {
    max-height: calc(100vh - var(--nav-h) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    padding-right: 6px;
  }
  .layout-2 > aside::-webkit-scrollbar { width: 8px; }
  .layout-2 > aside::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
  .layout-2 > aside::-webkit-scrollbar-thumb:hover { background: var(--muted); }
}
/* 收紧分栏页侧栏内部纵向节奏，把自然高度压到能塞进常见笔记本视口，
   从而在大多数视口高度下 sticky 跟随时整列完整可见、无需裁切。
   仅作用于 .layout-2 > aside，不动全局组件样式。 */
.layout-2 > aside .widget { padding: 14px; margin-bottom: 12px; }
.layout-2 > aside .widget-title { margin-bottom: 9px; }
.layout-2 > aside .mini-list { gap: 8px; }
.layout-2 > aside .mini-title { line-height: 1.35; }
.layout-2 > aside .mini-meta { margin-top: 2px; }
.layout-2 > aside .subscribe-box { padding: 14px; }
.layout-2 > aside .subscribe-title { margin-bottom: 4px; }
.layout-2 > aside .subscribe-text { margin-bottom: 10px; }
.layout-2 > aside .subscribe-form { gap: 6px; }
/* 标签云 widget 也收紧，避免 page/archive 侧栏因多出该组件而在常见笔记本高度被裁切 */
.layout-2 > aside .tag-cloud { gap: 5px; }
.layout-2 > aside .tag { padding: 2px 7px; font-size: 11px; }

/* --- 4. icons ---------------------------------------------------------- */
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { font-size: 15px; }
.ico-md { font-size: 18px; }
.ico-lg { font-size: 24px; }
.ico-xl { font-size: 34px; }

/* --- 5. buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-d); color: #fff; box-shadow: var(--shadow); }

.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.btn-light { background: #fff; color: var(--primary-d); }
.btn-light:hover { background: var(--primary-l); color: var(--primary-d); text-decoration: none; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; }
.link-more:hover { gap: 10px; }

/* --- 6. nav ------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-nav .container-xl {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--nav-h);
}
.site-nav-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--gradient);
  color: #fff;
  font-size: 19px;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.brand-cn {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
}

.site-nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav-links > a, .nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  font-size: 14.5px;
  font-weight: 600;
  color: #48596b;
  border-radius: var(--radius-sm);
  transition: background .16s ease, color .16s ease;
}
.site-nav-links a:hover { background: var(--primary-l); color: var(--primary); text-decoration: none; }
.site-nav-links a.is-current { background: var(--primary-l); color: var(--primary); }
.nav-dropdown > a .ico { font-size: 15px; }

.nav-dropdown { position: relative; }
.nav-dd-menu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.nav-dropdown.is-open .nav-dd-menu { display: block; }
.nav-dd-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.nav-dd-menu a:hover { background: var(--primary-l); color: var(--primary); text-decoration: none; }
.nav-dd-menu .ico { font-size: 17px; color: var(--primary); }

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
}
.nav-search input {
  width: 130px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
}
.nav-search input::placeholder { color: #9aa8b8; }
.nav-toggle { display: none; }

/* --- 7. hero ----------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 68%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 62px 0 58px; max-width: 780px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-badge .ico { font-size: 15px; }
.hero-title { font-size: clamp(28px, 4vw, 44px); color: #fff; margin-bottom: 14px; }
.hero-desc { font-size: 17px; color: rgba(255, 255, 255, .86); margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-stat-value { font-size: 24px; font-weight: 700; line-height: 1.1; }
.hero-stat-label { font-size: 12.5px; color: rgba(255, 255, 255, .72); margin-top: 3px; }

/* --- 8. category cards -------------------------------------------------- */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-l);
  text-decoration: none;
}
.cat-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-l);
  color: var(--primary);
  font-size: 23px;
}
.cat-name { font-size: 15px; font-weight: 700; color: var(--text); }
.cat-desc { font-size: 12.5px; color: var(--muted); }
.cat-count { font-size: 12px; color: var(--primary); font-weight: 600; }

/* --- 9. feature --------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.f-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-l);
  color: var(--primary);
  font-size: 23px;
  margin-bottom: 16px;
}
.f-title { font-size: 16px; margin-bottom: 7px; }
.f-text { font-size: 13.5px; color: var(--muted); }

/* --- 10. post cards ----------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.posts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.post {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.post:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-thumb {
  display: grid;
  place-items: center;
  height: 148px;
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 40px;
  border-bottom: 1px solid var(--border);
}
.post-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.post-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .ico { font-size: 14px; }
.post-title { font-size: 16.5px; line-height: 1.45; margin-bottom: 8px; }
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--primary); text-decoration: none; }
.post-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-l);
  border-radius: 999px;
}
.tag:hover { background: var(--primary); color: #fff; text-decoration: none; }
.tag-line { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.tag-line:hover { border-color: var(--primary); color: var(--primary); background: transparent; }

/* list 版式 */
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease;
}
.post-row:hover { box-shadow: var(--shadow); }
.post-row-icon {
  display: grid;
  place-items: center;
  height: 92px;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 32px;
}
.post-row-title { font-size: 17px; margin-bottom: 6px; }
.post-row-title a { color: var(--text); }
.post-row-title a:hover { color: var(--primary); text-decoration: none; }

/* --- 11. page header --------------------------------------------------- */
.page-head {
  padding: 40px 0 34px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.crumbs .ico { font-size: 14px; }
.page-title { font-size: clamp(26px, 3.4vw, 36px); margin: 12px 0 10px; }
.page-desc { font-size: 16px; color: var(--muted); max-width: 46em; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.page-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.page-meta .ico { font-size: 15px; color: var(--primary); }

/* --- 12. article -------------------------------------------------------- */
.article-wrap { padding: 36px 0 56px; }
.article {
  padding: 30px 34px 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.article-title { font-size: clamp(24px, 3vw, 34px); margin: 14px 0 14px; }
.article-lead { font-size: 17px; color: var(--muted); padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 13px; color: var(--muted); }
.article-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .ico { font-size: 15px; color: var(--primary); }

.article-body { font-size: 16.5px; line-height: 1.86; color: #33404f; }
.article-body h2 {
  font-size: 23px;
  margin: 40px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text);
  scroll-margin-top: 88px;
}
.article-body h3 { font-size: 18.5px; margin: 28px 0 10px; color: var(--text); scroll-margin-top: 88px; }
.article-body p { margin-bottom: 1.15em; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body ul { margin: 0 0 1.25em; }
.article-body ul li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--primary);
}
.article-body ol { margin: 0 0 1.25em; counter-reset: st; }
.article-body ol li { position: relative; padding-left: 30px; margin-bottom: 10px; counter-increment: st; }
.article-body ol li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: .2em;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: var(--primary-l);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 21px;
}
.article-body blockquote {
  margin: 26px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--primary-ll);
  color: var(--text);
  font-size: 16px;
}
.article-body blockquote p { margin-bottom: .4em; }
.article-body cite { font-size: 13px; font-style: normal; color: var(--muted); }

/* 单页/正文内容区：补齐 ul/li 之外的内容元素样式 */
.article-body em { color: var(--text); font-style: italic; }
.article-body code {
  font-family: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
  font-size: .9em;
  padding: .12em .42em;
  border-radius: 5px;
  background: var(--primary-l);
  color: var(--primary-d);
  word-break: break-word;
}
.article-body pre {
  margin: 24px 0;
  padding: 16px 18px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
.article-body pre code {
  padding: 0;
  background: none;
  color: #dbe3ff;
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 8px 0 16px;
}
.article-body hr {
  border: 0;
  height: 1px;
  margin: 32px 0;
  background: var(--border);
}

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 20px;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--primary-ll);
  font-size: 14.5px;
}
.callout .ico { font-size: 22px; color: var(--primary); }
.callout-title { font-weight: 700; margin-bottom: 4px; color: var(--text); }
.callout-warn { background: var(--remind-l); border-color: #fde68a; }
.callout-warn .ico { color: var(--remind); }

.code {
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #1e1b4b;
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: rgba(0, 0, 0, .3);
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
}
.code-copy { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .8); font-size: 12px; }
.code-copy:hover { color: #fff; }
.code-copy .ico { font-size: 15px; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.code code { font-size: 13.5px; line-height: 1.75; color: #dbe3ff; white-space: pre; }

.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-tags .tags-label { font-size: 13px; font-weight: 700; color: var(--muted); }

.author-box {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px;
  margin-top: 26px;
  background: var(--primary-ll);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.author-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 25px;
}
.author-name { font-size: 15.5px; font-weight: 700; }
.author-bio { font-size: 13.5px; color: var(--muted); }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}
.post-nav a:hover { border-color: var(--primary); text-decoration: none; }
.post-nav .pn-label { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.post-nav .pn-label .ico { font-size: 14px; }
.post-nav .pn-title { font-weight: 600; color: var(--text); }

/* --- 13. sidebar widgets ------------------------------------------------ */
.widget {
  padding: 20px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.widget:last-child { margin-bottom: 0; }
.widget-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; margin-bottom: 14px; }
.widget-title .ico { font-size: 18px; color: var(--primary); }

/* 侧栏整体已 sticky，目录不再单独 sticky（嵌套会失效） */
.toc-list { display: flex; flex-direction: column; }
.toc-link {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--border);
  font-size: 13.5px;
  color: var(--muted);
  transition: color .16s ease, border-color .16s ease;
}
.toc-link:hover { color: var(--text); text-decoration: none; }
.toc-link.is-active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }

/* 文章内联目录：从右栏移入正文，合理排版为文首卡片 */
.article-toc {
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.article-toc-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; color: var(--text);
  margin: 0 0 10px;
}
.article-toc-title .ico { font-size: 18px; color: var(--primary); }
.article-toc .toc-list { gap: 2px; }
.article-toc .toc-link { padding: 6px 0 6px 12px; font-size: 13.5px; }

.mini-list { display: flex; flex-direction: column; gap: 13px; }
.mini-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 11px; align-items: start; }
.mini-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--primary-l);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
}
.mini-title { font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.mini-title a { color: var(--text); }
.mini-title a:hover { color: var(--primary); text-decoration: none; }
.mini-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

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

.stat-list { display: flex; flex-direction: column; gap: 11px; }
.stat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.stat-row dt { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin: 0; }
.stat-row dt .ico { font-size: 16px; color: var(--primary); }
.stat-row dd { margin: 0; font-weight: 700; }

.subscribe-box {
  padding: 20px;
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.subscribe-title { font-size: 16.5px; color: #fff; margin-bottom: 6px; }
.subscribe-text { font-size: 13px; color: rgba(255, 255, 255, .84); margin-bottom: 14px; }
.subscribe-form { display: flex; flex-direction: column; gap: 8px; }
.subscribe-form input {
  height: 40px;
  padding: 0 13px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  outline: none;
}

/* --- 14. topic page ---------------------------------------------------- */
.topic-hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.topic-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -180px;
  width: 620px;
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, .38), transparent 70%);
  pointer-events: none;
}
.topic-inner { position: relative; z-index: 1; padding: 52px 0 46px; }
.topic-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.topic-title { font-size: clamp(26px, 3.6vw, 40px); color: #fff; margin-bottom: 12px; }
.topic-desc { font-size: 16.5px; color: rgba(255, 255, 255, .82); max-width: 44em; }
.topic-facts { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); }
.topic-fact-value { font-size: 22px; font-weight: 700; }
.topic-fact-label { font-size: 12.5px; color: rgba(255, 255, 255, .7); }

.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topic-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #48596b;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.topic-nav a:hover { background: var(--primary-l); border-color: var(--primary-l); color: var(--primary); text-decoration: none; }
.topic-nav .ico { font-size: 15px; }

.topic-group { padding: 34px 0 8px; border-bottom: 1px solid var(--border); }
.topic-group:last-of-type { border-bottom: 0; }
.topic-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.topic-group-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.topic-group-title { font-size: 19px; }
.topic-group-desc { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.tl-item:last-child { border-bottom: 0; }
.tl-date { font-size: 13px; color: var(--primary); font-weight: 700; padding-top: 2px; }
.tl-title { font-size: 15.5px; font-weight: 600; }
.tl-title a { color: var(--text); }
.tl-title a:hover { color: var(--primary); text-decoration: none; }
.tl-desc { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* --- 14b. 专题页多版式区块 ---------------------------------------------- */
/* ① 要点卡网格 */
.t-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.t-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.t-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-l);
  color: var(--primary);
  font-size: 21px;
  margin-bottom: 13px;
}
.t-card-title { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; }
.t-card-text { font-size: 13px; color: var(--muted); }

/* ② 对照表 */
.t-table { margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.t-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  background: var(--primary-l);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-d);
}
.t-table-head > span { padding: 11px 16px; }
.t-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}
.t-table-row > span { padding: 12px 16px; display: flex; align-items: center; gap: 7px; }
.t-table-row > span:first-child { font-weight: 600; }
.t-yes { color: var(--ok); background: var(--ok-l); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.t-no { color: var(--muted); background: var(--bg); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; }

/* ③ 流程步骤 */
.t-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.t-step {
  position: relative;
  padding: 20px 20px 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.t-step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 11px;
}
.t-step-title { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; }
.t-step-text { font-size: 13px; color: var(--muted); }

/* ④ 清单卡 */
.t-check {
  padding: 22px 24px;
  margin-bottom: 24px;
  background: var(--primary-ll);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.t-check-title { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; margin-bottom: 14px; }
.t-check-title .ico { font-size: 19px; color: var(--primary); }
.t-check-list { display: flex; flex-direction: column; gap: 10px; }
.t-check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.t-check-list .ico { font-size: 18px; color: var(--ok); flex: none; margin-top: 2px; }

/* ⑤ FAQ 折叠 */
.t-faq { margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.t-faq-item + .t-faq-item { border-top: 1px solid var(--border); }
.t-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
}
.t-faq-q:hover { color: var(--primary); }
.t-faq-q .ico { font-size: 19px; color: var(--muted); flex: none; transition: transform .2s ease; }
.t-faq-item.is-open .t-faq-q .ico { transform: rotate(180deg); }
.t-faq-a { display: none; padding: 0 20px 18px; font-size: 14px; color: var(--muted); }
.t-faq-item.is-open .t-faq-a { display: block; }

/* ⑥ 引用卡 */
.t-quote {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 22px 24px;
  margin-bottom: 24px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
}
.t-quote .ico { font-size: 26px; color: rgba(255, 255, 255, .6); }
.t-quote-text { font-size: 16px; line-height: 1.7; }
.t-quote-src { font-size: 12.5px; color: rgba(255, 255, 255, .62); margin-top: 8px; }

/* --- 15. archive -------------------------------------------------------- */
.arch-group { margin-bottom: 30px; }
.arch-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--primary);
}
.arch-head .ico { font-size: 19px; color: var(--primary); }
.arch-title { font-size: 18px; }
.arch-count { margin-left: auto; font-size: 13px; color: var(--muted); }

/* --- 16. pager ---------------------------------------------------------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 30px 0 4px; }
.pager a, .pager span {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.pager a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pager .is-current { background: var(--gradient); color: #fff; border-color: transparent; }

/* --- 17. cta band ------------------------------------------------------- */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 34px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cta-title { font-size: 21px; margin-bottom: 6px; }
.cta-desc { font-size: 14.5px; color: var(--muted); max-width: 40em; }

/* --- 18. footer --------------------------------------------------------- */
.site-foot {
  margin-top: 56px;
  background: var(--dark);
  color: rgba(255, 255, 255, .74);
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding: 48px 0 36px;
}
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.foot-brand .brand-logo { background: var(--gradient); }
.foot-brand .brand-name { color: #fff; }
.foot-brand .brand-cn { color: rgba(255, 255, 255, .6); }
.foot-text { font-size: 14px; max-width: 34em; margin-bottom: 18px; }
.foot-title { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.foot-list { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.foot-list a { color: rgba(255, 255, 255, .72); }
.foot-list a:hover { color: #fff; }
.foot-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.social { display: flex; gap: 8px; }
.social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  transition: background .16s ease, color .16s ease;
}
.social a:hover { background: var(--primary); color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .6);
}
.foot-bottom .container-xl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* --- 19. back to top ---------------------------------------------------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 20px;
  color: #fff;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { box-shadow: var(--shadow-lg); }

/* --- 20. responsive ----------------------------------------------------- */
@media (max-width: 1180px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}

@media (max-width: 1000px) {
  .layout-2 { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 单列堆叠时取消固定，否则侧栏会一直悬在视口里 */
  .layout-2 > aside { position: static; max-height: none; overflow: visible; }
  .nav-search { display: none; }
  .site-nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .nav-dropdown.is-open .nav-dd-menu { display: none; }
}

@media (max-width: 900px) {
  .site-nav.show-menu .site-nav-links {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.show-menu .site-nav-links > a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15.5px; }
  .site-nav.show-menu .nav-dropdown > a { width: 100%; }
  .site-nav.show-menu .nav-dropdown.is-open .nav-dd-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 6px 0;
  }
}

@media (max-width: 760px) {
  .container-xl { padding: 0 18px; }
  .section { padding: 40px 0; }
  .hero-inner { padding: 44px 0 40px; }
  .hero-stats { gap: 22px; }
  .posts, .posts-2 { grid-template-columns: minmax(0, 1fr); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .article { padding: 22px 18px 26px; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .cta-band { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .post-row { grid-template-columns: minmax(0, 1fr); }
  .post-row-icon { height: 110px; }
}

@media (max-width: 480px) {
  .brand-cn { display: none; }
  .hero-cta .btn { width: 100%; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-cats { grid-template-columns: 1fr; }
}

/* --- 21. 视觉精修 beautify pass -------------------------------------- */

/* 导航：滚动后玻璃态 */
.site-nav { transition: box-shadow .25s ease, background .25s ease; }
.site-nav.scrolled {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 6px 22px rgba(27, 46, 75, .12);
}

/* 按钮：主按钮渐变 + 悬浮彩色光晕 */
.btn-primary { background: var(--gradient); border: 0; }
.btn-primary:hover { background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%); box-shadow: 0 10px 24px rgba(79, 70, 229, .35); }
.btn-ghost:hover { box-shadow: 0 6px 16px rgba(79, 70, 229, .12); }

/* 卡片悬浮：彩色光晕 + 顶部内嵌强调条（box-shadow 内嵌，不影响布局/transform） */
.cat-card:hover, .feature:hover, .post:hover, .t-card:hover, .t-step:hover, .widget:hover {
  box-shadow: 0 16px 34px rgba(79, 70, 229, .16), inset 0 3px 0 0 var(--primary);
}

/* 缩略图/图标块：柔和径向高光，增加质感 */
.post-thumb, .post-row-icon {
  background-image: radial-gradient(circle at 28% 22%, rgba(79, 70, 229, .12), transparent 62%), var(--gradient-soft);
}

/* 区块标题前的小色条 */
.section-title { position: relative; }
.section-title::before {
  content: "";
  width: 4px; height: 22px; border-radius: 3px;
  background: var(--gradient);
  flex: none;
}

/* 区块头：标题与"更多"链接同行（more 靠右），描述独占下一行 */
.section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.section-head .section-desc { width: 100%; }

/* 滚动进场：渐显上移（用 translate 单独属性，避免与卡片 hover 的 transform 冲突） */
.reveal-ready .reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .3, 1); }
.reveal-ready .reveal.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; translate: 0 0; transition: none; }
}

/* hero：第二层光斑 + 细点纹理，增加纵深 */
.hero::before {
  content: "";
  position: absolute;
  left: -140px; bottom: -160px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 68%);
  pointer-events: none;
}
.hero {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1.5px),
    var(--gradient);
  background-size: 24px 24px, auto;
}

/* CTA 悬浮微光 */
.cta-band { transition: box-shadow .2s ease, transform .2s ease; }
.cta-band:hover { box-shadow: 0 16px 36px rgba(79, 70, 229, .16); transform: translateY(-2px); }

/* ==========================================================================
   WordPress 适配（静态模板转主题时新增）
   —— 分页、评论、图片对齐、无障碍文本等，全部外置，无内联样式。
   ========================================================================== */

/* 分页：复刻静态模板 .pager 的观感 */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 30px 0 4px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination .page-numbers.current { background: var(--gradient); color: #fff; border-color: transparent; }

/* 无障碍文本 */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: static !important;
  width: auto; height: auto; margin: 0; padding: 8px 12px;
  clip: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}

/* 图片对齐与说明 */
.alignleft { float: left; margin: 4px 20px 12px 0; }
.alignright { float: right; margin: 4px 0 12px 20px; }
.aligncenter { display: block; margin: 12px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption { font-size: 13px; color: var(--muted); margin-top: 6px; text-align: center; }
.article-body img,
.post-thumb img,
.post-row-icon img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* 评论与评论表单 */
.comments-area { margin-top: 30px; }
.comments-title,
.comment-reply-title { font-size: 19px; font-weight: 700; margin: 0 0 14px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.comment-list .children { list-style: none; margin: 14px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
.comment-body {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.comment-author { font-weight: 700; color: var(--text); }
.comment-author img { border-radius: 999px; }
.comment-content { font-size: 14.5px; line-height: 1.75; }
.comment-content p { margin: 0 0 8px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply-link { font-size: 13px; font-weight: 600; }
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.comment-form textarea { min-height: 120px; }
.comment-form .form-submit { margin-top: 12px; }
.comment-form .submit { cursor: pointer; }
.comment-notes,
.logged-in-as,
.form-allowed-tags { font-size: 12.5px; color: var(--muted); }
.comment-awaiting-moderation { font-size: 12.5px; color: var(--remind); }

/* 搜索表单（get_search_form 默认结构） */
.search-form { display: flex; align-items: center; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-field {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.search-form .search-submit { cursor: pointer; }

/* 目录层级缩进 */
.toc-link.toc-level-3 { padding-left: 26px; font-size: 13px; }

/* 头像占位（author-box） */
.author-avatar img { width: 48px; height: 48px; border-radius: 999px; display: block; }
