:root {
  color-scheme: light;
  --bg: #4b514e;
  --paper: #f6f2e8;
  --surface: #ebe8dc;
  --ink: #303d3b;
  --muted: #596861;
  --line: #d3d6c8;
  --accent: #42695f;
  --outside: #e3e8dd;
  --gold: #ddc28d;
  --serif:
    "Baskerville", "Palatino Linotype", "Noto Serif CJK SC", "Songti SC", serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
:root[data-mode="dark"] {
  color-scheme: dark;
  --bg: #1b2724;
  --paper: #25342e;
  --surface: #2d3d35;
  --ink: #e4e9dc;
  --muted: #b3c1b0;
  --line: #46584b;
  --accent: #b7cead;
  --outside: #d0d9c9;
  --gold: #dcc490;
}
/* 彻底删除全站侧边滚动条/进度条 (Remove Website Side Scrollbar / Progress Bar) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scroll-padding-top: 104px;
  scrollbar-width: none; /* Firefox: 彻底删除网站侧边滚动条/进度条 */
  -ms-overflow-style: none; /* IE / Edge */
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px / 1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
  background-image:
    repeating-linear-gradient(
      0deg,
      #b4c1b306 0,
      #b4c1b306 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      #00000005 0,
      #00000005 1px,
      transparent 1px,
      transparent 5px
    );
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
a:hover {
  text-decoration-color: currentColor;
}
::selection {
  background: #92af8766;
}
main:focus {
  outline: none;
}
.skip {
  position: fixed;
  left: 20px;
  top: -100px;
  padding: 10px 18px;
  background: var(--paper);
  z-index: 30;
}
.skip:focus {
  top: 10px;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  background: #26352e;
  color: #e8e9d8;
  border-bottom: 3px dotted #87907770;
  box-shadow: 0 5px 18px #171a1938;
}
.header-inner {
  max-width: 1320px;
  margin: auto;
  padding: 12px 24px;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font: 26px / 1.2 var(--serif);
}
.brand-symbol {
  font-size: 33px;
  color: var(--gold);
}
.brand small {
  font: 11px / 1.5 var(--sans);
  display: block;
  margin-top: 5px;
  color: #b9c5b2;
  letter-spacing: 1px;
}
.main-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.main-nav a {
  font-size: 15px;
  padding: 11px 15px;
  min-height: 44px;
  position: relative;
}
.main-nav a[aria-current] {
  color: var(--gold);
}
.main-nav a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
}
.main-nav a:hover {
  background: #ffffff08;
}
.site-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-tools a,
.site-tools button {
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 40px;
  background: none;
  border: 0;
  color: inherit;
  font-size: 14px;
}
.site-tools .search-shortcut {
  font-size: 29px;
}
.site-tools .language-link {
  font-size: 12px;
}
.category-nav {
  max-width: 1272px;
  margin: 0 auto;
  display: flex;
  gap: 22px;
  padding: 13px 0;
  color: var(--outside);
  font-size: 13px;
  overflow: auto;
  white-space: nowrap;
}
.category-nav a {
  padding: 3px 0;
}
.category-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.announcement {
  background: #dfc994;
  color: #413c29;
  padding: 10px 24px;
  text-align: center;
  font-size: 14px;
}
.page-wrap {
  max-width: 1320px;
  padding: 30px 24px 20px;
  margin: auto;
}
main {
  padding-top: 101px;
  min-height: calc(100vh - 101px);
}
.site-footer {
  margin-top: auto;
}
.site-header + .category-nav,
.site-header + .announcement,
.site-header + main {
  padding-top: 101px;
}
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 30px;
  align-items: start;
}
.album-sheet {
  padding: 31px 34px;
  background: var(--paper);
  border-radius: 3px;
  box-shadow:
    0 3px 0 #9cac982c,
    0 7px 0 -3px #83998330,
    0 13px 26px #0e201b26;
  border: 1px solid #abb49e22;
  min-width: 0;
}
.home-intro {
  color: var(--outside);
  padding: 5px 0 25px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 20px;
  align-items: center;
}
.home-intro .eyebrow {
  grid-column: 1 / -1;
}
.home-intro h1 {
  font: 36px / 1.4 var(--serif);
  letter-spacing: 1px;
}
.home-intro p {
  font-size: 15px;
  max-width: 500px;
}
.eyebrow {
  display: block;
  font: 10px / 1.5 var(--mono);
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 8px;
}
.home-intro .eyebrow {
  color: #bcc8b5;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
}
.section-heading h2 {
  font: 27px / 1.5 var(--serif);
}
.section-heading > a {
  font-size: 13px;
  color: var(--muted);
}
.post-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.post-row:last-child {
  border-bottom: 0;
  padding-bottom: 9px;
}
.post-copy {
  min-width: 0;
  flex: 1;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 11px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.post-meta > a {
  color: var(--accent);
}
.post-meta .template-label {
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  margin-left: auto;
}
.post-copy h2 {
  font: 500 23px / 1.6 var(--sans);
  margin: 9px 0 10px;
  overflow-wrap: anywhere;
}
.post-copy h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.post-copy > p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.tag {
  font-size: 12px;
  color: var(--accent);
  background: #8b9d7410;
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 3px;
  line-height: 1.7;
}
.tag:hover {
  background: #8b9d7427;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-photo {
  width: 140px;
  flex-shrink: 0;
  padding: 7px 7px 17px;
  background: #ecebdd;
  box-shadow: 2px 4px 6px #23342820;
  transform: rotate(2deg);
}
.post-row:nth-child(even) .post-photo {
  transform: rotate(-2deg);
}
.post-photo img {
  height: 104px;
  width: 100%;
  object-fit: cover;
}
.sidebar {
  min-width: 0;
  padding-top: 9px;
}
.profile-note {
  position: relative;
  background: var(--surface);
  padding: 29px 24px 25px;
  box-shadow: 3px 6px 10px #10231d22;
  transform: rotate(1deg);
}
.paper-tape {
  position: absolute;
  width: 75px;
  height: 21px;
  background: #c2b48b8c;
  top: -10px;
  left: calc(50% - 37px);
  transform: rotate(-5deg);
}
.profile-note h2 {
  font: 26px / 1.5 var(--serif);
  margin: 12px 0;
}
.profile-note p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.profile-note > a {
  display: inline-block;
  font-size: 13px;
  margin-top: 19px;
  color: var(--accent);
}
.sidebar-block {
  margin-top: 31px;
  color: var(--outside);
}
.sidebar-block h2 {
  font: 20px / 1.5 var(--serif);
  padding-bottom: 13px;
  border-bottom: 1px solid #bbc8b42e;
  margin-bottom: 7px;
}
.sidebar-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
}
.sidebar-link small {
  font: 12px / 1.8 var(--mono);
}
.sidebar-project {
  display: block;
  padding: 14px 0;
  border-bottom: 1px dotted #bcc9b631;
}
.sidebar-project strong {
  display: block;
  font: 22px / 1.5 var(--serif);
}
.sidebar-project span {
  display: block;
  font-size: 13px;
  line-height: 1.9;
  color: #c3cfbb;
  margin-top: 7px;
}
.muted {
  color: var(--muted);
}
.sidebar-block .muted {
  color: var(--outside);
  font-size: 14px;
  padding-top: 14px;
}
.page-heading {
  padding-bottom: 22px;
}
.page-heading h1 {
  font: 36px / 1.5 var(--serif);
}
.page-heading p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 9px;
}
.search-form {
  margin: 0 0 19px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}
.search-form label {
  font-size: 13px;
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}
.search-form > div {
  display: flex;
  gap: 10px;
}
.search-form input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 9px 12px;
  font-size: 15px;
  border-radius: 3px;
}
.search-form button,
.button,
.button-small {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  background: var(--accent);
  color: var(--paper);
  padding: 9px 18px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  white-space: nowrap;
  font-size: 14px;
}
.button-small {
  padding: 7px 13px;
  font-size: 13px;
}
.tag-filter {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.tag-filter > a {
  padding: 5px 9px;
  border: 1px solid transparent;
  font-size: 13px;
  color: var(--muted);
}
.tag-filter > a[aria-current] {
  border-color: var(--line);
  color: var(--accent);
  background: #8eaa7c12;
}
.tag-filter small {
  font: 10px var(--mono);
  margin-left: 4px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px 0 6px;
  font-size: 14px;
}
.pagination > a {
  padding: 8px 0;
  color: var(--accent);
}
.empty-state {
  padding: 57px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
.empty-state > span {
  font-size: 41px;
  display: block;
  color: var(--accent);
  margin-bottom: 16px;
}
.empty-state p {
  max-width: 510px;
  margin: auto;
}
.notice,
.preview-banner {
  padding: 12px 17px;
  background: #af986e20;
  border: 1px solid var(--line);
  font-size: 14px;
  margin-bottom: 20px;
}
.reading-wrap {
  max-width: 1040px;
  margin: 30px auto;
  padding: 0 24px;
}
.reading-sheet {
  background: var(--paper);
  padding: 37px 46px;
  border-radius: 3px;
  box-shadow: 3px 6px 15px #14282025;
}
.article-header {
  max-width: 740px;
  margin: 0 auto 29px;
}
.article-header h1 {
  font: 38px / 1.5 var(--serif);
  margin: 20px 0 16px;
  overflow-wrap: anywhere;
}
.article-summary {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.9;
}
.article-header .tags {
  margin-top: 17px;
}
.article-byline {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) 150px;
  gap: 31px;
  align-items: start;
  justify-content: center;
}
.reading-layout .prose {
  min-width: 0;
}
.prose {
  font: 18px / 1.85 var(--sans);
  overflow-wrap: anywhere;
  color: var(--ink);
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-weight: 600;
  line-height: 1.5;
  margin: 1.5em 0 0.65em;
  scroll-margin-top: 24px;
}
.prose h1 {
  font-size: 30px;
}
.prose h2 {
  font-size: 27px;
}
.prose h3 {
  font-size: 23px;
}
.prose h4 {
  font-size: 20px;
}
.prose > p,
.prose > ul,
.prose > ol,
.prose > table,
.prose > pre,
.prose > blockquote {
  margin: 0 0 1.2em;
}
.prose p {
  margin-bottom: 1.2em;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prose ul,
.prose ol {
  padding-left: 1.5em;
}
.prose li {
  margin: 0.25em 0;
}
.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 14px 23px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  font-family: var(--serif);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose code {
  font: 15px / 1.8 var(--mono);
  background: var(--card);
  padding: 2px 5px;
  border-radius: 3px;
}
.prose pre {
  background: #24352e;
  color: #e6ecdc;
  padding: 22px 20px;
  overflow: auto;
  position: relative;
  border-radius: 4px;
  max-width: 100%;
  tab-size: 4;
}
.prose pre code {
  font: 14px / 1.8 var(--mono);
  background: none;
  padding: 0;
  color: inherit;
  white-space: pre;
  overflow-wrap: normal;
}
.copy-code {
  position: absolute;
  right: 8px;
  top: 7px;
  padding: 3px 8px;
  background: #3b5143;
  border: 1px solid #687c65;
  color: #e8eddf;
  font-size: 12px;
  border-radius: 3px;
}
.prose img {
  display: block;
  margin: 1.5em auto;
  max-width: 100%;
  height: auto;
}
.prose table {
  border-collapse: collapse;
  font-size: 15px;
  display: block;
  overflow: auto;
  max-width: 100%;
}
.prose td,
.prose th {
  padding: 9px 14px;
  border: 1px solid var(--line);
  text-align: start;
  min-width: 100px;
}
.prose th {
  background: var(--card);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.article-toc {
  position: sticky;
  top: 24px;
  border-left: 1px solid var(--line);
  padding-left: 15px;
  font-size: 13px;
}
.article-toc:has(nav:empty) {
  display: none;
}
.article-toc strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.article-toc nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.article-toc a {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.article-toc a:hover {
  color: var(--accent);
}
.article-cover {
  margin: 0 0 32px;
  padding: 9px 9px 20px;
  background: var(--print);
  box-shadow: 2px 4px 7px #18342921;
}
.article-cover img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
}
.article-end {
  text-align: center;
  margin-top: 43px;
  padding-top: 29px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.article-end > span {
  font-size: 35px;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.article-end .tags {
  justify-content: center;
  margin-top: 19px;
}
.template-journal .reading-layout {
  grid-template-columns: minmax(0, 740px);
}
.template-journal .article-toc {
  display: none;
}
.template-journal .prose > p:first-child {
  font-family: var(--serif);
  font-size: 20px;
}
.template-technical .article-header {
  max-width: none;
}
.template-technical .prose h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.template-photo .reading-layout {
  grid-template-columns: minmax(0, 800px);
}
.template-photo .article-toc {
  display: none;
}
.template-photo .prose img {
  padding: 8px 8px 21px;
  background: var(--print);
  box-shadow: 2px 4px 6px #13281d1f;
}
.template-photo .article-summary {
  font-family: var(--serif);
  font-size: 19px;
}
.project-row {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) 173px;
  gap: 26px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.project-initial {
  display: grid;
  place-items: center;
  width: 46px;
  height: 58px;
  background: #6d8065;
  color: #eee9d3;
  font: 37px var(--serif);
  box-shadow:
    inset 4px 0 #4b624d,
    2px 3px #293b2222;
  border-radius: 3px 6px 6px 3px;
}
.project-title {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.project-title h2 {
  font: 30px / 1.4 var(--serif);
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 2px 7px;
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}
.project-row p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  margin-top: 11px;
}
.project-next-step {
  font-size: 14px !important;
  line-height: 1.75 !important;
  color: var(--ink) !important;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  margin-top: 13px !important;
}
.project-next-step strong {
  font-weight: 600;
  color: var(--accent);
  margin-right: 5px;
}
.project-facts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 15px;
  font-size: 13px;
  color: var(--muted);
}
.project-facts > span + span {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.project-actions {
  display: flex;
  align-items: end;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  font-size: 14px;
}
.project-actions small {
  color: var(--muted);
  font-size: 13px;
}
.project-detail {
  max-width: 1050px;
  margin: auto;
}
.back-link {
  font-size: 14px;
  display: inline-block;
  color: var(--muted);
  margin-bottom: 25px;
}
.project-header h1 {
  font: 45px / 1.4 var(--serif);
  margin: 15px 0;
}
.project-header > p {
  font-size: 18px;
  color: var(--muted);
  max-width: 740px;
  line-height: 1.9;
}
.project-tabs {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  margin: 28px 0;
  padding: 0 5px;
}
.project-tabs > a {
  padding: 14px 0;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}
.project-tabs > a[aria-current] {
  border-color: var(--accent);
  color: var(--accent);
}
.project-detail > .prose {
  max-width: 760px;
}
.project-cover {
  max-height: 440px;
  object-fit: contain;
  margin-bottom: 30px;
}
.update-filters {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.update-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.update-filters select {
  min-width: 170px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  font-size: 14px;
}
.update-filters .button-small {
  min-height: 38px;
}
.update-row {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 25px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.update-row > time {
  font: 13px / 1.8 var(--mono);
  color: var(--muted);
  padding-top: 4px;
}
.update-row h2 {
  font: 24px / 1.6 var(--sans);
  margin: 12px 0;
}
.update-row .prose {
  font-size: 16px;
  max-width: 800px;
}
.release-card {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.release-card h2 {
  font: 30px / 1.5 var(--serif);
}
.release-notes {
  white-space: pre-wrap;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 17px;
}
.release-meta {
  font: 13px var(--mono);
  color: var(--muted);
  margin: 18px 0;
}
.checksum {
  font-size: 12px;
  overflow-wrap: anywhere;
  margin: 15px 0;
}
.checksum code {
  font: 12px var(--mono);
  display: block;
  background: var(--card);
  padding: 10px;
}
.site-footer {
  max-width: 1272px;
  margin: 29px auto 0;
  padding: 30px 0 35px;
  border-top: 1px solid #bac8b62b;
  color: var(--outside);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.site-footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.footer-edition {
  font: 8px var(--mono);
  letter-spacing: 1.5px;
  color: #d9bd86;
  padding-top: 4px;
}
.site-footer small {
  display: block;
  font-size: 12px;
  color: #bdcbb6;
  margin-top: 5px;
}
.site-footer nav {
  display: flex;
  gap: 23px;
  font-size: 13px;
}
[data-mode="dark"] .post-photo {
  background: #bac1ad;
}
[data-mode="dark"] .post-photo img {
  filter: brightness(0.83);
}
[data-mode="dark"] .reading-sheet {
  box-shadow: 3px 6px 17px #0003;
}
:lang(en) .prose {
  line-height: 1.75;
}
:lang(en) .home-intro h1 {
  letter-spacing: 0;
}
@media (min-width: 1440px) {
  .template-technical {
    margin-left: -40px;
    margin-right: -40px;
  }
  .template-technical .reading-layout {
    grid-template-columns: minmax(0, 740px) 170px;
  }
  .template-technical .article-header {
    max-width: 940px;
  }
}
@media (max-width: 1100px) {
  .header-inner {
    gap: 20px;
  }
  .main-nav a {
    padding-inline: 10px;
  }
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 238px;
    gap: 23px;
  }
  .album-sheet {
    padding: 27px;
  }
  .post-row {
    gap: 18px;
  }
  .post-photo {
    width: 111px;
  }
  .post-photo img {
    height: 87px;
  }
  .post-copy h2 {
    font-size: 22px;
  }
  .profile-note {
    padding: 25px 20px;
  }
  .reading-layout {
    grid-template-columns: minmax(0, 740px);
  }
  .article-toc {
    display: none;
  }
  .category-nav {
    padding-inline: 24px;
  }
  .site-footer {
    margin-inline: 24px;
  }
  .project-row {
    grid-template-columns: 46px minmax(0, 1fr) 145px;
    gap: 20px;
  }
}
@media (max-width: 850px) {
  .brand {
    font-size: 23px;
  }
  .header-inner {
    padding-inline: 20px;
    gap: 18px;
  }
  .main-nav {
    gap: 0;
  }
  .main-nav a {
    font-size: 14px;
    padding-inline: 8px;
  }
  .site-tools {
    gap: 3px;
  }
  .site-tools a,
  .site-tools button {
    width: 31px;
  }
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 18px;
  }
  .sidebar-block {
    margin-top: 0;
  }
  .sidebar-block:last-child {
    grid-column: 1 / -1;
  }
  .home-intro {
    display: block;
  }
  .home-intro h1 {
    font-size: 33px;
    margin: 7px 0;
  }
  .home-intro p {
    font-size: 15px;
  }
  .reading-sheet {
    padding: 32px;
  }
  .post-photo {
    width: 142px;
  }
  .post-photo img {
    height: 105px;
  }
  .article-header h1 {
    font-size: 35px;
  }
  .project-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .project-actions {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
  }
  .project-header > p {
    font-size: 17px;
  }
}
@media (max-width: 650px) {
  html {
    scroll-padding-top: 145px;
  }
  .header-inner {
    flex-wrap: wrap;
    padding: 13px 18px 4px;
    gap: 10px 15px;
  }
  .brand {
    font-size: 23px;
    order: 0;
  }
  .brand-symbol {
    font-size: 29px;
  }
  .brand small {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .site-tools {
    order: 1;
    margin-left: auto;
  }
  .main-nav {
    order: 2;
    width: 100%;
    margin: 0;
    justify-content: space-between;
    border-top: 1px solid #b7c2a826;
    padding-top: 2px;
  }
  .main-nav a {
    font-size: 14px;
    min-height: 42px;
    padding: 10px 9px;
    flex: 1;
    text-align: center;
  }
  .main-nav a[aria-current]::after {
    left: 13px;
    right: 13px;
    bottom: 3px;
  }
  .category-nav {
    padding: 10px 18px;
    font-size: 12px;
    gap: 20px;
  }
  .page-wrap {
    padding: 19px 16px 12px;
  }
  .album-sheet {
    padding: 24px 18px;
    border: 0;
  }
  .home-intro {
    padding: 2px 2px 20px;
  }
  .home-intro h1 {
    font-size: 30px;
  }
  .home-intro p {
    font-size: 14px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .section-heading {
    padding-bottom: 15px;
    gap: 14px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .section-heading > a {
    font-size: 12px;
  }
  .post-row {
    padding: 23px 0;
    gap: 16px;
    align-items: start;
  }
  .post-copy h2 {
    font-size: 21px;
    line-height: 1.65;
    margin: 9px 0;
  }
  .post-copy > p {
    font-size: 15px;
    line-height: 1.85;
  }
  .post-meta {
    font-size: 12px;
    gap: 6px 8px;
  }
  .post-meta .template-label {
    display: none;
  }
  .post-photo {
    width: 88px;
    padding: 5px 5px 12px;
    margin-top: 7px;
  }
  .post-photo img {
    height: 81px;
  }
  .tags {
    gap: 6px;
    margin-top: 12px;
  }
  .tag {
    font-size: 12px;
    padding: 2px 7px;
  }
  .post-row:has(.post-photo) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 12px;
  }
  .post-row:has(.post-photo) .post-copy {
    display: contents;
  }
  .post-row:has(.post-photo) .post-meta {
    grid-column: 1;
    grid-row: 1;
  }
  .post-row:has(.post-photo) h2 {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }
  .post-row:has(.post-photo) .post-photo {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .post-row:has(.post-photo) p {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .post-row:has(.post-photo) .tags {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 0;
  }
  .sidebar {
    display: block;
    padding-top: 18px;
  }
  .sidebar-block {
    margin-top: 28px;
  }
  .profile-note {
    padding: 26px;
    transform: rotate(0.5deg);
  }
  .profile-note h2 {
    font-size: 25px;
  }
  .profile-note p {
    font-size: 15px;
  }
  .sidebar-link {
    font-size: 14px;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .search-form input {
    font-size: 15px;
  }
  .search-form > div {
    gap: 7px;
  }
  .search-form button {
    font-size: 13px;
    padding-inline: 14px;
  }
  .tag-filter {
    gap: 5px;
  }
  .tag-filter > a {
    font-size: 12px;
    padding: 4px 6px;
  }
  .reading-wrap {
    padding: 0 16px;
    margin: 20px auto;
  }
  .reading-sheet {
    padding: 26px 18px;
  }
  .article-header {
    margin-bottom: 25px;
  }
  .article-header h1 {
    font-size: 30px;
    line-height: 1.55;
    margin: 16px 0;
  }
  .article-summary {
    font-size: 16px;
    line-height: 1.9;
  }
  .article-byline {
    font-size: 12px;
  }
  .prose {
    font-size: 17px;
    line-height: 1.85;
  }
  .prose h1 {
    font-size: 27px;
  }
  .prose h2 {
    font-size: 25px;
  }
  .prose h3 {
    font-size: 22px;
  }
  .prose pre {
    padding: 30px 16px 17px;
    margin-inline: 0;
    font-size: 14px;
  }
  .prose code {
    font-size: 14px;
  }
  .prose blockquote {
    padding: 12px 17px;
  }
  .prose td,
  .prose th {
    font-size: 14px;
    padding: 8px 11px;
  }
  .template-journal .prose > p:first-child {
    font-size: 19px;
  }
  .template-photo .article-summary {
    font-size: 18px;
  }
  .article-cover {
    padding: 7px 7px 15px;
    margin-bottom: 25px;
  }
  .article-end {
    margin-top: 33px;
    padding-top: 24px;
  }
  .project-row {
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 17px;
    padding: 25px 0;
  }
  .project-initial {
    width: 36px;
    height: 47px;
    font-size: 29px;
  }
  .project-title h2 {
    font-size: 29px;
  }
  .project-title {
    gap: 9px;
  }
  .badge {
    font-size: 11px;
  }
  .project-row p {
    font-size: 15px;
  }
  .project-facts {
    font-size: 12px;
    gap: 8px;
  }
  .project-actions {
    grid-column: 1 / -1;
    gap: 17px;
    padding-top: 5px;
    font-size: 14px;
  }
  .project-header h1 {
    font-size: 38px;
  }
  .project-header > p {
    font-size: 16px;
  }
  .project-tabs {
    gap: 19px;
    margin: 24px 0;
  }
  .project-tabs > a {
    font-size: 13px;
  }
  .update-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .update-filters select {
    min-width: 0;
    width: 100%;
  }
  .update-filters .button-small {
    grid-column: 1 / -1;
    width: max-content;
  }
  .update-row {
    display: block;
    padding: 24px 0;
  }
  .update-row > time {
    font-size: 12px;
    display: block;
    margin-bottom: 12px;
  }
  .update-row h2 {
    font-size: 22px;
  }
  .update-row .prose {
    font-size: 16px;
  }
  .release-card h2 {
    font-size: 27px;
  }
  .release-notes {
    font-size: 15px;
  }
  .release-meta {
    font-size: 12px;
  }
  .site-footer {
    margin: 24px 16px 0;
    padding: 25px 0 30px;
    flex-direction: column;
    align-items: start;
    gap: 21px;
    font-size: 13px;
  }
  .site-footer nav {
    font-size: 13px;
    gap: 25px;
  }
  .site-footer small {
    font-size: 12px;
  }
  .notice,
  .preview-banner {
    font-size: 13px;
  }
  .pagination {
    font-size: 13px;
  }
  .empty-state {
    padding: 42px 7px;
    font-size: 15px;
  }
  .announcement {
    font-size: 13px;
    padding: 9px 17px;
  }
}
@media (max-width: 370px) {
  .page-wrap {
    padding-inline: 12px;
  }
  .album-sheet {
    padding-inline: 16px;
  }
  .reading-wrap {
    padding-inline: 12px;
  }
  .reading-sheet {
    padding-inline: 16px;
  }
  .brand {
    font-size: 21px;
    gap: 8px;
  }
  .brand-symbol {
    font-size: 26px;
  }
  .site-tools {
    gap: 0;
  }
  .site-tools a,
  .site-tools button {
    width: 29px;
  }
  .post-row:has(.post-photo) {
    display: flex;
    flex-direction: column;
  }
  .post-row:has(.post-photo) .post-copy {
    display: block;
  }
  .post-row:has(.post-photo) .post-photo {
    display: none;
  }
  .post-row:has(.post-photo) h2 {
    margin: 9px 0;
  }
  .post-row:has(.post-photo) .tags {
    margin-top: 12px;
  }
  .main-nav a {
    font-size: 13px;
    padding-inline: 5px;
  }
  .prose {
    font-size: 17px;
  }
  .home-intro {
    display: block;
    position: relative;
    min-height: 148px;
    padding-right: 82px;
  }
  .home-intro h1 {
    font-size: 34px;
    letter-spacing: 1px;
    white-space: nowrap;
  }
  .home-intro p {
    max-width: 150px;
  }
  .album-index-label {
    position: absolute;
    right: 0;
    top: 0;
    margin-top: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* Album direction: the public site follows the physical album prototype. */
.album-toolbar {
  max-width: 1210px;
  margin: 0 auto;
  height: 40px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #d8cfc1;
  font: 9px var(--mono);
  letter-spacing: 1.5px;
}
.toolbar-return {
  font-family: var(--sans);
  letter-spacing: 0;
}
.toolbar-return:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.toolbar-note {
  font-size: 8px;
  color: #c1b6a8;
}
.toolbar-edition {
  font-size: 8px;
  color: #d9bd86;
}
.toolbar-edition::first-letter {
  color: #d9bd86;
}
:root {
  --bg: #514a44;
  --paper: #f1ecdf;
  --surface: #e5ce96;
  --ink: #393732;
  --muted: #756c61;
  --line: #c6bdae;
  --accent: #725241;
  --outside: #524b45;
  --gold: #d9bd86;
  --album: #ece5d8;
  --album-ink: #2c2217;
  --mat-edge: #baa98e;
  --card: #e9e3d4;
  --print: #fbf8f1;
}
:root[data-mode="dark"] {
  --bg: #242526;
  --paper: #393c3a;
  --surface: #4b5c60;
  --ink: #ebe5d5;
  --muted: #b7b09f;
  --line: #62665f;
  --accent: #d5b994;
  --outside: #242526;
  --gold: #d5b994;
  --album: #362e22;
  --album-ink: #f0e8db;
  --mat-edge: #544327;
  --card: #454a45;
  --print: #ded5c4;
}
body {
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(
      42deg,
      #221d190d 0,
      #221d190d 1px,
      transparent 1px,
      transparent 4px
    ),
    radial-gradient(ellipse at 48% 17%, #b4a38c35, transparent 70%);
}
.site-header {
  max-width: 1210px;
  margin: 25px auto 0;
  background: #252a29;
  color: #ddd5bf;
  border-top: 5px dotted #8a7e64;
  border-bottom: 5px dotted #8a7e64;
  box-shadow: 0 6px 12px #171a193b;
}
.header-inner {
  max-width: none;
  padding: 14px 28px;
  min-height: 76px;
}
.brand {
  font-size: 25px;
}
.brand-symbol {
  color: #d3b378;
}
.brand small {
  color: #bcb69f;
}
.main-nav {
  gap: 3px;
}
.main-nav a {
  color: #d2ceb9;
}
.main-nav a[aria-current] {
  color: #ecc78b;
  outline: 1px solid #baa17355;
  outline-offset: -4px;
}
.main-nav a[aria-current]::after {
  display: none;
}
.site-tools {
  color: #d2ceb9;
}
.category-nav {
  max-width: 1130px;
}
.page-wrap {
  max-width: 1290px;
  padding: 35px 42px 20px;
}
.home-page-wrap {
  margin-top: 0;
}
.home-intro {
  color: #e7ddd0;
  padding: 0 15px 26px;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: transparent;
}
.home-intro h1 {
  font: 500 46px / 1.5 var(--serif);
  letter-spacing: 4px;
  margin-top: 12px;
}
.home-intro h1 span {
  font-style: italic;
  color: #dac8a8;
}
.home-intro p {
  font-size: 13px;
  color: #d4c8b7;
  margin-top: 8px;
}
.home-intro .eyebrow {
  color: #d8c7ac;
}
.album-index-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f6eedb;
  border: 1px solid #d8c8a6;
  padding: 11px 19px 13px;
  transform: rotate(4deg);
  margin-top: 13px;
  color: #3b3224;
  position: relative;
  box-shadow: 2px 4px 12px rgba(20, 16, 10, 0.28);
  border-radius: 2px;
}
:root[data-mode="dark"] .album-index-label {
  background: #39342b;
  border-color: #5c503b;
  color: #eeddc3;
  box-shadow: 2px 4px 14px rgba(0, 0, 0, 0.45);
}
/* Brass Paper Clip Pinning the Folio Label (别在卷号标签上的做旧黄铜回形针) */
.album-index-label::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 18px;
  width: 9px;
  height: 25px;
  border: 2px solid #caa355;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35);
  z-index: 3;
  background: transparent;
  pointer-events: none;
}
.album-index-label::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(160, 130, 75, 0.35);
  pointer-events: none;
}
.album-index-label > span {
  font: 8px var(--mono);
  letter-spacing: 2px;
  color: #5d4e38;
}
:root[data-mode="dark"] .album-index-label > span {
  color: #b5a489;
}
.album-index-label b {
  font: 44px / 1.15 var(--serif);
  letter-spacing: 3px;
  margin: 2px 0 6px;
  color: #2b2316;
}
:root[data-mode="dark"] .album-index-label b {
  color: #f7ebd7;
}
.album-index-label small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #5d4e38;
}
:root[data-mode="dark"] .album-index-label small {
  color: #b5a489;
}

/* ==========================================================================
   ARTISAN FOLIO MAT & SCREW-POST BINDING (典藏手作相册垫板与黄铜螺栓装订)
   ========================================================================== */
.home-album-sheet {
  position: relative;
  background-color: var(--album);
  background-image:
    /* 顶部柔和微暖天光 */
    radial-gradient(
      ellipse at 50% 8%,
      rgba(255, 252, 245, 0.85) 0%,
      rgba(236, 229, 216, 0.4) 55%,
      transparent 88%
    ),
    /* 四角天然无酸画纸微温润暗角 */
    radial-gradient(
      circle at 50% 50%,
      transparent 60%,
      rgba(125, 98, 65, 0.12) 100%
    ),
    /* 极细微木浆纤维碎屑与网格标点（28px 间距） */
    radial-gradient(
      circle at 14px 14px,
      rgba(105, 80, 50, 0.12) 1px,
      transparent 1px
    ),
    /* 散焦纸浆流动云彩 */
    radial-gradient(
      ellipse at 25% 35%,
      rgba(222, 212, 196, 0.35) 0%,
      transparent 65%
    ),
    /* 经线纸浆纤维织纹 */
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.14) 0px,
      rgba(255, 255, 255, 0.14) 1px,
      transparent 1px,
      transparent 4px
    ),
    /* 纬线纸浆纤维织纹 */
    repeating-linear-gradient(
      90deg,
      rgba(85, 60, 32, 0.035) 0px,
      rgba(85, 60, 32, 0.035) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size:
    100% 100%,
    100% 100%,
    28px 28px,
    100% 100%,
    100% 100%,
    100% 100%;
  padding: 34px 42px 32px 58px;
  border: 1px solid #baa98e;
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    /* 相册硬卡板上表面反光微边缘与内凹阴影 */
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    inset 0 -1px 2px rgba(85, 60, 35, 0.2),
    /* 第一层：垫在下方的象牙白冷压画纸切边 */
    0 3px 0 -1px #f5efe4,
    0 4px 1px -1px rgba(60, 42, 24, 0.18),
    /* 第二层：垫在下方的复古浅棕无酸卡纸切边 */
    0 7px 0 -2px #ded2be,
    0 8px 2px -2px rgba(50, 35, 20, 0.22),
    /* 第三层：大相册底壳厚硬皮革/深棕封底板 */
    0 12px 0 -4px #4a3828,
    0 14px 4px -4px rgba(35, 22, 12, 0.35),
    /* 暖深棕桌面漫射大阴影 */
    0 26px 58px rgba(30, 20, 12, 0.45),
    0 6px 16px rgba(30, 20, 12, 0.2);
  isolation: isolate;
}

/* Screw-post Binding Spine (手工相册螺栓活页皮革装订脊) */
.album-binding {
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 26px;
  background: #5c4530;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.08) 0px,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 3px
  );
  border-left: 1px dashed rgba(245, 235, 215, 0.45);
  border-right: 1px dashed rgba(245, 235, 215, 0.45);
  box-shadow:
    inset 1px 0 3px rgba(0, 0, 0, 0.32),
    inset -1px 0 3px rgba(0, 0, 0, 0.32),
    5px 0 12px rgba(45, 30, 18, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 42px 0;
  z-index: 2;
  pointer-events: none;
}
:root[data-mode="dark"] .album-binding {
  background: #231a12;
  border-left-color: rgba(215, 185, 140, 0.22);
  border-right-color: rgba(215, 185, 140, 0.22);
  box-shadow:
    inset 1px 0 3px rgba(0, 0, 0, 0.55),
    inset -1px 0 3px rgba(0, 0, 0, 0.55),
    5px 0 12px rgba(0, 0, 0, 0.6);
}

/* Solid Brass Binding Screws (实体质感黄铜平头装订螺栓) */
.binding-screw {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(
    circle at 35% 32%,
    #fff3ce 0%,
    #dab462 38%,
    #8e6c27 75%,
    #5a4212 100%
  );
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(90, 66, 18, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.binding-screw::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7.5px;
  height: 1.5px;
  background: #3f2f0c;
  box-shadow: 0 1px 0 rgba(255, 240, 200, 0.35);
  transform: translate(-50%, -50%) rotate(28deg);
}
.binding-screw.screw-middle::after {
  transform: translate(-50%, -50%) rotate(-42deg);
}
.binding-screw.screw-bottom::after {
  transform: translate(-50%, -50%) rotate(65deg);
}

/* Vintage Brass Album Corners (复古黄铜相册包角) */
.album-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  z-index: 3;
  pointer-events: none;
}
.album-corner::before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.album-corner::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3e2d0a;
  box-shadow: 0 0 0 1px #dfc578;
}
.album-corner.corner-tl {
  top: -1px;
  left: -1px;
}
.album-corner.corner-tl::before {
  background: linear-gradient(
    135deg,
    #faebb9 0%,
    #cfad5c 42%,
    #8e6d29 80%,
    #584112 100%
  );
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-top-left-radius: 4px;
}
.album-corner.corner-tl::after {
  top: 7px;
  left: 7px;
}
.album-corner.corner-tr {
  top: -1px;
  right: -1px;
}
.album-corner.corner-tr::before {
  background: linear-gradient(
    225deg,
    #faebb9 0%,
    #cfad5c 42%,
    #8e6d29 80%,
    #584112 100%
  );
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  border-top-right-radius: 10px;
}
.album-corner.corner-tr::after {
  top: 7px;
  right: 7px;
}
.album-corner.corner-bl {
  bottom: -1px;
  left: -1px;
}
.album-corner.corner-bl::before {
  background: linear-gradient(
    45deg,
    #faebb9 0%,
    #cfad5c 42%,
    #8e6d29 80%,
    #584112 100%
  );
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  border-bottom-left-radius: 4px;
}
.album-corner.corner-bl::after {
  bottom: 7px;
  left: 7px;
}
.album-corner.corner-br {
  bottom: -1px;
  right: -1px;
}
.album-corner.corner-br::before {
  background: linear-gradient(
    315deg,
    #faebb9 0%,
    #cfad5c 42%,
    #8e6d29 80%,
    #584112 100%
  );
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-bottom-right-radius: 10px;
}
.album-corner.corner-br::after {
  bottom: 7px;
  right: 7px;
}

.home-album-sheet > *:not(.album-binding):not(.album-corner) {
  position: relative;
  z-index: 1;
}
.album-section-heading {
  border: 0;
  color: var(--album-ink);
  padding: 0;
  margin-bottom: 30px;
}
.album-section-heading .eyebrow {
  color: var(--album-ink);
  margin: 0;
}
.album-section-heading h2 {
  font: 29px / 1.6 var(--serif);
  margin-top: 7px;
}
.album-section-heading > a {
  color: var(--album-ink);
  font-size: 12px;
  padding-bottom: 7px;
}
.album-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  padding: 8px 12px 28px;
}
.album-feature {
  min-width: 0;
  color: var(--album-ink);
}
.feature-photo {
  display: block;
  padding: 11px 11px 30px;
  background: #fbf8f1;
  border: 1px solid rgba(195, 180, 155, 0.6);
  border-radius: 2px;
  transform: rotate(-3deg);
  position: relative;
  box-shadow:
    2px 4px 6px rgba(55, 38, 22, 0.14),
    9px 14px 20px rgba(55, 38, 22, 0.12);
  color: #675e4d;
}
.album-feature:nth-child(2) .feature-photo {
  transform: rotate(3deg);
  margin-top: 9px;
}
.feature-photo img,
.feature-text-cover {
  width: 100%;
  height: 215px;
  object-fit: cover;
}
.feature-photo img {
  filter: saturate(0.6) sepia(0.12);
}
.feature-text-cover {
  display: grid;
  place-items: center;
  background: #36291f;
  color: #e5dcc4;
  font: 50px var(--serif);
}
.feature-photo > a {
}
.feature-photo > span:last-child {
  display: block;
  font: 8px var(--mono);
  text-align: right;
  margin: 13px 4px -12px;
}
.feature-caption {
  padding: 28px 6px 0;
}
.feature-caption .post-meta {
  color: var(--album-ink);
}
.feature-caption h3 {
  font: 24px / 1.7 var(--serif);
  margin: 9px 0;
  color: var(--on-mat);
}
.feature-caption p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--on-mat-muted);
}
.feature-caption .tag {
  color: #503d29;
  border-color: rgba(140, 115, 80, 0.45);
  background: rgba(215, 195, 170, 0.4);
}
.home-notes {
  background: #f5eee3;
  border: 1px solid rgba(185, 170, 145, 0.55);
  border-radius: 3px;
  padding: 0 24px;
  margin-top: 11px;
  box-shadow: 2px 4px 10px rgba(55, 38, 22, 0.1);
}
.home-notes .post-row {
  border: 0;
}
.home-empty-stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  padding: 8px 12px 28px;
}
.home-empty-photo,
.home-empty-paper {
  min-width: 0;
  color: var(--album-ink);
}
.empty-photo-frame {
  height: 215px;
  padding: 11px 11px 30px;
  background: #fbf8f1;
  border: 1px solid rgba(195, 180, 155, 0.6);
  border-radius: 2px;
  box-shadow:
    2px 4px 6px rgba(55, 38, 22, 0.14),
    9px 14px 20px rgba(55, 38, 22, 0.12);
  transform: rotate(-3deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9c927d;
}
.home-empty-paper {
  background: #f5eee3;
  border: 1px solid rgba(185, 170, 145, 0.55);
  border-radius: 3px;
  padding: 28px 25px;
  box-shadow: 2px 4px 10px rgba(55, 38, 22, 0.1);
  transform: rotate(2deg);
  align-self: center;
}
.empty-photo-frame > span {
  font: 48px / 1 var(--serif);
  font-weight: 300;
}
.empty-photo-frame > small {
  margin-top: 26px;
  font: 8px var(--mono);
  letter-spacing: 1px;
}
.empty-photo-copy {
  padding: 28px 6px 0;
}
.empty-photo-copy h3,
.home-empty-paper h3 {
  font: 24px / 1.7 var(--serif);
  margin: 9px 0;
}
.empty-photo-copy p,
.home-empty-paper p {
  font-size: 13px;
  line-height: 1.9;
}
.home-empty-paper a {
  display: inline-block;
  margin-top: 17px;
  font-size: 13px;
  color: var(--accent);
}
.home-album-sheet .project-heading {
  margin-top: 37px;
  margin-bottom: 21px;
}
.home-projects {
  background: #f5eee3;
  border: 1px solid rgba(185, 170, 145, 0.55);
  border-radius: 3px;
  padding: 0 25px;
  box-shadow: 2px 4px 10px rgba(55, 38, 22, 0.1);
}
.home-projects .project-row {
  border: 0;
}
.home-projects .empty-state {
  padding-block: 36px;
}
.home-empty-project {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 30px 0;
  color: var(--ink);
}
.home-empty-project .project-initial {
  background: #546549;
  color: #f1ecdf;
}
.home-empty-project strong {
  font: 26px / 1.5 var(--serif);
}
.home-empty-project p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}
.project-placeholder-meta {
  display: block;
  color: var(--muted);
  font: 12px var(--mono);
  margin-top: 12px;
}
.home-update-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  color: var(--album-ink);
  font-size: 12px;
}
.home-update-strip > span {
  font: 8px var(--mono);
  letter-spacing: 1px;
  padding-right: 10px;
  border-right: 1px solid currentColor;
}
.home-update-strip > a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-update-strip > time {
  margin-left: auto;
  font: 9px var(--mono);
}
.home-album-sheet > .empty-state {
  color: var(--album-ink);
  padding: 37px 15px 50px;
}
.home-album-sheet > .empty-state > span {
  color: var(--album-ink);
}
.page-wrap:not(.home-page-wrap) {
  position: relative;
  margin-top: 30px;
  margin-bottom: 25px;
  background-color: var(--album);
  background-image:
    radial-gradient(ellipse at 28% 18%, rgba(255, 252, 245, 0.6) 0%, transparent 68%),
    radial-gradient(circle at 14px 14px, rgba(120, 95, 65, 0.12) 0.9px, transparent 0.9px),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.14) 0px,
      rgba(255, 255, 255, 0.14) 1px,
      transparent 1px,
      transparent 5px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(80, 55, 30, 0.04) 0px,
      rgba(80, 55, 30, 0.04) 1px,
      transparent 1px,
      transparent 5px
    );
  background-size:
    100% 100%,
    28px 28px,
    100% 100%,
    100% 100%;
  padding: 36px 39px 36px 51px;
  border: 1px solid var(--mat-edge);
  border-radius: 5px 11px 11px 5px;
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.18),
    0 8px 0 -4px #ded2be,
    0 10px 0 -4px #4a3828,
    0 24px 48px rgba(35, 22, 12, 0.45);
}
.page-wrap:not(.home-page-wrap)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 0;
  bottom: 0;
  width: 12px;
  border-left: 1px solid rgba(85, 60, 35, 0.35);
  border-right: 1px solid rgba(255, 245, 225, 0.35);
  background: rgba(92, 69, 48, 0.2);
  box-shadow: 5px 0 8px rgba(45, 30, 18, 0.15);
}
.page-wrap:not(.home-page-wrap) > .album-sheet {
  position: relative;
  z-index: 1;
  box-shadow: 3px 6px 10px rgba(50, 35, 20, 0.14);
}
.page-wrap:not(.home-page-wrap) .sidebar {
  position: relative;
  z-index: 1;
}
.reading-wrap {
  position: relative;
  max-width: 1180px;
  margin: 25px auto 40px;
  padding: 0 34px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.reading-wrap::before,
.reading-wrap::after {
  display: none !important;
}
.reading-sheet {
  position: relative;
  z-index: 1;
  --ink: var(--on-paper);
  --muted: var(--on-paper-muted);
  --line: var(--on-paper-line);
  --accent: #5e4334;
}
:root[data-mode="dark"] .reading-sheet {
  --accent: #d5b994;
}
.site-footer {
  max-width: 1130px;
  color: #d4c8b7;
  border-color: #c4b59b44;
}
.site-footer small {
  color: #c3b6a7;
}
.site-footer nav {
  color: #d4c8b7;
}
[data-mode="dark"] .home-album-sheet,
:root[data-mode="dark"] .home-album-sheet,
:root[data-mode="dark"] .page-wrap:not(.home-page-wrap) {
  background-color: #362e22;
  background-image:
    radial-gradient(
      ellipse at 50% 8%,
      rgba(95, 78, 55, 0.65) 0%,
      rgba(54, 46, 34, 0.35) 55%,
      transparent 88%
    ),
    radial-gradient(circle at 14px 14px, rgba(255, 235, 180, 0.08) 0.9px, transparent 0.9px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.035) 0px,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.32) 0px,
      rgba(0, 0, 0, 0.32) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size:
    100% 100%,
    28px 28px,
    100% 100%,
    100% 100%;
  border-color: #544327;
  box-shadow:
    inset 0 1px 1px rgba(255, 235, 180, 0.12),
    0 3px 0 -1px #3a3124,
    0 7px 0 -2px #282117,
    0 12px 0 -4px #18130d,
    0 30px 65px rgba(0, 0, 0, 0.8);
}
.home-album-sheet::after {
  content: "";
  position: absolute;
  inset: 12px 14px 12px 48px;
  border: 1px dashed rgba(120, 95, 65, 0.38);
  border-radius: 4px;
  box-shadow:
    inset 1px 1px 2px rgba(80, 55, 30, 0.1),
    1px 1px 0 rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 0;
}
:root[data-mode="dark"] .home-album-sheet::after {
  border-color: rgba(220, 195, 155, 0.16);
  box-shadow:
    inset 1px 1px 2px rgba(0, 0, 0, 0.45),
    1px 1px 0 rgba(255, 235, 180, 0.05);
}
.page-wrap:not(.home-page-wrap)::after {
  content: "";
  position: absolute;
  inset: 12px 14px 12px 34px;
  border: 1px dashed rgba(120, 95, 65, 0.3);
  border-radius: 4px;
  pointer-events: none;
  z-index: 0;
}
:root[data-mode="dark"] .page-wrap:not(.home-page-wrap)::after {
  border-color: rgba(220, 195, 155, 0.12);
}
[data-mode="dark"] .feature-photo {
  background: #ded5c4;
}
[data-mode="dark"] .home-notes {
  background: #2c251b;
}
[data-mode="dark"] .home-projects {
  background: #2c251b;
  border-color: rgba(90, 70, 45, 0.6);
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
}
[data-mode="dark"] .home-empty-paper {
  background: #2c251b;
  border-color: rgba(90, 70, 45, 0.6);
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
}
@media (max-width: 850px) {
  .site-header {
    margin-top: 15px;
  }
  .page-wrap {
    padding: 27px 28px 15px;
  }
  .home-intro {
    margin: 0 6px;
  }
  .home-intro h1 {
    font-size: 39px;
  }
  .home-album-sheet {
    padding: 28px 25px 28px 35px;
  }
  .album-feature-grid {
    gap: 30px;
    padding-inline: 4px;
  }
  .home-empty-stories {
    gap: 30px;
    padding-inline: 4px;
  }
  .empty-photo-frame {
    height: 160px;
  }
  .empty-photo-copy h3,
  .home-empty-paper h3 {
    font-size: 20px;
  }
  .empty-photo-copy p,
  .home-empty-paper p {
    font-size: 11px;
  }
  .feature-photo img,
  .feature-text-cover {
    height: 160px;
  }
  .feature-caption h3 {
    font-size: 20px;
  }
  .feature-caption p {
    font-size: 11px;
  }
}
@media (max-width: 650px) {
  .site-header {
    margin: 13px 21px 0;
  }
  .header-inner {
    padding: 13px 18px 4px;
  }
  .page-wrap {
    padding: 19px 21px 12px;
  }
  .home-intro {
    margin: 0 0 24px;
    padding: 0;
  }
  .home-intro h1 {
    font-size: 38px;
    letter-spacing: 2px;
  }
  .home-intro p {
    font-size: 11px;
  }
  .album-index-label {
    margin-top: 5px;
    padding: 8px 12px 10px;
  }
  .album-index-label b {
    font-size: 32px;
  }
  .album-index-label small {
    font-size: 6px;
    letter-spacing: 0;
  }
  .home-album-sheet {
    padding: 22px 14px 18px 28px;
    border-radius: 3px 7px 7px 3px;
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.4),
      0 3px 0 -1px #f5efe4,
      0 6px 0 -2px #ded2be,
      0 9px 0 -3px #4a3828,
      0 18px 30px rgba(30, 20, 12, 0.45);
  }
  .album-binding {
    left: 6px;
    width: 14px;
    padding: 24px 0;
  }
  .binding-screw {
    width: 8px;
    height: 8px;
  }
  .binding-screw::after {
    width: 5px;
    height: 1px;
  }
  .album-corner {
    width: 22px;
    height: 22px;
  }
  .album-corner::after {
    width: 3px;
    height: 3px;
  }
  .home-album-sheet::after {
    inset: 8px 8px 8px 26px;
  }
  .album-section-heading h2 {
    font-size: 25px;
  }
  .album-feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 18px 2px 15px;
  }
  .home-empty-stories {
    gap: 16px;
    padding: 18px 2px 15px;
  }
  .empty-photo-frame {
    height: 140px;
    padding: 7px 7px 12px;
  }
  .empty-photo-frame > span {
    font-size: 34px;
  }
  .empty-photo-frame > small {
    font-size: 6px;
    margin-top: 15px;
  }
  .empty-photo-copy {
    padding: 17px 1px 0;
  }
  .empty-photo-copy h3,
  .home-empty-paper h3 {
    font-size: 15px;
    line-height: 1.6;
  }
  .empty-photo-copy p,
  .home-empty-paper p {
    font-size: 11px;
    line-height: 1.8;
  }
  .home-empty-paper {
    padding: 18px 13px;
  }
  .home-empty-paper a {
    font-size: 11px;
  }
  .home-empty-project {
    gap: 14px;
    padding: 24px 0;
  }
  .home-empty-project strong {
    font-size: 20px;
  }
  .home-empty-project p {
    font-size: 12px;
  }
  .project-placeholder-meta {
    font-size: 10px;
  }
  .feature-photo {
    padding: 7px 7px 12px;
  }
  .feature-photo img,
  .feature-text-cover {
    height: 140px;
  }
  .feature-photo > span:last-child {
    font-size: 6px;
    margin-top: 9px;
    margin-bottom: -7px;
  }
  .feature-caption {
    padding: 17px 1px 0;
  }
  .feature-caption h3 {
    font-size: 15px;
    line-height: 1.6;
  }
  .feature-caption p {
    font-size: 11px;
    line-height: 1.8;
  }
  .feature-caption .post-meta {
    font-size: 10px;
    gap: 4px;
  }
  .home-notes {
    padding: 0 13px;
  }
  .home-album-sheet > .sidebar .sidebar-block {
    padding: 0 14px;
  }
  .home-album-sheet > .sidebar .sidebar-block:last-child::before {
    font-size: 23px;
  }
  .site-footer {
    margin: 24px 21px 0;
  }
  .site-footer-brand {
    display: block;
  }
  .footer-edition {
    display: block;
    margin-bottom: 8px;
  }
  .site-footer nav {
    flex-wrap: wrap;
    gap: 18px 25px;
  }
  main {
    padding-top: 145px;
    min-height: calc(100vh - 145px);
  }
}
@media (max-width: 370px) {
  .home-intro {
    display: block;
    position: relative;
    min-height: 225px;
    padding-top: 88px;
  }
  .home-intro h1 {
    font-size: 33px;
    line-height: 1.45;
    letter-spacing: 0;
    white-space: nowrap;
    margin-top: 8px;
  }
  .home-intro p {
    max-width: none;
  }
  .album-index-label {
    position: absolute;
    right: 0;
    top: 0;
    margin-top: 5px;
  }
}
/* The album shell uses one full-width, fixed site navigation. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  max-width: none;
  margin: 0;
  background: #252a29;
  color: #ddd5bf;
  border-top: 0;
  border-bottom: 5px dotted #8a7e64;
  border-radius: 0;
  box-shadow: 0 6px 16px #171a193b;
}
.header-inner {
  max-width: 1210px;
  margin: auto;
  padding: 14px 28px;
  min-height: 76px;
}
.site-stage {
  position: relative;
  min-height: calc(100vh + 80px - 101px);
  padding-top: 101px;
}
.site-stage::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    118deg,
    transparent 28%,
    #0000000d 28.2%,
    #0000000d 31.5%,
    transparent 31.7%,
    transparent 54%,
    #0000000a 54.2%,
    #0000000a 58%,
    transparent 58.2%,
    transparent 78%,
    #00000008 78.2%,
    #00000008 81%,
    transparent 81.2%
  );
}
:root[data-mode="dark"] .site-stage::before {
  opacity: 0.35;
}
.site-stage > main {
  padding-top: 0;
  min-height: calc(100vh + 80px - 101px);
}
.site-stage > .category-nav {
  padding-top: 13px;
}
.site-stage > .announcement {
  margin-top: 0;
}
.site-footer {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}
@media (max-width: 650px) {
  .site-header {
    border-bottom-width: 4px;
  }
  .header-inner {
    padding: 13px 18px 4px;
    min-height: 0;
  }
  .site-stage {
    padding-top: 145px;
    min-height: calc(100vh + 80px - 145px);
  }
  .site-stage > main {
    min-height: calc(100vh + 80px - 145px);
  }
  .site-stage > .category-nav {
    padding-top: 10px;
  }
}

/* Material ink scale.
   Each physical surface (coffee canvas, album mat, paper sheet, sticky note,
   photo emulsion) declares its own --ink/--muted so descendants inherit text
   that actually clears 4.5:1 on *that* material. --outside is the canvas
   colour, never a text colour. */
:root {
  --on-canvas: #e7ddd0;
  --on-canvas-muted: #cdbda9;
  --on-paper: #393732;
  --on-paper-muted: #635a4e;
  --on-paper-line: #c6bdae;
  --on-mat: #2c2217;
  --on-mat-muted: #614e3b;
  --on-mat-line: #baa890;
  --on-note: #3b3218;
  --on-note-muted: #4f4222;
  --on-frame: #2c2217;
  --on-frame-muted: #614e3b;
}
:root[data-mode="dark"] {
  --on-canvas: #e0d6c6;
  --on-canvas-muted: #c3b6a7;
  --on-paper: #ebe5d5;
  --on-paper-muted: #c2bbab;
  --on-paper-line: #62665f;
  --on-mat: #f0e8db;
  --on-mat-muted: #cfc2aa;
  --on-mat-line: #66553e;
  --on-note: #e0ddd0;
  --on-note-muted: #cfd3c9;
  --on-frame: #2c2217;
  --on-frame-muted: #423220;
}

/* Coffee canvas: site chrome that sits directly on the desk. */
.category-nav {
  color: var(--on-canvas-muted);
}
.category-nav a {
  color: var(--on-canvas);
}
.category-nav a[aria-current] {
  color: var(--gold);
  border-bottom: 1px solid currentColor;
}
.home-intro {
  color: var(--on-canvas);
}
.home-intro p,
.home-intro .eyebrow {
  color: var(--on-canvas-muted);
}
.album-index-label {
  color: var(--on-canvas);
}
.site-footer {
  color: var(--on-canvas-muted);
}
.site-footer small,
.site-footer nav,
.site-footer a {
  color: var(--on-canvas-muted);
}
.site-footer a:hover {
  color: var(--on-canvas);
}

/* ICP filing identifier: keep it visible, centered, and directly verifiable. */
.site-footer-record {
  flex: 0 0 calc(100% - 24px);
  width: calc(100% - 24px);
  padding-top: 13px;
  border-top: 1px solid #bac8b62b;
  text-align: center;
  font-size: 12px;
}
.site-footer {
  flex-wrap: wrap;
}
.site-footer-record a {
  color: var(--on-canvas-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer-record a:hover {
  color: var(--on-canvas);
}
@media (max-width: 650px) {
  .site-footer-record {
    flex: 0 0 auto;
    width: 100%;
    align-self: stretch;
  }
}

/* Album mat: the blue-grey board itself. */
.album-sheet.home-album-sheet,
.page-wrap:not(.home-page-wrap) {
  --ink: var(--on-mat);
  --muted: var(--on-mat-muted);
  --line: var(--on-mat-line);
  --accent: #2f4348;
}
:root[data-mode="dark"] .home-album-sheet,
:root[data-mode="dark"] .page-wrap:not(.home-page-wrap) {
  --accent: #ecd3a8;
}
.home-album-sheet .tag,
.page-wrap:not(.home-page-wrap) .tag {
  color: var(--on-mat);
  border-color: var(--on-mat-line);
  background: #ffffff2e;
}
:root[data-mode="dark"] .home-album-sheet .tag,
:root[data-mode="dark"] .page-wrap:not(.home-page-wrap) .tag {
  color: var(--on-mat);
  background: #ffffff14;
}
.home-album-sheet .sidebar-block,
.page-wrap:not(.home-page-wrap) .sidebar-block {
  color: var(--on-mat);
}
.home-album-sheet .sidebar-block .muted {
  color: var(--on-mat-muted);
}
.sidebar-block .muted {
  color: inherit;
}
.home-album-sheet .sidebar-project span,
.page-wrap:not(.home-page-wrap) .sidebar-project span {
  color: var(--on-mat-muted);
}
.project-next-step {
  --ink: var(--on-note);
  --muted: var(--on-note-muted);
  --accent: var(--on-note-muted);
  color: var(--on-note);
}
.project-next-step strong {
  color: var(--on-note-muted);
}
.home-update-strip,
.album-section-heading,
.album-section-heading .eyebrow,
.album-section-heading > a {
  color: var(--on-mat);
}
.empty-state {
  color: var(--on-mat-muted);
}

/* Paper sheet: re-declare paper ink so cards on the mat stay dark-on-light. */
.album-sheet,
.home-notes,
.home-projects,
.home-empty-paper,
.reading-sheet {
  --ink: var(--on-paper);
  --muted: var(--on-paper-muted);
  --line: var(--on-paper-line);
  color: var(--ink);
}
:root[data-mode="dark"] .album-sheet,
:root[data-mode="dark"] .home-notes,
:root[data-mode="dark"] .home-projects,
:root[data-mode="dark"] .home-empty-paper,
:root[data-mode="dark"] .reading-sheet {
  --accent: #d5b994;
}
.post-copy > p,
.post-meta,
.post-meta time,
.template-label,
.search-form label,
.tag-filter > a,
.tag-filter small,
.page-heading p,
.article-summary,
.article-byline,
.project-row p,
.project-facts > span,
.project-actions small,
.update-row time,
.release-meta,
.help-text {
  color: var(--muted);
}
.post-copy h2,
.section-heading h2,
.page-heading h1,
.article-header h1 {
  color: var(--ink);
}
.post-meta .template-label {
  border-color: var(--line);
}
.prose {
  color: var(--ink);
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
}

/* Sticky note */
.profile-note {
  --ink: var(--on-note);
  --muted: var(--on-note-muted);
  color: var(--ink);
}
.profile-note p,
.profile-note h2,
.profile-note > a {
  color: var(--ink);
}
.profile-note > a {
  color: var(--on-note-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Photo emulsion + printed captions */
.feature-photo,
.empty-photo-frame,
.post-photo,
.article-cover {
  color: var(--on-frame);
}
.feature-photo > span:last-child,
.empty-photo-frame > small,
.photo-frame-no {
  color: var(--on-frame-muted);
}
.empty-photo-frame > span {
  color: var(--on-frame-muted);
}
.feature-caption {
  color: var(--on-mat);
}
.feature-caption h3 {
  color: var(--on-mat);
}
.feature-caption p,
.feature-caption .post-meta,
.feature-caption time {
  color: var(--on-mat-muted);
}
.feature-caption .tag {
  color: var(--on-mat);
  border-color: var(--on-mat-line);
  background: #ffffff2e;
}
.home-empty-stories > p,
.home-empty-stories .post-meta,
.home-empty-stories time {
  color: var(--on-mat-muted);
}
:root[data-mode="dark"] .feature-caption .tag,
:root[data-mode="dark"] .home-album-sheet .tag,
:root[data-mode="dark"] .page-wrap:not(.home-page-wrap) .tag {
  background: transparent;
}
.home-empty-paper p,
.home-empty-project p,
.project-placeholder-meta {
  color: var(--on-paper-muted);
}
.home-empty-photo,
.album-feature {
  color: var(--on-mat);
}
.empty-photo-copy h3 {
  color: var(--on-mat);
}
.home-empty-paper h3 {
  color: var(--on-paper);
}
.empty-photo-copy p {
  color: var(--on-mat-muted);
}
.muted {
  color: var(--muted);
}
.home-empty-paper a {
  color: var(--accent);
}
.home-album-sheet .empty-state,
.home-album-sheet > .empty-state {
  color: var(--on-mat-muted);
}

@media print {
  .site-header,
  .category-nav,
  .sidebar,
  .site-footer,
  .article-toc,
  .copy-code,
  .floating-appearance-toggle,
  #appearance-toggle {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .site-stage {
    padding-top: 0;
    min-height: 0;
  }
  .reading-wrap,
  .reading-sheet,
  .page-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: white;
  }
  .prose {
    color: black;
  }
  .reading-layout {
    display: block;
  }
}

/* Prototype composition grammar: scattered prints on the mat, sticky note,
   postage stamp, mono micro-label lines, film-strip filter bar. */
.memories {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 34px;
  align-items: flex-start;
  padding: 34px 18px 26px;
  position: relative;
}
.memory-photo {
  position: relative;
  width: 28%;
  min-width: 188px;
  text-align: start;
  background: #fbf8f1;
  border: 1px solid rgba(195, 180, 155, 0.6);
  border-radius: 2px;
  padding: 11px 11px 15px;
  box-shadow:
    2px 4px 6px rgba(55, 38, 22, 0.14),
    9px 14px 20px rgba(55, 38, 22, 0.12);
  transform-origin: center;
  color: var(--on-frame);
  isolation: isolate;
  transition:
    transform 0.22s,
    box-shadow 0.22s;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
:root[data-mode="dark"] .memory-photo {
  background: #ded5c4;
  border-color: rgba(140, 115, 80, 0.5);
  color: #2c2217;
}
.memory-photo:nth-child(2n) {
  margin-top: 16px;
}
.memory-photo:nth-child(3n) {
  margin-top: 7px;
}
.memory-photo:hover,
.memory-photo:focus-within {
  z-index: 10;
  box-shadow:
    2px 8px 10px rgba(55, 38, 22, 0.2),
    15px 25px 32px rgba(55, 38, 22, 0.25);
  transform: rotate(0) translateY(-7px);
}
.photo-1 {
  transform: rotate(-7deg);
}
.photo-2 {
  transform: rotate(5deg);
}
.photo-3 {
  transform: rotate(8deg);
}
.photo-4 {
  transform: rotate(4deg);
}
.photo-5 {
  transform: rotate(-8deg);
}
.photo-print {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  background: #241c16;
  border-radius: 2px;
  flex-shrink: 0;
}
.photo-print > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.6) sepia(0.14) contrast(0.95);
  display: block;
}
:root[data-mode="dark"] .photo-print > img {
  filter: saturate(0.5) sepia(0.12) brightness(0.78);
}
/* Procedural Default Cover (Typographic Darkroom Print Plate) */
.default-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  background: #241c16 !important;
  color: #f5eedc;
  text-decoration: none;
  overflow: hidden;
  box-sizing: border-box;
  padding: 10px 10px 8px;
  box-shadow:
    inset 0 0 0 1px #d6c8af2f,
    inset 0 0 0 3px #1a130e;
  background-image:
    radial-gradient(circle at 10px 10px, #ffffff08 1px, transparent 1px),
    linear-gradient(145deg, #382b22 0%, #221a14 100%);
  background-size:
    16px 16px,
    100% 100%;
}
.cover-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.cover-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 8px / 1.4 var(--mono);
  letter-spacing: 1.5px;
  color: #dfd5c2;
  text-transform: uppercase;
}
.cover-kicker {
  color: #dec89c;
}
.cover-badge {
  font-size: 7px;
  padding: 1px 5px;
  border: 1px solid #c9bca444;
  border-radius: 2px;
  letter-spacing: 1px;
}
.cover-body {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
  margin: 4px 0;
  overflow: hidden;
}
.cover-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  color: #faf6eb;
  text-shadow: 0 1px 2px #0009;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 2.8em;
}
.cover-title.title-short {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0.5px;
}
.cover-title.title-medium {
  font-size: 13.5px;
  line-height: 1.38;
  letter-spacing: 0.2px;
}
.cover-title.title-long {
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: 0;
}
.cover-meta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: #dfd5c2;
  border-top: 1px dashed #ffffff1f;
  padding-top: 4px;
}
.cover-tag {
  font-size: 7px;
  letter-spacing: 1.2px;
  color: #e4d7be;
}
@media (max-width: 650px) {
  .default-cover {
    padding: 8px 8px 6px;
  }
  .cover-title.title-short {
    font-size: 15px;
  }
  .cover-title.title-medium {
    font-size: 12px;
  }
  .cover-title.title-long {
    font-size: 10.5px;
  }
  .cover-tag {
    display: none;
  }
  .reader-cover-plate {
    height: 280px;
    padding: 16px 14px;
  }
  .reader-cover-title.title-short {
    font-size: 24px;
  }
  .reader-cover-title.title-medium {
    font-size: 18px;
  }
  .reader-cover-title.title-long {
    font-size: 14px;
  }
}
.reader-default-cover {
  background: #f1ecdf;
  padding: 18px 18px 28px;
  position: relative;
  box-shadow: 5px 10px 35px #13191b44;
  transform: rotate(-5deg);
  margin-top: 26px;
  color: #393831;
}
:root[data-mode="dark"] .reader-default-cover {
  background: #bdb7a9;
}
.reader-cover-plate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 380px;
  box-sizing: border-box;
  padding: 24px 22px 18px;
  background: #1e282b;
  color: #faf6eb;
  border: 1px solid #dec89c44;
  box-shadow: inset 0 0 0 4px #151d1f;
  background-image:
    radial-gradient(circle at 14px 14px, #ffffff08 1px, transparent 1px),
    linear-gradient(160deg, #28373a 0%, #172022 100%);
  background-size:
    20px 20px,
    100% 100%;
}
.reader-cover-top {
  display: flex;
  justify-content: space-between;
  font: 9px var(--mono);
  letter-spacing: 2px;
  color: #d1c3a6;
}
.reader-cover-body {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 15px 0;
  overflow: hidden;
}
.reader-cover-title {
  font-family: var(--serif);
  font-weight: 500;
  color: #faf6eb;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.reader-cover-title.title-short {
  font-size: 32px;
  line-height: 1.35;
  -webkit-line-clamp: 3;
}
.reader-cover-title.title-medium {
  font-size: 24px;
  line-height: 1.4;
  -webkit-line-clamp: 4;
}
.reader-cover-title.title-long {
  font-size: 18px;
  line-height: 1.4;
  -webkit-line-clamp: 5;
}
.reader-cover-bottom {
  display: flex;
  justify-content: space-between;
  font: 9px var(--mono);
  letter-spacing: 1.5px;
  color: #dfd5c2;
  border-top: 1px dashed #ffffff24;
  padding-top: 10px;
}
.post-photo.default-photo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #232d30;
  color: #faf4e6;
  text-decoration: none;
  padding: 8px 8px 12px;
  height: 104px;
  box-sizing: border-box;
  box-shadow:
    inset 0 0 0 1px #dfd1b833,
    2px 4px 6px #23342820;
}
.mini-cover-badge {
  font: 7px var(--mono);
  letter-spacing: 1px;
  color: #dfc89d;
  text-transform: uppercase;
}
.mini-cover-title {
  font-family: var(--serif);
  font-weight: 500;
  color: #faf6eb;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  line-height: 1.35;
  margin: auto 0;
}
.mini-cover-title.mini-title-short {
  font-size: 13px;
  -webkit-line-clamp: 2;
}
.mini-cover-title.mini-title-long {
  font-size: 10.5px;
  -webkit-line-clamp: 3;
}
.mini-cover-foot {
  font: 6px var(--mono);
  color: #d8cebc;
  letter-spacing: 0.5px;
}
.photo-tape {
  width: 78px;
  height: 25px;
  background: #d9cba078;
  position: absolute;
  top: -13px;
  left: calc(50% - 39px);
  transform: rotate(-5deg);
  z-index: 3;
  box-shadow: 0 1px 1px #76633115;
  clip-path: polygon(
    0 4%,
    100% 0,
    97% 18%,
    100% 32%,
    98% 48%,
    100% 68%,
    98% 84%,
    100% 100%,
    0 95%,
    2% 72%,
    0 52%,
    3% 33%
  );
  background-image: repeating-linear-gradient(
    90deg,
    #94815912 0,
    #94815912 1px,
    transparent 1px,
    transparent 4px
  );
}
.photo-3 .photo-tape {
  left: auto;
  right: 6px;
  top: -10px;
  transform: rotate(15deg);
}
.photo-5 .photo-tape {
  left: auto;
  right: 8px;
  top: -10px;
  transform: rotate(12deg);
}
.photo-4 .photo-tape {
  left: 26px;
  transform: rotate(9deg);
}
.photo-frame-no {
  position: absolute;
  bottom: 7px;
  left: 7px;
  color: #fff8e0;
  background: #1b1a15cc;
  padding: 1px 5px;
  border-radius: 2px;
  font: 9px var(--mono);
  letter-spacing: 1px;
  z-index: 2;
}
.photo-caption {
  display: block;
  margin: 11px 2px 0;
}
.photo-caption strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 500 16px / 1.4 var(--serif);
  letter-spacing: 0.3px;
  color: var(--on-frame);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.photo-caption:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.photo-caption small {
  display: block;
  font: 8.5px var(--mono);
  letter-spacing: 0.6px;
  color: var(--on-frame-muted);
  margin-top: 4px;
}
.photo-backline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--on-frame-muted);
  margin: 6px 2px 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.photo-tags {
  gap: 5px;
  margin: 9px 3px 0;
}
.photo-tags .tag,
.memory-photo .tag {
  font-size: 10px;
  padding: 1px 6px;
  color: var(--on-frame-muted);
  border-color: #00000029;
  background: #0000000f;
}
:root[data-mode="dark"] .photo-tags .tag,
:root[data-mode="dark"] .memory-photo .tag,
:root[data-mode="dark"] .page-wrap:not(.home-page-wrap) .memory-photo .tag,
:root[data-mode="dark"] .page-wrap:not(.home-page-wrap) .photo-tags .tag {
  color: #33302a;
  border-color: #2b2a2255;
  background: #0000000f;
}
.album-topline,
.album-bottomline {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-end;
  color: var(--on-mat-muted);
  font: 8px var(--mono);
  letter-spacing: 1.5px;
  position: relative;
  z-index: 2;
}
.album-topline > span:first-child {
  border-bottom: 1px solid currentColor;
  padding-bottom: 7px;
}
.album-bottomline {
  border-top: 1px solid #5871724d;
  padding-top: 14px;
  margin-top: 6px;
}
.album-margin {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.album-note {
  position: relative;
  width: 190px;
  padding: 30px 19px 20px;
  background: #e5ce96;
  color: var(--on-note);
  transform: rotate(6deg);
  box-shadow: 4px 6px 9px #2739352b;
  font: 14px / 2 var(--serif);
  z-index: 2;
}
:root[data-mode="dark"] .album-note {
  background: #b8a176;
  color: #241f16;
}
.album-note small {
  font: 9px var(--serif);
  display: block;
  margin-top: 14px;
  text-align: right;
}
.note-pin {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  top: 9px;
  left: 48%;
  background: radial-gradient(circle at 35% 30%, #f7e0a2, #99732b 70%);
  box-shadow: 1px 2px 3px rgba(50, 35, 18, 0.4);
}
.album-postage {
  width: 89px;
  height: 104px;
  border: 1px dashed rgba(120, 95, 65, 0.45);
  outline: 3px solid rgba(195, 175, 145, 0.4);
  outline-offset: 2px;
  color: var(--on-mat-muted);
  transform: rotate(-13deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.album-postage > span {
  font: 17px / 1.3 var(--serif);
  letter-spacing: 1px;
  color: var(--on-mat);
}
.album-postage > small {
  font: 7px var(--mono);
  letter-spacing: 0.5px;
}

/* Film-strip filter bar (prototype .film-navigation). */
.film-navigation {
  max-width: 1148px;
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 11px 24px;
  background: #282a29;
  color: #cec4ae;
  border-top: 8px dotted #766d5e;
  border-bottom: 8px dotted #766d5e;
  box-shadow: 0 4px 12px #00000038;
  min-height: 62px;
}
.film-label {
  font: 8px var(--mono);
  letter-spacing: 2px;
  color: #cfb17b;
  flex-shrink: 0;
}
.film-navigation nav {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  overflow: visible;
}
.film-navigation nav a {
  font-size: 12px;
  color: #cec4ae;
  padding: 7px 12px;
  min-height: 36px;
  position: relative;
}
.film-navigation nav a[aria-current] {
  color: #e9c582;
  border: 1px solid #b19a694f;
}
.film-navigation nav a[aria-current]::after {
  content: "";
  width: 3px;
  height: 3px;
  background: #e9c582;
  position: absolute;
  bottom: 3px;
  left: calc(50% - 1px);
  border-radius: 50%;
}
.film-navigation nav a:hover {
  background: #ffffff0a;
}
.album-about {
  margin-left: auto;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  color: #cec4ae;
}
.album-about:hover {
  color: #e9c582;
}
@media (max-width: 850px) {
  .memories {
    gap: 30px 20px;
    padding: 26px 8px 20px;
  }
  .memory-photo {
    width: 41%;
    min-width: 0;
  }
  .photo-print {
    height: 158px;
  }
}
@media (max-width: 650px) {
  .film-navigation {
    gap: 10px 16px;
    padding: 10px 14px;
    margin-inline: 21px;
  }
  .film-navigation nav {
    width: 100%;
    order: 3;
    gap: 4px;
  }
  .film-navigation nav a {
    padding: 6px 10px;
    font-size: 11px;
  }
  .album-about {
    margin-left: auto;
    font-size: 10px;
  }
  .memories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 32px 15px;
    padding: 20px 2px 14px;
  }
  .memory-photo {
    width: auto;
    padding: 7px 7px 11px;
  }
  .photo-print {
    height: 138px;
  }
  .photo-1 {
    grid-column: 1 / -1;
    max-width: 78%;
    justify-self: center;
    transform: rotate(-6deg);
  }
  .photo-1 .photo-print {
    height: 178px;
  }
  .photo-caption {
    margin: 11px 1px 0;
  }
  .photo-caption strong {
    font-size: 14px;
    line-height: 1.6;
  }
  .photo-caption small,
  .photo-backline {
    font-size: 10px;
  }
  .photo-frame-no {
    bottom: 6px;
    left: 6px;
    font-size: 7px;
  }
  .photo-tape,
  .photo-3 .photo-tape,
  .photo-5 .photo-tape {
    width: 52px;
    height: 21px;
    left: calc(50% - 26px);
    right: auto;
    top: -11px;
    transform: rotate(-3deg);
  }
  .album-note {
    width: 84%;
    justify-self: center;
    transform: rotate(3deg);
    font-size: 13px;
    padding: 26px 16px 17px;
  }
  .album-postage {
    display: none;
  }
  .album-topline,
  .album-bottomline {
    font-size: 6px;
    letter-spacing: 0.5px;
    line-height: 1.7;
  }
  .album-topline > span:last-child,
  .album-bottomline > span:last-child {
    max-width: 112px;
    text-align: right;
  }
}
@media (max-width: 370px) {
  .memories {
    column-gap: 11px;
  }
  .photo-1 {
    max-width: 88%;
  }
  .photo-print {
    height: 118px;
  }
  .photo-1 .photo-print {
    height: 164px;
  }
  .photo-caption strong {
    font-size: 13px;
  }
}

/* Reader: prototype .memory-open — a print beside a letter. */
.reader-return {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--on-canvas-muted);
  font: 9px var(--mono);
  letter-spacing: 1.4px;
  margin-bottom: 26px;
  position: relative;
  z-index: 2;
}
.reader-return a {
  color: var(--on-canvas);
  font: 11px var(--sans);
  letter-spacing: 0;
}
.reader-return a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.memory-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  position: relative;
  z-index: 1;
}
.memory-open:not(.letter-only) {
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 44px;
  max-width: 1120px;
}
.reader-photo {
  position: relative;
  background: #f1ecdf;
  padding: 16px 16px 22px;
  box-shadow:
    5px 10px 35px rgba(19, 25, 27, 0.44),
    2px 3px 6px rgba(32, 49, 51, 0.25);
  transform: rotate(-4deg);
  margin: 24px 12px 0 4px;
  color: var(--on-frame);
  isolation: isolate;
  border-radius: 2px;
  box-sizing: border-box;
}
:root[data-mode="dark"] .reader-photo {
  background: #bdb7a9;
}
/* Iconic Metal Paperclip (原型经典复古金属回形针) */
.reader-clip {
  position: absolute;
  left: 36px;
  top: -24px;
  height: 54px;
  width: 20px;
  border: 3px solid #c1c6bd;
  border-radius: 11px;
  transform: rotate(-10deg);
  z-index: 3;
  box-shadow: 1px 1px 2px rgba(40, 54, 57, 0.45);
  pointer-events: none;
}
.reader-clip::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  height: 35px;
  width: 8px;
  border: 2px solid #b4bcb5;
  border-radius: 6px;
}
.reader-photo > img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.65) sepia(0.1);
  display: block;
  border-radius: 2px;
}
.empty-reader-print {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  background: #253335;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.25);
}
.empty-reader-print .project-photo-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.empty-reader-print .project-photo-label span {
  font: 600 52px / 1 var(--serif);
  color: #faebd0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.empty-reader-print .project-photo-label small {
  font: 700 10px var(--mono);
  letter-spacing: 1.5px;
  color: #d1b87a;
  text-transform: uppercase;
}
:root[data-mode="dark"] .reader-photo > img {
  filter: saturate(0.5) brightness(0.75);
}
.reader-photo .photo-frame-no {
  bottom: auto;
  top: 104px;
}
.reader-photo-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 18px 4px 0;
}
.reader-photo-caption strong {
  font: 500 20px / 1.4 var(--serif);
  color: var(--on-frame);
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.reader-photo-caption small {
  font: 9px var(--mono);
  letter-spacing: 0.6px;
  color: var(--on-frame-muted);
  flex-shrink: 0;
}
.photo-location {
  display: block;
  font: 11px var(--serif);
  color: var(--on-frame-muted);
  margin: 10px 4px 0;
  letter-spacing: 0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
}
.letter-tape {
  position: absolute;
  width: 116px;
  height: 27px;
  background: #c8ba9977;
  transform: rotate(-4deg);
  z-index: 3;
  background-image: repeating-linear-gradient(
    90deg,
    #94815912 0,
    #94815912 1px,
    transparent 1px,
    transparent 4px
  );
}
.reader-photo > .letter-tape {
  left: calc(50% - 58px);
  top: -13px;
}
.letter-tape-top {
  left: calc(50% - 58px);
  top: -13px;
}
.memory-letter {
  background-image: linear-gradient(transparent 31px, #8b806308 32px);
  background-size: 100% 32px;
  padding: 38px 40px 30px;
  transform: rotate(0.5deg);
  box-shadow:
    2px 4px 2px #00000021,
    8px 12px 25px #141b1940;
}
.memory-letter.template-photo,
.memory-letter.template-journal {
  padding-top: 44px;
}
.memory-letter .prose {
  font-size: 17px;
  line-height: 2;
}
.memory-letter .article-header h1 {
  font: 500 33px / 1.65 var(--serif);
}
.memory-letter-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: end;
  border-top: 0;
  margin-top: 40px;
  padding-top: 12px;
}
.memory-letter-end > span {
  font: italic 25px / 1.5 var(--serif);
  color: var(--accent);
}
.memory-letter-end small {
  font-size: 9px;
  font-family: var(--mono);
  letter-spacing: 0.6px;
  color: var(--on-paper-muted);
  margin-top: 8px;
}
.memory-browse {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  color: var(--on-canvas);
  font-size: 12px;
  margin-top: 28px;
  padding: 14px 4px 0;
  border-top: 1px solid rgba(231, 221, 208, 0.25);
  position: relative;
  z-index: 2;
}
.memory-browse a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  max-width: 46%;
  color: var(--on-canvas);
}
.memory-browse a:hover {
  color: var(--gold);
}
.memory-browse a span {
  font-family: var(--serif);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.memory-archive {
  font: 10px var(--mono);
  letter-spacing: 0.8px;
  border-bottom: 1px dotted currentColor;
  padding-bottom: 4px;
}
/* The archive keeps the paper list; the reader no longer needs a wide grid. */
.letter-only .memory-letter {
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 850px) {
  .memory-open:not(.letter-only) {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
  }
  .reader-photo {
    width: 88%;
    justify-self: center;
    margin: 8px 0 0;
  }
  .memory-letter {
    padding: 34px 28px 26px;
    transform: rotate(0);
  }
}
@media (max-width: 650px) {
  .reader-return {
    font-size: 7px;
    letter-spacing: 0.6px;
    margin-bottom: 20px;
  }
  .reader-photo {
    width: 94%;
    padding: 13px 13px 21px;
    transform: rotate(-3deg);
  }
  .reader-photo .photo-frame-no {
    top: 84px;
    left: 8px;
    font-size: 7px;
  }
  .reader-photo-caption {
    display: block;
    margin: 16px 4px 0;
  }
  .reader-photo-caption strong {
    font-size: 18px;
  }
  .reader-photo-caption small {
    display: block;
    margin-top: 6px;
  }
  .memory-letter {
    padding: 28px 20px 24px;
    background-size: 100% 28px;
  }
  .memory-letter .article-header h1 {
    font-size: 27px;
  }
  .memory-letter .prose {
    font-size: 16px;
    line-height: 1.95;
  }
  .memory-letter-end > span {
    font-size: 21px;
  }
  .memory-browse {
    gap: 12px;
    font-size: 10px;
  }
  .memory-browse a {
    max-width: 48%;
    gap: 6px;
  }
  .memory-browse a span {
    font-size: 13px;
  }
}

/* The archive is a filtered contact sheet inside the two-column layout. */
.blog-layout .memories {
  padding: 20px 0 4px;
  gap: 38px 24px;
}
.blog-layout .memory-photo {
  width: calc(50% - 12px);
  min-width: 0;
}
@media (max-width: 1100px) {
  .blog-layout .memory-photo {
    width: calc(50% - 10px);
  }
}
@media (max-width: 850px) {
  .blog-layout .memories {
    grid-template-columns: none;
    gap: 30px 18px;
  }
}
@media (max-width: 650px) {
  .blog-layout .memories {
    padding: 14px 0 0;
    gap: 30px 14px;
  }
  .blog-layout .memory-photo {
    width: auto;
  }
  .blog-layout .photo-print {
    height: 128px;
  }
}

/* ==========================================================================
   DARKROOM LIGHTBOX (前台暗房相片放大看片台)
   ========================================================================== */
@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lightbox-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  max-width: min(92vw, 1100px);
  max-height: 94vh;
  overflow: visible;
  position: fixed;
  inset: 0;
  margin: auto;
}
.lightbox-dialog::backdrop {
  background: rgba(14, 20, 19, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox-plate {
  position: relative;
  background: #fbf8f0;
  padding: 16px 16px 20px;
  border-radius: 4px;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.65),
    0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #dfd7c5;
  outline: 1px dashed rgba(160, 140, 100, 0.35);
  outline-offset: -7px;
  animation: lightboxFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-mode="dark"] .lightbox-plate {
  background: #253330;
  border-color: #3b4d49;
  outline-color: rgba(216, 183, 115, 0.25);
  color: #e4eee9;
}
.lightbox-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(0.6deg);
  width: 90px;
  height: 20px;
  background: rgba(238, 226, 196, 0.9);
  border-left: 1px dashed rgba(160, 140, 100, 0.4);
  border-right: 1px dashed rgba(160, 140, 100, 0.4);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 5;
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ede4d2;
  border: 1px solid #cfbf9f;
  color: #4a3e2a;
  font-size: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: all 0.18s ease;
}
.lightbox-close:hover {
  background: #ded1bb;
  color: #000;
  transform: rotate(90deg);
}
:root[data-mode="dark"] .lightbox-close {
  background: #354642;
  border-color: #4a5e59;
  color: #d8e5df;
}
.lightbox-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  max-height: calc(88vh - 100px);
  overflow: hidden;
  background: #182224;
  border-radius: 2px;
  border: 1px solid #ded5c2;
}
:root[data-mode="dark"] .lightbox-photo-wrap {
  background: #141c1b;
  border-color: #374744;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(88vh - 100px);
  object-fit: contain;
  display: block;
}
.lightbox-caption {
  margin-top: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lightbox-caption strong {
  font-family: var(--serif);
  font-size: 15px;
  color: #24312e;
}
:root[data-mode="dark"] .lightbox-caption strong {
  color: #f0f6f3;
}
.lightbox-caption small {
  font-family: var(--mono);
  font-size: 11px;
  color: #6d7b78;
}
:root[data-mode="dark"] .lightbox-caption small {
  color: #9cb2ab;
}

/* ==========================================================================
   HORIZONTAL TIMELINE & ARCHIVE GALLERY (横向时间线相册画卷)
   ========================================================================== */
.articles-canvas-wrap {
  max-width: 1400px;
  margin: 24px auto 45px;
  padding: 0 34px;
  position: relative;
}
.timeline-page-header {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(231, 221, 208, 0.25);
  padding-bottom: 18px;
}
.timeline-page-header .eyebrow {
  font: 9.5px var(--mono);
  letter-spacing: 2px;
  color: var(--on-canvas-muted);
}
.timeline-page-header h1 {
  font: 36px / 1.3 var(--serif);
  letter-spacing: 1.5px;
  color: var(--on-canvas);
  margin: 8px 0 6px;
}
.timeline-page-header p {
  font-size: 13px;
  color: var(--on-canvas-muted);
  margin: 0;
}

/* 1. 栏目筛选栏 (Category Filter Tabs) */
.timeline-category-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 10px 16px;
  background-color: #ece5d8;
  background-image:
    radial-gradient(
      ellipse at 50% 10%,
      rgba(255, 252, 245, 0.85) 0%,
      rgba(236, 229, 216, 0.4) 60%,
      transparent 90%
    ),
    radial-gradient(circle at 14px 14px, rgba(120, 95, 65, 0.08) 1px, transparent 1px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.12) 0px,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(80, 55, 30, 0.03) 0px,
      rgba(80, 55, 30, 0.03) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size:
    100% 100%,
    28px 28px,
    100% 100%,
    100% 100%;
  border: 1px solid #baa98e;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    0 2px 6px rgba(45, 30, 18, 0.12);
}
:root[data-mode="dark"] .timeline-category-bar {
  background-color: #362e22;
  background-image:
    radial-gradient(
      ellipse at 50% 10%,
      rgba(95, 78, 55, 0.6) 0%,
      rgba(54, 46, 34, 0.35) 60%,
      transparent 90%
    ),
    radial-gradient(circle at 14px 14px, rgba(255, 235, 180, 0.06) 0.9px, transparent 0.9px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.28) 0px,
      rgba(0, 0, 0, 0.28) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size:
    100% 100%,
    28px 28px,
    100% 100%,
    100% 100%;
  border-color: #544327;
  box-shadow:
    inset 0 1px 1px rgba(255, 235, 180, 0.08),
    0 3px 10px rgba(0, 0, 0, 0.4);
}
.timeline-category-bar .filter-label {
  font: 700 9px var(--mono);
  letter-spacing: 1.5px;
  color: #614e3b;
  white-space: nowrap;
}
:root[data-mode="dark"] .timeline-category-bar .filter-label {
  color: #cfc2aa;
}
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: #fbf8f1;
  border: 1px solid #baa98e;
  border-radius: 4px;
  color: #2c2217;
  font: 12px var(--sans);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(50, 35, 20, 0.08);
  transition: all 0.18s ease;
}
.category-tab:hover {
  border-color: #8c734b;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(50, 35, 20, 0.15);
  color: #000;
}
.category-tab .tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b5a48d;
}
.category-tab .tab-count {
  font: 10px var(--mono);
  color: #4e3d2a;
  background: #eee6d6;
  padding: 1px 5px;
  border-radius: 3px;
}
.category-tab.active,
.category-tab[aria-current="page"] {
  background-color: #4a3828;
  background-image: linear-gradient(160deg, #5c4734 0%, #3d2d1e 100%);
  color: #f7eedd;
  border-color: #2e2014;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.2),
    0 3px 6px rgba(45, 30, 18, 0.25);
}
.category-tab.active .tab-dot,
.category-tab[aria-current="page"] .tab-dot {
  background: #dfb86c;
  box-shadow: 0 0 4px #e5c37b;
}
.category-tab.active .tab-count,
.category-tab[aria-current="page"] .tab-count {
  background-color: #251a10;
  color: #eed69f;
}
:root[data-mode="dark"] .category-tab {
  background-color: #272016;
  border-color: #4a3a27;
  color: #f0e8db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
:root[data-mode="dark"] .category-tab:hover {
  border-color: #baa98e;
  color: #fff;
}
:root[data-mode="dark"] .category-tab .tab-dot {
  background: #8e7b64;
}
:root[data-mode="dark"] .category-tab .tab-count {
  background-color: #1c160e;
  color: #d6c8b4;
}
:root[data-mode="dark"] .category-tab.active,
:root[data-mode="dark"] .category-tab[aria-current="page"] {
  background-color: #4a3928;
  background-image: linear-gradient(160deg, #5e4732 0%, #3e2e1e 100%);
  border-color: #785c3b;
  color: #fff8eb;
}
:root[data-mode="dark"] .category-tab.active .tab-count,
:root[data-mode="dark"] .category-tab[aria-current="page"] .tab-count {
  background-color: #1c140c;
  color: #eed69f;
}

/* 2. 文章搜索栏 (Search Bar) */
.timeline-search-bar {
  margin-bottom: 26px;
}
.timeline-search-form {
  max-width: 640px;
  width: 100%;
}
.timeline-search-input-wrap {
  display: flex;
  align-items: center;
  background: #fbf8f1;
  border: 1px solid #baa98e;
  border-radius: 4px;
  padding: 3px 4px 3px 12px;
  box-shadow:
    inset 0 1px 2px rgba(60, 45, 25, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.timeline-search-input-wrap:focus-within {
  border-color: #8c734b;
  box-shadow: 0 0 0 2px rgba(186, 150, 95, 0.3);
}
:root[data-mode="dark"] .timeline-search-input-wrap {
  background: #2b2318;
  border-color: #544327;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
:root[data-mode="dark"] .timeline-search-input-wrap:focus-within {
  border-color: #c9a463;
  box-shadow: 0 0 0 2px rgba(217, 189, 134, 0.25);
}
.search-prefix-icon {
  font-size: 16px;
  color: #614e3b;
  margin-right: 8px;
}
:root[data-mode="dark"] .search-prefix-icon {
  color: #cfc2aa;
}
.timeline-search-input-wrap input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: 13.5px var(--sans);
  color: #2c2217;
  padding: 6px 0;
  outline: none;
}
:root[data-mode="dark"] .timeline-search-input-wrap input[type="search"] {
  color: #f0e8db;
}
.timeline-search-input-wrap input[type="search"]::placeholder {
  color: #8a7c6a;
  font-size: 12.5px;
}
:root[data-mode="dark"]
  .timeline-search-input-wrap
  input[type="search"]::placeholder {
  color: #9c8e7a;
}
.timeline-search-submit {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 6px 16px;
  background: #5c4530;
  border: 1px solid #4a3826;
  color: #fdfbf7;
  font: 12px var(--mono);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(45, 30, 18, 0.18);
}
.timeline-search-submit:hover {
  background: #6e533b;
  border-color: #3b2c1d;
  color: #fff;
}
:root[data-mode="dark"] .timeline-search-submit {
  background: #544327;
  border-color: #6e5835;
  color: #fdfbf7;
}
:root[data-mode="dark"] .timeline-search-submit:hover {
  background: #685330;
  border-color: #8c7145;
}
.timeline-search-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 5px 12px;
  background: #f5eee3;
  border: 1px dashed #baa98e;
  border-radius: 3px;
  font: 12px var(--mono);
  color: #614e3b;
}
:root[data-mode="dark"] .timeline-search-status {
  background: #2c2419;
  border-color: #544327;
  color: #cfc2aa;
}
.timeline-clear-search {
  color: #8c4228;
  text-decoration: none;
  font-weight: 500;
}
.timeline-clear-search:hover {
  text-decoration: underline;
}
:root[data-mode="dark"] .timeline-clear-search {
  color: #e5876e;
}

/* 3. 横向时间线视口与轨道 (Horizontal Timeline Track & Viewport) */
.timeline-scroll-shell {
  position: relative;
  margin: 10px 0 16px;
}

/* 解锁状态提示徽标 (Lock / Unlock Hint Badge) */
.timeline-lock-hint {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(245, 238, 227, 0.94);
  backdrop-filter: blur(6px);
  border: 1px solid #baa98e;
  border-radius: 20px;
  box-shadow:
    0 3px 10px rgba(45, 30, 18, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font: 600 11.5px / 1 var(--mono);
  color: #4a3a28;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.2s ease, color 0.2s ease;
}

:root[data-mode="dark"] .timeline-lock-hint {
  background: rgba(44, 37, 27, 0.94);
  border-color: #544327;
  color: #ded5c4;
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 235, 180, 0.08);
}

.timeline-lock-hint .lock-icon {
  color: #4a3828;
  font-size: 11px;
}
:root[data-mode="dark"] .timeline-lock-hint .lock-icon {
  color: #dfb86c;
}

/* 鼠标移入时间线框内时显示提示徽标 (Show hint when mouse enters) */
.timeline-scroll-shell:hover .timeline-lock-hint {
  opacity: 1;
  transform: translateY(0);
}

/* 解锁后的徽标样式与淡出 (Unlocked state badge & smooth fade) */
.timeline-scroll-shell.is-unlocked .timeline-lock-hint {
  background: rgba(92, 69, 48, 0.92);
  color: #fdfbf7;
  border-color: #4a3826;
  box-shadow: 0 3px 10px rgba(45, 30, 18, 0.25);
}
:root[data-mode="dark"] .timeline-scroll-shell.is-unlocked .timeline-lock-hint {
  background: rgba(84, 67, 39, 0.92);
  color: #fdfbf7;
  border-color: #6e5835;
}
.timeline-scroll-shell.is-unlocked .timeline-lock-hint .lock-icon {
  color: #eed69f;
}

.timeline-scroll-shell.hint-faded .timeline-lock-hint {
  opacity: 0 !important;
  transform: translateY(-4px) !important;
}

.timeline-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox: 彻底删除下方横向滚动条/进度条 */
  -ms-overflow-style: none; /* IE 10+ */
  padding: 30px 10px 40px;
  background: rgba(18, 14, 10, 0.22);
  border: 1px solid rgba(231, 221, 208, 0.2);
  border-radius: 6px;
  box-shadow:
    inset 0 3px 12px rgba(0, 0, 0, 0.28),
    0 4px 16px rgba(0, 0, 0, 0.18);
}
:root[data-mode="dark"] .timeline-viewport {
  background-color: #362e22;
  background-image:
    radial-gradient(
      ellipse at 50% 15%,
      rgba(95, 78, 55, 0.55) 0%,
      rgba(54, 46, 34, 0.35) 60%,
      transparent 90%
    ),
    radial-gradient(circle at 14px 14px, rgba(255, 235, 180, 0.06) 0.9px, transparent 0.9px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.28) 0px,
      rgba(0, 0, 0, 0.28) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size:
    100% 100%,
    28px 28px,
    100% 100%,
    100% 100%;
  border-color: #544327;
  box-shadow:
    inset 0 1px 1px rgba(255, 235, 180, 0.08),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4),
    0 1px 0 #423628,
    0 2px 0 #2b2216,
    0 3px 0 #18120b,
    0 12px 32px rgba(0, 0, 0, 0.5);
}

/* 彻底删除时间线下方的滚动条/进度条 (Delete timeline bottom scrollbar/progress bar) */
.timeline-viewport::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* 锁定与解锁状态下的鼠标手势 (Cursors) */
.timeline-scroll-shell.is-locked .timeline-viewport {
  cursor: pointer;
}
.timeline-scroll-shell.is-unlocked .timeline-viewport {
  cursor: grab;
}
.timeline-viewport.is-dragging {
  cursor: grabbing !important;
  user-select: none;
}

.timeline-track {
  position: relative;
  min-width: max-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 24px;
}

/* 贯穿中央的时间轴轨道 (Timeline Axis Rail) */
.timeline-axis-rail {
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 1;
  pointer-events: none;
}
.rail-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(
    90deg,
    #997b3d 0%,
    #caa452 30%,
    #caa452 70%,
    #997b3d 100%
  );
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.rail-label {
  font: 8px var(--mono);
  letter-spacing: 1.5px;
  color: #7b673e;
  padding: 2px 8px;
  background: #f6eedb;
  border: 1px solid #d8c7a2;
  border-radius: 2px;
}
.rail-start {
  margin-right: 12px;
}
.rail-end {
  margin-left: 12px;
}
:root[data-mode="dark"] .rail-label {
  background: #272016;
  border-color: #544327;
  color: #eed69f;
}

/* 时间线插槽排列区 (Slots Container) */
.timeline-slots-wrap {
  display: flex;
  gap: 36px;
  position: relative;
  z-index: 2;
  padding-left: 175px;
  padding-right: 90px;
}

/* 单个时间插槽 (Timeline Slot: 垂直居中轴线) */
.timeline-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  min-height: 620px;
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}

/* 卡片区域：上下各保证充足空间 */
.timeline-card-zone {
  width: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.zone-upper {
  justify-content: flex-end;
}
.zone-lower {
  justify-content: flex-start;
}

/* 垂直引线 (Timeline Stem) */
.timeline-stem {
  width: 2px;
  height: 38px;
  background: repeating-linear-gradient(
    0deg,
    #caa452 0px,
    #caa452 2px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.85;
  flex-shrink: 0;
}
.slot-above .stem-lower {
  visibility: hidden;
}
.slot-below .stem-upper {
  visibility: hidden;
}

/* 3.1 独立年月分割标牌 (Independent Compact Year & Month Timeline Dividers) */
.timeline-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  min-height: 620px;
  margin: 0 -12px;
}
.divider-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
  user-select: none;
}
/* 年份独立标牌：小巧精铸黄铜小标 */
.year-tag {
  padding: 3px 8px;
  background: #faf6ed;
  border: 1.5px solid #c49d44;
  border-radius: 3px;
  font: 700 12px / 1 var(--mono);
  letter-spacing: 1.2px;
  color: #5c430e;
}
:root[data-mode="dark"] .year-tag {
  background: #2a2217;
  border-color: #dfb86c;
  color: #f7eedd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* 月份独立标牌：素雅轻盈纸笺小签 */
.month-tag {
  padding: 2px 7px;
  background: #fdfbf7;
  border: 1px solid #d4c5a0;
  border-radius: 2px;
  font: 600 11px / 1 var(--mono);
  letter-spacing: 0.5px;
  color: #594314;
}
:root[data-mode="dark"] .month-tag {
  background: #272016;
  border-color: #6e5835;
  color: #eed69f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 3.2 中轴时间节点：经典黄铜平头铆钉与日数字标牌 (Classic Brass Rivet & Day Node) */
.timeline-node {
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
  flex-shrink: 0;
}
.node-rivet {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 32%,
    #fff3ce 0%,
    #dab462 38%,
    #8e6c27 75%,
    #5a4212 100%
  );
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(90, 66, 18, 0.65);
  margin-bottom: 2px;
  position: relative;
}
.node-rivet::after {
  content: "";
  position: absolute;
  top: 6.5px;
  left: 3px;
  right: 3px;
  height: 1.5px;
  background: rgba(60, 42, 10, 0.75);
  border-radius: 1px;
}
.node-date-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdfbf7;
  border: 1px solid #d8cfbe;
  padding: 2px 7px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.node-day {
  font: 700 13px / 1 var(--mono);
  color: #6e4e13;
  letter-spacing: 0.5px;
}
:root[data-mode="dark"] .node-date-stamp {
  background: #272016;
  border-color: #544327;
}
:root[data-mode="dark"] .node-day {
  color: #eed69f;
}

/* 4. 经典拍立得照片卡片 (Authentic Polaroid Memory Photo) */
/* 4.1 同日多文章照片堆叠组 (Photo Stack for Multiple Articles on Same Day) */
.photo-stack {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.stack-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding: 0 6px;
}
.stack-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 700 9.5px / 1 var(--mono);
  color: #5c430e;
  background: #faf6ed;
  border: 1px solid #caa452;
  padding: 2px 6px;
  border-radius: 2px;
}
:root[data-mode="dark"] .stack-tag {
  background: #272016;
  border-color: #caa452;
  color: #eed69f;
}
.stack-hint {
  font: 8.5px var(--mono);
  color: var(--on-canvas-muted);
  letter-spacing: 0.5px;
}

/* 核心叠放卡组容器 (Stack Deck: CSS Grid 叠放) */
.stack-deck {
  display: grid;
  grid-template-areas: "card";
  position: relative;
  width: 100%;
  overflow: visible;
}
.photo-stack .timeline-photo {
  grid-area: card;
  width: calc(100% - 16px) !important;
  margin: 0 auto !important;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.9, 0.35, 1),
    box-shadow 0.25s ease,
    opacity 0.25s ease;
  will-change: transform, box-shadow;
}

/* 顶层活动相片 (Active Top Card) */
.photo-stack .timeline-photo[data-stack-pos="0"],
.photo-stack .timeline-photo.is-active {
  z-index: 10;
  pointer-events: auto;
  transform: rotate(var(--card-rot, -1deg));
  opacity: 1;
}

/* 第二张露出右上角 (Second Card: Peeking Out Top-Right) */
.photo-stack .timeline-photo[data-stack-pos="1"] {
  z-index: 5;
  transform: rotate(calc(var(--card-rot, -1deg) + 7deg)) translate(24px, -18px);
  opacity: 0.96;
  box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}
.photo-stack .timeline-photo[data-stack-pos="1"]:hover {
  transform: rotate(calc(var(--card-rot, -1deg) + 9deg)) translate(28px, -22px);
  box-shadow: 6px 10px 20px rgba(0, 0, 0, 0.38);
}

/* 第三张露出左上角 (Third Card: Peeking Out Top-Left) */
.photo-stack .timeline-photo[data-stack-pos="2"] {
  z-index: 3;
  transform: rotate(calc(var(--card-rot, -1deg) - 6deg)) translate(-20px, -16px);
  opacity: 0.92;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.photo-stack .timeline-photo[data-stack-pos="2"]:hover {
  transform: rotate(calc(var(--card-rot, -1deg) - 8deg)) translate(-24px, -20px);
}

/* 第四张及以上 (Deep Stack) */
.photo-stack .timeline-photo:not([data-stack-pos="0"]):not([data-stack-pos="1"]):not([data-stack-pos="2"]) {
  z-index: 1;
  transform: rotate(calc(var(--card-rot, -1deg) + 11deg)) translate(32px, -24px);
  opacity: 0.84;
  cursor: pointer;
}

/* 背景层叠相片交互保护：未置顶前点击任何位置均触发翻卡，不触发跳转 */
.photo-stack .timeline-photo:not(.is-active) {
  cursor: pointer;
}
.photo-stack .timeline-photo:not(.is-active) a {
  pointer-events: none;
}

/* 露出一角的便签角标 (Exposed Peeking Corner Tab) */
.peeking-corner-tab {
  position: absolute;
  top: -8px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  background: #ebd8ab;
  border: 1px solid #9c7b32;
  border-radius: 3px;
  font: 700 9.5px / 1 var(--mono);
  color: #432e09;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  z-index: 25;
  pointer-events: auto;
  cursor: pointer;
  transition:
    transform 0.18s cubic-bezier(0.2, 0.9, 0.35, 1),
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.timeline-photo:hover .peeking-corner-tab,
.peeking-corner-tab:hover {
  transform: scale(1.12) rotate(-2deg);
  background: #fbf0d5;
  border-color: #634710;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
:root[data-mode="dark"] .peeking-corner-tab {
  background: #393526;
  border-color: #dfb86c;
  color: #eed69f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.timeline-photo.is-active .peeking-corner-tab,
.timeline-photo[data-stack-pos="0"] .peeking-corner-tab,
.timeline-photo:not([data-stack-pos]) .peeking-corner-tab {
  display: none !important;
}

.timeline-photo.memory-photo,
.memory-photo.post-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  border-bottom: none !important;
  position: relative;
  text-align: start;
  background: #f4f0e5;
  padding: 10px 10px 14px !important;
  box-shadow:
    2px 4px 5px rgba(32, 49, 51, 0.2),
    9px 13px 16px rgba(32, 48, 51, 0.14);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  transform-origin: center;
  min-width: 0 !important;
  width: calc(100% - 12px) !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  color: #373831;
  isolation: isolate;
  border-radius: 2px;
  transform: rotate(var(--card-rot, -1deg));
}
.timeline-photo.memory-photo:hover {
  z-index: 10;
  box-shadow:
    2px 8px 7px rgba(32, 49, 51, 0.2),
    15px 25px 30px rgba(32, 48, 51, 0.25);
  transform: rotate(0deg) scale(1.03);
}
:root[data-mode="dark"] .timeline-photo.memory-photo {
  background: #d1caba;
  color: #33302a;
}
.timeline-photo .photo-print {
  display: block;
  position: relative;
  overflow: hidden;
  background: #1e282b;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto !important;
  border-radius: 2px;
  flex-shrink: 0;
}
.timeline-photo .photo-print.default-cover {
  background: #1e282b !important;
}
.timeline-photo .photo-print > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.6) sepia(0.12) contrast(0.95);
  transition: transform 0.25s ease;
  display: block;
}
.timeline-photo:hover .photo-print > img {
  transform: scale(1.04);
}
:root[data-mode="dark"] .timeline-photo .photo-print > img {
  filter: saturate(0.5) sepia(0.1) brightness(0.82);
}
.timeline-photo .photo-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 10px 2px 0;
  text-decoration: none;
}
.timeline-photo .photo-caption strong {
  font: 15px / 1.4 var(--serif);
  letter-spacing: 0.3px;
  color: #373831;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
:root[data-mode="dark"] .timeline-photo .photo-caption strong {
  color: #2b2822;
}
.timeline-photo .photo-caption small {
  font: 8.5px var(--mono);
  color: #5c564b;
  flex-shrink: 0;
}
:root[data-mode="dark"] .timeline-photo .photo-caption small {
  color: #433f36;
}
.timeline-photo .photo-backline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  font-size: 10.5px;
  line-height: 1.5;
  color: #595347;
  margin: 5px 2px 0;
  white-space: normal;
}
:root[data-mode="dark"] .timeline-photo .photo-backline {
  color: #3b372f;
}
.timeline-photo .photo-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.timeline-photo .photo-tags .tag {
  font: 9px var(--mono) !important;
  padding: 2px 6px !important;
  color: #33302a !important;
  background: #0000000f !important;
  border: 1px solid #2b2a2255 !important;
  border-radius: 2px !important;
}
:root[data-mode="dark"] .timeline-photo .photo-tags .tag {
  color: #26241f !important;
  background: #00000018 !important;
  border-color: #2b2a2266 !important;
}
.timeline-photo.memory-photo .photo-tape {
  width: 68px;
  height: 23px;
  left: calc(50% - 34px);
  right: auto;
  top: -12px;
  transform: rotate(-3deg);
}
.timeline-photo.photo-2 .photo-tape {
  transform: rotate(4deg);
}
.timeline-photo.photo-3 .photo-tape {
  transform: rotate(-4deg);
}
.timeline-photo.photo-4 .photo-tape {
  transform: rotate(3deg);
}
.timeline-photo.photo-5 .photo-tape {
  transform: rotate(-5deg);
}

/* 5. 空状态暗房展示板 (Timeline Empty State) */
.timeline-empty-board {
  padding: 60px 20px;
  display: grid;
  place-items: center;
  text-align: center;
}
.empty-film-box {
  background: #faf6ee;
  border: 1px dashed #c2b59f;
  border-radius: 6px;
  padding: 36px 42px;
  max-width: 480px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
:root[data-mode="dark"] .empty-film-box {
  background: #2c251b;
  border-color: #544327;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.empty-film-icon {
  font-size: 32px;
  color: #8c6a28;
  margin-bottom: 12px;
  display: block;
}
:root[data-mode="dark"] .empty-film-icon {
  color: #eed69f;
}
.empty-film-box h3 {
  font: 20px var(--serif);
  color: #2b3537;
  margin: 0 0 8px;
}
:root[data-mode="dark"] .empty-film-box h3 {
  color: #f2f7f4;
}
.empty-film-box p {
  font-size: 13px;
  color: #5c564b;
  margin: 0 0 16px;
  line-height: 1.7;
}
:root[data-mode="dark"] .empty-film-box p {
  color: #b5c4c0;
}
.timeline-clear-btn {
  font: 12.5px var(--mono);
  color: #8c6a28;
  text-decoration: underline;
  text-underline-offset: 4px;
}
:root[data-mode="dark"] .timeline-clear-btn {
  color: #eed69f;
}

/* 响应式调整 (Responsive Breakpoints) */
@media (max-width: 768px) {
  .articles-canvas-wrap {
    padding: 0 16px;
    margin: 16px auto 30px;
  }
  .timeline-slot {
    width: 260px;
    min-height: 560px;
  }
  .timeline-card-zone {
    min-height: 210px;
    height: auto;
  }
}

/* ==========================================================================
   PROJECTS WORKBENCH & ACTIVITY STREAM (造物工坊项目名录与动态汇总)
   ========================================================================== */
.projects-canvas-wrap {
  max-width: 1080px;
  margin: 20px auto 60px;
  padding: 0 28px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* 1. 顶部工坊抬头与概览栏 (Header & Overview Bar) */
.projects-canvas-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(231, 221, 208, 0.25);
}
:root[data-mode="dark"] .projects-canvas-header {
  border-bottom-color: rgba(64, 82, 84, 0.4);
}
.projects-header-lead {
  margin-bottom: 18px;
}
.projects-eyebrow {
  display: block;
  font: 700 10.5px / 1.2 var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
:root[data-mode="dark"] .projects-eyebrow {
  color: #eed69f;
}
.projects-canvas-header h1 {
  font: 600 clamp(30px, 4.5vw, 44px) / 1.2 var(--serif);
  color: var(--on-canvas);
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.projects-desc {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--on-canvas-muted);
  max-width: 720px;
  margin: 0;
}
.projects-overview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  padding: 10px 18px;
  background-color: #ece5d8;
  background-image:
    radial-gradient(
      ellipse at 50% 10%,
      rgba(255, 252, 245, 0.85) 0%,
      rgba(236, 229, 216, 0.4) 60%,
      transparent 90%
    ),
    radial-gradient(circle at 14px 14px, rgba(120, 95, 65, 0.08) 1px, transparent 1px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.12) 0px,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(80, 55, 30, 0.03) 0px,
      rgba(80, 55, 30, 0.03) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size:
    100% 100%,
    28px 28px,
    100% 100%,
    100% 100%;
  border: 1px solid #baa98e;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    0 3px 8px rgba(45, 30, 18, 0.14);
}
:root[data-mode="dark"] .projects-overview-bar {
  background-color: #362e22;
  background-image:
    radial-gradient(
      ellipse at 50% 10%,
      rgba(95, 78, 55, 0.6) 0%,
      rgba(54, 46, 34, 0.35) 60%,
      transparent 90%
    ),
    radial-gradient(circle at 14px 14px, rgba(255, 235, 180, 0.06) 0.9px, transparent 0.9px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.28) 0px,
      rgba(0, 0, 0, 0.28) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size:
    100% 100%,
    28px 28px,
    100% 100%,
    100% 100%;
  border-color: #544327;
  box-shadow:
    inset 0 1px 1px rgba(255, 235, 180, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.45);
}
.projects-stats-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 13px / 1 var(--mono);
  color: #4a3a28;
}
:root[data-mode="dark"] .projects-stats-chips {
  color: #ded5c4;
}
.chip-num {
  font-weight: 700;
  color: #2c2217;
}
:root[data-mode="dark"] .chip-num {
  color: #f7eedd;
}
.chip-divider {
  opacity: 0.5;
  color: #baa98e;
}
:root[data-mode="dark"] .chip-divider {
  color: #66553e;
}
.projects-jump-link {
  font: 700 12px var(--mono);
  color: #5c4530;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}
.projects-jump-link:hover {
  color: #2c2217;
}
:root[data-mode="dark"] .projects-jump-link {
  color: #dfb86c;
}
:root[data-mode="dark"] .projects-jump-link:hover {
  color: #fff8eb;
}

/* 2. 区块通用头部 (Section Lead Rows) */
.projects-section {
  margin-bottom: 40px;
}
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.section-kicker {
  display: block;
  font: 700 9.5px / 1 var(--mono);
  letter-spacing: 1.8px;
  color: var(--on-canvas-muted);
  margin-bottom: 4px;
}
.section-title {
  font: 600 clamp(22px, 3vw, 28px) / 1.3 var(--serif);
  color: var(--on-canvas);
  margin: 0;
}
.section-hint {
  font: 12.5px var(--mono);
  color: var(--on-canvas-muted);
}

/* 3. 上部列表：左上角光源照射之下的明亮作品展板与虚影文字 (Illuminated Project Board with Cast Shadow Typography) */
.projects-board-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 核心浅泛黄米白老纸展板材质 (Pale Warm Cream Antique Paper Board - Soft Natural Linen & Subtle Aging) */
.illuminated-project-board {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  min-height: 452px;
  background-color: #ece5d8;
  background-image:
    radial-gradient(
      circle at 88% 14%,
      rgba(255, 253, 248, 0.42) 0%,
      rgba(250, 246, 236, 0.22) 28%,
      rgba(235, 228, 214, 0.08) 55%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      transparent 55%,
      rgba(180, 168, 148, 0.12) 82%,
      rgba(150, 136, 114, 0.22) 100%
    ),
    radial-gradient(
      ellipse at 22% 35%,
      rgba(225, 217, 202, 0.3) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 78% 68%,
      rgba(220, 212, 195, 0.25) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 45% 82%,
      rgba(215, 205, 188, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      rgba(60, 48, 32, 0.045) 0.5px,
      transparent 0.5px
    ),
    radial-gradient(
      rgba(255, 255, 255, 0.35) 0.5px,
      transparent 0.5px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(90, 75, 55, 0.015) 0,
      rgba(90, 75, 55, 0.015) 1px,
      transparent 1px,
      transparent 16px
    );
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    2px 3px,
    0 0;
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    5px 5px,
    7px 7px,
    100% 100%;
  border: 2px solid #baa98e;
  box-shadow:
    0 14px 36px rgba(25, 20, 14, 0.2),
    0 2px 6px rgba(25, 20, 14, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 0 20px rgba(160, 145, 120, 0.16);
  box-sizing: border-box;
}
:root[data-mode="dark"] .illuminated-project-board {
  background-color: #362e22;
  background-image:
    radial-gradient(
      circle at 88% 14%,
      rgba(235, 205, 140, 0.32) 0%,
      rgba(185, 155, 95, 0.14) 30%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      transparent 45%,
      rgba(30, 22, 12, 0.25) 75%,
      rgba(18, 12, 6, 0.42) 100%
    ),
    radial-gradient(
      ellipse at 25% 35%,
      rgba(80, 62, 32, 0.25) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 75% 70%,
      rgba(62, 46, 22, 0.28) 0%,
      transparent 55%
    ),
    radial-gradient(
      rgba(0, 0, 0, 0.22) 0.6px,
      transparent 0.6px
    ),
    radial-gradient(
      rgba(255, 240, 190, 0.1) 0.5px,
      transparent 0.5px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.035) 0,
      rgba(0, 0, 0, 0.035) 1px,
      transparent 1px,
      transparent 14px
    );
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    2px 3px,
    0 0;
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    5px 5px,
    7px 7px,
    100% 100%;
  border: 2px solid #544327;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(223, 184, 108, 0.12),
    inset 0 1px 1px rgba(255, 235, 170, 0.15),
    inset 0 0 28px rgba(18, 12, 5, 0.55);
}
      rgba(0, 0, 0, 0.04) 1px,
      transparent 1px,
      transparent 14px
    );
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    2px 3px,
    0 0;
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    5px 5px,
    7px 7px,
    100% 100%;
  border: 2px solid #5a4422;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(223, 184, 108, 0.12),
    inset 0 1px 1px rgba(255, 235, 170, 0.15),
    inset 0 0 28px rgba(18, 12, 5, 0.55);
}

/* 右上角（导航栏右下方）大灯灯具装置 (Top-Right Stage Big Lamp & Light Beam) */
.stage-lamp-fixture {
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 240px;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}
.lamp-arm {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border: 4px solid #6b501d;
  border-radius: 50%;
  box-shadow: -1px 2px 5px rgba(0, 0, 0, 0.45);
}
:root[data-mode="dark"] .lamp-arm {
  border-color: #8c6a28;
}
.lamp-shade {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 24px;
  background: linear-gradient(225deg, #c7a456 0%, #70541e 100%);
  border-radius: 12px 4px 4px 4px;
  transform: rotate(-45deg);
  box-shadow:
    -2px 3px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
}
.lamp-glow-core {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 18px 10px rgba(255, 255, 220, 0.95),
    0 0 50px 22px rgba(255, 220, 130, 0.8),
    0 0 95px 48px rgba(255, 210, 100, 0.45);
}
.lamp-light-cone {
  position: absolute;
  top: 0;
  right: 0;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle at calc(100% - 32px) 32px,
    rgba(255, 245, 210, 0.25) 0%,
    rgba(245, 225, 170, 0.12) 35%,
    transparent 70%
  );
  pointer-events: none;
}
:root[data-mode="dark"] .lamp-light-cone {
  background: radial-gradient(
    circle at calc(100% - 32px) 32px,
    rgba(255, 225, 150, 0.22) 0%,
    rgba(235, 195, 120, 0.1) 35%,
    transparent 70%
  );
}

/* 展板表面与作品名称列表 (Board Surface & Project Names List) */
.illuminated-board-surface {
  position: relative;
  z-index: 5;
  padding: 24px 32px;
}
.project-names-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.project-name-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px dashed rgba(140, 125, 105, 0.28);
}
:root[data-mode="dark"] .project-name-item {
  border-bottom: 1px dashed rgba(255, 235, 180, 0.12);
}
.project-name-item:last-child {
  border-bottom: none;
}

/* 核心作品名称阴影文字 (Cast Shadow Typography Links on Antique Yellowed Paper) */
.project-shadow-name.project-row {
  display: grid !important;
  grid-template-columns: 32px minmax(180px, auto) minmax(0, 1fr) 28px !important;
  align-items: center !important;
  gap: 16px 22px !important;
  padding: 20px 24px !important;
  border-top: none !important;
  border-radius: 4px;
  text-decoration: none !important;
  color: #1a1612 !important;
  transition:
    transform 0.24s cubic-bezier(0.18, 0.9, 0.32, 1),
    background-color 0.2s ease;
  position: relative;
  outline: none;
}
.project-shadow-name.project-row:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: translate(3px, -4px);
}
:root[data-mode="dark"] .project-shadow-name.project-row {
  color: #f2e8cf !important;
}
:root[data-mode="dark"] .project-shadow-name.project-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* 序号小标 (Project Index Stamp) */
.project-shadow-index {
  font: 700 13px / 1 var(--mono);
  color: #584a38;
  letter-spacing: 1.5px;
  flex-shrink: 0;
  text-shadow: 1px -1px 0 rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}
.project-shadow-name:hover .project-shadow-index {
  color: #2b2216;
}
:root[data-mode="dark"] .project-shadow-index {
  color: #dfb86c;
  text-shadow: 1px -1px 0 rgba(0, 0, 0, 0.8);
}
:root[data-mode="dark"] .project-shadow-name:hover .project-shadow-index {
  color: #fae4ac;
}

/* 项目单元旁边简介 (Project Summary Description beside Title) */
.project-summary-text {
  margin: 0 !important;
  padding: 0 0 0 14px !important;
  font: 13.5px / 1.6 var(--sans) !important;
  color: #383025 !important;
  letter-spacing: 0.1px;
  border-left: 2px solid rgba(130, 110, 85, 0.35);
  text-shadow: 1px -1px 0 rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.project-shadow-name:hover .project-summary-text {
  color: #18140e !important;
  border-left-color: rgba(130, 110, 85, 0.7);
}
:root[data-mode="dark"] .project-summary-text {
  color: #ebdcb9 !important;
  border-left-color: rgba(223, 184, 108, 0.35);
  text-shadow: 1px -1px 0 rgba(0, 0, 0, 0.6);
}
:root[data-mode="dark"] .project-shadow-name:hover .project-summary-text {
  color: #fff4dc !important;
  border-left-color: #dfb86c;
}

/* 项目名字大字与光照阴影计算 (Project Name Typography & Shadow Calculation)
   光源位于右上角（导航栏右下方），光照角度约为 225°，阴影自然向左下方 (-X, +Y) 投射。
   层次分为：
   1. 右上受光面反光刃边 (+1px, -1px)
   2. 接触闭塞本影 (-1px ~ -2px, +2px ~ +3px)
   3. 立体投影主体 (-3px ~ -7px, +5px ~ +12px)
   4. 近端柔和半影 (-6px ~ -13px, +10px ~ +20px)
   5. 远端漫反射发散虚影 (-12px ~ -22px, +18px ~ +32px)
*/
.project-name-text {
  font: 600 clamp(26px, 3.4vw, 36px) / 1.25 var(--serif);
  color: #1a1612 !important;
  letter-spacing: -0.3px;
  white-space: nowrap;
  transition:
    text-shadow 0.24s cubic-bezier(0.18, 0.9, 0.32, 1),
    transform 0.24s ease;
}
:root[data-mode="dark"] .project-name-text {
  color: #f2e8cf !important;
}

/* 位置 1：最接近上方光高，入射角陡，本影清晰，虚影延伸较短 */
.project-shadow-name.pos-1 .project-name-text {
  text-shadow:
    1px -1px 0 rgba(255, 255, 255, 0.9),
    -1px 2px 1px rgba(55, 45, 32, 0.42),
    -3px 5px 4px rgba(60, 50, 36, 0.28),
    -6px 10px 12px rgba(65, 52, 38, 0.16),
    -12px 18px 24px rgba(70, 55, 40, 0.08);
}
:root[data-mode="dark"] .project-shadow-name.pos-1 .project-name-text {
  text-shadow:
    1px -1px 0 rgba(255, 245, 215, 0.45),
    -1px 2px 2px rgba(0, 0, 0, 0.9),
    -3px 5px 5px rgba(0, 0, 0, 0.72),
    -6px 10px 12px rgba(0, 0, 0, 0.52),
    -12px 18px 24px rgba(0, 0, 0, 0.32);
}

/* 位置 2：中上方，投影稍向左下延伸 */
.project-shadow-name.pos-2 .project-name-text {
  text-shadow:
    1px -1px 0 rgba(255, 255, 255, 0.9),
    -1px 2px 1px rgba(55, 45, 32, 0.42),
    -4px 7px 5px rgba(60, 50, 36, 0.26),
    -8px 13px 15px rgba(65, 52, 38, 0.16),
    -15px 22px 28px rgba(70, 55, 40, 0.08);
}
:root[data-mode="dark"] .project-shadow-name.pos-2 .project-name-text {
  text-shadow:
    1px -1px 0 rgba(255, 245, 215, 0.45),
    -1px 2px 2px rgba(0, 0, 0, 0.9),
    -4px 7px 6px rgba(0, 0, 0, 0.7),
    -8px 13px 15px rgba(0, 0, 0, 0.52),
    -15px 22px 28px rgba(0, 0, 0, 0.32);
}

/* 位置 3：中下方，光线倾斜度加大，半影扩散更广 */
.project-shadow-name.pos-3 .project-name-text {
  text-shadow:
    1px -1px 0 rgba(255, 255, 255, 0.9),
    -2px 2px 1px rgba(55, 45, 32, 0.42),
    -5px 9px 6px rgba(60, 50, 36, 0.24),
    -10px 16px 18px rgba(65, 52, 38, 0.16),
    -18px 26px 32px rgba(70, 55, 40, 0.08);
}
:root[data-mode="dark"] .project-shadow-name.pos-3 .project-name-text {
  text-shadow:
    1px -1px 0 rgba(255, 245, 215, 0.45),
    -2px 2px 2px rgba(0, 0, 0, 0.9),
    -5px 9px 7px rgba(0, 0, 0, 0.68),
    -10px 16px 18px rgba(0, 0, 0, 0.52),
    -18px 26px 32px rgba(0, 0, 0, 0.32);
}

/* 位置 4：距离光源最远，入射角平缓，阴影拉得最长，边缘最柔散 */
.project-shadow-name.pos-4 .project-name-text {
  text-shadow:
    1px -1px 0 rgba(255, 255, 255, 0.9),
    -2px 3px 2px rgba(55, 45, 32, 0.4),
    -7px 12px 7px rgba(60, 50, 36, 0.22),
    -13px 20px 22px rgba(65, 52, 38, 0.16),
    -22px 32px 38px rgba(70, 55, 40, 0.1);
}
:root[data-mode="dark"] .project-shadow-name.pos-4 .project-name-text {
  text-shadow:
    1px -1px 0 rgba(255, 245, 215, 0.45),
    -2px 3px 3px rgba(0, 0, 0, 0.88),
    -7px 12px 8px rgba(0, 0, 0, 0.66),
    -13px 20px 22px rgba(0, 0, 0, 0.52),
    -22px 32px 38px rgba(0, 0, 0, 0.36);
}

/* 悬停时：文字离台面浮起，虚影相应向左下方大幅拉长并柔化发散 */
.project-shadow-name:hover .project-name-text {
  text-shadow:
    1px -1px 0 rgba(255, 255, 255, 0.95),
    -2px 3px 2px rgba(55, 45, 32, 0.36),
    -6px 11px 8px rgba(60, 50, 36, 0.26),
    -14px 22px 24px rgba(65, 52, 38, 0.2),
    -25px 40px 48px rgba(70, 55, 40, 0.12);
}
:root[data-mode="dark"] .project-shadow-name:hover .project-name-text {
  text-shadow:
    1px -1px 0 rgba(255, 245, 215, 0.65),
    -2px 3px 3px rgba(0, 0, 0, 0.88),
    -6px 11px 9px rgba(0, 0, 0, 0.7),
    -14px 22px 24px rgba(0, 0, 0, 0.55),
    -25px 40px 48px rgba(0, 0, 0, 0.4);
}

/* 侧边引导箭头 (Shadow Arrow) */
.project-shadow-arrow {
  font: 700 20px / 1 var(--mono);
  color: #584a38;
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
  text-shadow: 1px -1px 0 rgba(255, 255, 255, 0.85);
}
.project-shadow-name:hover .project-shadow-arrow {
  transform: translate(-3px, -3px);
  color: #2b2216;
}
:root[data-mode="dark"] .project-shadow-arrow {
  color: #dfb86c;
  text-shadow: 1px -1px 0 rgba(0, 0, 0, 0.8);
}
:root[data-mode="dark"] .project-shadow-name:hover .project-shadow-arrow {
  color: #fae4ac;
}
.project-shadow-name:hover .project-shadow-arrow {
  transform: translate(-3px, -3px);
  color: #2b1f0e;
}
:root[data-mode="dark"] .project-shadow-arrow {
  color: #dfb86c;
  text-shadow: 1px -1px 0 rgba(0, 0, 0, 0.8);
}
:root[data-mode="dark"] .project-shadow-name:hover .project-shadow-arrow {
  color: #fae4ac;
}

/* 4. 作品每页4个限制之翻页导航 (Projects Pagination) */
.projects-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  padding: 8px 0;
}
.projects-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #252a29;
  color: #eed69f;
  border: 1px solid #4a4536;
  border-radius: 3px;
  font: 700 12.5px / 1 var(--mono);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.projects-pagination .page-btn:hover {
  background: #333938;
  transform: translateY(-1px);
}
:root[data-mode="dark"] .projects-pagination .page-btn {
  background: #dfb86c;
  color: #221c0e;
  border-color: #dfb86c;
}
:root[data-mode="dark"] .projects-pagination .page-btn:hover {
  background: #fae4ac;
}
.projects-pagination .disabled-btn {
  opacity: 0.4;
  pointer-events: none;
  box-shadow: none;
}
.pagination-status {
  font: 700 13px / 1 var(--mono);
  color: var(--on-canvas);
  letter-spacing: 1px;
}
.curr-page {
  color: var(--gold);
}
:root[data-mode="dark"] .curr-page {
  color: #eed69f;
}

.projects-cards-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.projects-cards-list .project-card.project-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 180px;
  gap: 24px;
  padding: 24px 28px;
  background: #fbf8f0;
  border: 1px solid rgba(80, 65, 40, 0.16);
  border-radius: 4px;
  box-shadow:
    0 4px 14px rgba(25, 38, 40, 0.08),
    0 1px 3px rgba(25, 38, 40, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-sizing: border-box;
}
.projects-cards-list .project-card.project-row:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(25, 38, 40, 0.12),
    0 2px 6px rgba(25, 38, 40, 0.08);
}
:root[data-mode="dark"] .projects-cards-list .project-card.project-row {
  background: #22292a;
  border-color: #384648;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
:root[data-mode="dark"] .projects-cards-list .project-card.project-row:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

/* 印章初始字母 (Project Initial Stamp) */
.projects-cards-list .project-initial {
  width: 52px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #253330;
  border: 2px solid #b89345;
  border-radius: 3px 6px 6px 3px;
  color: #faebd0;
  font: 700 32px / 1 var(--serif);
  box-shadow:
    inset 3px 0 #192321,
    2px 3px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
:root[data-mode="dark"] .projects-cards-list .project-initial {
  background: #2e3839;
  border-color: #dfb86c;
  color: #eed69f;
  box-shadow:
    inset 3px 0 #1c2324,
    2px 3px 8px rgba(0, 0, 0, 0.5);
}

/* 中间项目信息 (Project Main Info) */
.project-main-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.projects-cards-list .project-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.projects-cards-list .project-title h2 {
  font: 600 24px / 1.3 var(--serif);
  margin: 0;
}
.projects-cards-list .project-title h2 a {
  color: #1b2623;
  text-decoration: none;
  transition: color 0.15s ease;
}
.projects-cards-list .project-title h2 a:hover {
  color: #78581c;
  text-decoration: underline;
}
:root[data-mode="dark"] .projects-cards-list .project-title h2 a {
  color: #f2f7f4;
}
:root[data-mode="dark"] .projects-cards-list .project-title h2 a:hover {
  color: #eed69f;
}

/* 状态药丸徽标 (Status Badges) */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font: 700 11.5px / 1 var(--mono);
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.badge-status.status-active {
  background: #e6f4eb;
  color: #18522e;
  border: 1px solid #71b88e;
}
.badge-status.status-maintenance {
  background: #fcf4e4;
  color: #694a0f;
  border: 1px solid #d4ad57;
}
.badge-status.status-archived {
  background: #f7ebeb;
  color: #6e2727;
  border: 1px solid #c97d7d;
}
.badge-status.status-planning {
  background: #eef4fb;
  color: #194870;
  border: 1px solid #7ca5cc;
}
:root[data-mode="dark"] .badge-status.status-active {
  background: #182e22;
  color: #87e2a9;
  border-color: #2f6946;
}
:root[data-mode="dark"] .badge-status.status-maintenance {
  background: #332915;
  color: #fad683;
  border-color: #73571f;
}
:root[data-mode="dark"] .badge-status.status-archived {
  background: #331d1d;
  color: #f2a7a7;
  border-color: #6b3333;
}
:root[data-mode="dark"] .badge-status.status-planning {
  background: #172636;
  color: #97c6f2;
  border-color: #2c4e6e;
}

/* 项目简介 (Project Summary) */
.project-summary {
  font-size: 15px;
  line-height: 1.75;
  color: #4d5956;
  margin: 0 0 10px;
}
:root[data-mode="dark"] .project-summary {
  color: #aebdb8;
}

/* 下一步便签纸条 (Next Step Note) */
.projects-cards-list .project-next-step {
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  background: #f4ecdc !important;
  border-left: 3px solid #9e7a2b !important;
  color: #3a301c !important;
  padding: 8px 12px !important;
  border-radius: 0 3px 3px 0 !important;
  margin: 0 0 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.projects-cards-list .project-next-step strong {
  font-weight: 700;
  color: #6e4e13;
  margin-right: 6px;
}
:root[data-mode="dark"] .projects-cards-list .project-next-step {
  background: #2c3535 !important;
  border-left-color: #dfb86c !important;
  color: #eed69f !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
:root[data-mode="dark"] .projects-cards-list .project-next-step strong {
  color: #eed69f;
}

/* 规格事实栏 (Project Facts) */
.projects-cards-list .project-facts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font: 12.5px var(--mono);
  color: #4a5452;
  margin-top: 4px;
}
:root[data-mode="dark"] .projects-cards-list .project-facts {
  color: #9ab0a8;
}
.fact-platform,
.fact-version,
.fact-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fact-platform {
  background: rgba(60, 50, 30, 0.08);
  color: #222625 !important;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 2px;
}
:root[data-mode="dark"] .fact-platform {
  background: rgba(255, 255, 255, 0.08);
  color: #eed69f !important;
}

/* 右侧操作按钮组 (Project Actions Column) */
.projects-cards-list .project-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  border-left: 1px dashed rgba(80, 65, 40, 0.2);
  padding-left: 20px;
}
:root[data-mode="dark"] .projects-cards-list .project-actions {
  border-left-color: #384648;
}
.button-action.project-view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  background: #253330;
  color: #fdf6e6;
  border: 1px solid #1a2522;
  border-radius: 3px;
  font: 700 13px / 1 var(--mono);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}
.button-action.project-view-link:hover {
  background: #394d49;
  transform: translateY(-1px);
}
:root[data-mode="dark"] .button-action.project-view-link {
  background: #dfb86c;
  color: #221c0e;
  border-color: #dfb86c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
:root[data-mode="dark"] .button-action.project-view-link:hover {
  background: #fae4ac;
}
.release-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #f2ebd9;
  color: #573f11;
  border: 1px solid #bba162;
  border-radius: 3px;
  font: 600 12px / 1 var(--mono);
  text-decoration: none;
  transition: background 0.15s ease;
}
.release-download-btn:hover {
  background: #faeed4;
}
:root[data-mode="dark"] .release-download-btn {
  background: #2c3637;
  color: #eed69f;
  border-color: #576b6d;
}
:root[data-mode="dark"] .release-download-btn:hover {
  background: #364446;
}
.unreleased-notice {
  font: 11.5px var(--mono);
  color: #556360;
  text-align: center;
}
:root[data-mode="dark"] .unreleased-notice {
  color: #839791;
}

/* 4. 中间过渡分割带 (Divider Band) */
.projects-divider-band {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 48px 0 36px;
}
.band-line {
  flex: 1;
  height: 1px;
  background: rgba(231, 221, 208, 0.35);
}
:root[data-mode="dark"] .band-line {
  background: rgba(64, 82, 84, 0.5);
}
.band-seal {
  font: 700 10.5px / 1 var(--mono);
  letter-spacing: 2px;
  color: var(--gold);
  background: #253335;
  border: 1px solid #405254;
  padding: 4px 12px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
:root[data-mode="dark"] .band-seal {
  background: #253335;
  border-color: #405254;
  color: #eed69f;
}

/* 5. 下部列表：全项目最新改动流水线 (Activity Stream Timeline) */
.projects-activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.activity-timeline-item.update-row {
  display: block;
  position: relative;
}

/* 动态详情卡片 (Activity Card)
   单元背景：完全对齐项目展板的浅泛黄米白画纸老纸材质，但去掉聚光打光 (No Spotlight Beam)
*/
.activity-card {
  position: relative;
  border-radius: 6px;
  box-sizing: border-box;
  padding: 22px 26px;
  background-color: #ece5d8;
  background-image:
    radial-gradient(
      ellipse at 50% 50%,
      transparent 55%,
      rgba(180, 168, 148, 0.12) 82%,
      rgba(150, 136, 114, 0.22) 100%
    ),
    radial-gradient(
      ellipse at 22% 35%,
      rgba(225, 217, 202, 0.3) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 78% 68%,
      rgba(220, 212, 195, 0.25) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 45% 82%,
      rgba(215, 205, 188, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      rgba(60, 48, 32, 0.045) 0.5px,
      transparent 0.5px
    ),
    radial-gradient(
      rgba(255, 255, 255, 0.35) 0.5px,
      transparent 0.5px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(90, 75, 55, 0.015) 0,
      rgba(90, 75, 55, 0.015) 1px,
      transparent 1px,
      transparent 16px
    );
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    2px 3px,
    0 0;
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    5px 5px,
    7px 7px,
    100% 100%;
  border: 2px solid #baa98e;
  box-shadow:
    0 8px 24px rgba(25, 20, 14, 0.14),
    0 2px 5px rgba(25, 20, 14, 0.06),
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 0 18px rgba(160, 145, 120, 0.14);
  transition:
    transform 0.2s cubic-bezier(0.18, 0.9, 0.32, 1),
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.activity-card:hover {
  transform: translateY(-2px);
  border-color: #a89476;
  box-shadow:
    0 12px 30px rgba(25, 20, 14, 0.18),
    0 4px 10px rgba(25, 20, 14, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 0 18px rgba(160, 145, 120, 0.18);
}
:root[data-mode="dark"] .activity-card {
  background-color: #362e22;
  background-image:
    radial-gradient(
      ellipse at 50% 50%,
      transparent 45%,
      rgba(30, 22, 12, 0.25) 75%,
      rgba(18, 12, 6, 0.42) 100%
    ),
    radial-gradient(
      ellipse at 25% 35%,
      rgba(80, 62, 32, 0.25) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 75% 70%,
      rgba(62, 46, 22, 0.28) 0%,
      transparent 55%
    ),
    radial-gradient(
      rgba(0, 0, 0, 0.22) 0.6px,
      transparent 0.6px
    ),
    radial-gradient(
      rgba(255, 240, 190, 0.1) 0.5px,
      transparent 0.5px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.035) 0,
      rgba(0, 0, 0, 0.035) 1px,
      transparent 1px,
      transparent 14px
    );
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    2px 3px,
    0 0;
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    5px 5px,
    7px 7px,
    100% 100%;
  border: 2px solid #544327;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.6),
    0 0 16px rgba(223, 184, 108, 0.08),
    inset 0 1px 1px rgba(255, 235, 170, 0.12),
    inset 0 0 22px rgba(18, 12, 5, 0.5);
}
:root[data-mode="dark"] .activity-card:hover {
  border-color: #735a34;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.75),
    0 0 20px rgba(223, 184, 108, 0.12);
}

/* 动态卡片头部元信息栏 (Activity Meta Bar - 原生经典横向排布) */
.activity-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(130, 110, 85, 0.25);
}
:root[data-mode="dark"] .activity-meta-bar {
  border-bottom-color: rgba(223, 184, 108, 0.2);
}
.activity-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 时间方框印戳 (Time Stamp Box inside Card) */
.activity-time-box {
  display: inline-flex;
  align-items: center;
  padding: 3.5px 9px;
  background: #ded5c2;
  border: 1.5px solid #baa98e;
  border-radius: 3px;
  font: 700 12px / 1 var(--mono);
  letter-spacing: 0.5px;
  color: #1a1612 !important;
  box-shadow:
    0 1px 2px rgba(35, 25, 15, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.activity-card:hover .activity-time-box {
  background: #d6ccb8;
  border-color: #a89476;
}
:root[data-mode="dark"] .activity-time-box {
  background: #282117;
  border-color: #57462c;
  color: #f2e8cf !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 235, 170, 0.12);
}
:root[data-mode="dark"] .activity-card:hover .activity-time-box {
  background: #2d251a;
  border-color: #7a623d;
}

/* 所属项目胶囊 (Activity Project Pill) */
.activity-project-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: #dfd6c4;
  border: 1px solid #baa98e;
  border-radius: 3px;
  font: 600 12.5px / 1 var(--mono);
  color: #2b2216;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.activity-project-pill:hover {
  background: #d6ccb8;
  border-color: #9e8d72;
}
:root[data-mode="dark"] .activity-project-pill {
  background: #463b2c;
  border-color: #63543e;
  color: #faeed4;
}
:root[data-mode="dark"] .activity-project-pill:hover {
  background: #524534;
  border-color: #7a674d;
}
.pill-icon {
  font-size: 11px;
  opacity: 0.7;
}
.pill-arrow {
  font-size: 10px;
  opacity: 0.6;
}

/* 动态类型徽标与物理纯打孔系统 (Activity Kind Pure Punched Hole System)
   直接打在纸张上，无任何外层边框与背景块 (Pure Holes on Paper, No Outer Border/Pill)
   - 1 孔：更新 (Progress / Update)
   - 2 孔：版本发布 (Release)
   - 3 孔：公告 (Notice)
   - 1 大孔：归档 (Archive)
*/
.activity-kind-badge.punch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 2px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  user-select: none;
  cursor: help;
}
.activity-card:hover .activity-kind-badge.punch-badge,
:root[data-mode="dark"] .activity-kind-badge.punch-badge,
:root[data-mode="dark"] .activity-card:hover .activity-kind-badge.punch-badge {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 孔洞轨道 (Punch Holes Track) */
.punch-holes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 核心物理圆孔 (Punched Physical Hole)
   圆孔穿透纸张，露出暗色桌面底衬，伴随压切内阴影与受光面白色反光刃边
*/
.punch-hole {
  display: inline-block;
  width: 10.5px;
  height: 10.5px;
  border-radius: 50%;
  background: #1c2120;
  box-shadow:
    inset 0 1.5px 2.5px rgba(0, 0, 0, 0.95),
    inset 0 0 1px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}
:root[data-mode="dark"] .punch-hole {
  background: #121615;
  box-shadow:
    inset 0 1.5px 2px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.18);
}

/* 归档专有大孔 (Large Punch Hole for Archive) */
.punch-hole.punch-hole-large {
  width: 18px;
  height: 18px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.95),
    inset 0 0 2px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.8);
}
:root[data-mode="dark"] .punch-hole.punch-hole-large {
  box-shadow:
    inset 0 2px 3.5px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 动态页打孔图例条 (Punch Code Legend Bar) */
.updates-punch-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 16px;
  margin-top: 10px;
  border-radius: 4px;
  background-color: #f5eee3;
  background-image:
    radial-gradient(circle at 14px 14px, rgba(120, 95, 65, 0.08) 1px, transparent 1px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.15) 0px,
      rgba(255, 255, 255, 0.15) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size: 28px 28px, 100% 100%;
  border: 1px dashed rgba(160, 140, 115, 0.5);
  font: 500 12px / 1.4 var(--mono);
  color: #4a3a28;
  box-shadow: 0 2px 6px rgba(45, 30, 18, 0.08);
  box-sizing: border-box;
}
:root[data-mode="dark"] .updates-punch-legend {
  background-color: #2c251b;
  background-image:
    radial-gradient(circle at 14px 14px, rgba(255, 235, 180, 0.06) 0.9px, transparent 0.9px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.025) 0px,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 4px
    );
  border-color: rgba(120, 95, 60, 0.5);
  color: #ded5c4;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.legend-caption {
  font-weight: 700;
  letter-spacing: 1px;
  color: #5c4530;
  margin-right: 4px;
}
:root[data-mode="dark"] .legend-caption {
  color: #eed69f;
}
.legend-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4a3a28;
}
:root[data-mode="dark"] .legend-tag {
  color: #ded5c4;
}
.sample-hole {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1c2120;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.75);
}
:root[data-mode="dark"] .sample-hole {
  background: #121615;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.18);
}
.sample-hole.sample-hole-large {
  width: 12px;
  height: 12px;
}

/* 动态标题与正文 (Activity Title & Prose - 原生经典纵向排布) */
.activity-title {
  font: 600 20px / 1.4 var(--serif);
  margin: 0 0 10px;
}
.activity-title a {
  color: #1a1612;
  text-decoration: none;
  transition: color 0.15s ease;
}
.activity-title a:hover {
  color: #6b4d1b;
  text-decoration: underline;
}
:root[data-mode="dark"] .activity-title a {
  color: #f2e8cf;
}
:root[data-mode="dark"] .activity-title a:hover {
  color: #fff2d1;
}
.activity-prose {
  font-size: 14.5px;
  line-height: 1.8;
  color: #383025;
  margin-bottom: 14px;
}
:root[data-mode="dark"] .activity-prose {
  color: #ebdcb9;
}
.activity-prose p {
  margin: 0 0 8px;
}
.activity-prose p:last-child {
  margin-bottom: 0;
}

/* 动态卡片底部跳转 (Activity Card Foot) */
.activity-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}
.activity-more-link {
  font: 700 12px / 1 var(--mono);
  color: #544633;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.activity-more-link:hover {
  color: #1a1612;
}
:root[data-mode="dark"] .activity-more-link {
  color: #dfb86c;
}
:root[data-mode="dark"] .activity-more-link:hover {
  color: #fff4dc;
}

/* 空状态 (Empty Activity State) */
.project-empty-activity {
  background: rgba(255, 255, 255, 0.4);
  border: 1px dashed rgba(80, 65, 40, 0.25);
  border-radius: 4px;
  padding: 36px 24px;
  text-align: center;
  color: var(--on-canvas-muted);
  font: 14px var(--mono);
}
:root[data-mode="dark"] .project-empty-activity {
  background: rgba(30, 38, 39, 0.4);
  border-color: #384648;
}

/* 动态页过滤器栏拟物美化 (Updates Filter Bar on Canvas) */
.update-filters-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background-color: #ece5d8;
  background-image:
    radial-gradient(
      ellipse at 50% 10%,
      rgba(255, 252, 245, 0.85) 0%,
      rgba(236, 229, 216, 0.4) 60%,
      transparent 90%
    ),
    radial-gradient(circle at 14px 14px, rgba(120, 95, 65, 0.08) 1px, transparent 1px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.12) 0px,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(80, 55, 30, 0.03) 0px,
      rgba(80, 55, 30, 0.03) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size:
    100% 100%,
    28px 28px,
    100% 100%,
    100% 100%;
  border: 1px solid #baa98e;
  border-radius: 4px;
  margin-top: 20px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    0 3px 8px rgba(45, 30, 18, 0.14);
  box-sizing: border-box;
}
:root[data-mode="dark"] .update-filters-bar {
  background-color: #362e22;
  background-image:
    radial-gradient(
      ellipse at 50% 10%,
      rgba(95, 78, 55, 0.6) 0%,
      rgba(54, 46, 34, 0.35) 60%,
      transparent 90%
    ),
    radial-gradient(circle at 14px 14px, rgba(255, 235, 180, 0.06) 0.9px, transparent 0.9px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.28) 0px,
      rgba(0, 0, 0, 0.28) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size:
    100% 100%,
    28px 28px,
    100% 100%,
    100% 100%;
  border-color: #544327;
  box-shadow:
    inset 0 1px 1px rgba(255, 235, 180, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.45);
}
.update-filters-bar .filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.update-filters-bar .filter-field span {
  font: 700 11px / 1 var(--mono);
  letter-spacing: 1px;
  color: #614e3b;
}
:root[data-mode="dark"] .update-filters-bar .filter-field span {
  color: #cfc2aa;
}
.update-filters-bar select {
  min-width: 170px;
  padding: 7px 32px 7px 12px;
  background-color: #fbf8f1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23614e3b' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid #baa98e;
  color: #2c2217;
  border-radius: 3px;
  font: 13px / 1.4 var(--mono);
  outline: none;
  box-shadow:
    inset 0 1px 2px rgba(60, 45, 25, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.6);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.update-filters-bar select:hover {
  border-color: #8c734b;
}
.update-filters-bar select:focus {
  border-color: #8c734b;
  box-shadow: 0 0 0 2px rgba(186, 150, 95, 0.3);
}

/* 下拉菜单项纸质底色 (Dropdown List Options Paper Background) */
.update-filters-bar select option {
  background-color: #fbf8f1;
  color: #2c2217;
  padding: 8px 12px;
  font: 13px / 1.4 var(--mono);
}

:root[data-mode="dark"] .update-filters-bar select {
  background-color: #272016;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23eed69f' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  border-color: #544327;
  color: #f0e8db;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
:root[data-mode="dark"] .update-filters-bar select:hover {
  border-color: #c9a463;
}
:root[data-mode="dark"] .update-filters-bar select:focus {
  border-color: #dfb86c;
  box-shadow: 0 0 0 2px rgba(217, 189, 134, 0.25);
}

:root[data-mode="dark"] .update-filters-bar select option {
  background-color: #272016;
  color: #f0e8db;
}
.update-filters-bar .filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 16px;
  background: #5c4530;
  color: #fdfbf7;
  border: 1px solid #4a3826;
  border-radius: 3px;
  font: 700 12.5px / 1 var(--mono);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(45, 30, 18, 0.2);
}
.update-filters-bar .filter-btn:hover {
  background: #6e533b;
  border-color: #3b2c1d;
  transform: translateY(-1px);
}
:root[data-mode="dark"] .update-filters-bar .filter-btn {
  background: #544327;
  border-color: #6e5835;
  color: #fdfbf7;
}
:root[data-mode="dark"] .update-filters-bar .filter-btn:hover {
  background: #685330;
  border-color: #8c7145;
}

.updates-timeline-section {
  margin-top: 36px;
}
.updates-pagination {
  margin-top: 32px;
}

/* 响应式调整 (Responsive Projects Workbench) */
@media (max-width: 850px) {
  .illuminated-project-board {
    min-height: 382px;
  }
  .illuminated-board-surface {
    padding: 16px 14px;
  }
  .project-shadow-name.project-row {
    grid-template-columns: 26px minmax(0, 1fr) 22px !important;
    gap: 6px 12px !important;
    padding: 16px 12px !important;
  }
  .project-name-text {
    white-space: normal;
  }
  .project-summary-text {
    grid-column: 2 / -1;
    margin-top: 2px;
    padding-left: 10px;
    font-size: 12.5px;
  }
  .projects-canvas-wrap {
    padding: 0 16px;
    margin: 16px auto 40px;
  }
  .projects-cards-list .project-card.project-row {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }
  .projects-cards-list .project-actions {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px dashed rgba(80, 65, 40, 0.2);
    padding-left: 0;
    padding-top: 16px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  :root[data-mode="dark"] .projects-cards-list .project-actions {
    border-top-color: #384648;
  }
  .activity-card {
    padding: 18px 16px;
  }
}

/* ═════════════════════════════════════════════════════════════════════
   关于页面纸质质感与排版重构 (About Page Warm Antique Paper & Letterhead)
   ═════════════════════════════════════════════════════════════════════ */
.about-wrap {
  position: relative;
  max-width: 860px;
  margin: 36px auto 64px;
  padding: 0 24px;
  box-sizing: border-box;
}

.about-sheet {
  position: relative;
  border-radius: 6px;
  padding: 48px 56px 44px;
  background-color: #ece5d8;
  background-image:
    radial-gradient(
      ellipse at 50% 8%,
      rgba(255, 252, 245, 0.88) 0%,
      rgba(236, 229, 216, 0.45) 55%,
      transparent 85%
    ),
    radial-gradient(circle at 14px 14px, rgba(120, 95, 65, 0.075) 1px, transparent 1px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.12) 0px,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(80, 55, 30, 0.03) 0px,
      rgba(80, 55, 30, 0.03) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size:
    100% 100%,
    28px 28px,
    100% 100%,
    100% 100%;
  border: 1px solid #baa98e;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(90, 65, 40, 0.12),
    0 1px 0 #f5efe4,
    0 2px 0 #ded2be,
    0 3px 0 #4a3828,
    0 14px 36px rgba(35, 24, 14, 0.22),
    0 3px 8px rgba(35, 24, 14, 0.12);
  box-sizing: border-box;
}

:root[data-mode="dark"] .about-sheet {
  background-color: #362e22;
  background-image:
    radial-gradient(
      ellipse at 50% 8%,
      rgba(95, 78, 55, 0.6) 0%,
      rgba(54, 46, 34, 0.35) 55%,
      transparent 85%
    ),
    radial-gradient(circle at 14px 14px, rgba(255, 235, 180, 0.06) 0.9px, transparent 0.9px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.28) 0px,
      rgba(0, 0, 0, 0.28) 1px,
      transparent 1px,
      transparent 4px
    );
  border-color: #544327;
  box-shadow:
    inset 0 1px 1px rgba(255, 235, 180, 0.08),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4),
    0 1px 0 #423628,
    0 2px 0 #2b2216,
    0 3px 0 #18120b,
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 3px 10px rgba(0, 0, 0, 0.35);
}

/* 顶部半透明和纸胶带 (Washi Tape Strip at Top) */
.about-tape {
  position: absolute;
  top: -11px;
  left: calc(50% - 48px);
  width: 96px;
  height: 22px;
  background: rgba(220, 205, 175, 0.72);
  border-left: 1px dashed rgba(160, 140, 110, 0.55);
  border-right: 1px dashed rgba(160, 140, 110, 0.55);
  box-shadow: 0 1px 3px rgba(45, 30, 18, 0.15);
  transform: rotate(-1.5deg);
  z-index: 2;
  pointer-events: none;
}
:root[data-mode="dark"] .about-tape {
  background: rgba(85, 68, 48, 0.68);
  border-left-color: rgba(140, 115, 80, 0.4);
  border-right-color: rgba(140, 115, 80, 0.4);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* 关于页面信笺表头 (About Heading) */
.about-heading {
  margin-bottom: 28px;
}
.about-eyebrow {
  font: 700 11px / 1.2 var(--mono);
  letter-spacing: 2px;
  color: #614e3b;
  text-transform: uppercase;
}
:root[data-mode="dark"] .about-eyebrow {
  color: #eed69f;
}
.about-heading h1 {
  font: 700 36px / 1.25 var(--serif);
  color: #2c2217;
  margin: 12px 0 10px;
  letter-spacing: 0.5px;
}
:root[data-mode="dark"] .about-heading h1 {
  color: #f7eedd;
}
.about-desc {
  font: 16px / 1.6 var(--sans);
  color: #4a3a28;
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(186, 169, 142, 0.6);
}
:root[data-mode="dark"] .about-desc {
  color: #ded5c4;
  border-bottom-color: rgba(84, 67, 39, 0.6);
}

/* 正文区域纸墨排版 (About Prose) */
.about-prose {
  color: #2c2217;
}
:root[data-mode="dark"] .about-prose {
  color: #f0e8db;
}
.about-prose h2 {
  font: 700 22px / 1.4 var(--serif);
  color: #2c2217;
  margin-top: 28px;
  margin-bottom: 12px;
}
:root[data-mode="dark"] .about-prose h2 {
  color: #f7eedd;
}
.about-prose p {
  font: 15.5px / 1.85 var(--sans);
  color: #2c2217;
  margin-bottom: 18px;
}
:root[data-mode="dark"] .about-prose p {
  color: #f0e8db;
}
.about-prose a {
  color: #5c4530;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.about-prose a:hover {
  color: #2c2217;
}
:root[data-mode="dark"] .about-prose a {
  color: #dfb86c;
}
:root[data-mode="dark"] .about-prose a:hover {
  color: #fff8eb;
}
.about-prose blockquote {
  border-left: 3px solid #baa98e;
  background: rgba(186, 169, 142, 0.14);
  padding: 12px 18px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
  color: #4a3a28;
}
:root[data-mode="dark"] .about-prose blockquote {
  border-left-color: #544327;
  background: rgba(84, 67, 39, 0.25);
  color: #ded5c4;
}
.about-prose code {
  font: 13px / 1.2 var(--mono);
  background: #eee6d6;
  color: #4e3d2a;
  padding: 2px 6px;
  border-radius: 3px;
}
:root[data-mode="dark"] .about-prose code {
  background: #251d14;
  color: #eed69f;
}

/* 联系卡片：与关于页信笺共用纸张、铜色和压印层次 (About Contact Card) */
.about-contact-card {
  position: relative;
  margin-top: 30px;
  padding: 22px 24px 20px;
  border: 1px solid rgba(154, 132, 101, 0.72);
  border-left: 3px solid #8b6d45;
  border-radius: 4px;
  background: rgba(255, 252, 245, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 2px 0 rgba(109, 82, 49, 0.14),
    0 8px 18px rgba(72, 48, 25, 0.08);
}
.about-contact-kicker {
  font: 700 10px / 1.2 var(--mono);
  letter-spacing: 2px;
  color: #806441;
}
.about-contact-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 9px 0 4px;
}
.about-contact-heading h2 {
  margin: 0;
  font: 700 22px / 1.35 var(--serif);
  color: #2c2217;
}
.about-contact-mark {
  color: #a47c3e;
  font: 18px / 1 var(--serif);
}
.about-contact-note {
  margin: 0;
  color: #6a5741;
  font: 13px / 1.6 var(--sans);
}
.about-contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 18px 0 0;
}
.about-contact-entry {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(154, 132, 101, 0.55);
}
.about-contact-entry dt {
  margin-bottom: 5px;
  color: #806441;
  font: 700 10px / 1.2 var(--mono);
  letter-spacing: 1.5px;
}
.about-contact-entry dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #2c2217;
  font: 15px / 1.5 var(--mono);
}
.about-contact-entry a {
  color: #5c4530;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-contact-entry a:hover {
  color: #2c2217;
}
:root[data-mode="dark"] .about-contact-card {
  border-color: rgba(135, 106, 57, 0.7);
  border-left-color: #b08a4d;
  background: rgba(48, 39, 28, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 180, 0.06),
    0 2px 0 rgba(0, 0, 0, 0.24),
    0 10px 22px rgba(0, 0, 0, 0.22);
}
:root[data-mode="dark"] .about-contact-kicker,
:root[data-mode="dark"] .about-contact-entry dt {
  color: #e4c47e;
}
:root[data-mode="dark"] .about-contact-heading h2 {
  color: #f7eedd;
}
:root[data-mode="dark"] .about-contact-note {
  color: #d2c3ad;
}
:root[data-mode="dark"] .about-contact-entry {
  border-top-color: rgba(135, 106, 57, 0.56);
}
:root[data-mode="dark"] .about-contact-entry dd {
  color: #f0e8db;
}
:root[data-mode="dark"] .about-contact-entry a {
  color: #e4c47e;
}
:root[data-mode="dark"] .about-contact-entry a:hover {
  color: #fff8eb;
}

/* 底部联系操作栏 (About Action Row & Button) */
.about-action-row {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(186, 169, 142, 0.4);
  display: flex;
  justify-content: flex-start;
}
:root[data-mode="dark"] .about-action-row {
  border-top-color: rgba(84, 67, 39, 0.4);
}
.about-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 24px;
  background: #5c4530;
  color: #fdfbf7;
  border: 1px solid #4a3826;
  border-radius: 4px;
  font: 700 13px / 1 var(--mono);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(45, 30, 18, 0.18);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.about-button:hover {
  background: #6e533b;
  border-color: #3b2c1d;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(45, 30, 18, 0.25);
}
:root[data-mode="dark"] .about-button {
  background: #544327;
  border-color: #6e5835;
  color: #fdfbf7;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}
:root[data-mode="dark"] .about-button:hover {
  background: #685330;
  border-color: #8c7145;
  color: #fff;
}

/* 移动端响应式 (About Responsive) */
@media (max-width: 650px) {
  .about-wrap {
    padding: 0 14px;
    margin: 20px auto 40px;
  }
  .about-sheet {
    padding: 34px 20px 28px;
  }
  .about-heading h1 {
    font-size: 28px;
  }
  .about-desc {
    font-size: 14.5px;
  }
  .about-prose p {
    font-size: 14.5px;
  }
  .about-contact-card {
    padding: 19px 16px 17px;
  }
  .about-contact-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .about-tape {
    width: 76px;
    left: calc(50% - 38px);
    height: 18px;
    top: -9px;
  }
}

/* ═════════════════════════════════════════════════════════════════════
   右下角拟物悬浮外观切换按钮 (Floating Appearance Toggle - Brass & Paper Stamp)
   ═════════════════════════════════════════════════════════════════════ */
.floating-appearance-toggle,
#appearance-toggle.floating-appearance-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background-color: #fbf8f1;
  background-image:
    radial-gradient(
      circle at 35% 30%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(251, 248, 241, 0.6) 60%,
      rgba(236, 229, 216, 0.8) 100%
    );
  border: 1.5px solid #baa98e;
  box-shadow:
    0 4px 14px rgba(45, 30, 18, 0.22),
    0 1px 3px rgba(45, 30, 18, 0.12),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.9),
    inset 0 -1.5px 2px rgba(120, 95, 60, 0.2);
  transition:
    transform 0.22s cubic-bezier(0.2, 0.9, 0.35, 1),
    box-shadow 0.22s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.floating-appearance-toggle .appearance-toggle-icon {
  display: inline-block;
  font-size: 21px;
  line-height: 1;
  color: #2c2217;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.floating-appearance-toggle:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: #8c734b;
  box-shadow:
    0 8px 22px rgba(45, 30, 18, 0.28),
    0 2px 6px rgba(45, 30, 18, 0.15),
    inset 0 1.5px 2px rgba(255, 255, 255, 1),
    inset 0 -1.5px 2px rgba(120, 95, 60, 0.25);
}

.floating-appearance-toggle:hover .appearance-toggle-icon {
  transform: rotate(25deg);
  color: #5c4530;
}

.floating-appearance-toggle:active {
  transform: translateY(1px) scale(0.96);
  box-shadow:
    0 2px 8px rgba(45, 30, 18, 0.2),
    inset 0 1px 2px rgba(90, 65, 35, 0.25);
}

.floating-appearance-toggle:focus-visible {
  outline: 2px solid #dfb86c;
  outline-offset: 3px;
}

/* 暗色模式下的古铜暖纸印章 (Dark Mode Ancient Bronze & Dark Paper Stamp) */
:root[data-mode="dark"] .floating-appearance-toggle,
:root[data-mode="dark"] #appearance-toggle.floating-appearance-toggle {
  background-color: #2a2217;
  background-image:
    radial-gradient(
      circle at 35% 30%,
      rgba(85, 68, 48, 0.8) 0%,
      rgba(42, 34, 23, 0.95) 70%,
      rgba(26, 20, 13, 1) 100%
    );
  border-color: #6e5835;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 1.5px 2px rgba(255, 235, 180, 0.2),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.6);
}

:root[data-mode="dark"] .floating-appearance-toggle .appearance-toggle-icon {
  color: #eed69f;
  text-shadow: 0 0 8px rgba(238, 214, 159, 0.35);
}

:root[data-mode="dark"] .floating-appearance-toggle:hover {
  border-color: #dfb86c;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.75),
    0 3px 8px rgba(0, 0, 0, 0.5),
    inset 0 1.5px 2px rgba(255, 235, 180, 0.3),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.6);
}

:root[data-mode="dark"] .floating-appearance-toggle:hover .appearance-toggle-icon {
  color: #fff4d6;
  transform: rotate(-25deg);
}

:root[data-mode="dark"] .floating-appearance-toggle:active {
  transform: translateY(1px) scale(0.96);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    inset 0 2px 3px rgba(0, 0, 0, 0.8);
}

/* 移动端安全位置 (Responsive on Mobile) */
@media (max-width: 650px) {
  .floating-appearance-toggle,
  #appearance-toggle.floating-appearance-toggle {
    bottom: 22px;
    right: 18px;
    width: 44px;
    height: 44px;
  }
  .floating-appearance-toggle .appearance-toggle-icon {
    font-size: 19px;
  }
}

/* ═════════════════════════════════════════════════════════════════════
   全站拟物入场与出场动效体系 (Global Skeuomorphic Entrance & Exit Motion)
   - 照片浅入显影 (Gentle Fade-in Settle)
   - 组件每段文字自左向右舒缓展开 (Text Unfolds Left-to-Right)
   - 诗意长周期过渡 (Long-Paced Darkroom Sequence)
   - 支持全站核心页面 (Home, Timeline, Reader, Projects, Updates, About)
   ═════════════════════════════════════════════════════════════════════ */

/* 1. 每段文字自左向右如毛笔/印刷滚筒般展开 (Text Unfold Left-to-Right) */
@keyframes textUnfoldLeftToRight {
  0% {
    clip-path: inset(0% 100% 0% 0%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    clip-path: inset(0% 0% 0% 0%);
    opacity: 1;
  }
}

/* 2. 相册厚卡底板桌面沉降展开 (Album Board Workbench Settle) */
@keyframes albumSheetUnfold {
  0% {
    opacity: 0;
    translate: 0 16px;
    scale: 0.99;
  }
  100% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

/* 3. 皮脊装订侧向滑入就位 (Spine Stitching Slide-in) */
@keyframes spineSlideIn {
  0% {
    opacity: 0;
    translate: -16px 0;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}

/* 4. 拍立得照片浅入显影：如银盐相纸在显影液中慢慢浮现，角度始终固定 (Polaroid Photos Gentle Fade-in) */
@keyframes photoGentleFadeIn {
  0% {
    opacity: 0;
    filter: blur(3px);
    translate: 0 8px;
  }
  50% {
    opacity: 0.7;
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    translate: 0 0;
  }
}

/* 5. 边注图钉与邮票柔和显影 (Note Pin & Postage Fade-in) */
@keyframes notePinFadeIn {
  0% {
    opacity: 0;
    translate: 0 -8px;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}

/* 6. 右下角悬浮切换印章浮升就位 (Floating Stamp FAB Rise) */
@keyframes fabStampRise {
  0% {
    opacity: 0;
    translate: 0 20px;
    scale: 0.85;
  }
  70% {
    opacity: 1;
    translate: 0 -3px;
    scale: 1.04;
  }
  100% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

/* 7. 页面离场动画：优雅纸张收敛 (Page Exit Transition) */
@keyframes homePageExit {
  0% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    filter: blur(0);
  }
  100% {
    opacity: 0;
    translate: 0 -10px;
    scale: 0.985;
    filter: blur(2.5px);
  }
}

/* ───────────────────────────────────────────────────────────────────
   1. 首页入场动效绑定：按垂直高度自上而下、一个组件一个组件展开 (Home Page Cascading)
   ─────────────────────────────────────────────────────────────────── */
/* 桌面底板与皮脊装订先在背景悄然就位 */
.home-page-wrap:not(.is-entered) .home-album-sheet {
  animation: albumSheetUnfold 0.80s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.home-page-wrap:not(.is-entered) .album-binding {
  animation: spineSlideIn 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

/* ── Layer 1: 最上方 导言报头文字 (0.10s ~ 1.20s) ── */
.home-page-wrap:not(.is-entered) .home-intro .eyebrow {
  display: inline-block;
  animation: textUnfoldLeftToRight 0.60s cubic-bezier(0.22, 1, 0.36, 1) 0.10s both;
}
.home-page-wrap:not(.is-entered) .home-intro h1 {
  animation: textUnfoldLeftToRight 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}
.home-page-wrap:not(.is-entered) .home-intro p {
  animation: textUnfoldLeftToRight 0.80s cubic-bezier(0.22, 1, 0.36, 1) 0.40s both;
}
/* 顶部右侧刊号印章 */
.home-page-wrap:not(.is-entered) .album-index-label {
  animation: notePinFadeIn 0.68s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}
.home-page-wrap:not(.is-entered) .album-index-label span,
.home-page-wrap:not(.is-entered) .album-index-label b,
.home-page-wrap:not(.is-entered) .album-index-label small {
  display: block;
  animation: textUnfoldLeftToRight 0.60s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

/* ── Layer 2: 紧随其下的相册顶栏小字：日期与卷号快速清脆打印就位 (0.68s ~ 1.02s) ── */
.home-page-wrap:not(.is-entered) .album-topline > span:first-child {
  animation: textUnfoldLeftToRight 0.34s cubic-bezier(0.16, 1, 0.3, 1) 0.68s both;
}
/* 右侧日期与卷号 (如 "2026.09.11 · VOL 09")：速度极快，如打字机敲击般轻快就位 */
.home-page-wrap:not(.is-entered) .album-topline > [data-calendar-topline],
.home-page-wrap:not(.is-entered) .album-topline > span:last-child {
  animation: textUnfoldLeftToRight 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0.74s both;
}

/* ── Layer 3: 冲印回忆 分区标题栏 (0.95s ~ 1.70s) ── */
.home-page-wrap:not(.is-entered) .album-section-heading:not(.project-heading) .eyebrow {
  display: inline-block;
  animation: textUnfoldLeftToRight 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both;
}
.home-page-wrap:not(.is-entered) .album-section-heading:not(.project-heading) h2 {
  animation: textUnfoldLeftToRight 0.62s cubic-bezier(0.22, 1, 0.36, 1) 1.05s both;
}
.home-page-wrap:not(.is-entered) .album-section-heading:not(.project-heading) a {
  display: inline-block;
  animation: textUnfoldLeftToRight 0.52s cubic-bezier(0.22, 1, 0.36, 1) 1.18s both;
}

/* ── Layer 4: 拍立得相片错峰显影与各自文字展开 (1.30s ~ 2.75s) ── */
.home-page-wrap:not(.is-entered) .memories > .memory-photo {
  animation: photoGentleFadeIn 0.80s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(1) { animation-delay: 1.30s; }
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(2) { animation-delay: 1.48s; }
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(3) { animation-delay: 1.66s; }
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(4) { animation-delay: 1.84s; }
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(5) { animation-delay: 2.02s; }
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(n+6) { animation-delay: 2.16s; }

/* 每张照片显影后，其身上的标题与题注文字逐个自左向右展开 */
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(1) .photo-caption strong,
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(1) .cover-title {
  animation: textUnfoldLeftToRight 0.58s cubic-bezier(0.22, 1, 0.36, 1) 1.42s both;
}
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(1) .photo-caption small,
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(1) .cover-date,
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(1) .cover-kicker {
  animation: textUnfoldLeftToRight 0.52s cubic-bezier(0.22, 1, 0.36, 1) 1.52s both;
}
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(1) .photo-backline {
  animation: textUnfoldLeftToRight 0.58s cubic-bezier(0.22, 1, 0.36, 1) 1.62s both;
}

.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(2) .photo-caption strong,
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(2) .cover-title {
  animation: textUnfoldLeftToRight 0.58s cubic-bezier(0.22, 1, 0.36, 1) 1.60s both;
}
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(2) .photo-caption small,
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(2) .cover-date {
  animation: textUnfoldLeftToRight 0.52s cubic-bezier(0.22, 1, 0.36, 1) 1.70s both;
}

.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(3) .photo-caption strong,
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(3) .cover-title {
  animation: textUnfoldLeftToRight 0.58s cubic-bezier(0.22, 1, 0.36, 1) 1.78s both;
}
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(3) .photo-caption small,
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(3) .cover-date {
  animation: textUnfoldLeftToRight 0.52s cubic-bezier(0.22, 1, 0.36, 1) 1.88s both;
}

.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(4) .photo-caption strong,
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(4) .cover-title {
  animation: textUnfoldLeftToRight 0.58s cubic-bezier(0.22, 1, 0.36, 1) 1.96s both;
}
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(5) .photo-caption strong,
.home-page-wrap:not(.is-entered) .memories > .memory-photo:nth-child(5) .cover-title {
  animation: textUnfoldLeftToRight 0.58s cubic-bezier(0.22, 1, 0.36, 1) 2.14s both;
}

/* 照片右侧手写边注便签 */
.home-page-wrap:not(.is-entered) .album-margin {
  animation: notePinFadeIn 0.68s cubic-bezier(0.22, 1, 0.36, 1) 1.90s both;
}
.home-page-wrap:not(.is-entered) .album-margin .album-note {
  animation: textUnfoldLeftToRight 0.66s cubic-bezier(0.22, 1, 0.36, 1) 1.98s both;
}
.home-page-wrap:not(.is-entered) .album-margin .album-note small {
  display: block;
  animation: textUnfoldLeftToRight 0.55s cubic-bezier(0.22, 1, 0.36, 1) 2.10s both;
}

/* ── Layer 5: 在造作品分区标题 (2.32s ~ 3.06s) ── */
.home-page-wrap:not(.is-entered) .project-heading .eyebrow {
  display: inline-block;
  animation: textUnfoldLeftToRight 0.52s cubic-bezier(0.22, 1, 0.36, 1) 2.32s both;
}
.home-page-wrap:not(.is-entered) .project-heading h2 {
  animation: textUnfoldLeftToRight 0.62s cubic-bezier(0.22, 1, 0.36, 1) 2.42s both;
}
.home-page-wrap:not(.is-entered) .project-heading a {
  display: inline-block;
  animation: textUnfoldLeftToRight 0.52s cubic-bezier(0.22, 1, 0.36, 1) 2.54s both;
}

/* ── Layer 6: 在造作品卡片展板自上而下展开 (2.60s ~ 3.65s) ── */
.home-page-wrap:not(.is-entered) .home-projects {
  animation: notePinFadeIn 0.68s cubic-bezier(0.22, 1, 0.36, 1) 2.60s both;
}
.home-page-wrap:not(.is-entered) .home-projects .project-title h2 {
  animation: textUnfoldLeftToRight 0.58s cubic-bezier(0.22, 1, 0.36, 1) 2.68s both;
}
.home-page-wrap:not(.is-entered) .home-projects .badge-status {
  display: inline-block;
  animation: textUnfoldLeftToRight 0.50s cubic-bezier(0.22, 1, 0.36, 1) 2.77s both;
}
.home-page-wrap:not(.is-entered) .home-projects .project-summary {
  animation: textUnfoldLeftToRight 0.66s cubic-bezier(0.22, 1, 0.36, 1) 2.85s both;
}
.home-page-wrap:not(.is-entered) .home-projects .project-next-step {
  animation: textUnfoldLeftToRight 0.60s cubic-bezier(0.22, 1, 0.36, 1) 2.95s both;
}
.home-page-wrap:not(.is-entered) .home-projects .project-facts span,
.home-page-wrap:not(.is-entered) .home-projects .project-facts time {
  animation: textUnfoldLeftToRight 0.52s cubic-bezier(0.22, 1, 0.36, 1) 3.03s both;
}
.home-page-wrap:not(.is-entered) .home-projects .project-actions {
  animation: notePinFadeIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 3.10s both;
}

/* ── Layer 7: 底部动态条 (3.18s ~ 3.78s) ── */
.home-page-wrap:not(.is-entered) .home-update-strip {
  animation: textUnfoldLeftToRight 0.60s cubic-bezier(0.22, 1, 0.36, 1) 3.18s both;
}

/* ── Layer 8: 最底端 相册落款 (3.32s ~ 3.90s) ── */
.home-page-wrap:not(.is-entered) .album-bottomline > span {
  animation: textUnfoldLeftToRight 0.58s cubic-bezier(0.22, 1, 0.36, 1) 3.32s both;
}

/* ───────────────────────────────────────────────────────────────────
   2. 文章时间线页面入场动效绑定：自上而下逐级沉降 (Articles Timeline Cascading)
   ─────────────────────────────────────────────────────────────────── */
/* ── Layer 1: 最上方 导言 Header (0.12s ~ 1.30s) ── */
.articles-canvas-wrap:not(.is-entered) .timeline-page-header .eyebrow {
  display: inline-block;
  animation: textUnfoldLeftToRight 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.articles-canvas-wrap:not(.is-entered) .timeline-page-header h1 {
  animation: textUnfoldLeftToRight 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both;
}
.articles-canvas-wrap:not(.is-entered) .timeline-page-header p {
  animation: textUnfoldLeftToRight 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

/* ── Layer 2: 分类筛选槽底 (0.95s ~ 1.65s) ── */
.articles-canvas-wrap:not(.is-entered) .timeline-category-bar {
  animation: notePinFadeIn 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both;
}

/* ── Layer 3: 搜索输入框 (1.25s ~ 1.95s) ── */
.articles-canvas-wrap:not(.is-entered) .timeline-search-input-wrap {
  animation: notePinFadeIn 1.0s cubic-bezier(0.22, 1, 0.36, 1) 1.25s both;
}

/* ── Layer 4: 时间线画卷底板展开 (1.50s ~ 2.45s) ── */
.articles-canvas-wrap:not(.is-entered) .timeline-scroll-shell {
  animation: albumSheetUnfold 1.15s cubic-bezier(0.16, 1, 0.3, 1) 1.50s both;
}

/* ── Layer 5: 时间线节点照片错峰浅入显影与文字展开 (1.80s ~ 3.30s) ── */
.articles-canvas-wrap:not(.is-entered) .timeline-viewport .timeline-photo {
  animation: photoGentleFadeIn 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.articles-canvas-wrap:not(.is-entered) .timeline-viewport .timeline-node:nth-child(1) .timeline-photo { animation-delay: 1.80s; }
.articles-canvas-wrap:not(.is-entered) .timeline-viewport .timeline-node:nth-child(2) .timeline-photo { animation-delay: 2.05s; }
.articles-canvas-wrap:not(.is-entered) .timeline-viewport .timeline-node:nth-child(3) .timeline-photo { animation-delay: 2.30s; }
.articles-canvas-wrap:not(.is-entered) .timeline-viewport .timeline-node:nth-child(4) .timeline-photo { animation-delay: 2.55s; }
.articles-canvas-wrap:not(.is-entered) .timeline-viewport .timeline-node:nth-child(5) .timeline-photo { animation-delay: 2.80s; }
.articles-canvas-wrap:not(.is-entered) .timeline-viewport .timeline-node:nth-child(n+6) .timeline-photo { animation-delay: 3.05s; }

.articles-canvas-wrap:not(.is-entered) .timeline-photo .photo-caption strong {
  animation: textUnfoldLeftToRight 0.95s cubic-bezier(0.22, 1, 0.36, 1) 2.00s both;
}
.articles-canvas-wrap:not(.is-entered) .timeline-photo .photo-caption small {
  animation: textUnfoldLeftToRight 0.85s cubic-bezier(0.22, 1, 0.36, 1) 2.15s both;
}
.articles-canvas-wrap:not(.is-entered) .timeline-photo .photo-backline {
  animation: textUnfoldLeftToRight 1.0s cubic-bezier(0.22, 1, 0.36, 1) 2.30s both;
}

/* ───────────────────────────────────────────────────────────────────
   3. 文章正文阅读页入场动效绑定：自上而下自然浸润 (Article Reader Cascading)
   ─────────────────────────────────────────────────────────────────── */
/* ── Layer 1: 最上方 返回相册导航 (0.12s ~ 0.90s) ── */
.reading-wrap:not(.about-wrap):not(.is-entered) .reader-return {
  animation: notePinFadeIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.reading-wrap:not(.about-wrap):not(.is-entered) .reader-return a,
.reading-wrap:not(.about-wrap):not(.is-entered) .reader-return span {
  display: inline-block;
  animation: textUnfoldLeftToRight 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

/* ── Layer 2: 封面照片与回形针 (0.50s ~ 1.50s) ── */
.reading-wrap:not(.about-wrap):not(.is-entered) .reader-photo {
  animation: photoGentleFadeIn 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.50s both;
}
.reading-wrap:not(.about-wrap):not(.is-entered) .reader-clip {
  animation: notePinFadeIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.70s both;
}

/* ── Layer 3: 羊皮纸大信笺与顶部胶带 (0.80s ~ 1.80s) ── */
.reading-wrap:not(.about-wrap):not(.is-entered) .reading-sheet {
  animation: albumSheetUnfold 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.80s both;
}
.reading-wrap:not(.about-wrap):not(.is-entered) .letter-tape {
  animation: notePinFadeIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both;
}

/* ── Layer 4: 信笺内文章题头文字逐段展开 (1.15s ~ 2.40s) ── */
.reading-wrap:not(.about-wrap):not(.is-entered) .article-header h1 {
  animation: textUnfoldLeftToRight 1.15s cubic-bezier(0.22, 1, 0.36, 1) 1.15s both;
}
.reading-wrap:not(.about-wrap):not(.is-entered) .article-summary {
  animation: textUnfoldLeftToRight 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.45s both;
}
.reading-wrap:not(.about-wrap):not(.is-entered) .article-byline {
  animation: textUnfoldLeftToRight 1.0s cubic-bezier(0.22, 1, 0.36, 1) 1.75s both;
}

/* ── Layer 5: 正文与目录 (2.05s ~ 3.20s) ── */
.reading-wrap:not(.about-wrap):not(.is-entered) .prose {
  animation: photoGentleFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 2.05s both;
}
.reading-wrap:not(.about-wrap):not(.is-entered) .article-toc {
  animation: notePinFadeIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 2.35s both;
}

/* ── Layer 6: 底部相邻文章导航 (2.65s ~ 3.50s) ── */
.reading-wrap:not(.about-wrap):not(.is-entered) .memory-browse {
  animation: notePinFadeIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 2.65s both;
}

/* ───────────────────────────────────────────────────────────────────
   4. 项目名录与工坊页入场动效绑定：自上而下逐段呈现 (Projects Directory Cascading)
   ─────────────────────────────────────────────────────────────────── */
/* ── Layer 1: 最上方 头部 Header (0.12s ~ 1.30s) ── */
.projects-canvas-wrap:not(.is-entered) .projects-eyebrow {
  display: inline-block;
  animation: textUnfoldLeftToRight 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.projects-canvas-wrap:not(.is-entered) .projects-canvas-header h1 {
  animation: textUnfoldLeftToRight 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both;
}
.projects-canvas-wrap:not(.is-entered) .projects-desc {
  animation: textUnfoldLeftToRight 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

/* ── Layer 2: 项目统计概览条 (0.95s ~ 1.65s) ── */
.projects-canvas-wrap:not(.is-entered) .projects-overview-bar {
  animation: notePinFadeIn 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both;
}

/* ── Layer 3: 分区标牌 (1.30s ~ 2.00s) ── */
.projects-canvas-wrap:not(.is-entered) .section-kicker {
  display: inline-block;
  animation: textUnfoldLeftToRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.30s both;
}
.projects-canvas-wrap:not(.is-entered) .section-title {
  animation: textUnfoldLeftToRight 1.0s cubic-bezier(0.22, 1, 0.36, 1) 1.48s both;
}

/* ── Layer 4: 照壁展板与目录行自上而下错峰显影 (1.70s ~ 3.10s) ── */
.projects-canvas-wrap:not(.is-entered) .illuminated-project-board {
  animation: albumSheetUnfold 1.15s cubic-bezier(0.16, 1, 0.3, 1) 1.70s both;
}
.projects-canvas-wrap:not(.is-entered) .project-name-item {
  animation: notePinFadeIn 1.0s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.projects-canvas-wrap:not(.is-entered) .project-name-item:nth-child(1) { animation-delay: 1.90s; }
.projects-canvas-wrap:not(.is-entered) .project-name-item:nth-child(2) { animation-delay: 2.15s; }
.projects-canvas-wrap:not(.is-entered) .project-name-item:nth-child(3) { animation-delay: 2.40s; }
.projects-canvas-wrap:not(.is-entered) .project-name-item:nth-child(4) { animation-delay: 2.65s; }

.projects-canvas-wrap:not(.is-entered) .project-name-text {
  animation: textUnfoldLeftToRight 0.95s cubic-bezier(0.22, 1, 0.36, 1) 2.05s both;
}
.projects-canvas-wrap:not(.is-entered) .project-summary-text {
  animation: textUnfoldLeftToRight 1.05s cubic-bezier(0.22, 1, 0.36, 1) 2.20s both;
}

/* ── Layer 5: 压轴登场的翻页器（仅作品多于 4 件时存在）(2.95s ~ 3.75s) ── */
.projects-canvas-wrap:not(.is-entered) .projects-pagination {
  animation: notePinFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 2.95s both;
}
.projects-canvas-wrap:not(.is-entered) .projects-pagination .page-btn,
.projects-canvas-wrap:not(.is-entered) .projects-pagination .pagination-status {
  display: inline-block;
  animation: textUnfoldLeftToRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) 3.12s both;
}

/* ───────────────────────────────────────────────────────────────────
   5. 动态手记页面入场动效绑定：自上而下打孔显影 (Updates & Logbook Cascading)
   ─────────────────────────────────────────────────────────────────── */
.updates-canvas-wrap:not(.is-entered) .update-filters-bar {
  animation: notePinFadeIn 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both;
}
.updates-canvas-wrap:not(.is-entered) .updates-punch-legend {
  animation: notePinFadeIn 1.0s cubic-bezier(0.22, 1, 0.36, 1) 1.25s both;
}
.updates-canvas-wrap:not(.is-entered) .project-activities-list .project-row {
  animation: notePinFadeIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.updates-canvas-wrap:not(.is-entered) .project-activities-list .project-row:nth-child(1) { animation-delay: 1.55s; }
.updates-canvas-wrap:not(.is-entered) .project-activities-list .project-row:nth-child(2) { animation-delay: 1.80s; }
.updates-canvas-wrap:not(.is-entered) .project-activities-list .project-row:nth-child(3) { animation-delay: 2.05s; }
.updates-canvas-wrap:not(.is-entered) .project-activities-list .project-row:nth-child(n+4) { animation-delay: 2.30s; }

/* 动态页翻页器（仅多于 15 条或翻页后存在）*/
.updates-canvas-wrap:not(.is-entered) .updates-pagination {
  animation: notePinFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 2.60s both;
}
.updates-canvas-wrap:not(.is-entered) .updates-pagination .page-btn,
.updates-canvas-wrap:not(.is-entered) .updates-pagination .pagination-status {
  display: inline-block;
  animation: textUnfoldLeftToRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) 2.78s both;
}

/* ───────────────────────────────────────────────────────────────────
   6. 关于页面信笺入场动效绑定：纸张铺开后信件自上而下书就 (About Cascading)
   ─────────────────────────────────────────────────────────────────── */
.about-wrap:not(.is-entered) .about-sheet {
  animation: albumSheetUnfold 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both;
}
.about-wrap:not(.is-entered) .about-tape {
  animation: notePinFadeIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
.about-wrap:not(.is-entered) .about-eyebrow {
  display: inline-block;
  animation: textUnfoldLeftToRight 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.40s both;
}
.about-wrap:not(.is-entered) .about-heading h1 {
  animation: textUnfoldLeftToRight 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.60s both;
}
.about-wrap:not(.is-entered) .about-desc {
  animation: textUnfoldLeftToRight 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.82s both;
}
.about-wrap:not(.is-entered) .about-prose {
  animation: photoGentleFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.15s both;
}
.about-wrap:not(.is-entered) .about-action-row {
  animation: notePinFadeIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 1.55s both;
}

/* ───────────────────────────────────────────────────────────────────
   7. 右下角悬浮印章优雅浮升 (Floating Stamp FAB Rise)
   ─────────────────────────────────────────────────────────────────── */
.floating-appearance-toggle {
  animation: fabStampRise 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

/* ───────────────────────────────────────────────────────────────────
   8. 全站出场阶段：点击站内链接跳转离开当前页 (Global Exit Transition)
   ─────────────────────────────────────────────────────────────────── */
.page-motion-wrap.is-exiting {
  animation: homePageExit 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
  pointer-events: none;
}

/* ───────────────────────────────────────────────────────────────────
   9. 无障碍偏好：用户启用减少动效时禁用所有非必要过渡
   ─────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .page-motion-wrap:not(.is-entered) *,
  .page-motion-wrap:not(.is-entered),
  .floating-appearance-toggle,
  .page-motion-wrap.is-exiting {
    animation: none !important;
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
