/* ==========================================================================
   PARK 699 · 柏舍 — 光景六幕（抽象建模漫游）
   设计基调：WebGL 抽象几何建模 / 磨砂玻璃文字面板 / 铜金品牌色
   背景由 WebGL 抽象建筑漫游驱动，CSS 只负责文字可读性与界面质感
   ========================================================================== */

:root{
  --paper:      #f4f1e9;   /* 纸白（面板底） */
  --paper-2:    #eeeae0;
  --panel:      rgba(247,244,238,.82);  /* 磨砂面板 */
  --panel-2:    rgba(255,253,248,.90);
  --ink:        #23282d;   /* 墨青（面板上主文字） */
  --ink-2:      #3d444c;
  --mist:       rgba(35,40,45,.86);
  --faint:      rgba(35,40,45,.62);
  --line:       rgba(35,40,45,.18);
  --line-soft:  rgba(35,40,45,.10);
  --gold:       #b28c4e;
  --gold-hi:    #c8a25f;
  --gold-deep:  #6b5220;
  --sky:        #8fb0c9;
  --sky-hi:     #a9c9de;
  --green:      #5a7d62;
  --green-hi:   #4f7a58;
  /* 白天明亮背景上直接显示的文字用纯白 + 深色多层光晕，保证对比度 */
  --onphoto:      #ffffff;
  --onphoto-dim:  rgba(255,255,255,.86);
  --halo:         0 2px 3px rgba(0,0,0,.88), 0 0 10px rgba(0,0,0,.75), 0 0 30px rgba(0,0,0,.58), 0 0 90px rgba(0,0,0,.48);
  --halo-soft:    0 2px 3px rgba(0,0,0,.78), 0 0 12px rgba(0,0,0,.58), 0 0 30px rgba(0,0,0,.46);
  --serif:      Georgia, "Times New Roman", "Songti SC", STSong, SimSun, serif;
  --sans:       -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono:       ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --pad-x:      clamp(20px, 6vw, 96px);
  --nav-h:      64px;
  --ease-out:   cubic-bezier(.16,1,.3,1);
}

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

html{
  color-scheme: dark;
  scroll-behavior: smooth;
  scrollbar-color: #5a6268 #1a1d20;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}

body{
  background: #16191c;
  color: var(--onphoto);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection{ background: rgba(90,125,98,.28); color: var(--ink); }

img{ display:block; max-width:100%; height:auto; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background:none; border:0; cursor:pointer; }

.skip{
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 18px; background: var(--ink); color: var(--paper);
  font-size: 13px; border-radius: 2px; transition: top .25s var(--ease-out);
}
.skip:focus-visible{ top: 16px; }

:focus-visible{ outline: 2px solid var(--green-hi); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   环境层：WebGL 画布 + 无 WebGL 兜底 + 内容区遮罩
   -------------------------------------------------------------------------- */
#stage{
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block;
  opacity: 0; transition: opacity 1.6s ease .2s;
}
#stage.is-live{ opacity: 1; }

.bg-fallback{
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, #2a3036 0%, #16191c 70%);
}
/* WebGL 成功启动后隐藏静态兜底层，露出 canvas */
#stage.is-live ~ .bg-fallback{ opacity: 0; transition: opacity 1s ease; }

/* 内容区上下渐变遮罩：保证导航/页脚与正文在照片上可读 */
.scrim{
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, rgba(12,14,16,.30) 0%, rgba(12,14,16,0) 62%),
    linear-gradient(180deg, rgba(12,14,16,.66) 0%, rgba(12,14,16,.20) 18%, rgba(12,14,16,0) 38%, rgba(12,14,16,0) 62%, rgba(12,14,16,.32) 88%, rgba(12,14,16,.70) 100%);
}
@media (min-width: 861px){
  .scrim{
    background:
      radial-gradient(ellipse 130% 95% at 38% 45%, rgba(12,14,16,.34) 0%, rgba(12,14,16,0) 66%),
      linear-gradient(180deg, rgba(12,14,16,.70) 0%, rgba(12,14,16,.22) 16%, rgba(12,14,16,0) 36%, rgba(12,14,16,0) 64%, rgba(12,14,16,.34) 88%, rgba(12,14,16,.74) 100%),
      linear-gradient(90deg, rgba(12,14,16,.46) 0%, rgba(12,14,16,0) 32%);
  }
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */
.nav{
  position: fixed; top:0; left:0; right:0; z-index: 60;
  height: var(--nav-h);
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 var(--pad-x);
  background: linear-gradient(180deg, rgba(12,14,16,.72), rgba(12,14,16,.18));
  border-bottom: 1px solid transparent;
  transition: background .5s ease, border-color .5s ease;
}
.nav.is-scrolled{
  background: rgba(18,21,24,.82);
  border-bottom-color: rgba(255,255,255,.08);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}
.brand{
  font-family: var(--mono); font-size: 15px; letter-spacing: .22em;
  color: var(--onphoto); display:flex; align-items:baseline; gap: 10px;
  text-shadow: var(--halo-soft);
}
.brand-cn{
  font-family: var(--serif); font-size: 13px; letter-spacing: .5em;
  color: var(--gold-hi); padding-left: 12px; border-left: 1px solid rgba(255,255,255,.22);
}
.nav-links{ display:flex; gap: clamp(14px, 2.4vw, 34px); }
.nav-links a{
  font-size: 13px; letter-spacing: .18em; color: var(--onphoto-dim);
  padding: 6px 2px; position: relative;
  transition: color .3s ease;
  text-shadow: var(--halo-soft);
}
.nav-links a .n{
  font-family: var(--mono); font-size: 10px; color: rgba(247,244,238,.42);
  margin-right: 6px; transition: color .3s ease;
}
.nav-links a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0;
  height:1px; background: var(--gold-hi);
  transition: right .45s var(--ease-out);
}
.nav-links a:hover{ color: var(--onphoto); }
.nav-links a.is-active{ color: var(--onphoto); }
.nav-links a.is-active .n{ color: var(--gold-hi); }
.nav-links a.is-active::after{ right: 0; }

.menu-btn{
  display:none; align-items:center; gap:10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .3em;
  color: var(--onphoto); padding: 10px 2px;
  text-shadow: var(--halo-soft);
}
.menu-lines, .menu-lines::before, .menu-lines::after{
  width: 22px; height: 1.5px; background: var(--onphoto);
  transition: transform .35s var(--ease-out), opacity .3s ease;
  display:block;
}
.menu-lines::before, .menu-lines::after{ content:""; }
.menu-lines::before{ transform: translateY(-6px); }
.menu-lines::after{ transform: translateY(4.5px); }
.menu-btn[aria-expanded="true"] .menu-lines{ background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before{ transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after{ transform: translateY(1.5px) rotate(-45deg); }

/* 移动端全屏菜单 */
.mobile-menu{
  position: fixed; inset:0; z-index: 55;
  background: linear-gradient(180deg, #1c2126 0%, #121518 74%);
  display:flex; flex-direction:column; justify-content:center;
  padding: var(--nav-h) var(--pad-x) 48px;
}
.mobile-menu[hidden]{ display:none; }
.mobile-menu nav{ display:flex; flex-direction:column; gap: 4px; }
.mobile-menu nav a{
  display:flex; align-items:baseline; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--serif); font-size: clamp(28px, 8vw, 40px);
  color: var(--onphoto);
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.mobile-menu nav a span{ font-family: var(--mono); font-size: 12px; color: var(--gold-hi); letter-spacing: .2em; }
.mobile-menu nav a i{ font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--onphoto-dim); letter-spacing: .24em; margin-left:auto; }
.mobile-menu.is-open nav a{ opacity:1; transform:none; }
.mobile-menu.is-open nav a:nth-child(1){ transition-delay:.05s }
.mobile-menu.is-open nav a:nth-child(2){ transition-delay:.1s }
.mobile-menu.is-open nav a:nth-child(3){ transition-delay:.15s }
.mobile-menu.is-open nav a:nth-child(4){ transition-delay:.2s }
.mobile-menu.is-open nav a:nth-child(5){ transition-delay:.25s }
.mobile-menu.is-open nav a:nth-child(6){ transition-delay:.3s }
.mobile-menu-foot{
  margin-top: 42px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .28em; color: var(--onphoto-dim);
}

/* --------------------------------------------------------------------------
   章节进度轨（右侧）
   -------------------------------------------------------------------------- */
.rail{
  position: fixed; right: clamp(14px, 2.6vw, 40px); top: 50%;
  transform: translateY(-50%); z-index: 50;
  display:flex; flex-direction:column; gap: 20px;
}
.rail a{
  display:flex; align-items:center; gap: 10px; flex-direction: row-reverse;
  color: rgba(247,244,238,.5);
}
.rail-n{ font-family: var(--mono); font-size: 11px; letter-spacing: .12em; transition: color .35s ease; }
.rail-tick{
  width: 18px; height: 1px; background: rgba(255,255,255,.22);
  transition: width .45s var(--ease-out), background .35s ease;
}
.rail-label{
  font-size: 11px; letter-spacing: .3em;
  opacity: 0; transform: translateX(6px);
  transition: opacity .35s ease, transform .35s var(--ease-out), color .35s ease;
  color: var(--onphoto);
}
.rail a:hover .rail-label{ opacity:.8; transform:none; }
.rail a.is-active .rail-n{ color: var(--gold-hi); }
.rail a.is-active .rail-tick{ width: 34px; background: var(--gold-hi); }
.rail a.is-active .rail-label{ opacity:1; transform:none; color: var(--onphoto); }

/* --------------------------------------------------------------------------
   电梯楼层指示器
   -------------------------------------------------------------------------- */
.lift-indicator{
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 70;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
  font-family: var(--mono);
}
.lift-indicator.is-on{ opacity: 1; }
.lift-arrow{
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 12px solid var(--gold-hi);
  filter: drop-shadow(0 0 8px rgba(200,162,95,.6));
  animation: lift-bob 1.1s ease-in-out infinite;
}
.lift-arrow.is-up{ /* 默认即上行箭头 */ }
@keyframes lift-bob{
  0%,100%{ transform: translateY(0); opacity: .65; }
  50%{ transform: translateY(-4px); opacity: 1; }
}
.lift-floor{
  font-size: clamp(48px, 9vw, 86px);
  font-weight: 300; line-height: 1;
  color: var(--onphoto);
  text-shadow: 0 0 24px rgba(200,162,95,.45), 0 2px 12px rgba(0,0,0,.6);
  font-variant-numeric: tabular-nums;
  min-width: 2.2em; text-align: center;
}
.lift-unit{
  font-size: clamp(12px, 1.6vw, 16px);
  letter-spacing: .4em; padding-left: .4em;
  color: var(--gold-hi);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* --------------------------------------------------------------------------
   自定义光标（仅精确指针）
   -------------------------------------------------------------------------- */
.cursor{ display:none; }
html.fine-pointer .cursor{
  display:block; position: fixed; left:0; top:0; z-index: 120;
  pointer-events:none;
}
.cursor-dot, .cursor-ring{
  position: fixed; left:0; top:0; border-radius:50%;
  transform: translate(-50%,-50%);
}
.cursor-dot{ width:5px; height:5px; background: var(--onphoto); }
.cursor-ring{
  width:34px; height:34px; border:1px solid rgba(247,244,238,.5);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), border-color .3s ease;
}
html.cursor-hover .cursor-ring{ width:56px; height:56px; border-color: rgba(200,162,95,.85); }

/* --------------------------------------------------------------------------
   章节通用
   -------------------------------------------------------------------------- */
.chapter{
  position: relative; z-index: 2;
  padding: clamp(110px, 16vh, 200px) var(--pad-x) clamp(90px, 14vh, 170px);
  max-width: 1520px; margin: 0 auto;
  scroll-margin-top: var(--nav-h);
}
.chapter-head{ position: relative; margin-bottom: clamp(40px, 7vh, 88px); }
.ghost-num{
  position:absolute; right: clamp(70px, 10vw, 150px); top: -0.5em;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(120px, 20vw, 300px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(247,244,238,.14);
  user-select:none; pointer-events:none;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.tech-label{
  font-family: var(--mono); font-size: 11px; letter-spacing: .34em;
  color: var(--onphoto-dim);
  display:flex; align-items:center; gap: 14px;
  text-shadow: var(--halo-soft);
}
.tech-label .coord{ color: var(--gold-hi); }
.en-title{
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 8.4vw, 124px);
  line-height: 1.04; letter-spacing: .01em;
  color: var(--onphoto);
  margin-top: 22px; max-width: 12em;
  text-shadow: var(--halo);
}
.zh-title{
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(58px, 9.5vw, 138px);
  line-height: 1.08; letter-spacing: .16em; margin-right: -.16em;
  color: var(--onphoto);
  margin-top: 20px;
  text-shadow: var(--halo);
}
.rule{
  display:block; width: clamp(64px, 10vw, 150px); height: 1px;
  background: linear-gradient(90deg, var(--gold-hi), transparent);
  margin-top: 30px;
}

.chapter-body{
  display:grid; grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(36px, 5vw, 84px); align-items:start;
}
.chapter-copy{
  position: sticky; top: clamp(90px, 14vh, 150px);
  background: var(--panel);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 2px;
  padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 18px 50px -28px rgba(0,0,0,.6);
  color: var(--ink);
}
.chapter-copy p{
  color: var(--mist); font-size: 15.5px; max-width: 44em;
  margin-bottom: 0.72em;
  text-align: justify;
}
.chapter-copy p::first-letter{ color: var(--ink); }

.data-line{
  list-style:none; margin-top: 34px;
  border-top: 1px solid var(--line);
  display:grid; grid-template-columns: repeat(2, 1fr); gap: 0 26px;
}
.data-line li{
  display:flex; align-items:baseline; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.data-line b{
  font-family: var(--mono); font-weight: 400; font-size: 14px;
  color: var(--gold-deep); letter-spacing: .06em; min-width: 5.2em;
}
.data-line span{ font-size: 12.5px; color: var(--mist); letter-spacing: .12em; white-space: nowrap; }
/* 会所 / 清波章节：数据数值改用品牌绿点睛（呼应公园与自然） */
body[data-chapter="3"] .data-line b,
body[data-chapter="4"] .data-line b{ color: var(--green-hi); }

/* --------------------------------------------------------------------------
   编辑卡片
   -------------------------------------------------------------------------- */
.cards{ display:grid; gap: clamp(16px, 2vw, 28px); }
.cards--three{ grid-template-columns: repeat(2, 1fr); }
.cards--four{ grid-template-columns: repeat(2, 1fr); }
.cards--six{ grid-template-columns: repeat(3, 1fr); }
.card--wide{ grid-column: span 2; }
.card--tall .card-frame{ aspect-ratio: 4/4.7; }

.card{
  margin:0; display:flex; flex-direction:column;
  border: 1px solid rgba(255,255,255,.16);
  background: var(--panel-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 40px -24px rgba(0,0,0,.65);
  transition: border-color .5s ease, box-shadow .5s ease, transform .5s var(--ease-out);
}
.card:hover{ border-color: rgba(200,162,95,.5); box-shadow: 0 22px 50px -24px rgba(0,0,0,.7); transform: translateY(-2px); }
.card-frame{
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; background: #1a1d20;
}
.card-frame img{
  width:100%; height:100%; object-fit: cover;
  filter: saturate(.98) contrast(1.02) brightness(.98);
  transform: scale(1.001);
  transition: transform 1.4s var(--ease-out), filter .8s ease;
}
.card:hover .card-frame img{ transform: scale(1.045); filter: saturate(1.02) contrast(1.03); }
.card-tag{
  position:absolute; left: 12px; top: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .26em;
  color: var(--onphoto); background: rgba(12,14,16,.62);
  padding: 5px 9px; border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
}
.card figcaption{
  display:flex; align-items:baseline; justify-content:space-between; gap: 14px;
  padding: 13px 16px 15px; border-top: 1px solid var(--line-soft);
}
.card figcaption b{
  font-family: var(--serif); font-weight: 400; font-size: 15.5px;
  color: var(--ink); letter-spacing: .08em; white-space: nowrap;
}
.card figcaption span{
  font-family: var(--mono); font-size: 11.5px; color: var(--mist);
  letter-spacing: .18em; text-align: right; white-space: nowrap;
}

/* 影片卡：播放键居中于画面框内（不含说明区） */
.card--film .card-frame img{ filter: saturate(.9) contrast(1.04) brightness(.85); }
.card-play{
  position:absolute; inset:0; margin:auto;
  width: 72px; height: 72px; display:grid; place-items:center;
  transition: transform .5s var(--ease-out);
}
.card-play svg{ width:100%; height:100%; overflow:visible; }
.card-play circle{
  fill: rgba(255,255,255,.22); stroke: rgba(255,255,255,.85); stroke-width: 1.2;
  transition: stroke .3s ease, fill .3s ease;
}
.card-play path{
  fill: #fff;
  transition: fill .3s ease;
}
.card-play:hover{ transform: scale(1.1); }
.card-play:hover circle{ fill: rgba(178,140,78,.85); stroke: var(--gold-hi); }
.card-play:hover path{ fill:#fff; }
.card-play:focus-visible{ outline-offset: 4px; }

/* 媒体卡：与影片卡并排，跳转到「相关媒体」页 */
.manifesto-film{ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card--press{ display:flex; }
.card--press .card-frame img{ filter: saturate(.92) contrast(1.05) brightness(.86); }
.card--press .card-tag{ letter-spacing: .16em; }

/* --------------------------------------------------------------------------
   00 · 序（英雄区）
   -------------------------------------------------------------------------- */
.chapter--hero{
  min-height: 100vh;
  min-height: 100svh;
  display:flex; flex-direction:column; justify-content:center;
  padding-top: calc(var(--nav-h) + 6vh);
}
.hero-inner{ max-width: 1160px; }
.hero-title{
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(72px, 15.5vw, 224px);
  line-height: .96; letter-spacing: .01em;
  color: var(--onphoto);
  margin: 26px 0 10px;
  text-shadow: var(--halo);
}
.hero-sub{
  font-family: var(--mono); font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: .42em; color: var(--gold-hi); margin-bottom: 34px;
  text-shadow: var(--halo-soft);
}
.hero-sub:empty{ display:none; margin-bottom: 0; }
.hero-cn{
  font-family: var(--serif); font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: .5em; color: var(--onphoto); opacity: .92; margin-bottom: 26px;
  text-shadow: var(--halo);
}
.hero-body{
  color: var(--onphoto); max-width: 34em; font-size: 15.5px;
  text-align: justify;
  margin-bottom: 0.55em;
  text-shadow: var(--halo-soft);
}
.hero-meta{
  list-style:none; display:flex; flex-wrap:wrap; gap: 12px 46px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22);
}
.hero-meta li{ display:flex; flex-direction:column; gap: 2px; }
.hero-meta b{
  font-family: var(--serif); font-weight:400; font-size: clamp(19px, 2.4vw, 27px);
  color: var(--onphoto); letter-spacing: .04em;
  text-shadow: var(--halo-soft);
}
.hero-meta span{
  font-family: var(--mono); font-size: 10.5px; color: var(--onphoto-dim);
  letter-spacing: .22em; white-space: nowrap;
  text-shadow: var(--halo-soft);
}
.scroll-hint{
  margin-top: clamp(40px, 8vh, 84px);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .34em;
  color: var(--onphoto-dim); display:flex; align-items:center; gap: 16px;
  text-shadow: var(--halo-soft);
}
.scroll-line{
  width: 1px; height: 46px; background: rgba(255,255,255,.3);
  position:relative; overflow:hidden;
}
.scroll-line::after{
  content:""; position:absolute; left:0; top:-50%; width:100%; height:50%;
  background: var(--gold-hi);
  animation: scroll-drip 2.6s var(--ease-out) infinite;
}
@keyframes scroll-drip{ 0%{top:-50%} 60%,100%{ top:110% } }
.hero-vpoem{
  position: absolute; right: clamp(18px, 4.5vw, 72px); bottom: clamp(60px, 12vh, 130px);
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--serif); font-size: clamp(13px, 1.5vw, 17px);
  letter-spacing: .6em; color: var(--onphoto-dim);
  text-shadow: var(--halo-soft);
}

/* --------------------------------------------------------------------------
   07 · 宣言页脚
   -------------------------------------------------------------------------- */
.chapter--manifesto{ padding-bottom: clamp(60px, 9vh, 110px); }
.manifesto-lines{
  margin-bottom: clamp(50px, 9vh, 110px);
  padding: clamp(28px, 4vw, 52px) 0;
}
.m-line{
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 4.6vw, 58px); line-height: 1.7;
  color: var(--onphoto); letter-spacing: .06em;
  text-shadow: var(--halo);
}
.m-line:nth-child(2){ color: rgba(247,244,238,.86); }
.m-line:nth-child(3){ color: var(--gold-hi); }

.manifesto-data{
  display:grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--panel);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 18px 50px -28px rgba(0,0,0,.6);
}
.manifesto-data > div{
  padding: 22px 22px 24px 20px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.manifesto-data dt{
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em;
  color: var(--gold-deep); margin-bottom: 8px;
}
.manifesto-data dd{ font-size: 14px; color: var(--mist); letter-spacing: .04em; line-height:1.7; white-space: nowrap; }

.manifesto-foot{ margin-top: clamp(44px, 8vh, 90px); }
.manifesto-film{ max-width: 860px; margin: clamp(40px, 7vh, 72px) auto 0; }
.manifesto-foot p{
  color: var(--onphoto-dim); font-size: 12.5px; line-height: 2; max-width: 62em;
  text-shadow: var(--halo-soft);
}
.manifesto-foot a{
  color: var(--gold-hi); border-bottom: 1px solid rgba(200,162,95,.4);
  padding-bottom: 1px; transition: border-color .3s ease, color .3s ease;
}
.manifesto-foot a:hover{ color: var(--gold-hi); border-bottom-color: var(--gold-hi); }
.manifesto-foot .legal{
  margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  color: var(--onphoto-dim);
}

/* --------------------------------------------------------------------------
   影片灯箱
   -------------------------------------------------------------------------- */
.modal{ position: fixed; inset:0; z-index: 110; }
.modal[hidden]{ display:none; }
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(8,10,12,.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity:0; transition: opacity .5s ease;
}
.modal.is-open .modal-backdrop{ opacity:1; }
.modal-body{
  position:absolute; inset:0; margin:auto;
  width: min(1024px, 90vw); height: min(660px, 78vh);
  display:flex; flex-direction:column;
  background: #14171a; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8);
  opacity:0; transform: translateY(24px) scale(.985);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.modal.is-open .modal-body{ opacity:1; transform:none; }
.modal-body video{ flex:1; width:100%; object-fit: contain; background:#0c0f12; min-height:0; }
.modal-body figcaption{
  padding: 12px 18px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .24em; color: var(--onphoto-dim); border-top: 1px solid rgba(255,255,255,.1);
}
.modal-close{
  position:absolute; right: 12px; top: -46px;
  width: 36px; height: 36px; display:grid; place-items:center;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(18,21,24,.8);
  transition: border-color .3s ease, background .3s ease;
}
.modal-close svg{ width: 14px; height: 14px; stroke: var(--onphoto); stroke-width: 1.6; fill:none; }
.modal-close:hover{ border-color: var(--gold-hi); background: rgba(178,140,78,.2); }

/* 伪全景查看器 */
.modal-body--pano{ padding:0; }
.modal-body--pano figcaption{ flex:none; }
.pano-wrap{
  flex:1; min-height:0; position:relative; overflow:hidden;
  background:#0c0f12; touch-action:none; cursor:grab;
  -webkit-user-select:none; user-select:none;
  -webkit-tap-highlight-color: transparent;
}
.pano-wrap.dragging{ cursor:grabbing; }
.pano-img{
  position:absolute; left:0; top:0; max-width:none;
  transform-origin:0 0; will-change:transform;
  pointer-events:none;
}
.pano-loading{
  position:absolute; left:50%; top:50%; width:34px; height:34px;
  margin:-17px 0 0 -17px; border-radius:50%;
  border:3px solid rgba(255,255,255,.18); border-top-color:#fff;
  animation:pano-spin .8s linear infinite;
  pointer-events:none; opacity:0; transition:opacity .25s ease;
}
.pano-wrap.is-loading .pano-loading{ opacity:1; }
@keyframes pano-spin{ to{ transform:rotate(360deg); } }
.pano-reset{
  position:absolute; left:12px; bottom:12px; width:34px; height:34px;
  display:grid; place-items:center; z-index:2;
  border:1px solid rgba(255,255,255,.25); border-radius:50%;
  background:rgba(18,21,24,.8); cursor:pointer; padding:0;
  transition:border-color .3s ease, background .3s ease;
}
.pano-reset svg{ width:15px; height:15px; stroke:var(--onphoto); stroke-width:1.6; fill:none; }
.pano-reset:hover{ border-color:var(--gold-hi); background:rgba(178,140,78,.2); }

/* --------------------------------------------------------------------------
   词级显现（JS 拆词后）
   -------------------------------------------------------------------------- */
[data-words] .w, .m-line .w, .reveal{
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.in [data-words] .w, .in .m-line .w, .in .reveal,
[data-words].in .w, .reveal.in{
  opacity: 1; transform: none;
}
[data-words]:not(.in) .w{ display:inline-block; will-change: transform; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px){
  .cards--six{ grid-template-columns: repeat(2, 1fr); }
  .manifesto-data{ grid-template-columns: repeat(3, 1fr); }
  .ghost-num{ right: 6vw; }
}
@media (max-width: 860px){
  .nav-links{ display:none; }
  .menu-btn{ display:flex; }
  .rail{ display:none; }
  .chapter-body{ grid-template-columns: 1fr; gap: 44px; }
  .chapter-copy{ position: static; padding: 24px 22px; }
  .cards--three, .cards--four, .cards--six{ grid-template-columns: 1fr; }
  .card--wide{ grid-column: auto; }
  .card--tall .card-frame{ aspect-ratio: 4/3; }
  /* 移动端：照片保持清晰，改为磨砂玻璃面板 + 加大卡片间距，
     让背景 WebGL 动效从面板/说明区与卡片间隙透出，而不过度遮挡照片 */
  .cards{ gap: clamp(26px, 8vw, 48px); }
  .card{ background: rgba(255,253,248,.76); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .card:hover{ border-color: rgba(200,162,95,.5); box-shadow: none; transform:none; }
  .card figcaption{ background: linear-gradient(180deg, rgba(255,253,248,.65), rgba(255,253,248,.82)); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .zh-title{ font-size: clamp(52px, 13vw, 84px); letter-spacing: .12em; margin-right: -.12em; }
  .ghost-num{ font-size: 110px; top: -0.35em; right: 0; opacity:.8; }
  .manifesto-data{ grid-template-columns: repeat(2, 1fr); }
  .manifesto-data dd{ white-space: normal; }
  .hero-vpoem{ display:none; }
  .data-line{ grid-template-columns: 1fr; }
  .lift-floor{ font-size: clamp(40px, 12vw, 64px); }
  .modal-body{ height: auto; aspect-ratio: 16/9; }
  .modal-body video{ aspect-ratio: 16/9; }
  .modal-body--pano{ aspect-ratio:auto; height: min(560px, 72vh); }
}

/* --------------------------------------------------------------------------
   减少动画：保留完整阅读体验
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .scroll-line::after{ animation: none; top: 30%; }
  .lift-arrow{ animation: none; }
  [data-words] .w, .reveal{ transform:none; }
  .card-frame img{ transform:none !important; }
}
