/* ============================================================
   主页 · 编辑宣言风（米色纸面 + 大衬线 + 橙红点缀）
   灵感参考 sac-ai.com 的排版气质，内容与组件结构不变
   ============================================================ */
:root {
  --paper: #f4efe6;
  --card: #fffdf7;
  --ink: #17140f;
  --ink-soft: #57503f;
  --ink-faint: #9a9184;
  --line: rgba(23, 20, 15, 0.14);
  --accent: #e14e1f;
  --accent-soft: rgba(225, 78, 31, 0.07);
  --bg-raised: var(--card);   /* 火焰描边等组件依赖此变量 */
  --serif: "Playfair Display", "Noto Serif SC", serif;
  --cserif: "Noto Serif SC", serif;
  --sans: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
::selection { background: var(--accent); color: #fff; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 32px; }

/* 纸面颗粒质感（固定层，pointer-events 穿透，不影响滚动性能） */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- 顶栏 ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--sans); font-weight: 700; font-size: 18px;
  letter-spacing: 0.03em; color: var(--ink); text-decoration: none;
}
/* 手写体品牌签名 */
.brand-hand {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.01em;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 14px; color: var(--ink); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* ---------- 分区通用 ---------- */
section { border-bottom: 1px solid var(--line); padding: 88px 0; }

/* 编辑式分区大标题：斜体大编号 + 衬线大标题 + 发丝线 */
.sec-head {
  display: flex; align-items: flex-start; gap: 22px;
  margin-bottom: 52px;
}
.sec-num {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  flex: none;
}
.sec-head-text { flex: 1; min-width: 0; }
.sec-head-text h2 {
  font-family: var(--cserif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.sec-head-text .sec-en {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em;
  color: var(--ink-faint);
  display: inline-block; margin-top: 10px;
}
.sec-head-text::after {
  content: ""; display: block; height: 1px; background: var(--line);
  margin-top: 22px;
}

/* 兼容旧的小标签样式（posts 等页仍用 style.css，不受影响） */
.sec-label {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 40px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--ink-faint);
}
.sec-label b {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 26px; color: var(--accent);
}
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; }
/* 打字机光标：橙色方块，打完闪耀；第二行整体不换行，光标紧跟「遇」 */
.hero-line2 { white-space: nowrap; }
.hero h1 .cursor {
  display: inline-block;
  width: 0.5em; height: 0.95em;
  margin-left: 6px; vertical-align: -0.12em;
  background: var(--accent);
  animation: cursor-blink 1.1s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
.hero h1 .cursor.shine { animation: cursor-shine 1.5s ease-in-out infinite; }
@keyframes cursor-shine {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(225,78,31,.6), 0 0 16px rgba(225,78,31,.45); }
  50% { opacity: 0.75; box-shadow: 0 0 14px rgba(225,78,31,.75), 0 0 36px rgba(225,78,31,.55); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .cursor, .hero h1 .cursor.shine { animation: none; box-shadow: 0 0 10px rgba(225,78,31,.5); }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 32px;
}
.hero-portrait { display: flex; justify-content: center; }
.hero-portrait img {
  width: 100%; max-width: 460px; display: block;
  /* 插画边缘自然融入米色纸面；微斜切入，制造与标题的交叠张力 */
  filter: saturate(1.02);
  transform: rotate(2.5deg);
}
@media (min-width: 900px) {
  /* 人物整体右移：贴右列右缘，不再探入标题区 */
  .hero-portrait { justify-content: flex-end; margin-left: 0; position: relative; z-index: 0; }
  .hero-text { position: relative; z-index: 1; }
}
/* 粒子喷绘画布（启用时替代静态图） */
.hero-portrait canvas { display: none; width: 100%; max-width: 460px; aspect-ratio: 1; }
.hero-portrait.canvas-on canvas { display: block; }
.hero-portrait.canvas-on img { display: none; }
.hero .hero-kicker {
  font-size: 13.5px; color: var(--accent); font-weight: 500;
  letter-spacing: 0.06em; margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--cserif);
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.hero .tagline { margin-top: 22px; font-size: 17px; color: var(--ink-soft); max-width: 560px; }
.hero-rule { height: 1px; background: var(--line); margin: 34px 0 26px; max-width: 520px; }
.hero-stats { display: flex; gap: 34px; margin-bottom: 30px; }
.hero-stats b {
  font-family: var(--cserif); font-weight: 900; font-size: 26px;
  color: var(--accent); margin-right: 6px;
}
.hero-stats span { font-size: 13px; color: var(--ink-soft); }
.hero-stats > div { display: flex; align-items: baseline; }
.hero .links { display: flex; gap: 12px; flex-wrap: wrap; }

/* 胶囊按钮 */
.chip {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 9px 22px;
  border: 1px solid var(--ink); border-radius: 999px;
  color: var(--ink); background: none;
  text-decoration: none; cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.copied { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 复制提示条 */
.copy-toast {
  position: fixed; left: 50%; bottom: 40px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 13px;
  padding: 10px 20px; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%); }
.copy-toast b { color: #ffb35c; font-weight: 600; }

/* ---------- 项目卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: 4px;
  padding: 28px 26px; background: var(--card);
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--ink); }
/* 项目卡悬停：标题箭头滑出 */
.card h3 { position: relative; }
.card h3::after {
  content: "→";
  font-family: var(--sans); font-weight: 400;
  color: var(--accent);
  margin-left: 8px;
  display: inline-block;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(.22,1,.36,1);
}
.card:hover h3::after { opacity: 1; transform: none; }

/* 聚光灯：跟随鼠标的橙色光晕（--mx/--my 由 JS 写入） */
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(225, 78, 31, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

/* 经历条目交错滑入 */
.exp-enter {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.22,1,.36,1);
}
.exp-enter.exp-in { opacity: 1; transform: none; }
a.card { display: block; text-decoration: none; color: inherit; }
.card h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; }
.card h3 a { color: inherit; text-decoration: none; }
.card p { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; }
.card .tags { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.card .tags span {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-faint); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px;
}
.card .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.card .badges img { height: 18px; display: block; }

/* 「很火」项目：旋转火焰描边（border-box 渐变，永不淹没卡片） */
@property --fire-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.card { position: relative; }
.card.hot {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    conic-gradient(from var(--fire-a), #ff6a33, #ffb35c, #ff6a33, #ff8c42, #ff6a33) border-box;
  animation: fire-spin 6s linear infinite;
  box-shadow: 0 0 22px rgba(255, 107, 51, 0.30), 0 0 56px rgba(255, 140, 66, 0.16);
}
.card.hot:hover { border-color: transparent; }
@keyframes fire-spin { to { --fire-a: 360deg; } }
.hot-badge {
  display: none;
  margin-left: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 999px;
  color: #fff; background: linear-gradient(90deg, #ff6a33, #ff8c42);
  vertical-align: 3px;
  animation: hot-pulse 1.2s ease-in-out infinite;
}
.card.hot .hot-badge { display: inline-block; }
@keyframes hot-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ---------- 经历时间线 ---------- */
.exp-group-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--ink-faint); margin: 30px 0 16px;
}
.exp-group-label:first-of-type { margin-top: 0; }
.timeline { list-style: none; }
.timeline li {
  position: relative;
  padding: 0 0 18px 28px;
  border-left: 1px solid var(--line);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 22px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
  z-index: 1;
}
.exp-head {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--card); cursor: pointer;
  text-align: left; font-family: inherit; color: inherit;
  transition: border-color 0.2s;
}
.exp-head:hover { border-color: var(--ink); }
.exp-logo {
  flex: none; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.exp-logo img { width: 28px; height: 28px; object-fit: contain; }
.exp-logo .logo-text { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.logo-aia { color: #d22630; font-size: 15px; }
.logo-badge {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--cserif); font-size: 17px; font-weight: 700;
}
.exp-main { min-width: 0; flex: 1; }
.exp-company { font-weight: 600; font-size: 15px; display: block; }
.exp-role { font-size: 13px; color: var(--ink-soft); display: block; margin-top: 1px; }
.exp-date {
  flex: none; font-family: var(--mono); font-size: 12px;
  color: var(--ink-faint); letter-spacing: 0.05em;
}
.exp-toggle {
  flex: none; font-family: var(--mono); font-size: 16px;
  color: var(--ink-faint); transition: transform 0.25s ease;
}
.exp.open .exp-toggle { transform: rotate(45deg); color: var(--accent); }
.exp-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.exp.open .exp-body { grid-template-rows: 1fr; }
.exp-body-inner { overflow: hidden; }
.exp-body-content { padding: 14px 18px 4px; font-size: 14.5px; color: var(--ink-soft); }
.exp-body-content p { margin-bottom: 0.9em; }
.exp-body-content strong { color: var(--ink); }
.exp-body-content ul { padding-left: 1.2em; margin-bottom: 0.8em; }
.exp-body-content li { margin-bottom: 0.4em; border: none; padding: 0; }
.exp-body-content li::before { display: none; }
.exp-article { margin-top: 12px; }
.exp-article a {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 13.5px; color: var(--accent); text-decoration: none;
  border-left: 3px solid var(--accent); padding-left: 10px;
  transition: opacity 0.2s;
}
.exp-article a:hover { opacity: 0.75; text-decoration: underline; }

/* ---------- 技能 ---------- */
.skills { display: flex; flex-direction: column; gap: 18px; }
.skills-group { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.skills-cat {
  flex: none; width: 96px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.skill {
  font-family: var(--mono); font-size: 13px;
  padding: 5px 15px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); background: var(--card);
  transition: all 0.2s;
}
.skill:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 随笔列表 ---------- */
.post-list { list-style: none; }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list li:last-child { border-bottom: none; }
.post-list a {
  display: flex; align-items: baseline; gap: 22px;
  /* 右侧预留箭头空间，避免悬停箭头压住摘要 */
  padding: 20px 44px 20px 8px;
  text-decoration: none; color: inherit;
  transition: background 0.2s, padding-left 0.25s cubic-bezier(.22,1,.36,1);
  position: relative;
}
.post-list a::after {
  content: "→";
  position: absolute; right: 8px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}
.post-list a:hover { background: var(--accent-soft); padding-left: 18px; }
.post-list a:hover::after { opacity: 1; }
.post-list .p-date {
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint);
  white-space: nowrap;
}
.post-list .p-title { font-family: var(--cserif); font-weight: 700; font-size: 17px; }
.post-list .p-summary { font-size: 13px; color: var(--ink-faint); margin-left: auto; }

/* ---------- 页脚：海报式结束语 ---------- */
.site-footer { padding: 88px 0 44px; }
.foot-motto {
  font-family: var(--cserif); font-weight: 900;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 56px;
}
.foot-motto::after {
  content: "";
  display: block; width: 72px; height: 3px;
  background: var(--accent);
  margin-top: 26px;
}
.site-footer .foot-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-faint); letter-spacing: 0.06em;
}
.site-footer a { color: var(--ink-faint); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 20;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--ink); background: var(--paper);
  color: var(--ink); font-size: 16px; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.25s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-kicker { animation: hero-rise 0.8s cubic-bezier(.22,1,.36,1) both; }
  .hero h1 { animation: hero-rise 0.9s cubic-bezier(.22,1,.36,1) 0.1s both; }
  .hero .tagline { animation: hero-rise 0.9s cubic-bezier(.22,1,.36,1) 0.2s both; }
  .hero-rule, .hero-stats { animation: hero-rise 0.9s cubic-bezier(.22,1,.36,1) 0.3s both; }
  .hero .links { animation: hero-rise 0.9s cubic-bezier(.22,1,.36,1) 0.4s both; }
  .hero-portrait { animation: hero-rise 1s cubic-bezier(.22,1,.36,1) 0.2s both; }
}
@media (prefers-reduced-motion: reduce) {
  .card.hot, .hot-badge { animation: none; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  section { padding: 52px 0; }
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-portrait { order: -1; justify-content: flex-start; }
  .hero-portrait img { max-width: 240px; }
  .hero-stats { flex-wrap: wrap; gap: 18px; }
  .post-list a { flex-wrap: wrap; gap: 4px 12px; }
  .post-list .p-summary { margin-left: 0; width: 100%; }
  .nav-links { gap: 16px; }
  .exp-head { flex-wrap: wrap; }
  .exp-date { width: 100%; order: 3; padding-left: 54px; }
}

/* 页面间平滑过渡（Chrome View Transitions） */
@view-transition { navigation: auto; }

/* ---------- 鼠标墨点轨迹 ---------- */
.ink-dot {
  position: fixed;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
  pointer-events: none;
  z-index: 54;
  transform: translate(-50%, -50%);
  animation: ink-fade 0.8s ease-out forwards;
}
@keyframes ink-fade {
  to { opacity: 0; transform: translate(-50%, 4px) scale(0.3); }
}

/* ---------- 贡献热力图 ---------- */
.contrib { margin-top: 26px; max-width: 640px; }
.contrib img {
  width: 100%; display: block;
  /* 让绿色贡献图融入米色纸面：橙色调由 URL 参数控制 */
  border-radius: 6px;
}

/* ---------- ⌘K 命令面板 ---------- */
.cmdk {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  width: min(560px, 92vw);
  padding: 0;
  position: fixed; top: 15vh; left: 50%; transform: translateX(-50%);
  box-shadow: 0 24px 60px rgba(23, 20, 15, 0.25);
}
.cmdk::backdrop { background: rgba(23, 20, 15, 0.4); backdrop-filter: blur(3px); }
.cmdk-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.cmdk-head span { color: var(--accent); font-size: 18px; }
.cmdk-head input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--ink); font-size: 15px; font-family: var(--sans);
}
.cmdk-head kbd {
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px;
}
.cmdk-list { max-height: 320px; overflow-y: auto; }
.cmdk-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 18px; border: none; background: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 14px; font-family: var(--sans);
  text-align: left; cursor: pointer;
}
.cmdk-item.sel { background: var(--accent-soft); }
.ci-idx { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.ci-label { font-weight: 500; }
.ci-hint { margin-left: auto; font-size: 12px; color: var(--ink-faint); }
.cmdk footer {
  display: flex; gap: 18px; padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
}

/* ---------- 技能跑马灯（单个，滚动速度响应） ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: var(--card);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  width: max-content;
}
.mq-inner { display: flex; }
.mq-item {
  font-family: var(--cserif); font-weight: 900;
  font-size: 24px; color: var(--ink);
  padding: 0 18px;
  position: relative;
}
.mq-item::after {
  content: "";
  position: absolute; right: -4px; top: 50%;
  width: 8px; height: 8px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .marquee { display: none; }
}

/* ---------- 文章页（编辑宣言风） ---------- */
.post-header { padding: 80px 0 44px; border-bottom: 1px solid var(--line); }
.post-header h1 {
  font-family: var(--cserif);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--ink);
}
.post-meta {
  margin-top: 18px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.08em; color: var(--ink-faint);
}
.post-body { padding: 52px 0 72px; }
.post-body p { margin-bottom: 1.35em; color: #3f3a30; }
.post-body h2 {
  font-family: var(--cserif);
  font-size: 24px; font-weight: 700;
  margin: 2.2em 0 0.9em;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
.post-body blockquote {
  border-left: 3px solid var(--line);
  padding-left: 16px; color: var(--ink-soft);
  margin-bottom: 1.35em;
}
.post-body code {
  font-family: var(--mono); font-size: 0.9em;
  background: var(--accent-soft); color: var(--accent);
  padding: 2px 6px; border-radius: 4px;
}
.post-body a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed rgba(225,78,31,0.4); }
.post-body a:hover { border-bottom-style: solid; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin-bottom: 1.3em; color: #3f3a30; }
.post-body h3 {
  font-family: var(--cserif);
  font-size: 19px; font-weight: 700;
  margin: 1.8em 0 0.7em;
}
.post-body pre {
  font-family: var(--mono); font-size: 13px; line-height: 1.75;
  background: var(--accent-soft); color: #3f3a30;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 18px; margin-bottom: 1.35em;
  overflow-x: auto; white-space: pre;
}
.post-body pre code {
  background: none; color: inherit; padding: 0; border-radius: 0;
  font-size: inherit;
}
.post-body figure { margin: 1.6em 0; }
.post-body img {
  display: block; max-width: 100%; height: auto;
  margin: 0 auto; border: 1px solid var(--line); border-radius: 6px;
}
.post-body figcaption {
  text-align: center; font-size: 13px;
  color: var(--ink-faint); margin-top: 0.6em;
}

/* 键盘焦点可见性（全站） */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
