/* ============================================================
   assets/css/main.css
   ZhaiLong Theme
   ============================================================ */

/* ============================================================
   1. Design Tokens
   ============================================================ */
:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f4f2ee;
  --text: #16181d;
  --text-2: #5a5f6b;
  --text-3: #8b909c;
  --border: #e9e6e0;
  --accent: #e4572e;
  --accent-2: #ff9166;
  --accent-soft: #fdeee9;
  --header-bg: rgba(250, 249, 247, .82);
  --code-bg: #f6f4f0;
  --quote-bg: #faf7f3;
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, .04), 0 2px 8px rgba(20, 20, 30, .04);
  --shadow-md: 0 6px 16px rgba(20, 20, 30, .07), 0 18px 40px rgba(20, 20, 30, .06);
  --max: 1080px;
  --content-w: 760px;
  --toc-w: 240px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", Georgia, "Songti SC", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: #0f1013;
  --surface: #17181d;
  --surface-2: #1e2027;
  --text: #e9e9ec;
  --text-2: #a1a6b3;
  --text-3: #767b88;
  --border: #282a33;
  --accent: #ff6b43;
  --accent-soft: #2a1c17;
  --header-bg: rgba(15, 16, 19, .82);
  --code-bg: #1c1e25;
  --quote-bg: #1a1c22;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .45);
}

/* ============================================================
   2. Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.32; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   3. Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  position: relative;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; flex-shrink: 0; }
.logo img { max-height: 38px; width: auto; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(228, 87, 46, .28);
}
.logo-name { font-size: 17px; letter-spacing: -.01em; }

.nav { margin-left: 12px; display: flex; align-items: center; }
.nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav li { margin: 0; }
.nav a {
  padding: 8px 14px; border-radius: 10px;
  font-size: 16px; font-weight: 500;
  color: var(--text-2); transition: .2s; display: block;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav .current-menu-item > a,
.nav .current_page_item > a { color: var(--text); font-weight: 600; background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  color: var(--text-2); transition: .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.ico-moon { display: none; }
[data-theme="dark"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: block; }
.menu-btn { display: none; }

.search-drawer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  border-top: 1px solid transparent;
  background: var(--surface);
}
.search-drawer.open {
  max-height: 120px;
  border-top-color: var(--border);
  padding: 16px 0;
}

.search-box {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 8px 0 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  flex: 1; min-width: 240px; max-width: 360px;
  transition: .25s; color: var(--text-3);
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-box input {
  flex: 1; border: 0; outline: none; background: none;
  color: var(--text); font-size: 14.5px; font-family: inherit; min-width: 0;
}
.search-box input::placeholder { color: var(--text-3); }
.search-submit {
  padding: 8px 18px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 600; transition: .2s;
  border: 0; cursor: pointer;
}
.search-submit:hover { background: var(--accent); color: #fff; }
.search-form .search-box { max-width: none; }

/* ============================================================
   4. Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: .25s; white-space: nowrap;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-3); transform: translateY(-2px); }

/* ============================================================
   5. Hero
   ============================================================ */
.hero { padding: 76px 0 64px; position: relative; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.14; letter-spacing: -.035em;
}
.hero-title .hl { color: var(--accent); }
.hero-desc {
  margin-top: 24px; font-size: 17px; line-height: 1.85;
  color: var(--text-2); max-width: 520px;
}
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.profile-card {
  position: relative; width: 100%; max-width: 340px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 38px 28px 26px;
  text-align: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.profile-card::before {
  content: '';
  position: absolute; top: -70px; left: 50%;
  transform: translateX(-50%);
  width: 240px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 87, 46, .3), transparent 70%);
  filter: blur(8px);
}
.profile-avatar {
  position: relative;
  width: 88px; height: 88px; border-radius: 50%;
  margin: 0 auto 16px; object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-card h3 { font-size: 20px; position: relative; }
.profile-role {
  position: relative; font-size: 13px; font-weight: 600;
  color: var(--accent); margin-top: 5px;
}
.profile-bio {
  position: relative; font-size: 14px; color: var(--text-2);
  margin-top: 12px; line-height: 1.75;
}
.profile-stats {
  position: relative; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.profile-stats strong { display: block; font-size: 19px; letter-spacing: -.02em; }
.profile-stats span { font-size: 12px; color: var(--text-3); }

/* ============================================================
   6. Section
   ============================================================ */
.section { padding: 52px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 34px;
}
.section-title { font-size: 26px; letter-spacing: -.025em; }
.section-sub { font-size: 14px; color: var(--text-3); margin-top: 7px; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent); flex-shrink: 0;
}
.link-more:hover { gap: 10px; transition: gap .2s; }

/* ============================================================
   7. Feature
   ============================================================ */
.feature {
  display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  transition: .35s;
}
.feature:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.feature-media {
  position: relative; min-height: 380px;
  background: linear-gradient(135deg, #e8e3db, #d6cfc4);
  overflow: hidden;
}
.feature-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.feature-tag {
  position: absolute; left: 20px; top: 20px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: #16181d;
  font-size: 12px; font-weight: 700;
  backdrop-filter: blur(8px); z-index: 2;
  text-decoration: none;
}
.feature-tag-link { transition: .2s; }
.feature-tag-link:hover { background: var(--accent); color: #fff; }
.feature-body {
  padding: 52px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.feature-body h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35; margin-bottom: 16px;
}
.feature:hover .feature-body h3 { color: var(--accent); }
.feature-body p { font-size: 15px; color: var(--text-2); line-height: 1.8; }
.feature-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 26px; font-size: 13px; color: var(--text-3);
  flex-wrap: wrap;
}

/* ============================================================
   8. Post Grid
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: .3s;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.post-thumb {
  position: relative; aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e3db, #d6cfc4);
}
.post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-cat {
  position: absolute; left: 14px; top: 14px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: #16181d;
  font-size: 12px; font-weight: 600;
  backdrop-filter: blur(8px); z-index: 2;
}
.post-body {
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px; flex: 1;
}
.post-title { font-size: 18px; line-height: 1.48; letter-spacing: -.015em; }
.post-title a:hover { color: var(--accent); }
.post-excerpt {
  font-size: 14.5px; color: var(--text-2); line-height: 1.78;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 8px;
  font-size: 13px; color: var(--text-3);
}
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }

/* ============================================================
   9. Categories
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-card {
  display: flex; align-items: center; gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: .28s;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.cat-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.cat-card strong { display: block; font-size: 15px; }
.cat-card span { font-size: 12.5px; color: var(--text-3); }

/* ============================================================
   10. 紧凑友情链接
   ============================================================ */
.section-links { padding: 32px 0; }
.links-inline-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.links-inline-head h2 {
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 8px;
}
.links-inline-head h2::before {
  content: '';
  width: 4px; height: 14px; border-radius: 2px;
  background: var(--accent);
}
.links-inline-head span { font-size: 13px; color: var(--text-3); }
.links-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.links-inline a {
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-2);
  transition: .22s;
}
.links-inline a:hover {
  background: var(--accent); color: #fff;
  border-color: var(--accent); transform: translateY(-2px);
}

/* ============================================================
   11. 首页底部模块
   ============================================================ */
.section-bottom { padding: 40px 0 56px; }
.bottom-custom {
  padding: 40px 48px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.bottom-custom-head h2 { font-size: 22px; }
.bottom-custom-head p { font-size: 14.5px; color: var(--text-2); margin-top: 8px; }
.bottom-custom-body {
  margin-top: 20px; font-size: 15px; line-height: 1.85; color: var(--text-2);
}
.bottom-custom-body p + p { margin-top: 1em; }
.bottom-custom-body ul,
.bottom-custom-body ol { padding-left: 1.2em; list-style: revert; }
.bottom-custom-body li { margin: .4em 0; }
.bottom-custom-body a { color: var(--accent); }
.bottom-custom-body img { border-radius: 12px; }

.subscribe-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
  padding: 48px; border-radius: 26px;
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #16181d 0%, #241a16 55%, #3d2418 100%);
  color: #fff;
}
.subscribe-card::after {
  content: '';
  position: absolute; right: -60px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 87, 46, .45), transparent 65%);
}
.subscribe-card h2 { font-size: 24px; position: relative; }
.subscribe-card p {
  margin-top: 10px; font-size: 14.5px;
  color: rgba(255, 255, 255, .65); position: relative;
}
.subscribe-form {
  display: flex; gap: 10px;
  flex: 1; min-width: 280px; max-width: 430px;
  position: relative;
}
.subscribe-form input {
  flex: 1; height: 50px; border-radius: 999px;
  padding: 0 22px; font-size: 15px; outline: none;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .09); color: #fff;
  transition: .2s; font-family: inherit; min-width: 0;
}
.subscribe-form input::placeholder { color: rgba(255, 255, 255, .45); }
.subscribe-form input:focus {
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .14);
}
.subscribe-form .btn { background: #fff; color: #16181d; border: 0; }
.subscribe-form .btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.subscribe-form-wrap {
  flex: 1; min-width: 280px; max-width: 430px;
  position: relative; color: #fff;
}
.subscribe-form-wrap input[type="email"] {
  width: 100%; height: 50px; border-radius: 999px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .09); color: #fff; outline: none;
}
.subscribe-form-wrap button,
.subscribe-form-wrap input[type="submit"] {
  margin-top: 10px; padding: 12px 24px; border-radius: 999px;
  background: #fff; color: #16181d; font-weight: 600;
  border: 0; cursor: pointer;
}

/* ============================================================
   12. Page Hero / Filter
   ============================================================ */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -.035em;
}
.page-hero > .container > p {
  margin-top: 14px; font-size: 16px;
  color: var(--text-2); max-width: 560px;
}

/* ============================================================
   13. 面包屑
   ============================================================ */
.crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
  margin-bottom: 16px;
}
.crumb a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-2);
  padding: 3px 8px;
  border-radius: 8px;
  transition: .2s;
  font-weight: 500;
}
.crumb a:hover { color: var(--accent); background: var(--accent-soft); }
.crumb-home svg { opacity: .85; flex-shrink: 0; }
.crumb-sep {
  color: var(--text-3);
  opacity: .45;
  font-size: 14px;
  line-height: 1;
  user-select: none;
  padding: 0 2px;
}
.crumb-current {
  color: var(--text-3);
  padding: 3px 4px;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.filter-bar {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; padding: 22px 0 0;
}
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.filter-tabs a {
  padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2); border: 1px solid transparent; transition: .22s;
}
.filter-tabs a:hover { background: var(--surface-2); color: var(--text); }
.filter-tabs a.active { background: var(--text); color: var(--bg); font-weight: 600; }

/* ============================================================
   14. Layout
   ============================================================ */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  padding: 48px 0 72px;
  align-items: start;
}
.layout-full {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}
.main-col { min-width: 0; }

/* ============================================================
   15. Post List
   ============================================================ */
.post-list { display: flex; flex-direction: column; gap: 26px; }
/* ============================================================
   列表页文章项
   ============================================================ */
.post-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: .3s;
  min-height: 190px;
}
.post-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* 缩略图容器：固定尺寸，强制撑满 */
.post-item-thumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e3db, #d6cfc4);
  width: 100%;
  height: 100%;
  min-height: 190px;
}

/* 有特色图：强制撑满，裁剪多余部分 */
.post-item-thumb img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.post-item:hover .post-item-thumb img {
  transform: scale(1.06);
}

/* 占位符回退：强制撑满 */
.post-item-thumb .thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  overflow: hidden;
}
.post-item-thumb .thumb-fallback span {
  font-size: 48px;
  letter-spacing: -.04em;
  opacity: .85;
  line-height: 1;
}

/* ---------- 右侧正文区：让排版更紧凑协调 ---------- */
.post-item-body {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

/* 分类标签行 */
.post-item-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}


/* 标题：单行显示，超出省略 */
.post-item-title {
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -.018em;
  font-weight: 700;
  margin: 0;
  min-width: 0;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-item-title a {
  color: var(--text);
  transition: color .2s;
}
.post-item-title a:hover {
  color: var(--accent);
}

/* 摘要 */
.post-item-excerpt {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.72;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 元信息行 */
.post-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.post-item-author {
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-item-author img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   16. Pagination
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 48px; flex-wrap: wrap;
}
.pagination .page-numbers,
.pagination a,
.pagination span.page-btn {
  min-width: 42px; height: 42px; padding: 0 15px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 14.5px; font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: .22s;
}
.pagination a:hover {
  color: var(--accent); border-color: var(--accent);
  transform: translateY(-2px);
}
.pagination .page-btn.active,
.pagination .current {
  background: var(--text); color: var(--bg);
  border-color: var(--text); font-weight: 600;
}
.page-dots { color: var(--text-3); padding: 0 4px; }

/* ============================================================
   17. Sidebar / Widgets
   ============================================================ */
.sidebar {
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 92px;
}
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}
.widget-title {
  font-size: 15px; font-weight: 700;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 9px;
}
.widget-title::before {
  content: '';
  width: 4px; height: 15px; border-radius: 2px;
  background: var(--accent);
}

.about-widget { text-align: center; }
.about-widget img,
.about-widget .zl-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 14px;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.about-widget strong { display: block; font-size: 16px; }
.about-widget > span {
  display: block; font-size: 13px;
  color: var(--accent); font-weight: 600; margin-top: 3px;
}
.about-widget p {
  font-size: 13.5px; color: var(--text-2);
  line-height: 1.75; margin-top: 12px;
}

.cat-list li + li { margin-top: 4px; }
.cat-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 10px;
  font-size: 14.5px; color: var(--text-2); transition: .2s;
}
.cat-list a:hover { background: var(--surface-2); color: var(--accent); }
.cat-list .count { font-size: 12.5px; color: var(--text-3); }

.mini-post { display: flex; gap: 12px; padding: 10px 0; }
.mini-post + .mini-post { border-top: 1px solid var(--border); }
.mini-post:hover .mini-title { color: var(--accent); }
.mini-num {
  width: 22px; height: 22px; border-radius: 7px;
  flex-shrink: 0; margin-top: 2px;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700;
  background: var(--surface-2); color: var(--text-3);
}
.mini-post:nth-child(1) .mini-num { background: var(--accent); color: #fff; }
.mini-post:nth-child(2) .mini-num { background: var(--accent-2); color: #fff; }
.mini-post:nth-child(3) .mini-num { background: #ffc4ae; color: #8a2f14; }
.mini-title { font-size: 14px; line-height: 1.55; font-weight: 500; transition: .2s; }
.mini-date { font-size: 12px; color: var(--text-3); margin-top: 5px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 6px 13px; border-radius: 999px;
  font-size: 13px; background: var(--surface-2); color: var(--text-2);
  transition: .22s;
}
.tag-cloud a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.tag-cloud .tag-link {
  padding: 6px 13px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-2);
}
.tag-cloud .tag-link:hover { background: var(--accent); color: #fff; }

/* ============================================================
   18. Thumb Fallback
   ============================================================ /* 缩略图回退：字体跟随容器宽度，不再用 vw */
.thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  overflow: hidden;
}
.thumb-fallback span {
  font-size: 48px;        /* 固定尺寸，不再随视口变化 */
  letter-spacing: -.04em;
  opacity: .85;
  line-height: 1;
}
.post-thumb .thumb-fallback span { font-size: 40px; }
.post-item-thumb .thumb-fallback span { font-size: 48px; }
.related-thumb .thumb-fallback span { font-size: 40px; }
.feature-fallback { position: absolute; inset: 0; }
.feature-fallback span { font-size: clamp(80px, 12vw, 140px); opacity: .6; }

/* ============================================================
   19. 纯 CSS 首字头像
   ============================================================ */
.zl-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
  overflow: hidden;
  letter-spacing: 0;
  vertical-align: middle;
}
.zl-avatar .zl-avatar-letter {
  display: block;
  line-height: 1;
  transform: translateY(0.02em);
}
.zl-avatar-img {
  display: inline-block;
  vertical-align: middle;
}

.comment-form-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.comment-form-user .zl-avatar,
.comment-form-user .zl-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.comment-form-user .zl-avatar-img {
  object-fit: cover;
  display: block;
}
.comment-form-user .comment-logged-in {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
}
.comment-form-user .comment-logged-in a { color: var(--accent); }
.comment-form > .zl-avatar { flex-shrink: 0; }

/* ============================================================
   20. Article
   ============================================================ */
.read-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%; z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(228, 87, 46, .5);
}

.article-hero { padding: 52px 0 0; }
.article-hero-inner { max-width: var(--content-w); margin: 0 auto; }

.article-cat {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 20px;
}
a.article-cat { cursor: pointer; transition: .2s; text-decoration: none; }
a.article-cat:hover {
  background: var(--accent); color: #fff; transform: translateY(-1px);
}
.article-title {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.26; letter-spacing: -.035em;
}
.article-sub {
  margin-top: 20px; font-size: 17px;
  line-height: 1.8; color: var(--text-2);
}
.article-meta {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px; padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text-3);
}
.article-author {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 600;
}
.article-author img,
.article-author .zl-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.meta-item { display: flex; align-items: center; gap: 6px; }

.meta-edit {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.5;
  color: var(--accent); background: var(--accent-soft);
  text-decoration: none; transition: .2s;
  border: 1px solid transparent;
}
.meta-edit svg { flex-shrink: 0; opacity: .9; }
.meta-edit:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-1px); border-color: var(--accent);
}

.article-layout {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 52px 0 72px;
}
.article-main { width: 100%; }

.article-toc {
  position: fixed; top: 92px;
  left: calc(50% + var(--content-w) / 2 + 20px);
  width: var(--toc-w);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  display: none; z-index: 50;
}
.article-toc .toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
}
.article-toc::-webkit-scrollbar { width: 5px; }
.article-toc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
@media (min-width: 1300px) { .article-toc { display: block; } }

.toc-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-3); letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 14px;
}
.toc a {
  display: block; padding: 7px 12px; border-radius: 9px;
  font-size: 14px; color: var(--text-2);
  line-height: 1.55; transition: .2s;
  border-left: 2px solid transparent;
}
.toc a:hover { background: var(--surface-2); color: var(--text); }
.toc a.active {
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600; border-left-color: var(--accent);
}
.toc a.lv3 { padding-left: 26px; font-size: 13.5px; color: var(--text-3); }
.toc a.lv3.active { color: var(--accent); }

.article-content {
  font-size: 17px; line-height: 1.92;
  color: var(--text); min-width: 0;
}
.article-content > * + * { margin-top: 1.55em; }

.article-content h2 {
  font-size: 26px; margin-top: 2.2em; margin-bottom: .7em;
  letter-spacing: -.025em; padding-left: 16px;
  border-left: 4px solid var(--accent);
  line-height: 1.4; scroll-margin-top: 90px;
}
.article-content h3 {
  font-size: 20px; margin-top: 1.8em; margin-bottom: .6em;
  scroll-margin-top: 90px;
}
.article-content h4 {
  font-size: 17px; margin-top: 1.6em; margin-bottom: .5em;
  color: var(--text-2);
}

.article-content a {
  color: var(--accent); font-weight: 500;
  border-bottom: 1px solid rgba(228, 87, 46, .35); transition: .2s;
}
.article-content a:hover {
  border-bottom-color: var(--accent); background: var(--accent-soft);
}

.article-content ul,
.article-content ol { padding-left: 1.4em; margin: 1.2em 0; list-style: revert; }
.article-content ul li,
.article-content ol li { margin: .6em 0; list-style: revert; }
.article-content ul li::marker { color: var(--accent); }
.article-content ol li::marker { color: var(--accent); font-weight: 700; }

.article-content blockquote {
  margin: 2em 0;
  padding: 24px 28px 24px 32px;
  border-radius: 0 14px 14px 0;
  background: var(--quote-bg);
  border-left: 4px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 17.5px; line-height: 1.85; color: var(--text-2);
}
.article-content blockquote p { margin: 0; }
.article-content blockquote p + p { margin-top: .9em; }
.article-content blockquote cite {
  display: block; margin-top: 14px;
  font-size: 14px; font-style: normal;
  font-family: var(--font-sans); color: var(--text-3);
}

.article-content code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--code-bg); padding: .18em .45em;
  border-radius: 6px; color: var(--accent);
  border: 1px solid var(--border);
}

.article-content figure { margin: 2em 0; }
.article-content figure img { border-radius: 14px; }
.article-content figcaption {
  text-align: center; font-size: 13px;
  color: var(--text-3); margin-top: 12px;
}

.article-content hr {
  border: 0; height: 1px;
  background: var(--border); margin: 3em 0;
}

.article-content table {
  width: 100%; border-collapse: collapse;
  font-size: 15px; margin: 2em 0;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
}
.article-content th {
  background: var(--surface-2); font-weight: 600;
  text-align: left; padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}
.article-content td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.article-content tr:last-child td { border-bottom: 0; }

.article-content img { border-radius: 14px; height: auto; }
.article-content .wp-block-image img { border-radius: 14px; }

.article-content.img-16-9 img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
}

.article-content .alignleft {
  float: left; margin: 0 1.5em 1em 0; max-width: 50%;
}
.article-content .alignright {
  float: right; margin: 0 0 1em 1.5em; max-width: 50%;
}
.article-content .aligncenter { margin: 1.5em auto; }

/* ============================================================
   21. 文章尾部
   ============================================================ */
.article-foot { max-width: var(--content-w); margin: 0 auto; padding: 0; }

.article-tags {
  display: flex; align-items: center; gap: 9px;
  flex-wrap: wrap;
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-tags .label { font-size: 14px; font-weight: 600; color: var(--text-3); }
.article-tags a {
  padding: 6px 14px; border-radius: 999px;
  font-size: 13.5px;
  background: var(--surface-2); color: var(--text-2);
  transition: .22s;
}
.article-tags a:hover {
  background: var(--accent); color: #fff; transform: translateY(-2px);
}

.article-actions {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border);
}

.like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: 0; background: none;
  color: var(--text-2);
  transition: .2s; cursor: pointer; line-height: 1;
}
.like-btn:hover { color: var(--accent); background: var(--accent-soft); }
.like-btn.liked { color: var(--accent); }
.like-btn.liked .heart svg { fill: currentColor; stroke: currentColor; }
.like-btn .heart { display: inline-flex; align-items: center; line-height: 0; }
.like-btn .heart svg { width: 17px; height: 17px; transition: transform .2s; }
.like-btn.liked .heart svg { transform: scale(1.05); }
.like-btn .like-count {
  font-size: 13.5px; font-weight: 600;
  color: inherit; font-family: var(--font-mono);
  min-width: 16px; text-align: left;
}
.like-btn:active .heart svg { transform: scale(.85); }

.share-group {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
}
.share-group .label { font-size: 13px; color: var(--text-3); margin-right: 2px; }
.share-btn {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2);
  transition: .22s; cursor: pointer; padding: 0;
}
.share-btn:hover {
  color: var(--accent); border-color: var(--accent);
  background: var(--accent-soft); transform: translateY(-2px);
}
.share-btn svg { width: 15px; height: 15px; }

.author-box {
  display: flex; gap: 22px;
  align-items: flex-start;
  margin-top: 48px; padding: 32px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.author-box img,
.author-box .zl-avatar {
  width: 74px; height: 74px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.author-box h4 { font-size: 17px; margin-bottom: 5px; }
.author-box .role { font-size: 13px; font-weight: 600; color: var(--accent); }
.author-box p {
  font-size: 14.5px; color: var(--text-2);
  line-height: 1.8; margin-top: 11px;
}
.author-box .links { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.author-box .links a {
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  background: var(--surface-2); color: var(--text-2);
  transition: .22s;
}
.author-box .links a:hover { background: var(--accent); color: #fff; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin-top: 44px;
}
.post-nav-item {
  padding: 24px; border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: .28s;
  display: flex; flex-direction: column; gap: 9px;
}
.post-nav-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.post-nav-item.next { text-align: right; align-items: flex-end; }
.post-nav-dir {
  font-size: 12.5px; font-weight: 700;
  color: var(--accent);
  display: flex; align-items: center; gap: 6px;
  letter-spacing: .02em;
}
.post-nav-title { font-size: 15.5px; line-height: 1.55; font-weight: 600; }
.post-nav-item:hover .post-nav-title { color: var(--accent); }

.related {
  margin-top: 64px; padding-top: 44px;
  border-top: 1px solid var(--border);
}
.related-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px;
}
.related-head h3 { font-size: 22px; }
.related-head a { font-size: 14px; font-weight: 600; color: var(--accent); }
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.related-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: .3s; display: flex; flex-direction: column;
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md); border-color: transparent;
}
.related-thumb {
  position: relative; aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e3db, #d6cfc4);
}
.related-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.related-card:hover .related-thumb img { transform: scale(1.06); }
.related-body {
  padding: 18px;
  display: flex; flex-direction: column; gap: 9px; flex: 1;
}
.related-cat {
  font-size: 12px; font-weight: 600; color: var(--accent);
  pointer-events: none;
}
.related-title { font-size: 15.5px; line-height: 1.5; font-weight: 600; }
.related-card:hover .related-title { color: var(--accent); }
.related-date {
  font-size: 12.5px; color: var(--text-3);
  margin-top: auto; padding-top: 6px;
}

/* ============================================================
   22. 回到顶部
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: grid; place-items: center;
  z-index: 90;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease,
              background .2s, color .2s, border-color .2s;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.back-to-top.show {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent); color: #fff;
  border-color: var(--accent); transform: translateY(-3px);
}

/* ============================================================
   23. Comments
   ============================================================ */
.comments { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--border); }
.comments-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px 32px;
  box-shadow: var(--shadow-sm);
}
.comments-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.comments-head h3 { font-size: 20px; margin: 0; }
.comments-count {
  padding: 2px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}

/* 评论列表 */
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list > li { list-style: none; margin: 0; padding: 0; }
.comment-list > li + li {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--border);
}
.comment-inner { display: flex; gap: 12px; }

.comment-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  line-height: 0;
  background: var(--surface-2);
}
.comment-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 50%;
  margin: 0;
}
.comment-avatar .zl-avatar {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.comment-list .children .comment-avatar {
  width: 28px;
  height: 28px;
}
.comment-list .children .comment-avatar .zl-avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.comment-main { flex: 1; min-width: 0; }
.comment-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 5px;
}
.comment-author { display: flex; align-items: center; gap: 6px; min-width: 0; }
.comment-name {
  font-size: 14px; font-weight: 600;
  color: var(--text); line-height: 1.4;
}
.comment-name a { color: inherit; }
.comment-name a:hover { color: var(--accent); }
.comment-badge {
  padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  line-height: 1.5; flex-shrink: 0;
}
.comment-meta {
  font-size: 12px; color: var(--text-3);
  flex-shrink: 0; margin-left: auto;
}

.comment-text {
  font-size: 14px; line-height: 1.7;
  color: var(--text-2);
  word-wrap: break-word; overflow-wrap: anywhere;
}
.comment-text p { margin: 0 0 .5em; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-text a {
  color: var(--accent);
  border-bottom: 1px solid rgba(228, 87, 46, .35);
}
.comment-text a:hover { border-bottom-color: var(--accent); }
.comment-text code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--code-bg); padding: .08em .3em;
  border-radius: 4px; color: var(--accent);
}
.comment-text blockquote {
  margin: .7em 0; padding: 8px 12px;
  border-left: 3px solid var(--accent);
  background: var(--quote-bg); border-radius: 0 6px 6px 0;
  font-size: 13.5px;
}

.comment-awaiting {
  color: var(--text-3); font-style: italic;
  font-size: 13px; margin: 0 0 .4em;
}

.comment-actions {
  margin-top: 6px;
  display: flex; gap: 14px; align-items: center;
}
.comment-actions a,
.comment-actions button {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 500;
  color: var(--text-3); transition: .2s; cursor: pointer; line-height: 1;
}
.comment-actions a:hover,
.comment-actions button:hover { color: var(--accent); }

/* 嵌套回复 */
.comment-list .children {
  list-style: none; margin: 12px 0 0;
  padding: 0 0 0 34px; position: relative;
}
.comment-list .children::before {
  content: ''; position: absolute;
  left: 12px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border); border-radius: 1px;
}
.comment-list .children > li { list-style: none; margin: 0; padding: 0; }
.comment-list .children > li + li {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.comment-list .children .children {
  margin-top: 10px; padding-left: 28px;
}
.comment-list .children .children::before { left: 10px; }
.comment-list .children .children > li + li {
  margin-top: 12px; padding-top: 12px;
}
.comment-list .children .comment-inner { gap: 10px; }
.comment-list .children .comment-name { font-size: 13.5px; }
.comment-list .children .comment-text {
  font-size: 13.5px; line-height: 1.65;
}

/* 待审核标记 */
.comment-badge-pending {
  background: #fff8e1;
  color: #b45309;
}
.zl-comment-awaiting {
  font-size: 12.5px;
  color: #b45309;
  margin: 6px 0 0;
  line-height: 1.5;
}

/* 评论表单 */
.comment-respond {
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.comment-reply-title {
  font-size: 18px; font-weight: 700;
  margin: 0 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; letter-spacing: -.01em;
}
.comment-reply-title small { font-size: 13px; font-weight: 400; }
.comment-reply-title small a { color: var(--accent); cursor: pointer; }

.comment-form { padding: 0; border-radius: 0; background: none; border: 0; }
.comment-logged-in { margin: 0 0 16px; font-size: 13.5px; color: var(--text-2); }
.comment-logged-in a { color: var(--accent); }

.comment-fields {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 14px;
}
.comment-field {
  position: relative;
  display: flex; flex-direction: column; gap: 5px;
}
.comment-field label {
  font-size: 13px; font-weight: 500;
  color: var(--text-2); line-height: 1.4;
}
.comment-field .required { color: var(--accent); margin-left: 2px; }
.comment-field input[type="text"],
.comment-field input[type="email"],
.comment-field input[type="url"] {
  width: 100%; padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  font-family: inherit; font-size: 14px;
  outline: none; transition: .2s; line-height: 1.5;
}
.comment-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.comment-field input::placeholder { color: var(--text-3); }

.comment-field-textarea { position: relative; margin-bottom: 12px; }
.comment-field textarea {
  width: 100%; min-height: 110px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  font-family: inherit; font-size: 14.5px;
  line-height: 1.7; resize: vertical;
  outline: none; transition: .2s;
}
.comment-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.comment-field textarea::placeholder { color: var(--text-3); }

.comment-cookies-consent {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text-3);
  margin: 0 0 14px; line-height: 1.6;
}
.comment-cookies-consent input { margin: 3px 0 0; flex-shrink: 0; }
.comment-cookies-consent label { cursor: pointer; }


.comments-closed {
  color: var(--text-3); font-size: 14px; padding: 20px;
  text-align: center; background: var(--surface-2); border-radius: 12px;
  margin: 0;
}

.zl-comment-tip {
  display: none; margin-top: 12px;
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; line-height: 1.5;
}
.zl-comment-tip-success {
  background: rgba(47, 158, 99, .12); color: #2f9e63;
}
.zl-comment-tip-error {
  background: rgba(228, 87, 46, .12); color: var(--accent);
}



/* 评论分页 */
.comments-pagination {
  margin-top: 28px;
}
.comments-pagination .nav-links {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.comments-pagination .page-numbers {
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-2);
  background: var(--bg); transition: .22s;
  text-decoration: none; line-height: 1.4;
}
.comments-pagination .page-numbers:hover {
  color: var(--accent); border-color: var(--accent);
  transform: translateY(-2px);
}
.comments-pagination .page-numbers.current {
  background: var(--text); color: var(--bg);
  border-color: var(--text); font-weight: 600;
}
.comment-navigation { margin-top: 28px; }
.comment-navigation .nav-links {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.comment-navigation .nav-links a,
.comment-navigation .nav-links span {
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-2);
  background: var(--bg); transition: .22s;
  text-decoration: none; line-height: 1.4;
}
.comment-navigation .nav-links a:hover {
  color: var(--accent); border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   24. No Results
   ============================================================ */
.no-results { padding: 60px 0; text-align: center; }
.no-results h3 { font-size: 22px; margin-bottom: 12px; }
.no-results p { color: var(--text-2); margin-bottom: 24px; }
.no-results .search-form { max-width: 420px; margin: 0 auto; }
.no-results .search-box { max-width: none; }

/* ============================================================
   25. Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 64px;
  padding: 56px 0 26px;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
}
.footer-brand p {
  margin-top: 16px; font-size: 14px;
  color: var(--text-2); line-height: 1.8; max-width: 280px;
}
.footer-col h4 { font-size: 14px; margin-bottom: 16px; }
.footer-col a,
.footer-col li a {
  display: block; font-size: 14px;
  color: var(--text-2); padding: 5px 0; transition: .2s;
}
.footer-col a:hover,
.footer-col li a:hover {
  color: var(--accent); transform: translateX(3px);
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-3);
}
.footer-bottom-left {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.footer-icp a {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-3); transition: .2s; text-decoration: none;
}
.footer-icp a::before {
  content: ''; width: 12px; height: 12px; flex-shrink: 0;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b909c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; background-position: center;
  transition: .2s;
}
.footer-icp a:hover { color: var(--accent); }
.footer-icp a:hover::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4572e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}
.footer-icp-extra { display: inline-flex; align-items: center; gap: 5px; }
.footer-icp-extra a { color: var(--text-3); transition: .2s; text-decoration: none; }
.footer-icp-extra a:hover { color: var(--accent); }
.footer-icp-extra img {
  display: inline-block; vertical-align: middle;
  max-height: 16px; width: auto; margin-right: 4px;
}
.footer-powered { color: var(--text-3); }

/* ============================================================
   26. 音乐播放器按钮
   ============================================================ */
.zl-music-btn {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: none; border: 0;
  color: var(--text-2);
  cursor: pointer; transition: .2s; padding: 0;
  position: relative;
}
.zl-music-btn:hover { background: var(--surface-2); color: var(--text); }
.zl-music-btn.is-playing { color: var(--accent); }
.zl-music-btn svg { width: 18px; height: 18px; display: block; }
.zl-music-btn .icon-stop { display: none; }
.zl-music-btn.is-playing .icon-play { display: none; }
.zl-music-btn.is-playing .icon-stop { display: block; }

.zl-music-btn.is-playing::after {
  content: ''; position: absolute;
  top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(228, 87, 46, .7);
  animation: zlMusicPulse 1.6s infinite;
}
.zl-music-btn.loading { opacity: .6; pointer-events: none; }
.zl-music-btn.loading::before {
  content: ''; position: absolute; inset: 6px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: zlSpin .8s linear infinite;
}
@keyframes zlMusicPulse {
  0%   { box-shadow: 0 0 0 0 rgba(228, 87, 46, .7); }
  70%  { box-shadow: 0 0 0 6px rgba(228, 87, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 87, 46, 0); }
}
@keyframes zlSpin {
  to { transform: rotate(360deg); }
}
#zl-music-frame {
  position: fixed; width: 0; height: 0; border: 0;
  visibility: hidden; pointer-events: none;
}

/* ============================================================
   27. 二维码弹窗
   ============================================================ */
.zl-qr-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.zl-qr-overlay.show { display: flex; animation: zlQrFadeIn .2s ease; }
@keyframes zlQrFadeIn { from { opacity: 0; } to { opacity: 1; } }
.zl-qr-dialog {
  background: var(--surface); border-radius: 18px;
  padding: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  text-align: center; max-width: 320px; width: 100%;
  position: relative;
  animation: zlQrSlideUp .25s cubic-bezier(.2, .8, .2, 1);
}
@keyframes zlQrSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.zl-qr-close {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  border: 0; background: none; color: var(--text-3);
  cursor: pointer; font-size: 20px; line-height: 1; transition: .2s;
}
.zl-qr-close:hover { background: var(--surface-2); color: var(--accent); }
.zl-qr-canvas-wrap {
  display: inline-block; padding: 12px;
  background: #fff; border-radius: 12px; margin: 8px 0 16px;
}
.zl-qr-canvas-wrap canvas,
.zl-qr-canvas-wrap img { display: block; width: 200px; height: 200px; }
.zl-qr-title { font-size: 15px; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.zl-qr-sub { font-size: 12.5px; color: var(--text-3); margin: 0 0 8px; }
.zl-qr-url {
  font-size: 11.5px; color: var(--text-3);
  word-break: break-all; margin-top: 8px;
  padding: 8px 12px; background: var(--surface-2);
  border-radius: 8px; max-width: 100%;
}
[data-theme="dark"] .zl-qr-canvas-wrap { background: #fff; }

/* ============================================================
   28. Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 760px); }
  .sidebar {
    position: static;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .profile-card { margin: 0 auto; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav {
    position: absolute; top: calc(100% + 8px);
    left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; background: var(--surface);
    border: 1px solid var(--border); border-radius: 16px;
    padding: 10px; box-shadow: var(--shadow-md); display: none;
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 11px 14px; border-radius: 10px; }
  .menu-btn { display: grid; }
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 240px; }
  .feature-body { padding: 32px; }
  .filter-tabs { margin-left: 0; width: 100%; }
  .search-box { max-width: none; }
}
@media (max-width: 720px) {
  .comment-fields { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 700px) {
  .post-item { grid-template-columns: 1fr; }
  .post-item-thumb { min-height: 200px; }
  .sidebar { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.next { text-align: left; align-items: flex-start; }
  .author-box {
    flex-direction: column; gap: 16px;
    text-align: center; align-items: center;
  }
  .author-box .links { justify-content: center; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 48px 0 40px; }
  .post-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .subscribe-card { padding: 32px 24px; }
  .bottom-custom { padding: 28px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-left { justify-content: center; }
  .section { padding: 40px 0; }
  .section-bottom { padding: 32px 0 48px; }
  .page-hero { padding: 40px 0 30px; }

  .article-hero { padding: 36px 0 0; }
  .article-layout { padding: 36px 0 56px; }
  .article-foot { padding: 0; }
  .article-content { font-size: 16px; }
  .article-content blockquote { padding: 18px 20px; font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; }

  .comments { margin-top: 48px; padding-top: 32px; }
  .comments-area { padding: 24px 20px 28px; border-radius: 16px; }
  .comments-head { margin-bottom: 20px; padding-bottom: 16px; }
  .comments-head h3 { font-size: 19px; }
  .comment-reply-title { font-size: 16px; }
  .comment-list .children { padding-left: 30px; }
  .comment-list .children::before { left: 10px; }
  .comment-avatar,
  .comment-avatar img,
  .comment-avatar .zl-avatar { width: 30px; height: 30px; }
  .comment-header { flex-wrap: wrap; gap: 4px; }
  .comment-meta { font-size: 11.5px; }
  .comment-form-foot { gap: 10px; }
  .btn-submit { padding: 9px 18px; font-size: 13.5px; }
  .comment-form .zl-captcha-input { width: 100%; flex: 1; min-width: 100px; }

  .pagination { flex-wrap: wrap; }
  .pagination .page-numbers,
  .pagination a,
  .pagination span.page-btn { padding: 0 12px; min-width: 38px; height: 38px; }
  .back-to-top { right: 18px; bottom: 18px; width: 44px; height: 44px; }
  .links-inline-head { gap: 8px; }
  .links-inline a { font-size: 13px; padding: 5px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   29. WordPress 核心类
   ============================================================ */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
  text-align: center; font-size: 13px;
  color: var(--text-3); margin-top: 8px;
}
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--surface); border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
  clip: auto !important; clip-path: none;
  color: var(--text); display: block;
  font-size: 14px; font-weight: 700;
  height: auto; left: 5px; line-height: normal;
  padding: 15px 23px 14px; text-decoration: none;
  top: 5px; width: auto; z-index: 100000;
}
.sticky .post-card,
.sticky.post-item { position: relative; }

/* ============================================================
   30. 代码块覆盖（详细见 code.css）
   ============================================================ */
.zl-code-block .article-content pre,
.article-content .zl-code-block pre {
  padding: 44px 24px 20px;
  border-radius: 0;
  background: transparent;
  border: 0;
}
.article-content .wp-block-code { padding: 0; background: none; border: 0; }
.article-content .wp-block-code code {
  background: none !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--text);
}
/* ============================================================
   评论表单：验证码（独立一行）
   ============================================================ */
.comment-form-captcha {
  display: block;
  width: 100%;
  margin: 4px 0 14px;
}

.comment-form-captcha .zl-captcha-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-form-captcha .zl-captcha-input {
  width: 140px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: .2s;
  line-height: 1.5;
}
.comment-form-captcha .zl-captcha-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.comment-form-captcha .zl-captcha-input::placeholder {
  letter-spacing: 0;
  color: var(--text-3);
  text-transform: none;
  font-size: 13.5px;
}

.comment-form-captcha .zl-captcha-img {
  height: 42px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: block;
  background: var(--surface-2);
  transition: .2s;
  object-fit: cover;
}
.comment-form-captcha .zl-captcha-img:hover {
  border-color: var(--accent);
}

/* ============================================================
   评论表单：底部操作行（hint + 按钮）
   ============================================================ */
.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.comment-form-foot .hint {
  font-size: 13px;
  color: var(--text-3);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14.5px;
  font-weight: 600;
  transition: .25s;
  border: 0;
  cursor: pointer;
  line-height: 1.4;
}
.btn-submit:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ============================================================
   兼容：旧的验证码行样式（如果 HTML 里还有旧类名，此处会覆盖）
   ============================================================ */
.comment-form .zl-captcha-row {
  margin: 4px 0 14px;
}
.comment-form .zl-captcha-row .zl-captcha-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.comment-form .zl-captcha-row .zl-captcha-input {
  width: 140px;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}
.comment-form .zl-captcha-row .zl-captcha-img {
  height: 42px;
  width: auto;
  border-radius: 10px;
  cursor: pointer;
}
/* ============================================================
   评论表单底部行：hint + 验证码 + 按钮 一行
   ============================================================ */
.comment-form-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.comment-form-foot .hint {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--text-3);
}
.comment-form-foot .zl-captcha-field {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-form-foot .zl-captcha-input {
  width: 110px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: .2s;
  line-height: 40px;
}
.comment-form-foot .zl-captcha-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.comment-form-foot .zl-captcha-input::placeholder {
  letter-spacing: 0;
  color: var(--text-3);
  text-transform: none;
  font-size: 13px;
}
.comment-form-foot .zl-captcha-img {
  height: 40px;
  width: auto;
  min-width: 100px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: block;
  background: var(--surface-2);
  transition: .2s;
  object-fit: cover;
}
.comment-form-foot .zl-captcha-img:hover {
  border-color: var(--accent);
}
.comment-form-foot .btn-submit {
  flex: 0 0 auto;
  margin-left: 4px;
}

/* 删除旧版验证码独立块的样式（避免干扰） */
.comment-form-captcha { display: none !important; }

/* 小屏：栈式排列 */
@media (max-width: 640px) {
  .comment-form-foot {
    flex-wrap: wrap;
    gap: 10px;
  }
  .comment-form-foot .hint {
    flex: 1 1 100%;
    font-size: 12px;
  }
  .comment-form-foot .zl-captcha-field {
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
  }
  .comment-form-foot .zl-captcha-input {
    width: 90px;
    height: 38px;
    line-height: 38px;
    font-size: 13px;
    padding: 0 8px;
    letter-spacing: 1px;
  }
  .comment-form-foot .zl-captcha-img {
    height: 38px;
    min-width: 88px;
  }
  .comment-form-foot .btn-submit {
    flex: 1 1 100%;
    justify-content: center;
    padding: 11px 20px;
    font-size: 14px;
    order: 10;
  }
}
/* ============================================================
   评论归属地标签
   ============================================================ */
.comment-location {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--surface-2);
  line-height: 1.5;
  flex-shrink: 0;
  white-space: nowrap;
}
.comment-location::before {
  content: '';
  width: 9px;
  height: 9px;
  margin-right: 3px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b909c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: .85;
}
/* ============================================================
   评论作者外链（鼠标悬停变色 + 下划线）
   ============================================================ */
.comment-name .comment-author-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: .2s;
}
.comment-name .comment-author-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* ============================================================
   手机版相关文章：列表模式（缩略图在左，信息在右）
   ============================================================ */
@media (max-width: 640px) {

  /* 网格 → 单列纵向列表 */
  .related-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }


 /* 卡片：横排，带内边距 */
.related-card {
  flex-direction: row;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  overflow: hidden;
}
.related-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

/* 缩略图：固定尺寸 + 圆角，与卡片之间有间距 */
.related-thumb {
  width: 96px;
  height: 68px;
  aspect-ratio: auto;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e3db, #d6cfc4);
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
  border-radius: 8px;
}
  .related-card:hover .related-thumb img {
    transform: none;
  }

  /* 缩略图回退也保持比例 */
  .related-thumb .thumb-fallback span {
    font-size: 28px;
  }

  /* 右侧内容区：紧凑 */
.related-body {
  padding: 4px 8px 4px 14px;
  gap: 3px;
  flex: 1;
  min-width: 0;
  justify-content: center;
}
  .related-cat {
    font-size: 11px;
    font-weight: 600;
  }
  .related-title {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .related-date {
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 0;
    padding-top: 0;
  }

  /* 相关文章标题区块也缩小一点 */
  .related-head {
    margin-bottom: 16px;
  }
  .related-head h3 {
    font-size: 18px;
  }
  .related-head a {
    font-size: 13px;
  }
}
/* ============================================================
   图片宫格布局（直角 · 智能分行 · 4:3）
   ============================================================ */
.zl-grid-gallery {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 1.8em 0;
}

/* 每一行用 grid 排列，data-cols 决定这一行有几张 */
.zl-grid-row {
    display: grid;
    gap: 6px;
}
.zl-grid-row[data-cols="1"] { grid-template-columns: 1fr; }
.zl-grid-row[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.zl-grid-row[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }

/* 单张图 */
.zl-grid-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: var(--surface-2);
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
    transition: opacity .2s ease;
}

/* ★ 强制图片铺满容器，覆盖 .article-content img 全局样式 */
.zl-grid-gallery .zl-grid-item img,
.zl-grid-gallery img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    aspect-ratio: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.zl-grid-item:hover img {
    transform: scale(1.04);
}

/* 移动端：间距更小 */
@media (max-width: 640px) {
    .zl-grid-gallery { gap: 3px; margin: 1.4em 0; }
    .zl-grid-row { gap: 3px; }
    .zl-grid-item { aspect-ratio: 4 / 3; }
}
/* ============================================================
   列表页文章项：分类标签（底色胶囊）
   ============================================================ */
.post-item-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.post-item-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  line-height: 1.5;
  text-decoration: none;
  transition: .2s;
}
.post-item-tag:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   文章尾部标签
   ============================================================ */
.article-tags {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-tags .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
}
.article-tags a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  background: var(--surface-2);
  color: var(--text-2);
  text-decoration: none;
  transition: .22s;
}
.article-tags a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   相关文章：分类名称（底色胶囊）
   ============================================================ */
.related-cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  line-height: 1.5;
  width: fit-content;
  pointer-events: none;
}

/* ============================================================
   首页卡片缩略图角标分类
   ============================================================ */
.post-cat {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #16181d;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

/* ============================================================
   单页头部文章分类（胶囊链接）
   ============================================================ */
.article-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
  text-decoration: none;
}
a.article-cat {
  cursor: pointer;
  transition: .2s;
}
a.article-cat:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   侧边栏分类列表（无底色，纯文字）
   ============================================================ */
.cat-list li + li { margin-top: 4px; }
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--text-2);
  transition: .2s;
}
.cat-list a:hover {
  background: var(--surface-2);
  color: var(--accent);
}
.cat-list .count {
  font-size: 12.5px;
  color: var(--text-3);
}
/* ============================================================
   新提交评论的高亮动画（临时置顶提示）
   ============================================================ */
.comment-list > li.zl-comment-new {
  animation: zlCommentHighlight 2.4s ease;
  border-radius: 10px;
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
}

@keyframes zlCommentHighlight {
  0% {
    background: var(--accent-soft);
    box-shadow: 0 0 0 2px var(--accent-soft);
  }
  60% {
    background: var(--accent-soft);
    box-shadow: 0 0 0 2px var(--accent-soft);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 2px transparent;
  }
}
/* ============================================================
   31. 文章归档页
   ============================================================ */
.zl-archive-page {
  padding: 56px 0 72px;
}

/* ---------- 页头 ---------- */
.zl-archive-hero {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.zl-archive-title {
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -.035em;
  margin-bottom: 12px;
}
.zl-archive-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}
.zl-archive-desc strong {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- 站点统计 ---------- */
.zl-archive-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.zl-stat-item {
  text-align: center;
  padding: 8px 6px;
  position: relative;
}
.zl-stat-item + .zl-stat-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border);
}
.zl-stat-num {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.2;
  font-family: var(--font-mono);
}
.zl-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------- 区块标题 ---------- */
.zl-archive-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.01em;
}
.zl-archive-section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- 标签云 ---------- */
.zl-archive-tags {
  margin-bottom: 48px;
}
.zl-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.zl-tag-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: .22s;
}
.zl-tag-cloud a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.zl-tag-count {
  font-size: 11.5px;
  opacity: .7;
  font-family: var(--font-mono);
}

/* ---------- 时间线 ---------- */
.zl-archive-timeline {
  margin-bottom: 40px;
}
.zl-archive-year {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.zl-archive-year:hover {
  box-shadow: var(--shadow-sm);
}

.zl-archive-year-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  transition: background .2s;
}
.zl-archive-year-head:hover {
  background: var(--surface-2);
}
.zl-archive-year-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  font-family: var(--font-mono);
}
.zl-archive-year-count {
  font-size: 13px;
  color: var(--text-3);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
}
.zl-archive-year-toggle {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-2);
  transition: transform .25s ease;
  position: relative;
  flex-shrink: 0;
}
.zl-archive-year-toggle::before {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .25s ease;
}
.zl-archive-year.expanded .zl-archive-year-toggle::before {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.zl-archive-year-body {
  display: none;
  padding: 0 24px 22px;
}
.zl-archive-year.expanded .zl-archive-year-body {
  display: block;
}

/* ---------- 月份分组 ---------- */
.zl-archive-month {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.zl-archive-month:first-child {
  border-top: 0;
  padding-top: 4px;
}
.zl-archive-month-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.zl-archive-month-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.zl-archive-month-count {
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- 文章列表 ---------- */
.zl-archive-post-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.zl-archive-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  transition: background .18s;
}
.zl-archive-post-item:hover {
  background: var(--surface-2);
}
.zl-archive-post-date {
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  min-width: 44px;
}
.zl-archive-post-link {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .18s;
}
.zl-archive-post-link:hover {
  color: var(--accent);
}
.zl-archive-post-cat {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  line-height: 1.5;
}

.zl-archive-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-3);
  font-size: 14px;
}

/* ---------- 归档页响应式 ---------- */
@media (max-width: 900px) {
  .zl-archive-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 18px;
  }
  .zl-stat-item + .zl-stat-item::before {
    display: none;
  }
  .zl-stat-num { font-size: 22px; }
}
@media (max-width: 640px) {
  .zl-archive-page { padding: 36px 0 52px; }
  .zl-archive-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 32px;
  }
  .zl-stat-num { font-size: 20px; }
  .zl-stat-label { font-size: 12px; }

  .zl-archive-tags { margin-bottom: 32px; }
  .zl-archive-section-title { font-size: 18px; }

  .zl-archive-year-head {
    padding: 14px 16px;
    gap: 10px;
  }
  .zl-archive-year-num { font-size: 19px; }
  .zl-archive-year-body { padding: 0 16px 18px; }
  .zl-archive-month { padding-top: 14px; }
  .zl-archive-post-item {
    padding: 8px 8px;
    gap: 8px;
  }
  .zl-archive-post-date { min-width: 40px; font-size: 12px; }
  .zl-archive-post-link { font-size: 13.5px; }
  .zl-archive-post-cat { font-size: 11px; padding: 1px 7px; }
}
/* ============================================================
   /* ============================================================
   32. 二级菜单（下拉）
   ============================================================ */
.nav .menu-item-has-children,
.nav .page_item_has_children {
  position: relative;
}

/* ---------- 桌面端：hover 展开 ---------- */
@media (min-width: 861px) {
  /* 下拉容器：top: 100% 让 hover 区从父级底部无缝衔接 */
  .nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);

    min-width: 180px;
    padding: 8px;                 /* 内容内边距 */
    padding-top: 16px;            /* 顶部：8px 视觉间隙 + 8px 内部留白 */

    margin: 0;
    list-style: none;

    /* 透明背景：视觉背景交给 ::before */
    background: transparent;
    border: 0;
    box-shadow: none;

    /* 状态 */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .25s ease, visibility .25s;

    z-index: 60;
  }

  /* 视觉背景 */
  .nav .sub-menu::before {
    content: '';
    position: absolute;
    top: 8px;                     /* 跳过 8px 透明桥接区 */
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    z-index: -1;
    pointer-events: none;
  }

  /* 小三角（尖端略高于视觉背景顶部） */
  .nav .sub-menu::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    z-index: 1;
    pointer-events: none;
  }

  /* 菜单项在视觉背景之上 */
  .nav .sub-menu li {
    position: relative;
    z-index: 2;
    list-style: none;
    margin: 0;
  }

  /* hover 展开 */
  .nav .menu-item-has-children:hover > .sub-menu,
  .nav .menu-item-has-children:focus-within > .sub-menu,
  .nav .page_item_has_children:hover > .sub-menu,
  .nav .page_item_has_children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  /* 菜单项样式 */
  .nav .sub-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-2);
    transition: .2s;
    white-space: nowrap;
  }
  .nav .sub-menu a:hover,
  .nav .sub-menu .current-menu-item > a {
    background: var(--surface-2);
    color: var(--accent);
  }

  /* 父级小箭头 */
  .nav .menu-item-has-children > a::after,
  .nav .page_item_has_children > a::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    margin-left: 6px;
    opacity: .55;
    vertical-align: 1px;
    transition: transform .2s ease;
  }

  /* hover 时父级箭头翻转 */
  .nav .menu-item-has-children:hover > a::after,
  .nav .page_item_has_children:hover > a::after {
    transform: rotate(-135deg) translate(-1px, -1px);
  }
}
/* ============================================================
   33. 文章内下载按钮（短代码 [pdownload]）
   ============================================================ */
.article-content .lhb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  margin: 6px 8px 6px 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 0 !important;
  box-shadow: 0 6px 16px rgba(228, 87, 46, .28);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  vertical-align: middle;
  white-space: nowrap;
}

.article-content .lhb:hover {
  background: var(--accent-2);
  color: #fff !important;
  border-bottom: 0 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(228, 87, 46, .35);
}

.article-content .lhb:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(228, 87, 46, .3);
}

.article-content .lhb .lhb-icon {
  flex-shrink: 0;
  transition: transform .3s ease;
}

.article-content .lhb:hover .lhb-icon {
  transform: translateY(2px);
}

.article-content .lhb .lhb-text {
  display: inline-block;
  line-height: 1;
}

/* 相邻多个下载按钮：给点间距 */
.article-content .lhb + .lhb {
  margin-left: 4px;
}

/* 弹层模式内稍紧凑 */
.zl-modal .article-content .lhb {
  padding: 10px 20px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(228, 87, 46, .25);
}

/* 深色模式：跟随 --accent 自动变色，阴影弱化 */
[data-theme="dark"] .article-content .lhb {
  box-shadow: 0 6px 16px rgba(255, 107, 67, .22);
}
[data-theme="dark"] .article-content .lhb:hover {
  box-shadow: 0 10px 24px rgba(255, 107, 67, .3);
}

/* 移动端：块级独占一行，方便点击 */
@media (max-width: 640px) {
  .article-content .lhb {
    display: flex;
    width: fit-content;
    margin: 8px 0;
    padding: 12px 22px;
    font-size: 14.5px;
  }
  .article-content .lhb + .lhb {
    margin-left: 0;
    margin-top: 10px;
  }
}
/* ============================================================
   34. 内容短代码：提示框（图标压在框外左上角）
   ============================================================ */
.article-content .zl-note {
  position: relative;
  padding: 20px 22px 18px 68px;
  border-radius: 12px;
  margin: 2.2em 0 !important;
  border: 1px solid;
  line-height: 1.7;
  overflow: visible;
}
.article-content .zl-note + .zl-note { margin-top: 1.2em !important; }

/* 圆形徽章：一半压框外、一半在框内 */
.article-content .zl-note-icon {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12), 0 0 0 3px var(--bg);
  z-index: 2;
}
.article-content .zl-note-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.article-content .zl-note-body {
  position: relative;
  min-width: 0;
}

.article-content .zl-note-content {
  font-size: 14.5px;
  line-height: 1.75;
}
.article-content .zl-note-content p { margin: 0 0 6px; }
.article-content .zl-note-content p:last-child { margin-bottom: 0; }

.article-content .zl-note-content a {
  color: inherit;
  text-decoration: underline;
  border-bottom: 0 !important;
  background: none !important;
}
.article-content .zl-note-content a:hover {
  border-bottom: 0 !important;
  background: none !important;
}

.article-content .zl-note-content code {
  background: rgba(0, 0, 0, .06);
  padding: .1em .35em;
  border-radius: 3px;
  border: 0;
  color: inherit;
  font-size: .92em;
}

/* 危险 / 禁止 [noway] */
.article-content .zl-note-danger {
  background: rgba(214, 51, 108, .06);
  border-color: rgba(214, 51, 108, .22);
  color: #b91c4e;
}
.article-content .zl-note-danger .zl-note-icon {
  color: #d6336c;
}

/* 警告 [warning] [worning] */
.article-content .zl-note-warning {
  background: rgba(245, 158, 11, .07);
  border-color: rgba(245, 158, 11, .25);
  color: #92400e;
}
.article-content .zl-note-warning .zl-note-icon {
  color: #f59e0b;
}

/* 提示 [info] */
.article-content .zl-note-info {
  background: rgba(59, 111, 224, .06);
  border-color: rgba(59, 111, 224, .2);
  color: #1e40af;
}
.article-content .zl-note-info .zl-note-icon {
  color: #3b6fe0;
}

/* 推荐 [success] */
.article-content .zl-note-success {
  background: rgba(47, 158, 99, .06);
  border-color: rgba(47, 158, 99, .22);
  color: #166534;
}
.article-content .zl-note-success .zl-note-icon {
  color: #2f9e63;
}

/* 深色模式 */
[data-theme="dark"] .article-content .zl-note-icon {
  background: #1e2027;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35), 0 0 0 3px var(--bg);
}
[data-theme="dark"] .article-content .zl-note-danger {
  background: rgba(214, 51, 108, .12);
  color: #fba4be;
}
[data-theme="dark"] .article-content .zl-note-warning {
  background: rgba(245, 158, 11, .12);
  color: #fbbf24;
}
[data-theme="dark"] .article-content .zl-note-info {
  background: rgba(59, 111, 224, .12);
  color: #93b4ff;
}
[data-theme="dark"] .article-content .zl-note-success {
  background: rgba(47, 158, 99, .12);
  color: #86efac;
}
[data-theme="dark"] .article-content .zl-note-content code {
  background: rgba(255, 255, 255, .1);
}

/* 弹层内略紧凑 */
.zl-modal .article-content .zl-note {
  padding: 18px 20px 16px 64px;
}
.zl-modal .article-content .zl-note-content { font-size: 14px; }
.zl-modal .article-content .zl-note-icon {
  width: 48px;
  height: 48px;
  top: -16px;
  left: -16px;
}
.zl-modal .article-content .zl-note-icon svg {
  width: 22px;
  height: 22px;
}

/* 移动端 */
@media (max-width: 640px) {
  .article-content .zl-note {
    padding: 18px 18px 16px 60px;
  }
  .article-content .zl-note-content { font-size: 14px; line-height: 1.7; }
  .article-content .zl-note-icon {
    width: 46px;
    height: 46px;
    top: -14px;
    left: -14px;
  }
  .article-content .zl-note-icon svg {
    width: 22px;
    height: 22px;
  }
}
/* ============================================================
   35. 内容短代码：导语（引号图标压在框外左上角）
   ============================================================ */
.article-content .zl-daoyu {
  position: relative;
  margin: 2.4em 0 !important;
  padding: 22px 24px 22px 72px;
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-2);
  overflow: visible;
}

/* 引号圆形徽章 */
.article-content .zl-daoyu-icon {
  position: absolute;
  top: -20px;
  left: -22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(228, 87, 46, .32), 0 0 0 4px var(--bg);
  z-index: 2;
}
.article-content .zl-daoyu-icon svg {
  width: 26px;
  height: 26px;
  display: block;
  opacity: 0.95;
transform: scaleX(-1);
}

.article-content .zl-daoyu-body {
  position: relative;
  z-index: 1;
}
.article-content .zl-daoyu-body p { margin: 0; }
.article-content .zl-daoyu-body p + p { margin-top: .8em; }

.article-content .zl-daoyu-body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(228, 87, 46, .35);
  background: none !important;
}

/* 深色模式 */
[data-theme="dark"] .article-content .zl-daoyu {
  background: rgba(255, 255, 255, .03);
  border-left-color: var(--accent);
}
[data-theme="dark"] .article-content .zl-daoyu-icon {
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(255, 107, 67, .28), 0 0 0 4px var(--bg);
}

/* 弹层内 */
.zl-modal .article-content .zl-daoyu {
  font-size: 15.5px;
  padding: 20px 22px 20px 68px;
}
.zl-modal .article-content .zl-daoyu-icon {
  width: 52px;
  height: 52px;
  top: -18px;
  left: -20px;
}
.zl-modal .article-content .zl-daoyu-icon svg {
  width: 24px;
  height: 24px;
}

/* 移动端 */
@media (max-width: 640px) {
  .article-content .zl-daoyu {
    padding: 20px 18px 20px 64px;
    font-size: 15.5px;
    margin: 2em 0 !important;
  }
  .article-content .zl-daoyu-icon {
    width: 50px;
    height: 50px;
    top: -16px;
    left: -18px;
  }
  .article-content .zl-daoyu-icon svg {
    width: 22px;
    height: 22px;
  }
}
/* ============================================================
   36. 内容短代码：插入文章 [fa_insert_post]
   ============================================================ */
.article-content .zl-insert-post {
  margin: 1.8em auto !important;
  width: 62%;
  max-width: 640px;
  display: grid;
  gap: 12px;
}

.article-content .zl-insert-post-list { grid-template-columns: 1fr; }

.article-content .zl-ip-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: .25s;
  border-bottom: 0 !important;
  overflow: hidden;
}
.article-content .zl-ip-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  background: var(--surface) !important;
  border-bottom: 0 !important;
}

/* ★ 缩略图加大 */
.article-content .zl-ip-thumb {
  flex-shrink: 0;
  width: 130px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}
.article-content .zl-ip-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block;
}
.article-content .zl-ip-thumb .thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  overflow: hidden;
}
.article-content .zl-ip-thumb .thumb-fallback span { font-size: 36px; }

.article-content .zl-ip-thumb-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
}

.article-content .zl-ip-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.article-content .zl-ip-cat {
  display: inline-block;
  width: fit-content;
  padding: 1px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  line-height: 1.5;
  margin-bottom: 2px;
}

.article-content .zl-ip-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.article-content .zl-ip-item:hover .zl-ip-title { color: var(--accent); }

.article-content .zl-ip-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-content .zl-ip-meta {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.article-content .zl-ip-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
  flex-shrink: 0;
}

/* 弹层内紧凑 */
.zl-modal .article-content .zl-insert-post {
  width: 78%;
}
.zl-modal .article-content .zl-ip-thumb {
  width: 110px;
  height: 80px;
}
.zl-modal .article-content .zl-ip-title { font-size: 14.5px; }

/* 移动端：恢复全宽 */
@media (max-width: 760px) {
  .article-content .zl-insert-post,
  .zl-modal .article-content .zl-insert-post {
    width: 100%;
    max-width: none;
  }
}
@media (max-width: 640px) {
  .article-content .zl-ip-item { gap: 12px; padding: 12px; }
  .article-content .zl-ip-thumb { width: 96px; height: 72px; border-radius: 8px; }
  .article-content .zl-ip-thumb .thumb-fallback span { font-size: 28px; }
  .article-content .zl-ip-thumb-fallback { font-size: 28px; }
  .article-content .zl-ip-title { font-size: 14.5px; }
  .article-content .zl-ip-excerpt {
    font-size: 12.5px;
    -webkit-line-clamp: 2;
  }
  .article-content .zl-ip-meta { font-size: 11.5px; }
}
/* ============================================================
   37. LOGO 日夜版切换（全局生效，包含头部和底部）
   ============================================================ */
.logo-img {
  max-height: 40px;   /* 记录的高度 */
  width: auto;
  display: block;
  transition: opacity .2s ease;
}

/* 默认隐藏夜间版 */
.logo-dark { display: none; }

/* 深色模式时切换 */
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark  { display: block; }

/* 移动端稍微缩小一点 */
@media (max-width: 860px) {
  .logo-img { max-height: 32px; }
}
/* ============================================================
   39. 移动端菜单层级优化
   ============================================================ */
@media (max-width: 860px) {
  
  /* ---- 1. 一级菜单：字体加粗、加大，颜色更深 ---- */
  .nav > ul > li > a {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text);
    padding: 13px 14px;
  }

  /* 一级菜单（含有二级的）展开时，背景微亮，箭头翻转 */
  .nav .menu-item-has-children.is-open > a,
  .nav .page_item_has_children.is-open > a {
    background: var(--surface-2);
  }

  /* ---- 2. 二级菜单容器：左侧缩进 + 垂直连接线 ---- */
  .nav .sub-menu {
    display: none;
    margin: 4px 0 8px 20px; /* 整体向右缩进 20px */
    padding: 4px 0 4px 12px; /* 左侧留出线的空隙 */
    border-left: 2px solid var(--border); /* 垂直连接线 */
  }

  .nav .menu-item-has-children.is-open > .sub-menu,
  .nav .page_item_has_children.is-open > .sub-menu {
    display: block;
  }

  /* ---- 3. 二级菜单项：字号变小、颜色变浅、前加小圆点 ---- */
  .nav .sub-menu a {
    position: relative;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 8px;
  }

  /* 小圆点 */
  .nav .sub-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-3);
    opacity: 0.5;
    transition: .2s;
  }

  /* 二级菜单悬停 & 当前选中 */
  .nav .sub-menu a:hover,
  .nav .sub-menu .current-menu-item > a {
    background: var(--surface-2);
    color: var(--accent);
  }
  
  /* 悬停/选中时，圆点变主色并放大 */
  .nav .sub-menu a:hover::before,
  .nav .sub-menu .current-menu-item > a::before {
    background: var(--accent);
    opacity: 1;
    transform: translateY(-50%) scale(1.3);
  }
}
/* ============================================================
   侧边栏热门文章标题截断与浏览量排版
   ============================================================ */
.mini-post-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
/* ★ 修改这里：让图标和数字对齐 */
.mini-views {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
}
/* 如果需要图标稍微小一点点，可以加这句 */
.mini-views svg {
  width: 13px;
  height: 13px;
  opacity: 0.8;
}
.mini-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
  transition: .2s;
  /* 核心：单行截断加省略号 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-views {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.mini-date {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  margin-bottom: 0;
}
/* ============================================================
   修复手机端列表/搜索/标签页横向溢出（安全版）
   ============================================================ */
/* 1. 强制切断横向滚动，防止手机端漏边 */
html, body {
  overflow-x: hidden;
}

/* 2. 防止超长的分类名、标签名或标题撑破布局 */
.page-hero h1,
.page-hero p,
.filter-tabs a,
.widget-title,
.mini-title,
.post-item-title {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 3. 针对筛选标签，如果实在太长，强制单行省略 */
.filter-tabs a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 4. 解决手机端搜索框被 flex 撑开的问题（仅限手机端） */
@media (max-width: 860px) {
  .search-box {
    min-width: 0 !important; 
    width: 100%;
  }
}