/* ================================================================
   Saphir Yang · 小宇宙（IP 主页）
   视觉基因：紫夜星图 × 蜡笔手绘——深紫罗兰 + 奶油白 + 琥珀金
   ================================================================ */

:root {
  --night: #171130;
  --night-deep: #0e0a20;
  --night-lift: #261b47;
  --cream: #f2ecdd;
  --cream-dim: #b9b3a4;
  --amber: #e8a24b;
  --amber-deep: #c97f2e;
  --line: rgba(242, 236, 221, 0.16);
  --line-soft: rgba(242, 236, 221, 0.08);
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --sans: "PingFang SC", "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1080px;
  --gutter: clamp(18px, 4vw, 44px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 整页滚动停靠：留言簿是唯一的“暂停点”，滚到附近就把整幕停给你看 */
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(124, 92, 210, 0.30), transparent 60%),
    var(--night);
  color: var(--cream);
  font-family: var(--serif);
  line-height: 1.9;
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
  outline: 1.5px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 99;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--night-deep);
  font-family: var(--sans);
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.25s;
}

.skip-link:focus { top: 12px; }

/* ---------------- 首屏 ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-items: start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% center; /* 人物在左，保留主体与右侧风景 */
  display: block;
}

/* 左侧压暗承托文案（文字在左）。
   底部只留一道很窄的收边——以前是一路淡到 --night，画面上半截清楚、
   下半截糊成一片发虚的紫雾，看着像没对上焦 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(14, 10, 32, 0.86) 0%,
      rgba(14, 10, 32, 0.46) 32%,
      rgba(14, 10, 32, 0.10) 58%,
      transparent 76%),
    linear-gradient(to bottom,
      rgba(14, 10, 32, 0.14) 0%,
      transparent 16%,
      transparent 93%,
      rgba(14, 10, 32, 0.62) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: var(--gutter);
  padding-top: clamp(72px, 12vh, 140px);
  max-width: clamp(600px, 46vw, 760px);
  margin-left: 0;
  margin-right: auto;
}

.hero-eyebrow {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 0.28em;
  color: var(--cream-dim);
}

.hero-title { margin: 0; font-weight: 500; }

.hero-name {
  display: block;
  font-size: clamp(44px, 9vw, 104px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-shadow: 0 2px 30px rgba(14, 10, 32, 0.55);
}

.hero-cn {
  display: block;
  margin-top: clamp(14px, 2.5vw, 26px);
  font-size: clamp(18px, 2.6vw, 28px);
  color: var(--amber);
  letter-spacing: 0.14em;
}

.hero-sub {
  margin: clamp(16px, 3vw, 26px) 0 0;
  max-width: 26em;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--cream-dim);
  text-shadow: 0 1px 6px rgba(14, 10, 32, 0.95), 0 0 22px rgba(14, 10, 32, 0.9);
}

.scroll-down {
  position: absolute;
  bottom: max(26px, calc(18px + env(safe-area-inset-bottom)));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.scroll-down:hover { color: var(--amber); }

.scroll-down svg {
  width: 18px;
  height: 18px;
  animation: bob 2.2s var(--ease-out) infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  55% { transform: translateY(7px); }
}

/* ---------------- 通用节段 ---------------- */

section { padding: clamp(72px, 12vh, 130px) var(--gutter); }

.sec-head { max-width: var(--maxw); margin: 0 auto 34px; }

.sec-eyebrow {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--amber);
}

.sec-title {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.sec-lede {
  margin: 14px 0 0;
  color: var(--cream-dim);
  font-size: clamp(14px, 1.6vw, 16px);
}

/* 入场：泛白浮出（与摄影站的显影语言同源） */
.u-rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.u-rise.is-in {
  opacity: 1;
  transform: none;
}

/* ---------------- 第二幕 · 窗：日与夜（逐帧 scrub） ---------------- */

/* 320vh 的滚动跑道：sticky 舞台里把 97 帧从白昼推到入夜 */
.cine {
  position: relative;
  height: 320vh;
  padding: 0;          /* 覆盖全局 section 内边距，让 sticky 舞台真正满屏 */
  background: #07050e;
}

.cine-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #07050e;
}

/* 画框外的延展：同一帧放大模糊，像窗光溢到墙上。
   竖屏时它就是「没有黑边的下半屏」，所以不能压太暗 */
.cine-bleed {
  position: absolute;
  inset: -14%;
  z-index: 0;
  background: #0b0716 center / cover no-repeat;
  background-image: url("../images/home/cine/bleed-day.webp");
  filter: blur(40px) brightness(0.55) saturate(1.3);
  transform: scale(1.18);
  opacity: 0.95;
  transition: background-image 0.6s;
}

/* 入夜：画框外的雾面也跟着换夜色 */
.cine.is-night .cine-bleed {
  background-image: url("../images/home/cine/bleed-night.webp");
}

/* 底图：视频没到之前先顶上去，别让人对着一团模糊等下载 */
.cine-still {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
  pointer-events: none;
}

/* 两层静图交替淡入：白昼 → 黄昏 → 入夜，慢网也能看到昼夜走过 */
.cine-still.is-on { opacity: 1; }

.cine-still.is-band {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.65) 9%, #000 20%, #000 80%, rgba(0,0,0,.65) 91%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.65) 9%, #000 20%, #000 80%, rgba(0,0,0,.65) 91%, transparent 100%);
}

/* 画布画出第一帧后，静图就退场 */
.cine.is-live .cine-still { opacity: 0 !important; }

/* 画布铺满整个舞台，帧图内部分 cover / contain 由 JS 决定 */
.cine-canvas.is-band {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.65) 9%, #000 20%, #000 80%, rgba(0,0,0,.65) 91%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.65) 9%, #000 20%, #000 80%, rgba(0,0,0,.65) 91%, transparent 100%);
}

/* 真正被 scrub 的视频源：铺满舞台但藏在模糊层下面。
   注意：绝不能用 1×1 / opacity:0 藏起来——浏览器会降低它的解码优先级，
   seek 会拖到 100ms+ 甚至不触发 seeked，滚动就一顿一顿 */
.cine-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.cine-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}

/* 视频真的画出帧了才让它接管，画面不会中途变空白 */
.cine.is-live .cine-canvas { opacity: 1; }

/* 压暗：左、下给文字留出呼吸 */
.cine-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(6, 4, 14, 0.78) 0%, rgba(6, 4, 14, 0.42) 28%, rgba(6, 4, 14, 0) 58%),
    linear-gradient(to top, rgba(6, 4, 14, 0.86) 0%, rgba(6, 4, 14, 0.2) 26%, rgba(6, 4, 14, 0) 46%),
    /* 竖屏时上下那层柔光压一压，视线才会落在窗上 */
    linear-gradient(to bottom, rgba(7, 5, 14, 0.62) 0%, rgba(7, 5, 14, 0.12) 16%, rgba(7, 5, 14, 0) 34%, rgba(7, 5, 14, 0) 66%, rgba(7, 5, 14, 0.28) 84%, rgba(7, 5, 14, 0.7) 100%);
  transition: opacity 0.8s var(--ease-out);
}

/* 夜色再压一层冷调，让风铃浮出来 */
.cine-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 108%, rgba(24, 16, 54, 0.55), transparent 58%);
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
}

.cine.is-night .cine-stage::after { opacity: 1; }

/* ---- 文案 ---- */
.cine-copy {
  position: absolute;
  isolation: isolate;
  left: var(--gutter);
  bottom: clamp(38px, 9vh, 88px);
  z-index: 7;
  max-width: min(30em, 46vw);
  pointer-events: none;
  text-shadow: 0 2px 22px rgba(4, 2, 10, 0.92), 0 1px 3px rgba(4, 2, 10, 0.9);
}

/* 文案背后一团柔性暗雾，压住画面里偏亮的部分 */
.cine-copy::before {
  content: "";
  position: absolute;
  inset: -46px -80px -34px -56px;
  z-index: -1;
  background: radial-gradient(118% 104% at 18% 72%, rgba(5, 3, 12, 0.82), rgba(5, 3, 12, 0.42) 46%, rgba(5, 3, 12, 0) 74%);
  filter: blur(8px);
  pointer-events: none;
}

.cine-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(242, 236, 221, 0.6);
}

.cine-clock {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.cine-dot { color: rgba(242, 236, 221, 0.3); }

.cine-title {
  margin: 0;
  font-size: clamp(24px, 3.1vw, 46px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--cream);
}

.cine-lines {
  display: grid;
  margin: 10px 0 0;
  font-size: clamp(13px, 1.15vw, 17px);
  color: rgba(242, 236, 221, 0.84);
  line-height: 1.85;
}

.cine-lines > * {
  grid-area: 1 / 1;
  margin: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.cine-line--dusk,
.cine-line--night {
  opacity: 0;
  transform: translateY(8px);
  color: rgba(242, 236, 221, 0.86);
}

/* 白昼 → 黄昏 → 入夜，三句接力，别让文案抢在画面前面 */
.cine.is-dusk .cine-line--day {
  opacity: 0;
  transform: translateY(-8px);
}

.cine.is-dusk .cine-line--dusk {
  opacity: 1;
  transform: none;
}

.cine.is-night .cine-line--dusk {
  opacity: 0;
  transform: translateY(-8px);
}

.cine.is-night .cine-line--night {
  opacity: 1;
  transform: none;
}

/* ---- 风铃：四扇门 ---- */
.chimes {
  position: absolute;
  inset: 0;
  z-index: 6;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.chime-item {
  position: absolute;
  top: 0;
  left: var(--x, 12%);
  width: max-content;
  transform: translate(-50%, -128%);
  opacity: 0;
  transition:
    transform 1.25s cubic-bezier(0.22, 0.9, 0.24, 1.02),
    opacity 0.6s var(--ease-out);
  transition-delay: var(--drop, 0s), var(--drop, 0s);
  will-change: transform;
}

.cine.is-night .chime-item {
  transform: translate(-50%, 0);
  opacity: 1;
}

.chime {
  display: block;
  text-decoration: none;
  color: inherit;
  pointer-events: auto;
  outline: none;
}

.chime:focus-visible .chime-body img {
  filter: drop-shadow(0 0 30px rgba(255, 236, 198, 0.7)) drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5));
}

/* 吊线：从画面顶端垂下来 */
.chime-cord {
  display: block;
  width: 1px;
  height: var(--len, 9vh);
  margin: 0 auto;
  background: linear-gradient(to bottom, rgba(242, 236, 221, 0) 0%, rgba(242, 236, 221, 0.34) 34%, rgba(242, 236, 221, 0.62) 100%);
}

/* 摇摆：以吊点为轴 */
.chime-swing {
  display: block;
  transform-origin: 50% 0;
  animation: chimeSway var(--sway, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;   /* 单独一层，摆动时不去重绘带 drop-shadow 的插画 */
}

@keyframes chimeSway {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.6deg); }
}

/* 被碰一下：阻尼摆动，越晃越小 */
.chime.is-ring .chime-swing {
  animation: chimeRing 2.2s cubic-bezier(0.25, 0.8, 0.3, 1);
}

@keyframes chimeRing {
  0%   { transform: rotate(0deg); }
  10%  { transform: rotate(7.6deg); }
  23%  { transform: rotate(-6.2deg); }
  36%  { transform: rotate(4.4deg); }
  49%  { transform: rotate(-2.9deg); }
  62%  { transform: rotate(1.7deg); }
  75%  { transform: rotate(-0.9deg); }
  88%  { transform: rotate(0.4deg); }
  100% { transform: rotate(0deg); }
}

.chime-body {
  position: relative;
  display: block;
}

.chime-body img {
  display: block;
  width: auto;
  height: var(--h, clamp(250px, 42vh, 470px));
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55));
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
  -webkit-user-drag: none;
  user-select: none;
}

.chime:hover .chime-body img,
.chime:focus-visible .chime-body img {
  transform: translateY(3px) scale(1.045);
  filter: drop-shadow(0 0 26px rgba(255, 238, 206, 0.45)) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5));
}

.chime-tag {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  padding-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: clamp(12px, 0.8vw, 15px);
  letter-spacing: 0.22em;
  color: rgba(242, 236, 221, 0.8);
  text-shadow: 0 1px 12px rgba(4, 2, 10, 0.95), 0 0 3px rgba(4, 2, 10, 0.9);
  transition: color 0.45s;
}

.chime-num {
  font-size: clamp(10px, 0.62vw, 12px);
  letter-spacing: 0.12em;
  color: rgba(232, 162, 75, 0.95);
  transition: color 0.45s;
}

.chime:hover .chime-tag,
.chime:focus-visible .chime-tag { color: var(--cream); }

.chime:hover .chime-num,
.chime:focus-visible .chime-num { color: var(--amber); }

/* ---- 底部提示 / 载入进度 / 过场 ---- */
.cine-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: rgba(242, 236, 221, 0.42);
  opacity: 1;
  transition: opacity 0.6s;
}

.cine-hint i {
  display: block;
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, rgba(242, 236, 221, 0.5), transparent);
  animation: hintDrop 2.4s ease-in-out infinite;
}

@keyframes hintDrop {
  0%, 100% { transform: translateY(-4px); opacity: 0.35; }
  50% { transform: translateY(4px); opacity: 0.9; }
}

.cine.is-night .cine-hint { opacity: 0; }

.cine-load {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  z-index: 6;
  width: 112px;
  height: 2px;
  background: rgba(242, 236, 221, 0.14);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.cine.is-loading .cine-load { opacity: 1; }

.cine-load i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(245, 199, 119, 0.5);
  transition: width 0.3s linear;
}

.cine-load-txt {
  position: absolute;
  right: 0;
  bottom: 9px;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(242, 236, 221, 0.5);
  font-variant-numeric: tabular-nums;
}

.cine-flash {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 34%, rgba(255, 252, 245, 0.95) 0%, rgba(226, 214, 255, 0.6) 34%, rgba(160, 140, 220, 0) 72%);
  transition: opacity 0.42s ease;
}

.cine.is-going .cine-flash { opacity: 1; }

/* ---- 竖屏 / 窄屏 ---- */
@media (max-width: 820px) {
  .cine { height: 280vh; }

  .cine-bleed { filter: blur(26px) brightness(0.6) saturate(1.35); transform: scale(1.26); }

  .chime-item { left: var(--xm, var(--x)); }

  .cine-copy {
    left: var(--gutter);
    right: var(--gutter);
    bottom: clamp(30px, 7vh, 56px);
    max-width: none;
  }

  .cine-title { font-size: clamp(21px, 5.6vw, 28px); letter-spacing: 0.08em; }

  .cine-lines { font-size: 12.5px; }

  .chime-body img { height: var(--h-m, clamp(158px, 25vh, 232px)); }

  .chime-cord { height: var(--len-m, 6vh); }

  .chime-tag {
    font-size: 10px;
    letter-spacing: 0.12em;
    gap: 4px;
    padding-top: 6px;
  }

  /* 手机上台面小，滚动提示和进度条会压到文案上，收掉/上移 */
  .cine-hint { display: none; }

  .cine-load {
    top: 20px;
    bottom: auto;
    width: 64px;
  }
}

/* 很矮的横屏：给风铃留出长度，收一点 */
@media (min-width: 821px) and (max-height: 720px) {
  .chime-body img { height: clamp(170px, 30vh, 260px); }
  .cine-copy { bottom: 24px; }
  .cine-title { font-size: clamp(20px, 2.4vw, 28px); }
}

/* 减弱动效：风铃直接挂好，画面停在入夜 */
@media (prefers-reduced-motion: reduce) {
  .chime-swing { animation: none; }
  .chime-item { transition: none; }
  .cine-hint i { animation: none; }
}

/* ---------------- 关于我 ---------------- */

/* 第三幕的底色：不再是一块突兀的平紫——
   从第二幕入夜的墨蓝里长出来，落进紫夜，天空是延续的 */
.about {
  position: relative;
  padding-top: clamp(96px, 16vh, 180px);
  background:
    radial-gradient(900px 420px at 82% 4%, rgba(124, 92, 210, 0.16), transparent 68%),
    radial-gradient(700px 380px at 10% 34%, rgba(96, 74, 190, 0.10), transparent 70%),
    linear-gradient(to bottom, #0a0d1e 0%, #120e2a 36%, var(--night) 74%, var(--night) 100%);
}

/* 一层安静的星屑：夜空从上一幕飘过来 */
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 16%, rgba(242, 236, 221, 0.55), transparent),
    radial-gradient(1px 1px at 34% 8%, rgba(242, 236, 221, 0.42), transparent),
    radial-gradient(1.2px 1.2px at 58% 13%, rgba(242, 236, 221, 0.38), transparent),
    radial-gradient(1px 1px at 76% 22%, rgba(242, 236, 221, 0.48), transparent),
    radial-gradient(1.8px 1.8px at 90% 9%, rgba(232, 162, 75, 0.45), transparent),
    radial-gradient(1px 1px at 22% 40%, rgba(242, 236, 221, 0.30), transparent),
    radial-gradient(1px 1px at 68% 36%, rgba(242, 236, 221, 0.26), transparent),
    radial-gradient(1.4px 1.4px at 44% 26%, rgba(242, 236, 221, 0.32), transparent),
    radial-gradient(1px 1px at 86% 44%, rgba(242, 236, 221, 0.22), transparent);
}

/* 底部微微预热：纸色的留言簿快到了，光先落一点下来 */
.about::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(90px, 14vh, 160px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(243, 231, 203, 0) 0%, rgba(243, 231, 203, 0.13) 100%);
}

.about-grid {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.about-pic {
  margin: 0;
  transform: rotate(-1.6deg);
}

.about-pic img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 2px dashed var(--line);
  padding: 10px;
  background: var(--night-lift);
}

.about-body p { margin: 0 0 16px; color: var(--cream-dim); }

.about-body p:first-child { color: var(--cream); }

.about-tags {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-tags li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--cream-dim);
  transition: border-color 0.3s, color 0.3s;
}

.about-tags li:hover { border-color: var(--amber); color: var(--cream); }

.about-tags a { color: inherit; text-underline-offset: 3px; }
.about-tags a:hover { color: var(--amber); }

/* ---------------- Say hi ---------------- */

/* 留言簿的夜色尽头到这里：留一口呼吸的空间，
   顶部一层墨蓝薄雾把纸雕的硬边接进紫夜 */
.hi {
  padding-top: clamp(72px, 13vh, 140px);
  background: linear-gradient(to bottom, rgba(13, 22, 38, 0.88) 0%, rgba(23, 17, 48, 0) 42%);
}

.hi-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px);
  background: var(--night-lift);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(5, 8, 18, 0.5);
}

.hi-stamp {
  position: absolute;
  top: -34px;
  right: -18px;
  width: clamp(86px, 10vw, 120px);
  height: auto;
  transform: rotate(9deg);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(5, 8, 18, 0.55);
}

.hi-lede {
  margin: 16px auto 30px;
  max-width: 26em;
  color: var(--cream-dim);
}

.hi-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hi-btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}

.hi-btn:hover {
  border-color: var(--amber);
  transform: translateY(-2px) rotate(-0.5deg);
}

.hi-btn.is-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--night-deep);
}

.hi-btn.is-amber:hover { background: #f0b263; }

/* ---------------- 页脚 ---------------- */

.foot {
  padding: 26px var(--gutter) 40px;
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
}

.foot a { color: inherit; text-underline-offset: 3px; }
.foot a:hover { color: var(--amber); }

/* ---------------- 响应式 ---------------- */

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-pic { max-width: 420px; margin-inline: auto; }
  .hi-stamp { right: -8px; top: -28px; }
  .hero-bg video { object-position: 26% center; } /* 竖屏下聚焦小女孩 */
  .hero-inner {
    max-width: none;
    width: 100%;
    text-align: left;
    margin-left: 0;
    padding-top: clamp(80px, 13vh, 140px);
  }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.18em; }
  .hero-sub { margin: clamp(16px, 3vw, 26px) 0 0; }
  .hero::after {
    background:
      linear-gradient(to bottom,
        rgba(14, 10, 32, 0.88) 0%,
        rgba(14, 10, 32, 0.42) 34%,
        rgba(14, 10, 32, 0.08) 60%,
        transparent 80%,
        rgba(14, 10, 32, 0.66) 100%);
  }

}

@media (max-width: 760px) and (max-height: 720px) {
  .hero-inner { padding-top: clamp(52px, 9vh, 88px); }
  .hero-eyebrow { margin-bottom: 10px; }
}

/* 矮视口（如 1280×720）：文案整体上移并缩小，避免压到人物 */
@media (min-width: 761px) and (max-height: 800px) {
  .hero-inner { padding-top: clamp(48px, 7.4vh, 78px); }
  .hero-eyebrow { margin-bottom: 14px; font-size: 11px; letter-spacing: 0.24em; }
  .hero-name { font-size: clamp(38px, 6.6vw, 86px); }
  .hero-cn { margin-top: clamp(10px, 1.6vw, 18px); font-size: clamp(17px, 2vw, 23px); }
  .hero-sub { margin-top: clamp(10px, 1.8vw, 16px); font-size: clamp(13px, 1.15vw, 15px); }
}

/* ---------------- 动效降级 ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* 不动效时整幕压成一屏：停在入夜、风铃直接挂好 */
  .cine { height: 100svh; }
  .cine-stage { position: relative; }
  .u-rise { opacity: 1; transform: none; transition: none; }
}

/* ---------------- 关于我 · 题记（行旅在外） ---------------- */

.about-motto {
  margin: 28px 0 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--amber);
}

.about-motto p {
  margin: 0;
  font-size: clamp(16.5px, 1.8vw, 19px);
  line-height: 2.15;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.about-motto footer {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--amber);
}

@media (max-width: 760px) {
  .about-motto { margin-top: 22px; padding-left: 14px; }
}

/* ---------------- 第四幕 · 留言簿（整屏场景，内嵌自包含的留言簿） ---------------- */

.gb-scene {
  position: relative;
  padding: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  /* 全页唯一的强制停靠点：翻页的人一定会把整幕留言簿看完整 */
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #f3e7cb; /* 纸色兜底：iframe 未加载时不会露出黑底 */
  color-scheme: light;
}

.gb-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f3e7cb;
}

.gb-fallback {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42%;
  margin: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  color: #2a2018;
}

/* 手机端：整屏场景同样成立；内嵌页面自己会缩排 */
@media (max-width: 760px) {
  .gb-scene { height: 100vh; height: 100svh; }
}
