/* 原交付样式：flow-polish-v05.css */
/* 展卷中的操作，取古籍笺签的细线、墨色与留白。置于原有样式之后。 */
:root {
  --flow-ink: #345244;
  --flow-muted: #697c63;
  --flow-rule: #bdc9b3;
  --flow-rule-soft: #d9e1d1;
  --flow-paper: #f7f5ed;
}

button, a, summary {
  touch-action: manipulation;
}

button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid #69805e;
  outline-offset: 3px;
}

.primary, .secondary, .return-scroll, .revisit-button {
  position: relative;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 1px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-decoration: none;
  color: var(--flow-ink);
  background: transparent;
  box-shadow: none;
}

.primary, .revisit-button {
  border: 1px solid #839979;
  border-left: 3px solid #70896b;
  background: #f8f8f1;
  box-shadow: inset 0 0 0 3px #f8f8f1;
}

.secondary, .return-scroll {
  border: 0;
  border-bottom: 1px solid #9aac91;
  background: transparent;
}

.primary svg, .secondary svg, .return-scroll svg, .revisit-button svg {
  width: 16px;
  height: 16px;
}

.primary:disabled, .secondary:disabled {
  opacity: .48;
}

.primary:active, .secondary:active, .return-scroll:active, .revisit-button:active {
  transform: translateY(1px);
}

.back, .text-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 1px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .5px;
  color: var(--flow-ink);
  text-decoration: none;
  background: transparent;
}

.back svg, .text-btn svg {
  color: #819578;
}

.back:active, .text-btn:active {
  opacity: .65;
}

.page-top .back, .term-navigation .text-btn, .flow-footer .text-btn, .compass-back {
  min-height: 44px;
  font-size: 13px;
}

.flow-footer .primary {
  min-height: 46px;
  padding: 10px 16px;
  font-size: 14px;
}

.ending-actions .primary, .ending-actions .secondary {
  padding: 10px 9px;
  font-size: 14px;
}

.cover-enter {
  min-height: 50px;
  padding-inline: 26px;
  font-size: 16px;
}

.creative-entry, .term-create {
  min-height: 78px;
  padding: 15px 5px;
  border: 0;
  border-top: 1px solid var(--flow-rule);
  border-bottom: 1px solid var(--flow-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--flow-ink);
}

.creative-entry-icon {
  border: 1px solid var(--flow-rule);
  background: transparent;
  color: var(--flow-ink);
}

.creative-entry b {
  color: var(--flow-ink);
}

.creative-entry div > span {
  color: var(--flow-muted);
}

.creative-entry:active, .term-create:active {
  background: #edf1e6;
}

.season-footprints button {
  min-height: 46px;
  padding: 9px 3px;
  border: 0;
  border-bottom: 1px solid var(--flow-rule-soft);
  border-radius: 0;
  background: transparent;
  color: #879480;
}

.season-footprints button.seen {
  border: 0;
  border-bottom: 2px solid #829a75;
  background: transparent;
  color: var(--flow-ink);
}

.season-footprints button:active {
  background: #eef1e9;
}

.season-footprints i {
  background: transparent;
}

.term-card {
  border-radius: 0;
}

.term-card:focus-visible {
  outline-offset: 5px;
}

.term-caption {
  color: var(--flow-muted);
}

.term-navigation {
  border-color: var(--flow-rule-soft);
}

.resource-card {
  border: 0;
  border-top: 1px solid var(--flow-rule-soft);
  border-bottom: 1px solid var(--flow-rule-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--flow-ink);
}

.resource-card:active {
  background: #eff2e9;
}

.book-card {
  padding-inline: 8px;
}

.book-link b {
  color: var(--flow-ink);
  border-bottom: 1px solid #9aac91;
}

.play-circle {
  border: 1px solid #d5ddcf;
  background: #f8f7f0e8;
  box-shadow: none;
}

.dialog-close {
  width: 44px;
  height: 44px;
  top: 5px;
  right: 5px;
  border: 1px solid var(--flow-rule-soft);
  border-radius: 50%;
  background: var(--flow-paper);
  color: var(--flow-ink);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 300;
}

.dialog {
  padding-top: 52px;
}

.result-dialog .primary {
  width: 100%;
}

.result-dialog .text-btn {
  min-height: 44px;
}

.editor-shell {
  padding: 29px 17px 42px;
  background: var(--flow-paper);
}

.editor-top {
  margin: 0 0 20px;
  align-items: baseline;
}

.editor-top h1 {
  margin: 0;
  color: var(--flow-ink);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 3px;
}

.gesture-help {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--flow-rule);
  color: var(--flow-ink);
  font-family: var(--serif);
  font-size: 13px;
}

.canvas-wrap {
  width: min(100%, 340px);
  min-width: 0;
  max-width: 340px;
  padding: 8px;
  border: 1px solid #d8dfd1;
  border-radius: 0;
  background: #ebece2;
}

.poster-canvas {
  box-shadow: 0 1px 6px #34524414;
}

.editor-tools {
  margin-top: 22px;
}

.palette-tabs {
  border-color: var(--flow-rule-soft);
  margin-bottom: 13px;
}

.palette-tabs button {
  min-height: 44px;
  padding: 9px 2px;
  border-bottom: 1px solid transparent;
  color: var(--flow-muted);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0;
}

.palette-tabs button.active {
  border-color: #698464;
  color: var(--flow-ink);
  background: transparent;
}

.sticker-palette {
  gap: 8px;
  padding-bottom: 9px;
}

.sticker-choice {
  flex-basis: 76px;
  min-height: 91px;
  padding: 5px 3px;
  border: 1px solid var(--flow-rule-soft);
  border-radius: 1px;
  background: #faf9f3;
}

.sticker-choice:active {
  border-color: #849979;
  background: #f2f3eb;
}

.sticker-choice span {
  color: var(--flow-muted);
  font-size: 10px;
}

.paper-options {
  margin-top: 12px;
  padding: 7px 0 12px;
  border-top: 1px solid var(--flow-rule-soft);
  border-bottom: 1px solid var(--flow-rule-soft);
}

.paper-options summary {
  min-height: 44px;
  padding: 9px 1px;
  color: var(--flow-ink);
  font-family: var(--serif);
  font-size: 14px;
  cursor: pointer;
}

.paper-options summary:after {
  font-size: 18px;
  font-weight: 300;
}

.paper-options-body {
  gap: 14px;
  margin-top: 7px;
}

.background-choices {
  gap: 7px;
}

.color-swatch {
  width: 42px;
  height: 42px;
  border: 3px solid var(--flow-paper);
  outline: 1px solid #c3ccb9;
}

.color-swatch.active {
  outline: 2px solid #6f896a;
}

.signature-wrap label {
  color: var(--flow-muted);
  font-size: 11px;
}

.signature {
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid var(--flow-rule);
  border-radius: 0;
  background: transparent;
  color: var(--flow-ink);
  font-size: 12px;
}

.signature::placeholder {
  color: #99a493;
}

.editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 19px;
}

.editor-actions .secondary {
  flex: 0 0 auto;
  padding-inline: 5px;
  font-size: 14px;
}

.editor-actions .primary {
  flex: 1;
  max-width: 205px;
}

@media (max-width: 360px) {
  .editor-shell {
    padding-inline: 14px;
  }
  .editor-top h1 {
    font-size: 24px;
  }
  .palette-tabs button {
    font-size: 10px;
  }
  .season-footprints button {
    font-size: 16px;
  }
}

@media (hover: hover) {
  .primary:hover, .revisit-button:hover {
    border-color: #516e54;
    background: #f0f3e9;
  }
  .secondary:hover, .return-scroll:hover, .text-btn:hover, .back:hover {
    color: #213e35;
    border-bottom-color: #516e54;
  }
  .resource-card:hover {
    border-color: #a7b99e;
  }
  .sticker-choice:hover {
    border-color: #a5b69a;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary:active, .secondary:active, .return-scroll:active, .revisit-button:active {
    transform: none;
  }
}

/* 原交付样式：flow-layout-v05.css */
/* 连续展卷：正文自然滚动，页边缘轻缓收束。 */
html,body {
  height: 100%;
  overflow: hidden;
  scroll-behavior: auto;
}

body {
  min-height: 0;
  height: 100svh;
  position: relative;
}

#app {
  height: 100%;
  outline: none;
}

#exhibition-flow,#exhibition-detail {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: auto;
  position: relative;
}

#exhibition-flow::-webkit-scrollbar,#exhibition-detail::-webkit-scrollbar {
  display: none;
}

#exhibition-flow[hidden],#exhibition-detail[hidden] {
  display: none;
}

.flow-pages {
  position: relative;
}

.flow-chapter {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  background: #f7f5ed;
}

.flow-chapter>.page {
  flex: 1;
  animation: none;
}

.flow-chapter:not(:first-child)>.page {
  padding-top: 38px;
  padding-bottom: 28px;
}

.flow-chapter>.chapter-seam {
  height: 35px;
  flex: 0 0 35px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: .7;
}

.chapter-seam:before,.chapter-seam:after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg,transparent,#b7c3a7);
}

.chapter-seam:after {
  transform: rotate(180deg);
}

.chapter-seam i {
  width: 5px;
  height: 5px;
  border: 1px solid #a7b796;
  transform: rotate(45deg);
}

.flow-chapter:first-child>.chapter-seam {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.flow-chapter>.page:after {
  pointer-events: none;
}

.site-header,.home-route .site-header {
  position: absolute;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  height: 69px;
  border: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}

.flow-at-home .site-header {
  opacity: 1;
  visibility: visible;
}

.site-brand {
  pointer-events: auto;
}

.flow-chapter .cover {
  min-height: 100svh;
}

.flow-chapter .cover-content {
  padding-top: clamp(108px,14svh,150px);
  padding-bottom: 240px;
}

.flow-cue {
  position: absolute;
  bottom: 37px;
  left: 50%;
  width: 32px;
  height: 42px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.flow-cue i {
  width: 1px;
  height: 26px;
  background: linear-gradient(#607d58aa,#607d5800);
  position: relative;
  animation: scroll-breath 2.8s ease-in-out infinite;
}

.flow-cue i:after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid #607d58;
  border-bottom: 1px solid #607d58;
  transform: rotate(45deg);
}

.flow-chapter .narrative-heading {
  padding-top: 0;
}

.flow-chapter .preface-picture {
  margin-bottom: 28px;
}

.flow-chapter .prose p:last-child {
  margin-bottom: 0;
}

.flow-chapter .compass-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flow-chapter .compass-page .section-heading {
  padding-top: 0;
}

.flow-chapter .compass-page .compass-description {
  margin-bottom: 5px;
}

.flow-chapter .ending-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 45px;
  padding-bottom: 45px;
  overflow: hidden;
}

.flow-chapter .ending-landscape {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 215px;
  margin: 0;
  z-index: -1;
}

.flow-chapter .ending-actions {
  margin-top: 15px;
  justify-content: center;
}

.revisit-button {
  min-width: 190px;
  min-height: 60px;
  padding: 10px 16px;
  border: 0;
  border-top: 1px solid #b5c4a7;
  border-bottom: 1px solid #b5c4a7;
  background: transparent;
  box-shadow: none;
  gap: 18px;
  font-size: 19px;
  letter-spacing: 3px;
}

.revisit-mark {
  font-family: var(--serif);
  color: #8b6d4c;
  font-size: 22px;
  width: 33px;
  height: 33px;
  border: 1px solid #a48d6e;
  display: grid;
  place-items: center;
  line-height: 1;
  transform: rotate(-4deg);
}

.branch-return {
  padding: 29px 0 40px;
  display: flex;
  justify-content: center;
}

.return-scroll {
  font-size: 16px;
  letter-spacing: 2px;
  padding: 10px 16px;
  gap: 12px;
  border-bottom-color: #b3c3a6;
}

.detail-mode .page-top {
  padding-top: 18px;
}

.detail-mode .page-top>span {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 2px;
}

.detail-mode .overview-hero {
  margin-top: 8px;
}

.flow-chapter .editor-shell {
  padding-top: 30px;
}

.editor-actions {
  padding-bottom: 5px;
}

.editor-actions .primary {
  border: 0;
  border-bottom: 1px solid #8ca17e;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-height: 58px;
  font-size: 19px;
  letter-spacing: 2px;
  gap: 12px;
}

.editor-actions .primary:before {
  content: "藏";
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 31px;
  background: #a6604e;
  color: #fff5df;
  border: 3px double #f6e7d3;
  transform: rotate(-4deg);
  flex-shrink: 0;
}

.editor-actions .primary:disabled:before {
  opacity: .4;
}

.editor-actions .secondary {
  border: 0;
  color: #718268;
  letter-spacing: 2px;
  padding: 12px 0;
  font-size: 13px;
}

.editor-actions .secondary:before {
  content: "↺";
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
}

.result-dialog .primary {
  width: auto;
  min-width: 160px;
  border: 0;
  border-top: 1px solid #a8b99a;
  border-bottom: 1px solid #a8b99a;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  letter-spacing: 3px;
}

#exhibition-flow.is-settling {
  scroll-behavior: auto;
}

@keyframes scroll-breath {
  0%,100% {
    transform: translateY(-3px);
    opacity: .5;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

@media (max-width:360px) {
  .flow-chapter:not(:first-child)>.page {
    padding-top: 28px;
  }
  .flow-chapter .cover-content {
    padding-top: 104px;
    padding-bottom: 190px;
  }
  .editor-actions {
    gap: 10px;
  }
  .editor-actions .primary {
    font-size: 17px;
  }
  .flow-chapter .ending-page {
    padding-top: 35px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .flow-cue i {
    animation: none;
  }
  .site-header {
    transition: none;
  }
}

/* 结语的回顾签置于淡纸色上，让山水成为衬景。 */
.flow-chapter .ending-landscape {
  opacity: .52;
}

.revisit-button {
  min-width: 235px;
  background: linear-gradient(90deg,#f7f5ed00,#f7f5edfa 12%,#f7f5edfa 88%,#f7f5ed00);
  padding: 12px 22px;
}

.season-footprints button {
  color: #697b60;
}

/* 原交付样式：screen-layout-v06.css */
/* 五章各占一屏。页面的尺寸由翻页引擎写入的 --screen-height 决定。 */
:root {
  --screen-height: 100dvh;
}

html, body, #app {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body {
  height: var(--screen-height);
}

#app {
  height: var(--screen-height);
}

#exhibition-flow {
  height: var(--screen-height);
  overflow: hidden;
  touch-action: pan-x;
}

.flow-pages {
  width: 100%;
  will-change: transform;
}

.flow-chapter {
  display: block;
  width: 100%;
  height: var(--screen-height);
  min-height: var(--screen-height);
  max-height: var(--screen-height);
  overflow: hidden;
}

.flow-chapter > .page {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.flow-chapter > .chapter-seam {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  pointer-events: none;
  opacity: .48;
}

/* 卷首标识属于首页自身，翻页时随首页离场。 */
.flow-chapter .cover {
  min-height: 0;
}

.cover > .site-header,
.home-route .cover > .site-header,
.flow-at-home .cover > .site-header {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  width: 100%;
  height: 62px;
  padding: 0 19px;
  transform: none;
  opacity: 1;
  visibility: visible;
  background: transparent;
  border: 0;
  z-index: 4;
}

.cover .cover-content {
  position: relative;
  padding: clamp(91px, 13.5vh, 135px) 26px 0;
}

.cover .anniversary {
  font-size: 12px;
}

.cover h1 {
  margin: 17px 0 11px;
  font-size: clamp(49px, 13.2vw, 64px);
  line-height: 1.25;
}

.cover-subtitle {
  font-size: clamp(15px, 4vw, 17px);
  line-height: 1.55;
}

.cover-content p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.cover-year {
  bottom: 21px;
}

.flow-cue {
  bottom: 41px;
}

/* 前言以文字为主，删除在短屏里挤占正文高度的装饰图。 */
.flow-chapter:not(:first-child) > .page {
  padding-top: 20px;
  padding-bottom: 18px;
}

.narrative-page {
  display: flex !important;
  flex-direction: column;
}

.narrative-page .narrative-heading {
  flex: 0 0 auto;
  padding: 0 0 13px;
}

.narrative-page .narrative-heading h1 {
  margin: 3px 0;
  font-size: 39px;
  line-height: 1.18;
}

.narrative-page .narrative-heading p {
  font-size: 15px;
  line-height: 1.45;
}

.narrative-page .preface-picture {
  display: none;
}

.narrative-page .prose {
  flex: 0 1 auto;
  font-size: 14px;
  line-height: 1.57;
  letter-spacing: 0;
  color: #506b51;
}

.narrative-page .prose p {
  margin: 0 0 8px;
}

.narrative-page .prose p:last-child {
  margin-bottom: 0;
}

.narrative-page .paragraph-emphasis {
  padding: 1px 0 1px 9px;
  font-size: 15px;
  line-height: 1.55;
}

/* 罗盘在余下空间内缩放，始终露出完整圆盘和说明。 */
.flow-chapter .compass-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-inline: 15px;
}

.compass-page .section-heading {
  flex: 0 0 auto;
  width: 100%;
  padding: 0 0 7px;
}

.compass-page .section-heading h1 {
  margin: 0 0 5px;
  font-size: 30px;
  line-height: 1.35;
}

.compass-page .season-poem {
  font-size: 14px;
  line-height: 1.55;
}

.compass-page .wheel-wrap {
  flex: 0 1 auto;
  width: min(100%, calc(var(--screen-height) - 235px), 410px);
  min-width: 0;
  margin: 2px auto 3px;
}

.compass-page .wheel {
  width: 100%;
  max-height: 100%;
}

.compass-page .compass-description {
  flex: 0 0 auto;
  width: 100%;
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

/* 海报工具台：画布取屏高余量，工具栏尺寸保持可点。 */
.flow-chapter:not(:first-child) > .editor-shell {
  display: flex;
  flex-direction: column;
  padding: 12px 17px 10px;
}

.editor-top {
  flex: 0 0 auto;
  margin: 0 0 7px;
}

.editor-top h1 {
  font-size: 25px;
  line-height: 1.35;
}

.editor-layout {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
}

.editor-layout .canvas-wrap {
  flex: 0 1 auto;
  align-self: center;
  width: min(100%, max(210px, min(340px, calc((var(--screen-height) - 290px) * .68))));
  min-width: 0;
  max-width: 340px;
  padding: 6px;
}

.editor-layout .editor-tools {
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
}

.editor-tools .palette-tabs {
  margin: 0 0 6px;
}

.editor-tools .palette-tabs button {
  min-height: 35px;
  padding: 5px 1px;
  font-size: 12px;
  letter-spacing: 0;
}

.editor-tools .sticker-palette {
  gap: 7px;
  padding: 1px 1px 4px;
}

.editor-tools .sticker-choice {
  flex: 0 0 68px;
  min-height: 64px;
  max-height: 64px;
  padding: 3px 2px;
}

.editor-tools .sticker-choice img,
.editor-tools .sticker-choice .word-sticker {
  width: 45px;
  height: 39px;
}

.editor-tools .sticker-choice span {
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.25;
}

.editor-tools .paper-settings {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 3px 1px;
  border-top: 1px solid #d9e1d1;
  border-bottom: 1px solid #d9e1d1;
  color: #345244;
  font-family: var(--serif);
  font-size: 14px;
  text-align: left;
}

.editor-tools .paper-settings span {
  font-size: 19px;
  line-height: 1;
}

.editor-tools .editor-actions {
  gap: 12px;
  margin-top: 3px;
  padding: 0;
}

.editor-tools .editor-actions .secondary {
  min-height: 43px;
  padding: 5px 0;
  font-size: 13px;
}

.editor-tools .editor-actions .primary {
  min-height: 44px;
  padding: 5px 0;
  font-size: 16px;
}

.editor-tools .editor-actions .primary:before {
  width: 25px;
  height: 28px;
  font-size: 17px;
}

/* 结语保留每段原文，将回顾签固定在正文之后。 */
.flow-chapter:not(:first-child) > .ending-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 19px 19px;
}

.ending-page .narrative-heading {
  flex: 0 0 auto;
  padding: 0 0 9px;
}

.ending-page .narrative-heading h1 {
  margin: 3px 0 0;
  font-size: 37px;
  line-height: 1.24;
}

.ending-page .ending-prose {
  flex: 0 1 auto;
  font-size: 14px;
  line-height: 1.56;
  letter-spacing: 0;
  color: #506b51;
}

.ending-page .ending-prose p {
  margin: 0 0 8px;
}

.ending-page .ending-prose p:last-child {
  margin: 7px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

.ending-page .season-footprints {
  flex: 0 0 auto;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
}

.ending-page .season-footprints button {
  min-height: 38px;
  padding: 4px 1px;
  font-size: 16px;
  gap: 2px;
}

.ending-page .season-footprints button svg,
.ending-page .season-footprints button i {
  width: 11px;
  height: 11px;
}

.ending-page .ending-actions {
  flex: 0 0 auto;
  margin-top: 8px;
}

.ending-page .revisit-button {
  min-height: 43px;
  padding: 5px 15px;
  font-size: 15px;
}

.ending-page .revisit-mark {
  width: 25px;
  height: 25px;
  font-size: 17px;
}

.ending-page .ending-landscape {
  height: 145px;
  opacity: .38;
}

/* 320×568 与类似短屏：13px 正文仍完整保留。 */
@media (max-height: 650px) {
  .cover .cover-content {
    padding-top: 83px;
  }
  .cover h1 {
    margin: 12px 0 8px;
    font-size: 51px;
  }
  .cover-content p {
    margin-top: 9px;
    line-height: 1.55;
  }
  .flow-chapter:not(:first-child) > .page {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .narrative-page .narrative-heading {
    padding-bottom: 7px;
  }
  .narrative-page .narrative-heading h1 {
    font-size: 34px;
  }
  .narrative-page .narrative-heading p {
    font-size: 14px;
  }
  .narrative-page .prose {
    font-size: 13px;
    line-height: 1.46;
  }
  .narrative-page .prose p {
    margin-bottom: 5px;
  }
  .narrative-page .paragraph-emphasis {
    font-size: 14px;
    line-height: 1.45;
  }
  .compass-page .section-heading h1 {
    font-size: 27px;
  }
  .compass-page .season-poem {
    font-size: 13px;
    line-height: 1.45;
  }
  .compass-page .wheel-wrap {
    width: min(100%, calc(var(--screen-height) - 226px));
  }
  .compass-page .compass-description {
    font-size: 13px;
    line-height: 1.45;
  }
  .flow-chapter:not(:first-child) > .editor-shell {
    padding-top: 9px;
    padding-bottom: 7px;
  }
  .editor-top {
    margin-bottom: 4px;
  }
  .editor-top h1 {
    font-size: 22px;
  }
  .editor-layout .canvas-wrap {
    width: min(100%, max(210px, calc((var(--screen-height) - 305px) * .67)));
    padding: 4px;
  }
  .editor-layout .editor-tools {
    margin-top: 3px;
  }
  .editor-tools .palette-tabs {
    margin-bottom: 3px;
  }
  .editor-tools .palette-tabs button {
    min-height: 32px;
    font-size: 11px;
  }
  .editor-tools .sticker-choice {
    min-height: 57px;
    max-height: 57px;
  }
  .editor-tools .sticker-choice img,
  .editor-tools .sticker-choice .word-sticker {
    width: 42px;
    height: 33px;
  }
  .editor-tools .paper-settings {
    min-height: 30px;
  }
  .editor-tools .editor-actions .primary,
  .editor-tools .editor-actions .secondary {
    min-height: 40px;
  }
  .flow-chapter:not(:first-child) > .ending-page {
    padding: 9px 15px 11px;
  }
  .ending-page .narrative-heading {
    padding-bottom: 5px;
  }
  .ending-page .narrative-heading h1 {
    font-size: 32px;
    line-height: 1.17;
  }
  .ending-page .ending-prose {
    font-size: 13px;
    line-height: 1.45;
  }
  .ending-page .ending-prose p {
    margin-bottom: 5px;
  }
  .ending-page .ending-prose p:last-child {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.42;
  }
  .ending-page .season-footprints {
    margin-top: 6px;
  }
  .ending-page .season-footprints button {
    min-height: 35px;
    font-size: 14px;
  }
  .ending-page .ending-actions {
    margin-top: 5px;
  }
  .ending-page .revisit-button {
    min-height: 39px;
  }
}

@media (max-width: 350px) {
  .cover > .site-header {
    padding-inline: 14px;
  }
  .cover .cover-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  .flow-chapter .narrative-page {
    padding-inline: 14px;
  }
  .compass-page .section-heading h1 {
    letter-spacing: 5px;
  }
  .flow-chapter:not(:first-child) > .editor-shell {
    padding-inline: 12px;
  }
  .editor-tools .palette-tabs button {
    font-size: 10px;
  }
  .flow-chapter:not(:first-child) > .ending-page {
    padding-inline: 13px;
  }
}

/* 高屏恢复卷首配图与舒展行距，短屏继续以完整正文优先。 */
@media (min-height:740px) {
  .flow-chapter .narrative-page {
    justify-content: center;
  }
  .narrative-page .preface-picture {
    display: block;
    flex: 0 0 auto;
    height: clamp(100px,14vh,136px);
    margin: 0 0 15px;
    border-radius: 42% 42% 2px 2px / 36% 36% 2px 2px;
  }
  .narrative-page .prose {
    flex: 0 0 auto;
    font-size: 14.5px;
    line-height: 1.65;
  }
  .narrative-page .prose p {
    margin-bottom: 10px;
  }
  .narrative-page .paragraph-emphasis {
    font-size: 15px;
    line-height: 1.6;
  }
}

@media (min-height:820px) {
  .narrative-page .prose {
    font-size: 15px;
    line-height: 1.75;
  }
}

/* 原交付样式：screen-motion-v06.css */
/* 先完成整屏落位，再按层次展开页面内容。 */
#exhibition-flow {
  touch-action: none;
  overflow: hidden;
  perspective: 1200px;
  contain: layout paint;
}

.flow-pages {
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
}

.flow-chapter>.page {
  transform: scale(var(--page-scale,1));
  opacity: var(--page-opacity,1);
  transform-origin: center;
  backface-visibility: hidden;
}

.flow-chapter.chapter-current {
  z-index: 1;
}

.flow-chapter .sticker-palette {
  touch-action: pan-x;
}

.flow-chapter .site-header {
  transition: none;
}

.paper-dialog .background-choices {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 12px 0 28px;
}

.paper-dialog .signature-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 3px;
}

.paper-dialog .signature {
  flex: 1;
  min-width: 0;
  font-size: 15px;
}

.paper-dialog h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 3px;
  text-align: center;
  font-size: 24px;
}

.flow-chapter.chapter-waiting .reveal-item {
  opacity: 0;
  pointer-events: none;
}

.chapter-entering .reveal-text {
  animation: page-unfold-text 720ms cubic-bezier(.18,.8,.24,1) var(--reveal-delay,0ms) both;
}

.chapter-entering .reveal-picture {
  animation: page-unfold-picture 1000ms cubic-bezier(.16,1,.3,1) var(--reveal-delay,0ms) both;
}

.chapter-entering .reveal-ink {
  animation: page-unfold-ink 720ms ease-out var(--reveal-delay,0ms) both;
}

/* 双重选择器覆盖旧版固定的不透明度，保证山水仍作为文字的衬景。 */
.chapter-entering .ending-landscape {
  animation-name: page-unfold-landscape;
}

@keyframes page-unfold-text {
  0% {
    opacity: 0;
    transform: translate3d(0,32px,0);
    filter: blur(3px);
  }
  70% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0,0,0);
    filter: blur(0);
  }
}

@keyframes page-unfold-picture {
  0% {
    opacity: 0;
    transform: translate3d(0,44px,0) scale(var(--picture-enter-scale,.86));
    clip-path: inset(7% 0 0 0);
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
    clip-path: inset(0);
  }
}

@keyframes page-unfold-ink {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes page-unfold-landscape {
  0% {
    opacity: 0;
    transform: translate3d(0,40px,0) scale(1.08);
  }
  100% {
    opacity: .38;
    transform: translate3d(0,0,0) scale(1);
  }
}

@media (prefers-reduced-motion:reduce) {
  .chapter-entering .reveal-item {
    animation: none !important;
  }
  .flow-chapter>.page {
    transform: none;
    opacity: 1;
  }
  .flow-chapter.chapter-waiting .reveal-item {
    opacity: 1;
    pointer-events: auto;
  }
}

/* 原交付样式：branch-motion-v07.css */
/* 四季与节气详情：落位后逐层显现，后续资源随阅读展开。 */
#exhibition-detail>.season-page,#exhibition-detail>.term-page {
  animation: none;
}

#exhibition-detail .page.detail-landing {
  animation: branch-page-land 260ms cubic-bezier(.2,.75,.2,1) both;
}

#exhibition-detail .detail-reveal-pending {
  opacity: 0;
  pointer-events: none;
}

#exhibition-detail .detail-revealing.detail-reveal-text {
  animation: page-unfold-text 720ms cubic-bezier(.18,.8,.24,1) var(--reveal-delay,0ms) both;
}

#exhibition-detail .detail-revealing.detail-reveal-picture {
  animation: page-unfold-picture 1000ms cubic-bezier(.16,1,.3,1) var(--reveal-delay,0ms) both;
}

#exhibition-detail .detail-revealing.detail-reveal-ink {
  animation: page-unfold-ink 720ms ease-out var(--reveal-delay,0ms) both;
}

#exhibition-detail .term-hero {
  background: #435b4b;
}

#exhibition-detail .season-intro-art {
  background: #e9eddf;
}

@keyframes branch-page-land {
  from {
    transform: translate3d(0,20px,0) scale(.992);
    opacity: .55;
  }
  to {
    transform: translate3d(0,0,0) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion:reduce) {
  #exhibition-detail .page,#exhibition-detail .detail-revealing {
    animation: none !important;
  }
  #exhibition-detail .detail-reveal-pending {
    opacity: 1;
    pointer-events: auto;
  }
}

/* 路由焦点用于读屏定位，保留具体操作的焦点样式。 */
#exhibition-detail:focus {
  outline: none;
}
