/* === CSS Variables（宣纸黑墨版：字用橙色系，宣纸浅底上清晰，黑墨流过也显眼） === */
:root {
  --bg-cream:      #FAF8F5;
  --bg-cream-2:    #F5F1EA;
  --bg-dark:       rgba(26, 23, 20, 0.88);
  --text-primary:  #B85433;   /* 橙色主文字（宣纸浅底清晰，黑墨流过显眼）*/
  --text-body:     #B85433;
  --text-muted:    #C97056;
  --text-faint:    #D49380;
  --text-light:    #FAF8F5;
  /* 面板内（sidebar/peek/post-detail 浅色背景上）的深字 */
  --text-on-panel: #1A1714;
  --text-on-panel-muted: #5A5550;
  --text-on-panel-faint: #8A8580;
  --accent:        #C45D3E;
  --accent-soft:   rgba(196, 93, 62, 0.12);
  --accent-line:   rgba(196, 93, 62, 0.2);
  --rule:          rgba(196, 93, 62, 0.25);

  --font-serif:   'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --font-sans:    'Noto Sans SC', -apple-system, 'PingFang SC', sans-serif;
  --font-slab:    'Roboto Slab', Georgia, serif;

  --fs-h1: 3.4em;
  --fs-h2: 2.0em;
  --fs-h3: 1.5em;
  --fs-h4: 1.1em;
  --fs-body: 1.05em;
  --fs-list-item: 0.95em;
  --fs-tag: 0.7em;
  --fs-hint: 0.7em;
  --fs-footer: 0.8em;
  --fs-sidebar-item: 0.85em;

  --sidebar-w: 6em;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-serif);
  font-size: 100%;
  line-height: 1.55;
  color: var(--text-body);
  background: transparent;   /* ★ 让流体透出 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

button {
  font-family: inherit; font-size: inherit;
  border: 0; background: none; cursor: pointer; padding: 0;
}

/* === 流体 canvas（背景层，接收鼠标） === */
#fluid-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  cursor: crosshair;
}

/* === 内容层 === */
#app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  pointer-events: none;   /* 默认穿透到流体 canvas */
}
/* 交互元素恢复指针事件（#main/#sidebar 本身保持 none，让空白处穿透到流体） */
#app a, #app button, #app li[data-cat], #app .board,
#app .stage-list-item, #app .stage-archive-link,
#app .peek, #app .peek a, #app .post-detail, #app .post-detail a,
#app .skip-link, #app .sidebar-logo {
  pointer-events: auto;
}

/* 橙色字在宣纸和黑墨上都显眼，无需额外阴影 */
.banner-title, .banner-tagline, .board-title, .board-hint,
.footer-meta, .stage-title, .stage-meta, .stage-list-item,
.sidebar-logo {
  /* 无阴影 */
}

#main {
  padding: 3em 3em 0 3em;
  min-width: 0;
}

/* === Sidebar === */
#sidebar {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 2em 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4em;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.sidebar-logo {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-sans);
  font-size: 1.0em;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5em;
}

#l1-nav { width: 100%; }
#l1-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4em;
}

#l1-nav li {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-sans);
  font-size: var(--fs-sidebar-item);
  letter-spacing: 0.15em;
  padding: 0.4em 0;
  opacity: 0.55;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, opacity 180ms ease-out;
}

#l1-nav li[data-placeholder="true"] {
  opacity: 0.25;
  position: relative;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}

#l1-nav li[data-placeholder="true"]:hover {
  opacity: 0.6;
  transform: scale(1.1);
}

#l1-nav li[data-placeholder="true"]:hover::after {
  content: "正在开发";
  position: absolute;
  left: calc(100% + 0.5em);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: horizontal-tb;
  font-size: 0.8em;
  color: var(--text-light);
  background: var(--bg-dark);
  padding: 0.3em 0.6em;
  border: 1px solid var(--accent);
  white-space: nowrap;
}

#l1-nav li:hover,
#l1-nav li.is-current {
  background: var(--accent);
  color: var(--text-light);
  opacity: 1;
  font-weight: 700;
  padding: 0.4em 0.4em;
}

/* 归档页 L1 用 <a> 跳转（无 app.js），继承 li 样式避免默认链接外观 */
#l1-nav li a {
  color: inherit;
  text-decoration: none;
}

.sidebar-graph-link {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-sans);
  font-size: var(--fs-sidebar-item);
  letter-spacing: 0.15em;
  color: var(--text-light);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 180ms ease-out, color 180ms ease-out;
  margin-top: auto;
  padding: 0.4em 0;
}
.sidebar-graph-link:hover {
  opacity: 1;
  color: var(--accent);
}

/* === Banner === */
.banner {
  padding: 2em 0 3em 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3em;
}

.banner-title {
  font-family: var(--font-slab);
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.3em 0;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.banner-tagline {
  font-family: var(--font-serif);
  font-size: 1.2em;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

/* === 4 板块 (Home Boards) === */
.home-boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em 3em;
  margin-bottom: 4em;
}

.board {
  padding: 1.5em 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  transition: border-color 180ms ease-out, transform 180ms ease-out;
}

.board:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.board:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.board-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.3em 0;
}

.board-hint {
  font-family: var(--font-serif);
  font-size: 0.95em;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* === Stage (hover 出现) === */
.stage {
  padding: 1em 0 4em 0;
  animation: stage-fade-in 240ms ease-out;
}

@keyframes stage-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stage-title {
  font-family: var(--font-slab);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.2em 0;
  line-height: 1.1;
}

.stage-meta {
  font-family: var(--font-sans);
  font-size: var(--fs-hint);
  color: var(--text-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 2em 0;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--rule);
}

.stage-list {
  display: flex;
  flex-direction: column;
}

.stage-list-item {
  font-family: var(--font-sans);
  font-size: var(--fs-list-item);
  color: var(--text-body);
  padding: 0.8em 0.6em;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  display: flex;
  gap: 1em;
  align-items: baseline;
  transition: background-color 180ms ease-out, color 180ms ease-out, padding-left 180ms ease-out;
  border-radius: 4px;
  margin: 0 -0.6em;  /* 让背景块视觉对齐，不影响布局宽度 */
}

.stage-list-item:hover,
.stage-list-item.is-active {
  background: var(--accent);
  color: var(--text-light);
  padding-left: 1em;
}

.stage-list-item:hover .stage-list-date,
.stage-list-item.is-active .stage-list-date {
  color: rgba(250, 248, 245, 0.75);
}

.stage-list-date {
  font-family: var(--font-slab);
  color: var(--text-faint);
  font-size: 0.85em;
  flex-shrink: 0;
  min-width: 5em;
}

.stage-list-title {
  flex: 1;
}

.stage-list-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.stage-archive-link {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.65em 1.4em;
  font-size: 0.95rem;
  color: var(--accent);
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
}

.stage-archive-link:hover,
.stage-archive-link:focus-visible {
  background: var(--accent);
  color: var(--bg-cream);
  outline: none;
}

/* === Peek (hover 出现) === */
.peek {
  /* in-flow; fills right column when #stage-peek-row.is-peeking */
  position: relative;
  overflow: hidden;
  background: rgba(245, 241, 234, 0.82);   /* 半透明，流体透出 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--bg-dark-solid, #1A1714);   /* peek 内文字深色（在浅色面板上） */
  border-left: 3px solid var(--accent);
  padding: 3em 3.5em 3em 3em;
  min-height: 70vh;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 320ms ease-out, transform 320ms ease-out;
}

.peek.is-open {
  opacity: 1;
  transform: translateX(0);
}

/* peek 是浅色面板，内部文字强制深色（覆盖 body 的浅色继承） */
.peek, .peek .peek-date, .peek .peek-title, .peek .peek-summary,
.peek .peek-summary p, .peek .peek-summary li, .peek .peek-summary strong,
.peek .peek-summary h2, .peek .peek-summary h3, .peek .peek-summary a {
  color: #1A1714;
  text-shadow: none;
}
.peek .peek-summary a { color: var(--accent); }
.peek .peek-date { color: #8A8580; }

.peek-content {
  position: relative;
  z-index: 1;
  max-width: 38em;
}

/* Particle layers (8 small dots floating in background) */
.particle {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.particle.p1 { width: 4px;  height: 4px;  top: 12%;  left: 18%; animation: float-1 14s ease-in-out infinite; }
.particle.p2 { width: 6px;  height: 6px;  top: 28%;  left: 78%; animation: float-2 18s ease-in-out infinite; animation-delay: -3s; }
.particle.p3 { width: 3px;  height: 3px;  top: 55%;  left: 32%; animation: float-3 12s ease-in-out infinite; animation-delay: -6s; }
.particle.p4 { width: 5px;  height: 5px;  top: 72%;  left: 88%; animation: float-1 16s ease-in-out infinite; animation-delay: -2s; }
.particle.p5 { width: 4px;  height: 4px;  top: 88%;  left: 22%; animation: float-2 20s ease-in-out infinite; animation-delay: -8s; }
.particle.p6 { width: 3px;  height: 3px;  top: 8%;   left: 92%; animation: float-3 10s ease-in-out infinite; animation-delay: -4s; }
.particle.p7 { width: 5px;  height: 5px;  top: 42%;  left: 12%; animation: float-1 22s ease-in-out infinite; animation-delay: -10s; }
.particle.p8 { width: 4px;  height: 4px;  top: 65%;  left: 58%; animation: float-2 15s ease-in-out infinite; animation-delay: -1s; }

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0);     opacity: 0; }
  20%      { opacity: 0.5; }
  50%      { transform: translate(30px, -25px); opacity: 0.35; }
  80%      { opacity: 0.5; }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0);     opacity: 0; }
  25%      { opacity: 0.4; }
  50%      { transform: translate(-20px, 30px); opacity: 0.3; }
  75%      { opacity: 0.4; }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0);     opacity: 0; }
  30%      { opacity: 0.45; }
  60%      { transform: translate(15px, 20px); opacity: 0.3; }
}

.peek-date {
  font-family: var(--font-slab);
  font-size: 0.9em;
  color: var(--text-muted);
  margin: 0 0 0.5em 0;
}

.peek-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1em 0;
  line-height: 1.2;
}

.peek-summary {
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  color: var(--text-body);
  line-height: 1.6;
}

.peek-summary h1, .peek-summary h2, .peek-summary h3, .peek-summary h4 {
  font-family: var(--font-serif);
  margin: 1.2em 0 0.4em 0;
  color: var(--text-primary);
}

.peek-summary h3 { font-size: 1.2em; font-weight: 700; }
.peek-summary h4 { font-size: 1.05em; font-weight: 700; }

.peek-summary p {
  margin: 0 0 0.8em 0;
}

.peek-summary ul, .peek-summary ol {
  padding-left: 1.4em;
  margin: 0 0 0.8em 0;
}

.peek-summary ul { list-style: disc; }
.peek-summary ol { list-style: decimal; }

.peek-summary li {
  margin: 0.2em 0;
}

.peek-summary blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1em;
  margin: 0.8em 0;
  color: var(--text-muted);
  font-style: italic;
}

.peek-summary hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.2em 0;
}

.peek-summary a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.peek-summary code {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.9em;
  background: var(--bg-cream);
  padding: 0.1em 0.3em;
  border: 1px solid var(--rule);
}

/* === Footer === */
.site-footer {
  margin-top: 4em;
  padding: 1.5em 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: var(--fs-footer);
  color: var(--text-faint);
}

.footer-meta { margin: 0; }

/* 备案信息：独占一行靠右（site-footer flex-wrap 换行） */
.footer-beian {
  flex-basis: 100%;
  margin-top: 0.5em;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.9em;
  line-height: 1.6;
}
.footer-beian a { color: inherit; }

.footer-links {
  display: flex;
  gap: 1.5em;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 180ms ease-out;
  position: relative;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease-out;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}


/* === Skip link (A11y) === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: var(--text-light);
  padding: 0.6em 1em;
  font-family: var(--font-sans);
  font-size: 0.9em;
  z-index: 9999;
  transition: top 180ms ease-out;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--text-light);
  outline-offset: -4px;
}

/* === Screen-reader-only === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* === Stage + Peek Row (2-column when peeking) === */
#stage-peek-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  transition: grid-template-columns 420ms cubic-bezier(0.4, 0, 0.2, 1);
}

#stage-peek-row.is-peeking {
  /* 1/3 sidebar+title : 2/3 peek — measured of full viewport */
  grid-template-columns: 1fr 2fr;
}

#stage-peek-row.is-peeking #stage {
  padding-right: 2em;
  border-right: 1px solid var(--rule);
  margin-right: 0;
}

/* Stage alone (no peek) — keep its padding */
#stage-peek-row:not(.is-peeking) #stage {
  padding: 1em 0 4em 0;
}

/* Peek content cascade reveal (children fade up with stagger) */
.peek.is-open .peek-content > * {
  animation: cascade-in 380ms ease-out backwards;
}
.peek.is-open .peek-content > *:nth-child(1) { animation-delay:  60ms; }
.peek.is-open .peek-content > *:nth-child(2) { animation-delay: 140ms; }
.peek.is-open .peek-content > *:nth-child(3) { animation-delay: 220ms; }
.peek.is-open .peek-content > *:nth-child(4) { animation-delay: 300ms; }
.peek.is-open .peek-content > *:nth-child(5) { animation-delay: 380ms; }
.peek.is-open .peek-content > *:nth-child(n+6) { animation-delay: 460ms; }

@keyframes cascade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Peek clickable (cursor) === */
.peek { cursor: pointer; }

/* === Post Detail (full width in #main) === */
.post-detail {
  max-width: 50em;
  margin: 0 auto;
  padding: 2.5em 3em 3em 3em;   /* 内边距作面板 padding */
  background: rgba(245, 241, 234, 0.82);   /* 半透明阅读面板 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(250, 248, 245, 0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  margin-top: 2em;
  margin-bottom: 4em;
  animation: post-fade-in 280ms ease-out;
}

/* post-detail 是浅色面板，内部文字强制深色 */
.post-detail .post-meta,
.post-detail .post-title,
.post-detail .post-body,
.post-detail .post-body p,
.post-detail .post-body li,
.post-detail .post-body strong,
.post-detail .post-body h1,
.post-detail .post-body h2,
.post-detail .post-body h3,
.post-detail .post-body h4,
.post-detail .post-body blockquote {
  color: #1A1714;
  text-shadow: none;
}
.post-detail .post-meta { color: #8A8580; }
.post-detail .post-body a { color: #C45D3E; }

@keyframes post-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-back {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85em;
  color: var(--text-muted);
  margin-bottom: 2em;
  letter-spacing: 0.05em;
  transition: color 180ms ease-out, transform 180ms ease-out;
}
.post-back:hover {
  color: var(--accent);
  transform: translateX(-4px);
}
.post-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.post-header {
  margin-bottom: 2.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid var(--rule);
}

.post-meta {
  font-family: var(--font-sans);
  font-size: 0.8em;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 1em 0;
}

.post-cat-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.post-cat-link:hover { color: var(--text-primary); border-color: var(--text-primary); }

.post-title {
  font-family: var(--font-serif);
  font-size: 2.6em;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.post-body {
  font-family: var(--font-serif);
  font-size: 1.1em;
  line-height: 1.75;
  color: var(--text-body);
}

.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin: 1.6em 0 0.6em 0;
  font-weight: 700;
}
.post-body h3 { font-size: 1.4em; }
.post-body h4 { font-size: 1.15em; }

.post-body p { margin: 0 0 1em 0; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 1em 0; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin: 0.3em 0; }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.2em 0 0.2em 1.2em;
  margin: 1.2em 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.5em 0;
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body code {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.9em;
  background: var(--bg-cream-2);
  padding: 0.1em 0.3em;
  border: 1px solid var(--rule);
}

/* Mobile: post-detail full width */
@media (max-width: 720px) {
  .post-title { font-size: 2em; }
  .post-body  { font-size: 1.05em; }
}


/* === [hidden] override (display: grid 压过 hidden) === */
[hidden] { display: none !important; }


/* === Mobile fallback === */
@media (max-width: 720px) {
  :root {
    --sidebar-w: 4em;
    --fs-h1: 2.4em;
    --fs-h2: 1.6em;
    --fs-h3: 1.25em;
  }

  #app {
    grid-template-columns: var(--sidebar-w) 1fr;
  }

  #main {
    padding: 2em 1.5em 0 1.5em;
  }

  .home-boards {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  /* Mobile: peek 隐藏, 单列 */
  #stage-peek-row,
  #stage-peek-row.is-peeking {
    grid-template-columns: 1fr;
  }
  .peek { display: none; }

  /* Sidebar 在移动端: <a> 链接, 点击跳转 */
  #l1-nav li a {
    display: block;
    color: inherit;
    text-decoration: none;
  }
}


/* === prefers-reduced-motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* === 静态归档页 (/category/<id>.html) === */
body.cat-archive .banner-back {
  display: inline-block;
  margin-bottom: 1.2em;
  font-size: 0.95rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 200ms ease;
}

body.cat-archive .banner-back:hover,
body.cat-archive .banner-back:focus-visible {
  color: var(--accent);
  outline: none;
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.archive-item {
  display: flex;
  align-items: baseline;
  gap: 1.4em;
  padding: 1em 0.5em;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
  text-decoration: none;
  transition: background 180ms ease, padding-left 180ms ease;
}

.archive-item:hover,
.archive-item:focus-visible {
  background: var(--bg-cream-2);
  padding-left: 1.2em;
  outline: none;
}

.archive-date {
  flex: 0 0 7.5em;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.archive-title {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.5;
}
/* === knowledge peek：单列居中，透明背景，朱砂印章 === */
#stage-peek-row.is-kb-peeking {
  grid-template-columns: 1fr;
}
#stage-peek-row.is-kb-peeking .peek {
  max-width: 40em;
  margin: 0 auto;
  min-height: auto;
  /* 透明融入流体：去白底、去 blur、去左 border */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-left: 0;
  padding: 3em 2em;
  cursor: pointer;
}

.peek-content.kb-peek-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* === 朱砂方印（第一稿设计：简洁实色 + 双层边框） === */
/* 红底白字，方块印章。不做作旧纹理，保持干净。 */

.kb-peek-seal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9em;
  height: 9em;
  margin: 0 auto 2em;
  background: #C82018;
  border-radius: 6px;
  box-shadow:
    /* 外层 inset：米色细描边（印章与宣纸的边界感） */
    inset 0 0 0 2px rgba(250,248,245,0.18),
    /* 红色投影：保持色调统一 */
    0 6px 22px rgba(170,26,20,0.45),
    0 2px 6px rgba(26,23,20,0.18);
}

/* 内描边（双线印章边框） */
.kb-peek-seal-edge {
  position: absolute;
  inset: 0.6em;
  border: 2px double rgba(255,255,255,0.55);
  border-radius: 3px;
  pointer-events: none;
}

/* 三字竖排 */
.kb-peek-seal-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
  line-height: 1;
}
.kb-peek-seal-char {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 2.2em;
  color: #FFFFFF;
  letter-spacing: 0;
}

/* peek 文字（透明背景上，橙色显眼） */
#stage-peek-row.is-kb-peeking .peek .peek-title {
  font-family: var(--font-serif);
  font-size: 1.6em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.4em 0;
  letter-spacing: 0.05em;
  text-shadow: none;
}
#stage-peek-row.is-kb-peeking .peek .peek-summary {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05em;
  letter-spacing: 0.06em;
  margin: 0;
  max-width: 22em;
  line-height: 1.7;
  text-shadow: none;
}

@media (max-width: 720px) {
  .kb-peek-seal { width: 7em; height: 7em; }
  .kb-peek-seal-char { font-size: 1.7em; }
}
