/* =====================================================================
   推进到书页里之后：整个屏幕就是那一页纸（随心记的风格）
   颜色和台灯照在纸上的颜色一致，镜头推到纸张铺满画面时无缝接手
   透明度、清晰度由 main.js 按推进进度（--lp）控制
   ===================================================================== */
.leaf {
  --lp: 0;
  --k: #241c16; --k2: #54473b; --k3: #94867a; --pen: #2b3a67; --red: #b8472f; --rule: rgba(36, 28, 22, 0.15);
  --hand: 'Long Cang', 'Caveat', 'Kaiti SC', cursive; --handl: 'Caveat', 'Long Cang', cursive;
  position: fixed; inset: 0; z-index: 30; opacity: 0; color: var(--k);
  background:
    radial-gradient(120% 70% at 30% 0%, rgba(255, 246, 228, 0.55), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(214, 170, 110, 0.18), transparent 70%),
    radial-gradient(rgba(70, 55, 40, 0.16) 1.3px, transparent 1.7px) 0 0 / 30px 30px,
    linear-gradient(180deg, #f8e4c5, #fae9cf 50%, #fbeed9);
}
.leaf[hidden] { display: none; }
.leaf::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.36 0 0 0 0 0.28 0 0 0 0.13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.leaf-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(120, 90, 60, 0.4) transparent; }

/* 纸上的内容：推进时从放大、模糊慢慢变清楚，像对焦 */
.dw-paper {
  position: relative; max-width: 1000px; margin: 0 auto; padding: clamp(70px, 11vh, 120px) clamp(22px, 5vw, 70px) clamp(70px, 10vh, 120px);
  transform: scale(calc(1.12 - 0.12 * var(--lp))); transform-origin: 50% 20%;
  filter: blur(calc((1 - var(--lp)) * 7px));
}
body.leaf-settled .dw-paper { filter: none; transform: none; }
/* 落定之后，各块内容像墨水写上去一样依次出现 */
.dw-paper > * { opacity: 0; translate: 0 14px; }
body.leaf-settled .dw-paper > * { opacity: 1; translate: 0 0; transition: opacity 0.8s ease, translate 0.9s var(--ease); }
body.leaf-settled .dw-paper > :nth-child(2) { transition-delay: 0.12s; }
body.leaf-settled .dw-paper > :nth-child(3) { transition-delay: 0.24s; }
body.leaf-settled .dw-paper > :nth-child(4) { transition-delay: 0.36s; }
body.leaf-settled .dw-paper > :nth-child(5) { transition-delay: 0.48s; }

/* 角落的装饰：胶带、咖啡印 */
.dw-paper::before { content: ''; position: absolute; left: 4%; top: 30px; width: 130px; height: 34px; rotate: -6deg; background: rgba(196, 214, 196, 0.8); clip-path: polygon(3% 0, 97% 0, 100% 25%, 97% 50%, 100% 75%, 97% 100%, 3% 100%, 0 75%, 3% 50%, 0 25%); }
.dw-paper::after { content: ''; position: absolute; right: 3%; top: 60px; width: 150px; height: 150px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, transparent 60%, rgba(120, 78, 40, 0.12) 62%, rgba(120, 78, 40, 0.05) 66%, transparent 69%); }

.leaf-close { position: fixed; left: clamp(14px, 3vw, 40px); top: clamp(14px, 2.4vh, 26px); z-index: 2; display: flex; align-items: center; gap: 8px;
  font: 400 24px/1 var(--hand); color: var(--pen); padding: 8px 16px 10px; border-radius: 999px; background: rgba(250, 236, 212, 0.85); box-shadow: 0 0 0 1.5px rgba(43, 58, 103, 0.35);
  opacity: 0; transition: opacity 0.5s ease, box-shadow 0.3s; }
.leaf-close i { font-style: normal; transition: translate 0.3s var(--ease); }
.leaf-close:hover { box-shadow: 0 0 0 1.5px var(--pen); }
.leaf-close:hover i { translate: -4px 0; }
body.leaf-settled .leaf-close { opacity: 1; transition-delay: 0.4s; }

/* ---------------- 标题 ---------------- */
.dw-head { position: relative; margin-bottom: clamp(30px, 5vh, 50px); }
.dw-date { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font: 400 26px/1 var(--hand); color: var(--k2); margin-bottom: 22px; }
.dw-date span { font: 600 26px/1 var(--handl); color: var(--red); }
.dw-label { font: 500 13px/1 var(--mono); letter-spacing: 0.24em; color: var(--red); margin-bottom: 18px; }
.dw-head h2 { font: 700 clamp(40px, 5vw, 76px)/1.15 var(--serif-cn); letter-spacing: -0.01em; }
.dw-head mark { color: inherit; background: linear-gradient(transparent 58%, rgba(246, 214, 92, 0.6) 58%, rgba(246, 214, 92, 0.6) 90%, transparent 90%); padding: 0 6px; }
.dw-sub { margin-top: 10px; font: 400 clamp(26px, 2.4vw, 34px)/1.4 var(--hand); color: var(--pen); }
.dw-sample { display: inline-block; margin-top: 14px; font: 500 9.5px/1 var(--mono); letter-spacing: 0.16em; color: #a8732f; padding: 5px 9px; border: 1px dashed rgba(168, 115, 47, 0.55); border-radius: 999px; }
.dw-paper h4 { font: 400 30px/1.2 var(--hand); color: var(--red); margin-bottom: 14px; }

/* 手画的圆角框 */
.dw-paper .chips, .dw-paper .tags { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.dw-paper .chips span { padding: 5px 15px 7px; font: 400 23px/1.2 var(--hand); color: var(--k);
  border: 2px solid rgba(43, 58, 103, 0.55); border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; background: rgba(255, 250, 240, 0.35); }
.dw-paper .chips span:nth-child(4n + 1) { background: linear-gradient(transparent 45%, rgba(246, 214, 92, 0.5) 45%, rgba(246, 214, 92, 0.5) 85%, transparent 85%); }
.dw-paper .tags span { font: 500 10.5px/1 var(--mono); padding: 5px 8px; border: 1px solid var(--rule); border-radius: 4px; color: var(--k2); background: rgba(255, 250, 240, 0.4); }
.dw-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vh, 60px); }

/* ---------------- 一路走来：贴在本子上的票根 ---------------- */
.dw-line { list-style: none; position: relative; padding-left: 34px; }
.dw-line::before { content: ''; position: absolute; left: 8px; top: 10px; bottom: 10px; border-left: 3px dashed rgba(43, 58, 103, 0.4); }
.dw-line > li { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 26px; margin-bottom: 26px; padding: 24px 26px;
  background: #fdf6e8; border-radius: 10px; box-shadow: 0 10px 26px rgba(90, 60, 30, 0.12), 0 1px 3px rgba(90, 60, 30, 0.12); rotate: -0.5deg; }
.dw-line > li:nth-child(even) { rotate: 0.6deg; background: #fbf1df; }
.dw-line > li::before { content: ''; position: absolute; left: -33px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px #fae8cb; }
.dw-line > li::after { content: ''; position: absolute; right: 30px; top: -10px; width: 90px; height: 26px; rotate: 4deg; background: rgba(232, 196, 140, 0.75); }
.dw-line > li:nth-child(even)::after { background: rgba(184, 204, 226, 0.8); rotate: -5deg; right: auto; left: 50%; }
.dw-line .when { font: 500 13px/1.6 var(--mono); color: var(--k2); }
.dw-line .when i { display: inline-block; margin-top: 8px; font: 400 24px/1 var(--hand); font-style: normal; color: var(--red); padding: 4px 12px 6px; border: 2px solid rgba(184, 71, 47, 0.5); border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; }
.dw-line h3 { font: 700 clamp(21px, 1.9vw, 26px)/1.3 var(--serif-cn); }
.dw-line .role { margin-top: 4px; font: 400 25px/1.3 var(--hand); color: var(--pen); }
.dw-line ul { list-style: none; margin: 12px 0; display: grid; gap: 6px; }
.dw-line ul li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.85; color: var(--k2); }
.dw-line ul li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--red); font-size: 13px; }

/* ---------------- 折腾过的事：一张张索引卡 ---------------- */
.dw-projects { display: grid; gap: 22px; }
.proj { position: relative; border-radius: 4px; box-shadow: 0 10px 26px rgba(90, 60, 30, 0.12), 0 1px 3px rgba(90, 60, 30, 0.12);
  background: linear-gradient(transparent 62px, rgba(190, 80, 70, 0.35) 62px, rgba(190, 80, 70, 0.35) 64px, transparent 64px),
              repeating-linear-gradient(transparent 0 37px, rgba(90, 115, 150, 0.16) 37px 38px) 0 64px / 100% calc(100% - 64px) no-repeat, #fdf8ec; }
.proj:nth-child(odd) { rotate: -0.4deg; } .proj:nth-child(even) { rotate: 0.5deg; }
.proj::before { content: ''; position: absolute; left: 40px; top: -11px; width: 80px; height: 24px; rotate: -4deg; background: rgba(232, 178, 168, 0.78); }
.proj summary { list-style: none; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 30px; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; }
.proj summary::-webkit-details-marker { display: none; }
.proj .no { font: 600 36px/1 var(--handl); color: var(--red); }
.proj .t b { display: block; font: 700 clamp(19px, 1.8vw, 24px)/1.35 var(--serif-cn); }
.proj .t em { display: block; margin-top: 4px; font: 500 11px/1.4 var(--mono); font-style: normal; letter-spacing: 0.04em; color: var(--k3); }
.proj .m { position: relative; text-align: right; padding: 4px 10px; }
.proj .m b { display: block; font: 600 34px/1 var(--handl); }
.proj .m::before { content: ''; position: absolute; inset: -4px -8px; border: 2px solid rgba(184, 71, 47, 0.55); border-radius: 50% 45% 55% 48% / 55% 50% 48% 45%; rotate: -4deg; }
.proj .m em { font: 400 18px/1 var(--hand); font-style: normal; color: var(--k2); }
.proj .plus { position: relative; width: 28px; height: 28px; border: 2px solid rgba(43, 58, 103, 0.5); border-radius: 50%; transition: background 0.3s; }
.proj .plus::before, .proj .plus::after { content: ''; position: absolute; left: 6px; right: 6px; top: 11px; height: 2px; background: var(--pen); border-radius: 2px; }
.proj .plus::after { transform: rotate(90deg); transition: transform 0.4s var(--ease); }
.proj[open] .plus { background: var(--red); border-color: var(--red); }
.proj[open] .plus::before, .proj[open] .plus::after { background: #fff; }
.proj[open] .plus::after { transform: rotate(0deg); }
.proj-body { padding: 6px 26px 30px 96px; display: grid; gap: 20px; animation: leaf-rise 0.6s var(--ease); }
@keyframes leaf-rise { from { opacity: 0; translate: 0 10px; } }
.proj-body .lead { font: 400 27px/1.5 var(--hand); color: var(--pen); }
.proj-body p { font-size: 15px; line-height: 1.95; color: var(--k2); }
.proj-body p b { color: var(--k); background: linear-gradient(transparent 58%, rgba(246, 214, 92, 0.55) 58%); }
.proj-body h4 { margin-bottom: 4px; }
.over { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--k); border-bottom: 1px solid var(--rule); background: rgba(255, 252, 244, 0.6); }
.over div { padding: 12px 14px 14px 0; }
.over div:first-child { padding-left: 12px; }
.over div + div { padding-left: 14px; border-left: 1px solid var(--rule); }
.over dt { font: 400 20px/1 var(--hand); color: var(--red); margin-bottom: 8px; }
.over dd { font-size: 13.5px; line-height: 1.55; }
.flow { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 12px; counter-reset: st; }
.flow li { position: relative; padding: 6px 14px 8px; font: 400 22px/1.2 var(--hand); counter-increment: st;
  border: 2px solid rgba(43, 58, 103, 0.5); border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; background: rgba(255, 252, 244, 0.7); }
.flow li::before { content: counter(st) '. '; font: 600 18px/1 var(--handl); color: var(--red); }
.flow li:not(:last-child)::after { content: '→'; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); color: var(--red); font: 600 22px/1 var(--handl); }
.dec { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.dec li { font-size: 15px; line-height: 1.85; color: var(--k2); padding: 12px 16px; background: rgba(246, 224, 138, 0.45); rotate: -0.4deg; box-shadow: 0 4px 10px rgba(90, 60, 30, 0.08); }
.dec li:nth-child(even) { background: rgba(201, 224, 242, 0.55); rotate: 0.5deg; }
.dec li b { display: block; color: var(--k); font: 400 25px/1.4 var(--hand); }
.nums { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-bottom: 6px; }
.nums span { font: 400 20px/1.3 var(--hand) !important; color: var(--k2) !important; }
.nums b { display: block; font: 600 50px/1 var(--handl); color: var(--red) !important; background: none !important; }

/* ---------------- 技能包：四张便利贴 ---------------- */
.dw-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.dw-skills section { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 12px; padding: 26px 24px 28px; background: #f6e08a; box-shadow: 0 10px 22px rgba(90, 60, 30, 0.14); rotate: -1deg; }
.dw-skills section:nth-child(2) { background: #f4c6c0; rotate: 1.2deg; }
.dw-skills section:nth-child(3) { background: #c9e0f2; rotate: 0.8deg; }
.dw-skills section:nth-child(4) { background: #d3e8c4; rotate: -1.2deg; }
.dw-skills section::before { content: ''; position: absolute; left: 50%; top: -12px; width: 86px; height: 24px; translate: -50% 0; rotate: -3deg; background: rgba(255, 255, 255, 0.55); }
.dw-skills .no { grid-row: span 2; font: 600 46px/0.9 var(--handl); color: var(--red); }
.dw-skills h3 { font: 700 21px/1.3 var(--serif-cn); }
.dw-skills h3 em { margin-left: 10px; font: 600 20px/1 var(--handl); font-style: normal; color: var(--k2); }
.dw-skills .chips span { background: rgba(255, 255, 255, 0.4) !important; border-color: rgba(43, 58, 103, 0.4); font-size: 21px; }

/* ---------------- 最近在捣鼓啥 ---------------- */
.dw-now { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.dw-now li { position: relative; padding: 34px 26px 30px; background: #f6e08a; box-shadow: 0 12px 24px rgba(90, 60, 30, 0.15); rotate: -1.4deg; }
.dw-now li:nth-child(2) { background: #f4c6c0; rotate: 1.2deg; }
.dw-now li:nth-child(3) { background: #c9e0f2; rotate: 1deg; }
.dw-now li:nth-child(4) { background: #d3e8c4; rotate: -1deg; }
.dw-now li::before { content: ''; position: absolute; left: 50%; top: 8px; width: 16px; height: 16px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a7a, #b8302a 70%); box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25); }
.dw-now span { font: 400 30px/1 var(--hand); color: var(--red); }
.dw-now h3 { margin-top: 12px; font: 700 21px/1.4 var(--serif-cn); }
.dw-now p { margin-top: 8px; font: 400 23px/1.5 var(--hand); color: var(--pen); }

/* ---------------- 生活碎片 ---------------- */
.dw-hobbies { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.dw-hobbies div { padding: 22px 14px 20px; text-align: center; border: 2px solid rgba(43, 58, 103, 0.35); border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; background: rgba(255, 250, 240, 0.4); transition: translate 0.4s var(--ease), background 0.3s; }
.dw-hobbies div:hover { translate: 0 -5px; background: rgba(255, 252, 244, 0.85); }
.dw-hobbies svg { width: 40px; height: 40px; stroke: var(--pen); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dw-hobbies svg .a { stroke: var(--red); }
.dw-hobbies h3 { margin-top: 8px; font: 400 30px/1.2 var(--hand); }
.dw-hobbies p { margin-top: 6px; font-size: 13px; line-height: 1.65; color: var(--k2); }
.dw-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 50px; padding: 0 clamp(0px, 2vw, 30px); }
.dw-wall figure { position: relative; margin: 0; padding: 10px 10px 0; background: #fffdf8; box-shadow: 0 14px 30px rgba(80, 55, 30, 0.2), 0 2px 5px rgba(80, 55, 30, 0.12); rotate: var(--r); transition: rotate 0.5s var(--ease), scale 0.5s var(--ease), translate 0.5s var(--ease); }
.dw-wall figure:hover { rotate: 0deg; scale: 1.05; translate: 0 -6px; z-index: 2; }
.dw-wall figure::before { content: ''; position: absolute; left: 50%; top: -11px; width: 70px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: rgba(232, 196, 140, 0.78); }
.dw-wall figure:nth-child(3n + 2)::before { background: rgba(184, 204, 226, 0.8); }
.dw-wall figure:nth-child(3n)::before { background: rgba(232, 178, 168, 0.78); }
.dw-wall img { display: block; width: 100%; aspect-ratio: 1.05; object-fit: cover; }
.dw-wall figcaption { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px 12px; font: 400 25px/1 var(--hand); color: var(--pen); }
.dw-wall figcaption span { font: 500 8.5px/1 var(--mono); letter-spacing: 0.16em; color: var(--red); }

/* ---------------- 找我聊聊：一封信 ---------------- */
.dw-contact { position: relative; display: grid; justify-items: start; gap: 26px; padding: clamp(30px, 5vw, 56px); background: #fdf6e8; box-shadow: 0 14px 34px rgba(90, 60, 30, 0.14); rotate: -0.6deg;
  background-image: linear-gradient(135deg, transparent 49.5%, rgba(60, 45, 30, 0.12) 50%, transparent 50.5%), linear-gradient(45deg, transparent 49.5%, rgba(60, 45, 30, 0.12) 50%, transparent 50.5%);
  background-size: 50% 120px; background-position: 0 0, 100% 0; background-repeat: no-repeat; }
.dw-contact .mail { margin-top: 60px; display: inline-flex; gap: 12px; font: 400 clamp(30px, 3.6vw, 48px)/1.2 var(--hand); color: var(--pen); padding-bottom: 6px; border-bottom: 2.5px solid var(--red); }
.dw-contact .mail i { font-style: normal; color: var(--red); }
.dw-contact .wechat { margin-top: 22px; font: 400 clamp(24px, 2.4vw, 32px)/1.3 var(--hand); color: var(--k2); }
.dw-contact .wechat b { margin-left: 10px; font-weight: 400; color: var(--pen); }
.dw-contact .links { display: flex; flex-wrap: wrap; gap: 12px; }
.dw-contact .links a { padding: 6px 16px 8px; font: 400 24px/1.2 var(--hand); color: var(--k); border: 2px solid rgba(43, 58, 103, 0.5); border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; transition: all 0.3s; }
.dw-contact .links a:hover { color: var(--red); border-color: var(--red); }
.dw-contact .bye { justify-self: end; font: 600 clamp(80px, 12vw, 170px)/0.9 var(--handl); color: var(--red); rotate: -5deg; }
.dw-contact .bye em { font-style: normal; }

/* ---------------- 页脚：合上 / 翻下一页 ---------------- */
.dw-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(50px, 8vh, 80px); padding-top: 26px; border-top: 2px dashed rgba(43, 58, 103, 0.3); }
.dw-foot button { font: 400 28px/1 var(--hand); color: var(--pen); padding: 8px 18px 10px; border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; border: 2px solid rgba(43, 58, 103, 0.4); transition: all 0.3s; }
.dw-foot button:hover { color: var(--red); border-color: var(--red); }
.dw-foot span { font: 400 24px/1 var(--hand); color: var(--k3); }

/* ---------------- 书页上可以点：右下角的提示变成按钮 ---------------- */
body.book-open.can-detail .book-hint { pointer-events: auto; cursor: pointer; color: #ffe9cf; padding: 10px 14px; border: 1px solid rgba(255, 226, 190, 0.35); border-radius: 999px; background: rgba(18, 13, 10, 0.5); }
body.diving .book-nav, body.diving .book-hint, body.diving .topbar { opacity: 0 !important; pointer-events: none !important; transition: opacity 0.4s ease !important; }

@media (max-width: 820px) {
  .dw-duo, .dw-skills, .dw-now { grid-template-columns: 1fr; }
  .dw-line > li { grid-template-columns: 1fr; }
  .proj summary { grid-template-columns: 40px minmax(0, 1fr) 28px; }
  .proj .m { display: none; }
  .proj-body { padding-left: 22px; }
  .over { grid-template-columns: 1fr 1fr; }
  .over div:nth-child(3) { padding-left: 12px; border-left: 0; }
  .over div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .dw-hobbies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-paper::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-paper { filter: none !important; transform: none !important; }
}

/* ---------------- 从书页去完整页面 ---------------- */
.dw-more { margin-top: 26px; text-align: right; }
.dw-more a, .proj-link a { display: inline-block; font: 400 26px/1 var(--hand); color: var(--red); text-decoration: none; padding: 6px 16px 9px;
  border: 2px solid rgba(184, 71, 47, 0.45); border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; transition: background 0.3s; }
.dw-more a:hover, .proj-link a:hover { background: rgba(184, 71, 47, 0.08); }
.dw-h { margin: clamp(36px, 6vh, 56px) 0 18px; }
.dw-empty { font: 400 24px/1.5 var(--hand); color: var(--k2); list-style: none; }

/* 项目正文（构建时渲染好的 Markdown） */
.proj-html { display: grid; gap: 14px; font-size: 15px; line-height: 1.9; color: var(--k2); }
.proj-html h2 { margin-top: 10px; font: 400 28px/1.2 var(--hand); color: var(--red); }
.proj-html h3 { font: 700 17px/1.5 var(--serif-cn); color: var(--k); }
.proj-html strong { color: var(--k); background: linear-gradient(transparent 58%, rgba(246, 214, 92, 0.55) 58%); }
.proj-html ol, .proj-html ul { padding-left: 1.4em; }
.proj-html blockquote { padding: 12px 16px; background: rgba(246, 224, 138, 0.45); font: 400 22px/1.5 var(--hand); color: var(--pen); rotate: -0.4deg; }
.proj-link { margin-top: 4px; }

/* to-do */
.dw-todo { list-style: none; display: grid; gap: 8px; }
.dw-todo li { position: relative; padding-left: 36px; font: 400 26px/1.3 var(--hand); color: var(--k); }
.dw-todo li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border: 2px solid rgba(43, 58, 103, 0.6); border-radius: 3px; }
.dw-todo li.done { color: var(--k3); text-decoration: line-through; text-decoration-color: rgba(60, 45, 30, 0.6); }
.dw-todo li.done::after { content: '✓'; position: absolute; left: 3px; top: -6px; font: 700 26px/1 var(--handl); color: var(--red); }

/* 最近的动态 */
.dw-moments { display: grid; gap: 22px; }
.dw-moment { position: relative; padding: 20px 22px 16px; background: #fdf6e8; border-radius: 6px; box-shadow: 0 10px 24px rgba(90, 60, 30, 0.12); rotate: var(--r); }
.dw-moment::before { content: ''; position: absolute; left: 26px; top: -10px; width: 70px; height: 22px; rotate: -4deg; background: rgba(232, 196, 140, 0.8); }
.dw-moment .when { font: 400 22px/1 var(--hand); color: var(--red); text-decoration: none; }
.dw-moment .txt { margin-top: 8px; font-size: 15px; line-height: 1.85; color: var(--k); }
.dw-moment .pics { display: grid; gap: 6px; margin-top: 12px; max-width: 460px; }
.dw-moment .pics.n1 { grid-template-columns: 1fr; max-width: 340px; }
.dw-moment .pics.n2 { grid-template-columns: repeat(2, 1fr); }
.dw-moment .pics.n3 { grid-template-columns: repeat(3, 1fr); }
.dw-moment .pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; display: block; }
.dw-moment .meta { margin-top: 10px; font: 400 19px/1.3 var(--hand); color: var(--k2); }
.dw-wall > a { text-decoration: none; color: inherit; }

/* 文章列表 */
.dw-posts { list-style: none; border-top: 1px solid var(--rule); }
.dw-posts li { border-bottom: 1px dashed rgba(43, 58, 103, 0.3); }
.dw-posts a { display: grid; gap: 6px; padding: 18px 6px; text-decoration: none; color: inherit; transition: background 0.3s; }
.dw-posts a:hover { background: rgba(246, 214, 92, 0.2); }
.dw-posts time { font: 600 22px/1 var(--handl); color: var(--red); }
.dw-posts b { font: 700 clamp(19px, 1.8vw, 23px)/1.4 var(--serif-cn); }
.dw-posts span { font-size: 14.5px; color: var(--k2); }
.dw-posts i { font: 400 19px/1 var(--hand); font-style: normal; color: var(--pen); }
