:root {
  --dark-bg: #131012;
  --dark-deep: #0b090a;
  --paper: #f5f1ea;
  --paper-soft: #efe9de;
  --paper-card: #faf7f1;
  --ink: #2b2325;
  --ink-mid: #554843;
  --ink-muted: #847465;
  --gold: #c8a66e;
  --gold-bright: #efd6a3;
  --gold-line: rgba(182, 151, 102, 0.34);
  --serif-zh: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --serif-en: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--dark-bg);
  color: var(--ink);
  font-family: var(--serif-zh);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 1.4s cubic-bezier(.22, 1, .36, 1);
}
body[data-state="lit"] { background: var(--paper); }
[hidden] { display: none !important; }
.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;
}
button, input, a { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; }

/* 晨光推窗光束（不是登录跳转，是一束光漫开） */
#morning-wash {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 68% 92% at 50% 48%, rgba(250, 244, 232, .98) 0%, rgba(245, 236, 218, .92) 48%, rgba(235, 215, 178, .55) 78%, rgba(19, 16, 18, 0) 100%);
  transform: scaleX(0.012);
  transform-origin: center center;
}
body.opening #morning-wash {
  animation: window-light-open 1.85s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes window-light-open {
  0%   { opacity: .35; transform: scaleX(0.008); }
  42%  { opacity: 1;   transform: scaleX(1.15); }
  72%  { opacity: .96; transform: scaleX(1.35); }
  100% { opacity: 0;   transform: scaleX(1.5); }
}

/* ==================== 1. 暗室门扉 ==================== */
#threshold {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3vw, 34px) clamp(20px, 5vw, 56px);
  color: #efe5d4;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(44, 33, 28, .44), transparent 72%),
    repeating-linear-gradient(90deg, rgba(255, 245, 224, .012) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #120e11 0%, #171215 52%, #0e0b0d 100%);
  transition: opacity 0.9s ease;
}
body.opening #threshold { opacity: 0; pointer-events: none; }

.threshold-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.brand-dark {
  display: flex; align-items: center; gap: 11px; color: var(--gold-bright);
}
.brand-dark img { width: 30px; height: 30px; object-fit: contain; }
.brand-dark > span { font: 16px/1.1 var(--serif-en); letter-spacing: .16em; }
.brand-dark small { display: block; font: 9.5px/1.3 var(--serif-zh); letter-spacing: .18em; margin-top: 4px; color: #ccb68e; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 34px; padding: 5px 11px; border-radius: 3px;
  border: .5px solid rgba(216, 186, 130, .42);
  background: rgba(24, 18, 21, .62);
  color: #a9977f; font: 11.5px/1.2 var(--serif-en); letter-spacing: .05em;
  transition: border-color .25s, color .25s, background-color .25s;
}
.lang-switch i { font-style: normal; opacity: .45; }
html[data-lang="zh"] .lang-switch .lang-zh,
html[data-lang="en"] .lang-switch .lang-en { color: var(--gold-bright); font-weight: 600; }
.lang-switch:hover { border-color: var(--gold-bright); }

.lang-switch.light {
  background: rgba(250, 247, 241, .75);
  border-color: var(--gold-line);
  color: var(--ink-muted);
}
html[data-lang="zh"] .lang-switch.light .lang-zh,
html[data-lang="en"] .lang-switch.light .lang-en { color: var(--ink); }

/* 暗室中央那一道极细的晨光缝隙 */
.light-slit {
  position: fixed;
  top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 240px;
  pointer-events: none;
  z-index: 0;
  display: grid;
  place-items: center;
}
.slit-core {
  width: 1.5px;
  height: 58vh;
  background: linear-gradient(180deg, transparent 0%, rgba(239, 214, 163, .38) 25%, rgba(255, 244, 218, .92) 50%, rgba(239, 214, 163, .38) 75%, transparent 100%);
  animation: slit-breathe 5.6s ease-in-out infinite;
}
.slit-halo {
  position: absolute;
  width: 180px;
  height: 62vh;
  background: radial-gradient(ellipse at center, rgba(235, 204, 148, .17) 0%, rgba(216, 186, 130, .06) 44%, transparent 72%);
  animation: slit-breathe 5.6s ease-in-out infinite;
}
@keyframes slit-breathe {
  0%, 100% { opacity: .62; transform: scaleY(.97); }
  50%      { opacity: 1;   transform: scaleY(1.03); }
}

.threshold-center {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: min(560px, 100%);
  text-align: center;
  padding: 28px 10px;
}
.eyebrow {
  margin: 0;
  font: 11px/1.5 var(--serif-en);
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
}
.threshold-center h1 {
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: .16em;
  margin: 18px 0 16px;
  color: #fbf1df;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
}
.dark-quote {
  margin: 0 auto 36px;
  max-width: 440px;
  font-size: 15px;
  line-height: 2;
  color: #d9cbb5;
  letter-spacing: .04em;
}
.key-field {
  display: flex;
  align-items: stretch;
  max-width: 450px;
  margin: 0 auto;
  border: .75px solid rgba(216, 186, 130, .52);
  border-radius: 3px;
  background: rgba(20, 15, 18, .76);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.key-field:focus-within {
  border-color: var(--gold-bright);
  box-shadow: 0 0 28px rgba(239, 214, 163, .14);
}
.key-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  color: #faf0de;
  font: 14px/1.4 var(--sans);
  letter-spacing: .06em;
}
.key-field input::placeholder { color: #9c8c78; font-size: 13px; }
.key-field input:focus { outline: none; }
#open-light {
  flex: none;
  border: 0;
  border-left: .75px solid rgba(216, 186, 130, .4);
  padding: 0 20px;
  background: linear-gradient(115deg, #c9a36c, #e9cfa0 52%, #d5b27b);
  color: #2c2017;
  font: 13.5px/1.3 var(--serif-zh);
  letter-spacing: .1em;
  transition: filter .25s ease;
}
#open-light:hover { filter: brightness(1.07); }
.key-hint {
  min-height: 22px;
  margin: 12px 0 6px;
  font: 12.5px/1.6 var(--sans);
  color: #e6c690;
}
.ghost-link {
  border: 0;
  background: none;
  padding: 8px 12px;
  color: #c5b08d;
  font: 12.5px/1.5 var(--sans);
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(216, 186, 130, .25);
  transition: color .25s, border-color .25s;
}
.ghost-link:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
.threshold-foot {
  position: relative; z-index: 2; text-align: center;
}
.threshold-foot p {
  margin: 0; font: 11px/1.7 var(--sans); color: #8c7e70; letter-spacing: .04em;
}

/* ==================== 2. 宣纸暖白书房主体 ==================== */
#study-room {
  min-height: 100dvh;
  background:
    repeating-linear-gradient(2deg, rgba(162, 136, 94, .025) 0 .5px, transparent .6px 5px),
    radial-gradient(ellipse 80% 50% at 18% 0%, rgba(255, 250, 238, .88), transparent 65%),
    var(--paper);
  animation: study-reveal 1.2s ease-out both;
}
@keyframes study-reveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.study-mast {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px clamp(18px, 4.5vw, 56px);
  background: rgba(245, 241, 234, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-line);
}
.brand-light { display: flex; align-items: center; gap: 10px; }
.brand-light strong { display: block; font: 500 15px/1.1 var(--serif-en); letter-spacing: .16em; color: var(--ink); }
.brand-light small { display: block; font: 10.5px/1.4 var(--sans); color: var(--ink-muted); letter-spacing: .08em; margin-top: 2px; }

.desk-nav { display: flex; align-items: center; gap: 26px; }
.desk-nav a {
  text-decoration: none; font-size: 14px; letter-spacing: .09em; color: var(--ink-mid);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.desk-nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }

.mast-actions { display: flex; align-items: center; gap: 9px; }
.dim-btn {
  min-height: 34px; padding: 5px 13px; border-radius: 3px;
  border: 1px solid var(--gold-line); background: transparent;
  color: var(--ink-mid); font: 12px/1.2 var(--sans); letter-spacing: .05em;
  transition: background-color .25s, color .25s, border-color .25s;
}
.dim-btn:hover { background: var(--paper-soft); border-color: var(--gold); color: var(--ink); }

.study-main {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(46px, 7vh, 84px) clamp(18px, 4.5vw, 40px) 96px;
}

.study-intro {
  max-width: 680px;
  margin-bottom: clamp(56px, 8vh, 88px);
}
.study-intro h1 {
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.35;
  letter-spacing: .08em;
  margin: 14px 0 18px;
  color: var(--ink);
}
.study-intro .lead {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: var(--ink-mid);
}

.desk-section { margin-bottom: clamp(68px, 9vh, 108px); scroll-margin-top: 86px; }
.section-head {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--gold-line);
}
.section-head .roman {
  font: 400 26px/1 var(--serif-en); color: var(--gold); letter-spacing: .08em;
}
.section-head h2 {
  font-weight: 400; font-size: 26px; letter-spacing: .12em; margin: 5px 0 0; color: var(--ink);
}
.section-note {
  margin: -8px 0 26px; font: 14px/1.85 var(--sans); color: var(--ink-mid);
}

/* 案头一卷：三卷书架条 + 宣纸书册排版 */
.volume-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.vol-spine {
  text-align: left;
  padding: 15px 16px;
  border-radius: 3px;
  border: 1px solid rgba(182, 151, 102, .32);
  background: rgba(250, 247, 241, .72);
  transition: all .24s ease;
}
.vol-spine:hover { border-color: var(--gold); background: var(--paper-card); }
.vol-spine.active {
  background: #2f2523;
  border-color: #2f2523;
  color: #f8eedc;
  box-shadow: 0 10px 28px rgba(47, 37, 35, .14);
}
.vol-spine .vol-roman {
  display: block; font: 10.5px/1.3 var(--serif-en); letter-spacing: .16em; color: var(--gold);
}
.vol-spine.active .vol-roman { color: var(--gold-bright); }
.vol-spine strong {
  display: block; font-weight: 500; font-size: 14.5px; line-height: 1.45; margin: 5px 0 4px;
}
.vol-spine small {
  display: block; font: 11px/1.45 var(--sans); color: var(--ink-muted);
}
.vol-spine.active small { color: #d5c5ab; }

.paper-folio {
  background: var(--paper-card);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  padding: clamp(24px, 4.5vw, 56px);
  box-shadow: 0 18px 50px rgba(48, 36, 26, .05);
}
.folio-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font: 12px/1.5 var(--sans); color: var(--ink-muted); letter-spacing: .06em;
}
.folio-header h3 {
  font-weight: 400;
  font-size: clamp(23px, 2.8vw, 31px);
  line-height: 1.44;
  letter-spacing: .05em;
  text-wrap: balance;
  margin: 12px 0 10px;
  color: var(--ink);
}
.folio-sub { margin: 0 0 22px; font-size: 14.5px; line-height: 1.8; color: var(--ink-muted); }

.chapter-strip {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gold-line);
}
.chap-pill {
  min-height: 35px; padding: 6px 13px; border-radius: 3px;
  border: 1px solid var(--gold-line); background: transparent;
  color: var(--ink-mid); font: 12.5px/1.3 var(--sans); letter-spacing: .03em;
  transition: all .22s ease;
}
.chap-pill:hover { border-color: var(--gold); color: var(--ink); }
.chap-pill.active { background: #342926; border-color: #342926; color: #f8eedc; }

.silence-note {
  margin: 22px 0 28px;
  padding: 13px 18px;
  border-radius: 3px;
  background: var(--paper-soft);
  border-left: 2px solid var(--gold);
  font: italic 14px/1.75 var(--serif-zh);
  color: var(--ink-mid);
}

.folio-body h5 {
  font-weight: 500; font-size: 16.5px; letter-spacing: .05em;
  margin: 24px 0 10px; color: var(--ink);
}
.folio-body ol { margin: 0 0 20px; padding-left: 22px; }
.folio-body code {
  font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(182, 151, 102, .14); padding: 1px 5px; border-radius: 2px;
}
.inline-microcard {
  margin: 24px 0;
  padding: 18px 22px;
  border: 1px solid rgba(182, 151, 102, .45);
  border-radius: 3px;
  background: linear-gradient(135deg, #fbf8f1, #f3ece0);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
}
.inline-microcard p:last-child, .inline-music-note p:last-child, blockquote.callout p:last-child { margin-bottom: 0; }
.inline-music-note {
  margin: 22px 0;
  padding: 14px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(239, 233, 222, .5);
  font: 14px/1.8 var(--sans);
  color: var(--ink-mid);
}

.folio-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid rgba(182, 151, 102, .24);
}
.pager-btn {
  border: 1px solid var(--gold-line); background: transparent; border-radius: 3px;
  padding: 8px 15px; font: 13px/1.35 var(--sans); color: var(--ink-mid);
  transition: all .22s ease;
}
.pager-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--ink); background: var(--paper-soft); }
.pager-btn:disabled { opacity: .35; cursor: default; }

.cards-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 22px;
}
.card-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.drawn-slot {
  margin-bottom: 26px;
  padding: 24px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: radial-gradient(ellipse at 25% 15%, #fdfbf6, #f4ede0);
}
.drawn-slot-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.drawn-slot-head span { font: 11px/1.3 var(--serif-en); letter-spacing: .18em; color: #8f6f3e; }
.card-back-text {
  margin: 12px 0 0; padding-top: 12px;
  border-top: .5px dashed rgba(182, 151, 102, .45);
  font: 13px/1.85 var(--sans); color: var(--ink-mid); text-align: left;
}
.card-btn-row { display: flex; align-items: center; gap: 6px; }
.flip-btn {
  border: 1px solid rgba(182, 151, 102, .35); background: transparent;
  border-radius: 2px; padding: 5px 9px; white-space: nowrap;
  font: 11px/1.2 var(--sans); color: var(--ink-mid);
}
.flip-btn:hover { border-color: var(--gold); color: var(--ink); }

/* Keep responsive clean for 4-col volume shelf */
@media (max-width: 820px) {
  .volume-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .volume-shelf { grid-template-columns: 1fr; }
}

.sound-ribbon {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin: 22px 0 28px;
  padding: 12px 16px;
  border-radius: 3px;
  background: var(--paper-soft);
  border: 1px solid rgba(182, 151, 102, .28);
}
.sound-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; background: none; padding: 2px 0; text-align: left;
  font: 13px/1.5 var(--sans); color: var(--ink);
}
.sound-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  border: 1.5px solid #9d7e4e; background: transparent;
  transition: background-color .3s, box-shadow .3s;
}
.sound-toggle[aria-pressed="true"] .sound-dot {
  background: #b68d4c; box-shadow: 0 0 0 4px rgba(200, 166, 110, .26);
}
.sound-time { font: 12px/1 var(--serif-en); color: var(--ink-muted); letter-spacing: .06em; }

.folio-body {
  max-width: 720px;
  font-size: 17.5px;
  line-height: 2.02;
  color: #332a28;
}
.folio-body h4 {
  font-weight: 500; font-size: 20px; letter-spacing: .06em;
  margin: 34px 0 14px; color: var(--ink);
  padding-top: 12px;
}
.folio-body p { margin: 0 0 18px; }
.folio-body ul { margin: 0 0 20px; padding-left: 20px; }
.folio-body li { margin-bottom: 10px; }

/* 四层边界透明卡片 */
.callout {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 2.5px solid var(--gold);
  background: rgba(239, 233, 222, .56);
  border-radius: 0 3px 3px 0;
  font-size: 15px;
  line-height: 1.88;
  color: var(--ink-mid);
}
.callout.boundary { border-left-color: #9e6b5b; background: rgba(236, 226, 217, .52); }
.callout-tag {
  display: inline-block; margin-bottom: 6px;
  font: 600 11px/1.3 var(--serif-en); letter-spacing: .16em;
  color: #8f6f3e; text-transform: uppercase;
}
.callout.boundary .callout-tag { color: #8c5243; }
.callout strong { color: var(--ink); }

.observe-card {
  margin: 0 0 18px; padding: 22px 24px;
  border: 1px solid var(--gold-line); border-radius: 3px;
  background: var(--paper);
}
.observe-card span { display: block; font: 11px/1.4 var(--serif-en); letter-spacing: .16em; color: var(--gold); margin-bottom: 8px; }
.observe-card p { margin: 0; font-size: 17px; line-height: 1.9; color: var(--ink); }

.folio-bridge {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--gold-line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.bridge-whisper { margin: 0; font-style: italic; font-size: 15.5px; color: var(--ink-mid); }
.bridge-link {
  text-decoration: none; font: 13.5px/1.4 var(--sans); letter-spacing: .06em;
  color: #7d5f32; border-bottom: 1px solid rgba(125, 95, 50, .45); padding-bottom: 3px;
  transition: color .25s, border-color .25s;
}
.bridge-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

.season-bookmarks {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin-top: 18px;
}
.bookmark {
  padding: 16px 18px; border-radius: 3px;
  border: 1px solid rgba(182, 151, 102, .25);
  background: rgba(250, 247, 241, .62);
}
.bookmark span { display: block; font: 11px/1.3 var(--serif-en); letter-spacing: .14em; color: var(--gold); }
.bookmark strong { display: block; font-weight: 500; font-size: 15.5px; margin: 5px 0 4px; color: var(--ink); }
.bookmark small { display: block; font: 12px/1.6 var(--sans); color: var(--ink-muted); }

/* 二、窗外一室 */
.window-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px;
  align-items: center;
  background: var(--paper-card);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  padding: clamp(20px, 3.5vw, 36px);
}
.window-frame {
  margin: 0; overflow: hidden; border-radius: 3px;
  border: 1px solid rgba(182, 151, 102, .45);
  background: #130f12;
}
.window-frame img { display: block; width: 100%; height: auto; }
.window-copy h3 {
  font-weight: 400; font-size: 24px; line-height: 1.4; letter-spacing: .06em;
  margin: 10px 0 12px; color: var(--ink);
}
.window-copy > p { margin: 0 0 16px; font-size: 15px; line-height: 1.9; color: var(--ink-mid); }
.anchor-list {
  list-style: none; padding: 0; margin: 0 0 22px;
  border-top: 1px solid rgba(182, 151, 102, .22);
}
.anchor-list li {
  padding: 9px 0; border-bottom: 1px solid rgba(182, 151, 102, .22);
  font: 13px/1.6 var(--sans); color: var(--ink-mid);
}
.anchor-list strong { color: var(--ink); font-weight: 500; }
.window-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ink-btn, .outline-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 18px; border-radius: 3px;
  text-decoration: none; font: 13px/1.3 var(--sans); letter-spacing: .04em;
  transition: all .24s ease;
}
.ink-btn { background: #2f2523; color: #f9efdd; border: 1px solid #2f2523; }
.ink-btn:hover { background: #443531; }
.outline-btn { background: transparent; color: var(--ink); border: 1px solid var(--gold-line); }
.outline-btn:hover { border-color: var(--gold); background: var(--paper-soft); }

/* 三、茶边一笺：宣纸灵光卡画廊 */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.xuan-card {
  display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 4 / 5;
  padding: 26px 24px 22px;
  border-radius: 3px;
  border: 1px solid rgba(182, 151, 102, .42);
  background:
    radial-gradient(ellipse at 25% 15%, #fcfaf4, #f4ede1 68%, #ece2d1);
  box-shadow: 0 12px 32px rgba(48, 36, 26, .06);
  position: relative;
}
.xuan-card::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: .5px solid rgba(182, 151, 102, .34);
}
.card-motif { height: 112px; display: grid; place-items: center; color: #9c7d4d; }
.card-motif svg { width: 92px; height: 92px; }
.card-body { text-align: center; padding: 6px 4px; }
.card-num { font: 11px/1.3 var(--serif-en); letter-spacing: .2em; color: var(--gold); }
.card-body h3 { font-weight: 400; font-size: 20px; letter-spacing: .16em; margin: 8px 0 14px; color: var(--ink); }
.card-lines { margin: 0; font-size: 14.5px; line-height: 1.95; color: var(--ink-mid); white-space: pre-line; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 14px; border-top: .5px solid rgba(182, 151, 102, .3);
  position: relative; z-index: 2;
}
.card-foot small { font: 10.5px/1.3 var(--sans); color: var(--ink-muted); letter-spacing: .06em; }
.save-card-btn {
  border: 1px solid var(--gold-line); background: rgba(255, 253, 249, .72);
  border-radius: 2px; padding: 5px 11px; white-space: nowrap; flex: none;
  font: 11.5px/1.2 var(--sans); color: var(--ink);
  transition: border-color .22s, background-color .22s;
}
.save-card-btn:hover { border-color: var(--gold); background: #fff; }

/* 静默日历 */
.quiet-calendar {
  margin-top: 32px;
  padding: clamp(22px, 3.5vw, 34px);
  background: var(--paper-card);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
}
.cal-head h3 { font-weight: 400; font-size: 21px; letter-spacing: .1em; margin: 6px 0 18px; color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cal-item {
  padding: 16px 18px; border-left: 2px solid var(--gold-line);
  background: rgba(245, 241, 234, .65);
}
.cal-item span { display: block; font: 11px/1.3 var(--serif-en); letter-spacing: .14em; color: #8f6f3e; }
.cal-item strong { display: block; font-weight: 500; font-size: 15.5px; margin: 6px 0 5px; color: var(--ink); }
.cal-item p { margin: 0; font: 13px/1.7 var(--sans); color: var(--ink-mid); }

/* 悠然合卷 */
.study-outro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding-top: 28px;
}
.outro-line { width: 48px; height: 1px; background: var(--gold); margin: 0 auto 28px; }
.outro-farewell { font-size: 17px; line-height: 1.9; color: var(--ink); margin: 0 0 10px; letter-spacing: .04em; }
.outro-tagline { font: italic 15px/1.6 var(--serif-en); color: #8f6f3e; margin: 0 0 22px; letter-spacing: .06em; }
.outro-boundary { font: 12px/1.85 var(--sans); color: var(--ink-muted); margin: 0; }

/* 响应式适配（手机 390×844 & 360×800 零溢出） */
@media (max-width: 820px) {
  .desk-nav { display: none; }
  .window-card { grid-template-columns: 1fr; }
  .cards-grid, .season-bookmarks, .cal-grid { grid-template-columns: 1fr; }
  .xuan-card { aspect-ratio: auto; min-height: 360px; }
}
@media (max-width: 520px) {
  .key-field { flex-direction: column; }
  #open-light { border-left: 0; border-top: .75px solid rgba(216, 186, 130, .4); padding: 13px 16px; }
  .folio-body { font-size: 16px; line-height: 1.92; }
  .study-mast { padding: 12px 14px; }
  .brand-light small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slit-core, .slit-halo, body.opening #morning-wash, #study-room { animation: none !important; }
  body, #threshold { transition: none !important; }
}
