/* ============================================================
   盛京灯影 · 奉天皮影志
   设计语言:暗夜戏台 / 灯笼暖光 / 宣纸镂影
   ============================================================ */

:root {
  --ink:        #140d07;
  --ink-2:      #1d130a;
  --ink-3:      #281a0d;
  --paper:      #f3e7c8;
  --paper-dim:  #cdbd97;
  --paper-faint: rgba(243, 231, 200, 0.62);
  --amber:      #e2a44a;
  --amber-deep: #c67f2f;
  --cinnabar:   #b6402a;
  --line:       rgba(226, 164, 74, 0.16);
  --line-soft:  rgba(243, 231, 200, 0.09);
  --f-calli: "Ma Shan Zheng", "Noto Serif SC", serif;
  --f-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --pad-x: clamp(20px, 5vw, 64px);
  --sec-gap: clamp(96px, 14vw, 180px);
  --radius: 6px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-serif);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cinnabar); color: var(--paper); }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.seal {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--f-calli);
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: 0 2px 14px rgba(182, 64, 42, 0.45);
  flex: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--amber);
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--amber);
  opacity: 0.7;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.35s, color 0.35s, border-color 0.35s;
}
.btn--solid {
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 6px 26px rgba(226, 164, 74, 0.28);
}
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(226, 164, 74, 0.4); }
.btn--ghost { border: 1px solid var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-3px); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--pad-x);
  transition: background-color 0.4s, box-shadow 0.4s, padding 0.4s;
}
.nav.is-scrolled {
  background: rgba(20, 13, 7, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-calli);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  position: relative;
  font-size: 0.92rem;
  color: var(--paper-faint);
  letter-spacing: 0.08em;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.nav__cta:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px var(--pad-x) 96px;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 46% 38% at 74% 46%, rgba(226, 164, 74, 0.2), transparent 70%),
    radial-gradient(ellipse 70% 55% at 20% 110%, rgba(182, 64, 42, 0.1), transparent 70%),
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(40, 26, 13, 0.9), transparent);
}
.hero__couplet {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--f-calli);
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  letter-spacing: 0.5em;
  color: rgba(243, 231, 200, 0.2);
  user-select: none;
}
.hero__couplet--l { left: max(10px, calc(var(--pad-x) - 44px)); }
.hero__couplet--r { right: max(10px, calc(var(--pad-x) - 44px)); }

.hero__inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.hero__title {
  margin: 26px 0 10px;
  font-family: var(--f-calli);
  font-weight: 400;
  font-size: clamp(3.6rem, 9.5vw, 7.6rem);
  line-height: 1.08;
  letter-spacing: 0.04em;
}
.hero__char {
  display: inline-block;
  background: linear-gradient(168deg, var(--paper) 30%, var(--amber) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__tagline {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--amber);
  letter-spacing: 0.18em;
  font-weight: 600;
}
.hero__lead { max-width: 46ch; margin: 22px 0 36px; color: var(--paper-faint); line-height: 2; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.screen { justify-self: center; width: min(430px, 100%); }
.screen__frame {
  padding: 14px;
  background: linear-gradient(160deg, #3a2412, #221307);
  border-radius: 10px;
  border: 1px solid rgba(226, 164, 74, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 90px rgba(226, 164, 74, 0.12);
}
.screen__lit {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: 4px;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 80% at 50% 42%, #f8ecca 0%, #eed9a8 55%, #dcbd7d 100%);
  box-shadow: inset 0 0 60px rgba(140, 90, 20, 0.35);
}
.screen__flicker {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 244, 214, 0.5), transparent 70%);
  mix-blend-mode: soft-light;
  animation: flicker 4.2s ease-in-out infinite;
  pointer-events: none;
}
.screen__caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  color: var(--paper-faint);
}

.puppet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #170d05;
  animation: drift 7s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.puppet__flags polygon { fill: #170d05; }
.puppet__ling { fill: none; stroke: #170d05; stroke-width: 4.5; stroke-linecap: round; }
.puppet__rod { fill: none; stroke: #170d05; stroke-width: 4; stroke-linecap: round; opacity: 0.85; }
.puppet__carve { fill: #ecd6a4; }
.puppet__carve path { fill: none; stroke: #ecd6a4; stroke-width: 3; stroke-linecap: round; }

@keyframes drift {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50%      { transform: rotate(0.7deg) translateY(-7px); }
}
@keyframes flicker {
  0%, 100% { opacity: 0.75; }
  45%      { opacity: 0.95; }
  60%      { opacity: 0.7; }
  80%      { opacity: 0.9; }
}

.hero__scrollcue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--paper-faint);
}
.hero__scrollcue i {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--amber), transparent);
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 数字带 ---------- */
.stats { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 0 var(--pad-x); }
.stats__grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 44px 20px; text-align: center; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: none; }
.stat b {
  display: block;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.stat b i { font-style: normal; font-size: 0.42em; color: var(--amber); margin-left: 4px; letter-spacing: 0.1em; }
.stat span { display: block; margin-top: 10px; font-size: 0.86rem; letter-spacing: 0.2em; color: var(--paper-faint); }

/* ---------- 通用区块 ---------- */
.section { padding: var(--sec-gap) var(--pad-x) 0; }
.section__head { width: min(1240px, 100%); margin: 0 auto clamp(48px, 7vw, 84px); }
.section__title { margin-top: 22px; font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 900; line-height: 1.25; letter-spacing: 0.02em; }
.section__title em { font-style: normal; color: var(--amber); }
.section__intro { max-width: 58ch; margin-top: 20px; color: var(--paper-faint); line-height: 2; }

/* ---------- 影脉 ---------- */
.schools__list {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.school {
  position: relative;
  padding: 34px 30px 30px;
  background: linear-gradient(165deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
}
.school::before {
  content: "";
  position: absolute;
  top: -70px; left: 50%;
  width: 220px; height: 140px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(226, 164, 74, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.school:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.school:hover::before { opacity: 1; }
.school__head {
  display: grid;
  place-items: center;
  height: 150px;
  margin-bottom: 22px;
  border-radius: 4px;
  background: radial-gradient(ellipse 80% 90% at 50% 30%, #f2e3bd, #dfc288);
  box-shadow: inset 0 0 34px rgba(140, 90, 20, 0.3);
}
.touca { height: 124px; fill: #170d05; }
.touca__carve, .touca__beads { fill: none; stroke: #ecd6a4; stroke-width: 2.4; stroke-linecap: round; }
.touca__beard { fill: #170d05; stroke: none; }
.school h3 { font-size: 1.35rem; font-weight: 900; letter-spacing: 0.06em; }
.school__region { margin: 6px 0 14px; font-size: 0.8rem; letter-spacing: 0.24em; color: var(--amber); }
.school__desc { font-size: 0.94rem; line-height: 1.95; color: var(--paper-faint); }
.school__rep { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-soft); font-size: 0.84rem; color: var(--paper-dim); letter-spacing: 0.04em; }

/* ---------- 制影八工 ---------- */
.craftfilm {
  width: min(880px, calc(100% - 2 * var(--pad-x)));
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.craftfilm__frame {
  padding: 12px;
  background: linear-gradient(160deg, #3a2412, #221307);
  border-radius: 10px;
  border: 1px solid rgba(226, 164, 74, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 70px rgba(226, 164, 74, 0.1);
}
.craftfilm__frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
}
.craftfilm__caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.84rem;
  letter-spacing: 0.22em;
  color: var(--paper-faint);
}

.craft__steps {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 64px;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  padding: 34px 8px 34px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step__num {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 164, 74, 0.55);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s;
}
.step:hover .step__num { color: rgba(226, 164, 74, 0.9); }
.step__body h3 { font-size: 1.25rem; font-weight: 900; letter-spacing: 0.1em; margin-bottom: 8px; }
.step__body p { font-size: 0.94rem; line-height: 1.95; color: var(--paper-faint); max-width: 46ch; }
.step__tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: var(--amber);
}

/* ---------- 剧目 ---------- */
.plays__filters {
  width: min(1240px, 100%);
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  padding: 9px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--paper-faint);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s, transform 0.3s var(--ease-out);
}
.chip:hover { color: var(--paper); border-color: var(--line); transform: translateY(-2px); }
.chip.is-active { background: var(--amber); border-color: var(--amber); color: var(--ink); font-weight: 600; }

.plays__grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.play {
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s, opacity 0.4s var(--ease-out);
}
.play:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
.play[hidden] { display: none; }
.play.is-filtering-in { animation: playIn 0.5s var(--ease-out) both; }
@keyframes playIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.play__art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, #f0e0b6 0%, #e2c68c 62%, #d4b273 100%);
  box-shadow: inset 0 0 40px rgba(140, 90, 20, 0.32);
}
.play__art svg { width: 74%; height: 74%; }
.sil { fill: #170d05; stroke: none; }
.sil[fill="none"] { fill: none; stroke: #170d05; stroke-linecap: round; }
.carve-line { fill: none; stroke: #ecd6a4; stroke-width: 4; stroke-linecap: round; }
.play__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.play__cat { font-size: 0.74rem; letter-spacing: 0.2em; color: var(--amber); }
.play__body h3 { margin: 8px 0 8px; font-size: 1.18rem; font-weight: 900; letter-spacing: 0.04em; }
.play__syn { font-size: 0.88rem; line-height: 1.85; color: var(--paper-faint); }
.play__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.play__meta li {
  padding: 3px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
}
.play__scriptbtn {
  margin-top: 14px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  min-height: 44px;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  color: var(--amber);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s, gap 0.3s var(--ease-out);
}
.play__scriptbtn i { font-style: normal; transition: transform 0.3s var(--ease-out); }
.play__scriptbtn:hover { color: var(--paper); border-color: var(--amber); }
.play__scriptbtn:hover i { transform: translateX(5px); }

/* ---------- 剧本弹页 ---------- */
.scriptdlg {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
}
.scriptdlg::backdrop {
  background: rgba(10, 6, 3, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.scriptdlg[open] { animation: dlgIn 0.45s var(--ease-out); }
@keyframes dlgIn {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.scriptdlg__page {
  position: relative;
  max-height: inherit;
  overflow-y: auto;
  padding: clamp(28px, 5vw, 48px) clamp(24px, 5vw, 52px);
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, #f6ead0, transparent 70%),
    linear-gradient(#efdfb8, #e6d1a2);
  color: #241607;
  border-radius: 8px;
  border: 1px solid rgba(198, 127, 47, 0.5);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), inset 0 0 80px rgba(140, 90, 20, 0.18);
}
.scriptdlg__ribbon {
  position: absolute;
  top: 22px;
  left: -8px;
  padding: 6px 14px 6px 12px;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--f-calli);
  letter-spacing: 0.2em;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 4px 14px rgba(182, 64, 42, 0.4);
}
.scriptdlg .eyebrow { color: var(--cinnabar); margin-top: 34px; }
.scriptdlg .eyebrow::before { background: var(--cinnabar); }
.scriptdlg__title {
  margin-top: 14px;
  font-family: var(--f-calli);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: 0.05em;
  color: #1c1004;
}
.scriptdlg__scene { margin-top: 10px; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.12em; color: #7a4a12; }
.scriptdlg__roles {
  margin-top: 6px;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: #6b5334;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(122, 74, 18, 0.35);
}
.scriptdlg__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  padding: 10px 16px;
  min-height: 44px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: #7a4a12;
  border: 1px solid rgba(122, 74, 18, 0.45);
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}
.scriptdlg__close:hover { background: var(--cinnabar); color: var(--paper); border-color: var(--cinnabar); }
.scriptdlg__body { margin-top: 22px; }
.sblock { margin-bottom: 26px; }
.sblock__who {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--cinnabar);
  margin-bottom: 8px;
}
.sblock__tune {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 12px;
  border: 1px solid rgba(182, 64, 42, 0.55);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--cinnabar);
}
.sblock--nian .sblock__text { font-size: 0.97rem; line-height: 2.05; color: #33210c; }
.sblock__verse { font-size: 1.02rem; line-height: 2.15; color: #241607; letter-spacing: 0.06em; }
.sblock__verse span { display: block; }
.scriptdlg__note {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px dashed rgba(122, 74, 18, 0.35);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #8a6d42;
}

/* ---------- 尾声 ---------- */
.finale {
  position: relative;
  margin-top: var(--sec-gap);
  padding: clamp(110px, 16vw, 200px) var(--pad-x);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 108%, rgba(226, 164, 74, 0.16), transparent 70%),
    linear-gradient(var(--ink), var(--ink-2));
  border-top: 1px solid var(--line-soft);
}
.finale__inner { max-width: 720px; margin: 0 auto; }
.finale .eyebrow { justify-content: center; }
.finale .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--amber); opacity: 0.7; }
.finale__line {
  margin: 26px 0 22px;
  font-family: var(--f-calli);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.3;
  letter-spacing: 0.06em;
}
.finale__line em { font-style: normal; color: var(--amber); }
.finale__text { color: var(--paper-faint); line-height: 2.1; margin-bottom: 40px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 56px var(--pad-x) 34px; background: var(--ink); }
.footer__inner {
  width: min(1240px, 100%);
  margin: 0 auto 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; gap: 16px; align-items: center; }
.footer__brand b { font-family: var(--f-calli); font-size: 1.3rem; font-weight: 400; letter-spacing: 0.08em; }
.footer__brand p { margin-top: 4px; font-size: 0.84rem; color: var(--paper-faint); }
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__links a { font-size: 0.88rem; color: var(--paper-faint); padding: 6px 0; transition: color 0.3s; }
.footer__links a:hover { color: var(--amber); }
.footer__note {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(243, 231, 200, 0.38);
}

/* ---------- 入场动效(fail-open) ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.js .hero__copy .reveal:nth-child(2) { transition-delay: 0.15s; }
.js .hero__copy .reveal:nth-child(3) { transition-delay: 0.25s; }
.js .hero__copy .reveal:nth-child(4) { transition-delay: 0.35s; }
.js .hero__copy .reveal:nth-child(5) { transition-delay: 0.45s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .plays__grid { grid-template-columns: repeat(3, 1fr); }
  .schools__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__lead { max-width: 60ch; }
  .screen { width: min(400px, 92%); }
  .hero__couplet { display: none; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { padding: 32px 12px; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .plays__grid { grid-template-columns: repeat(2, 1fr); }
  .craft__steps { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  .schools__list, .plays__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(3rem, 17vw, 4.4rem); }
  .hero__actions .btn { flex: 1 1 auto; }
  .stat b { font-size: 2.2rem; }
  .scriptdlg { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
