/*
Theme Name: 格致 GeZhi
Theme URI: https://example.com/gezhi
Author: GeZhi Studio
Author URI: https://example.com
Description: 为「学习效率工具」打造的 WordPress 主题。视觉语汇取自中国学生的书桌：方格笔记本底纹、钢笔墨蓝、荧光笔划线、红笔批注；首屏以艾宾浩斯遗忘曲线为签名元素，内建可直接使用的番茄钟（首页区块 + [gezhi_pomodoro] 短代码），并为学习方法类文章优化了中文排版。
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gezhi
Tags: blog, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* --------------------------------------------------
   0. 设计令牌（Design Tokens）
-------------------------------------------------- */
:root {
  /* 纸 · 墨 · 笔 */
  --paper: #f7faf3;            /* 护眼纸（微绿冷调） */
  --paper-2: #ffffff;          /* 卡片纸 */
  --ink: #1c2b3a;              /* 钢笔墨蓝黑 */
  --ink-2: #3d4c5e;            /* 正文 */
  --muted: #6b7a8c;            /* 次要文字 */
  --line: rgba(28, 43, 58, .14);
  --grid: rgba(28, 43, 58, .05);

  --blue: #2b5bdc;             /* 钢笔蓝 = 唯一交互色 */
  --blue-deep: #1d47b8;
  --marker: #ffe14d;           /* 荧光黄（仅用于划线与小色块） */
  --marker-soft: rgba(255, 225, 77, .22);
  --red: #de4b3f;              /* 红笔（曲线/极少量强调） */
  --green: #2f9e63;            /* 曲线「按节点复习」 */

  --shadow: 0 1px 2px rgba(28, 43, 58, .05), 0 10px 28px rgba(28, 43, 58, .08);
  --hard: 3px 3px 0 rgba(28, 43, 58, .12);
  --radius: 12px;
  --radius-lg: 16px;

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
          "MiSans", "HONOR Sans CN", "Microsoft YaHei", "Segoe UI", Roboto,
          "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo,
          Consolas, "Liberation Mono", monospace;

  --container: 1180px;
}

/* --------------------------------------------------
   1. 基础
-------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--ink-2);
  background-color: var(--paper);
  /* 方格本底纹（32px 极淡网格） */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
}

/* 笔记本左侧红色页边线 */
body::before {
  content: "";
  position: fixed;
  top: 0; bottom: 0; left: 30px;
  width: 1px;
  background: rgba(222, 75, 63, .22);
  pointer-events: none;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: .01em;
}

p { margin: 0 0 1.5em; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }

img { max-width: 100%; height: auto; }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--marker); color: var(--ink); }

/* --------------------------------------------------
   2. 通用工具类
-------------------------------------------------- */
.gz-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* 眉标：荧光小方块 + 等宽字 */
.gz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .2em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}
.gz-eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--marker);
  border: 1.5px solid var(--ink);
  flex: none;
}

/* 荧光笔划线 */
.hl {
  background-image: linear-gradient(
    transparent 58%,
    rgba(255, 225, 77, .9) 58%,
    rgba(255, 225, 77, .9) 96%,
    transparent 96%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .08em;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: .85em 1.6em;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease,
              border-color .16s ease, color .16s ease, background .16s ease;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--hard);
}
.btn-primary:hover {
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(28, 43, 58, .14);
}
.btn-primary:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(28,43,58,.14); }
.btn-ghost {
  background: var(--paper-2);
  border-color: rgba(28, 43, 58, .28);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* 区块通用 */
.gz-section { padding: 92px 0; }
.gz-section--white {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gz-section-head { max-width: 640px; margin-bottom: 52px; }
.gz-section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: .45em;
}
.gz-section-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.gz-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.gz-section-head--center .gz-eyebrow { justify-content: center; }

/* 入场动画 */
.gz-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0s);
}
.gz-reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------
   3. 页头 / 导航
-------------------------------------------------- */
.gz-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 243, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.gz-header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}
.gz-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--ink);
  letter-spacing: .02em;
}
.gz-brand:hover { color: var(--ink); }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 44px; width: auto; display: block; }
.gz-brand .custom-logo { max-height: 40px; width: auto; display: block; }
.gz-brand-mark { flex: none; display: block; }
.gz-brand-tag {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .18em;
  border-left: 1px solid var(--line);
  padding-left: 10px;
  margin-left: 2px;
}

.gz-nav { margin-left: auto; }
.gz-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gz-nav a {
  display: block;
  padding: 9px 14px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  position: relative;
}
.gz-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 3px;
  background: var(--marker);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.gz-nav a:hover { color: var(--ink); }
.gz-nav a:hover::after,
.gz-nav .current-menu-item > a::after,
.gz-nav .current_page_item > a::after { transform: scaleX(1); }

.gz-header-cta { flex: none; }
.gz-header-cta .btn { padding: .7em 1.3em; font-size: .92rem; }

/* 移动端汉堡 */
.gz-burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 9px;
  cursor: pointer;
  position: relative;
}
.gz-burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.gz-burger span:nth-child(1) { top: 14px; }
.gz-burger span:nth-child(2) { top: 20px; }
.gz-burger span:nth-child(3) { top: 26px; }
.gz-burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.gz-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gz-burger[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* --------------------------------------------------
   4. 首屏 Hero + 遗忘曲线
-------------------------------------------------- */
.gz-hero { padding: 92px 0 72px; overflow: hidden; }
.gz-hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 60px;
  align-items: center;
}
.gz-hero h1 {
  font-size: clamp(2.45rem, 5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: .015em;
  margin-bottom: 24px;
}
.gz-hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 33em;
  margin-bottom: 34px;
}
.gz-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

/* 方法参数条（等宽字，非营销数字） */
.gz-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .04em;
}
.gz-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gz-hero-meta span::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--marker);
  border: 1px solid var(--ink);
  flex: none;
}

/* 曲线卡片 */
.gz-curve-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 20px 14px;
}
.gz-curve-plot {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.gz-curve-plot svg { display: block; width: 100%; height: auto; }
.gz-curve-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 12px 6px 4px;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: .06em;
}
.gz-legend { display: inline-flex; align-items: center; gap: 7px; }
.gz-legend i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.gz-legend--red i { background: var(--red); }
.gz-legend--green i { background: var(--green); }
.gz-curve-cap .gz-cap-note { margin-left: auto; }

/* 曲线描线动画 */
.gz-curve .gz-draw {
  stroke-dasharray: 980;
  stroke-dashoffset: 980;
  transition: stroke-dashoffset 1.9s cubic-bezier(.45, 0, .2, 1) .25s;
}
.gz-curve.is-in .gz-draw { stroke-dashoffset: 0; }
.gz-curve .gz-dot,
.gz-curve .gz-note { opacity: 0; transition: opacity .5s ease 1.7s; }
.gz-curve.is-in .gz-dot,
.gz-curve.is-in .gz-note { opacity: 1; }

/* --------------------------------------------------
   5. 功能卡片（闪卡）
-------------------------------------------------- */
.gz-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gz-feature {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--hard);
  padding: 26px 24px 22px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.gz-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(43, 91, 220, .45);
  box-shadow: 5px 5px 0 rgba(28, 43, 58, .1);
}
.gz-feature-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--ink);
}
.gz-feature-icon svg { width: 24px; height: 24px; }
.gz-feature h3 { font-size: 1.12rem; margin-bottom: .4em; }
.gz-feature p { font-size: .95rem; color: var(--muted); line-height: 1.85; margin: 0; }

/* --------------------------------------------------
   6. 三步法（真实序列，编号承载信息）
-------------------------------------------------- */
.gz-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.gz-steps::before {
  content: "";
  position: absolute;
  top: 26px; left: 8%; right: 8%;
  border-top: 2px dashed var(--line);
}
.gz-step { position: relative; }
.gz-step-num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px; height: 52px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--marker);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--hard);
  margin-bottom: 18px;
}
.gz-step h3 { font-size: 1.18rem; margin-bottom: .4em; }
.gz-step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* --------------------------------------------------
   7. 番茄钟（可用组件）
-------------------------------------------------- */
.gz-pomo {
  max-width: 560px;
  margin: 0 auto;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px 34px 30px;
  text-align: center;
}
.gz-pomo-tabs {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 26px;
}
.gz-pomo-tab {
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.gz-pomo-tab:hover { color: var(--ink); }
.gz-pomo-tab.is-active { background: var(--ink); color: var(--paper); }

.gz-pomo-stage { position: relative; width: 240px; margin: 0 auto 24px; }
.gz-pomo-stage svg { display: block; width: 100%; height: auto; transform: rotate(-90deg); }
.gz-pomo-track { fill: none; stroke: rgba(28, 43, 58, .1); stroke-width: 9; }
.gz-pomo-bar {
  fill: none;
  stroke: var(--blue);
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset .3s linear, stroke .3s ease;
}
.gz-pomo.is-break .gz-pomo-bar { stroke: var(--green); }
.gz-pomo-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 2px;
}
.gz-pomo-time {
  font-family: var(--mono);
  font-size: 3.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.gz-pomo-state {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .28em;
  color: var(--muted);
}
.gz-pomo-controls { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; }

.gz-pomo-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--muted);
}
.gz-pomo-dots i {
  width: 11px; height: 11px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  display: inline-block;
  background: transparent;
}
.gz-pomo-dots i.is-done { background: var(--marker); }

/* --------------------------------------------------
   8. 文章卡片（博客列表 / 最新文章）
-------------------------------------------------- */
.gz-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gz-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--hard);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.gz-card:hover {
  transform: translateY(-4px);
  border-color: rgba(43, 91, 220, .45);
  box-shadow: 5px 5px 0 rgba(28, 43, 58, .1);
}
.gz-card-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.gz-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gz-card-thumb--ph {
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--paper);
  color: var(--muted);
}
.gz-card-thumb--ph svg { width: 46px; height: 46px; opacity: .45; }
.gz-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.gz-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: .05em;
  margin-bottom: 12px;
}
.gz-card-cat {
  display: inline-block;
  background: var(--marker);
  border: 1px solid var(--ink);
  border-radius: 5px;
  color: var(--ink);
  padding: 1px 8px;
  font-weight: 600;
}
.gz-card-cat:hover { color: var(--ink); background: #ffd90f; }
.gz-card h3 { font-size: 1.13rem; line-height: 1.55; margin-bottom: .5em; }
.gz-card h3 a { color: var(--ink); }
.gz-card h3 a:hover { color: var(--blue); }
.gz-card-excerpt { font-size: .93rem; color: var(--muted); line-height: 1.85; margin: 0 0 16px; }
.gz-card-more {
  margin-top: auto;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--blue);
}

/* 置顶文章 */
.sticky.gz-card { border-color: var(--marker); }

/* --------------------------------------------------
   9. CTA 收束带
-------------------------------------------------- */
.gz-cta {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(247, 250, 243, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 250, 243, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 96px 0;
  text-align: center;
}
.gz-cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.gz-cta .hl { color: var(--ink); }
.gz-cta-note {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .08em;
  color: rgba(247, 250, 243, .65);
  margin-bottom: 34px;
}
.gz-cta .btn-primary { box-shadow: 4px 4px 0 rgba(0, 0, 0, .35); }

/* --------------------------------------------------
   10. 页脚
-------------------------------------------------- */
.gz-footer {
  background: #14202e;
  color: rgba(247, 250, 243, .72);
  font-size: .93rem;
}
.gz-footer a { color: rgba(247, 250, 243, .72); }
.gz-footer a:hover { color: #fff; }
.gz-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.gz-footer .gz-brand { color: #fff; margin-bottom: 14px; }
.gz-footer-about { max-width: 30em; line-height: 1.9; margin: 0; }
.gz-footer h4 {
  color: #fff;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .22em;
  font-weight: 600;
  margin-bottom: 16px;
}
.gz-footer ul { list-style: none; margin: 0; padding: 0; }
.gz-footer li { margin-bottom: 8px; }
.gz-footer-bottom {
  border-top: 1px solid rgba(247, 250, 243, .12);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: rgba(247, 250, 243, .5);
}
.gz-footer-bottom a { color: rgba(247, 250, 243, .6); }

/* 页脚小部件通用 */
.gz-footer .widget { margin-bottom: 24px; }
.gz-footer .widget-title {
  color: #fff;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .22em;
  font-weight: 600;
  margin-bottom: 16px;
}

/* --------------------------------------------------
   11. 内页 / 归档 / 文章
-------------------------------------------------- */
.gz-page-head { padding: 76px 0 44px; }
.gz-page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  margin-bottom: .3em;
}
.gz-page-head .gz-page-desc { color: var(--muted); max-width: 46em; margin: 0; }

.gz-main { padding-bottom: 92px; }

/* 文章页 */
.gz-article {
  max-width: 780px;
  margin: 0 auto;
}
.gz-article-head { padding: 76px 0 8px; }
.gz-article-head h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.4;
  margin: 14px 0 18px;
}
.gz-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .05em;
}
.gz-article-thumb {
  margin: 34px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.gz-article-thumb img { display: block; width: 100%; }

/* 正文排版（中文优化） */
.entry-content { font-size: 1.0625rem; line-height: 2.05; padding-top: 34px; }
.entry-content > * + * { margin-top: 1.5em; }
.entry-content p { margin: 0; }
.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2.2em 0 .9em;
  padding-left: 14px;
  border-left: 5px solid var(--marker);
}
.entry-content h3 { font-size: 1.22rem; margin: 1.9em 0 .7em; }
.entry-content h4 { font-size: 1.08rem; margin: 1.7em 0 .6em; }
.entry-content a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(43, 91, 220, .4);
}
.entry-content a:hover { text-decoration-color: var(--blue); }
.entry-content ul, .entry-content ol { padding-left: 1.7em; }
.entry-content li { margin: .45em 0; }
.entry-content li::marker { color: var(--blue); font-family: var(--mono); }
.entry-content blockquote {
  margin: 1.8em 0;
  padding: 1.1em 1.4em;
  background: var(--marker-soft);
  border-left: 4px solid var(--marker);
  border-radius: 0 10px 10px 0;
  color: var(--ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(28, 43, 58, .07);
  padding: .18em .45em;
  border-radius: 5px;
}
.entry-content pre {
  background: var(--ink);
  color: var(--paper);
  padding: 1.2em 1.4em;
  border-radius: 12px;
  overflow: auto;
  line-height: 1.7;
}
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content img { border-radius: 10px; }
.entry-content hr {
  border: 0;
  border-top: 2px dashed var(--line);
  margin: 2.4em 0;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.entry-content th, .entry-content td {
  border: 1px solid var(--line);
  padding: .6em .9em;
  text-align: left;
}
.entry-content th { background: rgba(28, 43, 58, .04); font-weight: 700; }

/* 标签 */
.gz-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.gz-tags a {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
}
.gz-tags a:hover { border-color: var(--blue); color: var(--blue); }

/* 上一篇 / 下一篇 */
.gz-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.gz-post-nav a {
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--ink);
  transition: border-color .16s ease, transform .16s ease;
}
.gz-post-nav a:hover { border-color: var(--blue); transform: translateY(-2px); }
.gz-post-nav .nav-label {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 6px;
}
.gz-post-nav .nav-next { text-align: right; }

/* --------------------------------------------------
   12. 评论
-------------------------------------------------- */
.gz-comments { margin-top: 64px; padding-top: 40px; border-top: 2px dashed var(--line); }
.gz-comments-title { font-size: 1.3rem; margin-bottom: 24px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 28px; }
.comment-body {
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-meta .avatar { border-radius: 9px; border: 1px solid var(--line); }
.comment-author-name { font-weight: 700; color: var(--ink); font-size: .98rem; }
.bypostauthor > .comment-body .comment-author-name::after {
  content: "作者";
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--marker);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 8px;
  vertical-align: 2px;
}
.comment-date {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--muted);
}
.comment-text { font-size: .98rem; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-reply-link {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
}

/* 表单 */
.comment-form label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.comment-form p { margin-bottom: 18px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
  width: 100%;
  font-family: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .72em 1em;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.comment-form input:focus,
.comment-form textarea:focus,
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 91, 220, .15);
}

/* 搜索表单 */
.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form .search-submit { flex: none; }

/* --------------------------------------------------
   13. 分页
-------------------------------------------------- */
.gz-pagination { margin-top: 56px; }
.gz-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gz-pagination .page-numbers {
  min-width: 42px;
  padding: 8px 12px;
  display: inline-grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .88rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.gz-pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.gz-pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gz-pagination .page-numbers.dots { border: 0; background: none; }

/* --------------------------------------------------
   14. 404 / 空结果
-------------------------------------------------- */
.gz-404 { text-align: center; padding: 120px 0 140px; }
.gz-404-code {
  font-family: var(--mono);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
}
.gz-404 h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.gz-404 p { color: var(--muted); margin-bottom: 30px; }
.gz-404 .search-form { margin: 0 auto 26px; }

/* --------------------------------------------------
   15. WordPress 必备类
-------------------------------------------------- */
.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 !important;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--paper-2);
  clip: auto !important;
  clip-path: none;
  color: var(--ink);
  display: block;
  height: auto;
  left: 8px;
  top: 8px;
  padding: 14px 20px;
  width: auto;
  z-index: 100000;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.skip-link { position: absolute; }

.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin: 1.6em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  padding-top: 8px;
}

/* --------------------------------------------------
   16. 响应式
-------------------------------------------------- */
@media (max-width: 1024px) {
  .gz-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .gz-curve-card { max-width: 640px; }
  .gz-features { grid-template-columns: repeat(2, 1fr); }
  .gz-cards { grid-template-columns: repeat(2, 1fr); }
  .gz-steps { grid-template-columns: 1fr; gap: 34px; }
  .gz-steps::before { display: none; }
}

@media (max-width: 820px) {
  body::before { display: none; }
  .gz-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 28px 18px;
    margin: 0;
  }
  .gz-nav.is-open { display: block; }
  .gz-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .gz-nav a { padding: 12px 8px; font-size: 1rem; }
  .gz-nav a::after { display: none; }
  .gz-burger { display: block; }
  .gz-header-cta { display: none; }
  .gz-section { padding: 68px 0; }
  .gz-hero { padding: 64px 0 56px; }
}

@media (max-width: 620px) {
  .gz-container { padding: 0 20px; }
  .gz-features, .gz-cards { grid-template-columns: 1fr; }
  .gz-footer-grid { grid-template-columns: 1fr; gap: 34px; padding: 52px 0 36px; }
  .gz-pomo { padding: 26px 20px 24px; }
  .gz-pomo-stage { width: 200px; }
  .gz-pomo-time { font-size: 2.5rem; }
  .gz-post-nav { grid-template-columns: 1fr; }
  .gz-hero-actions .btn { width: 100%; }
  .comment-list .children { margin-left: 14px; }
}

/* --------------------------------------------------
   17. 动效偏好
-------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .gz-reveal { opacity: 1; transform: none; }
  .gz-curve .gz-draw { stroke-dashoffset: 0; }
  .gz-curve .gz-dot, .gz-curve .gz-note { opacity: 1; }
}
