/* =========================================================
   Rui · 个人网站 — 封面
   背景：赛博1 / 乱码坐标：赛博2 手绘框
   ========================================================= */

:root{
  --ink:        #07030f;
  --ice:        #a9f2ff;
  --ice-bright: #6fe4ff;
  --violet:     #b3a0ff;
  --pink:       #ff6ad5;

  --title-font: "SimSun", "宋体", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --ui-font:    "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  --heiti-font: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono:       "Cascadia Mono", "Consolas", "SF Mono", "Courier New", monospace;
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--ink);
  color: #eaf6ff;
  font-family: var(--ui-font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   1. 背景（永久保留）
   ========================================================= */

.bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #05030c;
}

/* 以图片原始比例（1200×789）铺满视口、顶部对齐，保证天空与乱码位在任何屏幕比例下都完整可见 */
.bg-stage{
  position: relative;
  flex: 0 0 auto;
  width: max(100vw, calc(100vh * 1.5209138));
  height: max(100vh, calc(100vw * 0.6575));
  container-type: size;
  transform-origin: 50% 38%;
  animation: bgIn 1.5s cubic-bezier(.2,.7,.2,1) both;
}

.bg-img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  animation: bgDrift 34s ease-in-out 2.4s infinite alternate;
}

/* 暗部渐变：让白字更立得住，同时保留霓虹 */
.grade{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(54% 44% at 50% 58%, rgba(5,5,24,.46) 0%, rgba(5,5,24,.20) 54%, rgba(5,5,24,0) 80%),
    linear-gradient(180deg, rgba(4,4,18,.28) 0%, rgba(4,4,18,.03) 16%, rgba(4,4,18,0) 34%,
                            rgba(4,4,18,.04) 62%, rgba(3,3,14,.44) 100%);
  box-shadow: inset 0 0 22vw rgba(3,2,12,.34);
  animation: fadeIn 2s ease .2s both;
}

.scan{
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(180deg,
      rgba(255,255,255,.16) 0 1px,
      rgba(255,255,255,0)   1px 3px);
}

.sweep{
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.sweep::before{
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  height: 26vh;
  top: -34vh;
  background: linear-gradient(180deg,
      rgba(120,220,255,0) 0%,
      rgba(120,220,255,.055) 50%,
      rgba(120,220,255,0) 100%);
  animation: sweepDown 18s linear 3s infinite;
}

/* =========================================================
   2. 天空乱码（位置对应 赛博2 的五个手绘框）
   ========================================================= */

.glitch-field{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glitch{
  position: absolute;
  overflow: hidden;
  padding: .55em .7em;
  font-family: var(--mono);
  font-size: clamp(5.5px, .45vw, 8.5px);
  font-size: clamp(5.5px, .45cqw, 8.5px);
  line-height: 1.5;
  letter-spacing: .02em;
  white-space: pre;
  contain: layout paint;
  /* 亮天空下给字垫一层几乎看不见的暗底，保证浅色乱码不被吃掉 */
  background: radial-gradient(ellipse 72% 74% at 50% 50%,
      rgba(2,5,20,.34) 0%, rgba(2,5,20,.19) 52%, rgba(2,5,20,0) 78%);
  -webkit-text-stroke: .38px rgba(3,6,20,.6);
}

.glitch[data-tone="ice"]{
  color: #a6f3ff;
  text-shadow:
    0 0 .2em rgba(120,230,255,.95),
    0 0 .58em rgba(35,155,255,.6),
    0 1px 2px rgba(2,6,22,.9);
}
.glitch[data-tone="mint"]{
  color: #b0ffb9;
  text-shadow:
    0 0 .22em rgba(140,255,165,.95),
    0 0 .62em rgba(30,205,115,.62),
    0 1px 2px rgba(2,6,22,.9);
}

/* 入场层：只做 opacity / 位移，不碰抖动层，避免动画被重置 */
.g-inner{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .26em;
  height: 100%;
  animation: glitchIn 1.5s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: var(--d, .6s);
}

.g-line{
  display: block;
  opacity: .92;
  animation: gFlicker 3.4s steps(1, end) infinite;
  animation-delay: var(--ld, 0s);
}
.g-line--dim{ opacity: .5; }
/* 高亮闪：沿用各自色系的近白，而不是纯白，避免浅绿丢色相 */
.glitch[data-tone="ice"] .g-line--hot{
  color: #eafdff;
  text-shadow: 0 0 .8em rgba(150,240,255,.95), 0 0 2.2em rgba(90,190,255,.6);
}
.glitch[data-tone="mint"] .g-line--hot{
  color: #ecffef;
  text-shadow: 0 0 .8em rgba(170,255,190,.95), 0 0 2.2em rgba(80,230,150,.6);
}

/* 偶发抽动：只作用于外层，不与入场动画冲突 */
.glitch.burst{
  animation: gBurst .2s steps(2, end) 1;
}

/* =========================================================
   3. 第一页 / 封面
   ========================================================= */

.page{
  position: fixed;
  inset: 0;
}

.page--cover{
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0 5vw 4vh;
  transition: opacity .5s ease;
}

.cover{
  width: 100%;
  max-width: 1180px;
  text-align: center;
  transform: translateY(.6vh);
}

/* ---------- 主标题 -------------------------------------- */

.title-wrap{
  position: relative;
  display: inline-block;
}

/* 文字下层的一层轻微暗色笼罩，让白字从霓虹天空里“浮”出来 */
.title-scrim{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 134%;
  height: 210%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 54% 48% at 50% 44%, rgba(5,2,16,.74) 0%, rgba(5,2,16,.54) 38%, rgba(5,2,16,.22) 64%, rgba(5,2,16,0) 82%);
  filter: blur(20px);
  opacity: 0;
  animation: scrimIn 2s ease .2s both;
}

.title{
  position: relative;
  z-index: 1;
  isolation: isolate;
  margin: 0;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: clamp(46px, 8.4vw, 118px);
  line-height: 1.1;
  letter-spacing: .04em;
  color: #ffffff;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  text-shadow:
    -3px 1px 0 rgba(60,225,255,.34),
     3px 1px 0 rgba(255,80,195,.26),
     0 -1px 0 rgba(255,255,255,.55),
     0 1px 0 rgba(255,255,255,.22),
     0 26px 46px rgba(0,0,0,.5),
     0 62px 110px rgba(0,0,0,.34);
}

/* 揭起的那一层：深色硬边副本，位于字形正后方 */
.title::before{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: #0a0418;
  opacity: .86;
  transform: translate(6px, 8px);
  filter: blur(.7px);
  text-shadow: 0 24px 50px rgba(0,0,0,.5);
  pointer-events: none;
}

/* 极轻的呼吸感，让“揭起”的那层不呆板 */
.title::before{
  animation: peelBreath 7s ease-in-out infinite;
}

.title__ch{
  display: inline-block;
  opacity: 0;
  transform: translateY(46px);
  filter: blur(14px);
  animation: chIn 1.2s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(var(--i) * 85ms + 300ms);
  will-change: transform, opacity, filter;
}

/* ---------- 英文副标题 ---------------------------------- */

.subtitle{
  margin: clamp(32px, 4.4vh, 56px) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(13px, 1.5vw, 22px);
}

.subtitle__line{
  display: block;
  width: clamp(24px, 3vw, 46px);
  height: 1px;
  background: linear-gradient(90deg, rgba(190,245,255,0) 0%, rgba(190,245,255,1) 100%);
  box-shadow: 0 0 12px rgba(110,220,255,.85), 0 0 3px rgba(255,255,255,.55);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  animation: lineIn .9s cubic-bezier(.16,1,.3,1) .92s both;
}
.subtitle__line:last-child{
  transform-origin: 0% 50%;
  background: linear-gradient(270deg, rgba(190,245,255,0) 0%, rgba(190,245,255,1) 100%);
  animation-delay: 1.02s;
}

.subtitle__text{
  display: inline-block;
  padding-left: .38em;
  font-family: var(--ui-font);
  font-size: clamp(10px, 1.08vw, 14px);
  font-weight: 400;
  letter-spacing: .38em;
  color: rgba(232,250,255,.92);
  text-shadow: 0 0 14px rgba(120,225,255,.55);
  opacity: 0;
  filter: blur(6px);
  animation: subIn 1.1s cubic-bezier(.16,1,.3,1) .88s both;
  will-change: opacity, filter, letter-spacing;
}

/* ---------- 按钮 ---------------------------------------- */

.btn-wrap{
  margin-top: clamp(30px, 4.4vh, 52px);
  display: flex;
  justify-content: center;
  opacity: 0;
  filter: blur(10px);
  animation: btnIn 1.1s cubic-bezier(.16,1,.3,1) 1.05s both;
  will-change: opacity, filter, transform;
}

.enter-btn{
  --prox: 0;          /* 0–1 鼠标接近度，由 JS 平滑写入 */
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: clamp(16px, 1.8vh, 20px) clamp(34px, 3vw, 52px);
  background:
    linear-gradient(180deg,
      rgba(205,245,255, calc(.16 + .16 * var(--prox))) 0%,
      rgba(120,90,230,  calc(.12 + .18 * var(--prox))) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  color: #eafbff;
  font-family: var(--ui-font);
  font-size: clamp(14px, 1.02vw, 17px);
  font-weight: 500;
  letter-spacing: .2em;
  text-indent: .2em;
  cursor: pointer;
  outline: none;
  transform: translateY(calc(-5px * var(--prox))) scale(calc(1 + .022 * var(--prox)));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 0 0 1px rgba(175,240,255,.10),
    inset 0 -16px 32px rgba(35,18,85,.28),
    0 14px 40px rgba(0,0,0,.42),
    0 0 34px rgba(90,200,255,.14),
    0 0 calc(54px * var(--prox)) rgba(95,216,255, calc(.55 * var(--prox))),
    0 0 calc(120px * var(--prox)) rgba(169,140,255, calc(.34 * var(--prox)));
  transition:
    transform .5s cubic-bezier(.16,1,.3,1),
    box-shadow .5s ease,
    background .5s ease;
}

/* 霓虹渐变描边（圆角，随接近度点亮） */
.enter-btn__ring{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(115deg, #5fe6ff 0%, #8f7bff 42%, #ff6ad5 72%, #5fe6ff 100%);
  background-size: 220% 100%;
  background-position: calc(var(--prox) * 100%) 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: calc(.55 + .45 * var(--prox));
  pointer-events: none;
  animation: ringHue 9s linear infinite;
  transition: opacity .35s ease;
}

/* 扫光：鼠标越近，光带越从左侧扫过按钮 */
.enter-btn__sheen{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.enter-btn__sheen::before{
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: 0;
  width: 42%;
  background: linear-gradient(100deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.42) 45%,
      rgba(255,255,255,0) 100%);
  transform: translateX(calc(-130% + 300% * var(--prox))) skewX(-16deg);
  opacity: calc(var(--prox) * .85);
  filter: blur(2px);
}

/* 扫描线：靠近时在胶囊内自上而下扫过 */
.enter-btn__sheen::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34%;
  background: linear-gradient(180deg,
      rgba(190,250,255,0) 0%,
      rgba(190,250,255,.55) 50%,
      rgba(190,250,255,0) 100%);
  opacity: calc(var(--prox) * .7);
  filter: blur(1.5px);
  animation: btnScan 2.8s linear infinite;
}

/* 跟随鼠标的柔光 */
.enter-btn::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(130px circle at var(--mx) var(--my),
      rgba(150,240,255,.26) 0%,
      rgba(150,240,255,0) 68%);
  opacity: var(--prox);
}

.enter-btn__text{
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-shadow:
    calc(2px * var(--prox)) 0 rgba(255,70,190, calc(.55 * var(--prox))),
    calc(-2px * var(--prox)) 0 rgba(60,225,255, calc(.65 * var(--prox))),
    0 0 18px rgba(130,235,255,.50),
    0 1px 2px rgba(0,0,0,.55);
  transition: text-shadow .4s ease, color .4s ease;
}
.enter-btn:hover .enter-btn__text,
.enter-btn:focus-visible .enter-btn__text{
  color: #ffffff;
  text-shadow:
    1.5px 0 0 rgba(255,90,205,.55),
   -1.5px 0 0 rgba(90,235,255,.6),
    0 0 20px rgba(150,235,255,.5);
}

/* 按钮右侧箭头：靠近时向右滑出一点 */
.enter-btn__arrow{
  position: relative;
  z-index: 2;
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-left: .62em;
  vertical-align: -.12em;
  color: #d8f6ff;
  overflow: visible;
  transform: translateX(calc(3px * var(--prox)));
  filter: drop-shadow(0 0 calc(6px * var(--prox)) rgba(120,230,255,.9));
  transition: transform .45s cubic-bezier(.16,1,.3,1), filter .45s ease;
}
.enter-btn__arrow svg{ display: block; width: 100%; height: 100%; }
.enter-btn__arrow path{
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.enter-btn:focus-visible{
  outline: 1px solid rgba(150,240,255,.65);
  outline-offset: 7px;
}

.enter-btn:active{
  transform: translateY(calc(-1px * var(--prox))) scale(.985);
  transition-duration: .12s;
}

/* 点击涟漪 */
.ripple{
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(170,245,255,.5) 0%, rgba(170,245,255,0) 70%);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut .7s ease-out forwards;
  z-index: 1;
}

/* =========================================================
   4. 通用：柔和暗色笼罩（给白字垫底，模仿封面的那一层）
   ========================================================= */

.soft-scrim{
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--sw, 150%);
  height: var(--sh, 230%);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 50% 50%,
      rgba(4,2,14, var(--sa, .66)) 0%,
      rgba(4,2,14, calc(var(--sa, .66) * .68)) 38%,
      rgba(4,2,14, calc(var(--sa, .66) * .24)) 64%,
      rgba(4,2,14, 0) 82%);
  filter: blur(var(--sb, 16px));
}

/* 天空乱码：所有页面常驻跳动 */
.glitch-field{ transition: opacity .9s ease; }

/* 楼体霓虹窗格：底图上那些突兀的高饱和色块，静态着亮（不抖动） */
.bldg-field{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* 形状直接来自 赛博5 手绘框：每块是一张带横向窗格的 alpha 蒙版，锁定在底图坐标上 */
.bldg{
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 100%);
  -webkit-mask: var(--m) center / 100% 100% no-repeat;
  mask: var(--m) center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  filter: saturate(148%);
  opacity: var(--o, .7);
}

/* =========================================================
   5. 第二页：About Me + 四个入口
   ========================================================= */

.page--hub{
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .5s ease, visibility .5s;
}
.page--hub.is-on{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- 左上：About Me： ---------------------------- */

.about{
  position: absolute;
  left: 8.2vw;
  top: 10.4vh;
  z-index: 2;
  pointer-events: none;
}

.about__scrim{
  --sw: 186%;
  --sh: 300%;
  --sa: .58;
  --sb: 26px;
}

.about__text{
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: clamp(24px, 2.7vw, 44px);
  line-height: 1.1;
  letter-spacing: .04em;
  color: #ffffff;
  white-space: nowrap;
  -webkit-text-stroke: .5px rgba(255,255,255,.6);
  text-shadow:
    -2px 1px 0 rgba(60,225,255,.30),
     2px 1px 0 rgba(255,80,195,.24),
     0 -1px 0 rgba(255,255,255,.45),
     4px 5px 0 rgba(7,3,18,.52),
     0 18px 36px rgba(0,0,0,.55);
}

/* ---------- 四宫格 -------------------------------------- */

.hub{
  position: absolute;
  left: 50%;
  top: 52.5%;
  transform: translate(-50%, -50%);
  width: min(68vw, 1060px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 5.4vh, 66px) clamp(36px, 8.6vw, 148px);
}

.hub-card{
  --prox: 0;
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: block;
  aspect-ratio: 1.55;
  padding: clamp(16px, 2.1vh, 24px) clamp(16px, 1.7vw, 26px);
  border: 0;
  border-radius: clamp(16px, 1.55vw, 24px);
  background:
    linear-gradient(180deg,
      rgba(13,9,32, calc(.50 - .12 * var(--prox))) 0%,
      rgba(30,16,62, calc(.40 - .10 * var(--prox))) 100%),
    linear-gradient(180deg,
      rgba(205,245,255, calc(.11 + .08 * var(--prox))) 0%,
      rgba(120,90,230,  calc(.10 + .10 * var(--prox))) 100%);
  -webkit-backdrop-filter: blur(13px) saturate(145%);
  backdrop-filter: blur(13px) saturate(145%);
  color: #eafbff;
  text-align: left;
  cursor: pointer;
  outline: none;
  transform: translateY(calc(-5px * var(--prox))) scale(calc(1 + .012 * var(--prox)));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 0 0 1px rgba(175,240,255,.08),
    inset 0 -22px 44px rgba(35,18,85,.24),
    0 18px 44px rgba(0,0,0,.42),
    0 0 calc(46px * var(--prox)) rgba(95,216,255, calc(.42 * var(--prox))),
    0 0 calc(110px * var(--prox)) rgba(169,140,255, calc(.26 * var(--prox)));
  transition:
    transform .5s cubic-bezier(.16,1,.3,1),
    box-shadow .5s ease,
    background .5s ease;
}

/* 和封面按钮同一套霓虹描边 */
.hub-card__ring{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(115deg, #5fe6ff 0%, #8f7bff 42%, #ff6ad5 72%, #5fe6ff 100%);
  background-size: 220% 100%;
  background-position: calc(var(--prox) * 100%) 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: calc(.42 + .58 * var(--prox));
  pointer-events: none;
  transition: opacity .35s ease;
}

/* 同一套扫光 */
.hub-card__sheen{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.hub-card__sheen::before{
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: 0;
  width: 42%;
  background: linear-gradient(100deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.34) 45%,
      rgba(255,255,255,0) 100%);
  transform: translateX(calc(-130% + 300% * var(--prox))) skewX(-16deg);
  opacity: calc(var(--prox) * .8);
  filter: blur(2px);
}
.hub-card__sheen::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  background: linear-gradient(180deg,
      rgba(190,250,255,0) 0%,
      rgba(190,250,255,.42) 50%,
      rgba(190,250,255,0) 100%);
  opacity: calc(var(--prox) * .6);
  filter: blur(1.5px);
  animation: btnScan 3.4s linear infinite;
}
.hub-card::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--mx) var(--my),
      rgba(150,240,255,.20) 0%,
      rgba(150,240,255,0) 70%);
  opacity: var(--prox);
}

.hub-card:focus-visible{
  outline: 1px solid rgba(150,240,255,.6);
  outline-offset: 8px;
}
.hub-card:active{
  transform: translateY(calc(-1px * var(--prox))) scale(.99);
  transition-duration: .12s;
}

/* ---------- 卡片内部：标题 / 描述占位 / 封面占位 ---------- */

.hub-card__grid{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.5vh, 16px) clamp(10px, 1.1vw, 18px);
  width: 100%;
  height: 100%;
}

.hub-card__head{
  grid-column: 1;
  grid-row: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.2em;
}

.hub-card__scrim{
  --sw: 190%;
  --sh: 330%;
  --sa: .62;
  --sb: 13px;
}

.hub-card__title{
  position: relative;
  z-index: 1;
  font-family: var(--heiti-font);
  font-weight: 800;
  font-size: clamp(19px, 1.72vw, 28px);
  line-height: 1.1;
  letter-spacing: .03em;
  color: #ffffff;
  text-shadow:
    -1.5px 1px 0 rgba(60,225,255,.28),
     1.5px 1px 0 rgba(255,80,195,.22),
     0 -1px 0 rgba(255,255,255,.35),
     0 10px 26px rgba(0,0,0,.5);
}

/* 后期要自己填的两块：淡虚线占位 */
.ph{
  position: relative;
  display: flex;
  border: 1px dashed rgba(160,220,255,.34);
  border-radius: 12px;
  background: rgba(3,6,20,.26);
  transition: border-color .45s ease, background .45s ease;
}
.hub-card__desc{
  grid-column: 1;
  grid-row: 2;
  align-items: flex-start;
  padding: 9px 11px;
}
.hub-card__cover{
  grid-column: 2;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
}
.ph__label{
  font-family: var(--mono);
  font-size: clamp(8px, .6vw, 10px);
  letter-spacing: .22em;
  color: rgba(185,230,255,.62);
  transition: color .45s ease;
}
.hub-card:hover .ph{ border-color: rgba(160,225,255,.6); background: rgba(6,12,34,.34); }
.hub-card:hover .ph__label{ color: rgba(215,245,255,.85); }

/* ---------- 第二页的入场 / 退场 ------------------------- */

.page--hub .about,
.page--hub .hub-card{ opacity: 0; }

.page--hub.is-on .about{
  opacity: 1;
  animation: aboutIn .9s cubic-bezier(.16,1,.3,1) backwards;
}
.page--hub.is-on .hub-card{
  opacity: 1;
  animation: cardIn .95s cubic-bezier(.16,1,.3,1) backwards;
  animation-delay: calc(.16s + var(--i) * .1s);
}

.page--hub.is-leaving .about{
  animation: softOut .55s cubic-bezier(.5,0,.3,1) both;
}
.page--hub.is-leaving .hub-card{
  animation: softOut .55s cubic-bezier(.5,0,.3,1) both;
  animation-delay: calc(var(--i) * .06s);
}

/* =========================================================
   6. 第三～六页：背景 + 页码
   ========================================================= */

.page--inner{
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s ease, visibility .55s;
}
.page--inner.is-active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.inner-title{
  position: absolute;
  left: 8.2vw;
  top: 12.6vh;
  margin: 0;
  z-index: 3;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity .7s ease .12s,
    transform .85s cubic-bezier(.16,1,.3,1) .12s;
}
.inner-title--tr{
  left: auto;
  right: 8.2vw;
}
.inner-title__text{
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 60px);
  line-height: 1.05;
  letter-spacing: .03em;
  color: #ffffff;
  white-space: nowrap;
  -webkit-text-stroke: .55px rgba(255,255,255,.6);
  text-shadow:
    -2px 1px 0 rgba(60,225,255,.30),
     2px 1px 0 rgba(255,80,195,.24),
     0 -1px 0 rgba(255,255,255,.45),
     5px 6px 0 rgba(7,3,18,.52),
     0 20px 40px rgba(0,0,0,.55);
}
.inner-title__scrim{
  --sw: 184%;
  --sh: 320%;
  --sa: .56;
  --sb: 28px;
}
.page--inner.is-active .inner-title{
  opacity: 1;
  transform: translateY(0);
}

.back-btn{
  position: absolute;
  left: clamp(20px, 2.6vw, 44px);
  bottom: clamp(18px, 2.6vh, 36px);
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 9px 17px 9px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(205,245,255,.12) 0%, rgba(120,90,230,.10) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    0 0 0 1px rgba(175,240,255,.26),
    0 10px 26px rgba(0,0,0,.36);
  color: rgba(232,250,255,.9);
  font-family: var(--ui-font);
  font-size: 12px;
  letter-spacing: .16em;
  cursor: pointer;
  outline: none;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity .5s ease .12s,
    transform .5s cubic-bezier(.16,1,.3,1) .12s,
    background .35s ease,
    box-shadow .35s ease;
}
.page--inner.is-active .back-btn{ opacity: 1; transform: translateY(0); }
.back-btn:hover{
  background: linear-gradient(180deg, rgba(205,245,255,.20) 0%, rgba(120,90,230,.16) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 0 0 1px rgba(150,235,255,.5),
    0 10px 30px rgba(0,0,0,.4),
    0 0 28px rgba(95,216,255,.35);
}
.back-btn:focus-visible{ outline: 1px solid rgba(150,240,255,.6); outline-offset: 6px; }
.back-btn__ico{ font-size: 14px; line-height: 1; }

/* =========================================================
   5. 点击退场
   ========================================================= */

.is-exiting .title__ch{
  animation: chOut .8s cubic-bezier(.5,0,.25,1) both;
  animation-delay: calc(var(--i) * 42ms);
}
.is-exiting .subtitle__text{
  animation: subOut .55s ease both;
  animation-delay: .05s;
}
.is-exiting .subtitle__line{
  animation: lineOut .45s ease both;
  animation-delay: .05s;
}
.is-exiting .btn-wrap{
  animation: btnOut .5s cubic-bezier(.5,0,.3,1) both;
}
.is-exiting .title::before{
  animation: none;
  opacity: 0;
  transition: opacity .6s ease;
}

.page--cover.is-gone{
  opacity: 0;
  pointer-events: none;
}

/* 点击时那一道扫过画面的光 */
.transition-scan{
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
}
.is-exiting .transition-scan{
  opacity: 1;
}
.is-exiting .transition-scan::before{
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  height: 22vh;
  top: -24vh;
  background: linear-gradient(180deg,
      rgba(130,225,255,0) 0%,
      rgba(130,225,255,.12) 55%,
      rgba(255,255,255,.24) 60%,
      rgba(130,225,255,0) 100%);
  animation: scanPass 1.1s cubic-bezier(.5,0,.3,1) both;
}

/* =========================================================
   6. 关键帧
   ========================================================= */

@keyframes btnScan{
  0%   { transform: translateY(-130%); }
  100% { transform: translateY(430%); }
}

@keyframes ringHue{  0%   { filter: hue-rotate(0deg); }
  50%  { filter: hue-rotate(-38deg); }
  100% { filter: hue-rotate(0deg); }
}

@keyframes bgIn{
  from{ opacity: 0; transform: scale(1.055); }
  to  { opacity: 1; transform: scale(1); }
}

@keyframes bgDrift{
  from{ transform: scale(1); }
  to  { transform: scale(1.035); }
}

@keyframes fadeIn{
  from{ opacity: 0; }
  to  { opacity: 1; }
}

@keyframes sweepDown{
  0%   { transform: translateY(0); }
  100% { transform: translateY(170vh); }
}

@keyframes glitchIn{
  from{ opacity: 0; filter: blur(3px) brightness(.6); }
  to  { opacity: .96; filter: blur(0) brightness(1); }
}

@keyframes gFlicker{
  0%, 41%, 43%, 69%, 71%, 100% { filter: none; }
  42% { filter: brightness(1.28) saturate(1.25); }
  70% { filter: brightness(.82); }
}

@keyframes gBurst{
  0%  { transform: translateX(0)   skewX(0deg); }
  25% { transform: translateX(-2px) skewX(-5deg); }
  55% { transform: translateX(2px)  skewX(4deg); }
  100%{ transform: translateX(0)   skewX(0deg); }
}

@keyframes chIn{
  from{ opacity: 0; transform: translateY(46px); filter: blur(14px); }
  60% { opacity: 1; }
  to  { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes chOut{
  from{ opacity: 1; transform: translateY(0); filter: blur(0); }
  to  { opacity: 0; transform: translateY(-30px); filter: blur(10px); }
}

@keyframes lineIn{
  from{ transform: scaleX(0); opacity: 0; }
  to  { transform: scaleX(1); opacity: 1; }
}

@keyframes lineOut{
  from{ transform: scaleX(1); opacity: 1; }
  to  { transform: scaleX(0); opacity: 0; }
}

@keyframes subIn{
  from{ opacity: 0; filter: blur(7px); letter-spacing: .78em; }
  to  { opacity: 1; filter: blur(0);   letter-spacing: .38em; }
}

@keyframes subOut{
  from{ opacity: 1; filter: blur(0); transform: translateY(0); }
  to  { opacity: 0; filter: blur(7px); transform: translateY(-12px); }
}

@keyframes btnIn{
  from{ opacity: 0; transform: translateY(26px); filter: blur(10px); }
  to  { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes btnOut{
  from{ opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  to  { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(7px); }
}

@keyframes aboutIn{
  from{ opacity: 0; filter: blur(10px); translate: 0 -14px; }
  to  { opacity: 1; filter: blur(0);    translate: 0 0; }
}

@keyframes cardIn{
  from{ opacity: 0; filter: blur(12px); translate: 0 30px; }
  60% { opacity: 1; }
  to  { opacity: 1; filter: blur(0);    translate: 0 0; }
}

@keyframes softOut{
  from{ opacity: 1; filter: blur(0);    translate: 0 0; }
  to  { opacity: 0; filter: blur(9px);  translate: 0 -20px; }
}

@keyframes peelBreath{
  0%, 100%{ transform: translate(6px, 8px);  opacity: .86; }
  50%     { transform: translate(4px, 6px);  opacity: .74; }
}

@keyframes scrimIn{
  from{ opacity: 0; transform: translate(-50%,-50%) scale(1.08); }
  to  { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}

@keyframes rippleOut{
  from{ transform: translate(-50%,-50%) scale(0); opacity: .8; }
  to  { transform: translate(-50%,-50%) scale(1); opacity: 0; }
}

@keyframes scanPass{
  from{ transform: translateY(0); }
  to  { transform: translateY(150vh); }
}

/* =========================================================
   7. 自适应
   ========================================================= */

@media (max-width: 760px){
  .page--cover{ padding: 0 4vw 2vh; }
  .cover{ transform: translateY(3vh); }
  .title{ letter-spacing: .02em; }
  .subtitle{ gap: 11px; }
  .subtitle__text{ letter-spacing: .3em; padding-left: .3em; }
  .enter-btn{ letter-spacing: .14em; text-indent: .14em; }

  /* 第二页：单列纵向排布 */
  .page--hub{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 92px 5vw 46px;
  }
  .about{
    position: static;
    margin: 0 0 22px;
  }
  .about__text{ font-size: 26px; }
  .hub{
    position: static;
    transform: none;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hub-card{ aspect-ratio: 1.9; }
  .hub-card__title{ font-size: 20px; }
  .inner-title{ left: 6vw; right: auto; top: 9vh; }
  .inner-title--tr{ left: auto; right: 6vw; }
  .inner-title__text{ font-size: 30px; }
  .back-btn{ font-size: 12px; }
}

@media (max-height: 600px) and (orientation: landscape){
  .cover{ transform: translateY(1vh); }
  .subtitle{ margin-top: 12px; }
  .btn-wrap{ margin-top: 18px; }
  .title{ font-size: clamp(38px, 6.4vw, 74px); }

  .hub{ width: min(72vw, 900px); gap: 14px 40px; }
  .about{ top: 9vh; }
  .about__text{ font-size: 26px; }
  .hub-card__title{ font-size: 18px; }
}

/* =========================================================
   8. 减少动效
   ========================================================= */

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

/* =========================================================
   7. 第四页 Life：左侧大预览 + 右侧轮盘 + 编辑态
   ========================================================= */

.page--life{ z-index: 2; }
.page--life .inner-title{ top: 10.2vh; }
.page--life .inner-title__text{ font-size: clamp(26px, 3.1vw, 54px); }

.life{
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ---------- 左：放大预览 ---------- */
.life-stage{
  position: absolute;
  left: 8.2vw;
  top: 20.6vh;
  width: 40.6vw;
  max-width: 720px;
  height: 59vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .75s ease .16s,
    transform .95s cubic-bezier(.16,1,.3,1) .16s;
}
.page--life.is-active .life-stage{ opacity: 1; transform: translateY(0); }

.life-frame{
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13,9,32,.56), rgba(7,3,20,.72));
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 0 0 1px rgba(160,220,255,.20),
    0 26px 60px rgba(0,0,0,.46);
}
.life-frame::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 38%, transparent 40%, rgba(4,2,14,.42) 100%);
}
.life-frame__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
  will-change: opacity;
}
.life-frame__img.is-in{ opacity: 1; }
.life-frame__empty{
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 16px;
  border: 1px dashed rgba(150,220,255,.24);
  color: rgba(200,232,255,.5);
  font-family: var(--ui-font);
  pointer-events: none;
}
.life-frame__empty b{
  font-weight: 600;
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: .16em;
  color: rgba(230,248,255,.82);
}
.life-frame__empty i{
  font-style: normal;
  font-size: 11px;
  letter-spacing: .08em;
}
.life-frame__count{
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6,4,18,.48);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(170,235,255,.2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: rgba(226,248,255,.8);
}
.life-frame__meta{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 58px 24px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(5,3,16,.55) 46%, rgba(5,3,16,.88) 100%);
}

/* 可编辑文字：默认只读、不吃鼠标 */
.life-title-in,
.life-desc-in{
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px dashed transparent;
  background: transparent;
  font: inherit;
  outline: none;
  pointer-events: none;
  transition: border-color .3s ease, background .3s ease;
}
.life-title-in{
  font-family: var(--heiti-font);
  font-weight: 800;
  font-size: clamp(16px, 1.5vw, 25px);
  line-height: 1.25;
  letter-spacing: .015em;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,.62), 0 0 26px rgba(90,200,255,.18);
}
.life-desc-in{
  margin-top: 8px;
  height: 3.4em;
  resize: none;
  font-family: var(--ui-font);
  font-size: clamp(10px, .85vw, 13px);
  line-height: 1.75;
  letter-spacing: .04em;
  color: rgba(214,240,255,.74);
}
body.is-editing .life-title-in,
body.is-editing .life-desc-in{
  pointer-events: auto;
  cursor: text;
  padding: 4px 10px 6px;
  border-radius: 9px 9px 2px 2px;
  border-bottom-color: rgba(150,235,255,.58);
  background: rgba(8,13,30,.46);
  box-shadow: inset 0 0 0 1px rgba(140,225,255,.14);
}
body.is-editing .life-title-in:focus,
body.is-editing .life-desc-in:focus{
  border-bottom-color: rgba(160,240,255,.95);
  background: rgba(10,18,40,.62);
  box-shadow: inset 0 0 0 1px rgba(150,230,255,.34), 0 0 22px rgba(90,190,255,.18);
}

/* ---------- 缩略图条 ---------- */
.life-thumbs{
  display: flex;
  gap: 10px;
  flex: 0 0 56px;
  height: 56px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.life-thumbs::-webkit-scrollbar{ display: none; }
.life-thumb{
  position: relative;
  flex: 0 0 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(10,6,26,.4);
  box-shadow: inset 0 0 0 1px rgba(160,220,255,.22);
  transition: transform .3s ease, box-shadow .3s ease;
}
.life-thumb img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.life-thumb:hover{ transform: translateY(-2px); }
.life-thumb.is-cover{
  box-shadow:
    inset 0 0 0 1.5px rgba(150,240,255,.9),
    0 0 18px rgba(95,216,255,.38);
}
.life-thumb__x{
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  line-height: 15px;
  text-align: center;
  border-radius: 50%;
  background: rgba(8,4,20,.78);
  color: rgba(255,175,195,.95);
  font-size: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
body.is-editing .life-thumb__x{ opacity: 1; pointer-events: auto; }

/* ---------- 右：轮盘 ---------- */
.life-wheel{
  position: absolute;
  right: 8.6vw;
  top: 13vh;
  width: 30vw;
  max-width: 470px;
  height: 72vh;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(4,2,14,.46) 0%, rgba(8,5,22,.14) 24%, rgba(8,5,22,.14) 76%, rgba(4,2,14,.46) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(150,220,255,.22),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 26px 44px -26px rgba(0,0,0,.62),
    inset 0 -26px 44px -26px rgba(0,0,0,.62),
    0 24px 60px rgba(0,0,0,.26);
  outline: none;
  opacity: 0;
  transition: opacity .85s ease .3s;
}
.page--life.is-active .life-wheel{ opacity: 1; }
.life-wheel:focus-visible{ outline: 1px solid rgba(150,240,255,.4); outline-offset: 18px; border-radius: 24px; }

.life-wheel__glow{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 122%;
  height: 44%;
  transform: translate(-50%,-50%);
  background: radial-gradient(ellipse at center, rgba(120,215,255,.18), rgba(120,90,230,.10) 46%, transparent 74%);
  filter: blur(20px);
  pointer-events: none;
}
.life-wheel__rail{
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.life-wheel__hint{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .24em;
  color: rgba(200,232,255,.62);
  pointer-events: none;
  transition: color .4s ease;
}
.life-wheel__hint.is-manual{ color: rgba(255,190,210,.55); }

.life-item{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84%;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 10px 13px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13,9,32,.62), rgba(7,4,20,.5));
  -webkit-backdrop-filter: blur(12px) saturate(136%);
  backdrop-filter: blur(12px) saturate(136%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 0 1px rgba(150,215,255,.16),
    0 12px 26px rgba(0,0,0,.32);
  text-align: left;
  cursor: pointer;
  will-change: transform, opacity;
  transition:
    opacity .46s ease,
    transform .62s cubic-bezier(.16,1,.3,1),
    background .45s ease,
    box-shadow .45s ease;
}
.life-item.is-center{
  background: linear-gradient(180deg, rgba(22,15,50,.7), rgba(10,6,26,.55));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    0 0 0 1px rgba(150,235,255,.55),
    0 0 34px rgba(95,216,255,.2),
    0 18px 40px rgba(0,0,0,.45);
}
.life-item__thumb{
  width: 58px;
  height: 58px;
  border-radius: 11px;
  overflow: hidden;
  background-color: rgba(110,80,220,.22);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.life-item__body{ min-width: 0; }
.life-item__title{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--heiti-font);
  font-weight: 800;
  font-size: clamp(13px, 1.05vw, 17px);
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.life-item__sub{
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: rgba(190,225,255,.5);
}
.life-item__del{
  position: absolute;
  top: 5px;
  right: 7px;
  width: 18px;
  height: 18px;
  line-height: 17px;
  text-align: center;
  border-radius: 50%;
  background: rgba(10,6,24,.75);
  box-shadow: inset 0 0 0 1px rgba(255,150,180,.3);
  color: rgba(255,175,195,.95);
  font-size: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
body.is-editing .life-item__del{ opacity: 1; pointer-events: auto; }

/* ---------- 编辑开关 / 工具条 ---------- */
.page--life .back-btn{ z-index: 7; }

.edit-toggle{
  position: absolute;
  right: 2.2vw;
  bottom: 2.6vh;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 9px 17px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(205,245,255,.12) 0%, rgba(120,90,230,.10) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    0 0 0 1px rgba(175,240,255,.26),
    0 10px 26px rgba(0,0,0,.36);
  color: rgba(232,250,255,.9);
  font-family: var(--ui-font);
  font-size: 12px;
  letter-spacing: .16em;
  cursor: pointer;
  outline: none;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity .5s ease .12s,
    transform .5s cubic-bezier(.16,1,.3,1) .12s,
    background .35s ease,
    box-shadow .35s ease;
}
.page--life.is-active .edit-toggle{ opacity: 1; transform: translateY(0); }
body.is-editing .edit-toggle{
  background: linear-gradient(180deg, rgba(205,245,255,.22) 0%, rgba(120,90,230,.18) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 0 0 1px rgba(150,235,255,.62),
    0 0 26px rgba(95,216,255,.36),
    0 10px 26px rgba(0,0,0,.4);
  color: #f2fdff;
}
.edit-toggle__ico{ font-size: 12px; line-height: 1; }

.life-tools{
  position: absolute;
  right: 2.2vw;
  bottom: calc(2.6vh + 52px);
  z-index: 7;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity .3s ease,
    transform .45s cubic-bezier(.16,1,.3,1);
}
body.is-editing .life-tools{ opacity: 1; pointer-events: auto; transform: translateY(0); }
.life-tool{
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(205,245,255,.16) 0%, rgba(120,90,230,.14) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 0 0 1px rgba(175,240,255,.32),
    0 8px 22px rgba(0,0,0,.35);
  color: rgba(236,252,255,.94);
  font-family: var(--ui-font);
  font-size: 11px;
  letter-spacing: .14em;
  cursor: pointer;
  transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}
.life-tool:hover{
  background: linear-gradient(180deg, rgba(205,245,255,.26) 0%, rgba(120,90,230,.22) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 0 0 1px rgba(150,235,255,.6),
    0 0 24px rgba(95,216,255,.34);
  transform: translateY(-1px);
}
.life-tool--ghost{ color: rgba(255,196,208,.92); }

.life-stage.is-drop{ outline: 1px dashed rgba(150,240,255,.7); outline-offset: -10px; }

/* 提示气泡 */
.life-toast{
  position: fixed;
  left: 50%;
  bottom: 7vh;
  z-index: 60;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(8,5,20,.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(160,230,255,.32), 0 14px 34px rgba(0,0,0,.45);
  color: rgba(230,250,255,.92);
  font-family: var(--ui-font);
  font-size: 12px;
  letter-spacing: .08em;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity .28s ease, transform .35s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.life-toast.is-on{ opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 760px){
  .page--life .inner-title{ top: 7.4vh; }
  .life{
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 13.5vh 6vw 13vh;
  }
  .life-stage{ position: static; width: 100%; max-width: none; height: 36vh; }
  .life-wheel{ position: relative; top: auto; right: auto; left: auto; width: 100%; max-width: none; height: 32vh; margin-top: 4px; }
  .life-frame__meta{ padding: 44px 15px 13px; }
  .life-title-in{ font-size: 16px; }
  .life-wheel__hint{ bottom: -18px; }
  .life-tools{ right: 6vw; bottom: calc(3.2vh + 48px); }
  .edit-toggle{ right: 6vw; bottom: 3.2vh; }
}

@media (max-height: 620px) and (orientation: landscape){
  .life-stage{ top: 17vh; height: 62vh; }
  .life-wheel{ top: 9vh; height: 78vh; }
  .page--life .inner-title{ top: 7vh; }
  .page--life .inner-title__text{ font-size: clamp(22px, 2.6vw, 40px); }
}