/* ============================================================
   ZHWJZ 的博客 · 温暖手作风
   配色: 纸张奶油底 / 陶土红点缀 / 鼠尾草绿辅助 / 暖棕墨色
   字体: 霞鹜文楷 (LXGW WenKai) + 楷体回退
   ============================================================ */

:root {
  --paper:  #f8f2e7;
  --paper-2:#f1e8d6;
  --card:   #fdf9f0;
  --ink:    #3a342b;
  --ink-soft: #6f6555;
  --clay:   #c26a44;
  --clay-deep: #a0502e;
  --clay-soft: #f0d9c6;
  --sage:   #7d8b66;
  --sage-soft: #e6e9d6;
  --butter: #f0d9a6;
  --line:   #e0d3b8;
  --shadow: 0 10px 30px rgba(122, 92, 48, .10);
  --kai: "LXGW WenKai", "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--kai);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* 纸张颗粒感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--clay); color: #fff; }

a { color: var(--clay-deep); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.4rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .5rem 1rem;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 242, 231, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px dashed var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 2px solid var(--clay);
  border-radius: 12px;
  color: var(--clay);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  background: var(--paper);
  transform: rotate(-4deg);
  box-shadow: 0 2px 0 rgba(160, 80, 46, .25);
  transition: transform .25s ease;
}
.brand:hover .stamp { transform: rotate(2deg) translateY(-2px); }
.brand-name { font-size: 1.12rem; }

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  margin-left: 1.3rem;
  padding-bottom: 3px;
  border-bottom: 2px dashed transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--clay); border-bottom-color: var(--clay); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero-kicker {
  margin: 0 0 .6rem;
  color: var(--clay);
  letter-spacing: .32em;
  font-size: .95rem;
  text-indent: .32em;
}
.hero-title {
  margin: 0;
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  line-height: 1.3;
  font-weight: 700;
}
.hero-title .hl {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
.hero-title .hl::before {
  content: "";
  position: absolute;
  inset: -0.12em -0.28em -0.08em;
  z-index: -1;
  transform: rotate(-1.6deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90' preserveAspectRatio='none'%3E%3Cpath d='M16 62 C 40 26, 78 12, 116 18 C 156 24, 190 16, 206 38 C 216 52, 196 72, 130 74 C 70 76, 32 78, 16 62 Z' fill='%23f0d9a6' opacity='.6'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.hero-sub {
  margin: 1.1rem auto 0;
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}
.hero-cta { margin-top: 2rem; }
.hero-cta .btn + .btn { margin-left: .7rem; }
.btn {
  display: inline-block;
  padding: .72em 1.5em;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  text-decoration: none;
  border: 2px solid var(--clay);
  transition: transform .22s, box-shadow .22s, background .22s;
  box-shadow: 0 4px 0 rgba(160, 80, 46, .35);
}
.btn:hover {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 7px 0 rgba(160, 80, 46, .3);
}
.btn-ghost {
  background: transparent;
  color: var(--clay);
  border-color: var(--clay);
  box-shadow: none;
  margin-left: .7rem;
}
.btn-ghost:hover { background: var(--clay-soft); border-color: var(--clay); color: var(--clay-deep); box-shadow: none; }

.hero-doodle {
  position: absolute;
  right: 5%;
  top: 3.4rem;
  width: 118px;
  opacity: .9;
  animation: float 7s ease-in-out infinite alternate;
}
.hero-doodle-left {
  position: absolute;
  left: 4%;
  top: 6.5rem;
  width: 76px;
  opacity: .8;
  animation: float 8s ease-in-out infinite alternate-reverse;
}
@keyframes float {
  from { transform: translateY(0) rotate(-2deg); }
  to   { transform: translateY(-10px) rotate(2deg); }
}

/* ---------- 通用区块 ---------- */
.section { padding: 3.6rem 0; }
.section-alt {
  background: var(--paper-2);
  border-top: 2px dashed var(--line);
  border-bottom: 2px dashed var(--line);
}
.section-title {
  margin: 0;
  text-align: center;
  font-size: 1.85rem;
  line-height: 1.5;
  letter-spacing: .02em;
  vertical-align: top;
}
.squiggle {
  display: block;
  width: 116px;
  height: 12px;
  margin: .45rem auto 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8 Q 16 1 30 7 T 60 7 T 90 7 T 118 6' fill='none' stroke='%23c26a44' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* ---------- 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.8rem;
  margin-top: 2.2rem;
}
.about-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 2rem;
  box-shadow: var(--shadow);
}
.about-card p { margin: 0 0 1rem; color: var(--ink-soft); }
.about-card p:last-child { margin-bottom: 0; }
.about-card h3 {
  margin: 0 0 1rem;
  font-size: 1.22rem;
  color: var(--clay-deep);
}
.facts-list { list-style: none; margin: 0; padding: 0; }
.facts-list li {
  padding: .5rem 0;
  border-bottom: 2px dashed var(--line);
  color: var(--ink-soft);
}
.facts-list li:last-child { border-bottom: none; }
.facts-note {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--ink-soft);
  background: var(--sage-soft);
  border-radius: 10px;
  padding: .5rem .8rem;
}

/* ---------- 文章卡片 ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.7rem;
  margin-top: 2.2rem;
}
.post-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 6px 18px rgba(122, 92, 48, .07);
}
.post-card:hover {
  transform: translateY(-6px) rotate(-.4deg);
  box-shadow: 0 16px 34px rgba(122, 92, 48, .14);
  border-color: var(--clay-soft);
}
.post-card a { display: flex; flex-direction: column; height: 100%; padding: 1.6rem 1.7rem 1.4rem; text-decoration: none; color: inherit; }
.post-meta { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.post-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--clay-soft);
  line-height: 1;
}
.post-meta time { font-size: .85rem; color: var(--ink-soft); }
.tag {
  display: inline-block;
  font-size: .8rem;
  color: var(--sage);
  background: var(--sage-soft);
  border-radius: 999px;
  padding: .12em .8em;
  white-space: nowrap;
}
.post-card h3 { margin: .85rem 0 .5rem; font-size: 1.32rem; line-height: 1.4; color: var(--ink); }
.post-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: .97rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-link {
  margin-top: auto;
  color: var(--clay);
  font-size: .95rem;
}
.post-link .arrow { display: inline-block; transition: transform .22s ease; }
.post-card:hover .post-link .arrow { transform: translateX(5px); }
.more-note { text-align: center; color: var(--ink-soft); margin: 2.2rem 0 0; font-size: .95rem; }

/* ---------- 文章页 ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: var(--clay);
  z-index: 100;
  border-radius: 0 4px 4px 0;
}
.article-wrap { max-width: 45rem; margin: 0 auto; padding: 3.2rem 1.4rem 4rem; }
.article-back {
  display: inline-block;
  color: var(--clay);
  text-decoration: none;
  font-size: .98rem;
  margin-bottom: 1.6rem;
  border-bottom: 2px dashed transparent;
  transition: border-color .2s;
}
.article-back:hover { border-bottom-color: var(--clay); }
.article-header { text-align: center; margin-bottom: 2.6rem; }
.article-title { margin: .8rem 0 .9rem; font-size: clamp(1.7rem, 4.4vw, 2.5rem); line-height: 1.35; }
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: .9rem;
}
.prose { font-size: 1.07rem; }
.prose p { margin: 0 0 1.35rem; }
.prose h2 {
  margin: 2.5rem 0 .9rem;
  font-size: 1.38rem;
  padding-left: .7rem;
  position: relative;
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .22em;
  bottom: .22em;
  width: 4px;
  border-radius: 2px;
  background: var(--clay);
}
.prose blockquote {
  margin: 1.7rem 0;
  padding: .9rem 1.3rem;
  background: var(--paper-2);
  border-left: 4px solid var(--clay);
  border-radius: 0 14px 14px 0;
  color: var(--ink);
}
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 0 0 1.35rem; }
.prose li { margin: .4rem 0; }
.prose li::marker { color: var(--clay); }
.prose hr { border: none; border-top: 2px dashed var(--line); width: 55%; margin: 2.4rem auto; }
.prose code {
  font-family: Consolas, "SF Mono", "Cascadia Mono", monospace;
  font-size: .88em;
  background: var(--paper-2);
  color: var(--clay-deep);
  padding: .15em .45em;
  border-radius: 6px;
}
.prose a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- 长文排版增强（essay） ---------- */
.article-dek {
  margin: .5rem auto 0;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.prose.essay {
  font-size: 1.1rem;
  line-height: 2.05;
  letter-spacing: .02em;
}
.prose.essay p { margin: 0 0 1.55rem; }

/* 开篇导语 */
.prose.essay .lead {
  font-size: 1.17rem;
  padding: .2rem 0 .2rem 1rem;
  border-left: 3px solid var(--clay-soft);
  color: var(--ink);
}

/* 重点强调（荧光笔效果） */
.prose.essay .hl {
  font-weight: 700;
  color: var(--clay-deep);
  background: linear-gradient(transparent 62%, var(--clay-soft) 0);
  padding: 0 .15em;
  border-radius: 3px;
}

/* 时间节点 */
.prose.essay .when {
  color: var(--clay-deep);
  font-weight: 700;
  margin-right: .2em;
}

/* 金句引用 */
.prose.essay .pull {
  margin: 2.3rem 0;
  padding: 1.4rem 2rem 1.3rem;
  text-align: center;
  font-size: 1.32rem;
  line-height: 1.75;
  font-weight: 700;
  color: var(--clay-deep);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.prose.essay .pull::before {
  content: "“";
  display: block;
  font-size: 2.8rem;
  line-height: .5;
  font-weight: 400;
  color: var(--butter);
  margin-bottom: .6rem;
}

/* 重点段落卡片 */
.prose.essay .note {
  margin: 2.2rem 0;
  padding: 1.35rem 1.55rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--clay);
  border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow);
}
.prose.essay .note p { margin: 0; }

/* 结尾总结 */
.prose.essay .conclusion {
  margin: 2.6rem 0 0;
  padding: 1.5rem 1.8rem;
  background: var(--paper-2);
  border-radius: 14px;
  text-align: center;
  font-size: 1.16rem;
  line-height: 2;
  box-shadow: var(--shadow);
}
.prose.essay .conclusion .hl { background: transparent; }

/* ---------- 视频嵌入 ---------- */
.video-embed {
  margin: 0 0 1.6rem;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 2px solid var(--line);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .12);
}
.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
  margin: 0 0 2rem;
  padding: .7rem 1.1rem;
  background: var(--paper-2);
  border-radius: 12px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.video-caption a {
  color: var(--clay);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.video-caption a:hover { text-decoration: underline; }
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 3.2rem;
  padding-top: 1.7rem;
  border-top: 2px dashed var(--line);
}
.post-nav a { text-decoration: none; color: var(--clay); max-width: 46%; line-height: 1.5; }
.post-nav .next { text-align: right; margin-left: auto; }
.post-nav .nav-label { display: block; font-size: .8rem; color: var(--ink-soft); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 3rem 0 2.4rem;
}
.site-footer h2 { margin: 0 0 .8rem; font-size: 1.6rem; color: var(--paper); }
.site-footer p { margin: .4rem 0; color: rgba(248, 242, 231, .78); }
.site-footer a { color: #e8a184; text-decoration: none; border-bottom: 2px dashed transparent; }
.site-footer a:hover { border-bottom-color: #e8a184; }
.footer-links { margin: 1.2rem 0; color: rgba(248, 242, 231, .4); font-size: .95rem; }
.footer-links a { margin: 0 .5rem; }
.copyright { font-size: .85rem; color: rgba(248, 242, 231, .55) !important; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 7rem 1.4rem 6rem; }
.notfound .big { font-size: clamp(4rem, 14vw, 7rem); font-weight: 700; color: var(--clay); line-height: 1; margin: 0; }
.notfound .big span { display: inline-block; animation: wiggle 3s ease-in-out infinite; }
.notfound .big span:nth-child(2) { animation-delay: .3s; }
.notfound .big span:nth-child(3) { animation-delay: .6s; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}
.notfound p { color: var(--ink-soft); font-size: 1.1rem; }
.notfound .btn { margin-top: 1rem; }

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

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-doodle, .hero-doodle-left { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-nav a { margin-left: .9rem; }
  .about-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.6rem 0 3rem; }
  .section { padding: 2.8rem 0; }
  .btn-ghost { margin-left: 0; margin-top: .7rem; }
  .hero-cta .btn { display: block; margin: .7rem auto 0; max-width: 220px; }
  .hero-cta .btn + .btn { margin-left: auto; }
  .post-nav { flex-direction: column; }
  .post-nav a, .post-nav .next { max-width: none; text-align: left; }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 作品集 ---------- */
.gallery-title {
  font-size: 1.5rem;
  margin: 2.8rem 0 1.2rem;
  color: var(--ink);
}
.work-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.work-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.work-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .45s ease;
}
.work-item:hover img { transform: scale(1.03); }
.gallery-note { margin-top: .9rem; color: var(--ink-soft); font-size: .9rem; }

.lightbox {
  border: none;
  padding: 0;
  background: rgba(26, 22, 16, .92);
  max-width: min(94vw, 1300px);
  max-height: 94vh;
  border-radius: 14px;
  color: var(--paper);
}
.lightbox::backdrop { background: rgba(20, 16, 10, .78); }
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 14px 14px 0 0;
}
.lightbox-caption { margin: .7rem 1.2rem 1rem; font-size: .95rem; color: rgba(248, 242, 231, .85); }
.lightbox-close {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  border-radius: 50%;
  background: rgba(248, 242, 231, .18);
  color: var(--paper);
  font-size: 1rem;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--clay); }

@media (max-width: 640px) {
  .work-gallery { grid-template-columns: 1fr; }
}

/* 首页作品卡 */
.works-grid { display: grid; gap: 1.2rem; }
.work-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.work-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(122, 92, 48, .16); }
.work-card img { width: 100%; height: 220px; object-fit: cover; object-position: center 30%; display: block; }
.work-card-body { padding: 1.5rem 1.6rem 1.3rem; display: flex; flex-direction: column; justify-content: center; }
.work-card-body h3 { margin: .7rem 0 .5rem; font-size: 1.3rem; color: var(--ink); line-height: 1.4; }
.work-card-body p { margin: 0 0 1rem; color: var(--ink-soft); font-size: .98rem; }
.work-card .post-link { color: var(--clay); font-weight: 600; }
@media (max-width: 760px) {
  .work-card { grid-template-columns: 1fr; }
  .work-card img { max-height: 220px; }
}

/* 视频页：去 B 站一键三连引导卡 */
.bili-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 1rem 1.3rem;
  background: var(--card);
  border: 2px dashed var(--line);
  border-radius: 14px;
  flex-wrap: wrap;
}
.bili-cta-text strong { display: block; font-size: 1.05rem; color: var(--ink); }
.bili-cta-text span { font-size: .9rem; color: var(--ink-soft); }
.bili-cta-btn {
  display: inline-block;
  padding: .6em 1.3em;
  border-radius: 999px;
  background: #fb7299;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 0 rgba(217, 77, 128, .3);
}
.bili-cta-btn:hover { background: #f7598a; transform: translateY(-2px); }
@media (max-width: 640px) {
  .bili-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .bili-cta-btn { text-align: center; }
}

/* 文章底部：分享按钮组 */
.share-box {
  margin-top: 2.6rem;
  padding: 1.1rem 1.3rem;
  background: var(--paper-2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.share-label { color: var(--ink-soft); font-size: .95rem; }
.share-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.share-btn {
  display: inline-block;
  padding: .45em 1.05em;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--clay-deep);
  font-family: inherit;
  font-size: .9rem;
  line-height: 1.6;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}
.share-btn:hover { border-color: var(--clay); background: var(--clay-soft); transform: translateY(-1px); }
.share-btn.liked { border-color: var(--clay); background: var(--clay-soft); color: var(--clay-deep); cursor: default; }
@media (max-width: 640px) {
  .share-box { flex-direction: column; align-items: flex-start; }
}

/* 列表页（文章 / 作品） */
.list-wrap { max-width: 68rem; margin: 0 auto; padding: 3rem 1.4rem 4rem; }
.list-header h1 { font-size: 1.9rem; margin: 0 0 .3rem; color: var(--ink); }
.list-header p { color: var(--ink-soft); margin: 0 0 2rem; }

/* 作品瀑布流（小红书式） */
.works-wall { columns: 2; column-gap: 1.1rem; }
.wall-card {
  display: block;
  break-inside: avoid;
  margin-bottom: 1.1rem;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.wall-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(122, 92, 48, .16); }
.wall-img img { display: block; width: 100%; height: auto; }
.wall-body { padding: .9rem 1.05rem 1rem; }
.wall-body h2 { margin: 0 0 .35rem; font-size: 1.08rem; line-height: 1.45; color: var(--ink); }
.wall-body p { margin: 0 0 .45rem; font-size: .88rem; color: var(--ink-soft); }
.wall-meta { font-size: .78rem; color: var(--clay); }
@media (max-width: 640px) { .works-wall { columns: 1; } }

/* 文章列表（轻博客式 + 封面缩略图） */
.post-list { display: grid; gap: 1rem; }
.list-item {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.list-item:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(122, 92, 48, .16); }
.list-item a { display: flex; gap: 1.1rem; align-items: stretch; padding: 1rem; text-decoration: none; color: inherit; }
.list-thumb { width: 190px; flex: none; border-radius: 10px; overflow: hidden; align-self: center; }
.list-thumb img { display: block; width: 100%; height: auto; }
.list-thumb.placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  border: 2px dashed var(--line);
  color: var(--clay);
  font-size: 2.3rem;
}
.list-body { flex: 1; padding: .15rem 0; }
.list-item-head { display: flex; align-items: center; gap: .7rem; }
.list-item-head time { font-size: .82rem; color: var(--ink-soft); }
.list-item h2 { margin: .45rem 0 .35rem; font-size: 1.22rem; line-height: 1.45; color: var(--ink); }
.list-item p { margin: 0 0 .6rem; font-size: .93rem; color: var(--ink-soft); }
.list-item .post-link { color: var(--clay); font-size: .9rem; }
@media (max-width: 640px) {
  .list-item a { flex-direction: column; }
  .list-thumb { width: 100%; }
}

/* 首页区块尾部的“查看全部” */
.section-more { text-align: center; margin-top: 1.6rem; }
.section-more .btn-ghost { margin-left: 0; }

/* 首页最新内容：左文章右作品并排 */
.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: start;
}
.home-split .post-grid,
.home-split .works-grid { gap: 1rem; }
.home-split .post-card a { padding: 1.2rem 1.3rem 1.1rem; }
.home-split .work-card { grid-template-columns: 220px 1fr; }
@media (max-width: 920px) {
  .home-split { grid-template-columns: 1fr; }
  .home-split .work-card { grid-template-columns: 1fr; }
  .home-split .work-card img { max-height: 220px; }
}

/* 首页文章卡封面缩略图 */
.post-card-thumb {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 12px 12px 0 0 !important;
  background: var(--paper-2) !important;
}
.home-split .post-card a { padding-top: 0; }

/* 首页并排：统一卡片高度感 */
.home-split .work-card img {
  height: auto !important;
  max-height: 220px !important;
  object-fit: contain !important;
  background: var(--paper-2) !important;
}
.home-split .post-card a,
.home-split .work-card-body { min-height: 150px; }

/* 首页左右标题强制对齐 */
.home-split > div:first-child > .section-title,
.home-split > div:last-child > .section-title {
  margin: 0 0 1.2rem !important;
  padding: 0 !important;
  text-align: center !important;
  height: 3.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}
.home-split > div:first-child > .section-title .squiggle,
.home-split > div:last-child > .section-title .squiggle {
  margin: .25rem auto 0 !important;
  flex-shrink: 0 !important;
}

/* 作品集置顶区 */
.works-pinned {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 2px dashed var(--line);
}
.works-pinned:empty { display: none; padding: 0; margin: 0; border: none; }
.works-pinned .wall-card { margin-bottom: 0; }
@media (max-width: 640px) { .works-pinned { grid-template-columns: 1fr; } }

/* 文章页首图 */
.post-hero-img {
  margin: 0 0 1.6rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-hero-img img { display: block; width: 100%; height: auto; }
.post-hero-img figcaption {
  padding: .6rem 1rem;
  font-size: .85rem;
  color: var(--ink-soft);
  background: var(--paper-2);
  text-align: center;
}

/* 正文内插图 */
.post-figure {
  margin: 1.8rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-figure img { display: block; width: 100%; height: auto; }
.post-figure figcaption {
  padding: .6rem 1rem;
  font-size: .85rem;
  color: var(--ink-soft);
  background: var(--paper-2);
  text-align: center;
}

/* 留言板 */
.comments { margin-top: 2.8rem; }
.comments .gallery-title { margin-top: 0; }

/* ============================================================
   路书 - Roadbooks
   ============================================================ */

/* 路书列表卡片 */
.roadbook-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0 3rem;
}

.roadbook-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}

.roadbook-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(122, 92, 48, .18);
}

.roadbook-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
}

.roadbook-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.roadbook-card:hover .roadbook-cover img {
  transform: scale(1.05);
}

.roadbook-info {
  padding: 1.2rem;
}

.roadbook-info h2 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
}

.roadbook-route {
  margin: 0 0 0.8rem;
  font-size: 0.88rem;
  color: var(--clay);
}

.roadbook-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.roadbook-days::before { content: ''; }
.roadbook-countries {
  display: block;
  width: 100%;
  font-size: 0.8rem;
}

/* 路书详情页 */
.roadbook-header {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.roadbook-header h1 {
  margin: 0.5rem 0 0.3rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.roadbook-header .rb-subtitle {
  color: var(--clay);
  font-size: 1.05rem;
  margin: 0;
}

.roadbook-header .rb-meta {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* 概览地图 */
.rb-overview-map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .rb-overview-map { height: 280px; }
}

/* 每天的区块 */
.rb-day {
  margin: 2.5rem 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rb-day-header {
  background: var(--clay);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rb-day-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.rb-day-stats {
  font-size: 0.85rem;
  opacity: 0.9;
}

.rb-day-body {
  padding: 1.5rem;
}

/* 每日地图 */
.rb-day-map {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 1.2rem;
}

@media (max-width: 640px) {
  .rb-day-map { height: 250px; }
}

/* 每日路线信息 */
.rb-route-info {
  background: var(--paper);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 0 0 1rem;
}

.rb-segment {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
}

.rb-segment:last-child { border-bottom: none; }

.rb-segment-num {
  width: 28px;
  height: 28px;
  background: var(--clay);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex: none;
}

.rb-segment-route {
  flex: 1;
  font-size: 0.9rem;
}

.rb-segment-route strong {
  color: var(--clay);
}

.rb-segment-tip {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-left: auto;
}

.rb-segment-num.start { background: var(--sage); }
.rb-segment-num.end { background: var(--clay-deep); }

.rb-wp-cat {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--clay-deep);
  background: var(--clay-soft);
  border-radius: 999px;
  padding: 0 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* 笔记 */
.rb-notes {
  line-height: 2;
  font-size: 0.95rem;
}

.rb-notes h3 {
  color: var(--clay);
  margin: 1rem 0 0.5rem;
}

.rb-notes p { margin: 0.5rem 0; }

.rb-notes ul, .rb-notes ol { padding-left: 1.5rem; }

/* 每日消费 */
.rb-expenses {
  background: var(--clay-soft);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin: 0.9rem 0;
  font-size: 0.88rem;
}
.rb-expenses-title {
  font-weight: 700;
  color: var(--clay-deep);
  margin-bottom: 0.5rem;
}
.rb-expenses-list {
  border-top: 1px dashed rgba(194,106,68,.3);
}
.rb-expense-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(194,106,68,.2);
}
.rb-expense-item:last-child { border-bottom: none; }
.rb-expense-amt {
  font-weight: 700;
  color: var(--clay-deep);
  white-space: nowrap;
}
.rb-expenses-total {
  text-align: right;
  font-weight: 700;
  color: var(--clay-deep);
  margin-top: 0.4rem;
}

/* 照片 */
.rb-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.rb-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  transition: transform .3s;
  cursor: pointer;
}

.rb-photos img:hover {
  transform: scale(1.03);
}

/* 路书详情页返回 */
.rb-back {
  display: inline-block;
  margin: 1.5rem 0;
  color: var(--clay);
  text-decoration: none;
  font-size: 0.9rem;
}

.rb-back:hover { text-decoration: underline; }

/* 路书概览统计卡片 */
.rb-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.rb-stat-card {
  background: var(--card);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.rb-stat-card .stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clay);
}

.rb-stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}
