:root {
  --qing-white: #dff6f0;
  --celadon: #82bec8;
  --flower-blue: #0e3265;
  --vermilion: #c35046;
  --old-gold: #b5a36a;
  --gold-deep: #9a8550;
  --silk: #f6f2e8;
  color-scheme: light;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC",
    Georgia, serif;
  background: var(--qing-white);
  color: var(--flower-blue);
}

/* 注册为数值属性：加载凝沙动画可插值，JS 可直接读取计算值驱动金沙 */
@property --sheet-fade {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: var(--qing-white);
}

button {
  font: inherit;
}

/* 多幕滚动世界：高度由 app.js 按 SEGMENTS 时间线设定，此处为兜底 */
.scroll-world {
  position: relative;
  height: 590svh;
}

.stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}

.scene {
  position: absolute;
  inset: 0;
  --video-progress: 0;
  --video-progress-pct: 0%;
  /* 帖显形因子默认公式（第一幕：滚动后段散沙退场）；其余幕在各自场景覆写 */
  --sheet-fade: clamp(0, calc((0.6 - var(--video-progress, 0)) / 0.45), 1);
}

/* 后幕叠在前幕之上（z-index 由 JS 按 DOM 顺序分配），
   接缝处由 JS 以滚动驱动透明度交叉淡化 */
.stage .scene:not(:first-of-type) {
  opacity: 0;
  visibility: hidden;
}

.scene-film,
.scene-poster,
.scene-video,
.film-wash,
.film-grain {
  position: absolute;
  inset: 0;
}

.scene-film {
  z-index: 0;
  background: var(--qing-white);
}

.scene-poster,
.scene-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.scene-poster {
  opacity: 1;
  transition: opacity 1.2s ease;
}

.scene-video {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.video-ready .scene-video {
  opacity: 1;
}

.video-ready .scene-poster {
  opacity: 0;
}

/* 帖为实色绢面，洗色只需轻微衬出右侧层次 */
.film-wash {
  background:
    linear-gradient(90deg, rgba(223, 246, 240, 0.02) 0 46%, rgba(223, 246, 240, 0.07) 68%, rgba(223, 246, 240, 0.16)),
    radial-gradient(circle at 76% 51%, rgba(255, 255, 255, 0.08), transparent 42%);
  pointer-events: none;
}

.film-grain {
  opacity: 0.18;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(14, 50, 101, 0.018) 0,
    rgba(14, 50, 101, 0.018) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ============ 帖：冰绡冷绢 + 鎏金界栏 + 凝沙成帖 + 朱砂钤印 ============ */
.hero-sheet {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(72px, 7.5vw, 140px);
  width: min(38vw, 560px);
  min-width: 470px;
  padding: 32px 38px 34px;
  border: 1px solid rgba(154, 133, 80, 0.5);
  border-radius: 3px;
  background:
    linear-gradient(167deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.04) 30%),
    repeating-linear-gradient(
      0deg,
      rgba(14, 50, 101, 0.012) 0,
      rgba(14, 50, 101, 0.012) 1px,
      transparent 1px,
      transparent 5px
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),
    linear-gradient(155deg, rgba(241, 248, 246, 0.8) 0%, rgba(227, 240, 237, 0.74) 55%, rgba(216, 233, 230, 0.8) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(1.06);
  backdrop-filter: blur(10px) saturate(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 26px 70px rgba(14, 50, 101, 0.22),
    0 4px 14px rgba(14, 50, 101, 0.08);
  /* 凝沙显形：掩膜自上而下侵蚀式揭开（边缘颗粒化），鎏金沙粒由 JS 画布补形 */
  --veil: calc(var(--sheet-fade, 1) * 115% - 15%);
  -webkit-mask-image:
    linear-gradient(to bottom, #000 0 var(--veil), transparent calc(var(--veil) + 10%)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='11'/%3E%3CfeColorMatrix type='matrix' values='0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.42' intercept='0.58'/%3E%3CfeFuncG type='linear' slope='0.42' intercept='0.58'/%3E%3CfeFuncB type='linear' slope='0.42' intercept='0.58'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='130' height='130' filter='url(%23g)'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% calc(100% + 34px), 130px 130px;
  -webkit-mask-position: 0 -34px, 0 -34px;
  -webkit-mask-repeat: no-repeat, repeat;
  -webkit-mask-composite: source-in;
  -webkit-mask-clip: no-clip;
  mask-image:
    linear-gradient(to bottom, #000 0 var(--veil), transparent calc(var(--veil) + 10%)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='11'/%3E%3CfeColorMatrix type='matrix' values='0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.42' intercept='0.58'/%3E%3CfeFuncG type='linear' slope='0.42' intercept='0.58'/%3E%3CfeFuncB type='linear' slope='0.42' intercept='0.58'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='130' height='130' filter='url(%23g)'/%3E%3C/svg%3E");
  mask-size: 100% calc(100% + 34px), 130px 130px;
  mask-position: 0 -34px, 0 -34px;
  mask-repeat: no-repeat, repeat;
  mask-composite: intersect;
  mask-mode: alpha, luminance;
  mask-clip: no-clip;
  transform: translate3d(0, calc(-48% + (1 - var(--sheet-fade, 1)) * 22px), 0);
}

/* 内界栏 */
.hero-sheet::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(14, 50, 101, 0.12);
  pointer-events: none;
}

/* 四角鎏金角线 */
.hero-sheet::after {
  content: "";
  position: absolute;
  inset: 4px;
  background:
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) top left / 17px 1px,
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) top left / 1px 17px,
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) top right / 17px 1px,
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) top right / 1px 17px,
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) bottom left / 17px 1px,
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) bottom left / 1px 17px,
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) bottom right / 17px 1px,
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) bottom right / 1px 17px;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* 朱砂钤印：蚀边斑驳的篆刻白文印——帖凝形后落印，钤下、微沉、定住 */
.sheet-seal {
  position: absolute;
  z-index: 3;
  top: -15px;
  right: 28px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 235, 214, 0.3), rgba(255, 235, 214, 0) 46%),
    linear-gradient(158deg, #cd5d4e 8%, #a6382d 82%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 214, 0.22),
    inset 0 2px 3px rgba(255, 244, 228, 0.2),
    inset 0 -4px 6px rgba(96, 24, 17, 0.4);
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='e' x='-25%25' y='-25%25' width='150%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.1' numOctaves='4' seed='8' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='12' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='8' y='8' width='64' height='64' rx='5' fill='%23fff' filter='url(%23e)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' seed='4'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0.55 0.55 0 0.12'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23s)'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%, 100% 100%;
  -webkit-mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='e' x='-25%25' y='-25%25' width='150%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.1' numOctaves='4' seed='8' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='12' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='8' y='8' width='64' height='64' rx='5' fill='%23fff' filter='url(%23e)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' seed='4'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0.55 0.55 0 0.12'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23s)'/%3E%3C/svg%3E");
  mask-size: 100% 100%, 100% 100%;
  mask-repeat: no-repeat, no-repeat;
  mask-composite: intersect;
  filter: drop-shadow(0 3px 5px rgba(148, 42, 32, 0.38));
  color: #f6edd9;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 1px rgba(96, 24, 17, 0.45);
  opacity: clamp(0, calc((var(--sheet-fade, 1) - 0.48) * 2.6), 0.96);
  transform: rotate(-4deg) scale(calc(1.5 - var(--sheet-fade, 1) * 0.5));
}

/* 第一幕帖：页面加载即凝沙成帖，滚动后段散沙退场 */
.scene-01 {
  animation: sheet-condense 1.3s 0.2s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.scene-01 .sheet-seal {
  animation: seal-stamp 0.55s 1.55s cubic-bezier(0.3, 1, 0.5, 1) backwards;
}

/* 第二幕帖：静观的幕性格——晚入场（12%–26%），驻留至 86%–96% 才散沙 */
.scene-02 {
  --sheet-fade: min(
    clamp(0, calc((var(--video-progress, 0) - 0.12) / 0.14), 1),
    clamp(0, calc((0.96 - var(--video-progress, 0)) / 0.1), 1)
  );
}

/* 第四幕帖（人和）：投石之后现身——15%–29% 入场，驻留至 86%–96% 散沙 */
.scene-03 {
  --sheet-fade: min(
    clamp(0, calc((var(--video-progress, 0) - 0.15) / 0.14), 1),
    clamp(0, calc((0.96 - var(--video-progress, 0)) / 0.1), 1)
  );
}

/* 第三幕帖（地利）：立极之后现身——15%–29% 入场，驻留至 86%–96% 散沙 */
.scene-04 {
  --sheet-fade: min(
    clamp(0, calc((var(--video-progress, 0) - 0.15) / 0.14), 1),
    clamp(0, calc((0.96 - var(--video-progress, 0)) / 0.1), 1)
  );
}

.sheet-hidden .hero-sheet {
  pointer-events: none;
}

/* 鎏金沙画布：覆于帖上，随 --sheet-fade 聚散（JS 注入） */
.sheet-sand {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

@keyframes sheet-condense {
  from {
    --sheet-fade: 0;
  }
}

@keyframes seal-stamp {
  0% {
    opacity: 0;
    transform: rotate(-9deg) scale(1.65);
  }
  62% {
    opacity: 0.96;
    transform: rotate(-3deg) scale(0.97);
  }
  100% {
    opacity: 0.96;
    transform: rotate(-4deg) scale(1);
  }
}

/* 鎏金界行上的流光 */
@keyframes rule-sheen {
  0%,
  100% {
    background-position: 0% 0;
  }
  50% {
    background-position: 96% 0;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes line-in {
  from {
    transform: scaleX(0);
  }
}

.brand-lockup,
.sheet-rule,
.sheet-body,
.sheet-title,
.canon,
.canon-cite,
.intro,
.dimensions,
.scroll-action {
  position: relative;
  z-index: 1;
}

/* 加载入场级联只属于第一幕；其余幕帖纯由滚动进度驱动 */
.scene-01 .brand-lockup,
.scene-01 .sheet-title,
.scene-01 .canon,
.scene-01 .canon-cite,
.scene-01 .intro,
.scene-01 .dimensions,
.scene-01 .scroll-action {
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.scene-01 .brand-lockup { animation-delay: 0.35s; }
.scene-01 .sheet-title { animation-delay: 0.68s; }
.scene-01 .canon { animation-delay: 0.84s; }
.scene-01 .canon-cite { animation-delay: 0.94s; }
.scene-01 .intro { animation-delay: 0.96s; }
.scene-01 .dimensions { animation-delay: 1.1s; }
.scene-01 .scroll-action { animation-delay: 1.24s; }

.scene-01 .sheet-rule span {
  transform-origin: left center;
  animation:
    line-in 0.9s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both,
    rule-sheen 5.2s ease-in-out 2s infinite;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.brand-mark {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(14, 50, 101, 0.16);
  border-radius: 50%;
  background: rgba(223, 246, 240, 0.5);
  box-shadow:
    0 0 0 5px rgba(130, 190, 200, 0.06),
    inset 0 0 18px rgba(130, 190, 200, 0.09);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.brand-mark::before {
  inset: 5px;
  border: 1px solid rgba(181, 163, 106, 0.3);
}

.brand-mark::after {
  top: 5px;
  right: 7px;
  width: 4px;
  height: 4px;
  background: rgba(195, 80, 70, 0.74);
}

.brand-mark img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  clip-path: circle(47%);
  filter: saturate(0.82) contrast(1.04);
  mix-blend-mode: multiply;
}

.brand-words {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-words b {
  font: 500 15px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    sans-serif;
  letter-spacing: 0.18em;
}

.brand-words i {
  width: 1px;
  height: 13px;
  background: rgba(14, 50, 101, 0.22);
}

.brand-words small {
  font-size: 12px;
  letter-spacing: 0.25em;
}

/* 帖身：左栏主文，右栏竖排引文 */
.sheet-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: stretch;
}

.sheet-main {
  min-width: 0;
}

.sheet-title {
  margin: 0;
  font-size: clamp(46px, 4.2vw, 64px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.22em;
}

/* 描金界行：金线 + 收束菱花 */
.sheet-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 16px;
}

.sheet-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    100deg,
    rgba(154, 133, 80, 0.8),
    rgba(232, 206, 148, 0.95) 42%,
    rgba(181, 163, 106, 0.22) 78%,
    rgba(181, 163, 106, 0.08)
  );
  background-size: 220% 100%;
  animation: rule-sheen 5.2s ease-in-out 1.8s infinite;
}

.sheet-rule i {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(181, 163, 106, 0.8);
  transform: rotate(45deg);
}

/* 竖排引文：右置一栏，短句垂直居中对齐左栏 */
.sheet-canon {
  display: flex;
  align-items: flex-start;
  align-self: center;
  gap: 12px;
  padding-left: 22px;
  border-left: 1px solid rgba(14, 50, 101, 0.13);
  writing-mode: vertical-rl;
}

.canon {
  margin: 0;
  color: rgba(14, 50, 101, 0.82);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.24em;
  max-height: 268px;
}

.canon-cite {
  margin: 0;
  padding-top: 4px;
  color: rgba(14, 50, 101, 0.48);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.3em;
}

.intro {
  margin: 0;
  color: rgba(14, 50, 101, 0.68);
  font-size: 12px;
  line-height: 2.05;
  letter-spacing: 0.075em;
}

/* 界格方签 + 描金连线 */
.dimensions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: rgba(14, 50, 101, 0.72);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.dimensions span {
  padding: 7px 11px 6px 13px;
  border: 1px solid rgba(14, 50, 101, 0.28);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.dimensions i {
  width: 9px;
  height: 1px;
  background: rgba(181, 163, 106, 0.65);
}

.scroll-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 12px 22px 11px 24px;
  border: 1px solid rgba(14, 50, 101, 0.34);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  color: rgba(14, 50, 101, 0.82);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.scroll-action svg {
  width: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

/* 全局行程导轨：观己 → 归一，一根线走完整站 */
.journey-rail {
  --journey-progress: 0;
  position: fixed;
  z-index: 30;
  top: 50%;
  right: 30px;
  height: min(52vh, 430px);
  transform: translateY(-50%);
  color: rgba(14, 50, 101, 0.45);
  font-size: 9px;
  letter-spacing: 0.15em;
  pointer-events: none;
}

.journey-rail .rail-track {
  position: absolute;
  top: 0;
  right: 3px;
  bottom: 0;
  width: 1px;
  overflow: hidden;
  background: rgba(14, 50, 101, 0.14);
}

.journey-rail .rail-track b {
  position: absolute;
  inset: 0;
  background: var(--flower-blue);
  transform: scaleY(var(--journey-progress));
  transform-origin: top;
}

.journey-rail ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-rail li {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
}

.journey-rail li:nth-child(1) { top: 0; }
.journey-rail li:nth-child(2) { top: 25%; }
.journey-rail li:nth-child(3) { top: 50%; }
.journey-rail li:nth-child(4) { top: 75%; }
.journey-rail li:nth-child(5) { top: 100%; }

.journey-rail li::after {
  content: "";
  box-sizing: border-box;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(14, 50, 101, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  transition: background 300ms ease, border-color 300ms ease;
}

.journey-rail li span {
  writing-mode: vertical-rl;
  font-weight: 400;
  opacity: 0.75;
  transition: color 300ms ease, opacity 300ms ease;
}

.journey-rail li.passed::after {
  border-color: var(--flower-blue);
  background: var(--flower-blue);
}

.journey-rail li.passed span {
  color: rgba(14, 50, 101, 0.85);
  opacity: 1;
}

@media (max-width: 900px) {
  .journey-rail {
    display: none;
  }
}

.scroll-note {
  position: absolute;
  z-index: 3;
  left: 30px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(14, 50, 101, 0.42);
  font: 500 8px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    sans-serif;
  letter-spacing: 0.24em;
}

.scroll-note i {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, var(--flower-blue) 0 var(--video-progress-pct), rgba(14, 50, 101, 0.16) var(--video-progress-pct));
}

@media (max-height: 720px) and (min-width: 901px) {
  .hero-sheet {
    padding: 22px 28px 24px;
    transform: translate3d(0, calc(-50% + (1 - var(--sheet-fade)) * 20px), 0)
      scale(0.9);
    transform-origin: right center;
  }

  .sheet-title {
    font-size: clamp(38px, 3.6vw, 52px);
  }

  .brand-lockup {
    margin-bottom: 14px;
  }

  .sheet-body {
    gap: 20px;
  }

  .sheet-rule {
    margin: 13px 0 12px;
  }

  .canon {
    font-size: 12px;
    max-height: 250px;
  }

  .dimensions {
    margin-top: 13px;
  }

  .scroll-action {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-01,
  .hero-sheet,
  .sheet-seal,
  .brand-lockup,
  .sheet-title,
  .canon,
  .canon-cite,
  .intro,
  .dimensions,
  .scroll-action,
  .sheet-rule span {
    animation: none;
  }

  .scene-05 .scroll-title,
  .scene-05 .scroll-verse .wl,
  .scene-05 .scroll-verse .wl-i {
    animation: none;
  }

  .hero-sheet {
    -webkit-mask-image: none;
    mask-image: none;
    transform: translateY(-48%);
  }

  .sheet-seal {
    opacity: 0.96;
    transform: rotate(-4deg);
  }

  .sheet-sand {
    display: none;
  }

  .scene-poster,
  .scene-video {
    transition: none;
  }
}

/* ============ 第五幕「归一」收尾层 ============
   中央块中段入场后驻留到底；两侧纱帘压轴——页面滚动走到尽头
   （左 84%→97%，右 88%→100%）才自竿垂落展开，悬于画上纱帘之处，
   如柳枝随风轻摆（滚动驱动、可逆） */
.scene-05 .text-scroll {
  position: absolute;
  z-index: 3;
  top: 7.5%;
  width: clamp(136px, 15vw, 218px);
  height: min(76vh, 700px);
  color: rgba(14, 50, 101, 0.6);
  will-change: transform, opacity;
}

.scene-05 .text-scroll-left {
  --veil-in: clamp(0, calc((var(--video-progress, 0) - 0.84) / 0.13), 1);
  left: clamp(12px, 1.6vw, 42px);
  opacity: calc(var(--veil-in) * 0.97);
  transform: translate3d(0, calc((1 - var(--veil-in)) * -46px), 0);
}

.scene-05 .text-scroll-right {
  --veil-in: clamp(0, calc((var(--video-progress, 0) - 0.88) / 0.12), 1);
  right: clamp(12px, 1.6vw, 42px);
  opacity: calc(var(--veil-in) * 0.94);
  transform: translate3d(0, calc((1 - var(--veil-in)) * -58px), 0);
}

/* 文字帘：不加额外帘面——画上本有纱帘，文字直接落于其上。
   随 --veil-in 自上垂落显形；飘动交给逐列的柳枝动画（见下） */
.scene-05 .scroll-cloth {
  position: absolute;
  inset: 1px 0 auto;
  height: 100%;
  overflow: hidden;
  background: transparent;
  clip-path: inset(0 0 calc((1 - var(--veil-in, 0)) * 94%) 0);
  -webkit-mask-image: linear-gradient(to bottom, black 0 74%, rgba(0, 0, 0, 0.82) 87%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0 74%, rgba(0, 0, 0, 0.82) 87%, transparent 100%);
}

/* ============ 柳枝式飘动 ============
   每列文字一枝：外层 .wl 慢速主摆（以列顶为根旋转，底部字幅自然放大），
   内层 .wl-i 快速微颤；各列周期互不成倍数、负延迟错相，永不同步 */
@keyframes willow-sway {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  18% {
    transform: translateX(2.4px) rotate(0.55deg);
  }
  36% {
    transform: translateX(-0.8px) rotate(-0.18deg);
  }
  55% {
    transform: translateX(3.1px) rotate(0.8deg);
  }
  76% {
    transform: translateX(-2.6px) rotate(-0.6deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

/* 外缘枝：摆幅略大 */
@keyframes willow-sway-wide {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  21% {
    transform: translateX(3.6px) rotate(0.85deg);
  }
  43% {
    transform: translateX(-1.4px) rotate(-0.3deg);
  }
  62% {
    transform: translateX(4.4px) rotate(1.1deg);
  }
  83% {
    transform: translateX(-3.6px) rotate(-0.85deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes willow-flutter {
  0%,
  100% {
    transform: translateX(0.5px) translateY(0) rotate(0.12deg);
  }
  50% {
    transform: translateX(-0.7px) translateY(0.6px) rotate(-0.18deg);
  }
}

.scene-05 .scroll-verse .wl,
.scene-05 .scroll-verse .wl-i {
  display: block;
  transform-origin: 50% 0;
}

.scene-05 .scroll-verse .wl {
  animation: willow-sway 9.6s ease-in-out infinite;
}

.scene-05 .scroll-verse .wl-i {
  animation: willow-flutter 3.9s ease-in-out infinite;
}

/* 左帘：外缘在左（第 3、4 列摆幅放大）；各列错相 */
.scene-05 .text-scroll-left .wl:nth-child(1) { animation-duration: 9.4s; animation-delay: -1.1s; }
.scene-05 .text-scroll-left .wl:nth-child(2) { animation-duration: 10.8s; animation-delay: -4.6s; }
.scene-05 .text-scroll-left .wl:nth-child(3) { animation-name: willow-sway-wide; animation-duration: 8.9s; animation-delay: -6.2s; }
.scene-05 .text-scroll-left .wl:nth-child(4) { animation-name: willow-sway-wide; animation-duration: 11.3s; animation-delay: -2.9s; }
.scene-05 .text-scroll-left .wl:nth-child(1) .wl-i { animation-duration: 3.6s; animation-delay: -0.5s; }
.scene-05 .text-scroll-left .wl:nth-child(2) .wl-i { animation-duration: 4.2s; animation-delay: -1.9s; }
.scene-05 .text-scroll-left .wl:nth-child(3) .wl-i { animation-duration: 3.3s; animation-delay: -2.7s; }
.scene-05 .text-scroll-left .wl:nth-child(4) .wl-i { animation-duration: 4.7s; animation-delay: -0.8s; }

/* 右帘：外缘在右（第 1、2 列摆幅放大）；与左帘完全不同的相位 */
.scene-05 .text-scroll-right .wl:nth-child(1) { animation-name: willow-sway-wide; animation-duration: 10.2s; animation-delay: -3.4s; }
.scene-05 .text-scroll-right .wl:nth-child(2) { animation-name: willow-sway-wide; animation-duration: 9.1s; animation-delay: -5.8s; }
.scene-05 .text-scroll-right .wl:nth-child(3) { animation-duration: 11.6s; animation-delay: -0.7s; }
.scene-05 .text-scroll-right .wl:nth-child(4) { animation-duration: 8.6s; animation-delay: -7.3s; }
.scene-05 .text-scroll-right .wl:nth-child(1) .wl-i { animation-duration: 3.9s; animation-delay: -1.2s; }
.scene-05 .text-scroll-right .wl:nth-child(2) .wl-i { animation-duration: 3.5s; animation-delay: -0.2s; }
.scene-05 .text-scroll-right .wl:nth-child(3) .wl-i { animation-duration: 4.4s; animation-delay: -2.1s; }
.scene-05 .text-scroll-right .wl:nth-child(4) .wl-i { animation-duration: 3.1s; animation-delay: -1.5s; }

/* 题签列：只随主摆，更缓更稳 */
.scene-05 .text-scroll-left .scroll-title { animation: willow-sway 12.4s ease-in-out -3.2s infinite; }
.scene-05 .text-scroll-right .scroll-title { animation: willow-sway 13.1s ease-in-out -6.5s infinite; }

.scene-05 .scroll-title,
.scene-05 .scroll-verse {
  position: absolute;
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: upright;
  transform-origin: 50% 0;
}

.scene-05 .scroll-title {
  top: 9%;
  right: 18%;
  font-size: 12px;
  letter-spacing: 0.26em;
  color: rgba(14, 50, 101, 0.78);
}

.scene-05 .scroll-verse {
  top: 11%;
  left: 20%;
  height: 65%;
  font-size: clamp(9px, 0.72vw, 11px);
  line-height: 2.25;
  letter-spacing: 0.22em;
  color: rgba(14, 50, 101, 0.62);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.55);
}

.scene-05 .text-scroll-right .scroll-title { right: auto; left: 18%; }
.scene-05 .text-scroll-right .scroll-verse { left: auto; right: 20%; }

.scene-05 .scroll-seal {
  position: absolute;
  left: 50%;
  bottom: 15%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(195, 80, 70, 0.52);
  color: rgba(195, 80, 70, 0.72);
  font-size: 10px;
  transform: translateX(-50%) rotate(-4deg);
}

.scene-05 .text-scroll-right .scroll-seal {
  transform: translateX(-50%) rotate(4deg);
}

.scene-05 .finale-center {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: min(43vw, 590px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translate3d(-50%, calc(-48% + max(0, 0.52 - var(--video-progress, 0)) * 77px), 0);
  opacity: clamp(0, calc((var(--video-progress, 0) - 0.52) * 4.8), 1);
}

.scene-05.sheet-hidden .finale-center,
.scene-05.sheet-hidden .finale-cta {
  pointer-events: none;
}

.scene-05 .finale-center::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -52px -92px -40px;
  background: radial-gradient(
    ellipse at center,
    rgba(247, 248, 245, 0.88) 0,
    rgba(247, 248, 245, 0.64) 42%,
    rgba(247, 248, 245, 0.18) 66%,
    transparent 78%
  );
  filter: blur(3px);
  pointer-events: none;
}

.scene-05 .finale-kicker,
.scene-05 .finale-note {
  font: 500 9px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    sans-serif;
  letter-spacing: 0.32em;
}

.scene-05 .finale-kicker {
  margin: 0 0 20px;
  color: rgba(14, 50, 101, 0.72);
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.6);
}

.scene-05 .finale-mark {
  position: relative;
  width: clamp(82px, 8.2vw, 124px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(250, 248, 241, 0.72);
  box-shadow:
    0 0 0 1px rgba(130, 190, 200, 0.12),
    0 22px 70px rgba(14, 50, 101, 0.08);
  transform: rotate(calc(max(0, 1 - var(--video-progress, 0) * 1.6) * -18deg))
    scale(clamp(0.7, calc(var(--video-progress, 0) * 1.6), 1));
}

.scene-05 .finale-mark::before,
.scene-05 .finale-mark::after,
.scene-05 .finale-mark i {
  content: "";
  position: absolute;
  inset: -13px;
  border: 1px solid rgba(130, 190, 200, 0.14);
  border-radius: 50%;
}

.scene-05 .finale-mark::after {
  inset: -25px;
  border-style: dashed;
  border-color: rgba(14, 50, 101, 0.1);
  transform: rotate(calc(var(--video-progress, 0) * 20deg));
}

.scene-05 .finale-mark i {
  inset: -37px;
  border-color: rgba(242, 180, 140, 0.12);
  transform: rotate(calc(var(--video-progress, 0) * -14deg));
}

.scene-05 .finale-mark img {
  width: 80%;
  height: 80%;
  border-radius: 50%;
}

.scene-05 .finale-center h2 {
  display: grid;
  gap: 13px;
  margin: 0;
  font-weight: 400;
}

.scene-05 .finale-center h2 span {
  font-size: clamp(38px, 4.2vw, 66px);
  letter-spacing: 0.13em;
  line-height: 1;
}

.scene-05 .finale-center h2 small {
  font-size: clamp(14px, 1.3vw, 19px);
  font-weight: 400;
  letter-spacing: 0.34em;
  color: rgba(14, 50, 101, 0.8);
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.6);
}

/* 描金界行：金线流光，中央菱花收束——分「题」与「跋」 */
.scene-05 .finale-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(240px, 32vw);
  margin: 22px 0 0;
}

.scene-05 .finale-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    100deg,
    rgba(154, 133, 80, 0.06),
    rgba(154, 133, 80, 0.72) 52%,
    rgba(232, 206, 148, 0.92)
  );
  background-size: 220% 100%;
  animation: rule-sheen 5.2s ease-in-out infinite;
}

.scene-05 .finale-rule span:last-child {
  transform: scaleX(-1);
}

.scene-05 .finale-rule i {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(181, 163, 106, 0.85);
  transform: rotate(45deg);
}

.scene-05 .finale-copy {
  margin: 17px 0 0;
  color: rgba(14, 50, 101, 0.78);
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: 0.12em;
  text-shadow:
    0 1px 14px rgba(255, 255, 255, 0.65),
    0 0 4px rgba(255, 255, 255, 0.5);
}

/* 领句：题跋之骨，深一号、大一号 */
.scene-05 .finale-copy .copy-lead {
  color: rgba(14, 50, 101, 0.94);
  font-size: 14.5px;
  letter-spacing: 0.15em;
}

/* 描金签 CTA：鎏金细框 + 内界栏 + 四角金线 + 朱砂小印 */
.scene-05 .finale-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 13px 26px 12px 15px;
  border: 1px solid rgba(154, 133, 80, 0.62);
  border-radius: 2px;
  background: linear-gradient(167deg, rgba(255, 255, 255, 0.52), rgba(250, 248, 241, 0.24));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 12px 32px rgba(14, 50, 101, 0.12);
  color: rgba(14, 50, 101, 0.92);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition:
    border-color 300ms ease,
    box-shadow 300ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* 内界栏 */
.scene-05 .finale-cta::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(14, 50, 101, 0.13);
  pointer-events: none;
}

/* 四角鎏金角线 */
.scene-05 .finale-cta::after {
  content: "";
  position: absolute;
  inset: 2px;
  background:
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) top left / 11px 1px,
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) top left / 1px 11px,
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) top right / 11px 1px,
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) top right / 1px 11px,
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) bottom left / 11px 1px,
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) bottom left / 1px 11px,
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) bottom right / 11px 1px,
    linear-gradient(rgba(154, 133, 80, 0.9), rgba(154, 133, 80, 0.9)) bottom right / 1px 11px;
  background-repeat: no-repeat;
  pointer-events: none;
}

.scene-05 .finale-cta:hover,
.scene-05 .finale-cta:focus-visible {
  border-color: rgba(154, 133, 80, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 16px 40px rgba(14, 50, 101, 0.16);
  transform: translateY(-1px);
}

/* 朱砂小印：白文「排」 */
.scene-05 .cta-seal {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 235, 214, 0.28), rgba(255, 235, 214, 0) 46%),
    linear-gradient(158deg, #cd5d4e 8%, #a6382d 82%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 214, 0.22),
    inset 0 2px 3px rgba(255, 244, 228, 0.18),
    inset 0 -3px 5px rgba(96, 24, 17, 0.38),
    0 2px 7px rgba(148, 42, 32, 0.3);
  color: #f6edd9;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(96, 24, 17, 0.45);
  transform: rotate(-3deg);
}

.scene-05 .finale-cta svg {
  width: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scene-05 .finale-cta:hover svg,
.scene-05 .finale-cta:focus-visible svg {
  transform: translateX(6px);
}

.scene-05 .finale-cta:focus-visible {
  outline: 2px solid var(--celadon);
  outline-offset: 7px;
}

/* 签注：两侧淡出金线夹注 */
.scene-05 .finale-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 0;
  color: rgba(14, 50, 101, 0.6);
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.6);
}

.scene-05 .finale-note::before,
.scene-05 .finale-note::after {
  content: "";
  width: 38px;
  height: 1px;
}

.scene-05 .finale-note::before {
  background: linear-gradient(90deg, transparent, rgba(154, 133, 80, 0.62));
}

.scene-05 .finale-note::after {
  background: linear-gradient(90deg, rgba(154, 133, 80, 0.62), transparent);
}

.scene-05 .filing-link {
  margin-top: 12px;
  color: rgba(14, 50, 101, 0.52);
  font: 400 10px/1.4 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    sans-serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.55);
}

.scene-05 .filing-link:hover,
.scene-05 .filing-link:focus-visible {
  color: rgba(14, 50, 101, 0.82);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ 转化层：帖内文字链 + 常驻下载角标 ============ */
.card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding: 2px 0 4px;
  border-bottom: 1px solid rgba(14, 50, 101, 0.26);
  color: rgba(14, 50, 101, 0.78);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: color 300ms ease, border-color 300ms ease;
}

.card-link:hover,
.card-link:focus-visible {
  color: rgba(195, 80, 70, 0.85);
  border-color: rgba(195, 80, 70, 0.45);
}

.card-link:focus-visible {
  outline: 2px solid var(--celadon);
  outline-offset: 5px;
}

.app-badge {
  position: fixed;
  z-index: 40;
  top: 22px;
  right: 26px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(181, 163, 106, 0.55);
  border-radius: 999px;
  background: rgba(238, 246, 244, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 26px rgba(14, 50, 101, 0.13);
  color: rgba(14, 50, 101, 0.85);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-decoration: none;
  transition: background 300ms ease, box-shadow 300ms ease;
}

.app-badge:hover,
.app-badge:focus-visible {
  background: rgba(238, 246, 244, 0.98);
  box-shadow: 0 12px 34px rgba(14, 50, 101, 0.18);
}

.app-badge:focus-visible {
  outline: 2px solid var(--celadon);
  outline-offset: 4px;
}

.app-badge img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  clip-path: circle(47%);
  mix-blend-mode: multiply;
  filter: saturate(0.82) contrast(1.04);
}
