/* =========================================================
   八班回忆录 · 版块层
   Hero / 数据 / 序章 / 三年 / 信 / 终章 / 页脚
   ========================================================= */

.site {
  position: relative;
  z-index: 3;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: calc(var(--nav-h) + clamp(2.4rem, 7vh, 5rem));
  padding-bottom: clamp(3.5rem, 9vh, 7rem);
  overflow: clip;
}

.hero__word {
  position: absolute;
  right: -0.03em;
  bottom: -0.2em;
  z-index: 0;
  font-family: var(--font-num);
  font-size: clamp(7rem, 21vw, 20rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 195, 126, 0.16);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  opacity: 0.85;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__copy {
  max-width: 34em;
}

.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: clamp(1.2rem, 2.4vw, 1.9rem);
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.03em;
  margin-bottom: clamp(1.2rem, 2.6vw, 1.9rem);
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line > span {
  display: block;
  transform: translateY(110%);
  animation: hero-line 1.25s var(--ease) forwards;
  animation-delay: calc(0.15s + var(--l, 0) * 0.11s);
}

@keyframes hero-line {
  to {
    transform: none;
  }
}

.hero h1 .grad {
  background: linear-gradient(96deg, #fff6e0 0%, var(--gold) 38%, var(--amber) 68%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(233, 195, 126, 0.22));
}

.hero__lead {
  max-width: 32em;
  color: var(--txt-soft);
  font-size: clamp(0.98rem, 0.4vw + 0.9rem, 1.12rem);
  line-height: 2;
}

.hero__quote {
  margin-top: clamp(1.4rem, 3vw, 2.1rem);
  padding-left: 1.1rem;
  border-left: 1px solid rgba(233, 195, 126, 0.45);
  color: var(--txt-mute);
  font-size: 0.88rem;
  line-height: 1.9;
}

.hero__quote cite {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-family: var(--font-num);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(1.8rem, 3.4vw, 2.6rem);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  font-family: var(--font-num);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--txt-faint);
  text-transform: uppercase;
}

.hero__meta b {
  color: var(--txt-soft);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-right: 0.25em;
}

/* --- 悬浮拍立得 --- */

.stack {
  position: relative;
  aspect-ratio: 1 / 1.02;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
  perspective: 1200px;
}

.stack__ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed rgba(243, 240, 233, 0.13);
  animation: spin 46s linear infinite;
  pointer-events: none;
}

.stack__ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px 3px rgba(233, 195, 126, 0.7);
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.shot {
  position: absolute;
  padding: 9px;
  background: linear-gradient(160deg, #fbf7ee, #e9e1d2);
  border-radius: 4px;
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.9), 0 2px 0 rgba(255, 255, 255, 0.35) inset;
  transform-origin: 50% 60%;
  will-change: transform;
  transition: box-shadow 0.5s var(--ease);
}


.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  background: #1b1e26;
}

.shot--a {
  width: 44%;
  aspect-ratio: 3 / 4;
  left: 4%;
  top: 8%;
  transform: rotate(-8deg);
  z-index: 3;
  animation: float-a 9s ease-in-out infinite alternate;
}

.shot--b {
  width: 44%;
  aspect-ratio: 4 / 5;
  right: 0;
  top: 32%;
  transform: rotate(6deg);
  z-index: 4;
  animation: float-b 11s ease-in-out infinite alternate;
  animation-delay: -2s;
}

.shot--c {
  width: 40%;
  aspect-ratio: 3 / 4;
  left: 20%;
  bottom: 2%;
  transform: rotate(11deg);
  z-index: 2;
  animation: float-c 13s ease-in-out infinite alternate;
  animation-delay: -5s;
}

.shot:hover {
  z-index: 9;
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(233, 195, 126, 0.4);
}

@keyframes float-a {
  50% {
    transform: rotate(-6deg) translate3d(0, -10px, 0);
  }
}

@keyframes float-b {
  50% {
    transform: rotate(4deg) translate3d(0, 12px, 0);
  }
}

@keyframes float-c {
  50% {
    transform: rotate(8deg) translate3d(0, -8px, 0);
  }
}

.stack__stamp {
  position: absolute;
  right: 2%;
  top: 4%;
  z-index: 6;
  width: clamp(74px, 9vw, 104px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(233, 195, 126, 0.55);
  background: radial-gradient(circle at 35% 30%, rgba(233, 195, 126, 0.22), rgba(8, 9, 15, 0.75) 70%);
  backdrop-filter: blur(4px);
  transform: rotate(-14deg);
  text-align: center;
  box-shadow: 0 0 40px rgba(233, 195, 126, 0.18);
}

.stack__stamp b {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1;
  color: var(--gold);
}

.stack__stamp span {
  display: block;
  font-family: var(--font-num);
  font-size: 0.48rem;
  letter-spacing: 0.26em;
  color: var(--txt-mute);
  margin-top: 0.3em;
}

/* 滚动提示 */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.2rem, 3vh, 2.4rem);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-family: var(--font-num);
  font-size: 0.58rem;
  letter-spacing: 0.36em;
  color: var(--txt-faint);
  text-transform: uppercase;
  z-index: 3;
}

.scroll-cue i {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--gold), transparent);
  display: block;
  position: relative;
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: cue 2.2s var(--ease-soft) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* ---------------------------------------------------------
   数据条
   --------------------------------------------------------- */

.stats {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  backdrop-filter: blur(6px);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: clamp(1.5rem, 3.4vw, 2.6rem) clamp(0.6rem, 1.6vw, 1.6rem);
  border-left: 1px solid var(--line);
  text-align: center;
}

.stat:first-child {
  border-left: 0;
}

.stat__num {
  font-family: var(--font-num);
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--txt);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.18em;
  font-variant-numeric: tabular-nums;
}

.stat__num em {
  font-style: normal;
  font-size: 0.42em;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-family: var(--font-num);
}

.stat__label {
  margin-top: 0.7em;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--txt-soft);
}

/* ---------------------------------------------------------
   序章
   --------------------------------------------------------- */

.prologue__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2.4rem, 6vw, 5.5rem);
  align-items: center;
}

.pro-copy .h2 {
  margin-bottom: 1.5rem;
}

.pro-copy p + p {
  margin-top: 1.05rem;
}

.pro-copy .lead {
  color: var(--txt-soft);
}

.pro-sign {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--txt-mute);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.pro-sign::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--gold-deep);
}

.pro-visual {
  position: relative;
  padding-block: 2rem;
}

.pro-visual__main {
  position: relative;
  z-index: 2;
  width: 78%;
  margin-left: auto;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px #000, 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pro-visual__thumb {
  position: absolute;
  z-index: 3;
  width: 42%;
  aspect-ratio: 4 / 3;
  left: 0;
  bottom: 4%;
  border-radius: 4px;
  overflow: hidden;
  border: 6px solid #f6f1e6;
  box-shadow: 0 30px 60px -24px #000;
  transform: rotate(-4deg);
}

.pro-visual__main img,
.pro-visual__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.8s;
  filter: saturate(0.92) contrast(1.02);
}

.pro-visual:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.pro-visual__word {
  position: absolute;
  left: 0;
  top: 5%;
  z-index: 1;
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.1vw, 2.7rem);
  letter-spacing: 0.4em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 195, 126, 0.45);
  opacity: 0.66;
  user-select: none;
  pointer-events: none;
}

/* ---------------------------------------------------------
   三年 · 章节
   --------------------------------------------------------- */

.chapters {
  position: relative;
}

.chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5.5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.6rem, 7vw, 5.5rem);
}

.chapter + .chapter {
  border-top: 1px solid var(--line);
}

.chapter__index {
  position: absolute;
  top: clamp(1.6rem, 4vw, 3rem);
  font-family: var(--font-num);
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.8;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 240, 233, 0.12);
  pointer-events: none;
  user-select: none;
}

.chapter--right .chapter__index {
  right: 0;
}

.chapter--left .chapter__index {
  left: 0;
}

.chapter--right .ch-media {
  order: 2;
}

.ch-media {
  position: relative;
  min-height: clamp(300px, 42vw, 480px);
}

.ch-media__main {
  position: relative;
  z-index: 2;
  width: 82%;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 46px 90px -46px #000, 0 0 0 1px rgba(255, 255, 255, 0.07);
  background: #14171f;
}

.ch-media__main.is-portrait {
  aspect-ratio: 3 / 3.7;
  width: 62%;
}

.ch-media__main img,
.ch-media__small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease), filter 0.6s;
  filter: saturate(0.9);
}

.ch-media:hover img {
  filter: saturate(1.06);
}

.ch-media__main:hover img {
  transform: scale(1.045);
}

.ch-media__small {
  position: absolute;
  z-index: 3;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  border: 5px solid #f4efe4;
  box-shadow: 0 30px 60px -26px #000;
  transition: transform 0.7s var(--ease);
}

.ch-media__small:nth-of-type(2) {
  right: 2%;
  top: 6%;
  transform: rotate(4deg);
}

.ch-media__small:nth-of-type(3) {
  right: 0;
  bottom: 2%;
  transform: rotate(-3deg);
  width: 34%;
}

.ch-media:hover .ch-media__small:nth-of-type(2) {
  transform: rotate(2deg) translateY(-6px);
}

.ch-media:hover .ch-media__small:nth-of-type(3) {
  transform: rotate(-1deg) translateY(6px);
}

.chapter--right .ch-media__main {
  margin-left: auto;
}

.chapter--right .ch-media__small:nth-of-type(2) {
  left: 0;
  right: auto;
  transform: rotate(-4deg);
}

.chapter--right .ch-media__small:nth-of-type(3) {
  left: 2%;
  right: auto;
  transform: rotate(3deg);
}

.ch-copy {
  position: relative;
  z-index: 2;
}

.ch-copy__kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-num);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.ch-copy__kicker i {
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.ch-copy h3 {
  font-size: var(--fs-h3);
  margin-bottom: 1.1rem;
  line-height: 1.35;
}

.ch-copy h3 span {
  color: var(--gold);
}

.ch-copy p {
  color: var(--txt-soft);
  max-width: 44ch;
}

.ch-copy p + p {
  margin-top: 0.85rem;
}

.ch-copy__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.ch-copy__link {
  margin-top: 1.6rem;
}

/* ---------------------------------------------------------
   信 · 纸面
   --------------------------------------------------------- */

.letter-wrap {
  position: relative;
}

.letter {
  position: relative;
  overflow: hidden;
  border-radius: clamp(14px, 2.4vw, 26px);
  padding: clamp(2rem, 5.4vw, 4.6rem);
  background:
    radial-gradient(120% 90% at 100% 0%, #fdf7ec 0%, transparent 55%),
    linear-gradient(150deg, #f5eee2, #eadfcd 70%, #e5d8c3);
  color: var(--paper-ink);
  box-shadow: 0 60px 100px -60px rgba(0, 0, 0, 0.9);
  isolation: isolate;
}

.letter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 31px,
    rgba(33, 29, 24, 0.05) 31px,
    rgba(33, 29, 24, 0.05) 32px
  );
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

.letter__word {
  position: absolute;
  right: -0.04em;
  bottom: -0.24em;
  font-family: var(--font-serif);
  font-size: clamp(9rem, 26vw, 22rem);
  line-height: 0.75;
  color: rgba(33, 29, 24, 0.045);
  pointer-events: none;
  user-select: none;
}

.letter .eyebrow {
  color: #8a6a33;
}

.letter .eyebrow::before {
  background: linear-gradient(90deg, transparent, #b98d45);
}

.letter .eyebrow .num {
  color: rgba(33, 29, 24, 0.4);
}

.letter h2 {
  font-size: var(--fs-h2);
  margin-block: 0.7rem 1.6rem;
  color: var(--paper-ink);
}

.letter__body {
  max-width: 62ch;
  font-size: clamp(0.98rem, 0.4vw + 0.9rem, 1.1rem);
  line-height: 2.15;
  color: var(--paper-ink-soft);
  font-family: var(--font-serif);
}

.letter__body p + p {
  margin-top: 0.9rem;
}

.letter__body strong {
  color: var(--paper-ink);
  font-weight: 600;
  background: linear-gradient(transparent 62%, rgba(233, 195, 126, 0.45) 62%);
  padding-inline: 0.1em;
}

.letter__body .dropcap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 3.2em;
  line-height: 0.86;
  padding: 0.06em 0.12em 0 0;
  color: #6f5225;
}

.letter__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.6rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.letter__sign {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--paper-ink);
  line-height: 1.9;
}

.letter__sign span {
  display: block;
  font-family: var(--font-num);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  color: rgba(33, 29, 24, 0.5);
  margin-top: 0.5em;
  text-transform: uppercase;
}

.seal {
  width: clamp(80px, 10vw, 112px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid rgba(168, 60, 48, 0.55);
  border-radius: 6px;
  color: rgba(168, 60, 48, 0.78);
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-align: center;
  transform: rotate(-7deg);
  opacity: 0.85;
  mix-blend-mode: multiply;
  flex: none;
}

/* ---------------------------------------------------------
   跑马灯
   --------------------------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(0.9rem, 2vw, 1.5rem);
  background: linear-gradient(90deg, rgba(164, 140, 255, 0.06), rgba(233, 195, 126, 0.07), rgba(255, 138, 149, 0.06));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}

.marquee__group span {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.8vw, 1.3rem);
  letter-spacing: 0.14em;
  color: var(--txt-soft);
  padding-inline: clamp(1.2rem, 3vw, 2.4rem);
  white-space: nowrap;
}

.marquee__group em {
  font-style: normal;
  color: var(--gold);
  opacity: 0.7;
  font-size: 0.8em;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------------------------------------------------------
   终章
   --------------------------------------------------------- */

.finale {
  position: relative;
  overflow: clip;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: min(78vh, 780px);
  min-height: min(78svh, 780px);
  padding-block: clamp(3rem, 8vw, 6rem);
  text-align: center;
  isolation: isolate;
}

.finale__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 40%;
  filter: grayscale(0.35) brightness(0.52) saturate(1.1);
  transform: scale(1.04);
  opacity: 0.85;
}

.finale::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--ink-0) 0%, rgba(5, 6, 11, 0) 26%, rgba(5, 6, 11, 0) 72%, var(--ink-0) 100%),
    radial-gradient(70% 60% at 50% 50%, rgba(5, 6, 11, 0.3), var(--ink-0) 82%);
}

.finale .eyebrow {
  justify-content: center;
}

.finale h2 {
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 1.1;
  margin-block: 0.5em 0.4em;
  letter-spacing: 0.08em;
}

.finale h2 .grad {
  background: linear-gradient(100deg, #fff8e6, var(--gold) 45%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.finale p {
  color: var(--txt-soft);
  max-width: 40ch;
  margin-inline: auto;
}

.finale__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.finale__meta {
  margin-top: 2.4rem;
  font-family: var(--font-num);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--txt-faint);
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   页脚
   --------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  padding-top: clamp(2.6rem, 6vw, 4.4rem);
  background: linear-gradient(180deg, transparent, rgba(164, 140, 255, 0.04));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 1fr;
  gap: clamp(2rem, 4vw, 3.4rem);
  padding-bottom: clamp(2.4rem, 5vw, 3.8rem);
}

.footer__brand {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.footer__brand .brand {
  font-size: 1.15rem;
}

.footer__desc {
  color: var(--txt-mute);
  font-size: 0.86rem;
  max-width: 34ch;
  line-height: 1.9;
}

.footer h4 {
  font-family: var(--font-num);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--txt-faint);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.footer__links {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  font-size: 0.86rem;
  color: var(--txt-soft);
  transition: color 0.3s, padding-left 0.3s;
}

.footer__links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer__dl {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.footer__dl .btn {
  justify-self: start;
}

.footer__dl small {
  color: var(--txt-faint);
  font-size: 0.72rem;
  line-height: 1.8;
}

.footer__bar {
  border-top: 1px solid var(--line);
  padding-block: 1.4rem 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  font-size: 0.76rem;
  color: var(--txt-mute);
}

.footer__bar a {
  color: var(--txt-soft);
  transition: color 0.3s;
}

.footer__bar a:hover {
  color: var(--gold);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  align-items: center;
}

.footer__legal .sep {
  opacity: 0.35;
}

.footer__legal--police {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

/* 公安备案警徽（static/images/备案图标.png）：按规范随文字一起显示，不要隐藏 */
.footer__legal--police img {
  display: block;
  flex: none;
  width: auto;
  height: 20px;
  border-radius: 2px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

@media (max-width: 760px) {
  .footer__legal--police img {
    height: 18px;
  }
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: clamp(1rem, 2.4vw, 2rem);
  bottom: clamp(1rem, 2.4vw, 2rem);
  z-index: 40;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(9, 11, 18, 0.72);
  backdrop-filter: blur(10px);
  color: var(--txt-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s,
    color 0.3s, border-color 0.3s;
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  color: var(--gold);
  border-color: rgba(233, 195, 126, 0.5);
}

.to-top svg {
  width: 16px;
  height: 16px;
}

/* ---------------------------------------------------------
   响应式
   --------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  }
  .stack {
    max-width: 380px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__dl {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 3.2rem);
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: clamp(2.4rem, 8vw, 3.4rem);
  }
  .hero__copy {
    max-width: none;
  }
  .hero__word {
    display: none;
  }
  .stack {
    max-width: 460px;
  }
  .scroll-cue {
    display: none;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .prologue__grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .pro-visual {
    max-width: 460px;
    width: 100%;
    margin-inline: auto;
    order: -1;
    padding-block: 1rem;
  }
  .pro-visual__word {
    right: auto;
    left: 0;
    top: 2%;
    font-size: 1.5rem;
    opacity: 0.55;
  }

  .chapter {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .chapter--right .ch-media {
    order: 0;
  }
  .ch-media {
    min-height: 0;
    aspect-ratio: 4 / 3.2;
  }
  .ch-media__main {
    width: 78%;
    aspect-ratio: 4 / 3;
    height: 100%;
  }
  .ch-media__main.is-portrait {
    width: 58%;
    aspect-ratio: 3 / 3.6;
  }
  .ch-media__small {
    width: 34%;
  }
  .ch-media__small:nth-of-type(3) {
    width: 30%;
  }
  .ch-copy {
    padding-right: 0;
  }
  .chapter__index {
    top: 0.6rem;
    font-size: clamp(3.4rem, 14vw, 5.4rem);
    opacity: 0.8;
  }
  .chapter--right .chapter__index {
    right: auto;
    left: auto;
  }
  .letter__foot {
    align-items: center;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 60px;
  }
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: grid;
  }
  .nav__actions .btn {
    display: none;
  }
  .hero__meta {
    gap: 0.4rem 1.1rem;
    font-size: 0.65rem;
  }
  .stack__stamp {
    right: 0;
    top: 0;
    width: 72px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .letter .seal {
    width: 76px;
  }
  .finale__bg {
    opacity: 0.4;
  }
}

@media (max-width: 430px) {
  .hero__actions .btn {
    flex: 1 1 auto;
  }
  .stat {
    padding-inline: 0.4rem;
  }
  .stat__label {
    letter-spacing: 0.16em;
  }
}
