/* ═══════════════════════════════════════════════════
   渊旅残章® · Wendtale — 官网样式
   纯静态，无外部依赖
   ═══════════════════════════════════════════════════ */

:root {
  --ink:      #090B09;
  --ink-1:    #0C0F0C;
  --ink-2:    #11150F;
  --ink-3:    #171C15;
  --text:     #E3DFD2;
  --text-hi:  #F3F0E6;
  --dim:      #8E9384;
  --dim-2:    #5F6559;
  --gold:     #C6A165;
  --gold-2:   #E0C48C;
  --line:     rgba(200, 190, 160, .13);
  --line-2:   rgba(200, 190, 160, .26);

  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC",
           "Source Han Serif CN", "SimSun", serif;
  --sans:  "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
           "Hiragino Sans GB", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --gut: clamp(24px, 5vw, 88px);
  --topbar-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  /* 全站统一滚动条：细条、无上下按钮、暗金滑块（标准属性：Firefox / Chrome 121+） */
  scrollbar-width: thin;
  scrollbar-color: rgba(198, 161, 101, .34) transparent;
}

/* WebKit / 旧版 Blink 回退，保持同一套观感 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(198, 161, 101, .34); }
::-webkit-scrollbar-thumb:hover { background: rgba(198, 161, 101, .58); }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-corner { background: transparent; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 全局胶片颗粒 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: .032;
  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='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; }
strong { font-weight: 600; color: var(--text-hi); }
sup { font-size: .34em; vertical-align: super; letter-spacing: 0; margin-left: .12em; }

::selection { background: rgba(198, 161, 101, .3); color: #fff; }

/* ═══════════ 顶部导航 ═══════════ */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--topbar-h);
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gut);
  transition: background .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.is-solid {
  background: rgba(9, 11, 9, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__mark {
  width: 38px; height: 38px;
  object-fit: cover;
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 3px rgba(9, 11, 9, .5);
  transition: transform .6s var(--ease), border-color .4s;
}
.brand:hover .brand__mark { transform: rotate(-3deg) scale(1.04); border-color: rgba(198,161,101,.5); }
.brand__name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .16em;
  color: var(--text-hi);
  white-space: nowrap;
}

.topnav { display: flex; gap: 30px; margin-left: auto; }
.topnav a {
  position: relative;
  font-size: 13.5px;
  letter-spacing: .24em;
  color: var(--dim);
  padding: 4px 0;
  transition: color .35s;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.topnav a:hover, .topnav a.is-active { color: var(--gold-2); }
.topnav a:hover::after, .topnav a.is-active::after { transform: scaleX(1); }

.topbar__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--dim-2);
  padding-left: 30px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.topbar__meta .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(198, 161, 101, .8);
}

.topbar__progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; }
.topbar__progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, rgba(198,161,101,0), var(--gold));
  transition: width .8s var(--ease);
}

/* ═══════════ 侧边页码 ═══════════ */
.pager {
  position: fixed;
  right: clamp(14px, 2vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 550;
  display: flex;
  flex-direction: column;
  /* 间距并入按钮自身高度：命中区 18px 等分，视觉节奏与原 15px gap 一致 */
  gap: 0;
  align-items: flex-end;
}
.pager button {
  position: relative;
  width: 34px; height: 18px;
  display: flex; align-items: center; justify-content: flex-end;
}
.pager button i {
  display: block;
  width: 5px; height: 1px;
  background: rgba(200, 190, 160, .3);
  transition: width .45s var(--ease), background .45s;
}
.pager button:hover i { width: 10px; background: var(--dim); }
.pager button.is-on i { width: 20px; background: var(--gold); }
.pager button span {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--dim);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.pager button:hover span { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ═══════════ 屏结构 ═══════════ */
.screen {
  position: relative;
  height: 100vh;
  height: 100dvh;
  padding: calc(var(--topbar-h) + 22px) var(--gut) 42px;
  overflow: hidden;
}
.screen__inner {
  position: relative;
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 内容高于一屏时按起始对齐，避免居中把顶部裁到可视区外、又滚不上去 */
  justify-content: safe center;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.screen__inner::-webkit-scrollbar { width: 0; height: 0; }

/* ═══════════ 通用排版 ═══════════ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .34em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  opacity: .55;
}
.eyebrow--dim { color: var(--dim-2); letter-spacing: .26em; }
.eyebrow--dim::before { background: var(--dim-2); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: .04em;
  color: var(--text-hi);
  margin-bottom: 26px;
}
.h2--sm { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 0; }

.lead {
  font-family: var(--serif);
  font-size: clamp(15px, 1.28vw, 19px);
  line-height: 1.95;
  color: #B9BCAE;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
.body {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--dim);
  margin-bottom: 16px;
  max-width: 46em;
}
.body--sm { font-size: 13.5px; line-height: 1.85; }
.note {
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--dim-2);
  margin-top: 14px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.secthead { margin-bottom: clamp(22px, 3vh, 40px); flex: 0 0 auto; }
.secthead--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.secthead--tight { margin-bottom: clamp(16px, 2.2vh, 26px); }
.secthead__lead {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--dim);
  text-align: right;
  letter-spacing: .04em;
  padding-bottom: 6px;
}
.secthead--row .eyebrow { margin-bottom: 14px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pills li {
  font-size: 11.5px;
  letter-spacing: .12em;
  color: #B4B7A8;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .012);
}
.pills em { color: var(--dim-2); font-size: 10.5px; margin-left: 4px; letter-spacing: .06em; }

.linkmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 20px;
  border: 1px solid var(--line-2);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: #C3C6B6;
  transition: border-color .4s, color .4s, background .4s;
}
.linkmore em {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--gold);
  transition: transform .4s var(--ease);
}
.linkmore:hover {
  border-color: rgba(198, 161, 101, .5);
  color: var(--gold-2);
  background: rgba(198, 161, 101, .05);
}
.linkmore:hover em { transform: translateX(4px); }

.frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame--wide { aspect-ratio: 16 / 9; }

/* ═══════════ 首页 ═══════════ */
.screen--hero { padding: 0; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: url("../img/hero-bg.jpg") center 45% / cover no-repeat;
  transform: scale(1.03);
  filter: brightness(.86) saturate(.9) contrast(1.02);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.08) translate3d(0, -1.4%, 0); }
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 92% at 50% 44%, rgba(9,11,9,.02) 0%, rgba(9,11,9,.52) 56%, rgba(9,11,9,.95) 100%),
    linear-gradient(to bottom, rgba(9,11,9,.8) 0%, rgba(9,11,9,0) 22%, rgba(9,11,9,0) 50%, rgba(9,11,9,.9) 100%);
}
.hero__inner {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--topbar-h);
  overflow: visible;
}
.hero__inner > * { max-width: 100%; }
.hero__eyebrow {
  font-size: 11.5px;
  letter-spacing: .52em;
  color: var(--gold);
  text-indent: .52em;
  margin-bottom: clamp(18px, 3.4vh, 34px);
  opacity: 0;
  animation: riseIn 1.2s var(--ease) .15s forwards;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 8.6vw, 132px);
  line-height: 1.05;
  letter-spacing: .1em;
  text-indent: .1em;
  color: #F6F3E9;
  text-shadow: 0 0 60px rgba(224, 196, 140, .16), 0 2px 30px rgba(0, 0, 0, .6);
  opacity: 0;
  animation: riseIn 1.4s var(--ease) .3s forwards;
}

/* 首页标题改用徽标图（白色书法字，透明底）；® 置于图右侧 */
.hero__title--logo {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(5px, .55vw, 9px);
  text-indent: 0;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
}
.hero__title--logo .hero__wordmark {
  display: block;
  width: clamp(290px, 33vw, 540px);
  height: auto;
  filter:
    drop-shadow(0 0 46px rgba(224, 196, 140, .17))
    drop-shadow(0 2px 22px rgba(0, 0, 0, .55));
}
.hero__title--logo sup {
  font-family: var(--sans);
  font-size: clamp(10px, .92vw, 15px);
  line-height: 1;
  letter-spacing: 0;
  margin-left: 0;
  margin-top: clamp(1px, .35vw, 5px);
  color: #FFFFFF;
  vertical-align: top;
}
.hero__en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: .78em;
  text-indent: .78em;
  color: #FFFFFF;
  margin-top: clamp(10px, 1.6vh, 18px);
  opacity: 0;
  animation: riseIn 1.4s var(--ease) .46s forwards;
}
.hero__rule {
  width: 1px; height: clamp(24px, 4.6vh, 48px);
  background: linear-gradient(to bottom, rgba(198,161,101,.55), transparent);
  margin: clamp(18px, 3vh, 30px) auto;
  opacity: 0;
  animation: fadeIn 1.2s var(--ease) .6s forwards;
}
.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(16px, 1.9vw, 25px);
  letter-spacing: .18em;
  text-indent: .18em;
  color: #DCD7C7;
  opacity: 0;
  animation: riseIn 1.3s var(--ease) .66s forwards;
}
.hero__sub {
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 2.1;
  color: rgba(196, 200, 184, .86);
  letter-spacing: .06em;
  margin-top: clamp(14px, 2.4vh, 22px);
  opacity: 0;
  animation: riseIn 1.3s var(--ease) .78s forwards;
}
.hero__meta {
  display: flex;
  gap: 0;
  margin-top: clamp(26px, 4.6vh, 46px);
  opacity: 0;
  animation: fadeIn 1.4s var(--ease) .94s forwards;
}
.hero__meta li {
  font-size: 10.5px;
  letter-spacing: .28em;
  color: #7E8477;
  padding: 0 18px;
  border-left: 1px solid var(--line);
}
.hero__meta li:first-child { border-left: 0; }
.hero__meta li.is-key { color: var(--gold); }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.scrollhint {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3.6vh, 40px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1.4s var(--ease) 1.3s forwards;
}
.scrollhint span {
  font-size: 9.5px;
  letter-spacing: .38em;
  text-indent: .38em;
  color: var(--dim-2);
  transition: color .4s;
}
.scrollhint i {
  display: block;
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, var(--line-2), transparent);
  position: relative;
  overflow: hidden;
}
.scrollhint i::after {
  content: "";
  position: absolute;
  left: 0; top: -30px;
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollRun 2.4s ease-in-out infinite;
}
@keyframes scrollRun {
  0%   { transform: translateY(0); }
  70%  { transform: translateY(62px); }
  100% { transform: translateY(62px); }
}
.scrollhint:hover span { color: var(--gold); }

/* ═══════════ 分栏 ═══════════ */
.split { display: grid; gap: clamp(28px, 4vw, 68px); align-items: center; }
.split--textimg { grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); }

.split__media { display: flex; flex-direction: column; gap: 12px; }
.split__media figcaption {
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--dim-2);
  letter-spacing: .03em;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.split__text .h2 { margin-bottom: 24px; }

/* 世界观：文字压在左侧，右侧露出首屏那棵树，树根之间就是入口 */
.screen--world { overflow: hidden; }
.world__bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg.jpg") 78% 52% / cover no-repeat;
  filter: brightness(.86) saturate(.88) contrast(1.02);
  opacity: 0;
  transform: scale(1.06);
  /* 进入这一屏时淡入并极缓地推近，接住首屏那张图 */
  transition: opacity 1.1s var(--ease), transform 9s cubic-bezier(.16, .8, .3, 1);
}
.screen--world.is-active .world__bg { opacity: 1; transform: scale(1); }

.world__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,11,9,.96) 0%, rgba(9,11,9,.93) 26%, rgba(9,11,9,.62) 46%, rgba(9,11,9,.12) 66%, rgba(9,11,9,.4) 100%),
    linear-gradient(to bottom, rgba(9,11,9,.7) 0%, rgba(9,11,9,0) 28%, rgba(9,11,9,0) 74%, rgba(9,11,9,.62) 100%);
}

.world__text {
  position: relative;
  max-width: 620px;
}
.world__text .body { max-width: 600px; }

/* ═══════════ 三类反制 ═══════════ */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 26px);
  flex: 0 1 auto;
}
.tcard { position: relative; }
.tcard .frame { margin-bottom: 18px; }
.tcard .frame img { transition: transform 1s var(--ease), filter .6s; filter: saturate(.92) brightness(.94); }
.tcard:hover .frame img { transform: scale(1.045); filter: saturate(1) brightness(1); }
.tcard__no {
  position: absolute;
  right: 10px; top: 8px;
  font-family: var(--serif);
  font-size: 13px;
  color: rgba(224, 196, 140, .7);
  letter-spacing: .1em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
}
.tcard h3 {
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--text-hi);
  margin-bottom: 10px;
}
.tcard p {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--dim);
  min-height: 3.8em;
}
.tcard__note {
  font-size: 11.5px !important;
  color: var(--dim-2) !important;
  letter-spacing: .05em;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  min-height: 0 !important;
}

.closing {
  margin-top: clamp(20px, 3.4vh, 38px);
  font-family: var(--serif);
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.9;
  letter-spacing: .08em;
  color: #B9BCAE;
  text-align: center;
  flex: 0 0 auto;
}
.closing strong { color: var(--gold-2); font-weight: 400; }

/* ═══════════ 日志 / 手记卡片 ═══════════ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  /* 不随容器拉伸：拉伸会把标题顶在屏顶，只留卡片占满整屏 */
  flex: 0 0 auto;
  align-content: center;
}
.cards--3 { flex: 0 0 auto; }
.cards--3 .card { min-height: 194px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 1.7vw, 24px);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(23,28,21,.5), rgba(12,15,12,.28));
  text-align: left;
  transition: border-color .45s, background .45s, transform .45s var(--ease);
  overflow: hidden;
  min-height: 156px;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 62%);
  opacity: 0;
  transition: opacity .45s;
}
.card:hover {
  border-color: rgba(198, 161, 101, .32);
  background: linear-gradient(160deg, rgba(30,36,27,.62), rgba(14,17,13,.4));
  transform: translateY(-3px);
}
.card:hover::before { opacity: .8; }

.card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--dim-2);
}
.card__date { color: var(--gold); }
.card__tag {
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: .14em;
}
.card__title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(16px, 1.2vw, 18.5px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .05em;
  color: var(--text-hi);
}
.card__sum {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__more {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--dim-2);
  transition: color .4s, gap .4s var(--ease);
}
.card__more::after { content: "→"; font-size: 12px; letter-spacing: 0; }
.card:hover .card__more { color: var(--gold); gap: 12px; }

.card__bullets {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 2px 0 4px;
}
.card__bullets > span {
  position: relative;
  padding-left: 13px;
  font-size: 11.5px;
  line-height: 1.75;
  color: #9BA090;
  letter-spacing: .02em;
}
.card__bullets > span::before {
  content: "";
  position: absolute;
  left: 0; top: .98em;
  width: 5px; height: 1px;
  background: rgba(198, 161, 101, .7);
}

/* ═══════════ 版本卡 ═══════════ */
.versions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 0 0 auto;
}
.versions .card { min-height: 228px; }
.versions .card:first-child {
  grid-column: span 2;
  background: linear-gradient(150deg, rgba(34,40,30,.62), rgba(12,15,12,.3));
  border-color: rgba(198, 161, 101, .22);
}
.versions .card:first-child .card__title {
  font-size: clamp(22px, 2.1vw, 30px);
  letter-spacing: .08em;
  line-height: 1.35;
}
.versions .card:first-child .card__sum { -webkit-line-clamp: 3; font-size: 13px; }
.versions .card:first-child .card__vtag {
  position: absolute;
  right: clamp(18px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: 1;
  color: rgba(198, 161, 101, .085);
  letter-spacing: .02em;
  pointer-events: none;
}
.card__vtag { display: none; }
.versions .card:first-child .card__vtag { display: block; }

.timeline {
  position: relative;
  margin-top: clamp(22px, 3.4vh, 36px);
  padding-top: 18px;
  flex: 0 0 auto;
}
.timeline__line {
  position: absolute;
  left: 0; right: 0; top: 21px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--line-2) 60%, rgba(198,161,101,.5));
}
.timeline ol {
  display: flex;
  justify-content: space-between;
  position: relative;
}
.timeline li {
  position: relative;
  padding-top: 18px;
  font-family: Georgia, serif;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--dim-2);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 50%; top: -4px;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--dim-2);
}
.timeline li:first-child::before { left: 0; transform: none; }
.timeline li:last-child::before { left: auto; right: 0; transform: none; }
.timeline li.is-now { color: var(--gold-2); }
.timeline li.is-now::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(198, 161, 101, .85);
}

/* ═══════════ 画廊 ═══════════ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex: 0 0 auto;
  align-content: center;
}
.gitem {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  min-height: 0;
}
.gitem img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.9) brightness(.88);
  transition: transform 1.1s var(--ease), filter .6s;
}
.gitem:hover img { transform: scale(1.04); filter: saturate(1.04) brightness(1); }
.gitem span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: #CFCBBC;
  background: linear-gradient(to top, rgba(9,11,9,.9), transparent);
  text-align: left;
  opacity: .82;
  transition: opacity .4s;
}
.gitem:hover span { opacity: 1; }

/* ═══════════ 可选主角 ═══════════ */
/* 六条竖向立绘位并排；点开一条，其余收起，这一条独占并展开动机文案。
   三种动机只差一条 1px 顶线与标签色，靠明度区分，不引入高饱和色。 */
.screen--cast { overflow: hidden; }
.cast__glow {
  position: absolute;
  right: -8%;
  top: 46%;
  width: 52%;
  height: 128%;
  transform: translateY(-50%);
  background: url("../img/hero-bg.jpg") 74% 50% / cover no-repeat;
  opacity: .09;
  filter: saturate(.7) brightness(.95);
  -webkit-mask-image: radial-gradient(ellipse 54% 46% at 50% 50%, #000 6%, transparent 72%);
  mask-image: radial-gradient(ellipse 54% 46% at 50% 50%, #000 6%, transparent 72%);
  pointer-events: none;
}

.screen--cast [data-motive="gain"]   { --m: 198, 161, 101; }   /* 童话金 */
.screen--cast [data-motive="know"]   { --m: 143, 163, 123; }   /* 苔绿 */
.screen--cast [data-motive="rescue"] { --m: 126, 147, 162; }   /* 雾青 */

.cast__wrap {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.cast__stage {
  display: flex;
  gap: 8px;
  width: 100%;
  min-height: 0;
  transition: gap .4s var(--ease);
}
.cast__stage.is-focus { gap: 0; }

/* ── 单条：立绘位在上，姓名条在下 ── */
.cast {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(200, 190, 160, .17);
  background: linear-gradient(180deg, rgba(27, 33, 25, .62), rgba(9, 11, 9, .9));
  text-align: left;
  overflow: hidden;
  transition:
    flex-basis .55s var(--ease),
    flex-grow .55s var(--ease),
    opacity .32s var(--ease),
    border-color .4s;
}
.cast::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, rgba(var(--m), .9), rgba(var(--m), 0) 72%);
  opacity: .7;
  transition: opacity .4s;
  z-index: 2;
}
.cast:hover {
  border-color: rgba(var(--m), .38);
  background: linear-gradient(180deg, rgba(34, 41, 31, .72), rgba(11, 14, 11, .92));
}
.cast:hover::before { opacity: 1; }
.cast:focus-visible { outline: 1px solid rgba(var(--m), .7); outline-offset: 2px; }

/* 收起其余：六条 flex-grow 一起插值，展开的那条从 1/6 平滑长到整宽 */
.cast__stage.is-focus .cast {
  flex-grow: 0;
  opacity: 0;
  border-width: 0;
  pointer-events: none;
}
.cast__stage.is-focus .cast.is-on {
  flex-grow: 6;
  opacity: 1;
  border-width: 1px;
  pointer-events: auto;
  flex-direction: row;
}

/* ── 立绘位 ── */
.cast__art {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 76% 42% at 50% 24%, rgba(var(--m), .13), transparent 74%),
    linear-gradient(180deg, rgba(25, 31, 23, .5), rgba(9, 11, 9, .9));
}
.cast__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}
.cast.is-on .cast__art { flex: 0 0 42%; }
.cast.is-on .cast__art img { object-fit: contain; object-position: 50% 50%; }

/* 占位：真图补进来（.cast__art 里出现 img）后自动隐藏 */
.cast__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.cast__ph b {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(30px, 2.9vw, 44px);
  line-height: 1;
  letter-spacing: .06em;
  color: rgba(var(--m), .17);
  transition: color .5s;
}
.cast__ph i {
  font-size: 9px;
  letter-spacing: .26em;
  color: rgba(200, 190, 160, .27);
}
.cast:hover .cast__ph b { color: rgba(var(--m), .3); }
.cast__art img ~ .cast__ph { display: none; }

/* ── 姓名条（收起态） ── */
.cast__bar {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: rgba(6, 8, 6, .5);
}
.cast__name {
  font-family: var(--serif);
  font-size: clamp(14px, 1.12vw, 17px);
  line-height: 1.3;
  letter-spacing: .14em;
  color: var(--text-hi);
  white-space: nowrap;
}
.cast__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--dim-2);
}
.cast__no { font-family: Georgia, serif; color: rgba(var(--m), .78); }
.cast__tag { color: rgba(var(--m), .92); }

/* ── 展开态文案（收起态不占位） ── */
.cast__panel { display: none; }
.cast.is-on .cast__bar { display: none; }
.cast.is-on .cast__panel {
  display: flex;
  flex: 1 1 58%;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(28px, 3vw, 52px);
  animation: riseIn .45s var(--ease) .28s both;
}
.cast__phead {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 32em;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.cast__pno {
  font-size: 10px;
  letter-spacing: .24em;
  color: rgba(var(--m), .92);
}
.cast__pname {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .14em;
  color: var(--text-hi);
}
.cast__quote {
  max-width: 30em;
  font-family: var(--serif);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.8;
  letter-spacing: .04em;
  color: #D2CEBF;
}
.cast__desc {
  max-width: 32em;
  font-size: 13.5px;
  line-height: 2;
  color: var(--dim);
  letter-spacing: .01em;
}
.cast__from {
  max-width: 32em;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--dim-2);
}

/* ── 返回列表 ── */
.cast__close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  padding: 7px 15px;
  border: 1px solid var(--line-2);
  background: rgba(9, 11, 9, .74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--dim);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s, color .3s, border-color .3s;
}
.cast__wrap.is-focus .cast__close { opacity: 1; visibility: visible; }
.cast__close:hover { color: var(--gold-2); border-color: rgba(198, 161, 101, .5); }

/* 展开时不再需要结句，标题栏也收一点 */
.screen--cast .secthead { margin-bottom: clamp(16px, 2.2vh, 24px); }
.screen--cast .h2--sm {
  font-size: clamp(28px, 2.9vw, 42px);
  line-height: 1.2;
}

/* ═══════════ 列表屏内容居中 ═══════════ */
/* 03 画面 / 05 管线 / 06 记录·版本更新 / 07 记录·开发日志 / 08 手记：
   标题与该屏的列表作为一个整体在屏内垂直居中。
   用 auto 边距而不是 justify-content: center —— 列表长到超过一屏时 auto 边距自动归零，
   内容从顶部开始并可在屏内滚动，标题不会被裁到可视区外。
   也不要用 space-between：那会把标题顶到屏顶、页脚压到屏底。 */
#craft .secthead,
#record .secthead,
.screen--log .secthead,
.screen--notes .secthead { margin-top: auto; }

#craft .gallery,
#record .timeline,
.screen--log .cards,
.screen--notes .cards--3 { margin-bottom: auto; }

/* 这几屏改用起始对齐 + 上下 auto 边距（auto 边距在溢出时归零），
   保证列表变长后标题仍在可视区顶部而不是被裁掉。 */
#craft > .screen__inner,
#record > .screen__inner,
.screen--log > .screen__inner,
.screen--notes > .screen__inner { justify-content: flex-start; }

/* ═══════════ 页脚 ═══════════ */

.foot {
  margin-top: clamp(26px, 4vh, 46px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex: 0 0 auto;
}
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__brand img { width: 32px; height: 32px; object-fit: cover; border: 1px solid var(--line); }
.foot__brand p {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .14em;
  color: var(--text);
}
.foot__brand em { font-family: Georgia, serif; font-size: 10px; letter-spacing: .3em; color: var(--dim-2); }
.foot__meta { text-align: right; }
.foot__meta p {
  font-size: clamp(12px, .72vw, 13px);
  letter-spacing: .09em;
  line-height: 1.95;
  color: var(--dim-2);
}

/* 备案号：与版权行同列右对齐，字号略小于版权行，悬停转金色 */
.foot__legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px 9px;
  letter-spacing: .04em;
  font-size: clamp(11px, .66vw, 12px);
}
.foot__legal a {
  color: var(--dim);
  border-bottom: 1px solid transparent;
  transition: color .35s, border-color .35s;
}
.foot__legal a:hover {
  color: var(--gold-2);
  border-color: rgba(198, 161, 101, .38);
}
.foot__legal-sep { color: rgba(200, 190, 160, .2); }

/* ═══════════ 查看更多 / 文章列表浮层 ═══════════ */
/* 首页列表屏的「查看更多」：作为网格最后一项横跨整行、右对齐 */
.morebtn {
  grid-column: 1 / -1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(23, 28, 21, .55), rgba(12, 15, 12, .3));
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--text);
  transition: color .35s, border-color .35s, gap .35s var(--ease);
}
.morebtn em { font-family: Georgia, serif; font-size: 13px; letter-spacing: 0; color: var(--gold); }
.morebtn:hover { color: var(--text-hi); border-color: rgba(198, 161, 101, .45); gap: 14px; }
.morebtn:hover em { color: var(--gold-2); }

/* 文章列表浮层：盖在整屏翻页之上，不做页面跳转，只做淡入淡出 */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  flex-direction: column;
  background: rgba(9, 11, 9, .96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .38s var(--ease), visibility .38s;
}
.sheet.is-open { opacity: 1; visibility: visible; }

.sheet__head {
  flex: 0 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gut);
  border-bottom: 1px solid var(--line);
}
.sheet__back {
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--dim);
  transition: color .3s;
}
.sheet__back:hover { color: var(--gold-2); }

.sheet__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(30px, 4.6vh, 54px) var(--gut) 12vh;
  scrollbar-width: thin;
}
.sheet__inner { max-width: 1180px; margin: 0 auto; }
.sheet__eyebrow { margin-bottom: 16px; }
.sheet__title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.28;
  color: var(--text-hi);
}
.sheet__lead {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.95;
  color: var(--dim);
  letter-spacing: .03em;
}
.sheet__count {
  margin: 26px 0 clamp(20px, 3vh, 30px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--dim-2);
}

.cards--archive { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cards--archive .card { min-height: 176px; animation: riseIn .6s var(--ease) both; }

/* 浮层入场：与阅读器同一套淡入上浮；卡片延迟由 app.js 逐张设置 */
.sheet.is-open .sheet__eyebrow,
.sheet.is-open .sheet__title,
.sheet.is-open .sheet__lead,
.sheet.is-open .sheet__count { animation: riseIn .62s var(--ease) both; }
.sheet.is-open .sheet__title { animation-delay: .05s; }
.sheet.is-open .sheet__lead { animation-delay: .09s; }
.sheet.is-open .sheet__count { animation-delay: .13s; }

/* ═══════════ 阅读器 ═══════════ */
.reader {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  flex-direction: column;
  background: rgba(8, 10, 8, .97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.reader.is-open { opacity: 1; visibility: visible; }

.reader__head {
  flex: 0 0 auto;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 9, .6);
}
.reader__kind {
  font-size: 10.5px;
  letter-spacing: .3em;
  color: var(--gold);
}
.reader__close {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--dim);
  transition: color .35s;
}
.reader__close em {
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: .1em;
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--dim-2);
}
.reader__close:hover { color: var(--gold-2); }

.reader__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(32px, 5vh, 64px) clamp(20px, 5vw, 64px) 18vh;
  scrollbar-width: thin;
}

.reader.is-open .md { animation: riseIn .7s var(--ease) .1s both; }

/* 正文末尾的收口按钮：与顶部「关闭」同一动作，宽幅居中，读完顺手点掉 */
.reader__foot {
  display: flex;
  justify-content: center;
  max-width: 720px;
  margin: clamp(42px, 6.5vh, 68px) auto 0;
}
.reader__footclose {
  min-width: 148px;
  min-height: 46px;
  padding: 12px 32px;
  border: 1px solid rgba(198, 161, 101, .5);
  font-size: 12px;
  letter-spacing: .3em;
  text-indent: .3em;      /* 抵掉末字后多出的字距，保证视觉居中 */
  color: var(--gold-2);
  transition: color .35s, border-color .35s, background .35s;
}
.reader__footclose:hover {
  border-color: rgba(198, 161, 101, .85);
  color: var(--text-hi);
  background: rgba(198, 161, 101, .07);
}
.reader__footclose:focus-visible {
  outline: 1px solid rgba(198, 161, 101, .7);
  outline-offset: 3px;
}

/* ═══════════ Markdown 正文 ═══════════ */
.md {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 2.05;
  color: #B5B8AA;
  letter-spacing: .015em;
}
.md > *:first-child { margin-top: 0; }

.md h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .05em;
  color: var(--text-hi);
  margin: 0 0 8px;
}
.md h1 + p {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--dim-2);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.md h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 400;
  letter-spacing: .07em;
  color: var(--text-hi);
  margin: 52px 0 16px;
  padding-left: 14px;
  border-left: 2px solid rgba(198, 161, 101, .55);
  line-height: 1.5;
}
.md h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .08em;
  color: #D8D4C5;
  margin: 34px 0 10px;
}
.md h4 { font-size: 14px; letter-spacing: .1em; color: var(--gold-2); margin: 26px 0 8px; }

.md p { margin: 0 0 18px; }
.md strong { color: #E6E2D4; font-weight: 600; }
.md em { font-style: italic; color: #C9CCBD; }
.md a {
  color: var(--gold-2);
  border-bottom: 1px solid rgba(198, 161, 101, .35);
  transition: border-color .3s;
}
.md a:hover { border-bottom-color: var(--gold-2); }

.md ul, .md ol { margin: 0 0 20px; padding-left: 2px; }
.md li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
}
.md ul > li::before {
  content: "";
  position: absolute;
  left: 4px; top: .92em;
  width: 5px; height: 1px;
  background: var(--gold);
}
.md ol { counter-reset: mdol; }
.md ol > li { counter-increment: mdol; padding-left: 26px; }
.md ol > li::before {
  content: counter(mdol) ".";
  position: absolute;
  left: 0; top: 0;
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .05em;
}

.md blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid rgba(198, 161, 101, .3);
  color: #9EA292;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.95;
}
.md blockquote p:last-child { margin-bottom: 0; }

.md code {
  font-family: "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: .88em;
  background: rgba(198, 161, 101, .1);
  color: #D9C49B;
  padding: 1px 5px;
  border-radius: 2px;
}
.md pre {
  margin: 22px 0;
  padding: 18px 20px;
  background: rgba(0, 0, 0, .38);
  border: 1px solid var(--line);
  overflow-x: auto;
}
.md pre code {
  background: none;
  padding: 0;
  color: #A9AD9E;
  font-size: 12.5px;
  line-height: 1.85;
}

.md hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 40px 0;
}

.md img { width: 100%; margin: 24px 0; border: 1px solid var(--line); }

.md table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 13px;
}
.md th, .md td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.md th {
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--gold);
  border-bottom-color: var(--line-2);
  white-space: nowrap;
}
.md td { color: #A6AA9B; }

/* ═══════════ 大图查看 ═══════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 5, .96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb__fig {
  max-width: min(92vw, 1600px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: scale(.98);
  transition: transform .5s var(--ease);
}
.lightbox.is-open .lb__fig { transform: scale(1); }
.lb__fig img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.lb__fig figcaption {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--dim);
  text-align: center;
}
.lb__close {
  position: absolute;
  right: 22px; top: 16px;
  font-size: 30px;
  line-height: 1;
  color: var(--dim);
  transition: color .3s;
  z-index: 2;
}
.lb__close:hover { color: var(--text-hi); }
.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  line-height: 1;
  color: rgba(200, 190, 160, .35);
  padding: 20px 16px;
  transition: color .3s;
  z-index: 2;
}
.lb__nav:hover { color: var(--gold-2); }
.lb__nav--prev { left: 12px; }
.lb__nav--next { right: 12px; }

/* ═══════════ 状态 ═══════════ */
body.is-locked { overflow: hidden; }

.noscript {
  position: fixed;
  inset: auto 0 0;
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--gold);
  background: #12160F;
  z-index: 9999;
}

.load-error {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed rgba(198, 161, 101, .3);
  color: var(--dim);
  font-size: 12.5px;
  line-height: 2;
  text-align: center;
}
.load-error code {
  font-family: Consolas, monospace;
  color: var(--gold-2);
  background: rgba(198, 161, 101, .1);
  padding: 2px 6px;
}

/* ═══════════ 响应式 ═══════════ */
@media (max-width: 1180px) {
  .topbar__meta { display: none; }
  .split--textimg { grid-template-columns: 1fr 1.05fr; gap: 32px; }
  .world__text { max-width: 560px; }
  .cast { flex-basis: 0; }
  .cast__bar { padding: 10px 11px 12px; }
  .cast__name { font-size: 14px; letter-spacing: .1em; }
  .cast__meta { font-size: 9px; gap: 7px; }
  .cast.is-on .cast__art { flex-basis: 40%; }
  .cast.is-on .cast__panel { padding: 24px; gap: 14px; }
  .cast__desc { font-size: 12.5px; line-height: 1.9; }
}

@media (max-width: 900px) {
  :root { --topbar-h: 64px; }

  /* 移动端退化为普通滚动 */
  .screen {
    height: auto;
    min-height: 100svh;
    padding: calc(var(--topbar-h) + 34px) 20px 56px;
    overflow: visible;
  }
  .screen--hero { height: 100vh; min-height: 620px; padding: 0; }
  .screen__inner { height: auto; overflow: visible; justify-content: flex-start; }
  .hero__inner { justify-content: center; padding-top: var(--topbar-h); }

  .topnav { gap: 14px; }
  .topnav a { font-size: 11.5px; letter-spacing: .12em; white-space: nowrap; }
  /* 窄屏去掉英文后缀，避免导航被挤成两行 */
  .brand__en { display: none; }
  .brand { gap: 9px; }
  .brand__name { font-size: 15px; letter-spacing: .06em; }
  .brand__mark { width: 30px; height: 30px; }
  .topbar { gap: 14px; }
  .pager { display: none; }

  .hero__inner {
    height: 100%;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    justify-content: center;
  }
  .hero__tagline, .hero__sub { width: 100%; }
  .hero__title {
    font-size: clamp(34px, 11.2vw, 60px);
    letter-spacing: .07em;
    text-indent: .07em;
  }
  .hero__title--logo { gap: 5px; }
  .hero__title--logo .hero__wordmark { width: clamp(228px, 68vw, 380px); }
  .hero__title--logo sup { font-size: 9.5px; margin-top: 1px; }
  .hero__eyebrow { font-size: 10px; letter-spacing: .3em; text-indent: .3em; }
  .hero__tagline {
    font-size: 14px;
    letter-spacing: .1em;
    text-indent: .1em;
    line-height: 1.9;
    max-width: 92%;
  }
  .hero__sub { font-size: 12px; line-height: 2; max-width: 92%; }
  .hero__meta li { padding: 0 12px; font-size: 9.5px; letter-spacing: .16em; }

  .split, .split--textimg { grid-template-columns: 1fr; gap: 28px; }
  /* 窄屏：背景压暗，保证正文可读 */
  .world__bg { background-position: 72% 88%; filter: brightness(.6) saturate(.85); }
  .world__veil { background: linear-gradient(to bottom, rgba(9,11,9,.92) 0%, rgba(9,11,9,.88) 54%, rgba(9,11,9,.52) 100%); }
  .world__text, .world__text .body { max-width: none; }
  .secthead--row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .secthead__lead { text-align: left; }
  .trio { grid-template-columns: 1fr; gap: 30px; }
  .cards, .cards--3, .versions { grid-template-columns: 1fr; gap: 10px; }
  .cards--archive { grid-template-columns: 1fr; gap: 10px; }
  .sheet__head { height: 64px; }
  .sheet__scroll { padding-bottom: 16vh; }
  .morebtn { justify-self: stretch; justify-content: center; }
  .versions .card:first-child { grid-column: span 1; }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  /* 窄屏：六条改为纵向列表，展开时立绘在上、文案在下 */
  .cast__wrap { flex: 0 0 auto; }
  .cast__stage { flex-direction: column; gap: 10px; }
  .cast { flex: 0 0 auto; height: 168px; }
  .cast__bar { padding: 12px 14px 14px; }
  .cast__name { font-size: 17px; }
  .cast__meta { font-size: 10px; }
  .cast__stage.is-focus .cast { display: none; }
  .cast__stage.is-focus .cast.is-on {
    display: flex;
    flex-direction: column;
    height: auto;
    animation: none;
  }
  .cast.is-on .cast__art { flex: 0 0 58vw; }
  .cast.is-on .cast__panel { flex: 0 0 auto; padding: 22px 20px 26px; gap: 16px; }
  .cast__quote { font-size: 18px; }
  .cast__desc { font-size: 13px; line-height: 1.95; }
  .cast__close { top: 10px; right: 10px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot__meta { text-align: left; }
  .foot__legal { justify-content: flex-start; }
  .timeline ol { flex-wrap: wrap; gap: 10px 0; }
  .br-pc { display: none; }
  .md { font-size: 15px; line-height: 2; }
  .reader__foot { margin-top: 36px; }
  .reader__footclose { width: 100%; max-width: 340px; }
  .content-wrap { padding-left: 0; }
  .h2 br { display: none; }
}

@media (max-height: 760px) and (min-width: 901px) {
  .screen { padding-top: calc(var(--topbar-h) + 10px); padding-bottom: 26px; }
  .h2 { margin-bottom: 18px; }
  .h2--sm { font-size: clamp(26px, 2.8vw, 38px); }
  .lead { font-size: 14.5px; line-height: 1.85; margin-bottom: 14px; }
  .body { font-size: 13px; line-height: 1.8; margin-bottom: 12px; }
  .eyebrow { margin-bottom: 14px; }
  .trio .tcard .frame { margin-bottom: 12px; }
  .tcard p { font-size: 12px; line-height: 1.75; }
  .closing { margin-top: 16px; }
  .hero__title { font-size: clamp(44px, 7.4vw, 104px); }
  .hero__title--logo .hero__wordmark { width: clamp(236px, 26vw, 424px); }
  .hero__rule { margin: 14px auto; height: 26px; }
  .card { min-height: 112px; padding: 14px; }
  .card__sum { -webkit-line-clamp: 1; }
  .gallery { gap: 8px; }
  .foot { margin-top: 18px; padding-top: 14px; }
}

/* 矮屏（1366×768 / 1280×800）：主角屏必须一屏装下六张卡与结句。
   标题与结句去掉强制换行、字号收一档，卡片内边距与行高同步收紧。 */
@media (max-height: 880px) and (min-width: 901px) {
  .screen--cast .h2--sm { font-size: clamp(24px, 2.6vw, 34px); }
  .screen--cast .h2 br { display: none; }
  .screen--cast .secthead { margin-bottom: 14px; }
  .cast__bar { padding: 9px 11px 11px; gap: 4px; }
  .cast__name { font-size: 14px; }
  .cast.is-on .cast__panel { gap: 12px; padding: 22px 26px; }
  .cast__quote { font-size: 17px; line-height: 1.55; }
  .cast__desc { font-size: 12.5px; line-height: 1.85; }
  .cast__from { padding-top: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__bg { animation: none; }
}
