:root {
  --pine-950: #0b1210;
  --pine-900: #10231e;
  --pine-800: #19352d;
  --pine-700: #285243;
  --oxide: #6f9488;
  --oxide-soft: #b9cbc3;
  --paper: #ece8dc;
  --paper-soft: #f7f5ec;
  --paper-deep: #ddd7c8;
  --amber: #d88a45;
  --amber-dark: #9b5a2e;
  --wood-light: #a9794c;
  --wood: #754b2f;
  --wood-dark: #3d281f;
  --ink: #17211d;
  --muted: #627068;
  --line: rgba(23, 33, 29, 0.18);
  --light-line: rgba(236, 232, 220, 0.18);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --kaiti: "Kaiti SC", "STKaiti", KaiTi, "妤蜂綋", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 18px;
  z-index: 100;
  padding: 8px 12px;
  color: var(--pine-950);
  background: var(--amber);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--paper-soft);
  background: rgba(11, 18, 16, 0.92);
  border-bottom: 1px solid var(--light-line);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #fff5e6;
  background: linear-gradient(145deg, #e2a15c 0%, #d88a45 48%, #b06931 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 2px rgba(60, 30, 8, 0.28),
    0 2px 5px rgba(0, 0, 0, 0.3);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(80, 40, 10, 0.35);
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand-copy small {
  margin-top: 3px;
  color: rgba(247, 245, 236, 0.62);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 14px;
}

.desktop-nav a,
.github-link,
.mobile-nav a {
  opacity: 0.78;
  transition: color 180ms ease, opacity 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.github-link:hover,
.mobile-nav a:hover {
  color: var(--amber);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.github-link {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(216, 138, 69, 0.55);
  font-size: 14px;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--light-line);
  background: transparent;
}

.nav-toggle span {
  width: 18px;
  height: 1px;
  display: block;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle span + span {
  margin-top: 6px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 76px;
  right: 0;
  left: 0;
  z-index: 59;
  display: grid;
  padding: 10px 24px 18px;
  background: var(--pine-950);
  border-bottom: 1px solid var(--light-line);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.22);
}

.mobile-nav a {
  padding: 13px 0;
  border-bottom: 1px solid rgba(236, 232, 220, 0.1);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.home-hero {
  position: relative;
  min-height: calc(100svh - 77px);
  display: flex;
  align-items: center;
  padding: 78px 0 70px;
  overflow: clip;
  color: var(--paper-soft);
  background: var(--pine-950);
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(185, 203, 195, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 203, 195, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35) 58%, transparent);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(44px, 6vw, 92px);
  align-items: center;
}

.hero-kicker,
.section-kicker,
.post-kicker {
  margin: 0;
  color: var(--oxide-soft);
  font-size: 13px;
}

.hero-kicker::before,
.section-kicker::before,
.post-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  display: inline-block;
  margin: 0 10px 4px 0;
  background: var(--amber);
}

.hero-copy h1 {
  max-width: 720px;
  margin: 18px 0 0;
  font-family: var(--kaiti);
  font-size: clamp(38px, 4.9vw, 62px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-lede {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(247, 245, 236, 0.76);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--pine-950);
  background: var(--amber);
}

.button-primary:hover {
  background: #e29a5b;
}

.button-secondary {
  color: var(--paper-soft);
  background: transparent;
  border-color: rgba(247, 245, 236, 0.28);
}

.button-secondary:hover {
  border-color: var(--amber);
}

.latest-note {
  margin: 22px 0 0;
  color: rgba(247, 245, 236, 0.62);
  font-size: 14px;
}

.latest-note a {
  color: var(--amber);
  border-bottom: 1px solid rgba(216, 138, 69, 0.45);
}

.hero-visual {
  min-width: 0;
  perspective: 1400px;
}

.workbench {
  --rx: 8deg;
  --ry: -13deg;
  position: relative;
  width: min(100%, 530px);
  aspect-ratio: 0.92;
  margin-left: auto;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 260ms ease-out;
}

.bench-shadow {
  position: absolute;
  right: 4%;
  bottom: 2%;
  width: 82%;
  height: 18%;
  background: rgba(0, 0, 0, 0.3);
  filter: blur(22px);
  transform: rotateX(76deg) translateZ(-100px);
}

.bench-board {
  position: absolute;
  border: 1px solid rgba(111, 148, 136, 0.42);
  background:
    linear-gradient(90deg, rgba(111, 148, 136, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(111, 148, 136, 0.1) 1px, transparent 1px),
    var(--pine-900);
  background-size: 28px 28px, 28px 28px, auto;
  transform-style: preserve-3d;
}

.board-back {
  inset: 22% 0 4% 6%;
  transform: rotateX(62deg) rotateZ(-10deg) translateZ(-82px);
}

.board-mid {
  inset: 14% 7% 13% 1%;
  border-color: rgba(216, 138, 69, 0.36);
  background-color: rgba(25, 53, 45, 0.88);
  transform: rotateX(62deg) rotateZ(-10deg) translateZ(-20px);
}

.identity-panel {
  position: absolute;
  top: 16%;
  left: 13%;
  width: 68%;
  min-height: 48%;
  padding: 22px;
  color: var(--paper-soft);
  background: rgba(16, 35, 30, 0.96);
  border: 1px solid rgba(185, 203, 195, 0.34);
  border-radius: 6px;
  box-shadow: 22px 28px 0 rgba(0, 0, 0, 0.18);
  transform: translateZ(112px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(236, 232, 220, 0.14);
}

.panel-header span {
  width: 42px;
  height: 8px;
  background: var(--oxide);
}

.panel-header span:last-child {
  width: 18px;
  background: var(--amber);
}

.identity-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.identity-main strong,
.identity-main small {
  display: block;
}

.identity-main strong {
  font-size: 18px;
}

.identity-main small {
  margin-top: 5px;
  color: rgba(247, 245, 236, 0.58);
  font-size: 12px;
}

.avatar-shell {
  position: relative;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--pine-950);
  background: var(--amber);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.avatar-shell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-shell.avatar-missing img {
  display: none;
}

.signal-lines {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.signal-lines span {
  width: var(--w);
  height: 7px;
  background: rgba(111, 148, 136, 0.56);
}

.signal-lines span:nth-child(2) {
  background: rgba(216, 138, 69, 0.72);
}

.section-band {
  padding: 96px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 42px;
}

.section-heading h2,
.about-strip h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.28;
  letter-spacing: 0;
}

.section-heading > p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.notes-section {
  background: var(--paper);
}

.notes-section .section-kicker,
.about-strip .section-kicker {
  color: var(--pine-700);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 28px;
}

.filter-button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--paper-soft);
  background: var(--pine-800);
  border-color: var(--pine-800);
}

.bookshelf-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 30px 0 18px;
}

.bookshelf-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.bookshelf-intro span {
  flex: 0 0 auto;
  color: var(--amber-dark);
  font-family: var(--mono);
  font-size: 12px;
}

.bookshelf-scene {
  margin: 0 0 48px;
  perspective: 1600px;
}

.bookshelf-depth {
  --shelf-rx: 7deg;
  --shelf-ry: -9deg;
  transform: rotateX(var(--shelf-rx)) rotateY(var(--shelf-ry));
  transform-style: preserve-3d;
  transition: transform 220ms ease-out;
}

.bookshelf {
  position: relative;
  width: min(900px, 100%);
  height: 430px;
  margin: 0 auto;
  transform-style: preserve-3d;
}

.shelf-back {
  position: absolute;
  inset: 20px 22px 40px;
  background:
    linear-gradient(90deg, rgba(185, 203, 195, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(185, 203, 195, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #10231e, #19352d 62%, #0b1210);
  background-size: 34px 34px, 34px 34px, auto;
  border: 1px solid rgba(185, 203, 195, 0.22);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.35);
  transform: translateZ(-74px);
}

.shelf-side,
.shelf-plank {
  position: absolute;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 28%, rgba(0, 0, 0, 0.22)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 9px),
    var(--wood);
  border: 1px solid rgba(61, 40, 31, 0.68);
  box-shadow: 10px 14px 0 rgba(23, 33, 29, 0.12);
}

.shelf-side {
  top: 20px;
  bottom: 40px;
  width: 20px;
  transform: translateZ(36px);
  transform-style: preserve-3d;
}

.shelf-side-left {
  left: 22px;
}

.shelf-side-right {
  right: 22px;
}

.shelf-plank {
  right: 42px;
  left: 42px;
  height: 20px;
  transform: translateZ(48px);
  transform-style: preserve-3d;
}

.shelf-plank-top {
  top: 20px;
}

.shelf-plank-bottom {
  bottom: 40px;
}

/* 渚ф澘鍐呭锛氫粠渚ф澘鍓嶇紭涓€鐩村欢浼稿埌鑳屾澘锛屽牭浣忛晜绌?*/
.shelf-side::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  border: 1px solid rgba(61, 40, 31, 0.55);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 9px),
    linear-gradient(90deg, var(--wood) 0%, var(--wood-dark) 88%);
}

.shelf-side-left::after {
  left: 100%;
  transform: rotateY(90deg);
  transform-origin: left center;
}

.shelf-side-right::after {
  right: 100%;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 9px),
    linear-gradient(270deg, var(--wood) 0%, var(--wood-dark) 88%);
  transform: rotateY(-90deg);
  transform-origin: right center;
}

/* 灞傛澘涓婅〃闈細浠庡墠缂樻按骞抽摵鍒拌儗鏉?*/
.shelf-plank::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 122px;
  border: 1px solid rgba(61, 40, 31, 0.45);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 11px),
    linear-gradient(0deg, var(--wood-light) 0%, var(--wood) 34%, var(--wood-dark) 96%);
  transform: rotateX(90deg);
  transform-origin: center bottom;
}

/* 椤舵澘涓嬭〃闈細鍙粰鏆楅潰锛岄伩鍏嶄话澶存椂鐪嬪埌闀傜┖ */
.shelf-plank-top::before {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 122px;
  background: linear-gradient(180deg, var(--wood-dark), #2a1a13);
  transform: rotateX(-90deg);
  transform-origin: center top;
}

.shelf-label {
  position: absolute;
  top: 48px;
  left: 74px;
  color: rgba(236, 232, 220, 0.38);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  transform: translateZ(-40px);
}

.shelf-books {
  position: absolute;
  right: 78px;
  bottom: 60px;
  left: 78px;
  height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: clamp(10px, 2.6vw, 24px);
  padding: 20px 28px 0;
  transform: translateZ(84px);
  transform-style: preserve-3d;
}

.shelf-books.has-overflow {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  transform-style: flat;
  -webkit-overflow-scrolling: touch;
}

.shelf-books.has-overflow::-webkit-scrollbar {
  display: none;
}

.shelf-books.has-overflow .shelf-book,
.shelf-books.has-overflow .shelf-book:hover,
.shelf-books.has-overflow .shelf-book.is-selected {
  transform: translateY(var(--book-y));
}

.shelf-book {
  --book-height: 214px;
  --book-y: 0px;
  --book-angle: -5deg;
  --book-z: 22px;
  position: relative;
  width: clamp(58px, 8vw, 78px);
  height: var(--book-height);
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(var(--book-y)) translateZ(var(--book-z)) rotateY(var(--book-angle));
  transform-style: preserve-3d;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shelf-book:nth-child(4n + 1) {
  --book-height: 220px;
  --book-angle: -7deg;
}

.shelf-book:nth-child(4n + 2) {
  --book-height: 204px;
  --book-y: 2px;
  --book-angle: 5deg;
}

.shelf-book:nth-child(4n + 3) {
  --book-height: 228px;
  --book-y: -2px;
  --book-angle: -3deg;
}

.shelf-book:nth-child(4n + 4) {
  --book-height: 198px;
  --book-angle: 7deg;
}

.shelf-book:hover,
.shelf-book.is-selected {
  --book-z: 58px;
  transform: translateY(calc(var(--book-y) - 10px)) translateZ(var(--book-z)) rotateY(-2deg);
}

.book-tone-1 {
  --book-color: #285243;
  --book-dark: #142d25;
}

.book-tone-2 {
  --book-color: #6f9488;
  --book-dark: #29483e;
}

.book-tone-3 {
  --book-color: #9b5a2e;
  --book-dark: #4b2e1d;
}

.book-tone-4 {
  --book-color: #403f39;
  --book-dark: #1d211f;
}

.book-face {
  position: absolute;
  display: block;
  pointer-events: none;
}

.book-front,
.book-back {
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.book-front {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 11px;
  color: var(--paper-soft);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 18%, rgba(255, 255, 255, 0.08) 49%, transparent 52%),
    linear-gradient(145deg, var(--book-color), var(--book-dark));
  box-shadow: inset 5px 0 0 rgba(255, 255, 255, 0.08), inset -2px 0 0 rgba(0, 0, 0, 0.28);
  transform: translateZ(18px);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.book-back {
  background: var(--book-dark);
  transform: translateZ(-18px);
}

.book-pages {
  top: 8px;
  bottom: 8px;
  left: calc(100% - 2px);
  width: 36px;
  background:
    repeating-linear-gradient(90deg, #f4efe1 0 2px, #cfc6b4 2px 3px),
    #e5dece;
  transform: rotateY(82deg);
  transform-origin: left center;
}

.book-top {
  top: -17px;
  right: 7px;
  left: 7px;
  height: 36px;
  background:
    repeating-linear-gradient(0deg, #f4efe1 0 2px, #cfc6b4 2px 3px),
    #e5dece;
  transform: rotateX(82deg);
  transform-origin: center bottom;
}

.book-front small,
.book-front em {
  color: rgba(247, 245, 236, 0.62);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 1px;
}

.book-front strong {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.3;
}

body.modal-open {
  overflow: hidden;
}

.notebook-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 32px;
}

.notebook-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(11, 18, 16, 0.72);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity 240ms ease;
}

.notebook-scene {
  position: relative;
  z-index: 1;
  width: min(1020px, 100%);
  height: min(690px, calc(100svh - 64px));
  opacity: 0;
  perspective: 2200px;
  transform: translateY(24px) scale(0.96);
  transition: opacity 240ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.notebook-modal.is-active .notebook-backdrop {
  opacity: 1;
}

.notebook-modal.is-active .notebook-scene {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.open-notebook {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 25%;
  width: 50%;
  display: block;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
  transform-style: preserve-3d;
  transition: transform 780ms cubic-bezier(0.2, 0.8, 0.2, 1) 100ms;
}

.notebook-page {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  padding: clamp(28px, 4vw, 54px);
  overflow-y: auto;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(155, 90, 46, 0.08), transparent 18%),
    var(--paper-soft);
  border: 1px solid rgba(61, 40, 31, 0.2);
  scrollbar-color: rgba(40, 82, 67, 0.5) transparent;
}

.notebook-page-right {
  z-index: 1;
  border-left: 1px solid rgba(61, 40, 31, 0.16);
  border-radius: 6px 14px 14px 6px;
}

.notebook-modal.is-open .open-notebook {
  transform: translateX(50%);
}

.notebook-kicker {
  margin: 0 0 12px;
  color: var(--amber-dark);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
}

.notebook-page h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
  letter-spacing: 0;
}

.notebook-description {
  max-width: 390px;
  margin: 24px 0 0;
  color: #536159;
  font-size: 15px;
  line-height: 1.9;
}

.notebook-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.notebook-count strong {
  color: var(--pine-800);
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
}

.notebook-count span,
.notebook-hint {
  color: var(--muted);
  font-size: 13px;
}

.notebook-hint {
  margin: auto 0 0;
  padding-top: 34px;
}

.notebook-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.notebook-page-header h3 {
  font-size: clamp(26px, 3vw, 36px);
}

.notebook-close {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 13px;
  opacity: 0;
  pointer-events: none;
  color: var(--paper-soft);
  background: var(--pine-800);
  border: 1px solid var(--pine-800);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.notebook-close:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
}

.notebook-modal.is-open .notebook-close {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 520ms;
}

.notebook-article-list {
  display: grid;
  padding-top: 8px;
}

.notebook-article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(23, 33, 29, 0.12);
}

.notebook-article:hover strong {
  color: var(--amber-dark);
}

.notebook-article time {
  padding-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.notebook-article strong,
.notebook-article small {
  display: block;
}

.notebook-article strong {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  transition: color 160ms ease;
}

.notebook-article small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.notebook-empty {
  margin: 28px 0 0;
  color: var(--muted);
}

.notebook-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transform: rotateY(0deg);
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 720ms cubic-bezier(0.645, 0.045, 0.355, 1) 120ms;
}

.notebook-cover-face {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  padding: clamp(28px, 4vw, 54px);
  overflow-y: auto;
  border: 1px solid rgba(61, 40, 31, 0.2);
  backface-visibility: hidden;
  scrollbar-color: rgba(40, 82, 67, 0.5) transparent;
}

.notebook-cover-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--paper-soft);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 16%, rgba(255, 255, 255, 0.06) 72%, transparent),
    linear-gradient(145deg, var(--active-book-color, var(--pine-800)), var(--active-book-dark, var(--pine-950)));
  border-color: rgba(185, 203, 195, 0.3);
  border-radius: 6px 14px 14px 6px;
  box-shadow: inset 7px 0 0 rgba(255, 255, 255, 0.06), inset -3px 0 0 rgba(0, 0, 0, 0.24);
}

.notebook-cover-front::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(216, 138, 69, 0.42);
  pointer-events: none;
}

.notebook-cover-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  background:
    linear-gradient(270deg, rgba(155, 90, 46, 0.08), transparent 20%),
    var(--paper);
  border-radius: 14px 6px 6px 14px;
  transform: rotateY(180deg);
}

.notebook-cover-back h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
  letter-spacing: 0;
}

.notebook-cover-front span,
.notebook-cover-front em {
  color: rgba(247, 245, 236, 0.58);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 1.8px;
}

.notebook-cover-front strong {
  max-width: 340px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.25;
  text-align: center;
}

.notebook-modal.is-open .notebook-cover {
  transform: rotateY(-180deg);
}

.post-index {
  border-top: 1px solid var(--line);
}

.post-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.post-item time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.post-item time span {
  display: block;
  margin-bottom: 2px;
  color: var(--pine-800);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.post-item-main > p:first-child {
  margin: 0 0 5px;
  color: var(--amber-dark);
  font-size: 12px;
}

.post-item-main h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.42;
}

.post-item-main h3 a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 200ms ease;
}

.post-item-main h3 a:hover {
  background-size: 100% 1px;
}

.post-excerpt {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.read-link,
.quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--pine-800);
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
}

.read-link:hover,
.quiet-link:hover {
  color: var(--amber-dark);
}

.empty-state {
  margin: 28px 0 0;
  color: var(--muted);
}

.projects-section {
  background: var(--paper);
  overflow-x: clip;
}

.note-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
}

.project-scene {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  perspective: 1400px;
}

.project-deck {
  position: relative;
  transform-style: preserve-3d;
}

.project-deck::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: -34px;
  left: 6%;
  height: 56px;
  background: rgba(16, 35, 30, 0.18);
  border-radius: 50%;
  filter: blur(26px);
  transform: translateZ(-70px);
}

.project-grid {
  display: grid;
  gap: 26px;
  transform-style: preserve-3d;
}

.project-card {
  --prx: 0deg;
  --pry: 0deg;
  --px: 0px;
  --pz: 38px;
  --lift: 0px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 116px;
  padding: 24px 26px;
  color: var(--pine-900);
  background: linear-gradient(180deg, #fdfaf3, #f5f1e4);
  border: 1px solid rgba(16, 35, 30, 0.14);
  border-radius: 6px;
  transform: translateX(var(--px)) translateZ(calc(var(--pz) + var(--lift))) rotateX(var(--prx)) rotateY(var(--pry));
  transform-style: preserve-3d;
  transition: transform 180ms ease-out, border-color 180ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 14px 10px -10px;
  background: rgba(16, 35, 30, 0.25);
  border-radius: 6px;
  filter: blur(18px);
  transform: translateZ(-34px);
}

.project-card:hover {
  --lift: 14px;
  border-color: rgba(216, 138, 69, 0.6);
}

/* 瓒呰繃 3 涓」鐩椂鍚敤鐨勬墜琛ㄥ紡鏇查潰婊氬姩 */
.project-scene.is-curved {
  height: clamp(400px, 58vh, 480px);
  overflow: hidden;
}

.project-scene.is-curved::before,
.project-scene.is-curved::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  z-index: 5;
  /* 两端只做轻微的边缘过渡：高度不超过场景的 14%，
     避免和卡片渐隐叠加后把上下卡整个罩没 */
  height: min(48px, 14%);
  pointer-events: none;
}

.project-scene.is-curved::before {
  top: 0;
  background: linear-gradient(180deg, var(--paper), rgba(236, 232, 220, 0));
}

.project-scene.is-curved::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--paper), rgba(236, 232, 220, 0));
}

.project-scene.is-curved .project-deck {
  height: 100%;
  overflow-y: auto;
  transform: none;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
  cursor: grab;
  transition: none;
}

.project-scene.is-curved .project-deck::-webkit-scrollbar {
  display: none;
}

.project-scene.is-curved .project-deck.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.project-scene.is-curved .project-deck::after {
  display: none;
}

/* 项目曲面滚动条：自绘半透明（Windows 覆盖式原生滑条会自动隐藏，各端表现不一） */
.project-scrollbar {
  position: absolute;
  top: 26px;
  bottom: 26px;
  right: 0;
  width: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 200;
  pointer-events: none;
  cursor: pointer;
  touch-action: none;
}

.project-scrollbar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: rgba(23, 33, 29, 0.08);
  border-radius: 999px;
}

.project-scrollbar.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.project-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  height: 40px;
  background: rgba(23, 33, 29, 0.32);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.project-scene:hover .project-scrollbar-thumb,
.project-scrollbar.is-active .project-scrollbar-thumb {
  background: rgba(23, 33, 29, 0.48);
}


.project-scene.is-curved .project-card {
  --px: 0px;
  --pz: 0px;
  --lift: 0px;
  scroll-snap-align: center;
  will-change: transform, opacity;
  transition: border-color 180ms ease;
}

.project-scene.is-curved .project-card::after {
  display: none;
}

.project-index {
  margin-left: auto;
  padding-left: 18px;
  flex: 0 0 auto;
  color: rgba(16, 35, 30, 0.16);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  transform: translateZ(18px);
}
.project-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--amber);
  background: var(--pine-900);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 10px 14px 20px -12px rgba(16, 35, 30, 0.55);
  transform: translateZ(28px);
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.project-meta {
  align-items: center;
}
.project-meta-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--amber);
  background: var(--pine-900);
  border-radius: 5px;
  overflow: hidden;
}

.project-meta-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.project-related {
  padding-bottom: 92px;
}

.project-related-title {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
}

.project-related .post-neighbors {
  padding-bottom: 0;
}

.project-related .neighbor-link:hover {
  border-color: rgba(216, 138, 69, 0.55);
}

.project-card-text {
  min-width: 0;
  transform: translateZ(14px);
}

.project-card-text small,
.project-card-text strong,
.project-card-text em {
  display: block;
}

.project-card-text small {
  color: var(--amber-dark);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
}

.project-card-text strong {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.project-card-text em {
  margin-top: 7px;
  color: rgba(16, 35, 30, 0.48);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
}

.about-strip {
  padding: 78px 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.about-strip-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr) auto;
  gap: 42px;
  align-items: end;
}

.about-strip h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}

.about-strip p {
  margin: 0;
  color: #4f5d56;
  font-size: 15px;
}

.site-footer {
  padding: 42px 0;
  color: rgba(247, 245, 236, 0.72);
  background: var(--pine-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 44px;
  align-items: end;
}

.footer-brand {
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.site-footer p {
  margin: 8px 0 0;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--amber);
}

.copyright {
  font-family: var(--mono);
}

.post-page {
  background: var(--paper-soft);
}

.post-shell {
  padding: 96px 0 0;
}

.article-progress {
  position: fixed;
  top: 76px;
  right: 0;
  left: 0;
  z-index: 58;
  height: 3px;
  background: rgba(16, 35, 30, 0.08);
}

.article-progress span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--amber);
}

.post-topline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.post-header {
  max-width: 900px;
  margin: 86px auto 64px;
}

.post-kicker {
  color: var(--amber-dark);
}

.post-header h1 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.25;
  letter-spacing: 0;
}

.post-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.post-body {
  width: min(1340px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 760px) 220px;
  justify-content: center;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.post-content {
  min-width: 0;
  padding-bottom: 70px;
  color: #2e3834;
  font-size: 17px;
  line-height: 2;
}

.post-side {
  position: sticky;
  top: 110px;
  max-height: calc(100svh - 140px);
  overflow-y: auto;
  padding-right: 20px;
  border-right: 1px solid var(--line);
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.post-side-right {
  padding-right: 0;
  padding-left: 20px;
  border-right: 0;
  border-left: 1px solid var(--line);
}

.post-book-list {
  display: grid;
  gap: 2px;
}

.post-book-link {
  display: block;
  margin-left: -21px;
  padding: 7px 0 7px 19px;
  border-left: 2px solid transparent;
  transition: border-color 160ms ease, transform 160ms ease;
}

.post-book-link span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
}

.post-book-link strong {
  display: block;
  margin-top: 3px;
  color: var(--pine-800);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  transition: color 160ms ease;
}

.post-book-link:hover strong {
  color: var(--pine-950);
}

.post-book-link.is-current {
  border-left-color: var(--amber);
  transform: translateX(2px);
}

.post-book-link.is-current strong {
  color: var(--pine-950);
  font-weight: 600;
}

.post-toc-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
}

.post-toc-list a {
  display: block;
  margin-right: -21px;
  padding: 6px 19px 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  border-right: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.post-toc-list a.toc-h3 {
  padding-left: 15px;
  font-size: 12px;
}

.post-toc-list a:hover {
  color: var(--pine-800);
}

.post-toc-list a.is-active {
  color: var(--pine-950);
  border-right-color: var(--amber);
  font-weight: 600;
  transform: translateX(-2px);
}

.post-toc-inline {
  margin: -28px auto 34px;
  padding: 12px 18px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.post-toc-inline summary {
  cursor: pointer;
  color: var(--pine-800);
  font-size: 14px;
  font-weight: 600;
}

.post-toc-inline .post-toc-list {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

@media (min-width: 1100px) {
  .post-toc-inline {
    display: none;
  }
}

@media (max-width: 1299px) {
  .post-body {
    grid-template-columns: 220px minmax(0, 760px);
  }

  .post-side-right {
    display: none;
  }
}

@media (max-width: 1099px) {
  .post-body {
    grid-template-columns: minmax(0, 760px);
  }

  .post-side {
    display: none;
  }
}

.post-content > *:first-child {
  margin-top: 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.5;
}

.post-content h2 {
  margin: 54px 0 18px;
  font-size: 31px;
}

.post-content h3 {
  margin: 42px 0 14px;
  font-size: 24px;
}

.post-content p,
.post-content ul,
.post-content ol {
  margin: 0 0 24px;
}

.post-content a {
  color: var(--pine-700);
  border-bottom: 1px solid currentColor;
}

.post-content blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 22px;
  color: #52615a;
  border-left: 3px solid var(--amber);
}

.post-content code {
  padding: 2px 5px;
  color: #6d3f21;
  background: #e3ddcd;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.86em;
}

.post-content pre {
  margin: 32px 0;
  padding: 20px;
  overflow-x: auto;
  color: #e7eee8;
  background: var(--pine-950);
  border: 1px solid rgba(185, 203, 195, 0.2);
  border-radius: 4px;
  line-height: 1.7;
}

.post-content pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.post-content table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.post-content th,
.post-content td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.post-content th {
  background: #e6e0d1;
}

.post-neighbors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 92px;
}

.neighbor-link {
  min-height: 112px;
  display: grid;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.neighbor-link.next {
  text-align: right;
}

.neighbor-link span {
  color: var(--muted);
  font-size: 12px;
}

.neighbor-link strong {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
}

.neighbor-link:hover {
  border-color: var(--amber);
}



/* ===== 关于页：浅色暖调，突出技能与留言 ===== */
.about-page {
  padding: 96px 0 120px;
  color: #26221a;
  background: linear-gradient(180deg, #faf8f2 0%, #f5f1e8 100%);
}

.about-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #8a7a5c;
  border: 1px solid #d4c9b0;
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 24px;
}

/* ===== 关于页英雄区：左文右卡通形象 ===== */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 48px;
}

.about-hero-figure {
  position: relative;
  justify-self: center;
}

.figure-stack {
  position: relative;
  z-index: 1;
}

.figure-img {
  width: 260px;
  height: auto;
  display: block;
  user-select: none;
  filter: drop-shadow(0 16px 22px rgba(96, 64, 24, 0.22));
}

.figure-eyes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
  transform-origin: 50% 34%;
  will-change: transform;
}

.figure-liner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
}

.figure-shadow {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 190px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(74, 52, 24, 0.22) 0%, rgba(74, 52, 24, 0) 70%);
}

@media (prefers-reduced-motion: no-preference) {
  .figure-stack {
    animation: figureFloat 4.2s ease-in-out infinite alternate;
  }

  .figure-shadow {
    animation: figureShadow 4.2s ease-in-out infinite alternate;
  }
}

@keyframes figureFloat {
  from { transform: translateY(0) rotate(-0.6deg); }
  to { transform: translateY(-9px) rotate(0.6deg); }
}

@keyframes figureShadow {
  from { transform: translateX(-50%) scale(1); opacity: 1; }
  to { transform: translateX(-50%) scale(0.9); opacity: 0.75; }
}

@media (max-width: 980px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-hero-figure {
    order: 2;
  }

  .figure-img {
    width: 210px;
  }
}

.about-name {
  font-family: "Kaiti SC", "KaiTi", "STKaiti", "Noto Serif SC", serif;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.16;
  letter-spacing: 0;
  color: #1e1a12;
  margin: 0 0 20px;
  white-space: nowrap;
}

.about-name .about-mark {
  color: #b8722a;
}

.about-tagline {
  font-size: 19px;
  line-height: 1.7;
  color: #5a5342;
  max-width: 620px;
  margin: 0 0 14px;
}

.about-brief {
  font-size: 15px;
  line-height: 1.85;
  color: #6a6151;
  max-width: 640px;
  margin: 0 0 40px;
}

.about-section {
  margin-top: 72px;
}

.about-section-title {
  font-family: "Kaiti SC", "KaiTi", "STKaiti", serif;
  font-size: 26px;
  color: #1e1a12;
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #d4c9b0, transparent);
}

/* 技能行式列表 */
.skill-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #e0d8c4;
}

.skill-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid #e0d8c4;
  transition: background 0.22s ease;
}

.skill-row:hover {
  background: rgba(184, 114, 42, 0.04);
}

.skill-label {
  font-size: 14px;
  font-weight: 600;
  color: #b8722a;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.skill-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #4a4234;
}

.skill-desc .skill-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  background: rgba(184, 114, 42, 0.08);
  color: #8a6a30;
  border: 1px solid rgba(184, 114, 42, 0.18);
}

/* 联系 */
.about-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.about-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #d4c9b0;
  color: #4a4234;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.about-contact-btn:hover {
  border-color: #b8722a;
  background: rgba(184, 114, 42, 0.07);
  transform: translateY(-2px);
}

.about-contact-btn svg {
  flex-shrink: 0;
}

/* 邮箱弹窗 */
.mail-pop-wrap {
  position: relative;
  display: inline-flex;
}

button.about-contact-btn {
  font: inherit;
  background: none;
  cursor: pointer;
}

.mail-pop {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(280px, 86vw);
  padding: 14px;
  background: #fffdf9;
  border: 1px solid #ddd3bc;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(23, 33, 29, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 40;
}

.mail-pop.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mail-pop::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #fffdf9;
  border-right: 1px solid #ddd3bc;
  border-bottom: 1px solid #ddd3bc;
  transform: translate(-50%, -5px) rotate(45deg);
}

.mail-pop-title {
  margin: 0 0 8px;
  font-size: 12px;
  color: #a2937a;
  letter-spacing: 0.06em;
}

.mail-pop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  font: inherit;
  background: none;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.mail-pop-item:hover {
  background: rgba(184, 114, 42, 0.07);
  border-color: rgba(184, 114, 42, 0.25);
}

.mail-pop-label {
  flex: 0 0 auto;
  font-size: 13px;
  color: #4a4234;
}

.mail-pop-addr {
  font-size: 13px;
  color: #8a7d63;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-pop-item.is-copied .mail-pop-addr {
  color: #b8722a;
}

.mail-pop-tip {
  margin: 8px 2px 0;
  font-size: 11px;
  color: #b7ab8f;
}
/* 留言板 */
.about-comments {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid #e0d8c4;
}

.about-comments-title {
  font-family: "Kaiti SC", "KaiTi", serif;
  font-size: 24px;
  color: #1e1a12;
  margin: 0 0 8px;
}

/* 留言板：自绘样式，GitHub Issues 做存储 */
.guestbook-form {
  margin-top: 18px;
}

.guestbook-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 118px;
  padding: 14px 16px;
  border: 1px solid #ddd3bc;
  border-radius: 10px;
  background: #fffdf9;
  color: #26221a;
  font: inherit;
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.guestbook-input::placeholder {
  color: #b3a88e;
}

.guestbook-input:focus {
  outline: none;
  border-color: #b8722a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 114, 42, 0.14);
}
.guestbook-nick {
  width: 220px;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 10px 14px;
  border: 1px solid #ddd3bc;
  border-radius: 10px;
  background: #fffdf9;
  color: #26221a;
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.guestbook-nick::placeholder {
  color: #b3a88e;
}

.guestbook-nick:focus {
  outline: none;
  border-color: #b8722a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 114, 42, 0.14);
}

/* 蜜罐字段：真人不可见，机器人填了则静默丢弃 */
.guestbook-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}


.guestbook-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.guestbook-hint {
  font-size: 12.5px;
  color: #a2937a;
}

.guestbook-submit {
  flex: 0 0 auto;
  padding: 10px 26px;
  border: none;
  border-radius: 8px;
  background: #b8722a;
  color: #fffdf8;
  font: inherit;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.guestbook-submit:hover {
  background: #a0651f;
  transform: translateY(-1px);
}

.guestbook-submit:active {
  transform: translateY(0);
}
.guestbook-submit:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}


.guestbook-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #b8722a;
}

.guestbook-list {
  margin-top: 34px;
  border-top: 1px solid #e7dfcc;
}

.guestbook-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #ece5d2;
}

.guestbook-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ece2cc;
  color: #8a7a5c;
  display: grid;
  place-items: center;
  font-size: 15px;
  overflow: hidden;
}

.guestbook-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guestbook-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.guestbook-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #3d372a;
}

.guestbook-time {
  font-size: 12px;
  color: #a2937a;
}

.guestbook-text {
  margin-top: 5px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #4a4436;
  word-break: break-word;
}

.guestbook-status {
  padding: 22px 0;
  margin: 0;
  font-size: 13.5px;
  color: #a2937a;
}

.guestbook-status a {
  color: #b8722a;
}

@media (max-width: 760px) {
  .guestbook-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .guestbook-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .guestbook-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .guestbook-hint {
    text-align: center;
  }
}

/* 入场动效（仅首屏一次） */
@keyframes aboutRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.about-rise {
  animation: aboutRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about-rise-1 { animation-delay: 0.05s; }
.about-rise-2 { animation-delay: 0.12s; }
.about-rise-3 { animation-delay: 0.20s; }
.about-rise-4 { animation-delay: 0.28s; }
.about-rise-5 { animation-delay: 0.36s; }

/* ===== 关于页：滚动渐入 + 交互增强 ===== */

/* 滚动触发渐入 */
.about-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 标签行逐字打字效果 */
.about-tagline .char {
  display: inline;
  opacity: 0;
  animation: charIn 0.06s ease forwards;
}

@keyframes charIn {
  to { opacity: 1; }
}

/* 技能行 hover 左侧琥珀标记线 */
.skill-row {
  position: relative;
}

.skill-row::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: #b8722a;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-row:hover::before {
  transform: translateY(-50%) scaleY(1);
}

.skill-row:hover .skill-label {
  color: #9a5e1e;
}

.skill-row:hover .skill-tag {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(184, 114, 42, 0.15);
}

.skill-tag {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 区域标题下划线动画 */
.about-section-title {
  position: relative;
}

.about-section-title::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #b8722a;
  border-radius: 1px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-section-title.is-visible::before {
  width: 48px;
}

/* 联系按钮磁吸效果 */
.about-contact-btn {
  will-change: transform;
  transition: border-color 0.2s ease, background 0.2s ease,
              transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease;
}

.about-contact-btn:hover {
  box-shadow: 0 4px 16px rgba(184, 114, 42, 0.12);
}

/* 留言板区域渐入 */
.about-comments {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-comments.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* reduced-motion 兼容 */
@media (prefers-reduced-motion: reduce) {
  .about-fade,
  .about-comments {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .about-tagline .char {
    animation: none !important;
    opacity: 1 !important;
  }

  .skill-row::before {
    transition: none !important;
  }

  .about-section-title::before {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-rise { animation: none; }
}

@media (max-width: 1080px) {
  .about-name {
    font-size: clamp(32px, 4.6vw, 48px);
    white-space: normal;
  }

  .skill-row {
    grid-template-columns: 100px 1fr;
    gap: 18px;
  }
}

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .workbench {
    margin: 0 auto;
    max-width: 500px;
  }

  .bookshelf {
    height: 410px;
  }

  .shelf-books {
    right: 70px;
    left: 70px;
  }

  .notebook-modal {
    padding: 24px;
  }

  .notebook-scene {
    height: min(720px, calc(100svh - 48px));
  }

  .notebook-page {
    padding: 32px;
  }

  .about-strip-grid {
    grid-template-columns: 1fr;
  }

  .about-strip p {
    max-width: 720px;
  }

  .about-strip-grid .quiet-link {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 78px;
  }

  .container {
    width: min(100% - 32px, 620px);
  }

  .about-page {
    padding: 64px 0 96px;
  }

  .about-name {
    font-size: clamp(28px, 7vw, 38px);
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .skill-label {
    font-size: 13px;
  }

  .about-contact-row {
    flex-direction: column;
  }

  .nav-shell {
    min-height: 70px;
  }

  .desktop-nav,
  .github-link {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .mobile-nav {
    top: 70px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }

  .brand-copy small {
    display: none;
  }

  .home-hero {
    padding: 52px 0 66px;
  }

  .hero-layout {
    gap: 36px;
  }

  .project-card {
    --pz: 22px;
    padding: 20px;
  }

  .project-index {
    font-size: 26px;
    padding-left: 10px;
  }

  .hero-copy h1 {
    margin-top: 14px;
    font-size: clamp(30px, 9vw, 44px);
  }

  .hero-lede {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .latest-note {
    font-size: 13px;
  }

  .hero-visual {
    margin-top: 8px;
  }

  .workbench {
    width: 100%;
    max-width: 460px;
    margin-left: 0;
    aspect-ratio: auto;
    transform: none;
  }

  .bench-shadow,
  .board-back,
  .board-mid {
    display: none;
  }

  .identity-panel {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    padding: 18px;
    transform: none;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  }

  .avatar-shell {
    width: 58px;
    height: 58px;
    font-size: 16px;
  }

  .identity-main {
    gap: 12px;
    margin-top: 18px;
  }

  .identity-main strong {
    font-size: 15px;
  }

  .section-band {
    padding: 70px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .section-heading > p {
    max-width: none;
    margin-top: 14px;
  }

  .filter-row {
    flex-wrap: nowrap;
    margin-right: -16px;
    margin-left: -16px;
    padding: 0 16px 8px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .bookshelf-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 26px;
  }

  .bookshelf-scene {
    margin-bottom: 38px;
  }

  .bookshelf-depth {
    --shelf-rx: 0deg;
    --shelf-ry: 0deg;
  }

  .bookshelf {
    height: 330px;
  }

  .shelf-back {
    inset: 14px 10px 26px;
  }

  .shelf-side,
  .shelf-label {
    display: none;
  }

  .shelf-plank {
    right: 18px;
    left: 18px;
    height: 14px;
  }

  .shelf-plank-top {
    top: 14px;
  }

  .shelf-plank-bottom {
    bottom: 26px;
  }

  .shelf-books {
    right: 28px;
    bottom: 40px;
    left: 28px;
    height: 196px;
    gap: 8px;
    padding: 16px 12px 0;
    transform: translateZ(50px);
  }

  .shelf-book {
    --book-height: 174px;
    --book-angle: 0deg;
    width: 54px;
  }

  .book-front,
  .book-back {
    transform: translateZ(12px);
  }

  .book-back {
    transform: translateZ(-12px);
  }

  .book-front {
    padding: 14px 7px;
  }

  .book-front strong {
    font-size: 14px;
  }

  .book-front small,
  .book-front em {
    font-size: 8px;
  }

  .book-pages {
    top: 6px;
    bottom: 6px;
    width: 24px;
  }

  .book-top {
    top: -11px;
    height: 24px;
  }

  .notebook-modal {
    padding: 16px;
  }

  .notebook-scene {
    height: calc(100svh - 32px);
  }

  .open-notebook {
    left: 5%;
    width: 90%;
  }

  .notebook-modal.is-open .open-notebook {
    transform: none;
  }

  .notebook-page {
    padding: 24px;
  }

  .notebook-page-right {
    border-top: 1px solid rgba(61, 40, 31, 0.16);
    border-left: 1px solid rgba(61, 40, 31, 0.2);
    border-radius: 10px;
  }

  .notebook-page h3,
  .notebook-cover-back h3 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .notebook-description {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.75;
  }

  .notebook-count {
    margin-top: 18px;
    padding-top: 14px;
  }

  .notebook-count strong {
    font-size: 36px;
  }

  .notebook-hint {
    display: none;
  }

  .notebook-page-header {
    align-items: center;
    padding-bottom: 16px;
  }

  .notebook-page-header h3 {
    font-size: 25px;
  }

  .notebook-article {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 16px 0;
  }

  .notebook-article time {
    padding-top: 0;
  }

  .notebook-cover {
    transform-origin: left center;
  }

  .notebook-cover-face {
    padding: 24px;
  }

  .notebook-cover-front {
    border-radius: 10px;
  }

  .notebook-cover-front strong {
    font-size: clamp(30px, 9vw, 42px);
  }

  .notebook-cover-back {
    display: none;
  }

  .notebook-modal.is-open .notebook-cover {
    transform: rotateY(-180deg);
  }

  .post-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
  }

  .post-item time {
    font-size: 10px;
  }

  .post-item time span {
    font-size: 24px;
  }

  .post-item-main h3 {
    font-size: 19px;
  }

  .post-excerpt {
    font-size: 13px;
  }

  .read-link {
    grid-column: 2;
    justify-self: start;
    min-height: 30px;
  }

  .about-strip {
    padding: 64px 0;
  }

  .about-strip-grid {
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .post-shell {
    padding-top: 70px;
  }

  .article-progress {
    top: 70px;
  }

  .post-topline {
    font-size: 12px;
  }

  .post-header {
    margin: 58px auto 44px;
  }

  .post-header h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .post-lead {
    font-size: 16px;
  }

  .post-content {
    width: min(100% - 32px, 620px);
    font-size: 16px;
    line-height: 1.95;
  }

  .post-content h2 {
    margin-top: 44px;
    font-size: 26px;
  }

  .post-content pre {
    margin-right: -8px;
    margin-left: -8px;
    padding: 16px;
    font-size: 13px;
  }

  .post-neighbors {
    grid-template-columns: 1fr;
    padding-bottom: 70px;
  }

  .neighbor-link.next {
    text-align: left;
  }

}

@media (max-width: 430px) {
  .hero-actions .button {
    width: 100%;
  }

  .workbench {
    width: 100%;
    margin-left: 0;
  }

  .bookshelf-intro p {
    font-size: 13px;
  }

  .bookshelf {
    width: 104%;
    margin-left: -2%;
    height: 312px;
  }

  .shelf-books {
    right: 18px;
    left: 18px;
    gap: 5px;
  }

  .shelf-book {
    width: 50px;
  }

  .notebook-modal {
    padding: 10px;
  }

  .notebook-scene {
    height: calc(100svh - 20px);
  }

  .notebook-page {
    padding: 20px;
  }

  .notebook-kicker {
    margin-bottom: 8px;
  }

  .notebook-article strong {
    font-size: 16px;
  }

  .notebook-article small {
    display: none;
  }

  .notebook-cover-front {
    gap: 12px;
  }

  .post-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .workbench,
  .button:hover {
    transform: none;
  }

  .bookshelf-depth,
  .shelf-book,
  .shelf-book:hover,
  .shelf-book.is-selected {
    transform: none;
  }

  .notebook-modal.is-open .notebook-cover {
    opacity: 0;
    transform: none;
  }
}
